diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 07c725d..ddf661b 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.151.0" + ".": "0.152.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d1c343..c3f649c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.152.0](https://github.com/kernel/kernel-go-sdk/compare/v0.151.0...v0.152.0) (2026-11-19) + + +### Features + +* Add `ConnectURL` to `OnePasswordOAuthAction`: a 1Password connect link for the same authorization, for the person to open on their own device ([c574dd5](https://github.com/kernel/kernel-go-sdk/commit/c574dd5a7613c206be817ad6d1562df461e1cbe8)) + ## [0.151.0](https://github.com/kernel/kernel-go-sdk/compare/v0.150.0...v0.151.0) (2026-11-19) diff --git a/README.md b/README.md index 24e21f0..5330c97 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Or to pin the version: ```sh -go get -u 'github.com/kernel/kernel-go-sdk@v0.151.0' +go get -u 'github.com/kernel/kernel-go-sdk@v0.152.0' ``` diff --git a/internal/version.go b/internal/version.go index 3aeddb5..12f52a7 100644 --- a/internal/version.go +++ b/internal/version.go @@ -2,4 +2,4 @@ package internal -const PackageVersion = "0.151.0" // x-release-please-version +const PackageVersion = "0.152.0" // x-release-please-version diff --git a/vaultitem.go b/vaultitem.go index ed3b840..e5e84e5 100644 --- a/vaultitem.go +++ b/vaultitem.go @@ -5248,10 +5248,20 @@ type OnePasswordOAuthAction struct { Name OnePasswordOAuthActionName `json:"name" api:"required"` // 1Password-hosted OAuth authorization URL for the human to open. URL string `json:"url" api:"required" format:"uri"` + // 1Password connect link for the same authorization, for the person to open on + // their own device. In 1Password for iOS or Android it opens the app to approve + // the connection. Anywhere else it opens 1Password in the browser, where someone + // without 1Password can sign up; if the account is still pending afterwards, they + // connect with url. Also offer url to people who already use 1Password on a + // computer. Whichever link the person answers first settles the authorization and + // the other stops working. Expires with the account's expires_at; repeat the + // upsert for fresh links. Absent on a recovery link. + ConnectURL string `json:"connect_url" format:"uri"` // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. JSON struct { Name respjson.Field URL respjson.Field + ConnectURL respjson.Field ExtraFields map[string]respjson.Field raw string } `json:"-"` @@ -7671,6 +7681,8 @@ func (r *VaultItemUnionStateFields) UnmarshalJSON(data []byte) error { type VaultItemUnionAction struct { Name string `json:"name"` URL string `json:"url"` + // This field is from variant [VaultItemActionUnion], [OnePasswordOAuthAction]. + ConnectURL string `json:"connect_url"` // This field is from variant [VaultItemActionUnion]. CaptureToken string `json:"capture_token"` // This field is from variant [CredentialVaultItemActionUnion]. @@ -7682,6 +7694,7 @@ type VaultItemUnionAction struct { JSON struct { Name respjson.Field URL respjson.Field + ConnectURL respjson.Field CaptureToken respjson.Field ExpiresAt respjson.Field AccessRequestReference respjson.Field @@ -7931,11 +7944,14 @@ type VaultItemActionUnion struct { // "push_approval", "collect", "mfa", "embedded_ceremony", "card_enrollment". Name string `json:"name"` URL string `json:"url"` + // This field is from variant [OnePasswordOAuthAction]. + ConnectURL string `json:"connect_url"` // This field is from variant [VaultItemActionCardEnrollment]. CaptureToken string `json:"capture_token"` JSON struct { Name respjson.Field URL respjson.Field + ConnectURL respjson.Field CaptureToken respjson.Field raw string } `json:"-"` @@ -8859,6 +8875,8 @@ func (r *VaultItemOperationResponseUnionStateFields) UnmarshalJSON(data []byte) type VaultItemOperationResponseUnionAction struct { Name string `json:"name"` URL string `json:"url"` + // This field is from variant [VaultItemActionUnion], [OnePasswordOAuthAction]. + ConnectURL string `json:"connect_url"` // This field is from variant [VaultItemActionUnion]. CaptureToken string `json:"capture_token"` // This field is from variant [CredentialVaultItemActionUnion]. @@ -8870,6 +8888,7 @@ type VaultItemOperationResponseUnionAction struct { JSON struct { Name respjson.Field URL respjson.Field + ConnectURL respjson.Field CaptureToken respjson.Field ExpiresAt respjson.Field AccessRequestReference respjson.Field