From 085fb20eeb424a273358e32deb212a99746cdc5d Mon Sep 17 00:00:00 2001 From: "kernel-internal[bot]" <260533166+kernel-internal[bot]@users.noreply.github.com> Date: Mon, 30 Nov 2026 00:14:10 +0000 Subject: [PATCH 1/3] feat: chore(stlc): seal custom-code tracking files Stainless-Generated-From: dc584f75398e91d349349594638ddb8253ce0bef --- vaultitem.go | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/vaultitem.go b/vaultitem.go index e8bbd21..c55fb83 100644 --- a/vaultitem.go +++ b/vaultitem.go @@ -2744,6 +2744,8 @@ type CredentialVaultItemSpecUnion struct { // Any of "kernel", "1password", "managed_auth". Provider string `json:"provider"` Description string `json:"description"` + // This field is from variant [KernelCredentialVaultItemSpec]. + Domain string `json:"domain"` // This field is from variant [OnePasswordCredentialVaultItemSpec]. Requests OnePasswordCredentialVaultItemSpecRequests `json:"requests"` // This field is from variant [OnePasswordCredentialVaultItemSpec]. @@ -2756,6 +2758,7 @@ type CredentialVaultItemSpecUnion struct { Fields respjson.Field Provider respjson.Field Description respjson.Field + Domain respjson.Field Requests respjson.Field AccessTokenExpiresAt respjson.Field Account respjson.Field @@ -2872,6 +2875,14 @@ func (u CredentialVaultItemSpecInputUnionParam) GetFields() []CredentialVaultFie return nil } +// Returns a pointer to the underlying variant's property, if present. +func (u CredentialVaultItemSpecInputUnionParam) GetDomain() *string { + if vt := u.OfKernel; vt != nil && vt.Domain.Valid() { + return &vt.Domain.Value + } + return nil +} + // Returns a pointer to the underlying variant's property, if present. func (u CredentialVaultItemSpecInputUnionParam) GetAccessRequestID() *string { if vt := u.Of1password; vt != nil && vt.AccessRequestID.Valid() { @@ -2980,6 +2991,12 @@ type CredentialVaultItemSpecUpdateParam struct { // as sign-in credentials. An empty string clears it. Display text only, not an // enforced destination policy. The server also enforces a 16 KiB UTF-8 byte limit. Description param.Opt[string] `json:"description,omitzero"` + // Hostname of the site this login is for, such as rippling.com. Collection pages + // and link previews show the site's icon and domain. Setting it also puts the + // domain in the collection link's query string (/collect?d=#token=...), + // where anyone with the link can read it without the token. An empty string clears + // it. Display text only, not an enforced destination policy. + Domain param.Opt[string] `json:"domain,omitzero"` // Field definitions to append, with the same defaults as creation. Set their // values in `fields` in the same update. Names must be unique after removals; at // most 32 fields may result. A required totp or passkey field needs a value in @@ -3649,11 +3666,15 @@ type KernelCredentialVaultItemSpec struct { // suffixes such as sign-in credentials. Display text only, not an enforced // destination policy. Description string `json:"description"` + // Hostname of the site this login is for, shown on collection pages and link + // previews. Display text only, not an enforced destination policy. + Domain string `json:"domain"` // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. JSON struct { Fields respjson.Field Provider respjson.Field Description respjson.Field + Domain respjson.Field ExtraFields map[string]respjson.Field raw string } `json:"-"` @@ -3689,6 +3710,12 @@ type KernelCredentialVaultItemSpecInputParam struct { // append sign-in, login, credentials, or task instructions. This is display text, // not an enforced destination policy. At most 16 KiB in UTF-8 bytes. Description param.Opt[string] `json:"description,omitzero"` + // Hostname of the site this login is for, such as rippling.com, without a scheme + // or path. Collection pages and link previews show the site's icon and domain. + // Setting it also puts the domain in the collection link's query string + // (/collect?d=#token=...), where anyone with the link can read it without + // the token. Display text only, not an enforced destination policy. + Domain param.Opt[string] `json:"domain,omitzero"` paramObj } @@ -7458,6 +7485,8 @@ type VaultItemUnionSpec struct { Fields []CredentialVaultFieldDefinition `json:"fields"` Description string `json:"description"` // This field is from variant [CredentialVaultItemSpecUnion]. + Domain string `json:"domain"` + // This field is from variant [CredentialVaultItemSpecUnion]. Requests OnePasswordCredentialVaultItemSpecRequests `json:"requests"` // This field is from variant [CredentialVaultItemSpecUnion]. AccessTokenExpiresAt time.Time `json:"access_token_expires_at"` @@ -7497,6 +7526,7 @@ type VaultItemUnionSpec struct { CardMode respjson.Field Fields respjson.Field Description respjson.Field + Domain respjson.Field Requests respjson.Field AccessTokenExpiresAt respjson.Field Account respjson.Field @@ -8658,6 +8688,8 @@ type VaultItemOperationResponseUnionSpec struct { Fields []CredentialVaultFieldDefinition `json:"fields"` Description string `json:"description"` // This field is from variant [CredentialVaultItemSpecUnion]. + Domain string `json:"domain"` + // This field is from variant [CredentialVaultItemSpecUnion]. Requests OnePasswordCredentialVaultItemSpecRequests `json:"requests"` // This field is from variant [CredentialVaultItemSpecUnion]. AccessTokenExpiresAt time.Time `json:"access_token_expires_at"` @@ -8697,6 +8729,7 @@ type VaultItemOperationResponseUnionSpec struct { CardMode respjson.Field Fields respjson.Field Description respjson.Field + Domain respjson.Field Requests respjson.Field AccessTokenExpiresAt respjson.Field Account respjson.Field From 1fc4c17852a8c7a581ed454fe42333b5e83f4f73 Mon Sep 17 00:00:00 2001 From: "kernel-internal[bot]" <260533166+kernel-internal[bot]@users.noreply.github.com> Date: Mon, 30 Nov 2026 00:18:36 +0000 Subject: [PATCH 2/3] release: 0.156.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 7 +++++++ README.md | 2 +- internal/version.go | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f102a28..9026c21 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.155.0" + ".": "0.156.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 683cb61..2b91da4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.156.0](https://github.com/kernel/kernel-go-sdk/compare/v0.155.0...v0.156.0) (2026-11-30) + + +### Features + +* chore(stlc): seal custom-code tracking files ([085fb20](https://github.com/kernel/kernel-go-sdk/commit/085fb20eeb424a273358e32deb212a99746cdc5d)) + ## [0.155.0](https://github.com/kernel/kernel-go-sdk/compare/v0.154.0...v0.155.0) (2026-11-25) diff --git a/README.md b/README.md index 2bc4a4e..551fa59 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.155.0' +go get -u 'github.com/kernel/kernel-go-sdk@v0.156.0' ``` diff --git a/internal/version.go b/internal/version.go index 14ec347..a92244d 100644 --- a/internal/version.go +++ b/internal/version.go @@ -2,4 +2,4 @@ package internal -const PackageVersion = "0.155.0" // x-release-please-version +const PackageVersion = "0.156.0" // x-release-please-version From faee0569222c3d13f4b42d5105c7c7bee5e645de Mon Sep 17 00:00:00 2001 From: rgarcia <72655+rgarcia@users.noreply.github.com> Date: Mon, 30 Nov 2026 00:19:54 +0000 Subject: [PATCH 3/3] docs: describe the domain field in the 0.156.0 changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b91da4..bf66534 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ ### Features -* chore(stlc): seal custom-code tracking files ([085fb20](https://github.com/kernel/kernel-go-sdk/commit/085fb20eeb424a273358e32deb212a99746cdc5d)) +* Add an optional `domain` to Kernel credential vault items, used to show the site on collection pages and link previews ([085fb20](https://github.com/kernel/kernel-go-sdk/commit/085fb20eeb424a273358e32deb212a99746cdc5d)) ## [0.155.0](https://github.com/kernel/kernel-go-sdk/compare/v0.154.0...v0.155.0) (2026-11-25)