Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.155.0"
".": "0.156.0"
}
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

* 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)


Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Or to pin the version:
<!-- x-release-please-start-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'
```

<!-- x-release-please-end -->
Expand Down
2 changes: 1 addition & 1 deletion internal/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

package internal

const PackageVersion = "0.155.0" // x-release-please-version
const PackageVersion = "0.156.0" // x-release-please-version
33 changes: 33 additions & 0 deletions vaultitem.go
Original file line number Diff line number Diff line change
Expand Up @@ -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].
Expand All @@ -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
Expand Down Expand Up @@ -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() {
Expand Down Expand Up @@ -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=<domain>#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
Expand Down Expand Up @@ -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:"-"`
Expand Down Expand Up @@ -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=<domain>#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
}

Expand Down Expand Up @@ -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"`
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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"`
Expand Down Expand Up @@ -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
Expand Down
Loading