{"modulePath":"github.com/kernel/kernel-go-sdk","version":"v0.159.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package kernel\n\n## Functions\n\n```go\nfunc Bool(b bool) param.Opt[bool]\n```\n\n```go\nfunc BoolPtr(v bool) *bool\n```\n\n```go\nfunc DefaultClientOptions() []option.RequestOption\n```\nDefaultClientOptions read from the environment (KERNEL\\_API\\_KEY, KERNEL\\_BASE\\_URL). This should be used to initialize new clients.\n\n```go\nfunc File(rdr io.Reader, filename string, contentType string) file\n```\n\n```go\nfunc Float(f float64) param.Opt[float64]\n```\n\n```go\nfunc FloatPtr(v float64) *float64\n```\n\n```go\nfunc Int(i int64) param.Opt[int64]\n```\n\n```go\nfunc IntPtr(v int64) *int64\n```\n\n```go\nfunc Opt[T comparable](v T) param.Opt[T]\n```\n\n```go\nfunc Ptr[T any](v T) *T\n```\n\n```go\nfunc String(s string) param.Opt[string]\n```\n\n```go\nfunc StringPtr(v string) *string\n```\n\n```go\nfunc Time(t time.Time) param.Opt[time.Time]\n```\n\n```go\nfunc TimePtr(v time.Time) *time.Time\n```\n\n## Types\n\n```go\ntype APIKey struct {\n\t// Unique API key identifier\n\tID string `json:\"id\" api:\"required\"`\n\t// When the API key was created\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Human audit creator, or null after creator deletion. Not the service\n\t// credential's principal.\n\tCreatedBy APIKeyCreatedBy `json:\"created_by\" api:\"required\"`\n\t// When the API key was deleted (soft-deleted). Null for keys that have not been\n\t// deleted.\n\tDeletedAt time.Time `json:\"deleted_at\" api:\"required\" format:\"date-time\"`\n\t// When the API key expires\n\tExpiresAt time.Time `json:\"expires_at\" api:\"required\" format:\"date-time\"`\n\t// When the API key last authenticated a request, accurate to within about 20\n\t// minutes. Null if the key has not been used since last-use tracking began.\n\tLastUsedAt time.Time `json:\"last_used_at\" api:\"required\" format:\"date-time\"`\n\t// Masked version of the API key\n\tMaskedKey string `json:\"masked_key\" api:\"required\"`\n\t// Label for the API key. API keys are not addressable by name; use the ID or key\n\t// identifier for stable references.\n\tName string `json:\"name\" api:\"required\"`\n\t// Project identifier for project-scoped API keys. Null means org-wide.\n\tProjectID string `json:\"project_id\" api:\"required\"`\n\t// Project name for project-scoped API keys. Null means the key is org-wide or the\n\t// project name is unavailable.\n\tProjectName string `json:\"project_name\" api:\"required\"`\n\t// Permissions granted to a scoped API key. Absent for an ordinary key, which keeps\n\t// unrestricted access within its organization or project.\n\tPolicy    APIKeyPolicy    `json:\"policy\" api:\"nullable\"`\n\tPrincipal APIKeyPrincipal `json:\"principal\"`\n\t// Organization-owned service principal, when linked.\n\tServiceAccountID string `json:\"service_account_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID               respjson.Field\n\t\tCreatedAt        respjson.Field\n\t\tCreatedBy        respjson.Field\n\t\tDeletedAt        respjson.Field\n\t\tExpiresAt        respjson.Field\n\t\tLastUsedAt       respjson.Field\n\t\tMaskedKey        respjson.Field\n\t\tName             respjson.Field\n\t\tProjectID        respjson.Field\n\t\tProjectName      respjson.Field\n\t\tPolicy           respjson.Field\n\t\tPrincipal        respjson.Field\n\t\tServiceAccountID respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r APIKey) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *APIKey) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype APIKeyCreatedBy struct {\n\t// Kernel user ID of the creator.\n\tID string `json:\"id\" api:\"required\"`\n\t// Email address of the creator.\n\tEmail string `json:\"email\" api:\"required\" format:\"email\"`\n\t// Display name of the creator, if available.\n\tName string `json:\"name\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tEmail       respjson.Field\n\t\tName        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nHuman audit creator, or null after creator deletion. Not the service credential's principal.\n\n```go\nfunc (r APIKeyCreatedBy) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *APIKeyCreatedBy) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype APIKeyGetParams struct {\n\t// When true, return the API key even if it has been deleted (soft-deleted), for\n\t// audit purposes. Defaults to false, which returns 404 for a deleted key.\n\tIncludeDeleted param.Opt[bool] `query:\"include_deleted,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r APIKeyGetParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [APIKeyGetParams](#APIKeyGetParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype APIKeyListParams struct {\n\t// Return only keys created by this user ID. This is the same person the key's\n\t// created_by field describes.\n\tCreatedBy param.Opt[string] `query:\"created_by,omitzero\" json:\"-\"`\n\t// Deprecated: use status=all instead. When true, include deleted (soft-deleted)\n\t// API keys in the results for audit purposes.\n\tIncludeDeleted param.Opt[bool] `query:\"include_deleted,omitzero\" json:\"-\"`\n\t// Maximum number of results to return\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Exact-match filter on API key name using the database collation. In production,\n\t// matching is case- and accent-insensitive. Names are not required to be unique,\n\t// so multiple keys may match. When status=all or include_deleted=true is set,\n\t// soft-deleted keys with the same name may also match.\n\tName param.Opt[string] `query:\"name,omitzero\" json:\"-\"`\n\t// Number of results to skip\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Return only keys scoped to this project ID. The value \"org\" returns keys that\n\t// are not scoped to a project.\n\tProjectID param.Opt[string] `query:\"project_id,omitzero\" json:\"-\"`\n\t// Case-insensitive substring match against API key name, creator, and project. API\n\t// key identifiers and masked keys match by exact value or prefix.\n\tQuery param.Opt[string] `query:\"query,omitzero\" json:\"-\"`\n\t// Return only keys that belong to this service account.\n\tServiceAccountID param.Opt[string] `query:\"service_account_id,omitzero\" json:\"-\"`\n\t// Return only keys that act as a user, or only keys that act as a service account.\n\t//\n\t// Any of \"user\", \"service_account\".\n\tPrincipalType APIKeyListParamsPrincipalType `query:\"principal_type,omitzero\" json:\"-\"`\n\t// Field to sort API keys by. Keys with no expiry or no recorded use sort last for\n\t// expires_at and last_used_at in either direction.\n\t//\n\t// Any of \"created_at\", \"name\", \"expires_at\", \"last_used_at\".\n\tSortBy APIKeyListParamsSortBy `query:\"sort_by,omitzero\" json:\"-\"`\n\t// Sort direction for API keys.\n\t//\n\t// Any of \"asc\", \"desc\".\n\tSortDirection APIKeyListParamsSortDirection `query:\"sort_direction,omitzero\" json:\"-\"`\n\t// Filter API keys by status. \"active\" returns keys that are neither deleted nor\n\t// expired (default), \"expired\" returns keys that are not deleted and whose expiry\n\t// has passed, \"deleted\" returns only soft-deleted keys, \"all\" returns every key.\n\t//\n\t// Any of \"active\", \"expired\", \"deleted\", \"all\".\n\tStatus APIKeyListParamsStatus `query:\"status,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r APIKeyListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [APIKeyListParams](#APIKeyListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype APIKeyListParamsPrincipalType string\n```\nReturn only keys that act as a user, or only keys that act as a service account.\n\n```go\nconst (\n\tAPIKeyListParamsPrincipalTypeUser           APIKeyListParamsPrincipalType = \"user\"\n\tAPIKeyListParamsPrincipalTypeServiceAccount APIKeyListParamsPrincipalType = \"service_account\"\n)\n```\n\n```go\ntype APIKeyListParamsSortBy string\n```\nField to sort API keys by. Keys with no expiry or no recorded use sort last for expires\\_at and last\\_used\\_at in either direction.\n\n```go\nconst (\n\tAPIKeyListParamsSortByCreatedAt  APIKeyListParamsSortBy = \"created_at\"\n\tAPIKeyListParamsSortByName       APIKeyListParamsSortBy = \"name\"\n\tAPIKeyListParamsSortByExpiresAt  APIKeyListParamsSortBy = \"expires_at\"\n\tAPIKeyListParamsSortByLastUsedAt APIKeyListParamsSortBy = \"last_used_at\"\n)\n```\n\n```go\ntype APIKeyListParamsSortDirection string\n```\nSort direction for API keys.\n\n```go\nconst (\n\tAPIKeyListParamsSortDirectionAsc  APIKeyListParamsSortDirection = \"asc\"\n\tAPIKeyListParamsSortDirectionDesc APIKeyListParamsSortDirection = \"desc\"\n)\n```\n\n```go\ntype APIKeyListParamsStatus string\n```\nFilter API keys by status. \"active\" returns keys that are neither deleted nor expired (default), \"expired\" returns keys that are not deleted and whose expiry has passed, \"deleted\" returns only soft-deleted keys, \"all\" returns every key.\n\n```go\nconst (\n\tAPIKeyListParamsStatusActive  APIKeyListParamsStatus = \"active\"\n\tAPIKeyListParamsStatusExpired APIKeyListParamsStatus = \"expired\"\n\tAPIKeyListParamsStatusDeleted APIKeyListParamsStatus = \"deleted\"\n\tAPIKeyListParamsStatusAll     APIKeyListParamsStatus = \"all\"\n)\n```\n\n```go\ntype APIKeyNewParams struct {\n\t// Label for the API key (1-255 characters). API keys are not addressable by name.\n\tName string `json:\"name\" api:\"required\"`\n\t// Number of days until expiry, up to 3650. Use null for never. Cannot be combined\n\t// with expires_at.\n\tDaysToExpire param.Opt[int64] `json:\"days_to_expire,omitzero\"`\n\t// Exact expiry time. Must be in the future and no later than the issuing\n\t// credential's own expiry. Cannot be combined with days_to_expire.\n\tExpiresAt param.Opt[time.Time] `json:\"expires_at,omitzero\" format:\"date-time\"`\n\t// Unique project identifier\n\tProjectID param.Opt[string] `json:\"project_id,omitzero\"`\n\t// Link to an active same-organization service account. Requires an organization\n\t// administrator, explicit project and nonempty policy. Omit for a personal key.\n\tServiceAccountID param.Opt[string] `json:\"service_account_id,omitzero\"`\n\t// Issue a scoped key that may only perform the listed actions on the listed\n\t// resources. A statement may carry a condition; a `source_ip` condition restricts\n\t// the statement to requests from inside its CIDR networks.\n\tPolicy APIKeyNewParamsPolicy `json:\"policy,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r APIKeyNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *APIKeyNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype APIKeyNewParamsPolicy struct {\n\t// Allow statements. Every action and resource not listed is denied.\n\tStatements []APIKeyNewParamsPolicyStatement `json:\"statements,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nIssue a scoped key that may only perform the listed actions on the listed resources. A statement may carry a condition; a \\`source\\_ip\\` condition restricts the statement to requests from inside its CIDR networks.\n\nThe property Statements is required.\n\n```go\nfunc (r APIKeyNewParamsPolicy) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *APIKeyNewParamsPolicy) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype APIKeyNewParamsPolicyStatement struct {\n\t// Permitted action, such as browsers:use or vaults:read. When creating an API key\n\t// or replacing its policy, `*` may replace whole components as shorthand:\n\t// browsers:_ names every browsers action, _:delete every delete action the\n\t// resource can carry, and _:_ every action the resource can carry. The stored\n\t// policy lists the concrete actions, so actions added later are not granted, and\n\t// api_keys:issue_beyond_expiry must always be listed explicitly. Partial\n\t// components such as brow*:use and a bare * are rejected. Other policies, such as\n\t// workload identity rules and deployment runtime policies, accept only exact\n\t// actions.\n\tAction string `json:\"action\" api:\"required\"`\n\t// Resource the action applies to, in the format projects/{project_id}/{kind}/{id}.\n\t// Wildcards are supported.\n\tResource string `json:\"resource\" api:\"required\"`\n\t// A condition narrows a policy statement to requests matching its constraint: the\n\t// request attribute, a comparison operator, and that operator's values.\n\tCondition APIKeyNewParamsPolicyStatementCondition `json:\"condition,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Action, Resource are required.\n\n```go\nfunc (r APIKeyNewParamsPolicyStatement) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *APIKeyNewParamsPolicyStatement) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype APIKeyNewParamsPolicyStatementCondition struct {\n\t// Request attribute the condition constrains. `source_ip` restricts the statement\n\t// to requests whose client address falls inside one of `values`.\n\t//\n\t// Any of \"source_ip\".\n\tKey string `json:\"key,omitzero\" api:\"required\"`\n\t// Comparison the condition applies between the request attribute and values.\n\t//\n\t// Any of \"in\".\n\tOperator string `json:\"operator,omitzero\" api:\"required\"`\n\t// Values the request attribute must match. For `source_ip`, CIDR networks: a bare\n\t// address without a mask is rejected, and so are an entry with host bits set and\n\t// an IPv4 network written in IPv6 notation.\n\tValues []string `json:\"values,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nA condition narrows a policy statement to requests matching its constraint: the request attribute, a comparison operator, and that operator's values.\n\nThe properties Key, Operator, Values are required.\n\n```go\nfunc (r APIKeyNewParamsPolicyStatementCondition) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *APIKeyNewParamsPolicyStatementCondition) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype APIKeyPolicy struct {\n\t// Allow statements. Every action and resource not listed is denied.\n\tStatements []APIKeyPolicyStatement `json:\"statements\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tStatements  respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPermissions granted to a scoped API key. Absent for an ordinary key, which keeps unrestricted access within its organization or project.\n\n```go\nfunc (r APIKeyPolicy) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *APIKeyPolicy) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype APIKeyPolicyStatement struct {\n\t// Permitted action, such as browsers:use or vaults:read. When creating an API key\n\t// or replacing its policy, `*` may replace whole components as shorthand:\n\t// browsers:_ names every browsers action, _:delete every delete action the\n\t// resource can carry, and _:_ every action the resource can carry. The stored\n\t// policy lists the concrete actions, so actions added later are not granted, and\n\t// api_keys:issue_beyond_expiry must always be listed explicitly. Partial\n\t// components such as brow*:use and a bare * are rejected. Other policies, such as\n\t// workload identity rules and deployment runtime policies, accept only exact\n\t// actions.\n\tAction string `json:\"action\" api:\"required\"`\n\t// Resource the action applies to, in the format projects/{project_id}/{kind}/{id}.\n\t// Wildcards are supported.\n\tResource string `json:\"resource\" api:\"required\"`\n\t// A condition narrows a policy statement to requests matching its constraint: the\n\t// request attribute, a comparison operator, and that operator's values.\n\tCondition APIKeyPolicyStatementCondition `json:\"condition\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAction      respjson.Field\n\t\tResource    respjson.Field\n\t\tCondition   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r APIKeyPolicyStatement) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *APIKeyPolicyStatement) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype APIKeyPolicyStatementCondition struct {\n\t// Request attribute the condition constrains. `source_ip` restricts the statement\n\t// to requests whose client address falls inside one of `values`.\n\t//\n\t// Any of \"source_ip\".\n\tKey string `json:\"key\" api:\"required\"`\n\t// Comparison the condition applies between the request attribute and values.\n\t//\n\t// Any of \"in\".\n\tOperator string `json:\"operator\" api:\"required\"`\n\t// Values the request attribute must match. For `source_ip`, CIDR networks: a bare\n\t// address without a mask is rejected, and so are an entry with host bits set and\n\t// an IPv4 network written in IPv6 notation.\n\tValues []string `json:\"values\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tKey         respjson.Field\n\t\tOperator    respjson.Field\n\t\tValues      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA condition narrows a policy statement to requests matching its constraint: the request attribute, a comparison operator, and that operator's values.\n\n```go\nfunc (r APIKeyPolicyStatementCondition) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *APIKeyPolicyStatementCondition) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype APIKeyPrincipal struct {\n\tID string `json:\"id\" api:\"required\"`\n\t// Any of \"user\", \"service_account\".\n\tType APIKeyPrincipalType `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r APIKeyPrincipal) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *APIKeyPrincipal) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype APIKeyPrincipalType string\n```\n\n```go\nconst (\n\tAPIKeyPrincipalTypeUser           APIKeyPrincipalType = \"user\"\n\tAPIKeyPrincipalTypeServiceAccount APIKeyPrincipalType = \"service_account\"\n)\n```\n\n```go\ntype APIKeyRotateParams struct {\n\t// Lifetime in days for the new key, up to 3650. Omit to reuse the rotated key's\n\t// original lifetime, or never-expires if it had none.\n\tDaysToExpire param.Opt[int64] `json:\"days_to_expire,omitzero\"`\n\t// Grace period in days before the rotated key expires. Use 0 to expire it\n\t// immediately. Omit for the default grace period of 7 days.\n\tExpireInDays param.Opt[int64] `json:\"expire_in_days,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r APIKeyRotateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *APIKeyRotateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype APIKeyService struct {\n\tOptions []option.RequestOption\n}\n```\nCreate and manage API keys for organization and project-scoped access.\n\nAPIKeyService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewAPIKeyService](#NewAPIKeyService) method instead.\n\n```go\nfunc NewAPIKeyService(opts ...option.RequestOption) (r APIKeyService)\n```\nNewAPIKeyService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *APIKeyService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)\n```\nDelete an API key and asynchronously end browser sessions attributed to it, discarding unsaved profile changes. A key cannot delete itself; use a different key to delete this one. If cleanup cannot be registered, the key is not deleted.\n\n```go\nfunc (r *APIKeyService) Get(ctx context.Context, id string, query APIKeyGetParams, opts ...option.RequestOption) (res *APIKey, err error)\n```\nRetrieve an API key by ID for the authenticated organization. API keys are masked.\n\n```go\nfunc (r *APIKeyService) List(ctx context.Context, query APIKeyListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[APIKey], err error)\n```\nList API keys for the authenticated organization. API keys are masked.\n\n```go\nfunc (r *APIKeyService) ListAutoPaging(ctx context.Context, query APIKeyListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[APIKey]\n```\nList API keys for the authenticated organization. API keys are masked.\n\n```go\nfunc (r *APIKeyService) New(ctx context.Context, body APIKeyNewParams, opts ...option.RequestOption) (res *CreatedAPIKey, err error)\n```\nCreate a personal API key, or link a key to an organization-owned service account. Service-account keys require an organization administrator, explicit project and nonempty policy. An optional \\`policy\\` scopes the key to its listed actions and resources, and each statement may carry a \\`condition\\`. A \\`source\\_ip\\` condition restricts the statement to requests whose client address falls inside its CIDR networks, so a key limited to your egress IP ranges only works from your network, even if its secret leaks.\n\n```go\nfunc (r *APIKeyService) Rotate(ctx context.Context, id string, body APIKeyRotateParams, opts ...option.RequestOption) (res *CreatedAPIKey, err error)\n```\nRotate an API key. Issues a new key that copies the name and project of the rotated key, and schedules the rotated key to expire after a grace period so in-flight callers can swap over. The new plaintext key is returned once. With expire\\_in\\_days set to 0, browser sessions attributed to the old key are ended asynchronously and unsaved profile changes are discarded. Grace-period and natural expiry do not end existing browsers. If cleanup cannot be registered, an immediate rotation is not committed. Service-account keys retain their service principal and policy; the rotating administrator is recorded separately for audit.\n\n```go\nfunc (r *APIKeyService) Update(ctx context.Context, id string, body APIKeyUpdateParams, opts ...option.RequestOption) (res *APIKey, err error)\n```\nUpdate an API key's name, or replace its permissions by attaching a new policy in place: the key's credential never changes, so consumers keep the same secret. The replacement policy may carry \\`source\\_ip\\` conditions, so you can add, change, or remove IP allowlisting on an existing key without rotating its credential. A present \\`policy\\` fully replaces the key's policy and takes effect for new requests within the authorization cache; requests from outside a condition's networks get \\`403\\` and are recorded in the audit log with the client address. Requires api\\_keys:write to rename; api\\_keys:set\\_policy to replace permissions.\n\n```go\ntype APIKeyUpdateParams struct {\n\t// New API key name\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// Permissions that fully replace the key's policy. Attaching a policy to a key\n\t// without one makes the key scoped: every action and resource the policy does not\n\t// list is denied. The key's credential, name, project, and expiry are unchanged,\n\t// so consumers never need the key redistributed. A `source_ip` condition adds or\n\t// changes IP allowlisting without rotating the credential. Requires\n\t// api_keys:set_policy on the key.\n\tPolicy APIKeyUpdateParamsPolicy `json:\"policy,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r APIKeyUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *APIKeyUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype APIKeyUpdateParamsPolicy struct {\n\t// Allow statements. Every action and resource not listed is denied.\n\tStatements []APIKeyUpdateParamsPolicyStatement `json:\"statements,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nPermissions that fully replace the key's policy. Attaching a policy to a key without one makes the key scoped: every action and resource the policy does not list is denied. The key's credential, name, project, and expiry are unchanged, so consumers never need the key redistributed. A \\`source\\_ip\\` condition adds or changes IP allowlisting without rotating the credential. Requires api\\_keys:set\\_policy on the key.\n\nThe property Statements is required.\n\n```go\nfunc (r APIKeyUpdateParamsPolicy) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *APIKeyUpdateParamsPolicy) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype APIKeyUpdateParamsPolicyStatement struct {\n\t// Permitted action, such as browsers:use or vaults:read. When creating an API key\n\t// or replacing its policy, `*` may replace whole components as shorthand:\n\t// browsers:_ names every browsers action, _:delete every delete action the\n\t// resource can carry, and _:_ every action the resource can carry. The stored\n\t// policy lists the concrete actions, so actions added later are not granted, and\n\t// api_keys:issue_beyond_expiry must always be listed explicitly. Partial\n\t// components such as brow*:use and a bare * are rejected. Other policies, such as\n\t// workload identity rules and deployment runtime policies, accept only exact\n\t// actions.\n\tAction string `json:\"action\" api:\"required\"`\n\t// Resource the action applies to, in the format projects/{project_id}/{kind}/{id}.\n\t// Wildcards are supported.\n\tResource string `json:\"resource\" api:\"required\"`\n\t// A condition narrows a policy statement to requests matching its constraint: the\n\t// request attribute, a comparison operator, and that operator's values.\n\tCondition APIKeyUpdateParamsPolicyStatementCondition `json:\"condition,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Action, Resource are required.\n\n```go\nfunc (r APIKeyUpdateParamsPolicyStatement) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *APIKeyUpdateParamsPolicyStatement) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype APIKeyUpdateParamsPolicyStatementCondition struct {\n\t// Request attribute the condition constrains. `source_ip` restricts the statement\n\t// to requests whose client address falls inside one of `values`.\n\t//\n\t// Any of \"source_ip\".\n\tKey string `json:\"key,omitzero\" api:\"required\"`\n\t// Comparison the condition applies between the request attribute and values.\n\t//\n\t// Any of \"in\".\n\tOperator string `json:\"operator,omitzero\" api:\"required\"`\n\t// Values the request attribute must match. For `source_ip`, CIDR networks: a bare\n\t// address without a mask is rejected, and so are an entry with host bits set and\n\t// an IPv4 network written in IPv6 notation.\n\tValues []string `json:\"values,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nA condition narrows a policy statement to requests matching its constraint: the request attribute, a comparison operator, and that operator's values.\n\nThe properties Key, Operator, Values are required.\n\n```go\nfunc (r APIKeyUpdateParamsPolicyStatementCondition) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *APIKeyUpdateParamsPolicyStatementCondition) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AddPaymentMethodVaultItemOperationRequestEnrollment string\n```\nhosted returns a card\\_enrollment link for the cardholder. server returns a card\\_ingest URL for the card's issuer to post the card to server to server.\n\n```go\nconst (\n\tAddPaymentMethodVaultItemOperationRequestEnrollmentHosted AddPaymentMethodVaultItemOperationRequestEnrollment = \"hosted\"\n\tAddPaymentMethodVaultItemOperationRequestEnrollmentServer AddPaymentMethodVaultItemOperationRequestEnrollment = \"server\"\n)\n```\n\n```go\ntype AddPaymentMethodVaultItemOperationRequestParam struct {\n\t// Any of \"add_payment_method\".\n\tType AddPaymentMethodVaultItemOperationRequestType `json:\"type,omitzero\" api:\"required\"`\n\t// hosted returns a card_enrollment link for the cardholder. server returns a\n\t// card_ingest URL for the card's issuer to post the card to server to server.\n\t//\n\t// Any of \"hosted\", \"server\".\n\tEnrollment AddPaymentMethodVaultItemOperationRequestEnrollment `json:\"enrollment,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nStart enrollment of a card in a connected Kernel wallet, including its first card, only when the wallet advertises add\\_payment\\_method. Returns a new payment method in pending\\_enrollment with a single-use action. Card details go directly to the card vault and are never accepted by this API. With enrollment hosted (the default) the action is a card\\_enrollment URL for the cardholder, which expires after 30 minutes. With enrollment server the action is a card\\_ingest URL that the card's issuer posts the card to from its backend, which expires after 5 minutes; server enrollment returns 409 when it is not configured for the organization's card backend. A failed or expired enrollment does not affect the wallet's other payment methods. Scoped API keys require vaults:write in addition to vaults:use on this vault; otherwise the operation returns 403.\n\nThe property Type is required.\n\n```go\nfunc (r AddPaymentMethodVaultItemOperationRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *AddPaymentMethodVaultItemOperationRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AddPaymentMethodVaultItemOperationRequestType string\n```\n\n```go\nconst (\n\tAddPaymentMethodVaultItemOperationRequestTypeAddPaymentMethod AddPaymentMethodVaultItemOperationRequestType = \"add_payment_method\"\n)\n```\n\n```go\ntype AddPaymentMethodVaultItemOperationResult struct {\n\tPaymentMethod VaultPaymentMethod `json:\"payment_method\" api:\"required\"`\n\t// Any of \"add_payment_method\".\n\tType AddPaymentMethodVaultItemOperationResultType `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tPaymentMethod respjson.Field\n\t\tType          respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nThe payment method created in pending\\_enrollment. Deliver a card\\_enrollment action.url to the cardholder; it is a single-use capability and must not be logged. A card\\_ingest action.url is posted to by the card's issuer. Observe completion through the wallet's payment\\_methods expansion.\n\n```go\nfunc (r AddPaymentMethodVaultItemOperationResult) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AddPaymentMethodVaultItemOperationResult) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AddPaymentMethodVaultItemOperationResultType string\n```\n\n```go\nconst (\n\tAddPaymentMethodVaultItemOperationResultTypeAddPaymentMethod AddPaymentMethodVaultItemOperationResultType = \"add_payment_method\"\n)\n```\n\n```go\ntype AddRequestParam struct {\n\tNamespace string `json:\"namespace\" api:\"required\"`\n\t// JavaScript expression that evaluates to a non-empty array of custom tool\n\t// definitions. Limited to 8,000,000 bytes when UTF-8 encoded, so multi-byte\n\t// characters reduce the allowed character count.\n\tSource string `json:\"source\" api:\"required\"`\n\t// Atomically replace all existing tools in this namespace with this batch when\n\t// true.\n\tForceOverwriteNamespace param.Opt[bool] `json:\"force_overwrite_namespace,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Namespace, Source are required.\n\n```go\nfunc (r AddRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *AddRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AgentcardCheckoutAuthorization struct {\n\tID          string    `json:\"id\" api:\"required\"`\n\tAmountCents int64     `json:\"amount_cents\" api:\"required\"`\n\tCreatedAt   time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\tCurrency    string    `json:\"currency\" api:\"required\"`\n\tMerchant    string    `json:\"merchant\" api:\"required\"`\n\tPsp         string    `json:\"psp\" api:\"required\"`\n\t// Any of \"awaiting_approval\", \"approved\", \"declined\", \"expired\".\n\tStatus      AgentcardCheckoutAuthorizationStatus `json:\"status\" api:\"required\"`\n\tActualCents int64                                `json:\"actual_cents\"`\n\t// Display amount shown on the approval screen.\n\tAmount string `json:\"amount\"`\n\t// Source of the approved amount. `processor` is read from the processor request or\n\t// payment; `agent` is the item's declared amount; `page` is the checkout page\n\t// total; `none` means no amount was named. `display_only` appears only on\n\t// authorizations recovered without a provider read. `agent` and `display_only`\n\t// don't prove what the processor charged.\n\t//\n\t// Any of \"processor\", \"agent\", \"page\", \"none\", \"display_only\".\n\tAmountAuthority AgentcardCheckoutAuthorizationAmountAuthority `json:\"amount_authority\"`\n\t// Whether the processor charged the approved amount. Absent when there was no\n\t// charge to compare, including tokenization checkouts.\n\tAmountVerified bool   `json:\"amount_verified\"`\n\tApprovalURL    string `json:\"approval_url\" format:\"uri\"`\n\t// Browser session that submitted the checkout.\n\tBrowserID string `json:\"browser_id\"`\n\t// Amount the processor reported collecting. Absent when the provider didn't\n\t// observe a charge.\n\tChargedAmountCents int64 `json:\"charged_amount_cents\"`\n\t// Currency of `charged_amount_cents`. Absent when the provider didn't observe a\n\t// charge.\n\tChargedCurrency string `json:\"charged_currency\"`\n\t// What the processor collected. `none` means the checkout produced a token or\n\t// payment method that the merchant charges later. Absent when the provider\n\t// reported nothing, which is common for tokenization checkouts; use item events\n\t// and the merchant's order record instead.\n\t//\n\t// Any of \"captured\", \"authorized\", \"none\".\n\tChargedKind     AgentcardCheckoutAuthorizationChargedKind `json:\"charged_kind\"`\n\tExpectedCents   int64                                     `json:\"expected_cents\"`\n\tExpiresAt       time.Time                                 `json:\"expires_at\" format:\"date-time\"`\n\tPspErrorCode    string                                    `json:\"psp_error_code\"`\n\tReason          string                                    `json:\"reason\"`\n\tReplayAttempted bool                                      `json:\"replay_attempted\"`\n\t// Whether the processor response was delivered to the browser.\n\tReplayDelivered bool `json:\"replay_delivered\"`\n\t// HTTP status of the replayed processor response.\n\tReplayStatus int64 `json:\"replay_status\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                 respjson.Field\n\t\tAmountCents        respjson.Field\n\t\tCreatedAt          respjson.Field\n\t\tCurrency           respjson.Field\n\t\tMerchant           respjson.Field\n\t\tPsp                respjson.Field\n\t\tStatus             respjson.Field\n\t\tActualCents        respjson.Field\n\t\tAmount             respjson.Field\n\t\tAmountAuthority    respjson.Field\n\t\tAmountVerified     respjson.Field\n\t\tApprovalURL        respjson.Field\n\t\tBrowserID          respjson.Field\n\t\tChargedAmountCents respjson.Field\n\t\tChargedCurrency    respjson.Field\n\t\tChargedKind        respjson.Field\n\t\tExpectedCents      respjson.Field\n\t\tExpiresAt          respjson.Field\n\t\tPspErrorCode       respjson.Field\n\t\tReason             respjson.Field\n\t\tReplayAttempted    respjson.Field\n\t\tReplayDelivered    respjson.Field\n\t\tReplayStatus       respjson.Field\n\t\tExtraFields        map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nThe in-flight or most recent checkout authorization. Present while a checkout is pending approval and after it settles.\n\n```go\nfunc (r AgentcardCheckoutAuthorization) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AgentcardCheckoutAuthorization) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AgentcardCheckoutAuthorizationAmountAuthority string\n```\nSource of the approved amount. \\`processor\\` is read from the processor request or payment; \\`agent\\` is the item's declared amount; \\`page\\` is the checkout page total; \\`none\\` means no amount was named. \\`display\\_only\\` appears only on authorizations recovered without a provider read. \\`agent\\` and \\`display\\_only\\` don't prove what the processor charged.\n\n```go\nconst (\n\tAgentcardCheckoutAuthorizationAmountAuthorityProcessor   AgentcardCheckoutAuthorizationAmountAuthority = \"processor\"\n\tAgentcardCheckoutAuthorizationAmountAuthorityAgent       AgentcardCheckoutAuthorizationAmountAuthority = \"agent\"\n\tAgentcardCheckoutAuthorizationAmountAuthorityPage        AgentcardCheckoutAuthorizationAmountAuthority = \"page\"\n\tAgentcardCheckoutAuthorizationAmountAuthorityNone        AgentcardCheckoutAuthorizationAmountAuthority = \"none\"\n\tAgentcardCheckoutAuthorizationAmountAuthorityDisplayOnly AgentcardCheckoutAuthorizationAmountAuthority = \"display_only\"\n)\n```\n\n```go\ntype AgentcardCheckoutAuthorizationChargedKind string\n```\nWhat the processor collected. \\`none\\` means the checkout produced a token or payment method that the merchant charges later. Absent when the provider reported nothing, which is common for tokenization checkouts; use item events and the merchant's order record instead.\n\n```go\nconst (\n\tAgentcardCheckoutAuthorizationChargedKindCaptured   AgentcardCheckoutAuthorizationChargedKind = \"captured\"\n\tAgentcardCheckoutAuthorizationChargedKindAuthorized AgentcardCheckoutAuthorizationChargedKind = \"authorized\"\n\tAgentcardCheckoutAuthorizationChargedKindNone       AgentcardCheckoutAuthorizationChargedKind = \"none\"\n)\n```\n\n```go\ntype AgentcardCheckoutAuthorizationStatus string\n```\n\n```go\nconst (\n\tAgentcardCheckoutAuthorizationStatusAwaitingApproval AgentcardCheckoutAuthorizationStatus = \"awaiting_approval\"\n\tAgentcardCheckoutAuthorizationStatusApproved         AgentcardCheckoutAuthorizationStatus = \"approved\"\n\tAgentcardCheckoutAuthorizationStatusDeclined         AgentcardCheckoutAuthorizationStatus = \"declined\"\n\tAgentcardCheckoutAuthorizationStatusExpired          AgentcardCheckoutAuthorizationStatus = \"expired\"\n)\n```\n\n```go\ntype AgentcardCheckoutPreparation struct {\n\tBrowserID string    `json:\"browser_id\" api:\"required\"`\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Any of \"production\", \"sandbox\", \"shared\".\n\tEnvironment    AgentcardCheckoutPreparationEnvironment `json:\"environment\" api:\"required\"`\n\tMerchantOrigin string                                  `json:\"merchant_origin\" api:\"required\"`\n\t// Any of \"square\", \"braintree\", \"worldpay\", \"bambora\", \"mercado_pago\", \"adyen\".\n\tPsp AgentcardPreparedProcessor `json:\"psp\" api:\"required\"`\n\t// Preparation consumed means egress claimed the preparation and it cannot be\n\t// reused. It does not mean the attempt settled. Use the enclosing item's status as\n\t// the lifecycle indicator; item consumed means the attempt settled, not that an\n\t// order or charge succeeded.\n\t//\n\t// Any of \"creating\", \"awaiting_approval\", \"ready\", \"consumed\", \"cancelled\",\n\t// \"expired\", \"unknown\".\n\tStatus      AgentcardCheckoutPreparationStatus `json:\"status\" api:\"required\"`\n\tID          string                             `json:\"id\"`\n\tApprovalURL string                             `json:\"approval_url\" format:\"uri\"`\n\t// When ready, the absolute deadline to submit the first native request; no later\n\t// than provider readiness expiry or 30 seconds after Kernel first observes\n\t// readiness. Polling never extends this deadline.\n\tExpiresAt time.Time `json:\"expires_at\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBrowserID      respjson.Field\n\t\tCreatedAt      respjson.Field\n\t\tEnvironment    respjson.Field\n\t\tMerchantOrigin respjson.Field\n\t\tPsp            respjson.Field\n\t\tStatus         respjson.Field\n\t\tID             respjson.Field\n\t\tApprovalURL    respjson.Field\n\t\tExpiresAt      respjson.Field\n\t\tExtraFields    map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOne-use processor-bound checkout preparation. Keep the approval page open through device handoff, including Adyen encryption. The amount is declared by the caller and does not constrain the merchant's eventual charge. Adyen device approval and browser Authorised responses are not capture or fulfillment evidence.\n\n```go\nfunc (r AgentcardCheckoutPreparation) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AgentcardCheckoutPreparation) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AgentcardCheckoutPreparationEnvironment string\n```\n\n```go\nconst (\n\tAgentcardCheckoutPreparationEnvironmentProduction AgentcardCheckoutPreparationEnvironment = \"production\"\n\tAgentcardCheckoutPreparationEnvironmentSandbox    AgentcardCheckoutPreparationEnvironment = \"sandbox\"\n\tAgentcardCheckoutPreparationEnvironmentShared     AgentcardCheckoutPreparationEnvironment = \"shared\"\n)\n```\n\n```go\ntype AgentcardCheckoutPreparationStatus string\n```\nPreparation consumed means egress claimed the preparation and it cannot be reused. It does not mean the attempt settled. Use the enclosing item's status as the lifecycle indicator; item consumed means the attempt settled, not that an order or charge succeeded.\n\n```go\nconst (\n\tAgentcardCheckoutPreparationStatusCreating         AgentcardCheckoutPreparationStatus = \"creating\"\n\tAgentcardCheckoutPreparationStatusAwaitingApproval AgentcardCheckoutPreparationStatus = \"awaiting_approval\"\n\tAgentcardCheckoutPreparationStatusReady            AgentcardCheckoutPreparationStatus = \"ready\"\n\tAgentcardCheckoutPreparationStatusConsumed         AgentcardCheckoutPreparationStatus = \"consumed\"\n\tAgentcardCheckoutPreparationStatusCancelled        AgentcardCheckoutPreparationStatus = \"cancelled\"\n\tAgentcardCheckoutPreparationStatusExpired          AgentcardCheckoutPreparationStatus = \"expired\"\n\tAgentcardCheckoutPreparationStatusUnknown          AgentcardCheckoutPreparationStatus = \"unknown\"\n)\n```\n\n```go\ntype AgentcardPreparedProcessor string\n```\n\n```go\nconst (\n\tAgentcardPreparedProcessorSquare      AgentcardPreparedProcessor = \"square\"\n\tAgentcardPreparedProcessorBraintree   AgentcardPreparedProcessor = \"braintree\"\n\tAgentcardPreparedProcessorWorldpay    AgentcardPreparedProcessor = \"worldpay\"\n\tAgentcardPreparedProcessorBambora     AgentcardPreparedProcessor = \"bambora\"\n\tAgentcardPreparedProcessorMercadoPago AgentcardPreparedProcessor = \"mercado_pago\"\n\tAgentcardPreparedProcessorAdyen       AgentcardPreparedProcessor = \"adyen\"\n)\n```\n\n```go\ntype Analysis struct {\n\t// Discovery run ID used to poll analysis status.\n\tID string `json:\"id\" api:\"required\"`\n\t// Time the analysis was created.\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Deadline after which a still-running analysis becomes expired.\n\tExpiresAt time.Time `json:\"expires_at\" api:\"required\" format:\"date-time\"`\n\t// Present for failed, canceled, or expired analyses. Messages contain safe retry\n\t// guidance rather than internal workflow errors.\n\tFailure shared.ErrorModel `json:\"failure\" api:\"required\"`\n\t// Time the analysis reached a terminal status. Null while it is running.\n\tFinishedAt time.Time `json:\"finished_at\" api:\"required\" format:\"date-time\"`\n\t// Lifecycle status of a background analysis.\n\t//\n\t// Any of \"running\", \"completed\", \"failed\", \"canceled\", \"expired\".\n\tStatus AnalysisStatus `json:\"status\" api:\"required\"`\n\t// The workload description supplied for this analysis. Null when the analysis only\n\t// tested connectivity.\n\tIntent string `json:\"intent\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tCreatedAt   respjson.Field\n\t\tExpiresAt   respjson.Field\n\t\tFailure     respjson.Field\n\t\tFinishedAt  respjson.Field\n\t\tStatus      respjson.Field\n\t\tIntent      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r Analysis) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Analysis) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AnalysisStatus string\n```\nLifecycle status of a background analysis.\n\n```go\nconst (\n\tAnalysisStatusRunning   AnalysisStatus = \"running\"\n\tAnalysisStatusCompleted AnalysisStatus = \"completed\"\n\tAnalysisStatusFailed    AnalysisStatus = \"failed\"\n\tAnalysisStatusCanceled  AnalysisStatus = \"canceled\"\n\tAnalysisStatusExpired   AnalysisStatus = \"expired\"\n)\n```\n\n```go\ntype AnalysisSummary struct {\n\tAnalysis Analysis `json:\"analysis\" api:\"required\"`\n\tTarget   Target   `json:\"target\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAnalysis    respjson.Field\n\t\tTarget      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r AnalysisSummary) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AnalysisSummary) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AppAction = shared.AppAction\n```\nAn action available on the app\n\nThis is an alias to an internal type.\n\n```go\ntype AppListParams struct {\n\t// Filter results by application name.\n\tAppName param.Opt[string] `query:\"app_name,omitzero\" json:\"-\"`\n\t// Limit the number of apps to return.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Offset the number of apps to return.\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Search apps by name.\n\tQuery param.Opt[string] `query:\"query,omitzero\" json:\"-\"`\n\t// Filter results by version label.\n\tVersion param.Opt[string] `query:\"version,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r AppListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [AppListParams](#AppListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype AppListResponse struct {\n\t// Unique identifier for the app version\n\tID string `json:\"id\" api:\"required\"`\n\t// List of actions available on the app\n\tActions []shared.AppAction `json:\"actions\" api:\"required\"`\n\t// Name of the application\n\tAppName string `json:\"app_name\" api:\"required\"`\n\t// Deployment ID\n\tDeployment string `json:\"deployment\" api:\"required\"`\n\t// Environment variables configured for this app version. Values are redacted for\n\t// API key, OAuth, and managed-auth callers, which receive every key with an empty\n\t// string value. Only dashboard sessions receive the actual values.\n\tEnvVars map[string]string `json:\"env_vars\" api:\"required\"`\n\t// Deployment region code\n\tRegion constant.AwsUsEast1a `json:\"region\" default:\"aws.us-east-1a\"`\n\t// Version label for the application\n\tVersion string `json:\"version\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tActions     respjson.Field\n\t\tAppName     respjson.Field\n\t\tDeployment  respjson.Field\n\t\tEnvVars     respjson.Field\n\t\tRegion      respjson.Field\n\t\tVersion     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSummary of an application version.\n\n```go\nfunc (r AppListResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AppListResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AppService struct {\n\tOptions []option.RequestOption\n}\n```\nList applications and versions.\n\nAppService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewAppService](#NewAppService) method instead.\n\n```go\nfunc NewAppService(opts ...option.RequestOption) (r AppService)\n```\nNewAppService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *AppService) List(ctx context.Context, query AppListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[AppListResponse], err error)\n```\nList applications. Optionally filter by app name and/or version label.\n\n```go\nfunc (r *AppService) ListAutoPaging(ctx context.Context, query AppListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[AppListResponse]\n```\nList applications. Optionally filter by app name and/or version label.\n\n```go\ntype ArmPasskeyVaultItemOperationRequestParam struct {\n\t// Browser session ID, not a reusable browser name.\n\tBrowserID string `json:\"browser_id\" api:\"required\"`\n\t// Any of \"arm_passkey\".\n\tType ArmPasskeyVaultItemOperationRequestType `json:\"type,omitzero\" api:\"required\"`\n\t// Passkey field to arm. Required when more than one passkey field holds a passkey.\n\tField param.Opt[string] `json:\"field,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nLet a browser attached to the item's vault sign in with a stored passkey. Only invoke when the item advertises \\`arm\\_passkey\\`. Returns immediately; there is no time limit. While armed, when a page in that browser whose origin matches the passkey's relying party asks for a passkey (\\`navigator.credentials.get\\`, including autofill requests made at page load), Kernel answers with this passkey. The private key never enters the browser: Kernel signs on its servers, using the origin Chrome reports for the requesting frame. Arming a passkey for a relying party replaces any passkey armed earlier in the browser for the same relying party. The arm lasts until \\`disarm\\_passkey\\`, the browser ends, the vault is detached, or the item or field is deleted. Drive the sign-in with your own browser tools and inspect the page to confirm it. A page opened in a new tab or window can run its first scripts before Kernel's handler attaches; if such a page asks for a passkey as soon as it loads, reload it. While armed, any script running on the relying party's pages can obtain a sign-in without user interaction, as with a password manager that fills automatically; disarm when the task is done. Passkeys report a signature counter of 0 and backup flags, as synced passkeys do.\n\nThe properties BrowserID, Type are required.\n\n```go\nfunc (r ArmPasskeyVaultItemOperationRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ArmPasskeyVaultItemOperationRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ArmPasskeyVaultItemOperationRequestType string\n```\n\n```go\nconst (\n\tArmPasskeyVaultItemOperationRequestTypeArmPasskey ArmPasskeyVaultItemOperationRequestType = \"arm_passkey\"\n)\n```\n\n```go\ntype Attempt struct {\n\tDurationMs int64 `json:\"duration_ms\" api:\"required\"`\n\t// Any of \"success\", \"empty\", \"error\", \"timeout\".\n\tOutcome   AttemptOutcome `json:\"outcome\" api:\"required\"`\n\tProvider  string         `json:\"provider\" api:\"required\"`\n\tErrorCode string         `json:\"error_code\"`\n\tRetryable bool           `json:\"retryable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDurationMs  respjson.Field\n\t\tOutcome     respjson.Field\n\t\tProvider    respjson.Field\n\t\tErrorCode   respjson.Field\n\t\tRetryable   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r Attempt) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Attempt) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AttemptOutcome string\n```\n\n```go\nconst (\n\tAttemptOutcomeSuccess AttemptOutcome = \"success\"\n\tAttemptOutcomeEmpty   AttemptOutcome = \"empty\"\n\tAttemptOutcomeError   AttemptOutcome = \"error\"\n\tAttemptOutcomeTimeout AttemptOutcome = \"timeout\"\n)\n```\n\n```go\ntype AuditLogDownloadOption func(*auditLogDownloadConfig)\n```\nAuditLogDownloadOption configures an audit log download.\n\n```go\nfunc WithAuditLogDownloadMaxTransferRetries(retries int) AuditLogDownloadOption\n```\nWithAuditLogDownloadMaxTransferRetries sets the number of retries for body read and checksum failures. HTTP retries remain controlled by request options.\n\n```go\nfunc WithAuditLogDownloadProgress(fn func(AuditLogDownloadProgress)) AuditLogDownloadOption\n```\nWithAuditLogDownloadProgress registers a callback that runs after each chunk is verified and written.\n\n```go\nfunc WithAuditLogDownloadRequestOptions(opts ...option.RequestOption) AuditLogDownloadOption\n```\nWithAuditLogDownloadRequestOptions applies request options, including the standard HTTP retry policy, to every chunk request.\n\n```go\ntype AuditLogDownloadParams struct {\n\tEnd           time.Time\n\tStart         time.Time\n\tAuthStrategy  param.Opt[string]\n\tLimit         param.Opt[int64]\n\tMethod        param.Opt[string]\n\tSearch        param.Opt[string]\n\tService       param.Opt[string]\n\tExcludeMethod []string\n\tSearchUserID  []string\n}\n```\nAuditLogDownloadParams configures a complete audit log export.\n\n```go\ntype AuditLogDownloadProgress struct {\n\tAuditLogDownloadResult\n\tChunkRows int64\n}\n```\nAuditLogDownloadProgress reports progress after a verified chunk is written.\n\n```go\ntype AuditLogDownloadResult struct {\n\tBytesWritten int64\n\tChunks       int\n\tRows         int64\n}\n```\nAuditLogDownloadResult summarizes a completed audit log download.\n\n```go\ntype AuditLogEntry struct {\n\t// Authentication strategy used for the request.\n\tAuthStrategy string `json:\"auth_strategy\" api:\"required\"`\n\t// Client IP address.\n\tClientIP string `json:\"client_ip\" api:\"required\"`\n\t// Request host.\n\tDomain string `json:\"domain\" api:\"required\"`\n\t// Request duration in milliseconds.\n\tDurationMs int64 `json:\"duration_ms\" api:\"required\"`\n\t// Email of the authenticated user at request time, if any.\n\tEmail string `json:\"email\" api:\"required\"`\n\t// HTTP method.\n\tMethod string `json:\"method\" api:\"required\"`\n\t// Request path.\n\tPath string `json:\"path\" api:\"required\"`\n\t// Matched API route pattern, if available.\n\tRoute string `json:\"route\" api:\"required\"`\n\t// HTTP response status code.\n\tStatus int64 `json:\"status\" api:\"required\"`\n\t// UTC time when the request was received.\n\tTimestamp time.Time `json:\"timestamp\" api:\"required\" format:\"date-time\"`\n\t// User agent header.\n\tUserAgent string `json:\"user_agent\" api:\"required\"`\n\t// ID of the authenticated user, if any.\n\tUserID string `json:\"user_id\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAuthStrategy respjson.Field\n\t\tClientIP     respjson.Field\n\t\tDomain       respjson.Field\n\t\tDurationMs   respjson.Field\n\t\tEmail        respjson.Field\n\t\tMethod       respjson.Field\n\t\tPath         respjson.Field\n\t\tRoute        respjson.Field\n\t\tStatus       respjson.Field\n\t\tTimestamp    respjson.Field\n\t\tUserAgent    respjson.Field\n\t\tUserID       respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r AuditLogEntry) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AuditLogEntry) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuditLogExportChunkParams struct {\n\t// Upper bound (exclusive) for the audit record timestamp.\n\tEnd time.Time `query:\"end\" api:\"required\" format:\"date-time\" json:\"-\"`\n\t// Lower bound (inclusive) for the audit record timestamp.\n\tStart time.Time `query:\"start\" api:\"required\" format:\"date-time\" json:\"-\"`\n\t// Filter by authentication strategy.\n\tAuthStrategy param.Opt[string] `query:\"auth_strategy,omitzero\" json:\"-\"`\n\t// Opaque cursor from X-Next-Cursor for the next chunk of older records.\n\tCursor param.Opt[string] `query:\"cursor,omitzero\" json:\"-\"`\n\t// Maximum number of records to return in this chunk.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Filter by HTTP method.\n\tMethod param.Opt[string] `query:\"method,omitzero\" json:\"-\"`\n\t// Free-text search over path, user ID, email, client IP, and status.\n\tSearch param.Opt[string] `query:\"search,omitzero\" json:\"-\"`\n\t// Filter by service name.\n\tService param.Opt[string] `query:\"service,omitzero\" json:\"-\"`\n\t// Filter out results by HTTP method.\n\tExcludeMethod []string `query:\"exclude_method,omitzero\" json:\"-\"`\n\t// Encoding for the returned chunk.\n\t//\n\t// Any of \"jsonl\", \"jsonl.gz\".\n\tFormat AuditLogExportChunkParamsFormat `query:\"format,omitzero\" json:\"-\"`\n\t// Additional user IDs to OR into free-text search.\n\tSearchUserID []string `query:\"search_user_id,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r AuditLogExportChunkParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [AuditLogExportChunkParams](#AuditLogExportChunkParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype AuditLogExportChunkParamsFormat string\n```\nEncoding for the returned chunk.\n\n```go\nconst (\n\tAuditLogExportChunkParamsFormatJSONL   AuditLogExportChunkParamsFormat = \"jsonl\"\n\tAuditLogExportChunkParamsFormatJSONLGz AuditLogExportChunkParamsFormat = \"jsonl.gz\"\n)\n```\n\n```go\ntype AuditLogExportDestination struct {\n\tID                  string    `json:\"id\" api:\"required\"`\n\tBucket              string    `json:\"bucket\" api:\"required\"`\n\tConsecutiveFailures int64     `json:\"consecutive_failures\" api:\"required\"`\n\tCreatedAt           time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\tExternalID          string    `json:\"external_id\" api:\"required\"`\n\t// Any of \"jsonl.gz\".\n\tFormat AuditLogExportDestinationFormat `json:\"format\" api:\"required\"`\n\t// The Kernel role that assumes `role_arn` in your account to deliver logs. Allow\n\t// this role as the principal in your role's trust policy, and require\n\t// `external_id` as the `sts:ExternalId` condition.\n\t//\n\t// Recreating a destination issues a new `external_id`, which the trust policy has\n\t// to be updated to match.\n\tKernelRoleArn string `json:\"kernel_role_arn\" api:\"required\"`\n\tPrefix        string `json:\"prefix\" api:\"required\"`\n\tRegion        string `json:\"region\" api:\"required\"`\n\tRoleArn       string `json:\"role_arn\" api:\"required\"`\n\t// Pausing prevents new delivery attempts. An S3 upload already in progress may\n\t// complete after the pause response; its rows can appear again after the\n\t// destination is resumed.\n\t//\n\t// Any of \"active\", \"paused\".\n\tStatus AuditLogExportDestinationStatus `json:\"status\" api:\"required\"`\n\t// Any of \"s3\".\n\tType      AuditLogExportDestinationType `json:\"type\" api:\"required\"`\n\tUpdatedAt time.Time                     `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\tKmsKeyID  string                        `json:\"kms_key_id\"`\n\t// Sanitized description of the most recent delivery failure.\n\tLastError   string    `json:\"last_error\"`\n\tLastErrorAt time.Time `json:\"last_error_at\" format:\"date-time\"`\n\t// Opaque, versioned checkpoint for forward-only continuous export. This value is\n\t// not compatible with audit-log list page tokens.\n\t//\n\t// Delivery starts at the moment the destination is activated, so events recorded\n\t// before that are not delivered. Pausing stops delivery and resuming starts again\n\t// from the time of the resume: events recorded while a destination was paused are\n\t// never exported, and pausing is not a way to defer delivery.\n\tLastExportedCursor string    `json:\"last_exported_cursor\"`\n\tLastSuccessAt      time.Time `json:\"last_success_at\" format:\"date-time\"`\n\tNextAttemptAt      time.Time `json:\"next_attempt_at\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                  respjson.Field\n\t\tBucket              respjson.Field\n\t\tConsecutiveFailures respjson.Field\n\t\tCreatedAt           respjson.Field\n\t\tExternalID          respjson.Field\n\t\tFormat              respjson.Field\n\t\tKernelRoleArn       respjson.Field\n\t\tPrefix              respjson.Field\n\t\tRegion              respjson.Field\n\t\tRoleArn             respjson.Field\n\t\tStatus              respjson.Field\n\t\tType                respjson.Field\n\t\tUpdatedAt           respjson.Field\n\t\tKmsKeyID            respjson.Field\n\t\tLastError           respjson.Field\n\t\tLastErrorAt         respjson.Field\n\t\tLastExportedCursor  respjson.Field\n\t\tLastSuccessAt       respjson.Field\n\t\tNextAttemptAt       respjson.Field\n\t\tExtraFields         map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn organization-scoped audit log export destination.\n\nDelivery is at-least-once for rows visible when their window is committed: a delivery that is retried rewrites the same object, and the same \\`event\\_id\\` can appear in more than one object, so consumers must deduplicate on \\`event\\_id\\`. Each event-time window is held for ten minutes before it commits; a row that becomes visible after its window is committed may not be delivered.\n\nObjects are written as \\`\\\u003cprefix\u003e/destination\\_id=\\\u003cdestination\u003e/org\\_id=\\\u003corg\u003e/date=\\\u003cYYYY-MM-DD\u003e/hour=\\\u003cHH\u003e/\\\u003cwindow\u003e-\\\u003cchunk\u003e.jsonl.gz\\`, where \\`date\\` and \\`hour\\` are the UTC calendar hour that fully contains every row in the object, so the layout is safe to register as a Hive-partitioned table. The object name is derived from the rows it holds, so a retried delivery rewrites its own object.\n\n```go\nfunc (r AuditLogExportDestination) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AuditLogExportDestination) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuditLogExportDestinationFormat string\n```\n\n```go\nconst (\n\tAuditLogExportDestinationFormatJSONLGz AuditLogExportDestinationFormat = \"jsonl.gz\"\n)\n```\n\n```go\ntype AuditLogExportDestinationListParams struct {\n\t// Limit the number of destinations to return.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Offset the number of destinations to return.\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r AuditLogExportDestinationListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [AuditLogExportDestinationListParams](#AuditLogExportDestinationListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype AuditLogExportDestinationNewParams struct {\n\tCreateAuditLogExportDestinationRequest CreateAuditLogExportDestinationRequestParam\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r AuditLogExportDestinationNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *AuditLogExportDestinationNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuditLogExportDestinationService struct {\n\tOptions []option.RequestOption\n}\n```\nRead audit log records for the authenticated organization.\n\nAuditLogExportDestinationService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewAuditLogExportDestinationService](#NewAuditLogExportDestinationService) method instead.\n\n```go\nfunc NewAuditLogExportDestinationService(opts ...option.RequestOption) (r AuditLogExportDestinationService)\n```\nNewAuditLogExportDestinationService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *AuditLogExportDestinationService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)\n```\nSoft delete the destination and prevent new delivery attempts. An S3 upload already in progress may complete after the response.\n\n```go\nfunc (r *AuditLogExportDestinationService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *AuditLogExportDestination, err error)\n```\nRetrieve details for a single audit log export destination by its ID.\n\n```go\nfunc (r *AuditLogExportDestinationService) List(ctx context.Context, query AuditLogExportDestinationListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[AuditLogExportDestination], err error)\n```\nList audit log export destinations for the organization with pagination support.\n\n```go\nfunc (r *AuditLogExportDestinationService) ListAutoPaging(ctx context.Context, query AuditLogExportDestinationListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[AuditLogExportDestination]\n```\nList audit log export destinations for the organization with pagination support.\n\n```go\nfunc (r *AuditLogExportDestinationService) New(ctx context.Context, body AuditLogExportDestinationNewParams, opts ...option.RequestOption) (res *AuditLogExportDestination, err error)\n```\nCreate a paused destination. Activate it with a status update once the destination test passes. Requires an active Enterprise plan.\n\n```go\nfunc (r *AuditLogExportDestinationService) Test(ctx context.Context, id string, opts ...option.RequestOption) (res *AuditLogExportDestinationTestResult, err error)\n```\nVerify the destination is writable by assuming the configured role and uploading a temporary probe object with the same request metadata as a real delivery. Requires an active Enterprise plan.\n\n```go\nfunc (r *AuditLogExportDestinationService) Update(ctx context.Context, id string, body AuditLogExportDestinationUpdateParams, opts ...option.RequestOption) (res *AuditLogExportDestination, err error)\n```\nApply a partial update to a destination. Requires an active Enterprise plan. Returns 409 when the destination was changed concurrently, because the merged configuration this request validated is no longer the one that would be stored; retry against fresh state. Pausing prevents new delivery attempts, but an S3 upload already in progress may complete after the response.\n\n```go\ntype AuditLogExportDestinationStatus string\n```\nPausing prevents new delivery attempts. An S3 upload already in progress may complete after the pause response; its rows can appear again after the destination is resumed.\n\n```go\nconst (\n\tAuditLogExportDestinationStatusActive AuditLogExportDestinationStatus = \"active\"\n\tAuditLogExportDestinationStatusPaused AuditLogExportDestinationStatus = \"paused\"\n)\n```\n\n```go\ntype AuditLogExportDestinationTestResult struct {\n\t// Any of \"assume_role\", \"put_object\", \"complete\".\n\tStage   AuditLogExportDestinationTestResultStage `json:\"stage\" api:\"required\"`\n\tSuccess bool                                     `json:\"success\" api:\"required\"`\n\tError   AuditLogExportDestinationTestResultError `json:\"error\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tStage       respjson.Field\n\t\tSuccess     respjson.Field\n\t\tError       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r AuditLogExportDestinationTestResult) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AuditLogExportDestinationTestResult) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuditLogExportDestinationTestResultError struct {\n\t// Any of \"assume_role_failed\", \"put_object_failed\".\n\tCode    string `json:\"code\" api:\"required\"`\n\tMessage string `json:\"message\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCode        respjson.Field\n\t\tMessage     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r AuditLogExportDestinationTestResultError) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AuditLogExportDestinationTestResultError) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuditLogExportDestinationTestResultStage string\n```\n\n```go\nconst (\n\tAuditLogExportDestinationTestResultStageAssumeRole AuditLogExportDestinationTestResultStage = \"assume_role\"\n\tAuditLogExportDestinationTestResultStagePutObject  AuditLogExportDestinationTestResultStage = \"put_object\"\n\tAuditLogExportDestinationTestResultStageComplete   AuditLogExportDestinationTestResultStage = \"complete\"\n)\n```\n\n```go\ntype AuditLogExportDestinationType string\n```\n\n```go\nconst (\n\tAuditLogExportDestinationTypeS3 AuditLogExportDestinationType = \"s3\"\n)\n```\n\n```go\ntype AuditLogExportDestinationUpdateParams struct {\n\tUpdateAuditLogExportDestinationRequest UpdateAuditLogExportDestinationRequestParam\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r AuditLogExportDestinationUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *AuditLogExportDestinationUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuditLogListParams struct {\n\t// Upper bound (exclusive) for the audit record timestamp.\n\tEnd time.Time `query:\"end\" api:\"required\" format:\"date-time\" json:\"-\"`\n\t// Lower bound (inclusive) for the audit record timestamp.\n\tStart time.Time `query:\"start\" api:\"required\" format:\"date-time\" json:\"-\"`\n\t// Filter by authentication strategy.\n\tAuthStrategy param.Opt[string] `query:\"auth_strategy,omitzero\" json:\"-\"`\n\t// Maximum number of results to return.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Filter by HTTP method.\n\tMethod param.Opt[string] `query:\"method,omitzero\" json:\"-\"`\n\t// Opaque page token from X-Next-Page-Token for the next page of older records.\n\tPageToken param.Opt[string] `query:\"page_token,omitzero\" json:\"-\"`\n\t// Free-text search over path, user ID, email, client IP, and status.\n\tSearch param.Opt[string] `query:\"search,omitzero\" json:\"-\"`\n\t// Filter by service name.\n\tService param.Opt[string] `query:\"service,omitzero\" json:\"-\"`\n\t// Filter out results by HTTP method.\n\tExcludeMethod []string `query:\"exclude_method,omitzero\" json:\"-\"`\n\t// Additional user IDs to OR into free-text search.\n\tSearchUserID []string `query:\"search_user_id,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r AuditLogListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [AuditLogListParams](#AuditLogListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype AuditLogService struct {\n\tOptions []option.RequestOption\n\t// Read audit log records for the authenticated organization.\n\tExportDestinations AuditLogExportDestinationService\n}\n```\nRead audit log records for the authenticated organization.\n\nAuditLogService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewAuditLogService](#NewAuditLogService) method instead.\n\n```go\nfunc NewAuditLogService(opts ...option.RequestOption) (r AuditLogService)\n```\nNewAuditLogService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *AuditLogService) Download(ctx context.Context, params AuditLogDownloadParams, dst io.Writer, opts ...AuditLogDownloadOption) (AuditLogDownloadResult, error)\n```\nDownload writes a complete gzip-compressed JSON Lines audit log export to dst. It requests chunks until the export is complete, verifies every chunk checksum, and retries transient transfer failures. Download does not close dst. If Download returns an error, dst may contain a partial export; use a temporary file and atomic rename when the completed export must be published atomically.\n\n```go\nfunc (r *AuditLogService) ExportChunk(ctx context.Context, query AuditLogExportChunkParams, opts ...option.RequestOption) (res *http.Response, err error)\n```\nDownload an organization's audit log records for a time range as a file, for archival, compliance, or offline analysis. For interactive browsing, use GET /audit-logs.\n\n```go\nfunc (r *AuditLogService) List(ctx context.Context, query AuditLogListParams, opts ...option.RequestOption) (res *pagination.PageTokenPagination[AuditLogEntry], err error)\n```\nAPI for searching audit logs. Limited to at most 30 day search, returns up to 100 records per page. Not recommended for bulk export.\n\n```go\nfunc (r *AuditLogService) ListAutoPaging(ctx context.Context, query AuditLogListParams, opts ...option.RequestOption) *pagination.PageTokenPaginationAutoPager[AuditLogEntry]\n```\nAPI for searching audit logs. Limited to at most 30 day search, returns up to 100 records per page. Not recommended for bulk export.\n\n```go\ntype AuthConnectionFollowResponseManagedAuthState struct {\n\t// Event type identifier (always \"managed_auth_state\").\n\tEvent constant.ManagedAuthState `json:\"event\" default:\"managed_auth_state\"`\n\t// Current flow status.\n\t//\n\t// Any of \"IN_PROGRESS\", \"SUCCESS\", \"FAILED\", \"EXPIRED\", \"CANCELED\".\n\tFlowStatus string `json:\"flow_status\" api:\"required\"`\n\t// Current step in the flow.\n\t//\n\t// Any of \"DISCOVERING\", \"AWAITING_INPUT\", \"AWAITING_EXTERNAL_ACTION\",\n\t// \"AWAITING_HUMAN_INTERVENTION\", \"SUBMITTING\", \"COMPLETED\".\n\tFlowStep string `json:\"flow_step\" api:\"required\"`\n\t// Time the state was reported.\n\tTimestamp time.Time `json:\"timestamp\" api:\"required\" format:\"date-time\"`\n\t// Canonical choices awaiting selection. Prefer this over pending_sso_buttons,\n\t// mfa_options, and sign_in_options when present.\n\tChoices []AuthConnectionFollowResponseManagedAuthStateChoice `json:\"choices\"`\n\t// Fields awaiting input (present when flow_step=AWAITING_INPUT; may also be\n\t// present with AWAITING_EXTERNAL_ACTION as fallback actions).\n\tDiscoveredFields []AuthConnectionFollowResponseManagedAuthStateDiscoveredField `json:\"discovered_fields\"`\n\t// Machine-readable error code (present when flow_status=FAILED).\n\tErrorCode string `json:\"error_code\"`\n\t// Error message (present when flow_status=FAILED).\n\tErrorMessage string `json:\"error_message\"`\n\t// Instructions for external action (present when\n\t// flow_step=AWAITING_EXTERNAL_ACTION).\n\tExternalActionMessage string `json:\"external_action_message\"`\n\t// Canonical fields awaiting input. Prefer this over discovered_fields when\n\t// present.\n\tFields []AuthConnectionFollowResponseManagedAuthStateField `json:\"fields\"`\n\t// Type of the current flow.\n\t//\n\t// Any of \"LOGIN\", \"REAUTH\".\n\tFlowType string `json:\"flow_type\"`\n\t// URL to redirect user to for hosted login.\n\tHostedURL string `json:\"hosted_url\" format:\"uri\"`\n\t// Opaque identifier for the current canonical interaction. Required when\n\t// submitting fields or choices and changes for each new actionable pause.\n\tInteractionID string `json:\"interaction_id\"`\n\t// Browser live view URL for debugging.\n\tLiveViewURL string `json:\"live_view_url\" format:\"uri\"`\n\t// MFA method options (present when flow_step=AWAITING_INPUT; may also be present\n\t// with AWAITING_EXTERNAL_ACTION as fallback actions).\n\tMfaOptions []AuthConnectionFollowResponseManagedAuthStateMfaOption `json:\"mfa_options\"`\n\t// SSO buttons available (present when flow_step=AWAITING_INPUT; may also be\n\t// present with AWAITING_EXTERNAL_ACTION as fallback actions).\n\tPendingSSOButtons []AuthConnectionFollowResponseManagedAuthStatePendingSSOButton `json:\"pending_sso_buttons\"`\n\t// URL where the browser landed after successful login.\n\tPostLoginURL string `json:\"post_login_url\" format:\"uri\"`\n\t// Non-MFA choices presented during the auth flow, such as account selection or org\n\t// pickers (present when flow_step=AWAITING_INPUT; may also be present with\n\t// AWAITING_EXTERNAL_ACTION as fallback actions).\n\tSignInOptions []AuthConnectionFollowResponseManagedAuthStateSignInOption `json:\"sign_in_options\"`\n\t// Visible error message from the website (e.g., 'Incorrect password'). Present\n\t// when the website displays an error during login.\n\tWebsiteError string `json:\"website_error\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEvent                 respjson.Field\n\t\tFlowStatus            respjson.Field\n\t\tFlowStep              respjson.Field\n\t\tTimestamp             respjson.Field\n\t\tChoices               respjson.Field\n\t\tDiscoveredFields      respjson.Field\n\t\tErrorCode             respjson.Field\n\t\tErrorMessage          respjson.Field\n\t\tExternalActionMessage respjson.Field\n\t\tFields                respjson.Field\n\t\tFlowType              respjson.Field\n\t\tHostedURL             respjson.Field\n\t\tInteractionID         respjson.Field\n\t\tLiveViewURL           respjson.Field\n\t\tMfaOptions            respjson.Field\n\t\tPendingSSOButtons     respjson.Field\n\t\tPostLoginURL          respjson.Field\n\t\tSignInOptions         respjson.Field\n\t\tWebsiteError          respjson.Field\n\t\tExtraFields           map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn event representing the current state of a managed auth flow.\n\n```go\nfunc (AuthConnectionFollowResponseManagedAuthState) ImplAuthConnectionFollowResponseUnion()\n```\n\n```go\nfunc (r AuthConnectionFollowResponseManagedAuthState) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AuthConnectionFollowResponseManagedAuthState) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthConnectionFollowResponseManagedAuthStateChoice struct {\n\t// Stable choice identifier for canonical submit.\n\tID string `json:\"id\" api:\"required\"`\n\t// Human-readable choice label.\n\tLabel string `json:\"label\" api:\"required\"`\n\t// Choice type. A `human_intervention` choice confirms the person finished the\n\t// challenge in the live view.\n\t//\n\t// Any of \"mfa_method\", \"sso_provider\", \"sign_in_method\", \"auth_method\",\n\t// \"identifier_method\", \"account\", \"human_intervention\", \"other\".\n\tType string `json:\"type\" api:\"required\"`\n\t// Context captured for a choice.\n\tContext string `json:\"context\" api:\"nullable\"`\n\t// Additional context for the choice.\n\tDescription string `json:\"description\" api:\"nullable\"`\n\t// Display text captured for a choice.\n\tDisplayText string `json:\"display_text\" api:\"nullable\"`\n\t// Masked phone number or email address shown for an MFA choice.\n\tMaskedDestination string `json:\"masked_destination\" api:\"nullable\"`\n\t// Semantic MFA method. Choice id remains the stable identity of the exact option\n\t// selected.\n\t//\n\t// Any of \"sms\", \"call\", \"email\", \"totp\", \"push\", \"password\", \"passkey\", \"switch\",\n\t// \"other\".\n\tMfaType string `json:\"mfa_type\" api:\"nullable\"`\n\t// Selector for the visible choice, when available.\n\tObservedSelector string `json:\"observed_selector\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                respjson.Field\n\t\tLabel             respjson.Field\n\t\tType              respjson.Field\n\t\tContext           respjson.Field\n\t\tDescription       respjson.Field\n\t\tDisplayText       respjson.Field\n\t\tMaskedDestination respjson.Field\n\t\tMfaType           respjson.Field\n\t\tObservedSelector  respjson.Field\n\t\tExtraFields       map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nCanonical auth-flow choice awaiting user selection.\n\n```go\nfunc (r AuthConnectionFollowResponseManagedAuthStateChoice) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AuthConnectionFollowResponseManagedAuthStateChoice) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthConnectionFollowResponseManagedAuthStateDiscoveredField struct {\n\t// Field label\n\tLabel string `json:\"label\" api:\"required\"`\n\t// Field name\n\tName string `json:\"name\" api:\"required\"`\n\t// CSS selector for the field\n\tSelector string `json:\"selector\" api:\"required\"`\n\t// Field type\n\t//\n\t// Any of \"text\", \"email\", \"password\", \"tel\", \"number\", \"url\", \"code\", \"totp\".\n\tType string `json:\"type\" api:\"required\"`\n\t// Contextual help text near the field that tells the user what to enter (e.g.,\n\t// \"Enter the phone ending in (**_) _**-\\*\\*92\")\n\tHint string `json:\"hint\"`\n\t// If this field is associated with an MFA option, the type of that option (e.g.,\n\t// password field linked to \"Enter password\" option)\n\t//\n\t// Any of \"sms\", \"call\", \"email\", \"totp\", \"push\", \"password\", \"switch\".\n\tLinkedMfaType string `json:\"linked_mfa_type\" api:\"nullable\"`\n\t// Field placeholder\n\tPlaceholder string `json:\"placeholder\"`\n\t// Whether field is required\n\tRequired bool `json:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tLabel         respjson.Field\n\t\tName          respjson.Field\n\t\tSelector      respjson.Field\n\t\tType          respjson.Field\n\t\tHint          respjson.Field\n\t\tLinkedMfaType respjson.Field\n\t\tPlaceholder   respjson.Field\n\t\tRequired      respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA discovered form field\n\n```go\nfunc (r AuthConnectionFollowResponseManagedAuthStateDiscoveredField) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AuthConnectionFollowResponseManagedAuthStateDiscoveredField) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthConnectionFollowResponseManagedAuthStateField struct {\n\t// Stable field identifier for canonical submit.\n\tID string `json:\"id\" api:\"required\"`\n\t// Why the field requires user input.\n\t//\n\t// Any of \"missing\", \"rejected\".\n\tReason string `json:\"reason\" api:\"required\"`\n\t// Credential reference name to store the submitted value under.\n\tRef string `json:\"ref\" api:\"required\"`\n\t// Managed-auth field type.\n\t//\n\t// Any of \"identifier\", \"password\", \"code\", \"totp_code\", \"totp_secret\", \"text\".\n\tType string `json:\"type\" api:\"required\"`\n\t// Context shown near the field, including a masked code destination.\n\tHint string `json:\"hint\"`\n\t// Virtual keyboard hint, independent of field type and browser validation.\n\t//\n\t// Any of \"text\", \"email\", \"tel\", \"numeric\".\n\tInputMode string `json:\"input_mode\"`\n\t// Human-readable label shown to the user.\n\tLabel string `json:\"label\"`\n\t// Selector for the visible field, when available.\n\tObservedSelector string `json:\"observed_selector\" api:\"nullable\"`\n\t// Whether this field is required.\n\tRequired bool `json:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID               respjson.Field\n\t\tReason           respjson.Field\n\t\tRef              respjson.Field\n\t\tType             respjson.Field\n\t\tHint             respjson.Field\n\t\tInputMode        respjson.Field\n\t\tLabel            respjson.Field\n\t\tObservedSelector respjson.Field\n\t\tRequired         respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nCanonical field awaiting user input.\n\n```go\nfunc (r AuthConnectionFollowResponseManagedAuthStateField) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AuthConnectionFollowResponseManagedAuthStateField) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthConnectionFollowResponseManagedAuthStateMfaOption struct {\n\t// The visible option text\n\tLabel string `json:\"label\" api:\"required\"`\n\t// The MFA delivery method type. Includes 'password' for auth method selection\n\t// pages and 'switch' for generic method-switcher links like \"Use another method\"\n\t// that do not name a specific method.\n\t//\n\t// Any of \"sms\", \"call\", \"email\", \"totp\", \"push\", \"password\", \"switch\".\n\tType string `json:\"type\" api:\"required\"`\n\t// Additional instructions from the site\n\tDescription string `json:\"description\" api:\"nullable\"`\n\t// The masked destination (phone/email) if shown\n\tTarget string `json:\"target\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tLabel       respjson.Field\n\t\tType        respjson.Field\n\t\tDescription respjson.Field\n\t\tTarget      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn MFA method option for verification\n\n```go\nfunc (r AuthConnectionFollowResponseManagedAuthStateMfaOption) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AuthConnectionFollowResponseManagedAuthStateMfaOption) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthConnectionFollowResponseManagedAuthStatePendingSSOButton struct {\n\t// Visible button text\n\tLabel string `json:\"label\" api:\"required\"`\n\t// Identity provider name\n\tProvider string `json:\"provider\" api:\"required\"`\n\t// XPath selector for the button\n\tSelector string `json:\"selector\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tLabel       respjson.Field\n\t\tProvider    respjson.Field\n\t\tSelector    respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn SSO button for signing in with an external identity provider\n\n```go\nfunc (r AuthConnectionFollowResponseManagedAuthStatePendingSSOButton) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AuthConnectionFollowResponseManagedAuthStatePendingSSOButton) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthConnectionFollowResponseManagedAuthStateSignInOption struct {\n\t// Unique identifier for this option (used to submit selection back)\n\tID string `json:\"id\" api:\"required\"`\n\t// Display text for the option\n\tLabel string `json:\"label\" api:\"required\"`\n\t// Additional context such as email address or org name\n\tDescription string `json:\"description\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tLabel       respjson.Field\n\t\tDescription respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA non-MFA choice presented during the auth flow (e.g. account selection, org picker)\n\n```go\nfunc (r AuthConnectionFollowResponseManagedAuthStateSignInOption) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AuthConnectionFollowResponseManagedAuthStateSignInOption) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthConnectionFollowResponseUnion struct {\n\t// Any of \"managed_auth_state\", \"error\", \"sse_heartbeat\".\n\tEvent string `json:\"event\"`\n\t// This field is from variant [AuthConnectionFollowResponseManagedAuthState].\n\tFlowStatus string `json:\"flow_status\"`\n\t// This field is from variant [AuthConnectionFollowResponseManagedAuthState].\n\tFlowStep  string    `json:\"flow_step\"`\n\tTimestamp time.Time `json:\"timestamp\"`\n\t// This field is from variant [AuthConnectionFollowResponseManagedAuthState].\n\tChoices []AuthConnectionFollowResponseManagedAuthStateChoice `json:\"choices\"`\n\t// This field is from variant [AuthConnectionFollowResponseManagedAuthState].\n\tDiscoveredFields []AuthConnectionFollowResponseManagedAuthStateDiscoveredField `json:\"discovered_fields\"`\n\t// This field is from variant [AuthConnectionFollowResponseManagedAuthState].\n\tErrorCode string `json:\"error_code\"`\n\t// This field is from variant [AuthConnectionFollowResponseManagedAuthState].\n\tErrorMessage string `json:\"error_message\"`\n\t// This field is from variant [AuthConnectionFollowResponseManagedAuthState].\n\tExternalActionMessage string `json:\"external_action_message\"`\n\t// This field is from variant [AuthConnectionFollowResponseManagedAuthState].\n\tFields []AuthConnectionFollowResponseManagedAuthStateField `json:\"fields\"`\n\t// This field is from variant [AuthConnectionFollowResponseManagedAuthState].\n\tFlowType string `json:\"flow_type\"`\n\t// This field is from variant [AuthConnectionFollowResponseManagedAuthState].\n\tHostedURL string `json:\"hosted_url\"`\n\t// This field is from variant [AuthConnectionFollowResponseManagedAuthState].\n\tInteractionID string `json:\"interaction_id\"`\n\t// This field is from variant [AuthConnectionFollowResponseManagedAuthState].\n\tLiveViewURL string `json:\"live_view_url\"`\n\t// This field is from variant [AuthConnectionFollowResponseManagedAuthState].\n\tMfaOptions []AuthConnectionFollowResponseManagedAuthStateMfaOption `json:\"mfa_options\"`\n\t// This field is from variant [AuthConnectionFollowResponseManagedAuthState].\n\tPendingSSOButtons []AuthConnectionFollowResponseManagedAuthStatePendingSSOButton `json:\"pending_sso_buttons\"`\n\t// This field is from variant [AuthConnectionFollowResponseManagedAuthState].\n\tPostLoginURL string `json:\"post_login_url\"`\n\t// This field is from variant [AuthConnectionFollowResponseManagedAuthState].\n\tSignInOptions []AuthConnectionFollowResponseManagedAuthStateSignInOption `json:\"sign_in_options\"`\n\t// This field is from variant [AuthConnectionFollowResponseManagedAuthState].\n\tWebsiteError string `json:\"website_error\"`\n\t// This field is from variant [shared.ErrorEvent].\n\tError shared.ErrorModel `json:\"error\"`\n\tJSON  struct {\n\t\tEvent                 respjson.Field\n\t\tFlowStatus            respjson.Field\n\t\tFlowStep              respjson.Field\n\t\tTimestamp             respjson.Field\n\t\tChoices               respjson.Field\n\t\tDiscoveredFields      respjson.Field\n\t\tErrorCode             respjson.Field\n\t\tErrorMessage          respjson.Field\n\t\tExternalActionMessage respjson.Field\n\t\tFields                respjson.Field\n\t\tFlowType              respjson.Field\n\t\tHostedURL             respjson.Field\n\t\tInteractionID         respjson.Field\n\t\tLiveViewURL           respjson.Field\n\t\tMfaOptions            respjson.Field\n\t\tPendingSSOButtons     respjson.Field\n\t\tPostLoginURL          respjson.Field\n\t\tSignInOptions         respjson.Field\n\t\tWebsiteError          respjson.Field\n\t\tError                 respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAuthConnectionFollowResponseUnion contains all possible properties and values from [AuthConnectionFollowResponseManagedAuthState](#AuthConnectionFollowResponseManagedAuthState), [shared.ErrorEvent](/github.com/kernel/kernel-go-sdk/shared#ErrorEvent), [shared.HeartbeatEvent](/github.com/kernel/kernel-go-sdk/shared#HeartbeatEvent).\n\nUse the [AuthConnectionFollowResponseUnion.AsAny](#AuthConnectionFollowResponseUnion.AsAny) method to switch on the variant.\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u AuthConnectionFollowResponseUnion) AsAny() anyAuthConnectionFollowResponse\n```\nUse the following switch statement to find the correct variant\n\n\tswitch variant := AuthConnectionFollowResponseUnion.AsAny().(type) {\n\tcase kernel.AuthConnectionFollowResponseManagedAuthState:\n\tcase shared.ErrorEvent:\n\tcase shared.HeartbeatEvent:\n\tdefault:\n\t  fmt.Errorf(\"no variant present\")\n\t}\n\n```go\nfunc (u AuthConnectionFollowResponseUnion) AsError() (v shared.ErrorEvent)\n```\n\n```go\nfunc (u AuthConnectionFollowResponseUnion) AsManagedAuthState() (v AuthConnectionFollowResponseManagedAuthState)\n```\n\n```go\nfunc (u AuthConnectionFollowResponseUnion) AsSseHeartbeat() (v shared.HeartbeatEvent)\n```\n\n```go\nfunc (u AuthConnectionFollowResponseUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AuthConnectionFollowResponseUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthConnectionListParams struct {\n\t// Filter by domain\n\tDomain param.Opt[string] `query:\"domain,omitzero\" json:\"-\"`\n\t// Maximum number of results to return\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Number of results to skip\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Filter by profile name\n\tProfileName param.Opt[string] `query:\"profile_name,omitzero\" json:\"-\"`\n\t// Search auth connections by ID, domain, or profile name.\n\tQuery param.Opt[string] `query:\"query,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r AuthConnectionListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [AuthConnectionListParams](#AuthConnectionListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype AuthConnectionLoginParams struct {\n\t// Override the connection's default for recording this login's browser session.\n\t// When omitted, the connection's record_session default is used.\n\tRecordSession param.Opt[bool] `json:\"record_session,omitzero\"`\n\t// Deprecated. Use browser.telemetry. Retained during migration for existing\n\t// clients.\n\tBrowserTelemetry AuthConnectionLoginParamsBrowserTelemetry `json:\"browser_telemetry,omitzero\"`\n\t// Browser configuration override for this login. Omitted properties inherit the\n\t// connection defaults.\n\tBrowser ManagedAuthBrowserConfigParam `json:\"browser,omitzero\"`\n\t// Deprecated. Use browser.proxy. Retained during migration for existing clients.\n\tProxy AuthConnectionLoginParamsProxy `json:\"proxy,omitzero\"`\n\t// Controls whether this login reads and writes learned domain skills. Automatic\n\t// reauths inherit the selected mode until a later accepted login sets enabled or\n\t// omits this field. Defaults to enabled when omitted.\n\t//\n\t// Any of \"enabled\", \"disabled\".\n\tSkillMode AuthConnectionLoginParamsSkillMode `json:\"skill_mode,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r AuthConnectionLoginParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *AuthConnectionLoginParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthConnectionLoginParamsBrowserTelemetry struct {\n\t// Request shortcut for browser telemetry capture. True enables capture; with no\n\t// browser category settings it captures the default set (control, connection,\n\t// system, captcha), and any browser category settings are layered onto that\n\t// default set. On update, enabled=true resolves the config fresh from the default\n\t// set plus any provided categories, replacing the session's current selection\n\t// rather than merging onto it; omit enabled to merge categories onto the current\n\t// selection instead. False stops capture on update and starts no capture on\n\t// create. enabled=false cannot be combined with browser category settings.\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// Per-category capture flags. The operational categories (control, connection,\n\t// system, captcha) are captured whenever telemetry is enabled; set one to\n\t// enabled=false to opt out. The CDP categories (console, network, page,\n\t// interaction), screenshot and platform are off by default; set enabled=true to\n\t// opt in. On create, provided categories layer onto the default set. On update,\n\t// provided categories merge onto the session's current config; when no telemetry\n\t// is active this falls back to the default set (matching create). If browser is\n\t// omitted or empty, the default set is used. A browser config that disables every\n\t// category stops capture on update and starts no capture on create.\n\tBrowser BrowserTelemetryCategoriesConfigParam `json:\"browser,omitzero\"`\n\t// Where to export this session's captured telemetry. Omit to capture without\n\t// exporting.\n\tExport AuthConnectionLoginParamsBrowserTelemetryExport `json:\"export,omitzero\"`\n\t// Whether to persist this session's captured telemetry to Kernel storage.\n\tStorage AuthConnectionLoginParamsBrowserTelemetryStorage `json:\"storage,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nDeprecated. Use browser.telemetry. Retained during migration for existing clients.\n\nDeprecated: deprecated\n\n```go\nfunc (r AuthConnectionLoginParamsBrowserTelemetry) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *AuthConnectionLoginParamsBrowserTelemetry) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthConnectionLoginParamsBrowserTelemetryExport struct {\n\t// Export captured telemetry over OTLP to one of the org's configured destinations.\n\tOtlp AuthConnectionLoginParamsBrowserTelemetryExportOtlp `json:\"otlp,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nWhere to export this session's captured telemetry. Omit to capture without exporting.\n\n```go\nfunc (r AuthConnectionLoginParamsBrowserTelemetryExport) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *AuthConnectionLoginParamsBrowserTelemetryExport) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthConnectionLoginParamsBrowserTelemetryExportOtlp struct {\n\t// Whether to export captured telemetry over OTLP. Setting destination implies\n\t// enabled=true, so this only needs to be set explicitly to disable export\n\t// (enabled=false with a destination is rejected).\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// OTLP destination to export this session's captured telemetry to. Provide either\n\t// id or name. Requires telemetry capture to be enabled.\n\tDestination AuthConnectionLoginParamsBrowserTelemetryExportOtlpDestination `json:\"destination,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nExport captured telemetry over OTLP to one of the org's configured destinations.\n\n```go\nfunc (r AuthConnectionLoginParamsBrowserTelemetryExportOtlp) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *AuthConnectionLoginParamsBrowserTelemetryExportOtlp) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthConnectionLoginParamsBrowserTelemetryExportOtlpDestination struct {\n\t// OTLP destination ID\n\tID param.Opt[string] `json:\"id,omitzero\"`\n\t// OTLP destination name\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nOTLP destination to export this session's captured telemetry to. Provide either id or name. Requires telemetry capture to be enabled.\n\n```go\nfunc (r AuthConnectionLoginParamsBrowserTelemetryExportOtlpDestination) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *AuthConnectionLoginParamsBrowserTelemetryExportOtlpDestination) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthConnectionLoginParamsBrowserTelemetryStorage struct {\n\t// Whether captured telemetry is persisted to Kernel storage. Defaults to true.\n\t// Setting false requires an OTLP destination and cannot be changed after the\n\t// browser is created.\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nWhether to persist this session's captured telemetry to Kernel storage.\n\n```go\nfunc (r AuthConnectionLoginParamsBrowserTelemetryStorage) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *AuthConnectionLoginParamsBrowserTelemetryStorage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthConnectionLoginParamsProxy struct {\n\t// Proxy ID\n\tID param.Opt[string] `json:\"id,omitzero\"`\n\t// Proxy name\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nDeprecated. Use browser.proxy. Retained during migration for existing clients.\n\nDeprecated: deprecated\n\n```go\nfunc (r AuthConnectionLoginParamsProxy) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *AuthConnectionLoginParamsProxy) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthConnectionLoginParamsSkillMode string\n```\nControls whether this login reads and writes learned domain skills. Automatic reauths inherit the selected mode until a later accepted login sets enabled or omits this field. Defaults to enabled when omitted.\n\n```go\nconst (\n\tAuthConnectionLoginParamsSkillModeEnabled  AuthConnectionLoginParamsSkillMode = \"enabled\"\n\tAuthConnectionLoginParamsSkillModeDisabled AuthConnectionLoginParamsSkillMode = \"disabled\"\n)\n```\n\n```go\ntype AuthConnectionNewParams struct {\n\t// Request to create an auth connection for a profile and domain\n\tManagedAuthCreateRequest ManagedAuthCreateRequestParam\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r AuthConnectionNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *AuthConnectionNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthConnectionService struct {\n\tOptions []option.RequestOption\n}\n```\nCreate and manage auth connections for automated credential capture and login.\n\nAuthConnectionService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewAuthConnectionService](#NewAuthConnectionService) method instead.\n\n```go\nfunc NewAuthConnectionService(opts ...option.RequestOption) (r AuthConnectionService)\n```\nNewAuthConnectionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *AuthConnectionService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)\n```\nDeletes an auth connection and terminates its workflow. This will:\n\n\\- Delete the auth connection record - Terminate the Temporal workflow - Cancel any in-progress login flows\n\n```go\nfunc (r *AuthConnectionService) FollowStreaming(ctx context.Context, id string, opts ...option.RequestOption) (stream *ssestream.Stream[AuthConnectionFollowResponseUnion])\n```\nEstablishes a Server-Sent Events (SSE) stream that delivers real-time login flow state updates. The stream terminates automatically once the flow reaches a terminal state (SUCCESS, FAILED, EXPIRED, CANCELED).\n\n```go\nfunc (r *AuthConnectionService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *ManagedAuth, err error)\n```\nRetrieve an auth connection by its ID. Includes current flow state if a login is in progress.\n\n```go\nfunc (r *AuthConnectionService) List(ctx context.Context, query AuthConnectionListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[ManagedAuth], err error)\n```\nList auth connections with optional filters for profile\\_name and domain.\n\n```go\nfunc (r *AuthConnectionService) ListAutoPaging(ctx context.Context, query AuthConnectionListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[ManagedAuth]\n```\nList auth connections with optional filters for profile\\_name and domain.\n\n```go\nfunc (r *AuthConnectionService) Login(ctx context.Context, id string, body AuthConnectionLoginParams, opts ...option.RequestOption) (res *LoginResponse, err error)\n```\nStarts a login flow for the auth connection. Returns immediately with a hosted URL for the user to complete authentication, or triggers automatic re-auth if credentials are stored.\n\n```go\nfunc (r *AuthConnectionService) New(ctx context.Context, body AuthConnectionNewParams, opts ...option.RequestOption) (res *ManagedAuth, err error)\n```\nCreates an auth connection for a profile and domain combination. If the provided profile\\_name does not exist, it is created automatically. Returns 409 Conflict if an auth connection already exists for the given profile and domain. Returns 400 with code \\`profile\\_storage\\_unavailable\\` if a new profile would be stored in the organization's own storage bucket and that storage is paused, or with code \\`conflict\\` if that storage's configuration changed while the profile was being created; retry the request.\n\n```go\nfunc (r *AuthConnectionService) Submit(ctx context.Context, id string, body AuthConnectionSubmitParams, opts ...option.RequestOption) (res *SubmitFieldsResponse, err error)\n```\nSubmits field values for the login form. Poll the auth connection to track progress and get results.\n\n```go\nfunc (r *AuthConnectionService) Timeline(ctx context.Context, id string, query AuthConnectionTimelineParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[ManagedAuthTimelineEvent], err error)\n```\nReturns a chronological timeline of events for an auth connection — login attempts, automatic re-auth attempts, and health checks. Events are returned newest-first.\n\n```go\nfunc (r *AuthConnectionService) TimelineAutoPaging(ctx context.Context, id string, query AuthConnectionTimelineParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[ManagedAuthTimelineEvent]\n```\nReturns a chronological timeline of events for an auth connection — login attempts, automatic re-auth attempts, and health checks. Events are returned newest-first.\n\n```go\nfunc (r *AuthConnectionService) Update(ctx context.Context, id string, body AuthConnectionUpdateParams, opts ...option.RequestOption) (res *ManagedAuth, err error)\n```\nUpdate an auth connection's configuration. Only the fields provided will be updated.\n\n```go\ntype AuthConnectionSubmitParams struct {\n\t// Request to submit field values, click an SSO button, select an MFA method, or\n\t// select a sign-in option. Prefer canonical selected_choice_id/field_values when\n\t// the API returns fields/choices; legacy\n\t// fields/sso_button_selector/sso_provider/mfa_option_id/sign_in_option_id remain\n\t// supported during deprecation.\n\tSubmitFieldsRequest SubmitFieldsRequestParam\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r AuthConnectionSubmitParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *AuthConnectionSubmitParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthConnectionTimelineParams struct {\n\t// Maximum number of events to return\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Number of events to skip\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Filter the timeline to a single event type.\n\t//\n\t// Any of \"login\", \"reauth\", \"health_check\".\n\tType AuthConnectionTimelineParamsType `query:\"type,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r AuthConnectionTimelineParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [AuthConnectionTimelineParams](#AuthConnectionTimelineParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype AuthConnectionTimelineParamsType string\n```\nFilter the timeline to a single event type.\n\n```go\nconst (\n\tAuthConnectionTimelineParamsTypeLogin       AuthConnectionTimelineParamsType = \"login\"\n\tAuthConnectionTimelineParamsTypeReauth      AuthConnectionTimelineParamsType = \"reauth\"\n\tAuthConnectionTimelineParamsTypeHealthCheck AuthConnectionTimelineParamsType = \"health_check\"\n)\n```\n\n```go\ntype AuthConnectionUpdateParams struct {\n\t// Request to update an auth connection's configuration\n\tManagedAuthUpdateRequest ManagedAuthUpdateRequestParam\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r AuthConnectionUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *AuthConnectionUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthContext struct {\n\tAuthentication AuthContextAuthentication `json:\"authentication\" api:\"required\"`\n\t// The credential's maximum scope and the effective scope selected for this\n\t// request. Future permission data can be added without changing scope semantics.\n\tAuthorization    AuthContextAuthorization    `json:\"authorization\" api:\"required\"`\n\tOrganization     AuthContextOrganization     `json:\"organization\" api:\"required\"`\n\tPrincipal        AuthContextPrincipal        `json:\"principal\" api:\"required\"`\n\tWorkloadIdentity AuthContextWorkloadIdentity `json:\"workload_identity\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAuthentication   respjson.Field\n\t\tAuthorization    respjson.Field\n\t\tOrganization     respjson.Field\n\t\tPrincipal        respjson.Field\n\t\tWorkloadIdentity respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nThe identity and authorization context resolved for the current request.\n\n```go\nfunc (r AuthContext) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AuthContext) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthContextAuthentication struct {\n\t// The API key ID when authenticated with an API key; null for session credentials.\n\tCredentialID string `json:\"credential_id\" api:\"required\"`\n\t// The credential format used to authenticate the request.\n\t//\n\t// Any of \"api_key\", \"jwt\".\n\tMethod string `json:\"method\" api:\"required\"`\n\t// The source classification resolved by authentication middleware. `vercel` is a\n\t// Vercel Marketplace resource token.\n\t//\n\t// Any of \"api_key\", \"oauth\", \"dashboard\", \"vercel\".\n\tSource string `json:\"source\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCredentialID respjson.Field\n\t\tMethod       respjson.Field\n\t\tSource       respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r AuthContextAuthentication) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AuthContextAuthentication) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthContextAuthorization struct {\n\t// A scope within the authenticated organization. A null project_id represents\n\t// organization-wide scope.\n\tCredentialScope AuthContextAuthorizationCredentialScope `json:\"credential_scope\" api:\"required\"`\n\t// A scope within the authenticated organization. A null project_id represents\n\t// organization-wide scope.\n\tEffectiveScope AuthContextAuthorizationEffectiveScope `json:\"effective_scope\" api:\"required\"`\n\t// Current effective paired policy for a service-account principal. Omitted for\n\t// legacy human/client identities.\n\tEffectivePolicy AuthContextAuthorizationEffectivePolicy `json:\"effective_policy\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCredentialScope respjson.Field\n\t\tEffectiveScope  respjson.Field\n\t\tEffectivePolicy respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nThe credential's maximum scope and the effective scope selected for this request. Future permission data can be added without changing scope semantics.\n\n```go\nfunc (r AuthContextAuthorization) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AuthContextAuthorization) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthContextAuthorizationCredentialScope struct {\n\t// The Kernel project ID, or null when the scope is organization-wide.\n\tProjectID string `json:\"project_id\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tProjectID   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA scope within the authenticated organization. A null project\\_id represents organization-wide scope.\n\n```go\nfunc (r AuthContextAuthorizationCredentialScope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AuthContextAuthorizationCredentialScope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthContextAuthorizationEffectivePolicy struct {\n\t// Allow statements. Every action and resource not listed is denied.\n\tStatements []AuthContextAuthorizationEffectivePolicyStatement `json:\"statements\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tStatements  respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nCurrent effective paired policy for a service-account principal. Omitted for legacy human/client identities.\n\n```go\nfunc (r AuthContextAuthorizationEffectivePolicy) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AuthContextAuthorizationEffectivePolicy) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthContextAuthorizationEffectivePolicyStatement struct {\n\t// Permitted action, such as browsers:use or vaults:read. When creating an API key\n\t// or replacing its policy, `*` may replace whole components as shorthand:\n\t// browsers:_ names every browsers action, _:delete every delete action the\n\t// resource can carry, and _:_ every action the resource can carry. The stored\n\t// policy lists the concrete actions, so actions added later are not granted, and\n\t// api_keys:issue_beyond_expiry must always be listed explicitly. Partial\n\t// components such as brow*:use and a bare * are rejected. Other policies, such as\n\t// workload identity rules and deployment runtime policies, accept only exact\n\t// actions.\n\tAction string `json:\"action\" api:\"required\"`\n\t// Resource the action applies to, in the format projects/{project_id}/{kind}/{id}.\n\t// Wildcards are supported.\n\tResource string `json:\"resource\" api:\"required\"`\n\t// A condition narrows a policy statement to requests matching its constraint: the\n\t// request attribute, a comparison operator, and that operator's values.\n\tCondition AuthContextAuthorizationEffectivePolicyStatementCondition `json:\"condition\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAction      respjson.Field\n\t\tResource    respjson.Field\n\t\tCondition   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r AuthContextAuthorizationEffectivePolicyStatement) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AuthContextAuthorizationEffectivePolicyStatement) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthContextAuthorizationEffectivePolicyStatementCondition struct {\n\t// Request attribute the condition constrains. `source_ip` restricts the statement\n\t// to requests whose client address falls inside one of `values`.\n\t//\n\t// Any of \"source_ip\".\n\tKey string `json:\"key\" api:\"required\"`\n\t// Comparison the condition applies between the request attribute and values.\n\t//\n\t// Any of \"in\".\n\tOperator string `json:\"operator\" api:\"required\"`\n\t// Values the request attribute must match. For `source_ip`, CIDR networks: a bare\n\t// address without a mask is rejected, and so are an entry with host bits set and\n\t// an IPv4 network written in IPv6 notation.\n\tValues []string `json:\"values\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tKey         respjson.Field\n\t\tOperator    respjson.Field\n\t\tValues      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA condition narrows a policy statement to requests matching its constraint: the request attribute, a comparison operator, and that operator's values.\n\n```go\nfunc (r AuthContextAuthorizationEffectivePolicyStatementCondition) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AuthContextAuthorizationEffectivePolicyStatementCondition) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthContextAuthorizationEffectiveScope struct {\n\t// The Kernel project ID, or null when the scope is organization-wide.\n\tProjectID string `json:\"project_id\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tProjectID   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA scope within the authenticated organization. A null project\\_id represents organization-wide scope.\n\n```go\nfunc (r AuthContextAuthorizationEffectiveScope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AuthContextAuthorizationEffectiveScope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthContextOrganization struct {\n\t// The authenticated Kernel organization ID.\n\tID string `json:\"id\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r AuthContextOrganization) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AuthContextOrganization) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthContextPrincipal struct {\n\t// The authenticated API key, user or organization-owned service-account ID.\n\tID string `json:\"id\" api:\"required\"`\n\t// The kind of principal authenticated for the request.\n\t//\n\t// Any of \"api_key\", \"user\", \"service_account\".\n\tType string `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r AuthContextPrincipal) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AuthContextPrincipal) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthContextService struct {\n\tOptions []option.RequestOption\n}\n```\nInspect the identity and authorization context for the current request.\n\nAuthContextService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewAuthContextService](#NewAuthContextService) method instead.\n\n```go\nfunc NewAuthContextService(opts ...option.RequestOption) (r AuthContextService)\n```\nNewAuthContextService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *AuthContextService) Get(ctx context.Context, opts ...option.RequestOption) (res *AuthContext, err error)\n```\nReturns the authenticated principal, organization, credential scope, and effective request scope. The response is derived from the verified request context and does not expose credential secrets.\n\n```go\ntype AuthContextWorkloadIdentity struct {\n\t// Digest of the verified external subject. Never the original assertion or\n\t// arbitrary claims.\n\tExternalSubjectDigest string `json:\"external_subject_digest\" api:\"required\"`\n\tFederationRuleID      string `json:\"federation_rule_id\" api:\"required\"`\n\tIssuerID              string `json:\"issuer_id\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tExternalSubjectDigest respjson.Field\n\t\tFederationRuleID      respjson.Field\n\t\tIssuerID              respjson.Field\n\t\tExtraFields           map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r AuthContextWorkloadIdentity) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AuthContextWorkloadIdentity) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthService struct {\n\tOptions []option.RequestOption\n\t// Inspect the identity and authorization context for the current request.\n\tContext AuthContextService\n\t// Create and manage auth connections for automated credential capture and login.\n\tConnections AuthConnectionService\n}\n```\nAuthService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewAuthService](#NewAuthService) method instead.\n\n```go\nfunc NewAuthService(opts ...option.RequestOption) (r AuthService)\n```\nNewAuthService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\ntype AuthorizeVaultItemOperationRequestParam struct {\n\t// Any of \"authorize\".\n\tType AuthorizeVaultItemOperationRequestType `json:\"type,omitzero\" api:\"required\"`\n\t// Browser session ID, not a reusable browser name. The browser must have this\n\t// vault attached.\n\tBrowserID param.Opt[string] `json:\"browser_id,omitzero\"`\n\t// Exact current top-level URL of the final checkout page open in browser_id.\n\tPageURL param.Opt[string] `json:\"page_url,omitzero\" format:\"uri\"`\n\t// contains filtered or unexported fields\n}\n```\nAuthorize a Link, Kernel or Shop Pay card using its existing purchase specification. Use only after explicit user approval and when the item advertises authorize; follow the advertised operation's description. For a Link or Shop Pay card, pass browser\\_id and page\\_url together while the browser is on the final checkout page: Kernel confirms that checkout is open, sends it to the provider as the merchant, and limits fill to that checkout's origin in any browser with this vault attached. For Link it also chooses how the credential is delivered. Omitting both issues a virtual card that fills any page on the merchant origin. Once approval has been requested, browser\\_id and page\\_url are ignored and authorize only re-checks the request. Browser and checkout inspection errors occur before any provider request and can be retried once the browser is on the checkout page. Kernel cards accept browser\\_id but not page\\_url: browser\\_id names the browser that will pay, which must have this vault attached. For cards whose cardholder enters a fresh CVC on an encrypting card form, Kernel tries to route that browser through the card vault's proxy as soon as the CVC is entered, so authorize before the browser opens the payment step and retrieve the card until fill is advertised before opening it. Other cards, and any card whose routing fails, are routed at their first fill.\n\nThe property Type is required.\n\n```go\nfunc (r AuthorizeVaultItemOperationRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *AuthorizeVaultItemOperationRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AuthorizeVaultItemOperationRequestType string\n```\n\n```go\nconst (\n\tAuthorizeVaultItemOperationRequestTypeAuthorize AuthorizeVaultItemOperationRequestType = \"authorize\"\n)\n```\n\n```go\ntype Browser struct {\n\tGPU      bool `json:\"gpu\" api:\"required\"`\n\tHeadless bool `json:\"headless\" api:\"required\"`\n\tStealth  bool `json:\"stealth\" api:\"required\"`\n\t// Initial browser window size in pixels with optional refresh rate. If omitted,\n\t// image defaults apply (1920x1080@25). For GPU images, the default is\n\t// 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.\n\t// Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,\n\t// 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For\n\t// GPU images, recommended presets use one of these resolutions with refresh rates\n\t// 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,\n\t// 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,\n\t// 768x1024, 800x1600. Viewports outside this list may exhibit unstable live view\n\t// or recording behavior. If refresh_rate is not provided, it will be automatically\n\t// determined based on the resolution (higher resolutions use lower refresh rates\n\t// to keep bandwidth reasonable).\n\tViewport shared.BrowserViewport `json:\"viewport\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tGPU         respjson.Field\n\t\tHeadless    respjson.Field\n\t\tStealth     respjson.Field\n\t\tViewport    respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nBrowser settings that can be passed directly to \\`POST /browsers\\`.\n\n```go\nfunc (r Browser) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Browser) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserAPICallEvent struct {\n\tCategory constant.Control `json:\"category\" default:\"control\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                   `json:\"ts\" api:\"required\"`\n\tType constant.APICall        `json:\"type\" default:\"api_call\"`\n\tData BrowserAPICallEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn agent-driven HTTP call that drives the browser, handled by the in-VM API server. Calls that manage the VM instead emit platform\\_api\\_call.\n\n```go\nfunc (r BrowserAPICallEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserAPICallEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserAPICallEventData struct {\n\t// Wall-clock duration of the handler in milliseconds.\n\tDurationMs float64 `json:\"duration_ms\" api:\"required\"`\n\t// Matched route's operation, named as the in-VM API names its handler (e.g.\n\t// ProcessExec, TakeScreenshot).\n\tOperationID string `json:\"operation_id\" api:\"required\"`\n\t// Per-request identifier from the in-VM API request middleware.\n\tRequestID string `json:\"request_id\" api:\"required\"`\n\t// HTTP response status code.\n\tStatus int64 `json:\"status\" api:\"required\"`\n\t// Source submitted to the Playwright code-execution endpoint, capped at 8192 bytes\n\t// like every other captured string. A capped value is cut on a character boundary\n\t// and ends in `...[truncated]`. Absent for every other operation.\n\tCode string `json:\"code\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDurationMs  respjson.Field\n\t\tOperationID respjson.Field\n\t\tRequestID   respjson.Field\n\t\tStatus      respjson.Field\n\t\tCode        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserAPICallEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserAPICallEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserAllowlistState struct {\n\t// Opaque revision to pass as network.expected_allowlist_revision on an update.\n\tRevision string `json:\"revision\" api:\"required\"`\n\t// Revision against which that mutation was accepted; reuse it when retrying the\n\t// mutation.\n\tBaseRevision string `json:\"base_revision\"`\n\t// ID of the last conditional allowlist update saved on this browser.\n\tMutationID string `json:\"mutation_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tRevision     respjson.Field\n\t\tBaseRevision respjson.Field\n\t\tMutationID   respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserAllowlistState) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r BrowserAllowlistState) ToParam() BrowserAllowlistStateParam\n```\nToParam converts this BrowserAllowlistState to a BrowserAllowlistStateParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with BrowserAllowlistStateParam.Overrides()\n\n```go\nfunc (r *BrowserAllowlistState) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserAllowlistStateParam struct {\n\t// Opaque revision to pass as network.expected_allowlist_revision on an update.\n\tRevision string `json:\"revision\" api:\"required\"`\n\t// Revision against which that mutation was accepted; reuse it when retrying the\n\t// mutation.\n\tBaseRevision param.Opt[string] `json:\"base_revision,omitzero\"`\n\t// ID of the last conditional allowlist update saved on this browser.\n\tMutationID param.Opt[string] `json:\"mutation_id,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Revision is required.\n\n```go\nfunc (r BrowserAllowlistStateParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserAllowlistStateParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserBandwidthParam struct {\n\t// Download limit (internet to browser) in megabits per second.\n\tDownloadMbps param.Opt[int64] `json:\"download_mbps,omitzero\"`\n\t// Upload limit (browser to internet) in megabits per second.\n\tUploadMbps param.Opt[int64] `json:\"upload_mbps,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nNetwork bandwidth limits for a browser, in megabits per second. A limit can only be lowered from the default of 300; set 300 to return to the default. Omit a field to leave that direction unchanged.\n\n```go\nfunc (r BrowserBandwidthParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserBandwidthParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCallStack struct {\n\t// Ordered list of call frames, outermost first.\n\tCallFrames []BrowserCallStackCallFrame `json:\"callFrames\" api:\"required\"`\n\t// Optional label for the stack trace (e.g. async cause).\n\tDescription string `json:\"description\"`\n\t// Parent stack trace for async stacks.\n\tParent *BrowserCallStack `json:\"parent\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCallFrames  respjson.Field\n\t\tDescription respjson.Field\n\t\tParent      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nCDP Runtime.StackTrace representing the JavaScript call stack at the time of an event. Fields use CDP naming conventions rather than snake\\_case to match the Chrome DevTools Protocol wire format.\n\n```go\nfunc (r BrowserCallStack) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCallStack) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCallStackCallFrame struct {\n\t// Zero-based column number within the line.\n\tColumnNumber int64 `json:\"columnNumber\" api:\"required\"`\n\t// JavaScript function name, or empty string for anonymous functions.\n\tFunctionName string `json:\"functionName\" api:\"required\"`\n\t// Zero-based line number within the script.\n\tLineNumber int64 `json:\"lineNumber\" api:\"required\"`\n\t// CDP script identifier.\n\tScriptID string `json:\"scriptId\" api:\"required\"`\n\t// URL or name of the script file.\n\tURL string `json:\"url\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tColumnNumber respjson.Field\n\t\tFunctionName respjson.Field\n\t\tLineNumber   respjson.Field\n\t\tScriptID     respjson.Field\n\t\tURL          respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserCallStackCallFrame) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCallStackCallFrame) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCaptchaChallengeResultEvent struct {\n\tCategory constant.Captcha `json:\"category\" default:\"captcha\"`\n\t// An observed challenge emits one outcome across any number of solver tasks. For\n\t// eligible providers without a widget observer, each successful token task emits\n\t// an inferred solved result instead; multiple such results may belong to one\n\t// challenge. Failed tasks and image_challenge rounds produce no inferred result.\n\t// Exactly one of challenge_id or task_id is present: challenge_id on an observed\n\t// result, task_id on an inferred one. A challenge whose tasks all fail produces\n\t// task events only, so consumers fall back to captcha_solve_result for it.\n\tData BrowserCaptchaChallengeResultEventData `json:\"data\" api:\"required\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                           `json:\"ts\" api:\"required\"`\n\tType constant.CaptchaChallengeResult `json:\"type\" default:\"captcha_challenge_result\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tData        respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA captcha challenge reached an observed or inferred terminal outcome.\n\n```go\nfunc (r BrowserCaptchaChallengeResultEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCaptchaChallengeResultEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCaptchaChallengeResultEventData struct {\n\t// Deprecated: use captcha_provider.\n\t//\n\t// Any of \"hcaptcha\", \"recaptcha_v2\", \"recaptcha_v3\", \"turnstile\", \"geetest\",\n\t// \"press_and_hold\", \"other\".\n\t//\n\t// Deprecated: deprecated\n\tCaptchaType string `json:\"captcha_type\" api:\"required\"`\n\t// Wall-clock duration from the challenge appearing to its terminal outcome,\n\t// covering every solver attempt in between. For an inferred result, the duration\n\t// of its solver task.\n\tDurationMs float64 `json:\"duration_ms\" api:\"required\"`\n\t// Terminal outcome of a challenge. solved: the page observed the challenge clear\n\t// after a solver attempt, or an inferred result reports a token for the whole\n\t// widget without page observation. failure: a terminal solver failure occurred, or\n\t// all attempts ended while the challenge remained. timeout: the challenge-level\n\t// wait budget expired while the challenge remained. abandoned: observation ended\n\t// without an attributable terminal challenge outcome. This includes a dismissed\n\t// widget or page unload without a solved signal or terminal solver outcome, and a\n\t// token appearing while multiple same-provider challenges are open, because the\n\t// producer cannot attribute that token to this visible challenge. A\n\t// captcha_solve_result with the same challenge_id may therefore report success\n\t// while the challenge result reports abandoned. A solved challenge does not prove\n\t// the site accepted the token or that the guarded action succeeded.\n\t//\n\t// Any of \"solved\", \"failure\", \"timeout\", \"abandoned\".\n\tStatus string `json:\"status\" api:\"required\"`\n\t// Captcha product the challenge belongs to, not the service that solved it.\n\t// Enterprise reCAPTCHA variants are grouped into their version bucket\n\t// (recaptcha_v2 or recaptcha_v3), FunCaptcha uses arkose, press-and-hold\n\t// challenges served by HUMAN (formerly PerimeterX) use human, and unlisted\n\t// products, including text captchas a site draws itself, use other.\n\t//\n\t// Any of \"hcaptcha\", \"recaptcha_v2\", \"recaptcha_v3\", \"turnstile\", \"geetest\",\n\t// \"arkose\", \"human\", \"binance\", \"other\".\n\tCaptchaProvider string `json:\"captcha_provider\"`\n\t// Opaque identifier shared by events for one visible challenge. An image-grid\n\t// captcha may create multiple task_id values for one challenge_id. The same value\n\t// may continue across a page reload when the challenge episode continues. It does\n\t// not indicate task ordering or challenge completion.\n\tChallengeID string `json:\"challenge_id\"`\n\t// True when the relay derived this result from a successful token task without\n\t// observing the page. An inferred result has task_id instead of challenge_id.\n\t// Absent on page-observed results.\n\tInferred bool `json:\"inferred\"`\n\t// The task_id of the solver task an inferred result was derived from. Join on it\n\t// to pair the result with that task's captcha_solve_started and\n\t// captcha_solve_result. Present only when inferred is true.\n\tTaskID string `json:\"task_id\"`\n\t// Host of the page where the challenge appeared.\n\tWebsiteHost string `json:\"website_host\"`\n\t// Path of the page where the challenge appeared. Query string excluded.\n\tWebsitePath string `json:\"website_path\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCaptchaType     respjson.Field\n\t\tDurationMs      respjson.Field\n\t\tStatus          respjson.Field\n\t\tCaptchaProvider respjson.Field\n\t\tChallengeID     respjson.Field\n\t\tInferred        respjson.Field\n\t\tTaskID          respjson.Field\n\t\tWebsiteHost     respjson.Field\n\t\tWebsitePath     respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn observed challenge emits one outcome across any number of solver tasks. For eligible providers without a widget observer, each successful token task emits an inferred solved result instead; multiple such results may belong to one challenge. Failed tasks and image\\_challenge rounds produce no inferred result. Exactly one of challenge\\_id or task\\_id is present: challenge\\_id on an observed result, task\\_id on an inferred one. A challenge whose tasks all fail produces task events only, so consumers fall back to captcha\\_solve\\_result for it.\n\n```go\nfunc (r BrowserCaptchaChallengeResultEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCaptchaChallengeResultEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCaptchaSolveResultEvent struct {\n\tCategory constant.Captcha `json:\"category\" default:\"captcha\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                              `json:\"ts\" api:\"required\"`\n\tType constant.CaptchaSolveResult        `json:\"type\" default:\"captcha_solve_result\"`\n\tData BrowserCaptchaSolveResultEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA captcha solve attempt reached a terminal outcome.\n\n```go\nfunc (r BrowserCaptchaSolveResultEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCaptchaSolveResultEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCaptchaSolveResultEventData struct {\n\t// Deprecated: use captcha_provider and task_kind.\n\t//\n\t// Any of \"hcaptcha\", \"recaptcha_v2\", \"recaptcha_v3\", \"turnstile\", \"geetest\",\n\t// \"press_and_hold\", \"other\".\n\t//\n\t// Deprecated: deprecated\n\tCaptchaType string `json:\"captcha_type\" api:\"required\"`\n\t// Wall-clock duration from solve start to terminal outcome. Authoritative solve\n\t// timing; do not derive it from the gap to a captcha_solve_started event, whose\n\t// delivery and ordering are not guaranteed.\n\tDurationMs float64 `json:\"duration_ms\" api:\"required\"`\n\t// Terminal outcome. success: solver returned a usable solution. failure: solver\n\t// returned an error (see error_code). timeout: solver did not return within the\n\t// caller's wait budget. abandoned: caller cancelled or the page navigated away\n\t// mid-solve.\n\t//\n\t// Any of \"success\", \"failure\", \"timeout\", \"abandoned\".\n\tStatus string `json:\"status\" api:\"required\"`\n\t// Captcha product the challenge belongs to, not the service that solved it.\n\t// Enterprise reCAPTCHA variants are grouped into their version bucket\n\t// (recaptcha_v2 or recaptcha_v3), FunCaptcha uses arkose, press-and-hold\n\t// challenges served by HUMAN (formerly PerimeterX) use human, and unlisted\n\t// products, including text captchas a site draws itself, use other.\n\t//\n\t// Any of \"hcaptcha\", \"recaptcha_v2\", \"recaptcha_v3\", \"turnstile\", \"geetest\",\n\t// \"arkose\", \"human\", \"binance\", \"other\".\n\tCaptchaProvider string `json:\"captcha_provider\"`\n\t// Opaque identifier shared by events for one visible challenge. An image-grid\n\t// captcha may create multiple task_id values for one challenge_id. The same value\n\t// may continue across a page reload when the challenge episode continues. It does\n\t// not indicate task ordering or challenge completion.\n\tChallengeID string `json:\"challenge_id\"`\n\t// Solver-specific error code on failure (e.g. ERROR_CAPTCHA_UNSOLVABLE). Absent on\n\t// success.\n\tErrorCode string `json:\"error_code\"`\n\t// Captured hCaptcha recognition media, when known.\n\t//\n\t// Any of \"image\", \"video\".\n\tMedia string `json:\"media\"`\n\t// Opaque identifier shared with the matching captcha_solve_started.\n\tTaskID string `json:\"task_id\"`\n\t// What the solver task produces. Absent when the producer cannot tell.\n\t//\n\t// Any of \"token\", \"image_challenge\", \"press_and_hold\".\n\tTaskKind string `json:\"task_kind\"`\n\t// Host of the page where the captcha was solved.\n\tWebsiteHost string `json:\"website_host\"`\n\t// Path of the page where the captcha was solved. Query string excluded.\n\tWebsitePath string `json:\"website_path\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCaptchaType     respjson.Field\n\t\tDurationMs      respjson.Field\n\t\tStatus          respjson.Field\n\t\tCaptchaProvider respjson.Field\n\t\tChallengeID     respjson.Field\n\t\tErrorCode       respjson.Field\n\t\tMedia           respjson.Field\n\t\tTaskID          respjson.Field\n\t\tTaskKind        respjson.Field\n\t\tWebsiteHost     respjson.Field\n\t\tWebsitePath     respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserCaptchaSolveResultEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCaptchaSolveResultEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCaptchaSolveStartedEvent struct {\n\tCategory constant.Captcha `json:\"category\" default:\"captcha\"`\n\t// Per-task payload. A visible challenge may create multiple tasks. When present,\n\t// task_id correlates this event with a captcha_solve_result, while challenge_id\n\t// groups tasks from the same challenge. Events may arrive out of order or be\n\t// absent, so their arrival does not indicate current solve state.\n\tData BrowserCaptchaSolveStartedEventData `json:\"data\" api:\"required\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                        `json:\"ts\" api:\"required\"`\n\tType constant.CaptchaSolveStarted `json:\"type\" default:\"captcha_solve_started\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tData        respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA captcha solver accepted a task.\n\n```go\nfunc (r BrowserCaptchaSolveStartedEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCaptchaSolveStartedEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCaptchaSolveStartedEventData struct {\n\t// Deprecated: use captcha_provider and task_kind.\n\t//\n\t// Any of \"hcaptcha\", \"recaptcha_v2\", \"recaptcha_v3\", \"turnstile\", \"geetest\",\n\t// \"press_and_hold\", \"other\".\n\t//\n\t// Deprecated: deprecated\n\tCaptchaType string `json:\"captcha_type\" api:\"required\"`\n\t// Captcha product the challenge belongs to, not the service that solved it.\n\t// Enterprise reCAPTCHA variants are grouped into their version bucket\n\t// (recaptcha_v2 or recaptcha_v3), FunCaptcha uses arkose, press-and-hold\n\t// challenges served by HUMAN (formerly PerimeterX) use human, and unlisted\n\t// products, including text captchas a site draws itself, use other.\n\t//\n\t// Any of \"hcaptcha\", \"recaptcha_v2\", \"recaptcha_v3\", \"turnstile\", \"geetest\",\n\t// \"arkose\", \"human\", \"binance\", \"other\".\n\tCaptchaProvider string `json:\"captcha_provider\"`\n\t// Opaque identifier shared by events for one visible challenge. An image-grid\n\t// captcha may create multiple task_id values for one challenge_id. The same value\n\t// may continue across a page reload when the challenge episode continues. It does\n\t// not indicate task ordering or challenge completion.\n\tChallengeID string `json:\"challenge_id\"`\n\t// Captured hCaptcha recognition media, when known.\n\t//\n\t// Any of \"image\", \"video\".\n\tMedia string `json:\"media\"`\n\t// Opaque identifier shared with the matching captcha_solve_result.\n\tTaskID string `json:\"task_id\"`\n\t// What the solver task produces. Absent when the producer cannot tell.\n\t//\n\t// Any of \"token\", \"image_challenge\", \"press_and_hold\".\n\tTaskKind string `json:\"task_kind\"`\n\t// Host of the page where the captcha is being solved. May be empty for solver\n\t// tasks that carry no page URL.\n\tWebsiteHost string `json:\"website_host\"`\n\t// Path of the page where the captcha is being solved. Query string excluded.\n\tWebsitePath string `json:\"website_path\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCaptchaType     respjson.Field\n\t\tCaptchaProvider respjson.Field\n\t\tChallengeID     respjson.Field\n\t\tMedia           respjson.Field\n\t\tTaskID          respjson.Field\n\t\tTaskKind        respjson.Field\n\t\tWebsiteHost     respjson.Field\n\t\tWebsitePath     respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPer-task payload. A visible challenge may create multiple tasks. When present, task\\_id correlates this event with a captcha\\_solve\\_result, while challenge\\_id groups tasks from the same challenge. Events may arrive out of order or be absent, so their arrival does not indicate current solve state.\n\n```go\nfunc (r BrowserCaptchaSolveStartedEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCaptchaSolveStartedEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCaptchaSolver struct {\n\t// Whether the browser automatically solves CAPTCHAs.\n\tEnabled bool `json:\"enabled\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEnabled     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAutomatic CAPTCHA solving configuration.\n\n```go\nfunc (r BrowserCaptchaSolver) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r BrowserCaptchaSolver) ToParam() BrowserCaptchaSolverParam\n```\nToParam converts this BrowserCaptchaSolver to a BrowserCaptchaSolverParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with BrowserCaptchaSolverParam.Overrides()\n\n```go\nfunc (r *BrowserCaptchaSolver) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCaptchaSolverParam struct {\n\t// Whether the browser automatically solves CAPTCHAs.\n\tEnabled bool `json:\"enabled\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nAutomatic CAPTCHA solving configuration.\n\nThe property Enabled is required.\n\n```go\nfunc (r BrowserCaptchaSolverParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserCaptchaSolverParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEvent struct {\n\tCategory constant.Control `json:\"category\" default:\"control\"`\n\t// Per-command payload for `cdp_command` events, discriminated by `method`. Each\n\t// variant carries only the arguments approved for that command: values that could\n\t// hold a secret — typed and composition text, URLs, referrers, scripts, templates,\n\t// file paths, drag contents and autofill values — are replaced by a length, a\n\t// count, a presence flag, an enum or a URL scheme and host.\n\tData BrowserCdpCommandEventDataUnion `json:\"data\" api:\"required\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64               `json:\"ts\" api:\"required\"`\n\tType constant.CdpCommand `json:\"type\" default:\"cdp_command\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tData        respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA browser-control command a client sent over the CDP WebSocket proxy: input gestures, navigation, dialog handling, file selection and screenshots. Configuration commands and the DOM/Runtime traffic a client library issues on the caller's behalf are not reported. One event per browser-control command that reached the browser. The command stream is not sampled, coalesced or reordered. An event is lost only when the method is excluded by telemetry configuration, when the command's arguments do not decode, or when classification cannot keep up. Exclusions are counted in \\`cdp\\_disconnect.telemetry\\_excluded\\`; the rest in \\`cdp\\_disconnect.telemetry\\_dropped\\`.\n\n```go\nfunc (r BrowserCdpCommandEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataAutofillTrigger struct {\n\t// Opaque backend node identifier of the field that was autofilled.\n\tFieldID int64                    `json:\"field_id\" api:\"required\"`\n\tMethod  constant.AutofillTrigger `json:\"method\" default:\"Autofill.trigger\"`\n\t// Number of address fields the command filled. Their names and values are never\n\t// captured.\n\tAddressFieldCount int64 `json:\"address_field_count\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// Opaque frame identifier. Clipped to 128 characters; a longer value is not a real\n\t// identifier.\n\tFrameID string `json:\"frame_id\"`\n\t// What was filled: `card` or `address`. The values themselves are never captured.\n\t//\n\t// Any of \"card\", \"address\".\n\tMode string `json:\"mode\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tFieldID           respjson.Field\n\t\tMethod            respjson.Field\n\t\tAddressFieldCount respjson.Field\n\t\tCommandID         respjson.Field\n\t\tConnectionID      respjson.Field\n\t\tFrameID           respjson.Field\n\t\tMode              respjson.Field\n\t\tSessionID         respjson.Field\n\t\tExtraFields       map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Autofill.trigger\\` arguments. Canonical input: \\`Autofill.trigger\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataAutofillTrigger) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataAutofillTrigger) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataBrowserCancelDownload struct {\n\t// Opaque identifier of the download that was cancelled. Clipped to 128 characters;\n\t// a longer value is not a real identifier.\n\tDownloadGuid string                         `json:\"download_guid\" api:\"required\"`\n\tMethod       constant.BrowserCancelDownload `json:\"method\" default:\"Browser.cancelDownload\"`\n\t// Opaque browser context identifier. Clipped to 128 characters; a longer value is\n\t// not a real identifier.\n\tBrowserContextID string `json:\"browser_context_id\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDownloadGuid     respjson.Field\n\t\tMethod           respjson.Field\n\t\tBrowserContextID respjson.Field\n\t\tCommandID        respjson.Field\n\t\tConnectionID     respjson.Field\n\t\tSessionID        respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Browser.cancelDownload\\` arguments. Canonical input: \\`Browser.cancelDownload\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataBrowserCancelDownload) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataBrowserCancelDownload) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataBrowserClose struct {\n\tMethod constant.BrowserClose `json:\"method\" default:\"Browser.close\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMethod       respjson.Field\n\t\tCommandID    respjson.Field\n\t\tConnectionID respjson.Field\n\t\tSessionID    respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Browser.close\\` arguments. Canonical input: \\`Browser.close\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataBrowserClose) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataBrowserClose) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataBrowserSetContentsSize struct {\n\tMethod constant.BrowserSetContentsSize `json:\"method\" default:\"Browser.setContentsSize\"`\n\t// Browser window identifier.\n\tWindowID int64 `json:\"window_id\" api:\"required\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// Contents height in DIP.\n\tHeight int64 `json:\"height\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// Contents width in DIP.\n\tWidth int64 `json:\"width\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMethod       respjson.Field\n\t\tWindowID     respjson.Field\n\t\tCommandID    respjson.Field\n\t\tConnectionID respjson.Field\n\t\tHeight       respjson.Field\n\t\tSessionID    respjson.Field\n\t\tWidth        respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Browser.setContentsSize\\` arguments. Canonical input: \\`Browser.setContentsSize\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataBrowserSetContentsSize) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataBrowserSetContentsSize) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataBrowserSetWindowBounds struct {\n\tMethod constant.BrowserSetWindowBounds `json:\"method\" default:\"Browser.setWindowBounds\"`\n\t// Browser window identifier.\n\tWindowID int64 `json:\"window_id\" api:\"required\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// Window height in DIP.\n\tHeight int64 `json:\"height\"`\n\t// Window x position in screen coordinates.\n\tLeft int64 `json:\"left\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// Window y position in screen coordinates.\n\tTop int64 `json:\"top\"`\n\t// Window width in DIP.\n\tWidth int64 `json:\"width\"`\n\t// Window state requested (`normal`, `minimized`, `maximized`, `fullscreen`). A\n\t// value the protocol does not define is reported as `other`.\n\t//\n\t// Any of \"normal\", \"minimized\", \"maximized\", \"fullscreen\", \"other\".\n\tWindowState string `json:\"window_state\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMethod       respjson.Field\n\t\tWindowID     respjson.Field\n\t\tCommandID    respjson.Field\n\t\tConnectionID respjson.Field\n\t\tHeight       respjson.Field\n\t\tLeft         respjson.Field\n\t\tSessionID    respjson.Field\n\t\tTop          respjson.Field\n\t\tWidth        respjson.Field\n\t\tWindowState  respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Browser.setWindowBounds\\` arguments. Canonical input: \\`Browser.setWindowBounds\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataBrowserSetWindowBounds) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataBrowserSetWindowBounds) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataDomFocus struct {\n\tMethod constant.DomFocus `json:\"method\" default:\"DOM.focus\"`\n\t// Opaque backend DOM node identifier the command targeted.\n\tBackendNodeID int64 `json:\"backend_node_id\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// Opaque DOM node identifier the command targeted.\n\tNodeID int64 `json:\"node_id\"`\n\t// Opaque Runtime remote object identifier the command targeted. Clipped to 128\n\t// characters; a longer value is not a real identifier.\n\tObjectID string `json:\"object_id\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMethod        respjson.Field\n\t\tBackendNodeID respjson.Field\n\t\tCommandID     respjson.Field\n\t\tConnectionID  respjson.Field\n\t\tNodeID        respjson.Field\n\t\tObjectID      respjson.Field\n\t\tSessionID     respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`DOM.focus\\` arguments. Canonical input: \\`DOM.focus\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataDomFocus) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataDomFocus) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataDomScrollIntoViewIfNeeded struct {\n\tMethod constant.DomScrollIntoViewIfNeeded `json:\"method\" default:\"DOM.scrollIntoViewIfNeeded\"`\n\t// Opaque backend DOM node identifier the command targeted.\n\tBackendNodeID int64 `json:\"backend_node_id\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// Opaque DOM node identifier the command targeted.\n\tNodeID int64 `json:\"node_id\"`\n\t// Opaque Runtime remote object identifier the command targeted. Clipped to 128\n\t// characters; a longer value is not a real identifier.\n\tObjectID string `json:\"object_id\"`\n\t// Height of the rect the command scrolled to.\n\tRectHeight float64 `json:\"rect_height\"`\n\t// Width of the rect the command scrolled to.\n\tRectWidth float64 `json:\"rect_width\"`\n\t// X offset of the rect the command scrolled to, relative to the node.\n\tRectX float64 `json:\"rect_x\"`\n\t// Y offset of the rect the command scrolled to, relative to the node.\n\tRectY float64 `json:\"rect_y\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMethod        respjson.Field\n\t\tBackendNodeID respjson.Field\n\t\tCommandID     respjson.Field\n\t\tConnectionID  respjson.Field\n\t\tNodeID        respjson.Field\n\t\tObjectID      respjson.Field\n\t\tRectHeight    respjson.Field\n\t\tRectWidth     respjson.Field\n\t\tRectX         respjson.Field\n\t\tRectY         respjson.Field\n\t\tSessionID     respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`DOM.scrollIntoViewIfNeeded\\` arguments. Canonical input: \\`DOM.scrollIntoViewIfNeeded\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataDomScrollIntoViewIfNeeded) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataDomScrollIntoViewIfNeeded) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataDomSetFileInputFiles struct {\n\t// Number of files handed to the input. File paths are never captured.\n\tFileCount int64                         `json:\"file_count\" api:\"required\"`\n\tMethod    constant.DomSetFileInputFiles `json:\"method\" default:\"DOM.setFileInputFiles\"`\n\t// Opaque backend DOM node identifier the command targeted.\n\tBackendNodeID int64 `json:\"backend_node_id\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// Opaque DOM node identifier the command targeted.\n\tNodeID int64 `json:\"node_id\"`\n\t// Opaque Runtime remote object identifier the command targeted. Clipped to 128\n\t// characters; a longer value is not a real identifier.\n\tObjectID string `json:\"object_id\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tFileCount     respjson.Field\n\t\tMethod        respjson.Field\n\t\tBackendNodeID respjson.Field\n\t\tCommandID     respjson.Field\n\t\tConnectionID  respjson.Field\n\t\tNodeID        respjson.Field\n\t\tObjectID      respjson.Field\n\t\tSessionID     respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`DOM.setFileInputFiles\\` arguments. Canonical input: \\`DOM.setFileInputFiles\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataDomSetFileInputFiles) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataDomSetFileInputFiles) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataInputCancelDragging struct {\n\tMethod constant.InputCancelDragging `json:\"method\" default:\"Input.cancelDragging\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMethod       respjson.Field\n\t\tCommandID    respjson.Field\n\t\tConnectionID respjson.Field\n\t\tSessionID    respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Input.cancelDragging\\` arguments. Canonical input: \\`Input.cancelDragging\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataInputCancelDragging) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataInputCancelDragging) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataInputDispatchDragEvent struct {\n\t// Drag event phase: `dragEnter`, `dragOver`, `drop` or `dragCancel`. A value the\n\t// protocol does not define is reported as `other`.\n\t//\n\t// Any of \"dragEnter\", \"dragOver\", \"drop\", \"dragCancel\", \"other\".\n\tEventType string                          `json:\"event_type\" api:\"required\"`\n\tMethod    constant.InputDispatchDragEvent `json:\"method\" default:\"Input.dispatchDragEvent\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// Number of files in the drag payload. File paths are never captured.\n\tDragFileCount int64 `json:\"drag_file_count\"`\n\t// Number of items in the drag payload. Item contents are never captured.\n\tDragItemCount int64 `json:\"drag_item_count\"`\n\t// Distinct top-level MIME categories of the drag items (e.g. `text`, `image`,\n\t// `application`). Subtypes and contents are never captured. A value the protocol\n\t// does not define is reported as `other`.\n\t//\n\t// Any of \"text\", \"image\", \"audio\", \"video\", \"application\", \"font\", \"model\",\n\t// \"multipart\", \"message\", \"other\".\n\tDragMimeCategories []string `json:\"drag_mime_categories\"`\n\t// Bit field of allowed drag operations (1=copy, 2=link, 16=move).\n\tDragOperationsMask int64 `json:\"drag_operations_mask\"`\n\t// Bit field of held modifier keys (1=Alt, 2=Ctrl, 4=Meta, 8=Shift).\n\tModifiers int64 `json:\"modifiers\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// Viewport x coordinate in CSS pixels.\n\tX float64 `json:\"x\"`\n\t// Viewport y coordinate in CSS pixels.\n\tY float64 `json:\"y\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEventType          respjson.Field\n\t\tMethod             respjson.Field\n\t\tCommandID          respjson.Field\n\t\tConnectionID       respjson.Field\n\t\tDragFileCount      respjson.Field\n\t\tDragItemCount      respjson.Field\n\t\tDragMimeCategories respjson.Field\n\t\tDragOperationsMask respjson.Field\n\t\tModifiers          respjson.Field\n\t\tSessionID          respjson.Field\n\t\tX                  respjson.Field\n\t\tY                  respjson.Field\n\t\tExtraFields        map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Input.dispatchDragEvent\\` arguments. Canonical input: \\`Input.dispatchDragEvent\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataInputDispatchDragEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataInputDispatchDragEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataInputDispatchKeyEvent struct {\n\t// Key event phase: `keyDown`, `keyUp`, `rawKeyDown` or `char`. A value the\n\t// protocol does not define is reported as `other`.\n\t//\n\t// Any of \"keyDown\", \"keyUp\", \"rawKeyDown\", \"char\", \"other\".\n\tEventType string                         `json:\"event_type\" api:\"required\"`\n\tMethod    constant.InputDispatchKeyEvent `json:\"method\" default:\"Input.dispatchKeyEvent\"`\n\t// Whether the event was generated by key repeat.\n\tAutoRepeat bool `json:\"auto_repeat\"`\n\t// Number of editing commands (e.g. `selectAll`) carried by the event.\n\tCommandCount int64 `json:\"command_count\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// Whether the key is on the numeric keypad.\n\tIsKeypad bool `json:\"is_keypad\"`\n\t// Whether the event is a system key event.\n\tIsSystemKey bool `json:\"is_system_key\"`\n\t// Keyboard location (1=left, 2=right, 3=numpad).\n\tLocation int64 `json:\"location\"`\n\t// Bit field of held modifier keys (1=Alt, 2=Ctrl, 4=Meta, 8=Shift).\n\tModifiers int64 `json:\"modifiers\"`\n\t// Key that commands the page rather than typing into it (e.g. `Enter`, `Tab`,\n\t// `ArrowDown`, `F5`). Keys that produce a character are never captured; those are\n\t// counted by `text_length`.\n\tNamedKey string `json:\"named_key\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// Number of characters the command submitted. The text itself is never captured.\n\tTextLength int64 `json:\"text_length\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEventType    respjson.Field\n\t\tMethod       respjson.Field\n\t\tAutoRepeat   respjson.Field\n\t\tCommandCount respjson.Field\n\t\tCommandID    respjson.Field\n\t\tConnectionID respjson.Field\n\t\tIsKeypad     respjson.Field\n\t\tIsSystemKey  respjson.Field\n\t\tLocation     respjson.Field\n\t\tModifiers    respjson.Field\n\t\tNamedKey     respjson.Field\n\t\tSessionID    respjson.Field\n\t\tTextLength   respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Input.dispatchKeyEvent\\` arguments. Canonical input: \\`Input.dispatchKeyEvent\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataInputDispatchKeyEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataInputDispatchKeyEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataInputDispatchMouseEvent struct {\n\t// Mouse event phase: `mousePressed`, `mouseReleased`, `mouseMoved` or\n\t// `mouseWheel`. A value the protocol does not define is reported as `other`.\n\t//\n\t// Any of \"mousePressed\", \"mouseReleased\", \"mouseMoved\", \"mouseWheel\", \"other\".\n\tEventType string                           `json:\"event_type\" api:\"required\"`\n\tMethod    constant.InputDispatchMouseEvent `json:\"method\" default:\"Input.dispatchMouseEvent\"`\n\t// Button named by the command (`none`, `left`, `middle`, `right`, `back`,\n\t// `forward`). A value the protocol does not define is reported as `other`.\n\t//\n\t// Any of \"none\", \"left\", \"middle\", \"right\", \"back\", \"forward\", \"other\".\n\tButton string `json:\"button\"`\n\t// Bit field of buttons held down. Non-zero on a `mouseMoved` means the move is a\n\t// drag path.\n\tButtons int64 `json:\"buttons\"`\n\t// Number of times the button was clicked (2 is a double click).\n\tClickCount int64 `json:\"click_count\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// Horizontal scroll delta, for `mouseWheel`.\n\tDeltaX float64 `json:\"delta_x\"`\n\t// Vertical scroll delta, for `mouseWheel`.\n\tDeltaY float64 `json:\"delta_y\"`\n\t// Normalized pressure, 0 to 1.\n\tForce float64 `json:\"force\"`\n\t// Bit field of held modifier keys (1=Alt, 2=Ctrl, 4=Meta, 8=Shift).\n\tModifiers int64 `json:\"modifiers\"`\n\t// Pointer that generated the event (`mouse` or `pen`). A value the protocol does\n\t// not define is reported as `other`.\n\t//\n\t// Any of \"mouse\", \"pen\", \"other\".\n\tPointerType string `json:\"pointer_type\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// Normalized tangential pressure, -1 to 1.\n\tTangentialPressure float64 `json:\"tangential_pressure\"`\n\t// Pen tilt from the Y-Z plane, in degrees.\n\tTiltX float64 `json:\"tilt_x\"`\n\t// Pen tilt from the X-Z plane, in degrees.\n\tTiltY float64 `json:\"tilt_y\"`\n\t// Pen clockwise rotation, in degrees.\n\tTwist int64 `json:\"twist\"`\n\t// Viewport x coordinate in CSS pixels.\n\tX float64 `json:\"x\"`\n\t// Viewport y coordinate in CSS pixels.\n\tY float64 `json:\"y\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEventType          respjson.Field\n\t\tMethod             respjson.Field\n\t\tButton             respjson.Field\n\t\tButtons            respjson.Field\n\t\tClickCount         respjson.Field\n\t\tCommandID          respjson.Field\n\t\tConnectionID       respjson.Field\n\t\tDeltaX             respjson.Field\n\t\tDeltaY             respjson.Field\n\t\tForce              respjson.Field\n\t\tModifiers          respjson.Field\n\t\tPointerType        respjson.Field\n\t\tSessionID          respjson.Field\n\t\tTangentialPressure respjson.Field\n\t\tTiltX              respjson.Field\n\t\tTiltY              respjson.Field\n\t\tTwist              respjson.Field\n\t\tX                  respjson.Field\n\t\tY                  respjson.Field\n\t\tExtraFields        map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Input.dispatchMouseEvent\\` arguments. Canonical input: \\`Input.dispatchMouseEvent\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataInputDispatchMouseEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataInputDispatchMouseEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataInputDispatchTouchEvent struct {\n\t// Touch event phase: `touchStart`, `touchEnd`, `touchMove` or `touchCancel`. A\n\t// value the protocol does not define is reported as `other`.\n\t//\n\t// Any of \"touchStart\", \"touchEnd\", \"touchMove\", \"touchCancel\", \"other\".\n\tEventType string                           `json:\"event_type\" api:\"required\"`\n\tMethod    constant.InputDispatchTouchEvent `json:\"method\" default:\"Input.dispatchTouchEvent\"`\n\t// Number of active touch points the command carried.\n\tTouchPointCount int64 `json:\"touch_point_count\" api:\"required\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// Normalized pressure of the first touch point, 0 to 1.\n\tForce float64 `json:\"force\"`\n\t// Bit field of held modifier keys (1=Alt, 2=Ctrl, 4=Meta, 8=Shift).\n\tModifiers int64 `json:\"modifiers\"`\n\t// Horizontal radius of the first touch point.\n\tRadiusX float64 `json:\"radius_x\"`\n\t// Vertical radius of the first touch point.\n\tRadiusY float64 `json:\"radius_y\"`\n\t// Rotation of the first touch point, in degrees.\n\tRotationAngle float64 `json:\"rotation_angle\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// Normalized tangential pressure of the first touch point, -1 to 1.\n\tTangentialPressure float64 `json:\"tangential_pressure\"`\n\t// Tilt of the first touch point from the Y-Z plane, in degrees.\n\tTiltX float64 `json:\"tilt_x\"`\n\t// Tilt of the first touch point from the X-Z plane, in degrees.\n\tTiltY float64 `json:\"tilt_y\"`\n\t// Clockwise rotation of the first touch point, in degrees.\n\tTwist int64 `json:\"twist\"`\n\t// Viewport x coordinate of the first touch point. Touch coordinates live inside\n\t// `touchPoints`, so this is the primary point rather than a command-level\n\t// argument.\n\tX float64 `json:\"x\"`\n\t// Viewport y coordinate of the first touch point.\n\tY float64 `json:\"y\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEventType          respjson.Field\n\t\tMethod             respjson.Field\n\t\tTouchPointCount    respjson.Field\n\t\tCommandID          respjson.Field\n\t\tConnectionID       respjson.Field\n\t\tForce              respjson.Field\n\t\tModifiers          respjson.Field\n\t\tRadiusX            respjson.Field\n\t\tRadiusY            respjson.Field\n\t\tRotationAngle      respjson.Field\n\t\tSessionID          respjson.Field\n\t\tTangentialPressure respjson.Field\n\t\tTiltX              respjson.Field\n\t\tTiltY              respjson.Field\n\t\tTwist              respjson.Field\n\t\tX                  respjson.Field\n\t\tY                  respjson.Field\n\t\tExtraFields        map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Input.dispatchTouchEvent\\` arguments. Canonical input: \\`Input.dispatchTouchEvent\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataInputDispatchTouchEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataInputDispatchTouchEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataInputEmulateTouchFromMouseEvent struct {\n\t// Mouse event phase being emulated as touch. A value the protocol does not define\n\t// is reported as `other`.\n\t//\n\t// Any of \"mousePressed\", \"mouseReleased\", \"mouseMoved\", \"mouseWheel\", \"other\".\n\tEventType string                                   `json:\"event_type\" api:\"required\"`\n\tMethod    constant.InputEmulateTouchFromMouseEvent `json:\"method\" default:\"Input.emulateTouchFromMouseEvent\"`\n\t// Button named by the command. A value the protocol does not define is reported as\n\t// `other`.\n\t//\n\t// Any of \"none\", \"left\", \"middle\", \"right\", \"back\", \"forward\", \"other\".\n\tButton string `json:\"button\"`\n\t// Number of times the button was clicked.\n\tClickCount int64 `json:\"click_count\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// Horizontal scroll delta.\n\tDeltaX float64 `json:\"delta_x\"`\n\t// Vertical scroll delta.\n\tDeltaY float64 `json:\"delta_y\"`\n\t// Bit field of held modifier keys (1=Alt, 2=Ctrl, 4=Meta, 8=Shift).\n\tModifiers int64 `json:\"modifiers\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// Viewport x coordinate in CSS pixels.\n\tX float64 `json:\"x\"`\n\t// Viewport y coordinate in CSS pixels.\n\tY float64 `json:\"y\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEventType    respjson.Field\n\t\tMethod       respjson.Field\n\t\tButton       respjson.Field\n\t\tClickCount   respjson.Field\n\t\tCommandID    respjson.Field\n\t\tConnectionID respjson.Field\n\t\tDeltaX       respjson.Field\n\t\tDeltaY       respjson.Field\n\t\tModifiers    respjson.Field\n\t\tSessionID    respjson.Field\n\t\tX            respjson.Field\n\t\tY            respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Input.emulateTouchFromMouseEvent\\` arguments. Canonical input: \\`Input.emulateTouchFromMouseEvent\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataInputEmulateTouchFromMouseEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataInputEmulateTouchFromMouseEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataInputImeSetComposition struct {\n\tMethod constant.InputImeSetComposition `json:\"method\" default:\"Input.imeSetComposition\"`\n\t// Number of characters in the composition. The text itself is never captured.\n\tTextLength int64 `json:\"text_length\" api:\"required\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// Replacement range end offset.\n\tReplacementEnd int64 `json:\"replacement_end\"`\n\t// Replacement range start offset.\n\tReplacementStart int64 `json:\"replacement_start\"`\n\t// Selection end offset within the composition.\n\tSelectionEnd int64 `json:\"selection_end\"`\n\t// Selection start offset within the composition.\n\tSelectionStart int64 `json:\"selection_start\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMethod           respjson.Field\n\t\tTextLength       respjson.Field\n\t\tCommandID        respjson.Field\n\t\tConnectionID     respjson.Field\n\t\tReplacementEnd   respjson.Field\n\t\tReplacementStart respjson.Field\n\t\tSelectionEnd     respjson.Field\n\t\tSelectionStart   respjson.Field\n\t\tSessionID        respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Input.imeSetComposition\\` arguments. Canonical input: \\`Input.imeSetComposition\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataInputImeSetComposition) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataInputImeSetComposition) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataInputInsertText struct {\n\tMethod constant.InputInsertText `json:\"method\" default:\"Input.insertText\"`\n\t// Number of characters inserted. The text itself is never captured.\n\tTextLength int64 `json:\"text_length\" api:\"required\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMethod       respjson.Field\n\t\tTextLength   respjson.Field\n\t\tCommandID    respjson.Field\n\t\tConnectionID respjson.Field\n\t\tSessionID    respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Input.insertText\\` arguments. Canonical input: \\`Input.insertText\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataInputInsertText) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataInputInsertText) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataInputSynthesizePinchGesture struct {\n\tMethod constant.InputSynthesizePinchGesture `json:\"method\" default:\"Input.synthesizePinchGesture\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// Input source the synthesized gesture emulates. A value the protocol does not\n\t// define is reported as `other`.\n\t//\n\t// Any of \"default\", \"touch\", \"mouse\", \"other\".\n\tGestureSourceType string `json:\"gesture_source_type\"`\n\t// Relative pointer speed, in pixels per second.\n\tRelativeSpeed int64 `json:\"relative_speed\"`\n\t// Relative scale of the pinch (\u003e1 zooms in).\n\tScaleFactor float64 `json:\"scale_factor\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// Viewport x coordinate in CSS pixels.\n\tX float64 `json:\"x\"`\n\t// Viewport y coordinate in CSS pixels.\n\tY float64 `json:\"y\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMethod            respjson.Field\n\t\tCommandID         respjson.Field\n\t\tConnectionID      respjson.Field\n\t\tGestureSourceType respjson.Field\n\t\tRelativeSpeed     respjson.Field\n\t\tScaleFactor       respjson.Field\n\t\tSessionID         respjson.Field\n\t\tX                 respjson.Field\n\t\tY                 respjson.Field\n\t\tExtraFields       map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Input.synthesizePinchGesture\\` arguments. Canonical input: \\`Input.synthesizePinchGesture\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataInputSynthesizePinchGesture) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataInputSynthesizePinchGesture) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataInputSynthesizeScrollGesture struct {\n\tMethod constant.InputSynthesizeScrollGesture `json:\"method\" default:\"Input.synthesizeScrollGesture\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// Input source the synthesized gesture emulates. A value the protocol does not\n\t// define is reported as `other`.\n\t//\n\t// Any of \"default\", \"touch\", \"mouse\", \"other\".\n\tGestureSourceType string `json:\"gesture_source_type\"`\n\t// Whether fling was suppressed.\n\tPreventFling bool `json:\"prevent_fling\"`\n\t// Number of additional repeats of the scroll.\n\tRepeatCount int64 `json:\"repeat_count\"`\n\t// Delay between repeats, in milliseconds.\n\tRepeatDelayMs int64 `json:\"repeat_delay_ms\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// Swipe speed in pixels per second.\n\tSpeed int64 `json:\"speed\"`\n\t// Viewport x coordinate in CSS pixels.\n\tX float64 `json:\"x\"`\n\t// Horizontal scroll distance in CSS pixels; positive scrolls left.\n\tXDistance float64 `json:\"x_distance\"`\n\t// Additional horizontal distance scrolled past the end.\n\tXOverscroll float64 `json:\"x_overscroll\"`\n\t// Viewport y coordinate in CSS pixels.\n\tY float64 `json:\"y\"`\n\t// Vertical scroll distance in CSS pixels; positive scrolls up.\n\tYDistance float64 `json:\"y_distance\"`\n\t// Additional vertical distance scrolled past the end.\n\tYOverscroll float64 `json:\"y_overscroll\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMethod            respjson.Field\n\t\tCommandID         respjson.Field\n\t\tConnectionID      respjson.Field\n\t\tGestureSourceType respjson.Field\n\t\tPreventFling      respjson.Field\n\t\tRepeatCount       respjson.Field\n\t\tRepeatDelayMs     respjson.Field\n\t\tSessionID         respjson.Field\n\t\tSpeed             respjson.Field\n\t\tX                 respjson.Field\n\t\tXDistance         respjson.Field\n\t\tXOverscroll       respjson.Field\n\t\tY                 respjson.Field\n\t\tYDistance         respjson.Field\n\t\tYOverscroll       respjson.Field\n\t\tExtraFields       map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Input.synthesizeScrollGesture\\` arguments. Canonical input: \\`Input.synthesizeScrollGesture\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataInputSynthesizeScrollGesture) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataInputSynthesizeScrollGesture) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataInputSynthesizeTapGesture struct {\n\tMethod constant.InputSynthesizeTapGesture `json:\"method\" default:\"Input.synthesizeTapGesture\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// Duration between touchdown and touchup, in milliseconds.\n\tDuration int64 `json:\"duration\"`\n\t// Input source the synthesized gesture emulates. A value the protocol does not\n\t// define is reported as `other`.\n\t//\n\t// Any of \"default\", \"touch\", \"mouse\", \"other\".\n\tGestureSourceType string `json:\"gesture_source_type\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// Number of times to tap (2 is a double tap).\n\tTapCount int64 `json:\"tap_count\"`\n\t// Viewport x coordinate in CSS pixels.\n\tX float64 `json:\"x\"`\n\t// Viewport y coordinate in CSS pixels.\n\tY float64 `json:\"y\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMethod            respjson.Field\n\t\tCommandID         respjson.Field\n\t\tConnectionID      respjson.Field\n\t\tDuration          respjson.Field\n\t\tGestureSourceType respjson.Field\n\t\tSessionID         respjson.Field\n\t\tTapCount          respjson.Field\n\t\tX                 respjson.Field\n\t\tY                 respjson.Field\n\t\tExtraFields       map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Input.synthesizeTapGesture\\` arguments. Canonical input: \\`Input.synthesizeTapGesture\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataInputSynthesizeTapGesture) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataInputSynthesizeTapGesture) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataPageBringToFront struct {\n\tMethod constant.PageBringToFront `json:\"method\" default:\"Page.bringToFront\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMethod       respjson.Field\n\t\tCommandID    respjson.Field\n\t\tConnectionID respjson.Field\n\t\tSessionID    respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Page.bringToFront\\` arguments. Canonical input: \\`Page.bringToFront\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataPageBringToFront) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataPageBringToFront) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataPageCaptureScreenshot struct {\n\tMethod constant.PageCaptureScreenshot `json:\"method\" default:\"Page.captureScreenshot\"`\n\t// Whether the capture extended past the viewport.\n\tCaptureBeyondViewport bool `json:\"capture_beyond_viewport\"`\n\t// Clip region height in CSS pixels.\n\tClipHeight float64 `json:\"clip_height\"`\n\t// Clip region page scale factor.\n\tClipScale float64 `json:\"clip_scale\"`\n\t// Clip region width in CSS pixels.\n\tClipWidth float64 `json:\"clip_width\"`\n\t// Clip region x offset in CSS pixels.\n\tClipX float64 `json:\"clip_x\"`\n\t// Clip region y offset in CSS pixels.\n\tClipY float64 `json:\"clip_y\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// Image format requested (`jpeg`, `png` or `webp`). A value the protocol does not\n\t// define is reported as `other`.\n\t//\n\t// Any of \"jpeg\", \"png\", \"webp\", \"other\".\n\tFormat string `json:\"format\"`\n\t// Whether the capture was taken from the surface rather than the view.\n\tFromSurface bool `json:\"from_surface\"`\n\t// Whether encoding favored speed over size.\n\tOptimizeForSpeed bool `json:\"optimize_for_speed\"`\n\t// Compression quality, 0 to 100, for lossy formats.\n\tQuality int64 `json:\"quality\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMethod                respjson.Field\n\t\tCaptureBeyondViewport respjson.Field\n\t\tClipHeight            respjson.Field\n\t\tClipScale             respjson.Field\n\t\tClipWidth             respjson.Field\n\t\tClipX                 respjson.Field\n\t\tClipY                 respjson.Field\n\t\tCommandID             respjson.Field\n\t\tConnectionID          respjson.Field\n\t\tFormat                respjson.Field\n\t\tFromSurface           respjson.Field\n\t\tOptimizeForSpeed      respjson.Field\n\t\tQuality               respjson.Field\n\t\tSessionID             respjson.Field\n\t\tExtraFields           map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Page.captureScreenshot\\` arguments. Canonical input: \\`Page.captureScreenshot\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataPageCaptureScreenshot) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataPageCaptureScreenshot) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataPageCaptureSnapshot struct {\n\tMethod constant.PageCaptureSnapshot `json:\"method\" default:\"Page.captureSnapshot\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// Snapshot format requested (`mhtml`). A value the protocol does not define is\n\t// reported as `other`.\n\t//\n\t// Any of \"mhtml\", \"other\".\n\tFormat string `json:\"format\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMethod       respjson.Field\n\t\tCommandID    respjson.Field\n\t\tConnectionID respjson.Field\n\t\tFormat       respjson.Field\n\t\tSessionID    respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Page.captureSnapshot\\` arguments. Canonical input: \\`Page.captureSnapshot\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataPageCaptureSnapshot) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataPageCaptureSnapshot) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataPageClose struct {\n\tMethod constant.PageClose `json:\"method\" default:\"Page.close\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMethod       respjson.Field\n\t\tCommandID    respjson.Field\n\t\tConnectionID respjson.Field\n\t\tSessionID    respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Page.close\\` arguments. Canonical input: \\`Page.close\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataPageClose) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataPageClose) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataPageHandleJavaScriptDialog struct {\n\t// Whether the dialog was accepted or dismissed.\n\tAccept bool                                `json:\"accept\" api:\"required\"`\n\tMethod constant.PageHandleJavaScriptDialog `json:\"method\" default:\"Page.handleJavaScriptDialog\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// Number of characters entered into a prompt dialog. The text itself is never\n\t// captured.\n\tPromptTextLength int64 `json:\"prompt_text_length\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAccept           respjson.Field\n\t\tMethod           respjson.Field\n\t\tCommandID        respjson.Field\n\t\tConnectionID     respjson.Field\n\t\tPromptTextLength respjson.Field\n\t\tSessionID        respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Page.handleJavaScriptDialog\\` arguments. Canonical input: \\`Page.handleJavaScriptDialog\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataPageHandleJavaScriptDialog) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataPageHandleJavaScriptDialog) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataPageNavigate struct {\n\tMethod constant.PageNavigate `json:\"method\" default:\"Page.navigate\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// Opaque frame identifier. Clipped to 128 characters; a longer value is not a real\n\t// identifier.\n\tFrameID string `json:\"frame_id\"`\n\t// Referrer policy named by the command. A value the protocol does not define is\n\t// reported as `other`.\n\t//\n\t// Any of \"noReferrer\", \"noReferrerWhenDowngrade\", \"origin\",\n\t// \"originWhenCrossOrigin\", \"sameOrigin\", \"strictOrigin\",\n\t// \"strictOriginWhenCrossOrigin\", \"unsafeUrl\", \"other\".\n\tReferrerPolicy string `json:\"referrer_policy\"`\n\t// Whether the command carried a referrer. The referrer itself is never captured.\n\tReferrerPresent bool `json:\"referrer_present\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// Navigation reason reported by the caller (e.g. `link`, `typed`, `reload`). A\n\t// value the protocol does not define is reported as `other`.\n\t//\n\t// Any of \"link\", \"typed\", \"address_bar\", \"auto_bookmark\", \"auto_subframe\",\n\t// \"manual_subframe\", \"generated\", \"auto_toplevel\", \"form_submit\", \"reload\",\n\t// \"keyword\", \"keyword_generated\", \"other\".\n\tTransitionType string `json:\"transition_type\"`\n\t// Scheme of the destination URL (e.g. `https`, `about`, `data`). The rest of the\n\t// URL is never captured.\n\tURLScheme string `json:\"url_scheme\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMethod          respjson.Field\n\t\tCommandID       respjson.Field\n\t\tConnectionID    respjson.Field\n\t\tFrameID         respjson.Field\n\t\tReferrerPolicy  respjson.Field\n\t\tReferrerPresent respjson.Field\n\t\tSessionID       respjson.Field\n\t\tTransitionType  respjson.Field\n\t\tURLScheme       respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Page.navigate\\` arguments. Canonical input: \\`Page.navigate\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataPageNavigate) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataPageNavigate) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataPageNavigateToHistoryEntry struct {\n\t// History entry the command navigated to.\n\tEntryID int64                               `json:\"entry_id\" api:\"required\"`\n\tMethod  constant.PageNavigateToHistoryEntry `json:\"method\" default:\"Page.navigateToHistoryEntry\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEntryID      respjson.Field\n\t\tMethod       respjson.Field\n\t\tCommandID    respjson.Field\n\t\tConnectionID respjson.Field\n\t\tSessionID    respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Page.navigateToHistoryEntry\\` arguments. Canonical input: \\`Page.navigateToHistoryEntry\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataPageNavigateToHistoryEntry) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataPageNavigateToHistoryEntry) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataPagePrintToPdf struct {\n\tMethod constant.PagePrintToPdf `json:\"method\" default:\"Page.printToPDF\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// Whether a header and footer were rendered.\n\tDisplayHeaderFooter bool `json:\"display_header_footer\"`\n\t// Whether a footer template was supplied. The template itself is never captured.\n\tFooterTemplatePresent bool `json:\"footer_template_present\"`\n\t// Whether a document outline was embedded.\n\tGenerateDocumentOutline bool `json:\"generate_document_outline\"`\n\t// Whether a tagged (accessible) PDF was requested.\n\tGenerateTaggedPdf bool `json:\"generate_tagged_pdf\"`\n\t// Whether a header template was supplied. The template itself is never captured.\n\tHeaderTemplatePresent bool `json:\"header_template_present\"`\n\t// Whether the page was laid out in landscape.\n\tLandscape bool `json:\"landscape\"`\n\t// Bottom margin in inches.\n\tMarginBottom float64 `json:\"margin_bottom\"`\n\t// Left margin in inches.\n\tMarginLeft float64 `json:\"margin_left\"`\n\t// Right margin in inches.\n\tMarginRight float64 `json:\"margin_right\"`\n\t// Top margin in inches.\n\tMarginTop float64 `json:\"margin_top\"`\n\t// Whether a page range was supplied.\n\tPageRangesPresent bool `json:\"page_ranges_present\"`\n\t// Paper height in inches.\n\tPaperHeight float64 `json:\"paper_height\"`\n\t// Paper width in inches.\n\tPaperWidth float64 `json:\"paper_width\"`\n\t// Whether the CSS page size was preferred over the paper size.\n\tPreferCssPageSize bool `json:\"prefer_css_page_size\"`\n\t// Whether background graphics were printed.\n\tPrintBackground bool `json:\"print_background\"`\n\t// Page render scale.\n\tScale float64 `json:\"scale\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// How the PDF was returned (`ReturnAsBase64` or `ReturnAsStream`). A value the\n\t// protocol does not define is reported as `other`.\n\t//\n\t// Any of \"ReturnAsBase64\", \"ReturnAsStream\", \"other\".\n\tTransferMode string `json:\"transfer_mode\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMethod                  respjson.Field\n\t\tCommandID               respjson.Field\n\t\tConnectionID            respjson.Field\n\t\tDisplayHeaderFooter     respjson.Field\n\t\tFooterTemplatePresent   respjson.Field\n\t\tGenerateDocumentOutline respjson.Field\n\t\tGenerateTaggedPdf       respjson.Field\n\t\tHeaderTemplatePresent   respjson.Field\n\t\tLandscape               respjson.Field\n\t\tMarginBottom            respjson.Field\n\t\tMarginLeft              respjson.Field\n\t\tMarginRight             respjson.Field\n\t\tMarginTop               respjson.Field\n\t\tPageRangesPresent       respjson.Field\n\t\tPaperHeight             respjson.Field\n\t\tPaperWidth              respjson.Field\n\t\tPreferCssPageSize       respjson.Field\n\t\tPrintBackground         respjson.Field\n\t\tScale                   respjson.Field\n\t\tSessionID               respjson.Field\n\t\tTransferMode            respjson.Field\n\t\tExtraFields             map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Page.printToPDF\\` arguments. Canonical input: \\`Page.printToPDF\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataPagePrintToPdf) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataPagePrintToPdf) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataPageReload struct {\n\tMethod constant.PageReload `json:\"method\" default:\"Page.reload\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// Whether the reload bypassed the cache.\n\tIgnoreCache bool `json:\"ignore_cache\"`\n\t// Opaque document loader identifier. Clipped to 128 characters; a longer value is\n\t// not a real identifier.\n\tLoaderID string `json:\"loader_id\"`\n\t// Number of characters in the injected script.\n\tScriptLength int64 `json:\"script_length\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMethod       respjson.Field\n\t\tCommandID    respjson.Field\n\t\tConnectionID respjson.Field\n\t\tIgnoreCache  respjson.Field\n\t\tLoaderID     respjson.Field\n\t\tScriptLength respjson.Field\n\t\tSessionID    respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Page.reload\\` arguments. Canonical input: \\`Page.reload\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataPageReload) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataPageReload) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataPageSetWebLifecycleState struct {\n\tMethod constant.PageSetWebLifecycleState `json:\"method\" default:\"Page.setWebLifecycleState\"`\n\t// Lifecycle state applied (`frozen` or `active`). A value the protocol does not\n\t// define is reported as `other`.\n\t//\n\t// Any of \"frozen\", \"active\", \"other\".\n\tState string `json:\"state\" api:\"required\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMethod       respjson.Field\n\t\tState        respjson.Field\n\t\tCommandID    respjson.Field\n\t\tConnectionID respjson.Field\n\t\tSessionID    respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Page.setWebLifecycleState\\` arguments. Canonical input: \\`Page.setWebLifecycleState\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataPageSetWebLifecycleState) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataPageSetWebLifecycleState) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataPageStartScreencast struct {\n\tMethod constant.PageStartScreencast `json:\"method\" default:\"Page.startScreencast\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// Frame sampling interval.\n\tEveryNthFrame int64 `json:\"every_nth_frame\"`\n\t// Frame format requested (`jpeg` or `png`). A value the protocol does not define\n\t// is reported as `other`.\n\t//\n\t// Any of \"jpeg\", \"png\", \"other\".\n\tFormat string `json:\"format\"`\n\t// Maximum frame height in pixels.\n\tMaxHeight int64 `json:\"max_height\"`\n\t// Maximum frame width in pixels.\n\tMaxWidth int64 `json:\"max_width\"`\n\t// Compression quality, 0 to 100.\n\tQuality int64 `json:\"quality\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMethod        respjson.Field\n\t\tCommandID     respjson.Field\n\t\tConnectionID  respjson.Field\n\t\tEveryNthFrame respjson.Field\n\t\tFormat        respjson.Field\n\t\tMaxHeight     respjson.Field\n\t\tMaxWidth      respjson.Field\n\t\tQuality       respjson.Field\n\t\tSessionID     respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Page.startScreencast\\` arguments. Canonical input: \\`Page.startScreencast\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataPageStartScreencast) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataPageStartScreencast) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataPageStopLoading struct {\n\tMethod constant.PageStopLoading `json:\"method\" default:\"Page.stopLoading\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMethod       respjson.Field\n\t\tCommandID    respjson.Field\n\t\tConnectionID respjson.Field\n\t\tSessionID    respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Page.stopLoading\\` arguments. Canonical input: \\`Page.stopLoading\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataPageStopLoading) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataPageStopLoading) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataPageStopScreencast struct {\n\tMethod constant.PageStopScreencast `json:\"method\" default:\"Page.stopScreencast\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMethod       respjson.Field\n\t\tCommandID    respjson.Field\n\t\tConnectionID respjson.Field\n\t\tSessionID    respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Page.stopScreencast\\` arguments. Canonical input: \\`Page.stopScreencast\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataPageStopScreencast) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataPageStopScreencast) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataTargetActivateTarget struct {\n\tMethod constant.TargetActivateTarget `json:\"method\" default:\"Target.activateTarget\"`\n\t// Opaque target identifier. Clipped to 128 characters; a longer value is not a\n\t// real identifier.\n\tTargetID string `json:\"target_id\" api:\"required\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMethod       respjson.Field\n\t\tTargetID     respjson.Field\n\t\tCommandID    respjson.Field\n\t\tConnectionID respjson.Field\n\t\tSessionID    respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Target.activateTarget\\` arguments. Canonical input: \\`Target.activateTarget\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataTargetActivateTarget) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataTargetActivateTarget) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataTargetCloseTarget struct {\n\tMethod constant.TargetCloseTarget `json:\"method\" default:\"Target.closeTarget\"`\n\t// Opaque target identifier. Clipped to 128 characters; a longer value is not a\n\t// real identifier.\n\tTargetID string `json:\"target_id\" api:\"required\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMethod       respjson.Field\n\t\tTargetID     respjson.Field\n\t\tCommandID    respjson.Field\n\t\tConnectionID respjson.Field\n\t\tSessionID    respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Target.closeTarget\\` arguments. Canonical input: \\`Target.closeTarget\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataTargetCloseTarget) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataTargetCloseTarget) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataTargetCreateBrowserContext struct {\n\tMethod constant.TargetCreateBrowserContext `json:\"method\" default:\"Target.createBrowserContext\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// Whether the context is disposed when the debugging session detaches.\n\tDisposeOnDetach bool `json:\"dispose_on_detach\"`\n\t// Whether a proxy bypass list was configured.\n\tProxyBypassListPresent bool `json:\"proxy_bypass_list_present\"`\n\t// Whether a proxy was configured. The proxy address is never captured.\n\tProxyServerPresent bool `json:\"proxy_server_present\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// Number of origins granted universal network access. The origins themselves are\n\t// never captured.\n\tUniversalNetworkAccessOriginCount int64 `json:\"universal_network_access_origin_count\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMethod                            respjson.Field\n\t\tCommandID                         respjson.Field\n\t\tConnectionID                      respjson.Field\n\t\tDisposeOnDetach                   respjson.Field\n\t\tProxyBypassListPresent            respjson.Field\n\t\tProxyServerPresent                respjson.Field\n\t\tSessionID                         respjson.Field\n\t\tUniversalNetworkAccessOriginCount respjson.Field\n\t\tExtraFields                       map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Target.createBrowserContext\\` arguments. Canonical input: \\`Target.createBrowserContext\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataTargetCreateBrowserContext) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataTargetCreateBrowserContext) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataTargetCreateTarget struct {\n\tMethod constant.TargetCreateTarget `json:\"method\" default:\"Target.createTarget\"`\n\t// Whether the target was created in the background.\n\tBackground bool `json:\"background\"`\n\t// Opaque browser context identifier. Clipped to 128 characters; a longer value is\n\t// not a real identifier.\n\tBrowserContextID string `json:\"browser_context_id\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// Whether BeginFrame control was enabled (headless only).\n\tEnableBeginFrameControl bool `json:\"enable_begin_frame_control\"`\n\t// Whether the new target was focused.\n\tFocus bool `json:\"focus\"`\n\t// Whether a tab target rather than a page target was created.\n\tForTab bool `json:\"for_tab\"`\n\t// Window height in DIP.\n\tHeight int64 `json:\"height\"`\n\t// Whether the target was created hidden.\n\tHidden bool `json:\"hidden\"`\n\t// Window x position in screen coordinates.\n\tLeft int64 `json:\"left\"`\n\t// Whether a new window was requested.\n\tNewWindow bool `json:\"new_window\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// Window y position in screen coordinates.\n\tTop int64 `json:\"top\"`\n\t// Scheme of the destination URL (e.g. `https`, `about`, `data`). The rest of the\n\t// URL is never captured.\n\tURLScheme string `json:\"url_scheme\"`\n\t// Window width in DIP.\n\tWidth int64 `json:\"width\"`\n\t// Window state requested (`normal`, `minimized`, `maximized`, `fullscreen`). A\n\t// value the protocol does not define is reported as `other`.\n\t//\n\t// Any of \"normal\", \"minimized\", \"maximized\", \"fullscreen\", \"other\".\n\tWindowState string `json:\"window_state\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMethod                  respjson.Field\n\t\tBackground              respjson.Field\n\t\tBrowserContextID        respjson.Field\n\t\tCommandID               respjson.Field\n\t\tConnectionID            respjson.Field\n\t\tEnableBeginFrameControl respjson.Field\n\t\tFocus                   respjson.Field\n\t\tForTab                  respjson.Field\n\t\tHeight                  respjson.Field\n\t\tHidden                  respjson.Field\n\t\tLeft                    respjson.Field\n\t\tNewWindow               respjson.Field\n\t\tSessionID               respjson.Field\n\t\tTop                     respjson.Field\n\t\tURLScheme               respjson.Field\n\t\tWidth                   respjson.Field\n\t\tWindowState             respjson.Field\n\t\tExtraFields             map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Target.createTarget\\` arguments. Canonical input: \\`Target.createTarget\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataTargetCreateTarget) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataTargetCreateTarget) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataTargetDisposeBrowserContext struct {\n\t// Opaque browser context identifier. Clipped to 128 characters; a longer value is\n\t// not a real identifier.\n\tBrowserContextID string                               `json:\"browser_context_id\" api:\"required\"`\n\tMethod           constant.TargetDisposeBrowserContext `json:\"method\" default:\"Target.disposeBrowserContext\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBrowserContextID respjson.Field\n\t\tMethod           respjson.Field\n\t\tCommandID        respjson.Field\n\t\tConnectionID     respjson.Field\n\t\tSessionID        respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Target.disposeBrowserContext\\` arguments. Canonical input: \\`Target.disposeBrowserContext\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataTargetDisposeBrowserContext) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataTargetDisposeBrowserContext) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataTargetOpenDevTools struct {\n\tMethod constant.TargetOpenDevTools `json:\"method\" default:\"Target.openDevTools\"`\n\t// Opaque target identifier. Clipped to 128 characters; a longer value is not a\n\t// real identifier.\n\tTargetID string `json:\"target_id\" api:\"required\"`\n\t// The command's JSON-RPC id, so the command can be joined to the result the\n\t// browser returned for it. Absent when the client sent none.\n\tCommandID int64 `json:\"command_id\"`\n\t// Identifies the CDP proxy connection the command arrived on, matching\n\t// `cdp_connect` and `cdp_disconnect`. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// DevTools panel opened. Clipped to 128 characters; a longer value is not a real\n\t// identifier.\n\tPanelID string `json:\"panel_id\"`\n\t// CDP session identifier the command was addressed to. Absent for browser-level\n\t// commands. Clipped to 128 characters.\n\tSessionID string `json:\"session_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMethod       respjson.Field\n\t\tTargetID     respjson.Field\n\t\tCommandID    respjson.Field\n\t\tConnectionID respjson.Field\n\t\tPanelID      respjson.Field\n\t\tSessionID    respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSanitized \\`Target.openDevTools\\` arguments. Canonical input: \\`Target.openDevTools\\` in devtools-protocol@2d019e73, pinned at [https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser\\_protocol.json](https://github.com/ChromeDevTools/devtools-protocol/blob/2d019e73eb371d1d6985d26d395d78bd8f8a22ba/json/browser_protocol.json). Every argument of this command has a retained or redacted decision in lib/devtoolsproxy/testdata/cdp\\_arguments.yaml.\n\n```go\nfunc (r BrowserCdpCommandEventDataTargetOpenDevTools) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataTargetOpenDevTools) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandEventDataUnion struct {\n\tEventType string `json:\"event_type\"`\n\t// Any of \"Input.dispatchMouseEvent\", \"Input.dispatchKeyEvent\", \"Input.insertText\",\n\t// \"Input.imeSetComposition\", \"Input.dispatchTouchEvent\",\n\t// \"Input.dispatchDragEvent\", \"Input.cancelDragging\",\n\t// \"Input.emulateTouchFromMouseEvent\", \"Input.synthesizePinchGesture\",\n\t// \"Input.synthesizeScrollGesture\", \"Input.synthesizeTapGesture\",\n\t// \"DOM.setFileInputFiles\", \"DOM.focus\", \"DOM.scrollIntoViewIfNeeded\",\n\t// \"Page.bringToFront\", \"Page.captureScreenshot\", \"Page.captureSnapshot\",\n\t// \"Page.handleJavaScriptDialog\", \"Page.navigate\", \"Page.navigateToHistoryEntry\",\n\t// \"Page.reload\", \"Page.printToPDF\", \"Page.startScreencast\", \"Page.stopScreencast\",\n\t// \"Page.stopLoading\", \"Page.close\", \"Page.setWebLifecycleState\",\n\t// \"Target.activateTarget\", \"Target.closeTarget\", \"Target.createTarget\",\n\t// \"Target.createBrowserContext\", \"Target.disposeBrowserContext\",\n\t// \"Target.openDevTools\", \"Browser.cancelDownload\", \"Browser.close\",\n\t// \"Browser.setWindowBounds\", \"Browser.setContentsSize\", \"Autofill.trigger\".\n\tMethod string `json:\"method\"`\n\tButton string `json:\"button\"`\n\t// This field is from variant [BrowserCdpCommandEventDataInputDispatchMouseEvent].\n\tButtons      int64   `json:\"buttons\"`\n\tClickCount   int64   `json:\"click_count\"`\n\tCommandID    int64   `json:\"command_id\"`\n\tConnectionID string  `json:\"connection_id\"`\n\tDeltaX       float64 `json:\"delta_x\"`\n\tDeltaY       float64 `json:\"delta_y\"`\n\tForce        float64 `json:\"force\"`\n\tModifiers    int64   `json:\"modifiers\"`\n\t// This field is from variant [BrowserCdpCommandEventDataInputDispatchMouseEvent].\n\tPointerType        string  `json:\"pointer_type\"`\n\tSessionID          string  `json:\"session_id\"`\n\tTangentialPressure float64 `json:\"tangential_pressure\"`\n\tTiltX              float64 `json:\"tilt_x\"`\n\tTiltY              float64 `json:\"tilt_y\"`\n\tTwist              int64   `json:\"twist\"`\n\tX                  float64 `json:\"x\"`\n\tY                  float64 `json:\"y\"`\n\t// This field is from variant [BrowserCdpCommandEventDataInputDispatchKeyEvent].\n\tAutoRepeat bool `json:\"auto_repeat\"`\n\t// This field is from variant [BrowserCdpCommandEventDataInputDispatchKeyEvent].\n\tCommandCount int64 `json:\"command_count\"`\n\t// This field is from variant [BrowserCdpCommandEventDataInputDispatchKeyEvent].\n\tIsKeypad bool `json:\"is_keypad\"`\n\t// This field is from variant [BrowserCdpCommandEventDataInputDispatchKeyEvent].\n\tIsSystemKey bool `json:\"is_system_key\"`\n\t// This field is from variant [BrowserCdpCommandEventDataInputDispatchKeyEvent].\n\tLocation int64 `json:\"location\"`\n\t// This field is from variant [BrowserCdpCommandEventDataInputDispatchKeyEvent].\n\tNamedKey   string `json:\"named_key\"`\n\tTextLength int64  `json:\"text_length\"`\n\t// This field is from variant [BrowserCdpCommandEventDataInputImeSetComposition].\n\tReplacementEnd int64 `json:\"replacement_end\"`\n\t// This field is from variant [BrowserCdpCommandEventDataInputImeSetComposition].\n\tReplacementStart int64 `json:\"replacement_start\"`\n\t// This field is from variant [BrowserCdpCommandEventDataInputImeSetComposition].\n\tSelectionEnd int64 `json:\"selection_end\"`\n\t// This field is from variant [BrowserCdpCommandEventDataInputImeSetComposition].\n\tSelectionStart int64 `json:\"selection_start\"`\n\t// This field is from variant [BrowserCdpCommandEventDataInputDispatchTouchEvent].\n\tTouchPointCount int64 `json:\"touch_point_count\"`\n\t// This field is from variant [BrowserCdpCommandEventDataInputDispatchTouchEvent].\n\tRadiusX float64 `json:\"radius_x\"`\n\t// This field is from variant [BrowserCdpCommandEventDataInputDispatchTouchEvent].\n\tRadiusY float64 `json:\"radius_y\"`\n\t// This field is from variant [BrowserCdpCommandEventDataInputDispatchTouchEvent].\n\tRotationAngle float64 `json:\"rotation_angle\"`\n\t// This field is from variant [BrowserCdpCommandEventDataInputDispatchDragEvent].\n\tDragFileCount int64 `json:\"drag_file_count\"`\n\t// This field is from variant [BrowserCdpCommandEventDataInputDispatchDragEvent].\n\tDragItemCount int64 `json:\"drag_item_count\"`\n\t// This field is from variant [BrowserCdpCommandEventDataInputDispatchDragEvent].\n\tDragMimeCategories []string `json:\"drag_mime_categories\"`\n\t// This field is from variant [BrowserCdpCommandEventDataInputDispatchDragEvent].\n\tDragOperationsMask int64  `json:\"drag_operations_mask\"`\n\tGestureSourceType  string `json:\"gesture_source_type\"`\n\t// This field is from variant\n\t// [BrowserCdpCommandEventDataInputSynthesizePinchGesture].\n\tRelativeSpeed int64 `json:\"relative_speed\"`\n\t// This field is from variant\n\t// [BrowserCdpCommandEventDataInputSynthesizePinchGesture].\n\tScaleFactor float64 `json:\"scale_factor\"`\n\t// This field is from variant\n\t// [BrowserCdpCommandEventDataInputSynthesizeScrollGesture].\n\tPreventFling bool `json:\"prevent_fling\"`\n\t// This field is from variant\n\t// [BrowserCdpCommandEventDataInputSynthesizeScrollGesture].\n\tRepeatCount int64 `json:\"repeat_count\"`\n\t// This field is from variant\n\t// [BrowserCdpCommandEventDataInputSynthesizeScrollGesture].\n\tRepeatDelayMs int64 `json:\"repeat_delay_ms\"`\n\t// This field is from variant\n\t// [BrowserCdpCommandEventDataInputSynthesizeScrollGesture].\n\tSpeed int64 `json:\"speed\"`\n\t// This field is from variant\n\t// [BrowserCdpCommandEventDataInputSynthesizeScrollGesture].\n\tXDistance float64 `json:\"x_distance\"`\n\t// This field is from variant\n\t// [BrowserCdpCommandEventDataInputSynthesizeScrollGesture].\n\tXOverscroll float64 `json:\"x_overscroll\"`\n\t// This field is from variant\n\t// [BrowserCdpCommandEventDataInputSynthesizeScrollGesture].\n\tYDistance float64 `json:\"y_distance\"`\n\t// This field is from variant\n\t// [BrowserCdpCommandEventDataInputSynthesizeScrollGesture].\n\tYOverscroll float64 `json:\"y_overscroll\"`\n\t// This field is from variant\n\t// [BrowserCdpCommandEventDataInputSynthesizeTapGesture].\n\tDuration int64 `json:\"duration\"`\n\t// This field is from variant\n\t// [BrowserCdpCommandEventDataInputSynthesizeTapGesture].\n\tTapCount int64 `json:\"tap_count\"`\n\t// This field is from variant [BrowserCdpCommandEventDataDomSetFileInputFiles].\n\tFileCount     int64  `json:\"file_count\"`\n\tBackendNodeID int64  `json:\"backend_node_id\"`\n\tNodeID        int64  `json:\"node_id\"`\n\tObjectID      string `json:\"object_id\"`\n\t// This field is from variant\n\t// [BrowserCdpCommandEventDataDomScrollIntoViewIfNeeded].\n\tRectHeight float64 `json:\"rect_height\"`\n\t// This field is from variant\n\t// [BrowserCdpCommandEventDataDomScrollIntoViewIfNeeded].\n\tRectWidth float64 `json:\"rect_width\"`\n\t// This field is from variant\n\t// [BrowserCdpCommandEventDataDomScrollIntoViewIfNeeded].\n\tRectX float64 `json:\"rect_x\"`\n\t// This field is from variant\n\t// [BrowserCdpCommandEventDataDomScrollIntoViewIfNeeded].\n\tRectY float64 `json:\"rect_y\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPageCaptureScreenshot].\n\tCaptureBeyondViewport bool `json:\"capture_beyond_viewport\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPageCaptureScreenshot].\n\tClipHeight float64 `json:\"clip_height\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPageCaptureScreenshot].\n\tClipScale float64 `json:\"clip_scale\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPageCaptureScreenshot].\n\tClipWidth float64 `json:\"clip_width\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPageCaptureScreenshot].\n\tClipX float64 `json:\"clip_x\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPageCaptureScreenshot].\n\tClipY  float64 `json:\"clip_y\"`\n\tFormat string  `json:\"format\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPageCaptureScreenshot].\n\tFromSurface bool `json:\"from_surface\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPageCaptureScreenshot].\n\tOptimizeForSpeed bool  `json:\"optimize_for_speed\"`\n\tQuality          int64 `json:\"quality\"`\n\t// This field is from variant\n\t// [BrowserCdpCommandEventDataPageHandleJavaScriptDialog].\n\tAccept bool `json:\"accept\"`\n\t// This field is from variant\n\t// [BrowserCdpCommandEventDataPageHandleJavaScriptDialog].\n\tPromptTextLength int64  `json:\"prompt_text_length\"`\n\tFrameID          string `json:\"frame_id\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPageNavigate].\n\tReferrerPolicy string `json:\"referrer_policy\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPageNavigate].\n\tReferrerPresent bool `json:\"referrer_present\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPageNavigate].\n\tTransitionType string `json:\"transition_type\"`\n\tURLScheme      string `json:\"url_scheme\"`\n\t// This field is from variant\n\t// [BrowserCdpCommandEventDataPageNavigateToHistoryEntry].\n\tEntryID int64 `json:\"entry_id\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPageReload].\n\tIgnoreCache bool `json:\"ignore_cache\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPageReload].\n\tLoaderID string `json:\"loader_id\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPageReload].\n\tScriptLength int64 `json:\"script_length\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPagePrintToPdf].\n\tDisplayHeaderFooter bool `json:\"display_header_footer\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPagePrintToPdf].\n\tFooterTemplatePresent bool `json:\"footer_template_present\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPagePrintToPdf].\n\tGenerateDocumentOutline bool `json:\"generate_document_outline\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPagePrintToPdf].\n\tGenerateTaggedPdf bool `json:\"generate_tagged_pdf\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPagePrintToPdf].\n\tHeaderTemplatePresent bool `json:\"header_template_present\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPagePrintToPdf].\n\tLandscape bool `json:\"landscape\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPagePrintToPdf].\n\tMarginBottom float64 `json:\"margin_bottom\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPagePrintToPdf].\n\tMarginLeft float64 `json:\"margin_left\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPagePrintToPdf].\n\tMarginRight float64 `json:\"margin_right\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPagePrintToPdf].\n\tMarginTop float64 `json:\"margin_top\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPagePrintToPdf].\n\tPageRangesPresent bool `json:\"page_ranges_present\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPagePrintToPdf].\n\tPaperHeight float64 `json:\"paper_height\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPagePrintToPdf].\n\tPaperWidth float64 `json:\"paper_width\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPagePrintToPdf].\n\tPreferCssPageSize bool `json:\"prefer_css_page_size\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPagePrintToPdf].\n\tPrintBackground bool `json:\"print_background\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPagePrintToPdf].\n\tScale float64 `json:\"scale\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPagePrintToPdf].\n\tTransferMode string `json:\"transfer_mode\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPageStartScreencast].\n\tEveryNthFrame int64 `json:\"every_nth_frame\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPageStartScreencast].\n\tMaxHeight int64 `json:\"max_height\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPageStartScreencast].\n\tMaxWidth int64 `json:\"max_width\"`\n\t// This field is from variant [BrowserCdpCommandEventDataPageSetWebLifecycleState].\n\tState    string `json:\"state\"`\n\tTargetID string `json:\"target_id\"`\n\t// This field is from variant [BrowserCdpCommandEventDataTargetCreateTarget].\n\tBackground       bool   `json:\"background\"`\n\tBrowserContextID string `json:\"browser_context_id\"`\n\t// This field is from variant [BrowserCdpCommandEventDataTargetCreateTarget].\n\tEnableBeginFrameControl bool `json:\"enable_begin_frame_control\"`\n\t// This field is from variant [BrowserCdpCommandEventDataTargetCreateTarget].\n\tFocus bool `json:\"focus\"`\n\t// This field is from variant [BrowserCdpCommandEventDataTargetCreateTarget].\n\tForTab bool  `json:\"for_tab\"`\n\tHeight int64 `json:\"height\"`\n\t// This field is from variant [BrowserCdpCommandEventDataTargetCreateTarget].\n\tHidden bool  `json:\"hidden\"`\n\tLeft   int64 `json:\"left\"`\n\t// This field is from variant [BrowserCdpCommandEventDataTargetCreateTarget].\n\tNewWindow   bool   `json:\"new_window\"`\n\tTop         int64  `json:\"top\"`\n\tWidth       int64  `json:\"width\"`\n\tWindowState string `json:\"window_state\"`\n\t// This field is from variant\n\t// [BrowserCdpCommandEventDataTargetCreateBrowserContext].\n\tDisposeOnDetach bool `json:\"dispose_on_detach\"`\n\t// This field is from variant\n\t// [BrowserCdpCommandEventDataTargetCreateBrowserContext].\n\tProxyBypassListPresent bool `json:\"proxy_bypass_list_present\"`\n\t// This field is from variant\n\t// [BrowserCdpCommandEventDataTargetCreateBrowserContext].\n\tProxyServerPresent bool `json:\"proxy_server_present\"`\n\t// This field is from variant\n\t// [BrowserCdpCommandEventDataTargetCreateBrowserContext].\n\tUniversalNetworkAccessOriginCount int64 `json:\"universal_network_access_origin_count\"`\n\t// This field is from variant [BrowserCdpCommandEventDataTargetOpenDevTools].\n\tPanelID string `json:\"panel_id\"`\n\t// This field is from variant [BrowserCdpCommandEventDataBrowserCancelDownload].\n\tDownloadGuid string `json:\"download_guid\"`\n\tWindowID     int64  `json:\"window_id\"`\n\t// This field is from variant [BrowserCdpCommandEventDataAutofillTrigger].\n\tFieldID int64 `json:\"field_id\"`\n\t// This field is from variant [BrowserCdpCommandEventDataAutofillTrigger].\n\tAddressFieldCount int64 `json:\"address_field_count\"`\n\t// This field is from variant [BrowserCdpCommandEventDataAutofillTrigger].\n\tMode string `json:\"mode\"`\n\tJSON struct {\n\t\tEventType                         respjson.Field\n\t\tMethod                            respjson.Field\n\t\tButton                            respjson.Field\n\t\tButtons                           respjson.Field\n\t\tClickCount                        respjson.Field\n\t\tCommandID                         respjson.Field\n\t\tConnectionID                      respjson.Field\n\t\tDeltaX                            respjson.Field\n\t\tDeltaY                            respjson.Field\n\t\tForce                             respjson.Field\n\t\tModifiers                         respjson.Field\n\t\tPointerType                       respjson.Field\n\t\tSessionID                         respjson.Field\n\t\tTangentialPressure                respjson.Field\n\t\tTiltX                             respjson.Field\n\t\tTiltY                             respjson.Field\n\t\tTwist                             respjson.Field\n\t\tX                                 respjson.Field\n\t\tY                                 respjson.Field\n\t\tAutoRepeat                        respjson.Field\n\t\tCommandCount                      respjson.Field\n\t\tIsKeypad                          respjson.Field\n\t\tIsSystemKey                       respjson.Field\n\t\tLocation                          respjson.Field\n\t\tNamedKey                          respjson.Field\n\t\tTextLength                        respjson.Field\n\t\tReplacementEnd                    respjson.Field\n\t\tReplacementStart                  respjson.Field\n\t\tSelectionEnd                      respjson.Field\n\t\tSelectionStart                    respjson.Field\n\t\tTouchPointCount                   respjson.Field\n\t\tRadiusX                           respjson.Field\n\t\tRadiusY                           respjson.Field\n\t\tRotationAngle                     respjson.Field\n\t\tDragFileCount                     respjson.Field\n\t\tDragItemCount                     respjson.Field\n\t\tDragMimeCategories                respjson.Field\n\t\tDragOperationsMask                respjson.Field\n\t\tGestureSourceType                 respjson.Field\n\t\tRelativeSpeed                     respjson.Field\n\t\tScaleFactor                       respjson.Field\n\t\tPreventFling                      respjson.Field\n\t\tRepeatCount                       respjson.Field\n\t\tRepeatDelayMs                     respjson.Field\n\t\tSpeed                             respjson.Field\n\t\tXDistance                         respjson.Field\n\t\tXOverscroll                       respjson.Field\n\t\tYDistance                         respjson.Field\n\t\tYOverscroll                       respjson.Field\n\t\tDuration                          respjson.Field\n\t\tTapCount                          respjson.Field\n\t\tFileCount                         respjson.Field\n\t\tBackendNodeID                     respjson.Field\n\t\tNodeID                            respjson.Field\n\t\tObjectID                          respjson.Field\n\t\tRectHeight                        respjson.Field\n\t\tRectWidth                         respjson.Field\n\t\tRectX                             respjson.Field\n\t\tRectY                             respjson.Field\n\t\tCaptureBeyondViewport             respjson.Field\n\t\tClipHeight                        respjson.Field\n\t\tClipScale                         respjson.Field\n\t\tClipWidth                         respjson.Field\n\t\tClipX                             respjson.Field\n\t\tClipY                             respjson.Field\n\t\tFormat                            respjson.Field\n\t\tFromSurface                       respjson.Field\n\t\tOptimizeForSpeed                  respjson.Field\n\t\tQuality                           respjson.Field\n\t\tAccept                            respjson.Field\n\t\tPromptTextLength                  respjson.Field\n\t\tFrameID                           respjson.Field\n\t\tReferrerPolicy                    respjson.Field\n\t\tReferrerPresent                   respjson.Field\n\t\tTransitionType                    respjson.Field\n\t\tURLScheme                         respjson.Field\n\t\tEntryID                           respjson.Field\n\t\tIgnoreCache                       respjson.Field\n\t\tLoaderID                          respjson.Field\n\t\tScriptLength                      respjson.Field\n\t\tDisplayHeaderFooter               respjson.Field\n\t\tFooterTemplatePresent             respjson.Field\n\t\tGenerateDocumentOutline           respjson.Field\n\t\tGenerateTaggedPdf                 respjson.Field\n\t\tHeaderTemplatePresent             respjson.Field\n\t\tLandscape                         respjson.Field\n\t\tMarginBottom                      respjson.Field\n\t\tMarginLeft                        respjson.Field\n\t\tMarginRight                       respjson.Field\n\t\tMarginTop                         respjson.Field\n\t\tPageRangesPresent                 respjson.Field\n\t\tPaperHeight                       respjson.Field\n\t\tPaperWidth                        respjson.Field\n\t\tPreferCssPageSize                 respjson.Field\n\t\tPrintBackground                   respjson.Field\n\t\tScale                             respjson.Field\n\t\tTransferMode                      respjson.Field\n\t\tEveryNthFrame                     respjson.Field\n\t\tMaxHeight                         respjson.Field\n\t\tMaxWidth                          respjson.Field\n\t\tState                             respjson.Field\n\t\tTargetID                          respjson.Field\n\t\tBackground                        respjson.Field\n\t\tBrowserContextID                  respjson.Field\n\t\tEnableBeginFrameControl           respjson.Field\n\t\tFocus                             respjson.Field\n\t\tForTab                            respjson.Field\n\t\tHeight                            respjson.Field\n\t\tHidden                            respjson.Field\n\t\tLeft                              respjson.Field\n\t\tNewWindow                         respjson.Field\n\t\tTop                               respjson.Field\n\t\tWidth                             respjson.Field\n\t\tWindowState                       respjson.Field\n\t\tDisposeOnDetach                   respjson.Field\n\t\tProxyBypassListPresent            respjson.Field\n\t\tProxyServerPresent                respjson.Field\n\t\tUniversalNetworkAccessOriginCount respjson.Field\n\t\tPanelID                           respjson.Field\n\t\tDownloadGuid                      respjson.Field\n\t\tWindowID                          respjson.Field\n\t\tFieldID                           respjson.Field\n\t\tAddressFieldCount                 respjson.Field\n\t\tMode                              respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nBrowserCdpCommandEventDataUnion contains all possible properties and values from [BrowserCdpCommandEventDataInputDispatchMouseEvent](#BrowserCdpCommandEventDataInputDispatchMouseEvent), [BrowserCdpCommandEventDataInputDispatchKeyEvent](#BrowserCdpCommandEventDataInputDispatchKeyEvent), [BrowserCdpCommandEventDataInputInsertText](#BrowserCdpCommandEventDataInputInsertText), [BrowserCdpCommandEventDataInputImeSetComposition](#BrowserCdpCommandEventDataInputImeSetComposition), [BrowserCdpCommandEventDataInputDispatchTouchEvent](#BrowserCdpCommandEventDataInputDispatchTouchEvent), [BrowserCdpCommandEventDataInputDispatchDragEvent](#BrowserCdpCommandEventDataInputDispatchDragEvent), [BrowserCdpCommandEventDataInputCancelDragging](#BrowserCdpCommandEventDataInputCancelDragging), [BrowserCdpCommandEventDataInputEmulateTouchFromMouseEvent](#BrowserCdpCommandEventDataInputEmulateTouchFromMouseEvent), [BrowserCdpCommandEventDataInputSynthesizePinchGesture](#BrowserCdpCommandEventDataInputSynthesizePinchGesture), [BrowserCdpCommandEventDataInputSynthesizeScrollGesture](#BrowserCdpCommandEventDataInputSynthesizeScrollGesture), [BrowserCdpCommandEventDataInputSynthesizeTapGesture](#BrowserCdpCommandEventDataInputSynthesizeTapGesture), [BrowserCdpCommandEventDataDomSetFileInputFiles](#BrowserCdpCommandEventDataDomSetFileInputFiles), [BrowserCdpCommandEventDataDomFocus](#BrowserCdpCommandEventDataDomFocus), [BrowserCdpCommandEventDataDomScrollIntoViewIfNeeded](#BrowserCdpCommandEventDataDomScrollIntoViewIfNeeded), [BrowserCdpCommandEventDataPageBringToFront](#BrowserCdpCommandEventDataPageBringToFront), [BrowserCdpCommandEventDataPageCaptureScreenshot](#BrowserCdpCommandEventDataPageCaptureScreenshot), [BrowserCdpCommandEventDataPageCaptureSnapshot](#BrowserCdpCommandEventDataPageCaptureSnapshot), [BrowserCdpCommandEventDataPageHandleJavaScriptDialog](#BrowserCdpCommandEventDataPageHandleJavaScriptDialog), [BrowserCdpCommandEventDataPageNavigate](#BrowserCdpCommandEventDataPageNavigate), [BrowserCdpCommandEventDataPageNavigateToHistoryEntry](#BrowserCdpCommandEventDataPageNavigateToHistoryEntry), [BrowserCdpCommandEventDataPageReload](#BrowserCdpCommandEventDataPageReload), [BrowserCdpCommandEventDataPagePrintToPdf](#BrowserCdpCommandEventDataPagePrintToPdf), [BrowserCdpCommandEventDataPageStartScreencast](#BrowserCdpCommandEventDataPageStartScreencast), [BrowserCdpCommandEventDataPageStopScreencast](#BrowserCdpCommandEventDataPageStopScreencast), [BrowserCdpCommandEventDataPageStopLoading](#BrowserCdpCommandEventDataPageStopLoading), [BrowserCdpCommandEventDataPageClose](#BrowserCdpCommandEventDataPageClose), [BrowserCdpCommandEventDataPageSetWebLifecycleState](#BrowserCdpCommandEventDataPageSetWebLifecycleState), [BrowserCdpCommandEventDataTargetActivateTarget](#BrowserCdpCommandEventDataTargetActivateTarget), [BrowserCdpCommandEventDataTargetCloseTarget](#BrowserCdpCommandEventDataTargetCloseTarget), [BrowserCdpCommandEventDataTargetCreateTarget](#BrowserCdpCommandEventDataTargetCreateTarget), [BrowserCdpCommandEventDataTargetCreateBrowserContext](#BrowserCdpCommandEventDataTargetCreateBrowserContext), [BrowserCdpCommandEventDataTargetDisposeBrowserContext](#BrowserCdpCommandEventDataTargetDisposeBrowserContext), [BrowserCdpCommandEventDataTargetOpenDevTools](#BrowserCdpCommandEventDataTargetOpenDevTools), [BrowserCdpCommandEventDataBrowserCancelDownload](#BrowserCdpCommandEventDataBrowserCancelDownload), [BrowserCdpCommandEventDataBrowserClose](#BrowserCdpCommandEventDataBrowserClose), [BrowserCdpCommandEventDataBrowserSetWindowBounds](#BrowserCdpCommandEventDataBrowserSetWindowBounds), [BrowserCdpCommandEventDataBrowserSetContentsSize](#BrowserCdpCommandEventDataBrowserSetContentsSize), [BrowserCdpCommandEventDataAutofillTrigger](#BrowserCdpCommandEventDataAutofillTrigger).\n\nUse the [BrowserCdpCommandEventDataUnion.AsAny](#BrowserCdpCommandEventDataUnion.AsAny) method to switch on the variant.\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsAny() anyBrowserCdpCommandEventData\n```\nUse the following switch statement to find the correct variant\n\n\tswitch variant := BrowserCdpCommandEventDataUnion.AsAny().(type) {\n\tcase kernel.BrowserCdpCommandEventDataInputDispatchMouseEvent:\n\tcase kernel.BrowserCdpCommandEventDataInputDispatchKeyEvent:\n\tcase kernel.BrowserCdpCommandEventDataInputInsertText:\n\tcase kernel.BrowserCdpCommandEventDataInputImeSetComposition:\n\tcase kernel.BrowserCdpCommandEventDataInputDispatchTouchEvent:\n\tcase kernel.BrowserCdpCommandEventDataInputDispatchDragEvent:\n\tcase kernel.BrowserCdpCommandEventDataInputCancelDragging:\n\tcase kernel.BrowserCdpCommandEventDataInputEmulateTouchFromMouseEvent:\n\tcase kernel.BrowserCdpCommandEventDataInputSynthesizePinchGesture:\n\tcase kernel.BrowserCdpCommandEventDataInputSynthesizeScrollGesture:\n\tcase kernel.BrowserCdpCommandEventDataInputSynthesizeTapGesture:\n\tcase kernel.BrowserCdpCommandEventDataDomSetFileInputFiles:\n\tcase kernel.BrowserCdpCommandEventDataDomFocus:\n\tcase kernel.BrowserCdpCommandEventDataDomScrollIntoViewIfNeeded:\n\tcase kernel.BrowserCdpCommandEventDataPageBringToFront:\n\tcase kernel.BrowserCdpCommandEventDataPageCaptureScreenshot:\n\tcase kernel.BrowserCdpCommandEventDataPageCaptureSnapshot:\n\tcase kernel.BrowserCdpCommandEventDataPageHandleJavaScriptDialog:\n\tcase kernel.BrowserCdpCommandEventDataPageNavigate:\n\tcase kernel.BrowserCdpCommandEventDataPageNavigateToHistoryEntry:\n\tcase kernel.BrowserCdpCommandEventDataPageReload:\n\tcase kernel.BrowserCdpCommandEventDataPagePrintToPdf:\n\tcase kernel.BrowserCdpCommandEventDataPageStartScreencast:\n\tcase kernel.BrowserCdpCommandEventDataPageStopScreencast:\n\tcase kernel.BrowserCdpCommandEventDataPageStopLoading:\n\tcase kernel.BrowserCdpCommandEventDataPageClose:\n\tcase kernel.BrowserCdpCommandEventDataPageSetWebLifecycleState:\n\tcase kernel.BrowserCdpCommandEventDataTargetActivateTarget:\n\tcase kernel.BrowserCdpCommandEventDataTargetCloseTarget:\n\tcase kernel.BrowserCdpCommandEventDataTargetCreateTarget:\n\tcase kernel.BrowserCdpCommandEventDataTargetCreateBrowserContext:\n\tcase kernel.BrowserCdpCommandEventDataTargetDisposeBrowserContext:\n\tcase kernel.BrowserCdpCommandEventDataTargetOpenDevTools:\n\tcase kernel.BrowserCdpCommandEventDataBrowserCancelDownload:\n\tcase kernel.BrowserCdpCommandEventDataBrowserClose:\n\tcase kernel.BrowserCdpCommandEventDataBrowserSetWindowBounds:\n\tcase kernel.BrowserCdpCommandEventDataBrowserSetContentsSize:\n\tcase kernel.BrowserCdpCommandEventDataAutofillTrigger:\n\tdefault:\n\t  fmt.Errorf(\"no variant present\")\n\t}\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsAutofillTrigger() (v BrowserCdpCommandEventDataAutofillTrigger)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsBrowserCancelDownload() (v BrowserCdpCommandEventDataBrowserCancelDownload)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsBrowserClose() (v BrowserCdpCommandEventDataBrowserClose)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsBrowserSetContentsSize() (v BrowserCdpCommandEventDataBrowserSetContentsSize)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsBrowserSetWindowBounds() (v BrowserCdpCommandEventDataBrowserSetWindowBounds)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsDomFocus() (v BrowserCdpCommandEventDataDomFocus)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsDomScrollIntoViewIfNeeded() (v BrowserCdpCommandEventDataDomScrollIntoViewIfNeeded)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsDomSetFileInputFiles() (v BrowserCdpCommandEventDataDomSetFileInputFiles)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsInputCancelDragging() (v BrowserCdpCommandEventDataInputCancelDragging)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsInputDispatchDragEvent() (v BrowserCdpCommandEventDataInputDispatchDragEvent)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsInputDispatchKeyEvent() (v BrowserCdpCommandEventDataInputDispatchKeyEvent)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsInputDispatchMouseEvent() (v BrowserCdpCommandEventDataInputDispatchMouseEvent)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsInputDispatchTouchEvent() (v BrowserCdpCommandEventDataInputDispatchTouchEvent)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsInputEmulateTouchFromMouseEvent() (v BrowserCdpCommandEventDataInputEmulateTouchFromMouseEvent)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsInputImeSetComposition() (v BrowserCdpCommandEventDataInputImeSetComposition)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsInputInsertText() (v BrowserCdpCommandEventDataInputInsertText)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsInputSynthesizePinchGesture() (v BrowserCdpCommandEventDataInputSynthesizePinchGesture)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsInputSynthesizeScrollGesture() (v BrowserCdpCommandEventDataInputSynthesizeScrollGesture)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsInputSynthesizeTapGesture() (v BrowserCdpCommandEventDataInputSynthesizeTapGesture)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsPageBringToFront() (v BrowserCdpCommandEventDataPageBringToFront)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsPageCaptureScreenshot() (v BrowserCdpCommandEventDataPageCaptureScreenshot)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsPageCaptureSnapshot() (v BrowserCdpCommandEventDataPageCaptureSnapshot)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsPageClose() (v BrowserCdpCommandEventDataPageClose)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsPageHandleJavaScriptDialog() (v BrowserCdpCommandEventDataPageHandleJavaScriptDialog)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsPageNavigate() (v BrowserCdpCommandEventDataPageNavigate)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsPageNavigateToHistoryEntry() (v BrowserCdpCommandEventDataPageNavigateToHistoryEntry)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsPagePrintToPdf() (v BrowserCdpCommandEventDataPagePrintToPdf)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsPageReload() (v BrowserCdpCommandEventDataPageReload)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsPageSetWebLifecycleState() (v BrowserCdpCommandEventDataPageSetWebLifecycleState)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsPageStartScreencast() (v BrowserCdpCommandEventDataPageStartScreencast)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsPageStopLoading() (v BrowserCdpCommandEventDataPageStopLoading)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsPageStopScreencast() (v BrowserCdpCommandEventDataPageStopScreencast)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsTargetActivateTarget() (v BrowserCdpCommandEventDataTargetActivateTarget)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsTargetCloseTarget() (v BrowserCdpCommandEventDataTargetCloseTarget)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsTargetCreateBrowserContext() (v BrowserCdpCommandEventDataTargetCreateBrowserContext)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsTargetCreateTarget() (v BrowserCdpCommandEventDataTargetCreateTarget)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsTargetDisposeBrowserContext() (v BrowserCdpCommandEventDataTargetDisposeBrowserContext)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) AsTargetOpenDevTools() (v BrowserCdpCommandEventDataTargetOpenDevTools)\n```\n\n```go\nfunc (u BrowserCdpCommandEventDataUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpCommandEventDataUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpCommandMethod string\n```\nA browser-control CDP method the proxy reports. The set covers the commands an agent drives the browser with; configuration, DOM and Runtime bookkeeping, and Chrome-specific UI commands are outside it. Canonical definitions: devtools-protocol@2d019e73.\n\n```go\nconst (\n\tBrowserCdpCommandMethodInputDispatchMouseEvent         BrowserCdpCommandMethod = \"Input.dispatchMouseEvent\"\n\tBrowserCdpCommandMethodInputDispatchKeyEvent           BrowserCdpCommandMethod = \"Input.dispatchKeyEvent\"\n\tBrowserCdpCommandMethodInputInsertText                 BrowserCdpCommandMethod = \"Input.insertText\"\n\tBrowserCdpCommandMethodInputImeSetComposition          BrowserCdpCommandMethod = \"Input.imeSetComposition\"\n\tBrowserCdpCommandMethodInputDispatchTouchEvent         BrowserCdpCommandMethod = \"Input.dispatchTouchEvent\"\n\tBrowserCdpCommandMethodInputDispatchDragEvent          BrowserCdpCommandMethod = \"Input.dispatchDragEvent\"\n\tBrowserCdpCommandMethodInputCancelDragging             BrowserCdpCommandMethod = \"Input.cancelDragging\"\n\tBrowserCdpCommandMethodInputEmulateTouchFromMouseEvent BrowserCdpCommandMethod = \"Input.emulateTouchFromMouseEvent\"\n\tBrowserCdpCommandMethodInputSynthesizePinchGesture     BrowserCdpCommandMethod = \"Input.synthesizePinchGesture\"\n\tBrowserCdpCommandMethodInputSynthesizeScrollGesture    BrowserCdpCommandMethod = \"Input.synthesizeScrollGesture\"\n\tBrowserCdpCommandMethodInputSynthesizeTapGesture       BrowserCdpCommandMethod = \"Input.synthesizeTapGesture\"\n\tBrowserCdpCommandMethodDomSetFileInputFiles            BrowserCdpCommandMethod = \"DOM.setFileInputFiles\"\n\tBrowserCdpCommandMethodDomFocus                        BrowserCdpCommandMethod = \"DOM.focus\"\n\tBrowserCdpCommandMethodDomScrollIntoViewIfNeeded       BrowserCdpCommandMethod = \"DOM.scrollIntoViewIfNeeded\"\n\tBrowserCdpCommandMethodPageBringToFront                BrowserCdpCommandMethod = \"Page.bringToFront\"\n\tBrowserCdpCommandMethodPageCaptureScreenshot           BrowserCdpCommandMethod = \"Page.captureScreenshot\"\n\tBrowserCdpCommandMethodPageCaptureSnapshot             BrowserCdpCommandMethod = \"Page.captureSnapshot\"\n\tBrowserCdpCommandMethodPageHandleJavaScriptDialog      BrowserCdpCommandMethod = \"Page.handleJavaScriptDialog\"\n\tBrowserCdpCommandMethodPageNavigate                    BrowserCdpCommandMethod = \"Page.navigate\"\n\tBrowserCdpCommandMethodPageNavigateToHistoryEntry      BrowserCdpCommandMethod = \"Page.navigateToHistoryEntry\"\n\tBrowserCdpCommandMethodPageReload                      BrowserCdpCommandMethod = \"Page.reload\"\n\tBrowserCdpCommandMethodPagePrintToPdf                  BrowserCdpCommandMethod = \"Page.printToPDF\"\n\tBrowserCdpCommandMethodPageStartScreencast             BrowserCdpCommandMethod = \"Page.startScreencast\"\n\tBrowserCdpCommandMethodPageStopScreencast              BrowserCdpCommandMethod = \"Page.stopScreencast\"\n\tBrowserCdpCommandMethodPageStopLoading                 BrowserCdpCommandMethod = \"Page.stopLoading\"\n\tBrowserCdpCommandMethodPageClose                       BrowserCdpCommandMethod = \"Page.close\"\n\tBrowserCdpCommandMethodPageSetWebLifecycleState        BrowserCdpCommandMethod = \"Page.setWebLifecycleState\"\n\tBrowserCdpCommandMethodTargetActivateTarget            BrowserCdpCommandMethod = \"Target.activateTarget\"\n\tBrowserCdpCommandMethodTargetCloseTarget               BrowserCdpCommandMethod = \"Target.closeTarget\"\n\tBrowserCdpCommandMethodTargetCreateTarget              BrowserCdpCommandMethod = \"Target.createTarget\"\n\tBrowserCdpCommandMethodTargetCreateBrowserContext      BrowserCdpCommandMethod = \"Target.createBrowserContext\"\n\tBrowserCdpCommandMethodTargetDisposeBrowserContext     BrowserCdpCommandMethod = \"Target.disposeBrowserContext\"\n\tBrowserCdpCommandMethodTargetOpenDevTools              BrowserCdpCommandMethod = \"Target.openDevTools\"\n\tBrowserCdpCommandMethodBrowserCancelDownload           BrowserCdpCommandMethod = \"Browser.cancelDownload\"\n\tBrowserCdpCommandMethodBrowserClose                    BrowserCdpCommandMethod = \"Browser.close\"\n\tBrowserCdpCommandMethodBrowserSetWindowBounds          BrowserCdpCommandMethod = \"Browser.setWindowBounds\"\n\tBrowserCdpCommandMethodBrowserSetContentsSize          BrowserCdpCommandMethod = \"Browser.setContentsSize\"\n\tBrowserCdpCommandMethodAutofillTrigger                 BrowserCdpCommandMethod = \"Autofill.trigger\"\n)\n```\n\n```go\ntype BrowserCdpConnectEvent struct {\n\tCategory constant.Connection `json:\"category\" default:\"connection\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                      `json:\"ts\" api:\"required\"`\n\tType constant.CdpConnect        `json:\"type\" default:\"cdp_connect\"`\n\tData BrowserCdpConnectEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn external client (e.g. customer SDK, Playwright, Puppeteer) connected to the CDP WebSocket proxy on this VM.\n\n```go\nfunc (r BrowserCdpConnectEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpConnectEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpConnectEventData struct {\n\t// Identifies this CDP proxy connection, matching the connection_id on the\n\t// cdp_command events that arrived on it. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tConnectionID respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserCdpConnectEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpConnectEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpDisconnectEvent struct {\n\tCategory constant.Connection `json:\"category\" default:\"connection\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                         `json:\"ts\" api:\"required\"`\n\tType constant.CdpDisconnect        `json:\"type\" default:\"cdp_disconnect\"`\n\tData BrowserCdpDisconnectEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn external client disconnected from the CDP WebSocket proxy on this VM. Pair with the immediately preceding cdp\\_connect on the same stream.\n\n```go\nfunc (r BrowserCdpDisconnectEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpDisconnectEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCdpDisconnectEventData struct {\n\t// Wall-clock duration of the connection in milliseconds.\n\tDurationMs float64 `json:\"duration_ms\" api:\"required\"`\n\t// Number of CDP messages relayed across the connection in either direction.\n\tMessageCount int64 `json:\"message_count\" api:\"required\"`\n\t// Why the connection ended. client_close: the client initiated the close.\n\t// upstream_changed: Chromium restarted mid-session and the proxy tore down so the\n\t// client could reconnect against the new upstream. upstream_error: upstream dial\n\t// or message pump errored. context_cancelled: the request context was cancelled\n\t// (typically server shutdown).\n\t//\n\t// Any of \"client_close\", \"upstream_changed\", \"upstream_error\",\n\t// \"context_cancelled\".\n\tReason string `json:\"reason\" api:\"required\"`\n\t// Identifies this CDP proxy connection, matching the connection_id on the\n\t// cdp_command events that arrived on it. Two clients driving the same browser are\n\t// told apart by this.\n\tConnectionID string `json:\"connection_id\"`\n\t// Number of forwarded client frames the classifier never saw, because it could not\n\t// keep up or because classification failed. An upper bound on lost commands rather\n\t// than a count: a saturated queue turns away whatever arrives next, which may be\n\t// library traffic that would have produced no event. Telemetry loss only; every\n\t// command was still relayed to the browser. Absent on events from a browser image\n\t// predating the field, which is not the same as zero.\n\tTelemetryDropped int64 `json:\"telemetry_dropped\"`\n\t// Number of forwarded client commands that produced no cdp_command event because\n\t// their method is listed in control.cdp.excluded_methods. Configuration rather\n\t// than loss, so it is counted apart from telemetry_dropped.\n\tTelemetryExcluded int64 `json:\"telemetry_excluded\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDurationMs        respjson.Field\n\t\tMessageCount      respjson.Field\n\t\tReason            respjson.Field\n\t\tConnectionID      respjson.Field\n\t\tTelemetryDropped  respjson.Field\n\t\tTelemetryExcluded respjson.Field\n\t\tExtraFields       map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserCdpDisconnectEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCdpDisconnectEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserComputerBatchParams struct {\n\t// Ordered list of actions to execute. Execution stops on the first error.\n\tActions []BrowserComputerBatchParamsAction `json:\"actions,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserComputerBatchParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserComputerBatchParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserComputerBatchParamsAction struct {\n\t// The type of action to perform.\n\t//\n\t// Any of \"click_mouse\", \"move_mouse\", \"type_text\", \"press_key\", \"scroll\",\n\t// \"drag_mouse\", \"set_cursor\", \"sleep\".\n\tType       string                                     `json:\"type,omitzero\" api:\"required\"`\n\tClickMouse BrowserComputerBatchParamsActionClickMouse `json:\"click_mouse,omitzero\"`\n\tDragMouse  BrowserComputerBatchParamsActionDragMouse  `json:\"drag_mouse,omitzero\"`\n\tMoveMouse  BrowserComputerBatchParamsActionMoveMouse  `json:\"move_mouse,omitzero\"`\n\tPressKey   BrowserComputerBatchParamsActionPressKey   `json:\"press_key,omitzero\"`\n\tScroll     BrowserComputerBatchParamsActionScroll     `json:\"scroll,omitzero\"`\n\tSetCursor  BrowserComputerBatchParamsActionSetCursor  `json:\"set_cursor,omitzero\"`\n\t// Pause execution for a specified duration.\n\tSleep    BrowserComputerBatchParamsActionSleep    `json:\"sleep,omitzero\"`\n\tTypeText BrowserComputerBatchParamsActionTypeText `json:\"type_text,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nA single computer action to execute as part of a batch. The \\`type\\` field selects which action to perform, and the corresponding field contains the action parameters. Exactly one action field matching the type must be provided.\n\nThe property Type is required.\n\n```go\nfunc (r BrowserComputerBatchParamsAction) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserComputerBatchParamsAction) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserComputerBatchParamsActionClickMouse struct {\n\t// X coordinate of the click position\n\tX int64 `json:\"x\" api:\"required\"`\n\t// Y coordinate of the click position\n\tY int64 `json:\"y\" api:\"required\"`\n\t// Number of times to repeat the click\n\tNumClicks param.Opt[int64] `json:\"num_clicks,omitzero\"`\n\t// Mouse button to interact with\n\t//\n\t// Any of \"left\", \"right\", \"middle\", \"back\", \"forward\".\n\tButton string `json:\"button,omitzero\"`\n\t// Type of click action\n\t//\n\t// Any of \"down\", \"up\", \"click\".\n\tClickType string `json:\"click_type,omitzero\"`\n\t// Modifier keys to hold during the click\n\tHoldKeys []string `json:\"hold_keys,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties X, Y are required.\n\n```go\nfunc (r BrowserComputerBatchParamsActionClickMouse) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserComputerBatchParamsActionClickMouse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserComputerBatchParamsActionDragMouse struct {\n\t// Ordered list of [x, y] coordinate pairs to move through while dragging. Must\n\t// contain at least 2 points.\n\tPath [][]int64 `json:\"path,omitzero\" api:\"required\"`\n\t// Delay in milliseconds between button down and starting to move along the path.\n\tDelay param.Opt[int64] `json:\"delay,omitzero\"`\n\t// Target total duration in milliseconds for the entire drag movement when\n\t// smooth=true. Omit for automatic timing based on total path length.\n\tDurationMs param.Opt[int64] `json:\"duration_ms,omitzero\"`\n\t// Use human-like Bezier curves between path waypoints instead of linear\n\t// interpolation. When true, steps_per_segment and step_delay_ms are ignored.\n\tSmooth param.Opt[bool] `json:\"smooth,omitzero\"`\n\t// Delay in milliseconds between relative steps while dragging (not the initial\n\t// delay).\n\tStepDelayMs param.Opt[int64] `json:\"step_delay_ms,omitzero\"`\n\t// Number of relative move steps per segment in the path. Minimum 1.\n\tStepsPerSegment param.Opt[int64] `json:\"steps_per_segment,omitzero\"`\n\t// Mouse button to drag with\n\t//\n\t// Any of \"left\", \"middle\", \"right\".\n\tButton string `json:\"button,omitzero\"`\n\t// Modifier keys to hold during the drag\n\tHoldKeys []string `json:\"hold_keys,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Path is required.\n\n```go\nfunc (r BrowserComputerBatchParamsActionDragMouse) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserComputerBatchParamsActionDragMouse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserComputerBatchParamsActionMoveMouse struct {\n\t// X coordinate to move the cursor to\n\tX int64 `json:\"x\" api:\"required\"`\n\t// Y coordinate to move the cursor to\n\tY int64 `json:\"y\" api:\"required\"`\n\t// Target total duration in milliseconds for the mouse movement when smooth=true.\n\t// Omit for automatic timing based on distance.\n\tDurationMs param.Opt[int64] `json:\"duration_ms,omitzero\"`\n\t// Use human-like Bezier curve path instead of instant mouse movement.\n\tSmooth param.Opt[bool] `json:\"smooth,omitzero\"`\n\t// Modifier keys to hold during the move\n\tHoldKeys []string `json:\"hold_keys,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties X, Y are required.\n\n```go\nfunc (r BrowserComputerBatchParamsActionMoveMouse) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserComputerBatchParamsActionMoveMouse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserComputerBatchParamsActionPressKey struct {\n\t// List of key symbols to press. Each item should be a key symbol supported by\n\t// xdotool (see X11 keysym definitions). Examples include \"Return\", \"Shift\",\n\t// \"Ctrl\", \"Alt\", \"F5\". Items in this list could also be combinations, e.g.\n\t// \"Ctrl+t\" or \"Ctrl+Shift+Tab\". Use X11 names for punctuation in combinations,\n\t// such as \"Ctrl+minus\" or \"Ctrl+plus\". A literal hyphen is also accepted as an\n\t// alias, so \"Ctrl+-\" is normalized to \"Ctrl+minus\".\n\tKeys []string `json:\"keys,omitzero\" api:\"required\"`\n\t// Duration to hold the keys down in milliseconds. If omitted or 0, keys are\n\t// tapped.\n\tDuration param.Opt[int64] `json:\"duration,omitzero\"`\n\t// Optional modifier keys to hold during the key press sequence.\n\tHoldKeys []string `json:\"hold_keys,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Keys is required.\n\n```go\nfunc (r BrowserComputerBatchParamsActionPressKey) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserComputerBatchParamsActionPressKey) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserComputerBatchParamsActionScroll struct {\n\t// X coordinate at which to perform the scroll\n\tX int64 `json:\"x\" api:\"required\"`\n\t// Y coordinate at which to perform the scroll\n\tY int64 `json:\"y\" api:\"required\"`\n\t// Horizontal scroll amount in xdotool \"wheel units.\" Positive scrolls right,\n\t// negative scrolls left.\n\tDeltaX param.Opt[int64] `json:\"delta_x,omitzero\"`\n\t// Vertical scroll amount in xdotool \"wheel units.\" Positive scrolls down, negative\n\t// scrolls up.\n\tDeltaY param.Opt[int64] `json:\"delta_y,omitzero\"`\n\t// Modifier keys to hold during the scroll\n\tHoldKeys []string `json:\"hold_keys,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties X, Y are required.\n\n```go\nfunc (r BrowserComputerBatchParamsActionScroll) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserComputerBatchParamsActionScroll) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserComputerBatchParamsActionSetCursor struct {\n\t// Whether the cursor should be hidden or visible\n\tHidden bool `json:\"hidden\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Hidden is required.\n\n```go\nfunc (r BrowserComputerBatchParamsActionSetCursor) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserComputerBatchParamsActionSetCursor) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserComputerBatchParamsActionSleep struct {\n\t// Duration to sleep in milliseconds.\n\tDurationMs int64 `json:\"duration_ms\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nPause execution for a specified duration.\n\nThe property DurationMs is required.\n\n```go\nfunc (r BrowserComputerBatchParamsActionSleep) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserComputerBatchParamsActionSleep) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserComputerBatchParamsActionTypeText struct {\n\t// Text to type on the browser instance\n\tText string `json:\"text\" api:\"required\"`\n\t// Delay in milliseconds between keystrokes\n\tDelay param.Opt[int64] `json:\"delay,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Text is required.\n\n```go\nfunc (r BrowserComputerBatchParamsActionTypeText) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserComputerBatchParamsActionTypeText) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserComputerCaptureScreenshotParams struct {\n\tRegion BrowserComputerCaptureScreenshotParamsRegion `json:\"region,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserComputerCaptureScreenshotParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserComputerCaptureScreenshotParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserComputerCaptureScreenshotParamsRegion struct {\n\t// Height of the region in pixels\n\tHeight int64 `json:\"height\" api:\"required\"`\n\t// Width of the region in pixels\n\tWidth int64 `json:\"width\" api:\"required\"`\n\t// X coordinate of the region's top-left corner\n\tX int64 `json:\"x\" api:\"required\"`\n\t// Y coordinate of the region's top-left corner\n\tY int64 `json:\"y\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Height, Width, X, Y are required.\n\n```go\nfunc (r BrowserComputerCaptureScreenshotParamsRegion) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserComputerCaptureScreenshotParamsRegion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserComputerClickMouseParams struct {\n\t// X coordinate of the click position\n\tX int64 `json:\"x\" api:\"required\"`\n\t// Y coordinate of the click position\n\tY int64 `json:\"y\" api:\"required\"`\n\t// Number of times to repeat the click\n\tNumClicks param.Opt[int64] `json:\"num_clicks,omitzero\"`\n\t// Mouse button to interact with\n\t//\n\t// Any of \"left\", \"right\", \"middle\", \"back\", \"forward\".\n\tButton BrowserComputerClickMouseParamsButton `json:\"button,omitzero\"`\n\t// Type of click action\n\t//\n\t// Any of \"down\", \"up\", \"click\".\n\tClickType BrowserComputerClickMouseParamsClickType `json:\"click_type,omitzero\"`\n\t// Modifier keys to hold during the click\n\tHoldKeys []string `json:\"hold_keys,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserComputerClickMouseParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserComputerClickMouseParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserComputerClickMouseParamsButton string\n```\nMouse button to interact with\n\n```go\nconst (\n\tBrowserComputerClickMouseParamsButtonLeft    BrowserComputerClickMouseParamsButton = \"left\"\n\tBrowserComputerClickMouseParamsButtonRight   BrowserComputerClickMouseParamsButton = \"right\"\n\tBrowserComputerClickMouseParamsButtonMiddle  BrowserComputerClickMouseParamsButton = \"middle\"\n\tBrowserComputerClickMouseParamsButtonBack    BrowserComputerClickMouseParamsButton = \"back\"\n\tBrowserComputerClickMouseParamsButtonForward BrowserComputerClickMouseParamsButton = \"forward\"\n)\n```\n\n```go\ntype BrowserComputerClickMouseParamsClickType string\n```\nType of click action\n\n```go\nconst (\n\tBrowserComputerClickMouseParamsClickTypeDown  BrowserComputerClickMouseParamsClickType = \"down\"\n\tBrowserComputerClickMouseParamsClickTypeUp    BrowserComputerClickMouseParamsClickType = \"up\"\n\tBrowserComputerClickMouseParamsClickTypeClick BrowserComputerClickMouseParamsClickType = \"click\"\n)\n```\n\n```go\ntype BrowserComputerDragMouseParams struct {\n\t// Ordered list of [x, y] coordinate pairs to move through while dragging. Must\n\t// contain at least 2 points.\n\tPath [][]int64 `json:\"path,omitzero\" api:\"required\"`\n\t// Delay in milliseconds between button down and starting to move along the path.\n\tDelay param.Opt[int64] `json:\"delay,omitzero\"`\n\t// Target total duration in milliseconds for the entire drag movement when\n\t// smooth=true. Omit for automatic timing based on total path length.\n\tDurationMs param.Opt[int64] `json:\"duration_ms,omitzero\"`\n\t// Use human-like Bezier curves between path waypoints instead of linear\n\t// interpolation. When true, steps_per_segment and step_delay_ms are ignored.\n\tSmooth param.Opt[bool] `json:\"smooth,omitzero\"`\n\t// Delay in milliseconds between relative steps while dragging (not the initial\n\t// delay).\n\tStepDelayMs param.Opt[int64] `json:\"step_delay_ms,omitzero\"`\n\t// Number of relative move steps per segment in the path. Minimum 1.\n\tStepsPerSegment param.Opt[int64] `json:\"steps_per_segment,omitzero\"`\n\t// Mouse button to drag with\n\t//\n\t// Any of \"left\", \"middle\", \"right\".\n\tButton BrowserComputerDragMouseParamsButton `json:\"button,omitzero\"`\n\t// Modifier keys to hold during the drag\n\tHoldKeys []string `json:\"hold_keys,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserComputerDragMouseParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserComputerDragMouseParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserComputerDragMouseParamsButton string\n```\nMouse button to drag with\n\n```go\nconst (\n\tBrowserComputerDragMouseParamsButtonLeft   BrowserComputerDragMouseParamsButton = \"left\"\n\tBrowserComputerDragMouseParamsButtonMiddle BrowserComputerDragMouseParamsButton = \"middle\"\n\tBrowserComputerDragMouseParamsButtonRight  BrowserComputerDragMouseParamsButton = \"right\"\n)\n```\n\n```go\ntype BrowserComputerGetMousePositionResponse struct {\n\t// X coordinate of the cursor\n\tX int64 `json:\"x\" api:\"required\"`\n\t// Y coordinate of the cursor\n\tY int64 `json:\"y\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tX           respjson.Field\n\t\tY           respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserComputerGetMousePositionResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserComputerGetMousePositionResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserComputerMoveMouseParams struct {\n\t// X coordinate to move the cursor to\n\tX int64 `json:\"x\" api:\"required\"`\n\t// Y coordinate to move the cursor to\n\tY int64 `json:\"y\" api:\"required\"`\n\t// Target total duration in milliseconds for the mouse movement when smooth=true.\n\t// Omit for automatic timing based on distance.\n\tDurationMs param.Opt[int64] `json:\"duration_ms,omitzero\"`\n\t// Use human-like Bezier curve path instead of instant mouse movement.\n\tSmooth param.Opt[bool] `json:\"smooth,omitzero\"`\n\t// Modifier keys to hold during the move\n\tHoldKeys []string `json:\"hold_keys,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserComputerMoveMouseParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserComputerMoveMouseParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserComputerPressKeyParams struct {\n\t// List of key symbols to press. Each item should be a key symbol supported by\n\t// xdotool (see X11 keysym definitions). Examples include \"Return\", \"Shift\",\n\t// \"Ctrl\", \"Alt\", \"F5\". Items in this list could also be combinations, e.g.\n\t// \"Ctrl+t\" or \"Ctrl+Shift+Tab\". Use X11 names for punctuation in combinations,\n\t// such as \"Ctrl+minus\" or \"Ctrl+plus\". A literal hyphen is also accepted as an\n\t// alias, so \"Ctrl+-\" is normalized to \"Ctrl+minus\".\n\tKeys []string `json:\"keys,omitzero\" api:\"required\"`\n\t// Duration to hold the keys down in milliseconds. If omitted or 0, keys are\n\t// tapped.\n\tDuration param.Opt[int64] `json:\"duration,omitzero\"`\n\t// Optional modifier keys to hold during the key press sequence.\n\tHoldKeys []string `json:\"hold_keys,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserComputerPressKeyParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserComputerPressKeyParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserComputerReadClipboardResponse struct {\n\t// Current clipboard text content\n\tText string `json:\"text\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tText        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserComputerReadClipboardResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserComputerReadClipboardResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserComputerScrollParams struct {\n\t// X coordinate at which to perform the scroll\n\tX int64 `json:\"x\" api:\"required\"`\n\t// Y coordinate at which to perform the scroll\n\tY int64 `json:\"y\" api:\"required\"`\n\t// Horizontal scroll amount in xdotool \"wheel units.\" Positive scrolls right,\n\t// negative scrolls left.\n\tDeltaX param.Opt[int64] `json:\"delta_x,omitzero\"`\n\t// Vertical scroll amount in xdotool \"wheel units.\" Positive scrolls down, negative\n\t// scrolls up.\n\tDeltaY param.Opt[int64] `json:\"delta_y,omitzero\"`\n\t// Modifier keys to hold during the scroll\n\tHoldKeys []string `json:\"hold_keys,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserComputerScrollParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserComputerScrollParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserComputerService struct {\n\tOptions []option.RequestOption\n}\n```\nControl mouse, keyboard, and screen on the browser instance.\n\nBrowserComputerService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewBrowserComputerService](#NewBrowserComputerService) method instead.\n\n```go\nfunc NewBrowserComputerService(opts ...option.RequestOption) (r BrowserComputerService)\n```\nNewBrowserComputerService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *BrowserComputerService) Batch(ctx context.Context, idOrName string, body BrowserComputerBatchParams, opts ...option.RequestOption) (err error)\n```\nSend an array of computer actions to execute in order on the browser instance. Execution stops on the first error. This reduces network latency compared to sending individual action requests.\n\n```go\nfunc (r *BrowserComputerService) CaptureScreenshot(ctx context.Context, idOrName string, body BrowserComputerCaptureScreenshotParams, opts ...option.RequestOption) (res *http.Response, err error)\n```\nCapture a screenshot of the browser instance\n\n```go\nfunc (r *BrowserComputerService) ClickMouse(ctx context.Context, idOrName string, body BrowserComputerClickMouseParams, opts ...option.RequestOption) (err error)\n```\nSimulate a mouse click action on the browser instance\n\n```go\nfunc (r *BrowserComputerService) DragMouse(ctx context.Context, idOrName string, body BrowserComputerDragMouseParams, opts ...option.RequestOption) (err error)\n```\nDrag the mouse along a path\n\n```go\nfunc (r *BrowserComputerService) GetMousePosition(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *BrowserComputerGetMousePositionResponse, err error)\n```\nGet the current mouse cursor position on the browser instance\n\n```go\nfunc (r *BrowserComputerService) MoveMouse(ctx context.Context, idOrName string, body BrowserComputerMoveMouseParams, opts ...option.RequestOption) (err error)\n```\nMove the mouse cursor to the specified coordinates on the browser instance\n\n```go\nfunc (r *BrowserComputerService) PressKey(ctx context.Context, idOrName string, body BrowserComputerPressKeyParams, opts ...option.RequestOption) (err error)\n```\nPress one or more keys on the host computer\n\n```go\nfunc (r *BrowserComputerService) ReadClipboard(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *BrowserComputerReadClipboardResponse, err error)\n```\nRead text from the clipboard on the browser instance\n\n```go\nfunc (r *BrowserComputerService) Scroll(ctx context.Context, idOrName string, body BrowserComputerScrollParams, opts ...option.RequestOption) (err error)\n```\nScroll the mouse wheel at a position on the host computer\n\n```go\nfunc (r *BrowserComputerService) SetCursorVisibility(ctx context.Context, idOrName string, body BrowserComputerSetCursorVisibilityParams, opts ...option.RequestOption) (res *BrowserComputerSetCursorVisibilityResponse, err error)\n```\nSet cursor visibility\n\n```go\nfunc (r *BrowserComputerService) TypeText(ctx context.Context, idOrName string, body BrowserComputerTypeTextParams, opts ...option.RequestOption) (err error)\n```\nType text on the browser instance\n\n```go\nfunc (r *BrowserComputerService) WriteClipboard(ctx context.Context, idOrName string, body BrowserComputerWriteClipboardParams, opts ...option.RequestOption) (err error)\n```\nWrite text to the clipboard on the browser instance\n\n```go\ntype BrowserComputerSetCursorVisibilityParams struct {\n\t// Whether the cursor should be hidden or visible\n\tHidden bool `json:\"hidden\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserComputerSetCursorVisibilityParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserComputerSetCursorVisibilityParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserComputerSetCursorVisibilityResponse struct {\n\t// Indicates success.\n\tOk bool `json:\"ok\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tOk          respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nGeneric OK response.\n\n```go\nfunc (r BrowserComputerSetCursorVisibilityResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserComputerSetCursorVisibilityResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserComputerTypeTextParams struct {\n\t// Text to type on the browser instance\n\tText string `json:\"text\" api:\"required\"`\n\t// Delay in milliseconds between keystrokes\n\tDelay param.Opt[int64] `json:\"delay,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserComputerTypeTextParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserComputerTypeTextParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserComputerWriteClipboardParams struct {\n\t// Text to write to the system clipboard\n\tText string `json:\"text\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserComputerWriteClipboardParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserComputerWriteClipboardParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserConsoleErrorEvent struct {\n\tCategory constant.Console `json:\"category\" default:\"console\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                 `json:\"ts\" api:\"required\"`\n\tType constant.ConsoleError `json:\"type\" default:\"console_error\"`\n\t// Browser event context stamped by the browser monitor onto all CDP-sourced\n\t// events. Identifies the target, frame, and navigation epoch in which the event\n\t// occurred.\n\tData BrowserConsoleErrorEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA browser console error or uncaught JavaScript exception event. Emitted from two distinct CDP sources with different data shapes. Runtime.consoleAPICalled (console.error calls) produces level, text, args, and stack\\_trace. Runtime.exceptionThrown (uncaught exceptions) produces text, line, column, source\\_url, and stack\\_trace. Fields not applicable to the source are absent.\n\n```go\nfunc (r BrowserConsoleErrorEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserConsoleErrorEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserConsoleErrorEventData struct {\n\t// Human-readable error text, as the browser console would display it. For\n\t// console.error() calls, the first argument coerced to a string. For uncaught\n\t// exceptions, the prefix and error message, e.g. \"Uncaught Error: boom\" or\n\t// \"Uncaught (in promise) TypeError: x is not a function\".\n\tText string `json:\"text\" api:\"required\"`\n\t// All console arguments coerced to strings. Present only when sourced from\n\t// Runtime.consoleAPICalled.\n\tArgs []string `json:\"args\"`\n\t// Column number in the script where the exception was thrown. Present only when\n\t// sourced from Runtime.exceptionThrown.\n\tColumn int64 `json:\"column\"`\n\t// CDP console type value, always \"error\". Present only when sourced from\n\t// Runtime.consoleAPICalled.\n\tLevel string `json:\"level\"`\n\t// Line number in the script where the exception was thrown. Present only when\n\t// sourced from Runtime.exceptionThrown.\n\tLine int64 `json:\"line\"`\n\t// URL of the script file that threw the exception. Present only when sourced from\n\t// Runtime.exceptionThrown.\n\tSourceURL string `json:\"source_url\"`\n\t// CDP Runtime.StackTrace representing the JavaScript call stack at the time of an\n\t// event. Fields use CDP naming conventions rather than snake_case to match the\n\t// Chrome DevTools Protocol wire format.\n\tStackTrace BrowserCallStack `json:\"stack_trace\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tText        respjson.Field\n\t\tArgs        respjson.Field\n\t\tColumn      respjson.Field\n\t\tLevel       respjson.Field\n\t\tLine        respjson.Field\n\t\tSourceURL   respjson.Field\n\t\tStackTrace  respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n\tBrowserEventContext\n}\n```\nBrowser event context stamped by the browser monitor onto all CDP-sourced events. Identifies the target, frame, and navigation epoch in which the event occurred.\n\n```go\nfunc (r BrowserConsoleErrorEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserConsoleErrorEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserConsoleLogEvent struct {\n\tCategory constant.Console `json:\"category\" default:\"console\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64               `json:\"ts\" api:\"required\"`\n\tType constant.ConsoleLog `json:\"type\" default:\"console_log\"`\n\t// Browser event context stamped by the browser monitor onto all CDP-sourced\n\t// events. Identifies the target, frame, and navigation epoch in which the event\n\t// occurred.\n\tData BrowserConsoleLogEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA browser console log event (console.log, console.info, console.warn, etc.).\n\n```go\nfunc (r BrowserConsoleLogEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserConsoleLogEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserConsoleLogEventData struct {\n\t// All console arguments coerced to strings.\n\tArgs []string `json:\"args\"`\n\t// CDP Runtime.consoleAPICalled type, passed through unfiltered from Chrome. error\n\t// is routed to console_error events instead; all other CDP console types appear\n\t// here. See CDP spec for the full enum.\n\tLevel string `json:\"level\"`\n\t// CDP Runtime.StackTrace representing the JavaScript call stack at the time of an\n\t// event. Fields use CDP naming conventions rather than snake_case to match the\n\t// Chrome DevTools Protocol wire format.\n\tStackTrace BrowserCallStack `json:\"stack_trace\"`\n\t// First console argument coerced to string.\n\tText string `json:\"text\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tArgs        respjson.Field\n\t\tLevel       respjson.Field\n\t\tStackTrace  respjson.Field\n\t\tText        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n\tBrowserEventContext\n}\n```\nBrowser event context stamped by the browser monitor onto all CDP-sourced events. Identifies the target, frame, and navigation epoch in which the event occurred.\n\n```go\nfunc (r BrowserConsoleLogEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserConsoleLogEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCost struct {\n\t// Pending means the billing checkpoint or rate calculation is not ready;\n\t// unavailable means the session cannot currently be priced safely.\n\t//\n\t// Any of \"provisional\", \"pending\", \"unavailable\".\n\tStatus BrowserCostStatus `json:\"status\" api:\"required\"`\n\t// Time of the live uptime read or durable billing checkpoint. A running or\n\t// recently deleted session may accrue additional usage.\n\tAsOf time.Time `json:\"as_of\" format:\"date-time\"`\n\t// Gross provisional USD browser-meter cost before credits, subscriptions, tax, and\n\t// adjustments. Present only with provisional status, including zero for a\n\t// completed zero-uptime session. Not an invoice total.\n\tEstimatedUsageSpendUsd string `json:\"estimated_usage_spend_usd\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tStatus                 respjson.Field\n\t\tAsOf                   respjson.Field\n\t\tEstimatedUsageSpendUsd respjson.Field\n\t\tExtraFields            map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserCost) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCost) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCostStatus string\n```\nPending means the billing checkpoint or rate calculation is not ready; unavailable means the session cannot currently be priced safely.\n\n```go\nconst (\n\tBrowserCostStatusProvisional BrowserCostStatus = \"provisional\"\n\tBrowserCostStatusPending     BrowserCostStatus = \"pending\"\n\tBrowserCostStatusUnavailable BrowserCostStatus = \"unavailable\"\n)\n```\n\n```go\ntype BrowserCurlParams struct {\n\t// Target URL (must be http or https).\n\tURL string `json:\"url\" api:\"required\"`\n\t// Request body (for POST/PUT/PATCH).\n\tBody param.Opt[string] `json:\"body,omitzero\"`\n\t// Request timeout in milliseconds.\n\tTimeoutMs param.Opt[int64] `json:\"timeout_ms,omitzero\"`\n\t// Custom headers merged with browser defaults.\n\tHeaders map[string]string `json:\"headers,omitzero\"`\n\t// HTTP method.\n\t//\n\t// Any of \"GET\", \"HEAD\", \"POST\", \"PUT\", \"PATCH\", \"DELETE\", \"OPTIONS\".\n\tMethod BrowserCurlParamsMethod `json:\"method,omitzero\"`\n\t// Encoding for the response body. Use base64 for binary content.\n\t//\n\t// Any of \"utf8\", \"base64\".\n\tResponseEncoding BrowserCurlParamsResponseEncoding `json:\"response_encoding,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserCurlParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserCurlParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserCurlParamsMethod string\n```\nHTTP method.\n\n```go\nconst (\n\tBrowserCurlParamsMethodGet     BrowserCurlParamsMethod = \"GET\"\n\tBrowserCurlParamsMethodHead    BrowserCurlParamsMethod = \"HEAD\"\n\tBrowserCurlParamsMethodPost    BrowserCurlParamsMethod = \"POST\"\n\tBrowserCurlParamsMethodPut     BrowserCurlParamsMethod = \"PUT\"\n\tBrowserCurlParamsMethodPatch   BrowserCurlParamsMethod = \"PATCH\"\n\tBrowserCurlParamsMethodDelete  BrowserCurlParamsMethod = \"DELETE\"\n\tBrowserCurlParamsMethodOptions BrowserCurlParamsMethod = \"OPTIONS\"\n)\n```\n\n```go\ntype BrowserCurlParamsResponseEncoding string\n```\nEncoding for the response body. Use base64 for binary content.\n\n```go\nconst (\n\tBrowserCurlParamsResponseEncodingUtf8   BrowserCurlParamsResponseEncoding = \"utf8\"\n\tBrowserCurlParamsResponseEncodingBase64 BrowserCurlParamsResponseEncoding = \"base64\"\n)\n```\n\n```go\ntype BrowserCurlResponse struct {\n\t// Response body (UTF-8 string or base64 depending on request).\n\tBody string `json:\"body\" api:\"required\"`\n\t// Total request duration in milliseconds.\n\tDurationMs int64 `json:\"duration_ms\" api:\"required\"`\n\t// Response headers (multi-value).\n\tHeaders map[string][]string `json:\"headers\" api:\"required\"`\n\t// HTTP status code from target.\n\tStatus int64 `json:\"status\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBody        respjson.Field\n\t\tDurationMs  respjson.Field\n\t\tHeaders     respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nStructured response from the browser curl request.\n\n```go\nfunc (r BrowserCurlResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserCurlResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserEventContext struct {\n\t// CDP frame identifier within the target.\n\tFrameID string `json:\"frame_id\"`\n\t// CDP document loader identifier, reset on each navigation.\n\tLoaderID string `json:\"loader_id\"`\n\t// Monotonically increasing navigation sequence number, incremented on each\n\t// top-level navigation within the target.\n\tNavSeq int64 `json:\"nav_seq\"`\n\t// CDP session identifier for the target connection.\n\tSessionID string `json:\"session_id\"`\n\t// Browser target identifier (stable across navigations within a tab).\n\tTargetID string `json:\"target_id\"`\n\t// CDP target type of the page that produced the event.\n\t//\n\t// Any of \"page\", \"iframe\", \"worker\", \"background_page\", \"service_worker\",\n\t// \"shared_worker\", \"other\".\n\tTargetType BrowserEventContextTargetType `json:\"target_type\"`\n\t// URL relevant to this event — page URL for navigation and page events, request\n\t// URL for network events.\n\tURL string `json:\"url\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tFrameID     respjson.Field\n\t\tLoaderID    respjson.Field\n\t\tNavSeq      respjson.Field\n\t\tSessionID   respjson.Field\n\t\tTargetID    respjson.Field\n\t\tTargetType  respjson.Field\n\t\tURL         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nBrowser event context stamped by the browser monitor onto all CDP-sourced events. Identifies the target, frame, and navigation epoch in which the event occurred.\n\n```go\nfunc (r BrowserEventContext) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserEventContext) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserEventContextTargetType string\n```\nCDP target type of the page that produced the event.\n\n```go\nconst (\n\tBrowserEventContextTargetTypePage           BrowserEventContextTargetType = \"page\"\n\tBrowserEventContextTargetTypeIframe         BrowserEventContextTargetType = \"iframe\"\n\tBrowserEventContextTargetTypeWorker         BrowserEventContextTargetType = \"worker\"\n\tBrowserEventContextTargetTypeBackgroundPage BrowserEventContextTargetType = \"background_page\"\n\tBrowserEventContextTargetTypeServiceWorker  BrowserEventContextTargetType = \"service_worker\"\n\tBrowserEventContextTargetTypeSharedWorker   BrowserEventContextTargetType = \"shared_worker\"\n\tBrowserEventContextTargetTypeOther          BrowserEventContextTargetType = \"other\"\n)\n```\n\n```go\ntype BrowserEventSource struct {\n\t// Event producer. cdp: Chrome DevTools Protocol events from the browser.\n\t// kernel_api: Kernel API server. extension: injected Chrome extension.\n\t// local_process: system process running alongside the browser.\n\t//\n\t// Any of \"cdp\", \"kernel_api\", \"extension\", \"local_process\".\n\tKind BrowserEventSourceKind `json:\"kind\" api:\"required\"`\n\t// Producer-specific event name (e.g. Runtime.consoleAPICalled for CDP-sourced\n\t// console events, Runtime.exceptionThrown for uncaught exceptions).\n\tEvent string `json:\"event\"`\n\t// Producer-specific context (e.g. CDP target/session/frame IDs).\n\tMetadata map[string]string `json:\"metadata\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tKind        respjson.Field\n\t\tEvent       respjson.Field\n\t\tMetadata    respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nProvenance metadata identifying which producer emitted the event.\n\n```go\nfunc (r BrowserEventSource) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserEventSource) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserEventSourceKind string\n```\nEvent producer. cdp: Chrome DevTools Protocol events from the browser. kernel\\_api: Kernel API server. extension: injected Chrome extension. local\\_process: system process running alongside the browser.\n\n```go\nconst (\n\tBrowserEventSourceKindCdp          BrowserEventSourceKind = \"cdp\"\n\tBrowserEventSourceKindKernelAPI    BrowserEventSourceKind = \"kernel_api\"\n\tBrowserEventSourceKindExtension    BrowserEventSourceKind = \"extension\"\n\tBrowserEventSourceKindLocalProcess BrowserEventSourceKind = \"local_process\"\n)\n```\n\n```go\ntype BrowserExtension = shared.BrowserExtension\n```\nExtension selection for the browser session. Provide either id or name of an extension uploaded to Kernel.\n\nThis is an alias to an internal type.\n\n```go\ntype BrowserExtensionParam = shared.BrowserExtensionParam\n```\nExtension selection for the browser session. Provide either id or name of an extension uploaded to Kernel.\n\nThis is an alias to an internal type.\n\n```go\ntype BrowserFDeleteDirectoryParams struct {\n\t// Absolute path to delete.\n\tPath string `json:\"path\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserFDeleteDirectoryParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserFDeleteDirectoryParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserFDeleteFileParams struct {\n\t// Absolute path to delete.\n\tPath string `json:\"path\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserFDeleteFileParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserFDeleteFileParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserFDownloadDirZipParams struct {\n\t// Absolute directory path to archive and download.\n\tPath string `query:\"path\" api:\"required\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserFDownloadDirZipParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [BrowserFDownloadDirZipParams](#BrowserFDownloadDirZipParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype BrowserFFileInfoParams struct {\n\t// Absolute path of the file or directory.\n\tPath string `query:\"path\" api:\"required\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserFFileInfoParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [BrowserFFileInfoParams](#BrowserFFileInfoParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype BrowserFFileInfoResponse struct {\n\t// Whether the path is a directory.\n\tIsDir bool `json:\"is_dir\" api:\"required\"`\n\t// Last modification time.\n\tModTime time.Time `json:\"mod_time\" api:\"required\" format:\"date-time\"`\n\t// File mode bits (e.g., \"drwxr-xr-x\" or \"-rw-r--r--\").\n\tMode string `json:\"mode\" api:\"required\"`\n\t// Base name of the file or directory.\n\tName string `json:\"name\" api:\"required\"`\n\t// Absolute path.\n\tPath string `json:\"path\" api:\"required\"`\n\t// Size in bytes. 0 for directories.\n\tSizeBytes int64 `json:\"size_bytes\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tIsDir       respjson.Field\n\t\tModTime     respjson.Field\n\t\tMode        respjson.Field\n\t\tName        respjson.Field\n\t\tPath        respjson.Field\n\t\tSizeBytes   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserFFileInfoResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserFFileInfoResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserFListFilesParams struct {\n\t// Absolute directory path.\n\tPath string `query:\"path\" api:\"required\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserFListFilesParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [BrowserFListFilesParams](#BrowserFListFilesParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype BrowserFListFilesResponse struct {\n\t// Whether the path is a directory.\n\tIsDir bool `json:\"is_dir\" api:\"required\"`\n\t// Last modification time.\n\tModTime time.Time `json:\"mod_time\" api:\"required\" format:\"date-time\"`\n\t// File mode bits (e.g., \"drwxr-xr-x\" or \"-rw-r--r--\").\n\tMode string `json:\"mode\" api:\"required\"`\n\t// Base name of the file or directory.\n\tName string `json:\"name\" api:\"required\"`\n\t// Absolute path.\n\tPath string `json:\"path\" api:\"required\"`\n\t// Size in bytes. 0 for directories.\n\tSizeBytes int64 `json:\"size_bytes\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tIsDir       respjson.Field\n\t\tModTime     respjson.Field\n\t\tMode        respjson.Field\n\t\tName        respjson.Field\n\t\tPath        respjson.Field\n\t\tSizeBytes   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserFListFilesResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserFListFilesResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserFMoveParams struct {\n\t// Absolute destination path.\n\tDestPath string `json:\"dest_path\" api:\"required\"`\n\t// Absolute source path.\n\tSrcPath string `json:\"src_path\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserFMoveParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserFMoveParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserFNewDirectoryParams struct {\n\t// Absolute directory path to create.\n\tPath string `json:\"path\" api:\"required\"`\n\t// Optional directory mode (octal string, e.g. 755). Defaults to 755.\n\tMode param.Opt[string] `json:\"mode,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserFNewDirectoryParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserFNewDirectoryParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserFReadFileParams struct {\n\t// Absolute file path to read.\n\tPath string `query:\"path\" api:\"required\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserFReadFileParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [BrowserFReadFileParams](#BrowserFReadFileParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype BrowserFService struct {\n\tOptions []option.RequestOption\n\t// Read, write, and manage files on the browser instance.\n\tWatch BrowserFWatchService\n}\n```\nRead, write, and manage files on the browser instance.\n\nBrowserFService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewBrowserFService](#NewBrowserFService) method instead.\n\n```go\nfunc NewBrowserFService(opts ...option.RequestOption) (r BrowserFService)\n```\nNewBrowserFService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *BrowserFService) DeleteDirectory(ctx context.Context, idOrName string, body BrowserFDeleteDirectoryParams, opts ...option.RequestOption) (err error)\n```\nDelete a directory\n\n```go\nfunc (r *BrowserFService) DeleteFile(ctx context.Context, idOrName string, body BrowserFDeleteFileParams, opts ...option.RequestOption) (err error)\n```\nDelete a file\n\n```go\nfunc (r *BrowserFService) DownloadDirZip(ctx context.Context, idOrName string, query BrowserFDownloadDirZipParams, opts ...option.RequestOption) (res *http.Response, err error)\n```\nReturns a ZIP file containing the contents of the specified directory.\n\n```go\nfunc (r *BrowserFService) FileInfo(ctx context.Context, idOrName string, query BrowserFFileInfoParams, opts ...option.RequestOption) (res *BrowserFFileInfoResponse, err error)\n```\nGet information about a file or directory\n\n```go\nfunc (r *BrowserFService) ListFiles(ctx context.Context, idOrName string, query BrowserFListFilesParams, opts ...option.RequestOption) (res *[]BrowserFListFilesResponse, err error)\n```\nList files in a directory\n\n```go\nfunc (r *BrowserFService) Move(ctx context.Context, idOrName string, body BrowserFMoveParams, opts ...option.RequestOption) (err error)\n```\nMove or rename a file or directory\n\n```go\nfunc (r *BrowserFService) NewDirectory(ctx context.Context, idOrName string, body BrowserFNewDirectoryParams, opts ...option.RequestOption) (err error)\n```\nCreate a new directory\n\n```go\nfunc (r *BrowserFService) ReadFile(ctx context.Context, idOrName string, query BrowserFReadFileParams, opts ...option.RequestOption) (res *http.Response, err error)\n```\nRead file contents\n\n```go\nfunc (r *BrowserFService) SetFilePermissions(ctx context.Context, idOrName string, body BrowserFSetFilePermissionsParams, opts ...option.RequestOption) (err error)\n```\nSet file or directory permissions/ownership\n\n```go\nfunc (r *BrowserFService) Upload(ctx context.Context, idOrName string, body BrowserFUploadParams, opts ...option.RequestOption) (err error)\n```\nAllows uploading single or multiple files to the remote filesystem.\n\n```go\nfunc (r *BrowserFService) UploadZip(ctx context.Context, idOrName string, body BrowserFUploadZipParams, opts ...option.RequestOption) (err error)\n```\nUpload a zip file and extract its contents to the specified destination path.\n\n```go\nfunc (r *BrowserFService) WriteFile(ctx context.Context, idOrName string, contents io.Reader, params BrowserFWriteFileParams, opts ...option.RequestOption) (err error)\n```\nWrite or create a file\n\n```go\ntype BrowserFSetFilePermissionsParams struct {\n\t// File mode bits (octal string, e.g. 644).\n\tMode string `json:\"mode\" api:\"required\"`\n\t// Absolute path whose permissions are to be changed.\n\tPath string `json:\"path\" api:\"required\"`\n\t// New group name or GID.\n\tGroup param.Opt[string] `json:\"group,omitzero\"`\n\t// New owner username or UID.\n\tOwner param.Opt[string] `json:\"owner,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserFSetFilePermissionsParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserFSetFilePermissionsParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserFUploadParams struct {\n\tFiles []BrowserFUploadParamsFile `json:\"files,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserFUploadParams) MarshalMultipart() (data []byte, contentType string, err error)\n```\n\n```go\ntype BrowserFUploadParamsFile struct {\n\t// Absolute destination path to write the file.\n\tDestPath string    `json:\"dest_path\" api:\"required\"`\n\tFile     io.Reader `json:\"file,omitzero\" api:\"required\" format:\"binary\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties DestPath, File are required.\n\n```go\nfunc (r BrowserFUploadParamsFile) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserFUploadParamsFile) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserFUploadZipParams struct {\n\t// Absolute destination directory to extract the archive to.\n\tDestPath string    `json:\"dest_path\" api:\"required\"`\n\tZipFile  io.Reader `json:\"zip_file,omitzero\" api:\"required\" format:\"binary\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserFUploadZipParams) MarshalMultipart() (data []byte, contentType string, err error)\n```\n\n```go\ntype BrowserFWatchEventsParams struct {\n\tIDOrName string `path:\"id_or_name\" api:\"required\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype BrowserFWatchEventsResponse struct {\n\t// Absolute path of the file or directory.\n\tPath string `json:\"path\" api:\"required\"`\n\t// Event type.\n\t//\n\t// Any of \"CREATE\", \"WRITE\", \"DELETE\", \"RENAME\".\n\tType BrowserFWatchEventsResponseType `json:\"type\" api:\"required\"`\n\t// Whether the affected path is a directory.\n\tIsDir bool `json:\"is_dir\"`\n\t// Base name of the file or directory affected.\n\tName string `json:\"name\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tPath        respjson.Field\n\t\tType        respjson.Field\n\t\tIsDir       respjson.Field\n\t\tName        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nFilesystem change event.\n\n```go\nfunc (r BrowserFWatchEventsResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserFWatchEventsResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserFWatchEventsResponseType string\n```\nEvent type.\n\n```go\nconst (\n\tBrowserFWatchEventsResponseTypeCreate BrowserFWatchEventsResponseType = \"CREATE\"\n\tBrowserFWatchEventsResponseTypeWrite  BrowserFWatchEventsResponseType = \"WRITE\"\n\tBrowserFWatchEventsResponseTypeDelete BrowserFWatchEventsResponseType = \"DELETE\"\n\tBrowserFWatchEventsResponseTypeRename BrowserFWatchEventsResponseType = \"RENAME\"\n)\n```\n\n```go\ntype BrowserFWatchService struct {\n\tOptions []option.RequestOption\n}\n```\nRead, write, and manage files on the browser instance.\n\nBrowserFWatchService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewBrowserFWatchService](#NewBrowserFWatchService) method instead.\n\n```go\nfunc NewBrowserFWatchService(opts ...option.RequestOption) (r BrowserFWatchService)\n```\nNewBrowserFWatchService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *BrowserFWatchService) EventsStreaming(ctx context.Context, watchID string, query BrowserFWatchEventsParams, opts ...option.RequestOption) (stream *ssestream.Stream[BrowserFWatchEventsResponse])\n```\nStream filesystem events for a watch\n\n```go\nfunc (r *BrowserFWatchService) Start(ctx context.Context, idOrName string, body BrowserFWatchStartParams, opts ...option.RequestOption) (res *BrowserFWatchStartResponse, err error)\n```\nWatch a directory for changes\n\n```go\nfunc (r *BrowserFWatchService) Stop(ctx context.Context, watchID string, body BrowserFWatchStopParams, opts ...option.RequestOption) (err error)\n```\nStop watching a directory\n\n```go\ntype BrowserFWatchStartParams struct {\n\t// Directory to watch.\n\tPath string `json:\"path\" api:\"required\"`\n\t// Whether to watch recursively.\n\tRecursive param.Opt[bool] `json:\"recursive,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserFWatchStartParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserFWatchStartParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserFWatchStartResponse struct {\n\t// Unique identifier for the directory watch\n\tWatchID string `json:\"watch_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tWatchID     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserFWatchStartResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserFWatchStartResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserFWatchStopParams struct {\n\tIDOrName string `path:\"id_or_name\" api:\"required\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype BrowserFWriteFileParams struct {\n\t// Destination absolute file path.\n\tPath string `query:\"path\" api:\"required\" json:\"-\"`\n\t// Optional file mode (octal string, e.g. 644). Defaults to 644.\n\tMode param.Opt[string] `query:\"mode,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserFWriteFileParams) MarshalMultipart() (data []byte, contentType string, err error)\n```\n\n```go\nfunc (r BrowserFWriteFileParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [BrowserFWriteFileParams](#BrowserFWriteFileParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype BrowserFingerprint struct {\n\t// Operating system the browser reports to websites.\n\t//\n\t// Any of \"linux\", \"macos\".\n\tOs BrowserFingerprintOs `json:\"os\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tOs          respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOverrides for browser attributes presented to websites.\n\n```go\nfunc (r BrowserFingerprint) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r BrowserFingerprint) ToParam() BrowserFingerprintParam\n```\nToParam converts this BrowserFingerprint to a BrowserFingerprintParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with BrowserFingerprintParam.Overrides()\n\n```go\nfunc (r *BrowserFingerprint) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserFingerprintOs string\n```\nOperating system the browser reports to websites.\n\n```go\nconst (\n\tBrowserFingerprintOsLinux BrowserFingerprintOs = \"linux\"\n\tBrowserFingerprintOsMacos BrowserFingerprintOs = \"macos\"\n)\n```\n\n```go\ntype BrowserFingerprintParam struct {\n\t// Operating system the browser reports to websites.\n\t//\n\t// Any of \"linux\", \"macos\".\n\tOs BrowserFingerprintOs `json:\"os,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nOverrides for browser attributes presented to websites.\n\nThe property Os is required.\n\n```go\nfunc (r BrowserFingerprintParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserFingerprintParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserGetParams struct {\n\t// When true, includes the session's provisional usage cost in the response.\n\tIncludeCost param.Opt[bool] `query:\"include_cost,omitzero\" json:\"-\"`\n\t// When true, includes soft-deleted browser sessions in the lookup.\n\tIncludeDeleted param.Opt[bool] `query:\"include_deleted,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserGetParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [BrowserGetParams](#BrowserGetParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype BrowserGetResponse struct {\n\t// Automatic CAPTCHA solving configuration.\n\tCaptchaSolver BrowserCaptchaSolver `json:\"captcha_solver\" api:\"required\"`\n\t// Websocket URL for Chrome DevTools Protocol connections to the browser session\n\tCdpWsURL string `json:\"cdp_ws_url\" api:\"required\"`\n\t// When the browser session was created.\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Whether the browser session is running in headless mode.\n\tHeadless bool `json:\"headless\" api:\"required\"`\n\t// Memory allocated to the browser session.\n\t//\n\t// Any of \"1GiB\", \"2GiB\", \"4GiB\", \"6GiB\", \"8GiB\", \"12GiB\", \"16GiB\".\n\tMemory BrowserMemory `json:\"memory\" api:\"required\"`\n\t// Geographic region of the browser session. Fixed once the session is created.\n\t//\n\t// Any of \"us-east\", \"us-west\", \"eu-west\", \"ap-southeast\".\n\tRegion BrowserGetResponseRegion `json:\"region\" api:\"required\"`\n\t// Unique identifier for the browser session\n\tSessionID string `json:\"session_id\" api:\"required\"`\n\t// Whether the browser session has CAPTCHA solving enabled, in which case\n\t// proxy.mode=default uses Kernel's default stealth proxy. A browser created with\n\t// only captcha_solver reports true with proxy.mode=direct. Deprecated in favor of\n\t// captcha_solver and proxy.\n\t//\n\t// Deprecated: deprecated\n\tStealth bool `json:\"stealth\" api:\"required\"`\n\t// The number of seconds of inactivity before the browser session is terminated.\n\tTimeoutSeconds int64 `json:\"timeout_seconds\" api:\"required\"`\n\t// Websocket URL for WebDriver BiDi connections to the browser session\n\tWebdriverWsURL string `json:\"webdriver_ws_url\" api:\"required\"`\n\t// Metro-API HTTP base URL for this browser session.\n\tBaseURL string `json:\"base_url\"`\n\t// Remote URL for live viewing the browser session. Only available for non-headless\n\t// browsers.\n\tBrowserLiveViewURL string `json:\"browser_live_view_url\"`\n\t// Custom Chrome enterprise policy overrides that were applied to this browser\n\t// session, if any. Echoed back for verification. Keys are Chrome enterprise policy\n\t// names.\n\tChromePolicy map[string]any `json:\"chrome_policy\"`\n\t// Provisional browser-session usage cost. Present only on GET detail responses\n\t// requested with include_cost=true; omitted otherwise and from list and other\n\t// browser responses.\n\tCost BrowserCost `json:\"cost\"`\n\t// When the browser session was soft-deleted. Only present for deleted sessions.\n\tDeletedAt time.Time `json:\"deleted_at\" format:\"date-time\"`\n\t// Fingerprint applied to this browser session. Omitted when the session was\n\t// created without one.\n\tFingerprint BrowserFingerprint `json:\"fingerprint\"`\n\t// Whether GPU acceleration is enabled for the browser session (only supported for\n\t// headful sessions).\n\tGPU bool `json:\"gpu\"`\n\t// Whether the browser session is running in kiosk mode.\n\tKioskMode bool `json:\"kiosk_mode\"`\n\t// When the pooled browser session was last leased. Only present for leased pooled\n\t// sessions.\n\tLeasedAt time.Time `json:\"leased_at\" format:\"date-time\"`\n\t// Effective browser timezone and locale with per-field provenance.\n\tLocation BrowserLocation `json:\"location\"`\n\t// Human-readable name of the browser session, if one was set at creation.\n\tName string `json:\"name\"`\n\t// Network configuration the session was created with, if any. Omitted when the\n\t// session has no network configuration.\n\tNetwork BrowserNetworkConfig `json:\"network\"`\n\t// Host platform for the browser session. Absent means linux.\n\tPlatform BrowserPlatform `json:\"platform\"`\n\t// Browser pool this session was acquired from, if any.\n\tPool BrowserPoolRef `json:\"pool\"`\n\t// Browser profile metadata.\n\tProfile Profile `json:\"profile\"`\n\t// Whether changes made during this browser session are saved back to its profile\n\t// when the session ends. Omitted when no profile is attached.\n\tProfileSaveChanges bool `json:\"profile_save_changes\"`\n\t// Resolved proxy configuration for this browser session.\n\tProxy BrowserProxy `json:\"proxy\"`\n\t// ID of the proxy associated with this browser session, if any. Deprecated in\n\t// favor of proxy.\n\t//\n\t// Deprecated: deprecated\n\tProxyID string `json:\"proxy_id\"`\n\t// Replay recording started by `start_replay` when this browser was created or\n\t// acquired. Omitted otherwise; list replays with\n\t// `GET /browsers/{id_or_name}/replays`.\n\tReplay BrowserGetResponseReplay `json:\"replay\"`\n\t// Seconds the browser waits after its last connection closes before entering\n\t// standby. Omitted when the browser uses the platform default.\n\tStandbyIdleTimeoutSeconds int64 `json:\"standby_idle_timeout_seconds\"`\n\t// URL the session was most recently asked to navigate to, if any. Recorded for\n\t// debugging. Navigation is fire-and-forget — the URL is dispatched to the browser\n\t// without waiting for it to load, and any errors (DNS failure, bad status,\n\t// timeout) are silently dropped. Captures what was requested, not what the browser\n\t// actually loaded.\n\tStartURL string `json:\"start_url\"`\n\t// User-defined key-value tags that were set on this browser session, if any.\n\t// Echoed back when present.\n\tTags Tags `json:\"tags\"`\n\t// Active telemetry configuration for the session, if any.\n\tTelemetry BrowserTelemetryConfig `json:\"telemetry\" api:\"nullable\"`\n\t// Session usage metrics.\n\tUsage BrowserUsage `json:\"usage\"`\n\t// Whether final usage billing is still pending or complete. Only present for\n\t// deleted sessions.\n\t//\n\t// Any of \"pending\", \"ready\".\n\tUsageStatus BrowserGetResponseUsageStatus `json:\"usage_status\"`\n\t// Vaults linked when the browser session was created.\n\tVaults []VaultReference `json:\"vaults\"`\n\t// Video memory (VRAM) of the GPU browser session. Only present when gpu is true.\n\t//\n\t// Any of \"3GiB\", \"6GiB\", \"2GiB\", \"4GiB\".\n\tVideoMemory BrowserVideoMemory `json:\"video_memory\"`\n\t// Initial browser window size in pixels with optional refresh rate. If omitted,\n\t// image defaults apply (1920x1080@25). For GPU images, the default is\n\t// 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.\n\t// Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,\n\t// 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For\n\t// GPU images, recommended presets use one of these resolutions with refresh rates\n\t// 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,\n\t// 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,\n\t// 768x1024, 800x1600. Viewports outside this list may exhibit unstable live view\n\t// or recording behavior. If refresh_rate is not provided, it will be automatically\n\t// determined based on the resolution (higher resolutions use lower refresh rates\n\t// to keep bandwidth reasonable).\n\tViewport shared.BrowserViewport `json:\"viewport\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCaptchaSolver             respjson.Field\n\t\tCdpWsURL                  respjson.Field\n\t\tCreatedAt                 respjson.Field\n\t\tHeadless                  respjson.Field\n\t\tMemory                    respjson.Field\n\t\tRegion                    respjson.Field\n\t\tSessionID                 respjson.Field\n\t\tStealth                   respjson.Field\n\t\tTimeoutSeconds            respjson.Field\n\t\tWebdriverWsURL            respjson.Field\n\t\tBaseURL                   respjson.Field\n\t\tBrowserLiveViewURL        respjson.Field\n\t\tChromePolicy              respjson.Field\n\t\tCost                      respjson.Field\n\t\tDeletedAt                 respjson.Field\n\t\tFingerprint               respjson.Field\n\t\tGPU                       respjson.Field\n\t\tKioskMode                 respjson.Field\n\t\tLeasedAt                  respjson.Field\n\t\tLocation                  respjson.Field\n\t\tName                      respjson.Field\n\t\tNetwork                   respjson.Field\n\t\tPlatform                  respjson.Field\n\t\tPool                      respjson.Field\n\t\tProfile                   respjson.Field\n\t\tProfileSaveChanges        respjson.Field\n\t\tProxy                     respjson.Field\n\t\tProxyID                   respjson.Field\n\t\tReplay                    respjson.Field\n\t\tStandbyIdleTimeoutSeconds respjson.Field\n\t\tStartURL                  respjson.Field\n\t\tTags                      respjson.Field\n\t\tTelemetry                 respjson.Field\n\t\tUsage                     respjson.Field\n\t\tUsageStatus               respjson.Field\n\t\tVaults                    respjson.Field\n\t\tVideoMemory               respjson.Field\n\t\tViewport                  respjson.Field\n\t\tExtraFields               map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserGetResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserGetResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserGetResponseRegion string\n```\nGeographic region of the browser session. Fixed once the session is created.\n\n```go\nconst (\n\tBrowserGetResponseRegionUsEast      BrowserGetResponseRegion = \"us-east\"\n\tBrowserGetResponseRegionUsWest      BrowserGetResponseRegion = \"us-west\"\n\tBrowserGetResponseRegionEuWest      BrowserGetResponseRegion = \"eu-west\"\n\tBrowserGetResponseRegionApSoutheast BrowserGetResponseRegion = \"ap-southeast\"\n)\n```\n\n```go\ntype BrowserGetResponseReplay struct {\n\t// Unique identifier for the replay recording.\n\tReplayID string `json:\"replay_id\" api:\"required\"`\n\t// Timestamp when replay finished\n\tFinishedAt time.Time `json:\"finished_at\" api:\"nullable\" format:\"date-time\"`\n\t// URL for viewing the replay recording.\n\tReplayViewURL string `json:\"replay_view_url\"`\n\t// Timestamp when replay started\n\tStartedAt time.Time `json:\"started_at\" api:\"nullable\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tReplayID      respjson.Field\n\t\tFinishedAt    respjson.Field\n\t\tReplayViewURL respjson.Field\n\t\tStartedAt     respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nReplay recording started by \\`start\\_replay\\` when this browser was created or acquired. Omitted otherwise; list replays with \\`GET /browsers/{id\\_or\\_name}/replays\\`.\n\n```go\nfunc (r BrowserGetResponseReplay) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserGetResponseReplay) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserGetResponseUsageStatus string\n```\nWhether final usage billing is still pending or complete. Only present for deleted sessions.\n\n```go\nconst (\n\tBrowserGetResponseUsageStatusPending BrowserGetResponseUsageStatus = \"pending\"\n\tBrowserGetResponseUsageStatusReady   BrowserGetResponseUsageStatus = \"ready\"\n)\n```\n\n```go\ntype BrowserHTTPHeaders map[string]any\n```\n\n```go\ntype BrowserInteractionClickEvent struct {\n\tCategory constant.Interaction `json:\"category\" default:\"interaction\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                     `json:\"ts\" api:\"required\"`\n\tType constant.InteractionClick `json:\"type\" default:\"interaction_click\"`\n\t// Browser event context stamped by the browser monitor onto all CDP-sourced\n\t// events. Identifies the target, frame, and navigation epoch in which the event\n\t// occurred.\n\tData BrowserInteractionClickEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA browser user click event captured via injected page script.\n\n```go\nfunc (r BrowserInteractionClickEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserInteractionClickEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserInteractionClickEventData struct {\n\t// CSS selector path to the clicked element.\n\tSelector string `json:\"selector\"`\n\t// HTML tag name of the clicked element in uppercase (e.g. BUTTON, A, DIV).\n\tTag string `json:\"tag\"`\n\t// Visible text content of the clicked element, trimmed.\n\tText string `json:\"text\"`\n\t// Viewport x-coordinate of the click in CSS pixels.\n\tX int64 `json:\"x\"`\n\t// Viewport y-coordinate of the click in CSS pixels.\n\tY int64 `json:\"y\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tSelector    respjson.Field\n\t\tTag         respjson.Field\n\t\tText        respjson.Field\n\t\tX           respjson.Field\n\t\tY           respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n\tBrowserEventContext\n}\n```\nBrowser event context stamped by the browser monitor onto all CDP-sourced events. Identifies the target, frame, and navigation epoch in which the event occurred.\n\n```go\nfunc (r BrowserInteractionClickEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserInteractionClickEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserInteractionKeyEvent struct {\n\tCategory constant.Interaction `json:\"category\" default:\"interaction\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                   `json:\"ts\" api:\"required\"`\n\tType constant.InteractionKey `json:\"type\" default:\"interaction_key\"`\n\t// Browser event context stamped by the browser monitor onto all CDP-sourced\n\t// events. Identifies the target, frame, and navigation epoch in which the event\n\t// occurred.\n\tData BrowserInteractionKeyEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA browser keyboard event captured via injected page script.\n\n```go\nfunc (r BrowserInteractionKeyEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserInteractionKeyEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserInteractionKeyEventData struct {\n\t// Key value from the KeyboardEvent (e.g. Enter, Backspace, a).\n\tKey string `json:\"key\"`\n\t// CSS selector path to the element that had focus when the key was pressed.\n\tSelector string `json:\"selector\"`\n\t// HTML tag name of the focused element in uppercase (e.g. INPUT, TEXTAREA, DIV).\n\tTag string `json:\"tag\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tKey         respjson.Field\n\t\tSelector    respjson.Field\n\t\tTag         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n\tBrowserEventContext\n}\n```\nBrowser event context stamped by the browser monitor onto all CDP-sourced events. Identifies the target, frame, and navigation epoch in which the event occurred.\n\n```go\nfunc (r BrowserInteractionKeyEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserInteractionKeyEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserInteractionScrollSettledEvent struct {\n\tCategory constant.Interaction `json:\"category\" default:\"interaction\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                             `json:\"ts\" api:\"required\"`\n\tType constant.InteractionScrollSettled `json:\"type\" default:\"interaction_scroll_settled\"`\n\t// Browser event context stamped by the browser monitor onto all CDP-sourced\n\t// events. Identifies the target, frame, and navigation epoch in which the event\n\t// occurred.\n\tData BrowserInteractionScrollSettledEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA browser scroll settled event emitted after scroll position stops changing, captured via injected page script.\n\n```go\nfunc (r BrowserInteractionScrollSettledEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserInteractionScrollSettledEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserInteractionScrollSettledEventData struct {\n\t// Scroll x-position at the start of the scroll gesture in CSS pixels.\n\tFromX int64 `json:\"from_x\"`\n\t// Scroll y-position at the start of the scroll gesture in CSS pixels.\n\tFromY int64 `json:\"from_y\"`\n\t// CSS selector path to the scrolled element.\n\tTargetSelector string `json:\"target_selector\"`\n\t// Final scroll x-position after the gesture settled in CSS pixels.\n\tToX int64 `json:\"to_x\"`\n\t// Final scroll y-position after the gesture settled in CSS pixels.\n\tToY int64 `json:\"to_y\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tFromX          respjson.Field\n\t\tFromY          respjson.Field\n\t\tTargetSelector respjson.Field\n\t\tToX            respjson.Field\n\t\tToY            respjson.Field\n\t\tExtraFields    map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n\tBrowserEventContext\n}\n```\nBrowser event context stamped by the browser monitor onto all CDP-sourced events. Identifies the target, frame, and navigation epoch in which the event occurred.\n\n```go\nfunc (r BrowserInteractionScrollSettledEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserInteractionScrollSettledEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserListParams struct {\n\t// Deprecated: Use status=all instead. When true, includes soft-deleted browser\n\t// sessions in the results alongside active sessions.\n\tIncludeDeleted param.Opt[bool] `query:\"include_deleted,omitzero\" json:\"-\"`\n\t// Maximum number of results to return. Defaults to 20, maximum 100.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Number of results to skip. Defaults to 0.\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Search browsers by name, session ID, profile name or ID, proxy ID, or pool name.\n\t// With `status=deleted` or `status=all`, only browsers created in the last 24\n\t// hours are searched, including active ones; use `status=active` to search all\n\t// active browsers.\n\tQuery param.Opt[string] `query:\"query,omitzero\" json:\"-\"`\n\t// Filter sessions by geographic region. Omit to list sessions in all regions.\n\t//\n\t// Any of \"us-east\", \"us-west\", \"eu-west\", \"ap-southeast\".\n\tRegion BrowserListParamsRegion `query:\"region,omitzero\" json:\"-\"`\n\t// Filter sessions by status. \"active\" returns only active sessions (default),\n\t// \"deleted\" returns only soft-deleted sessions, \"all\" returns both.\n\t//\n\t// Any of \"active\", \"deleted\", \"all\".\n\tStatus BrowserListParamsStatus `query:\"status,omitzero\" json:\"-\"`\n\t// Filter sessions by tag key-value pairs using deepObject style, e.g.\n\t// ?tags[team]=backend\u0026tags[env]=staging. Multiple pairs are ANDed: a session must\n\t// match every supplied pair exactly. With `status=deleted` or `status=all`, only\n\t// browsers created in the last 24 hours are matched; use `status=active` to match\n\t// all active browsers.\n\tTags map[string]string `query:\"tags,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [BrowserListParams](#BrowserListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype BrowserListParamsRegion string\n```\nFilter sessions by geographic region. Omit to list sessions in all regions.\n\n```go\nconst (\n\tBrowserListParamsRegionUsEast      BrowserListParamsRegion = \"us-east\"\n\tBrowserListParamsRegionUsWest      BrowserListParamsRegion = \"us-west\"\n\tBrowserListParamsRegionEuWest      BrowserListParamsRegion = \"eu-west\"\n\tBrowserListParamsRegionApSoutheast BrowserListParamsRegion = \"ap-southeast\"\n)\n```\n\n```go\ntype BrowserListParamsStatus string\n```\nFilter sessions by status. \"active\" returns only active sessions (default), \"deleted\" returns only soft-deleted sessions, \"all\" returns both.\n\n```go\nconst (\n\tBrowserListParamsStatusActive  BrowserListParamsStatus = \"active\"\n\tBrowserListParamsStatusDeleted BrowserListParamsStatus = \"deleted\"\n\tBrowserListParamsStatusAll     BrowserListParamsStatus = \"all\"\n)\n```\n\n```go\ntype BrowserListResponse struct {\n\t// Automatic CAPTCHA solving configuration.\n\tCaptchaSolver BrowserCaptchaSolver `json:\"captcha_solver\" api:\"required\"`\n\t// Websocket URL for Chrome DevTools Protocol connections to the browser session\n\tCdpWsURL string `json:\"cdp_ws_url\" api:\"required\"`\n\t// When the browser session was created.\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Whether the browser session is running in headless mode.\n\tHeadless bool `json:\"headless\" api:\"required\"`\n\t// Memory allocated to the browser session.\n\t//\n\t// Any of \"1GiB\", \"2GiB\", \"4GiB\", \"6GiB\", \"8GiB\", \"12GiB\", \"16GiB\".\n\tMemory BrowserMemory `json:\"memory\" api:\"required\"`\n\t// Geographic region of the browser session. Fixed once the session is created.\n\t//\n\t// Any of \"us-east\", \"us-west\", \"eu-west\", \"ap-southeast\".\n\tRegion BrowserListResponseRegion `json:\"region\" api:\"required\"`\n\t// Unique identifier for the browser session\n\tSessionID string `json:\"session_id\" api:\"required\"`\n\t// Whether the browser session has CAPTCHA solving enabled, in which case\n\t// proxy.mode=default uses Kernel's default stealth proxy. A browser created with\n\t// only captcha_solver reports true with proxy.mode=direct. Deprecated in favor of\n\t// captcha_solver and proxy.\n\t//\n\t// Deprecated: deprecated\n\tStealth bool `json:\"stealth\" api:\"required\"`\n\t// The number of seconds of inactivity before the browser session is terminated.\n\tTimeoutSeconds int64 `json:\"timeout_seconds\" api:\"required\"`\n\t// Websocket URL for WebDriver BiDi connections to the browser session\n\tWebdriverWsURL string `json:\"webdriver_ws_url\" api:\"required\"`\n\t// Metro-API HTTP base URL for this browser session.\n\tBaseURL string `json:\"base_url\"`\n\t// Remote URL for live viewing the browser session. Only available for non-headless\n\t// browsers.\n\tBrowserLiveViewURL string `json:\"browser_live_view_url\"`\n\t// Custom Chrome enterprise policy overrides that were applied to this browser\n\t// session, if any. Echoed back for verification. Keys are Chrome enterprise policy\n\t// names.\n\tChromePolicy map[string]any `json:\"chrome_policy\"`\n\t// Provisional browser-session usage cost. Present only on GET detail responses\n\t// requested with include_cost=true; omitted otherwise and from list and other\n\t// browser responses.\n\tCost BrowserCost `json:\"cost\"`\n\t// When the browser session was soft-deleted. Only present for deleted sessions.\n\tDeletedAt time.Time `json:\"deleted_at\" format:\"date-time\"`\n\t// Fingerprint applied to this browser session. Omitted when the session was\n\t// created without one.\n\tFingerprint BrowserFingerprint `json:\"fingerprint\"`\n\t// Whether GPU acceleration is enabled for the browser session (only supported for\n\t// headful sessions).\n\tGPU bool `json:\"gpu\"`\n\t// Whether the browser session is running in kiosk mode.\n\tKioskMode bool `json:\"kiosk_mode\"`\n\t// When the pooled browser session was last leased. Only present for leased pooled\n\t// sessions.\n\tLeasedAt time.Time `json:\"leased_at\" format:\"date-time\"`\n\t// Effective browser timezone and locale with per-field provenance.\n\tLocation BrowserLocation `json:\"location\"`\n\t// Human-readable name of the browser session, if one was set at creation.\n\tName string `json:\"name\"`\n\t// Network configuration the session was created with, if any. Omitted when the\n\t// session has no network configuration.\n\tNetwork BrowserNetworkConfig `json:\"network\"`\n\t// Host platform for the browser session. Absent means linux.\n\tPlatform BrowserPlatform `json:\"platform\"`\n\t// Browser pool this session was acquired from, if any.\n\tPool BrowserPoolRef `json:\"pool\"`\n\t// Browser profile metadata.\n\tProfile Profile `json:\"profile\"`\n\t// Whether changes made during this browser session are saved back to its profile\n\t// when the session ends. Omitted when no profile is attached.\n\tProfileSaveChanges bool `json:\"profile_save_changes\"`\n\t// Resolved proxy configuration for this browser session.\n\tProxy BrowserProxy `json:\"proxy\"`\n\t// ID of the proxy associated with this browser session, if any. Deprecated in\n\t// favor of proxy.\n\t//\n\t// Deprecated: deprecated\n\tProxyID string `json:\"proxy_id\"`\n\t// Replay recording started by `start_replay` when this browser was created or\n\t// acquired. Omitted otherwise; list replays with\n\t// `GET /browsers/{id_or_name}/replays`.\n\tReplay BrowserListResponseReplay `json:\"replay\"`\n\t// Seconds the browser waits after its last connection closes before entering\n\t// standby. Omitted when the browser uses the platform default.\n\tStandbyIdleTimeoutSeconds int64 `json:\"standby_idle_timeout_seconds\"`\n\t// URL the session was most recently asked to navigate to, if any. Recorded for\n\t// debugging. Navigation is fire-and-forget — the URL is dispatched to the browser\n\t// without waiting for it to load, and any errors (DNS failure, bad status,\n\t// timeout) are silently dropped. Captures what was requested, not what the browser\n\t// actually loaded.\n\tStartURL string `json:\"start_url\"`\n\t// User-defined key-value tags that were set on this browser session, if any.\n\t// Echoed back when present.\n\tTags Tags `json:\"tags\"`\n\t// Active telemetry configuration for the session, if any.\n\tTelemetry BrowserTelemetryConfig `json:\"telemetry\" api:\"nullable\"`\n\t// Session usage metrics.\n\tUsage BrowserUsage `json:\"usage\"`\n\t// Whether final usage billing is still pending or complete. Only present for\n\t// deleted sessions.\n\t//\n\t// Any of \"pending\", \"ready\".\n\tUsageStatus BrowserListResponseUsageStatus `json:\"usage_status\"`\n\t// Vaults linked when the browser session was created.\n\tVaults []VaultReference `json:\"vaults\"`\n\t// Video memory (VRAM) of the GPU browser session. Only present when gpu is true.\n\t//\n\t// Any of \"3GiB\", \"6GiB\", \"2GiB\", \"4GiB\".\n\tVideoMemory BrowserVideoMemory `json:\"video_memory\"`\n\t// Initial browser window size in pixels with optional refresh rate. If omitted,\n\t// image defaults apply (1920x1080@25). For GPU images, the default is\n\t// 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.\n\t// Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,\n\t// 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For\n\t// GPU images, recommended presets use one of these resolutions with refresh rates\n\t// 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,\n\t// 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,\n\t// 768x1024, 800x1600. Viewports outside this list may exhibit unstable live view\n\t// or recording behavior. If refresh_rate is not provided, it will be automatically\n\t// determined based on the resolution (higher resolutions use lower refresh rates\n\t// to keep bandwidth reasonable).\n\tViewport shared.BrowserViewport `json:\"viewport\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCaptchaSolver             respjson.Field\n\t\tCdpWsURL                  respjson.Field\n\t\tCreatedAt                 respjson.Field\n\t\tHeadless                  respjson.Field\n\t\tMemory                    respjson.Field\n\t\tRegion                    respjson.Field\n\t\tSessionID                 respjson.Field\n\t\tStealth                   respjson.Field\n\t\tTimeoutSeconds            respjson.Field\n\t\tWebdriverWsURL            respjson.Field\n\t\tBaseURL                   respjson.Field\n\t\tBrowserLiveViewURL        respjson.Field\n\t\tChromePolicy              respjson.Field\n\t\tCost                      respjson.Field\n\t\tDeletedAt                 respjson.Field\n\t\tFingerprint               respjson.Field\n\t\tGPU                       respjson.Field\n\t\tKioskMode                 respjson.Field\n\t\tLeasedAt                  respjson.Field\n\t\tLocation                  respjson.Field\n\t\tName                      respjson.Field\n\t\tNetwork                   respjson.Field\n\t\tPlatform                  respjson.Field\n\t\tPool                      respjson.Field\n\t\tProfile                   respjson.Field\n\t\tProfileSaveChanges        respjson.Field\n\t\tProxy                     respjson.Field\n\t\tProxyID                   respjson.Field\n\t\tReplay                    respjson.Field\n\t\tStandbyIdleTimeoutSeconds respjson.Field\n\t\tStartURL                  respjson.Field\n\t\tTags                      respjson.Field\n\t\tTelemetry                 respjson.Field\n\t\tUsage                     respjson.Field\n\t\tUsageStatus               respjson.Field\n\t\tVaults                    respjson.Field\n\t\tVideoMemory               respjson.Field\n\t\tViewport                  respjson.Field\n\t\tExtraFields               map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserListResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserListResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserListResponseRegion string\n```\nGeographic region of the browser session. Fixed once the session is created.\n\n```go\nconst (\n\tBrowserListResponseRegionUsEast      BrowserListResponseRegion = \"us-east\"\n\tBrowserListResponseRegionUsWest      BrowserListResponseRegion = \"us-west\"\n\tBrowserListResponseRegionEuWest      BrowserListResponseRegion = \"eu-west\"\n\tBrowserListResponseRegionApSoutheast BrowserListResponseRegion = \"ap-southeast\"\n)\n```\n\n```go\ntype BrowserListResponseReplay struct {\n\t// Unique identifier for the replay recording.\n\tReplayID string `json:\"replay_id\" api:\"required\"`\n\t// Timestamp when replay finished\n\tFinishedAt time.Time `json:\"finished_at\" api:\"nullable\" format:\"date-time\"`\n\t// URL for viewing the replay recording.\n\tReplayViewURL string `json:\"replay_view_url\"`\n\t// Timestamp when replay started\n\tStartedAt time.Time `json:\"started_at\" api:\"nullable\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tReplayID      respjson.Field\n\t\tFinishedAt    respjson.Field\n\t\tReplayViewURL respjson.Field\n\t\tStartedAt     respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nReplay recording started by \\`start\\_replay\\` when this browser was created or acquired. Omitted otherwise; list replays with \\`GET /browsers/{id\\_or\\_name}/replays\\`.\n\n```go\nfunc (r BrowserListResponseReplay) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserListResponseReplay) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserListResponseUsageStatus string\n```\nWhether final usage billing is still pending or complete. Only present for deleted sessions.\n\n```go\nconst (\n\tBrowserListResponseUsageStatusPending BrowserListResponseUsageStatus = \"pending\"\n\tBrowserListResponseUsageStatusReady   BrowserListResponseUsageStatus = \"ready\"\n)\n```\n\n```go\ntype BrowserLiveView struct {\n\t// `read` shows the browser without accepting input. `control` also lets the viewer\n\t// drive the browser through the live view.\n\t//\n\t// Any of \"read\", \"control\".\n\tScope BrowserLiveViewScope `json:\"scope\" api:\"required\"`\n\t// Live view URL. Treat it as a credential.\n\tURL string `json:\"url\" api:\"required\"`\n\t// When the URL expires. Absent when it stays valid until the browser is deleted.\n\tExpiresAt time.Time `json:\"expires_at\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tScope       respjson.Field\n\t\tURL         respjson.Field\n\t\tExpiresAt   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserLiveView) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserLiveView) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserLiveViewConnectEvent struct {\n\tCategory constant.Connection `json:\"category\" default:\"connection\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                           `json:\"ts\" api:\"required\"`\n\tType constant.LiveViewConnect        `json:\"type\" default:\"live_view_connect\"`\n\tData BrowserLiveViewConnectEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA live view client connected to the headful browser's WebRTC server. Headful only; not emitted for headless images.\n\n```go\nfunc (r BrowserLiveViewConnectEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserLiveViewConnectEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserLiveViewConnectEventData struct {\n\t// Live view session identifier. Stable across reconnects, so a transient network\n\t// blip can emit two events with the same session_id.\n\tSessionID string `json:\"session_id\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tSessionID   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserLiveViewConnectEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserLiveViewConnectEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserLiveViewDisconnectEvent struct {\n\tCategory constant.Connection `json:\"category\" default:\"connection\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                              `json:\"ts\" api:\"required\"`\n\tType constant.LiveViewDisconnect        `json:\"type\" default:\"live_view_disconnect\"`\n\tData BrowserLiveViewDisconnectEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA live view client disconnected from the headful browser's WebRTC server. Pair with live\\_view\\_connect by session\\_id.\n\n```go\nfunc (r BrowserLiveViewDisconnectEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserLiveViewDisconnectEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserLiveViewDisconnectEventData struct {\n\t// Wall-clock duration of the connection in milliseconds.\n\tDurationMs float64 `json:\"duration_ms\" api:\"required\"`\n\t// Live view session identifier; matches the corresponding live_view_connect event.\n\tSessionID string `json:\"session_id\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDurationMs  respjson.Field\n\t\tSessionID   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserLiveViewDisconnectEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserLiveViewDisconnectEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserLiveViewNewParams struct {\n\tBrowserLiveViewRequest BrowserLiveViewRequestParam\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserLiveViewNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserLiveViewNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserLiveViewRequestParam struct {\n\t// Seconds until the URL expires. Omit to keep it valid until the browser is\n\t// deleted.\n\tTtlSeconds param.Opt[int64] `json:\"ttl_seconds,omitzero\"`\n\t// `read` shows the browser without accepting input. `control` also lets the viewer\n\t// drive the browser through the live view.\n\t//\n\t// Any of \"read\", \"control\".\n\tScope BrowserLiveViewScope `json:\"scope,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserLiveViewRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserLiveViewRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserLiveViewScope string\n```\n\\`read\\` shows the browser without accepting input. \\`control\\` also lets the viewer drive the browser through the live view.\n\n```go\nconst (\n\tBrowserLiveViewScopeRead    BrowserLiveViewScope = \"read\"\n\tBrowserLiveViewScopeControl BrowserLiveViewScope = \"control\"\n)\n```\n\n```go\ntype BrowserLiveViewService struct {\n\tOptions []option.RequestOption\n}\n```\nCreate and manage browser sessions.\n\nBrowserLiveViewService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewBrowserLiveViewService](#NewBrowserLiveViewService) method instead.\n\n```go\nfunc NewBrowserLiveViewService(opts ...option.RequestOption) (r BrowserLiveViewService)\n```\nNewBrowserLiveViewService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *BrowserLiveViewService) New(ctx context.Context, idOrName string, body BrowserLiveViewNewParams, opts ...option.RequestOption) (res *BrowserLiveView, err error)\n```\nCreates a live view URL for a headful browser that grants either read-only or control access. The URL works only for the live view: it cannot connect to CDP, WebDriver, or any other browser endpoint. A read-only URL shows the browser but cannot send input, regardless of query parameters. The URL stays valid until the browser is deleted, or until \\`ttl\\_seconds\\` elapse when set. For a browser acquired from a pool, it stops working when the browser is released. Nothing is stored, so a URL cannot be revoked before then.\n\n```go\ntype BrowserLoadExtensionsParams struct {\n\t// List of extensions to upload and activate\n\tExtensions []BrowserLoadExtensionsParamsExtension `json:\"extensions,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserLoadExtensionsParams) MarshalMultipart() (data []byte, contentType string, err error)\n```\n\n```go\ntype BrowserLoadExtensionsParamsExtension struct {\n\t// Folder name to place the extension under /home/kernel/extensions/\u003cname\u003e\n\tName string `json:\"name\" api:\"required\"`\n\t// Zip archive containing an unpacked Chromium extension (must include\n\t// manifest.json)\n\tZipFile io.Reader `json:\"zip_file,omitzero\" api:\"required\" format:\"binary\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Name, ZipFile are required.\n\n```go\nfunc (r BrowserLoadExtensionsParamsExtension) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserLoadExtensionsParamsExtension) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserLocation struct {\n\t// Effective canonical BCP 47 formatting locale selected for the browser session.\n\tLocale string `json:\"locale\" api:\"required\"`\n\t// Where one effective browser location field came from. `override` is set\n\t// explicitly on the session; `default` comes from the browser's region.\n\t//\n\t// Any of \"override\", \"default\".\n\tLocaleSource BrowserLocationSource `json:\"locale_source\" api:\"required\"`\n\t// Effective IANA timezone selected for the browser session.\n\tTimezone string `json:\"timezone\" api:\"required\"`\n\t// Where one effective browser location field came from. `override` is set\n\t// explicitly on the session; `default` comes from the browser's region.\n\t//\n\t// Any of \"override\", \"default\".\n\tTimezoneSource BrowserLocationSource `json:\"timezone_source\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tLocale         respjson.Field\n\t\tLocaleSource   respjson.Field\n\t\tTimezone       respjson.Field\n\t\tTimezoneSource respjson.Field\n\t\tExtraFields    map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserLocation) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserLocation) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserLocationRequestParam struct {\n\t// Session-only supported canonical BCP 47 locale override. Omit to use the default\n\t// for the browser's region.\n\tLocale param.Opt[string] `json:\"locale,omitzero\"`\n\t// Session-only IANA timezone override. Omit to use the default for the browser's\n\t// region.\n\tTimezone param.Opt[string] `json:\"timezone,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserLocationRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserLocationRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserLocationSource string\n```\nWhere one effective browser location field came from. \\`override\\` is set explicitly on the session; \\`default\\` comes from the browser's region.\n\n```go\nconst (\n\tBrowserLocationSourceOverride BrowserLocationSource = \"override\"\n\tBrowserLocationSourceDefault  BrowserLocationSource = \"default\"\n)\n```\n\n```go\ntype BrowserLocationUpdateRequestParam struct {\n\t// Session-only supported canonical BCP 47 locale override. Null clears the\n\t// override and uses the browser region's default.\n\tLocale param.Opt[string] `json:\"locale,omitzero\"`\n\t// Session-only IANA timezone override. Null clears the override and uses the\n\t// browser region's default.\n\tTimezone param.Opt[string] `json:\"timezone,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nOmit a field to leave it unchanged, set a string override, or set null to clear the override and use the default for the browser's region.\n\n```go\nfunc (r BrowserLocationUpdateRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserLocationUpdateRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserLogService struct {\n\tOptions []option.RequestOption\n}\n```\nStream logs from the browser instance.\n\nBrowserLogService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewBrowserLogService](#NewBrowserLogService) method instead.\n\n```go\nfunc NewBrowserLogService(opts ...option.RequestOption) (r BrowserLogService)\n```\nNewBrowserLogService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *BrowserLogService) StreamStreaming(ctx context.Context, idOrName string, query BrowserLogStreamParams, opts ...option.RequestOption) (stream *ssestream.Stream[shared.LogEvent])\n```\nStream log files on the browser instance via SSE\n\n```go\ntype BrowserLogStreamParams struct {\n\t// Any of \"path\", \"supervisor\".\n\tSource BrowserLogStreamParamsSource `query:\"source,omitzero\" api:\"required\" json:\"-\"`\n\tFollow param.Opt[bool]              `query:\"follow,omitzero\" json:\"-\"`\n\t// only required if source is path\n\tPath param.Opt[string] `query:\"path,omitzero\" json:\"-\"`\n\t// only required if source is supervisor\n\tSupervisorProcess param.Opt[string] `query:\"supervisor_process,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserLogStreamParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [BrowserLogStreamParams](#BrowserLogStreamParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype BrowserLogStreamParamsSource string\n```\n\n```go\nconst (\n\tBrowserLogStreamParamsSourcePath       BrowserLogStreamParamsSource = \"path\"\n\tBrowserLogStreamParamsSourceSupervisor BrowserLogStreamParamsSource = \"supervisor\"\n)\n```\n\n```go\ntype BrowserMemory string\n```\nMemory allocated to the browser session.\n\n```go\nconst (\n\tBrowserMemory1GiB  BrowserMemory = \"1GiB\"\n\tBrowserMemory2GiB  BrowserMemory = \"2GiB\"\n\tBrowserMemory4GiB  BrowserMemory = \"4GiB\"\n\tBrowserMemory6GiB  BrowserMemory = \"6GiB\"\n\tBrowserMemory8GiB  BrowserMemory = \"8GiB\"\n\tBrowserMemory12GiB BrowserMemory = \"12GiB\"\n\tBrowserMemory16GiB BrowserMemory = \"16GiB\"\n)\n```\n\n```go\ntype BrowserMemoryRequest string\n```\nMemory requested for a non-GPU browser. Headless browsers support 1GiB (default), 2GiB, or 4GiB; headful browsers support 8GiB (default) or 16GiB.\n\n```go\nconst (\n\tBrowserMemoryRequest1GiB  BrowserMemoryRequest = \"1GiB\"\n\tBrowserMemoryRequest2GiB  BrowserMemoryRequest = \"2GiB\"\n\tBrowserMemoryRequest4GiB  BrowserMemoryRequest = \"4GiB\"\n\tBrowserMemoryRequest8GiB  BrowserMemoryRequest = \"8GiB\"\n\tBrowserMemoryRequest16GiB BrowserMemoryRequest = \"16GiB\"\n)\n```\n\n```go\ntype BrowserMonitorDisconnectedEvent struct {\n\tCategory constant.Monitor `json:\"category\" default:\"monitor\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                               `json:\"ts\" api:\"required\"`\n\tType constant.MonitorDisconnected        `json:\"type\" default:\"monitor_disconnected\"`\n\tData BrowserMonitorDisconnectedEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nThe CDP connection to Chrome was lost. Telemetry events may be dropped until monitor\\_reconnected arrives. In-progress computed state is discarded rather than paused, so computed events still pending for the current navigation (network\\_idle, page\\_layout\\_settled, page\\_navigation\\_settled) never fire. monitor\\_reconnected does not restore them. After reattachment a fresh state machine starts, so computed events can resume before the next navigation and carry empty navigation context until one occurs.\n\n```go\nfunc (r BrowserMonitorDisconnectedEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserMonitorDisconnectedEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserMonitorDisconnectedEventData struct {\n\t// Reason for the disconnection. chrome_restarted: Chrome process restarted.\n\t//\n\t// Any of \"chrome_restarted\".\n\tReason string `json:\"reason\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tReason      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserMonitorDisconnectedEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserMonitorDisconnectedEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserMonitorInitFailedEvent struct {\n\tCategory constant.Monitor `json:\"category\" default:\"monitor\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                             `json:\"ts\" api:\"required\"`\n\tType constant.MonitorInitFailed        `json:\"type\" default:\"monitor_init_failed\"`\n\tData BrowserMonitorInitFailedEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nThe CDP session could not be initialized.\n\n```go\nfunc (r BrowserMonitorInitFailedEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserMonitorInitFailedEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserMonitorInitFailedEventData struct {\n\t// The CDP method or initialization step that failed (e.g. Target.setAutoAttach).\n\tStep string `json:\"step\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tStep        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserMonitorInitFailedEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserMonitorInitFailedEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserMonitorReconnectFailedEvent struct {\n\tCategory constant.Monitor `json:\"category\" default:\"monitor\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                                  `json:\"ts\" api:\"required\"`\n\tType constant.MonitorReconnectFailed        `json:\"type\" default:\"monitor_reconnect_failed\"`\n\tData BrowserMonitorReconnectFailedEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nThe CDP connection to Chrome could not be re-established after exhausting all reconnection attempts. No further telemetry events will arrive on this session.\n\n```go\nfunc (r BrowserMonitorReconnectFailedEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserMonitorReconnectFailedEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserMonitorReconnectFailedEventData struct {\n\t// Reason for the reconnection failure. reconnect_exhausted: all retry attempts\n\t// were used up without successfully restoring the CDP connection.\n\t//\n\t// Any of \"reconnect_exhausted\".\n\tReason string `json:\"reason\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tReason      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserMonitorReconnectFailedEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserMonitorReconnectFailedEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserMonitorReconnectedEvent struct {\n\tCategory constant.Monitor `json:\"category\" default:\"monitor\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                              `json:\"ts\" api:\"required\"`\n\tType constant.MonitorReconnected        `json:\"type\" default:\"monitor_reconnected\"`\n\tData BrowserMonitorReconnectedEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nThe CDP connection to Chrome was successfully re-established after a disconnection. Events emitted during the gap are lost. Computed state is reset, so navigation and network tracking restart fresh from this point.\n\n```go\nfunc (r BrowserMonitorReconnectedEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserMonitorReconnectedEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserMonitorReconnectedEventData struct {\n\t// Wall-clock time in milliseconds taken to reconnect after the disconnection.\n\tReconnectDurationMs int64 `json:\"reconnect_duration_ms\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tReconnectDurationMs respjson.Field\n\t\tExtraFields         map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserMonitorReconnectedEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserMonitorReconnectedEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserMonitorScreenshotEvent struct {\n\tCategory constant.Screenshot `json:\"category\" default:\"screenshot\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                             `json:\"ts\" api:\"required\"`\n\tType constant.MonitorScreenshot        `json:\"type\" default:\"monitor_screenshot\"`\n\tData BrowserMonitorScreenshotEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA periodic screenshot of the browser viewport.\n\n```go\nfunc (r BrowserMonitorScreenshotEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserMonitorScreenshotEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserMonitorScreenshotEventData struct {\n\t// Base64-encoded PNG screenshot of the browser viewport.\n\tPng string `json:\"png\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tPng         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserMonitorScreenshotEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserMonitorScreenshotEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserNetworkConfig struct {\n\t// Egress allowlist for a browser session: the only destinations the browser may\n\t// reach through Kernel-managed egress. Any other destination is refused with a 403\n\t// whose X-Kernel-Proxy-Error header is network_policy_denied, so pages cannot load\n\t// or send data to unlisted hosts, including with fetch() and WebSockets. Omit the\n\t// field for unfiltered egress; an empty list is invalid. The allowlist applies\n\t// from the browser's first request, and start_url must be allowed by it. Entries\n\t// are exact hostnames (\"example.com\"), one leading \"_.\" wildcard that matches\n\t// subdomains at any depth but not the domain itself (\"_.example.com\" matches\n\t// api.example.com, not example.com), public IPv4 addresses (\"8.8.8.8\"), bracketed\n\t// public IPv6 addresses (\"[2001:4860:4860::8888]\"), or public CIDR ranges in\n\t// canonical form (\"8.8.4.0/24\", \"2001:4860::/32\"). IP and CIDR entries only match\n\t// destinations written as an IP address, never hostnames that resolve into the\n\t// range. Entries cannot include ports, paths, or schemes, and match every port on\n\t// their host. Wildcards over a public suffix (\"_.com\", \"_.github.io\") and private\n\t// or reserved IP ranges are rejected, as are entries that overlap private_hosts.\n\t// Enforced at Kernel's egress proxy only: destinations in private_hosts, and\n\t// processes in the browser VM that do not use the browser's proxy, are not\n\t// filtered, and Kernel's own control traffic is always allowed. Can be replaced or\n\t// removed while the session runs with PATCH /browsers/{id_or_name}, but not added\n\t// to a browser created without one. Supported on browser pools and their leased\n\t// browsers. Per-lease changes are reset to the pool's allowlist on release. If a\n\t// lessee removes the allowlist and the pool still requires one, the browser is\n\t// replaced on release rather than given an allowlist again. Requires proxy v3.\n\tAllowedHosts []string `json:\"allowed_hosts\"`\n\t// Concurrency metadata for a browser's saved allowlist configuration. Browser\n\t// pools omit it. This remains present after removal so an uncertain removal can be\n\t// retried. It does not prove proxy or VM application completed. Do not include it\n\t// in creation or pool updates.\n\tAllowlistState BrowserAllowlistState `json:\"allowlist_state\"`\n\t// Destinations the browser reaches directly through the session's own network\n\t// instead of through Kernel-managed egress — for private hosts reachable over a\n\t// VPN or tunnel the session has joined (e.g. a Tailscale tailnet). By default,\n\t// private IP ranges already route directly: RFC1918 (10.0.0.0/8, 172.16.0.0/12,\n\t// 192.168.0.0/16), CGNAT/Tailscale (100.64.0.0/10), and IPv6 ULA (fc00::/7). An\n\t// explicitly supplied list replaces those defaults with exactly the entries given,\n\t// and an empty list ([]) disables them so all traffic uses Kernel-managed egress;\n\t// omit private_hosts to keep the defaults. Entries are hostname patterns\n\t// (\"_.example.ts.net\", \"preview.internal\") or IP/CIDR literals (\"100.64.0.0/10\",\n\t// \"10.1.30.63\"). IP and CIDR entries only match URLs written with a literal IP\n\t// address; they never match hostnames that resolve into the range, so private DNS\n\t// names need a hostname entry even when they resolve inside the default ranges.\n\t// CIDRs must be in canonical masked form (host bits zero), and only the private\n\t// ranges listed above are accepted; public, loopback, link-local, and unspecified\n\t// ranges are rejected. Exact IPv6 addresses must be bracketed (\"[fd00::1]\"); IPv6\n\t// CIDR ranges are unbracketed (\"fd00::/8\"). Wildcards are limited to one leading\n\t// \"_.\" over a suffix with at least two labels that is not a public suffix (so\n\t// \"_.co.uk\" or \"_.ts.net\" are rejected, while \"\\*.example.ts.net\" is accepted).\n\t// Hostname and IP entries may carry a port; CIDR ranges may not. Hostname entries\n\t// are not resolved during validation, so callers must ensure they identify private\n\t// destinations. Not related to a proxy's bypass_hosts, which selects between\n\t// upstream-proxy and Kernel-managed direct egress and cannot reach into a VPN.\n\tPrivateHosts []string `json:\"private_hosts\"`\n\t// Per-destination proxy routes for a browser session. A destination hostname is\n\t// matched against every route's hosts, regardless of port; route order does not\n\t// matter. An exact hostname beats a wildcard, and a longer wildcard suffix beats a\n\t// shorter one (for a.b.example.com: \"a.b.example.com\" \u003e \"_.b.example.com\" \u003e\n\t// \"_.example.com\"). A host pattern may appear in only one route. \"\\*.example.com\"\n\t// matches subdomains only, not example.com. A matched request selects the route's\n\t// proxy instead of the session's top-level proxy (including mode: direct); the\n\t// route proxy's own bypass_hosts still apply. If the route proxy becomes\n\t// unavailable, matched requests fail closed without falling back. Requests that\n\t// match no route use the session's default egress from the top-level proxy field\n\t// (or the browser default when proxy is omitted: stealth proxy or direct egress).\n\t// Routes apply from the start of the session, including to start_url and other\n\t// traffic during browser setup. Setting routes requires proxy v3. Browser pools\n\t// also support these routes.\n\tProxyRoutes []BrowserNetworkConfigProxyRoute `json:\"proxy_routes\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAllowedHosts   respjson.Field\n\t\tAllowlistState respjson.Field\n\t\tPrivateHosts   respjson.Field\n\t\tProxyRoutes    respjson.Field\n\t\tExtraFields    map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nNetwork configuration for a browser session or browser pool.\n\n```go\nfunc (r BrowserNetworkConfig) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r BrowserNetworkConfig) ToParam() BrowserNetworkConfigParam\n```\nToParam converts this BrowserNetworkConfig to a BrowserNetworkConfigParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with BrowserNetworkConfigParam.Overrides()\n\n```go\nfunc (r *BrowserNetworkConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserNetworkConfigParam struct {\n\t// Egress allowlist for a browser session: the only destinations the browser may\n\t// reach through Kernel-managed egress. Any other destination is refused with a 403\n\t// whose X-Kernel-Proxy-Error header is network_policy_denied, so pages cannot load\n\t// or send data to unlisted hosts, including with fetch() and WebSockets. Omit the\n\t// field for unfiltered egress; an empty list is invalid. The allowlist applies\n\t// from the browser's first request, and start_url must be allowed by it. Entries\n\t// are exact hostnames (\"example.com\"), one leading \"_.\" wildcard that matches\n\t// subdomains at any depth but not the domain itself (\"_.example.com\" matches\n\t// api.example.com, not example.com), public IPv4 addresses (\"8.8.8.8\"), bracketed\n\t// public IPv6 addresses (\"[2001:4860:4860::8888]\"), or public CIDR ranges in\n\t// canonical form (\"8.8.4.0/24\", \"2001:4860::/32\"). IP and CIDR entries only match\n\t// destinations written as an IP address, never hostnames that resolve into the\n\t// range. Entries cannot include ports, paths, or schemes, and match every port on\n\t// their host. Wildcards over a public suffix (\"_.com\", \"_.github.io\") and private\n\t// or reserved IP ranges are rejected, as are entries that overlap private_hosts.\n\t// Enforced at Kernel's egress proxy only: destinations in private_hosts, and\n\t// processes in the browser VM that do not use the browser's proxy, are not\n\t// filtered, and Kernel's own control traffic is always allowed. Can be replaced or\n\t// removed while the session runs with PATCH /browsers/{id_or_name}, but not added\n\t// to a browser created without one. Supported on browser pools and their leased\n\t// browsers. Per-lease changes are reset to the pool's allowlist on release. If a\n\t// lessee removes the allowlist and the pool still requires one, the browser is\n\t// replaced on release rather than given an allowlist again. Requires proxy v3.\n\tAllowedHosts []string `json:\"allowed_hosts,omitzero\"`\n\t// Destinations the browser reaches directly through the session's own network\n\t// instead of through Kernel-managed egress — for private hosts reachable over a\n\t// VPN or tunnel the session has joined (e.g. a Tailscale tailnet). By default,\n\t// private IP ranges already route directly: RFC1918 (10.0.0.0/8, 172.16.0.0/12,\n\t// 192.168.0.0/16), CGNAT/Tailscale (100.64.0.0/10), and IPv6 ULA (fc00::/7). An\n\t// explicitly supplied list replaces those defaults with exactly the entries given,\n\t// and an empty list ([]) disables them so all traffic uses Kernel-managed egress;\n\t// omit private_hosts to keep the defaults. Entries are hostname patterns\n\t// (\"_.example.ts.net\", \"preview.internal\") or IP/CIDR literals (\"100.64.0.0/10\",\n\t// \"10.1.30.63\"). IP and CIDR entries only match URLs written with a literal IP\n\t// address; they never match hostnames that resolve into the range, so private DNS\n\t// names need a hostname entry even when they resolve inside the default ranges.\n\t// CIDRs must be in canonical masked form (host bits zero), and only the private\n\t// ranges listed above are accepted; public, loopback, link-local, and unspecified\n\t// ranges are rejected. Exact IPv6 addresses must be bracketed (\"[fd00::1]\"); IPv6\n\t// CIDR ranges are unbracketed (\"fd00::/8\"). Wildcards are limited to one leading\n\t// \"_.\" over a suffix with at least two labels that is not a public suffix (so\n\t// \"_.co.uk\" or \"_.ts.net\" are rejected, while \"\\*.example.ts.net\" is accepted).\n\t// Hostname and IP entries may carry a port; CIDR ranges may not. Hostname entries\n\t// are not resolved during validation, so callers must ensure they identify private\n\t// destinations. Not related to a proxy's bypass_hosts, which selects between\n\t// upstream-proxy and Kernel-managed direct egress and cannot reach into a VPN.\n\tPrivateHosts []string `json:\"private_hosts,omitzero\"`\n\t// Per-destination proxy routes for a browser session. A destination hostname is\n\t// matched against every route's hosts, regardless of port; route order does not\n\t// matter. An exact hostname beats a wildcard, and a longer wildcard suffix beats a\n\t// shorter one (for a.b.example.com: \"a.b.example.com\" \u003e \"_.b.example.com\" \u003e\n\t// \"_.example.com\"). A host pattern may appear in only one route. \"\\*.example.com\"\n\t// matches subdomains only, not example.com. A matched request selects the route's\n\t// proxy instead of the session's top-level proxy (including mode: direct); the\n\t// route proxy's own bypass_hosts still apply. If the route proxy becomes\n\t// unavailable, matched requests fail closed without falling back. Requests that\n\t// match no route use the session's default egress from the top-level proxy field\n\t// (or the browser default when proxy is omitted: stealth proxy or direct egress).\n\t// Routes apply from the start of the session, including to start_url and other\n\t// traffic during browser setup. Setting routes requires proxy v3. Browser pools\n\t// also support these routes.\n\tProxyRoutes []BrowserNetworkConfigProxyRouteParam `json:\"proxy_routes,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nNetwork configuration for a browser session or browser pool.\n\n```go\nfunc (r BrowserNetworkConfigParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserNetworkConfigParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserNetworkConfigProxyRoute struct {\n\t// Exact hostnames or leading \\*. wildcard patterns (subdomains only); patterns\n\t// cannot include ports, and matching ignores the destination port. Hosts not\n\t// matched by any route use the session's top-level proxy (or the browser default\n\t// when proxy is omitted).\n\tHosts []string `json:\"hosts\" api:\"required\"`\n\t// Select an active non-direct proxy by ID or name. Responses always use ID.\n\tProxy BrowserNetworkConfigProxyRouteProxy `json:\"proxy\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tHosts       respjson.Field\n\t\tProxy       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserNetworkConfigProxyRoute) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserNetworkConfigProxyRoute) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserNetworkConfigProxyRouteParam struct {\n\t// Exact hostnames or leading \\*. wildcard patterns (subdomains only); patterns\n\t// cannot include ports, and matching ignores the destination port. Hosts not\n\t// matched by any route use the session's top-level proxy (or the browser default\n\t// when proxy is omitted).\n\tHosts []string `json:\"hosts,omitzero\" api:\"required\"`\n\t// Select an active non-direct proxy by ID or name. Responses always use ID.\n\tProxy BrowserNetworkConfigProxyRouteProxyParam `json:\"proxy,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Hosts, Proxy are required.\n\n```go\nfunc (r BrowserNetworkConfigProxyRouteParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserNetworkConfigProxyRouteParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserNetworkConfigProxyRouteProxy struct {\n\tID   string `json:\"id\"`\n\tName string `json:\"name\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tName        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSelect an active non-direct proxy by ID or name. Responses always use ID.\n\n```go\nfunc (r BrowserNetworkConfigProxyRouteProxy) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserNetworkConfigProxyRouteProxy) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserNetworkConfigProxyRouteProxyParam struct {\n\tID   param.Opt[string] `json:\"id,omitzero\"`\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nSelect an active non-direct proxy by ID or name. Responses always use ID.\n\n```go\nfunc (r BrowserNetworkConfigProxyRouteProxyParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserNetworkConfigProxyRouteProxyParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserNetworkIdleEvent struct {\n\tCategory constant.Network `json:\"category\" default:\"network\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                `json:\"ts\" api:\"required\"`\n\tType constant.NetworkIdle `json:\"type\" default:\"network_idle\"`\n\t// Browser event context stamped by the browser monitor onto all CDP-sourced\n\t// events. Identifies the target, frame, and navigation epoch in which the event\n\t// occurred.\n\tData BrowserEventContext `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA browser network idle event emitted after a 500ms quiet period with no in-flight HTTP requests.\n\n```go\nfunc (r BrowserNetworkIdleEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserNetworkIdleEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserNetworkLoadingFailedEvent struct {\n\tCategory constant.Network `json:\"category\" default:\"network\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                         `json:\"ts\" api:\"required\"`\n\tType constant.NetworkLoadingFailed `json:\"type\" default:\"network_loading_failed\"`\n\t// Browser event context stamped by the browser monitor onto all CDP-sourced\n\t// events. Identifies the target, frame, and navigation epoch in which the event\n\t// occurred.\n\tData BrowserNetworkLoadingFailedEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA browser network loading failed event. If the request was already in flight when CDP attached (no prior network\\_request was emitted for it), url, frame\\_id, loader\\_id, and resource\\_type are absent; BrowserEventContext is partially populated in that case.\n\n```go\nfunc (r BrowserNetworkLoadingFailedEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserNetworkLoadingFailedEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserNetworkLoadingFailedEventData struct {\n\t// True if the request was canceled by the browser or page script.\n\tCanceled bool `json:\"canceled\"`\n\t// Network error description (e.g. net::ERR_CONNECTION_REFUSED).\n\tErrorText string `json:\"error_text\"`\n\t// CDP request identifier matching the originating network_request event.\n\tRequestID string `json:\"request_id\"`\n\t// CDP Network.ResourceType for the request, passed through as-is from Chrome.\n\t// Known values include Document, Fetch, XHR, Script, Stylesheet, Image, Media,\n\t// Font, TextTrack, EventSource, WebSocket, Manifest, Prefetch, Other, and more.\n\tResourceType string `json:\"resource_type\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCanceled     respjson.Field\n\t\tErrorText    respjson.Field\n\t\tRequestID    respjson.Field\n\t\tResourceType respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n\tBrowserEventContext\n}\n```\nBrowser event context stamped by the browser monitor onto all CDP-sourced events. Identifies the target, frame, and navigation epoch in which the event occurred.\n\n```go\nfunc (r BrowserNetworkLoadingFailedEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserNetworkLoadingFailedEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserNetworkRequestEvent struct {\n\tCategory constant.Network `json:\"category\" default:\"network\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                   `json:\"ts\" api:\"required\"`\n\tType constant.NetworkRequest `json:\"type\" default:\"network_request\"`\n\t// Browser event context stamped by the browser monitor onto all CDP-sourced\n\t// events. Identifies the target, frame, and navigation epoch in which the event\n\t// occurred.\n\tData BrowserNetworkRequestEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA browser network request sent event.\n\n```go\nfunc (r BrowserNetworkRequestEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserNetworkRequestEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserNetworkRequestEventData struct {\n\t// URL of the document that initiated the request.\n\tDocumentURL string `json:\"document_url\"`\n\t// Request headers.\n\tHeaders BrowserHTTPHeaders `json:\"headers\"`\n\t// CDP Initiator.type indicating what caused the request, passed through as-is from\n\t// Chrome. Known values include script, parser, preload, and other.\n\tInitiatorType string `json:\"initiator_type\"`\n\t// True if this request is the result of a redirect.\n\tIsRedirect bool `json:\"is_redirect\"`\n\t// HTTP method as sent on the wire (e.g. GET, POST).\n\tMethod string `json:\"method\"`\n\t// Request body for POST/PUT requests, if available.\n\tPostData string `json:\"post_data\"`\n\t// Original URL before the redirect, present when is_redirect is true.\n\tRedirectURL string `json:\"redirect_url\"`\n\t// CDP request identifier, unique within the session.\n\tRequestID string `json:\"request_id\"`\n\t// CDP Network.ResourceType for the request, passed through as-is from Chrome.\n\t// Known values include Document, Fetch, XHR, Script, Stylesheet, Image, Media,\n\t// Font, TextTrack, EventSource, WebSocket, Manifest, Prefetch, Other, and more.\n\tResourceType string `json:\"resource_type\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDocumentURL   respjson.Field\n\t\tHeaders       respjson.Field\n\t\tInitiatorType respjson.Field\n\t\tIsRedirect    respjson.Field\n\t\tMethod        respjson.Field\n\t\tPostData      respjson.Field\n\t\tRedirectURL   respjson.Field\n\t\tRequestID     respjson.Field\n\t\tResourceType  respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n\tBrowserEventContext\n}\n```\nBrowser event context stamped by the browser monitor onto all CDP-sourced events. Identifies the target, frame, and navigation epoch in which the event occurred.\n\n```go\nfunc (r BrowserNetworkRequestEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserNetworkRequestEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserNetworkResponseEvent struct {\n\tCategory constant.Network `json:\"category\" default:\"network\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                    `json:\"ts\" api:\"required\"`\n\tType constant.NetworkResponse `json:\"type\" default:\"network_response\"`\n\t// Browser event context stamped by the browser monitor onto all CDP-sourced\n\t// events. Identifies the target, frame, and navigation epoch in which the event\n\t// occurred.\n\tData BrowserNetworkResponseEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA browser network response received event. Fired after the response body is fully received, not when headers arrive.\n\n```go\nfunc (r BrowserNetworkResponseEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserNetworkResponseEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserNetworkResponseEventData struct {\n\t// Truncated response body, present only for text MIME types.\n\tBody string `json:\"body\"`\n\t// Response headers.\n\tHeaders BrowserHTTPHeaders `json:\"headers\"`\n\t// HTTP method of the original request.\n\tMethod string `json:\"method\"`\n\t// MIME type of the response (e.g. text/html, application/json).\n\tMimeType string `json:\"mime_type\"`\n\t// CDP request identifier matching the originating network_request event.\n\tRequestID string `json:\"request_id\"`\n\t// CDP Network.ResourceType for the request, passed through as-is from Chrome.\n\t// Known values include Document, Fetch, XHR, Script, Stylesheet, Image, Media,\n\t// Font, TextTrack, EventSource, WebSocket, Manifest, Prefetch, Other, and more.\n\tResourceType string `json:\"resource_type\"`\n\t// HTTP response status code.\n\tStatus int64 `json:\"status\"`\n\t// HTTP response status text (e.g. OK, Not Found).\n\tStatusText string `json:\"status_text\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBody         respjson.Field\n\t\tHeaders      respjson.Field\n\t\tMethod       respjson.Field\n\t\tMimeType     respjson.Field\n\t\tRequestID    respjson.Field\n\t\tResourceType respjson.Field\n\t\tStatus       respjson.Field\n\t\tStatusText   respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n\tBrowserEventContext\n}\n```\nBrowser event context stamped by the browser monitor onto all CDP-sourced events. Identifies the target, frame, and navigation epoch in which the event occurred.\n\n```go\nfunc (r BrowserNetworkResponseEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserNetworkResponseEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserNetworkUpdateParam struct {\n\t// The network.allowlist_state.revision from the browser's last saved snapshot.\n\t// Supply together with mutation_id to opt into conditional allowlist updates. The\n\t// revision is checked atomically with the configuration write. A stale request\n\t// returns 409 stale_network without changing the allowlist. A GET alone does not\n\t// fence an earlier unfinished PATCH.\n\tExpectedAllowlistRevision param.Opt[string] `json:\"expected_allowlist_revision,omitzero\"`\n\t// A unique ID for this allowlist update, supplied together with\n\t// expected_allowlist_revision. Reuse both values and the identical allowed_hosts\n\t// payload when retrying an uncertain update. If it is still the current mutation,\n\t// the retry finishes proxy and VM application without creating another revision. A\n\t// superseded mutation returns 409 stale_network. These fields guard only\n\t// network.allowed_hosts, not other browser update fields.\n\tMutationID param.Opt[string] `json:\"mutation_id,omitzero\"`\n\t// Replaces the session's egress allowlist, using the same entry rules as\n\t// network.allowed_hosts on create. Only an allowlist the browser was created with\n\t// can be changed: a browser created without one can't be given one, and an\n\t// allowlist removed with null can't be added back. Omit to leave the allowlist\n\t// unchanged, or set to null to remove it and return to unfiltered egress; an empty\n\t// list is invalid. The new list applies without restarting the browser: new\n\t// requests to destinations it no longer allows are refused within a few seconds,\n\t// and open connections to them are closed within about 30 seconds, or up to 10\n\t// minutes during a Kernel deploy. Connections to destinations it still allows,\n\t// such as WebSockets, stay open. A start_url in the same request must be allowed\n\t// by the updated list, and is loaded only after the list takes effect. Requires a\n\t// browser created with proxy v3. Supported on leased pooled browsers; the pool's\n\t// allowlist is restored before reuse, or the browser is destroyed if it cannot be\n\t// safely restored. If the request fails, retry it: the new list may already apply\n\t// to some requests.\n\tAllowedHosts []string `json:\"allowed_hosts,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nNetwork configuration changes for a running browser session. Other network settings can only be set at creation.\n\n```go\nfunc (r BrowserNetworkUpdateParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserNetworkUpdateParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserNewParams struct {\n\t// If true, enables GPU acceleration for the browser session. Requires Start-Up or\n\t// Enterprise plan, headless=false, and region=us-east.\n\tGPU param.Opt[bool] `json:\"gpu,omitzero\"`\n\t// If true, launches the browser using a headless image (no VNC/GUI). Defaults to\n\t// false.\n\tHeadless param.Opt[bool] `json:\"headless,omitzero\"`\n\t// action invocation ID\n\tInvocationID param.Opt[string] `json:\"invocation_id,omitzero\"`\n\t// If true, launches the browser in kiosk mode to hide address bar and tabs in live\n\t// view.\n\tKioskMode param.Opt[bool] `json:\"kiosk_mode,omitzero\"`\n\t// Optional human-readable name for the browser session, used to find it later in\n\t// the dashboard. Must be unique among active sessions within the project. Can be\n\t// changed later via PATCH /browsers/{id_or_name}.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// Optional proxy to associate to the browser session. Must reference a proxy in\n\t// the same project as the browser session. Deprecated in favor of proxy.\n\tProxyID param.Opt[string] `json:\"proxy_id,omitzero\"`\n\t// Seconds the browser waits after its last connection (CDP, WebDriver, or live\n\t// view) closes before entering standby. A shorter value reduces billed idle time\n\t// for bursty workloads; a longer value keeps the browser awake between closely\n\t// spaced connections. Defaults to the platform default when omitted. Minimum\n\t// allowed is 3 seconds. Maximum allowed is 300 seconds. Not supported with\n\t// gpu=true or on macOS. Can be changed later via PATCH /browsers/{id_or_name}.\n\tStandbyIdleTimeoutSeconds param.Opt[int64] `json:\"standby_idle_timeout_seconds,omitzero\"`\n\t// Start replay recording as part of creating this browser session.\n\tStartReplay param.Opt[bool] `json:\"start_replay,omitzero\"`\n\t// Optional URL to open when the browser session is created. Navigation is\n\t// best-effort, so navigation failures do not prevent the session from being\n\t// created.\n\tStartURL param.Opt[string] `json:\"start_url,omitzero\"`\n\t// If true, enables the CAPTCHA solver and, when proxy is omitted, uses Kernel's\n\t// default stealth proxy. Defaults to false. Equivalent to\n\t// captcha_solver.enabled=true with proxy.mode=default. Cannot be combined with\n\t// captcha_solver.enabled=false. Deprecated in favor of captcha_solver and proxy.\n\tStealth param.Opt[bool] `json:\"stealth,omitzero\"`\n\t// The number of seconds of inactivity before the browser session is terminated.\n\t// Activity includes CDP connections and live view connections. Defaults to 60\n\t// seconds. Minimum allowed is 10 seconds. Maximum allowed is 259200 (72 hours). We\n\t// check for inactivity every 5 seconds, so the actual timeout behavior you will\n\t// see is +/- 5 seconds around the specified value.\n\tTimeoutSeconds param.Opt[int64] `json:\"timeout_seconds,omitzero\"`\n\t// Telemetry configuration for the browser session. Set enabled to true to start\n\t// capture using VM defaults, or provide browser category settings. If omitted,\n\t// null, set to an empty object ({}), set to enabled: false without browser\n\t// category settings, or all four categories are explicitly disabled, capture is\n\t// not started.\n\tTelemetry BrowserNewParamsTelemetry `json:\"telemetry,omitzero\"`\n\t// Lower the browser's network bandwidth limits. Omit to use the default limits.\n\t// Can be changed later with PATCH /browsers/{id_or_name}. Not supported on macOS\n\t// browsers. The limits are not returned in browser responses.\n\tBandwidth BrowserBandwidthParam `json:\"bandwidth,omitzero\"`\n\t// Automatic CAPTCHA solving. Disabled by default. Enabling it does not select a\n\t// proxy: when proxy is omitted, the browser uses direct egress unless\n\t// stealth=true.\n\tCaptchaSolver BrowserCaptchaSolverParam `json:\"captcha_solver,omitzero\"`\n\t// Custom Chrome enterprise policy overrides applied to this browser session. Keys\n\t// are Chrome enterprise policy names; values must match their expected types.\n\t// Blocked: kernel-managed policies (extensions, proxy, CDP/automation). See\n\t// https://chromeenterprise.google/policies/\n\tChromePolicy map[string]any `json:\"chrome_policy,omitzero\"`\n\t// List of browser extensions to load into the session. Provide each by id or name.\n\tExtensions []shared.BrowserExtensionParam `json:\"extensions,omitzero\"`\n\t// Closed beta: contact Kernel to enable fingerprint overrides for your\n\t// organization. Overrides browser attributes presented to websites for this\n\t// session. Supports linux and macos and requires captcha_solver.enabled=true,\n\t// headless=false, gpu=false, and default memory. Omit to preserve the default\n\t// browser behavior.\n\tFingerprint BrowserFingerprintParam `json:\"fingerprint,omitzero\"`\n\t// Optional session-only timezone and locale overrides. Each omitted field uses the\n\t// default for the browser's region. start_url opens once the location applies.\n\tLocation BrowserLocationRequestParam `json:\"location,omitzero\"`\n\t// Memory for a non-GPU browser. Headless: 1GiB (default), 2GiB, or 4GiB. Headful:\n\t// 8GiB (default) or 16GiB.\n\t//\n\t// Any of \"1GiB\", \"2GiB\", \"4GiB\", \"8GiB\", \"16GiB\".\n\tMemory BrowserMemoryRequest `json:\"memory,omitzero\"`\n\t// Network configuration for the browser session. Only allowed_hosts can be changed\n\t// after creation, with PATCH /browsers/{id_or_name}.\n\tNetwork BrowserNetworkConfigParam `json:\"network,omitzero\"`\n\t// Host platform for the browser. Omit it, or set `os` to `linux`, for a Linux\n\t// browser. This is the operating system the browser runs on; `fingerprint.os` only\n\t// changes what a Linux browser reports to websites. macOS browsers require an\n\t// active paid Start-Up or Enterprise plan; other plans get 403\n\t// `insufficient_plan`. macOS browsers are headful and run only in `us-east`.\n\t// Requests can return 503 `platform_unavailable` when no macOS capacity is\n\t// configured. A macOS request that sets `headless: true`, `memory`, `gpu`,\n\t// `video_memory`, `profile`, `fingerprint`, `bandwidth`,\n\t// `standby_idle_timeout_seconds`, or a region other than `us-east` returns 400\n\t// `unsupported_configuration`, listing those fields in `unsupported_fields`.\n\t// Browser locale and timezone overrides do not change placement.\n\tPlatform BrowserPlatformParam `json:\"platform,omitzero\"`\n\t// Profile selection for the browser session. Provide either id or name. If\n\t// specified, the matching profile will be loaded into the browser session.\n\t// Profiles must be created beforehand.\n\tProfile shared.BrowserProfileParam `json:\"profile,omitzero\"`\n\t// Proxy configuration for the browser session. Cannot be combined with proxy_id.\n\t// Omit to use direct egress, or Kernel's default stealth proxy when stealth=true.\n\t// Set mode to direct to force direct egress. Set mode to default to use Kernel's\n\t// default stealth proxy when captcha_solver.enabled=true, or direct egress\n\t// otherwise. Select id or name to use that proxy. Proxy selection does not change\n\t// CAPTCHA solver behavior.\n\tProxy BrowserProxyConfigParam `json:\"proxy,omitzero\"`\n\t// Geographic region for the browser session. It is fixed once the session is\n\t// created. Region selection requires a Start-Up or Enterprise plan, defaults to\n\t// us-east when omitted on create.\n\t//\n\t// Any of \"us-east\", \"us-west\", \"eu-west\", \"ap-southeast\".\n\tRegion BrowserNewParamsRegion `json:\"region,omitzero\"`\n\t// Optional user-defined key-value tags for the browser session, used to find and\n\t// group sessions later. Can be changed later via PATCH /browsers/{id_or_name}. Up\n\t// to 50 pairs.\n\tTags Tags `json:\"tags,omitzero\"`\n\t// Project-scoped vaults to link to the browser session. Links are immutable after\n\t// creation.\n\tVaults []VaultReferenceParam `json:\"vaults,omitzero\"`\n\t// Video memory (VRAM) for a GPU browser session. Requires gpu=true. Defaults to\n\t// 3GiB, which comes with 4 vCPU and 6GiB memory. 6GiB comes with 8 vCPU and 12GiB\n\t// memory. 2GiB and 4GiB are deprecated aliases for 3GiB and 6GiB.\n\t//\n\t// Any of \"3GiB\", \"6GiB\", \"2GiB\", \"4GiB\".\n\tVideoMemory BrowserVideoMemory `json:\"video_memory,omitzero\"`\n\t// Initial browser window size in pixels with optional refresh rate. If omitted,\n\t// image defaults apply (1920x1080@25). For GPU images, the default is\n\t// 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.\n\t// Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,\n\t// 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For\n\t// GPU images, recommended presets use one of these resolutions with refresh rates\n\t// 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,\n\t// 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,\n\t// 768x1024, 800x1600. Viewports outside this list may exhibit unstable live view\n\t// or recording behavior. If refresh_rate is not provided, it will be automatically\n\t// determined based on the resolution (higher resolutions use lower refresh rates\n\t// to keep bandwidth reasonable).\n\tViewport shared.BrowserViewportParam `json:\"viewport,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserNewParamsRegion string\n```\nGeographic region for the browser session. It is fixed once the session is created. Region selection requires a Start-Up or Enterprise plan, defaults to us-east when omitted on create.\n\n```go\nconst (\n\tBrowserNewParamsRegionUsEast      BrowserNewParamsRegion = \"us-east\"\n\tBrowserNewParamsRegionUsWest      BrowserNewParamsRegion = \"us-west\"\n\tBrowserNewParamsRegionEuWest      BrowserNewParamsRegion = \"eu-west\"\n\tBrowserNewParamsRegionApSoutheast BrowserNewParamsRegion = \"ap-southeast\"\n)\n```\n\n```go\ntype BrowserNewParamsTelemetry struct {\n\t// Request shortcut for browser telemetry capture. True enables capture; with no\n\t// browser category settings it captures the default set (control, connection,\n\t// system, captcha), and any browser category settings are layered onto that\n\t// default set. On update, enabled=true resolves the config fresh from the default\n\t// set plus any provided categories, replacing the session's current selection\n\t// rather than merging onto it; omit enabled to merge categories onto the current\n\t// selection instead. False stops capture on update and starts no capture on\n\t// create. enabled=false cannot be combined with browser category settings.\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// Per-category capture flags. The operational categories (control, connection,\n\t// system, captcha) are captured whenever telemetry is enabled; set one to\n\t// enabled=false to opt out. The CDP categories (console, network, page,\n\t// interaction), screenshot and platform are off by default; set enabled=true to\n\t// opt in. On create, provided categories layer onto the default set. On update,\n\t// provided categories merge onto the session's current config; when no telemetry\n\t// is active this falls back to the default set (matching create). If browser is\n\t// omitted or empty, the default set is used. A browser config that disables every\n\t// category stops capture on update and starts no capture on create.\n\tBrowser BrowserTelemetryCategoriesConfigParam `json:\"browser,omitzero\"`\n\t// Where to export this session's captured telemetry. Omit to capture without\n\t// exporting.\n\tExport BrowserNewParamsTelemetryExport `json:\"export,omitzero\"`\n\t// Whether to persist this session's captured telemetry to Kernel storage.\n\tStorage BrowserNewParamsTelemetryStorage `json:\"storage,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nTelemetry configuration for the browser session. Set enabled to true to start capture using VM defaults, or provide browser category settings. If omitted, null, set to an empty object ({}), set to enabled: false without browser category settings, or all four categories are explicitly disabled, capture is not started.\n\n```go\nfunc (r BrowserNewParamsTelemetry) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserNewParamsTelemetry) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserNewParamsTelemetryExport struct {\n\t// Export captured telemetry over OTLP to one of the org's configured destinations.\n\tOtlp BrowserNewParamsTelemetryExportOtlp `json:\"otlp,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nWhere to export this session's captured telemetry. Omit to capture without exporting.\n\n```go\nfunc (r BrowserNewParamsTelemetryExport) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserNewParamsTelemetryExport) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserNewParamsTelemetryExportOtlp struct {\n\t// Whether to export captured telemetry over OTLP. Setting destination implies\n\t// enabled=true, so this only needs to be set explicitly to disable export\n\t// (enabled=false with a destination is rejected).\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// OTLP destination to export this session's captured telemetry to. Provide either\n\t// id or name. Requires telemetry capture to be enabled.\n\tDestination BrowserNewParamsTelemetryExportOtlpDestination `json:\"destination,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nExport captured telemetry over OTLP to one of the org's configured destinations.\n\n```go\nfunc (r BrowserNewParamsTelemetryExportOtlp) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserNewParamsTelemetryExportOtlp) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserNewParamsTelemetryExportOtlpDestination struct {\n\t// OTLP destination ID\n\tID param.Opt[string] `json:\"id,omitzero\"`\n\t// OTLP destination name\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nOTLP destination to export this session's captured telemetry to. Provide either id or name. Requires telemetry capture to be enabled.\n\n```go\nfunc (r BrowserNewParamsTelemetryExportOtlpDestination) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserNewParamsTelemetryExportOtlpDestination) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserNewParamsTelemetryStorage struct {\n\t// Whether captured telemetry is persisted to Kernel storage. Defaults to true.\n\t// Setting false requires an OTLP destination and cannot be changed after the\n\t// browser is created.\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nWhether to persist this session's captured telemetry to Kernel storage.\n\n```go\nfunc (r BrowserNewParamsTelemetryStorage) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserNewParamsTelemetryStorage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserNewResponse struct {\n\t// Automatic CAPTCHA solving configuration.\n\tCaptchaSolver BrowserCaptchaSolver `json:\"captcha_solver\" api:\"required\"`\n\t// Websocket URL for Chrome DevTools Protocol connections to the browser session\n\tCdpWsURL string `json:\"cdp_ws_url\" api:\"required\"`\n\t// When the browser session was created.\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Whether the browser session is running in headless mode.\n\tHeadless bool `json:\"headless\" api:\"required\"`\n\t// Memory allocated to the browser session.\n\t//\n\t// Any of \"1GiB\", \"2GiB\", \"4GiB\", \"6GiB\", \"8GiB\", \"12GiB\", \"16GiB\".\n\tMemory BrowserMemory `json:\"memory\" api:\"required\"`\n\t// Geographic region of the browser session. Fixed once the session is created.\n\t//\n\t// Any of \"us-east\", \"us-west\", \"eu-west\", \"ap-southeast\".\n\tRegion BrowserNewResponseRegion `json:\"region\" api:\"required\"`\n\t// Unique identifier for the browser session\n\tSessionID string `json:\"session_id\" api:\"required\"`\n\t// Whether the browser session has CAPTCHA solving enabled, in which case\n\t// proxy.mode=default uses Kernel's default stealth proxy. A browser created with\n\t// only captcha_solver reports true with proxy.mode=direct. Deprecated in favor of\n\t// captcha_solver and proxy.\n\t//\n\t// Deprecated: deprecated\n\tStealth bool `json:\"stealth\" api:\"required\"`\n\t// The number of seconds of inactivity before the browser session is terminated.\n\tTimeoutSeconds int64 `json:\"timeout_seconds\" api:\"required\"`\n\t// Websocket URL for WebDriver BiDi connections to the browser session\n\tWebdriverWsURL string `json:\"webdriver_ws_url\" api:\"required\"`\n\t// Metro-API HTTP base URL for this browser session.\n\tBaseURL string `json:\"base_url\"`\n\t// Remote URL for live viewing the browser session. Only available for non-headless\n\t// browsers.\n\tBrowserLiveViewURL string `json:\"browser_live_view_url\"`\n\t// Custom Chrome enterprise policy overrides that were applied to this browser\n\t// session, if any. Echoed back for verification. Keys are Chrome enterprise policy\n\t// names.\n\tChromePolicy map[string]any `json:\"chrome_policy\"`\n\t// Provisional browser-session usage cost. Present only on GET detail responses\n\t// requested with include_cost=true; omitted otherwise and from list and other\n\t// browser responses.\n\tCost BrowserCost `json:\"cost\"`\n\t// When the browser session was soft-deleted. Only present for deleted sessions.\n\tDeletedAt time.Time `json:\"deleted_at\" format:\"date-time\"`\n\t// Fingerprint applied to this browser session. Omitted when the session was\n\t// created without one.\n\tFingerprint BrowserFingerprint `json:\"fingerprint\"`\n\t// Whether GPU acceleration is enabled for the browser session (only supported for\n\t// headful sessions).\n\tGPU bool `json:\"gpu\"`\n\t// Whether the browser session is running in kiosk mode.\n\tKioskMode bool `json:\"kiosk_mode\"`\n\t// When the pooled browser session was last leased. Only present for leased pooled\n\t// sessions.\n\tLeasedAt time.Time `json:\"leased_at\" format:\"date-time\"`\n\t// Effective browser timezone and locale with per-field provenance.\n\tLocation BrowserLocation `json:\"location\"`\n\t// Human-readable name of the browser session, if one was set at creation.\n\tName string `json:\"name\"`\n\t// Network configuration the session was created with, if any. Omitted when the\n\t// session has no network configuration.\n\tNetwork BrowserNetworkConfig `json:\"network\"`\n\t// Host platform for the browser session. Absent means linux.\n\tPlatform BrowserPlatform `json:\"platform\"`\n\t// Browser pool this session was acquired from, if any.\n\tPool BrowserPoolRef `json:\"pool\"`\n\t// Browser profile metadata.\n\tProfile Profile `json:\"profile\"`\n\t// Whether changes made during this browser session are saved back to its profile\n\t// when the session ends. Omitted when no profile is attached.\n\tProfileSaveChanges bool `json:\"profile_save_changes\"`\n\t// Resolved proxy configuration for this browser session.\n\tProxy BrowserProxy `json:\"proxy\"`\n\t// ID of the proxy associated with this browser session, if any. Deprecated in\n\t// favor of proxy.\n\t//\n\t// Deprecated: deprecated\n\tProxyID string `json:\"proxy_id\"`\n\t// Replay recording started by `start_replay` when this browser was created or\n\t// acquired. Omitted otherwise; list replays with\n\t// `GET /browsers/{id_or_name}/replays`.\n\tReplay BrowserNewResponseReplay `json:\"replay\"`\n\t// Seconds the browser waits after its last connection closes before entering\n\t// standby. Omitted when the browser uses the platform default.\n\tStandbyIdleTimeoutSeconds int64 `json:\"standby_idle_timeout_seconds\"`\n\t// URL the session was most recently asked to navigate to, if any. Recorded for\n\t// debugging. Navigation is fire-and-forget — the URL is dispatched to the browser\n\t// without waiting for it to load, and any errors (DNS failure, bad status,\n\t// timeout) are silently dropped. Captures what was requested, not what the browser\n\t// actually loaded.\n\tStartURL string `json:\"start_url\"`\n\t// User-defined key-value tags that were set on this browser session, if any.\n\t// Echoed back when present.\n\tTags Tags `json:\"tags\"`\n\t// Active telemetry configuration for the session, if any.\n\tTelemetry BrowserTelemetryConfig `json:\"telemetry\" api:\"nullable\"`\n\t// Session usage metrics.\n\tUsage BrowserUsage `json:\"usage\"`\n\t// Whether final usage billing is still pending or complete. Only present for\n\t// deleted sessions.\n\t//\n\t// Any of \"pending\", \"ready\".\n\tUsageStatus BrowserNewResponseUsageStatus `json:\"usage_status\"`\n\t// Vaults linked when the browser session was created.\n\tVaults []VaultReference `json:\"vaults\"`\n\t// Video memory (VRAM) of the GPU browser session. Only present when gpu is true.\n\t//\n\t// Any of \"3GiB\", \"6GiB\", \"2GiB\", \"4GiB\".\n\tVideoMemory BrowserVideoMemory `json:\"video_memory\"`\n\t// Initial browser window size in pixels with optional refresh rate. If omitted,\n\t// image defaults apply (1920x1080@25). For GPU images, the default is\n\t// 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.\n\t// Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,\n\t// 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For\n\t// GPU images, recommended presets use one of these resolutions with refresh rates\n\t// 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,\n\t// 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,\n\t// 768x1024, 800x1600. Viewports outside this list may exhibit unstable live view\n\t// or recording behavior. If refresh_rate is not provided, it will be automatically\n\t// determined based on the resolution (higher resolutions use lower refresh rates\n\t// to keep bandwidth reasonable).\n\tViewport shared.BrowserViewport `json:\"viewport\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCaptchaSolver             respjson.Field\n\t\tCdpWsURL                  respjson.Field\n\t\tCreatedAt                 respjson.Field\n\t\tHeadless                  respjson.Field\n\t\tMemory                    respjson.Field\n\t\tRegion                    respjson.Field\n\t\tSessionID                 respjson.Field\n\t\tStealth                   respjson.Field\n\t\tTimeoutSeconds            respjson.Field\n\t\tWebdriverWsURL            respjson.Field\n\t\tBaseURL                   respjson.Field\n\t\tBrowserLiveViewURL        respjson.Field\n\t\tChromePolicy              respjson.Field\n\t\tCost                      respjson.Field\n\t\tDeletedAt                 respjson.Field\n\t\tFingerprint               respjson.Field\n\t\tGPU                       respjson.Field\n\t\tKioskMode                 respjson.Field\n\t\tLeasedAt                  respjson.Field\n\t\tLocation                  respjson.Field\n\t\tName                      respjson.Field\n\t\tNetwork                   respjson.Field\n\t\tPlatform                  respjson.Field\n\t\tPool                      respjson.Field\n\t\tProfile                   respjson.Field\n\t\tProfileSaveChanges        respjson.Field\n\t\tProxy                     respjson.Field\n\t\tProxyID                   respjson.Field\n\t\tReplay                    respjson.Field\n\t\tStandbyIdleTimeoutSeconds respjson.Field\n\t\tStartURL                  respjson.Field\n\t\tTags                      respjson.Field\n\t\tTelemetry                 respjson.Field\n\t\tUsage                     respjson.Field\n\t\tUsageStatus               respjson.Field\n\t\tVaults                    respjson.Field\n\t\tVideoMemory               respjson.Field\n\t\tViewport                  respjson.Field\n\t\tExtraFields               map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserNewResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserNewResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserNewResponseRegion string\n```\nGeographic region of the browser session. Fixed once the session is created.\n\n```go\nconst (\n\tBrowserNewResponseRegionUsEast      BrowserNewResponseRegion = \"us-east\"\n\tBrowserNewResponseRegionUsWest      BrowserNewResponseRegion = \"us-west\"\n\tBrowserNewResponseRegionEuWest      BrowserNewResponseRegion = \"eu-west\"\n\tBrowserNewResponseRegionApSoutheast BrowserNewResponseRegion = \"ap-southeast\"\n)\n```\n\n```go\ntype BrowserNewResponseReplay struct {\n\t// Unique identifier for the replay recording.\n\tReplayID string `json:\"replay_id\" api:\"required\"`\n\t// Timestamp when replay finished\n\tFinishedAt time.Time `json:\"finished_at\" api:\"nullable\" format:\"date-time\"`\n\t// URL for viewing the replay recording.\n\tReplayViewURL string `json:\"replay_view_url\"`\n\t// Timestamp when replay started\n\tStartedAt time.Time `json:\"started_at\" api:\"nullable\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tReplayID      respjson.Field\n\t\tFinishedAt    respjson.Field\n\t\tReplayViewURL respjson.Field\n\t\tStartedAt     respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nReplay recording started by \\`start\\_replay\\` when this browser was created or acquired. Omitted otherwise; list replays with \\`GET /browsers/{id\\_or\\_name}/replays\\`.\n\n```go\nfunc (r BrowserNewResponseReplay) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserNewResponseReplay) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserNewResponseUsageStatus string\n```\nWhether final usage billing is still pending or complete. Only present for deleted sessions.\n\n```go\nconst (\n\tBrowserNewResponseUsageStatusPending BrowserNewResponseUsageStatus = \"pending\"\n\tBrowserNewResponseUsageStatusReady   BrowserNewResponseUsageStatus = \"ready\"\n)\n```\n\n```go\ntype BrowserOs string\n```\nOperating system of the browser's host.\n\n```go\nconst (\n\tBrowserOsLinux BrowserOs = \"linux\"\n\tBrowserOsMacos BrowserOs = \"macos\"\n)\n```\n\n```go\ntype BrowserPageCrashedEvent struct {\n\tCategory constant.Page `json:\"category\" default:\"page\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                       `json:\"ts\" api:\"required\"`\n\tType constant.PageCrashed        `json:\"type\" default:\"page_crashed\"`\n\tData BrowserPageCrashedEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA page's renderer process crashed (an \"Aw, Snap!\" failure) while the browser process itself stayed alive. Reported on the crashed page's session, with the session and target ids on \\`source.metadata\\`. Captured only while the \\`page\\` category is enabled.\n\n```go\nfunc (r BrowserPageCrashedEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserPageCrashedEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPageCrashedEventData struct {\n\t// CDP target identifier of the crashed page.\n\tTargetID string `json:\"target_id\" api:\"required\"`\n\t// CDP target type of the page that produced the event.\n\t//\n\t// Any of \"page\", \"iframe\", \"worker\", \"background_page\", \"service_worker\",\n\t// \"shared_worker\", \"other\".\n\tTargetType string `json:\"target_type\" api:\"required\"`\n\t// URL the page was on when its renderer process crashed.\n\tURL string `json:\"url\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tTargetID    respjson.Field\n\t\tTargetType  respjson.Field\n\t\tURL         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserPageCrashedEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserPageCrashedEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPageDomContentLoadedEvent struct {\n\tCategory constant.Page `json:\"category\" default:\"page\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                         `json:\"ts\" api:\"required\"`\n\tType constant.PageDomContentLoaded `json:\"type\" default:\"page_dom_content_loaded\"`\n\t// Browser event context stamped by the browser monitor onto all CDP-sourced\n\t// events. Identifies the target, frame, and navigation epoch in which the event\n\t// occurred.\n\tData BrowserPageDomContentLoadedEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA browser DOMContentLoaded event (CDP Page.domContentEventFired).\n\n```go\nfunc (r BrowserPageDomContentLoadedEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserPageDomContentLoadedEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPageDomContentLoadedEventData struct {\n\t// Chrome monotonic clock value in seconds at which DOMContentLoaded fired,\n\t// relative to browser process start (not Unix epoch). Use ts for wall-clock time.\n\tCdpTimestamp float64 `json:\"cdp_timestamp\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCdpTimestamp respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n\tBrowserEventContext\n}\n```\nBrowser event context stamped by the browser monitor onto all CDP-sourced events. Identifies the target, frame, and navigation epoch in which the event occurred.\n\n```go\nfunc (r BrowserPageDomContentLoadedEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserPageDomContentLoadedEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPageLayoutSettledEvent struct {\n\tCategory constant.Page `json:\"category\" default:\"page\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                      `json:\"ts\" api:\"required\"`\n\tType constant.PageLayoutSettled `json:\"type\" default:\"page_layout_settled\"`\n\t// Browser event context stamped by the browser monitor onto all CDP-sourced\n\t// events. Identifies the target, frame, and navigation epoch in which the event\n\t// occurred.\n\tData BrowserEventContext `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA browser layout settled event emitted 1 second after page load with no intervening layout shifts, indicating visual stability. Each layout shift resets the 1-second timer.\n\n```go\nfunc (r BrowserPageLayoutSettledEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserPageLayoutSettledEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPageLayoutShiftEvent struct {\n\tCategory constant.Page `json:\"category\" default:\"page\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                    `json:\"ts\" api:\"required\"`\n\tType constant.PageLayoutShift `json:\"type\" default:\"page_layout_shift\"`\n\t// Browser event context stamped by the browser monitor onto all CDP-sourced\n\t// events. Identifies the target, frame, and navigation epoch in which the event\n\t// occurred.\n\tData BrowserPageLayoutShiftEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA browser cumulative layout shift (CLS) event from the Performance Timeline API.\n\n```go\nfunc (r BrowserPageLayoutShiftEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserPageLayoutShiftEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPageLayoutShiftEventData struct {\n\t// Duration of the layout shift entry in milliseconds (always 0 for layout shifts\n\t// per spec).\n\tDuration float64 `json:\"duration\"`\n\t// PerformanceLayoutShift attributes from the Performance Timeline entry.\n\tLayoutShiftDetails BrowserPageLayoutShiftEventDataLayoutShiftDetails `json:\"layout_shift_details\"`\n\t// CDP frame identifier of the frame where the layout shift occurred.\n\tSourceFrameID string `json:\"source_frame_id\"`\n\t// Performance Timeline timestamp of the layout shift in milliseconds.\n\tTime float64 `json:\"time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDuration           respjson.Field\n\t\tLayoutShiftDetails respjson.Field\n\t\tSourceFrameID      respjson.Field\n\t\tTime               respjson.Field\n\t\tExtraFields        map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n\tBrowserEventContext\n}\n```\nBrowser event context stamped by the browser monitor onto all CDP-sourced events. Identifies the target, frame, and navigation epoch in which the event occurred.\n\n```go\nfunc (r BrowserPageLayoutShiftEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserPageLayoutShiftEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPageLayoutShiftEventDataLayoutShiftDetails struct {\n\t// True if the layout shift was preceded by user input within 500ms, excluding it\n\t// from CLS.\n\tHadRecentInput bool `json:\"had_recent_input\"`\n\t// Layout shift score for this entry (contribution to CLS).\n\tValue float64 `json:\"value\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tHadRecentInput respjson.Field\n\t\tValue          respjson.Field\n\t\tExtraFields    map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPerformanceLayoutShift attributes from the Performance Timeline entry.\n\n```go\nfunc (r BrowserPageLayoutShiftEventDataLayoutShiftDetails) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserPageLayoutShiftEventDataLayoutShiftDetails) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPageLcpEvent struct {\n\tCategory constant.Page `json:\"category\" default:\"page\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64            `json:\"ts\" api:\"required\"`\n\tType constant.PageLcp `json:\"type\" default:\"page_lcp\"`\n\t// Browser event context stamped by the browser monitor onto all CDP-sourced\n\t// events. Identifies the target, frame, and navigation epoch in which the event\n\t// occurred.\n\tData BrowserPageLcpEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA browser Largest Contentful Paint (LCP) event from the Performance Timeline API.\n\n```go\nfunc (r BrowserPageLcpEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserPageLcpEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPageLcpEventData struct {\n\t// LargestContentfulPaint attributes from the Performance Timeline entry.\n\tLcpDetails BrowserPageLcpEventDataLcpDetails `json:\"lcp_details\"`\n\t// CDP frame identifier of the frame where the LCP element was rendered.\n\tSourceFrameID string `json:\"source_frame_id\"`\n\t// Performance Timeline timestamp of the LCP entry in milliseconds.\n\tTime float64 `json:\"time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tLcpDetails    respjson.Field\n\t\tSourceFrameID respjson.Field\n\t\tTime          respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n\tBrowserEventContext\n}\n```\nBrowser event context stamped by the browser monitor onto all CDP-sourced events. Identifies the target, frame, and navigation epoch in which the event occurred.\n\n```go\nfunc (r BrowserPageLcpEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserPageLcpEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPageLcpEventDataLcpDetails struct {\n\t// id attribute of the LCP element, if present.\n\tElementID string `json:\"element_id\"`\n\t// Load time of the LCP element in milliseconds.\n\tLoadTime float64 `json:\"load_time\"`\n\t// CDP DOM node identifier of the LCP element.\n\tNodeID int64 `json:\"node_id\"`\n\t// Render time of the LCP element in milliseconds; 0 for cross-origin images\n\t// without Timing-Allow-Origin.\n\tRenderTime float64 `json:\"render_time\"`\n\t// Visible area of the LCP element in pixels squared.\n\tSize float64 `json:\"size\"`\n\t// URL of the LCP element for image or video elements.\n\tURL string `json:\"url\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tElementID   respjson.Field\n\t\tLoadTime    respjson.Field\n\t\tNodeID      respjson.Field\n\t\tRenderTime  respjson.Field\n\t\tSize        respjson.Field\n\t\tURL         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nLargestContentfulPaint attributes from the Performance Timeline entry.\n\n```go\nfunc (r BrowserPageLcpEventDataLcpDetails) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserPageLcpEventDataLcpDetails) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPageLoadEvent struct {\n\tCategory constant.Page `json:\"category\" default:\"page\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64             `json:\"ts\" api:\"required\"`\n\tType constant.PageLoad `json:\"type\" default:\"page_load\"`\n\t// Browser event context stamped by the browser monitor onto all CDP-sourced\n\t// events. Identifies the target, frame, and navigation epoch in which the event\n\t// occurred.\n\tData BrowserPageLoadEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA browser page load event (CDP Page.loadEventFired).\n\n```go\nfunc (r BrowserPageLoadEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserPageLoadEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPageLoadEventData struct {\n\t// Chrome monotonic clock value in seconds at which the load event fired, relative\n\t// to browser process start (not Unix epoch). Use ts for wall-clock time.\n\tCdpTimestamp float64 `json:\"cdp_timestamp\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCdpTimestamp respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n\tBrowserEventContext\n}\n```\nBrowser event context stamped by the browser monitor onto all CDP-sourced events. Identifies the target, frame, and navigation epoch in which the event occurred.\n\n```go\nfunc (r BrowserPageLoadEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserPageLoadEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPageNavigationEvent struct {\n\tCategory constant.Page `json:\"category\" default:\"page\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                          `json:\"ts\" api:\"required\"`\n\tType constant.PageNavigation        `json:\"type\" default:\"page_navigation\"`\n\tData BrowserPageNavigationEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA browser page navigation started event (CDP Page.frameNavigated). Carries nav context fields inline but not nav\\_seq, as this event resets the navigation epoch.\n\n```go\nfunc (r BrowserPageNavigationEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserPageNavigationEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPageNavigationEventData struct {\n\t// CDP frame identifier of the navigated frame.\n\tFrameID string `json:\"frame_id\"`\n\t// New CDP document loader identifier assigned for this navigation.\n\tLoaderID string `json:\"loader_id\"`\n\t// Parent frame identifier for subframe navigations; absent for top-level\n\t// navigations.\n\tParentFrameID string `json:\"parent_frame_id\"`\n\t// CDP session identifier.\n\tSessionID string `json:\"session_id\"`\n\t// Browser target identifier.\n\tTargetID string `json:\"target_id\"`\n\t// CDP target type of the page that produced the event.\n\t//\n\t// Any of \"page\", \"iframe\", \"worker\", \"background_page\", \"service_worker\",\n\t// \"shared_worker\", \"other\".\n\tTargetType string `json:\"target_type\"`\n\t// URL navigated to.\n\tURL string `json:\"url\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tFrameID       respjson.Field\n\t\tLoaderID      respjson.Field\n\t\tParentFrameID respjson.Field\n\t\tSessionID     respjson.Field\n\t\tTargetID      respjson.Field\n\t\tTargetType    respjson.Field\n\t\tURL           respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserPageNavigationEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserPageNavigationEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPageNavigationSettledEvent struct {\n\tCategory constant.Page `json:\"category\" default:\"page\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                          `json:\"ts\" api:\"required\"`\n\tType constant.PageNavigationSettled `json:\"type\" default:\"page_navigation_settled\"`\n\t// Browser event context stamped by the browser monitor onto all CDP-sourced\n\t// events. Identifies the target, frame, and navigation epoch in which the event\n\t// occurred.\n\tData BrowserEventContext `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nEmitted when page\\_dom\\_content\\_loaded and page\\_layout\\_settled have both fired for the same navigation, indicating the page is loaded and visually stable. Independent of network\\_idle; a single pending request does not block it.\n\n```go\nfunc (r BrowserPageNavigationSettledEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserPageNavigationSettledEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPageTabOpenedEvent struct {\n\tCategory constant.Page `json:\"category\" default:\"page\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                         `json:\"ts\" api:\"required\"`\n\tType constant.PageTabOpened        `json:\"type\" default:\"page_tab_opened\"`\n\tData BrowserPageTabOpenedEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA new browser tab or target was opened (CDP Target.attachedToTarget for page targets). Fires before a CDP session is attached to the new target, so session\\_id, frame\\_id, loader\\_id, and nav\\_seq are absent; this event does not compose BrowserEventContext. Consumers reading context fields generically should treat it as a special case.\n\n```go\nfunc (r BrowserPageTabOpenedEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserPageTabOpenedEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPageTabOpenedEventData struct {\n\t// Target identifier of the tab that opened this one, if any.\n\tOpenerID string `json:\"opener_id\"`\n\t// CDP target identifier for the newly opened tab.\n\tTargetID string `json:\"target_id\"`\n\t// CDP target type of the page that produced the event.\n\t//\n\t// Any of \"page\", \"iframe\", \"worker\", \"background_page\", \"service_worker\",\n\t// \"shared_worker\", \"other\".\n\tTargetType string `json:\"target_type\"`\n\t// Initial page title of the new tab.\n\tTitle string `json:\"title\"`\n\t// Initial URL of the new tab.\n\tURL string `json:\"url\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tOpenerID    respjson.Field\n\t\tTargetID    respjson.Field\n\t\tTargetType  respjson.Field\n\t\tTitle       respjson.Field\n\t\tURL         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserPageTabOpenedEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserPageTabOpenedEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPlatform struct {\n\t// Operating system of the browser's host.\n\t//\n\t// Any of \"linux\", \"macos\".\n\tOs BrowserOs `json:\"os\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tOs          respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nHost platform settings for the browser session.\n\n```go\nfunc (r BrowserPlatform) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r BrowserPlatform) ToParam() BrowserPlatformParam\n```\nToParam converts this BrowserPlatform to a BrowserPlatformParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with BrowserPlatformParam.Overrides()\n\n```go\nfunc (r *BrowserPlatform) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPlatformAPICallEvent struct {\n\tCategory constant.Platform `json:\"category\" default:\"platform\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                           `json:\"ts\" api:\"required\"`\n\tType constant.PlatformAPICall        `json:\"type\" default:\"platform_api_call\"`\n\tData BrowserPlatformAPICallEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn HTTP call that manages the browser VM rather than driving the browser, handled by the in-VM API server — recording lifecycle, filesystem and process management, telemetry and browser configuration. Mostly platform-induced (e.g. profile save, replay capture) rather than agent actions.\n\n```go\nfunc (r BrowserPlatformAPICallEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserPlatformAPICallEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPlatformAPICallEventData struct {\n\t// Wall-clock duration of the handler in milliseconds.\n\tDurationMs float64 `json:\"duration_ms\" api:\"required\"`\n\t// Matched route's operation, named as the in-VM API names its handler (e.g.\n\t// ProcessExec, StartRecording).\n\tOperationID string `json:\"operation_id\" api:\"required\"`\n\t// Per-request identifier from the in-VM API request middleware.\n\tRequestID string `json:\"request_id\" api:\"required\"`\n\t// HTTP response status code.\n\tStatus int64 `json:\"status\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDurationMs  respjson.Field\n\t\tOperationID respjson.Field\n\t\tRequestID   respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserPlatformAPICallEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserPlatformAPICallEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPlatformParam struct {\n\t// Operating system of the browser's host.\n\t//\n\t// Any of \"linux\", \"macos\".\n\tOs BrowserOs `json:\"os,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nHost platform settings for the browser session.\n\nThe property Os is required.\n\n```go\nfunc (r BrowserPlatformParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserPlatformParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPlaywrightExecuteParams struct {\n\t// TypeScript/JavaScript code to execute. The code has access to 'page', 'context',\n\t// and 'browser' variables. It runs within a function, so you can use a return\n\t// statement at the end to return a value. This value is returned as the `result`\n\t// property in the response. Example: \"await page.goto('https://example.com');\n\t// return await page.title();\"\n\tCode string `json:\"code\" api:\"required\"`\n\t// Name of a Playwright executor. Calls with the same name run in the same\n\t// executor, one at a time; the first call with a new name creates it. Calls on\n\t// different executors run concurrently. 'default' names the executor that runs\n\t// calls without a name.\n\tExecutor param.Opt[string] `json:\"executor,omitzero\"`\n\t// Maximum execution time in seconds. Default is 60.\n\tTimeoutSec param.Opt[int64] `json:\"timeout_sec,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserPlaywrightExecuteParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserPlaywrightExecuteParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPlaywrightExecuteResponse struct {\n\t// Whether the code executed successfully\n\tSuccess bool `json:\"success\" api:\"required\"`\n\t// Error message if execution failed\n\tError string `json:\"error\"`\n\t// The value returned by the code (if any)\n\tResult any `json:\"result\"`\n\t// Standard error from the execution\n\tStderr string `json:\"stderr\"`\n\t// Standard output from the execution\n\tStdout string `json:\"stdout\"`\n\t// The tab 'page' was bound to for this call. Absent if the call failed before\n\t// binding a tab.\n\tTab Tab `json:\"tab\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tSuccess     respjson.Field\n\t\tError       respjson.Field\n\t\tResult      respjson.Field\n\t\tStderr      respjson.Field\n\t\tStdout      respjson.Field\n\t\tTab         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nResult of Playwright code execution\n\n```go\nfunc (r BrowserPlaywrightExecuteResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserPlaywrightExecuteResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPlaywrightExecutorDeleteParams struct {\n\tIDOrName string `path:\"id_or_name\" api:\"required\" json:\"-\"`\n\t// Close the executor's tab. Defaults to true.\n\tCloseTab param.Opt[bool] `query:\"close_tab,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserPlaywrightExecutorDeleteParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [BrowserPlaywrightExecutorDeleteParams](#BrowserPlaywrightExecutorDeleteParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype BrowserPlaywrightExecutorService struct {\n\tOptions []option.RequestOption\n}\n```\nExecute Playwright code against the browser instance and manage the executors it runs in.\n\nBrowserPlaywrightExecutorService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewBrowserPlaywrightExecutorService](#NewBrowserPlaywrightExecutorService) method instead.\n\n```go\nfunc NewBrowserPlaywrightExecutorService(opts ...option.RequestOption) (r BrowserPlaywrightExecutorService)\n```\nNewBrowserPlaywrightExecutorService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *BrowserPlaywrightExecutorService) Delete(ctx context.Context, name string, params BrowserPlaywrightExecutorDeleteParams, opts ...option.RequestOption) (err error)\n```\nStops the executor's process. A call running on it fails with an error saying the executor was deleted. By default the executor's tab is closed too. The name can be reused; the next call with it creates a new executor and tab.\n\nThe default executor is restarted instead of removed: its process is stopped, a call running on it fails with an error saying the executor was restarted, and queued and later calls run on a new process. It owns no tab, so 'close\\_tab' has no effect on it.\n\n```go\nfunc (r *BrowserPlaywrightExecutorService) List(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *ExecutorList, err error)\n```\nLists the default executor first, then the named executors created by POST /browsers/{id\\_or\\_name}/playwright/execute. Each entry reports whether a call is running on it and, for named executors, the target ID and URL of the tab it owns. Returns 404 for a browser whose image predates executors.\n\n```go\ntype BrowserPlaywrightService struct {\n\tOptions []option.RequestOption\n\t// Execute Playwright code against the browser instance and manage the executors it\n\t// runs in.\n\tExecutors BrowserPlaywrightExecutorService\n}\n```\nExecute Playwright code against the browser instance and manage the executors it runs in.\n\nBrowserPlaywrightService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewBrowserPlaywrightService](#NewBrowserPlaywrightService) method instead.\n\n```go\nfunc NewBrowserPlaywrightService(opts ...option.RequestOption) (r BrowserPlaywrightService)\n```\nNewBrowserPlaywrightService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *BrowserPlaywrightService) Execute(ctx context.Context, idOrName string, body BrowserPlaywrightExecuteParams, opts ...option.RequestOption) (res *BrowserPlaywrightExecuteResponse, err error)\n```\nExecute arbitrary Playwright code in a fresh execution context against the browser. The code runs in the same VM as the browser, minimizing latency and maximizing throughput. It has access to 'page', 'context', 'browser', and 'webmcp' variables. Use 'webmcp.listTools()' to discover browser-wide WebMCP tools and 'webmcp.invokeTool(toolRef, input?, { timeoutSec? })' to invoke an exact registration. It can \\`return\\` a value, and this value is returned in the response.\n\nEvery call runs in an executor: a dedicated Node.js process with its own browser connection. Calls on different executors run concurrently; calls on the same executor run one at a time. A timeout, crash, or blocked event loop in one executor does not affect other executors. After a timeout the executor keeps its process and drops its browser connection, so code abandoned by the timeout cannot keep driving the browser. After a crash or a blocked event loop, the next call on that executor starts a fresh process.\n\nCalls without 'executor' run in the executor named 'default', which always exists and is the same as passing 'executor: \"default\"'. In the default executor, 'page' is bound to an active tab reported by Chrome. In single-window sessions, this is the foreground tab. When multiple browser windows are open, Chrome reports one active tab per window and the selected window is unspecified. 'context' is the BrowserContext that owns the selected page. Use 'browser.contexts()' to select a context or page explicitly.\n\nPass any other name to run the call in a named executor. The first call with a new name creates it. Each named executor owns a tab: its first call opens a new background tab in the default browser context, and 'page' is bound to that tab on every later call while it stays open. Opening it does not change the active tab of an existing window. If the tab is closed, the next call opens a new one and reports 'tab.created: true'. Executor code can still reach other tabs through 'context' and 'browser'; ownership only decides what 'page' is bound to. Use named executors to drive several tabs of one browser in parallel.\n\nA browser can have at most 8 named executors; the default executor does not count. A call that would create another returns 409 with the current executors; delete one with DELETE /browsers/{id\\_or\\_name}/playwright/executors/{name}. Named executors are not removed automatically while the browser runs; when it shuts down, they are removed and their tabs closed.\n\n```go\ntype BrowserPool struct {\n\t// Unique identifier for the browser pool\n\tID string `json:\"id\" api:\"required\"`\n\t// Number of browsers currently acquired from the pool\n\tAcquiredCount int64 `json:\"acquired_count\" api:\"required\"`\n\t// Number of browsers currently available in the pool\n\tAvailableCount int64 `json:\"available_count\" api:\"required\"`\n\t// Configuration used to create all browsers in this pool\n\tBrowserPoolConfig BrowserPoolBrowserPoolConfig `json:\"browser_pool_config\" api:\"required\"`\n\t// Timestamp when the browser pool was created\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Resolved extension IDs attached to the pool, in configured load order. Empty\n\t// when no extensions are attached. Authoritative for programmatic consumers; the\n\t// extensions inside `browser_pool_config` reflect the configured selector (echoed\n\t// as sent on create).\n\tExtensionIDs []string `json:\"extension_ids\" api:\"required\"`\n\t// Geographic region of the browser pool. Fixed once the pool is created.\n\t//\n\t// Any of \"us-east\", \"us-west\", \"eu-west\", \"ap-southeast\".\n\tRegion BrowserPoolRegion `json:\"region\" api:\"required\"`\n\t// Browser pool name, if set\n\tName string `json:\"name\"`\n\t// Resolved profile ID the pool is attached to. Omitted when no profile is\n\t// attached. Authoritative for programmatic consumers; the profile inside\n\t// `browser_pool_config` reflects the configured selector (echoed as sent on\n\t// create).\n\tProfileID string `json:\"profile_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                respjson.Field\n\t\tAcquiredCount     respjson.Field\n\t\tAvailableCount    respjson.Field\n\t\tBrowserPoolConfig respjson.Field\n\t\tCreatedAt         respjson.Field\n\t\tExtensionIDs      respjson.Field\n\t\tRegion            respjson.Field\n\t\tName              respjson.Field\n\t\tProfileID         respjson.Field\n\t\tExtraFields       map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA browser pool containing multiple identically configured browsers.\n\n```go\nfunc (r BrowserPool) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserPool) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPoolAcquireParams struct {\n\t// Maximum number of seconds to wait for a browser to be available. Defaults to the\n\t// calculated time it would take to fill the pool at the currently configured fill\n\t// rate.\n\tAcquireTimeoutSeconds param.Opt[int64] `json:\"acquire_timeout_seconds,omitzero\"`\n\t// Optional human-readable name for the acquired browser session, used to find it\n\t// later in the dashboard. Must be unique among active sessions within the pool's\n\t// project. Applies to this lease only and is cleared when the browser is released\n\t// back to the pool.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// Start replay recording immediately for the acquired browser. Omit to use the\n\t// pool's configured default.\n\tStartReplay param.Opt[bool] `json:\"start_replay,omitzero\"`\n\t// Optional URL to navigate the acquired browser to. Overrides the pool's start_url\n\t// for this acquire only. Best-effort: failures to navigate do not fail the\n\t// acquire.\n\tStartURL param.Opt[string] `json:\"start_url,omitzero\"`\n\t// Telemetry override for the acquired browser, applied to this lease only. Merges\n\t// onto the browser's current (pool-inherited) telemetry using the same\n\t// per-category semantics as PATCH /browsers: provided categories override the\n\t// current configuration, omitted categories are inherited. Set enabled to true to\n\t// resolve the config fresh from the default set, or enabled to false to stop\n\t// capture. When the browser is released back to the pool with reuse, its telemetry\n\t// is reset to the pool's baseline, so the override does not carry over to the next\n\t// lease.\n\tTelemetry BrowserPoolAcquireParamsTelemetry `json:\"telemetry,omitzero\"`\n\t// Profile selection for the browser session. Provide either id or name. If\n\t// specified, the matching profile will be loaded into the browser session.\n\t// Profiles must be created beforehand.\n\tProfile shared.BrowserProfileParam `json:\"profile,omitzero\"`\n\t// Optional user-defined key-value tags for the acquired browser session, used to\n\t// find and group sessions later. Applies to this lease only and are cleared when\n\t// the browser is released back to the pool. Up to 50 pairs.\n\tTags Tags `json:\"tags,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserPoolAcquireParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserPoolAcquireParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPoolAcquireParamsTelemetry struct {\n\t// Request shortcut for browser telemetry capture. True enables capture; with no\n\t// browser category settings it captures the default set (control, connection,\n\t// system, captcha), and any browser category settings are layered onto that\n\t// default set. On update, enabled=true resolves the config fresh from the default\n\t// set plus any provided categories, replacing the session's current selection\n\t// rather than merging onto it; omit enabled to merge categories onto the current\n\t// selection instead. False stops capture on update and starts no capture on\n\t// create. enabled=false cannot be combined with browser category settings.\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// Per-category capture flags. The operational categories (control, connection,\n\t// system, captcha) are captured whenever telemetry is enabled; set one to\n\t// enabled=false to opt out. The CDP categories (console, network, page,\n\t// interaction), screenshot and platform are off by default; set enabled=true to\n\t// opt in. On create, provided categories layer onto the default set. On update,\n\t// provided categories merge onto the session's current config; when no telemetry\n\t// is active this falls back to the default set (matching create). If browser is\n\t// omitted or empty, the default set is used. A browser config that disables every\n\t// category stops capture on update and starts no capture on create.\n\tBrowser BrowserTelemetryCategoriesConfigParam `json:\"browser,omitzero\"`\n\t// Where to export this session's captured telemetry. Omit to capture without\n\t// exporting.\n\tExport BrowserPoolAcquireParamsTelemetryExport `json:\"export,omitzero\"`\n\t// Whether to persist this session's captured telemetry to Kernel storage.\n\tStorage BrowserPoolAcquireParamsTelemetryStorage `json:\"storage,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nTelemetry override for the acquired browser, applied to this lease only. Merges onto the browser's current (pool-inherited) telemetry using the same per-category semantics as PATCH /browsers: provided categories override the current configuration, omitted categories are inherited. Set enabled to true to resolve the config fresh from the default set, or enabled to false to stop capture. When the browser is released back to the pool with reuse, its telemetry is reset to the pool's baseline, so the override does not carry over to the next lease.\n\n```go\nfunc (r BrowserPoolAcquireParamsTelemetry) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserPoolAcquireParamsTelemetry) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPoolAcquireParamsTelemetryExport struct {\n\t// Export captured telemetry over OTLP to one of the org's configured destinations.\n\tOtlp BrowserPoolAcquireParamsTelemetryExportOtlp `json:\"otlp,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nWhere to export this session's captured telemetry. Omit to capture without exporting.\n\n```go\nfunc (r BrowserPoolAcquireParamsTelemetryExport) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserPoolAcquireParamsTelemetryExport) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPoolAcquireParamsTelemetryExportOtlp struct {\n\t// Whether to export captured telemetry over OTLP. Setting destination implies\n\t// enabled=true, so this only needs to be set explicitly to disable export\n\t// (enabled=false with a destination is rejected).\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// OTLP destination to export this session's captured telemetry to. Provide either\n\t// id or name. Requires telemetry capture to be enabled.\n\tDestination BrowserPoolAcquireParamsTelemetryExportOtlpDestination `json:\"destination,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nExport captured telemetry over OTLP to one of the org's configured destinations.\n\n```go\nfunc (r BrowserPoolAcquireParamsTelemetryExportOtlp) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserPoolAcquireParamsTelemetryExportOtlp) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPoolAcquireParamsTelemetryExportOtlpDestination struct {\n\t// OTLP destination ID\n\tID param.Opt[string] `json:\"id,omitzero\"`\n\t// OTLP destination name\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nOTLP destination to export this session's captured telemetry to. Provide either id or name. Requires telemetry capture to be enabled.\n\n```go\nfunc (r BrowserPoolAcquireParamsTelemetryExportOtlpDestination) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserPoolAcquireParamsTelemetryExportOtlpDestination) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPoolAcquireParamsTelemetryStorage struct {\n\t// Whether captured telemetry is persisted to Kernel storage. Defaults to true.\n\t// Setting false requires an OTLP destination and cannot be changed after the\n\t// browser is created.\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nWhether to persist this session's captured telemetry to Kernel storage.\n\n```go\nfunc (r BrowserPoolAcquireParamsTelemetryStorage) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserPoolAcquireParamsTelemetryStorage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPoolAcquireResponse struct {\n\t// Automatic CAPTCHA solving configuration.\n\tCaptchaSolver BrowserCaptchaSolver `json:\"captcha_solver\" api:\"required\"`\n\t// Websocket URL for Chrome DevTools Protocol connections to the browser session\n\tCdpWsURL string `json:\"cdp_ws_url\" api:\"required\"`\n\t// When the browser session was created.\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Whether the browser session is running in headless mode.\n\tHeadless bool `json:\"headless\" api:\"required\"`\n\t// Memory allocated to the browser session.\n\t//\n\t// Any of \"1GiB\", \"2GiB\", \"4GiB\", \"6GiB\", \"8GiB\", \"12GiB\", \"16GiB\".\n\tMemory BrowserMemory `json:\"memory\" api:\"required\"`\n\t// Geographic region of the browser session. Fixed once the session is created.\n\t//\n\t// Any of \"us-east\", \"us-west\", \"eu-west\", \"ap-southeast\".\n\tRegion BrowserPoolAcquireResponseRegion `json:\"region\" api:\"required\"`\n\t// Unique identifier for the browser session\n\tSessionID string `json:\"session_id\" api:\"required\"`\n\t// Whether the browser session has CAPTCHA solving enabled, in which case\n\t// proxy.mode=default uses Kernel's default stealth proxy. A browser created with\n\t// only captcha_solver reports true with proxy.mode=direct. Deprecated in favor of\n\t// captcha_solver and proxy.\n\t//\n\t// Deprecated: deprecated\n\tStealth bool `json:\"stealth\" api:\"required\"`\n\t// The number of seconds of inactivity before the browser session is terminated.\n\tTimeoutSeconds int64 `json:\"timeout_seconds\" api:\"required\"`\n\t// Websocket URL for WebDriver BiDi connections to the browser session\n\tWebdriverWsURL string `json:\"webdriver_ws_url\" api:\"required\"`\n\t// Metro-API HTTP base URL for this browser session.\n\tBaseURL string `json:\"base_url\"`\n\t// Remote URL for live viewing the browser session. Only available for non-headless\n\t// browsers.\n\tBrowserLiveViewURL string `json:\"browser_live_view_url\"`\n\t// Custom Chrome enterprise policy overrides that were applied to this browser\n\t// session, if any. Echoed back for verification. Keys are Chrome enterprise policy\n\t// names.\n\tChromePolicy map[string]any `json:\"chrome_policy\"`\n\t// Provisional browser-session usage cost. Present only on GET detail responses\n\t// requested with include_cost=true; omitted otherwise and from list and other\n\t// browser responses.\n\tCost BrowserCost `json:\"cost\"`\n\t// When the browser session was soft-deleted. Only present for deleted sessions.\n\tDeletedAt time.Time `json:\"deleted_at\" format:\"date-time\"`\n\t// Fingerprint applied to this browser session. Omitted when the session was\n\t// created without one.\n\tFingerprint BrowserFingerprint `json:\"fingerprint\"`\n\t// Whether GPU acceleration is enabled for the browser session (only supported for\n\t// headful sessions).\n\tGPU bool `json:\"gpu\"`\n\t// Whether the browser session is running in kiosk mode.\n\tKioskMode bool `json:\"kiosk_mode\"`\n\t// When the pooled browser session was last leased. Only present for leased pooled\n\t// sessions.\n\tLeasedAt time.Time `json:\"leased_at\" format:\"date-time\"`\n\t// Effective browser timezone and locale with per-field provenance.\n\tLocation BrowserLocation `json:\"location\"`\n\t// Human-readable name of the browser session, if one was set at creation.\n\tName string `json:\"name\"`\n\t// Network configuration the session was created with, if any. Omitted when the\n\t// session has no network configuration.\n\tNetwork BrowserNetworkConfig `json:\"network\"`\n\t// Host platform for the browser session. Absent means linux.\n\tPlatform BrowserPlatform `json:\"platform\"`\n\t// Browser pool this session was acquired from, if any.\n\tPool BrowserPoolRef `json:\"pool\"`\n\t// Browser profile metadata.\n\tProfile Profile `json:\"profile\"`\n\t// Whether changes made during this browser session are saved back to its profile\n\t// when the session ends. Omitted when no profile is attached.\n\tProfileSaveChanges bool `json:\"profile_save_changes\"`\n\t// Resolved proxy configuration for this browser session.\n\tProxy BrowserProxy `json:\"proxy\"`\n\t// ID of the proxy associated with this browser session, if any. Deprecated in\n\t// favor of proxy.\n\t//\n\t// Deprecated: deprecated\n\tProxyID string `json:\"proxy_id\"`\n\t// Replay recording started by `start_replay` when this browser was created or\n\t// acquired. Omitted otherwise; list replays with\n\t// `GET /browsers/{id_or_name}/replays`.\n\tReplay BrowserPoolAcquireResponseReplay `json:\"replay\"`\n\t// Seconds the browser waits after its last connection closes before entering\n\t// standby. Omitted when the browser uses the platform default.\n\tStandbyIdleTimeoutSeconds int64 `json:\"standby_idle_timeout_seconds\"`\n\t// URL the session was most recently asked to navigate to, if any. Recorded for\n\t// debugging. Navigation is fire-and-forget — the URL is dispatched to the browser\n\t// without waiting for it to load, and any errors (DNS failure, bad status,\n\t// timeout) are silently dropped. Captures what was requested, not what the browser\n\t// actually loaded.\n\tStartURL string `json:\"start_url\"`\n\t// User-defined key-value tags that were set on this browser session, if any.\n\t// Echoed back when present.\n\tTags Tags `json:\"tags\"`\n\t// Active telemetry configuration for the session, if any.\n\tTelemetry BrowserTelemetryConfig `json:\"telemetry\" api:\"nullable\"`\n\t// Session usage metrics.\n\tUsage BrowserUsage `json:\"usage\"`\n\t// Whether final usage billing is still pending or complete. Only present for\n\t// deleted sessions.\n\t//\n\t// Any of \"pending\", \"ready\".\n\tUsageStatus BrowserPoolAcquireResponseUsageStatus `json:\"usage_status\"`\n\t// Vaults linked when the browser session was created.\n\tVaults []VaultReference `json:\"vaults\"`\n\t// Video memory (VRAM) of the GPU browser session. Only present when gpu is true.\n\t//\n\t// Any of \"3GiB\", \"6GiB\", \"2GiB\", \"4GiB\".\n\tVideoMemory BrowserVideoMemory `json:\"video_memory\"`\n\t// Initial browser window size in pixels with optional refresh rate. If omitted,\n\t// image defaults apply (1920x1080@25). For GPU images, the default is\n\t// 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.\n\t// Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,\n\t// 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For\n\t// GPU images, recommended presets use one of these resolutions with refresh rates\n\t// 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,\n\t// 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,\n\t// 768x1024, 800x1600. Viewports outside this list may exhibit unstable live view\n\t// or recording behavior. If refresh_rate is not provided, it will be automatically\n\t// determined based on the resolution (higher resolutions use lower refresh rates\n\t// to keep bandwidth reasonable).\n\tViewport shared.BrowserViewport `json:\"viewport\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCaptchaSolver             respjson.Field\n\t\tCdpWsURL                  respjson.Field\n\t\tCreatedAt                 respjson.Field\n\t\tHeadless                  respjson.Field\n\t\tMemory                    respjson.Field\n\t\tRegion                    respjson.Field\n\t\tSessionID                 respjson.Field\n\t\tStealth                   respjson.Field\n\t\tTimeoutSeconds            respjson.Field\n\t\tWebdriverWsURL            respjson.Field\n\t\tBaseURL                   respjson.Field\n\t\tBrowserLiveViewURL        respjson.Field\n\t\tChromePolicy              respjson.Field\n\t\tCost                      respjson.Field\n\t\tDeletedAt                 respjson.Field\n\t\tFingerprint               respjson.Field\n\t\tGPU                       respjson.Field\n\t\tKioskMode                 respjson.Field\n\t\tLeasedAt                  respjson.Field\n\t\tLocation                  respjson.Field\n\t\tName                      respjson.Field\n\t\tNetwork                   respjson.Field\n\t\tPlatform                  respjson.Field\n\t\tPool                      respjson.Field\n\t\tProfile                   respjson.Field\n\t\tProfileSaveChanges        respjson.Field\n\t\tProxy                     respjson.Field\n\t\tProxyID                   respjson.Field\n\t\tReplay                    respjson.Field\n\t\tStandbyIdleTimeoutSeconds respjson.Field\n\t\tStartURL                  respjson.Field\n\t\tTags                      respjson.Field\n\t\tTelemetry                 respjson.Field\n\t\tUsage                     respjson.Field\n\t\tUsageStatus               respjson.Field\n\t\tVaults                    respjson.Field\n\t\tVideoMemory               respjson.Field\n\t\tViewport                  respjson.Field\n\t\tExtraFields               map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserPoolAcquireResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserPoolAcquireResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPoolAcquireResponseRegion string\n```\nGeographic region of the browser session. Fixed once the session is created.\n\n```go\nconst (\n\tBrowserPoolAcquireResponseRegionUsEast      BrowserPoolAcquireResponseRegion = \"us-east\"\n\tBrowserPoolAcquireResponseRegionUsWest      BrowserPoolAcquireResponseRegion = \"us-west\"\n\tBrowserPoolAcquireResponseRegionEuWest      BrowserPoolAcquireResponseRegion = \"eu-west\"\n\tBrowserPoolAcquireResponseRegionApSoutheast BrowserPoolAcquireResponseRegion = \"ap-southeast\"\n)\n```\n\n```go\ntype BrowserPoolAcquireResponseReplay struct {\n\t// Unique identifier for the replay recording.\n\tReplayID string `json:\"replay_id\" api:\"required\"`\n\t// Timestamp when replay finished\n\tFinishedAt time.Time `json:\"finished_at\" api:\"nullable\" format:\"date-time\"`\n\t// URL for viewing the replay recording.\n\tReplayViewURL string `json:\"replay_view_url\"`\n\t// Timestamp when replay started\n\tStartedAt time.Time `json:\"started_at\" api:\"nullable\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tReplayID      respjson.Field\n\t\tFinishedAt    respjson.Field\n\t\tReplayViewURL respjson.Field\n\t\tStartedAt     respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nReplay recording started by \\`start\\_replay\\` when this browser was created or acquired. Omitted otherwise; list replays with \\`GET /browsers/{id\\_or\\_name}/replays\\`.\n\n```go\nfunc (r BrowserPoolAcquireResponseReplay) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserPoolAcquireResponseReplay) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPoolAcquireResponseUsageStatus string\n```\nWhether final usage billing is still pending or complete. Only present for deleted sessions.\n\n```go\nconst (\n\tBrowserPoolAcquireResponseUsageStatusPending BrowserPoolAcquireResponseUsageStatus = \"pending\"\n\tBrowserPoolAcquireResponseUsageStatusReady   BrowserPoolAcquireResponseUsageStatus = \"ready\"\n)\n```\n\n```go\ntype BrowserPoolBrowserPoolConfig struct {\n\t// Number of browsers maintained in the pool. The maximum size is determined by\n\t// your organization's pooled sessions limit (the sum of all pool sizes cannot\n\t// exceed your limit).\n\tSize int64 `json:\"size\" api:\"required\"`\n\t// Automatic CAPTCHA solving configuration.\n\tCaptchaSolver BrowserCaptchaSolver `json:\"captcha_solver\"`\n\t// Custom Chrome enterprise policy overrides applied to all browsers in this pool.\n\t// Keys are Chrome enterprise policy names; values must match their expected types.\n\t// Blocked: kernel-managed policies (extensions, proxy, CDP/automation). See\n\t// https://chromeenterprise.google/policies/ The serialized JSON payload is capped\n\t// at 5 MiB.\n\tChromePolicy map[string]any `json:\"chrome_policy\"`\n\t// List of browser extensions to load into the session. Provide each by id or name.\n\tExtensions []shared.BrowserExtension `json:\"extensions\"`\n\t// Percentage of the pool to fill per minute. The cap is 25 for most organizations\n\t// but can be raised per-organization, so only the lower bound is enforced here.\n\tFillRatePerMinute int64 `json:\"fill_rate_per_minute\"`\n\t// If true, launches the browser using a headless image.\n\tHeadless bool `json:\"headless\"`\n\t// If true, launches the browser in kiosk mode to hide address bar and tabs in live\n\t// view.\n\tKioskMode bool `json:\"kiosk_mode\"`\n\t// Memory allocated to the browser session.\n\t//\n\t// Any of \"1GiB\", \"2GiB\", \"4GiB\", \"6GiB\", \"8GiB\", \"12GiB\", \"16GiB\".\n\tMemory BrowserMemory `json:\"memory\"`\n\t// Optional name for the browser pool. Must be unique within the project.\n\tName string `json:\"name\"`\n\t// Network configuration applied to browsers in this pool, if any. Omitted when the\n\t// pool has no network configuration.\n\tNetwork BrowserNetworkConfig `json:\"network\"`\n\t// Profile configuration for browsers in a pool. Provide either id or name.\n\t// Profiles must be created beforehand. Unlike single browser sessions, pools load\n\t// the profile read-only and never persist changes back to it, so save_changes is\n\t// omitted here. Any save_changes value sent on a pool profile is silently ignored\n\t// rather than rejected.\n\tProfile BrowserPoolBrowserPoolConfigProfile `json:\"profile\"`\n\t// Resolved proxy configuration for browsers in this pool.\n\tProxy BrowserProxy `json:\"proxy\"`\n\t// ID of the proxy associated with browsers in this pool, if any. Deprecated in\n\t// favor of proxy.\n\t//\n\t// Deprecated: deprecated\n\tProxyID string `json:\"proxy_id\"`\n\t// When true, flush idle browsers when the profile the pool uses is updated, so\n\t// pool browsers pick up the latest profile data. When a profile is provided during\n\t// creation, this defaults to true. Requires a profile to be set on the pool.\n\tRefreshOnProfileUpdate bool `json:\"refresh_on_profile_update\"`\n\t// Seconds a browser acquired from this pool waits after its last connection closes\n\t// before entering standby. Omitted when the pool uses the platform default.\n\tStandbyIdleTimeoutSeconds int64 `json:\"standby_idle_timeout_seconds\"`\n\t// Start replay recording automatically when a browser is acquired from this pool.\n\tStartReplay bool `json:\"start_replay\"`\n\t// Optional URL to navigate to when a new browser is warmed into the pool.\n\t// Best-effort: failures to navigate do not fail pool fill. Only applied to\n\t// newly-warmed browsers; browsers reused via release/acquire keep whatever URL the\n\t// previous lease left them on. Accepts any URL Chromium can resolve, including\n\t// chrome:// pages.\n\tStartURL string `json:\"start_url\"`\n\t// Whether browsers in this pool use stealth mode, which is CAPTCHA solving with\n\t// Kernel's default stealth proxy unless a proxy is set. A pool with only\n\t// captcha_solver enabled reports false. Deprecated in favor of captcha_solver and\n\t// proxy.\n\t//\n\t// Deprecated: deprecated\n\tStealth bool `json:\"stealth\"`\n\t// Active telemetry configuration applied to browsers warmed into this pool, if\n\t// any.\n\tTelemetry BrowserTelemetryConfig `json:\"telemetry\" api:\"nullable\"`\n\t// Default idle timeout in seconds for browsers acquired from this pool before they\n\t// are destroyed. Minimum 10, maximum 259200 (72 hours).\n\tTimeoutSeconds int64 `json:\"timeout_seconds\"`\n\t// Initial browser window size in pixels with optional refresh rate. If omitted,\n\t// image defaults apply (1920x1080@25). For GPU images, the default is\n\t// 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.\n\t// Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,\n\t// 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For\n\t// GPU images, recommended presets use one of these resolutions with refresh rates\n\t// 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,\n\t// 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,\n\t// 768x1024, 800x1600. Viewports outside this list may exhibit unstable live view\n\t// or recording behavior. If refresh_rate is not provided, it will be automatically\n\t// determined based on the resolution (higher resolutions use lower refresh rates\n\t// to keep bandwidth reasonable).\n\tViewport shared.BrowserViewport `json:\"viewport\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tSize                      respjson.Field\n\t\tCaptchaSolver             respjson.Field\n\t\tChromePolicy              respjson.Field\n\t\tExtensions                respjson.Field\n\t\tFillRatePerMinute         respjson.Field\n\t\tHeadless                  respjson.Field\n\t\tKioskMode                 respjson.Field\n\t\tMemory                    respjson.Field\n\t\tName                      respjson.Field\n\t\tNetwork                   respjson.Field\n\t\tProfile                   respjson.Field\n\t\tProxy                     respjson.Field\n\t\tProxyID                   respjson.Field\n\t\tRefreshOnProfileUpdate    respjson.Field\n\t\tStandbyIdleTimeoutSeconds respjson.Field\n\t\tStartReplay               respjson.Field\n\t\tStartURL                  respjson.Field\n\t\tStealth                   respjson.Field\n\t\tTelemetry                 respjson.Field\n\t\tTimeoutSeconds            respjson.Field\n\t\tViewport                  respjson.Field\n\t\tExtraFields               map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration used to create all browsers in this pool\n\n```go\nfunc (r BrowserPoolBrowserPoolConfig) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserPoolBrowserPoolConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPoolBrowserPoolConfigProfile struct {\n\t// Profile ID to load for browsers in this pool\n\tID string `json:\"id\"`\n\t// Profile name to load for browsers in this pool (instead of id). Must be 1-255\n\t// characters, using letters, numbers, dots, underscores, or hyphens.\n\tName string `json:\"name\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tName        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nProfile configuration for browsers in a pool. Provide either id or name. Profiles must be created beforehand. Unlike single browser sessions, pools load the profile read-only and never persist changes back to it, so save\\_changes is omitted here. Any save\\_changes value sent on a pool profile is silently ignored rather than rejected.\n\n```go\nfunc (r BrowserPoolBrowserPoolConfigProfile) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserPoolBrowserPoolConfigProfile) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPoolDeleteParams struct {\n\t// If true, force delete even if browsers are currently leased. Leased browsers\n\t// will be terminated.\n\tForce param.Opt[bool] `json:\"force,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserPoolDeleteParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserPoolDeleteParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPoolListParams struct {\n\t// Limit the number of browser pools to return.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Exact-match filter on browser pool name using the database collation. In\n\t// production, matching is case- and accent-insensitive. During the default-project\n\t// migration, unscoped requests prefer a concrete default-project browser pool over\n\t// a legacy unscoped browser pool with the same name.\n\tName param.Opt[string] `query:\"name,omitzero\" json:\"-\"`\n\t// Offset the number of browser pools to return.\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Case-insensitive substring match against browser pool name. IDs match by exact\n\t// value.\n\tQuery param.Opt[string] `query:\"query,omitzero\" json:\"-\"`\n\t// Filter pools by geographic region. Omit to list pools in all regions.\n\t//\n\t// Any of \"us-east\", \"us-west\", \"eu-west\", \"ap-southeast\".\n\tRegion BrowserPoolListParamsRegion `query:\"region,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserPoolListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [BrowserPoolListParams](#BrowserPoolListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype BrowserPoolListParamsRegion string\n```\nFilter pools by geographic region. Omit to list pools in all regions.\n\n```go\nconst (\n\tBrowserPoolListParamsRegionUsEast      BrowserPoolListParamsRegion = \"us-east\"\n\tBrowserPoolListParamsRegionUsWest      BrowserPoolListParamsRegion = \"us-west\"\n\tBrowserPoolListParamsRegionEuWest      BrowserPoolListParamsRegion = \"eu-west\"\n\tBrowserPoolListParamsRegionApSoutheast BrowserPoolListParamsRegion = \"ap-southeast\"\n)\n```\n\n```go\ntype BrowserPoolNewParams struct {\n\t// Number of browsers to maintain in the pool. The maximum size is determined by\n\t// your organization's pooled sessions limit (the sum of all pool sizes cannot\n\t// exceed your limit).\n\tSize int64 `json:\"size\" api:\"required\"`\n\t// Percentage of the pool to fill per minute. Defaults to 25. The cap is 25 for\n\t// most organizations but can be raised per-organization, so only the lower bound\n\t// is enforced here.\n\tFillRatePerMinute param.Opt[int64] `json:\"fill_rate_per_minute,omitzero\"`\n\t// If true, launches the browser using a headless image. Defaults to false.\n\tHeadless param.Opt[bool] `json:\"headless,omitzero\"`\n\t// If true, launches the browser in kiosk mode to hide address bar and tabs in live\n\t// view. Defaults to false.\n\tKioskMode param.Opt[bool] `json:\"kiosk_mode,omitzero\"`\n\t// Optional name for the browser pool. Must be unique within the project.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// Optional proxy to associate to browsers in this pool. Must reference a proxy in\n\t// the same project as the pool. Cannot be combined with proxy. Deprecated in favor\n\t// of proxy.\n\tProxyID param.Opt[string] `json:\"proxy_id,omitzero\"`\n\t// When true, flush idle browsers when the profile the pool uses is updated, so\n\t// pool browsers pick up the latest profile data. When a profile is provided during\n\t// creation, this defaults to true. Requires a profile to be set on the pool.\n\tRefreshOnProfileUpdate param.Opt[bool] `json:\"refresh_on_profile_update,omitzero\"`\n\t// Seconds a browser acquired from this pool waits after its last connection closes\n\t// before entering standby. Defaults to the platform default when omitted. Minimum\n\t// 3, maximum 300. Idle browsers in the pool use the platform default, and a\n\t// released browser returns to it. An acquired browser can override the pool's\n\t// value with PATCH /browsers/{id_or_name}.\n\tStandbyIdleTimeoutSeconds param.Opt[int64] `json:\"standby_idle_timeout_seconds,omitzero\"`\n\t// Start replay recording automatically when a browser is acquired from this pool.\n\tStartReplay param.Opt[bool] `json:\"start_replay,omitzero\"`\n\t// Optional URL to navigate to when a new browser is warmed into the pool.\n\t// Best-effort: failures to navigate do not fail pool fill. Only applied to\n\t// newly-warmed browsers; browsers reused via release/acquire keep whatever URL the\n\t// previous lease left them on. Accepts any URL Chromium can resolve, including\n\t// chrome:// pages.\n\tStartURL param.Opt[string] `json:\"start_url,omitzero\"`\n\t// If true, enables the CAPTCHA solver and, when proxy and proxy_id are omitted,\n\t// uses Kernel's default stealth proxy. Defaults to false. Cannot be combined with\n\t// captcha_solver.enabled=false. Deprecated in favor of captcha_solver and proxy.\n\tStealth param.Opt[bool] `json:\"stealth,omitzero\"`\n\t// Default idle timeout in seconds for browsers acquired from this pool before they\n\t// are destroyed. Defaults to 600 seconds. Minimum 10, maximum 259200 (72 hours).\n\tTimeoutSeconds param.Opt[int64] `json:\"timeout_seconds,omitzero\"`\n\t// Telemetry configuration applied to browsers warmed into this pool. Set enabled\n\t// to true to start capture using the default set, or provide browser category\n\t// settings. If omitted, null, set to an empty object ({}), set to enabled: false\n\t// without browser category settings, or all four CDP categories are explicitly\n\t// disabled, no telemetry is configured on the pool. Only applied to newly-warmed\n\t// browsers.\n\tTelemetry BrowserPoolNewParamsTelemetry `json:\"telemetry,omitzero\"`\n\t// Automatic CAPTCHA solving for browsers in this pool. Disabled by default.\n\t// Enabling it does not select a proxy: when proxy and proxy_id are omitted,\n\t// browsers use direct egress unless stealth=true. Set proxy.mode=default for\n\t// Kernel's default stealth proxy.\n\tCaptchaSolver BrowserCaptchaSolverParam `json:\"captcha_solver,omitzero\"`\n\t// Custom Chrome enterprise policy overrides applied to all browsers in this pool.\n\t// Keys are Chrome enterprise policy names; values must match their expected types.\n\t// Blocked: kernel-managed policies (extensions, proxy, CDP/automation). See\n\t// https://chromeenterprise.google/policies/ The serialized JSON payload is capped\n\t// at 5 MiB.\n\tChromePolicy map[string]any `json:\"chrome_policy,omitzero\"`\n\t// List of browser extensions to load into the session. Provide each by id or name.\n\tExtensions []shared.BrowserExtensionParam `json:\"extensions,omitzero\"`\n\t// Memory for browsers in this pool. Headless: 1GiB (default), 2GiB, or 4GiB.\n\t// Headful: 8GiB (default) or 16GiB.\n\t//\n\t// Any of \"1GiB\", \"2GiB\", \"4GiB\", \"8GiB\", \"16GiB\".\n\tMemory BrowserMemoryRequest `json:\"memory,omitzero\"`\n\t// Network configuration applied to browsers in this pool. Egress allowlists and\n\t// proxy routes require proxy-v3; the pool will not provision browsers through\n\t// Envoy if proxy-v3 is unavailable.\n\tNetwork BrowserNetworkConfigParam `json:\"network,omitzero\"`\n\t// Profile configuration for browsers in a pool. Provide either id or name.\n\t// Profiles must be created beforehand. Unlike single browser sessions, pools load\n\t// the profile read-only and never persist changes back to it, so save_changes is\n\t// omitted here. Any save_changes value sent on a pool profile is silently ignored\n\t// rather than rejected.\n\tProfile BrowserPoolNewParamsProfile `json:\"profile,omitzero\"`\n\t// Proxy configuration for browsers in this pool. Cannot be combined with proxy_id.\n\t// Omit to use direct egress, or Kernel's default stealth proxy when stealth=true.\n\t// Set mode to direct to force direct egress. Set mode to default to use Kernel's\n\t// default stealth proxy when captcha_solver.enabled=true, or direct egress\n\t// otherwise. Select id or name to use that proxy. Proxy selection does not change\n\t// CAPTCHA solver behavior.\n\tProxy BrowserProxyConfigParam `json:\"proxy,omitzero\"`\n\t// Geographic region for the browser pool. It is fixed once the pool is created.\n\t// Region selection requires a Start-Up or Enterprise plan, defaults to us-east\n\t// when omitted on create.\n\t//\n\t// Any of \"us-east\", \"us-west\", \"eu-west\", \"ap-southeast\".\n\tRegion BrowserPoolNewParamsRegion `json:\"region,omitzero\"`\n\t// Initial browser window size in pixels with optional refresh rate. If omitted,\n\t// image defaults apply (1920x1080@25). For GPU images, the default is\n\t// 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.\n\t// Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,\n\t// 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For\n\t// GPU images, recommended presets use one of these resolutions with refresh rates\n\t// 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,\n\t// 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,\n\t// 768x1024, 800x1600. Viewports outside this list may exhibit unstable live view\n\t// or recording behavior. If refresh_rate is not provided, it will be automatically\n\t// determined based on the resolution (higher resolutions use lower refresh rates\n\t// to keep bandwidth reasonable).\n\tViewport shared.BrowserViewportParam `json:\"viewport,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserPoolNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserPoolNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPoolNewParamsProfile struct {\n\t// Profile ID to load for browsers in this pool\n\tID param.Opt[string] `json:\"id,omitzero\"`\n\t// Profile name to load for browsers in this pool (instead of id). Must be 1-255\n\t// characters, using letters, numbers, dots, underscores, or hyphens.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nProfile configuration for browsers in a pool. Provide either id or name. Profiles must be created beforehand. Unlike single browser sessions, pools load the profile read-only and never persist changes back to it, so save\\_changes is omitted here. Any save\\_changes value sent on a pool profile is silently ignored rather than rejected.\n\n```go\nfunc (r BrowserPoolNewParamsProfile) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserPoolNewParamsProfile) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPoolNewParamsRegion string\n```\nGeographic region for the browser pool. It is fixed once the pool is created. Region selection requires a Start-Up or Enterprise plan, defaults to us-east when omitted on create.\n\n```go\nconst (\n\tBrowserPoolNewParamsRegionUsEast      BrowserPoolNewParamsRegion = \"us-east\"\n\tBrowserPoolNewParamsRegionUsWest      BrowserPoolNewParamsRegion = \"us-west\"\n\tBrowserPoolNewParamsRegionEuWest      BrowserPoolNewParamsRegion = \"eu-west\"\n\tBrowserPoolNewParamsRegionApSoutheast BrowserPoolNewParamsRegion = \"ap-southeast\"\n)\n```\n\n```go\ntype BrowserPoolNewParamsTelemetry struct {\n\t// Request shortcut for browser telemetry capture. True enables capture; with no\n\t// browser category settings it captures the default set (control, connection,\n\t// system, captcha), and any browser category settings are layered onto that\n\t// default set. On update, enabled=true resolves the config fresh from the default\n\t// set plus any provided categories, replacing the session's current selection\n\t// rather than merging onto it; omit enabled to merge categories onto the current\n\t// selection instead. False stops capture on update and starts no capture on\n\t// create. enabled=false cannot be combined with browser category settings.\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// Per-category capture flags. The operational categories (control, connection,\n\t// system, captcha) are captured whenever telemetry is enabled; set one to\n\t// enabled=false to opt out. The CDP categories (console, network, page,\n\t// interaction), screenshot and platform are off by default; set enabled=true to\n\t// opt in. On create, provided categories layer onto the default set. On update,\n\t// provided categories merge onto the session's current config; when no telemetry\n\t// is active this falls back to the default set (matching create). If browser is\n\t// omitted or empty, the default set is used. A browser config that disables every\n\t// category stops capture on update and starts no capture on create.\n\tBrowser BrowserTelemetryCategoriesConfigParam `json:\"browser,omitzero\"`\n\t// Where to export this session's captured telemetry. Omit to capture without\n\t// exporting.\n\tExport BrowserPoolNewParamsTelemetryExport `json:\"export,omitzero\"`\n\t// Whether to persist this session's captured telemetry to Kernel storage.\n\tStorage BrowserPoolNewParamsTelemetryStorage `json:\"storage,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nTelemetry configuration applied to browsers warmed into this pool. Set enabled to true to start capture using the default set, or provide browser category settings. If omitted, null, set to an empty object ({}), set to enabled: false without browser category settings, or all four CDP categories are explicitly disabled, no telemetry is configured on the pool. Only applied to newly-warmed browsers.\n\n```go\nfunc (r BrowserPoolNewParamsTelemetry) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserPoolNewParamsTelemetry) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPoolNewParamsTelemetryExport struct {\n\t// Export captured telemetry over OTLP to one of the org's configured destinations.\n\tOtlp BrowserPoolNewParamsTelemetryExportOtlp `json:\"otlp,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nWhere to export this session's captured telemetry. Omit to capture without exporting.\n\n```go\nfunc (r BrowserPoolNewParamsTelemetryExport) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserPoolNewParamsTelemetryExport) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPoolNewParamsTelemetryExportOtlp struct {\n\t// Whether to export captured telemetry over OTLP. Setting destination implies\n\t// enabled=true, so this only needs to be set explicitly to disable export\n\t// (enabled=false with a destination is rejected).\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// OTLP destination to export this session's captured telemetry to. Provide either\n\t// id or name. Requires telemetry capture to be enabled.\n\tDestination BrowserPoolNewParamsTelemetryExportOtlpDestination `json:\"destination,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nExport captured telemetry over OTLP to one of the org's configured destinations.\n\n```go\nfunc (r BrowserPoolNewParamsTelemetryExportOtlp) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserPoolNewParamsTelemetryExportOtlp) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPoolNewParamsTelemetryExportOtlpDestination struct {\n\t// OTLP destination ID\n\tID param.Opt[string] `json:\"id,omitzero\"`\n\t// OTLP destination name\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nOTLP destination to export this session's captured telemetry to. Provide either id or name. Requires telemetry capture to be enabled.\n\n```go\nfunc (r BrowserPoolNewParamsTelemetryExportOtlpDestination) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserPoolNewParamsTelemetryExportOtlpDestination) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPoolNewParamsTelemetryStorage struct {\n\t// Whether captured telemetry is persisted to Kernel storage. Defaults to true.\n\t// Setting false requires an OTLP destination and cannot be changed after the\n\t// browser is created.\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nWhether to persist this session's captured telemetry to Kernel storage.\n\n```go\nfunc (r BrowserPoolNewParamsTelemetryStorage) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserPoolNewParamsTelemetryStorage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPoolRef struct {\n\t// Browser pool ID\n\tID string `json:\"id\" api:\"required\"`\n\t// Browser pool name, if set\n\tName string `json:\"name\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tName        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nBrowser pool this session was acquired from, if any.\n\n```go\nfunc (r BrowserPoolRef) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserPoolRef) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPoolRegion string\n```\nGeographic region of the browser pool. Fixed once the pool is created.\n\n```go\nconst (\n\tBrowserPoolRegionUsEast      BrowserPoolRegion = \"us-east\"\n\tBrowserPoolRegionUsWest      BrowserPoolRegion = \"us-west\"\n\tBrowserPoolRegionEuWest      BrowserPoolRegion = \"eu-west\"\n\tBrowserPoolRegionApSoutheast BrowserPoolRegion = \"ap-southeast\"\n)\n```\n\n```go\ntype BrowserPoolReleaseParams struct {\n\t// Browser session ID to release back to the pool\n\tSessionID string `json:\"session_id\" api:\"required\"`\n\t// Whether to reuse the browser instance or destroy it and create a new one.\n\t// Defaults to true. A reused browser keeps the configuration it was created with,\n\t// so it does not pick up pool configuration changes made while it was in use.\n\t// Release with `reuse: false`, or flush the pool afterward, to rebuild it with the\n\t// current configuration. Browsers loaded with an acquire-time profile are always\n\t// destroyed and replaced, even when reuse is true.\n\tReuse param.Opt[bool] `json:\"reuse,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserPoolReleaseParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserPoolReleaseParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPoolService struct {\n\tOptions []option.RequestOption\n}\n```\nCreate and manage browser pools for acquiring and releasing browsers.\n\nBrowserPoolService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewBrowserPoolService](#NewBrowserPoolService) method instead.\n\n```go\nfunc NewBrowserPoolService(opts ...option.RequestOption) (r BrowserPoolService)\n```\nNewBrowserPoolService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *BrowserPoolService) Acquire(ctx context.Context, idOrName string, body BrowserPoolAcquireParams, opts ...option.RequestOption) (res *BrowserPoolAcquireResponse, err error)\n```\nLong-polling endpoint to acquire a browser from the pool. Returns immediately when a browser is available, or returns 204 No Content when the poll times out. The client should retry the request to continue waiting for a browser. The acquired browser will use the pool's timeout\\_seconds for its idle timeout.\n\nRequesting a profile returns 409 with code \\`profile\\_storage\\_unavailable\\` if the profile is stored in the organization's own storage bucket and that storage is paused or Kernel can't reach it, or the object there doesn't start with a profile archive's header or is larger than 4 GiB.\n\n```go\nfunc (r *BrowserPoolService) Delete(ctx context.Context, idOrName string, body BrowserPoolDeleteParams, opts ...option.RequestOption) (err error)\n```\nDelete a browser pool and all browsers in it. By default, deletion is blocked if browsers are currently leased. Use force=true to terminate leased browsers.\n\n```go\nfunc (r *BrowserPoolService) Flush(ctx context.Context, idOrName string, opts ...option.RequestOption) (err error)\n```\nDestroys all idle browsers in the pool; leased browsers are not affected.\n\n```go\nfunc (r *BrowserPoolService) Get(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *BrowserPool, err error)\n```\nRetrieve details for a single browser pool by its ID or name.\n\n```go\nfunc (r *BrowserPoolService) List(ctx context.Context, query BrowserPoolListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[BrowserPool], err error)\n```\nList browser pools in the resolved project.\n\n```go\nfunc (r *BrowserPoolService) ListAutoPaging(ctx context.Context, query BrowserPoolListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[BrowserPool]\n```\nList browser pools in the resolved project.\n\n```go\nfunc (r *BrowserPoolService) New(ctx context.Context, body BrowserPoolNewParams, opts ...option.RequestOption) (res *BrowserPool, err error)\n```\nCreate a new browser pool with the specified configuration and size. Pooled browsers load their profile read-only: any save\\_changes on the profile is ignored (not rejected), so pooled browsers never persist changes back to the profile.\n\n```go\nfunc (r *BrowserPoolService) Release(ctx context.Context, idOrName string, body BrowserPoolReleaseParams, opts ...option.RequestOption) (err error)\n```\nRelease a browser back to the pool, optionally recreating the browser instance.\n\n```go\nfunc (r *BrowserPoolService) Update(ctx context.Context, idOrName string, body BrowserPoolUpdateParams, opts ...option.RequestOption) (res *BrowserPool, err error)\n```\nUpdates the configuration used to create browsers in the pool. As with creation, save\\_changes on the pool profile is ignored (not rejected); pooled browsers never persist changes back to the profile. To clear the profile reference, send \\`profile: { \"id\": \"\" }\\`. Clearing the profile also disables \\`refresh\\_on\\_profile\\_update\\`.\n\n```go\ntype BrowserPoolUpdateParams struct {\n\t// Whether to discard all idle browsers and rebuild them immediately with the new\n\t// configuration. Defaults to false. Only browsers that are idle when the update\n\t// runs are rebuilt. A browser that is in use during the update keeps its original\n\t// configuration, except that its allowlist is reset to the current pool baseline\n\t// on release or the browser is replaced. For other configuration fields, if it is\n\t// later released with `reuse: true` it returns to the pool with that stale\n\t// configuration until it is discarded (by this flag on a later update, or by\n\t// flushing the pool).\n\tDiscardAllIdle param.Opt[bool] `json:\"discard_all_idle,omitzero\"`\n\t// If provided, replaces the percentage of the pool to fill per minute. The cap is\n\t// 25 for most organizations but can be raised per-organization, so only the lower\n\t// bound is enforced here.\n\tFillRatePerMinute param.Opt[int64] `json:\"fill_rate_per_minute,omitzero\"`\n\t// If provided, replaces whether browsers launch using a headless image.\n\tHeadless param.Opt[bool] `json:\"headless,omitzero\"`\n\t// If provided, replaces whether browsers launch in kiosk mode.\n\tKioskMode param.Opt[bool] `json:\"kiosk_mode,omitzero\"`\n\t// If provided, replaces the pool name. Empty string is a no-op; the pool name\n\t// cannot be cleared or reset to empty once assigned.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// Empty string clears the previously-selected proxy. Omit this field to leave the\n\t// proxy unchanged. Cannot be combined with proxy. Deprecated in favor of proxy.\n\tProxyID param.Opt[string] `json:\"proxy_id,omitzero\"`\n\t// If provided, replaces whether idle browsers are flushed when the profile the\n\t// pool uses is updated. When the pool's profile reference is changed (including\n\t// newly attached) and this field is omitted, it defaults to true. Re-sending the\n\t// same profile reference leaves this setting unchanged. Clearing the profile also\n\t// disables this setting. Requires a profile to be set on the pool.\n\tRefreshOnProfileUpdate param.Opt[bool] `json:\"refresh_on_profile_update,omitzero\"`\n\t// If provided, replaces the number of browsers to maintain in the pool. The\n\t// maximum size is determined by your organization's pooled sessions limit (the sum\n\t// of all pool sizes cannot exceed your limit).\n\tSize param.Opt[int64] `json:\"size,omitzero\"`\n\t// If provided, replaces the standby idle timeout for browsers in this pool.\n\t// Minimum 3, maximum 300. Applies to browsers acquired after the update.\n\tStandbyIdleTimeoutSeconds param.Opt[int64] `json:\"standby_idle_timeout_seconds,omitzero\"`\n\t// If provided, replaces whether replay recording starts automatically for future\n\t// acquired browsers.\n\tStartReplay param.Opt[bool] `json:\"start_replay,omitzero\"`\n\t// If provided, replaces the URL to navigate to when a new browser is warmed into\n\t// the pool. Empty string clears the previously-set URL. Omit this field to leave\n\t// it unchanged.\n\tStartURL param.Opt[string] `json:\"start_url,omitzero\"`\n\t// If provided, replaces whether browsers launch in stealth mode. stealth=true\n\t// without proxy or proxy_id moves a pool on direct egress to Kernel's default\n\t// stealth proxy. Cannot be combined with captcha_solver.enabled=false. Deprecated\n\t// in favor of captcha_solver and proxy.\n\tStealth param.Opt[bool] `json:\"stealth,omitzero\"`\n\t// If provided, replaces the default idle timeout in seconds for browsers acquired\n\t// from this pool before they are destroyed. Minimum 10, maximum 259200 (72 hours).\n\tTimeoutSeconds param.Opt[int64] `json:\"timeout_seconds,omitzero\"`\n\t// If provided, updates the pool's telemetry configuration. Omit, set to null, or\n\t// set to an empty object ({}) to leave the existing configuration unchanged. Set\n\t// enabled to true to enable capture using the default set. Set enabled to false to\n\t// clear the pool's telemetry. Provide browser category settings for per-category\n\t// updates, merged onto the pool's current configuration. Only applied to browsers\n\t// warmed after the update; browsers already in the pool keep their configuration\n\t// until discarded.\n\tTelemetry BrowserPoolUpdateParamsTelemetry `json:\"telemetry,omitzero\"`\n\t// If provided, replaces whether browsers in this pool automatically solve\n\t// CAPTCHAs. Enabling it on a pool with direct egress keeps direct egress unless\n\t// proxy, proxy_id, or stealth=true is also set.\n\tCaptchaSolver BrowserCaptchaSolverParam `json:\"captcha_solver,omitzero\"`\n\t// If provided, replaces the custom Chrome enterprise policy overrides applied to\n\t// all browsers in this pool. Empty object clears any previously-set policy. Keys\n\t// are Chrome enterprise policy names; values must match their expected types.\n\t// Blocked: kernel-managed policies (extensions, proxy, CDP/automation). See\n\t// https://chromeenterprise.google/policies/ The serialized JSON payload is capped\n\t// at 5 MiB.\n\tChromePolicy map[string]any `json:\"chrome_policy,omitzero\"`\n\t// Optional optimistic concurrency precondition. Send the network configuration\n\t// from the last pool response, or {} when it has no network configuration. The\n\t// entire update is rejected with 409 stale_network if the saved network differs,\n\t// checked atomically with the write. Omit for unconditional updates. Explicit\n\t// empty lists differ from omitted lists; route targets must match the saved\n\t// references (resolved IDs, not equivalent proxy names).\n\tExpectedNetwork BrowserNetworkConfigParam `json:\"expected_network,omitzero\"`\n\t// If provided, replaces the extension list. Empty array clears all\n\t// previously-selected extensions. Omit this field to leave extensions unchanged.\n\tExtensions []shared.BrowserExtensionParam `json:\"extensions,omitzero\"`\n\t// Memory requested for newly-warmed browsers in this pool: 1GiB, 2GiB, or 4GiB for\n\t// headless, 8GiB or 16GiB for headful. Existing browsers retain their original\n\t// allocation. Use discard_all_idle to replace idle browsers.\n\t//\n\t// Any of \"1GiB\", \"2GiB\", \"4GiB\", \"8GiB\", \"16GiB\".\n\tMemory BrowserPoolUpdateParamsMemory `json:\"memory,omitzero\"`\n\t// If provided, replaces the pool's network configuration. Omit to leave the\n\t// existing configuration unchanged; an empty object ({}) removes it, while\n\t// network: {private_hosts: []} or network: {proxy_routes: []} sets an explicit\n\t// empty list; allowed_hosts must be non-empty when supplied. Egress allowlists and\n\t// proxy routes require proxy-v3; the pool will not provision browsers through\n\t// Envoy if proxy-v3 is unavailable. Changing allowed_hosts automatically replaces\n\t// idle browsers. Leased browsers retain their allowlist until release, when it is\n\t// reset to the current pool baseline or the browser is replaced if it cannot\n\t// safely receive that baseline. Stale browsers cannot be acquired. Other network\n\t// fields only apply to browsers created after the update; existing browsers keep\n\t// those fields until discarded (see discard_all_idle).\n\tNetwork BrowserNetworkConfigParam `json:\"network,omitzero\"`\n\t// Profile configuration for browsers in a pool. Provide either id or name.\n\t// Profiles must be created beforehand. Unlike single browser sessions, pools load\n\t// the profile read-only and never persist changes back to it, so save_changes is\n\t// omitted here. Any save_changes value sent on a pool profile is silently ignored\n\t// rather than rejected.\n\tProfile BrowserPoolUpdateParamsProfile `json:\"profile,omitzero\"`\n\t// Proxy configuration to apply to browsers warmed after the update. Omit to leave\n\t// the current configuration unchanged. Cannot be combined with proxy_id. Set mode\n\t// to direct to switch to direct egress. Set mode to default to use Kernel's\n\t// default stealth proxy for a pool with CAPTCHA solving enabled, or direct egress\n\t// otherwise. Updating proxy does not change CAPTCHA solver behavior.\n\tProxy BrowserProxyConfigParam `json:\"proxy,omitzero\"`\n\t// Initial browser window size in pixels with optional refresh rate. If omitted,\n\t// image defaults apply (1920x1080@25). For GPU images, the default is\n\t// 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.\n\t// Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,\n\t// 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For\n\t// GPU images, recommended presets use one of these resolutions with refresh rates\n\t// 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,\n\t// 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,\n\t// 768x1024, 800x1600. Viewports outside this list may exhibit unstable live view\n\t// or recording behavior. If refresh_rate is not provided, it will be automatically\n\t// determined based on the resolution (higher resolutions use lower refresh rates\n\t// to keep bandwidth reasonable).\n\tViewport shared.BrowserViewportParam `json:\"viewport,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserPoolUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserPoolUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPoolUpdateParamsMemory string\n```\nMemory requested for newly-warmed browsers in this pool: 1GiB, 2GiB, or 4GiB for headless, 8GiB or 16GiB for headful. Existing browsers retain their original allocation. Use discard\\_all\\_idle to replace idle browsers.\n\n```go\nconst (\n\tBrowserPoolUpdateParamsMemory1GiB  BrowserPoolUpdateParamsMemory = \"1GiB\"\n\tBrowserPoolUpdateParamsMemory2GiB  BrowserPoolUpdateParamsMemory = \"2GiB\"\n\tBrowserPoolUpdateParamsMemory4GiB  BrowserPoolUpdateParamsMemory = \"4GiB\"\n\tBrowserPoolUpdateParamsMemory8GiB  BrowserPoolUpdateParamsMemory = \"8GiB\"\n\tBrowserPoolUpdateParamsMemory16GiB BrowserPoolUpdateParamsMemory = \"16GiB\"\n)\n```\n\n```go\ntype BrowserPoolUpdateParamsProfile struct {\n\t// Profile ID to load for browsers in this pool\n\tID param.Opt[string] `json:\"id,omitzero\"`\n\t// Profile name to load for browsers in this pool (instead of id). Must be 1-255\n\t// characters, using letters, numbers, dots, underscores, or hyphens.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nProfile configuration for browsers in a pool. Provide either id or name. Profiles must be created beforehand. Unlike single browser sessions, pools load the profile read-only and never persist changes back to it, so save\\_changes is omitted here. Any save\\_changes value sent on a pool profile is silently ignored rather than rejected.\n\n```go\nfunc (r BrowserPoolUpdateParamsProfile) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserPoolUpdateParamsProfile) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPoolUpdateParamsTelemetry struct {\n\t// Request shortcut for browser telemetry capture. True enables capture; with no\n\t// browser category settings it captures the default set (control, connection,\n\t// system, captcha), and any browser category settings are layered onto that\n\t// default set. On update, enabled=true resolves the config fresh from the default\n\t// set plus any provided categories, replacing the session's current selection\n\t// rather than merging onto it; omit enabled to merge categories onto the current\n\t// selection instead. False stops capture on update and starts no capture on\n\t// create. enabled=false cannot be combined with browser category settings.\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// Per-category capture flags. The operational categories (control, connection,\n\t// system, captcha) are captured whenever telemetry is enabled; set one to\n\t// enabled=false to opt out. The CDP categories (console, network, page,\n\t// interaction), screenshot and platform are off by default; set enabled=true to\n\t// opt in. On create, provided categories layer onto the default set. On update,\n\t// provided categories merge onto the session's current config; when no telemetry\n\t// is active this falls back to the default set (matching create). If browser is\n\t// omitted or empty, the default set is used. A browser config that disables every\n\t// category stops capture on update and starts no capture on create.\n\tBrowser BrowserTelemetryCategoriesConfigParam `json:\"browser,omitzero\"`\n\t// Where to export this session's captured telemetry. Omit to capture without\n\t// exporting.\n\tExport BrowserPoolUpdateParamsTelemetryExport `json:\"export,omitzero\"`\n\t// Whether to persist this session's captured telemetry to Kernel storage.\n\tStorage BrowserPoolUpdateParamsTelemetryStorage `json:\"storage,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nIf provided, updates the pool's telemetry configuration. Omit, set to null, or set to an empty object ({}) to leave the existing configuration unchanged. Set enabled to true to enable capture using the default set. Set enabled to false to clear the pool's telemetry. Provide browser category settings for per-category updates, merged onto the pool's current configuration. Only applied to browsers warmed after the update; browsers already in the pool keep their configuration until discarded.\n\n```go\nfunc (r BrowserPoolUpdateParamsTelemetry) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserPoolUpdateParamsTelemetry) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPoolUpdateParamsTelemetryExport struct {\n\t// Export captured telemetry over OTLP to one of the org's configured destinations.\n\tOtlp BrowserPoolUpdateParamsTelemetryExportOtlp `json:\"otlp,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nWhere to export this session's captured telemetry. Omit to capture without exporting.\n\n```go\nfunc (r BrowserPoolUpdateParamsTelemetryExport) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserPoolUpdateParamsTelemetryExport) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPoolUpdateParamsTelemetryExportOtlp struct {\n\t// Whether to export captured telemetry over OTLP. Setting destination implies\n\t// enabled=true, so this only needs to be set explicitly to disable export\n\t// (enabled=false with a destination is rejected).\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// OTLP destination to export this session's captured telemetry to. Provide either\n\t// id or name. Requires telemetry capture to be enabled.\n\tDestination BrowserPoolUpdateParamsTelemetryExportOtlpDestination `json:\"destination,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nExport captured telemetry over OTLP to one of the org's configured destinations.\n\n```go\nfunc (r BrowserPoolUpdateParamsTelemetryExportOtlp) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserPoolUpdateParamsTelemetryExportOtlp) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPoolUpdateParamsTelemetryExportOtlpDestination struct {\n\t// OTLP destination ID\n\tID param.Opt[string] `json:\"id,omitzero\"`\n\t// OTLP destination name\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nOTLP destination to export this session's captured telemetry to. Provide either id or name. Requires telemetry capture to be enabled.\n\n```go\nfunc (r BrowserPoolUpdateParamsTelemetryExportOtlpDestination) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserPoolUpdateParamsTelemetryExportOtlpDestination) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserPoolUpdateParamsTelemetryStorage struct {\n\t// Whether captured telemetry is persisted to Kernel storage. Defaults to true.\n\t// Setting false requires an OTLP destination and cannot be changed after the\n\t// browser is created.\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nWhether to persist this session's captured telemetry to Kernel storage.\n\n```go\nfunc (r BrowserPoolUpdateParamsTelemetryStorage) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserPoolUpdateParamsTelemetryStorage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserProcessExecParams struct {\n\t// Executable or shell command to run.\n\tCommand string `json:\"command\" api:\"required\"`\n\t// Run the process as this user.\n\tAsUser param.Opt[string] `json:\"as_user,omitzero\"`\n\t// Working directory (absolute path) to run the command in.\n\tCwd param.Opt[string] `json:\"cwd,omitzero\"`\n\t// Maximum execution time in seconds.\n\tTimeoutSec param.Opt[int64] `json:\"timeout_sec,omitzero\"`\n\t// Run the process with root privileges.\n\tAsRoot param.Opt[bool] `json:\"as_root,omitzero\"`\n\t// Command arguments.\n\tArgs []string `json:\"args,omitzero\"`\n\t// Environment variables to set for the process.\n\tEnv map[string]string `json:\"env,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserProcessExecParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserProcessExecParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserProcessExecResponse struct {\n\t// Execution duration in milliseconds.\n\tDurationMs int64 `json:\"duration_ms\"`\n\t// Process exit code.\n\tExitCode int64 `json:\"exit_code\"`\n\t// Base64-encoded stderr buffer.\n\tStderrB64 string `json:\"stderr_b64\"`\n\t// Base64-encoded stdout buffer.\n\tStdoutB64 string `json:\"stdout_b64\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDurationMs  respjson.Field\n\t\tExitCode    respjson.Field\n\t\tStderrB64   respjson.Field\n\t\tStdoutB64   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nResult of a synchronous command execution.\n\n```go\nfunc (r BrowserProcessExecResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserProcessExecResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserProcessKillParams struct {\n\tIDOrName string `path:\"id_or_name\" api:\"required\" json:\"-\"`\n\t// Signal to send.\n\t//\n\t// Any of \"TERM\", \"KILL\", \"INT\", \"HUP\".\n\tSignal BrowserProcessKillParamsSignal `json:\"signal,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserProcessKillParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserProcessKillParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserProcessKillParamsSignal string\n```\nSignal to send.\n\n```go\nconst (\n\tBrowserProcessKillParamsSignalTerm BrowserProcessKillParamsSignal = \"TERM\"\n\tBrowserProcessKillParamsSignalKill BrowserProcessKillParamsSignal = \"KILL\"\n\tBrowserProcessKillParamsSignalInt  BrowserProcessKillParamsSignal = \"INT\"\n\tBrowserProcessKillParamsSignalHup  BrowserProcessKillParamsSignal = \"HUP\"\n)\n```\n\n```go\ntype BrowserProcessKillResponse struct {\n\t// Indicates success.\n\tOk bool `json:\"ok\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tOk          respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nGeneric OK response.\n\n```go\nfunc (r BrowserProcessKillResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserProcessKillResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserProcessResizeParams struct {\n\tIDOrName string `path:\"id_or_name\" api:\"required\" json:\"-\"`\n\t// New terminal columns.\n\tCols int64 `json:\"cols\" api:\"required\"`\n\t// New terminal rows.\n\tRows int64 `json:\"rows\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserProcessResizeParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserProcessResizeParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserProcessResizeResponse struct {\n\t// Indicates success.\n\tOk bool `json:\"ok\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tOk          respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nGeneric OK response.\n\n```go\nfunc (r BrowserProcessResizeResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserProcessResizeResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserProcessService struct {\n\tOptions []option.RequestOption\n}\n```\nExecute and manage processes on the browser instance.\n\nBrowserProcessService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewBrowserProcessService](#NewBrowserProcessService) method instead.\n\n```go\nfunc NewBrowserProcessService(opts ...option.RequestOption) (r BrowserProcessService)\n```\nNewBrowserProcessService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *BrowserProcessService) Exec(ctx context.Context, idOrName string, body BrowserProcessExecParams, opts ...option.RequestOption) (res *BrowserProcessExecResponse, err error)\n```\nExecute a command synchronously\n\n```go\nfunc (r *BrowserProcessService) Kill(ctx context.Context, processID string, params BrowserProcessKillParams, opts ...option.RequestOption) (res *BrowserProcessKillResponse, err error)\n```\nSend signal to process\n\n```go\nfunc (r *BrowserProcessService) Resize(ctx context.Context, processID string, params BrowserProcessResizeParams, opts ...option.RequestOption) (res *BrowserProcessResizeResponse, err error)\n```\nResize a PTY-backed process terminal\n\n```go\nfunc (r *BrowserProcessService) Spawn(ctx context.Context, idOrName string, body BrowserProcessSpawnParams, opts ...option.RequestOption) (res *BrowserProcessSpawnResponse, err error)\n```\nExecute a command asynchronously\n\n```go\nfunc (r *BrowserProcessService) Status(ctx context.Context, processID string, query BrowserProcessStatusParams, opts ...option.RequestOption) (res *BrowserProcessStatusResponse, err error)\n```\nGet process status\n\n```go\nfunc (r *BrowserProcessService) Stdin(ctx context.Context, processID string, params BrowserProcessStdinParams, opts ...option.RequestOption) (res *BrowserProcessStdinResponse, err error)\n```\nWrite to process stdin\n\n```go\nfunc (r *BrowserProcessService) StdoutStreamStreaming(ctx context.Context, processID string, query BrowserProcessStdoutStreamParams, opts ...option.RequestOption) (stream *ssestream.Stream[BrowserProcessStdoutStreamResponse])\n```\nStream process stdout via SSE\n\n```go\ntype BrowserProcessSpawnParams struct {\n\t// Executable or shell command to run.\n\tCommand string `json:\"command\" api:\"required\"`\n\t// Run the process as this user.\n\tAsUser param.Opt[string] `json:\"as_user,omitzero\"`\n\t// Working directory (absolute path) to run the command in.\n\tCwd param.Opt[string] `json:\"cwd,omitzero\"`\n\t// Maximum execution time in seconds.\n\tTimeoutSec param.Opt[int64] `json:\"timeout_sec,omitzero\"`\n\t// Allocate a pseudo-terminal (PTY) for interactive shells.\n\tAllocateTty param.Opt[bool] `json:\"allocate_tty,omitzero\"`\n\t// Run the process with root privileges.\n\tAsRoot param.Opt[bool] `json:\"as_root,omitzero\"`\n\t// Initial terminal columns. Only used when allocate_tty is true.\n\tCols param.Opt[int64] `json:\"cols,omitzero\"`\n\t// Initial terminal rows. Only used when allocate_tty is true.\n\tRows param.Opt[int64] `json:\"rows,omitzero\"`\n\t// Command arguments.\n\tArgs []string `json:\"args,omitzero\"`\n\t// Environment variables to set for the process.\n\tEnv map[string]string `json:\"env,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserProcessSpawnParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserProcessSpawnParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserProcessSpawnResponse struct {\n\t// OS process ID.\n\tPid int64 `json:\"pid\"`\n\t// Server-assigned identifier for the process.\n\tProcessID string `json:\"process_id\" format:\"uuid\"`\n\t// Timestamp when the process started.\n\tStartedAt time.Time `json:\"started_at\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tPid         respjson.Field\n\t\tProcessID   respjson.Field\n\t\tStartedAt   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nInformation about a spawned process.\n\n```go\nfunc (r BrowserProcessSpawnResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserProcessSpawnResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserProcessStatusParams struct {\n\tIDOrName string `path:\"id_or_name\" api:\"required\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype BrowserProcessStatusResponse struct {\n\t// Estimated CPU usage percentage.\n\tCPUPct float64 `json:\"cpu_pct\"`\n\t// Exit code if the process has exited.\n\tExitCode int64 `json:\"exit_code\" api:\"nullable\"`\n\t// Estimated resident memory usage in bytes.\n\tMemBytes int64 `json:\"mem_bytes\"`\n\t// Process state.\n\t//\n\t// Any of \"running\", \"exited\".\n\tState BrowserProcessStatusResponseState `json:\"state\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCPUPct      respjson.Field\n\t\tExitCode    respjson.Field\n\t\tMemBytes    respjson.Field\n\t\tState       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nCurrent status of a process.\n\n```go\nfunc (r BrowserProcessStatusResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserProcessStatusResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserProcessStatusResponseState string\n```\nProcess state.\n\n```go\nconst (\n\tBrowserProcessStatusResponseStateRunning BrowserProcessStatusResponseState = \"running\"\n\tBrowserProcessStatusResponseStateExited  BrowserProcessStatusResponseState = \"exited\"\n)\n```\n\n```go\ntype BrowserProcessStdinParams struct {\n\tIDOrName string `path:\"id_or_name\" api:\"required\" json:\"-\"`\n\t// Base64-encoded data to write.\n\tDataB64 string `json:\"data_b64\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserProcessStdinParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserProcessStdinParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserProcessStdinResponse struct {\n\t// Number of bytes written.\n\tWrittenBytes int64 `json:\"written_bytes\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tWrittenBytes respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nResult of writing to stdin.\n\n```go\nfunc (r BrowserProcessStdinResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserProcessStdinResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserProcessStdoutStreamParams struct {\n\tIDOrName string `path:\"id_or_name\" api:\"required\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype BrowserProcessStdoutStreamResponse struct {\n\t// Base64-encoded data from the process stream.\n\tDataB64 string `json:\"data_b64\"`\n\t// Lifecycle event type.\n\t//\n\t// Any of \"exit\".\n\tEvent BrowserProcessStdoutStreamResponseEvent `json:\"event\"`\n\t// Exit code when the event is \"exit\".\n\tExitCode int64 `json:\"exit_code\"`\n\t// Source stream of the data chunk.\n\t//\n\t// Any of \"stdout\", \"stderr\".\n\tStream BrowserProcessStdoutStreamResponseStream `json:\"stream\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDataB64     respjson.Field\n\t\tEvent       respjson.Field\n\t\tExitCode    respjson.Field\n\t\tStream      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSSE payload representing process output or lifecycle events.\n\n```go\nfunc (r BrowserProcessStdoutStreamResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserProcessStdoutStreamResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserProcessStdoutStreamResponseEvent string\n```\nLifecycle event type.\n\n```go\nconst (\n\tBrowserProcessStdoutStreamResponseEventExit BrowserProcessStdoutStreamResponseEvent = \"exit\"\n)\n```\n\n```go\ntype BrowserProcessStdoutStreamResponseStream string\n```\nSource stream of the data chunk.\n\n```go\nconst (\n\tBrowserProcessStdoutStreamResponseStreamStdout BrowserProcessStdoutStreamResponseStream = \"stdout\"\n\tBrowserProcessStdoutStreamResponseStreamStderr BrowserProcessStdoutStreamResponseStream = \"stderr\"\n)\n```\n\n```go\ntype BrowserProfileParam = shared.BrowserProfileParam\n```\nProfile selection for the browser session. Provide either id or name. If specified, the matching profile will be loaded into the browser session. Profiles must be created beforehand.\n\nThis is an alias to an internal type.\n\n```go\ntype BrowserProxy struct {\n\t// Selected proxy ID.\n\tID string `json:\"id\"`\n\t// Proxy egress mode. direct forces no proxy. default uses Kernel's default stealth\n\t// proxy for browsers with CAPTCHA solving enabled, including stealth browsers, or\n\t// direct egress otherwise. default is primarily useful on browser update to\n\t// restore the browser default after selected-proxy egress.\n\t//\n\t// Any of \"direct\", \"default\".\n\tMode BrowserProxyMode `json:\"mode\"`\n\t// Selected proxy name.\n\tName string `json:\"name\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tMode        respjson.Field\n\t\tName        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nResolved proxy configuration for a browser session. Selected proxies are returned by stable ID.\n\n```go\nfunc (r BrowserProxy) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserProxy) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserProxyConfig struct {\n\t// Proxy ID.\n\tID string `json:\"id\"`\n\t// Proxy egress mode. direct forces no proxy. default uses Kernel's default stealth\n\t// proxy for browsers with CAPTCHA solving enabled, including stealth browsers, or\n\t// direct egress otherwise. default is primarily useful on browser update to\n\t// restore the browser default after selected-proxy egress.\n\t//\n\t// Any of \"direct\", \"default\".\n\tMode BrowserProxyMode `json:\"mode\"`\n\t// Proxy name. Must match exactly one active proxy in the project.\n\tName string `json:\"name\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tMode        respjson.Field\n\t\tName        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nBrowser proxy configuration. Provide exactly one of mode, id, or name; an empty object is invalid. Set mode to direct for no proxy. Set mode to default to use Kernel's default stealth proxy for browsers with CAPTCHA solving enabled, including stealth browsers, or direct egress otherwise. Select id or name to use that proxy. The selected proxy must be in the same project as the browser. Names must match exactly one active proxy; use id for stable references. Proxy configuration changes only egress and does not change CAPTCHA solver behavior. A browser using mode=direct keeps the CAPTCHA solver if it was enabled. When proxy is omitted on browser creation, stealth browsers use Kernel's default stealth proxy and other browsers use direct egress. When omitted on update, the current configuration is unchanged.\n\n```go\nfunc (r BrowserProxyConfig) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r BrowserProxyConfig) ToParam() BrowserProxyConfigParam\n```\nToParam converts this BrowserProxyConfig to a BrowserProxyConfigParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with BrowserProxyConfigParam.Overrides()\n\n```go\nfunc (r *BrowserProxyConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserProxyConfigParam struct {\n\t// Proxy ID.\n\tID param.Opt[string] `json:\"id,omitzero\"`\n\t// Proxy name. Must match exactly one active proxy in the project.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// Proxy egress mode. direct forces no proxy. default uses Kernel's default stealth\n\t// proxy for browsers with CAPTCHA solving enabled, including stealth browsers, or\n\t// direct egress otherwise. default is primarily useful on browser update to\n\t// restore the browser default after selected-proxy egress.\n\t//\n\t// Any of \"direct\", \"default\".\n\tMode BrowserProxyMode `json:\"mode,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nBrowser proxy configuration. Provide exactly one of mode, id, or name; an empty object is invalid. Set mode to direct for no proxy. Set mode to default to use Kernel's default stealth proxy for browsers with CAPTCHA solving enabled, including stealth browsers, or direct egress otherwise. Select id or name to use that proxy. The selected proxy must be in the same project as the browser. Names must match exactly one active proxy; use id for stable references. Proxy configuration changes only egress and does not change CAPTCHA solver behavior. A browser using mode=direct keeps the CAPTCHA solver if it was enabled. When proxy is omitted on browser creation, stealth browsers use Kernel's default stealth proxy and other browsers use direct egress. When omitted on update, the current configuration is unchanged.\n\n```go\nfunc (r BrowserProxyConfigParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserProxyConfigParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserProxyErrorEvent struct {\n\tCategory constant.Network `json:\"category\" default:\"network\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64               `json:\"ts\" api:\"required\"`\n\tType constant.ProxyError `json:\"type\" default:\"proxy_error\"`\n\t// Browser event context stamped by the browser monitor onto all CDP-sourced\n\t// events. Identifies the target, frame, and navigation epoch in which the event\n\t// occurred.\n\tData BrowserProxyErrorEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA branded proxy-layer failure observed by the browser. Emitted when the metro egress host-proxy serves a branded error page whose response carries the X-Kernel-Proxy-Error header: a 502 for proxy-layer failures, or a 403 when the session's network policy blocks the destination. Low-volume and carries a typed code. Its value is per-session and per-URL attribution for sessions that already capture the network stream: proxy failures are only observable while the CDP network collector is running, so this is an opt-in refinement of the raw network events rather than a default-on alerting signal.\n\n```go\nfunc (r BrowserProxyErrorEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserProxyErrorEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserProxyErrorEventData struct {\n\t// Proxy-layer error code: the X-Kernel-Proxy-Error response header value from a\n\t// branded error page served by the metro egress host-proxy. Values mirror what the\n\t// proxy emits: destination_blocked, destination_route_unavailable,\n\t// network_policy_denied, provider_blacklisted, provider_unreachable,\n\t// provider_rejected, origin_tls_timeout, origin_response_incomplete,\n\t// proxy_unavailable, restricted_route_unavailable, upstream_timeout,\n\t// upstream_dns_failure, upstream_connect_failed, payment_window_expired,\n\t// payment_reveal_refused. A header value the browser image does not recognize is\n\t// reported as unknown, with the header value in raw_code.\n\t//\n\t// Any of \"destination_blocked\", \"destination_route_unavailable\",\n\t// \"network_policy_denied\", \"provider_blacklisted\", \"provider_unreachable\",\n\t// \"provider_rejected\", \"origin_tls_timeout\", \"origin_response_incomplete\",\n\t// \"proxy_unavailable\", \"restricted_route_unavailable\", \"upstream_timeout\",\n\t// \"upstream_dns_failure\", \"upstream_connect_failed\", \"payment_window_expired\",\n\t// \"payment_reveal_refused\", \"unknown\".\n\tCode string `json:\"code\" api:\"required\"`\n\t// CDP request identifier matching the originating request.\n\tRequestID string `json:\"request_id\" api:\"required\"`\n\t// HTTP response status of the branded error page (502, or 403 for\n\t// network_policy_denied).\n\tStatus int64 `json:\"status\" api:\"required\"`\n\t// HTTP method of the failed request, when known.\n\tMethod string `json:\"method\"`\n\t// Sanitized X-Kernel-Proxy-Error header value, present only when code is unknown.\n\t// Surrounding whitespace is removed, the value is lowercased, characters outside\n\t// [a-z0-9_] are replaced with \\_, and the result is truncated to at most 64\n\t// characters.\n\tRawCode string `json:\"raw_code\"`\n\t// CDP Network.ResourceType for the request, when known.\n\tResourceType string `json:\"resource_type\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCode         respjson.Field\n\t\tRequestID    respjson.Field\n\t\tStatus       respjson.Field\n\t\tMethod       respjson.Field\n\t\tRawCode      respjson.Field\n\t\tResourceType respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n\tBrowserEventContext\n}\n```\nBrowser event context stamped by the browser monitor onto all CDP-sourced events. Identifies the target, frame, and navigation epoch in which the event occurred.\n\n```go\nfunc (r BrowserProxyErrorEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserProxyErrorEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserProxyMode string\n```\nProxy egress mode. direct forces no proxy. default uses Kernel's default stealth proxy for browsers with CAPTCHA solving enabled, including stealth browsers, or direct egress otherwise. default is primarily useful on browser update to restore the browser default after selected-proxy egress.\n\n```go\nconst (\n\tBrowserProxyModeDirect  BrowserProxyMode = \"direct\"\n\tBrowserProxyModeDefault BrowserProxyMode = \"default\"\n)\n```\n\n```go\ntype BrowserReplContentUnion struct {\n\t// This field is from variant [BrowserReplTextContent].\n\tChannel BrowserReplTextContentChannel `json:\"channel\"`\n\t// This field is from variant [BrowserReplTextContent].\n\tText string `json:\"text\"`\n\t// Any of \"text\", \"image\".\n\tType string `json:\"type\"`\n\t// This field is from variant [BrowserReplImageContent].\n\tDataB64 string `json:\"data_b64\"`\n\t// This field is from variant [BrowserReplImageContent].\n\tMimeType string `json:\"mime_type\"`\n\tJSON     struct {\n\t\tChannel  respjson.Field\n\t\tText     respjson.Field\n\t\tType     respjson.Field\n\t\tDataB64  respjson.Field\n\t\tMimeType respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nBrowserReplContentUnion contains all possible properties and values from [BrowserReplTextContent](#BrowserReplTextContent), [BrowserReplImageContent](#BrowserReplImageContent).\n\nUse the [BrowserReplContentUnion.AsAny](#BrowserReplContentUnion.AsAny) method to switch on the variant.\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u BrowserReplContentUnion) AsAny() anyBrowserReplContent\n```\nUse the following switch statement to find the correct variant\n\n\tswitch variant := BrowserReplContentUnion.AsAny().(type) {\n\tcase kernel.BrowserReplTextContent:\n\tcase kernel.BrowserReplImageContent:\n\tdefault:\n\t  fmt.Errorf(\"no variant present\")\n\t}\n\n```go\nfunc (u BrowserReplContentUnion) AsImage() (v BrowserReplImageContent)\n```\n\n```go\nfunc (u BrowserReplContentUnion) AsText() (v BrowserReplTextContent)\n```\n\n```go\nfunc (u BrowserReplContentUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserReplContentUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserReplImageContent struct {\n\tDataB64  string `json:\"data_b64\" api:\"required\"`\n\tMimeType string `json:\"mime_type\" api:\"required\"`\n\t// Any of \"image\".\n\tType BrowserReplImageContentType `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDataB64     respjson.Field\n\t\tMimeType    respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserReplImageContent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserReplImageContent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserReplImageContentType string\n```\n\n```go\nconst (\n\tBrowserReplImageContentTypeImage BrowserReplImageContentType = \"image\"\n)\n```\n\n```go\ntype BrowserReplParams struct {\n\t// Request to execute code in the persistent Browser REPL.\n\tBrowserReplRequest BrowserReplRequestParam\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserReplParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserReplParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserReplRequestParam struct {\n\t// JavaScript evaluated in a persistent Node.js runtime. Top-level bindings persist\n\t// until the browser VM's API process exits, the REPL is reset, or the REPL is\n\t// terminated after a crash or timeout. Static top-level imports are unsupported;\n\t// use dynamic `import()`. Expression values are ignored; emit output with\n\t// `repl.write(...)`, console methods, or `repl.emitImage(...)`. May be empty only\n\t// when `reset` is true.\n\tCode string `json:\"code\" api:\"required\"`\n\t// Terminate the current REPL, start a fresh one, and then evaluate code.\n\tReset param.Opt[bool] `json:\"reset,omitzero\"`\n\t// Maximum execution time in seconds. Default is 60.\n\tTimeoutSec param.Opt[int64] `json:\"timeout_sec,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nRequest to execute code in the persistent Browser REPL.\n\nThe property Code is required.\n\n```go\nfunc (r BrowserReplRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserReplRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserReplResult struct {\n\t// CUID2 identifying the exact state-holding REPL process used for this execution.\n\t// Stable across calls and Chromium reconnects; changes after an API restart,\n\t// explicit reset, execution timeout, or REPL crash.\n\tReplID string `json:\"repl_id\" api:\"required\"`\n\t// Whether the code executed successfully.\n\tSuccess bool `json:\"success\" api:\"required\"`\n\t// Optional ordered text/image output produced by the execution.\n\tContent []BrowserReplContentUnion `json:\"content\"`\n\t// True if text or image output was dropped or truncated due to response limits.\n\tContentTruncated bool `json:\"content_truncated\"`\n\t// Wall-clock execution time in milliseconds.\n\tDurationMs int64 `json:\"duration_ms\"`\n\t// Error message if execution failed.\n\tError string `json:\"error\"`\n\t// True if the REPL identified by `repl_id` was terminated by this request. The\n\t// next request lazily starts a fresh REPL with a new `repl_id`.\n\tReplTerminated bool `json:\"repl_terminated\"`\n\t// Stack trace if execution failed.\n\tStack string `json:\"stack\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tReplID           respjson.Field\n\t\tSuccess          respjson.Field\n\t\tContent          respjson.Field\n\t\tContentTruncated respjson.Field\n\t\tDurationMs       respjson.Field\n\t\tError            respjson.Field\n\t\tReplTerminated   respjson.Field\n\t\tStack            respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nResult of Browser REPL code execution.\n\n```go\nfunc (r BrowserReplResult) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserReplResult) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserReplTextContent struct {\n\t// `write` is emitted by `repl.write`; `stdout` and `stderr` are emitted by console\n\t// methods.\n\t//\n\t// Any of \"write\", \"stdout\", \"stderr\".\n\tChannel BrowserReplTextContentChannel `json:\"channel\" api:\"required\"`\n\tText    string                        `json:\"text\" api:\"required\"`\n\t// Any of \"text\".\n\tType BrowserReplTextContentType `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tChannel     respjson.Field\n\t\tText        respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserReplTextContent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserReplTextContent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserReplTextContentChannel string\n```\n\\`write\\` is emitted by \\`repl.write\\`; \\`stdout\\` and \\`stderr\\` are emitted by console methods.\n\n```go\nconst (\n\tBrowserReplTextContentChannelWrite  BrowserReplTextContentChannel = \"write\"\n\tBrowserReplTextContentChannelStdout BrowserReplTextContentChannel = \"stdout\"\n\tBrowserReplTextContentChannelStderr BrowserReplTextContentChannel = \"stderr\"\n)\n```\n\n```go\ntype BrowserReplTextContentType string\n```\n\n```go\nconst (\n\tBrowserReplTextContentTypeText BrowserReplTextContentType = \"text\"\n)\n```\n\n```go\ntype BrowserReplayDownloadParams struct {\n\tIDOrName string `path:\"id_or_name\" api:\"required\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype BrowserReplayListResponse struct {\n\t// Unique identifier for the replay recording.\n\tReplayID string `json:\"replay_id\" api:\"required\"`\n\t// Timestamp when replay finished\n\tFinishedAt time.Time `json:\"finished_at\" api:\"nullable\" format:\"date-time\"`\n\t// URL for viewing the replay recording.\n\tReplayViewURL string `json:\"replay_view_url\"`\n\t// Timestamp when replay started\n\tStartedAt time.Time `json:\"started_at\" api:\"nullable\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tReplayID      respjson.Field\n\t\tFinishedAt    respjson.Field\n\t\tReplayViewURL respjson.Field\n\t\tStartedAt     respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nInformation about a browser replay recording.\n\n```go\nfunc (r BrowserReplayListResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserReplayListResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserReplayService struct {\n\tOptions []option.RequestOption\n}\n```\nRecord and manage browser session video replays.\n\nBrowserReplayService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewBrowserReplayService](#NewBrowserReplayService) method instead.\n\n```go\nfunc NewBrowserReplayService(opts ...option.RequestOption) (r BrowserReplayService)\n```\nNewBrowserReplayService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *BrowserReplayService) Download(ctx context.Context, replayID string, query BrowserReplayDownloadParams, opts ...option.RequestOption) (res *http.Response, err error)\n```\nDownload or stream the specified replay recording.\n\n```go\nfunc (r *BrowserReplayService) List(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *[]BrowserReplayListResponse, err error)\n```\nList all replays for the specified browser session.\n\n```go\nfunc (r *BrowserReplayService) Start(ctx context.Context, idOrName string, body BrowserReplayStartParams, opts ...option.RequestOption) (res *BrowserReplayStartResponse, err error)\n```\nStart recording the browser session and return a replay ID.\n\n```go\nfunc (r *BrowserReplayService) Stop(ctx context.Context, replayID string, body BrowserReplayStopParams, opts ...option.RequestOption) (err error)\n```\nStop the specified replay recording and persist the video.\n\n```go\ntype BrowserReplayStartParams struct {\n\t// Recording framerate in fps. Values above 20 require GPU to be enabled on the\n\t// browser session.\n\tFramerate param.Opt[int64] `json:\"framerate,omitzero\"`\n\t// Maximum recording duration in seconds.\n\tMaxDurationInSeconds param.Opt[int64] `json:\"max_duration_in_seconds,omitzero\"`\n\t// Record audio in addition to video. When false (the default), the recording is\n\t// video-only.\n\tRecordAudio param.Opt[bool] `json:\"record_audio,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserReplayStartParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserReplayStartParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserReplayStartResponse struct {\n\t// Unique identifier for the replay recording.\n\tReplayID string `json:\"replay_id\" api:\"required\"`\n\t// Timestamp when replay finished\n\tFinishedAt time.Time `json:\"finished_at\" api:\"nullable\" format:\"date-time\"`\n\t// URL for viewing the replay recording.\n\tReplayViewURL string `json:\"replay_view_url\"`\n\t// Timestamp when replay started\n\tStartedAt time.Time `json:\"started_at\" api:\"nullable\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tReplayID      respjson.Field\n\t\tFinishedAt    respjson.Field\n\t\tReplayViewURL respjson.Field\n\t\tStartedAt     respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nInformation about a browser replay recording.\n\n```go\nfunc (r BrowserReplayStartResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserReplayStartResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserReplayStopParams struct {\n\tIDOrName string `path:\"id_or_name\" api:\"required\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype BrowserSaveProfileParams struct {\n\t// Destination profile for a snapshot of the running browser. Provide either id or\n\t// name. An id must identify an existing profile. A name overwrites the matching\n\t// profile in the browser's project, or creates it when no matching profile exists.\n\tSaveProfileRequest SaveProfileRequestParam\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserSaveProfileParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserSaveProfileParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserService struct {\n\tOptions []option.RequestOption\n\t// Stream live telemetry events from a browser session, and manage the destinations\n\t// sessions export them to.\n\tTelemetry BrowserTelemetryService\n\t// Create and manage browser sessions.\n\tLiveView BrowserLiveViewService\n\t// Record and manage browser session video replays.\n\tReplays BrowserReplayService\n\t// Read, write, and manage files on the browser instance.\n\tFs BrowserFService\n\t// Execute and manage processes on the browser instance.\n\tProcess BrowserProcessService\n\t// Stream logs from the browser instance.\n\tLogs BrowserLogService\n\t// Control mouse, keyboard, and screen on the browser instance.\n\tComputer BrowserComputerService\n\t// Execute Playwright code against the browser instance and manage the executors it\n\t// runs in.\n\tPlaywright BrowserPlaywrightService\n\t// Discover and invoke native page tools across the browser instance.\n\tWebmcp BrowserWebmcpService\n}\n```\nBrowserService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewBrowserService](#NewBrowserService) method instead.\n\n```go\nfunc NewBrowserService(opts ...option.RequestOption) (r BrowserService)\n```\nNewBrowserService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *BrowserService) Curl(ctx context.Context, idOrName string, body BrowserCurlParams, opts ...option.RequestOption) (res *BrowserCurlResponse, err error)\n```\nSends an HTTP request through Chrome's HTTP request stack, inheriting the browser's TLS fingerprint, cookies, proxy configuration, and headers. Returns a structured JSON response with status, headers, body, and timing.\n\n```go\nfunc (r *BrowserService) DeleteByID(ctx context.Context, idOrName string, opts ...option.RequestOption) (err error)\n```\nDelete a browser session by ID or name\n\n```go\nfunc (r *BrowserService) Get(ctx context.Context, idOrName string, query BrowserGetParams, opts ...option.RequestOption) (res *BrowserGetResponse, err error)\n```\nGet information about a browser session.\n\n```go\nfunc (r *BrowserService) HTTPClient(id string, opts ...option.RequestOption) (*http.Client, error)\n```\nHTTPClient returns an [http.Client](/net/http#Client) that performs HTTP requests through the browser VM's internal /curl/raw path using cached browser route data.\n\n```go\nfunc (r *BrowserService) List(ctx context.Context, query BrowserListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[BrowserListResponse], err error)\n```\nList all browser sessions with pagination support. Use status parameter to filter by session state.\n\n```go\nfunc (r *BrowserService) ListAutoPaging(ctx context.Context, query BrowserListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[BrowserListResponse]\n```\nList all browser sessions with pagination support. Use status parameter to filter by session state.\n\n```go\nfunc (r *BrowserService) LoadExtensions(ctx context.Context, idOrName string, body BrowserLoadExtensionsParams, opts ...option.RequestOption) (err error)\n```\nLoads one or more unpacked extensions using live CDP activation when eligible. Chromium restarts when enterprise policy requires it or live activation fails.\n\n```go\nfunc (r *BrowserService) New(ctx context.Context, body BrowserNewParams, opts ...option.RequestOption) (res *BrowserNewResponse, err error)\n```\nCreate a new browser session from within an action. Returns 409 with code \\`profile\\_storage\\_unavailable\\` if the requested profile is stored in the organization's own storage bucket and that storage is paused or Kernel can't reach it, or the object there doesn't start with a profile archive's header or is larger than 4 GiB.\n\n```go\nfunc (r *BrowserService) Repl(ctx context.Context, idOrName string, body BrowserReplParams, opts ...option.RequestOption) (res *BrowserReplResult, err error)\n```\nExecute JavaScript in a persistent Node.js runtime inside the browser VM. Top-level bindings, closures, mutations, and dynamically imported modules persist across calls until the REPL is reset or replaced. Start with \\`repl.help()\\` to list available methods, or call \\`repl.help(\"click\")\\` for detailed help.\n\nExpression values are ignored. Emit ordered text or image output with \\`repl.write(...)\\`, console methods, or \\`repl.emitImage(...)\\`. The runtime also exposes browser-control helpers, WebMCP, Patchright, Playwright, and raw CDP.\n\nExecutions are serialized. A timeout, crash, OOM, or protocol failure terminates the REPL and changes its \\`repl\\_id\\`. This is unrestricted code execution inside the browser VM and is not sandboxed.\n\n```go\nfunc (r *BrowserService) SaveProfile(ctx context.Context, idOrName string, body BrowserSaveProfileParams, opts ...option.RequestOption) (res *Profile, err error)\n```\nSaves the running browser's current user-data state to an existing or new profile without ending the browser session.\n\nSaving restarts the browser. Active CDP and WebDriver connections are closed and must reconnect, and WebDriver clients must create a new session. Open tabs are restored, but pages reload and in-memory page state is lost. The browser is stopped only while its user data is copied; this request returns once the restarted browser accepts CDP connections again and the profile has been uploaded. Caches, Service Worker storage and Google Drive IndexedDB data are left out of the saved profile but kept in the running browser.\n\nThis does not attach the destination profile to the browser or change its save\\_changes setting. Active browsers that already loaded the destination profile keep their in-memory state. Pools with refresh\\_on\\_profile\\_update enabled flush idle sessions and replenish them from the new snapshot; other browsers receive it the next time they load the profile. When saves made with this endpoint to the same profile overlap, the save that started most recently wins, even if an earlier one finishes later. The automatic save at the end of a session whose profile has save\\_changes enabled is ordered against these saves by when each finishes.\n\nA successful save restarts the browser's inactivity timeout (timeout\\_seconds). A failed save leaves it unchanged.\n\nReturns 409 when the browser is no longer active, when a pooled browser was released or reacquired after the request was made (browser\\_lease\\_changed), or when the browser is briefly unable to accept a save (browser\\_busy), in which case the request can be retried.\n\nProfiles stored in the organization's own storage bucket can't be saved from a running browser: this returns 400 with code \\`unsupported\\_profile\\_storage\\`. Their changes are saved at the end of a session that loaded them with save\\_changes enabled. Saving to a new profile that would be stored there returns the same 400, or 409 with code \\`profile\\_storage\\_unavailable\\` if that storage is paused.\n\n```go\nfunc (r *BrowserService) Update(ctx context.Context, idOrName string, body BrowserUpdateParams, opts ...option.RequestOption) (res *BrowserUpdateResponse, err error)\n```\nUpdate a browser session. Loading a profile returns 409 with code \\`profile\\_storage\\_unavailable\\` if the profile is stored in the organization's own storage bucket and that storage is paused or Kernel can't reach it, or the object there doesn't start with a profile archive's header or is larger than 4 GiB.\n\n```go\ntype BrowserServiceCrashedEvent struct {\n\tCategory constant.System `json:\"category\" default:\"system\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                          `json:\"ts\" api:\"required\"`\n\tType constant.ServiceCrashed        `json:\"type\" default:\"service_crashed\"`\n\tData BrowserServiceCrashedEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA managed service exited unexpectedly. Intentional stops do not produce this event; only unexpected exits and terminal restart-give-up transitions do.\n\n```go\nfunc (r BrowserServiceCrashedEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserServiceCrashedEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserServiceCrashedEventData struct {\n\t// Lifecycle phase the crash occurred in. startup: the process died before reaching\n\t// a healthy running state. running: a previously healthy process died\n\t// unexpectedly. gave_up: the process manager exhausted its restart attempts and\n\t// stopped trying.\n\t//\n\t// Any of \"startup\", \"running\", \"gave_up\".\n\tPhase string `json:\"phase\" api:\"required\"`\n\t// Program name of the crashed service (e.g. chromium, mutter, kernel-images-api).\n\tServiceName string `json:\"service_name\" api:\"required\"`\n\t// PID of the crashed process. Absent when the process manager gave up after\n\t// exhausting restart attempts.\n\tPid int64 `json:\"pid\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tPhase       respjson.Field\n\t\tServiceName respjson.Field\n\t\tPid         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserServiceCrashedEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserServiceCrashedEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserSystemOomKillEvent struct {\n\tCategory constant.System `json:\"category\" default:\"system\"`\n\t// Provenance metadata identifying which producer emitted the event.\n\tSource BrowserEventSource `json:\"source\" api:\"required\"`\n\t// Event timestamp in Unix microseconds.\n\tTs   int64                         `json:\"ts\" api:\"required\"`\n\tType constant.SystemOomKill        `json:\"type\" default:\"system_oom_kill\"`\n\tData BrowserSystemOomKillEventData `json:\"data\"`\n\t// True if the data field was truncated due to size limits.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCategory    respjson.Field\n\t\tSource      respjson.Field\n\t\tTs          respjson.Field\n\t\tType        respjson.Field\n\t\tData        respjson.Field\n\t\tTruncated   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nThe Linux kernel OOM-killer terminated a process inside the VM. Fires for any process killed by the kernel due to memory exhaustion, including Chrome renderer subprocesses that are not supervised.\n\n```go\nfunc (r BrowserSystemOomKillEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserSystemOomKillEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserSystemOomKillEventData struct {\n\t// PID of the killed process.\n\tPid int64 `json:\"pid\" api:\"required\"`\n\t// Comm of the killed process as reported by the kernel (max 15 chars, truncated by\n\t// the kernel).\n\tProcessName string `json:\"process_name\" api:\"required\"`\n\t// Resident set size of the killed process in KiB (sum of anon-rss, file-rss, and\n\t// shmem-rss).\n\tRssKB int64 `json:\"rss_kb\" api:\"required\"`\n\t// Why the kernel decided to OOM-kill. none means global memory exhaustion; memcg\n\t// means a cgroup memory limit was hit; cpuset / memory_policy are\n\t// NUMA/policy-driven kills. Absent on kernels older than 5.0.\n\t//\n\t// Any of \"none\", \"memcg\", \"cpuset\", \"memory_policy\".\n\tConstraint string `json:\"constraint\"`\n\t// Free system memory in KiB at the time of the kill. Assumes a 4 KiB page size.\n\t// Does not include reclaimable caches. Absent if the kernel did not emit a\n\t// parseable Mem-Info section.\n\tMemFreeKB int64 `json:\"mem_free_kb\"`\n\t// Total system memory in KiB at the time of the kill. Assumes a 4 KiB page size.\n\t// Absent if the kernel did not emit a parseable Mem-Info section.\n\tMemTotalKB int64 `json:\"mem_total_kb\"`\n\t// Top processes by resident-set-size at the moment of the kill, sorted descending.\n\t// Empty if the kernel did not emit the Tasks state table. Capped at 5 entries.\n\tTopTasks []BrowserSystemOomKillEventDataTopTask `json:\"top_tasks\"`\n\t// PID of the triggering process. Absent if the kernel did not emit the standard\n\t// header line.\n\tTriggerPid int64 `json:\"trigger_pid\"`\n\t// Comm of the process whose allocation request caused the kernel to invoke the\n\t// OOM-killer. Often the same as process_name but can differ. Max 15 chars.\n\tTriggerProcessName string `json:\"trigger_process_name\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tPid                respjson.Field\n\t\tProcessName        respjson.Field\n\t\tRssKB              respjson.Field\n\t\tConstraint         respjson.Field\n\t\tMemFreeKB          respjson.Field\n\t\tMemTotalKB         respjson.Field\n\t\tTopTasks           respjson.Field\n\t\tTriggerPid         respjson.Field\n\t\tTriggerProcessName respjson.Field\n\t\tExtraFields        map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserSystemOomKillEventData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserSystemOomKillEventData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserSystemOomKillEventDataTopTask struct {\n\t// Comm of the process (max 15 chars, truncated by the kernel).\n\tName string `json:\"name\" api:\"required\"`\n\t// PID of the process.\n\tPid int64 `json:\"pid\" api:\"required\"`\n\t// Resident set size in KiB at the moment of the kill.\n\tRssKB int64 `json:\"rss_kb\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tName        respjson.Field\n\t\tPid         respjson.Field\n\t\tRssKB       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserSystemOomKillEventDataTopTask) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserSystemOomKillEventDataTopTask) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserTelemetryCategoriesConfig struct {\n\t// Captcha solver tasks and visible challenge outcomes. On by default.\n\tCaptcha BrowserTelemetryCategoryConfig `json:\"captcha\"`\n\t// Client attach/detach lifecycle for the CDP proxy and live view. On by default.\n\tConnection BrowserTelemetryCategoryConfig `json:\"connection\"`\n\t// Console output (log, warn, error) and uncaught exceptions. CDP category; off by\n\t// default.\n\tConsole BrowserTelemetryCategoryConfig `json:\"console\"`\n\t// Agent-driven actions against the browser — computer-control calls, Playwright\n\t// code execution, screenshots, clipboard access, and browser-control commands sent\n\t// over the CDP proxy. On by default.\n\tControl BrowserTelemetryControlConfig `json:\"control\"`\n\t// User interaction events including clicks, keydowns, and scroll-settled events.\n\t// CDP category; off by default.\n\tInteraction BrowserTelemetryCategoryConfig `json:\"interaction\"`\n\t// HTTP request and response metadata including URL, method, status code, and\n\t// timing. Request post data is forwarded as-is from CDP. Text response bodies are\n\t// truncated at 8 KB for structured types (JSON, XML, form data) and 4 KB for other\n\t// text types. Binary responses (images, fonts, media) are excluded. CDP category;\n\t// off by default.\n\tNetwork BrowserTelemetryCategoryConfig `json:\"network\"`\n\t// Page lifecycle events including navigation, DOMContentLoaded, load, layout\n\t// shifts, and LCP. CDP category; off by default.\n\tPage BrowserTelemetryCategoryConfig `json:\"page\"`\n\t// In-VM API calls that manage the browser VM rather than drive the browser\n\t// (recording, filesystem, process, telemetry and browser configuration). Mostly\n\t// platform-induced; off by default and must be opted into.\n\tPlatform BrowserTelemetryCategoryConfig `json:\"platform\"`\n\t// Periodic base64-encoded viewport screenshots. High volume; off by default and\n\t// must be opted into.\n\tScreenshot BrowserTelemetryCategoryConfig `json:\"screenshot\"`\n\t// Browser VM health, such as out-of-memory kills and managed-service crashes. On\n\t// by default.\n\tSystem BrowserTelemetryCategoryConfig `json:\"system\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCaptcha     respjson.Field\n\t\tConnection  respjson.Field\n\t\tConsole     respjson.Field\n\t\tControl     respjson.Field\n\t\tInteraction respjson.Field\n\t\tNetwork     respjson.Field\n\t\tPage        respjson.Field\n\t\tPlatform    respjson.Field\n\t\tScreenshot  respjson.Field\n\t\tSystem      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPer-category telemetry capture settings layered onto the default set. The operational signals (control, connection, system, captcha) are on by default and are opt-out: set one to enabled=false to stop capturing it. The CDP categories (console, network, page, interaction), screenshot and platform are off by default and are opt-in: set enabled=true to capture them.\n\n```go\nfunc (r BrowserTelemetryCategoriesConfig) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r BrowserTelemetryCategoriesConfig) ToParam() BrowserTelemetryCategoriesConfigParam\n```\nToParam converts this BrowserTelemetryCategoriesConfig to a BrowserTelemetryCategoriesConfigParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with BrowserTelemetryCategoriesConfigParam.Overrides()\n\n```go\nfunc (r *BrowserTelemetryCategoriesConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserTelemetryCategoriesConfigParam struct {\n\t// Captcha solver tasks and visible challenge outcomes. On by default.\n\tCaptcha BrowserTelemetryCategoryConfigParam `json:\"captcha,omitzero\"`\n\t// Client attach/detach lifecycle for the CDP proxy and live view. On by default.\n\tConnection BrowserTelemetryCategoryConfigParam `json:\"connection,omitzero\"`\n\t// Console output (log, warn, error) and uncaught exceptions. CDP category; off by\n\t// default.\n\tConsole BrowserTelemetryCategoryConfigParam `json:\"console,omitzero\"`\n\t// Agent-driven actions against the browser — computer-control calls, Playwright\n\t// code execution, screenshots, clipboard access, and browser-control commands sent\n\t// over the CDP proxy. On by default.\n\tControl BrowserTelemetryControlConfigParam `json:\"control,omitzero\"`\n\t// User interaction events including clicks, keydowns, and scroll-settled events.\n\t// CDP category; off by default.\n\tInteraction BrowserTelemetryCategoryConfigParam `json:\"interaction,omitzero\"`\n\t// HTTP request and response metadata including URL, method, status code, and\n\t// timing. Request post data is forwarded as-is from CDP. Text response bodies are\n\t// truncated at 8 KB for structured types (JSON, XML, form data) and 4 KB for other\n\t// text types. Binary responses (images, fonts, media) are excluded. CDP category;\n\t// off by default.\n\tNetwork BrowserTelemetryCategoryConfigParam `json:\"network,omitzero\"`\n\t// Page lifecycle events including navigation, DOMContentLoaded, load, layout\n\t// shifts, and LCP. CDP category; off by default.\n\tPage BrowserTelemetryCategoryConfigParam `json:\"page,omitzero\"`\n\t// In-VM API calls that manage the browser VM rather than drive the browser\n\t// (recording, filesystem, process, telemetry and browser configuration). Mostly\n\t// platform-induced; off by default and must be opted into.\n\tPlatform BrowserTelemetryCategoryConfigParam `json:\"platform,omitzero\"`\n\t// Periodic base64-encoded viewport screenshots. High volume; off by default and\n\t// must be opted into.\n\tScreenshot BrowserTelemetryCategoryConfigParam `json:\"screenshot,omitzero\"`\n\t// Browser VM health, such as out-of-memory kills and managed-service crashes. On\n\t// by default.\n\tSystem BrowserTelemetryCategoryConfigParam `json:\"system,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nPer-category telemetry capture settings layered onto the default set. The operational signals (control, connection, system, captcha) are on by default and are opt-out: set one to enabled=false to stop capturing it. The CDP categories (console, network, page, interaction), screenshot and platform are off by default and are opt-in: set enabled=true to capture them.\n\n```go\nfunc (r BrowserTelemetryCategoriesConfigParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserTelemetryCategoriesConfigParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserTelemetryCategoryConfig struct {\n\t// Whether this category is captured. Operational categories (control, connection,\n\t// system, captcha) default to true; set false to opt out. CDP categories (console,\n\t// network, page, interaction), screenshot and platform default to false; set true\n\t// to opt in.\n\tEnabled bool `json:\"enabled\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEnabled     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPer-category telemetry configuration.\n\n```go\nfunc (r BrowserTelemetryCategoryConfig) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r BrowserTelemetryCategoryConfig) ToParam() BrowserTelemetryCategoryConfigParam\n```\nToParam converts this BrowserTelemetryCategoryConfig to a BrowserTelemetryCategoryConfigParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with BrowserTelemetryCategoryConfigParam.Overrides()\n\n```go\nfunc (r *BrowserTelemetryCategoryConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserTelemetryCategoryConfigParam struct {\n\t// Whether this category is captured. Operational categories (control, connection,\n\t// system, captcha) default to true; set false to opt out. CDP categories (console,\n\t// network, page, interaction), screenshot and platform default to false; set true\n\t// to opt in.\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nPer-category telemetry configuration.\n\n```go\nfunc (r BrowserTelemetryCategoryConfigParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserTelemetryCategoryConfigParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserTelemetryCdpControlConfig struct {\n\t// Methods to leave out of the cdp_command stream. Omit the list to keep the\n\t// current one; send an empty list to report every supported method again.\n\t// Exclusion is a telemetry setting only: an excluded command is still relayed to\n\t// the browser unchanged, it simply produces no event. Use it to drop the\n\t// highest-volume methods — Input.dispatchMouseEvent during a humanized cursor\n\t// path, or Page.captureScreenshot under a screencast — without turning the whole\n\t// category off. Excluded commands are counted in\n\t// cdp_disconnect.telemetry_excluded.\n\tExcludedMethods []BrowserCdpCommandMethod `json:\"excluded_methods\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tExcludedMethods respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSettings for the cdp\\_command events the CDP proxy reports.\n\n```go\nfunc (r BrowserTelemetryCdpControlConfig) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r BrowserTelemetryCdpControlConfig) ToParam() BrowserTelemetryCdpControlConfigParam\n```\nToParam converts this BrowserTelemetryCdpControlConfig to a BrowserTelemetryCdpControlConfigParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with BrowserTelemetryCdpControlConfigParam.Overrides()\n\n```go\nfunc (r *BrowserTelemetryCdpControlConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserTelemetryCdpControlConfigParam struct {\n\t// Methods to leave out of the cdp_command stream. Omit the list to keep the\n\t// current one; send an empty list to report every supported method again.\n\t// Exclusion is a telemetry setting only: an excluded command is still relayed to\n\t// the browser unchanged, it simply produces no event. Use it to drop the\n\t// highest-volume methods — Input.dispatchMouseEvent during a humanized cursor\n\t// path, or Page.captureScreenshot under a screencast — without turning the whole\n\t// category off. Excluded commands are counted in\n\t// cdp_disconnect.telemetry_excluded.\n\tExcludedMethods []BrowserCdpCommandMethod `json:\"excluded_methods,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nSettings for the cdp\\_command events the CDP proxy reports.\n\n```go\nfunc (r BrowserTelemetryCdpControlConfigParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserTelemetryCdpControlConfigParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserTelemetryConfig struct {\n\t// Per-category enable/disable flags.\n\tBrowser BrowserTelemetryCategoriesConfig `json:\"browser\"`\n\t// Where the session's captured telemetry is being exported. Omitted when the\n\t// export state is unknown.\n\tExport BrowserTelemetryExportConfig `json:\"export\"`\n\t// Whether the session's captured telemetry is persisted to Kernel storage. Omitted\n\t// for browsers created before this setting existed, which persist it.\n\tStorage BrowserTelemetryStorageConfig `json:\"storage\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBrowser     respjson.Field\n\t\tExport      respjson.Field\n\t\tStorage     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nActive telemetry configuration for a browser session.\n\n```go\nfunc (r BrowserTelemetryConfig) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserTelemetryConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserTelemetryControlConfig struct {\n\t// Settings for the cdp_command events the CDP proxy reports. Merged independently\n\t// of enabled, so a later update that only sets enabled keeps the current exclusion\n\t// list.\n\tCdp BrowserTelemetryCdpControlConfig `json:\"cdp\"`\n\t// Whether this category is captured. Control is on by default; set false to opt\n\t// out.\n\tEnabled bool `json:\"enabled\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCdp         respjson.Field\n\t\tEnabled     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for the control category. Same enabled semantics as any other category, plus settings for the browser-control commands the CDP proxy reports.\n\n```go\nfunc (r BrowserTelemetryControlConfig) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r BrowserTelemetryControlConfig) ToParam() BrowserTelemetryControlConfigParam\n```\nToParam converts this BrowserTelemetryControlConfig to a BrowserTelemetryControlConfigParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with BrowserTelemetryControlConfigParam.Overrides()\n\n```go\nfunc (r *BrowserTelemetryControlConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserTelemetryControlConfigParam struct {\n\t// Whether this category is captured. Control is on by default; set false to opt\n\t// out.\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// Settings for the cdp_command events the CDP proxy reports. Merged independently\n\t// of enabled, so a later update that only sets enabled keeps the current exclusion\n\t// list.\n\tCdp BrowserTelemetryCdpControlConfigParam `json:\"cdp,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nConfiguration for the control category. Same enabled semantics as any other category, plus settings for the browser-control commands the CDP proxy reports.\n\n```go\nfunc (r BrowserTelemetryControlConfigParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserTelemetryControlConfigParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserTelemetryEventUnion struct {\n\tCategory string `json:\"category\"`\n\t// This field is from variant [BrowserConsoleLogEvent].\n\tSource BrowserEventSource `json:\"source\"`\n\tTs     int64              `json:\"ts\"`\n\t// Any of \"console_log\", \"console_error\", \"network_request\", \"network_response\",\n\t// \"network_loading_failed\", \"network_idle\", \"proxy_error\", \"page_navigation\",\n\t// \"page_dom_content_loaded\", \"page_load\", \"page_tab_opened\", \"page_crashed\",\n\t// \"page_layout_shift\", \"page_lcp\", \"page_layout_settled\",\n\t// \"page_navigation_settled\", \"interaction_click\", \"interaction_key\",\n\t// \"interaction_scroll_settled\", \"monitor_screenshot\", \"monitor_disconnected\",\n\t// \"monitor_reconnected\", \"monitor_reconnect_failed\", \"monitor_init_failed\",\n\t// \"api_call\", \"platform_api_call\", \"cdp_command\", \"cdp_connect\", \"cdp_disconnect\",\n\t// \"live_view_connect\", \"live_view_disconnect\", \"captcha_solve_started\",\n\t// \"captcha_solve_result\", \"captcha_challenge_result\", \"system_oom_kill\",\n\t// \"service_crashed\".\n\tType string `json:\"type\"`\n\t// This field is a union of [BrowserConsoleLogEventData],\n\t// [BrowserConsoleErrorEventData], [BrowserNetworkRequestEventData],\n\t// [BrowserNetworkResponseEventData], [BrowserNetworkLoadingFailedEventData],\n\t// [BrowserEventContext], [BrowserProxyErrorEventData],\n\t// [BrowserPageNavigationEventData], [BrowserPageDomContentLoadedEventData],\n\t// [BrowserPageLoadEventData], [BrowserPageTabOpenedEventData],\n\t// [BrowserPageCrashedEventData], [BrowserPageLayoutShiftEventData],\n\t// [BrowserPageLcpEventData], [BrowserInteractionClickEventData],\n\t// [BrowserInteractionKeyEventData], [BrowserInteractionScrollSettledEventData],\n\t// [BrowserMonitorScreenshotEventData], [BrowserMonitorDisconnectedEventData],\n\t// [BrowserMonitorReconnectedEventData], [BrowserMonitorReconnectFailedEventData],\n\t// [BrowserMonitorInitFailedEventData], [BrowserAPICallEventData],\n\t// [BrowserPlatformAPICallEventData], [BrowserCdpCommandEventDataUnion],\n\t// [BrowserCdpConnectEventData], [BrowserCdpDisconnectEventData],\n\t// [BrowserLiveViewConnectEventData], [BrowserLiveViewDisconnectEventData],\n\t// [BrowserCaptchaSolveStartedEventData], [BrowserCaptchaSolveResultEventData],\n\t// [BrowserCaptchaChallengeResultEventData], [BrowserSystemOomKillEventData],\n\t// [BrowserServiceCrashedEventData]\n\tData      BrowserTelemetryEventUnionData `json:\"data\"`\n\tTruncated bool                           `json:\"truncated\"`\n\tJSON      struct {\n\t\tCategory  respjson.Field\n\t\tSource    respjson.Field\n\t\tTs        respjson.Field\n\t\tType      respjson.Field\n\t\tData      respjson.Field\n\t\tTruncated respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nBrowserTelemetryEventUnion contains all possible properties and values from [BrowserConsoleLogEvent](#BrowserConsoleLogEvent), [BrowserConsoleErrorEvent](#BrowserConsoleErrorEvent), [BrowserNetworkRequestEvent](#BrowserNetworkRequestEvent), [BrowserNetworkResponseEvent](#BrowserNetworkResponseEvent), [BrowserNetworkLoadingFailedEvent](#BrowserNetworkLoadingFailedEvent), [BrowserNetworkIdleEvent](#BrowserNetworkIdleEvent), [BrowserProxyErrorEvent](#BrowserProxyErrorEvent), [BrowserPageNavigationEvent](#BrowserPageNavigationEvent), [BrowserPageDomContentLoadedEvent](#BrowserPageDomContentLoadedEvent), [BrowserPageLoadEvent](#BrowserPageLoadEvent), [BrowserPageTabOpenedEvent](#BrowserPageTabOpenedEvent), [BrowserPageCrashedEvent](#BrowserPageCrashedEvent), [BrowserPageLayoutShiftEvent](#BrowserPageLayoutShiftEvent), [BrowserPageLcpEvent](#BrowserPageLcpEvent), [BrowserPageLayoutSettledEvent](#BrowserPageLayoutSettledEvent), [BrowserPageNavigationSettledEvent](#BrowserPageNavigationSettledEvent), [BrowserInteractionClickEvent](#BrowserInteractionClickEvent), [BrowserInteractionKeyEvent](#BrowserInteractionKeyEvent), [BrowserInteractionScrollSettledEvent](#BrowserInteractionScrollSettledEvent), [BrowserMonitorScreenshotEvent](#BrowserMonitorScreenshotEvent), [BrowserMonitorDisconnectedEvent](#BrowserMonitorDisconnectedEvent), [BrowserMonitorReconnectedEvent](#BrowserMonitorReconnectedEvent), [BrowserMonitorReconnectFailedEvent](#BrowserMonitorReconnectFailedEvent), [BrowserMonitorInitFailedEvent](#BrowserMonitorInitFailedEvent), [BrowserAPICallEvent](#BrowserAPICallEvent), [BrowserPlatformAPICallEvent](#BrowserPlatformAPICallEvent), [BrowserCdpCommandEvent](#BrowserCdpCommandEvent), [BrowserCdpConnectEvent](#BrowserCdpConnectEvent), [BrowserCdpDisconnectEvent](#BrowserCdpDisconnectEvent), [BrowserLiveViewConnectEvent](#BrowserLiveViewConnectEvent), [BrowserLiveViewDisconnectEvent](#BrowserLiveViewDisconnectEvent), [BrowserCaptchaSolveStartedEvent](#BrowserCaptchaSolveStartedEvent), [BrowserCaptchaSolveResultEvent](#BrowserCaptchaSolveResultEvent), [BrowserCaptchaChallengeResultEvent](#BrowserCaptchaChallengeResultEvent), [BrowserSystemOomKillEvent](#BrowserSystemOomKillEvent), [BrowserServiceCrashedEvent](#BrowserServiceCrashedEvent).\n\nUse the [BrowserTelemetryEventUnion.AsAny](#BrowserTelemetryEventUnion.AsAny) method to switch on the variant.\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsAPICall() (v BrowserAPICallEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsAny() anyBrowserTelemetryEvent\n```\nUse the following switch statement to find the correct variant\n\n\tswitch variant := BrowserTelemetryEventUnion.AsAny().(type) {\n\tcase kernel.BrowserConsoleLogEvent:\n\tcase kernel.BrowserConsoleErrorEvent:\n\tcase kernel.BrowserNetworkRequestEvent:\n\tcase kernel.BrowserNetworkResponseEvent:\n\tcase kernel.BrowserNetworkLoadingFailedEvent:\n\tcase kernel.BrowserNetworkIdleEvent:\n\tcase kernel.BrowserProxyErrorEvent:\n\tcase kernel.BrowserPageNavigationEvent:\n\tcase kernel.BrowserPageDomContentLoadedEvent:\n\tcase kernel.BrowserPageLoadEvent:\n\tcase kernel.BrowserPageTabOpenedEvent:\n\tcase kernel.BrowserPageCrashedEvent:\n\tcase kernel.BrowserPageLayoutShiftEvent:\n\tcase kernel.BrowserPageLcpEvent:\n\tcase kernel.BrowserPageLayoutSettledEvent:\n\tcase kernel.BrowserPageNavigationSettledEvent:\n\tcase kernel.BrowserInteractionClickEvent:\n\tcase kernel.BrowserInteractionKeyEvent:\n\tcase kernel.BrowserInteractionScrollSettledEvent:\n\tcase kernel.BrowserMonitorScreenshotEvent:\n\tcase kernel.BrowserMonitorDisconnectedEvent:\n\tcase kernel.BrowserMonitorReconnectedEvent:\n\tcase kernel.BrowserMonitorReconnectFailedEvent:\n\tcase kernel.BrowserMonitorInitFailedEvent:\n\tcase kernel.BrowserAPICallEvent:\n\tcase kernel.BrowserPlatformAPICallEvent:\n\tcase kernel.BrowserCdpCommandEvent:\n\tcase kernel.BrowserCdpConnectEvent:\n\tcase kernel.BrowserCdpDisconnectEvent:\n\tcase kernel.BrowserLiveViewConnectEvent:\n\tcase kernel.BrowserLiveViewDisconnectEvent:\n\tcase kernel.BrowserCaptchaSolveStartedEvent:\n\tcase kernel.BrowserCaptchaSolveResultEvent:\n\tcase kernel.BrowserCaptchaChallengeResultEvent:\n\tcase kernel.BrowserSystemOomKillEvent:\n\tcase kernel.BrowserServiceCrashedEvent:\n\tdefault:\n\t  fmt.Errorf(\"no variant present\")\n\t}\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsCaptchaChallengeResult() (v BrowserCaptchaChallengeResultEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsCaptchaSolveResult() (v BrowserCaptchaSolveResultEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsCaptchaSolveStarted() (v BrowserCaptchaSolveStartedEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsCdpCommand() (v BrowserCdpCommandEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsCdpConnect() (v BrowserCdpConnectEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsCdpDisconnect() (v BrowserCdpDisconnectEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsConsoleError() (v BrowserConsoleErrorEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsConsoleLog() (v BrowserConsoleLogEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsInteractionClick() (v BrowserInteractionClickEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsInteractionKey() (v BrowserInteractionKeyEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsInteractionScrollSettled() (v BrowserInteractionScrollSettledEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsLiveViewConnect() (v BrowserLiveViewConnectEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsLiveViewDisconnect() (v BrowserLiveViewDisconnectEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsMonitorDisconnected() (v BrowserMonitorDisconnectedEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsMonitorInitFailed() (v BrowserMonitorInitFailedEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsMonitorReconnectFailed() (v BrowserMonitorReconnectFailedEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsMonitorReconnected() (v BrowserMonitorReconnectedEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsMonitorScreenshot() (v BrowserMonitorScreenshotEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsNetworkIdle() (v BrowserNetworkIdleEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsNetworkLoadingFailed() (v BrowserNetworkLoadingFailedEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsNetworkRequest() (v BrowserNetworkRequestEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsNetworkResponse() (v BrowserNetworkResponseEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsPageCrashed() (v BrowserPageCrashedEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsPageDomContentLoaded() (v BrowserPageDomContentLoadedEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsPageLayoutSettled() (v BrowserPageLayoutSettledEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsPageLayoutShift() (v BrowserPageLayoutShiftEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsPageLcp() (v BrowserPageLcpEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsPageLoad() (v BrowserPageLoadEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsPageNavigation() (v BrowserPageNavigationEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsPageNavigationSettled() (v BrowserPageNavigationSettledEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsPageTabOpened() (v BrowserPageTabOpenedEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsPlatformAPICall() (v BrowserPlatformAPICallEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsProxyError() (v BrowserProxyErrorEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsServiceCrashed() (v BrowserServiceCrashedEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) AsSystemOomKill() (v BrowserSystemOomKillEvent)\n```\n\n```go\nfunc (u BrowserTelemetryEventUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserTelemetryEventUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserTelemetryEventUnionData struct {\n\tFrameID  string `json:\"frame_id\"`\n\tLoaderID string `json:\"loader_id\"`\n\t// This field is from variant [BrowserConsoleLogEventData],\n\t// [BrowserConsoleErrorEventData], [BrowserNetworkRequestEventData],\n\t// [BrowserNetworkResponseEventData], [BrowserNetworkLoadingFailedEventData],\n\t// [BrowserEventContext], [BrowserProxyErrorEventData],\n\t// [BrowserPageDomContentLoadedEventData], [BrowserPageLoadEventData],\n\t// [BrowserPageLayoutShiftEventData], [BrowserPageLcpEventData],\n\t// [BrowserInteractionClickEventData], [BrowserInteractionKeyEventData],\n\t// [BrowserInteractionScrollSettledEventData].\n\tNavSeq     int64    `json:\"nav_seq\"`\n\tSessionID  string   `json:\"session_id\"`\n\tTargetID   string   `json:\"target_id\"`\n\tTargetType string   `json:\"target_type\"`\n\tURL        string   `json:\"url\"`\n\tArgs       []string `json:\"args\"`\n\tLevel      string   `json:\"level\"`\n\t// This field is from variant [BrowserConsoleLogEventData].\n\tStackTrace BrowserCallStack `json:\"stack_trace\"`\n\tText       string           `json:\"text\"`\n\t// This field is from variant [BrowserConsoleErrorEventData].\n\tColumn int64 `json:\"column\"`\n\t// This field is from variant [BrowserConsoleErrorEventData].\n\tLine int64 `json:\"line\"`\n\t// This field is from variant [BrowserConsoleErrorEventData].\n\tSourceURL string `json:\"source_url\"`\n\t// This field is from variant [BrowserNetworkRequestEventData].\n\tDocumentURL string `json:\"document_url\"`\n\t// This field is from variant [BrowserNetworkRequestEventData].\n\tHeaders BrowserHTTPHeaders `json:\"headers\"`\n\t// This field is from variant [BrowserNetworkRequestEventData].\n\tInitiatorType string `json:\"initiator_type\"`\n\t// This field is from variant [BrowserNetworkRequestEventData].\n\tIsRedirect bool   `json:\"is_redirect\"`\n\tMethod     string `json:\"method\"`\n\t// This field is from variant [BrowserNetworkRequestEventData].\n\tPostData string `json:\"post_data\"`\n\t// This field is from variant [BrowserNetworkRequestEventData].\n\tRedirectURL  string `json:\"redirect_url\"`\n\tRequestID    string `json:\"request_id\"`\n\tResourceType string `json:\"resource_type\"`\n\t// This field is from variant [BrowserNetworkResponseEventData].\n\tBody string `json:\"body\"`\n\t// This field is from variant [BrowserNetworkResponseEventData].\n\tMimeType string `json:\"mime_type\"`\n\t// This field is a union of [int64], [int64], [int64], [int64], [string], [string]\n\tStatus BrowserTelemetryEventUnionDataStatus `json:\"status\"`\n\t// This field is from variant [BrowserNetworkResponseEventData].\n\tStatusText string `json:\"status_text\"`\n\t// This field is from variant [BrowserNetworkLoadingFailedEventData].\n\tCanceled bool `json:\"canceled\"`\n\t// This field is from variant [BrowserNetworkLoadingFailedEventData].\n\tErrorText string `json:\"error_text\"`\n\tCode      string `json:\"code\"`\n\t// This field is from variant [BrowserProxyErrorEventData].\n\tRawCode string `json:\"raw_code\"`\n\t// This field is from variant [BrowserPageNavigationEventData].\n\tParentFrameID string  `json:\"parent_frame_id\"`\n\tCdpTimestamp  float64 `json:\"cdp_timestamp\"`\n\t// This field is from variant [BrowserPageTabOpenedEventData].\n\tOpenerID string `json:\"opener_id\"`\n\t// This field is from variant [BrowserPageTabOpenedEventData].\n\tTitle string `json:\"title\"`\n\t// This field is a union of [float64], [int64]\n\tDuration BrowserTelemetryEventUnionDataDuration `json:\"duration\"`\n\t// This field is from variant [BrowserPageLayoutShiftEventData].\n\tLayoutShiftDetails BrowserPageLayoutShiftEventDataLayoutShiftDetails `json:\"layout_shift_details\"`\n\tSourceFrameID      string                                            `json:\"source_frame_id\"`\n\tTime               float64                                           `json:\"time\"`\n\t// This field is from variant [BrowserPageLcpEventData].\n\tLcpDetails BrowserPageLcpEventDataLcpDetails `json:\"lcp_details\"`\n\tSelector   string                            `json:\"selector\"`\n\tTag        string                            `json:\"tag\"`\n\t// This field is a union of [int64], [float64], [float64], [float64], [float64],\n\t// [float64], [float64], [float64]\n\tX BrowserTelemetryEventUnionDataX `json:\"x\"`\n\t// This field is a union of [int64], [float64], [float64], [float64], [float64],\n\t// [float64], [float64], [float64]\n\tY BrowserTelemetryEventUnionDataY `json:\"y\"`\n\t// This field is from variant [BrowserInteractionKeyEventData].\n\tKey string `json:\"key\"`\n\t// This field is from variant [BrowserInteractionScrollSettledEventData].\n\tFromX int64 `json:\"from_x\"`\n\t// This field is from variant [BrowserInteractionScrollSettledEventData].\n\tFromY int64 `json:\"from_y\"`\n\t// This field is from variant [BrowserInteractionScrollSettledEventData].\n\tTargetSelector string `json:\"target_selector\"`\n\t// This field is from variant [BrowserInteractionScrollSettledEventData].\n\tToX int64 `json:\"to_x\"`\n\t// This field is from variant [BrowserInteractionScrollSettledEventData].\n\tToY int64 `json:\"to_y\"`\n\t// This field is from variant [BrowserMonitorScreenshotEventData].\n\tPng    string `json:\"png\"`\n\tReason string `json:\"reason\"`\n\t// This field is from variant [BrowserMonitorReconnectedEventData].\n\tReconnectDurationMs int64 `json:\"reconnect_duration_ms\"`\n\t// This field is from variant [BrowserMonitorInitFailedEventData].\n\tStep        string  `json:\"step\"`\n\tDurationMs  float64 `json:\"duration_ms\"`\n\tOperationID string  `json:\"operation_id\"`\n\tEventType   string  `json:\"event_type\"`\n\tButton      string  `json:\"button\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tButtons      int64   `json:\"buttons\"`\n\tClickCount   int64   `json:\"click_count\"`\n\tCommandID    int64   `json:\"command_id\"`\n\tConnectionID string  `json:\"connection_id\"`\n\tDeltaX       float64 `json:\"delta_x\"`\n\tDeltaY       float64 `json:\"delta_y\"`\n\tForce        float64 `json:\"force\"`\n\tModifiers    int64   `json:\"modifiers\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tPointerType        string  `json:\"pointer_type\"`\n\tTangentialPressure float64 `json:\"tangential_pressure\"`\n\tTiltX              float64 `json:\"tilt_x\"`\n\tTiltY              float64 `json:\"tilt_y\"`\n\tTwist              int64   `json:\"twist\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tAutoRepeat bool `json:\"auto_repeat\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tCommandCount int64 `json:\"command_count\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tIsKeypad bool `json:\"is_keypad\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tIsSystemKey bool `json:\"is_system_key\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tLocation int64 `json:\"location\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tNamedKey   string `json:\"named_key\"`\n\tTextLength int64  `json:\"text_length\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tReplacementEnd int64 `json:\"replacement_end\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tReplacementStart int64 `json:\"replacement_start\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tSelectionEnd int64 `json:\"selection_end\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tSelectionStart int64 `json:\"selection_start\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tTouchPointCount int64 `json:\"touch_point_count\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tRadiusX float64 `json:\"radius_x\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tRadiusY float64 `json:\"radius_y\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tRotationAngle float64 `json:\"rotation_angle\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tDragFileCount int64 `json:\"drag_file_count\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tDragItemCount int64 `json:\"drag_item_count\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tDragMimeCategories []string `json:\"drag_mime_categories\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tDragOperationsMask int64  `json:\"drag_operations_mask\"`\n\tGestureSourceType  string `json:\"gesture_source_type\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tRelativeSpeed int64 `json:\"relative_speed\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tScaleFactor float64 `json:\"scale_factor\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tPreventFling bool `json:\"prevent_fling\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tRepeatCount int64 `json:\"repeat_count\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tRepeatDelayMs int64 `json:\"repeat_delay_ms\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tSpeed int64 `json:\"speed\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tXDistance float64 `json:\"x_distance\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tXOverscroll float64 `json:\"x_overscroll\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tYDistance float64 `json:\"y_distance\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tYOverscroll float64 `json:\"y_overscroll\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tTapCount int64 `json:\"tap_count\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tFileCount     int64  `json:\"file_count\"`\n\tBackendNodeID int64  `json:\"backend_node_id\"`\n\tNodeID        int64  `json:\"node_id\"`\n\tObjectID      string `json:\"object_id\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tRectHeight float64 `json:\"rect_height\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tRectWidth float64 `json:\"rect_width\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tRectX float64 `json:\"rect_x\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tRectY float64 `json:\"rect_y\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tCaptureBeyondViewport bool `json:\"capture_beyond_viewport\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tClipHeight float64 `json:\"clip_height\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tClipScale float64 `json:\"clip_scale\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tClipWidth float64 `json:\"clip_width\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tClipX float64 `json:\"clip_x\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tClipY  float64 `json:\"clip_y\"`\n\tFormat string  `json:\"format\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tFromSurface bool `json:\"from_surface\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tOptimizeForSpeed bool  `json:\"optimize_for_speed\"`\n\tQuality          int64 `json:\"quality\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tAccept bool `json:\"accept\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tPromptTextLength int64 `json:\"prompt_text_length\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tReferrerPolicy string `json:\"referrer_policy\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tReferrerPresent bool `json:\"referrer_present\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tTransitionType string `json:\"transition_type\"`\n\tURLScheme      string `json:\"url_scheme\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tEntryID int64 `json:\"entry_id\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tIgnoreCache bool `json:\"ignore_cache\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tScriptLength int64 `json:\"script_length\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tDisplayHeaderFooter bool `json:\"display_header_footer\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tFooterTemplatePresent bool `json:\"footer_template_present\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tGenerateDocumentOutline bool `json:\"generate_document_outline\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tGenerateTaggedPdf bool `json:\"generate_tagged_pdf\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tHeaderTemplatePresent bool `json:\"header_template_present\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tLandscape bool `json:\"landscape\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tMarginBottom float64 `json:\"margin_bottom\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tMarginLeft float64 `json:\"margin_left\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tMarginRight float64 `json:\"margin_right\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tMarginTop float64 `json:\"margin_top\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tPageRangesPresent bool `json:\"page_ranges_present\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tPaperHeight float64 `json:\"paper_height\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tPaperWidth float64 `json:\"paper_width\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tPreferCssPageSize bool `json:\"prefer_css_page_size\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tPrintBackground bool `json:\"print_background\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tScale float64 `json:\"scale\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tTransferMode string `json:\"transfer_mode\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tEveryNthFrame int64 `json:\"every_nth_frame\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tMaxHeight int64 `json:\"max_height\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tMaxWidth int64 `json:\"max_width\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tState string `json:\"state\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tBackground       bool   `json:\"background\"`\n\tBrowserContextID string `json:\"browser_context_id\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tEnableBeginFrameControl bool `json:\"enable_begin_frame_control\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tFocus bool `json:\"focus\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tForTab bool  `json:\"for_tab\"`\n\tHeight int64 `json:\"height\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tHidden bool  `json:\"hidden\"`\n\tLeft   int64 `json:\"left\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tNewWindow   bool   `json:\"new_window\"`\n\tTop         int64  `json:\"top\"`\n\tWidth       int64  `json:\"width\"`\n\tWindowState string `json:\"window_state\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tDisposeOnDetach bool `json:\"dispose_on_detach\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tProxyBypassListPresent bool `json:\"proxy_bypass_list_present\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tProxyServerPresent bool `json:\"proxy_server_present\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tUniversalNetworkAccessOriginCount int64 `json:\"universal_network_access_origin_count\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tPanelID string `json:\"panel_id\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tDownloadGuid string `json:\"download_guid\"`\n\tWindowID     int64  `json:\"window_id\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tFieldID int64 `json:\"field_id\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tAddressFieldCount int64 `json:\"address_field_count\"`\n\t// This field is from variant [BrowserCdpCommandEventDataUnion].\n\tMode string `json:\"mode\"`\n\t// This field is from variant [BrowserCdpDisconnectEventData].\n\tMessageCount int64 `json:\"message_count\"`\n\t// This field is from variant [BrowserCdpDisconnectEventData].\n\tTelemetryDropped int64 `json:\"telemetry_dropped\"`\n\t// This field is from variant [BrowserCdpDisconnectEventData].\n\tTelemetryExcluded int64  `json:\"telemetry_excluded\"`\n\tCaptchaType       string `json:\"captcha_type\"`\n\tCaptchaProvider   string `json:\"captcha_provider\"`\n\tChallengeID       string `json:\"challenge_id\"`\n\tMedia             string `json:\"media\"`\n\tTaskID            string `json:\"task_id\"`\n\tTaskKind          string `json:\"task_kind\"`\n\tWebsiteHost       string `json:\"website_host\"`\n\tWebsitePath       string `json:\"website_path\"`\n\t// This field is from variant [BrowserCaptchaSolveResultEventData].\n\tErrorCode string `json:\"error_code\"`\n\t// This field is from variant [BrowserCaptchaChallengeResultEventData].\n\tInferred bool  `json:\"inferred\"`\n\tPid      int64 `json:\"pid\"`\n\t// This field is from variant [BrowserSystemOomKillEventData].\n\tProcessName string `json:\"process_name\"`\n\t// This field is from variant [BrowserSystemOomKillEventData].\n\tRssKB int64 `json:\"rss_kb\"`\n\t// This field is from variant [BrowserSystemOomKillEventData].\n\tConstraint string `json:\"constraint\"`\n\t// This field is from variant [BrowserSystemOomKillEventData].\n\tMemFreeKB int64 `json:\"mem_free_kb\"`\n\t// This field is from variant [BrowserSystemOomKillEventData].\n\tMemTotalKB int64 `json:\"mem_total_kb\"`\n\t// This field is from variant [BrowserSystemOomKillEventData].\n\tTopTasks []BrowserSystemOomKillEventDataTopTask `json:\"top_tasks\"`\n\t// This field is from variant [BrowserSystemOomKillEventData].\n\tTriggerPid int64 `json:\"trigger_pid\"`\n\t// This field is from variant [BrowserSystemOomKillEventData].\n\tTriggerProcessName string `json:\"trigger_process_name\"`\n\t// This field is from variant [BrowserServiceCrashedEventData].\n\tPhase string `json:\"phase\"`\n\t// This field is from variant [BrowserServiceCrashedEventData].\n\tServiceName string `json:\"service_name\"`\n\tJSON        struct {\n\t\tFrameID                           respjson.Field\n\t\tLoaderID                          respjson.Field\n\t\tNavSeq                            respjson.Field\n\t\tSessionID                         respjson.Field\n\t\tTargetID                          respjson.Field\n\t\tTargetType                        respjson.Field\n\t\tURL                               respjson.Field\n\t\tArgs                              respjson.Field\n\t\tLevel                             respjson.Field\n\t\tStackTrace                        respjson.Field\n\t\tText                              respjson.Field\n\t\tColumn                            respjson.Field\n\t\tLine                              respjson.Field\n\t\tSourceURL                         respjson.Field\n\t\tDocumentURL                       respjson.Field\n\t\tHeaders                           respjson.Field\n\t\tInitiatorType                     respjson.Field\n\t\tIsRedirect                        respjson.Field\n\t\tMethod                            respjson.Field\n\t\tPostData                          respjson.Field\n\t\tRedirectURL                       respjson.Field\n\t\tRequestID                         respjson.Field\n\t\tResourceType                      respjson.Field\n\t\tBody                              respjson.Field\n\t\tMimeType                          respjson.Field\n\t\tStatus                            respjson.Field\n\t\tStatusText                        respjson.Field\n\t\tCanceled                          respjson.Field\n\t\tErrorText                         respjson.Field\n\t\tCode                              respjson.Field\n\t\tRawCode                           respjson.Field\n\t\tParentFrameID                     respjson.Field\n\t\tCdpTimestamp                      respjson.Field\n\t\tOpenerID                          respjson.Field\n\t\tTitle                             respjson.Field\n\t\tDuration                          respjson.Field\n\t\tLayoutShiftDetails                respjson.Field\n\t\tSourceFrameID                     respjson.Field\n\t\tTime                              respjson.Field\n\t\tLcpDetails                        respjson.Field\n\t\tSelector                          respjson.Field\n\t\tTag                               respjson.Field\n\t\tX                                 respjson.Field\n\t\tY                                 respjson.Field\n\t\tKey                               respjson.Field\n\t\tFromX                             respjson.Field\n\t\tFromY                             respjson.Field\n\t\tTargetSelector                    respjson.Field\n\t\tToX                               respjson.Field\n\t\tToY                               respjson.Field\n\t\tPng                               respjson.Field\n\t\tReason                            respjson.Field\n\t\tReconnectDurationMs               respjson.Field\n\t\tStep                              respjson.Field\n\t\tDurationMs                        respjson.Field\n\t\tOperationID                       respjson.Field\n\t\tEventType                         respjson.Field\n\t\tButton                            respjson.Field\n\t\tButtons                           respjson.Field\n\t\tClickCount                        respjson.Field\n\t\tCommandID                         respjson.Field\n\t\tConnectionID                      respjson.Field\n\t\tDeltaX                            respjson.Field\n\t\tDeltaY                            respjson.Field\n\t\tForce                             respjson.Field\n\t\tModifiers                         respjson.Field\n\t\tPointerType                       respjson.Field\n\t\tTangentialPressure                respjson.Field\n\t\tTiltX                             respjson.Field\n\t\tTiltY                             respjson.Field\n\t\tTwist                             respjson.Field\n\t\tAutoRepeat                        respjson.Field\n\t\tCommandCount                      respjson.Field\n\t\tIsKeypad                          respjson.Field\n\t\tIsSystemKey                       respjson.Field\n\t\tLocation                          respjson.Field\n\t\tNamedKey                          respjson.Field\n\t\tTextLength                        respjson.Field\n\t\tReplacementEnd                    respjson.Field\n\t\tReplacementStart                  respjson.Field\n\t\tSelectionEnd                      respjson.Field\n\t\tSelectionStart                    respjson.Field\n\t\tTouchPointCount                   respjson.Field\n\t\tRadiusX                           respjson.Field\n\t\tRadiusY                           respjson.Field\n\t\tRotationAngle                     respjson.Field\n\t\tDragFileCount                     respjson.Field\n\t\tDragItemCount                     respjson.Field\n\t\tDragMimeCategories                respjson.Field\n\t\tDragOperationsMask                respjson.Field\n\t\tGestureSourceType                 respjson.Field\n\t\tRelativeSpeed                     respjson.Field\n\t\tScaleFactor                       respjson.Field\n\t\tPreventFling                      respjson.Field\n\t\tRepeatCount                       respjson.Field\n\t\tRepeatDelayMs                     respjson.Field\n\t\tSpeed                             respjson.Field\n\t\tXDistance                         respjson.Field\n\t\tXOverscroll                       respjson.Field\n\t\tYDistance                         respjson.Field\n\t\tYOverscroll                       respjson.Field\n\t\tTapCount                          respjson.Field\n\t\tFileCount                         respjson.Field\n\t\tBackendNodeID                     respjson.Field\n\t\tNodeID                            respjson.Field\n\t\tObjectID                          respjson.Field\n\t\tRectHeight                        respjson.Field\n\t\tRectWidth                         respjson.Field\n\t\tRectX                             respjson.Field\n\t\tRectY                             respjson.Field\n\t\tCaptureBeyondViewport             respjson.Field\n\t\tClipHeight                        respjson.Field\n\t\tClipScale                         respjson.Field\n\t\tClipWidth                         respjson.Field\n\t\tClipX                             respjson.Field\n\t\tClipY                             respjson.Field\n\t\tFormat                            respjson.Field\n\t\tFromSurface                       respjson.Field\n\t\tOptimizeForSpeed                  respjson.Field\n\t\tQuality                           respjson.Field\n\t\tAccept                            respjson.Field\n\t\tPromptTextLength                  respjson.Field\n\t\tReferrerPolicy                    respjson.Field\n\t\tReferrerPresent                   respjson.Field\n\t\tTransitionType                    respjson.Field\n\t\tURLScheme                         respjson.Field\n\t\tEntryID                           respjson.Field\n\t\tIgnoreCache                       respjson.Field\n\t\tScriptLength                      respjson.Field\n\t\tDisplayHeaderFooter               respjson.Field\n\t\tFooterTemplatePresent             respjson.Field\n\t\tGenerateDocumentOutline           respjson.Field\n\t\tGenerateTaggedPdf                 respjson.Field\n\t\tHeaderTemplatePresent             respjson.Field\n\t\tLandscape                         respjson.Field\n\t\tMarginBottom                      respjson.Field\n\t\tMarginLeft                        respjson.Field\n\t\tMarginRight                       respjson.Field\n\t\tMarginTop                         respjson.Field\n\t\tPageRangesPresent                 respjson.Field\n\t\tPaperHeight                       respjson.Field\n\t\tPaperWidth                        respjson.Field\n\t\tPreferCssPageSize                 respjson.Field\n\t\tPrintBackground                   respjson.Field\n\t\tScale                             respjson.Field\n\t\tTransferMode                      respjson.Field\n\t\tEveryNthFrame                     respjson.Field\n\t\tMaxHeight                         respjson.Field\n\t\tMaxWidth                          respjson.Field\n\t\tState                             respjson.Field\n\t\tBackground                        respjson.Field\n\t\tBrowserContextID                  respjson.Field\n\t\tEnableBeginFrameControl           respjson.Field\n\t\tFocus                             respjson.Field\n\t\tForTab                            respjson.Field\n\t\tHeight                            respjson.Field\n\t\tHidden                            respjson.Field\n\t\tLeft                              respjson.Field\n\t\tNewWindow                         respjson.Field\n\t\tTop                               respjson.Field\n\t\tWidth                             respjson.Field\n\t\tWindowState                       respjson.Field\n\t\tDisposeOnDetach                   respjson.Field\n\t\tProxyBypassListPresent            respjson.Field\n\t\tProxyServerPresent                respjson.Field\n\t\tUniversalNetworkAccessOriginCount respjson.Field\n\t\tPanelID                           respjson.Field\n\t\tDownloadGuid                      respjson.Field\n\t\tWindowID                          respjson.Field\n\t\tFieldID                           respjson.Field\n\t\tAddressFieldCount                 respjson.Field\n\t\tMode                              respjson.Field\n\t\tMessageCount                      respjson.Field\n\t\tTelemetryDropped                  respjson.Field\n\t\tTelemetryExcluded                 respjson.Field\n\t\tCaptchaType                       respjson.Field\n\t\tCaptchaProvider                   respjson.Field\n\t\tChallengeID                       respjson.Field\n\t\tMedia                             respjson.Field\n\t\tTaskID                            respjson.Field\n\t\tTaskKind                          respjson.Field\n\t\tWebsiteHost                       respjson.Field\n\t\tWebsitePath                       respjson.Field\n\t\tErrorCode                         respjson.Field\n\t\tInferred                          respjson.Field\n\t\tPid                               respjson.Field\n\t\tProcessName                       respjson.Field\n\t\tRssKB                             respjson.Field\n\t\tConstraint                        respjson.Field\n\t\tMemFreeKB                         respjson.Field\n\t\tMemTotalKB                        respjson.Field\n\t\tTopTasks                          respjson.Field\n\t\tTriggerPid                        respjson.Field\n\t\tTriggerProcessName                respjson.Field\n\t\tPhase                             respjson.Field\n\t\tServiceName                       respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nBrowserTelemetryEventUnionData is an implicit subunion of [BrowserTelemetryEventUnion](#BrowserTelemetryEventUnion). BrowserTelemetryEventUnionData provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [BrowserTelemetryEventUnion](#BrowserTelemetryEventUnion).\n\n```go\nfunc (r *BrowserTelemetryEventUnionData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserTelemetryEventUnionDataDuration struct {\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\t// This field will be present if the value is a [int64] instead of an object.\n\tOfInt int64 `json:\",inline\"`\n\tJSON  struct {\n\t\tOfFloat respjson.Field\n\t\tOfInt   respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nBrowserTelemetryEventUnionDataDuration is an implicit subunion of [BrowserTelemetryEventUnion](#BrowserTelemetryEventUnion). BrowserTelemetryEventUnionDataDuration provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [BrowserTelemetryEventUnion](#BrowserTelemetryEventUnion).\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfFloat OfInt]\n\n```go\nfunc (r *BrowserTelemetryEventUnionDataDuration) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserTelemetryEventUnionDataStatus struct {\n\t// This field will be present if the value is a [int64] instead of an object.\n\tOfInt int64 `json:\",inline\"`\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfBrowserCaptchaChallengeResultEventDataStatus string `json:\",inline\"`\n\tJSON                                           struct {\n\t\tOfInt                                          respjson.Field\n\t\tOfBrowserCaptchaChallengeResultEventDataStatus respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nBrowserTelemetryEventUnionDataStatus is an implicit subunion of [BrowserTelemetryEventUnion](#BrowserTelemetryEventUnion). BrowserTelemetryEventUnionDataStatus provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [BrowserTelemetryEventUnion](#BrowserTelemetryEventUnion).\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfInt OfBrowserCaptchaChallengeResultEventDataStatus]\n\n```go\nfunc (r *BrowserTelemetryEventUnionDataStatus) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserTelemetryEventUnionDataX struct {\n\t// This field will be present if the value is a [int64] instead of an object.\n\tOfInt int64 `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\tJSON    struct {\n\t\tOfInt   respjson.Field\n\t\tOfFloat respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nBrowserTelemetryEventUnionDataX is an implicit subunion of [BrowserTelemetryEventUnion](#BrowserTelemetryEventUnion). BrowserTelemetryEventUnionDataX provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [BrowserTelemetryEventUnion](#BrowserTelemetryEventUnion).\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfInt OfFloat]\n\n```go\nfunc (r *BrowserTelemetryEventUnionDataX) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserTelemetryEventUnionDataY struct {\n\t// This field will be present if the value is a [int64] instead of an object.\n\tOfInt int64 `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\tJSON    struct {\n\t\tOfInt   respjson.Field\n\t\tOfFloat respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nBrowserTelemetryEventUnionDataY is an implicit subunion of [BrowserTelemetryEventUnion](#BrowserTelemetryEventUnion). BrowserTelemetryEventUnionDataY provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [BrowserTelemetryEventUnion](#BrowserTelemetryEventUnion).\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfInt OfFloat]\n\n```go\nfunc (r *BrowserTelemetryEventUnionDataY) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserTelemetryEventsParams struct {\n\t// Maximum number of events per page. Defaults to 20.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Opaque pagination cursor: pass the X-Next-Offset value from the previous\n\t// response to fetch the next page. When set, paging continues from this cursor and\n\t// since is ignored, while until still bounds the page. It is not an event's seq\n\t// field, so do not derive it from the response body.\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Read direction. asc (default) reads oldest first, starting from since or the\n\t// offset cursor. desc reads newest first: each request returns one page of up to\n\t// limit records ending at the offset cursor (or until, or the newest archived\n\t// event); combining desc with since is rejected with a 400.\n\tOrder param.Opt[string] `query:\"order,omitzero\" json:\"-\"`\n\t// Start of the window: an RFC-3339 timestamp, or a duration like 5m meaning that\n\t// long ago. Defaults to 5m. Ignored when offset is set.\n\tSince param.Opt[string] `query:\"since,omitzero\" json:\"-\"`\n\t// End of the window (exclusive): an RFC-3339 timestamp, or a duration like 5m\n\t// meaning that long ago.\n\tUntil param.Opt[string] `query:\"until,omitzero\" json:\"-\"`\n\t// Restrict results to these event categories. Repeat the parameter for multiple\n\t// values.\n\t//\n\t// Any of \"console\", \"network\", \"page\", \"interaction\", \"control\", \"platform\",\n\t// \"connection\", \"system\", \"screenshot\", \"captcha\", \"monitor\".\n\tCategory []string `query:\"category,omitzero\" json:\"-\"`\n\t// Restrict results to these event types, such as page_crashed or\n\t// captcha_challenge_result. Repeat the parameter for multiple values. Combines\n\t// with category: when both are set an event must match both.\n\tType []string `query:\"type,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserTelemetryEventsParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [BrowserTelemetryEventsParams](#BrowserTelemetryEventsParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype BrowserTelemetryEventsResponse struct {\n\t// Union type representing any browser telemetry event. Discriminated on `type`.\n\t// Each event's `category` determines when it is captured. The CDP collector-health\n\t// events (monitor_disconnected, monitor_reconnected, monitor_reconnect_failed,\n\t// monitor_init_failed) use the `monitor` category, which is not user-configurable:\n\t// it flows automatically whenever any CDP category (console, network, page,\n\t// interaction) is captured, and is silent otherwise. monitor_screenshot uses the\n\t// opt-in `screenshot` category. All other event types are controlled by their\n\t// per-category enable/disable flags.\n\tEvent BrowserTelemetryEventUnion `json:\"event\" api:\"required\"`\n\t// Process-monotonic sequence number assigned by the browser VM. Pass as\n\t// Last-Event-ID on reconnect to resume without gaps. Gaps in received seq values\n\t// indicate dropped events.\n\tSeq int64 `json:\"seq\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEvent       respjson.Field\n\t\tSeq         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nEnvelope wrapping a browser telemetry event with its monotonic sequence number. Each SSE data: frame carries one envelope as JSON. The seq value is also emitted as the SSE id: field so clients can pass it as Last-Event-ID on reconnect.\n\n```go\nfunc (r BrowserTelemetryEventsResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserTelemetryEventsResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserTelemetryExportConfig struct {\n\t// Active OTLP export state.\n\tOtlp BrowserTelemetryOtlpExportConfig `json:\"otlp\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tOtlp        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nActive export state for a session's captured telemetry, by protocol.\n\n```go\nfunc (r BrowserTelemetryExportConfig) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserTelemetryExportConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserTelemetryOtlpExportConfig struct {\n\t// ID of the OTLP destination the session is bound to. Omitted when the session is\n\t// not exporting.\n\tDestination string `json:\"destination\"`\n\t// Whether the session is exporting captured telemetry over OTLP.\n\tEnabled bool `json:\"enabled\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDestination respjson.Field\n\t\tEnabled     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nActive OTLP export state for a browser session.\n\n```go\nfunc (r BrowserTelemetryOtlpExportConfig) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserTelemetryOtlpExportConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserTelemetryService struct {\n\tOptions []option.RequestOption\n}\n```\nStream live telemetry events from a browser session, and manage the destinations sessions export them to.\n\nBrowserTelemetryService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewBrowserTelemetryService](#NewBrowserTelemetryService) method instead.\n\n```go\nfunc NewBrowserTelemetryService(opts ...option.RequestOption) (r BrowserTelemetryService)\n```\nNewBrowserTelemetryService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *BrowserTelemetryService) Events(ctx context.Context, idOrName string, query BrowserTelemetryEventsParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[BrowserTelemetryEventsResponse], err error)\n```\nReads a page of telemetry events for the browser session. To page through results, pass the X-Next-Offset value from the previous response as offset and repeat while X-Has-More is true. The category and type filters apply within each page, so a filtered page may be empty while X-Has-More is true. Returns an empty list when telemetry data is unavailable.\n\n```go\nfunc (r *BrowserTelemetryService) EventsAutoPaging(ctx context.Context, idOrName string, query BrowserTelemetryEventsParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[BrowserTelemetryEventsResponse]\n```\nReads a page of telemetry events for the browser session. To page through results, pass the X-Next-Offset value from the previous response as offset and repeat while X-Has-More is true. The category and type filters apply within each page, so a filtered page may be empty while X-Has-More is true. Returns an empty list when telemetry data is unavailable.\n\n```go\nfunc (r *BrowserTelemetryService) StreamStreaming(ctx context.Context, idOrName string, params BrowserTelemetryStreamParams, opts ...option.RequestOption) (stream *ssestream.Stream[BrowserTelemetryStreamResponse])\n```\nStreams browser telemetry events as a server-sent events (SSE) stream. The stream closes when the browser session terminates. Each event frame includes an id: field containing a monotonically increasing sequence number; pass it as Last-Event-ID on reconnect to resume without gaps. The event: field is never set; event frames carry JSON in the data: field. A frame with an id: field and no data: field moves Last-Event-ID past events that were not delivered, because a type filter excluded them or they could not be decoded or exceeded the size limit; SSE clients dispatch no event for it. A keepalive comment frame is sent every 15 seconds when no events arrive. Returns 404 if the browser session does not exist. If telemetry was not enabled on the session, the stream opens but no events are delivered. Fresh connections only see new events; pass replay=all to start from the oldest retained event instead.\n\n```go\ntype BrowserTelemetryStorageConfig struct {\n\t// Whether captured telemetry is persisted to Kernel storage. When off, the\n\t// session's events are only available on the live stream and through any\n\t// configured export.\n\tEnabled bool `json:\"enabled\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEnabled     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nKernel storage state for a session's captured telemetry.\n\n```go\nfunc (r BrowserTelemetryStorageConfig) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserTelemetryStorageConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserTelemetryStreamParams struct {\n\t// Pass `all` to start from the oldest retained event instead of only new events;\n\t// any other value is treated as from-now. The buffer is bounded, so the first\n\t// event id may be greater than 1 if older events were evicted.\n\tReplay      param.Opt[string] `query:\"replay,omitzero\" json:\"-\"`\n\tLastEventID param.Opt[string] `header:\"Last-Event-ID,omitzero\" json:\"-\"`\n\t// Deliver only these event types, such as captcha_solve_started or\n\t// captcha_challenge_result. Repeat the parameter or pass comma-separated values\n\t// for multiple types. Keepalive frames are always delivered. Filtered-out events\n\t// are not sent. An id-only frame carrying the latest skipped id is sent about\n\t// every 15 seconds while skipped events keep arriving, and otherwise with the next\n\t// keepalive or when the stream ends, so the connection stays active and\n\t// Last-Event-ID moves past them; a reconnect resumes after the skipped events.\n\tType []string `query:\"type,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserTelemetryStreamParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [BrowserTelemetryStreamParams](#BrowserTelemetryStreamParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype BrowserTelemetryStreamResponse struct {\n\t// Union type representing any browser telemetry event. Discriminated on `type`.\n\t// Each event's `category` determines when it is captured. The CDP collector-health\n\t// events (monitor_disconnected, monitor_reconnected, monitor_reconnect_failed,\n\t// monitor_init_failed) use the `monitor` category, which is not user-configurable:\n\t// it flows automatically whenever any CDP category (console, network, page,\n\t// interaction) is captured, and is silent otherwise. monitor_screenshot uses the\n\t// opt-in `screenshot` category. All other event types are controlled by their\n\t// per-category enable/disable flags.\n\tEvent BrowserTelemetryEventUnion `json:\"event\" api:\"required\"`\n\t// Process-monotonic sequence number assigned by the browser VM. Pass as\n\t// Last-Event-ID on reconnect to resume without gaps. Gaps in received seq values\n\t// indicate dropped events.\n\tSeq int64 `json:\"seq\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEvent       respjson.Field\n\t\tSeq         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nEnvelope wrapping a browser telemetry event with its monotonic sequence number. Each SSE data: frame carries one envelope as JSON. The seq value is also emitted as the SSE id: field so clients can pass it as Last-Event-ID on reconnect.\n\n```go\nfunc (r BrowserTelemetryStreamResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserTelemetryStreamResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserUpdateParams struct {\n\t// Human-readable name for the browser session. Omit to leave unchanged, set to an\n\t// empty string to clear the name. When set, must be unique among active sessions\n\t// within the project.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// ID of the proxy to use. Omit to leave unchanged, set to empty string to remove\n\t// proxy. Deprecated in favor of proxy.\n\tProxyID param.Opt[string] `json:\"proxy_id,omitzero\"`\n\t// Enable or disable the browser's CAPTCHA solver immediately, without restarting\n\t// the browser or interrupting the current page. Omit to leave the solver\n\t// unchanged. Only available for browsers created with the CAPTCHA solver, and for\n\t// macOS browsers.\n\tCaptchaSolverEnabled param.Opt[bool] `json:\"captcha_solver_enabled,omitzero\"`\n\t// If true, stealth browsers connect directly instead of using the default stealth\n\t// proxy. Deprecated in favor of proxy.mode.\n\tDisableDefaultProxy param.Opt[bool] `json:\"disable_default_proxy,omitzero\"`\n\t// Seconds the browser waits after its last connection closes before entering\n\t// standby. Omit to leave unchanged. Minimum allowed is 3 seconds. Maximum allowed\n\t// is 300 seconds. Not supported on GPU browsers or macOS browsers. A browser\n\t// acquired from a browser pool returns to the platform default when released.\n\tStandbyIdleTimeoutSeconds param.Opt[int64] `json:\"standby_idle_timeout_seconds,omitzero\"`\n\t// Optional URL to navigate the browser to after applying this update. When a\n\t// profile is loaded in the same update, this overrides the profile's restored\n\t// tabs. Navigation is best-effort, so failures do not fail the update. Omit or set\n\t// to an empty string to leave the current page unchanged.\n\tStartURL param.Opt[string] `json:\"start_url,omitzero\"`\n\t// Telemetry configuration. Omit, set to null, or set to an empty object ({}) to\n\t// leave the existing configuration unchanged. Set enabled to true to enable\n\t// capture using VM defaults. Set enabled to false to stop capture. Provide browser\n\t// category settings for per-category updates. Explicitly disabling all four\n\t// categories also stops capture.\n\tTelemetry BrowserUpdateParamsTelemetry `json:\"telemetry,omitzero\"`\n\t// Change the browser's network bandwidth limits. Omit to leave them unchanged. Not\n\t// supported on macOS browsers or browsers from a browser pool. Returns 409 when\n\t// the browser can't apply the change right now; retry later. The limits are not\n\t// returned in browser responses.\n\tBandwidth BrowserBandwidthParam `json:\"bandwidth,omitzero\"`\n\t// Session-only timezone and locale overrides. Omit the object or a field to leave\n\t// it unchanged; set a string to override; set null to clear that field and use the\n\t// browser region's default. A browser that cannot change location refuses the\n\t// request before anything changes. The location applies after the request's other\n\t// changes, and start_url opens once it has applied. If applying it fails, the\n\t// other changes and the saved override remain and start_url does not open; retry\n\t// the request to apply both.\n\tLocation BrowserLocationUpdateRequestParam `json:\"location,omitzero\"`\n\t// Network configuration changes to apply to the running browser session.\n\tNetwork BrowserNetworkUpdateParam `json:\"network,omitzero\"`\n\t// Profile to load into the browser session. Only allowed if the session does not\n\t// already have a profile loaded.\n\tProfile shared.BrowserProfileParam `json:\"profile,omitzero\"`\n\t// Proxy configuration to apply. Omit to leave the current configuration unchanged.\n\t// Cannot be combined with proxy_id or disable_default_proxy. Set mode to direct to\n\t// switch to direct egress. Set mode to default to use Kernel's default stealth\n\t// proxy for a browser with CAPTCHA solving enabled, or direct egress otherwise.\n\t// Updating proxy does not change CAPTCHA solver behavior.\n\tProxy BrowserProxyConfigParam `json:\"proxy,omitzero\"`\n\t// User-defined key-value tags for the browser session. Omit to leave unchanged.\n\t// Provide a map to replace the entire tag set (full replace, not a merge). Set to\n\t// an empty object ({}) to clear all tags. Up to 50 pairs.\n\tTags Tags `json:\"tags,omitzero\"`\n\t// Viewport configuration to apply to the browser session.\n\tViewport BrowserUpdateParamsViewport `json:\"viewport,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserUpdateParamsTelemetry struct {\n\t// Request shortcut for browser telemetry capture. True enables capture; with no\n\t// browser category settings it captures the default set (control, connection,\n\t// system, captcha), and any browser category settings are layered onto that\n\t// default set. On update, enabled=true resolves the config fresh from the default\n\t// set plus any provided categories, replacing the session's current selection\n\t// rather than merging onto it; omit enabled to merge categories onto the current\n\t// selection instead. False stops capture on update and starts no capture on\n\t// create. enabled=false cannot be combined with browser category settings.\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// Per-category capture flags. The operational categories (control, connection,\n\t// system, captcha) are captured whenever telemetry is enabled; set one to\n\t// enabled=false to opt out. The CDP categories (console, network, page,\n\t// interaction), screenshot and platform are off by default; set enabled=true to\n\t// opt in. On create, provided categories layer onto the default set. On update,\n\t// provided categories merge onto the session's current config; when no telemetry\n\t// is active this falls back to the default set (matching create). If browser is\n\t// omitted or empty, the default set is used. A browser config that disables every\n\t// category stops capture on update and starts no capture on create.\n\tBrowser BrowserTelemetryCategoriesConfigParam `json:\"browser,omitzero\"`\n\t// Where to export this session's captured telemetry. Omit to capture without\n\t// exporting.\n\tExport BrowserUpdateParamsTelemetryExport `json:\"export,omitzero\"`\n\t// Whether to persist this session's captured telemetry to Kernel storage.\n\tStorage BrowserUpdateParamsTelemetryStorage `json:\"storage,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nTelemetry configuration. Omit, set to null, or set to an empty object ({}) to leave the existing configuration unchanged. Set enabled to true to enable capture using VM defaults. Set enabled to false to stop capture. Provide browser category settings for per-category updates. Explicitly disabling all four categories also stops capture.\n\n```go\nfunc (r BrowserUpdateParamsTelemetry) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserUpdateParamsTelemetry) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserUpdateParamsTelemetryExport struct {\n\t// Export captured telemetry over OTLP to one of the org's configured destinations.\n\tOtlp BrowserUpdateParamsTelemetryExportOtlp `json:\"otlp,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nWhere to export this session's captured telemetry. Omit to capture without exporting.\n\n```go\nfunc (r BrowserUpdateParamsTelemetryExport) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserUpdateParamsTelemetryExport) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserUpdateParamsTelemetryExportOtlp struct {\n\t// Whether to export captured telemetry over OTLP. Setting destination implies\n\t// enabled=true, so this only needs to be set explicitly to disable export\n\t// (enabled=false with a destination is rejected).\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// OTLP destination to export this session's captured telemetry to. Provide either\n\t// id or name. Requires telemetry capture to be enabled.\n\tDestination BrowserUpdateParamsTelemetryExportOtlpDestination `json:\"destination,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nExport captured telemetry over OTLP to one of the org's configured destinations.\n\n```go\nfunc (r BrowserUpdateParamsTelemetryExportOtlp) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserUpdateParamsTelemetryExportOtlp) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserUpdateParamsTelemetryExportOtlpDestination struct {\n\t// OTLP destination ID\n\tID param.Opt[string] `json:\"id,omitzero\"`\n\t// OTLP destination name\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nOTLP destination to export this session's captured telemetry to. Provide either id or name. Requires telemetry capture to be enabled.\n\n```go\nfunc (r BrowserUpdateParamsTelemetryExportOtlpDestination) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserUpdateParamsTelemetryExportOtlpDestination) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserUpdateParamsTelemetryStorage struct {\n\t// Whether captured telemetry is persisted to Kernel storage. Defaults to true.\n\t// Setting false requires an OTLP destination and cannot be changed after the\n\t// browser is created.\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nWhether to persist this session's captured telemetry to Kernel storage.\n\n```go\nfunc (r BrowserUpdateParamsTelemetryStorage) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserUpdateParamsTelemetryStorage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserUpdateParamsViewport struct {\n\t// If true, allow the viewport change even when a live view or recording/replay is\n\t// active. Active recordings will be gracefully stopped and restarted at the new\n\t// resolution as separate segments. If false (default), the resize is refused when\n\t// a live view or recording is active.\n\tForce param.Opt[bool] `json:\"force,omitzero\"`\n\tshared.BrowserViewportParam\n}\n```\nViewport configuration to apply to the browser session.\n\n```go\nfunc (r BrowserUpdateParamsViewport) MarshalJSON() (data []byte, err error)\n```\n\n```go\ntype BrowserUpdateResponse struct {\n\t// Automatic CAPTCHA solving configuration.\n\tCaptchaSolver BrowserCaptchaSolver `json:\"captcha_solver\" api:\"required\"`\n\t// Websocket URL for Chrome DevTools Protocol connections to the browser session\n\tCdpWsURL string `json:\"cdp_ws_url\" api:\"required\"`\n\t// When the browser session was created.\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Whether the browser session is running in headless mode.\n\tHeadless bool `json:\"headless\" api:\"required\"`\n\t// Memory allocated to the browser session.\n\t//\n\t// Any of \"1GiB\", \"2GiB\", \"4GiB\", \"6GiB\", \"8GiB\", \"12GiB\", \"16GiB\".\n\tMemory BrowserMemory `json:\"memory\" api:\"required\"`\n\t// Geographic region of the browser session. Fixed once the session is created.\n\t//\n\t// Any of \"us-east\", \"us-west\", \"eu-west\", \"ap-southeast\".\n\tRegion BrowserUpdateResponseRegion `json:\"region\" api:\"required\"`\n\t// Unique identifier for the browser session\n\tSessionID string `json:\"session_id\" api:\"required\"`\n\t// Whether the browser session has CAPTCHA solving enabled, in which case\n\t// proxy.mode=default uses Kernel's default stealth proxy. A browser created with\n\t// only captcha_solver reports true with proxy.mode=direct. Deprecated in favor of\n\t// captcha_solver and proxy.\n\t//\n\t// Deprecated: deprecated\n\tStealth bool `json:\"stealth\" api:\"required\"`\n\t// The number of seconds of inactivity before the browser session is terminated.\n\tTimeoutSeconds int64 `json:\"timeout_seconds\" api:\"required\"`\n\t// Websocket URL for WebDriver BiDi connections to the browser session\n\tWebdriverWsURL string `json:\"webdriver_ws_url\" api:\"required\"`\n\t// Metro-API HTTP base URL for this browser session.\n\tBaseURL string `json:\"base_url\"`\n\t// Remote URL for live viewing the browser session. Only available for non-headless\n\t// browsers.\n\tBrowserLiveViewURL string `json:\"browser_live_view_url\"`\n\t// Custom Chrome enterprise policy overrides that were applied to this browser\n\t// session, if any. Echoed back for verification. Keys are Chrome enterprise policy\n\t// names.\n\tChromePolicy map[string]any `json:\"chrome_policy\"`\n\t// Provisional browser-session usage cost. Present only on GET detail responses\n\t// requested with include_cost=true; omitted otherwise and from list and other\n\t// browser responses.\n\tCost BrowserCost `json:\"cost\"`\n\t// When the browser session was soft-deleted. Only present for deleted sessions.\n\tDeletedAt time.Time `json:\"deleted_at\" format:\"date-time\"`\n\t// Fingerprint applied to this browser session. Omitted when the session was\n\t// created without one.\n\tFingerprint BrowserFingerprint `json:\"fingerprint\"`\n\t// Whether GPU acceleration is enabled for the browser session (only supported for\n\t// headful sessions).\n\tGPU bool `json:\"gpu\"`\n\t// Whether the browser session is running in kiosk mode.\n\tKioskMode bool `json:\"kiosk_mode\"`\n\t// When the pooled browser session was last leased. Only present for leased pooled\n\t// sessions.\n\tLeasedAt time.Time `json:\"leased_at\" format:\"date-time\"`\n\t// Effective browser timezone and locale with per-field provenance.\n\tLocation BrowserLocation `json:\"location\"`\n\t// Human-readable name of the browser session, if one was set at creation.\n\tName string `json:\"name\"`\n\t// Network configuration the session was created with, if any. Omitted when the\n\t// session has no network configuration.\n\tNetwork BrowserNetworkConfig `json:\"network\"`\n\t// Host platform for the browser session. Absent means linux.\n\tPlatform BrowserPlatform `json:\"platform\"`\n\t// Browser pool this session was acquired from, if any.\n\tPool BrowserPoolRef `json:\"pool\"`\n\t// Browser profile metadata.\n\tProfile Profile `json:\"profile\"`\n\t// Whether changes made during this browser session are saved back to its profile\n\t// when the session ends. Omitted when no profile is attached.\n\tProfileSaveChanges bool `json:\"profile_save_changes\"`\n\t// Resolved proxy configuration for this browser session.\n\tProxy BrowserProxy `json:\"proxy\"`\n\t// ID of the proxy associated with this browser session, if any. Deprecated in\n\t// favor of proxy.\n\t//\n\t// Deprecated: deprecated\n\tProxyID string `json:\"proxy_id\"`\n\t// Replay recording started by `start_replay` when this browser was created or\n\t// acquired. Omitted otherwise; list replays with\n\t// `GET /browsers/{id_or_name}/replays`.\n\tReplay BrowserUpdateResponseReplay `json:\"replay\"`\n\t// Seconds the browser waits after its last connection closes before entering\n\t// standby. Omitted when the browser uses the platform default.\n\tStandbyIdleTimeoutSeconds int64 `json:\"standby_idle_timeout_seconds\"`\n\t// URL the session was most recently asked to navigate to, if any. Recorded for\n\t// debugging. Navigation is fire-and-forget — the URL is dispatched to the browser\n\t// without waiting for it to load, and any errors (DNS failure, bad status,\n\t// timeout) are silently dropped. Captures what was requested, not what the browser\n\t// actually loaded.\n\tStartURL string `json:\"start_url\"`\n\t// User-defined key-value tags that were set on this browser session, if any.\n\t// Echoed back when present.\n\tTags Tags `json:\"tags\"`\n\t// Active telemetry configuration for the session, if any.\n\tTelemetry BrowserTelemetryConfig `json:\"telemetry\" api:\"nullable\"`\n\t// Session usage metrics.\n\tUsage BrowserUsage `json:\"usage\"`\n\t// Whether final usage billing is still pending or complete. Only present for\n\t// deleted sessions.\n\t//\n\t// Any of \"pending\", \"ready\".\n\tUsageStatus BrowserUpdateResponseUsageStatus `json:\"usage_status\"`\n\t// Vaults linked when the browser session was created.\n\tVaults []VaultReference `json:\"vaults\"`\n\t// Video memory (VRAM) of the GPU browser session. Only present when gpu is true.\n\t//\n\t// Any of \"3GiB\", \"6GiB\", \"2GiB\", \"4GiB\".\n\tVideoMemory BrowserVideoMemory `json:\"video_memory\"`\n\t// Initial browser window size in pixels with optional refresh rate. If omitted,\n\t// image defaults apply (1920x1080@25). For GPU images, the default is\n\t// 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.\n\t// Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,\n\t// 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For\n\t// GPU images, recommended presets use one of these resolutions with refresh rates\n\t// 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,\n\t// 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,\n\t// 768x1024, 800x1600. Viewports outside this list may exhibit unstable live view\n\t// or recording behavior. If refresh_rate is not provided, it will be automatically\n\t// determined based on the resolution (higher resolutions use lower refresh rates\n\t// to keep bandwidth reasonable).\n\tViewport shared.BrowserViewport `json:\"viewport\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCaptchaSolver             respjson.Field\n\t\tCdpWsURL                  respjson.Field\n\t\tCreatedAt                 respjson.Field\n\t\tHeadless                  respjson.Field\n\t\tMemory                    respjson.Field\n\t\tRegion                    respjson.Field\n\t\tSessionID                 respjson.Field\n\t\tStealth                   respjson.Field\n\t\tTimeoutSeconds            respjson.Field\n\t\tWebdriverWsURL            respjson.Field\n\t\tBaseURL                   respjson.Field\n\t\tBrowserLiveViewURL        respjson.Field\n\t\tChromePolicy              respjson.Field\n\t\tCost                      respjson.Field\n\t\tDeletedAt                 respjson.Field\n\t\tFingerprint               respjson.Field\n\t\tGPU                       respjson.Field\n\t\tKioskMode                 respjson.Field\n\t\tLeasedAt                  respjson.Field\n\t\tLocation                  respjson.Field\n\t\tName                      respjson.Field\n\t\tNetwork                   respjson.Field\n\t\tPlatform                  respjson.Field\n\t\tPool                      respjson.Field\n\t\tProfile                   respjson.Field\n\t\tProfileSaveChanges        respjson.Field\n\t\tProxy                     respjson.Field\n\t\tProxyID                   respjson.Field\n\t\tReplay                    respjson.Field\n\t\tStandbyIdleTimeoutSeconds respjson.Field\n\t\tStartURL                  respjson.Field\n\t\tTags                      respjson.Field\n\t\tTelemetry                 respjson.Field\n\t\tUsage                     respjson.Field\n\t\tUsageStatus               respjson.Field\n\t\tVaults                    respjson.Field\n\t\tVideoMemory               respjson.Field\n\t\tViewport                  respjson.Field\n\t\tExtraFields               map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r BrowserUpdateResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserUpdateResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserUpdateResponseRegion string\n```\nGeographic region of the browser session. Fixed once the session is created.\n\n```go\nconst (\n\tBrowserUpdateResponseRegionUsEast      BrowserUpdateResponseRegion = \"us-east\"\n\tBrowserUpdateResponseRegionUsWest      BrowserUpdateResponseRegion = \"us-west\"\n\tBrowserUpdateResponseRegionEuWest      BrowserUpdateResponseRegion = \"eu-west\"\n\tBrowserUpdateResponseRegionApSoutheast BrowserUpdateResponseRegion = \"ap-southeast\"\n)\n```\n\n```go\ntype BrowserUpdateResponseReplay struct {\n\t// Unique identifier for the replay recording.\n\tReplayID string `json:\"replay_id\" api:\"required\"`\n\t// Timestamp when replay finished\n\tFinishedAt time.Time `json:\"finished_at\" api:\"nullable\" format:\"date-time\"`\n\t// URL for viewing the replay recording.\n\tReplayViewURL string `json:\"replay_view_url\"`\n\t// Timestamp when replay started\n\tStartedAt time.Time `json:\"started_at\" api:\"nullable\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tReplayID      respjson.Field\n\t\tFinishedAt    respjson.Field\n\t\tReplayViewURL respjson.Field\n\t\tStartedAt     respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nReplay recording started by \\`start\\_replay\\` when this browser was created or acquired. Omitted otherwise; list replays with \\`GET /browsers/{id\\_or\\_name}/replays\\`.\n\n```go\nfunc (r BrowserUpdateResponseReplay) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserUpdateResponseReplay) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserUpdateResponseUsageStatus string\n```\nWhether final usage billing is still pending or complete. Only present for deleted sessions.\n\n```go\nconst (\n\tBrowserUpdateResponseUsageStatusPending BrowserUpdateResponseUsageStatus = \"pending\"\n\tBrowserUpdateResponseUsageStatusReady   BrowserUpdateResponseUsageStatus = \"ready\"\n)\n```\n\n```go\ntype BrowserUsage struct {\n\t// Time in milliseconds the session was actively running.\n\tUptimeMs int64 `json:\"uptime_ms\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tUptimeMs    respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSession usage metrics.\n\n```go\nfunc (r BrowserUsage) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *BrowserUsage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserVideoMemory string\n```\nVideo memory (VRAM) of a GPU browser session. 3GiB sessions have 4 vCPU and 6GiB memory. 6GiB sessions have 8 vCPU and 12GiB memory. 2GiB and 4GiB are deprecated aliases for 3GiB and 6GiB: they are accepted on create and never returned.\n\n```go\nconst (\n\tBrowserVideoMemory3GiB BrowserVideoMemory = \"3GiB\"\n\tBrowserVideoMemory6GiB BrowserVideoMemory = \"6GiB\"\n\tBrowserVideoMemory2GiB BrowserVideoMemory = \"2GiB\"\n\tBrowserVideoMemory4GiB BrowserVideoMemory = \"4GiB\"\n)\n```\n\n```go\ntype BrowserViewport = shared.BrowserViewport\n```\nInitial browser window size in pixels with optional refresh rate. If omitted, image defaults apply (1920x1080@25). For GPU images, the default is 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted. Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For GPU images, recommended presets use one of these resolutions with refresh rates 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600. Viewports outside this list may exhibit unstable live view or recording behavior. If refresh\\_rate is not provided, it will be automatically determined based on the resolution (higher resolutions use lower refresh rates to keep bandwidth reasonable).\n\nThis is an alias to an internal type.\n\n```go\ntype BrowserViewportParam = shared.BrowserViewportParam\n```\nInitial browser window size in pixels with optional refresh rate. If omitted, image defaults apply (1920x1080@25). For GPU images, the default is 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted. Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For GPU images, recommended presets use one of these resolutions with refresh rates 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600. Viewports outside this list may exhibit unstable live view or recording behavior. If refresh\\_rate is not provided, it will be automatically determined based on the resolution (higher resolutions use lower refresh rates to keep bandwidth reasonable).\n\nThis is an alias to an internal type.\n\n```go\ntype BrowserWebmcpCustomToolAddParams struct {\n\tAddRequest AddRequestParam\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserWebmcpCustomToolAddParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserWebmcpCustomToolAddParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserWebmcpCustomToolRemoveParams struct {\n\tIDOrName string `path:\"id_or_name\" api:\"required\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype BrowserWebmcpCustomToolService struct {\n\tOptions []option.RequestOption\n}\n```\nDiscover and invoke native page tools across the browser instance.\n\nBrowserWebmcpCustomToolService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewBrowserWebmcpCustomToolService](#NewBrowserWebmcpCustomToolService) method instead.\n\n```go\nfunc NewBrowserWebmcpCustomToolService(opts ...option.RequestOption) (r BrowserWebmcpCustomToolService)\n```\nNewBrowserWebmcpCustomToolService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *BrowserWebmcpCustomToolService) Add(ctx context.Context, idOrName string, body BrowserWebmcpCustomToolAddParams, opts ...option.RequestOption) (res *CustomToolsResponse, err error)\n```\nAdd a namespaced batch of custom tools. A custom tool can be page-backed or CDP-backed. Page-backed tools execute in the page via JavaScript. CDP-backed tools execute via CDP and can use all browser REPL tools (see \\`/repl\\`). The source must evaluate to a non-empty array of definitions with URL matchers, tool metadata (including an optional output schema), and execute functions. The batch is added atomically. Matchers apply to top-level documents and nested frames, including out-of-process iframes; each matching tool is exposed once on the tab's top-level document and appears in the WebMCP tool snapshot.\n\nTo update one tool, list the tools, delete its ID, and add its replacement. Set force\\_overwrite\\_namespace to replace every existing tool in the namespace atomically; omitted or false adds tools without replacing existing ones. Existing invocations continue.\n\n```go\nfunc (r *BrowserWebmcpCustomToolService) List(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *CustomToolsResponse, err error)\n```\nReturns every registered custom tool with its generated ID, namespace, matcher, and MCP tool metadata.\n\n```go\nfunc (r *BrowserWebmcpCustomToolService) Remove(ctx context.Context, id string, body BrowserWebmcpCustomToolRemoveParams, opts ...option.RequestOption) (err error)\n```\nRemoves one custom tool by generated ID. An invocation already in progress is not canceled.\n\n```go\ntype BrowserWebmcpInvokeToolParams struct {\n\tInvokeRequest InvokeRequestParam\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserWebmcpInvokeToolParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserWebmcpInvokeToolParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserWebmcpListToolsParams struct {\n\t// Exclude custom tools when true.\n\tExcludeCustom param.Opt[bool] `query:\"exclude_custom,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BrowserWebmcpListToolsParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [BrowserWebmcpListToolsParams](#BrowserWebmcpListToolsParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype BrowserWebmcpService struct {\n\tOptions []option.RequestOption\n\t// Discover and invoke native page tools across the browser instance.\n\tCustomTools BrowserWebmcpCustomToolService\n}\n```\nDiscover and invoke native page tools across the browser instance.\n\nBrowserWebmcpService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewBrowserWebmcpService](#NewBrowserWebmcpService) method instead.\n\n```go\nfunc NewBrowserWebmcpService(opts ...option.RequestOption) (r BrowserWebmcpService)\n```\nNewBrowserWebmcpService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *BrowserWebmcpService) InvokeTool(ctx context.Context, idOrName string, body BrowserWebmcpInvokeToolParams, opts ...option.RequestOption) (res *InvocationResult, err error)\n```\nInvokes the exact live registration identified by tool\\_ref. Non-autosubmit declarative form tools return after their fields are populated with an awaiting\\_submission status. Other tools wait for a terminal result, including across navigation. Inspect a populated form, obtain any required confirmation, then submit through Playwright or computer interaction without invoking the tool again. If the tab or embedded frame disappears, or the request times out after invocation begins, the response reports outcome\\_unknown. If the tool's page is reloaded or replaced by a navigation the tool did not start, and the tool never responds, the response reports tool\\_page\\_unloaded once the replacement page loads, or right away if the tool's tab crashes. Neither failure is retried, and both set X-Should-Retry to false because the tool may have had side effects. CDP-backed custom tool outputs above 240 KiB return an error rather than a truncated result.\n\n```go\nfunc (r *BrowserWebmcpService) ListTools(ctx context.Context, idOrName string, query BrowserWebmcpListToolsParams, opts ...option.RequestOption) (res *ToolsResponse, err error)\n```\nReturns a snapshot of native and custom WebMCP tools available across every open tab and embedded frame in the browser. Each tool includes an opaque tool\\_ref for invoking that exact live registration, nested tool metadata, and source information. Custom tools include their generated ID, namespace, and CDP target\\_id in source. Tools disappear when their document closes or navigates away. Use exclude\\_custom to return only page-provided tools.\n\n```go\ntype CardVaultItemSpecAgentcard struct {\n\t// Integer amount in minor currency units.\n\tAmount   int64  `json:\"amount\" api:\"required\"`\n\tCurrency string `json:\"currency\" api:\"required\"`\n\t// Merchant name shown on the cardholder's approval screen.\n\tMerchant string             `json:\"merchant\" api:\"required\"`\n\tProvider constant.Agentcard `json:\"provider\" default:\"agentcard\"`\n\t// Wallet item key used to authorize checkouts.\n\tWallet string `json:\"wallet\" api:\"required\"`\n\t// Opaque card ID returned by AgentCard for a card in the connected wallet. Pass it\n\t// through unchanged without assuming a prefix or format. Omitted, the cardholder\n\t// picks on the approval screen.\n\tCardID string `json:\"card_id\"`\n\t// Origin of the top-level checkout page, such as https://shop.example.com: https,\n\t// a lowercase host, a port only when it is not 443, and no path. http is accepted\n\t// only for localhost test pages. Checkouts without a preparation send it to\n\t// AgentCard, which uses it to match the cardholder's autopilot rules; prepared\n\t// checkouts send the preparation's merchant_origin instead. Kernel sends the\n\t// declared value and does not compare it with the page the browser has open.\n\t// Omitted, those checkouts ask the cardholder to approve. Card updates replace the\n\t// whole spec, so an update that omits it removes it.\n\tCheckoutOrigin string `json:\"checkout_origin\"`\n\t// Discount as a positive number of minor currency units; 500 takes 5.00 off.\n\t// Requires line_items.\n\tDiscount int64 `json:\"discount\"`\n\t// What the next checkout buys, listed on the cardholder's approval screen above\n\t// the total. Display only: the cardholder approves amount, or the amount the\n\t// processor charges, and a line total that disagrees with it changes nothing they\n\t// pay. Amounts are in minor units of currency. Sent only for checkouts without a\n\t// preparation; omitted, the approval screen shows the merchant and amount alone.\n\t// Card updates replace the whole spec, so set the cart again for each checkout.\n\tLineItems []CardVaultItemSpecAgentcardLineItem `json:\"line_items\"`\n\t// Shipping charge in minor currency units. Requires line_items.\n\tShipping int64 `json:\"shipping\"`\n\t// Cart subtotal in minor currency units. Requires line_items.\n\tSubtotal int64 `json:\"subtotal\"`\n\t// Tax in minor currency units. Requires line_items.\n\tTax int64 `json:\"tax\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAmount         respjson.Field\n\t\tCurrency       respjson.Field\n\t\tMerchant       respjson.Field\n\t\tProvider       respjson.Field\n\t\tWallet         respjson.Field\n\t\tCardID         respjson.Field\n\t\tCheckoutOrigin respjson.Field\n\t\tDiscount       respjson.Field\n\t\tLineItems      respjson.Field\n\t\tShipping       respjson.Field\n\t\tSubtotal       respjson.Field\n\t\tTax            respjson.Field\n\t\tExtraFields    map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAgentCard reusable live payment card. Test-mode card creation is not supported. Each checkout creates an authorization for spec.merchant / spec.amount that the cardholder approves, unless AgentCard runs it under one of the cardholder's autopilot rules. The card stays ready after each authorization.\n\n```go\nfunc (r CardVaultItemSpecAgentcard) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CardVaultItemSpecAgentcard) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CardVaultItemSpecAgentcardLineItem struct {\n\tQuantity int64 `json:\"quantity\" api:\"required\"`\n\t// The product's name as the store shows it.\n\tTitle string `json:\"title\" api:\"required\"`\n\t// The line's total in minor currency units. Shown instead of unit_amount times\n\t// quantity when both are set; a line with neither shows without a price.\n\tAmount int64 `json:\"amount\"`\n\t// Shown beside the title.\n\tBrand string `json:\"brand\"`\n\t// https URL of the product's picture. AgentCard shows pictures only from the image\n\t// hosts it allows and shows the line without one otherwise.\n\tImageURL string `json:\"image_url\" format:\"uri\"`\n\t// The options the shopper chose, such as \"Size S · Pink\".\n\tOptions string `json:\"options\"`\n\t// Price of one, in minor currency units. The line shows unit_amount times\n\t// quantity.\n\tUnitAmount int64 `json:\"unit_amount\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tQuantity    respjson.Field\n\t\tTitle       respjson.Field\n\t\tAmount      respjson.Field\n\t\tBrand       respjson.Field\n\t\tImageURL    respjson.Field\n\t\tOptions     respjson.Field\n\t\tUnitAmount  respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOne product on the AgentCard approval screen.\n\n```go\nfunc (r CardVaultItemSpecAgentcardLineItem) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CardVaultItemSpecAgentcardLineItem) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CardVaultItemSpecAgentcardLineItemParam struct {\n\tQuantity int64 `json:\"quantity\" api:\"required\"`\n\t// The product's name as the store shows it.\n\tTitle string `json:\"title\" api:\"required\"`\n\t// The line's total in minor currency units. Shown instead of unit_amount times\n\t// quantity when both are set; a line with neither shows without a price.\n\tAmount param.Opt[int64] `json:\"amount,omitzero\"`\n\t// Shown beside the title.\n\tBrand param.Opt[string] `json:\"brand,omitzero\"`\n\t// https URL of the product's picture. AgentCard shows pictures only from the image\n\t// hosts it allows and shows the line without one otherwise.\n\tImageURL param.Opt[string] `json:\"image_url,omitzero\" format:\"uri\"`\n\t// The options the shopper chose, such as \"Size S · Pink\".\n\tOptions param.Opt[string] `json:\"options,omitzero\"`\n\t// Price of one, in minor currency units. The line shows unit_amount times\n\t// quantity.\n\tUnitAmount param.Opt[int64] `json:\"unit_amount,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nOne product on the AgentCard approval screen.\n\nThe properties Quantity, Title are required.\n\n```go\nfunc (r CardVaultItemSpecAgentcardLineItemParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *CardVaultItemSpecAgentcardLineItemParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CardVaultItemSpecAgentcardParam struct {\n\t// Integer amount in minor currency units.\n\tAmount   int64  `json:\"amount\" api:\"required\"`\n\tCurrency string `json:\"currency\" api:\"required\"`\n\t// Merchant name shown on the cardholder's approval screen.\n\tMerchant string `json:\"merchant\" api:\"required\"`\n\t// Wallet item key used to authorize checkouts.\n\tWallet string `json:\"wallet\" api:\"required\"`\n\t// Opaque card ID returned by AgentCard for a card in the connected wallet. Pass it\n\t// through unchanged without assuming a prefix or format. Omitted, the cardholder\n\t// picks on the approval screen.\n\tCardID param.Opt[string] `json:\"card_id,omitzero\"`\n\t// Origin of the top-level checkout page, such as https://shop.example.com: https,\n\t// a lowercase host, a port only when it is not 443, and no path. http is accepted\n\t// only for localhost test pages. Checkouts without a preparation send it to\n\t// AgentCard, which uses it to match the cardholder's autopilot rules; prepared\n\t// checkouts send the preparation's merchant_origin instead. Kernel sends the\n\t// declared value and does not compare it with the page the browser has open.\n\t// Omitted, those checkouts ask the cardholder to approve. Card updates replace the\n\t// whole spec, so an update that omits it removes it.\n\tCheckoutOrigin param.Opt[string] `json:\"checkout_origin,omitzero\"`\n\t// Discount as a positive number of minor currency units; 500 takes 5.00 off.\n\t// Requires line_items.\n\tDiscount param.Opt[int64] `json:\"discount,omitzero\"`\n\t// Shipping charge in minor currency units. Requires line_items.\n\tShipping param.Opt[int64] `json:\"shipping,omitzero\"`\n\t// Cart subtotal in minor currency units. Requires line_items.\n\tSubtotal param.Opt[int64] `json:\"subtotal,omitzero\"`\n\t// Tax in minor currency units. Requires line_items.\n\tTax param.Opt[int64] `json:\"tax,omitzero\"`\n\t// What the next checkout buys, listed on the cardholder's approval screen above\n\t// the total. Display only: the cardholder approves amount, or the amount the\n\t// processor charges, and a line total that disagrees with it changes nothing they\n\t// pay. Amounts are in minor units of currency. Sent only for checkouts without a\n\t// preparation; omitted, the approval screen shows the merchant and amount alone.\n\t// Card updates replace the whole spec, so set the cart again for each checkout.\n\tLineItems []CardVaultItemSpecAgentcardLineItemParam `json:\"line_items,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as \"agentcard\".\n\tProvider constant.Agentcard `json:\"provider\" default:\"agentcard\"`\n\t// contains filtered or unexported fields\n}\n```\nAgentCard reusable live payment card. Test-mode card creation is not supported. Each checkout creates an authorization for spec.merchant / spec.amount that the cardholder approves, unless AgentCard runs it under one of the cardholder's autopilot rules. The card stays ready after each authorization.\n\nThe properties Amount, Currency, Merchant, Provider, Wallet are required.\n\n```go\nfunc (r CardVaultItemSpecAgentcardParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *CardVaultItemSpecAgentcardParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CardVaultItemSpecLink struct {\n\t// Integer amount in minor currency units, at most 50000. With recurring, the\n\t// spending limit per period, not a lifetime total.\n\tAmount       int64  `json:\"amount\" api:\"required\"`\n\tContext      string `json:\"context\" api:\"required\"`\n\tCurrency     string `json:\"currency\" api:\"required\"`\n\tMerchantName string `json:\"merchant_name\" api:\"required\"`\n\tMerchantURL  string `json:\"merchant_url\" api:\"required\" format:\"uri\"`\n\t// Payment-method ID returned by the referenced wallet's payment-method listing.\n\t// The provider decides whether the selected funding method can satisfy the card\n\t// request.\n\tPaymentMethodID string        `json:\"payment_method_id\" api:\"required\"`\n\tProvider        constant.Link `json:\"provider\" default:\"link\"`\n\t// Connected Link wallet item key.\n\tWallet    string                          `json:\"wallet\" api:\"required\"`\n\tLineItems []CardVaultItemSpecLinkLineItem `json:\"line_items\"`\n\tMetadata  map[string]string               `json:\"metadata\"`\n\t// Recurring terms for a subscription or other repeated purchase. The amount\n\t// becomes the spending limit for each period of interval_count intervals, for\n\t// example every 2 weeks. The merchant schedules charges. The card stays ready\n\t// after each charge until it expires or is deleted; do not create a new card each\n\t// period. Deleting the card, its wallet or its vault first cancels the credential\n\t// with Link, so later charges decline; if Link cannot be reached, deletion returns\n\t// 409 provider_revocation_pending and should be retried. Deletion does not cancel\n\t// the subscription with the merchant. Recurring terms cannot be changed once the\n\t// card is authorized.\n\tRecurring CardVaultItemSpecLinkRecurring `json:\"recurring\"`\n\tTotals    []CardVaultItemSpecLinkTotal   `json:\"totals\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAmount          respjson.Field\n\t\tContext         respjson.Field\n\t\tCurrency        respjson.Field\n\t\tMerchantName    respjson.Field\n\t\tMerchantURL     respjson.Field\n\t\tPaymentMethodID respjson.Field\n\t\tProvider        respjson.Field\n\t\tWallet          respjson.Field\n\t\tLineItems       respjson.Field\n\t\tMetadata        respjson.Field\n\t\tRecurring       respjson.Field\n\t\tTotals          respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nLive Link card request. Test-mode card creation is not supported. The spec can be changed with PATCH until the card is authorized at a checkout. Authorize it with the browser at final checkout: Kernel inspects the checkout through WebMCP and internally chooses a merchant-bound Link Pay Token when supported or a virtual card otherwise. Callers do not choose how the credential is delivered; after authorize, state.credential\\_type reports it.\n\n```go\nfunc (r CardVaultItemSpecLink) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CardVaultItemSpecLink) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CardVaultItemSpecLinkLineItem struct {\n\tName        string                               `json:\"name\" api:\"required\"`\n\tDescription string                               `json:\"description\"`\n\tImageURL    string                               `json:\"image_url\"`\n\tProductURL  string                               `json:\"product_url\"`\n\tQuantity    int64                                `json:\"quantity\"`\n\tSKU         string                               `json:\"sku\"`\n\tTotals      []CardVaultItemSpecLinkLineItemTotal `json:\"totals\"`\n\t// Unit amount in minor currency units.\n\tUnitAmount int64  `json:\"unit_amount\"`\n\tURL        string `json:\"url\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tName        respjson.Field\n\t\tDescription respjson.Field\n\t\tImageURL    respjson.Field\n\t\tProductURL  respjson.Field\n\t\tQuantity    respjson.Field\n\t\tSKU         respjson.Field\n\t\tTotals      respjson.Field\n\t\tUnitAmount  respjson.Field\n\t\tURL         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r CardVaultItemSpecLinkLineItem) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CardVaultItemSpecLinkLineItem) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CardVaultItemSpecLinkLineItemParam struct {\n\tName        string            `json:\"name\" api:\"required\"`\n\tDescription param.Opt[string] `json:\"description,omitzero\"`\n\tImageURL    param.Opt[string] `json:\"image_url,omitzero\"`\n\tProductURL  param.Opt[string] `json:\"product_url,omitzero\"`\n\tQuantity    param.Opt[int64]  `json:\"quantity,omitzero\"`\n\tSKU         param.Opt[string] `json:\"sku,omitzero\"`\n\t// Unit amount in minor currency units.\n\tUnitAmount param.Opt[int64]                          `json:\"unit_amount,omitzero\"`\n\tURL        param.Opt[string]                         `json:\"url,omitzero\"`\n\tTotals     []CardVaultItemSpecLinkLineItemTotalParam `json:\"totals,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Name is required.\n\n```go\nfunc (r CardVaultItemSpecLinkLineItemParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *CardVaultItemSpecLinkLineItemParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CardVaultItemSpecLinkLineItemTotal struct {\n\t// Total amount in minor currency units.\n\tAmount      int64  `json:\"amount\" api:\"required\"`\n\tDisplayText string `json:\"display_text\" api:\"required\"`\n\tType        string `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAmount      respjson.Field\n\t\tDisplayText respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r CardVaultItemSpecLinkLineItemTotal) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CardVaultItemSpecLinkLineItemTotal) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CardVaultItemSpecLinkLineItemTotalParam struct {\n\t// Total amount in minor currency units.\n\tAmount      int64  `json:\"amount\" api:\"required\"`\n\tDisplayText string `json:\"display_text\" api:\"required\"`\n\tType        string `json:\"type\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Amount, DisplayText, Type are required.\n\n```go\nfunc (r CardVaultItemSpecLinkLineItemTotalParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *CardVaultItemSpecLinkLineItemTotalParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CardVaultItemSpecLinkParam struct {\n\t// Integer amount in minor currency units, at most 50000. With recurring, the\n\t// spending limit per period, not a lifetime total.\n\tAmount       int64  `json:\"amount\" api:\"required\"`\n\tContext      string `json:\"context\" api:\"required\"`\n\tCurrency     string `json:\"currency\" api:\"required\"`\n\tMerchantName string `json:\"merchant_name\" api:\"required\"`\n\tMerchantURL  string `json:\"merchant_url\" api:\"required\" format:\"uri\"`\n\t// Payment-method ID returned by the referenced wallet's payment-method listing.\n\t// The provider decides whether the selected funding method can satisfy the card\n\t// request.\n\tPaymentMethodID string `json:\"payment_method_id\" api:\"required\"`\n\t// Connected Link wallet item key.\n\tWallet    string                               `json:\"wallet\" api:\"required\"`\n\tLineItems []CardVaultItemSpecLinkLineItemParam `json:\"line_items,omitzero\"`\n\tMetadata  map[string]string                    `json:\"metadata,omitzero\"`\n\t// Recurring terms for a subscription or other repeated purchase. The amount\n\t// becomes the spending limit for each period of interval_count intervals, for\n\t// example every 2 weeks. The merchant schedules charges. The card stays ready\n\t// after each charge until it expires or is deleted; do not create a new card each\n\t// period. Deleting the card, its wallet or its vault first cancels the credential\n\t// with Link, so later charges decline; if Link cannot be reached, deletion returns\n\t// 409 provider_revocation_pending and should be retried. Deletion does not cancel\n\t// the subscription with the merchant. Recurring terms cannot be changed once the\n\t// card is authorized.\n\tRecurring CardVaultItemSpecLinkRecurringParam `json:\"recurring,omitzero\"`\n\tTotals    []CardVaultItemSpecLinkTotalParam   `json:\"totals,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as \"link\".\n\tProvider constant.Link `json:\"provider\" default:\"link\"`\n\t// contains filtered or unexported fields\n}\n```\nLive Link card request. Test-mode card creation is not supported. The spec can be changed with PATCH until the card is authorized at a checkout. Authorize it with the browser at final checkout: Kernel inspects the checkout through WebMCP and internally chooses a merchant-bound Link Pay Token when supported or a virtual card otherwise. Callers do not choose how the credential is delivered; after authorize, state.credential\\_type reports it.\n\nThe properties Amount, Context, Currency, MerchantName, MerchantURL, PaymentMethodID, Provider, Wallet are required.\n\n```go\nfunc (r CardVaultItemSpecLinkParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *CardVaultItemSpecLinkParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CardVaultItemSpecLinkRecurring struct {\n\t// Any of \"day\", \"week\", \"month\", \"year\".\n\tInterval string `json:\"interval\" api:\"required\"`\n\t// Number of intervals per period. Link defaults it to 1.\n\tIntervalCount int64 `json:\"interval_count\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tInterval      respjson.Field\n\t\tIntervalCount respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nRecurring terms for a subscription or other repeated purchase. The amount becomes the spending limit for each period of interval\\_count intervals, for example every 2 weeks. The merchant schedules charges. The card stays ready after each charge until it expires or is deleted; do not create a new card each period. Deleting the card, its wallet or its vault first cancels the credential with Link, so later charges decline; if Link cannot be reached, deletion returns 409 provider\\_revocation\\_pending and should be retried. Deletion does not cancel the subscription with the merchant. Recurring terms cannot be changed once the card is authorized.\n\n```go\nfunc (r CardVaultItemSpecLinkRecurring) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CardVaultItemSpecLinkRecurring) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CardVaultItemSpecLinkRecurringParam struct {\n\t// Any of \"day\", \"week\", \"month\", \"year\".\n\tInterval string `json:\"interval,omitzero\" api:\"required\"`\n\t// Number of intervals per period. Link defaults it to 1.\n\tIntervalCount param.Opt[int64] `json:\"interval_count,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nRecurring terms for a subscription or other repeated purchase. The amount becomes the spending limit for each period of interval\\_count intervals, for example every 2 weeks. The merchant schedules charges. The card stays ready after each charge until it expires or is deleted; do not create a new card each period. Deleting the card, its wallet or its vault first cancels the credential with Link, so later charges decline; if Link cannot be reached, deletion returns 409 provider\\_revocation\\_pending and should be retried. Deletion does not cancel the subscription with the merchant. Recurring terms cannot be changed once the card is authorized.\n\nThe property Interval is required.\n\n```go\nfunc (r CardVaultItemSpecLinkRecurringParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *CardVaultItemSpecLinkRecurringParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CardVaultItemSpecLinkTotal struct {\n\t// Total amount in minor currency units.\n\tAmount      int64  `json:\"amount\" api:\"required\"`\n\tDisplayText string `json:\"display_text\" api:\"required\"`\n\tType        string `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAmount      respjson.Field\n\t\tDisplayText respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r CardVaultItemSpecLinkTotal) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CardVaultItemSpecLinkTotal) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CardVaultItemSpecLinkTotalParam struct {\n\t// Total amount in minor currency units.\n\tAmount      int64  `json:\"amount\" api:\"required\"`\n\tDisplayText string `json:\"display_text\" api:\"required\"`\n\tType        string `json:\"type\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Amount, DisplayText, Type are required.\n\n```go\nfunc (r CardVaultItemSpecLinkTotalParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *CardVaultItemSpecLinkTotalParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CardVaultItemSpecUnion struct {\n\tAmount          int64  `json:\"amount\"`\n\tContext         string `json:\"context\"`\n\tCurrency        string `json:\"currency\"`\n\tMerchantName    string `json:\"merchant_name\"`\n\tMerchantURL     string `json:\"merchant_url\"`\n\tPaymentMethodID string `json:\"payment_method_id\"`\n\t// Any of \"link\", \"agentcard\", \"kernel\", \"shop_pay\", \"vgs\".\n\tProvider string `json:\"provider\"`\n\tWallet   string `json:\"wallet\"`\n\t// This field is a union of [[]CardVaultItemSpecLinkLineItem],\n\t// [[]CardVaultItemSpecAgentcardLineItem], [[]ShopPayCardVaultItemSpecLineItem]\n\tLineItems CardVaultItemSpecUnionLineItems `json:\"line_items\"`\n\t// This field is from variant [CardVaultItemSpecLink].\n\tMetadata map[string]string `json:\"metadata\"`\n\t// This field is from variant [CardVaultItemSpecLink].\n\tRecurring CardVaultItemSpecLinkRecurring `json:\"recurring\"`\n\t// This field is a union of [[]CardVaultItemSpecLinkTotal],\n\t// [[]ShopPayCardVaultItemSpecTotal]\n\tTotals CardVaultItemSpecUnionTotals `json:\"totals\"`\n\t// This field is from variant [CardVaultItemSpecAgentcard].\n\tMerchant string `json:\"merchant\"`\n\t// This field is from variant [CardVaultItemSpecAgentcard].\n\tCardID string `json:\"card_id\"`\n\t// This field is from variant [CardVaultItemSpecAgentcard].\n\tCheckoutOrigin string `json:\"checkout_origin\"`\n\t// This field is from variant [CardVaultItemSpecAgentcard].\n\tDiscount int64 `json:\"discount\"`\n\t// This field is from variant [CardVaultItemSpecAgentcard].\n\tShipping int64 `json:\"shipping\"`\n\t// This field is from variant [CardVaultItemSpecAgentcard].\n\tSubtotal int64 `json:\"subtotal\"`\n\t// This field is from variant [CardVaultItemSpecAgentcard].\n\tTax int64 `json:\"tax\"`\n\t// This field is from variant [KernelCardVaultItemSpec].\n\tExpiresAt time.Time `json:\"expires_at\"`\n\t// This field is from variant [KernelCardVaultItemSpec].\n\tMerchantCategory string `json:\"merchant_category\"`\n\t// This field is from variant [KernelCardVaultItemSpec].\n\tMerchantCategoryCode string `json:\"merchant_category_code\"`\n\tMerchantCountry      string `json:\"merchant_country\"`\n\t// This field is from variant [KernelCardVaultItemSpec].\n\tSingleUseCard KernelSingleUseCard `json:\"single_use_card\"`\n\t// This field is from variant [VgsCardVaultItemSpec].\n\tCard VgsCardInput `json:\"card\"`\n\t// This field is from variant [VgsCardVaultItemSpec].\n\tCardMode VgsCardVaultItemSpecCardMode `json:\"card_mode\"`\n\tJSON     struct {\n\t\tAmount               respjson.Field\n\t\tContext              respjson.Field\n\t\tCurrency             respjson.Field\n\t\tMerchantName         respjson.Field\n\t\tMerchantURL          respjson.Field\n\t\tPaymentMethodID      respjson.Field\n\t\tProvider             respjson.Field\n\t\tWallet               respjson.Field\n\t\tLineItems            respjson.Field\n\t\tMetadata             respjson.Field\n\t\tRecurring            respjson.Field\n\t\tTotals               respjson.Field\n\t\tMerchant             respjson.Field\n\t\tCardID               respjson.Field\n\t\tCheckoutOrigin       respjson.Field\n\t\tDiscount             respjson.Field\n\t\tShipping             respjson.Field\n\t\tSubtotal             respjson.Field\n\t\tTax                  respjson.Field\n\t\tExpiresAt            respjson.Field\n\t\tMerchantCategory     respjson.Field\n\t\tMerchantCategoryCode respjson.Field\n\t\tMerchantCountry      respjson.Field\n\t\tSingleUseCard        respjson.Field\n\t\tCard                 respjson.Field\n\t\tCardMode             respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nCardVaultItemSpecUnion contains all possible properties and values from [CardVaultItemSpecLink](#CardVaultItemSpecLink), [CardVaultItemSpecAgentcard](#CardVaultItemSpecAgentcard), [KernelCardVaultItemSpec](#KernelCardVaultItemSpec), [ShopPayCardVaultItemSpec](#ShopPayCardVaultItemSpec), [VgsCardVaultItemSpec](#VgsCardVaultItemSpec).\n\nUse the [CardVaultItemSpecUnion.AsAny](#CardVaultItemSpecUnion.AsAny) method to switch on the variant.\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u CardVaultItemSpecUnion) AsAgentcard() (v CardVaultItemSpecAgentcard)\n```\n\n```go\nfunc (u CardVaultItemSpecUnion) AsAny() anyCardVaultItemSpec\n```\nUse the following switch statement to find the correct variant\n\n\tswitch variant := CardVaultItemSpecUnion.AsAny().(type) {\n\tcase kernel.CardVaultItemSpecLink:\n\tcase kernel.CardVaultItemSpecAgentcard:\n\tcase kernel.KernelCardVaultItemSpec:\n\tcase kernel.ShopPayCardVaultItemSpec:\n\tcase kernel.VgsCardVaultItemSpec:\n\tdefault:\n\t  fmt.Errorf(\"no variant present\")\n\t}\n\n```go\nfunc (u CardVaultItemSpecUnion) AsKernel() (v KernelCardVaultItemSpec)\n```\n\n```go\nfunc (u CardVaultItemSpecUnion) AsLink() (v CardVaultItemSpecLink)\n```\n\n```go\nfunc (u CardVaultItemSpecUnion) AsShopPay() (v ShopPayCardVaultItemSpec)\n```\n\n```go\nfunc (u CardVaultItemSpecUnion) AsVgs() (v VgsCardVaultItemSpec)\n```\n\n```go\nfunc (u CardVaultItemSpecUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r CardVaultItemSpecUnion) ToParam() CardVaultItemSpecUnionParam\n```\nToParam converts this CardVaultItemSpecUnion to a CardVaultItemSpecUnionParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with CardVaultItemSpecUnionParam.Overrides()\n\n```go\nfunc (r *CardVaultItemSpecUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CardVaultItemSpecUnionLineItems struct {\n\t// This field will be present if the value is a [[]CardVaultItemSpecLinkLineItem]\n\t// instead of an object.\n\tOfCardVaultItemSpecLinkLineItems []CardVaultItemSpecLinkLineItem `json:\",inline\"`\n\t// This field will be present if the value is a\n\t// [[]CardVaultItemSpecAgentcardLineItem] instead of an object.\n\tOfCardVaultItemSpecAgentcardLineItems []CardVaultItemSpecAgentcardLineItem `json:\",inline\"`\n\t// This field will be present if the value is a\n\t// [[]ShopPayCardVaultItemSpecLineItem] instead of an object.\n\tOfShopPayCardVaultItemSpecLineItems []ShopPayCardVaultItemSpecLineItem `json:\",inline\"`\n\tJSON                                struct {\n\t\tOfCardVaultItemSpecLinkLineItems      respjson.Field\n\t\tOfCardVaultItemSpecAgentcardLineItems respjson.Field\n\t\tOfShopPayCardVaultItemSpecLineItems   respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nCardVaultItemSpecUnionLineItems is an implicit subunion of [CardVaultItemSpecUnion](#CardVaultItemSpecUnion). CardVaultItemSpecUnionLineItems provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [CardVaultItemSpecUnion](#CardVaultItemSpecUnion).\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfCardVaultItemSpecLinkLineItems OfCardVaultItemSpecAgentcardLineItems OfShopPayCardVaultItemSpecLineItems]\n\n```go\nfunc (r *CardVaultItemSpecUnionLineItems) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CardVaultItemSpecUnionParam struct {\n\tOfLink      *CardVaultItemSpecLinkParam      `json:\",omitzero,inline\"`\n\tOfAgentcard *CardVaultItemSpecAgentcardParam `json:\",omitzero,inline\"`\n\tOfKernel    *KernelCardVaultItemSpecParam    `json:\",omitzero,inline\"`\n\tOfShopPay   *ShopPayCardVaultItemSpecParam   `json:\",omitzero,inline\"`\n\tOfVgs       *VgsCardVaultItemSpecParam       `json:\",omitzero,inline\"`\n\t// contains filtered or unexported fields\n}\n```\nOnly one field can be non-zero.\n\nUse [param.IsOmitted](/github.com/kernel/kernel-go-sdk/packages/param#IsOmitted) to confirm if a field is set.\n\n```go\nfunc (u CardVaultItemSpecUnionParam) GetAmount() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CardVaultItemSpecUnionParam) GetCard() *VgsCardInputParam\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CardVaultItemSpecUnionParam) GetCardID() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CardVaultItemSpecUnionParam) GetCardMode() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CardVaultItemSpecUnionParam) GetCheckoutOrigin() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CardVaultItemSpecUnionParam) GetContext() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CardVaultItemSpecUnionParam) GetCurrency() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CardVaultItemSpecUnionParam) GetDiscount() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CardVaultItemSpecUnionParam) GetExpiresAt() *time.Time\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CardVaultItemSpecUnionParam) GetLineItems() (res cardVaultItemSpecUnionParamLineItems)\n```\nReturns a subunion which exports methods to access subproperties\n\nOr use AsAny() to get the underlying value\n\n```go\nfunc (u CardVaultItemSpecUnionParam) GetMerchant() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CardVaultItemSpecUnionParam) GetMerchantCategory() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CardVaultItemSpecUnionParam) GetMerchantCategoryCode() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CardVaultItemSpecUnionParam) GetMerchantCountry() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CardVaultItemSpecUnionParam) GetMerchantName() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CardVaultItemSpecUnionParam) GetMerchantURL() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CardVaultItemSpecUnionParam) GetMetadata() map[string]string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CardVaultItemSpecUnionParam) GetPaymentMethodID() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CardVaultItemSpecUnionParam) GetProvider() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CardVaultItemSpecUnionParam) GetRecurring() *CardVaultItemSpecLinkRecurringParam\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CardVaultItemSpecUnionParam) GetShipping() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CardVaultItemSpecUnionParam) GetSingleUseCard() *KernelSingleUseCardParam\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CardVaultItemSpecUnionParam) GetSubtotal() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CardVaultItemSpecUnionParam) GetTax() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CardVaultItemSpecUnionParam) GetTotals() (res cardVaultItemSpecUnionParamTotals)\n```\nReturns a subunion which exports methods to access subproperties\n\nOr use AsAny() to get the underlying value\n\n```go\nfunc (u CardVaultItemSpecUnionParam) GetWallet() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CardVaultItemSpecUnionParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (u *CardVaultItemSpecUnionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CardVaultItemSpecUnionTotals struct {\n\t// This field will be present if the value is a [[]CardVaultItemSpecLinkTotal]\n\t// instead of an object.\n\tOfCardVaultItemSpecLinkTotals []CardVaultItemSpecLinkTotal `json:\",inline\"`\n\t// This field will be present if the value is a [[]ShopPayCardVaultItemSpecTotal]\n\t// instead of an object.\n\tOfShopPayCardVaultItemSpecTotals []ShopPayCardVaultItemSpecTotal `json:\",inline\"`\n\tJSON                             struct {\n\t\tOfCardVaultItemSpecLinkTotals    respjson.Field\n\t\tOfShopPayCardVaultItemSpecTotals respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nCardVaultItemSpecUnionTotals is an implicit subunion of [CardVaultItemSpecUnion](#CardVaultItemSpecUnion). CardVaultItemSpecUnionTotals provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [CardVaultItemSpecUnion](#CardVaultItemSpecUnion).\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfCardVaultItemSpecLinkTotals OfShopPayCardVaultItemSpecTotals]\n\n```go\nfunc (r *CardVaultItemSpecUnionTotals) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CardVaultItemStateAgentcard struct {\n\tProvider constant.Agentcard `json:\"provider\" default:\"agentcard\"`\n\t// ready_to_submit is device readiness for at most 30 seconds. consumed means the\n\t// prepared attempt has settled, not that an order succeeded. stopped cannot be\n\t// reused. outcome_unknown requires merchant reconciliation and blocks new\n\t// requests. recovery_required means the original checkout outcome is unresolved.\n\t// Automatic reuse is blocked. Known authorization IDs must be reconciled through\n\t// provider observations or support. When no authorization ID was returned, an\n\t// explicitly confirmed item deletion may abandon the unresolved attempt so the\n\t// caller can create a replacement; deletion does not prove that the original\n\t// attempt failed. It does not mean declined or expired.\n\t//\n\t// Any of \"requested\", \"ready\", \"preparing\", \"ready_to_submit\", \"pending_approval\",\n\t// \"consumed\", \"stopped\", \"outcome_unknown\", \"degraded\", \"recovery_required\".\n\tStatus  string           `json:\"status\" api:\"required\"`\n\tAliases VaultCardAliases `json:\"aliases\"`\n\t// The in-flight or most recent checkout authorization. Present while a checkout is\n\t// pending approval and after it settles.\n\tAuthorization AgentcardCheckoutAuthorization   `json:\"authorization\"`\n\tMasks         CardVaultItemStateAgentcardMasks `json:\"masks\"`\n\t// One-use processor-bound checkout preparation. Keep the approval page open\n\t// through device handoff, including Adyen encryption. The amount is declared by\n\t// the caller and does not constrain the merchant's eventual charge. Adyen device\n\t// approval and browser Authorised responses are not capture or fulfillment\n\t// evidence.\n\tPreparation  AgentcardCheckoutPreparation `json:\"preparation\"`\n\tStatusReason string                       `json:\"status_reason\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tProvider      respjson.Field\n\t\tStatus        respjson.Field\n\t\tAliases       respjson.Field\n\t\tAuthorization respjson.Field\n\t\tMasks         respjson.Field\n\t\tPreparation   respjson.Field\n\t\tStatusReason  respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r CardVaultItemStateAgentcard) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CardVaultItemStateAgentcard) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CardVaultItemStateAgentcardMasks struct {\n\tBrand string `json:\"brand\"`\n\tLast4 string `json:\"last4\"`\n\t// Last four digits of the network token presented to the merchant.\n\tTokenLast4  string            `json:\"token_last4\"`\n\tExtraFields map[string]string `json:\"\" api:\"extrafields\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBrand       respjson.Field\n\t\tLast4       respjson.Field\n\t\tTokenLast4  respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r CardVaultItemStateAgentcardMasks) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CardVaultItemStateAgentcardMasks) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CardVaultItemStateLink struct {\n\tProvider constant.Link `json:\"provider\" default:\"link\"`\n\t// recovery_required means an original provider operation has an unresolved outcome\n\t// and the card cannot be used. Reads keep observing a known provider request and\n\t// may clear the recovery. To continue, delete this card and create a new one;\n\t// deleting cancels the original request when its ID is known and keeps the\n\t// recovery evidence. The user may see an approval request for the original card\n\t// and should approve only the new one.\n\t//\n\t// Any of \"requested\", \"pending_authorization\", \"ready\", \"consumed\", \"expired\",\n\t// \"declined\", \"recovery_required\".\n\tStatus string `json:\"status\" api:\"required\"`\n\t// The Link spend request's credential_type, set when authorize sends the request\n\t// to Link. Absent before authorize and after Link rejects the request; a ready\n\t// card without it fills like card. card is a Link virtual card; fill it with field\n\t// bindings. link_pay_token is a Link Pay Token that Kernel supplies through the\n\t// checkout's Link WebMCP tool; fill it without fields.\n\t//\n\t// Any of \"card\", \"link_pay_token\".\n\tCredentialType string                      `json:\"credential_type\"`\n\tDomains        []string                    `json:\"domains\"`\n\tMasks          CardVaultItemStateLinkMasks `json:\"masks\"`\n\tStatusReason   string                      `json:\"status_reason\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tProvider       respjson.Field\n\t\tStatus         respjson.Field\n\t\tCredentialType respjson.Field\n\t\tDomains        respjson.Field\n\t\tMasks          respjson.Field\n\t\tStatusReason   respjson.Field\n\t\tExtraFields    map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nIssued Link cards retain encrypted card material for the fill operation. Link cards do not expose aliases or support egress substitution.\n\n```go\nfunc (r CardVaultItemStateLink) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CardVaultItemStateLink) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CardVaultItemStateLinkMasks struct {\n\tBrand string `json:\"brand\"`\n\tLast4 string `json:\"last4\"`\n\t// Last four digits of the network token presented to the merchant.\n\tTokenLast4  string            `json:\"token_last4\"`\n\tExtraFields map[string]string `json:\"\" api:\"extrafields\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBrand       respjson.Field\n\t\tLast4       respjson.Field\n\t\tTokenLast4  respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r CardVaultItemStateLinkMasks) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CardVaultItemStateLinkMasks) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CardVaultItemStateUnion struct {\n\t// Any of \"link\", \"agentcard\", \"kernel\", \"shop_pay\", \"vgs\".\n\tProvider string `json:\"provider\"`\n\tStatus   string `json:\"status\"`\n\t// This field is from variant [CardVaultItemStateLink].\n\tCredentialType string   `json:\"credential_type\"`\n\tDomains        []string `json:\"domains\"`\n\t// This field is a union of [CardVaultItemStateLinkMasks],\n\t// [CardVaultItemStateAgentcardMasks], [KernelCardStateMasks],\n\t// [ShopPayCardStateMasks], [VgsCardStateMasks]\n\tMasks        CardVaultItemStateUnionMasks `json:\"masks\"`\n\tStatusReason string                       `json:\"status_reason\"`\n\t// This field is from variant [CardVaultItemStateAgentcard].\n\tAliases VaultCardAliases `json:\"aliases\"`\n\t// This field is from variant [CardVaultItemStateAgentcard].\n\tAuthorization AgentcardCheckoutAuthorization `json:\"authorization\"`\n\t// This field is from variant [CardVaultItemStateAgentcard].\n\tPreparation AgentcardCheckoutPreparation `json:\"preparation\"`\n\t// This field is from variant [KernelCardState].\n\tSource KernelCardStateSource `json:\"source\"`\n\t// This field is from variant [KernelCardState].\n\tFundingStatus KernelCardStateFundingStatus `json:\"funding_status\"`\n\t// This field is from variant [KernelCardState].\n\tPaymentMethodID string `json:\"payment_method_id\"`\n\tJSON            struct {\n\t\tProvider        respjson.Field\n\t\tStatus          respjson.Field\n\t\tCredentialType  respjson.Field\n\t\tDomains         respjson.Field\n\t\tMasks           respjson.Field\n\t\tStatusReason    respjson.Field\n\t\tAliases         respjson.Field\n\t\tAuthorization   respjson.Field\n\t\tPreparation     respjson.Field\n\t\tSource          respjson.Field\n\t\tFundingStatus   respjson.Field\n\t\tPaymentMethodID respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nCardVaultItemStateUnion contains all possible properties and values from [CardVaultItemStateLink](#CardVaultItemStateLink), [CardVaultItemStateAgentcard](#CardVaultItemStateAgentcard), [KernelCardState](#KernelCardState), [ShopPayCardState](#ShopPayCardState), [VgsCardState](#VgsCardState).\n\nUse the [CardVaultItemStateUnion.AsAny](#CardVaultItemStateUnion.AsAny) method to switch on the variant.\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u CardVaultItemStateUnion) AsAgentcard() (v CardVaultItemStateAgentcard)\n```\n\n```go\nfunc (u CardVaultItemStateUnion) AsAny() anyCardVaultItemState\n```\nUse the following switch statement to find the correct variant\n\n\tswitch variant := CardVaultItemStateUnion.AsAny().(type) {\n\tcase kernel.CardVaultItemStateLink:\n\tcase kernel.CardVaultItemStateAgentcard:\n\tcase kernel.KernelCardState:\n\tcase kernel.ShopPayCardState:\n\tcase kernel.VgsCardState:\n\tdefault:\n\t  fmt.Errorf(\"no variant present\")\n\t}\n\n```go\nfunc (u CardVaultItemStateUnion) AsKernel() (v KernelCardState)\n```\n\n```go\nfunc (u CardVaultItemStateUnion) AsLink() (v CardVaultItemStateLink)\n```\n\n```go\nfunc (u CardVaultItemStateUnion) AsShopPay() (v ShopPayCardState)\n```\n\n```go\nfunc (u CardVaultItemStateUnion) AsVgs() (v VgsCardState)\n```\n\n```go\nfunc (u CardVaultItemStateUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CardVaultItemStateUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CardVaultItemStateUnionMasks struct {\n\tBrand      string `json:\"brand\"`\n\tLast4      string `json:\"last4\"`\n\tTokenLast4 string `json:\"token_last4\"`\n\tJSON       struct {\n\t\tBrand      respjson.Field\n\t\tLast4      respjson.Field\n\t\tTokenLast4 respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nCardVaultItemStateUnionMasks is an implicit subunion of [CardVaultItemStateUnion](#CardVaultItemStateUnion). CardVaultItemStateUnionMasks provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [CardVaultItemStateUnion](#CardVaultItemStateUnion).\n\n```go\nfunc (r *CardVaultItemStateUnionMasks) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Client struct {\n\tOptions []option.RequestOption\n\t// BrowserRouteCache stores cached base_url and jwt data for direct-to-VM routing.\n\tBrowserRouteCache *browserrouting.RouteCache\n\t// Create and manage app deployments and stream deployment events.\n\tDeployments DeploymentService\n\t// List applications and versions.\n\tApps AppService\n\t// Invoke actions and stream or query invocation status and events.\n\tInvocations InvocationService\n\t// Resolve browser and proxy recommendations for bot-protected sites.\n\tConfigRegistry ConfigRegistryService\n\tBrowsers       BrowserService\n\t// Create, list, retrieve, and delete browser profiles.\n\tProfiles ProfileService\n\t// Define tasks that agents work toward and link the browsers they use.\n\tTasks TaskService\n\t// Discover report types and submit typed reports against tasks.\n\tReports ReportService\n\t// Discover report types and submit typed reports against tasks.\n\tReportTypes ReportTypeService\n\tAuth        AuthService\n\tTelemetry   TelemetryService\n\t// Create and manage proxy configurations for routing browser traffic.\n\tProxies ProxyService\n\t// Create and manage proxy configurations for routing browser traffic.\n\tProxyIPs ProxyIPService\n\t// Create, list, retrieve, and delete browser extensions.\n\tExtensions ExtensionService\n\t// Create and manage browser pools for acquiring and releasing browsers.\n\tBrowserPools         BrowserPoolService\n\tVaultProviderConfigs VaultProviderConfigService\n\tVaults               VaultService\n\t// Create and manage credentials for authentication.\n\tCredentials CredentialService\n\t// Create and manage projects for resource isolation within an organization.\n\tProjects     ProjectService\n\tOrganization OrganizationService\n\t// Read audit log records for the authenticated organization.\n\tAuditLogs AuditLogService\n\t// Create and manage API keys for organization and project-scoped access.\n\tAPIKeys                              APIKeyService\n\tServiceAccounts                      ServiceAccountService\n\tWorkloadIdentityIssuers              WorkloadIdentityIssuerService\n\tWorkloadIdentityFederationRules      WorkloadIdentityFederationRuleService\n\tWorkloadIdentityAuthenticationEvents WorkloadIdentityAuthenticationEventService\n\t// Configure external credential providers like 1Password.\n\tCredentialProviders CredentialProviderService\n\t// Search the web and retrieve content for selected results.\n\tSearch SearchService\n}\n```\nClient creates a struct with services and top level methods that help with interacting with the kernel API. You should not instantiate this client directly, and instead use the [NewClient](#NewClient) method instead.\n\n```go\nfunc NewClient(opts ...option.RequestOption) (r Client)\n```\nNewClient generates a new client with the default option read from the environment (KERNEL\\_API\\_KEY, KERNEL\\_BASE\\_URL). The option passed in as arguments are applied after these default arguments, and all option will be passed down to the services and requests that this client makes.\n\n```go\nfunc (r *Client) Delete(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error\n```\nDelete makes a DELETE request with the given URL, params, and optionally deserializes to a response. See \\[Execute] documentation on the params and response.\n\n```go\nfunc (r *Client) Execute(ctx context.Context, method string, path string, params any, res any, opts ...option.RequestOption) error\n```\nExecute makes a request with the given context, method, URL, request params, response, and request options. This is useful for hitting undocumented endpoints while retaining the base URL, auth, retries, and other options from the client.\n\nIf a byte slice or an [io.Reader](/io#Reader) is supplied to params, it will be used as-is for the request body.\n\nThe params is by default serialized into the body using [encoding/json](/encoding/json). If your type implements a MarshalJSON function, it will be used instead to serialize the request. If a URLQuery method is implemented, the returned [url.Values](/net/url#Values) will be used as query strings to the url.\n\nIf your params struct uses [param.Field](/github.com/kernel/kernel-go-sdk/packages/param#Field), you must provide either \\[MarshalJSON], \\[URLQuery], and/or \\[MarshalForm] functions. It is undefined behavior to use a struct uses [param.Field](/github.com/kernel/kernel-go-sdk/packages/param#Field) without specifying how it is serialized.\n\nAny \"…Params\" object defined in this library can be used as the request argument. Note that 'path' arguments will not be forwarded into the url.\n\nThe response body will be deserialized into the res variable, depending on its type:\n\n  - A pointer to a [\\*http.Response](/net/http#Response) is populated by the raw response.\n  - A pointer to a byte array will be populated with the contents of the request body.\n  - A pointer to any other type uses this library's default JSON decoding, which respects UnmarshalJSON if it is defined on the type.\n  - A nil value will not read the response body.\n\nFor even greater flexibility, see [option.WithResponseInto](/github.com/kernel/kernel-go-sdk/option#WithResponseInto) and [option.WithResponseBodyInto](/github.com/kernel/kernel-go-sdk/option#WithResponseBodyInto).\n\n```go\nfunc (r *Client) Get(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error\n```\nGet makes a GET request with the given URL, params, and optionally deserializes to a response. See \\[Execute] documentation on the params and response.\n\n```go\nfunc (r *Client) Patch(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error\n```\nPatch makes a PATCH request with the given URL, params, and optionally deserializes to a response. See \\[Execute] documentation on the params and response.\n\n```go\nfunc (r *Client) Post(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error\n```\nPost makes a POST request with the given URL, params, and optionally deserializes to a response. See \\[Execute] documentation on the params and response.\n\n```go\nfunc (r *Client) Put(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error\n```\nPut makes a PUT request with the given URL, params, and optionally deserializes to a response. See \\[Execute] documentation on the params and response.\n\n```go\ntype CollectVaultItemOperationRequestParam struct {\n\t// Any of \"collect\".\n\tType CollectVaultItemOperationRequestType `json:\"type,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nReturn the credential item with its collection action. Supported for ready and pending\\_collection credential items. Always render the same form from every form-supported field; totp and passkey fields have no form input and are omitted. No caller-selected field subsets or form overrides are accepted. Reuse an active Kernel-hosted session or renew an expired session atomically. Customer-hosted forms use their own backend and ordinary item GET/PATCH. Opening the form does not clear values or change readiness or item version. To observe edits on a ready item, record its version and poll GET without wait until the version changes, then reconcile the returned state. Version changes may also come from PATCH; they do not identify a particular form submission. Customer-hosted apps use their own submission callback, including for unchanged forms. The wait parameter waits for readiness, not edits.\n\nThe property Type is required.\n\n```go\nfunc (r CollectVaultItemOperationRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *CollectVaultItemOperationRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CollectVaultItemOperationRequestType string\n```\n\n```go\nconst (\n\tCollectVaultItemOperationRequestTypeCollect CollectVaultItemOperationRequestType = \"collect\"\n)\n```\n\n```go\ntype ConfigRegistryAnalysisListParams struct {\n\tLimit  param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Case-insensitive substring search over requested URLs.\n\tSearch param.Opt[string] `query:\"search,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ConfigRegistryAnalysisListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [ConfigRegistryAnalysisListParams](#ConfigRegistryAnalysisListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype ConfigRegistryAnalysisService struct {\n\tOptions []option.RequestOption\n}\n```\nResolve browser and proxy recommendations for bot-protected sites.\n\nConfigRegistryAnalysisService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewConfigRegistryAnalysisService](#NewConfigRegistryAnalysisService) method instead.\n\n```go\nfunc NewConfigRegistryAnalysisService(opts ...option.RequestOption) (r ConfigRegistryAnalysisService)\n```\nNewConfigRegistryAnalysisService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *ConfigRegistryAnalysisService) Cancel(ctx context.Context, id string, opts ...option.RequestOption) (res *ConfigRegistryResponse, err error)\n```\nRequests cancellation of a running project-scoped analysis. Cancellation is asynchronous; poll the analysis until its status becomes canceled. Repeating the request after the analysis reaches a terminal state returns the existing outcome.\n\n```go\nfunc (r *ConfigRegistryAnalysisService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *ConfigRegistryResponse, err error)\n```\nReturns a project-scoped historical analysis and the recommendation outcome concluded by that run. Later knowledge does not change this response.\n\n```go\nfunc (r *ConfigRegistryAnalysisService) List(ctx context.Context, query ConfigRegistryAnalysisListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[AnalysisSummary], err error)\n```\nLists analyses for the selected project, newest first.\n\n```go\nfunc (r *ConfigRegistryAnalysisService) ListAutoPaging(ctx context.Context, query ConfigRegistryAnalysisListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[AnalysisSummary]\n```\nLists analyses for the selected project, newest first.\n\n```go\nfunc (r *ConfigRegistryAnalysisService) WaitForResult(ctx context.Context, id string, opts ...ConfigRegistryAnalysisWaitOption) (*ConfigRegistryResponse, error)\n```\nWaitForResult waits for an analysis to finish and returns its complete result. The first retrieval happens immediately. Timing out or canceling ctx stops the local wait without canceling the remote analysis.\n\n```go\ntype ConfigRegistryAnalysisWaitOption func(*configRegistryAnalysisWaitConfig)\n```\nConfigRegistryAnalysisWaitOption configures WaitForResult.\n\n```go\nfunc WithConfigRegistryAnalysisMaxWait(maxWait time.Duration) ConfigRegistryAnalysisWaitOption\n```\nWithConfigRegistryAnalysisMaxWait sets a soft polling deadline. An in-flight request and its normal retries may finish after the deadline. A zero duration performs one retrieval and then times out if the analysis is unfinished.\n\n```go\nfunc WithConfigRegistryAnalysisPollInterval(interval time.Duration) ConfigRegistryAnalysisWaitOption\n```\nWithConfigRegistryAnalysisPollInterval sets the delay between analysis retrievals. The default is five seconds.\n\n```go\nfunc WithConfigRegistryAnalysisWaitRequestOptions(opts ...option.RequestOption) ConfigRegistryAnalysisWaitOption\n```\nWithConfigRegistryAnalysisWaitRequestOptions applies request options to every analysis retrieval made by WaitForResult.\n\n```go\ntype ConfigRegistryListParams struct {\n\tLimit  param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Case-insensitive substring search over normalized targets, including domain,\n\t// subdomain, and path.\n\tSearch param.Opt[string] `query:\"search,omitzero\" json:\"-\"`\n\t// Any of \"target\", \"analysis_status\", \"recommended_config\", \"last_requested_at\",\n\t// \"success_rate\".\n\tSortBy ConfigRegistryListParamsSortBy `query:\"sort_by,omitzero\" json:\"-\"`\n\t// Any of \"asc\", \"desc\".\n\tSortOrder ConfigRegistryListParamsSortOrder `query:\"sort_order,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ConfigRegistryListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [ConfigRegistryListParams](#ConfigRegistryListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype ConfigRegistryListParamsSortBy string\n```\n\n```go\nconst (\n\tConfigRegistryListParamsSortByTarget            ConfigRegistryListParamsSortBy = \"target\"\n\tConfigRegistryListParamsSortByAnalysisStatus    ConfigRegistryListParamsSortBy = \"analysis_status\"\n\tConfigRegistryListParamsSortByRecommendedConfig ConfigRegistryListParamsSortBy = \"recommended_config\"\n\tConfigRegistryListParamsSortByLastRequestedAt   ConfigRegistryListParamsSortBy = \"last_requested_at\"\n\tConfigRegistryListParamsSortBySuccessRate       ConfigRegistryListParamsSortBy = \"success_rate\"\n)\n```\n\n```go\ntype ConfigRegistryListParamsSortOrder string\n```\n\n```go\nconst (\n\tConfigRegistryListParamsSortOrderAsc  ConfigRegistryListParamsSortOrder = \"asc\"\n\tConfigRegistryListParamsSortOrderDesc ConfigRegistryListParamsSortOrder = \"desc\"\n)\n```\n\n```go\ntype ConfigRegistryLookupParams struct {\n\tLookupRequest LookupRequestParam\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ConfigRegistryLookupParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ConfigRegistryLookupParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ConfigRegistryResolveParams struct {\n\tResolveRequest ResolveRequestParam\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ConfigRegistryResolveParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ConfigRegistryResolveParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ConfigRegistryResponse struct {\n\t// Pollable analysis after workflow submission is acknowledged. Null when no\n\t// refresh was submitted.\n\tAnalysis Analysis `json:\"analysis\" api:\"required\"`\n\t// A recommendation or a structured no-recommendation result.\n\tRecommendation RecommendationResultUnion `json:\"recommendation\" api:\"required\"`\n\tTarget         Target                    `json:\"target\" api:\"required\"`\n\t// Working configurations for the target, ordered with the recommended\n\t// configuration first.\n\tWorkingConfigurations []Recommendation `json:\"working_configurations\" api:\"required\"`\n\t// Short advisory markdown to facilitate navigating this target. Returned even when\n\t// no configuration reached the target, since knowing what prevented success is\n\t// useful without a configuration. Not verified against this target. Null when\n\t// nothing applicable was observed or no notes exist.\n\tGuidance string `json:\"guidance\" api:\"nullable\"`\n\t// How far the workload pass got, when an intent was supplied and a pass ran. A run\n\t// outcome rather than advice, so it is reported whether or not any guidance could\n\t// be assembled. Null when no intent was supplied or no pass ran.\n\t//\n\t// Any of \"completed\", \"turn_limit\", \"auth_required\", \"payment_required\",\n\t// \"blocked\", \"error\".\n\tWorkloadOutcome ConfigRegistryResponseWorkloadOutcome `json:\"workload_outcome\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAnalysis              respjson.Field\n\t\tRecommendation        respjson.Field\n\t\tTarget                respjson.Field\n\t\tWorkingConfigurations respjson.Field\n\t\tGuidance              respjson.Field\n\t\tWorkloadOutcome       respjson.Field\n\t\tExtraFields           map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ConfigRegistryResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ConfigRegistryResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ConfigRegistryResponseWorkloadOutcome string\n```\nHow far the workload pass got, when an intent was supplied and a pass ran. A run outcome rather than advice, so it is reported whether or not any guidance could be assembled. Null when no intent was supplied or no pass ran.\n\n```go\nconst (\n\tConfigRegistryResponseWorkloadOutcomeCompleted       ConfigRegistryResponseWorkloadOutcome = \"completed\"\n\tConfigRegistryResponseWorkloadOutcomeTurnLimit       ConfigRegistryResponseWorkloadOutcome = \"turn_limit\"\n\tConfigRegistryResponseWorkloadOutcomeAuthRequired    ConfigRegistryResponseWorkloadOutcome = \"auth_required\"\n\tConfigRegistryResponseWorkloadOutcomePaymentRequired ConfigRegistryResponseWorkloadOutcome = \"payment_required\"\n\tConfigRegistryResponseWorkloadOutcomeBlocked         ConfigRegistryResponseWorkloadOutcome = \"blocked\"\n\tConfigRegistryResponseWorkloadOutcomeError           ConfigRegistryResponseWorkloadOutcome = \"error\"\n)\n```\n\n```go\ntype ConfigRegistryService struct {\n\tOptions []option.RequestOption\n\t// Resolve browser and proxy recommendations for bot-protected sites.\n\tAnalyses ConfigRegistryAnalysisService\n}\n```\nResolve browser and proxy recommendations for bot-protected sites.\n\nConfigRegistryService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewConfigRegistryService](#NewConfigRegistryService) method instead.\n\n```go\nfunc NewConfigRegistryService(opts ...option.RequestOption) (r ConfigRegistryService)\n```\nNewConfigRegistryService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *ConfigRegistryService) List(ctx context.Context, query ConfigRegistryListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[RecommendationSummary], err error)\n```\nLists unique exact targets previously analyzed by the selected project with the recommendation produced by each target's latest analysis.\n\n```go\nfunc (r *ConfigRegistryService) ListAutoPaging(ctx context.Context, query ConfigRegistryListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[RecommendationSummary]\n```\nLists unique exact targets previously analyzed by the selected project with the recommendation produced by each target's latest analysis.\n\n```go\nfunc (r *ConfigRegistryService) Lookup(ctx context.Context, body ConfigRegistryLookupParams, opts ...option.RequestOption) (res *LookupResponse, err error)\n```\nReturns current global knowledge without resolving DNS, creating an analysis, or updating config registry data.\n\n```go\nfunc (r *ConfigRegistryService) Resolve(ctx context.Context, body ConfigRegistryResolveParams, opts ...option.RequestOption) (res *ConfigRegistryResponse, err error)\n```\nExplicitly starts or retries a project-scoped background analysis while preserving current global knowledge when available. Use \\`/config-registry/lookup\\` for side-effect-free reads.\n\n```go\ntype ConfirmTransactionVaultItemOperationRequestParam struct {\n\t// Actual transaction amount in minor units, no greater than the approved limit.\n\tAmount int64 `json:\"amount\" api:\"required\"`\n\t// Must match the approved purchase currency.\n\tCurrency string `json:\"currency\" api:\"required\"`\n\t// Time the merchant outcome was observed.\n\tOccurredAt time.Time `json:\"occurred_at\" api:\"required\" format:\"date-time\"`\n\t// Any of \"APPROVED\", \"DECLINED\", \"PENDING\", \"ERROR\", \"CANCELLED\".\n\tStatus ConfirmTransactionVaultItemOperationRequestStatus `json:\"status,omitzero\" api:\"required\"`\n\t// Any of \"PURCHASE\", \"AUTHORIZATION\", \"CAPTURE\", \"REFUND\", \"REVERSAL\",\n\t// \"VERIFICATION\", \"CHARGEBACK\", \"FRAUD\".\n\tTransactionType ConfirmTransactionVaultItemOperationRequestTransactionType `json:\"transaction_type,omitzero\" api:\"required\"`\n\t// Any of \"confirm_transaction\".\n\tType ConfirmTransactionVaultItemOperationRequestType `json:\"type,omitzero\" api:\"required\"`\n\t// Why the purchase did not succeed, for any other outcome, such as 3ds_challenge,\n\t// captcha, login_required, timeout or site_error. payment_declined goes only with\n\t// DECLINED, which takes no other code. Shop Pay reports it to Shop Pay; Kernel\n\t// cards store it with the purchase without reporting it.\n\tFailureCode param.Opt[string] `json:\"failure_code,omitzero\"`\n\t// The merchant's order number, for an APPROVED outcome. Shop Pay reports it to\n\t// Shop Pay; Kernel cards store it with the purchase without reporting it.\n\tOrderID param.Opt[string] `json:\"order_id,omitzero\"`\n\t// The merchant's https order page, for an APPROVED outcome. Shop Pay reports it to\n\t// Shop Pay; Kernel cards store it with the purchase without reporting it.\n\tOrderURL param.Opt[string] `json:\"order_url,omitzero\" format:\"uri\"`\n\t// contains filtered or unexported fields\n}\n```\nReport a real merchant transaction outcome for an issued Kernel card or Shop Pay credential. Kernel alias cards record the outcome without contacting the issuer. Shop Pay accepts PURCHASE, AUTHORIZATION and CAPTURE. Never infer success from filling checkout or receiving a credential. Supply the observed status, transaction type, actual amount, currency and timestamp. Unknown outcomes require manual reconciliation, not retry. Each purchase accepts one report.\n\nThe properties Amount, Currency, OccurredAt, Status, TransactionType, Type are required.\n\n```go\nfunc (r ConfirmTransactionVaultItemOperationRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ConfirmTransactionVaultItemOperationRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ConfirmTransactionVaultItemOperationRequestStatus string\n```\n\n```go\nconst (\n\tConfirmTransactionVaultItemOperationRequestStatusApproved  ConfirmTransactionVaultItemOperationRequestStatus = \"APPROVED\"\n\tConfirmTransactionVaultItemOperationRequestStatusDeclined  ConfirmTransactionVaultItemOperationRequestStatus = \"DECLINED\"\n\tConfirmTransactionVaultItemOperationRequestStatusPending   ConfirmTransactionVaultItemOperationRequestStatus = \"PENDING\"\n\tConfirmTransactionVaultItemOperationRequestStatusError     ConfirmTransactionVaultItemOperationRequestStatus = \"ERROR\"\n\tConfirmTransactionVaultItemOperationRequestStatusCancelled ConfirmTransactionVaultItemOperationRequestStatus = \"CANCELLED\"\n)\n```\n\n```go\ntype ConfirmTransactionVaultItemOperationRequestTransactionType string\n```\n\n```go\nconst (\n\tConfirmTransactionVaultItemOperationRequestTransactionTypePurchase      ConfirmTransactionVaultItemOperationRequestTransactionType = \"PURCHASE\"\n\tConfirmTransactionVaultItemOperationRequestTransactionTypeAuthorization ConfirmTransactionVaultItemOperationRequestTransactionType = \"AUTHORIZATION\"\n\tConfirmTransactionVaultItemOperationRequestTransactionTypeCapture       ConfirmTransactionVaultItemOperationRequestTransactionType = \"CAPTURE\"\n\tConfirmTransactionVaultItemOperationRequestTransactionTypeRefund        ConfirmTransactionVaultItemOperationRequestTransactionType = \"REFUND\"\n\tConfirmTransactionVaultItemOperationRequestTransactionTypeReversal      ConfirmTransactionVaultItemOperationRequestTransactionType = \"REVERSAL\"\n\tConfirmTransactionVaultItemOperationRequestTransactionTypeVerification  ConfirmTransactionVaultItemOperationRequestTransactionType = \"VERIFICATION\"\n\tConfirmTransactionVaultItemOperationRequestTransactionTypeChargeback    ConfirmTransactionVaultItemOperationRequestTransactionType = \"CHARGEBACK\"\n\tConfirmTransactionVaultItemOperationRequestTransactionTypeFraud         ConfirmTransactionVaultItemOperationRequestTransactionType = \"FRAUD\"\n)\n```\n\n```go\ntype ConfirmTransactionVaultItemOperationRequestType string\n```\n\n```go\nconst (\n\tConfirmTransactionVaultItemOperationRequestTypeConfirmTransaction ConfirmTransactionVaultItemOperationRequestType = \"confirm_transaction\"\n)\n```\n\n```go\ntype CreateAuditLogExportDestinationRequestFormat string\n```\n\n```go\nconst (\n\tCreateAuditLogExportDestinationRequestFormatJSONLGz CreateAuditLogExportDestinationRequestFormat = \"jsonl.gz\"\n)\n```\n\n```go\ntype CreateAuditLogExportDestinationRequestParam struct {\n\tBucket string `json:\"bucket\" api:\"required\"`\n\t// Any of \"jsonl.gz\".\n\tFormat  CreateAuditLogExportDestinationRequestFormat `json:\"format,omitzero\" api:\"required\"`\n\tPrefix  string                                       `json:\"prefix\" api:\"required\"`\n\tRegion  string                                       `json:\"region\" api:\"required\"`\n\tRoleArn string                                       `json:\"role_arn\" api:\"required\"`\n\t// Any of \"s3\".\n\tType     CreateAuditLogExportDestinationRequestType `json:\"type,omitzero\" api:\"required\"`\n\tKmsKeyID param.Opt[string]                          `json:\"kms_key_id,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Bucket, Format, Prefix, Region, RoleArn, Type are required.\n\n```go\nfunc (r CreateAuditLogExportDestinationRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *CreateAuditLogExportDestinationRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CreateAuditLogExportDestinationRequestType string\n```\n\n```go\nconst (\n\tCreateAuditLogExportDestinationRequestTypeS3 CreateAuditLogExportDestinationRequestType = \"s3\"\n)\n```\n\n```go\ntype CreateCredentialProviderRequestParam struct {\n\t// Service account token for the provider (e.g., 1Password service account token)\n\tToken string `json:\"token\" api:\"required\"`\n\t// Human-readable name for this provider instance (unique per org). Surrounding\n\t// whitespace is trimmed and the trimmed value must be non-empty.\n\tName string `json:\"name\" api:\"required\"`\n\t// Type of credential provider\n\t//\n\t// Any of \"onepassword\".\n\tProviderType CreateCredentialProviderRequestProviderType `json:\"provider_type,omitzero\" api:\"required\"`\n\t// How long to cache credential lists (default 300 seconds)\n\tCacheTtlSeconds param.Opt[int64] `json:\"cache_ttl_seconds,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nRequest to create an external credential provider\n\nThe properties Token, Name, ProviderType are required.\n\n```go\nfunc (r CreateCredentialProviderRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *CreateCredentialProviderRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CreateCredentialProviderRequestProviderType string\n```\nType of credential provider\n\n```go\nconst (\n\tCreateCredentialProviderRequestProviderTypeOnepassword CreateCredentialProviderRequestProviderType = \"onepassword\"\n)\n```\n\n```go\ntype CreateCredentialRequestParam struct {\n\t// Target domain this credential is for\n\tDomain string `json:\"domain\" api:\"required\"`\n\t// Unique name for the credential within the project\n\tName string `json:\"name\" api:\"required\"`\n\t// Field name to value mapping (e.g., username, password)\n\tValues map[string]string `json:\"values,omitzero\" api:\"required\"`\n\t// If set, indicates this credential should be used with the specified SSO provider\n\t// (e.g., google, github, microsoft). When the target site has a matching SSO\n\t// button, it will be clicked first before filling credential values on the\n\t// identity provider's login page.\n\tSSOProvider param.Opt[string] `json:\"sso_provider,omitzero\"`\n\t// Number of digits in generated TOTP codes. Defaults to 6 and is ignored when an\n\t// `otpauth://` URI supplies the digit count.\n\tTotpDigits param.Opt[int64] `json:\"totp_digits,omitzero\"`\n\t// TOTP rotation period in seconds. Defaults to 30 and is ignored when an\n\t// `otpauth://` URI supplies the period.\n\tTotpPeriod param.Opt[int64] `json:\"totp_period,omitzero\"`\n\t// Accepts a 16-128 character base32-encoded TOTP secret or an `otpauth://totp/...`\n\t// URI. The range accepts existing shorter seeds and longer seeds regardless of\n\t// HMAC algorithm; RFC 6238 recommends unpadded base32 lengths of 32/52/103 for\n\t// SHA1/SHA256/SHA512. Only URI parameters present override the corresponding\n\t// explicit TOTP fields. Used for automatic 2FA during login.\n\tTotpSecret param.Opt[string] `json:\"totp_secret,omitzero\"`\n\t// HMAC algorithm used to generate TOTP codes. Defaults to SHA1 and is ignored when\n\t// an `otpauth://` URI supplies the algorithm.\n\t//\n\t// Any of \"SHA1\", \"SHA256\", \"SHA512\".\n\tTotpAlgorithm CreateCredentialRequestTotpAlgorithm `json:\"totp_algorithm,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nRequest to create a new credential\n\nThe properties Domain, Name, Values are required.\n\n```go\nfunc (r CreateCredentialRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *CreateCredentialRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CreateCredentialRequestTotpAlgorithm string\n```\nHMAC algorithm used to generate TOTP codes. Defaults to SHA1 and is ignored when an \\`otpauth://\\` URI supplies the algorithm.\n\n```go\nconst (\n\tCreateCredentialRequestTotpAlgorithmSha1   CreateCredentialRequestTotpAlgorithm = \"SHA1\"\n\tCreateCredentialRequestTotpAlgorithmSha256 CreateCredentialRequestTotpAlgorithm = \"SHA256\"\n\tCreateCredentialRequestTotpAlgorithmSha512 CreateCredentialRequestTotpAlgorithm = \"SHA512\"\n)\n```\n\n```go\ntype CreateProjectRequestParam struct {\n\t// Project name (1-255 Unicode code points; cannot contain `/` or `%`)\n\tName string `json:\"name\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Name is required.\n\n```go\nfunc (r CreateProjectRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *CreateProjectRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CreatedAPIKey struct {\n\t// Plaintext API key. Only returned once when the key is created.\n\tKey string `json:\"key\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tKey         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n\tAPIKey\n}\n```\nAPI key returned immediately after creation. Includes the plaintext key once.\n\n```go\nfunc (r CreatedAPIKey) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CreatedAPIKey) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Credential struct {\n\t// Unique identifier for the credential\n\tID string `json:\"id\" api:\"required\"`\n\t// When the credential was created\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Target domain this credential is for\n\tDomain string `json:\"domain\" api:\"required\"`\n\t// Unique name for the credential within the project\n\tName string `json:\"name\" api:\"required\"`\n\t// When the credential was last updated\n\tUpdatedAt time.Time `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\t// Whether this credential has a TOTP secret configured for automatic 2FA\n\tHasTotpSecret bool `json:\"has_totp_secret\"`\n\t// Whether this credential has stored values (email, password, etc.)\n\tHasValues bool `json:\"has_values\"`\n\t// If set, indicates this credential should be used with the specified SSO provider\n\t// (e.g., google, github, microsoft). When the target site has a matching SSO\n\t// button, it will be clicked first before filling credential values on the\n\t// identity provider's login page.\n\tSSOProvider string `json:\"sso_provider\" api:\"nullable\"`\n\t// HMAC algorithm used to generate TOTP codes. Defaults to SHA1 for credentials\n\t// created before this metadata was stored.\n\t//\n\t// Any of \"SHA1\", \"SHA256\", \"SHA512\".\n\tTotpAlgorithm CredentialTotpAlgorithm `json:\"totp_algorithm\"`\n\t// Current TOTP code. Only included in create/update responses when totp_secret was\n\t// just set.\n\tTotpCode string `json:\"totp_code\"`\n\t// When the totp_code expires. Only included when totp_code is present.\n\tTotpCodeExpiresAt time.Time `json:\"totp_code_expires_at\" format:\"date-time\"`\n\t// Number of digits in generated TOTP codes. Defaults to 6 for credentials created\n\t// before this metadata was stored.\n\tTotpDigits int64 `json:\"totp_digits\"`\n\t// TOTP rotation period in seconds. Defaults to 30 for credentials created before\n\t// this metadata was stored.\n\tTotpPeriod int64 `json:\"totp_period\"`\n\t// The field names stored in this credential's values (e.g., username, password).\n\t// Values themselves are never returned. Included on single-credential responses\n\t// (create, get by id or name, update); omitted from list responses.\n\tValueKeys []string `json:\"value_keys\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                respjson.Field\n\t\tCreatedAt         respjson.Field\n\t\tDomain            respjson.Field\n\t\tName              respjson.Field\n\t\tUpdatedAt         respjson.Field\n\t\tHasTotpSecret     respjson.Field\n\t\tHasValues         respjson.Field\n\t\tSSOProvider       respjson.Field\n\t\tTotpAlgorithm     respjson.Field\n\t\tTotpCode          respjson.Field\n\t\tTotpCodeExpiresAt respjson.Field\n\t\tTotpDigits        respjson.Field\n\t\tTotpPeriod        respjson.Field\n\t\tValueKeys         respjson.Field\n\t\tExtraFields       map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA stored credential for automatic re-authentication\n\n```go\nfunc (r Credential) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Credential) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialAccountVaultItem struct {\n\tID                  string                                         `json:\"id\" api:\"required\"`\n\tAvailableExpansions []CredentialAccountVaultItemAvailableExpansion `json:\"available_expansions\" api:\"required\"`\n\t// Advertises 1pw_recover when Kernel can recover a failed account link. Recovery\n\t// is unavailable while authorization is pending or after the connection has\n\t// already been reset.\n\tAvailableOperations []CredentialAccountVaultItemAvailableOperation `json:\"available_operations\" api:\"required\"`\n\tCreatedAt           time.Time                                      `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Immutable item key assigned when the item is created.\n\tKey   string                            `json:\"key\" api:\"required\"`\n\tSpec  OnePasswordCredentialAccountSpec  `json:\"spec\" api:\"required\"`\n\tState OnePasswordCredentialAccountState `json:\"state\" api:\"required\"`\n\t// Any of \"credential_account\".\n\tType      CredentialAccountVaultItemType `json:\"type\" api:\"required\"`\n\tUpdatedAt time.Time                      `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\tAction    OnePasswordOAuthAction         `json:\"action\"`\n\tExpiresAt time.Time                      `json:\"expires_at\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                  respjson.Field\n\t\tAvailableExpansions respjson.Field\n\t\tAvailableOperations respjson.Field\n\t\tCreatedAt           respjson.Field\n\t\tKey                 respjson.Field\n\t\tSpec                respjson.Field\n\t\tState               respjson.Field\n\t\tType                respjson.Field\n\t\tUpdatedAt           respjson.Field\n\t\tAction              respjson.Field\n\t\tExpiresAt           respjson.Field\n\t\tExtraFields         map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r CredentialAccountVaultItem) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CredentialAccountVaultItem) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialAccountVaultItemAvailableExpansion struct {\n\tDescription string `json:\"description\" api:\"required\"`\n\t// Any of \"payment_methods\", \"link_user_info\", \"link_shipping_addresses\".\n\tType string `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDescription respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nLive data that can currently be requested by passing its type to the item GET expand parameter.\n\n```go\nfunc (r CredentialAccountVaultItemAvailableExpansion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CredentialAccountVaultItemAvailableExpansion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialAccountVaultItemAvailableOperation struct {\n\tDescription string `json:\"description\" api:\"required\"`\n\t// Any of \"authorize\", \"restart_verification\", \"confirm_transaction\", \"collect\",\n\t// \"prepare_checkout\", \"fill\", \"arm_passkey\", \"register_passkey\", \"disarm_passkey\",\n\t// \"1pw_create_access_request\", \"1pw_access_request_status\", \"1pw_fill\",\n\t// \"1pw_recover\", \"1pw_disconnect\", \"1pw_update_access_token\",\n\t// \"update_access_token\", \"webmcp_invoke\", \"add_payment_method\",\n\t// \"remove_payment_method\", \"link_balance_setup\".\n\tType string `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDescription respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn operation that is currently valid for this item. Read the description before invoking it through the item operations endpoint.\n\n```go\nfunc (r CredentialAccountVaultItemAvailableOperation) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CredentialAccountVaultItemAvailableOperation) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialAccountVaultItemRequestParam struct {\n\tSpec OnePasswordCredentialAccountSpecParam `json:\"spec,omitzero\" api:\"required\"`\n\t// Any of \"credential_account\".\n\tType CredentialAccountVaultItemRequestType `json:\"type,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Spec, Type are required.\n\n```go\nfunc (r CredentialAccountVaultItemRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *CredentialAccountVaultItemRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialAccountVaultItemRequestType string\n```\n\n```go\nconst (\n\tCredentialAccountVaultItemRequestTypeCredentialAccount CredentialAccountVaultItemRequestType = \"credential_account\"\n)\n```\n\n```go\ntype CredentialAccountVaultItemType string\n```\n\n```go\nconst (\n\tCredentialAccountVaultItemTypeCredentialAccount CredentialAccountVaultItemType = \"credential_account\"\n)\n```\n\n```go\ntype CredentialCollectionAction struct {\n\t// Expiry of the Kernel-hosted collection link (30 minutes after issuance).\n\tExpiresAt time.Time `json:\"expires_at\" api:\"required\" format:\"date-time\"`\n\t// Any of \"collect\".\n\tName CredentialCollectionActionName `json:\"name\" api:\"required\"`\n\t// Time-scoped hosted form URL (vault.kernel.sh in production). Open this URL as\n\t// returned; treat it as a secret.\n\tURL string `json:\"url\" api:\"required\" format:\"uri\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tExpiresAt   respjson.Field\n\t\tName        respjson.Field\n\t\tURL         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOne schema-derived form for the item, available in ready or pending\\_collection state. Render every form-supported field as editable; omit totp and passkey fields and preserve their stored values. Prefill non-sensitive values, and allow existing sensitive values to be preserved or replaced without ever revealing them. No field subsets or per-request form configuration exist. Validate required fields against the resulting values, including preserved secrets. Submit changed values only, using the version used to render the form. Scoped hosted submission rejects totp and passkey edits; those writes require the ordinary authenticated item API. Customer forms likewise omit them from their payloads. Save edits atomically. A successful hosted submission increments the version, marks ready, and consumes the session; an empty edit may complete collection while preserving values. A customer form uses PATCH for changed values and does not send an empty PATCH when nothing changed. Kernel-hosted bearer sessions require no Kernel account and are bound to the item version. Expired, superseded, consumed, or deleted-item sessions cannot submit. Authenticated item GET renews expired active sessions for ready or pending items; pending items always receive an action. A ready item with no active session omits the action until collect is invoked. Concurrent renewals return the same link. Renewal changes neither values nor item version. An expired link cannot renew itself. The hosted form handles its collection protocol; callers only open the returned URL and do not extract or submit its token through the public API. For customer-hosted forms, use @onkernel/vault-react and an authenticated customer backend calling the ordinary item GET/PATCH API. Kernel does not store customer collection URLs or authenticate the customer's end users. Treat URLs and submitted values as secrets and exclude them from logs, traces, and errors.\n\n```go\nfunc (r CredentialCollectionAction) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CredentialCollectionAction) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialCollectionActionName string\n```\n\n```go\nconst (\n\tCredentialCollectionActionNameCollect CredentialCollectionActionName = \"collect\"\n)\n```\n\n```go\ntype CredentialListParams struct {\n\t// Filter by domain\n\tDomain param.Opt[string] `query:\"domain,omitzero\" json:\"-\"`\n\t// Maximum number of results to return\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Number of results to skip\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Case-insensitive substring match against credential name or domain. IDs match by\n\t// exact value.\n\tQuery param.Opt[string] `query:\"query,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r CredentialListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [CredentialListParams](#CredentialListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype CredentialNewParams struct {\n\t// Request to create a new credential\n\tCreateCredentialRequest CreateCredentialRequestParam\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r CredentialNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *CredentialNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialProvider struct {\n\t// Unique identifier for the credential provider\n\tID string `json:\"id\" api:\"required\"`\n\t// When the credential provider was created\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Whether the provider is enabled for credential lookups\n\tEnabled bool `json:\"enabled\" api:\"required\"`\n\t// Human-readable name for this provider instance\n\tName string `json:\"name\" api:\"required\"`\n\t// Priority order for credential lookups (lower numbers are checked first)\n\tPriority int64 `json:\"priority\" api:\"required\"`\n\t// Type of credential provider\n\t//\n\t// Any of \"onepassword\".\n\tProviderType CredentialProviderProviderType `json:\"provider_type\" api:\"required\"`\n\t// When the credential provider was last updated\n\tUpdatedAt time.Time `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID           respjson.Field\n\t\tCreatedAt    respjson.Field\n\t\tEnabled      respjson.Field\n\t\tName         respjson.Field\n\t\tPriority     respjson.Field\n\t\tProviderType respjson.Field\n\t\tUpdatedAt    respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn external credential provider (e.g., 1Password) for automatic credential lookup\n\n```go\nfunc (r CredentialProvider) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CredentialProvider) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialProviderItem struct {\n\t// Unique identifier for the item within the provider\n\tID string `json:\"id\" api:\"required\"`\n\t// Path to reference this item (VaultName/ItemTitle format)\n\tPath string `json:\"path\" api:\"required\"`\n\t// Display name of the credential item\n\tTitle string `json:\"title\" api:\"required\"`\n\t// ID of the vault containing this item\n\tVaultID string `json:\"vault_id\" api:\"required\"`\n\t// Name of the vault containing this item\n\tVaultName string `json:\"vault_name\" api:\"required\"`\n\t// URLs associated with this credential\n\tURLs []string `json:\"urls\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tPath        respjson.Field\n\t\tTitle       respjson.Field\n\t\tVaultID     respjson.Field\n\t\tVaultName   respjson.Field\n\t\tURLs        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA credential item from an external provider (e.g., a 1Password login item)\n\n```go\nfunc (r CredentialProviderItem) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CredentialProviderItem) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialProviderListItemsResponse struct {\n\tItems []CredentialProviderItem `json:\"items\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tItems       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r CredentialProviderListItemsResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CredentialProviderListItemsResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialProviderListParams struct {\n\t// Limit the number of credential providers to return.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Offset the number of credential providers to return.\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Case-insensitive substring match against credential provider name. IDs match by\n\t// exact value.\n\tQuery param.Opt[string] `query:\"query,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r CredentialProviderListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [CredentialProviderListParams](#CredentialProviderListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype CredentialProviderNewParams struct {\n\t// Request to create an external credential provider\n\tCreateCredentialProviderRequest CreateCredentialProviderRequestParam\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r CredentialProviderNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *CredentialProviderNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialProviderProviderType string\n```\nType of credential provider\n\n```go\nconst (\n\tCredentialProviderProviderTypeOnepassword CredentialProviderProviderType = \"onepassword\"\n)\n```\n\n```go\ntype CredentialProviderService struct {\n\tOptions []option.RequestOption\n}\n```\nConfigure external credential providers like 1Password.\n\nCredentialProviderService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewCredentialProviderService](#NewCredentialProviderService) method instead.\n\n```go\nfunc NewCredentialProviderService(opts ...option.RequestOption) (r CredentialProviderService)\n```\nNewCredentialProviderService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *CredentialProviderService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)\n```\nDelete a credential provider by its ID.\n\n```go\nfunc (r *CredentialProviderService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *CredentialProvider, err error)\n```\nRetrieve a credential provider by its ID.\n\n```go\nfunc (r *CredentialProviderService) List(ctx context.Context, query CredentialProviderListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[CredentialProvider], err error)\n```\nList external credential providers configured for the organization.\n\n```go\nfunc (r *CredentialProviderService) ListAutoPaging(ctx context.Context, query CredentialProviderListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[CredentialProvider]\n```\nList external credential providers configured for the organization.\n\n```go\nfunc (r *CredentialProviderService) ListItems(ctx context.Context, id string, opts ...option.RequestOption) (res *CredentialProviderListItemsResponse, err error)\n```\nReturns available credential items (e.g., 1Password login items) from the provider.\n\n```go\nfunc (r *CredentialProviderService) New(ctx context.Context, body CredentialProviderNewParams, opts ...option.RequestOption) (res *CredentialProvider, err error)\n```\nConfigure an external credential provider (e.g., 1Password) for automatic credential lookup.\n\n```go\nfunc (r *CredentialProviderService) Test(ctx context.Context, id string, opts ...option.RequestOption) (res *CredentialProviderTestResult, err error)\n```\nValidate the credential provider's token and list accessible vaults.\n\n```go\nfunc (r *CredentialProviderService) Update(ctx context.Context, id string, body CredentialProviderUpdateParams, opts ...option.RequestOption) (res *CredentialProvider, err error)\n```\nUpdate a credential provider's configuration.\n\n```go\ntype CredentialProviderTestResult struct {\n\t// Whether the connection test was successful\n\tSuccess bool `json:\"success\" api:\"required\"`\n\t// List of vaults accessible by the service account\n\tVaults []CredentialProviderTestResultVault `json:\"vaults\" api:\"required\"`\n\t// Error message if the test failed\n\tError string `json:\"error\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tSuccess     respjson.Field\n\t\tVaults      respjson.Field\n\t\tError       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nResult of testing a credential provider connection\n\n```go\nfunc (r CredentialProviderTestResult) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CredentialProviderTestResult) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialProviderTestResultVault struct {\n\t// Vault ID\n\tID string `json:\"id\" api:\"required\"`\n\t// Vault name\n\tName string `json:\"name\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tName        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r CredentialProviderTestResultVault) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CredentialProviderTestResultVault) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialProviderUpdateParams struct {\n\t// Request to update a credential provider\n\tUpdateCredentialProviderRequest UpdateCredentialProviderRequestParam\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r CredentialProviderUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *CredentialProviderUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialService struct {\n\tOptions []option.RequestOption\n}\n```\nCreate and manage credentials for authentication.\n\nCredentialService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewCredentialService](#NewCredentialService) method instead.\n\n```go\nfunc NewCredentialService(opts ...option.RequestOption) (r CredentialService)\n```\nNewCredentialService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *CredentialService) Delete(ctx context.Context, idOrName string, opts ...option.RequestOption) (err error)\n```\nDelete a credential by its ID or name.\n\n```go\nfunc (r *CredentialService) Get(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *Credential, err error)\n```\nRetrieve a credential by its ID or name. Credential values are not returned.\n\n```go\nfunc (r *CredentialService) List(ctx context.Context, query CredentialListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[Credential], err error)\n```\nList credentials in the resolved project. Credential values are not returned.\n\n```go\nfunc (r *CredentialService) ListAutoPaging(ctx context.Context, query CredentialListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[Credential]\n```\nList credentials in the resolved project. Credential values are not returned.\n\n```go\nfunc (r *CredentialService) New(ctx context.Context, body CredentialNewParams, opts ...option.RequestOption) (res *Credential, err error)\n```\nCreate a new credential for storing login information.\n\n```go\nfunc (r *CredentialService) TotpCode(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *CredentialTotpCodeResponse, err error)\n```\nReturns the current 6-digit TOTP code for a credential with a configured totp\\_secret. Use this to complete 2FA setup on sites or when you need a fresh code.\n\n```go\nfunc (r *CredentialService) Update(ctx context.Context, idOrName string, body CredentialUpdateParams, opts ...option.RequestOption) (res *Credential, err error)\n```\nUpdate a credential's name or values. When values are provided, they are merged with existing values (new keys are added, existing keys are overwritten).\n\n```go\ntype CredentialTotpAlgorithm string\n```\nHMAC algorithm used to generate TOTP codes. Defaults to SHA1 for credentials created before this metadata was stored.\n\n```go\nconst (\n\tCredentialTotpAlgorithmSha1   CredentialTotpAlgorithm = \"SHA1\"\n\tCredentialTotpAlgorithmSha256 CredentialTotpAlgorithm = \"SHA256\"\n\tCredentialTotpAlgorithmSha512 CredentialTotpAlgorithm = \"SHA512\"\n)\n```\n\n```go\ntype CredentialTotpCodeResponse struct {\n\t// Current 6-digit TOTP code\n\tCode string `json:\"code\" api:\"required\"`\n\t// When this code expires (ISO 8601 timestamp)\n\tExpiresAt time.Time `json:\"expires_at\" api:\"required\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCode        respjson.Field\n\t\tExpiresAt   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r CredentialTotpCodeResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CredentialTotpCodeResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialUpdateParams struct {\n\t// Request to update an existing credential\n\tUpdateCredentialRequest UpdateCredentialRequestParam\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r CredentialUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *CredentialUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialVaultFieldDefinition struct {\n\t// Stable field name used to key values, updates, and browser fills.\n\tName string `json:\"name\" api:\"required\"`\n\t// Whether a nonempty value is required for readiness and form submission.\n\tRequired bool `json:\"required\" api:\"required\"`\n\t// Whether the value is omitted from every item response. Reserve true for secrets\n\t// such as passwords, API tokens, and TOTP seeds. Ordinary usernames and email\n\t// addresses should be false so the form can display and prefill them.\n\tSensitive bool `json:\"sensitive\" api:\"required\"`\n\t// Text, email, and password have form inputs; totp and passkey do not and are\n\t// omitted from both Kernel-hosted and customer React forms. Password, totp, and\n\t// passkey must be sensitive. A totp value is an RFC 4648 Base32 generator seed\n\t// (case-insensitive, optional trailing padding), not an otpauth URI or current\n\t// code. Reject invalid or empty decoded seeds. Browser fill generates an RFC 6238\n\t// code at execution time using HMAC-SHA1, 6 digits, and a 30-second period.\n\t// Preserve leading zeros; never fill the seed. Custom algorithms, digits, periods,\n\t// and form enrollment are unsupported. A passkey value is a JSON-encoded FIDO\n\t// Credential Exchange Format passkey object with unpadded base64url\n\t// `credentialId`, `userHandle` (at most 64 bytes), and `key` (a PKCS#8 ECDSA P-256\n\t// private key), a lowercase `rpId` domain, and optional `username` and\n\t// `userDisplayName`. Other CXF members are ignored. Passkeys are never filled into\n\t// pages; use arm_passkey to sign in with one and register_passkey to create one.\n\t//\n\t// Any of \"text\", \"email\", \"password\", \"totp\", \"passkey\".\n\tType CredentialVaultFieldType `json:\"type\" api:\"required\"`\n\t// Optional human-readable display label. It is returned as non-secret metadata and\n\t// never affects value keys, updates, or browser fills. Use single-line, trimmed\n\t// display text without control or formatting characters. The server enforces a\n\t// 128-byte UTF-8 limit.\n\tLabel string `json:\"label\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tName        respjson.Field\n\t\tRequired    respjson.Field\n\t\tSensitive   respjson.Field\n\t\tType        respjson.Field\n\t\tLabel       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r CredentialVaultFieldDefinition) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CredentialVaultFieldDefinition) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialVaultFieldDefinitionInputParam struct {\n\t// Unique stable field name used to key values, updates, and browser fills.\n\tName string `json:\"name\" api:\"required\"`\n\t// Text, email, and password have form inputs; totp and passkey do not and are\n\t// omitted from both Kernel-hosted and customer React forms. Password, totp, and\n\t// passkey must be sensitive. A totp value is an RFC 4648 Base32 generator seed\n\t// (case-insensitive, optional trailing padding), not an otpauth URI or current\n\t// code. Reject invalid or empty decoded seeds. Browser fill generates an RFC 6238\n\t// code at execution time using HMAC-SHA1, 6 digits, and a 30-second period.\n\t// Preserve leading zeros; never fill the seed. Custom algorithms, digits, periods,\n\t// and form enrollment are unsupported. A passkey value is a JSON-encoded FIDO\n\t// Credential Exchange Format passkey object with unpadded base64url\n\t// `credentialId`, `userHandle` (at most 64 bytes), and `key` (a PKCS#8 ECDSA P-256\n\t// private key), a lowercase `rpId` domain, and optional `username` and\n\t// `userDisplayName`. Other CXF members are ignored. Passkeys are never filled into\n\t// pages; use arm_passkey to sign in with one and register_passkey to create one.\n\t//\n\t// Any of \"text\", \"email\", \"password\", \"totp\", \"passkey\".\n\tType CredentialVaultFieldType `json:\"type,omitzero\" api:\"required\"`\n\t// Optional human-readable display label. It is returned as non-secret metadata and\n\t// never affects value keys, updates, or browser fills. Use single-line, trimmed\n\t// display text without control or formatting characters. The server enforces a\n\t// 128-byte UTF-8 limit.\n\tLabel    param.Opt[string] `json:\"label,omitzero\"`\n\tRequired param.Opt[bool]   `json:\"required,omitzero\"`\n\t// Set false explicitly for ordinary usernames, email addresses, and other\n\t// non-secret identifiers. Reserve true for secrets such as passwords, API tokens,\n\t// and TOTP seeds. Password, totp, and passkey fields must be true. Omission\n\t// defaults to true for safety; do not rely on that default for every field. False\n\t// permits API reads and form prefilling.\n\tSensitive param.Opt[bool] `json:\"sensitive,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nA field definition without a value. Field updates add fields with this shape and set their values in \\`fields\\`.\n\nThe properties Name, Type are required.\n\n```go\nfunc (r CredentialVaultFieldDefinitionInputParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *CredentialVaultFieldDefinitionInputParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialVaultFieldInputParam struct {\n\t// Unique stable field name used to key values, updates, and browser fills.\n\tName string `json:\"name\" api:\"required\"`\n\t// Text, email, and password have form inputs; totp and passkey do not and are\n\t// omitted from both Kernel-hosted and customer React forms. Password, totp, and\n\t// passkey must be sensitive. A totp value is an RFC 4648 Base32 generator seed\n\t// (case-insensitive, optional trailing padding), not an otpauth URI or current\n\t// code. Reject invalid or empty decoded seeds. Browser fill generates an RFC 6238\n\t// code at execution time using HMAC-SHA1, 6 digits, and a 30-second period.\n\t// Preserve leading zeros; never fill the seed. Custom algorithms, digits, periods,\n\t// and form enrollment are unsupported. A passkey value is a JSON-encoded FIDO\n\t// Credential Exchange Format passkey object with unpadded base64url\n\t// `credentialId`, `userHandle` (at most 64 bytes), and `key` (a PKCS#8 ECDSA P-256\n\t// private key), a lowercase `rpId` domain, and optional `username` and\n\t// `userDisplayName`. Other CXF members are ignored. Passkeys are never filled into\n\t// pages; use arm_passkey to sign in with one and register_passkey to create one.\n\t//\n\t// Any of \"text\", \"email\", \"password\", \"totp\", \"passkey\".\n\tType CredentialVaultFieldType `json:\"type,omitzero\" api:\"required\"`\n\t// Alternative to value for custom credential collection web apps. Use this only if\n\t// you run your own credential collection web app and want values encrypted in the\n\t// browser, sent to your backend still encrypted, and forwarded to Kernel's API\n\t// still encrypted. In every other case, including server-side code that already\n\t// holds the plaintext, use value. The field's value encrypted client-side as a\n\t// compact JWE with alg ECDH-ES and enc A256GCM to the key from GET\n\t// /vaults/{id_or_name}/encryption_key, with that key's kid in the protected\n\t// header. Compression is not supported. The decrypted value follows the same rules\n\t// as value, including that an empty string clears the field on update. A kid that\n\t// is not this vault's key returns 400 encryption_key_mismatch; fetch the key again\n\t// and re-encrypt. Other malformed or undecryptable values return 400\n\t// invalid_request. The whole request body is limited to 128 KiB.\n\tEncryptedValue param.Opt[string] `json:\"encrypted_value,omitzero\"`\n\t// Optional human-readable display label. It is returned as non-secret metadata and\n\t// never affects value keys, updates, or browser fills. Use single-line, trimmed\n\t// display text without control or formatting characters. The server enforces a\n\t// 128-byte UTF-8 limit.\n\tLabel    param.Opt[string] `json:\"label,omitzero\"`\n\tRequired param.Opt[bool]   `json:\"required,omitzero\"`\n\t// Set false explicitly for ordinary usernames, email addresses, and other\n\t// non-secret identifiers. Reserve true for secrets such as passwords, API tokens,\n\t// and TOTP seeds. Password, totp, and passkey fields must be true. Omission\n\t// defaults to true for safety; do not rely on that default for every field. False\n\t// permits API reads and form prefilling.\n\tSensitive param.Opt[bool] `json:\"sensitive,omitzero\"`\n\t// Optional initial value satisfying the declared type, at most 16 KiB in UTF-8\n\t// bytes. Omit to leave unset; null and empty strings are rejected on creation.\n\t// Sensitive values are encrypted and never copied into the returned spec. Use this\n\t// unless your own credential collection web app encrypts values in the browser;\n\t// mutually exclusive with encrypted_value.\n\tValue param.Opt[string] `json:\"value,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Name, Type are required.\n\n```go\nfunc (r CredentialVaultFieldInputParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *CredentialVaultFieldInputParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialVaultFieldState struct {\n\tHasValue bool `json:\"has_value\" api:\"required\"`\n\t// Present exactly when has_value is true and the field is not sensitive. Reflects\n\t// the latest developer or human edit. For totp, has_value indicates a stored seed;\n\t// neither the seed nor a generated code is returned.\n\tValue string `json:\"value\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tHasValue    respjson.Field\n\t\tValue       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r CredentialVaultFieldState) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CredentialVaultFieldState) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialVaultFieldType string\n```\nText, email, and password have form inputs; totp and passkey do not and are omitted from both Kernel-hosted and customer React forms. Password, totp, and passkey must be sensitive. A totp value is an RFC 4648 Base32 generator seed (case-insensitive, optional trailing padding), not an otpauth URI or current code. Reject invalid or empty decoded seeds. Browser fill generates an RFC 6238 code at execution time using HMAC-SHA1, 6 digits, and a 30-second period. Preserve leading zeros; never fill the seed. Custom algorithms, digits, periods, and form enrollment are unsupported. A passkey value is a JSON-encoded FIDO Credential Exchange Format passkey object with unpadded base64url \\`credentialId\\`, \\`userHandle\\` (at most 64 bytes), and \\`key\\` (a PKCS#8 ECDSA P-256 private key), a lowercase \\`rpId\\` domain, and optional \\`username\\` and \\`userDisplayName\\`. Other CXF members are ignored. Passkeys are never filled into pages; use arm\\_passkey to sign in with one and register\\_passkey to create one.\n\n```go\nconst (\n\tCredentialVaultFieldTypeText     CredentialVaultFieldType = \"text\"\n\tCredentialVaultFieldTypeEmail    CredentialVaultFieldType = \"email\"\n\tCredentialVaultFieldTypePassword CredentialVaultFieldType = \"password\"\n\tCredentialVaultFieldTypeTotp     CredentialVaultFieldType = \"totp\"\n\tCredentialVaultFieldTypePasskey  CredentialVaultFieldType = \"passkey\"\n)\n```\n\n```go\ntype CredentialVaultFieldUpdateParam struct {\n\t// Replacement value (at most 16 KiB in UTF-8 bytes), or null or an empty string to\n\t// immediately clear the stored value. Clearing a required form-supported field\n\t// reopens collection; clearing an optional field does not prevent readiness.\n\t// Values must satisfy the declared field type. For totp, value is the generator\n\t// seed, never a current code. For passkey, value is the JSON-encoded CXF passkey\n\t// object. Clearing a required totp or passkey field returns 400 because it cannot\n\t// be collected in a form.\n\tValue param.Opt[string] `json:\"value,omitzero\"`\n\t// Alternative to value for custom credential collection web apps. Use this only if\n\t// you run your own credential collection web app and want values encrypted in the\n\t// browser, sent to your backend still encrypted, and forwarded to Kernel's API\n\t// still encrypted. In every other case, including server-side code that already\n\t// holds the plaintext, use value. The field's value encrypted client-side as a\n\t// compact JWE with alg ECDH-ES and enc A256GCM to the key from GET\n\t// /vaults/{id_or_name}/encryption_key, with that key's kid in the protected\n\t// header. Compression is not supported. The decrypted value follows the same rules\n\t// as value, including that an empty string clears the field on update. A kid that\n\t// is not this vault's key returns 400 encryption_key_mismatch; fetch the key again\n\t// and re-encrypt. Other malformed or undecryptable values return 400\n\t// invalid_request. The whole request body is limited to 128 KiB.\n\tEncryptedValue param.Opt[string] `json:\"encrypted_value,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nSet exactly one of value or encrypted\\_value. Use value unless the update comes from your own credential collection web app that encrypts values in the browser; see encrypted\\_value.\n\n```go\nfunc (r CredentialVaultFieldUpdateParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *CredentialVaultFieldUpdateParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialVaultItem struct {\n\tID                  string                                  `json:\"id\" api:\"required\"`\n\tAvailableExpansions []CredentialVaultItemAvailableExpansion `json:\"available_expansions\" api:\"required\"`\n\t// Kernel credentials advertise collect and fill when eligible. 1Password\n\t// credentials advertise 1pw_create_access_request until a request is made,\n\t// 1pw_access_request_status while its approval is pending (and\n\t// 1pw_create_access_request again once the 3-minute status-check window has\n\t// passed), and 1pw_fill after access is granted. Managed auth credentials\n\t// advertise fill while ready and nothing otherwise.\n\tAvailableOperations []CredentialVaultItemAvailableOperation `json:\"available_operations\" api:\"required\"`\n\tCreatedAt           time.Time                               `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Immutable item key assigned when the item is created.\n\tKey string `json:\"key\" api:\"required\"`\n\t// Stored-token credentials omit account and never return access_token or\n\t// integration_key.\n\tSpec  CredentialVaultItemSpecUnion  `json:\"spec\" api:\"required\"`\n\tState CredentialVaultItemStateUnion `json:\"state\" api:\"required\"`\n\t// Any of \"credential\".\n\tType      CredentialVaultItemType `json:\"type\" api:\"required\"`\n\tUpdatedAt time.Time               `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\t// Starts at 1 and increments on PATCH and successful hosted submission, but not\n\t// collection-link renewal. Managed auth credentials stay at 1; changes to the\n\t// underlying credential are read at fill time and do not change the version.\n\tVersion int64 `json:\"version\" api:\"required\"`\n\t// One schema-derived form for the item, available in ready or pending_collection\n\t// state. Render every form-supported field as editable; omit totp and passkey\n\t// fields and preserve their stored values. Prefill non-sensitive values, and allow\n\t// existing sensitive values to be preserved or replaced without ever revealing\n\t// them. No field subsets or per-request form configuration exist. Validate\n\t// required fields against the resulting values, including preserved secrets.\n\t// Submit changed values only, using the version used to render the form. Scoped\n\t// hosted submission rejects totp and passkey edits; those writes require the\n\t// ordinary authenticated item API. Customer forms likewise omit them from their\n\t// payloads. Save edits atomically. A successful hosted submission increments the\n\t// version, marks ready, and consumes the session; an empty edit may complete\n\t// collection while preserving values. A customer form uses PATCH for changed\n\t// values and does not send an empty PATCH when nothing changed. Kernel-hosted\n\t// bearer sessions require no Kernel account and are bound to the item version.\n\t// Expired, superseded, consumed, or deleted-item sessions cannot submit.\n\t// Authenticated item GET renews expired active sessions for ready or pending\n\t// items; pending items always receive an action. A ready item with no active\n\t// session omits the action until collect is invoked. Concurrent renewals return\n\t// the same link. Renewal changes neither values nor item version. An expired link\n\t// cannot renew itself. The hosted form handles its collection protocol; callers\n\t// only open the returned URL and do not extract or submit its token through the\n\t// public API. For customer-hosted forms, use @onkernel/vault-react and an\n\t// authenticated customer backend calling the ordinary item GET/PATCH API. Kernel\n\t// does not store customer collection URLs or authenticate the customer's end\n\t// users. Treat URLs and submitted values as secrets and exclude them from logs,\n\t// traces, and errors.\n\tAction CredentialVaultItemActionUnion `json:\"action\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                  respjson.Field\n\t\tAvailableExpansions respjson.Field\n\t\tAvailableOperations respjson.Field\n\t\tCreatedAt           respjson.Field\n\t\tKey                 respjson.Field\n\t\tSpec                respjson.Field\n\t\tState               respjson.Field\n\t\tType                respjson.Field\n\t\tUpdatedAt           respjson.Field\n\t\tVersion             respjson.Field\n\t\tAction              respjson.Field\n\t\tExtraFields         map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r CredentialVaultItem) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CredentialVaultItem) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialVaultItemAction1passwordAccessApproval struct {\n\t// The access_request_reference value from url, for approving inside your own iOS\n\t// or Android app with 1Password's action extension or authorization activity. Pass\n\t// it unchanged; the grant comes back to your app, and 1pw_access_request_status\n\t// records it in Kernel. Treat it like url, which carries the same request text,\n\t// and keep it out of logs.\n\tAccessRequestReference string `json:\"access_request_reference\" api:\"required\"`\n\t// Steps for the agent to hand approval to the human and poll the resulting\n\t// decision.\n\tInstructions string                                 `json:\"instructions\" api:\"required\"`\n\tName         constant.String1passwordAccessApproval `json:\"name\" default:\"1password_access_approval\"`\n\t// Native 1Password approval link. Present it to the account owner unchanged,\n\t// except that you may append `\u0026return_url=\u003cURL-encoded URL\u003e` so 1Password sends\n\t// them back to your app after they decide (1Password 8.12.46 or later on iOS,\n\t// Android and desktop). It does not grant access until they approve in their app.\n\tURL string `json:\"url\" api:\"required\" format:\"uri\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAccessRequestReference respjson.Field\n\t\tInstructions           respjson.Field\n\t\tName                   respjson.Field\n\t\tURL                    respjson.Field\n\t\tExtraFields            map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r CredentialVaultItemAction1passwordAccessApproval) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CredentialVaultItemAction1passwordAccessApproval) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialVaultItemActionUnion struct {\n\t// This field is from variant [CredentialCollectionAction].\n\tExpiresAt time.Time `json:\"expires_at\"`\n\t// Any of \"collect\", \"1password_access_approval\".\n\tName string `json:\"name\"`\n\tURL  string `json:\"url\"`\n\t// This field is from variant [CredentialVaultItemAction1passwordAccessApproval].\n\tAccessRequestReference string `json:\"access_request_reference\"`\n\t// This field is from variant [CredentialVaultItemAction1passwordAccessApproval].\n\tInstructions string `json:\"instructions\"`\n\tJSON         struct {\n\t\tExpiresAt              respjson.Field\n\t\tName                   respjson.Field\n\t\tURL                    respjson.Field\n\t\tAccessRequestReference respjson.Field\n\t\tInstructions           respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nCredentialVaultItemActionUnion contains all possible properties and values from [CredentialCollectionAction](#CredentialCollectionAction), [CredentialVaultItemAction1passwordAccessApproval](#CredentialVaultItemAction1passwordAccessApproval).\n\nUse the [CredentialVaultItemActionUnion.AsAny](#CredentialVaultItemActionUnion.AsAny) method to switch on the variant.\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u CredentialVaultItemActionUnion) As1passwordAccessApproval() (v CredentialVaultItemAction1passwordAccessApproval)\n```\n\n```go\nfunc (u CredentialVaultItemActionUnion) AsAny() anyCredentialVaultItemAction\n```\nUse the following switch statement to find the correct variant\n\n\tswitch variant := CredentialVaultItemActionUnion.AsAny().(type) {\n\tcase kernel.CredentialCollectionAction:\n\tcase kernel.CredentialVaultItemAction1passwordAccessApproval:\n\tdefault:\n\t  fmt.Errorf(\"no variant present\")\n\t}\n\n```go\nfunc (u CredentialVaultItemActionUnion) AsCollect() (v CredentialCollectionAction)\n```\n\n```go\nfunc (u CredentialVaultItemActionUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CredentialVaultItemActionUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialVaultItemAvailableExpansion struct {\n\tDescription string `json:\"description\" api:\"required\"`\n\t// Any of \"payment_methods\", \"link_user_info\", \"link_shipping_addresses\".\n\tType string `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDescription respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nLive data that can currently be requested by passing its type to the item GET expand parameter.\n\n```go\nfunc (r CredentialVaultItemAvailableExpansion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CredentialVaultItemAvailableExpansion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialVaultItemAvailableOperation struct {\n\tDescription string `json:\"description\" api:\"required\"`\n\t// Any of \"authorize\", \"restart_verification\", \"confirm_transaction\", \"collect\",\n\t// \"prepare_checkout\", \"fill\", \"arm_passkey\", \"register_passkey\", \"disarm_passkey\",\n\t// \"1pw_create_access_request\", \"1pw_access_request_status\", \"1pw_fill\",\n\t// \"1pw_recover\", \"1pw_disconnect\", \"1pw_update_access_token\",\n\t// \"update_access_token\", \"webmcp_invoke\", \"add_payment_method\",\n\t// \"remove_payment_method\", \"link_balance_setup\".\n\tType string `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDescription respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn operation that is currently valid for this item. Read the description before invoking it through the item operations endpoint.\n\n```go\nfunc (r CredentialVaultItemAvailableOperation) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CredentialVaultItemAvailableOperation) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialVaultItemRequestParam struct {\n\t// Credential fields are for login and other non-payment credentials. Do not store,\n\t// collect, or fill credit card data in credential items. Use wallet,\n\t// payment_request and card item types for credit cards and payment checkout\n\t// instead. Field order is preserved in the user-facing collection form, so list\n\t// fields in the same top-to-bottom order as the website.\n\tSpec CredentialVaultItemSpecInputUnionParam `json:\"spec,omitzero\" api:\"required\"`\n\t// Any of \"credential\".\n\tType CredentialVaultItemRequestType `json:\"type,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nAsk the end-user whether to link their site credential through 1Password. If they choose 1Password, connect their account and request access to a login in their own non-shared vault; passkeys are not supported. If they decline or that path fails, collect a Kernel-hosted credential item instead. Never automatically retry an uncertain 1Password request. After an uncertain fill, inspect the page to see the result of the fill. Do not use credential items for credit card data. Use wallet, payment\\_request and card item types instead. Kernel credentials declare fields and may enter pending\\_collection. 1Password credentials either reference a connected credential\\_account or store a supplied access token and integration key encrypted on the item. They store no login values or selectors. Managed auth credentials reference a managed auth connection in the same project that already has a saved credential, and read it at fill time; they store no values. Repeating the original creation request returns the current item without overwriting later state. A different request at the same key returns 409.\n\nThe properties Spec, Type are required.\n\n```go\nfunc (r CredentialVaultItemRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *CredentialVaultItemRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialVaultItemRequestType string\n```\n\n```go\nconst (\n\tCredentialVaultItemRequestTypeCredential CredentialVaultItemRequestType = \"credential\"\n)\n```\n\n```go\ntype CredentialVaultItemSpecInputUnionParam struct {\n\tOfKernel      *KernelCredentialVaultItemSpecInputParam      `json:\",omitzero,inline\"`\n\tOf1password   *OnePasswordCredentialVaultItemSpecInputParam `json:\",omitzero,inline\"`\n\tOfManagedAuth *ManagedAuthCredentialVaultItemSpecInputParam `json:\",omitzero,inline\"`\n\t// contains filtered or unexported fields\n}\n```\nOnly one field can be non-zero.\n\nUse [param.IsOmitted](/github.com/kernel/kernel-go-sdk/packages/param#IsOmitted) to confirm if a field is set.\n\n```go\nfunc CredentialVaultItemSpecInputParamOf1password(provider OnePasswordCredentialVaultItemSpecInputProvider) CredentialVaultItemSpecInputUnionParam\n```\n\n```go\nfunc CredentialVaultItemSpecInputParamOfKernel(fields []CredentialVaultFieldInputParam) CredentialVaultItemSpecInputUnionParam\n```\n\n```go\nfunc CredentialVaultItemSpecInputParamOfManagedAuth(connectionID string) CredentialVaultItemSpecInputUnionParam\n```\n\n```go\nfunc (u CredentialVaultItemSpecInputUnionParam) GetAccessRequestID() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CredentialVaultItemSpecInputUnionParam) GetAccessToken() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CredentialVaultItemSpecInputUnionParam) GetAccessTokenExpiresAt() *time.Time\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CredentialVaultItemSpecInputUnionParam) GetAccount() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CredentialVaultItemSpecInputUnionParam) GetConnectionID() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CredentialVaultItemSpecInputUnionParam) GetDescription() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CredentialVaultItemSpecInputUnionParam) GetDomain() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CredentialVaultItemSpecInputUnionParam) GetFields() []CredentialVaultFieldInputParam\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CredentialVaultItemSpecInputUnionParam) GetIntegrationKey() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CredentialVaultItemSpecInputUnionParam) GetProvider() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CredentialVaultItemSpecInputUnionParam) GetRequests() *OnePasswordCredentialVaultItemSpecInputRequestsParam\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CredentialVaultItemSpecInputUnionParam) GetResolved() []OnePasswordCredentialVaultItemSpecInputResolvedParam\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CredentialVaultItemSpecInputUnionParam) GetWebsite() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u CredentialVaultItemSpecInputUnionParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (u *CredentialVaultItemSpecInputUnionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialVaultItemSpecUnion struct {\n\t// This field is from variant [KernelCredentialVaultItemSpec].\n\tFields []CredentialVaultFieldDefinition `json:\"fields\"`\n\t// Any of \"kernel\", \"1password\", \"managed_auth\".\n\tProvider    string `json:\"provider\"`\n\tDescription string `json:\"description\"`\n\t// This field is from variant [KernelCredentialVaultItemSpec].\n\tDomain string `json:\"domain\"`\n\t// This field is from variant [OnePasswordCredentialVaultItemSpec].\n\tRequests OnePasswordCredentialVaultItemSpecRequests `json:\"requests\"`\n\t// This field is from variant [OnePasswordCredentialVaultItemSpec].\n\tAccessTokenExpiresAt time.Time `json:\"access_token_expires_at\"`\n\t// This field is from variant [OnePasswordCredentialVaultItemSpec].\n\tAccount string `json:\"account\"`\n\t// This field is from variant [ManagedAuthCredentialVaultItemSpec].\n\tConnectionID string `json:\"connection_id\"`\n\tJSON         struct {\n\t\tFields               respjson.Field\n\t\tProvider             respjson.Field\n\t\tDescription          respjson.Field\n\t\tDomain               respjson.Field\n\t\tRequests             respjson.Field\n\t\tAccessTokenExpiresAt respjson.Field\n\t\tAccount              respjson.Field\n\t\tConnectionID         respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nCredentialVaultItemSpecUnion contains all possible properties and values from [KernelCredentialVaultItemSpec](#KernelCredentialVaultItemSpec), [OnePasswordCredentialVaultItemSpec](#OnePasswordCredentialVaultItemSpec), [ManagedAuthCredentialVaultItemSpec](#ManagedAuthCredentialVaultItemSpec).\n\nUse the [CredentialVaultItemSpecUnion.AsAny](#CredentialVaultItemSpecUnion.AsAny) method to switch on the variant.\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u CredentialVaultItemSpecUnion) As1password() (v OnePasswordCredentialVaultItemSpec)\n```\n\n```go\nfunc (u CredentialVaultItemSpecUnion) AsAny() anyCredentialVaultItemSpec\n```\nUse the following switch statement to find the correct variant\n\n\tswitch variant := CredentialVaultItemSpecUnion.AsAny().(type) {\n\tcase kernel.KernelCredentialVaultItemSpec:\n\tcase kernel.OnePasswordCredentialVaultItemSpec:\n\tcase kernel.ManagedAuthCredentialVaultItemSpec:\n\tdefault:\n\t  fmt.Errorf(\"no variant present\")\n\t}\n\n```go\nfunc (u CredentialVaultItemSpecUnion) AsKernel() (v KernelCredentialVaultItemSpec)\n```\n\n```go\nfunc (u CredentialVaultItemSpecUnion) AsManagedAuth() (v ManagedAuthCredentialVaultItemSpec)\n```\n\n```go\nfunc (u CredentialVaultItemSpecUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CredentialVaultItemSpecUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialVaultItemSpecUpdateParam struct {\n\t// Recognizable site or service name used as the form title, without suffixes such\n\t// as sign-in credentials. An empty string clears it. Display text only, not an\n\t// enforced destination policy. The server also enforces a 16 KiB UTF-8 byte limit.\n\tDescription param.Opt[string] `json:\"description,omitzero\"`\n\t// Hostname of the site this login is for, such as rippling.com. Collection pages\n\t// and link previews show the site's icon and domain. Setting it also puts the\n\t// domain in the collection link's query string (/collect?d=\u003cdomain\u003e#token=...),\n\t// where anyone with the link can read it without the token. An empty string clears\n\t// it. Display text only, not an enforced destination policy.\n\tDomain param.Opt[string] `json:\"domain,omitzero\"`\n\t// Field definitions to append, with the same defaults as creation. Set their\n\t// values in `fields` in the same update. Names must be unique after removals; at\n\t// most 32 fields may result. A required totp or passkey field needs a value in\n\t// `fields`.\n\tAddFields []CredentialVaultFieldDefinitionInputParam `json:\"add_fields,omitzero\"`\n\tFields    map[string]CredentialVaultFieldUpdateParam `json:\"fields,omitzero\"`\n\t// Names of fields to delete with their values. Unknown names return 400. At least\n\t// one field must remain.\n\tRemoveFields []string `json:\"remove_fields,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r CredentialVaultItemSpecUpdateParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *CredentialVaultItemSpecUpdateParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialVaultItemStateUnion struct {\n\t// This field is a union of [map[string]CredentialVaultFieldState],\n\t// [map[string]ManagedAuthCredentialVaultField]\n\tFields CredentialVaultItemStateUnionFields `json:\"fields\"`\n\t// Any of \"kernel\", \"1password\", \"managed_auth\".\n\tProvider string `json:\"provider\"`\n\tStatus   string `json:\"status\"`\n\t// This field is from variant [OnePasswordCredentialVaultItemState].\n\tAccessRequest OnePasswordCredentialVaultItemStateAccessRequest `json:\"access_request\"`\n\t// This field is from variant [OnePasswordCredentialVaultItemState].\n\tAccessRequestID string `json:\"access_request_id\"`\n\tStatusReason    string `json:\"status_reason\"`\n\tJSON            struct {\n\t\tFields          respjson.Field\n\t\tProvider        respjson.Field\n\t\tStatus          respjson.Field\n\t\tAccessRequest   respjson.Field\n\t\tAccessRequestID respjson.Field\n\t\tStatusReason    respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nCredentialVaultItemStateUnion contains all possible properties and values from [KernelCredentialVaultItemState](#KernelCredentialVaultItemState), [OnePasswordCredentialVaultItemState](#OnePasswordCredentialVaultItemState), [ManagedAuthCredentialVaultItemState](#ManagedAuthCredentialVaultItemState).\n\nUse the [CredentialVaultItemStateUnion.AsAny](#CredentialVaultItemStateUnion.AsAny) method to switch on the variant.\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u CredentialVaultItemStateUnion) As1password() (v OnePasswordCredentialVaultItemState)\n```\n\n```go\nfunc (u CredentialVaultItemStateUnion) AsAny() anyCredentialVaultItemState\n```\nUse the following switch statement to find the correct variant\n\n\tswitch variant := CredentialVaultItemStateUnion.AsAny().(type) {\n\tcase kernel.KernelCredentialVaultItemState:\n\tcase kernel.OnePasswordCredentialVaultItemState:\n\tcase kernel.ManagedAuthCredentialVaultItemState:\n\tdefault:\n\t  fmt.Errorf(\"no variant present\")\n\t}\n\n```go\nfunc (u CredentialVaultItemStateUnion) AsKernel() (v KernelCredentialVaultItemState)\n```\n\n```go\nfunc (u CredentialVaultItemStateUnion) AsManagedAuth() (v ManagedAuthCredentialVaultItemState)\n```\n\n```go\nfunc (u CredentialVaultItemStateUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CredentialVaultItemStateUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialVaultItemStateUnionFields struct {\n\t// This field is from variant [map[string]CredentialVaultFieldState].\n\tHasValue bool `json:\"has_value\"`\n\t// This field is from variant [map[string]CredentialVaultFieldState].\n\tValue string `json:\"value\"`\n\t// This field is from variant [map[string]ManagedAuthCredentialVaultField].\n\tType CredentialVaultFieldType `json:\"type\"`\n\tJSON struct {\n\t\tHasValue respjson.Field\n\t\tValue    respjson.Field\n\t\tType     respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nCredentialVaultItemStateUnionFields is an implicit subunion of [CredentialVaultItemStateUnion](#CredentialVaultItemStateUnion). CredentialVaultItemStateUnionFields provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [CredentialVaultItemStateUnion](#CredentialVaultItemStateUnion).\n\n```go\nfunc (r *CredentialVaultItemStateUnionFields) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialVaultItemType string\n```\n\n```go\nconst (\n\tCredentialVaultItemTypeCredential CredentialVaultItemType = \"credential\"\n)\n```\n\n```go\ntype CredentialVaultItemUpdateRequestParam struct {\n\tSpec CredentialVaultItemSpecUpdateParam `json:\"spec,omitzero\" api:\"required\"`\n\t// Any of \"credential\".\n\tType CredentialVaultItemUpdateRequestType `json:\"type,omitzero\" api:\"required\"`\n\t// Expected current item version from the latest read.\n\tVersion int64 `json:\"version\" api:\"required\"`\n\t// Optional immutable item ID precondition. Returns 409 if the key now identifies a\n\t// different item. Accepted writes target this immutable ID, preventing\n\t// replacement-key races. Supply this when submitting a form bound to a previously\n\t// read item.\n\tExpectedItemID param.Opt[string] `json:\"expected_item_id,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nAtomically update description, field definitions, and selected values. Omitted properties are preserved. \\`remove\\_fields\\` deletes definitions and their values, then \\`add\\_fields\\` appends definitions, then \\`fields\\` sets values, including for added fields. An existing field's definition cannot be edited in place; to change it, remove the field and add it again, in the same update or a later one. The old value is deleted with it. Unknown field names return 400; stale versions or mismatched item types return 409 without changing the item. A successful update increments version and invalidates outstanding Kernel-hosted collection sessions. If required values remain missing, return pending\\_collection and a fresh collection action. Otherwise return ready without an action; collect can open the form again without clearing values. Customer URLs have no Kernel-managed expiry. 1Password and managed auth credentials return 409.\n\nThe properties Spec, Type, Version are required.\n\n```go\nfunc (r CredentialVaultItemUpdateRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *CredentialVaultItemUpdateRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CredentialVaultItemUpdateRequestType string\n```\n\n```go\nconst (\n\tCredentialVaultItemUpdateRequestTypeCredential CredentialVaultItemUpdateRequestType = \"credential\"\n)\n```\n\n```go\ntype CustomToolSource struct {\n\tID        string `json:\"id\" api:\"required\"`\n\tNamespace string `json:\"namespace\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tNamespace   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r CustomToolSource) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CustomToolSource) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CustomToolsResponse struct {\n\tTools []Definition `json:\"tools\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tTools       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r CustomToolsResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CustomToolsResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Definition struct {\n\tID        string `json:\"id\" api:\"required\"`\n\tKind      string `json:\"kind\" api:\"required\"`\n\tMatch     Match  `json:\"match\" api:\"required\"`\n\tNamespace string `json:\"namespace\" api:\"required\"`\n\t// Tool metadata follows the\n\t// [MCP Tool definition](https://modelcontextprotocol.io/specification/2025-11-25/server/tools#tool)\n\t// and the\n\t// [WebMCP RegisteredTool definition](https://webmachinelearning.github.io/webmcp/#dictdef-registeredtool).\n\t// outputSchema is optional for page and custom tools.\n\tTool ToolMetadata `json:\"tool\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tKind        respjson.Field\n\t\tMatch       respjson.Field\n\t\tNamespace   respjson.Field\n\t\tTool        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r Definition) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Definition) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DeploymentFollowParams struct {\n\t// Show logs since the given time (RFC timestamps or durations like 5m).\n\tSince param.Opt[string] `query:\"since,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r DeploymentFollowParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [DeploymentFollowParams](#DeploymentFollowParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype DeploymentFollowResponseAppVersionSummaryEvent struct {\n\t// Unique identifier for the app version\n\tID string `json:\"id\" api:\"required\"`\n\t// List of actions available on the app\n\tActions []shared.AppAction `json:\"actions\" api:\"required\"`\n\t// Name of the application\n\tAppName string `json:\"app_name\" api:\"required\"`\n\t// Event type identifier (always \"app_version_summary\").\n\tEvent constant.AppVersionSummary `json:\"event\" default:\"app_version_summary\"`\n\t// Deployment region code\n\tRegion constant.AwsUsEast1a `json:\"region\" default:\"aws.us-east-1a\"`\n\t// Time the state was reported.\n\tTimestamp time.Time `json:\"timestamp\" api:\"required\" format:\"date-time\"`\n\t// Version label for the application\n\tVersion string `json:\"version\" api:\"required\"`\n\t// Environment variables configured for this app version. Not currently populated\n\t// on streamed app_version_summary events.\n\tEnvVars map[string]string `json:\"env_vars\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tActions     respjson.Field\n\t\tAppName     respjson.Field\n\t\tEvent       respjson.Field\n\t\tRegion      respjson.Field\n\t\tTimestamp   respjson.Field\n\t\tVersion     respjson.Field\n\t\tEnvVars     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSummary of an application version.\n\n```go\nfunc (r DeploymentFollowResponseAppVersionSummaryEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *DeploymentFollowResponseAppVersionSummaryEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DeploymentFollowResponseUnion struct {\n\t// Any of \"log\", \"deployment_state\", nil, nil, \"sse_heartbeat\".\n\tEvent string `json:\"event\"`\n\t// This field is from variant [shared.LogEvent].\n\tMessage   string    `json:\"message\"`\n\tTimestamp time.Time `json:\"timestamp\"`\n\t// This field is from variant [DeploymentStateEvent].\n\tDeployment DeploymentStateEventDeployment `json:\"deployment\"`\n\t// This field is from variant [DeploymentFollowResponseAppVersionSummaryEvent].\n\tID string `json:\"id\"`\n\t// This field is from variant [DeploymentFollowResponseAppVersionSummaryEvent].\n\tActions []shared.AppAction `json:\"actions\"`\n\t// This field is from variant [DeploymentFollowResponseAppVersionSummaryEvent].\n\tAppName string `json:\"app_name\"`\n\t// This field is from variant [DeploymentFollowResponseAppVersionSummaryEvent].\n\tRegion constant.AwsUsEast1a `json:\"region\"`\n\t// This field is from variant [DeploymentFollowResponseAppVersionSummaryEvent].\n\tVersion string `json:\"version\"`\n\t// This field is from variant [DeploymentFollowResponseAppVersionSummaryEvent].\n\tEnvVars map[string]string `json:\"env_vars\"`\n\t// This field is from variant [shared.ErrorEvent].\n\tError shared.ErrorModel `json:\"error\"`\n\tJSON  struct {\n\t\tEvent      respjson.Field\n\t\tMessage    respjson.Field\n\t\tTimestamp  respjson.Field\n\t\tDeployment respjson.Field\n\t\tID         respjson.Field\n\t\tActions    respjson.Field\n\t\tAppName    respjson.Field\n\t\tRegion     respjson.Field\n\t\tVersion    respjson.Field\n\t\tEnvVars    respjson.Field\n\t\tError      respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nDeploymentFollowResponseUnion contains all possible properties and values from [shared.LogEvent](/github.com/kernel/kernel-go-sdk/shared#LogEvent), [DeploymentStateEvent](#DeploymentStateEvent), [DeploymentFollowResponseAppVersionSummaryEvent](#DeploymentFollowResponseAppVersionSummaryEvent), [shared.ErrorEvent](/github.com/kernel/kernel-go-sdk/shared#ErrorEvent), [shared.HeartbeatEvent](/github.com/kernel/kernel-go-sdk/shared#HeartbeatEvent).\n\nUse the \\[DeploymentFollowResponseUnion.AsAny] method to switch on the variant.\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u DeploymentFollowResponseUnion) AsDeploymentFollowResponseAppVersionSummaryEvent() (v DeploymentFollowResponseAppVersionSummaryEvent)\n```\n\n```go\nfunc (u DeploymentFollowResponseUnion) AsDeploymentState() (v DeploymentStateEvent)\n```\n\n```go\nfunc (u DeploymentFollowResponseUnion) AsErrorEvent() (v shared.ErrorEvent)\n```\n\n```go\nfunc (u DeploymentFollowResponseUnion) AsLog() (v shared.LogEvent)\n```\n\n```go\nfunc (u DeploymentFollowResponseUnion) AsSseHeartbeat() (v shared.HeartbeatEvent)\n```\n\n```go\nfunc (u DeploymentFollowResponseUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *DeploymentFollowResponseUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DeploymentGetResponse struct {\n\t// Unique identifier for the deployment\n\tID string `json:\"id\" api:\"required\"`\n\t// Timestamp when the deployment was created\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Deployment region code\n\tRegion constant.AwsUsEast1a `json:\"region\" default:\"aws.us-east-1a\"`\n\t// Current status of the deployment\n\t//\n\t// Any of \"queued\", \"in_progress\", \"running\", \"failed\", \"stopped\".\n\tStatus DeploymentGetResponseStatus `json:\"status\" api:\"required\"`\n\t// Relative path to the application entrypoint\n\tEntrypointRelPath string `json:\"entrypoint_rel_path\"`\n\t// Environment variables configured for this deployment. Values are redacted for\n\t// API key, OAuth, and managed-auth callers, which receive every key with an empty\n\t// string value. Only dashboard sessions receive the actual values.\n\tEnvVars map[string]string `json:\"env_vars\"`\n\t// Hex-encoded SHA-256 checksum of the source archive. For file uploads, this\n\t// hashes the uploaded archive; for GitHub-sourced deployments, this hashes the\n\t// GitHub archive downloaded by the API. Omitted for deployments created before\n\t// this field was recorded.\n\tSourceChecksum string `json:\"source_checksum\"`\n\t// For GitHub-sourced deployments, the subpath within the repository that was used\n\t// as the deploy root. Omitted when the repo root was used or for file uploads.\n\tSourcePath string `json:\"source_path\"`\n\t// For GitHub-sourced deployments, the git ref as requested at deploy time (branch,\n\t// tag, or commit SHA — not resolved to a commit). Omitted for file uploads.\n\tSourceRef string `json:\"source_ref\"`\n\t// Origin of the deployed source code. This is read-only response provenance;\n\t// `file` indicates an uploaded archive and `github` indicates a repository fetched\n\t// by the API.\n\t//\n\t// Any of \"file\", \"github\".\n\tSourceType DeploymentGetResponseSourceType `json:\"source_type\"`\n\t// For GitHub-sourced deployments, the repository URL that was fetched. Omitted for\n\t// file uploads.\n\tSourceURL string `json:\"source_url\"`\n\t// Status reason\n\tStatusReason string `json:\"status_reason\"`\n\t// Timestamp when the deployment was last updated\n\tUpdatedAt time.Time `json:\"updated_at\" api:\"nullable\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                respjson.Field\n\t\tCreatedAt         respjson.Field\n\t\tRegion            respjson.Field\n\t\tStatus            respjson.Field\n\t\tEntrypointRelPath respjson.Field\n\t\tEnvVars           respjson.Field\n\t\tSourceChecksum    respjson.Field\n\t\tSourcePath        respjson.Field\n\t\tSourceRef         respjson.Field\n\t\tSourceType        respjson.Field\n\t\tSourceURL         respjson.Field\n\t\tStatusReason      respjson.Field\n\t\tUpdatedAt         respjson.Field\n\t\tExtraFields       map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nDeployment record information.\n\n```go\nfunc (r DeploymentGetResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *DeploymentGetResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DeploymentGetResponseSourceType string\n```\nOrigin of the deployed source code. This is read-only response provenance; \\`file\\` indicates an uploaded archive and \\`github\\` indicates a repository fetched by the API.\n\n```go\nconst (\n\tDeploymentGetResponseSourceTypeFile   DeploymentGetResponseSourceType = \"file\"\n\tDeploymentGetResponseSourceTypeGitHub DeploymentGetResponseSourceType = \"github\"\n)\n```\n\n```go\ntype DeploymentGetResponseStatus string\n```\nCurrent status of the deployment\n\n```go\nconst (\n\tDeploymentGetResponseStatusQueued     DeploymentGetResponseStatus = \"queued\"\n\tDeploymentGetResponseStatusInProgress DeploymentGetResponseStatus = \"in_progress\"\n\tDeploymentGetResponseStatusRunning    DeploymentGetResponseStatus = \"running\"\n\tDeploymentGetResponseStatusFailed     DeploymentGetResponseStatus = \"failed\"\n\tDeploymentGetResponseStatusStopped    DeploymentGetResponseStatus = \"stopped\"\n)\n```\n\n```go\ntype DeploymentListParams struct {\n\t// Filter results by application name.\n\tAppName param.Opt[string] `query:\"app_name,omitzero\" json:\"-\"`\n\t// Filter results by application version. Requires app_name to be set.\n\tAppVersion param.Opt[string] `query:\"app_version,omitzero\" json:\"-\"`\n\t// Limit the number of deployments to return.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Offset the number of deployments to return.\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Search deployments by ID or app name.\n\tQuery param.Opt[string] `query:\"query,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r DeploymentListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [DeploymentListParams](#DeploymentListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype DeploymentListResponse struct {\n\t// Unique identifier for the deployment\n\tID string `json:\"id\" api:\"required\"`\n\t// Timestamp when the deployment was created\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Deployment region code\n\tRegion constant.AwsUsEast1a `json:\"region\" default:\"aws.us-east-1a\"`\n\t// Current status of the deployment\n\t//\n\t// Any of \"queued\", \"in_progress\", \"running\", \"failed\", \"stopped\".\n\tStatus DeploymentListResponseStatus `json:\"status\" api:\"required\"`\n\t// Relative path to the application entrypoint\n\tEntrypointRelPath string `json:\"entrypoint_rel_path\"`\n\t// Environment variables configured for this deployment. Values are redacted for\n\t// API key, OAuth, and managed-auth callers, which receive every key with an empty\n\t// string value. Only dashboard sessions receive the actual values.\n\tEnvVars map[string]string `json:\"env_vars\"`\n\t// Hex-encoded SHA-256 checksum of the source archive. For file uploads, this\n\t// hashes the uploaded archive; for GitHub-sourced deployments, this hashes the\n\t// GitHub archive downloaded by the API. Omitted for deployments created before\n\t// this field was recorded.\n\tSourceChecksum string `json:\"source_checksum\"`\n\t// For GitHub-sourced deployments, the subpath within the repository that was used\n\t// as the deploy root. Omitted when the repo root was used or for file uploads.\n\tSourcePath string `json:\"source_path\"`\n\t// For GitHub-sourced deployments, the git ref as requested at deploy time (branch,\n\t// tag, or commit SHA — not resolved to a commit). Omitted for file uploads.\n\tSourceRef string `json:\"source_ref\"`\n\t// Origin of the deployed source code. This is read-only response provenance;\n\t// `file` indicates an uploaded archive and `github` indicates a repository fetched\n\t// by the API.\n\t//\n\t// Any of \"file\", \"github\".\n\tSourceType DeploymentListResponseSourceType `json:\"source_type\"`\n\t// For GitHub-sourced deployments, the repository URL that was fetched. Omitted for\n\t// file uploads.\n\tSourceURL string `json:\"source_url\"`\n\t// Status reason\n\tStatusReason string `json:\"status_reason\"`\n\t// Timestamp when the deployment was last updated\n\tUpdatedAt time.Time `json:\"updated_at\" api:\"nullable\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                respjson.Field\n\t\tCreatedAt         respjson.Field\n\t\tRegion            respjson.Field\n\t\tStatus            respjson.Field\n\t\tEntrypointRelPath respjson.Field\n\t\tEnvVars           respjson.Field\n\t\tSourceChecksum    respjson.Field\n\t\tSourcePath        respjson.Field\n\t\tSourceRef         respjson.Field\n\t\tSourceType        respjson.Field\n\t\tSourceURL         respjson.Field\n\t\tStatusReason      respjson.Field\n\t\tUpdatedAt         respjson.Field\n\t\tExtraFields       map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nDeployment record information.\n\n```go\nfunc (r DeploymentListResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *DeploymentListResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DeploymentListResponseSourceType string\n```\nOrigin of the deployed source code. This is read-only response provenance; \\`file\\` indicates an uploaded archive and \\`github\\` indicates a repository fetched by the API.\n\n```go\nconst (\n\tDeploymentListResponseSourceTypeFile   DeploymentListResponseSourceType = \"file\"\n\tDeploymentListResponseSourceTypeGitHub DeploymentListResponseSourceType = \"github\"\n)\n```\n\n```go\ntype DeploymentListResponseStatus string\n```\nCurrent status of the deployment\n\n```go\nconst (\n\tDeploymentListResponseStatusQueued     DeploymentListResponseStatus = \"queued\"\n\tDeploymentListResponseStatusInProgress DeploymentListResponseStatus = \"in_progress\"\n\tDeploymentListResponseStatusRunning    DeploymentListResponseStatus = \"running\"\n\tDeploymentListResponseStatusFailed     DeploymentListResponseStatus = \"failed\"\n\tDeploymentListResponseStatusStopped    DeploymentListResponseStatus = \"stopped\"\n)\n```\n\n```go\ntype DeploymentNewParams struct {\n\t// Relative path to the entrypoint of the application\n\tEntrypointRelPath param.Opt[string] `json:\"entrypoint_rel_path,omitzero\"`\n\t// Allow overwriting an existing app version\n\tForce param.Opt[bool] `json:\"force,omitzero\"`\n\t// Version of the application. Can be any string.\n\tVersion param.Opt[string] `json:\"version,omitzero\"`\n\t// Map of environment variables to set for the deployed application. Each key-value\n\t// pair represents an environment variable.\n\tEnvVars map[string]string `json:\"env_vars,omitzero\"`\n\t// ZIP file containing the application source directory\n\tFile io.Reader `json:\"file,omitzero\" format:\"binary\"`\n\t// Region for deployment. Currently we only support \"aws.us-east-1a\"\n\t//\n\t// Any of \"aws.us-east-1a\".\n\tRegion DeploymentNewParamsRegion `json:\"region,omitzero\"`\n\t// Permissions for each invocation's injected API key. Send this multipart field as\n\t// JSON. Requires scoped deployment enablement. The policy must stay within the\n\t// deployment's project, be a subset of the caller's permissions when the caller\n\t// has a policy, and grant container-wide invocations:write for runtime callbacks.\n\t// It cannot include api_keys:issue_beyond_expiry. Exact resource IDs must exist.\n\t// The policy outlives the deploying credential; each invocation gets a fresh key\n\t// valid for 65 minutes from issuance. When the caller has a policy, omission\n\t// grants project-wide invocations:write for runtime callbacks, plus project-wide\n\t// browsers:create, browsers:use, and browsers:delete for each of those the caller\n\t// holds. A supplied policy must explicitly include invocations:write; it is never\n\t// added automatically. To keep callback-only behavior, send a runtime_policy with\n\t// just that grant. Callers without a policy keep an unrestricted runtime key when\n\t// this field is omitted. Scoped invokers must cover the runtime policy.\n\tRuntimePolicy DeploymentNewParamsRuntimePolicy `json:\"runtime_policy,omitzero\" form:\"-\"`\n\t// Source from which to fetch application code.\n\tSource DeploymentNewParamsSource `json:\"source,omitzero\" form:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r DeploymentNewParams) MarshalMultipart() (data []byte, contentType string, err error)\n```\n\n```go\ntype DeploymentNewParamsRegion string\n```\nRegion for deployment. Currently we only support \"aws.us-east-1a\"\n\n```go\nconst (\n\tDeploymentNewParamsRegionAwsUsEast1a DeploymentNewParamsRegion = \"aws.us-east-1a\"\n)\n```\n\n```go\ntype DeploymentNewParamsRuntimePolicy struct {\n\t// Allow statements. Every action and resource not listed is denied.\n\tStatements []DeploymentNewParamsRuntimePolicyStatement `json:\"statements,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nPermissions for each invocation's injected API key. Send this multipart field as JSON. Requires scoped deployment enablement. The policy must stay within the deployment's project, be a subset of the caller's permissions when the caller has a policy, and grant container-wide invocations:write for runtime callbacks. It cannot include api\\_keys:issue\\_beyond\\_expiry. Exact resource IDs must exist. The policy outlives the deploying credential; each invocation gets a fresh key valid for 65 minutes from issuance. When the caller has a policy, omission grants project-wide invocations:write for runtime callbacks, plus project-wide browsers:create, browsers:use, and browsers:delete for each of those the caller holds. A supplied policy must explicitly include invocations:write; it is never added automatically. To keep callback-only behavior, send a runtime\\_policy with just that grant. Callers without a policy keep an unrestricted runtime key when this field is omitted. Scoped invokers must cover the runtime policy.\n\nThe property Statements is required.\n\n```go\nfunc (r DeploymentNewParamsRuntimePolicy) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *DeploymentNewParamsRuntimePolicy) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DeploymentNewParamsRuntimePolicyStatement struct {\n\t// Permitted action, such as browsers:use or vaults:read. When creating an API key\n\t// or replacing its policy, `*` may replace whole components as shorthand:\n\t// browsers:_ names every browsers action, _:delete every delete action the\n\t// resource can carry, and _:_ every action the resource can carry. The stored\n\t// policy lists the concrete actions, so actions added later are not granted, and\n\t// api_keys:issue_beyond_expiry must always be listed explicitly. Partial\n\t// components such as brow*:use and a bare * are rejected. Other policies, such as\n\t// workload identity rules and deployment runtime policies, accept only exact\n\t// actions.\n\tAction string `json:\"action\" api:\"required\"`\n\t// Resource the action applies to, in the format projects/{project_id}/{kind}/{id}.\n\t// Wildcards are supported.\n\tResource string `json:\"resource\" api:\"required\"`\n\t// A condition narrows a policy statement to requests matching its constraint: the\n\t// request attribute, a comparison operator, and that operator's values.\n\tCondition DeploymentNewParamsRuntimePolicyStatementCondition `json:\"condition,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Action, Resource are required.\n\n```go\nfunc (r DeploymentNewParamsRuntimePolicyStatement) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *DeploymentNewParamsRuntimePolicyStatement) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DeploymentNewParamsRuntimePolicyStatementCondition struct {\n\t// Request attribute the condition constrains. `source_ip` restricts the statement\n\t// to requests whose client address falls inside one of `values`.\n\t//\n\t// Any of \"source_ip\".\n\tKey string `json:\"key,omitzero\" api:\"required\"`\n\t// Comparison the condition applies between the request attribute and values.\n\t//\n\t// Any of \"in\".\n\tOperator string `json:\"operator,omitzero\" api:\"required\"`\n\t// Values the request attribute must match. For `source_ip`, CIDR networks: a bare\n\t// address without a mask is rejected, and so are an entry with host bits set and\n\t// an IPv4 network written in IPv6 notation.\n\tValues []string `json:\"values,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nA condition narrows a policy statement to requests matching its constraint: the request attribute, a comparison operator, and that operator's values.\n\nThe properties Key, Operator, Values are required.\n\n```go\nfunc (r DeploymentNewParamsRuntimePolicyStatementCondition) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *DeploymentNewParamsRuntimePolicyStatementCondition) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DeploymentNewParamsSource struct {\n\t// Relative path to the application entrypoint within the selected path.\n\tEntrypoint string `json:\"entrypoint\" api:\"required\"`\n\t// Git ref (branch, tag, or commit SHA) to fetch.\n\tRef string `json:\"ref\" api:\"required\"`\n\t// Source type identifier.\n\t//\n\t// Any of \"github\".\n\tType string `json:\"type,omitzero\" api:\"required\"`\n\t// Base repository URL (without blob/tree suffixes).\n\tURL string `json:\"url\" api:\"required\"`\n\t// Path within the repo to deploy (omit to use repo root).\n\tPath param.Opt[string] `json:\"path,omitzero\"`\n\t// Authentication for private repositories.\n\tAuth DeploymentNewParamsSourceAuth `json:\"auth,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nSource from which to fetch application code.\n\nThe properties Entrypoint, Ref, Type, URL are required.\n\n```go\nfunc (r DeploymentNewParamsSource) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *DeploymentNewParamsSource) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DeploymentNewParamsSourceAuth struct {\n\t// GitHub PAT or installation access token\n\tToken string `json:\"token\" api:\"required\" format:\"password\"`\n\t// Auth method\n\t//\n\t// Any of \"github_token\".\n\tMethod string `json:\"method,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nAuthentication for private repositories.\n\nThe properties Token, Method are required.\n\n```go\nfunc (r DeploymentNewParamsSourceAuth) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *DeploymentNewParamsSourceAuth) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DeploymentNewResponse struct {\n\t// Unique identifier for the deployment\n\tID string `json:\"id\" api:\"required\"`\n\t// Timestamp when the deployment was created\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Deployment region code\n\tRegion constant.AwsUsEast1a `json:\"region\" default:\"aws.us-east-1a\"`\n\t// Current status of the deployment\n\t//\n\t// Any of \"queued\", \"in_progress\", \"running\", \"failed\", \"stopped\".\n\tStatus DeploymentNewResponseStatus `json:\"status\" api:\"required\"`\n\t// Relative path to the application entrypoint\n\tEntrypointRelPath string `json:\"entrypoint_rel_path\"`\n\t// Environment variables configured for this deployment. Values are redacted for\n\t// API key, OAuth, and managed-auth callers, which receive every key with an empty\n\t// string value. Only dashboard sessions receive the actual values.\n\tEnvVars map[string]string `json:\"env_vars\"`\n\t// Hex-encoded SHA-256 checksum of the source archive. For file uploads, this\n\t// hashes the uploaded archive; for GitHub-sourced deployments, this hashes the\n\t// GitHub archive downloaded by the API. Omitted for deployments created before\n\t// this field was recorded.\n\tSourceChecksum string `json:\"source_checksum\"`\n\t// For GitHub-sourced deployments, the subpath within the repository that was used\n\t// as the deploy root. Omitted when the repo root was used or for file uploads.\n\tSourcePath string `json:\"source_path\"`\n\t// For GitHub-sourced deployments, the git ref as requested at deploy time (branch,\n\t// tag, or commit SHA — not resolved to a commit). Omitted for file uploads.\n\tSourceRef string `json:\"source_ref\"`\n\t// Origin of the deployed source code. This is read-only response provenance;\n\t// `file` indicates an uploaded archive and `github` indicates a repository fetched\n\t// by the API.\n\t//\n\t// Any of \"file\", \"github\".\n\tSourceType DeploymentNewResponseSourceType `json:\"source_type\"`\n\t// For GitHub-sourced deployments, the repository URL that was fetched. Omitted for\n\t// file uploads.\n\tSourceURL string `json:\"source_url\"`\n\t// Status reason\n\tStatusReason string `json:\"status_reason\"`\n\t// Timestamp when the deployment was last updated\n\tUpdatedAt time.Time `json:\"updated_at\" api:\"nullable\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                respjson.Field\n\t\tCreatedAt         respjson.Field\n\t\tRegion            respjson.Field\n\t\tStatus            respjson.Field\n\t\tEntrypointRelPath respjson.Field\n\t\tEnvVars           respjson.Field\n\t\tSourceChecksum    respjson.Field\n\t\tSourcePath        respjson.Field\n\t\tSourceRef         respjson.Field\n\t\tSourceType        respjson.Field\n\t\tSourceURL         respjson.Field\n\t\tStatusReason      respjson.Field\n\t\tUpdatedAt         respjson.Field\n\t\tExtraFields       map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nDeployment record information.\n\n```go\nfunc (r DeploymentNewResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *DeploymentNewResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DeploymentNewResponseSourceType string\n```\nOrigin of the deployed source code. This is read-only response provenance; \\`file\\` indicates an uploaded archive and \\`github\\` indicates a repository fetched by the API.\n\n```go\nconst (\n\tDeploymentNewResponseSourceTypeFile   DeploymentNewResponseSourceType = \"file\"\n\tDeploymentNewResponseSourceTypeGitHub DeploymentNewResponseSourceType = \"github\"\n)\n```\n\n```go\ntype DeploymentNewResponseStatus string\n```\nCurrent status of the deployment\n\n```go\nconst (\n\tDeploymentNewResponseStatusQueued     DeploymentNewResponseStatus = \"queued\"\n\tDeploymentNewResponseStatusInProgress DeploymentNewResponseStatus = \"in_progress\"\n\tDeploymentNewResponseStatusRunning    DeploymentNewResponseStatus = \"running\"\n\tDeploymentNewResponseStatusFailed     DeploymentNewResponseStatus = \"failed\"\n\tDeploymentNewResponseStatusStopped    DeploymentNewResponseStatus = \"stopped\"\n)\n```\n\n```go\ntype DeploymentService struct {\n\tOptions []option.RequestOption\n}\n```\nCreate and manage app deployments and stream deployment events.\n\nDeploymentService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewDeploymentService](#NewDeploymentService) method instead.\n\n```go\nfunc NewDeploymentService(opts ...option.RequestOption) (r DeploymentService)\n```\nNewDeploymentService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *DeploymentService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)\n```\nStops a running deployment and marks it for deletion. If the deployment is already in a terminal state (stopped or failed), returns immediately.\n\n```go\nfunc (r *DeploymentService) FollowStreaming(ctx context.Context, id string, query DeploymentFollowParams, opts ...option.RequestOption) (stream *ssestream.Stream[DeploymentFollowResponseUnion])\n```\nEstablishes a Server-Sent Events (SSE) stream that delivers real-time logs and status updates for a deployment. The stream terminates automatically once the deployment reaches a terminal state.\n\n```go\nfunc (r *DeploymentService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *DeploymentGetResponse, err error)\n```\nGet information about a deployment's status.\n\n```go\nfunc (r *DeploymentService) List(ctx context.Context, query DeploymentListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[DeploymentListResponse], err error)\n```\nList deployments. Optionally filter by application name and version.\n\n```go\nfunc (r *DeploymentService) ListAutoPaging(ctx context.Context, query DeploymentListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[DeploymentListResponse]\n```\nList deployments. Optionally filter by application name and version.\n\n```go\nfunc (r *DeploymentService) New(ctx context.Context, body DeploymentNewParams, opts ...option.RequestOption) (res *DeploymentNewResponse, err error)\n```\nCreate a new deployment.\n\n```go\ntype DeploymentStateEvent struct {\n\t// Deployment record information.\n\tDeployment DeploymentStateEventDeployment `json:\"deployment\" api:\"required\"`\n\t// Event type identifier (always \"deployment_state\").\n\tEvent constant.DeploymentState `json:\"event\" default:\"deployment_state\"`\n\t// Time the state was reported.\n\tTimestamp time.Time `json:\"timestamp\" api:\"required\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDeployment  respjson.Field\n\t\tEvent       respjson.Field\n\t\tTimestamp   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn event representing the current state of a deployment.\n\n```go\nfunc (r DeploymentStateEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *DeploymentStateEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DeploymentStateEventDeployment struct {\n\t// Unique identifier for the deployment\n\tID string `json:\"id\" api:\"required\"`\n\t// Timestamp when the deployment was created\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Deployment region code\n\tRegion constant.AwsUsEast1a `json:\"region\" default:\"aws.us-east-1a\"`\n\t// Current status of the deployment\n\t//\n\t// Any of \"queued\", \"in_progress\", \"running\", \"failed\", \"stopped\".\n\tStatus string `json:\"status\" api:\"required\"`\n\t// Relative path to the application entrypoint\n\tEntrypointRelPath string `json:\"entrypoint_rel_path\"`\n\t// Environment variables configured for this deployment. Values are redacted for\n\t// API key, OAuth, and managed-auth callers, which receive every key with an empty\n\t// string value. Only dashboard sessions receive the actual values.\n\tEnvVars map[string]string `json:\"env_vars\"`\n\t// Hex-encoded SHA-256 checksum of the source archive. For file uploads, this\n\t// hashes the uploaded archive; for GitHub-sourced deployments, this hashes the\n\t// GitHub archive downloaded by the API. Omitted for deployments created before\n\t// this field was recorded.\n\tSourceChecksum string `json:\"source_checksum\"`\n\t// For GitHub-sourced deployments, the subpath within the repository that was used\n\t// as the deploy root. Omitted when the repo root was used or for file uploads.\n\tSourcePath string `json:\"source_path\"`\n\t// For GitHub-sourced deployments, the git ref as requested at deploy time (branch,\n\t// tag, or commit SHA — not resolved to a commit). Omitted for file uploads.\n\tSourceRef string `json:\"source_ref\"`\n\t// Origin of the deployed source code. This is read-only response provenance;\n\t// `file` indicates an uploaded archive and `github` indicates a repository fetched\n\t// by the API.\n\t//\n\t// Any of \"file\", \"github\".\n\tSourceType string `json:\"source_type\"`\n\t// For GitHub-sourced deployments, the repository URL that was fetched. Omitted for\n\t// file uploads.\n\tSourceURL string `json:\"source_url\"`\n\t// Status reason\n\tStatusReason string `json:\"status_reason\"`\n\t// Timestamp when the deployment was last updated\n\tUpdatedAt time.Time `json:\"updated_at\" api:\"nullable\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                respjson.Field\n\t\tCreatedAt         respjson.Field\n\t\tRegion            respjson.Field\n\t\tStatus            respjson.Field\n\t\tEntrypointRelPath respjson.Field\n\t\tEnvVars           respjson.Field\n\t\tSourceChecksum    respjson.Field\n\t\tSourcePath        respjson.Field\n\t\tSourceRef         respjson.Field\n\t\tSourceType        respjson.Field\n\t\tSourceURL         respjson.Field\n\t\tStatusReason      respjson.Field\n\t\tUpdatedAt         respjson.Field\n\t\tExtraFields       map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nDeployment record information.\n\n```go\nfunc (r DeploymentStateEventDeployment) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *DeploymentStateEventDeployment) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DisarmPasskeyVaultItemOperationRequestParam struct {\n\t// Browser session ID, not a reusable browser name.\n\tBrowserID string `json:\"browser_id\" api:\"required\"`\n\t// Any of \"disarm_passkey\".\n\tType DisarmPasskeyVaultItemOperationRequestType `json:\"type,omitzero\" api:\"required\"`\n\t// Limit disarming to one passkey field. Omit to disarm every passkey field of the\n\t// item.\n\tField param.Opt[string] `json:\"field,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nStop a browser from using this item's passkeys: removes its armed passkeys and its pending registration into this item. Pages that already loaded keep Kernel's WebAuthn handler but get the browser's own behavior.\n\nThe properties BrowserID, Type are required.\n\n```go\nfunc (r DisarmPasskeyVaultItemOperationRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *DisarmPasskeyVaultItemOperationRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DisarmPasskeyVaultItemOperationRequestType string\n```\n\n```go\nconst (\n\tDisarmPasskeyVaultItemOperationRequestTypeDisarmPasskey DisarmPasskeyVaultItemOperationRequestType = \"disarm_passkey\"\n)\n```\n\n```go\ntype Error = apierror.Error\n```\n\n```go\ntype ErrorDetail = shared.ErrorDetail\n```\nThis is an alias to an internal type.\n\n```go\ntype ErrorEvent = shared.ErrorEvent\n```\nAn error event from the application.\n\nThis is an alias to an internal type.\n\n```go\ntype ErrorModel = shared.ErrorModel\n```\nThis is an alias to an internal type.\n\n```go\ntype Evidence struct {\n\tAccessed     int64 `json:\"accessed\" api:\"required\"`\n\tBlocked      int64 `json:\"blocked\" api:\"required\"`\n\tInconclusive int64 `json:\"inconclusive\" api:\"required\"`\n\t// Most recent contributing observation. Recommendations remain eligible regardless\n\t// of age and can be returned while a new analysis refreshes them.\n\tLastObservedAt time.Time `json:\"last_observed_at\" api:\"required\" format:\"date-time\"`\n\tRunCount       int64     `json:\"run_count\" api:\"required\"`\n\t// Number of judged trials.\n\tSampleSize int64 `json:\"sample_size\" api:\"required\"`\n\t// Accessed trials divided by judged trials. Inconclusive trials are excluded.\n\tSuccessRate float64 `json:\"success_rate\" api:\"required\"`\n\t// Most recent contributing run whose evidence supported recommending this\n\t// configuration. Omitted when no individual run independently met the\n\t// recommendation threshold.\n\tLastSupportedAt time.Time `json:\"last_supported_at\" api:\"nullable\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAccessed        respjson.Field\n\t\tBlocked         respjson.Field\n\t\tInconclusive    respjson.Field\n\t\tLastObservedAt  respjson.Field\n\t\tRunCount        respjson.Field\n\t\tSampleSize      respjson.Field\n\t\tSuccessRate     respjson.Field\n\t\tLastSupportedAt respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r Evidence) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Evidence) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Executor struct {\n\t// Whether a call is running on the executor\n\tBusy bool `json:\"busy\" api:\"required\"`\n\t// When the executor was created\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// When the most recent call on the executor started\n\tLastUsedAt time.Time `json:\"last_used_at\" api:\"required\" format:\"date-time\"`\n\t// Name of a Playwright executor. Calls with the same name run in the same\n\t// executor, one at a time; the first call with a new name creates it. Calls on\n\t// different executors run concurrently. 'default' names the executor that runs\n\t// calls without a name.\n\tName string `json:\"name\" api:\"required\"`\n\t// CDP page target ID of the executor's tab, once it has one. The default executor\n\t// owns no tab.\n\tTargetID string `json:\"target_id\"`\n\t// Current URL of the executor's tab, when it is open\n\tURL string `json:\"url\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBusy        respjson.Field\n\t\tCreatedAt   respjson.Field\n\t\tLastUsedAt  respjson.Field\n\t\tName        respjson.Field\n\t\tTargetID    respjson.Field\n\t\tURL         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA Playwright executor on the browser\n\n```go\nfunc (r Executor) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Executor) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ExecutorList struct {\n\tExecutors []Executor `json:\"executors\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tExecutors   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nThe default executor followed by the named executors\n\n```go\nfunc (r ExecutorList) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ExecutorList) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ExtensionDownloadFromChromeStoreParams struct {\n\t// Chrome Web Store URL for the extension.\n\tURL string `query:\"url\" api:\"required\" json:\"-\"`\n\t// Target operating system for the extension package. Defaults to linux.\n\t//\n\t// Any of \"win\", \"mac\", \"linux\".\n\tOs ExtensionDownloadFromChromeStoreParamsOs `query:\"os,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ExtensionDownloadFromChromeStoreParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [ExtensionDownloadFromChromeStoreParams](#ExtensionDownloadFromChromeStoreParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype ExtensionDownloadFromChromeStoreParamsOs string\n```\nTarget operating system for the extension package. Defaults to linux.\n\n```go\nconst (\n\tExtensionDownloadFromChromeStoreParamsOsWin   ExtensionDownloadFromChromeStoreParamsOs = \"win\"\n\tExtensionDownloadFromChromeStoreParamsOsMac   ExtensionDownloadFromChromeStoreParamsOs = \"mac\"\n\tExtensionDownloadFromChromeStoreParamsOsLinux ExtensionDownloadFromChromeStoreParamsOs = \"linux\"\n)\n```\n\n```go\ntype ExtensionGetResponse struct {\n\t// Unique identifier for the extension\n\tID string `json:\"id\" api:\"required\"`\n\t// Timestamp when the extension was created\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Size of the extension archive in bytes\n\tSizeBytes int64 `json:\"size_bytes\" api:\"required\"`\n\t// SHA-256 checksum, encoded as lowercase hexadecimal, of the exact uploaded\n\t// extension archive bytes. This is not a normalized checksum of the extension\n\t// contents; archive metadata, file ordering, and compression can change the\n\t// checksum for otherwise identical contents. Omitted for legacy rows and\n\t// server-repackaged Chrome Web Store extensions.\n\tChecksum string `json:\"checksum\" api:\"nullable\"`\n\t// Timestamp when the extension was last used\n\tLastUsedAt time.Time `json:\"last_used_at\" api:\"nullable\" format:\"date-time\"`\n\t// Optional, easier-to-reference name for the extension. Must be unique within the\n\t// project.\n\tName string `json:\"name\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tCreatedAt   respjson.Field\n\t\tSizeBytes   respjson.Field\n\t\tChecksum    respjson.Field\n\t\tLastUsedAt  respjson.Field\n\t\tName        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA browser extension uploaded to Kernel.\n\n```go\nfunc (r ExtensionGetResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ExtensionGetResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ExtensionListParams struct {\n\t// Limit the number of extensions to return.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Exact-match filter on extension name using the database collation. In\n\t// production, matching is case- and accent-insensitive. During the default-project\n\t// migration, unscoped requests prefer a concrete default-project extension over a\n\t// legacy unscoped extension with the same name.\n\tName param.Opt[string] `query:\"name,omitzero\" json:\"-\"`\n\t// Offset the number of extensions to return.\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Case-insensitive substring match against extension name. IDs match by exact\n\t// value.\n\tQuery param.Opt[string] `query:\"query,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ExtensionListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [ExtensionListParams](#ExtensionListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype ExtensionListResponse struct {\n\t// Unique identifier for the extension\n\tID string `json:\"id\" api:\"required\"`\n\t// Timestamp when the extension was created\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Size of the extension archive in bytes\n\tSizeBytes int64 `json:\"size_bytes\" api:\"required\"`\n\t// SHA-256 checksum, encoded as lowercase hexadecimal, of the exact uploaded\n\t// extension archive bytes. This is not a normalized checksum of the extension\n\t// contents; archive metadata, file ordering, and compression can change the\n\t// checksum for otherwise identical contents. Omitted for legacy rows and\n\t// server-repackaged Chrome Web Store extensions.\n\tChecksum string `json:\"checksum\" api:\"nullable\"`\n\t// Timestamp when the extension was last used\n\tLastUsedAt time.Time `json:\"last_used_at\" api:\"nullable\" format:\"date-time\"`\n\t// Optional, easier-to-reference name for the extension. Must be unique within the\n\t// project.\n\tName string `json:\"name\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tCreatedAt   respjson.Field\n\t\tSizeBytes   respjson.Field\n\t\tChecksum    respjson.Field\n\t\tLastUsedAt  respjson.Field\n\t\tName        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA browser extension uploaded to Kernel.\n\n```go\nfunc (r ExtensionListResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ExtensionListResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ExtensionService struct {\n\tOptions []option.RequestOption\n}\n```\nCreate, list, retrieve, and delete browser extensions.\n\nExtensionService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewExtensionService](#NewExtensionService) method instead.\n\n```go\nfunc NewExtensionService(opts ...option.RequestOption) (r ExtensionService)\n```\nNewExtensionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *ExtensionService) Delete(ctx context.Context, idOrName string, opts ...option.RequestOption) (err error)\n```\nDelete an extension by its ID or by its name.\n\n```go\nfunc (r *ExtensionService) Download(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *http.Response, err error)\n```\nDownload the extension as a ZIP archive by ID or name.\n\n```go\nfunc (r *ExtensionService) DownloadFromChromeStore(ctx context.Context, query ExtensionDownloadFromChromeStoreParams, opts ...option.RequestOption) (res *http.Response, err error)\n```\nReturns a ZIP archive containing the unpacked extension fetched from the Chrome Web Store.\n\n```go\nfunc (r *ExtensionService) Get(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *ExtensionGetResponse, err error)\n```\nGet an extension's metadata (name, size, timestamps) by ID or name, without downloading the archive.\n\n```go\nfunc (r *ExtensionService) List(ctx context.Context, query ExtensionListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[ExtensionListResponse], err error)\n```\nList extensions in the resolved project.\n\n```go\nfunc (r *ExtensionService) ListAutoPaging(ctx context.Context, query ExtensionListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[ExtensionListResponse]\n```\nList extensions in the resolved project.\n\n```go\nfunc (r *ExtensionService) Upload(ctx context.Context, body ExtensionUploadParams, opts ...option.RequestOption) (res *ExtensionUploadResponse, err error)\n```\nUpload a zip file containing an unpacked browser extension. Optionally provide a unique name for later reference.\n\n```go\ntype ExtensionUploadParams struct {\n\t// ZIP file containing the browser extension.\n\tFile io.Reader `json:\"file,omitzero\" api:\"required\" format:\"binary\"`\n\t// Optional unique name within the project to reference this extension.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ExtensionUploadParams) MarshalMultipart() (data []byte, contentType string, err error)\n```\n\n```go\ntype ExtensionUploadResponse struct {\n\t// Unique identifier for the extension\n\tID string `json:\"id\" api:\"required\"`\n\t// Timestamp when the extension was created\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Size of the extension archive in bytes\n\tSizeBytes int64 `json:\"size_bytes\" api:\"required\"`\n\t// SHA-256 checksum, encoded as lowercase hexadecimal, of the exact uploaded\n\t// extension archive bytes. This is not a normalized checksum of the extension\n\t// contents; archive metadata, file ordering, and compression can change the\n\t// checksum for otherwise identical contents. Omitted for legacy rows and\n\t// server-repackaged Chrome Web Store extensions.\n\tChecksum string `json:\"checksum\" api:\"nullable\"`\n\t// Timestamp when the extension was last used\n\tLastUsedAt time.Time `json:\"last_used_at\" api:\"nullable\" format:\"date-time\"`\n\t// Optional, easier-to-reference name for the extension. Must be unique within the\n\t// project.\n\tName string `json:\"name\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tCreatedAt   respjson.Field\n\t\tSizeBytes   respjson.Field\n\t\tChecksum    respjson.Field\n\t\tLastUsedAt  respjson.Field\n\t\tName        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA browser extension uploaded to Kernel.\n\n```go\nfunc (r ExtensionUploadResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ExtensionUploadResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype FetchRequestContentBrowserParam struct {\n\t// Existing browser session ID authorized for the caller and selected project.\n\t// Reuses its cookies, proxy, and browser configuration; requests follow that\n\t// browser's existing network access behavior, with no additional destination\n\t// allowlist in this endpoint. Kernel does not delete a caller-supplied browser.\n\t// Render mode uses a temporary tab; website activity may still change shared\n\t// cookies and storage. When omitted and any result needs browser retrieval, Kernel\n\t// creates one temporary browser for the request using the dashboard launch\n\t// defaults (headful, stealth, default proxy), tags it with search_id, and deletes\n\t// it when the request finishes. It is billed and counts toward browser concurrency\n\t// like any other browser. A concurrency rejection returns 429 for source=browser;\n\t// for source=auto, results with retained content are still returned and the rest\n\t// report the rejection.\n\tBrowserID param.Opt[string] `json:\"browser_id,omitzero\"`\n\t// Curl uses the browser HTTP stack without navigation or JavaScript execution.\n\t// Render navigates a temporary page and extracts from its DOM. The selected mode\n\t// is used for the retrieval.\n\t//\n\t// Any of \"curl\", \"render\".\n\tMode string `json:\"mode,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nRequires source=auto or source=browser in deferred retrieval.\n\n```go\nfunc (r FetchRequestContentBrowserParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *FetchRequestContentBrowserParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype FetchRequestContentParam struct {\n\t// For source=auto, maximum acceptable age of retained provider content, measured\n\t// from when the search received it from the provider. A value of 0 disables reuse\n\t// of retained content, so every result is fetched through a browser.\n\t// source=provider reuses retained provider content without freshness validation.\n\t// source=browser always fetches through a browser and does not use this age limit.\n\tMaxAgeHours param.Opt[int64] `json:\"max_age_hours,omitzero\"`\n\t// Per-result Unicode character limit after extraction. Retained provider content\n\t// cannot exceed what was stored at search time; such results report truncated when\n\t// the stored text was already truncated.\n\tMaxChars param.Opt[int64] `json:\"max_chars,omitzero\"`\n\t// Per-result deadline including capacity acquisition, retrieval, and extraction.\n\t// Also bounded by the overall request deadline.\n\tTimeoutMs param.Opt[int64] `json:\"timeout_ms,omitzero\"`\n\t// Requires source=auto or source=browser in deferred retrieval.\n\tBrowser FetchRequestContentBrowserParam `json:\"browser,omitzero\"`\n\t// Any of \"markdown\", \"text\".\n\tFormat string `json:\"format,omitzero\"`\n\t// auto uses retained provider content within max_age_hours; for deferred retrieval\n\t// it falls back to a Kernel browser (caller-supplied or temporary) for results\n\t// without it. Inline retrieval never uses a browser. provider reuses retained\n\t// provider content when available, without freshness validation, and never\n\t// provisions a browser. browser fetches each URL through a Kernel browser, either\n\t// caller-supplied or temporary. No option makes a new provider request. Defaults\n\t// to auto for both inline and deferred retrieval. Missing documents produce\n\t// per-result unavailable outcomes, not request failures.\n\t//\n\t// Any of \"auto\", \"provider\", \"browser\".\n\tSource string `json:\"source,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nDefaults to source:auto when omitted.\n\n```go\nfunc (r FetchRequestContentParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *FetchRequestContentParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype FetchRequestParam struct {\n\t// Maximum number of search results to fetch when result_ids is omitted, starting\n\t// from rank 1. Mutually exclusive with result_ids.\n\tLimit param.Opt[int64] `json:\"limit,omitzero\"`\n\t// Overall deadline across all selected results.\n\tTimeoutMs param.Opt[int64] `json:\"timeout_ms,omitzero\"`\n\t// Defaults to source:auto when omitted.\n\tContent FetchRequestContentParam `json:\"content,omitzero\"`\n\t// Kernel-generated IDs from the referenced retained search, in desired response\n\t// order. They are not provider-standard IDs. Mutually exclusive with limit.\n\tResultIDs []string `json:\"result_ids,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r FetchRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *FetchRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype FillVaultItemOperationRequestParam struct {\n\t// Browser session ID, not a reusable browser name.\n\tBrowserID string `json:\"browser_id\" api:\"required\"`\n\t// Any of \"fill\".\n\tType FillVaultItemOperationRequestType `json:\"type,omitzero\" api:\"required\"`\n\t// Exact current top-level page URL, including path, query, and fragment. Must\n\t// match exactly one open page in the browser; zero or multiple matches fail. No\n\t// prefix or glob matching. When an item allows omitting it, the browser must have\n\t// exactly one open page.\n\tPageURL param.Opt[string] `json:\"page_url,omitzero\" format:\"uri\"`\n\t// Ignored. Fill sets no operation deadline; typing pace adapts to the length of\n\t// the values instead. Accepted for compatibility.\n\t//\n\t// Deprecated: deprecated\n\tTimeoutMs param.Opt[int64] `json:\"timeout_ms,omitzero\"`\n\t// Field bindings, when the item's advertised fill operation requires them. Each\n\t// selector is searched in the main frame and all descendant frames and must\n\t// resolve to exactly one editable input or select, matched directly or through a\n\t// containing element; zero or multiple candidates fail, and no two bindings may\n\t// resolve to the same element. Select elements match an option by value, not\n\t// label. All bindings are validated before any write, then filled in request\n\t// order, stopping at the first failure. If the page navigates or a target\n\t// disappears, fill stops rather than choosing another page or element.\n\tFields []VaultFillFieldParam `json:\"fields,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nUse a vault item in a browser session, for example to fill a login or payment form. Only invoke when the item advertises \\`fill\\`; the advertised operation describes the inputs that item needs. Requires \\`browser\\_id\\` and usually \\`page\\_url\\`; some items also require \\`fields\\`. Browser and vault must belong to the same project. Kernel checks access and allowed destinations before filling; providing a page URL does not authorize a destination.\n\nFill never submits forms or clicks buttons, though input and change events may trigger site behavior. It is not atomic: completed steps are not rolled back. Fill does not consume the item, so a failed or indeterminate fill is safe to retry. A retry right after an indeterminate fill may wait up to 15 seconds for the earlier attempt's browser lock to expire.\n\nSecret values are never returned or included in operation logs, traces, audit events, or error details. This does not prevent an agent with unrestricted browser access from reading values from the page or other browser observation surfaces.\n\nThe properties BrowserID, Type are required.\n\n```go\nfunc (r FillVaultItemOperationRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *FillVaultItemOperationRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype FillVaultItemOperationRequestType string\n```\n\n```go\nconst (\n\tFillVaultItemOperationRequestTypeFill FillVaultItemOperationRequestType = \"fill\"\n)\n```\n\n```go\ntype FillVaultItemOperationResult struct {\n\t// One result per request binding, in request order; empty when the fill used no\n\t// bindings. After the first failed or unknown field, all remaining fields are\n\t// not_attempted.\n\tFields []VaultFillFieldResult `json:\"fields\" api:\"required\"`\n\t// Completed when the fill finished. Failed when execution stopped with known\n\t// outcomes. Unknown when an outcome cannot be determined. Completed means values\n\t// were supplied to the page, not that the site accepted or submitted them.\n\t//\n\t// Any of \"completed\", \"failed\", \"unknown\".\n\tStatus FillVaultItemOperationResultStatus `json:\"status\" api:\"required\"`\n\t// Any of \"fill\".\n\tType FillVaultItemOperationResultType `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tFields      respjson.Field\n\t\tStatus      respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r FillVaultItemOperationResult) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *FillVaultItemOperationResult) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype FillVaultItemOperationResultStatus string\n```\nCompleted when the fill finished. Failed when execution stopped with known outcomes. Unknown when an outcome cannot be determined. Completed means values were supplied to the page, not that the site accepted or submitted them.\n\n```go\nconst (\n\tFillVaultItemOperationResultStatusCompleted FillVaultItemOperationResultStatus = \"completed\"\n\tFillVaultItemOperationResultStatusFailed    FillVaultItemOperationResultStatus = \"failed\"\n\tFillVaultItemOperationResultStatusUnknown   FillVaultItemOperationResultStatus = \"unknown\"\n)\n```\n\n```go\ntype FillVaultItemOperationResultType string\n```\n\n```go\nconst (\n\tFillVaultItemOperationResultTypeFill FillVaultItemOperationResultType = \"fill\"\n)\n```\n\n```go\ntype HeartbeatEvent = shared.HeartbeatEvent\n```\nHeartbeat event sent periodically to keep SSE connection alive.\n\nThis is an alias to an internal type.\n\n```go\ntype InvocationFollowParams struct {\n\t// Show logs since the given time (RFC timestamps or durations like 5m).\n\tSince param.Opt[string] `query:\"since,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r InvocationFollowParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [InvocationFollowParams](#InvocationFollowParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype InvocationFollowResponseUnion struct {\n\t// Any of \"log\", \"invocation_state\", \"error\", \"sse_heartbeat\".\n\tEvent string `json:\"event\"`\n\t// This field is from variant [shared.LogEvent].\n\tMessage   string    `json:\"message\"`\n\tTimestamp time.Time `json:\"timestamp\"`\n\t// This field is from variant [InvocationStateEvent].\n\tInvocation InvocationStateEventInvocation `json:\"invocation\"`\n\t// This field is from variant [shared.ErrorEvent].\n\tError shared.ErrorModel `json:\"error\"`\n\tJSON  struct {\n\t\tEvent      respjson.Field\n\t\tMessage    respjson.Field\n\t\tTimestamp  respjson.Field\n\t\tInvocation respjson.Field\n\t\tError      respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nInvocationFollowResponseUnion contains all possible properties and values from [shared.LogEvent](/github.com/kernel/kernel-go-sdk/shared#LogEvent), [InvocationStateEvent](#InvocationStateEvent), [shared.ErrorEvent](/github.com/kernel/kernel-go-sdk/shared#ErrorEvent), [shared.HeartbeatEvent](/github.com/kernel/kernel-go-sdk/shared#HeartbeatEvent).\n\nUse the [InvocationFollowResponseUnion.AsAny](#InvocationFollowResponseUnion.AsAny) method to switch on the variant.\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u InvocationFollowResponseUnion) AsAny() anyInvocationFollowResponse\n```\nUse the following switch statement to find the correct variant\n\n\tswitch variant := InvocationFollowResponseUnion.AsAny().(type) {\n\tcase shared.LogEvent:\n\tcase kernel.InvocationStateEvent:\n\tcase shared.ErrorEvent:\n\tcase shared.HeartbeatEvent:\n\tdefault:\n\t  fmt.Errorf(\"no variant present\")\n\t}\n\n```go\nfunc (u InvocationFollowResponseUnion) AsError() (v shared.ErrorEvent)\n```\n\n```go\nfunc (u InvocationFollowResponseUnion) AsInvocationState() (v InvocationStateEvent)\n```\n\n```go\nfunc (u InvocationFollowResponseUnion) AsLog() (v shared.LogEvent)\n```\n\n```go\nfunc (u InvocationFollowResponseUnion) AsSseHeartbeat() (v shared.HeartbeatEvent)\n```\n\n```go\nfunc (u InvocationFollowResponseUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *InvocationFollowResponseUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype InvocationGetResponse struct {\n\t// ID of the invocation\n\tID string `json:\"id\" api:\"required\"`\n\t// Name of the action invoked\n\tActionName string `json:\"action_name\" api:\"required\"`\n\t// Name of the application\n\tAppName string `json:\"app_name\" api:\"required\"`\n\t// RFC 3339 Nanoseconds timestamp when the invocation started\n\tStartedAt time.Time `json:\"started_at\" api:\"required\" format:\"date-time\"`\n\t// Status of the invocation\n\t//\n\t// Any of \"queued\", \"running\", \"succeeded\", \"failed\".\n\tStatus InvocationGetResponseStatus `json:\"status\" api:\"required\"`\n\t// Version label for the application\n\tVersion string `json:\"version\" api:\"required\"`\n\t// RFC 3339 Nanoseconds timestamp when the invocation finished (null if still\n\t// running)\n\tFinishedAt time.Time `json:\"finished_at\" api:\"nullable\" format:\"date-time\"`\n\t// The action result or detailed failure output. Often a JSON-encoded value, but\n\t// failures may contain plain text. May contain sensitive application data.\n\tOutput string `json:\"output\"`\n\t// Payload provided to the invocation. This is a string that can be parsed as JSON.\n\tPayload string `json:\"payload\"`\n\t// A nonempty, customer-safe summary of the recorded failure output, always present\n\t// when status is failed and omitted otherwise, including in the first failed\n\t// invocation_state event. Recognized messages receive a specific summary; other\n\t// failures receive a generic summary. Message matching does not establish whether\n\t// the failure originated in the platform or action code. Does not include raw\n\t// action output or internal error details. Available for historical invocations as\n\t// well. Human-readable text, not a stable identifier for retry logic.\n\tStatusReason string `json:\"status_reason\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID           respjson.Field\n\t\tActionName   respjson.Field\n\t\tAppName      respjson.Field\n\t\tStartedAt    respjson.Field\n\t\tStatus       respjson.Field\n\t\tVersion      respjson.Field\n\t\tFinishedAt   respjson.Field\n\t\tOutput       respjson.Field\n\t\tPayload      respjson.Field\n\t\tStatusReason respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r InvocationGetResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *InvocationGetResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype InvocationGetResponseStatus string\n```\nStatus of the invocation\n\n```go\nconst (\n\tInvocationGetResponseStatusQueued    InvocationGetResponseStatus = \"queued\"\n\tInvocationGetResponseStatusRunning   InvocationGetResponseStatus = \"running\"\n\tInvocationGetResponseStatusSucceeded InvocationGetResponseStatus = \"succeeded\"\n\tInvocationGetResponseStatusFailed    InvocationGetResponseStatus = \"failed\"\n)\n```\n\n```go\ntype InvocationListBrowsersResponse struct {\n\tBrowsers []InvocationListBrowsersResponseBrowser `json:\"browsers\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBrowsers    respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r InvocationListBrowsersResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *InvocationListBrowsersResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype InvocationListBrowsersResponseBrowser struct {\n\t// Automatic CAPTCHA solving configuration.\n\tCaptchaSolver BrowserCaptchaSolver `json:\"captcha_solver\" api:\"required\"`\n\t// Websocket URL for Chrome DevTools Protocol connections to the browser session\n\tCdpWsURL string `json:\"cdp_ws_url\" api:\"required\"`\n\t// When the browser session was created.\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Whether the browser session is running in headless mode.\n\tHeadless bool `json:\"headless\" api:\"required\"`\n\t// Memory allocated to the browser session.\n\t//\n\t// Any of \"1GiB\", \"2GiB\", \"4GiB\", \"6GiB\", \"8GiB\", \"12GiB\", \"16GiB\".\n\tMemory BrowserMemory `json:\"memory\" api:\"required\"`\n\t// Geographic region of the browser session. Fixed once the session is created.\n\t//\n\t// Any of \"us-east\", \"us-west\", \"eu-west\", \"ap-southeast\".\n\tRegion string `json:\"region\" api:\"required\"`\n\t// Unique identifier for the browser session\n\tSessionID string `json:\"session_id\" api:\"required\"`\n\t// Whether the browser session has CAPTCHA solving enabled, in which case\n\t// proxy.mode=default uses Kernel's default stealth proxy. A browser created with\n\t// only captcha_solver reports true with proxy.mode=direct. Deprecated in favor of\n\t// captcha_solver and proxy.\n\t//\n\t// Deprecated: deprecated\n\tStealth bool `json:\"stealth\" api:\"required\"`\n\t// The number of seconds of inactivity before the browser session is terminated.\n\tTimeoutSeconds int64 `json:\"timeout_seconds\" api:\"required\"`\n\t// Websocket URL for WebDriver BiDi connections to the browser session\n\tWebdriverWsURL string `json:\"webdriver_ws_url\" api:\"required\"`\n\t// Metro-API HTTP base URL for this browser session.\n\tBaseURL string `json:\"base_url\"`\n\t// Remote URL for live viewing the browser session. Only available for non-headless\n\t// browsers.\n\tBrowserLiveViewURL string `json:\"browser_live_view_url\"`\n\t// Custom Chrome enterprise policy overrides that were applied to this browser\n\t// session, if any. Echoed back for verification. Keys are Chrome enterprise policy\n\t// names.\n\tChromePolicy map[string]any `json:\"chrome_policy\"`\n\t// Provisional browser-session usage cost. Present only on GET detail responses\n\t// requested with include_cost=true; omitted otherwise and from list and other\n\t// browser responses.\n\tCost BrowserCost `json:\"cost\"`\n\t// When the browser session was soft-deleted. Only present for deleted sessions.\n\tDeletedAt time.Time `json:\"deleted_at\" format:\"date-time\"`\n\t// Fingerprint applied to this browser session. Omitted when the session was\n\t// created without one.\n\tFingerprint BrowserFingerprint `json:\"fingerprint\"`\n\t// Whether GPU acceleration is enabled for the browser session (only supported for\n\t// headful sessions).\n\tGPU bool `json:\"gpu\"`\n\t// Whether the browser session is running in kiosk mode.\n\tKioskMode bool `json:\"kiosk_mode\"`\n\t// When the pooled browser session was last leased. Only present for leased pooled\n\t// sessions.\n\tLeasedAt time.Time `json:\"leased_at\" format:\"date-time\"`\n\t// Effective browser timezone and locale with per-field provenance.\n\tLocation BrowserLocation `json:\"location\"`\n\t// Human-readable name of the browser session, if one was set at creation.\n\tName string `json:\"name\"`\n\t// Network configuration the session was created with, if any. Omitted when the\n\t// session has no network configuration.\n\tNetwork BrowserNetworkConfig `json:\"network\"`\n\t// Host platform for the browser session. Absent means linux.\n\tPlatform BrowserPlatform `json:\"platform\"`\n\t// Browser pool this session was acquired from, if any.\n\tPool BrowserPoolRef `json:\"pool\"`\n\t// Browser profile metadata.\n\tProfile Profile `json:\"profile\"`\n\t// Whether changes made during this browser session are saved back to its profile\n\t// when the session ends. Omitted when no profile is attached.\n\tProfileSaveChanges bool `json:\"profile_save_changes\"`\n\t// Resolved proxy configuration for this browser session.\n\tProxy BrowserProxy `json:\"proxy\"`\n\t// ID of the proxy associated with this browser session, if any. Deprecated in\n\t// favor of proxy.\n\t//\n\t// Deprecated: deprecated\n\tProxyID string `json:\"proxy_id\"`\n\t// Replay recording started by `start_replay` when this browser was created or\n\t// acquired. Omitted otherwise; list replays with\n\t// `GET /browsers/{id_or_name}/replays`.\n\tReplay InvocationListBrowsersResponseBrowserReplay `json:\"replay\"`\n\t// Seconds the browser waits after its last connection closes before entering\n\t// standby. Omitted when the browser uses the platform default.\n\tStandbyIdleTimeoutSeconds int64 `json:\"standby_idle_timeout_seconds\"`\n\t// URL the session was most recently asked to navigate to, if any. Recorded for\n\t// debugging. Navigation is fire-and-forget — the URL is dispatched to the browser\n\t// without waiting for it to load, and any errors (DNS failure, bad status,\n\t// timeout) are silently dropped. Captures what was requested, not what the browser\n\t// actually loaded.\n\tStartURL string `json:\"start_url\"`\n\t// User-defined key-value tags that were set on this browser session, if any.\n\t// Echoed back when present.\n\tTags Tags `json:\"tags\"`\n\t// Active telemetry configuration for the session, if any.\n\tTelemetry BrowserTelemetryConfig `json:\"telemetry\" api:\"nullable\"`\n\t// Session usage metrics.\n\tUsage BrowserUsage `json:\"usage\"`\n\t// Whether final usage billing is still pending or complete. Only present for\n\t// deleted sessions.\n\t//\n\t// Any of \"pending\", \"ready\".\n\tUsageStatus string `json:\"usage_status\"`\n\t// Vaults linked when the browser session was created.\n\tVaults []VaultReference `json:\"vaults\"`\n\t// Video memory (VRAM) of the GPU browser session. Only present when gpu is true.\n\t//\n\t// Any of \"3GiB\", \"6GiB\", \"2GiB\", \"4GiB\".\n\tVideoMemory BrowserVideoMemory `json:\"video_memory\"`\n\t// Initial browser window size in pixels with optional refresh rate. If omitted,\n\t// image defaults apply (1920x1080@25). For GPU images, the default is\n\t// 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.\n\t// Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,\n\t// 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For\n\t// GPU images, recommended presets use one of these resolutions with refresh rates\n\t// 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,\n\t// 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,\n\t// 768x1024, 800x1600. Viewports outside this list may exhibit unstable live view\n\t// or recording behavior. If refresh_rate is not provided, it will be automatically\n\t// determined based on the resolution (higher resolutions use lower refresh rates\n\t// to keep bandwidth reasonable).\n\tViewport shared.BrowserViewport `json:\"viewport\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCaptchaSolver             respjson.Field\n\t\tCdpWsURL                  respjson.Field\n\t\tCreatedAt                 respjson.Field\n\t\tHeadless                  respjson.Field\n\t\tMemory                    respjson.Field\n\t\tRegion                    respjson.Field\n\t\tSessionID                 respjson.Field\n\t\tStealth                   respjson.Field\n\t\tTimeoutSeconds            respjson.Field\n\t\tWebdriverWsURL            respjson.Field\n\t\tBaseURL                   respjson.Field\n\t\tBrowserLiveViewURL        respjson.Field\n\t\tChromePolicy              respjson.Field\n\t\tCost                      respjson.Field\n\t\tDeletedAt                 respjson.Field\n\t\tFingerprint               respjson.Field\n\t\tGPU                       respjson.Field\n\t\tKioskMode                 respjson.Field\n\t\tLeasedAt                  respjson.Field\n\t\tLocation                  respjson.Field\n\t\tName                      respjson.Field\n\t\tNetwork                   respjson.Field\n\t\tPlatform                  respjson.Field\n\t\tPool                      respjson.Field\n\t\tProfile                   respjson.Field\n\t\tProfileSaveChanges        respjson.Field\n\t\tProxy                     respjson.Field\n\t\tProxyID                   respjson.Field\n\t\tReplay                    respjson.Field\n\t\tStandbyIdleTimeoutSeconds respjson.Field\n\t\tStartURL                  respjson.Field\n\t\tTags                      respjson.Field\n\t\tTelemetry                 respjson.Field\n\t\tUsage                     respjson.Field\n\t\tUsageStatus               respjson.Field\n\t\tVaults                    respjson.Field\n\t\tVideoMemory               respjson.Field\n\t\tViewport                  respjson.Field\n\t\tExtraFields               map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r InvocationListBrowsersResponseBrowser) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *InvocationListBrowsersResponseBrowser) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype InvocationListBrowsersResponseBrowserReplay struct {\n\t// Unique identifier for the replay recording.\n\tReplayID string `json:\"replay_id\" api:\"required\"`\n\t// Timestamp when replay finished\n\tFinishedAt time.Time `json:\"finished_at\" api:\"nullable\" format:\"date-time\"`\n\t// URL for viewing the replay recording.\n\tReplayViewURL string `json:\"replay_view_url\"`\n\t// Timestamp when replay started\n\tStartedAt time.Time `json:\"started_at\" api:\"nullable\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tReplayID      respjson.Field\n\t\tFinishedAt    respjson.Field\n\t\tReplayViewURL respjson.Field\n\t\tStartedAt     respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nReplay recording started by \\`start\\_replay\\` when this browser was created or acquired. Omitted otherwise; list replays with \\`GET /browsers/{id\\_or\\_name}/replays\\`.\n\n```go\nfunc (r InvocationListBrowsersResponseBrowserReplay) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *InvocationListBrowsersResponseBrowserReplay) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype InvocationListParams struct {\n\t// Filter results by action name.\n\tActionName param.Opt[string] `query:\"action_name,omitzero\" json:\"-\"`\n\t// Filter results by application name.\n\tAppName param.Opt[string] `query:\"app_name,omitzero\" json:\"-\"`\n\t// Filter results by deployment ID.\n\tDeploymentID param.Opt[string] `query:\"deployment_id,omitzero\" json:\"-\"`\n\t// Limit the number of invocations to return.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Offset the number of invocations to return.\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Search invocations by ID, app name, or action name.\n\tQuery param.Opt[string] `query:\"query,omitzero\" json:\"-\"`\n\t// Show invocations that have started since the given time (RFC timestamps or\n\t// durations like 5m).\n\tSince param.Opt[string] `query:\"since,omitzero\" json:\"-\"`\n\t// Filter results by application version.\n\tVersion param.Opt[string] `query:\"version,omitzero\" json:\"-\"`\n\t// Filter results by invocation status.\n\t//\n\t// Any of \"queued\", \"running\", \"succeeded\", \"failed\".\n\tStatus InvocationListParamsStatus `query:\"status,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r InvocationListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [InvocationListParams](#InvocationListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype InvocationListParamsStatus string\n```\nFilter results by invocation status.\n\n```go\nconst (\n\tInvocationListParamsStatusQueued    InvocationListParamsStatus = \"queued\"\n\tInvocationListParamsStatusRunning   InvocationListParamsStatus = \"running\"\n\tInvocationListParamsStatusSucceeded InvocationListParamsStatus = \"succeeded\"\n\tInvocationListParamsStatusFailed    InvocationListParamsStatus = \"failed\"\n)\n```\n\n```go\ntype InvocationListResponse struct {\n\t// ID of the invocation\n\tID string `json:\"id\" api:\"required\"`\n\t// Name of the action invoked\n\tActionName string `json:\"action_name\" api:\"required\"`\n\t// Name of the application\n\tAppName string `json:\"app_name\" api:\"required\"`\n\t// RFC 3339 Nanoseconds timestamp when the invocation started\n\tStartedAt time.Time `json:\"started_at\" api:\"required\" format:\"date-time\"`\n\t// Status of the invocation\n\t//\n\t// Any of \"queued\", \"running\", \"succeeded\", \"failed\".\n\tStatus InvocationListResponseStatus `json:\"status\" api:\"required\"`\n\t// Version label for the application\n\tVersion string `json:\"version\" api:\"required\"`\n\t// RFC 3339 Nanoseconds timestamp when the invocation finished (null if still\n\t// running)\n\tFinishedAt time.Time `json:\"finished_at\" api:\"nullable\" format:\"date-time\"`\n\t// The action result or detailed failure output. Often a JSON-encoded value, but\n\t// failures may contain plain text. May contain sensitive application data.\n\tOutput string `json:\"output\"`\n\t// Payload provided to the invocation. This is a string that can be parsed as JSON.\n\tPayload string `json:\"payload\"`\n\t// A nonempty, customer-safe summary of the recorded failure output, always present\n\t// when status is failed and omitted otherwise, including in the first failed\n\t// invocation_state event. Recognized messages receive a specific summary; other\n\t// failures receive a generic summary. Message matching does not establish whether\n\t// the failure originated in the platform or action code. Does not include raw\n\t// action output or internal error details. Available for historical invocations as\n\t// well. Human-readable text, not a stable identifier for retry logic.\n\tStatusReason string `json:\"status_reason\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID           respjson.Field\n\t\tActionName   respjson.Field\n\t\tAppName      respjson.Field\n\t\tStartedAt    respjson.Field\n\t\tStatus       respjson.Field\n\t\tVersion      respjson.Field\n\t\tFinishedAt   respjson.Field\n\t\tOutput       respjson.Field\n\t\tPayload      respjson.Field\n\t\tStatusReason respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r InvocationListResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *InvocationListResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype InvocationListResponseStatus string\n```\nStatus of the invocation\n\n```go\nconst (\n\tInvocationListResponseStatusQueued    InvocationListResponseStatus = \"queued\"\n\tInvocationListResponseStatusRunning   InvocationListResponseStatus = \"running\"\n\tInvocationListResponseStatusSucceeded InvocationListResponseStatus = \"succeeded\"\n\tInvocationListResponseStatusFailed    InvocationListResponseStatus = \"failed\"\n)\n```\n\n```go\ntype InvocationNewParams struct {\n\t// Name of the action to invoke\n\tActionName string `json:\"action_name\" api:\"required\"`\n\t// Name of the application\n\tAppName string `json:\"app_name\" api:\"required\"`\n\t// Version of the application\n\tVersion string `json:\"version\" api:\"required\"`\n\t// If true, invoke asynchronously. When set, the API responds 202 Accepted with\n\t// status \"queued\".\n\tAsync param.Opt[bool] `json:\"async,omitzero\"`\n\t// Timeout in seconds for async invocations (min 10, max 3600). Only applies when\n\t// async is true.\n\tAsyncTimeoutSeconds param.Opt[int64] `json:\"async_timeout_seconds,omitzero\"`\n\t// Input data for the action, sent as a JSON string.\n\tPayload param.Opt[string] `json:\"payload,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r InvocationNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *InvocationNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype InvocationNewResponse struct {\n\t// ID of the invocation\n\tID string `json:\"id\" api:\"required\"`\n\t// Name of the action invoked\n\tActionName string `json:\"action_name\" api:\"required\"`\n\t// Status of the invocation\n\t//\n\t// Any of \"queued\", \"running\", \"succeeded\", \"failed\".\n\tStatus InvocationNewResponseStatus `json:\"status\" api:\"required\"`\n\t// The action result or detailed failure output. Often a JSON-encoded value, but\n\t// failures may contain plain text. May contain sensitive application data.\n\tOutput string `json:\"output\"`\n\t// A nonempty, customer-safe summary of the recorded failure output, always present\n\t// when status is failed and omitted otherwise. Recognized messages receive a\n\t// specific summary; other failures receive a generic summary. Message matching\n\t// does not establish whether the failure originated in the platform or action\n\t// code. Does not include raw action output or internal error details.\n\t// Human-readable text, not a stable identifier for retry logic.\n\tStatusReason string `json:\"status_reason\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID           respjson.Field\n\t\tActionName   respjson.Field\n\t\tStatus       respjson.Field\n\t\tOutput       respjson.Field\n\t\tStatusReason respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r InvocationNewResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *InvocationNewResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype InvocationNewResponseStatus string\n```\nStatus of the invocation\n\n```go\nconst (\n\tInvocationNewResponseStatusQueued    InvocationNewResponseStatus = \"queued\"\n\tInvocationNewResponseStatusRunning   InvocationNewResponseStatus = \"running\"\n\tInvocationNewResponseStatusSucceeded InvocationNewResponseStatus = \"succeeded\"\n\tInvocationNewResponseStatusFailed    InvocationNewResponseStatus = \"failed\"\n)\n```\n\n```go\ntype InvocationResult struct {\n\tInvocationID string `json:\"invocation_id\" api:\"required\"`\n\t// awaiting_submission means a non-autosubmit declarative form was populated but\n\t// not submitted. Inspect the form, obtain any required confirmation, then submit\n\t// through Playwright or computer interaction without invoking the tool again. The\n\t// other statuses are terminal results.\n\t//\n\t// Any of \"completed\", \"canceled\", \"error\", \"awaiting_submission\".\n\tStatus    InvocationResultStatus `json:\"status\" api:\"required\"`\n\tErrorText string                 `json:\"error_text\"`\n\t// Untrusted page-provided output. Callers must treat it as potentially malicious\n\t// input.\n\tOutput any `json:\"output\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tInvocationID respjson.Field\n\t\tStatus       respjson.Field\n\t\tErrorText    respjson.Field\n\t\tOutput       respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r InvocationResult) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *InvocationResult) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype InvocationResultStatus string\n```\nawaiting\\_submission means a non-autosubmit declarative form was populated but not submitted. Inspect the form, obtain any required confirmation, then submit through Playwright or computer interaction without invoking the tool again. The other statuses are terminal results.\n\n```go\nconst (\n\tInvocationResultStatusCompleted          InvocationResultStatus = \"completed\"\n\tInvocationResultStatusCanceled           InvocationResultStatus = \"canceled\"\n\tInvocationResultStatusError              InvocationResultStatus = \"error\"\n\tInvocationResultStatusAwaitingSubmission InvocationResultStatus = \"awaiting_submission\"\n)\n```\n\n```go\ntype InvocationService struct {\n\tOptions []option.RequestOption\n}\n```\nInvoke actions and stream or query invocation status and events.\n\nInvocationService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewInvocationService](#NewInvocationService) method instead.\n\n```go\nfunc NewInvocationService(opts ...option.RequestOption) (r InvocationService)\n```\nNewInvocationService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *InvocationService) DeleteBrowsers(ctx context.Context, id string, opts ...option.RequestOption) (err error)\n```\nDelete all browser sessions created within the specified invocation.\n\n```go\nfunc (r *InvocationService) FollowStreaming(ctx context.Context, id string, query InvocationFollowParams, opts ...option.RequestOption) (stream *ssestream.Stream[InvocationFollowResponseUnion])\n```\nEstablishes a Server-Sent Events (SSE) stream that delivers real-time logs and status updates for an invocation. The stream terminates automatically once the invocation reaches a terminal state.\n\n```go\nfunc (r *InvocationService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *InvocationGetResponse, err error)\n```\nGet details about an invocation's status and output.\n\n```go\nfunc (r *InvocationService) List(ctx context.Context, query InvocationListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[InvocationListResponse], err error)\n```\nList invocations. Optionally filter by application name, action name, status, deployment ID, or start time.\n\n```go\nfunc (r *InvocationService) ListAutoPaging(ctx context.Context, query InvocationListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[InvocationListResponse]\n```\nList invocations. Optionally filter by application name, action name, status, deployment ID, or start time.\n\n```go\nfunc (r *InvocationService) ListBrowsers(ctx context.Context, id string, opts ...option.RequestOption) (res *InvocationListBrowsersResponse, err error)\n```\nReturns all active browser sessions created within the specified invocation.\n\n```go\nfunc (r *InvocationService) New(ctx context.Context, body InvocationNewParams, opts ...option.RequestOption) (res *InvocationNewResponse, err error)\n```\nInvoke an action.\n\n```go\nfunc (r *InvocationService) Update(ctx context.Context, id string, body InvocationUpdateParams, opts ...option.RequestOption) (res *InvocationUpdateResponse, err error)\n```\nUpdate an invocation's status or output. This can be used to cancel an invocation by setting the status to \"failed\".\n\n```go\ntype InvocationStateEvent struct {\n\t// Event type identifier (always \"invocation_state\").\n\tEvent      constant.InvocationState       `json:\"event\" default:\"invocation_state\"`\n\tInvocation InvocationStateEventInvocation `json:\"invocation\" api:\"required\"`\n\t// Time the state was reported.\n\tTimestamp time.Time `json:\"timestamp\" api:\"required\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEvent       respjson.Field\n\t\tInvocation  respjson.Field\n\t\tTimestamp   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn event representing the current state of an invocation.\n\n```go\nfunc (InvocationStateEvent) ImplInvocationFollowResponseUnion()\n```\n\n```go\nfunc (r InvocationStateEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *InvocationStateEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype InvocationStateEventInvocation struct {\n\t// ID of the invocation\n\tID string `json:\"id\" api:\"required\"`\n\t// Name of the action invoked\n\tActionName string `json:\"action_name\" api:\"required\"`\n\t// Name of the application\n\tAppName string `json:\"app_name\" api:\"required\"`\n\t// RFC 3339 Nanoseconds timestamp when the invocation started\n\tStartedAt time.Time `json:\"started_at\" api:\"required\" format:\"date-time\"`\n\t// Status of the invocation\n\t//\n\t// Any of \"queued\", \"running\", \"succeeded\", \"failed\".\n\tStatus string `json:\"status\" api:\"required\"`\n\t// Version label for the application\n\tVersion string `json:\"version\" api:\"required\"`\n\t// RFC 3339 Nanoseconds timestamp when the invocation finished (null if still\n\t// running)\n\tFinishedAt time.Time `json:\"finished_at\" api:\"nullable\" format:\"date-time\"`\n\t// The action result or detailed failure output. Often a JSON-encoded value, but\n\t// failures may contain plain text. May contain sensitive application data.\n\tOutput string `json:\"output\"`\n\t// Payload provided to the invocation. This is a string that can be parsed as JSON.\n\tPayload string `json:\"payload\"`\n\t// A nonempty, customer-safe summary of the recorded failure output, always present\n\t// when status is failed and omitted otherwise, including in the first failed\n\t// invocation_state event. Recognized messages receive a specific summary; other\n\t// failures receive a generic summary. Message matching does not establish whether\n\t// the failure originated in the platform or action code. Does not include raw\n\t// action output or internal error details. Available for historical invocations as\n\t// well. Human-readable text, not a stable identifier for retry logic.\n\tStatusReason string `json:\"status_reason\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID           respjson.Field\n\t\tActionName   respjson.Field\n\t\tAppName      respjson.Field\n\t\tStartedAt    respjson.Field\n\t\tStatus       respjson.Field\n\t\tVersion      respjson.Field\n\t\tFinishedAt   respjson.Field\n\t\tOutput       respjson.Field\n\t\tPayload      respjson.Field\n\t\tStatusReason respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r InvocationStateEventInvocation) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *InvocationStateEventInvocation) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype InvocationUpdateParams struct {\n\t// New status for the invocation.\n\t//\n\t// Any of \"succeeded\", \"failed\".\n\tStatus InvocationUpdateParamsStatus `json:\"status,omitzero\" api:\"required\"`\n\t// Updated output of the invocation rendered as JSON string.\n\tOutput param.Opt[string] `json:\"output,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r InvocationUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *InvocationUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype InvocationUpdateParamsStatus string\n```\nNew status for the invocation.\n\n```go\nconst (\n\tInvocationUpdateParamsStatusSucceeded InvocationUpdateParamsStatus = \"succeeded\"\n\tInvocationUpdateParamsStatusFailed    InvocationUpdateParamsStatus = \"failed\"\n)\n```\n\n```go\ntype InvocationUpdateResponse struct {\n\t// ID of the invocation\n\tID string `json:\"id\" api:\"required\"`\n\t// Name of the action invoked\n\tActionName string `json:\"action_name\" api:\"required\"`\n\t// Name of the application\n\tAppName string `json:\"app_name\" api:\"required\"`\n\t// RFC 3339 Nanoseconds timestamp when the invocation started\n\tStartedAt time.Time `json:\"started_at\" api:\"required\" format:\"date-time\"`\n\t// Status of the invocation\n\t//\n\t// Any of \"queued\", \"running\", \"succeeded\", \"failed\".\n\tStatus InvocationUpdateResponseStatus `json:\"status\" api:\"required\"`\n\t// Version label for the application\n\tVersion string `json:\"version\" api:\"required\"`\n\t// RFC 3339 Nanoseconds timestamp when the invocation finished (null if still\n\t// running)\n\tFinishedAt time.Time `json:\"finished_at\" api:\"nullable\" format:\"date-time\"`\n\t// The action result or detailed failure output. Often a JSON-encoded value, but\n\t// failures may contain plain text. May contain sensitive application data.\n\tOutput string `json:\"output\"`\n\t// Payload provided to the invocation. This is a string that can be parsed as JSON.\n\tPayload string `json:\"payload\"`\n\t// A nonempty, customer-safe summary of the recorded failure output, always present\n\t// when status is failed and omitted otherwise, including in the first failed\n\t// invocation_state event. Recognized messages receive a specific summary; other\n\t// failures receive a generic summary. Message matching does not establish whether\n\t// the failure originated in the platform or action code. Does not include raw\n\t// action output or internal error details. Available for historical invocations as\n\t// well. Human-readable text, not a stable identifier for retry logic.\n\tStatusReason string `json:\"status_reason\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID           respjson.Field\n\t\tActionName   respjson.Field\n\t\tAppName      respjson.Field\n\t\tStartedAt    respjson.Field\n\t\tStatus       respjson.Field\n\t\tVersion      respjson.Field\n\t\tFinishedAt   respjson.Field\n\t\tOutput       respjson.Field\n\t\tPayload      respjson.Field\n\t\tStatusReason respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r InvocationUpdateResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *InvocationUpdateResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype InvocationUpdateResponseStatus string\n```\nStatus of the invocation\n\n```go\nconst (\n\tInvocationUpdateResponseStatusQueued    InvocationUpdateResponseStatus = \"queued\"\n\tInvocationUpdateResponseStatusRunning   InvocationUpdateResponseStatus = \"running\"\n\tInvocationUpdateResponseStatusSucceeded InvocationUpdateResponseStatus = \"succeeded\"\n\tInvocationUpdateResponseStatusFailed    InvocationUpdateResponseStatus = \"failed\"\n)\n```\n\n```go\ntype InvokeRequestParam struct {\n\t// Tool input, limited to 4 MiB after JSON serialization.\n\tInput      map[string]any   `json:\"input,omitzero\" api:\"required\"`\n\tToolRef    string           `json:\"tool_ref\" api:\"required\"`\n\tTimeoutSec param.Opt[int64] `json:\"timeout_sec,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Input, ToolRef are required.\n\n```go\nfunc (r InvokeRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *InvokeRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype KernelCardState struct {\n\t// Any of \"kernel\".\n\tProvider KernelCardStateProvider `json:\"provider\" api:\"required\"`\n\t// payment_method for a purchase funded by a wallet payment method; single_use_card\n\t// for a card whose details were supplied with single_use_card.\n\t//\n\t// Any of \"payment_method\", \"single_use_card\".\n\tSource KernelCardStateSource `json:\"source\" api:\"required\"`\n\t// pending_authorization waits for cardholder approval on Visa purchases or fresh\n\t// security-code collection on alias-mode purchases through the spend_approval\n\t// action; an unused link expires after 30 minutes. Alias-mode cards become ready\n\t// after collection and expire at the temporary security-code alias deadline, by\n\t// default five or fifteen minutes later, depending on the card's storage backend.\n\t// An expired alias purchase requires a new card. recovery_required means\n\t// verification, approving the purchase or issuing the one-time code has an\n\t// unresolved outcome. A server-classified initial attestation failure before\n\t// intent dispatch may advertise restart_verification to prepare a fresh local\n\t// verification link; this does not approve spending or replay any provider\n\t// request. Unclassified legacy recovery and uncertain intent creation cannot\n\t// restart. Kernel never approves again or issues another code for the item\n\t// automatically. To continue, delete this card and create a new purchase; the\n\t// cardholder approves the new purchase separately. Recovery while reporting a\n\t// merchant transaction cannot be deleted and must be reconciled with support. When\n\t// status_reason says the provider refused retrieval before acceptance, no code was\n\t// issued and a later read retries. declined means the card network refused to\n\t// issue a code.\n\t//\n\t// Any of \"requested\", \"pending_authorization\", \"ready\", \"consumed\", \"expired\",\n\t// \"declined\", \"recovery_required\".\n\tStatus KernelCardStateStatus `json:\"status\" api:\"required\"`\n\t// Informational registrable domain. Fill is locked to merchant_url's exact origin,\n\t// except that a single-use card fills on any https page of this registrable\n\t// domain.\n\tDomains []string `json:\"domains\"`\n\t// Whether payment_method_id can still fund this purchase. unavailable means the\n\t// method is being removed or awaits recovery, so authorization, fill and\n\t// confirmation are refused until it recovers. removed means the method was removed\n\t// from its wallet, so this purchase can no longer be paid; create a new purchase\n\t// with another method. Neither changes status, which still reports what already\n\t// happened to this purchase.\n\t//\n\t// Any of \"available\", \"unavailable\", \"removed\".\n\tFundingStatus KernelCardStateFundingStatus `json:\"funding_status\"`\n\tMasks         KernelCardStateMasks         `json:\"masks\"`\n\t// Wallet-scoped ID of the payment method funding this purchase. It is bound when\n\t// the purchase is created and never changes; purchases created before payment\n\t// methods could be selected report the wallet's default card, card.\n\tPaymentMethodID string `json:\"payment_method_id\"`\n\tStatusReason    string `json:\"status_reason\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tProvider        respjson.Field\n\t\tSource          respjson.Field\n\t\tStatus          respjson.Field\n\t\tDomains         respjson.Field\n\t\tFundingStatus   respjson.Field\n\t\tMasks           respjson.Field\n\t\tPaymentMethodID respjson.Field\n\t\tStatusReason    respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA ready Kernel card funded by a payment method supports authorize, fill, then submit checkout. A single-use card (source single\\_use\\_card) is ready on creation, supports only fill, and is expired from expires\\_at; Kernel deletes its stored details shortly after expires\\_at. It has no payment\\_method\\_id or funding\\_status. Card details are delivered for a few minutes after fill; submit promptly. Repeated fill is safe and never submits checkout. Visa purchases require a spend\\_approval action before details are issued; Mastercard purchases need no hosted approval. masks.last4 is the enrolled card's last four digits; masks.token\\_last4, when present, is the token's last four digits shown to the merchant. Kernel does not observe whether the merchant charged the card.\n\n```go\nfunc (r KernelCardState) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *KernelCardState) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype KernelCardStateFundingStatus string\n```\nWhether payment\\_method\\_id can still fund this purchase. unavailable means the method is being removed or awaits recovery, so authorization, fill and confirmation are refused until it recovers. removed means the method was removed from its wallet, so this purchase can no longer be paid; create a new purchase with another method. Neither changes status, which still reports what already happened to this purchase.\n\n```go\nconst (\n\tKernelCardStateFundingStatusAvailable   KernelCardStateFundingStatus = \"available\"\n\tKernelCardStateFundingStatusUnavailable KernelCardStateFundingStatus = \"unavailable\"\n\tKernelCardStateFundingStatusRemoved     KernelCardStateFundingStatus = \"removed\"\n)\n```\n\n```go\ntype KernelCardStateMasks struct {\n\tBrand string `json:\"brand\"`\n\tLast4 string `json:\"last4\"`\n\t// Last four digits of the network token presented to the merchant.\n\tTokenLast4  string            `json:\"token_last4\"`\n\tExtraFields map[string]string `json:\"\" api:\"extrafields\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBrand       respjson.Field\n\t\tLast4       respjson.Field\n\t\tTokenLast4  respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r KernelCardStateMasks) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *KernelCardStateMasks) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype KernelCardStateProvider string\n```\n\n```go\nconst (\n\tKernelCardStateProviderKernel KernelCardStateProvider = \"kernel\"\n)\n```\n\n```go\ntype KernelCardStateSource string\n```\npayment\\_method for a purchase funded by a wallet payment method; single\\_use\\_card for a card whose details were supplied with single\\_use\\_card.\n\n```go\nconst (\n\tKernelCardStateSourcePaymentMethod KernelCardStateSource = \"payment_method\"\n\tKernelCardStateSourceSingleUseCard KernelCardStateSource = \"single_use_card\"\n)\n```\n\n```go\ntype KernelCardStateStatus string\n```\npending\\_authorization waits for cardholder approval on Visa purchases or fresh security-code collection on alias-mode purchases through the spend\\_approval action; an unused link expires after 30 minutes. Alias-mode cards become ready after collection and expire at the temporary security-code alias deadline, by default five or fifteen minutes later, depending on the card's storage backend. An expired alias purchase requires a new card. recovery\\_required means verification, approving the purchase or issuing the one-time code has an unresolved outcome. A server-classified initial attestation failure before intent dispatch may advertise restart\\_verification to prepare a fresh local verification link; this does not approve spending or replay any provider request. Unclassified legacy recovery and uncertain intent creation cannot restart. Kernel never approves again or issues another code for the item automatically. To continue, delete this card and create a new purchase; the cardholder approves the new purchase separately. Recovery while reporting a merchant transaction cannot be deleted and must be reconciled with support. When status\\_reason says the provider refused retrieval before acceptance, no code was issued and a later read retries. declined means the card network refused to issue a code.\n\n```go\nconst (\n\tKernelCardStateStatusRequested            KernelCardStateStatus = \"requested\"\n\tKernelCardStateStatusPendingAuthorization KernelCardStateStatus = \"pending_authorization\"\n\tKernelCardStateStatusReady                KernelCardStateStatus = \"ready\"\n\tKernelCardStateStatusConsumed             KernelCardStateStatus = \"consumed\"\n\tKernelCardStateStatusExpired              KernelCardStateStatus = \"expired\"\n\tKernelCardStateStatusDeclined             KernelCardStateStatus = \"declined\"\n\tKernelCardStateStatusRecoveryRequired     KernelCardStateStatus = \"recovery_required\"\n)\n```\n\n```go\ntype KernelCardVaultItemSpec struct {\n\t// Integer amount in minor currency units (at most 1000000), bound to the one-time\n\t// code.\n\tAmount int64 `json:\"amount\" api:\"required\"`\n\t// ISO 4217 code. Supported: aud, brl, cad, chf, czk, dkk, eur, gbp, hkd, inr, jpy,\n\t// krw, mxn, nok, nzd, pln, sek, sgd, usd, zar.\n\tCurrency     string `json:\"currency\" api:\"required\"`\n\tMerchantName string `json:\"merchant_name\" api:\"required\"`\n\t// Merchant checkout URL. Fill is allowed only on this URL's origin.\n\tMerchantURL string `json:\"merchant_url\" api:\"required\" format:\"uri\"`\n\t// Any of \"kernel\".\n\tProvider KernelCardVaultItemSpecProvider `json:\"provider\" api:\"required\"`\n\t// Key of the Kernel wallet item whose enrolled card pays.\n\tWallet string `json:\"wallet\" api:\"required\"`\n\t// Single-use cards only. From this time the card is expired and can no longer be\n\t// filled; Kernel deletes its stored details shortly after. Deleting the card, its\n\t// wallet or its vault deletes them immediately. Defaults to 2 hours after\n\t// creation, capped at the end of the card's expiry month; a requested time must be\n\t// in the future, at most 24 hours after creation, and not after the end of the\n\t// card's expiry month. Returned in UTC.\n\tExpiresAt time.Time `json:\"expires_at\" format:\"date-time\"`\n\t// Actual merchant category when known. Omit rather than invent a category.\n\tMerchantCategory string `json:\"merchant_category\"`\n\t// Actual merchant MCC when known. Omit rather than invent a code. 0000 is not\n\t// accepted.\n\tMerchantCategoryCode string `json:\"merchant_category_code\"`\n\t// The merchant's ISO 3166-1 alpha-2 country code. Required for Visa cards, whose\n\t// one-time code is issued for the merchant's country.\n\tMerchantCountry string `json:\"merchant_country\"`\n\t// Wallet-scoped payment method ID from the wallet's payment_methods expansion.\n\t// Omission selects the wallet's default card, ID card, for compatibility with\n\t// existing requests; it never falls back to another method, and a wallet without a\n\t// default card requires the ID. The purchase is bound to the method's enrolled\n\t// card and network token, so later operations cannot switch funding. Not allowed\n\t// with single_use_card.\n\tPaymentMethodID string `json:\"payment_method_id\"`\n\t// Details of a card the caller supplies, such as a single-use virtual card from\n\t// its issuer. Mutually exclusive with payment_method_id. The card details are\n\t// stored encrypted for fill and never returned; reads return only reference.\n\t// Kernel deletes them shortly after the card's expires_at; deleting the card, its\n\t// wallet or its vault deletes them immediately. A card whose expiry month has\n\t// ended is rejected.\n\tSingleUseCard KernelSingleUseCard `json:\"single_use_card\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAmount               respjson.Field\n\t\tCurrency             respjson.Field\n\t\tMerchantName         respjson.Field\n\t\tMerchantURL          respjson.Field\n\t\tProvider             respjson.Field\n\t\tWallet               respjson.Field\n\t\tExpiresAt            respjson.Field\n\t\tMerchantCategory     respjson.Field\n\t\tMerchantCategoryCode respjson.Field\n\t\tMerchantCountry      respjson.Field\n\t\tPaymentMethodID      respjson.Field\n\t\tSingleUseCard        respjson.Field\n\t\tExtraFields          map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOne live purchase with a Kernel-enrolled card. Authorization obtains an agentic network token number, expiry and one-time 3-digit code. They are stored encrypted for the fill operation, which types them only on merchant\\_url's origin; the merchant's own checkout submits the payment. The one-time code is valid until the item's expires\\_at; fill and submit checkout before then. Mastercard purchases need no cardholder approval. A Visa purchase returns a spend\\_approval action: the cardholder approves it with a Visa passkey, and Kernel registers a Visa intent for one transaction up to the amount before issuing the code. For supported cards whose network cannot be enrolled for agentic tokens, authorize returns pending\\_authorization with a spend\\_approval action to collect a fresh security code in a hosted field. Once collected, the card is ready and can be filled before its expires\\_at, by default five or fifteen minutes after collection, depending on the card's storage backend. An expired card requires a new purchase. Fill types those details on merchant\\_url's origin. The amount, merchant\\_url and merchant\\_country are recorded but do not restrict payment requests sent by the browser. Card updates are not supported; delete and create a new item instead. With single\\_use\\_card the item is instead a single-use card whose details the caller supplies, such as a virtual card from its issuer. It is not funded by a payment method, is ready on creation, and supports only fill: Kernel stores the details encrypted, never returns them, and fills them on any https page whose registrable domain (state.domains) is merchant\\_url's, including its subdomains. Fill does not consume it. From expires\\_at it is expired and can no longer be filled; Kernel deletes its stored details shortly after expires\\_at. Deleting the card, its wallet or its vault deletes them immediately. amount, currency and the merchant fields are recorded but not enforced. Repeating the identical request returns the existing card; any other request with the same key returns 409, as does repeating it once the expired card's details have been deleted.\n\n```go\nfunc (r KernelCardVaultItemSpec) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r KernelCardVaultItemSpec) ToParam() KernelCardVaultItemSpecParam\n```\nToParam converts this KernelCardVaultItemSpec to a KernelCardVaultItemSpecParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with KernelCardVaultItemSpecParam.Overrides()\n\n```go\nfunc (r *KernelCardVaultItemSpec) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype KernelCardVaultItemSpecParam struct {\n\t// Integer amount in minor currency units (at most 1000000), bound to the one-time\n\t// code.\n\tAmount int64 `json:\"amount\" api:\"required\"`\n\t// ISO 4217 code. Supported: aud, brl, cad, chf, czk, dkk, eur, gbp, hkd, inr, jpy,\n\t// krw, mxn, nok, nzd, pln, sek, sgd, usd, zar.\n\tCurrency     string `json:\"currency\" api:\"required\"`\n\tMerchantName string `json:\"merchant_name\" api:\"required\"`\n\t// Merchant checkout URL. Fill is allowed only on this URL's origin.\n\tMerchantURL string `json:\"merchant_url\" api:\"required\" format:\"uri\"`\n\t// Any of \"kernel\".\n\tProvider KernelCardVaultItemSpecProvider `json:\"provider,omitzero\" api:\"required\"`\n\t// Key of the Kernel wallet item whose enrolled card pays.\n\tWallet string `json:\"wallet\" api:\"required\"`\n\t// Single-use cards only. From this time the card is expired and can no longer be\n\t// filled; Kernel deletes its stored details shortly after. Deleting the card, its\n\t// wallet or its vault deletes them immediately. Defaults to 2 hours after\n\t// creation, capped at the end of the card's expiry month; a requested time must be\n\t// in the future, at most 24 hours after creation, and not after the end of the\n\t// card's expiry month. Returned in UTC.\n\tExpiresAt param.Opt[time.Time] `json:\"expires_at,omitzero\" format:\"date-time\"`\n\t// Actual merchant category when known. Omit rather than invent a category.\n\tMerchantCategory param.Opt[string] `json:\"merchant_category,omitzero\"`\n\t// Actual merchant MCC when known. Omit rather than invent a code. 0000 is not\n\t// accepted.\n\tMerchantCategoryCode param.Opt[string] `json:\"merchant_category_code,omitzero\"`\n\t// The merchant's ISO 3166-1 alpha-2 country code. Required for Visa cards, whose\n\t// one-time code is issued for the merchant's country.\n\tMerchantCountry param.Opt[string] `json:\"merchant_country,omitzero\"`\n\t// Wallet-scoped payment method ID from the wallet's payment_methods expansion.\n\t// Omission selects the wallet's default card, ID card, for compatibility with\n\t// existing requests; it never falls back to another method, and a wallet without a\n\t// default card requires the ID. The purchase is bound to the method's enrolled\n\t// card and network token, so later operations cannot switch funding. Not allowed\n\t// with single_use_card.\n\tPaymentMethodID param.Opt[string] `json:\"payment_method_id,omitzero\"`\n\t// Details of a card the caller supplies, such as a single-use virtual card from\n\t// its issuer. Mutually exclusive with payment_method_id. The card details are\n\t// stored encrypted for fill and never returned; reads return only reference.\n\t// Kernel deletes them shortly after the card's expires_at; deleting the card, its\n\t// wallet or its vault deletes them immediately. A card whose expiry month has\n\t// ended is rejected.\n\tSingleUseCard KernelSingleUseCardParam `json:\"single_use_card,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nOne live purchase with a Kernel-enrolled card. Authorization obtains an agentic network token number, expiry and one-time 3-digit code. They are stored encrypted for the fill operation, which types them only on merchant\\_url's origin; the merchant's own checkout submits the payment. The one-time code is valid until the item's expires\\_at; fill and submit checkout before then. Mastercard purchases need no cardholder approval. A Visa purchase returns a spend\\_approval action: the cardholder approves it with a Visa passkey, and Kernel registers a Visa intent for one transaction up to the amount before issuing the code. For supported cards whose network cannot be enrolled for agentic tokens, authorize returns pending\\_authorization with a spend\\_approval action to collect a fresh security code in a hosted field. Once collected, the card is ready and can be filled before its expires\\_at, by default five or fifteen minutes after collection, depending on the card's storage backend. An expired card requires a new purchase. Fill types those details on merchant\\_url's origin. The amount, merchant\\_url and merchant\\_country are recorded but do not restrict payment requests sent by the browser. Card updates are not supported; delete and create a new item instead. With single\\_use\\_card the item is instead a single-use card whose details the caller supplies, such as a virtual card from its issuer. It is not funded by a payment method, is ready on creation, and supports only fill: Kernel stores the details encrypted, never returns them, and fills them on any https page whose registrable domain (state.domains) is merchant\\_url's, including its subdomains. Fill does not consume it. From expires\\_at it is expired and can no longer be filled; Kernel deletes its stored details shortly after expires\\_at. Deleting the card, its wallet or its vault deletes them immediately. amount, currency and the merchant fields are recorded but not enforced. Repeating the identical request returns the existing card; any other request with the same key returns 409, as does repeating it once the expired card's details have been deleted.\n\nThe properties Amount, Currency, MerchantName, MerchantURL, Provider, Wallet are required.\n\n```go\nfunc (r KernelCardVaultItemSpecParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *KernelCardVaultItemSpecParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype KernelCardVaultItemSpecProvider string\n```\n\n```go\nconst (\n\tKernelCardVaultItemSpecProviderKernel KernelCardVaultItemSpecProvider = \"kernel\"\n)\n```\n\n```go\ntype KernelCredentialVaultItemSpec struct {\n\t// Ordered field definitions rendered in this order by credential collection forms.\n\tFields []CredentialVaultFieldDefinition `json:\"fields\" api:\"required\"`\n\t// Any of \"kernel\".\n\tProvider KernelCredentialVaultItemSpecProvider `json:\"provider\" api:\"required\"`\n\t// Recognizable site or service name displayed verbatim as the form title, without\n\t// suffixes such as sign-in credentials. Display text only, not an enforced\n\t// destination policy.\n\tDescription string `json:\"description\"`\n\t// Hostname of the site this login is for, shown on collection pages and link\n\t// previews. Display text only, not an enforced destination policy.\n\tDomain string `json:\"domain\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tFields      respjson.Field\n\t\tProvider    respjson.Field\n\t\tDescription respjson.Field\n\t\tDomain      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r KernelCredentialVaultItemSpec) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *KernelCredentialVaultItemSpec) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype KernelCredentialVaultItemSpecInputParam struct {\n\t// Ordered field definitions. Use the website's top-to-bottom field order; the\n\t// collection form renders this order unchanged.\n\tFields []CredentialVaultFieldInputParam `json:\"fields,omitzero\" api:\"required\"`\n\t// Any of \"kernel\".\n\tProvider KernelCredentialVaultItemSpecInputProvider `json:\"provider,omitzero\" api:\"required\"`\n\t// The site's recognizable display name, used verbatim as the user-facing form\n\t// title (for example, Hacker News). Use only the site or service name; do not\n\t// append sign-in, login, credentials, or task instructions. This is display text,\n\t// not an enforced destination policy. At most 16 KiB in UTF-8 bytes.\n\tDescription param.Opt[string] `json:\"description,omitzero\"`\n\t// Hostname of the site this login is for, such as rippling.com, without a scheme\n\t// or path. Collection pages and link previews show the site's icon and domain.\n\t// Setting it also puts the domain in the collection link's query string\n\t// (/collect?d=\u003cdomain\u003e#token=...), where anyone with the link can read it without\n\t// the token. Display text only, not an enforced destination policy.\n\tDomain param.Opt[string] `json:\"domain,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nCredential fields are for login and other non-payment credentials. Do not store, collect, or fill credit card data in credential items. Use wallet, payment\\_request and card item types for credit cards and payment checkout instead. Field order is preserved in the user-facing collection form, so list fields in the same top-to-bottom order as the website.\n\nThe properties Fields, Provider are required.\n\n```go\nfunc (r KernelCredentialVaultItemSpecInputParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *KernelCredentialVaultItemSpecInputParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype KernelCredentialVaultItemSpecInputProvider string\n```\n\n```go\nconst (\n\tKernelCredentialVaultItemSpecInputProviderKernel KernelCredentialVaultItemSpecInputProvider = \"kernel\"\n)\n```\n\n```go\ntype KernelCredentialVaultItemSpecProvider string\n```\n\n```go\nconst (\n\tKernelCredentialVaultItemSpecProviderKernel KernelCredentialVaultItemSpecProvider = \"kernel\"\n)\n```\n\n```go\ntype KernelCredentialVaultItemState struct {\n\t// Exactly one entry for each declared field.\n\tFields map[string]CredentialVaultFieldState `json:\"fields\" api:\"required\"`\n\t// Any of \"kernel\".\n\tProvider KernelCredentialVaultItemStateProvider `json:\"provider\" api:\"required\"`\n\t// Ready means all required fields have values, not that a login succeeded.\n\t// Optional fields may remain unset.\n\t//\n\t// Any of \"pending_collection\", \"ready\".\n\tStatus KernelCredentialVaultItemStateStatus `json:\"status\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tFields      respjson.Field\n\t\tProvider    respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r KernelCredentialVaultItemState) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *KernelCredentialVaultItemState) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype KernelCredentialVaultItemStateProvider string\n```\n\n```go\nconst (\n\tKernelCredentialVaultItemStateProviderKernel KernelCredentialVaultItemStateProvider = \"kernel\"\n)\n```\n\n```go\ntype KernelCredentialVaultItemStateStatus string\n```\nReady means all required fields have values, not that a login succeeded. Optional fields may remain unset.\n\n```go\nconst (\n\tKernelCredentialVaultItemStateStatusPendingCollection KernelCredentialVaultItemStateStatus = \"pending_collection\"\n\tKernelCredentialVaultItemStateStatusReady             KernelCredentialVaultItemStateStatus = \"ready\"\n)\n```\n\n```go\ntype KernelPaymentRequestVaultItemSpec struct {\n\t// Integer amount in minor currency units (at most 1000000), bound to the one-time\n\t// code.\n\tAmount int64 `json:\"amount\" api:\"required\"`\n\t// ISO 4217 code. Supported: aud, brl, cad, chf, czk, dkk, eur, gbp, hkd, inr, jpy,\n\t// krw, mxn, nok, nzd, pln, sek, sgd, usd, zar.\n\tCurrency     string `json:\"currency\" api:\"required\"`\n\tMerchantName string `json:\"merchant_name\" api:\"required\"`\n\t// Merchant checkout URL. Fill is allowed only on this URL's origin.\n\tMerchantURL string `json:\"merchant_url\" api:\"required\" format:\"uri\"`\n\t// Payment method ID from the wallet's payment_methods expansion.\n\tPaymentMethodID string `json:\"payment_method_id\" api:\"required\"`\n\t// Any of \"kernel\".\n\tProvider KernelPaymentRequestVaultItemSpecProvider `json:\"provider\" api:\"required\"`\n\t// Key of the Kernel wallet item that owns the payment method.\n\tWallet string `json:\"wallet\" api:\"required\"`\n\t// Actual merchant category when known. Omit rather than invent a category.\n\tMerchantCategory string `json:\"merchant_category\"`\n\t// Actual merchant MCC when known. Omit rather than invent a code. 0000 is not\n\t// accepted.\n\tMerchantCategoryCode string `json:\"merchant_category_code\"`\n\t// The merchant's ISO 3166-1 alpha-2 country code. Required for Visa cards, whose\n\t// one-time code is issued for the merchant's country.\n\tMerchantCountry string `json:\"merchant_country\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAmount               respjson.Field\n\t\tCurrency             respjson.Field\n\t\tMerchantName         respjson.Field\n\t\tMerchantURL          respjson.Field\n\t\tPaymentMethodID      respjson.Field\n\t\tProvider             respjson.Field\n\t\tWallet               respjson.Field\n\t\tMerchantCategory     respjson.Field\n\t\tMerchantCategoryCode respjson.Field\n\t\tMerchantCountry      respjson.Field\n\t\tExtraFields          map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOne live purchase funded by the Kernel wallet payment method named by payment\\_method\\_id. The method must be active and eligible when the request is created. The purchase is bound to that method; later operations cannot switch funding, and removing the method makes the purchase unusable rather than moving it to another card. Approval, issuance, fill and the alias fallback behave as described for KernelCardVaultItemSpec.\n\n```go\nfunc (r KernelPaymentRequestVaultItemSpec) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r KernelPaymentRequestVaultItemSpec) ToParam() KernelPaymentRequestVaultItemSpecParam\n```\nToParam converts this KernelPaymentRequestVaultItemSpec to a KernelPaymentRequestVaultItemSpecParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with KernelPaymentRequestVaultItemSpecParam.Overrides()\n\n```go\nfunc (r *KernelPaymentRequestVaultItemSpec) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype KernelPaymentRequestVaultItemSpecParam struct {\n\t// Integer amount in minor currency units (at most 1000000), bound to the one-time\n\t// code.\n\tAmount int64 `json:\"amount\" api:\"required\"`\n\t// ISO 4217 code. Supported: aud, brl, cad, chf, czk, dkk, eur, gbp, hkd, inr, jpy,\n\t// krw, mxn, nok, nzd, pln, sek, sgd, usd, zar.\n\tCurrency     string `json:\"currency\" api:\"required\"`\n\tMerchantName string `json:\"merchant_name\" api:\"required\"`\n\t// Merchant checkout URL. Fill is allowed only on this URL's origin.\n\tMerchantURL string `json:\"merchant_url\" api:\"required\" format:\"uri\"`\n\t// Payment method ID from the wallet's payment_methods expansion.\n\tPaymentMethodID string `json:\"payment_method_id\" api:\"required\"`\n\t// Any of \"kernel\".\n\tProvider KernelPaymentRequestVaultItemSpecProvider `json:\"provider,omitzero\" api:\"required\"`\n\t// Key of the Kernel wallet item that owns the payment method.\n\tWallet string `json:\"wallet\" api:\"required\"`\n\t// Actual merchant category when known. Omit rather than invent a category.\n\tMerchantCategory param.Opt[string] `json:\"merchant_category,omitzero\"`\n\t// Actual merchant MCC when known. Omit rather than invent a code. 0000 is not\n\t// accepted.\n\tMerchantCategoryCode param.Opt[string] `json:\"merchant_category_code,omitzero\"`\n\t// The merchant's ISO 3166-1 alpha-2 country code. Required for Visa cards, whose\n\t// one-time code is issued for the merchant's country.\n\tMerchantCountry param.Opt[string] `json:\"merchant_country,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nOne live purchase funded by the Kernel wallet payment method named by payment\\_method\\_id. The method must be active and eligible when the request is created. The purchase is bound to that method; later operations cannot switch funding, and removing the method makes the purchase unusable rather than moving it to another card. Approval, issuance, fill and the alias fallback behave as described for KernelCardVaultItemSpec.\n\nThe properties Amount, Currency, MerchantName, MerchantURL, PaymentMethodID, Provider, Wallet are required.\n\n```go\nfunc (r KernelPaymentRequestVaultItemSpecParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *KernelPaymentRequestVaultItemSpecParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype KernelPaymentRequestVaultItemSpecProvider string\n```\n\n```go\nconst (\n\tKernelPaymentRequestVaultItemSpecProviderKernel KernelPaymentRequestVaultItemSpecProvider = \"kernel\"\n)\n```\n\n```go\ntype KernelSingleUseCard struct {\n\tCvc      string `json:\"cvc\" api:\"required\"`\n\tExpMonth string `json:\"exp_month\" api:\"required\"`\n\tExpYear  string `json:\"exp_year\" api:\"required\"`\n\t// Card number; must pass the Luhn check.\n\tNumber string `json:\"number\" api:\"required\"`\n\t// Billing address filled with the billing\\_\\* fill fields. Never returned.\n\tBillingAddress SingleUseCardBillingAddress `json:\"billing_address\"`\n\t// Cardholder name, filled as billing_name.\n\tName string `json:\"name\"`\n\t// The caller's identifier for the card, such as the issuer's card ID. Returned\n\t// unchanged on reads.\n\tReference string `json:\"reference\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCvc            respjson.Field\n\t\tExpMonth       respjson.Field\n\t\tExpYear        respjson.Field\n\t\tNumber         respjson.Field\n\t\tBillingAddress respjson.Field\n\t\tName           respjson.Field\n\t\tReference      respjson.Field\n\t\tExtraFields    map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nDetails of a card the caller supplies, such as a single-use virtual card from its issuer. Mutually exclusive with payment\\_method\\_id. The card details are stored encrypted for fill and never returned; reads return only reference. Kernel deletes them shortly after the card's expires\\_at; deleting the card, its wallet or its vault deletes them immediately. A card whose expiry month has ended is rejected.\n\n```go\nfunc (r KernelSingleUseCard) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r KernelSingleUseCard) ToParam() KernelSingleUseCardParam\n```\nToParam converts this KernelSingleUseCard to a KernelSingleUseCardParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with KernelSingleUseCardParam.Overrides()\n\n```go\nfunc (r *KernelSingleUseCard) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype KernelSingleUseCardParam struct {\n\tCvc      string `json:\"cvc\" api:\"required\"`\n\tExpMonth string `json:\"exp_month\" api:\"required\"`\n\tExpYear  string `json:\"exp_year\" api:\"required\"`\n\t// Card number; must pass the Luhn check.\n\tNumber string `json:\"number\" api:\"required\"`\n\t// Cardholder name, filled as billing_name.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// The caller's identifier for the card, such as the issuer's card ID. Returned\n\t// unchanged on reads.\n\tReference param.Opt[string] `json:\"reference,omitzero\"`\n\t// Billing address filled with the billing\\_\\* fill fields. Never returned.\n\tBillingAddress SingleUseCardBillingAddressParam `json:\"billing_address,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nDetails of a card the caller supplies, such as a single-use virtual card from its issuer. Mutually exclusive with payment\\_method\\_id. The card details are stored encrypted for fill and never returned; reads return only reference. Kernel deletes them shortly after the card's expires\\_at; deleting the card, its wallet or its vault deletes them immediately. A card whose expiry month has ended is rejected.\n\nThe properties Cvc, ExpMonth, ExpYear, Number are required.\n\n```go\nfunc (r KernelSingleUseCardParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *KernelSingleUseCardParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype KernelWalletState struct {\n\t// Any of \"kernel\".\n\tProvider KernelWalletStateProvider `json:\"provider\" api:\"required\"`\n\t// connected means the wallet is usable. New wallets are created connected and\n\t// empty. A wallet holds zero or more cards as payment methods, added with\n\t// add_payment_method, removed with remove_payment_method and listed by the\n\t// payment_methods expansion; each can pay once it reports\n\t// capabilities.single_use_card.eligible. A wallet with no cards, before its first\n\t// card or after its last is removed, is still connected. A wallet created before\n\t// cards were added with add_payment_method holds a default card, ID card; while\n\t// that card's enrollment is pending, its card_enrollment action is on the card in\n\t// the payment_methods expansion, not on the wallet. pending_authorization,\n\t// degraded and reconnect_required appear only on a wallet created before cards\n\t// were payment methods and not yet upgraded. Reads preserve its stored state until\n\t// the operator upgrade; payment and deletion requests are refused until then.\n\t//\n\t// Any of \"pending_authorization\", \"connected\", \"reconnect_required\", \"degraded\".\n\tStatus       KernelWalletStateStatus `json:\"status\" api:\"required\"`\n\tStatusReason string                  `json:\"status_reason\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tProvider     respjson.Field\n\t\tStatus       respjson.Field\n\t\tStatusReason respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r KernelWalletState) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *KernelWalletState) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype KernelWalletStateProvider string\n```\n\n```go\nconst (\n\tKernelWalletStateProviderKernel KernelWalletStateProvider = \"kernel\"\n)\n```\n\n```go\ntype KernelWalletStateStatus string\n```\nconnected means the wallet is usable. New wallets are created connected and empty. A wallet holds zero or more cards as payment methods, added with add\\_payment\\_method, removed with remove\\_payment\\_method and listed by the payment\\_methods expansion; each can pay once it reports capabilities.single\\_use\\_card.eligible. A wallet with no cards, before its first card or after its last is removed, is still connected. A wallet created before cards were added with add\\_payment\\_method holds a default card, ID card; while that card's enrollment is pending, its card\\_enrollment action is on the card in the payment\\_methods expansion, not on the wallet. pending\\_authorization, degraded and reconnect\\_required appear only on a wallet created before cards were payment methods and not yet upgraded. Reads preserve its stored state until the operator upgrade; payment and deletion requests are refused until then.\n\n```go\nconst (\n\tKernelWalletStateStatusPendingAuthorization KernelWalletStateStatus = \"pending_authorization\"\n\tKernelWalletStateStatusConnected            KernelWalletStateStatus = \"connected\"\n\tKernelWalletStateStatusReconnectRequired    KernelWalletStateStatus = \"reconnect_required\"\n\tKernelWalletStateStatusDegraded             KernelWalletStateStatus = \"degraded\"\n)\n```\n\n```go\ntype KernelWalletVaultItemSpec struct {\n\t// Any of \"kernel\".\n\tProvider KernelWalletVaultItemSpecProvider `json:\"provider\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tProvider    respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nCards stored with Kernel-managed credentials, each a payment method of the wallet. Creation returns a connected wallet with no cards and no action. Add each card with the add\\*payment\\_method operation, which returns a card\\_enrollment action: the cardholder enters the card and their email on a Kernel-hosted page. Kernel then enrolls each card for an agentic network token when the issuer supports it. The card number never reaches Kernel. The connected wallet's payment\\_methods expansion lists the cards; capabilities.single\\_use\\_card.eligible is false, with a network\\_token\\*\\\\\\* reason, until the card has a network token, and authorize returns 400 for such a card unless Kernel supports checkout delivery without a network token for that card. In that case, fill types the checkout details. Visa purchases require the cardholder to complete a spend\\_approval action before Kernel issues a one-time code; Mastercard purchases need no hosted approval.\n\n```go\nfunc (r KernelWalletVaultItemSpec) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r KernelWalletVaultItemSpec) ToParam() KernelWalletVaultItemSpecParam\n```\nToParam converts this KernelWalletVaultItemSpec to a KernelWalletVaultItemSpecParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with KernelWalletVaultItemSpecParam.Overrides()\n\n```go\nfunc (r *KernelWalletVaultItemSpec) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype KernelWalletVaultItemSpecParam struct {\n\t// Any of \"kernel\".\n\tProvider KernelWalletVaultItemSpecProvider `json:\"provider,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nCards stored with Kernel-managed credentials, each a payment method of the wallet. Creation returns a connected wallet with no cards and no action. Add each card with the add\\*payment\\_method operation, which returns a card\\_enrollment action: the cardholder enters the card and their email on a Kernel-hosted page. Kernel then enrolls each card for an agentic network token when the issuer supports it. The card number never reaches Kernel. The connected wallet's payment\\_methods expansion lists the cards; capabilities.single\\_use\\_card.eligible is false, with a network\\_token\\*\\\\\\* reason, until the card has a network token, and authorize returns 400 for such a card unless Kernel supports checkout delivery without a network token for that card. In that case, fill types the checkout details. Visa purchases require the cardholder to complete a spend\\_approval action before Kernel issues a one-time code; Mastercard purchases need no hosted approval.\n\nThe property Provider is required.\n\n```go\nfunc (r KernelWalletVaultItemSpecParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *KernelWalletVaultItemSpecParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype KernelWalletVaultItemSpecProvider string\n```\n\n```go\nconst (\n\tKernelWalletVaultItemSpecProviderKernel KernelWalletVaultItemSpecProvider = \"kernel\"\n)\n```\n\n```go\ntype LinkBalanceSetupVaultItemOperationRequestParam struct {\n\t// Any of \"link_balance_setup\".\n\tType LinkBalanceSetupVaultItemOperationRequestType `json:\"type,omitzero\" api:\"required\"`\n\t// Balance, in cents, the user should end up with. The page prefills the amount to\n\t// add to reach it and skips adding money when the balance already covers it. Whole\n\t// dollars only. Link refuses links that ask the user to add more than $150 at\n\t// once.\n\tDesiredBalanceAmount param.Opt[int64] `json:\"desired_balance_amount,omitzero\"`\n\t// Approval threshold, in cents, to prefill. Link skips approval only for spend\n\t// requests created under its approval policy, which Kernel cards do not use yet.\n\t// Whole dollars, at most $500 because a single spend request cannot exceed $500.\n\t// When set the page always shows the threshold step; when omitted it skips it.\n\tDesiredTransactionLimit param.Opt[int64] `json:\"desired_transaction_limit,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nGet the Link page where the user sets up Link balance, adds money to it, and chooses an approval threshold for this wallet's Link client. Kernel does not yet create spend requests under that approval policy, so cards from this wallet still require the user's approval even when they are paid from the balance. Available on connected Link wallets. Kernel first reads Link's user info and returns 409 unless Link reports eligible\\_for\\_balance as true, which depends on both the user and the wallet's Link client. Both amounts are suggestions the page prefills; the user makes the final choice. Send only what needs to change: desired\\_balance\\_amount to ask for money to be added, desired\\_transaction\\_limit to set or change the threshold, or both for first-time setup.\n\nThe property Type is required.\n\n```go\nfunc (r LinkBalanceSetupVaultItemOperationRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *LinkBalanceSetupVaultItemOperationRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype LinkBalanceSetupVaultItemOperationRequestType string\n```\n\n```go\nconst (\n\tLinkBalanceSetupVaultItemOperationRequestTypeLinkBalanceSetup LinkBalanceSetupVaultItemOperationRequestType = \"link_balance_setup\"\n)\n```\n\n```go\ntype LinkBalanceSetupVaultItemOperationResult struct {\n\t// Any of \"link_balance_setup\".\n\tType LinkBalanceSetupVaultItemOperationResultType `json:\"type\" api:\"required\"`\n\tURL  string                                       `json:\"url\" api:\"required\" format:\"uri\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tType        respjson.Field\n\t\tURL         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nShare url with the user; only the user can complete the page. It does not expire and is the same for first-time setup, adding money and changing the threshold. Observe the result through the payment\\_methods expansion (a method with type balance and its balance.available) rather than assuming the user finished.\n\n```go\nfunc (r LinkBalanceSetupVaultItemOperationResult) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *LinkBalanceSetupVaultItemOperationResult) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype LinkBalanceSetupVaultItemOperationResultType string\n```\n\n```go\nconst (\n\tLinkBalanceSetupVaultItemOperationResultTypeLinkBalanceSetup LinkBalanceSetupVaultItemOperationResultType = \"link_balance_setup\"\n)\n```\n\n```go\ntype LinkShippingAddress struct {\n\t// Link shipping address ID.\n\tID        string `json:\"id\" api:\"required\"`\n\tIsDefault bool   `json:\"is_default\" api:\"required\"`\n\tNickname  string `json:\"nickname\" api:\"required\"`\n\t// Link's nullable postal address fields. Omitted from the shipping address when\n\t// Link reports null.\n\tAddress LinkShippingAddressAddress `json:\"address\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tIsDefault   respjson.Field\n\t\tNickname    respjson.Field\n\t\tAddress     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOne entry of Link's \\`GET /shipping\\_addresses\\` response, passed through as Link reports it. Kernel never stores it.\n\n```go\nfunc (r LinkShippingAddress) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *LinkShippingAddress) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype LinkShippingAddressAddress struct {\n\t// State, province or region.\n\tAdministrativeArea string `json:\"administrative_area\" api:\"required\"`\n\tCountryCode        string `json:\"country_code\" api:\"required\"`\n\tDependentLocality  string `json:\"dependent_locality\" api:\"required\"`\n\tLine1              string `json:\"line_1\" api:\"required\"`\n\tLine2              string `json:\"line_2\" api:\"required\"`\n\t// City or town.\n\tLocality    string `json:\"locality\" api:\"required\"`\n\tName        string `json:\"name\" api:\"required\"`\n\tPostalCode  string `json:\"postal_code\" api:\"required\"`\n\tSortingCode string `json:\"sorting_code\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAdministrativeArea respjson.Field\n\t\tCountryCode        respjson.Field\n\t\tDependentLocality  respjson.Field\n\t\tLine1              respjson.Field\n\t\tLine2              respjson.Field\n\t\tLocality           respjson.Field\n\t\tName               respjson.Field\n\t\tPostalCode         respjson.Field\n\t\tSortingCode        respjson.Field\n\t\tExtraFields        map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nLink's nullable postal address fields. Omitted from the shipping address when Link reports null.\n\n```go\nfunc (r LinkShippingAddressAddress) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *LinkShippingAddressAddress) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype LinkUserInfo struct {\n\t// Stable Link user ID.\n\tID        string `json:\"id\" api:\"required\"`\n\tEmail     string `json:\"email\" api:\"required\"`\n\tFirstName string `json:\"first_name\" api:\"required\"`\n\tLastName  string `json:\"last_name\" api:\"required\"`\n\tName      string `json:\"name\" api:\"required\"`\n\tPhone     string `json:\"phone\" api:\"required\"`\n\t// The Link user's postal address. Omitted when Link reports none.\n\tAddress LinkUserInfoAddress `json:\"address\"`\n\t// Link's agent wallet spend limits, per transaction and over rolling periods.\n\tAgentWalletSpendLimits LinkUserInfoAgentWalletSpendLimits `json:\"agent_wallet_spend_limits\"`\n\t// Verification Link requires from the user before the agent wallet can spend.\n\tAgentWalletStepUp LinkUserInfoAgentWalletStepUp `json:\"agent_wallet_step_up\"`\n\t// Lowercase ISO currency Link applies to a spend request created without one.\n\tDefaultSpendRequestCurrency string `json:\"default_spend_request_currency\"`\n\t// Whether the user can fund purchases from a Link balance.\n\tEligibleForBalance bool `json:\"eligible_for_balance\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                          respjson.Field\n\t\tEmail                       respjson.Field\n\t\tFirstName                   respjson.Field\n\t\tLastName                    respjson.Field\n\t\tName                        respjson.Field\n\t\tPhone                       respjson.Field\n\t\tAddress                     respjson.Field\n\t\tAgentWalletSpendLimits      respjson.Field\n\t\tAgentWalletStepUp           respjson.Field\n\t\tDefaultSpendRequestCurrency respjson.Field\n\t\tEligibleForBalance          respjson.Field\n\t\tExtraFields                 map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nLink's \\`GET /userinfo\\` response for the connected wallet, passed through as Link reports it when the \\`link\\_user\\_info\\` expansion is requested. Kernel never stores it. Null fields are null at Link; omitted fields were not reported. Amounts are in the minor unit of \\`default\\_spend\\_request\\_currency\\`.\n\n```go\nfunc (r LinkUserInfo) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *LinkUserInfo) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype LinkUserInfoAddress struct {\n\tCity       string `json:\"city\" api:\"required\"`\n\tCountry    string `json:\"country\" api:\"required\"`\n\tLine1      string `json:\"line1\" api:\"required\"`\n\tLine2      string `json:\"line2\" api:\"required\"`\n\tPostalCode string `json:\"postal_code\" api:\"required\"`\n\tState      string `json:\"state\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCity        respjson.Field\n\t\tCountry     respjson.Field\n\t\tLine1       respjson.Field\n\t\tLine2       respjson.Field\n\t\tPostalCode  respjson.Field\n\t\tState       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nThe Link user's postal address. Omitted when Link reports none.\n\n```go\nfunc (r LinkUserInfoAddress) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *LinkUserInfoAddress) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype LinkUserInfoAgentWalletSpendLimits struct {\n\tDaily          LinkUserInfoAgentWalletSpendLimitsDaily          `json:\"daily\" api:\"required\"`\n\tPerTransaction LinkUserInfoAgentWalletSpendLimitsPerTransaction `json:\"per_transaction\" api:\"required\"`\n\tThirtyDay      LinkUserInfoAgentWalletSpendLimitsThirtyDay      `json:\"thirty_day\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDaily          respjson.Field\n\t\tPerTransaction respjson.Field\n\t\tThirtyDay      respjson.Field\n\t\tExtraFields    map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nLink's agent wallet spend limits, per transaction and over rolling periods.\n\n```go\nfunc (r LinkUserInfoAgentWalletSpendLimits) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *LinkUserInfoAgentWalletSpendLimits) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype LinkUserInfoAgentWalletSpendLimitsDaily struct {\n\t// Null means unlimited.\n\tLimit int64 `json:\"limit\" api:\"required\"`\n\t// Amount still available in the rolling period; null means unlimited.\n\tRemaining int64 `json:\"remaining\" api:\"required\"`\n\t// Amount already spent in the rolling period.\n\tUsed int64 `json:\"used\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tLimit       respjson.Field\n\t\tRemaining   respjson.Field\n\t\tUsed        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r LinkUserInfoAgentWalletSpendLimitsDaily) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *LinkUserInfoAgentWalletSpendLimitsDaily) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype LinkUserInfoAgentWalletSpendLimitsPerTransaction struct {\n\t// Null means unlimited.\n\tLimit int64 `json:\"limit\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tLimit       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r LinkUserInfoAgentWalletSpendLimitsPerTransaction) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *LinkUserInfoAgentWalletSpendLimitsPerTransaction) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype LinkUserInfoAgentWalletSpendLimitsThirtyDay struct {\n\t// Null means unlimited.\n\tLimit int64 `json:\"limit\" api:\"required\"`\n\t// Amount still available in the rolling period; null means unlimited.\n\tRemaining int64 `json:\"remaining\" api:\"required\"`\n\t// Amount already spent in the rolling period.\n\tUsed int64 `json:\"used\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tLimit       respjson.Field\n\t\tRemaining   respjson.Field\n\t\tUsed        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r LinkUserInfoAgentWalletSpendLimitsThirtyDay) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *LinkUserInfoAgentWalletSpendLimitsThirtyDay) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype LinkUserInfoAgentWalletStepUp struct {\n\t// URL where the user completes verification; null when no action is available.\n\tActionURL string `json:\"action_url\" api:\"required\"`\n\t// Link status such as not_required, ssn_verification, identity_verification,\n\t// contact_support or complete.\n\tStatus string `json:\"status\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tActionURL   respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVerification Link requires from the user before the agent wallet can spend.\n\n```go\nfunc (r LinkUserInfoAgentWalletStepUp) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *LinkUserInfoAgentWalletStepUp) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype LogEvent = shared.LogEvent\n```\nA log entry from the application.\n\nThis is an alias to an internal type.\n\n```go\ntype LoginResponse struct {\n\t// Auth connection ID\n\tID string `json:\"id\" api:\"required\"`\n\t// When the login flow expires\n\tFlowExpiresAt time.Time `json:\"flow_expires_at\" api:\"required\" format:\"date-time\"`\n\t// Type of login flow started\n\t//\n\t// Any of \"LOGIN\", \"REAUTH\".\n\tFlowType LoginResponseFlowType `json:\"flow_type\" api:\"required\"`\n\t// URL to redirect user to for login\n\tHostedURL string `json:\"hosted_url\" api:\"required\" format:\"uri\"`\n\t// One-time code for handoff (internal use)\n\tHandoffCode string `json:\"handoff_code\"`\n\t// Browser live view URL for watching the login flow\n\tLiveViewURL string `json:\"live_view_url\" format:\"uri\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID            respjson.Field\n\t\tFlowExpiresAt respjson.Field\n\t\tFlowType      respjson.Field\n\t\tHostedURL     respjson.Field\n\t\tHandoffCode   respjson.Field\n\t\tLiveViewURL   respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nResponse from starting a login flow\n\n```go\nfunc (r LoginResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *LoginResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype LoginResponseFlowType string\n```\nType of login flow started\n\n```go\nconst (\n\tLoginResponseFlowTypeLogin  LoginResponseFlowType = \"LOGIN\"\n\tLoginResponseFlowTypeReauth LoginResponseFlowType = \"REAUTH\"\n)\n```\n\n```go\ntype LookupRequestParam struct {\n\t// Public HTTP(S) URL to look up.\n\tURL string `json:\"url\" api:\"required\" format:\"uri\"`\n\t// ISO 3166 country codes Kernel may use when returning a proxy configuration. When\n\t// omitted, Kernel uses its default country selection.\n\tAllowedProxyCountries []string `json:\"allowed_proxy_countries,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property URL is required.\n\n```go\nfunc (r LookupRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *LookupRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype LookupResponse struct {\n\t// A recommendation or a structured no-recommendation result.\n\tRecommendation RecommendationResultUnion `json:\"recommendation\" api:\"required\"`\n\tTarget         Target                    `json:\"target\" api:\"required\"`\n\t// Working configurations for the target, ordered with the recommended\n\t// configuration first.\n\tWorkingConfigurations []Recommendation `json:\"working_configurations\" api:\"required\"`\n\t// Short advisory markdown to facilitate navigating this target. Returned even when\n\t// no configuration reached the target, since knowing what prevented success is\n\t// useful without a configuration. Not verified against this target. Null when\n\t// nothing applicable was observed or no notes exist.\n\tGuidance string `json:\"guidance\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tRecommendation        respjson.Field\n\t\tTarget                respjson.Field\n\t\tWorkingConfigurations respjson.Field\n\t\tGuidance              respjson.Field\n\t\tExtraFields           map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r LookupResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *LookupResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuth struct {\n\t// Unique identifier for the auth connection\n\tID string `json:\"id\" api:\"required\"`\n\t// Target domain for authentication\n\tDomain string `json:\"domain\" api:\"required\"`\n\t// Whether a login blocked by a CAPTCHA the browser cannot solve pauses at\n\t// AWAITING_HUMAN_INTERVENTION so a person can complete it in the live view.\n\tHitl bool `json:\"hitl\" api:\"required\"`\n\t// Name of the profile associated with this auth connection\n\tProfileName string `json:\"profile_name\" api:\"required\"`\n\t// Whether to record browser session replays for this connection by default. Useful\n\t// for debugging login flows. Can be overridden per-login.\n\tRecordSession bool `json:\"record_session\" api:\"required\"`\n\t// Whether credentials are saved after every successful login. One-time codes\n\t// (TOTP, SMS, etc.) are not saved.\n\tSaveCredentials bool `json:\"save_credentials\" api:\"required\"`\n\t// Last known authentication status of the managed profile. An inconclusive health\n\t// check preserves this status and does not verify the current session.\n\t//\n\t// Any of \"AUTHENTICATED\", \"NEEDS_AUTH\".\n\tStatus ManagedAuthStatus `json:\"status\" api:\"required\"`\n\t// Additional hostname roots valid for this auth flow, besides the primary domain.\n\t// Each value allows credential entry on that exact hostname and its subdomains.\n\t// Leading `www.` and `*.` labels are normalized away. When omitted or empty,\n\t// credential entry is unrestricted.\n\t//\n\t// The following SSO/OAuth provider domains are automatically allowed by default\n\t// and do not need to be specified:\n\t//\n\t// - Google: accounts.google.com\n\t// - Microsoft/Azure AD: login.microsoftonline.com, login.live.com\n\t// - Okta: _.okta.com, _.oktapreview.com\n\t// - Auth0: _.auth0.com, _.us.auth0.com, _.eu.auth0.com, _.au.auth0.com\n\t// - Apple: appleid.apple.com\n\t// - GitHub: github.com\n\t// - Facebook/Meta: www.facebook.com\n\t// - LinkedIn: www.linkedin.com\n\t// - Amazon Cognito: \\*.amazoncognito.com\n\t// - OneLogin: \\*.onelogin.com\n\t// - Ping Identity: _.pingone.com, _.pingidentity.com\n\tAllowedDomains []string `json:\"allowed_domains\"`\n\t// Whether automatic re-authentication is permitted for this connection. This is an\n\t// opt-in flag only — it does not check whether re-auth is actually feasible. Even\n\t// when true, re-auth only runs when the system has what it needs to perform it\n\t// (for example, saved credentials for the required login fields), and only after a\n\t// scheduled health check detects an expired session — so this flag has no effect\n\t// when `health_checks` is false. When false, expired sessions detected by a health\n\t// check are marked as `NEEDS_AUTH` instead of attempting re-auth.\n\tAutoReauth bool `json:\"auto_reauth\"`\n\t// Default browser configuration for login, reauthentication, and health-check\n\t// sessions.\n\tBrowser ManagedAuthBrowserConfig `json:\"browser\"`\n\t// ID of the underlying browser session driving the current flow (present when flow\n\t// in progress). Use this to inspect or terminate the browser session via the\n\t// `/browsers` API.\n\tBrowserSessionID string `json:\"browser_session_id\" api:\"nullable\"`\n\t// Deprecated. Use browser.telemetry. Retained during migration for existing\n\t// clients.\n\t//\n\t// Deprecated: deprecated\n\tBrowserTelemetry ManagedAuthBrowserTelemetry `json:\"browser_telemetry\" api:\"nullable\"`\n\t// Whether this connection's stored requirements are eligible for unattended\n\t// re-authentication. A true value can represent either fully satisfiable\n\t// requirements or a best-effort attempt. It does not account for whether automatic\n\t// re-authentication is enabled or parent workflow state such as an active flow or\n\t// circuit-breaker cooldown, so it does not guarantee an attempt on the next health\n\t// check. See `can_reauth_reason` for the specific outcome.\n\tCanReauth bool `json:\"can_reauth\"`\n\t// Machine-readable reason for the current value of `can_reauth`. Affirmative\n\t// values (requirements are eligible for unattended re-authentication):\n\t//\n\t// - `external_credential` — an external credential provider is attached\n\t// - `cua_has_credential` — CUA flow with a stored credential\n\t// - `has_credential` — Kernel credential is attached (optimistic; plan viability\n\t//   not checked)\n\t// - `viable_plans_found` — at least one stored login plan can be replayed\n\t// - `no_requirements_recorded` — no recorded credential requirements to fail\n\t//   against\n\t// - `totp_reauth_allowed` — TOTP is the only recorded requirement and a stored\n\t//   secret can generate the code\n\t// - `optimistic_totp_attempt` — TOTP was previously required but no reusable\n\t//   secret is stored; the connection remains eligible for a\n\t//   circuit-breaker-bounded attempt because the site may not challenge returning\n\t//   sessions\n\t// - `requirements_satisfiable` — recorded requirements contain no recognized\n\t//   blocker\n\t//\n\t// Negative values (a human must complete the login flow):\n\t//\n\t// - `no_prior_successful_login` — connection has never completed a successful\n\t//   login\n\t// - `no_credential` — no Kernel or external credential attached\n\t// - `no_viable_plans` — credential attached but no replayable login plan exists\n\t//   yet\n\t// - `viable_plans_require_external_action` — stored plans need an external step\n\t//   (email link, push, etc.)\n\t// - `requires_external_action` — recorded requirements include an external step\n\t// - `requires_totp_without_secret` — flow needs a TOTP code but no TOTP secret is\n\t//   stored\n\t// - `requires_sms_code` — flow needs an SMS code that cannot be received\n\t//   automatically\n\t// - `requires_email_code` — flow needs an email code that cannot be received\n\t//   automatically\n\t// - `requires_customer_input` — flow needs another field or choice that is\n\t//   unavailable during unattended re-authentication\n\t//\n\t// Any of \"external_credential\", \"cua_has_credential\", \"has_credential\",\n\t// \"viable_plans_found\", \"no_requirements_recorded\", \"totp_reauth_allowed\",\n\t// \"optimistic_totp_attempt\", \"requirements_satisfiable\",\n\t// \"no_prior_successful_login\", \"no_credential\", \"no_viable_plans\",\n\t// \"viable_plans_require_external_action\", \"requires_external_action\",\n\t// \"requires_totp_without_secret\", \"requires_sms_code\", \"requires_email_code\",\n\t// \"requires_customer_input\".\n\tCanReauthReason ManagedAuthCanReauthReason `json:\"can_reauth_reason\"`\n\t// Canonical choices awaiting selection. Prefer this over pending_sso_buttons,\n\t// mfa_options, and sign_in_options when present.\n\tChoices []ManagedAuthChoice `json:\"choices\" api:\"nullable\"`\n\t// Reference to credentials for the auth connection. Use one of:\n\t//\n\t// - { name } for Kernel credentials\n\t// - { provider, path } for external provider item\n\t// - { provider, auto: true } for external provider domain lookup\n\tCredential ManagedAuthCredential `json:\"credential\"`\n\t// Fields awaiting input (present when flow_step=awaiting_input; may also be\n\t// present with awaiting_external_action as fallback actions)\n\tDiscoveredFields []ManagedAuthDiscoveredField `json:\"discovered_fields\" api:\"nullable\"`\n\t// Machine-readable error code (present when flow_status=failed)\n\tErrorCode string `json:\"error_code\" api:\"nullable\"`\n\t// Error message (present when flow_status=failed)\n\tErrorMessage string `json:\"error_message\" api:\"nullable\"`\n\t// Instructions for external action (present when\n\t// flow_step=awaiting_external_action)\n\tExternalActionMessage string `json:\"external_action_message\" api:\"nullable\"`\n\t// Canonical fields awaiting input. Prefer this over discovered_fields when\n\t// present.\n\tFields []ManagedAuthField `json:\"fields\" api:\"nullable\"`\n\t// When the current flow expires (null when no flow in progress). A flow past this\n\t// timestamp is no longer valid and its `flow_status` will be `EXPIRED`. Clients\n\t// may start a new login to supersede a stale `IN_PROGRESS` flow past this\n\t// timestamp.\n\tFlowExpiresAt time.Time `json:\"flow_expires_at\" api:\"nullable\" format:\"date-time\"`\n\t// Current flow status (null when no flow in progress)\n\t//\n\t// Any of \"IN_PROGRESS\", \"SUCCESS\", \"FAILED\", \"EXPIRED\", \"CANCELED\".\n\tFlowStatus ManagedAuthFlowStatus `json:\"flow_status\" api:\"nullable\"`\n\t// Current step in the flow (null when no flow in progress)\n\t//\n\t// Any of \"DISCOVERING\", \"AWAITING_INPUT\", \"AWAITING_EXTERNAL_ACTION\",\n\t// \"AWAITING_HUMAN_INTERVENTION\", \"SUBMITTING\", \"COMPLETED\".\n\tFlowStep ManagedAuthFlowStep `json:\"flow_step\" api:\"nullable\"`\n\t// Type of the current flow (null when no flow in progress)\n\t//\n\t// Any of \"LOGIN\", \"REAUTH\".\n\tFlowType ManagedAuthFlowType `json:\"flow_type\" api:\"nullable\"`\n\t// Interval in seconds between automatic health checks. When set, the system\n\t// periodically verifies the authentication status and triggers re-authentication\n\t// if needed. Maximum is 86400 (24 hours). Default is 3600 (1 hour) or your plan\n\t// minimum, whichever is larger. The minimum depends on your plan: Enterprise: 300\n\t// (5 minutes), Startup: 1200 (20 minutes), Hobbyist: 3600 (1 hour), Free: 21600 (6\n\t// hours).\n\tHealthCheckInterval int64 `json:\"health_check_interval\" api:\"nullable\"`\n\t// Why health checks cannot verify this connection. Present when health checks are\n\t// enabled but no auth check URL is available; a recent last_auth_check_at is not\n\t// evidence of a valid session.\n\t//\n\t// Any of \"no_auth_check_url\".\n\tHealthCheckUnavailableReason ManagedAuthHealthCheckUnavailableReason `json:\"health_check_unavailable_reason\"`\n\t// Whether periodic health checks are enabled for this connection. When false, the\n\t// system will not automatically verify authentication status, and `auto_reauth`\n\t// has no effect on the automatic flow (since re-auth is only triggered by a failed\n\t// scheduled health check). Manually triggering a health check via the API still\n\t// works regardless of this setting.\n\tHealthChecks bool `json:\"health_checks\"`\n\t// URL to redirect user to for hosted login (present when flow in progress)\n\tHostedURL string `json:\"hosted_url\" api:\"nullable\" format:\"uri\"`\n\t// Opaque identifier for the current canonical interaction. Required when\n\t// submitting fields or choices and changes for each new actionable pause.\n\tInteractionID string `json:\"interaction_id\" api:\"nullable\"`\n\t// Deprecated alias for `last_auth_check_at`. Despite the name, this is the last\n\t// health-check timestamp, not the last successful authentication. Use\n\t// `last_auth_check_at` instead.\n\t//\n\t// Deprecated: deprecated\n\tLastAuthAt time.Time `json:\"last_auth_at\" format:\"date-time\"`\n\t// When the most recent auth health check ran for this connection, regardless of\n\t// outcome. Updated on every health check and does not by itself indicate that the\n\t// profile is currently authenticated - use `status` for that. May be newer than\n\t// `flow_expires_at` when a flow is still in progress because health checks\n\t// continue to run in parallel.\n\tLastAuthCheckAt time.Time `json:\"last_auth_check_at\" format:\"date-time\"`\n\t// Browser live view URL for debugging (present when flow in progress)\n\tLiveViewURL string `json:\"live_view_url\" api:\"nullable\" format:\"uri\"`\n\t// Optional login page URL to skip discovery\n\tLoginURL string `json:\"login_url\" format:\"uri\"`\n\t// MFA method options (present when flow_step=awaiting_input; may also be present\n\t// with awaiting_external_action as fallback actions)\n\tMfaOptions []ManagedAuthMfaOption `json:\"mfa_options\" api:\"nullable\"`\n\t// SSO buttons available (present when flow_step=awaiting_input; may also be\n\t// present with awaiting_external_action as fallback actions)\n\tPendingSSOButtons []ManagedAuthPendingSSOButton `json:\"pending_sso_buttons\" api:\"nullable\"`\n\t// URL where the browser landed after successful login\n\tPostLoginURL string `json:\"post_login_url\" format:\"uri\"`\n\t// Deprecated. Read browser.proxy instead. Retained during migration for existing\n\t// clients.\n\t//\n\t// Deprecated: deprecated\n\tProxyID string `json:\"proxy_id\"`\n\t// Non-MFA choices presented during the auth flow, such as account selection or org\n\t// pickers (present when flow_step=awaiting_input; may also be present with\n\t// awaiting_external_action as fallback actions).\n\tSignInOptions []ManagedAuthSignInOption `json:\"sign_in_options\" api:\"nullable\"`\n\t// SSO provider being used (e.g., google, github, microsoft)\n\tSSOProvider string `json:\"sso_provider\" api:\"nullable\"`\n\t// Visible error message from the website (e.g., 'Incorrect password'). Present\n\t// when the website displays an error during login.\n\tWebsiteError string `json:\"website_error\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                           respjson.Field\n\t\tDomain                       respjson.Field\n\t\tHitl                         respjson.Field\n\t\tProfileName                  respjson.Field\n\t\tRecordSession                respjson.Field\n\t\tSaveCredentials              respjson.Field\n\t\tStatus                       respjson.Field\n\t\tAllowedDomains               respjson.Field\n\t\tAutoReauth                   respjson.Field\n\t\tBrowser                      respjson.Field\n\t\tBrowserSessionID             respjson.Field\n\t\tBrowserTelemetry             respjson.Field\n\t\tCanReauth                    respjson.Field\n\t\tCanReauthReason              respjson.Field\n\t\tChoices                      respjson.Field\n\t\tCredential                   respjson.Field\n\t\tDiscoveredFields             respjson.Field\n\t\tErrorCode                    respjson.Field\n\t\tErrorMessage                 respjson.Field\n\t\tExternalActionMessage        respjson.Field\n\t\tFields                       respjson.Field\n\t\tFlowExpiresAt                respjson.Field\n\t\tFlowStatus                   respjson.Field\n\t\tFlowStep                     respjson.Field\n\t\tFlowType                     respjson.Field\n\t\tHealthCheckInterval          respjson.Field\n\t\tHealthCheckUnavailableReason respjson.Field\n\t\tHealthChecks                 respjson.Field\n\t\tHostedURL                    respjson.Field\n\t\tInteractionID                respjson.Field\n\t\tLastAuthAt                   respjson.Field\n\t\tLastAuthCheckAt              respjson.Field\n\t\tLiveViewURL                  respjson.Field\n\t\tLoginURL                     respjson.Field\n\t\tMfaOptions                   respjson.Field\n\t\tPendingSSOButtons            respjson.Field\n\t\tPostLoginURL                 respjson.Field\n\t\tProxyID                      respjson.Field\n\t\tSignInOptions                respjson.Field\n\t\tSSOProvider                  respjson.Field\n\t\tWebsiteError                 respjson.Field\n\t\tExtraFields                  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nManaged authentication that keeps a profile logged into a specific domain. Flow fields (flow\\_status, flow\\_step, discovered\\_fields, mfa\\_options) reflect the most recent login flow and are null when no flow has been initiated.\n\n```go\nfunc (r ManagedAuth) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManagedAuth) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthBrowserConfig struct {\n\t// Automatic CAPTCHA solving for managed auth browser sessions. When provided\n\t// without stealth, stealth no longer defaults to true. Enabling it does not select\n\t// a proxy: a connection on direct egress stays there; set proxy.mode=default for\n\t// Kernel's default stealth proxy. Turning it off on a connection that uses\n\t// Kernel's default stealth proxy moves it to direct egress. Omit on update to keep\n\t// the current setting, or on login to inherit it.\n\tCaptchaSolver BrowserCaptchaSolver `json:\"captcha_solver\"`\n\t// Browser locale for the connection's login, reauthentication, and health-check\n\t// sessions. Set on create or update; not supported on login.\n\tLocation ManagedAuthBrowserLocation `json:\"location\"`\n\t// Proxy configuration for managed auth browser sessions. Omit on create to derive\n\t// the default from stealth, or on update and login to preserve or inherit the\n\t// connection default.\n\tProxy BrowserProxyConfig `json:\"proxy\"`\n\t// Browser region. Omit on create to use us-east, on update to keep the current\n\t// region, or on login to inherit it. Login overrides apply only to that login.\n\t// Non-default regions require an eligible plan and organization access.\n\t//\n\t// Any of \"us-east\", \"us-west\", \"eu-west\", \"ap-southeast\".\n\tRegion ManagedAuthBrowserConfigRegion `json:\"region\"`\n\t// Whether managed auth browser sessions use stealth mode: CAPTCHA solving with\n\t// Kernel's default stealth proxy unless proxy is set. Defaults to true when\n\t// neither stealth nor captcha_solver is provided. Cannot be combined with\n\t// captcha_solver.enabled=false. Setting it does not change an existing proxy,\n\t// including direct egress; use proxy.mode=default for Kernel's default stealth\n\t// proxy. Reports true for a connection with only captcha_solver enabled; proxy\n\t// shows its egress. Deprecated in favor of captcha_solver and proxy.\n\t//\n\t// Deprecated: deprecated\n\tStealth bool `json:\"stealth\"`\n\t// Browser telemetry configuration using the same semantics as browser create.\n\tTelemetry ManagedAuthBrowserConfigTelemetry `json:\"telemetry\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCaptchaSolver respjson.Field\n\t\tLocation      respjson.Field\n\t\tProxy         respjson.Field\n\t\tRegion        respjson.Field\n\t\tStealth       respjson.Field\n\t\tTelemetry     respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nBrowser configuration applied to browser sessions created for a managed auth connection. Managed auth controls the profile, headless mode, timeout, start URL, kiosk mode, and viewport.\n\n```go\nfunc (r ManagedAuthBrowserConfig) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r ManagedAuthBrowserConfig) ToParam() ManagedAuthBrowserConfigParam\n```\nToParam converts this ManagedAuthBrowserConfig to a ManagedAuthBrowserConfigParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAuthBrowserConfigParam.Overrides()\n\n```go\nfunc (r *ManagedAuthBrowserConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthBrowserConfigParam struct {\n\t// Whether managed auth browser sessions use stealth mode: CAPTCHA solving with\n\t// Kernel's default stealth proxy unless proxy is set. Defaults to true when\n\t// neither stealth nor captcha_solver is provided. Cannot be combined with\n\t// captcha_solver.enabled=false. Setting it does not change an existing proxy,\n\t// including direct egress; use proxy.mode=default for Kernel's default stealth\n\t// proxy. Reports true for a connection with only captcha_solver enabled; proxy\n\t// shows its egress. Deprecated in favor of captcha_solver and proxy.\n\t//\n\t// Deprecated: deprecated\n\tStealth param.Opt[bool] `json:\"stealth,omitzero\"`\n\t// Browser telemetry configuration using the same semantics as browser create.\n\tTelemetry ManagedAuthBrowserConfigTelemetryParam `json:\"telemetry,omitzero\"`\n\t// Automatic CAPTCHA solving for managed auth browser sessions. When provided\n\t// without stealth, stealth no longer defaults to true. Enabling it does not select\n\t// a proxy: a connection on direct egress stays there; set proxy.mode=default for\n\t// Kernel's default stealth proxy. Turning it off on a connection that uses\n\t// Kernel's default stealth proxy moves it to direct egress. Omit on update to keep\n\t// the current setting, or on login to inherit it.\n\tCaptchaSolver BrowserCaptchaSolverParam `json:\"captcha_solver,omitzero\"`\n\t// Browser locale for the connection's login, reauthentication, and health-check\n\t// sessions. Set on create or update; not supported on login.\n\tLocation ManagedAuthBrowserLocationParam `json:\"location,omitzero\"`\n\t// Proxy configuration for managed auth browser sessions. Omit on create to derive\n\t// the default from stealth, or on update and login to preserve or inherit the\n\t// connection default.\n\tProxy BrowserProxyConfigParam `json:\"proxy,omitzero\"`\n\t// Browser region. Omit on create to use us-east, on update to keep the current\n\t// region, or on login to inherit it. Login overrides apply only to that login.\n\t// Non-default regions require an eligible plan and organization access.\n\t//\n\t// Any of \"us-east\", \"us-west\", \"eu-west\", \"ap-southeast\".\n\tRegion ManagedAuthBrowserConfigRegion `json:\"region,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nBrowser configuration applied to browser sessions created for a managed auth connection. Managed auth controls the profile, headless mode, timeout, start URL, kiosk mode, and viewport.\n\n```go\nfunc (r ManagedAuthBrowserConfigParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ManagedAuthBrowserConfigParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthBrowserConfigRegion string\n```\nBrowser region. Omit on create to use us-east, on update to keep the current region, or on login to inherit it. Login overrides apply only to that login. Non-default regions require an eligible plan and organization access.\n\n```go\nconst (\n\tManagedAuthBrowserConfigRegionUsEast      ManagedAuthBrowserConfigRegion = \"us-east\"\n\tManagedAuthBrowserConfigRegionUsWest      ManagedAuthBrowserConfigRegion = \"us-west\"\n\tManagedAuthBrowserConfigRegionEuWest      ManagedAuthBrowserConfigRegion = \"eu-west\"\n\tManagedAuthBrowserConfigRegionApSoutheast ManagedAuthBrowserConfigRegion = \"ap-southeast\"\n)\n```\n\n```go\ntype ManagedAuthBrowserConfigTelemetry struct {\n\t// Per-category capture flags. The operational categories (control, connection,\n\t// system, captcha) are captured whenever telemetry is enabled; set one to\n\t// enabled=false to opt out. The CDP categories (console, network, page,\n\t// interaction), screenshot and platform are off by default; set enabled=true to\n\t// opt in. On create, provided categories layer onto the default set. On update,\n\t// provided categories merge onto the session's current config; when no telemetry\n\t// is active this falls back to the default set (matching create). If browser is\n\t// omitted or empty, the default set is used. A browser config that disables every\n\t// category stops capture on update and starts no capture on create.\n\tBrowser BrowserTelemetryCategoriesConfig `json:\"browser\"`\n\t// Request shortcut for browser telemetry capture. True enables capture; with no\n\t// browser category settings it captures the default set (control, connection,\n\t// system, captcha), and any browser category settings are layered onto that\n\t// default set. On update, enabled=true resolves the config fresh from the default\n\t// set plus any provided categories, replacing the session's current selection\n\t// rather than merging onto it; omit enabled to merge categories onto the current\n\t// selection instead. False stops capture on update and starts no capture on\n\t// create. enabled=false cannot be combined with browser category settings.\n\tEnabled bool `json:\"enabled\"`\n\t// Where to export this session's captured telemetry. Omit to capture without\n\t// exporting.\n\tExport ManagedAuthBrowserConfigTelemetryExport `json:\"export\"`\n\t// Whether to persist this session's captured telemetry to Kernel storage.\n\tStorage ManagedAuthBrowserConfigTelemetryStorage `json:\"storage\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBrowser     respjson.Field\n\t\tEnabled     respjson.Field\n\t\tExport      respjson.Field\n\t\tStorage     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nBrowser telemetry configuration using the same semantics as browser create.\n\n```go\nfunc (r ManagedAuthBrowserConfigTelemetry) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManagedAuthBrowserConfigTelemetry) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthBrowserConfigTelemetryExport struct {\n\t// Export captured telemetry over OTLP to one of the org's configured destinations.\n\tOtlp ManagedAuthBrowserConfigTelemetryExportOtlp `json:\"otlp\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tOtlp        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nWhere to export this session's captured telemetry. Omit to capture without exporting.\n\n```go\nfunc (r ManagedAuthBrowserConfigTelemetryExport) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManagedAuthBrowserConfigTelemetryExport) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthBrowserConfigTelemetryExportOtlp struct {\n\t// OTLP destination to export this session's captured telemetry to. Provide either\n\t// id or name. Requires telemetry capture to be enabled.\n\tDestination ManagedAuthBrowserConfigTelemetryExportOtlpDestination `json:\"destination\"`\n\t// Whether to export captured telemetry over OTLP. Setting destination implies\n\t// enabled=true, so this only needs to be set explicitly to disable export\n\t// (enabled=false with a destination is rejected).\n\tEnabled bool `json:\"enabled\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDestination respjson.Field\n\t\tEnabled     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nExport captured telemetry over OTLP to one of the org's configured destinations.\n\n```go\nfunc (r ManagedAuthBrowserConfigTelemetryExportOtlp) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManagedAuthBrowserConfigTelemetryExportOtlp) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthBrowserConfigTelemetryExportOtlpDestination struct {\n\t// OTLP destination ID\n\tID string `json:\"id\"`\n\t// OTLP destination name\n\tName string `json:\"name\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tName        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOTLP destination to export this session's captured telemetry to. Provide either id or name. Requires telemetry capture to be enabled.\n\n```go\nfunc (r ManagedAuthBrowserConfigTelemetryExportOtlpDestination) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManagedAuthBrowserConfigTelemetryExportOtlpDestination) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthBrowserConfigTelemetryExportOtlpDestinationParam struct {\n\t// OTLP destination ID\n\tID param.Opt[string] `json:\"id,omitzero\"`\n\t// OTLP destination name\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nOTLP destination to export this session's captured telemetry to. Provide either id or name. Requires telemetry capture to be enabled.\n\n```go\nfunc (r ManagedAuthBrowserConfigTelemetryExportOtlpDestinationParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ManagedAuthBrowserConfigTelemetryExportOtlpDestinationParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthBrowserConfigTelemetryExportOtlpParam struct {\n\t// Whether to export captured telemetry over OTLP. Setting destination implies\n\t// enabled=true, so this only needs to be set explicitly to disable export\n\t// (enabled=false with a destination is rejected).\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// OTLP destination to export this session's captured telemetry to. Provide either\n\t// id or name. Requires telemetry capture to be enabled.\n\tDestination ManagedAuthBrowserConfigTelemetryExportOtlpDestinationParam `json:\"destination,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nExport captured telemetry over OTLP to one of the org's configured destinations.\n\n```go\nfunc (r ManagedAuthBrowserConfigTelemetryExportOtlpParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ManagedAuthBrowserConfigTelemetryExportOtlpParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthBrowserConfigTelemetryExportParam struct {\n\t// Export captured telemetry over OTLP to one of the org's configured destinations.\n\tOtlp ManagedAuthBrowserConfigTelemetryExportOtlpParam `json:\"otlp,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nWhere to export this session's captured telemetry. Omit to capture without exporting.\n\n```go\nfunc (r ManagedAuthBrowserConfigTelemetryExportParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ManagedAuthBrowserConfigTelemetryExportParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthBrowserConfigTelemetryParam struct {\n\t// Request shortcut for browser telemetry capture. True enables capture; with no\n\t// browser category settings it captures the default set (control, connection,\n\t// system, captcha), and any browser category settings are layered onto that\n\t// default set. On update, enabled=true resolves the config fresh from the default\n\t// set plus any provided categories, replacing the session's current selection\n\t// rather than merging onto it; omit enabled to merge categories onto the current\n\t// selection instead. False stops capture on update and starts no capture on\n\t// create. enabled=false cannot be combined with browser category settings.\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// Per-category capture flags. The operational categories (control, connection,\n\t// system, captcha) are captured whenever telemetry is enabled; set one to\n\t// enabled=false to opt out. The CDP categories (console, network, page,\n\t// interaction), screenshot and platform are off by default; set enabled=true to\n\t// opt in. On create, provided categories layer onto the default set. On update,\n\t// provided categories merge onto the session's current config; when no telemetry\n\t// is active this falls back to the default set (matching create). If browser is\n\t// omitted or empty, the default set is used. A browser config that disables every\n\t// category stops capture on update and starts no capture on create.\n\tBrowser BrowserTelemetryCategoriesConfigParam `json:\"browser,omitzero\"`\n\t// Where to export this session's captured telemetry. Omit to capture without\n\t// exporting.\n\tExport ManagedAuthBrowserConfigTelemetryExportParam `json:\"export,omitzero\"`\n\t// Whether to persist this session's captured telemetry to Kernel storage.\n\tStorage ManagedAuthBrowserConfigTelemetryStorageParam `json:\"storage,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nBrowser telemetry configuration using the same semantics as browser create.\n\n```go\nfunc (r ManagedAuthBrowserConfigTelemetryParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ManagedAuthBrowserConfigTelemetryParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthBrowserConfigTelemetryStorage struct {\n\t// Whether captured telemetry is persisted to Kernel storage. Defaults to true.\n\t// Setting false requires an OTLP destination and cannot be changed after the\n\t// browser is created.\n\tEnabled bool `json:\"enabled\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEnabled     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nWhether to persist this session's captured telemetry to Kernel storage.\n\n```go\nfunc (r ManagedAuthBrowserConfigTelemetryStorage) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManagedAuthBrowserConfigTelemetryStorage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthBrowserConfigTelemetryStorageParam struct {\n\t// Whether captured telemetry is persisted to Kernel storage. Defaults to true.\n\t// Setting false requires an OTLP destination and cannot be changed after the\n\t// browser is created.\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nWhether to persist this session's captured telemetry to Kernel storage.\n\n```go\nfunc (r ManagedAuthBrowserConfigTelemetryStorageParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ManagedAuthBrowserConfigTelemetryStorageParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthBrowserLocation struct {\n\t// Supported canonical BCP 47 locale for the browser's language and Accept-Language\n\t// header. Omit to use the default for the browser's region, or omit on update to\n\t// keep the current locale. Null clears it on update.\n\tLocale string `json:\"locale\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tLocale      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nBrowser locale applied to browser sessions created for a managed auth connection.\n\n```go\nfunc (r ManagedAuthBrowserLocation) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r ManagedAuthBrowserLocation) ToParam() ManagedAuthBrowserLocationParam\n```\nToParam converts this ManagedAuthBrowserLocation to a ManagedAuthBrowserLocationParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAuthBrowserLocationParam.Overrides()\n\n```go\nfunc (r *ManagedAuthBrowserLocation) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthBrowserLocationParam struct {\n\t// Supported canonical BCP 47 locale for the browser's language and Accept-Language\n\t// header. Omit to use the default for the browser's region, or omit on update to\n\t// keep the current locale. Null clears it on update.\n\tLocale param.Opt[string] `json:\"locale,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nBrowser locale applied to browser sessions created for a managed auth connection.\n\n```go\nfunc (r ManagedAuthBrowserLocationParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ManagedAuthBrowserLocationParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthBrowserTelemetry struct {\n\t// Per-category capture flags. The operational categories (control, connection,\n\t// system, captcha) are captured whenever telemetry is enabled; set one to\n\t// enabled=false to opt out. The CDP categories (console, network, page,\n\t// interaction), screenshot and platform are off by default; set enabled=true to\n\t// opt in. On create, provided categories layer onto the default set. On update,\n\t// provided categories merge onto the session's current config; when no telemetry\n\t// is active this falls back to the default set (matching create). If browser is\n\t// omitted or empty, the default set is used. A browser config that disables every\n\t// category stops capture on update and starts no capture on create.\n\tBrowser BrowserTelemetryCategoriesConfig `json:\"browser\"`\n\t// Request shortcut for browser telemetry capture. True enables capture; with no\n\t// browser category settings it captures the default set (control, connection,\n\t// system, captcha), and any browser category settings are layered onto that\n\t// default set. On update, enabled=true resolves the config fresh from the default\n\t// set plus any provided categories, replacing the session's current selection\n\t// rather than merging onto it; omit enabled to merge categories onto the current\n\t// selection instead. False stops capture on update and starts no capture on\n\t// create. enabled=false cannot be combined with browser category settings.\n\tEnabled bool `json:\"enabled\"`\n\t// Where to export this session's captured telemetry. Omit to capture without\n\t// exporting.\n\tExport ManagedAuthBrowserTelemetryExport `json:\"export\"`\n\t// Whether to persist this session's captured telemetry to Kernel storage.\n\tStorage ManagedAuthBrowserTelemetryStorage `json:\"storage\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBrowser     respjson.Field\n\t\tEnabled     respjson.Field\n\t\tExport      respjson.Field\n\t\tStorage     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nDeprecated. Use browser.telemetry. Retained during migration for existing clients.\n\nDeprecated: deprecated\n\n```go\nfunc (r ManagedAuthBrowserTelemetry) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManagedAuthBrowserTelemetry) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthBrowserTelemetryExport struct {\n\t// Export captured telemetry over OTLP to one of the org's configured destinations.\n\tOtlp ManagedAuthBrowserTelemetryExportOtlp `json:\"otlp\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tOtlp        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nWhere to export this session's captured telemetry. Omit to capture without exporting.\n\n```go\nfunc (r ManagedAuthBrowserTelemetryExport) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManagedAuthBrowserTelemetryExport) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthBrowserTelemetryExportOtlp struct {\n\t// OTLP destination to export this session's captured telemetry to. Provide either\n\t// id or name. Requires telemetry capture to be enabled.\n\tDestination ManagedAuthBrowserTelemetryExportOtlpDestination `json:\"destination\"`\n\t// Whether to export captured telemetry over OTLP. Setting destination implies\n\t// enabled=true, so this only needs to be set explicitly to disable export\n\t// (enabled=false with a destination is rejected).\n\tEnabled bool `json:\"enabled\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDestination respjson.Field\n\t\tEnabled     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nExport captured telemetry over OTLP to one of the org's configured destinations.\n\n```go\nfunc (r ManagedAuthBrowserTelemetryExportOtlp) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManagedAuthBrowserTelemetryExportOtlp) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthBrowserTelemetryExportOtlpDestination struct {\n\t// OTLP destination ID\n\tID string `json:\"id\"`\n\t// OTLP destination name\n\tName string `json:\"name\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tName        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOTLP destination to export this session's captured telemetry to. Provide either id or name. Requires telemetry capture to be enabled.\n\n```go\nfunc (r ManagedAuthBrowserTelemetryExportOtlpDestination) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManagedAuthBrowserTelemetryExportOtlpDestination) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthBrowserTelemetryStorage struct {\n\t// Whether captured telemetry is persisted to Kernel storage. Defaults to true.\n\t// Setting false requires an OTLP destination and cannot be changed after the\n\t// browser is created.\n\tEnabled bool `json:\"enabled\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEnabled     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nWhether to persist this session's captured telemetry to Kernel storage.\n\n```go\nfunc (r ManagedAuthBrowserTelemetryStorage) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManagedAuthBrowserTelemetryStorage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthCanReauthReason string\n```\nMachine-readable reason for the current value of \\`can\\_reauth\\`. Affirmative values (requirements are eligible for unattended re-authentication):\n\n  - \\`external\\_credential\\` — an external credential provider is attached\n  - \\`cua\\_has\\_credential\\` — CUA flow with a stored credential\n  - \\`has\\_credential\\` — Kernel credential is attached (optimistic; plan viability not checked)\n  - \\`viable\\_plans\\_found\\` — at least one stored login plan can be replayed\n  - \\`no\\_requirements\\_recorded\\` — no recorded credential requirements to fail against\n  - \\`totp\\_reauth\\_allowed\\` — TOTP is the only recorded requirement and a stored secret can generate the code\n  - \\`optimistic\\_totp\\_attempt\\` — TOTP was previously required but no reusable secret is stored; the connection remains eligible for a circuit-breaker-bounded attempt because the site may not challenge returning sessions\n  - \\`requirements\\_satisfiable\\` — recorded requirements contain no recognized blocker\n\nNegative values (a human must complete the login flow):\n\n  - \\`no\\_prior\\_successful\\_login\\` — connection has never completed a successful login\n  - \\`no\\_credential\\` — no Kernel or external credential attached\n  - \\`no\\_viable\\_plans\\` — credential attached but no replayable login plan exists yet\n  - \\`viable\\_plans\\_require\\_external\\_action\\` — stored plans need an external step (email link, push, etc.)\n  - \\`requires\\_external\\_action\\` — recorded requirements include an external step\n  - \\`requires\\_totp\\_without\\_secret\\` — flow needs a TOTP code but no TOTP secret is stored\n  - \\`requires\\_sms\\_code\\` — flow needs an SMS code that cannot be received automatically\n  - \\`requires\\_email\\_code\\` — flow needs an email code that cannot be received automatically\n  - \\`requires\\_customer\\_input\\` — flow needs another field or choice that is unavailable during unattended re-authentication\n\n```go\nconst (\n\tManagedAuthCanReauthReasonExternalCredential               ManagedAuthCanReauthReason = \"external_credential\"\n\tManagedAuthCanReauthReasonCuaHasCredential                 ManagedAuthCanReauthReason = \"cua_has_credential\"\n\tManagedAuthCanReauthReasonHasCredential                    ManagedAuthCanReauthReason = \"has_credential\"\n\tManagedAuthCanReauthReasonViablePlansFound                 ManagedAuthCanReauthReason = \"viable_plans_found\"\n\tManagedAuthCanReauthReasonNoRequirementsRecorded           ManagedAuthCanReauthReason = \"no_requirements_recorded\"\n\tManagedAuthCanReauthReasonTotpReauthAllowed                ManagedAuthCanReauthReason = \"totp_reauth_allowed\"\n\tManagedAuthCanReauthReasonOptimisticTotpAttempt            ManagedAuthCanReauthReason = \"optimistic_totp_attempt\"\n\tManagedAuthCanReauthReasonRequirementsSatisfiable          ManagedAuthCanReauthReason = \"requirements_satisfiable\"\n\tManagedAuthCanReauthReasonNoPriorSuccessfulLogin           ManagedAuthCanReauthReason = \"no_prior_successful_login\"\n\tManagedAuthCanReauthReasonNoCredential                     ManagedAuthCanReauthReason = \"no_credential\"\n\tManagedAuthCanReauthReasonNoViablePlans                    ManagedAuthCanReauthReason = \"no_viable_plans\"\n\tManagedAuthCanReauthReasonViablePlansRequireExternalAction ManagedAuthCanReauthReason = \"viable_plans_require_external_action\"\n\tManagedAuthCanReauthReasonRequiresExternalAction           ManagedAuthCanReauthReason = \"requires_external_action\"\n\tManagedAuthCanReauthReasonRequiresTotpWithoutSecret        ManagedAuthCanReauthReason = \"requires_totp_without_secret\"\n\tManagedAuthCanReauthReasonRequiresSMSCode                  ManagedAuthCanReauthReason = \"requires_sms_code\"\n\tManagedAuthCanReauthReasonRequiresEmailCode                ManagedAuthCanReauthReason = \"requires_email_code\"\n\tManagedAuthCanReauthReasonRequiresCustomerInput            ManagedAuthCanReauthReason = \"requires_customer_input\"\n)\n```\n\n```go\ntype ManagedAuthChoice struct {\n\t// Stable choice identifier for canonical submit.\n\tID string `json:\"id\" api:\"required\"`\n\t// Human-readable choice label.\n\tLabel string `json:\"label\" api:\"required\"`\n\t// Choice type. A `human_intervention` choice confirms the person finished the\n\t// challenge in the live view.\n\t//\n\t// Any of \"mfa_method\", \"sso_provider\", \"sign_in_method\", \"auth_method\",\n\t// \"identifier_method\", \"account\", \"human_intervention\", \"other\".\n\tType string `json:\"type\" api:\"required\"`\n\t// Context captured for a choice.\n\tContext string `json:\"context\" api:\"nullable\"`\n\t// Additional context for the choice.\n\tDescription string `json:\"description\" api:\"nullable\"`\n\t// Display text captured for a choice.\n\tDisplayText string `json:\"display_text\" api:\"nullable\"`\n\t// Masked phone number or email address shown for an MFA choice.\n\tMaskedDestination string `json:\"masked_destination\" api:\"nullable\"`\n\t// Semantic MFA method. Choice id remains the stable identity of the exact option\n\t// selected.\n\t//\n\t// Any of \"sms\", \"call\", \"email\", \"totp\", \"push\", \"password\", \"passkey\", \"switch\",\n\t// \"other\".\n\tMfaType string `json:\"mfa_type\" api:\"nullable\"`\n\t// Selector for the visible choice, when available.\n\tObservedSelector string `json:\"observed_selector\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                respjson.Field\n\t\tLabel             respjson.Field\n\t\tType              respjson.Field\n\t\tContext           respjson.Field\n\t\tDescription       respjson.Field\n\t\tDisplayText       respjson.Field\n\t\tMaskedDestination respjson.Field\n\t\tMfaType           respjson.Field\n\t\tObservedSelector  respjson.Field\n\t\tExtraFields       map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nCanonical auth-flow choice awaiting user selection.\n\n```go\nfunc (r ManagedAuthChoice) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManagedAuthChoice) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthCreateRequestBrowserTelemetryExportOtlpDestinationParam struct {\n\t// OTLP destination ID\n\tID param.Opt[string] `json:\"id,omitzero\"`\n\t// OTLP destination name\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nOTLP destination to export this session's captured telemetry to. Provide either id or name. Requires telemetry capture to be enabled.\n\n```go\nfunc (r ManagedAuthCreateRequestBrowserTelemetryExportOtlpDestinationParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ManagedAuthCreateRequestBrowserTelemetryExportOtlpDestinationParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthCreateRequestBrowserTelemetryExportOtlpParam struct {\n\t// Whether to export captured telemetry over OTLP. Setting destination implies\n\t// enabled=true, so this only needs to be set explicitly to disable export\n\t// (enabled=false with a destination is rejected).\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// OTLP destination to export this session's captured telemetry to. Provide either\n\t// id or name. Requires telemetry capture to be enabled.\n\tDestination ManagedAuthCreateRequestBrowserTelemetryExportOtlpDestinationParam `json:\"destination,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nExport captured telemetry over OTLP to one of the org's configured destinations.\n\n```go\nfunc (r ManagedAuthCreateRequestBrowserTelemetryExportOtlpParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ManagedAuthCreateRequestBrowserTelemetryExportOtlpParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthCreateRequestBrowserTelemetryExportParam struct {\n\t// Export captured telemetry over OTLP to one of the org's configured destinations.\n\tOtlp ManagedAuthCreateRequestBrowserTelemetryExportOtlpParam `json:\"otlp,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nWhere to export this session's captured telemetry. Omit to capture without exporting.\n\n```go\nfunc (r ManagedAuthCreateRequestBrowserTelemetryExportParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ManagedAuthCreateRequestBrowserTelemetryExportParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthCreateRequestBrowserTelemetryParam struct {\n\t// Request shortcut for browser telemetry capture. True enables capture; with no\n\t// browser category settings it captures the default set (control, connection,\n\t// system, captcha), and any browser category settings are layered onto that\n\t// default set. On update, enabled=true resolves the config fresh from the default\n\t// set plus any provided categories, replacing the session's current selection\n\t// rather than merging onto it; omit enabled to merge categories onto the current\n\t// selection instead. False stops capture on update and starts no capture on\n\t// create. enabled=false cannot be combined with browser category settings.\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// Per-category capture flags. The operational categories (control, connection,\n\t// system, captcha) are captured whenever telemetry is enabled; set one to\n\t// enabled=false to opt out. The CDP categories (console, network, page,\n\t// interaction), screenshot and platform are off by default; set enabled=true to\n\t// opt in. On create, provided categories layer onto the default set. On update,\n\t// provided categories merge onto the session's current config; when no telemetry\n\t// is active this falls back to the default set (matching create). If browser is\n\t// omitted or empty, the default set is used. A browser config that disables every\n\t// category stops capture on update and starts no capture on create.\n\tBrowser BrowserTelemetryCategoriesConfigParam `json:\"browser,omitzero\"`\n\t// Where to export this session's captured telemetry. Omit to capture without\n\t// exporting.\n\tExport ManagedAuthCreateRequestBrowserTelemetryExportParam `json:\"export,omitzero\"`\n\t// Whether to persist this session's captured telemetry to Kernel storage.\n\tStorage ManagedAuthCreateRequestBrowserTelemetryStorageParam `json:\"storage,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nDeprecated. Use browser.telemetry. Retained during migration for existing clients.\n\nDeprecated: deprecated\n\n```go\nfunc (r ManagedAuthCreateRequestBrowserTelemetryParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ManagedAuthCreateRequestBrowserTelemetryParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthCreateRequestBrowserTelemetryStorageParam struct {\n\t// Whether captured telemetry is persisted to Kernel storage. Defaults to true.\n\t// Setting false requires an OTLP destination and cannot be changed after the\n\t// browser is created.\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nWhether to persist this session's captured telemetry to Kernel storage.\n\n```go\nfunc (r ManagedAuthCreateRequestBrowserTelemetryStorageParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ManagedAuthCreateRequestBrowserTelemetryStorageParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthCreateRequestCredentialParam struct {\n\t// If true, lookup by domain from the specified provider\n\tAuto param.Opt[bool] `json:\"auto,omitzero\"`\n\t// Kernel credential name\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// Provider-specific path (e.g., \"VaultName/ItemName\" for 1Password)\n\tPath param.Opt[string] `json:\"path,omitzero\"`\n\t// External provider name (e.g., \"my-1p\")\n\tProvider param.Opt[string] `json:\"provider,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nReference to credentials for the auth connection. Use one of:\n\n\\- { name } for Kernel credentials - { provider, path } for external provider item - { provider, auto: true } for external provider domain lookup\n\n```go\nfunc (r ManagedAuthCreateRequestCredentialParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ManagedAuthCreateRequestCredentialParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthCreateRequestParam struct {\n\t// Domain for authentication\n\tDomain string `json:\"domain\" api:\"required\"`\n\t// Name of the profile to manage authentication for. If the profile does not exist,\n\t// it is created automatically.\n\tProfileName string `json:\"profile_name\" api:\"required\"`\n\t// Whether to permit automatic re-authentication when a scheduled health check\n\t// detects an expired session. This is an opt-in flag only — it does not check\n\t// whether re-auth is actually feasible. Even when true, re-auth only runs when the\n\t// system has what it needs to perform it (for example, saved credentials for the\n\t// required login fields), and only after a scheduled health check detects an\n\t// expired session — so this flag has no effect when `health_checks` is false. When\n\t// false, expired sessions are marked as `NEEDS_AUTH` instead of attempting\n\t// re-auth. Defaults to true.\n\tAutoReauth param.Opt[bool] `json:\"auto_reauth,omitzero\"`\n\t// Interval in seconds between automatic health checks. When set, the system\n\t// periodically verifies the authentication status and triggers re-authentication\n\t// if needed. Maximum is 86400 (24 hours). Default is 3600 (1 hour) or your plan\n\t// minimum, whichever is larger. The minimum depends on your plan: Enterprise: 300\n\t// (5 minutes), Startup: 1200 (20 minutes), Hobbyist: 3600 (1 hour), Free: 21600 (6\n\t// hours).\n\tHealthCheckInterval param.Opt[int64] `json:\"health_check_interval,omitzero\"`\n\t// Whether to enable periodic health checks. When false, the system will not\n\t// automatically verify authentication status, and `auto_reauth` has no effect on\n\t// the automatic flow (since re-auth is only triggered by a failed scheduled health\n\t// check). Defaults to true.\n\tHealthChecks param.Opt[bool] `json:\"health_checks,omitzero\"`\n\t// Whether a login blocked by a CAPTCHA the browser cannot solve pauses for a\n\t// person instead of failing. The flow moves to AWAITING_HUMAN_INTERVENTION with a\n\t// `human_intervention` choice; the person completes the challenge in\n\t// `live_view_url`, then submits that choice to resume. Reauthentication never\n\t// pauses. Defaults to false.\n\tHitl param.Opt[bool] `json:\"hitl,omitzero\"`\n\t// Optional login page URL to skip discovery\n\tLoginURL param.Opt[string] `json:\"login_url,omitzero\" format:\"uri\"`\n\t// Whether to record browser sessions for this connection by default. Useful for\n\t// debugging. Can be overridden per-login. Defaults to false.\n\tRecordSession param.Opt[bool] `json:\"record_session,omitzero\"`\n\t// Whether to save credentials after every successful login. Defaults to true.\n\t// One-time codes (TOTP, SMS, etc.) are not saved.\n\tSaveCredentials param.Opt[bool] `json:\"save_credentials,omitzero\"`\n\t// Deprecated. Use browser.telemetry. Retained during migration for existing\n\t// clients.\n\t//\n\t// Deprecated: deprecated\n\tBrowserTelemetry ManagedAuthCreateRequestBrowserTelemetryParam `json:\"browser_telemetry,omitzero\"`\n\t// Additional hostname roots valid for this auth flow, besides the primary domain.\n\t// Each value allows credential entry on that exact hostname and its subdomains.\n\t// Leading `www.` and `*.` labels are normalized away. When omitted or empty,\n\t// credential entry is unrestricted.\n\t//\n\t// The following SSO/OAuth provider domains are automatically allowed by default\n\t// and do not need to be specified:\n\t//\n\t// - Google: accounts.google.com\n\t// - Microsoft/Azure AD: login.microsoftonline.com, login.live.com\n\t// - Okta: _.okta.com, _.oktapreview.com\n\t// - Auth0: _.auth0.com, _.us.auth0.com, _.eu.auth0.com, _.au.auth0.com\n\t// - Apple: appleid.apple.com\n\t// - GitHub: github.com\n\t// - Facebook/Meta: www.facebook.com\n\t// - LinkedIn: www.linkedin.com\n\t// - Amazon Cognito: \\*.amazoncognito.com\n\t// - OneLogin: \\*.onelogin.com\n\t// - Ping Identity: _.pingone.com, _.pingidentity.com\n\tAllowedDomains []string `json:\"allowed_domains,omitzero\"`\n\t// Default browser configuration for login, reauthentication, and health-check\n\t// sessions.\n\tBrowser ManagedAuthBrowserConfigParam `json:\"browser,omitzero\"`\n\t// Reference to credentials for the auth connection. Use one of:\n\t//\n\t// - { name } for Kernel credentials\n\t// - { provider, path } for external provider item\n\t// - { provider, auto: true } for external provider domain lookup\n\tCredential ManagedAuthCreateRequestCredentialParam `json:\"credential,omitzero\"`\n\t// Deprecated. Use browser.proxy. Retained during migration for existing clients.\n\t//\n\t// Deprecated: deprecated\n\tProxy ManagedAuthCreateRequestProxyParam `json:\"proxy,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nRequest to create an auth connection for a profile and domain\n\nThe properties Domain, ProfileName are required.\n\n```go\nfunc (r ManagedAuthCreateRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ManagedAuthCreateRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthCreateRequestProxyParam struct {\n\t// Proxy ID\n\tID param.Opt[string] `json:\"id,omitzero\"`\n\t// Proxy name\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nDeprecated. Use browser.proxy. Retained during migration for existing clients.\n\nDeprecated: deprecated\n\n```go\nfunc (r ManagedAuthCreateRequestProxyParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ManagedAuthCreateRequestProxyParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthCredential struct {\n\t// If true, lookup by domain from the specified provider\n\tAuto bool `json:\"auto\"`\n\t// Kernel credential name\n\tName string `json:\"name\"`\n\t// Provider-specific path (e.g., \"VaultName/ItemName\" for 1Password)\n\tPath string `json:\"path\"`\n\t// External provider name (e.g., \"my-1p\")\n\tProvider string `json:\"provider\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAuto        respjson.Field\n\t\tName        respjson.Field\n\t\tPath        respjson.Field\n\t\tProvider    respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nReference to credentials for the auth connection. Use one of:\n\n\\- { name } for Kernel credentials - { provider, path } for external provider item - { provider, auto: true } for external provider domain lookup\n\n```go\nfunc (r ManagedAuthCredential) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManagedAuthCredential) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthCredentialVaultField struct {\n\t// Text, email, and password have form inputs; totp and passkey do not and are\n\t// omitted from both Kernel-hosted and customer React forms. Password, totp, and\n\t// passkey must be sensitive. A totp value is an RFC 4648 Base32 generator seed\n\t// (case-insensitive, optional trailing padding), not an otpauth URI or current\n\t// code. Reject invalid or empty decoded seeds. Browser fill generates an RFC 6238\n\t// code at execution time using HMAC-SHA1, 6 digits, and a 30-second period.\n\t// Preserve leading zeros; never fill the seed. Custom algorithms, digits, periods,\n\t// and form enrollment are unsupported. A passkey value is a JSON-encoded FIDO\n\t// Credential Exchange Format passkey object with unpadded base64url\n\t// `credentialId`, `userHandle` (at most 64 bytes), and `key` (a PKCS#8 ECDSA P-256\n\t// private key), a lowercase `rpId` domain, and optional `username` and\n\t// `userDisplayName`. Other CXF members are ignored. Passkeys are never filled into\n\t// pages; use arm_passkey to sign in with one and register_passkey to create one.\n\t//\n\t// Any of \"text\", \"email\", \"password\", \"totp\", \"passkey\".\n\tType CredentialVaultFieldType `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ManagedAuthCredentialVaultField) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManagedAuthCredentialVaultField) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthCredentialVaultItemSpec struct {\n\t// ID of the managed auth connection whose saved credential this item reads. List\n\t// connections with `GET /auth/connections`.\n\tConnectionID string `json:\"connection_id\" api:\"required\"`\n\t// Any of \"managed_auth\".\n\tProvider ManagedAuthCredentialVaultItemSpecProvider `json:\"provider\" api:\"required\"`\n\t// Display text supplied when the item was created. Omitted when none was given.\n\tDescription string `json:\"description\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tConnectionID respjson.Field\n\t\tProvider     respjson.Field\n\t\tDescription  respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ManagedAuthCredentialVaultItemSpec) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManagedAuthCredentialVaultItemSpec) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthCredentialVaultItemSpecInputParam struct {\n\t// ID of the managed auth connection whose saved credential this item reads. List\n\t// connections with `GET /auth/connections`.\n\tConnectionID string `json:\"connection_id\" api:\"required\"`\n\t// Any of \"managed_auth\".\n\tProvider ManagedAuthCredentialVaultItemSpecInputProvider `json:\"provider,omitzero\" api:\"required\"`\n\t// Optional display text for the item, such as the site or service name. Set at\n\t// creation and cannot be changed later; repeating the request with a different\n\t// description returns 409. At most 16 KiB in UTF-8 bytes.\n\tDescription param.Opt[string] `json:\"description,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nA credential backed by a managed auth connection. The item stores no values: it reads the connection's saved credential at fill time, so updates made through managed auth apply immediately. The connection must be in the vault's project and hold a saved Kernel credential. The check is the saved credential, not connection status: a connection that needs re-authentication qualifies, and an authenticated one without a saved credential does not. Returns 404 for an unknown connection, and 409 when the connection is in another project, has no saved credential yet, or uses an external credential provider such as 1Password. No collection form is offered; managed auth collects the login.\n\nThe properties ConnectionID, Provider are required.\n\n```go\nfunc (r ManagedAuthCredentialVaultItemSpecInputParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ManagedAuthCredentialVaultItemSpecInputParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthCredentialVaultItemSpecInputProvider string\n```\n\n```go\nconst (\n\tManagedAuthCredentialVaultItemSpecInputProviderManagedAuth ManagedAuthCredentialVaultItemSpecInputProvider = \"managed_auth\"\n)\n```\n\n```go\ntype ManagedAuthCredentialVaultItemSpecProvider string\n```\n\n```go\nconst (\n\tManagedAuthCredentialVaultItemSpecProviderManagedAuth ManagedAuthCredentialVaultItemSpecProvider = \"managed_auth\"\n)\n```\n\n```go\ntype ManagedAuthCredentialVaultItemState struct {\n\t// Any of \"managed_auth\".\n\tProvider ManagedAuthCredentialVaultItemStateProvider `json:\"provider\" api:\"required\"`\n\t// Items are created ready, which means the connection has a saved Kernel\n\t// credential that stores values or a TOTP seed (what has_values or has_totp_secret\n\t// report on credentials), not that a login succeeded. Unavailable means it no\n\t// longer does; such items advertise no operations.\n\t//\n\t// Any of \"ready\", \"unavailable\".\n\tStatus ManagedAuthCredentialVaultItemStateStatus `json:\"status\" api:\"required\"`\n\t// One entry per non-empty value on the connection's saved credential, keyed by the\n\t// field name to use in fill bindings. Included on single-item responses (create\n\t// and get) and omitted from list responses, like `value_keys` on credentials.\n\t// Empty when unavailable or when every stored value is empty. A stored value named\n\t// totp_secret is never listed or filled. Values are never returned. A totp entry\n\t// is present when the credential has a TOTP seed; fill writes a generated code for\n\t// it. Entries follow the connection's credential.\n\tFields map[string]ManagedAuthCredentialVaultField `json:\"fields\"`\n\t// Present when status is unavailable. connection_not_found means the connection\n\t// was deleted. no_credential means the connection's credential was deleted or\n\t// emptied after the item was created. external_credential means the connection was\n\t// moved to an external credential provider.\n\t//\n\t// Any of \"connection_not_found\", \"no_credential\", \"external_credential\".\n\tStatusReason ManagedAuthCredentialVaultItemStateStatusReason `json:\"status_reason\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tProvider     respjson.Field\n\t\tStatus       respjson.Field\n\t\tFields       respjson.Field\n\t\tStatusReason respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ManagedAuthCredentialVaultItemState) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManagedAuthCredentialVaultItemState) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthCredentialVaultItemStateProvider string\n```\n\n```go\nconst (\n\tManagedAuthCredentialVaultItemStateProviderManagedAuth ManagedAuthCredentialVaultItemStateProvider = \"managed_auth\"\n)\n```\n\n```go\ntype ManagedAuthCredentialVaultItemStateStatus string\n```\nItems are created ready, which means the connection has a saved Kernel credential that stores values or a TOTP seed (what has\\_values or has\\_totp\\_secret report on credentials), not that a login succeeded. Unavailable means it no longer does; such items advertise no operations.\n\n```go\nconst (\n\tManagedAuthCredentialVaultItemStateStatusReady       ManagedAuthCredentialVaultItemStateStatus = \"ready\"\n\tManagedAuthCredentialVaultItemStateStatusUnavailable ManagedAuthCredentialVaultItemStateStatus = \"unavailable\"\n)\n```\n\n```go\ntype ManagedAuthCredentialVaultItemStateStatusReason string\n```\nPresent when status is unavailable. connection\\_not\\_found means the connection was deleted. no\\_credential means the connection's credential was deleted or emptied after the item was created. external\\_credential means the connection was moved to an external credential provider.\n\n```go\nconst (\n\tManagedAuthCredentialVaultItemStateStatusReasonConnectionNotFound ManagedAuthCredentialVaultItemStateStatusReason = \"connection_not_found\"\n\tManagedAuthCredentialVaultItemStateStatusReasonNoCredential       ManagedAuthCredentialVaultItemStateStatusReason = \"no_credential\"\n\tManagedAuthCredentialVaultItemStateStatusReasonExternalCredential ManagedAuthCredentialVaultItemStateStatusReason = \"external_credential\"\n)\n```\n\n```go\ntype ManagedAuthDiscoveredField struct {\n\t// Field label\n\tLabel string `json:\"label\" api:\"required\"`\n\t// Field name\n\tName string `json:\"name\" api:\"required\"`\n\t// CSS selector for the field\n\tSelector string `json:\"selector\" api:\"required\"`\n\t// Field type\n\t//\n\t// Any of \"text\", \"email\", \"password\", \"tel\", \"number\", \"url\", \"code\", \"totp\".\n\tType string `json:\"type\" api:\"required\"`\n\t// Contextual help text near the field that tells the user what to enter (e.g.,\n\t// \"Enter the phone ending in (**_) _**-\\*\\*92\")\n\tHint string `json:\"hint\"`\n\t// If this field is associated with an MFA option, the type of that option (e.g.,\n\t// password field linked to \"Enter password\" option)\n\t//\n\t// Any of \"sms\", \"call\", \"email\", \"totp\", \"push\", \"password\", \"switch\".\n\tLinkedMfaType string `json:\"linked_mfa_type\" api:\"nullable\"`\n\t// Field placeholder\n\tPlaceholder string `json:\"placeholder\"`\n\t// Whether field is required\n\tRequired bool `json:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tLabel         respjson.Field\n\t\tName          respjson.Field\n\t\tSelector      respjson.Field\n\t\tType          respjson.Field\n\t\tHint          respjson.Field\n\t\tLinkedMfaType respjson.Field\n\t\tPlaceholder   respjson.Field\n\t\tRequired      respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA discovered form field\n\n```go\nfunc (r ManagedAuthDiscoveredField) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManagedAuthDiscoveredField) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthField struct {\n\t// Stable field identifier for canonical submit.\n\tID string `json:\"id\" api:\"required\"`\n\t// Why the field requires user input.\n\t//\n\t// Any of \"missing\", \"rejected\".\n\tReason string `json:\"reason\" api:\"required\"`\n\t// Credential reference name to store the submitted value under.\n\tRef string `json:\"ref\" api:\"required\"`\n\t// Managed-auth field type.\n\t//\n\t// Any of \"identifier\", \"password\", \"code\", \"totp_code\", \"totp_secret\", \"text\".\n\tType string `json:\"type\" api:\"required\"`\n\t// Context shown near the field, including a masked code destination.\n\tHint string `json:\"hint\"`\n\t// Virtual keyboard hint, independent of field type and browser validation.\n\t//\n\t// Any of \"text\", \"email\", \"tel\", \"numeric\".\n\tInputMode string `json:\"input_mode\"`\n\t// Human-readable label shown to the user.\n\tLabel string `json:\"label\"`\n\t// Selector for the visible field, when available.\n\tObservedSelector string `json:\"observed_selector\" api:\"nullable\"`\n\t// Whether this field is required.\n\tRequired bool `json:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID               respjson.Field\n\t\tReason           respjson.Field\n\t\tRef              respjson.Field\n\t\tType             respjson.Field\n\t\tHint             respjson.Field\n\t\tInputMode        respjson.Field\n\t\tLabel            respjson.Field\n\t\tObservedSelector respjson.Field\n\t\tRequired         respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nCanonical field awaiting user input.\n\n```go\nfunc (r ManagedAuthField) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManagedAuthField) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthFlowStatus string\n```\nCurrent flow status (null when no flow in progress)\n\n```go\nconst (\n\tManagedAuthFlowStatusInProgress ManagedAuthFlowStatus = \"IN_PROGRESS\"\n\tManagedAuthFlowStatusSuccess    ManagedAuthFlowStatus = \"SUCCESS\"\n\tManagedAuthFlowStatusFailed     ManagedAuthFlowStatus = \"FAILED\"\n\tManagedAuthFlowStatusExpired    ManagedAuthFlowStatus = \"EXPIRED\"\n\tManagedAuthFlowStatusCanceled   ManagedAuthFlowStatus = \"CANCELED\"\n)\n```\n\n```go\ntype ManagedAuthFlowStep string\n```\nCurrent step in the flow (null when no flow in progress)\n\n```go\nconst (\n\tManagedAuthFlowStepDiscovering               ManagedAuthFlowStep = \"DISCOVERING\"\n\tManagedAuthFlowStepAwaitingInput             ManagedAuthFlowStep = \"AWAITING_INPUT\"\n\tManagedAuthFlowStepAwaitingExternalAction    ManagedAuthFlowStep = \"AWAITING_EXTERNAL_ACTION\"\n\tManagedAuthFlowStepAwaitingHumanIntervention ManagedAuthFlowStep = \"AWAITING_HUMAN_INTERVENTION\"\n\tManagedAuthFlowStepSubmitting                ManagedAuthFlowStep = \"SUBMITTING\"\n\tManagedAuthFlowStepCompleted                 ManagedAuthFlowStep = \"COMPLETED\"\n)\n```\n\n```go\ntype ManagedAuthFlowType string\n```\nType of the current flow (null when no flow in progress)\n\n```go\nconst (\n\tManagedAuthFlowTypeLogin  ManagedAuthFlowType = \"LOGIN\"\n\tManagedAuthFlowTypeReauth ManagedAuthFlowType = \"REAUTH\"\n)\n```\n\n```go\ntype ManagedAuthHealthCheckUnavailableReason string\n```\nWhy health checks cannot verify this connection. Present when health checks are enabled but no auth check URL is available; a recent last\\_auth\\_check\\_at is not evidence of a valid session.\n\n```go\nconst (\n\tManagedAuthHealthCheckUnavailableReasonNoAuthCheckURL ManagedAuthHealthCheckUnavailableReason = \"no_auth_check_url\"\n)\n```\n\n```go\ntype ManagedAuthMfaOption struct {\n\t// The visible option text\n\tLabel string `json:\"label\" api:\"required\"`\n\t// The MFA delivery method type. Includes 'password' for auth method selection\n\t// pages and 'switch' for generic method-switcher links like \"Use another method\"\n\t// that do not name a specific method.\n\t//\n\t// Any of \"sms\", \"call\", \"email\", \"totp\", \"push\", \"password\", \"switch\".\n\tType string `json:\"type\" api:\"required\"`\n\t// Additional instructions from the site\n\tDescription string `json:\"description\" api:\"nullable\"`\n\t// The masked destination (phone/email) if shown\n\tTarget string `json:\"target\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tLabel       respjson.Field\n\t\tType        respjson.Field\n\t\tDescription respjson.Field\n\t\tTarget      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn MFA method option for verification\n\n```go\nfunc (r ManagedAuthMfaOption) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManagedAuthMfaOption) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthPendingSSOButton struct {\n\t// Visible button text\n\tLabel string `json:\"label\" api:\"required\"`\n\t// Identity provider name\n\tProvider string `json:\"provider\" api:\"required\"`\n\t// XPath selector for the button\n\tSelector string `json:\"selector\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tLabel       respjson.Field\n\t\tProvider    respjson.Field\n\t\tSelector    respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn SSO button for signing in with an external identity provider\n\n```go\nfunc (r ManagedAuthPendingSSOButton) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManagedAuthPendingSSOButton) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthSignInOption struct {\n\t// Unique identifier for this option (used to submit selection back)\n\tID string `json:\"id\" api:\"required\"`\n\t// Display text for the option\n\tLabel string `json:\"label\" api:\"required\"`\n\t// Additional context such as email address or org name\n\tDescription string `json:\"description\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tLabel       respjson.Field\n\t\tDescription respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA non-MFA choice presented during the auth flow (e.g. account selection, org picker)\n\n```go\nfunc (r ManagedAuthSignInOption) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManagedAuthSignInOption) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthStatus string\n```\nLast known authentication status of the managed profile. An inconclusive health check preserves this status and does not verify the current session.\n\n```go\nconst (\n\tManagedAuthStatusAuthenticated ManagedAuthStatus = \"AUTHENTICATED\"\n\tManagedAuthStatusNeedsAuth     ManagedAuthStatus = \"NEEDS_AUTH\"\n)\n```\n\n```go\ntype ManagedAuthTimelineEvent struct {\n\t// Identifier of the underlying login/reauth session or health check.\n\tID string `json:\"id\" api:\"required\"`\n\t// Outcome of the event. For login/reauth events this is the flow status\n\t// (IN_PROGRESS, SUCCESS, EXPIRED, CANCELED, FAILED). For health_check events it is\n\t// the observed session state (AUTHENTICATED, NEEDS_AUTH).\n\t//\n\t// Any of \"IN_PROGRESS\", \"SUCCESS\", \"EXPIRED\", \"CANCELED\", \"FAILED\",\n\t// \"AUTHENTICATED\", \"NEEDS_AUTH\".\n\tStatus ManagedAuthTimelineEventStatus `json:\"status\" api:\"required\"`\n\t// When the event occurred.\n\tTimestamp time.Time `json:\"timestamp\" api:\"required\" format:\"date-time\"`\n\t// The kind of event. \"login\" and \"reauth\" are authentication attempts;\n\t// \"health_check\" is a periodic session-validity check.\n\t//\n\t// Any of \"login\", \"reauth\", \"health_check\".\n\tType ManagedAuthTimelineEventType `json:\"type\" api:\"required\"`\n\t// Browser session that produced the event, if one was created.\n\tBrowserSessionID string `json:\"browser_session_id\"`\n\t// When the login/reauth attempt first reached a terminal status. Stable across\n\t// retries and subsequent cleanup writes. Absent for in-progress attempts, health\n\t// checks, and historical attempts without a recorded completion time.\n\tCompletedAt time.Time `json:\"completed_at\" format:\"date-time\"`\n\t// Machine-readable error code. Present when a login/reauth event failed.\n\tErrorCode string `json:\"error_code\"`\n\t// Human-readable error message. Present when a login/reauth event failed.\n\tErrorMessage string `json:\"error_message\"`\n\t// The session state observed before this event. Present for health_check events\n\t// that recorded a prior state.\n\t//\n\t// Any of \"AUTHENTICATED\", \"NEEDS_AUTH\".\n\tPreviousStatus ManagedAuthTimelineEventPreviousStatus `json:\"previous_status\"`\n\t// Replay recording ID for the event's browser session, if session recording was\n\t// enabled.\n\tReplayID string `json:\"replay_id\"`\n\t// The step the flow reached. Present for login/reauth events.\n\t//\n\t// Any of \"INITIALIZED\", \"DISCOVERING\", \"AWAITING_INPUT\",\n\t// \"AWAITING_EXTERNAL_ACTION\", \"AWAITING_HUMAN_INTERVENTION\", \"SUBMITTING\",\n\t// \"COMPLETED\", \"EXPIRED\".\n\tStep ManagedAuthTimelineEventStep `json:\"step\"`\n\t// Whether browser telemetry capture started for this event's browser session.\n\tTelemetryCaptured bool `json:\"telemetry_captured\"`\n\t// When the event was last updated. Present for login/reauth events.\n\tUpdatedAt time.Time `json:\"updated_at\" format:\"date-time\"`\n\t// Visible error message from the website (e.g., 'Incorrect password'). Present\n\t// when the website displayed an error during the attempt.\n\tWebsiteError string `json:\"website_error\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                respjson.Field\n\t\tStatus            respjson.Field\n\t\tTimestamp         respjson.Field\n\t\tType              respjson.Field\n\t\tBrowserSessionID  respjson.Field\n\t\tCompletedAt       respjson.Field\n\t\tErrorCode         respjson.Field\n\t\tErrorMessage      respjson.Field\n\t\tPreviousStatus    respjson.Field\n\t\tReplayID          respjson.Field\n\t\tStep              respjson.Field\n\t\tTelemetryCaptured respjson.Field\n\t\tUpdatedAt         respjson.Field\n\t\tWebsiteError      respjson.Field\n\t\tExtraFields       map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA single event in an auth connection's history — a login attempt, an automatic re-auth attempt, or a health check.\n\n```go\nfunc (r ManagedAuthTimelineEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ManagedAuthTimelineEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthTimelineEventPreviousStatus string\n```\nThe session state observed before this event. Present for health\\_check events that recorded a prior state.\n\n```go\nconst (\n\tManagedAuthTimelineEventPreviousStatusAuthenticated ManagedAuthTimelineEventPreviousStatus = \"AUTHENTICATED\"\n\tManagedAuthTimelineEventPreviousStatusNeedsAuth     ManagedAuthTimelineEventPreviousStatus = \"NEEDS_AUTH\"\n)\n```\n\n```go\ntype ManagedAuthTimelineEventStatus string\n```\nOutcome of the event. For login/reauth events this is the flow status (IN\\_PROGRESS, SUCCESS, EXPIRED, CANCELED, FAILED). For health\\_check events it is the observed session state (AUTHENTICATED, NEEDS\\_AUTH).\n\n```go\nconst (\n\tManagedAuthTimelineEventStatusInProgress    ManagedAuthTimelineEventStatus = \"IN_PROGRESS\"\n\tManagedAuthTimelineEventStatusSuccess       ManagedAuthTimelineEventStatus = \"SUCCESS\"\n\tManagedAuthTimelineEventStatusExpired       ManagedAuthTimelineEventStatus = \"EXPIRED\"\n\tManagedAuthTimelineEventStatusCanceled      ManagedAuthTimelineEventStatus = \"CANCELED\"\n\tManagedAuthTimelineEventStatusFailed        ManagedAuthTimelineEventStatus = \"FAILED\"\n\tManagedAuthTimelineEventStatusAuthenticated ManagedAuthTimelineEventStatus = \"AUTHENTICATED\"\n\tManagedAuthTimelineEventStatusNeedsAuth     ManagedAuthTimelineEventStatus = \"NEEDS_AUTH\"\n)\n```\n\n```go\ntype ManagedAuthTimelineEventStep string\n```\nThe step the flow reached. Present for login/reauth events.\n\n```go\nconst (\n\tManagedAuthTimelineEventStepInitialized               ManagedAuthTimelineEventStep = \"INITIALIZED\"\n\tManagedAuthTimelineEventStepDiscovering               ManagedAuthTimelineEventStep = \"DISCOVERING\"\n\tManagedAuthTimelineEventStepAwaitingInput             ManagedAuthTimelineEventStep = \"AWAITING_INPUT\"\n\tManagedAuthTimelineEventStepAwaitingExternalAction    ManagedAuthTimelineEventStep = \"AWAITING_EXTERNAL_ACTION\"\n\tManagedAuthTimelineEventStepAwaitingHumanIntervention ManagedAuthTimelineEventStep = \"AWAITING_HUMAN_INTERVENTION\"\n\tManagedAuthTimelineEventStepSubmitting                ManagedAuthTimelineEventStep = \"SUBMITTING\"\n\tManagedAuthTimelineEventStepCompleted                 ManagedAuthTimelineEventStep = \"COMPLETED\"\n\tManagedAuthTimelineEventStepExpired                   ManagedAuthTimelineEventStep = \"EXPIRED\"\n)\n```\n\n```go\ntype ManagedAuthTimelineEventType string\n```\nThe kind of event. \"login\" and \"reauth\" are authentication attempts; \"health\\_check\" is a periodic session-validity check.\n\n```go\nconst (\n\tManagedAuthTimelineEventTypeLogin       ManagedAuthTimelineEventType = \"login\"\n\tManagedAuthTimelineEventTypeReauth      ManagedAuthTimelineEventType = \"reauth\"\n\tManagedAuthTimelineEventTypeHealthCheck ManagedAuthTimelineEventType = \"health_check\"\n)\n```\n\n```go\ntype ManagedAuthUpdateRequestBrowserTelemetryExportOtlpDestinationParam struct {\n\t// OTLP destination ID\n\tID param.Opt[string] `json:\"id,omitzero\"`\n\t// OTLP destination name\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nOTLP destination to export this session's captured telemetry to. Provide either id or name. Requires telemetry capture to be enabled.\n\n```go\nfunc (r ManagedAuthUpdateRequestBrowserTelemetryExportOtlpDestinationParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ManagedAuthUpdateRequestBrowserTelemetryExportOtlpDestinationParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthUpdateRequestBrowserTelemetryExportOtlpParam struct {\n\t// Whether to export captured telemetry over OTLP. Setting destination implies\n\t// enabled=true, so this only needs to be set explicitly to disable export\n\t// (enabled=false with a destination is rejected).\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// OTLP destination to export this session's captured telemetry to. Provide either\n\t// id or name. Requires telemetry capture to be enabled.\n\tDestination ManagedAuthUpdateRequestBrowserTelemetryExportOtlpDestinationParam `json:\"destination,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nExport captured telemetry over OTLP to one of the org's configured destinations.\n\n```go\nfunc (r ManagedAuthUpdateRequestBrowserTelemetryExportOtlpParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ManagedAuthUpdateRequestBrowserTelemetryExportOtlpParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthUpdateRequestBrowserTelemetryExportParam struct {\n\t// Export captured telemetry over OTLP to one of the org's configured destinations.\n\tOtlp ManagedAuthUpdateRequestBrowserTelemetryExportOtlpParam `json:\"otlp,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nWhere to export this session's captured telemetry. Omit to capture without exporting.\n\n```go\nfunc (r ManagedAuthUpdateRequestBrowserTelemetryExportParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ManagedAuthUpdateRequestBrowserTelemetryExportParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthUpdateRequestBrowserTelemetryParam struct {\n\t// Request shortcut for browser telemetry capture. True enables capture; with no\n\t// browser category settings it captures the default set (control, connection,\n\t// system, captcha), and any browser category settings are layered onto that\n\t// default set. On update, enabled=true resolves the config fresh from the default\n\t// set plus any provided categories, replacing the session's current selection\n\t// rather than merging onto it; omit enabled to merge categories onto the current\n\t// selection instead. False stops capture on update and starts no capture on\n\t// create. enabled=false cannot be combined with browser category settings.\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// Per-category capture flags. The operational categories (control, connection,\n\t// system, captcha) are captured whenever telemetry is enabled; set one to\n\t// enabled=false to opt out. The CDP categories (console, network, page,\n\t// interaction), screenshot and platform are off by default; set enabled=true to\n\t// opt in. On create, provided categories layer onto the default set. On update,\n\t// provided categories merge onto the session's current config; when no telemetry\n\t// is active this falls back to the default set (matching create). If browser is\n\t// omitted or empty, the default set is used. A browser config that disables every\n\t// category stops capture on update and starts no capture on create.\n\tBrowser BrowserTelemetryCategoriesConfigParam `json:\"browser,omitzero\"`\n\t// Where to export this session's captured telemetry. Omit to capture without\n\t// exporting.\n\tExport ManagedAuthUpdateRequestBrowserTelemetryExportParam `json:\"export,omitzero\"`\n\t// Whether to persist this session's captured telemetry to Kernel storage.\n\tStorage ManagedAuthUpdateRequestBrowserTelemetryStorageParam `json:\"storage,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nDeprecated. Use browser.telemetry. Retained during migration for existing clients.\n\nDeprecated: deprecated\n\n```go\nfunc (r ManagedAuthUpdateRequestBrowserTelemetryParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ManagedAuthUpdateRequestBrowserTelemetryParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthUpdateRequestBrowserTelemetryStorageParam struct {\n\t// Whether captured telemetry is persisted to Kernel storage. Defaults to true.\n\t// Setting false requires an OTLP destination and cannot be changed after the\n\t// browser is created.\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nWhether to persist this session's captured telemetry to Kernel storage.\n\n```go\nfunc (r ManagedAuthUpdateRequestBrowserTelemetryStorageParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ManagedAuthUpdateRequestBrowserTelemetryStorageParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthUpdateRequestCredentialParam struct {\n\t// If true, lookup by domain from the specified provider\n\tAuto param.Opt[bool] `json:\"auto,omitzero\"`\n\t// Kernel credential name\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// Provider-specific path (e.g., \"VaultName/ItemName\" for 1Password)\n\tPath param.Opt[string] `json:\"path,omitzero\"`\n\t// External provider name (e.g., \"my-1p\")\n\tProvider param.Opt[string] `json:\"provider,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nReference to credentials for the auth connection. Use one of:\n\n\\- { name } for Kernel credentials - { provider, path } for external provider item - { provider, auto: true } for external provider domain lookup\n\n```go\nfunc (r ManagedAuthUpdateRequestCredentialParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ManagedAuthUpdateRequestCredentialParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthUpdateRequestParam struct {\n\t// Whether automatic re-authentication is permitted for this connection. This is an\n\t// opt-in flag only — it does not check whether re-auth is actually feasible. Even\n\t// when true, re-auth only runs when the system has what it needs to perform it\n\t// (for example, saved credentials for the required login fields), and only after a\n\t// scheduled health check detects an expired session — so this flag has no effect\n\t// when `health_checks` is false. When false, expired sessions detected by a health\n\t// check are marked as `NEEDS_AUTH` instead of attempting re-auth.\n\tAutoReauth param.Opt[bool] `json:\"auto_reauth,omitzero\"`\n\t// Interval in seconds between automatic health checks\n\tHealthCheckInterval param.Opt[int64] `json:\"health_check_interval,omitzero\"`\n\t// Whether periodic health checks are enabled. When set to false, the system will\n\t// not automatically verify authentication status, and `auto_reauth` has no effect\n\t// on the automatic flow (since re-auth is only triggered by a failed scheduled\n\t// health check).\n\tHealthChecks param.Opt[bool] `json:\"health_checks,omitzero\"`\n\t// Whether a login blocked by a CAPTCHA the browser cannot solve pauses for a\n\t// person instead of failing\n\tHitl param.Opt[bool] `json:\"hitl,omitzero\"`\n\t// Login page URL. Set to empty string to clear.\n\tLoginURL param.Opt[string] `json:\"login_url,omitzero\" format:\"uri\"`\n\t// Whether to record browser sessions for this connection by default\n\tRecordSession param.Opt[bool] `json:\"record_session,omitzero\"`\n\t// Whether to save credentials after every successful login\n\tSaveCredentials param.Opt[bool] `json:\"save_credentials,omitzero\"`\n\t// Deprecated. Use browser.telemetry. Retained during migration for existing\n\t// clients.\n\t//\n\t// Deprecated: deprecated\n\tBrowserTelemetry ManagedAuthUpdateRequestBrowserTelemetryParam `json:\"browser_telemetry,omitzero\"`\n\t// Additional hostname roots valid for this auth flow. Each value allows credential\n\t// entry on that exact hostname and its subdomains; leading `www.` and `*.` labels\n\t// are normalized away. An empty list leaves credential entry unrestricted.\n\t// Replaces the existing list.\n\tAllowedDomains []string `json:\"allowed_domains,omitzero\"`\n\t// Browser configuration updates for future login, reauthentication, and\n\t// health-check sessions. Omitted properties remain unchanged.\n\tBrowser ManagedAuthBrowserConfigParam `json:\"browser,omitzero\"`\n\t// Reference to credentials for the auth connection. Use one of:\n\t//\n\t// - { name } for Kernel credentials\n\t// - { provider, path } for external provider item\n\t// - { provider, auto: true } for external provider domain lookup\n\tCredential ManagedAuthUpdateRequestCredentialParam `json:\"credential,omitzero\"`\n\t// Deprecated. Use browser.proxy. Retained during migration for existing clients.\n\t//\n\t// Deprecated: deprecated\n\tProxy ManagedAuthUpdateRequestProxyParam `json:\"proxy,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nRequest to update an auth connection's configuration\n\n```go\nfunc (r ManagedAuthUpdateRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ManagedAuthUpdateRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedAuthUpdateRequestProxyParam struct {\n\t// Proxy ID\n\tID param.Opt[string] `json:\"id,omitzero\"`\n\t// Proxy name\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nDeprecated. Use browser.proxy. Retained during migration for existing clients.\n\nDeprecated: deprecated\n\n```go\nfunc (r ManagedAuthUpdateRequestProxyParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ManagedAuthUpdateRequestProxyParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Match struct {\n\tURLPatterns []string `json:\"url_patterns\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tURLPatterns respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r Match) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Match) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NoRecommendation struct {\n\t// Machine-readable reason Kernel cannot currently provide a config recommendation.\n\t//\n\t// Any of \"proxy_restricted\", \"target_not_evaluable\", \"no_working_configuration\",\n\t// \"inconclusive\".\n\tCode NoRecommendationCode `json:\"code\" api:\"required\"`\n\t// Human-readable explanation suitable for display.\n\tMessage string                    `json:\"message\" api:\"required\"`\n\tType    constant.NoRecommendation `json:\"type\" default:\"no_recommendation\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCode        respjson.Field\n\t\tMessage     respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r NoRecommendation) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NoRecommendation) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NoRecommendationCode string\n```\nMachine-readable reason Kernel cannot currently provide a config recommendation.\n\n```go\nconst (\n\tNoRecommendationCodeProxyRestricted        NoRecommendationCode = \"proxy_restricted\"\n\tNoRecommendationCodeTargetNotEvaluable     NoRecommendationCode = \"target_not_evaluable\"\n\tNoRecommendationCodeNoWorkingConfiguration NoRecommendationCode = \"no_working_configuration\"\n\tNoRecommendationCodeInconclusive           NoRecommendationCode = \"inconclusive\"\n)\n```\n\n```go\ntype OnePasswordCredentialAccountSpec struct {\n\tAuthorization OnePasswordCredentialAccountSpecAuthorization `json:\"authorization\" api:\"required\"`\n\t// Any of \"1password\".\n\tProvider OnePasswordCredentialAccountSpecProvider `json:\"provider\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAuthorization respjson.Field\n\t\tProvider      respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OnePasswordCredentialAccountSpec) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r OnePasswordCredentialAccountSpec) ToParam() OnePasswordCredentialAccountSpecParam\n```\nToParam converts this OnePasswordCredentialAccountSpec to a OnePasswordCredentialAccountSpecParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with OnePasswordCredentialAccountSpecParam.Overrides()\n\n```go\nfunc (r *OnePasswordCredentialAccountSpec) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordCredentialAccountSpecAuthorization struct {\n\tClient OnePasswordCredentialAccountSpecAuthorizationClient `json:\"client\" api:\"required\"`\n\t// Any of \"oauth\".\n\tMethod string `json:\"method\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tClient      respjson.Field\n\t\tMethod      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OnePasswordCredentialAccountSpecAuthorization) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OnePasswordCredentialAccountSpecAuthorization) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordCredentialAccountSpecAuthorizationClient struct {\n\t// Any of \"kernel_managed\".\n\tType string `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OnePasswordCredentialAccountSpecAuthorizationClient) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OnePasswordCredentialAccountSpecAuthorizationClient) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordCredentialAccountSpecAuthorizationClientParam struct {\n\t// Any of \"kernel_managed\".\n\tType string `json:\"type,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Type is required.\n\n```go\nfunc (r OnePasswordCredentialAccountSpecAuthorizationClientParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *OnePasswordCredentialAccountSpecAuthorizationClientParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordCredentialAccountSpecAuthorizationParam struct {\n\tClient OnePasswordCredentialAccountSpecAuthorizationClientParam `json:\"client,omitzero\" api:\"required\"`\n\t// Any of \"oauth\".\n\tMethod string `json:\"method,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Client, Method are required.\n\n```go\nfunc (r OnePasswordCredentialAccountSpecAuthorizationParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *OnePasswordCredentialAccountSpecAuthorizationParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordCredentialAccountSpecParam struct {\n\tAuthorization OnePasswordCredentialAccountSpecAuthorizationParam `json:\"authorization,omitzero\" api:\"required\"`\n\t// Any of \"1password\".\n\tProvider OnePasswordCredentialAccountSpecProvider `json:\"provider,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Authorization, Provider are required.\n\n```go\nfunc (r OnePasswordCredentialAccountSpecParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *OnePasswordCredentialAccountSpecParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordCredentialAccountSpecProvider string\n```\n\n```go\nconst (\n\tOnePasswordCredentialAccountSpecProvider1password OnePasswordCredentialAccountSpecProvider = \"1password\"\n)\n```\n\n```go\ntype OnePasswordCredentialAccountState struct {\n\t// Any of \"1password\".\n\tProvider OnePasswordCredentialAccountStateProvider `json:\"provider\" api:\"required\"`\n\t// revoking means the account was deleted or disconnected and Kernel is waiting for\n\t// 1Password to confirm the revoke; it cannot be used and Kernel keeps retrying.\n\t//\n\t// Any of \"pending_authorization\", \"connected\", \"reconnect_required\", \"declined\",\n\t// \"revoking\".\n\tStatus       OnePasswordCredentialAccountStateStatus `json:\"status\" api:\"required\"`\n\tStatusReason string                                  `json:\"status_reason\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tProvider     respjson.Field\n\t\tStatus       respjson.Field\n\t\tStatusReason respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OnePasswordCredentialAccountState) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OnePasswordCredentialAccountState) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordCredentialAccountStateProvider string\n```\n\n```go\nconst (\n\tOnePasswordCredentialAccountStateProvider1password OnePasswordCredentialAccountStateProvider = \"1password\"\n)\n```\n\n```go\ntype OnePasswordCredentialAccountStateStatus string\n```\nrevoking means the account was deleted or disconnected and Kernel is waiting for 1Password to confirm the revoke; it cannot be used and Kernel keeps retrying.\n\n```go\nconst (\n\tOnePasswordCredentialAccountStateStatusPendingAuthorization OnePasswordCredentialAccountStateStatus = \"pending_authorization\"\n\tOnePasswordCredentialAccountStateStatusConnected            OnePasswordCredentialAccountStateStatus = \"connected\"\n\tOnePasswordCredentialAccountStateStatusReconnectRequired    OnePasswordCredentialAccountStateStatus = \"reconnect_required\"\n\tOnePasswordCredentialAccountStateStatusDeclined             OnePasswordCredentialAccountStateStatus = \"declined\"\n\tOnePasswordCredentialAccountStateStatusRevoking             OnePasswordCredentialAccountStateStatus = \"revoking\"\n)\n```\n\n```go\ntype OnePasswordCredentialVaultItemSpec struct {\n\t// Any of \"1password\".\n\tProvider OnePasswordCredentialVaultItemSpecProvider `json:\"provider\" api:\"required\"`\n\t// Credential Request v2 input sent to the extension. A credential item may request\n\t// up to five login entries.\n\tRequests OnePasswordCredentialVaultItemSpecRequests `json:\"requests\" api:\"required\"`\n\t// Customer-supplied expiry metadata, if provided.\n\tAccessTokenExpiresAt time.Time `json:\"access_token_expires_at\" format:\"date-time\"`\n\tAccount              string    `json:\"account\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tProvider             respjson.Field\n\t\tRequests             respjson.Field\n\t\tAccessTokenExpiresAt respjson.Field\n\t\tAccount              respjson.Field\n\t\tExtraFields          map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nStored-token credentials omit account and never return access\\_token or integration\\_key.\n\n```go\nfunc (r OnePasswordCredentialVaultItemSpec) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OnePasswordCredentialVaultItemSpec) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordCredentialVaultItemSpecInputParam struct {\n\t// Any of \"1password\".\n\tProvider OnePasswordCredentialVaultItemSpecInputProvider `json:\"provider,omitzero\" api:\"required\"`\n\t// ID of an approved access request you created with this access_token and\n\t// integration_key. Requires resolved.\n\tAccessRequestID param.Opt[string] `json:\"access_request_id,omitzero\"`\n\t// Customer-supplied 1Password broker token. Requires integration_key; stored\n\t// encrypted on this item. Omit if providing a connected credential_account item\n\t// via the account field.\n\tAccessToken param.Opt[string] `json:\"access_token,omitzero\"`\n\t// Optional supplied token expiry metadata for stored-token credentials. Omit if\n\t// providing a connected credential_account item via the account field.\n\tAccessTokenExpiresAt param.Opt[time.Time] `json:\"access_token_expires_at,omitzero\" format:\"date-time\"`\n\t// Key of a connected credential_account item in the same vault. Omit for\n\t// stored-token credentials.\n\tAccount param.Opt[string] `json:\"account,omitzero\"`\n\t// Matching customer-supplied integration key. Requires access_token; stored\n\t// encrypted on this item. Omit if providing a connected credential_account item\n\t// via the account field.\n\tIntegrationKey param.Opt[string] `json:\"integration_key,omitzero\"`\n\t// Legacy single-login shorthand. Supply requests instead.\n\t//\n\t// Deprecated: deprecated\n\tWebsite param.Opt[string] `json:\"website,omitzero\" format:\"uri\"`\n\t// Credential Request v2 input sent to the extension. A credential item may request\n\t// up to five login entries.\n\tRequests OnePasswordCredentialVaultItemSpecInputRequestsParam `json:\"requests,omitzero\"`\n\t// Granted logins from 1Password's status for access_request_id, as returned by the\n\t// 1Password SDK or extension. Requires access_request_id and an id on every\n\t// requests entry. entryId may be omitted only when requests has one entry. Kernel\n\t// doesn't verify the references; 1Password checks them when filling.\n\tResolved []OnePasswordCredentialVaultItemSpecInputResolvedParam `json:\"resolved,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nA login request backed by a connected 1Password account or by a customer-supplied access token and matching integration key. Supply either account or both secrets, never both. Supplied secrets are write-only and never returned. Supply requests for new items; website remains supported for existing account-backed callers. To use an access request you already created and the user approved with the same access token and integration key, also supply access\\_request\\_id, resolved, and each requests entry's id; the item is created ready and Kernel doesn't create an access request.\n\nThe property Provider is required.\n\n```go\nfunc (r OnePasswordCredentialVaultItemSpecInputParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *OnePasswordCredentialVaultItemSpecInputParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordCredentialVaultItemSpecInputProvider string\n```\n\n```go\nconst (\n\tOnePasswordCredentialVaultItemSpecInputProvider1password OnePasswordCredentialVaultItemSpecInputProvider = \"1password\"\n)\n```\n\n```go\ntype OnePasswordCredentialVaultItemSpecInputRequestsEntryParam struct {\n\tParameters OnePasswordCredentialVaultItemSpecInputRequestsEntryParametersParam `json:\"parameters,omitzero\" api:\"required\"`\n\t// Must be login.\n\tType string `json:\"type\" api:\"required\"`\n\t// 1Password's ID for this entry in an access request you created. Supply it only\n\t// with resolved.\n\tID       param.Opt[string] `json:\"id,omitzero\"`\n\tReason   param.Opt[string] `json:\"reason,omitzero\"`\n\tKeywords []string          `json:\"keywords,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Parameters, Type are required.\n\n```go\nfunc (r OnePasswordCredentialVaultItemSpecInputRequestsEntryParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *OnePasswordCredentialVaultItemSpecInputRequestsEntryParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordCredentialVaultItemSpecInputRequestsEntryParametersParam struct {\n\tWebsite string `json:\"website\" api:\"required\" format:\"uri\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Website is required.\n\n```go\nfunc (r OnePasswordCredentialVaultItemSpecInputRequestsEntryParametersParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *OnePasswordCredentialVaultItemSpecInputRequestsEntryParametersParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordCredentialVaultItemSpecInputRequestsParam struct {\n\tEntries []OnePasswordCredentialVaultItemSpecInputRequestsEntryParam `json:\"entries,omitzero\" api:\"required\"`\n\t// Must be 2.\n\tVersion int64             `json:\"version\" api:\"required\"`\n\tGoal    param.Opt[string] `json:\"goal,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nCredential Request v2 input sent to the extension. A credential item may request up to five login entries.\n\nThe properties Entries, Version are required.\n\n```go\nfunc (r OnePasswordCredentialVaultItemSpecInputRequestsParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *OnePasswordCredentialVaultItemSpecInputRequestsParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordCredentialVaultItemSpecInputResolvedParam struct {\n\t// 1Password credential reference. Pass it unchanged as resourcePath to the\n\t// extension's fillCredential or to the 1Password SDK.\n\tReference string `json:\"reference\" api:\"required\"`\n\t// The requested entry this login satisfies, when known.\n\tEntryID param.Opt[string] `json:\"entryId,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Reference is required.\n\n```go\nfunc (r OnePasswordCredentialVaultItemSpecInputResolvedParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *OnePasswordCredentialVaultItemSpecInputResolvedParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordCredentialVaultItemSpecProvider string\n```\n\n```go\nconst (\n\tOnePasswordCredentialVaultItemSpecProvider1password OnePasswordCredentialVaultItemSpecProvider = \"1password\"\n)\n```\n\n```go\ntype OnePasswordCredentialVaultItemSpecRequests struct {\n\tEntries []OnePasswordCredentialVaultItemSpecRequestsEntry `json:\"entries\" api:\"required\"`\n\t// Must be 2.\n\tVersion int64  `json:\"version\" api:\"required\"`\n\tGoal    string `json:\"goal\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEntries     respjson.Field\n\t\tVersion     respjson.Field\n\t\tGoal        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nCredential Request v2 input sent to the extension. A credential item may request up to five login entries.\n\n```go\nfunc (r OnePasswordCredentialVaultItemSpecRequests) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OnePasswordCredentialVaultItemSpecRequests) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordCredentialVaultItemSpecRequestsEntry struct {\n\tParameters OnePasswordCredentialVaultItemSpecRequestsEntryParameters `json:\"parameters\" api:\"required\"`\n\t// Must be login.\n\tType string `json:\"type\" api:\"required\"`\n\t// 1Password's ID for this entry in an access request you created. Supply it only\n\t// with resolved.\n\tID       string   `json:\"id\"`\n\tKeywords []string `json:\"keywords\"`\n\tReason   string   `json:\"reason\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tParameters  respjson.Field\n\t\tType        respjson.Field\n\t\tID          respjson.Field\n\t\tKeywords    respjson.Field\n\t\tReason      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OnePasswordCredentialVaultItemSpecRequestsEntry) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OnePasswordCredentialVaultItemSpecRequestsEntry) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordCredentialVaultItemSpecRequestsEntryParameters struct {\n\tWebsite string `json:\"website\" api:\"required\" format:\"uri\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tWebsite     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OnePasswordCredentialVaultItemSpecRequestsEntryParameters) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OnePasswordCredentialVaultItemSpecRequestsEntryParameters) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordCredentialVaultItemState struct {\n\t// Any of \"1password\".\n\tProvider OnePasswordCredentialVaultItemStateProvider `json:\"provider\" api:\"required\"`\n\t// Any of \"pending_authorization\", \"ready\", \"declined\", \"failed\".\n\tStatus OnePasswordCredentialVaultItemStateStatus `json:\"status\" api:\"required\"`\n\t// Non-secret broker state. Granted credential references are returned in resolved\n\t// only for credentials with a customer-supplied access token; otherwise they stay\n\t// encrypted server-side and can only be used by the fill operation.\n\tAccessRequest OnePasswordCredentialVaultItemStateAccessRequest `json:\"access_request\"`\n\t// Opaque request ID returned by the 1Password broker after a successful\n\t// createAccessRequest call.\n\tAccessRequestID string `json:\"access_request_id\"`\n\tStatusReason    string `json:\"status_reason\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tProvider        respjson.Field\n\t\tStatus          respjson.Field\n\t\tAccessRequest   respjson.Field\n\t\tAccessRequestID respjson.Field\n\t\tStatusReason    respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OnePasswordCredentialVaultItemState) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OnePasswordCredentialVaultItemState) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordCredentialVaultItemStateAccessRequest struct {\n\tID               string `json:\"id\" api:\"required\"`\n\tHasAutofillToken bool   `json:\"has_autofill_token\" api:\"required\"`\n\t// One of pending, resolved, denied, failed, expired, or unknown. expired returns\n\t// the item to pending_authorization so access can be requested again; unknown is a\n\t// state 1Password added later and is treated as failed.\n\tState string `json:\"state\" api:\"required\"`\n\t// Provider-created timestamp as returned by the broker.\n\tCreatedAt string `json:\"createdAt\"`\n\t// Login entries returned directly on accessRequest by the observed extension\n\t// build. Omitted when the provider does not supply them.\n\tEntries []OnePasswordCredentialVaultItemStateAccessRequestEntry `json:\"entries\"`\n\t// Goal echoed by the observed createAccessRequest response when present.\n\tGoal         string `json:\"goal\"`\n\tGrantedCount int64  `json:\"granted_count\"`\n\t// Opaque provider identity returned by the broker.\n\tIdentity string `json:\"identity\"`\n\t// Provider path if supplied in the broker response.\n\tPath string `json:\"path\"`\n\t// The request object if returned by the extension. The observed create response\n\t// may omit entries; no entry IDs are invented.\n\tRequest OnePasswordCredentialVaultItemStateAccessRequestRequest `json:\"request\"`\n\t// Granted logins in the shape 1Password's getAccessRequestStatus returns. Present\n\t// only for ready credentials with a customer-supplied access token, on single-item\n\t// responses to callers that can use the vault. Each reference works only with that\n\t// credential's access token and integration key.\n\tResolved []OnePasswordCredentialVaultItemStateAccessRequestResolved `json:\"resolved\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID               respjson.Field\n\t\tHasAutofillToken respjson.Field\n\t\tState            respjson.Field\n\t\tCreatedAt        respjson.Field\n\t\tEntries          respjson.Field\n\t\tGoal             respjson.Field\n\t\tGrantedCount     respjson.Field\n\t\tIdentity         respjson.Field\n\t\tPath             respjson.Field\n\t\tRequest          respjson.Field\n\t\tResolved         respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nNon-secret broker state. Granted credential references are returned in resolved only for credentials with a customer-supplied access token; otherwise they stay encrypted server-side and can only be used by the fill operation.\n\n```go\nfunc (r OnePasswordCredentialVaultItemStateAccessRequest) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OnePasswordCredentialVaultItemStateAccessRequest) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordCredentialVaultItemStateAccessRequestEntry struct {\n\tID         string                                                          `json:\"id\"`\n\tKeywords   []string                                                        `json:\"keywords\"`\n\tParameters OnePasswordCredentialVaultItemStateAccessRequestEntryParameters `json:\"parameters\"`\n\tReason     string                                                          `json:\"reason\"`\n\tType       string                                                          `json:\"type\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tKeywords    respjson.Field\n\t\tParameters  respjson.Field\n\t\tReason      respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OnePasswordCredentialVaultItemStateAccessRequestEntry) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OnePasswordCredentialVaultItemStateAccessRequestEntry) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordCredentialVaultItemStateAccessRequestEntryParameters struct {\n\tWebsite string `json:\"website\" format:\"uri\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tWebsite     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OnePasswordCredentialVaultItemStateAccessRequestEntryParameters) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OnePasswordCredentialVaultItemStateAccessRequestEntryParameters) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordCredentialVaultItemStateAccessRequestRequest struct {\n\tEntries []OnePasswordCredentialVaultItemStateAccessRequestRequestEntry `json:\"entries\"`\n\tGoal    string                                                         `json:\"goal\"`\n\tVersion int64                                                          `json:\"version\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEntries     respjson.Field\n\t\tGoal        respjson.Field\n\t\tVersion     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nThe request object if returned by the extension. The observed create response may omit entries; no entry IDs are invented.\n\n```go\nfunc (r OnePasswordCredentialVaultItemStateAccessRequestRequest) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OnePasswordCredentialVaultItemStateAccessRequestRequest) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordCredentialVaultItemStateAccessRequestRequestEntry struct {\n\tID         string                                                                 `json:\"id\"`\n\tKeywords   []string                                                               `json:\"keywords\"`\n\tParameters OnePasswordCredentialVaultItemStateAccessRequestRequestEntryParameters `json:\"parameters\"`\n\tReason     string                                                                 `json:\"reason\"`\n\tType       string                                                                 `json:\"type\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tKeywords    respjson.Field\n\t\tParameters  respjson.Field\n\t\tReason      respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OnePasswordCredentialVaultItemStateAccessRequestRequestEntry) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OnePasswordCredentialVaultItemStateAccessRequestRequestEntry) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordCredentialVaultItemStateAccessRequestRequestEntryParameters struct {\n\tWebsite string `json:\"website\" format:\"uri\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tWebsite     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OnePasswordCredentialVaultItemStateAccessRequestRequestEntryParameters) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OnePasswordCredentialVaultItemStateAccessRequestRequestEntryParameters) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordCredentialVaultItemStateAccessRequestResolved struct {\n\t// 1Password credential reference. Pass it unchanged as resourcePath to the\n\t// extension's fillCredential or to the 1Password SDK.\n\tReference string `json:\"reference\" api:\"required\"`\n\t// The requested entry this login satisfies, when known.\n\tEntryID string `json:\"entryId\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tReference   respjson.Field\n\t\tEntryID     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OnePasswordCredentialVaultItemStateAccessRequestResolved) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OnePasswordCredentialVaultItemStateAccessRequestResolved) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordCredentialVaultItemStateProvider string\n```\n\n```go\nconst (\n\tOnePasswordCredentialVaultItemStateProvider1password OnePasswordCredentialVaultItemStateProvider = \"1password\"\n)\n```\n\n```go\ntype OnePasswordCredentialVaultItemStateStatus string\n```\n\n```go\nconst (\n\tOnePasswordCredentialVaultItemStateStatusPendingAuthorization OnePasswordCredentialVaultItemStateStatus = \"pending_authorization\"\n\tOnePasswordCredentialVaultItemStateStatusReady                OnePasswordCredentialVaultItemStateStatus = \"ready\"\n\tOnePasswordCredentialVaultItemStateStatusDeclined             OnePasswordCredentialVaultItemStateStatus = \"declined\"\n\tOnePasswordCredentialVaultItemStateStatusFailed               OnePasswordCredentialVaultItemStateStatus = \"failed\"\n)\n```\n\n```go\ntype OnePasswordFillVaultItemOperationRequestParam struct {\n\t// Browser session ID, not a reusable browser name.\n\tBrowserID string `json:\"browser_id\" api:\"required\"`\n\t// Exact current top-level page URL. Must match exactly one open page in the\n\t// browser unless target_id is supplied.\n\tPageURL string `json:\"page_url\" api:\"required\" format:\"uri\"`\n\t// Any of \"1pw_fill\".\n\tType OnePasswordFillVaultItemOperationRequestType `json:\"type,omitzero\" api:\"required\"`\n\t// ID of an approved request entry. Required when several entries are approved and\n\t// the page's origin does not match exactly one of them.\n\tEntryID param.Opt[string] `json:\"entry_id,omitzero\"`\n\t// CDP target ID of the page to fill, such as tab.target_id from\n\t// playwright.execute. Use it when several open pages have page_url. The page's\n\t// current URL must equal page_url. Kernel brings the page to the front of its\n\t// window before filling.\n\tTargetID  param.Opt[string] `json:\"target_id,omitzero\"`\n\tTimeoutMs param.Opt[int64]  `json:\"timeout_ms,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nFill and submit an approved 1Password login in the selected browser page. The 1Password extension decides whether the approved login matches the page and refuses pages that don't. Supply entry\\_id when several entries are approved and the page origin does not identify exactly one of them, and target\\_id when more than one open page has page\\_url. The extension selects fields; callers cannot supply selectors or secret values. Submission does not confirm website authentication.\n\nThe properties BrowserID, PageURL, Type are required.\n\n```go\nfunc (r OnePasswordFillVaultItemOperationRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *OnePasswordFillVaultItemOperationRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordFillVaultItemOperationRequestType string\n```\n\n```go\nconst (\n\tOnePasswordFillVaultItemOperationRequestType1pwFill OnePasswordFillVaultItemOperationRequestType = \"1pw_fill\"\n)\n```\n\n```go\ntype OnePasswordFillVaultItemOperationResult struct {\n\t// Kernel's outcome of the extension call. fill_submitted means the extension\n\t// reported submission, not website authentication; check the page. fill_failed\n\t// means 1Password reported a failure, named by error_code; with fillFailed the\n\t// form may already have been filled or submitted, so check the page. fill_unknown\n\t// means the form may have been filled or submitted without a conclusive result;\n\t// inspect the page to see the result of the fill.\n\t//\n\t// Any of \"fill_submitted\", \"fill_failed\", \"fill_unknown\".\n\tStatus OnePasswordFillVaultItemOperationResultStatus `json:\"status\" api:\"required\"`\n\t// Any of \"1pw_fill\".\n\tType OnePasswordFillVaultItemOperationResultType `json:\"type\" api:\"required\"`\n\t// The 1Password extension's error code, passed through unchanged. Present for\n\t// fill_failed, and for fill_unknown when the extension reported one. Codes\n\t// 1Password adds later are returned with fill_unknown, because the form may have\n\t// been filled or submitted. Codes are short identifiers, never raw errors,\n\t// secrets, or page content.\n\t//\n\t// autosubmitFailed (fill_unknown): 1Password filled the form, saw no new page and\n\t// no removed fields for 10 seconds, and cleared what it filled. If the login has a\n\t// one-time password the site didn't ask for, the sign-in may still have worked.\n\t// The approval is still valid: do not request access again. Check the page:\n\t// continue if signed in or on a verification step; if the form is still showing,\n\t// 1Password cannot sign in to this site, so ask the user or use another sign-in\n\t// method rather than filling again.\n\t//\n\t// internal (fill_unknown): an unexpected 1Password error that may have happened\n\t// after the fill. Inspect the page.\n\t//\n\t// noActiveGrant, credentialNotFound: the approval expired or was revoked, or the\n\t// login was deleted or moved. Kernel returns the credential to\n\t// pending_authorization and drops its approval; create a new access request with\n\t// 1pw_create_access_request.\n\t//\n\t// fillFailed: 1Password couldn't complete the fill, and the form may already have\n\t// been filled or submitted. Check the page before filling again.\n\t//\n\t// websiteMismatch: the page isn't on the login's website. Navigate to the login\n\t// page and fill again.\n\t//\n\t// rateLimitExceeded: wait at least a minute before filling again.\n\t// serviceUnavailable and networkError: fill again with backoff.\n\t//\n\t// extensionUnavailable: the 1Password extension failed to start in this browser.\n\t// Create a new browser with the vault attached and fill there.\n\t//\n\t// invalidToken: 1Password rejected the access token. For a credential linked to a\n\t// 1Password account, Kernel has already refreshed the token and filled once more;\n\t// if that refresh failed, the account is now reconnect_required, so link it again\n\t// with PUT. For a credential with a stored token, replace the token with\n\t// 1pw_update_access_token, then fill again.\n\t//\n\t// integrationKeyInvalid: the 1Password connection was removed or is out of date.\n\t// Invoke 1pw_disconnect on the credential_account item, then link it again with\n\t// PUT.\n\t//\n\t// insufficientScope, permissionDenied, featureEntitlementMissing: the 1Password\n\t// account or plan doesn't allow this. Tell the user; filling again won't help.\n\tErrorCode string `json:\"error_code\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tStatus      respjson.Field\n\t\tType        respjson.Field\n\t\tErrorCode   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nThe submission result reported by the 1Password extension when available. Kernel returns fill\\_unknown if the extension call has no conclusive result. Inspect the page to determine successful authentication on the website.\n\n```go\nfunc (r OnePasswordFillVaultItemOperationResult) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OnePasswordFillVaultItemOperationResult) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordFillVaultItemOperationResultErrorCode = string\n```\nDeprecated: use string. ErrorCode can contain new values.\n\n```go\nconst (\n\tOnePasswordFillVaultItemOperationResultErrorCodeFillFailed            OnePasswordFillVaultItemOperationResultErrorCode = \"fillFailed\"\n\tOnePasswordFillVaultItemOperationResultErrorCodeAutosubmitFailed      OnePasswordFillVaultItemOperationResultErrorCode = \"autosubmitFailed\"\n\tOnePasswordFillVaultItemOperationResultErrorCodeNoExistingCredentials OnePasswordFillVaultItemOperationResultErrorCode = \"noExistingCredentials\"\n\tOnePasswordFillVaultItemOperationResultErrorCodeAuthenticationFailed  OnePasswordFillVaultItemOperationResultErrorCode = \"authenticationFailed\"\n)\n```\nDeprecated: use the error code strings directly.\n\n```go\ntype OnePasswordFillVaultItemOperationResultStatus string\n```\nKernel's outcome of the extension call. fill\\_submitted means the extension reported submission, not website authentication; check the page. fill\\_failed means 1Password reported a failure, named by error\\_code; with fillFailed the form may already have been filled or submitted, so check the page. fill\\_unknown means the form may have been filled or submitted without a conclusive result; inspect the page to see the result of the fill.\n\n```go\nconst (\n\tOnePasswordFillVaultItemOperationResultStatusFillSubmitted OnePasswordFillVaultItemOperationResultStatus = \"fill_submitted\"\n\tOnePasswordFillVaultItemOperationResultStatusFillFailed    OnePasswordFillVaultItemOperationResultStatus = \"fill_failed\"\n\tOnePasswordFillVaultItemOperationResultStatusFillUnknown   OnePasswordFillVaultItemOperationResultStatus = \"fill_unknown\"\n)\n```\n\n```go\ntype OnePasswordFillVaultItemOperationResultType string\n```\n\n```go\nconst (\n\tOnePasswordFillVaultItemOperationResultType1pwFill OnePasswordFillVaultItemOperationResultType = \"1pw_fill\"\n)\n```\n\n```go\ntype OnePasswordOAuthAction struct {\n\t// Any of \"1password_oauth\".\n\tName OnePasswordOAuthActionName `json:\"name\" api:\"required\"`\n\t// 1Password-hosted OAuth authorization URL for the human to open.\n\tURL string `json:\"url\" api:\"required\" format:\"uri\"`\n\t// 1Password connect link for the same authorization, for the person to open on\n\t// their own device. In 1Password for iOS or Android it opens the app to approve\n\t// the connection. Anywhere else it opens 1Password in the browser, where someone\n\t// without 1Password can sign up; if the account is still pending afterwards, they\n\t// connect with url. Also offer url to people who already use 1Password on a\n\t// computer. Whichever link the person answers first settles the authorization and\n\t// the other stops working. Expires with the account's expires_at; repeat the\n\t// upsert for fresh links. Absent on a recovery link.\n\tConnectURL string `json:\"connect_url\" format:\"uri\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tName        respjson.Field\n\t\tURL         respjson.Field\n\t\tConnectURL  respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OnePasswordOAuthAction) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OnePasswordOAuthAction) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordOAuthActionName string\n```\n\n```go\nconst (\n\tOnePasswordOAuthActionName1passwordOAuth OnePasswordOAuthActionName = \"1password_oauth\"\n)\n```\n\n```go\ntype OnePasswordRecoverVaultItemOperationRequestParam struct {\n\t// Any of \"1pw_recover\".\n\tType OnePasswordRecoverVaultItemOperationRequestType `json:\"type,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nKernel encountered a recoverable error while linking this 1Password account. Use this action to get a new link to recover the connection. After recovery completes, start a new authorization on the same item.\n\nThe property Type is required.\n\n```go\nfunc (r OnePasswordRecoverVaultItemOperationRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *OnePasswordRecoverVaultItemOperationRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordRecoverVaultItemOperationRequestType string\n```\n\n```go\nconst (\n\tOnePasswordRecoverVaultItemOperationRequestType1pwRecover OnePasswordRecoverVaultItemOperationRequestType = \"1pw_recover\"\n)\n```\n\n```go\ntype OnePasswordRequestAccessVaultItemOperationRequestParam struct {\n\t// Any of \"1pw_create_access_request\".\n\tType     OnePasswordRequestAccessVaultItemOperationRequestType `json:\"type,omitzero\" api:\"required\"`\n\tGoal     param.Opt[string]                                     `json:\"goal,omitzero\"`\n\tReason   param.Opt[string]                                     `json:\"reason,omitzero\"`\n\tKeywords []string                                              `json:\"keywords,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nRequest access to login entries in the end-user's own, non-shared 1Password vault. No browser is needed; the end-user approves access in the 1Password app. Shared-vault items and passkeys are not supported. Per-entry reason and keywords overrides are only supported for a single login entry.\n\nThe property Type is required.\n\n```go\nfunc (r OnePasswordRequestAccessVaultItemOperationRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *OnePasswordRequestAccessVaultItemOperationRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OnePasswordRequestAccessVaultItemOperationRequestType string\n```\n\n```go\nconst (\n\tOnePasswordRequestAccessVaultItemOperationRequestType1pwCreateAccessRequest OnePasswordRequestAccessVaultItemOperationRequestType = \"1pw_create_access_request\"\n)\n```\n\n```go\ntype OrgEntitlements struct {\n\tFeatures OrgEntitlementsFeatures `json:\"features\" api:\"required\"`\n\tLimits   OrgEntitlementsLimits   `json:\"limits\" api:\"required\"`\n\tPlan     OrgEntitlementsPlan     `json:\"plan\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tFeatures    respjson.Field\n\t\tLimits      respjson.Field\n\t\tPlan        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nEffective feature access and constraints for the authenticated organization. Values already include trial treatment, plan status, and organization-specific overrides; consumers should use these resolved values instead of comparing plan IDs.\n\n```go\nfunc (r OrgEntitlements) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OrgEntitlements) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OrgEntitlementsFeatures struct {\n\tBrowserExtensions   OrgEntitlementsFeaturesBrowserExtensions   `json:\"browser_extensions\" api:\"required\"`\n\tBrowserPools        OrgEntitlementsFeaturesBrowserPools        `json:\"browser_pools\" api:\"required\"`\n\tBrowserReplays      OrgEntitlementsFeaturesBrowserReplays      `json:\"browser_replays\" api:\"required\"`\n\tCredentialProviders OrgEntitlementsFeaturesCredentialProviders `json:\"credential_providers\" api:\"required\"`\n\tCredentials         OrgEntitlementsFeaturesCredentials         `json:\"credentials\" api:\"required\"`\n\tCustomProxies       OrgEntitlementsFeaturesCustomProxies       `json:\"custom_proxies\" api:\"required\"`\n\tFileIo              OrgEntitlementsFeaturesFileIo              `json:\"file_io\" api:\"required\"`\n\tGPU                 OrgEntitlementsFeaturesGPU                 `json:\"gpu\" api:\"required\"`\n\tManagedAuth         OrgEntitlementsFeaturesManagedAuth         `json:\"managed_auth\" api:\"required\"`\n\tManagedProxies      OrgEntitlementsFeaturesManagedProxies      `json:\"managed_proxies\" api:\"required\"`\n\tProfiles            OrgEntitlementsFeaturesProfiles            `json:\"profiles\" api:\"required\"`\n\tProxyBypassHosts    OrgEntitlementsFeaturesProxyBypassHosts    `json:\"proxy_bypass_hosts\" api:\"required\"`\n\t// Whether the Search API is enabled for the organization by its rollout feature\n\t// flag.\n\tSearch OrgEntitlementsFeaturesSearch `json:\"search\" api:\"required\"`\n\t// Whether the organization can access vaults, using the same access check as vault\n\t// API routes.\n\tVaults OrgEntitlementsFeaturesVaults `json:\"vaults\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBrowserExtensions   respjson.Field\n\t\tBrowserPools        respjson.Field\n\t\tBrowserReplays      respjson.Field\n\t\tCredentialProviders respjson.Field\n\t\tCredentials         respjson.Field\n\t\tCustomProxies       respjson.Field\n\t\tFileIo              respjson.Field\n\t\tGPU                 respjson.Field\n\t\tManagedAuth         respjson.Field\n\t\tManagedProxies      respjson.Field\n\t\tProfiles            respjson.Field\n\t\tProxyBypassHosts    respjson.Field\n\t\tSearch              respjson.Field\n\t\tVaults              respjson.Field\n\t\tExtraFields         map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OrgEntitlementsFeatures) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OrgEntitlementsFeatures) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OrgEntitlementsFeaturesBrowserExtensions struct {\n\t// Whether browser extensions are available.\n\tEnabled bool `json:\"enabled\" api:\"required\"`\n\t// Maximum active custom extensions the organization may store. Null means\n\t// unlimited. Loading stored extensions into a browser is not plan-limited.\n\tMaxStoredPerOrg int64 `json:\"max_stored_per_org\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEnabled         respjson.Field\n\t\tMaxStoredPerOrg respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OrgEntitlementsFeaturesBrowserExtensions) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OrgEntitlementsFeaturesBrowserExtensions) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OrgEntitlementsFeaturesBrowserPools struct {\n\t// Whether the organization is entitled to use this feature.\n\tEnabled bool `json:\"enabled\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEnabled     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OrgEntitlementsFeaturesBrowserPools) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OrgEntitlementsFeaturesBrowserPools) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OrgEntitlementsFeaturesBrowserReplays struct {\n\t// Whether browser replay recording is available.\n\tEnabled bool `json:\"enabled\" api:\"required\"`\n\t// Number of days browser replays are retained, matching the replay reaper policy.\n\tRetentionDays int64 `json:\"retention_days\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEnabled       respjson.Field\n\t\tRetentionDays respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OrgEntitlementsFeaturesBrowserReplays) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OrgEntitlementsFeaturesBrowserReplays) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OrgEntitlementsFeaturesCredentialProviders struct {\n\t// Whether the organization is entitled to use this feature.\n\tEnabled bool `json:\"enabled\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEnabled     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OrgEntitlementsFeaturesCredentialProviders) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OrgEntitlementsFeaturesCredentialProviders) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OrgEntitlementsFeaturesCredentials struct {\n\t// Whether the organization is entitled to use this feature.\n\tEnabled bool `json:\"enabled\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEnabled     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OrgEntitlementsFeaturesCredentials) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OrgEntitlementsFeaturesCredentials) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OrgEntitlementsFeaturesCustomProxies struct {\n\t// Whether the organization is entitled to use this feature.\n\tEnabled bool `json:\"enabled\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEnabled     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OrgEntitlementsFeaturesCustomProxies) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OrgEntitlementsFeaturesCustomProxies) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OrgEntitlementsFeaturesFileIo struct {\n\t// Whether the organization is entitled to use this feature.\n\tEnabled bool `json:\"enabled\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEnabled     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OrgEntitlementsFeaturesFileIo) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OrgEntitlementsFeaturesFileIo) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OrgEntitlementsFeaturesGPU struct {\n\t// Whether the organization is entitled to use this feature.\n\tEnabled bool `json:\"enabled\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEnabled     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OrgEntitlementsFeaturesGPU) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OrgEntitlementsFeaturesGPU) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OrgEntitlementsFeaturesManagedAuth struct {\n\t// Whether managed auth is available.\n\tEnabled bool `json:\"enabled\" api:\"required\"`\n\t// Effective interval in seconds used when a connection is created without an\n\t// explicit health-check interval.\n\tHealthCheckIntervalDefaultSeconds int64 `json:\"health_check_interval_default_seconds\" api:\"required\"`\n\t// Maximum accepted managed auth health-check interval in seconds.\n\tHealthCheckIntervalMaxSeconds int64 `json:\"health_check_interval_max_seconds\" api:\"required\"`\n\t// Minimum accepted managed auth health-check interval in seconds.\n\tHealthCheckIntervalMinSeconds int64 `json:\"health_check_interval_min_seconds\" api:\"required\"`\n\t// Maximum active managed auth connections in the organization. Null means\n\t// unlimited.\n\tMaxConnections int64 `json:\"max_connections\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEnabled                           respjson.Field\n\t\tHealthCheckIntervalDefaultSeconds respjson.Field\n\t\tHealthCheckIntervalMaxSeconds     respjson.Field\n\t\tHealthCheckIntervalMinSeconds     respjson.Field\n\t\tMaxConnections                    respjson.Field\n\t\tExtraFields                       map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OrgEntitlementsFeaturesManagedAuth) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OrgEntitlementsFeaturesManagedAuth) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OrgEntitlementsFeaturesManagedProxies struct {\n\t// Whether the organization is entitled to use this feature.\n\tEnabled bool `json:\"enabled\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEnabled     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OrgEntitlementsFeaturesManagedProxies) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OrgEntitlementsFeaturesManagedProxies) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OrgEntitlementsFeaturesProfiles struct {\n\t// Whether the organization is entitled to use this feature.\n\tEnabled bool `json:\"enabled\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEnabled     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OrgEntitlementsFeaturesProfiles) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OrgEntitlementsFeaturesProfiles) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OrgEntitlementsFeaturesProxyBypassHosts struct {\n\t// Whether the organization is entitled to use this feature.\n\tEnabled bool `json:\"enabled\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEnabled     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OrgEntitlementsFeaturesProxyBypassHosts) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OrgEntitlementsFeaturesProxyBypassHosts) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OrgEntitlementsFeaturesSearch struct {\n\t// Whether the organization is entitled to use this feature.\n\tEnabled bool `json:\"enabled\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEnabled     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nWhether the Search API is enabled for the organization by its rollout feature flag.\n\n```go\nfunc (r OrgEntitlementsFeaturesSearch) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OrgEntitlementsFeaturesSearch) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OrgEntitlementsFeaturesVaults struct {\n\t// Whether the organization is entitled to use this feature.\n\tEnabled bool `json:\"enabled\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEnabled     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nWhether the organization can access vaults, using the same access check as vault API routes.\n\n```go\nfunc (r OrgEntitlementsFeaturesVaults) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OrgEntitlementsFeaturesVaults) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OrgEntitlementsLimits struct {\n\t// Effective org-level default concurrent invocation ceiling for apps without an\n\t// app-specific override. App-specific overrides are not represented here.\n\tDefaultMaxConcurrentInvocationsPerApp int64 `json:\"default_max_concurrent_invocations_per_app\" api:\"required\"`\n\t// Effective organization-wide ceiling shared by on-demand browsers and browser\n\t// pool reservations.\n\tMaxConcurrentBrowsers int64 `json:\"max_concurrent_browsers\" api:\"required\"`\n\t// Effective organization-wide concurrent app invocation ceiling.\n\tMaxConcurrentInvocations int64 `json:\"max_concurrent_invocations\" api:\"required\"`\n\t// Maximum non-deleted vaults allowed org-wide across all projects. Null means\n\t// unlimited. The vaults feature flag still controls access.\n\tMaxVaults int64 `json:\"max_vaults\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDefaultMaxConcurrentInvocationsPerApp respjson.Field\n\t\tMaxConcurrentBrowsers                 respjson.Field\n\t\tMaxConcurrentInvocations              respjson.Field\n\t\tMaxVaults                             respjson.Field\n\t\tExtraFields                           map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OrgEntitlementsLimits) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OrgEntitlementsLimits) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OrgEntitlementsPlan struct {\n\t// The organization's contractual plan identifier. Use the resolved feature and\n\t// limit values, not this field, for access decisions.\n\t//\n\t// Any of \"FREE\", \"HOBBYIST\", \"START_UP\", \"ENTERPRISE\".\n\tID string `json:\"id\" api:\"required\"`\n\t// The plan used to resolve plan-based access. Active trials resolve to START_UP\n\t// regardless of the contractual plan.\n\t//\n\t// Any of \"FREE\", \"HOBBYIST\", \"START_UP\", \"ENTERPRISE\".\n\tEffectiveID string `json:\"effective_id\" api:\"required\"`\n\t// Whether the organization is currently within its trial period.\n\tIsTrialing bool `json:\"is_trialing\" api:\"required\"`\n\t// Current billing status of the contractual plan, or null when no billing status\n\t// is recorded. Status-sensitive feature values already account for it.\n\t//\n\t// Any of \"NEEDS_PAYMENT_METHOD\", \"ACTIVE\", \"CANCELED\", \"UNPAID\".\n\tStatus string `json:\"status\" api:\"required\"`\n\t// Configured trial end timestamp, or null when the organization has no trial. A\n\t// past timestamp may be returned when is_trialing is false.\n\tTrialEndsAt time.Time `json:\"trial_ends_at\" api:\"required\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tEffectiveID respjson.Field\n\t\tIsTrialing  respjson.Field\n\t\tStatus      respjson.Field\n\t\tTrialEndsAt respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OrgEntitlementsPlan) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OrgEntitlementsPlan) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OrgLimits struct {\n\t// The organization's current non-deleted managed auth connections, counted\n\t// org-wide across every project. Compare against max_auth_connections to show\n\t// remaining capacity before a create is rejected with 403 insufficient_plan.\n\tAuthConnectionsUsed int64 `json:\"auth_connections_used\" api:\"required\"`\n\t// Number of concurrent browser slots currently available to the organization. This\n\t// is the effective concurrency limit minus active on-demand sessions and browser\n\t// pool reservations, floored at zero. Null when usage cannot be read.\n\tConcurrentSessionsAvailable int64 `json:\"concurrent_sessions_available\" api:\"required\"`\n\t// Current organization-wide concurrent browser usage, including active on-demand\n\t// sessions and browser pool reservations. Null when usage cannot be read.\n\tConcurrentSessionsUsed int64 `json:\"concurrent_sessions_used\" api:\"required\"`\n\t// Maximum managed auth connections the organization's plan allows. Null means\n\t// unlimited. Counted org-wide, so it cannot be multiplied across projects.\n\tMaxAuthConnections int64 `json:\"max_auth_connections\" api:\"required\"`\n\t// Maximum non-deleted vaults allowed org-wide across all projects. Null means\n\t// unlimited.\n\tMaxVaults int64 `json:\"max_vaults\" api:\"required\"`\n\t// Smallest health_check_interval the organization's plan accepts on a managed auth\n\t// connection. Requests below this are rejected with 400. Existing connections\n\t// stored below the floor are grandfathered until edited.\n\tMinHealthCheckIntervalSeconds int64 `json:\"min_health_check_interval_seconds\" api:\"required\"`\n\t// Current non-deleted vault count across all projects in the organization.\n\tVaultsUsed int64 `json:\"vaults_used\" api:\"required\"`\n\t// Default maximum concurrent browsers applied to every project that has no\n\t// explicit per-project override. Null means no org-level default, so such projects\n\t// are uncapped (only the org-wide limit applies). Applies to existing and newly\n\t// created projects.\n\tDefaultProjectMaxConcurrentSessions int64 `json:\"default_project_max_concurrent_sessions\" api:\"nullable\"`\n\t// The organization's effective concurrency limit — the maximum browsers running at\n\t// once, covering both on-demand sessions and browser pool reservations — from its\n\t// plan or an override. Read-only and shared across all projects in the org; a\n\t// per-project default cannot exceed it.\n\tMaxConcurrentSessions int64 `json:\"max_concurrent_sessions\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAuthConnectionsUsed                 respjson.Field\n\t\tConcurrentSessionsAvailable         respjson.Field\n\t\tConcurrentSessionsUsed              respjson.Field\n\t\tMaxAuthConnections                  respjson.Field\n\t\tMaxVaults                           respjson.Field\n\t\tMinHealthCheckIntervalSeconds       respjson.Field\n\t\tVaultsUsed                          respjson.Field\n\t\tDefaultProjectMaxConcurrentSessions respjson.Field\n\t\tMaxConcurrentSessions               respjson.Field\n\t\tExtraFields                         map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OrgLimits) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OrgLimits) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OrganizationEntitlementService struct {\n\tOptions []option.RequestOption\n}\n```\nRead and manage organization-level limits.\n\nOrganizationEntitlementService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewOrganizationEntitlementService](#NewOrganizationEntitlementService) method instead.\n\n```go\nfunc NewOrganizationEntitlementService(opts ...option.RequestOption) (r OrganizationEntitlementService)\n```\nNewOrganizationEntitlementService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *OrganizationEntitlementService) Get(ctx context.Context, opts ...option.RequestOption) (res *OrgEntitlements, err error)\n```\nGet the authenticated organization's effective feature access and constraints after applying its plan, active trial treatment, plan status, and organization-specific overrides. Null constraint values mean unlimited.\n\n```go\ntype OrganizationLimitService struct {\n\tOptions []option.RequestOption\n}\n```\nRead and manage organization-level limits.\n\nOrganizationLimitService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewOrganizationLimitService](#NewOrganizationLimitService) method instead.\n\n```go\nfunc NewOrganizationLimitService(opts ...option.RequestOption) (r OrganizationLimitService)\n```\nNewOrganizationLimitService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *OrganizationLimitService) Get(ctx context.Context, opts ...option.RequestOption) (res *OrgLimits, err error)\n```\nGet the organization's effective limits and current concurrency, managed auth, and vault usage.\n\n```go\nfunc (r *OrganizationLimitService) Update(ctx context.Context, body OrganizationLimitUpdateParams, opts ...option.RequestOption) (res *OrgLimits, err error)\n```\nSet the default per-project concurrency cap applied to projects without an explicit override. Set the value to 0 to remove the default; omit to leave it unchanged. The default cannot exceed the organization's concurrency limit.\n\n```go\ntype OrganizationLimitUpdateParams struct {\n\tUpdateOrgLimitsRequest UpdateOrgLimitsRequestParam\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r OrganizationLimitUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *OrganizationLimitUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OrganizationService struct {\n\tOptions []option.RequestOption\n\t// Read and manage organization-level limits.\n\tEntitlements OrganizationEntitlementService\n\t// Read and manage organization-level limits.\n\tLimits OrganizationLimitService\n}\n```\nOrganizationService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewOrganizationService](#NewOrganizationService) method instead.\n\n```go\nfunc NewOrganizationService(opts ...option.RequestOption) (r OrganizationService)\n```\nNewOrganizationService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\ntype OtlpDestination struct {\n\tID string `json:\"id\" api:\"required\"`\n\t// Failed deliveries since the last success, as observed by the relay process that\n\t// wrote the latest outcome. Zero means the most recently recorded outcome\n\t// succeeded.\n\tConsecutiveFailures int64     `json:\"consecutive_failures\" api:\"required\"`\n\tCreatedAt           time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// OTLP/HTTP endpoint telemetry is sent to.\n\tEndpoint string `json:\"endpoint\" api:\"required\"`\n\t// Headers sent with each export request. Names are returned in canonical form\n\t// (`Authorization`, not `authorization`). Non-dashboard reads return values\n\t// redacted as empty strings, so the keys are visible but the credentials are not.\n\t// Dashboard reads return the stored values.\n\tHeaders map[string]string `json:\"headers\" api:\"required\"`\n\t// Unique within the organization. Usable in place of the ID when selecting a\n\t// destination, so it cannot be shaped like an ID.\n\tName        string    `json:\"name\" api:\"required\"`\n\tUpdatedAt   time.Time `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\tDescription string    `json:\"description\"`\n\t// Sanitized class of the delivery failure recorded at `last_error_at`. It is\n\t// retained after a later success, so its presence does not mean the destination is\n\t// currently failing. Response bodies, endpoint URLs, credentials, and raw\n\t// transport errors are never returned.\n\tLastError string `json:\"last_error\"`\n\t// Timestamp of the most recent failed delivery. It is retained after a later\n\t// success, so it can predate `last_export_at`. Read `consecutive_failures` to tell\n\t// whether the destination is currently failing.\n\tLastErrorAt time.Time `json:\"last_error_at\" format:\"date-time\"`\n\t// Timestamp of the most recent successful delivery. Moves only on success.\n\tLastExportAt time.Time `json:\"last_export_at\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                  respjson.Field\n\t\tConsecutiveFailures respjson.Field\n\t\tCreatedAt           respjson.Field\n\t\tEndpoint            respjson.Field\n\t\tHeaders             respjson.Field\n\t\tName                respjson.Field\n\t\tUpdatedAt           respjson.Field\n\t\tDescription         respjson.Field\n\t\tLastError           respjson.Field\n\t\tLastErrorAt         respjson.Field\n\t\tLastExportAt        respjson.Field\n\t\tExtraFields         map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn OTLP endpoint to export browser session telemetry to. Reference one from \\`telemetry.export.otlp.destination\\` when creating a browser to export that session's captured telemetry to it.\n\n```go\nfunc (r OtlpDestination) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OtlpDestination) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PasskeyVaultItemOperationResult struct {\n\t// armed means the browser will answer matching passkey requests; it does not mean\n\t// a page has asked yet. disarmed means the browser no longer uses this item's\n\t// passkeys.\n\t//\n\t// Any of \"armed\", \"disarmed\".\n\tStatus PasskeyVaultItemOperationResultStatus `json:\"status\" api:\"required\"`\n\t// Any of \"arm_passkey\", \"register_passkey\", \"disarm_passkey\".\n\tType PasskeyVaultItemOperationResultType `json:\"type\" api:\"required\"`\n\t// Relying party the armed passkey answers for. Returned by arm_passkey.\n\tRpID string `json:\"rp_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tStatus      respjson.Field\n\t\tType        respjson.Field\n\t\tRpID        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r PasskeyVaultItemOperationResult) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *PasskeyVaultItemOperationResult) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PasskeyVaultItemOperationResultStatus string\n```\narmed means the browser will answer matching passkey requests; it does not mean a page has asked yet. disarmed means the browser no longer uses this item's passkeys.\n\n```go\nconst (\n\tPasskeyVaultItemOperationResultStatusArmed    PasskeyVaultItemOperationResultStatus = \"armed\"\n\tPasskeyVaultItemOperationResultStatusDisarmed PasskeyVaultItemOperationResultStatus = \"disarmed\"\n)\n```\n\n```go\ntype PasskeyVaultItemOperationResultType string\n```\n\n```go\nconst (\n\tPasskeyVaultItemOperationResultTypeArmPasskey      PasskeyVaultItemOperationResultType = \"arm_passkey\"\n\tPasskeyVaultItemOperationResultTypeRegisterPasskey PasskeyVaultItemOperationResultType = \"register_passkey\"\n\tPasskeyVaultItemOperationResultTypeDisarmPasskey   PasskeyVaultItemOperationResultType = \"disarm_passkey\"\n)\n```\n\n```go\ntype PaymentRequestVaultItem struct {\n\tID                  string                                      `json:\"id\" api:\"required\"`\n\tAvailableExpansions []PaymentRequestVaultItemAvailableExpansion `json:\"available_expansions\" api:\"required\"`\n\tAvailableOperations []PaymentRequestVaultItemAvailableOperation `json:\"available_operations\" api:\"required\"`\n\tCreatedAt           time.Time                                   `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Immutable item key assigned when the item is created.\n\tKey string `json:\"key\" api:\"required\"`\n\t// Live Link card request. Test-mode card creation is not supported. The spec can\n\t// be changed with PATCH until the card is authorized at a checkout. Authorize it\n\t// with the browser at final checkout: Kernel inspects the checkout through WebMCP\n\t// and internally chooses a merchant-bound Link Pay Token when supported or a\n\t// virtual card otherwise. Callers do not choose how the credential is delivered;\n\t// after authorize, state.credential_type reports it.\n\tSpec PaymentRequestVaultItemSpecUnion `json:\"spec\" api:\"required\"`\n\t// Issued Link cards retain encrypted card material for the fill operation. Link\n\t// cards do not expose aliases or support egress substitution.\n\tState PaymentRequestVaultItemStateUnion `json:\"state\" api:\"required\"`\n\t// Any of \"payment_request\".\n\tType      PaymentRequestVaultItemType `json:\"type\" api:\"required\"`\n\tUpdatedAt time.Time                   `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\tAction    VaultItemActionUnion        `json:\"action\"`\n\tExpiresAt time.Time                   `json:\"expires_at\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                  respjson.Field\n\t\tAvailableExpansions respjson.Field\n\t\tAvailableOperations respjson.Field\n\t\tCreatedAt           respjson.Field\n\t\tKey                 respjson.Field\n\t\tSpec                respjson.Field\n\t\tState               respjson.Field\n\t\tType                respjson.Field\n\t\tUpdatedAt           respjson.Field\n\t\tAction              respjson.Field\n\t\tExpiresAt           respjson.Field\n\t\tExtraFields         map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOne purchase from a Link or Kernel wallet, parented by that wallet. It has the same lifecycle, operations and fill behavior as a Link or Kernel card item. AgentCard reusable cards remain card items.\n\n```go\nfunc (r PaymentRequestVaultItem) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *PaymentRequestVaultItem) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PaymentRequestVaultItemAvailableExpansion struct {\n\tDescription string `json:\"description\" api:\"required\"`\n\t// Any of \"payment_methods\", \"link_user_info\", \"link_shipping_addresses\".\n\tType string `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDescription respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nLive data that can currently be requested by passing its type to the item GET expand parameter.\n\n```go\nfunc (r PaymentRequestVaultItemAvailableExpansion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *PaymentRequestVaultItemAvailableExpansion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PaymentRequestVaultItemAvailableOperation struct {\n\tDescription string `json:\"description\" api:\"required\"`\n\t// Any of \"authorize\", \"restart_verification\", \"confirm_transaction\", \"collect\",\n\t// \"prepare_checkout\", \"fill\", \"arm_passkey\", \"register_passkey\", \"disarm_passkey\",\n\t// \"1pw_create_access_request\", \"1pw_access_request_status\", \"1pw_fill\",\n\t// \"1pw_recover\", \"1pw_disconnect\", \"1pw_update_access_token\",\n\t// \"update_access_token\", \"webmcp_invoke\", \"add_payment_method\",\n\t// \"remove_payment_method\", \"link_balance_setup\".\n\tType string `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDescription respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn operation that is currently valid for this item. Read the description before invoking it through the item operations endpoint.\n\n```go\nfunc (r PaymentRequestVaultItemAvailableOperation) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *PaymentRequestVaultItemAvailableOperation) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PaymentRequestVaultItemSpecLink struct {\n\t// Integer amount in minor currency units, at most 50000. With recurring, the\n\t// spending limit per period, not a lifetime total.\n\tAmount       int64  `json:\"amount\" api:\"required\"`\n\tContext      string `json:\"context\" api:\"required\"`\n\tCurrency     string `json:\"currency\" api:\"required\"`\n\tMerchantName string `json:\"merchant_name\" api:\"required\"`\n\tMerchantURL  string `json:\"merchant_url\" api:\"required\" format:\"uri\"`\n\t// Payment-method ID returned by the referenced wallet's payment-method listing.\n\t// The provider decides whether the selected funding method can satisfy the card\n\t// request.\n\tPaymentMethodID string        `json:\"payment_method_id\" api:\"required\"`\n\tProvider        constant.Link `json:\"provider\" default:\"link\"`\n\t// Connected Link wallet item key.\n\tWallet    string                                    `json:\"wallet\" api:\"required\"`\n\tLineItems []PaymentRequestVaultItemSpecLinkLineItem `json:\"line_items\"`\n\tMetadata  map[string]string                         `json:\"metadata\"`\n\t// Recurring terms for a subscription or other repeated purchase. The amount\n\t// becomes the spending limit for each period of interval_count intervals, for\n\t// example every 2 weeks. The merchant schedules charges. The card stays ready\n\t// after each charge until it expires or is deleted; do not create a new card each\n\t// period. Deleting the card, its wallet or its vault first cancels the credential\n\t// with Link, so later charges decline; if Link cannot be reached, deletion returns\n\t// 409 provider_revocation_pending and should be retried. Deletion does not cancel\n\t// the subscription with the merchant. Recurring terms cannot be changed once the\n\t// card is authorized.\n\tRecurring PaymentRequestVaultItemSpecLinkRecurring `json:\"recurring\"`\n\tTotals    []PaymentRequestVaultItemSpecLinkTotal   `json:\"totals\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAmount          respjson.Field\n\t\tContext         respjson.Field\n\t\tCurrency        respjson.Field\n\t\tMerchantName    respjson.Field\n\t\tMerchantURL     respjson.Field\n\t\tPaymentMethodID respjson.Field\n\t\tProvider        respjson.Field\n\t\tWallet          respjson.Field\n\t\tLineItems       respjson.Field\n\t\tMetadata        respjson.Field\n\t\tRecurring       respjson.Field\n\t\tTotals          respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nLive Link card request. Test-mode card creation is not supported. The spec can be changed with PATCH until the card is authorized at a checkout. Authorize it with the browser at final checkout: Kernel inspects the checkout through WebMCP and internally chooses a merchant-bound Link Pay Token when supported or a virtual card otherwise. Callers do not choose how the credential is delivered; after authorize, state.credential\\_type reports it.\n\n```go\nfunc (r PaymentRequestVaultItemSpecLink) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *PaymentRequestVaultItemSpecLink) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PaymentRequestVaultItemSpecLinkLineItem struct {\n\tName        string                                         `json:\"name\" api:\"required\"`\n\tDescription string                                         `json:\"description\"`\n\tImageURL    string                                         `json:\"image_url\"`\n\tProductURL  string                                         `json:\"product_url\"`\n\tQuantity    int64                                          `json:\"quantity\"`\n\tSKU         string                                         `json:\"sku\"`\n\tTotals      []PaymentRequestVaultItemSpecLinkLineItemTotal `json:\"totals\"`\n\t// Unit amount in minor currency units.\n\tUnitAmount int64  `json:\"unit_amount\"`\n\tURL        string `json:\"url\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tName        respjson.Field\n\t\tDescription respjson.Field\n\t\tImageURL    respjson.Field\n\t\tProductURL  respjson.Field\n\t\tQuantity    respjson.Field\n\t\tSKU         respjson.Field\n\t\tTotals      respjson.Field\n\t\tUnitAmount  respjson.Field\n\t\tURL         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r PaymentRequestVaultItemSpecLinkLineItem) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *PaymentRequestVaultItemSpecLinkLineItem) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PaymentRequestVaultItemSpecLinkLineItemParam struct {\n\tName        string            `json:\"name\" api:\"required\"`\n\tDescription param.Opt[string] `json:\"description,omitzero\"`\n\tImageURL    param.Opt[string] `json:\"image_url,omitzero\"`\n\tProductURL  param.Opt[string] `json:\"product_url,omitzero\"`\n\tQuantity    param.Opt[int64]  `json:\"quantity,omitzero\"`\n\tSKU         param.Opt[string] `json:\"sku,omitzero\"`\n\t// Unit amount in minor currency units.\n\tUnitAmount param.Opt[int64]                                    `json:\"unit_amount,omitzero\"`\n\tURL        param.Opt[string]                                   `json:\"url,omitzero\"`\n\tTotals     []PaymentRequestVaultItemSpecLinkLineItemTotalParam `json:\"totals,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Name is required.\n\n```go\nfunc (r PaymentRequestVaultItemSpecLinkLineItemParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *PaymentRequestVaultItemSpecLinkLineItemParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PaymentRequestVaultItemSpecLinkLineItemTotal struct {\n\t// Total amount in minor currency units.\n\tAmount      int64  `json:\"amount\" api:\"required\"`\n\tDisplayText string `json:\"display_text\" api:\"required\"`\n\tType        string `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAmount      respjson.Field\n\t\tDisplayText respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r PaymentRequestVaultItemSpecLinkLineItemTotal) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *PaymentRequestVaultItemSpecLinkLineItemTotal) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PaymentRequestVaultItemSpecLinkLineItemTotalParam struct {\n\t// Total amount in minor currency units.\n\tAmount      int64  `json:\"amount\" api:\"required\"`\n\tDisplayText string `json:\"display_text\" api:\"required\"`\n\tType        string `json:\"type\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Amount, DisplayText, Type are required.\n\n```go\nfunc (r PaymentRequestVaultItemSpecLinkLineItemTotalParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *PaymentRequestVaultItemSpecLinkLineItemTotalParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PaymentRequestVaultItemSpecLinkParam struct {\n\t// Integer amount in minor currency units, at most 50000. With recurring, the\n\t// spending limit per period, not a lifetime total.\n\tAmount       int64  `json:\"amount\" api:\"required\"`\n\tContext      string `json:\"context\" api:\"required\"`\n\tCurrency     string `json:\"currency\" api:\"required\"`\n\tMerchantName string `json:\"merchant_name\" api:\"required\"`\n\tMerchantURL  string `json:\"merchant_url\" api:\"required\" format:\"uri\"`\n\t// Payment-method ID returned by the referenced wallet's payment-method listing.\n\t// The provider decides whether the selected funding method can satisfy the card\n\t// request.\n\tPaymentMethodID string `json:\"payment_method_id\" api:\"required\"`\n\t// Connected Link wallet item key.\n\tWallet    string                                         `json:\"wallet\" api:\"required\"`\n\tLineItems []PaymentRequestVaultItemSpecLinkLineItemParam `json:\"line_items,omitzero\"`\n\tMetadata  map[string]string                              `json:\"metadata,omitzero\"`\n\t// Recurring terms for a subscription or other repeated purchase. The amount\n\t// becomes the spending limit for each period of interval_count intervals, for\n\t// example every 2 weeks. The merchant schedules charges. The card stays ready\n\t// after each charge until it expires or is deleted; do not create a new card each\n\t// period. Deleting the card, its wallet or its vault first cancels the credential\n\t// with Link, so later charges decline; if Link cannot be reached, deletion returns\n\t// 409 provider_revocation_pending and should be retried. Deletion does not cancel\n\t// the subscription with the merchant. Recurring terms cannot be changed once the\n\t// card is authorized.\n\tRecurring PaymentRequestVaultItemSpecLinkRecurringParam `json:\"recurring,omitzero\"`\n\tTotals    []PaymentRequestVaultItemSpecLinkTotalParam   `json:\"totals,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as \"link\".\n\tProvider constant.Link `json:\"provider\" default:\"link\"`\n\t// contains filtered or unexported fields\n}\n```\nLive Link card request. Test-mode card creation is not supported. The spec can be changed with PATCH until the card is authorized at a checkout. Authorize it with the browser at final checkout: Kernel inspects the checkout through WebMCP and internally chooses a merchant-bound Link Pay Token when supported or a virtual card otherwise. Callers do not choose how the credential is delivered; after authorize, state.credential\\_type reports it.\n\nThe properties Amount, Context, Currency, MerchantName, MerchantURL, PaymentMethodID, Provider, Wallet are required.\n\n```go\nfunc (r PaymentRequestVaultItemSpecLinkParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *PaymentRequestVaultItemSpecLinkParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PaymentRequestVaultItemSpecLinkRecurring struct {\n\t// Any of \"day\", \"week\", \"month\", \"year\".\n\tInterval string `json:\"interval\" api:\"required\"`\n\t// Number of intervals per period. Link defaults it to 1.\n\tIntervalCount int64 `json:\"interval_count\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tInterval      respjson.Field\n\t\tIntervalCount respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nRecurring terms for a subscription or other repeated purchase. The amount becomes the spending limit for each period of interval\\_count intervals, for example every 2 weeks. The merchant schedules charges. The card stays ready after each charge until it expires or is deleted; do not create a new card each period. Deleting the card, its wallet or its vault first cancels the credential with Link, so later charges decline; if Link cannot be reached, deletion returns 409 provider\\_revocation\\_pending and should be retried. Deletion does not cancel the subscription with the merchant. Recurring terms cannot be changed once the card is authorized.\n\n```go\nfunc (r PaymentRequestVaultItemSpecLinkRecurring) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *PaymentRequestVaultItemSpecLinkRecurring) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PaymentRequestVaultItemSpecLinkRecurringParam struct {\n\t// Any of \"day\", \"week\", \"month\", \"year\".\n\tInterval string `json:\"interval,omitzero\" api:\"required\"`\n\t// Number of intervals per period. Link defaults it to 1.\n\tIntervalCount param.Opt[int64] `json:\"interval_count,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nRecurring terms for a subscription or other repeated purchase. The amount becomes the spending limit for each period of interval\\_count intervals, for example every 2 weeks. The merchant schedules charges. The card stays ready after each charge until it expires or is deleted; do not create a new card each period. Deleting the card, its wallet or its vault first cancels the credential with Link, so later charges decline; if Link cannot be reached, deletion returns 409 provider\\_revocation\\_pending and should be retried. Deletion does not cancel the subscription with the merchant. Recurring terms cannot be changed once the card is authorized.\n\nThe property Interval is required.\n\n```go\nfunc (r PaymentRequestVaultItemSpecLinkRecurringParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *PaymentRequestVaultItemSpecLinkRecurringParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PaymentRequestVaultItemSpecLinkTotal struct {\n\t// Total amount in minor currency units.\n\tAmount      int64  `json:\"amount\" api:\"required\"`\n\tDisplayText string `json:\"display_text\" api:\"required\"`\n\tType        string `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAmount      respjson.Field\n\t\tDisplayText respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r PaymentRequestVaultItemSpecLinkTotal) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *PaymentRequestVaultItemSpecLinkTotal) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PaymentRequestVaultItemSpecLinkTotalParam struct {\n\t// Total amount in minor currency units.\n\tAmount      int64  `json:\"amount\" api:\"required\"`\n\tDisplayText string `json:\"display_text\" api:\"required\"`\n\tType        string `json:\"type\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Amount, DisplayText, Type are required.\n\n```go\nfunc (r PaymentRequestVaultItemSpecLinkTotalParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *PaymentRequestVaultItemSpecLinkTotalParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PaymentRequestVaultItemSpecUnion struct {\n\tAmount int64 `json:\"amount\"`\n\t// This field is from variant [PaymentRequestVaultItemSpecLink].\n\tContext         string `json:\"context\"`\n\tCurrency        string `json:\"currency\"`\n\tMerchantName    string `json:\"merchant_name\"`\n\tMerchantURL     string `json:\"merchant_url\"`\n\tPaymentMethodID string `json:\"payment_method_id\"`\n\t// Any of \"link\", \"kernel\".\n\tProvider string `json:\"provider\"`\n\tWallet   string `json:\"wallet\"`\n\t// This field is from variant [PaymentRequestVaultItemSpecLink].\n\tLineItems []PaymentRequestVaultItemSpecLinkLineItem `json:\"line_items\"`\n\t// This field is from variant [PaymentRequestVaultItemSpecLink].\n\tMetadata map[string]string `json:\"metadata\"`\n\t// This field is from variant [PaymentRequestVaultItemSpecLink].\n\tRecurring PaymentRequestVaultItemSpecLinkRecurring `json:\"recurring\"`\n\t// This field is from variant [PaymentRequestVaultItemSpecLink].\n\tTotals []PaymentRequestVaultItemSpecLinkTotal `json:\"totals\"`\n\t// This field is from variant [KernelPaymentRequestVaultItemSpec].\n\tMerchantCategory string `json:\"merchant_category\"`\n\t// This field is from variant [KernelPaymentRequestVaultItemSpec].\n\tMerchantCategoryCode string `json:\"merchant_category_code\"`\n\t// This field is from variant [KernelPaymentRequestVaultItemSpec].\n\tMerchantCountry string `json:\"merchant_country\"`\n\tJSON            struct {\n\t\tAmount               respjson.Field\n\t\tContext              respjson.Field\n\t\tCurrency             respjson.Field\n\t\tMerchantName         respjson.Field\n\t\tMerchantURL          respjson.Field\n\t\tPaymentMethodID      respjson.Field\n\t\tProvider             respjson.Field\n\t\tWallet               respjson.Field\n\t\tLineItems            respjson.Field\n\t\tMetadata             respjson.Field\n\t\tRecurring            respjson.Field\n\t\tTotals               respjson.Field\n\t\tMerchantCategory     respjson.Field\n\t\tMerchantCategoryCode respjson.Field\n\t\tMerchantCountry      respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPaymentRequestVaultItemSpecUnion contains all possible properties and values from [PaymentRequestVaultItemSpecLink](#PaymentRequestVaultItemSpecLink), [KernelPaymentRequestVaultItemSpec](#KernelPaymentRequestVaultItemSpec).\n\nUse the [PaymentRequestVaultItemSpecUnion.AsAny](#PaymentRequestVaultItemSpecUnion.AsAny) method to switch on the variant.\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u PaymentRequestVaultItemSpecUnion) AsAny() anyPaymentRequestVaultItemSpec\n```\nUse the following switch statement to find the correct variant\n\n\tswitch variant := PaymentRequestVaultItemSpecUnion.AsAny().(type) {\n\tcase kernel.PaymentRequestVaultItemSpecLink:\n\tcase kernel.KernelPaymentRequestVaultItemSpec:\n\tdefault:\n\t  fmt.Errorf(\"no variant present\")\n\t}\n\n```go\nfunc (u PaymentRequestVaultItemSpecUnion) AsKernel() (v KernelPaymentRequestVaultItemSpec)\n```\n\n```go\nfunc (u PaymentRequestVaultItemSpecUnion) AsLink() (v PaymentRequestVaultItemSpecLink)\n```\n\n```go\nfunc (u PaymentRequestVaultItemSpecUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r PaymentRequestVaultItemSpecUnion) ToParam() PaymentRequestVaultItemSpecUnionParam\n```\nToParam converts this PaymentRequestVaultItemSpecUnion to a PaymentRequestVaultItemSpecUnionParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with PaymentRequestVaultItemSpecUnionParam.Overrides()\n\n```go\nfunc (r *PaymentRequestVaultItemSpecUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PaymentRequestVaultItemSpecUnionParam struct {\n\tOfLink   *PaymentRequestVaultItemSpecLinkParam   `json:\",omitzero,inline\"`\n\tOfKernel *KernelPaymentRequestVaultItemSpecParam `json:\",omitzero,inline\"`\n\t// contains filtered or unexported fields\n}\n```\nOnly one field can be non-zero.\n\nUse [param.IsOmitted](/github.com/kernel/kernel-go-sdk/packages/param#IsOmitted) to confirm if a field is set.\n\n```go\nfunc (u PaymentRequestVaultItemSpecUnionParam) GetAmount() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u PaymentRequestVaultItemSpecUnionParam) GetContext() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u PaymentRequestVaultItemSpecUnionParam) GetCurrency() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u PaymentRequestVaultItemSpecUnionParam) GetLineItems() []PaymentRequestVaultItemSpecLinkLineItemParam\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u PaymentRequestVaultItemSpecUnionParam) GetMerchantCategory() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u PaymentRequestVaultItemSpecUnionParam) GetMerchantCategoryCode() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u PaymentRequestVaultItemSpecUnionParam) GetMerchantCountry() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u PaymentRequestVaultItemSpecUnionParam) GetMerchantName() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u PaymentRequestVaultItemSpecUnionParam) GetMerchantURL() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u PaymentRequestVaultItemSpecUnionParam) GetMetadata() map[string]string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u PaymentRequestVaultItemSpecUnionParam) GetPaymentMethodID() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u PaymentRequestVaultItemSpecUnionParam) GetProvider() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u PaymentRequestVaultItemSpecUnionParam) GetRecurring() *PaymentRequestVaultItemSpecLinkRecurringParam\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u PaymentRequestVaultItemSpecUnionParam) GetTotals() []PaymentRequestVaultItemSpecLinkTotalParam\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u PaymentRequestVaultItemSpecUnionParam) GetWallet() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u PaymentRequestVaultItemSpecUnionParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (u *PaymentRequestVaultItemSpecUnionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PaymentRequestVaultItemStateLink struct {\n\tProvider constant.Link `json:\"provider\" default:\"link\"`\n\t// recovery_required means an original provider operation has an unresolved outcome\n\t// and the card cannot be used. Reads keep observing a known provider request and\n\t// may clear the recovery. To continue, delete this card and create a new one;\n\t// deleting cancels the original request when its ID is known and keeps the\n\t// recovery evidence. The user may see an approval request for the original card\n\t// and should approve only the new one.\n\t//\n\t// Any of \"requested\", \"pending_authorization\", \"ready\", \"consumed\", \"expired\",\n\t// \"declined\", \"recovery_required\".\n\tStatus string `json:\"status\" api:\"required\"`\n\t// The Link spend request's credential_type, set when authorize sends the request\n\t// to Link. Absent before authorize and after Link rejects the request; a ready\n\t// card without it fills like card. card is a Link virtual card; fill it with field\n\t// bindings. link_pay_token is a Link Pay Token that Kernel supplies through the\n\t// checkout's Link WebMCP tool; fill it without fields.\n\t//\n\t// Any of \"card\", \"link_pay_token\".\n\tCredentialType string                                `json:\"credential_type\"`\n\tDomains        []string                              `json:\"domains\"`\n\tMasks          PaymentRequestVaultItemStateLinkMasks `json:\"masks\"`\n\tStatusReason   string                                `json:\"status_reason\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tProvider       respjson.Field\n\t\tStatus         respjson.Field\n\t\tCredentialType respjson.Field\n\t\tDomains        respjson.Field\n\t\tMasks          respjson.Field\n\t\tStatusReason   respjson.Field\n\t\tExtraFields    map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nIssued Link cards retain encrypted card material for the fill operation. Link cards do not expose aliases or support egress substitution.\n\n```go\nfunc (r PaymentRequestVaultItemStateLink) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *PaymentRequestVaultItemStateLink) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PaymentRequestVaultItemStateLinkMasks struct {\n\tBrand string `json:\"brand\"`\n\tLast4 string `json:\"last4\"`\n\t// Last four digits of the network token presented to the merchant.\n\tTokenLast4  string            `json:\"token_last4\"`\n\tExtraFields map[string]string `json:\"\" api:\"extrafields\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBrand       respjson.Field\n\t\tLast4       respjson.Field\n\t\tTokenLast4  respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r PaymentRequestVaultItemStateLinkMasks) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *PaymentRequestVaultItemStateLinkMasks) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PaymentRequestVaultItemStateUnion struct {\n\t// Any of \"link\", \"kernel\".\n\tProvider string `json:\"provider\"`\n\tStatus   string `json:\"status\"`\n\t// This field is from variant [PaymentRequestVaultItemStateLink].\n\tCredentialType string   `json:\"credential_type\"`\n\tDomains        []string `json:\"domains\"`\n\t// This field is a union of [PaymentRequestVaultItemStateLinkMasks],\n\t// [KernelCardStateMasks]\n\tMasks        PaymentRequestVaultItemStateUnionMasks `json:\"masks\"`\n\tStatusReason string                                 `json:\"status_reason\"`\n\t// This field is from variant [KernelCardState].\n\tSource KernelCardStateSource `json:\"source\"`\n\t// This field is from variant [KernelCardState].\n\tFundingStatus KernelCardStateFundingStatus `json:\"funding_status\"`\n\t// This field is from variant [KernelCardState].\n\tPaymentMethodID string `json:\"payment_method_id\"`\n\tJSON            struct {\n\t\tProvider        respjson.Field\n\t\tStatus          respjson.Field\n\t\tCredentialType  respjson.Field\n\t\tDomains         respjson.Field\n\t\tMasks           respjson.Field\n\t\tStatusReason    respjson.Field\n\t\tSource          respjson.Field\n\t\tFundingStatus   respjson.Field\n\t\tPaymentMethodID respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPaymentRequestVaultItemStateUnion contains all possible properties and values from [PaymentRequestVaultItemStateLink](#PaymentRequestVaultItemStateLink), [KernelCardState](#KernelCardState).\n\nUse the [PaymentRequestVaultItemStateUnion.AsAny](#PaymentRequestVaultItemStateUnion.AsAny) method to switch on the variant.\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u PaymentRequestVaultItemStateUnion) AsAny() anyPaymentRequestVaultItemState\n```\nUse the following switch statement to find the correct variant\n\n\tswitch variant := PaymentRequestVaultItemStateUnion.AsAny().(type) {\n\tcase kernel.PaymentRequestVaultItemStateLink:\n\tcase kernel.KernelCardState:\n\tdefault:\n\t  fmt.Errorf(\"no variant present\")\n\t}\n\n```go\nfunc (u PaymentRequestVaultItemStateUnion) AsKernel() (v KernelCardState)\n```\n\n```go\nfunc (u PaymentRequestVaultItemStateUnion) AsLink() (v PaymentRequestVaultItemStateLink)\n```\n\n```go\nfunc (u PaymentRequestVaultItemStateUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *PaymentRequestVaultItemStateUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PaymentRequestVaultItemStateUnionMasks struct {\n\tBrand      string `json:\"brand\"`\n\tLast4      string `json:\"last4\"`\n\tTokenLast4 string `json:\"token_last4\"`\n\tJSON       struct {\n\t\tBrand      respjson.Field\n\t\tLast4      respjson.Field\n\t\tTokenLast4 respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPaymentRequestVaultItemStateUnionMasks is an implicit subunion of [PaymentRequestVaultItemStateUnion](#PaymentRequestVaultItemStateUnion). PaymentRequestVaultItemStateUnionMasks provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [PaymentRequestVaultItemStateUnion](#PaymentRequestVaultItemStateUnion).\n\n```go\nfunc (r *PaymentRequestVaultItemStateUnionMasks) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PaymentRequestVaultItemType string\n```\n\n```go\nconst (\n\tPaymentRequestVaultItemTypePaymentRequest PaymentRequestVaultItemType = \"payment_request\"\n)\n```\n\n```go\ntype PrepareCheckoutVaultItemOperationRequestParam struct {\n\t// Required when preparing an unused AgentCard card for a supported checkout\n\t// processor. Consent is bound to this browser and declared merchant origin, not a\n\t// tab. Wait for the item's ready_to_submit status before native Pay and submit\n\t// within its readiness deadline. Unused preparations expire automatically; every\n\t// preparation is single-use, including after failure or expiry.\n\tCheckout VaultCheckoutContextParam `json:\"checkout,omitzero\" api:\"required\"`\n\t// Any of \"prepare_checkout\".\n\tType PrepareCheckoutVaultItemOperationRequestType `json:\"type,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nPrepare an unused AgentCard card for a supported checkout. Deliver the returned approval URL and keep the approval page open. Poll the item until ready\\_to\\_submit, then submit native Pay before preparation.expires\\_at. Readiness lasts at most 30 seconds. Unused preparations expire automatically. Preparations are single-use even after failure or expiry; do not automatically retry and reconcile uncertain outcomes with the merchant.\n\nThe properties Checkout, Type are required.\n\n```go\nfunc (r PrepareCheckoutVaultItemOperationRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *PrepareCheckoutVaultItemOperationRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PrepareCheckoutVaultItemOperationRequestType string\n```\n\n```go\nconst (\n\tPrepareCheckoutVaultItemOperationRequestTypePrepareCheckout PrepareCheckoutVaultItemOperationRequestType = \"prepare_checkout\"\n)\n```\n\n```go\ntype Profile struct {\n\t// Unique identifier for the profile\n\tID string `json:\"id\" api:\"required\"`\n\t// Timestamp when the profile was created\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Timestamp when the profile was last used\n\tLastUsedAt time.Time `json:\"last_used_at\" format:\"date-time\"`\n\t// Optional, easier-to-reference name for the profile\n\tName string `json:\"name\" api:\"nullable\"`\n\t// Timestamp when the profile was last updated\n\tUpdatedAt time.Time `json:\"updated_at\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tCreatedAt   respjson.Field\n\t\tLastUsedAt  respjson.Field\n\t\tName        respjson.Field\n\t\tUpdatedAt   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nBrowser profile metadata.\n\n```go\nfunc (r Profile) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Profile) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProfileDownloadParams struct {\n\t// Response format for current profile archives. Legacy profiles are always\n\t// returned as JSON.\n\t//\n\t// Any of \"tar.zst\", \"tar\".\n\tFormat ProfileDownloadParamsFormat `query:\"format,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProfileDownloadParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [ProfileDownloadParams](#ProfileDownloadParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype ProfileDownloadParamsFormat string\n```\nResponse format for current profile archives. Legacy profiles are always returned as JSON.\n\n```go\nconst (\n\tProfileDownloadParamsFormatTarZst ProfileDownloadParamsFormat = \"tar.zst\"\n\tProfileDownloadParamsFormatTar    ProfileDownloadParamsFormat = \"tar\"\n)\n```\n\n```go\ntype ProfileListParams struct {\n\t// Limit the number of profiles to return.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Exact-match filter on profile name using the database collation. In production,\n\t// matching is case- and accent-insensitive. During the default-project migration,\n\t// unscoped requests prefer a concrete default-project profile over a legacy\n\t// unscoped profile with the same name.\n\tName param.Opt[string] `query:\"name,omitzero\" json:\"-\"`\n\t// Offset the number of profiles to return.\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Case-insensitive substring match against profile name or ID.\n\tQuery param.Opt[string] `query:\"query,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProfileListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [ProfileListParams](#ProfileListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype ProfileNewParams struct {\n\t// Optional name of the profile. Must be unique within the logical project; during\n\t// the default-project migration, unscoped profiles and profiles in the org default\n\t// project are treated as the same project.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProfileNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProfileNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProfileService struct {\n\tOptions []option.RequestOption\n}\n```\nCreate, list, retrieve, and delete browser profiles.\n\nProfileService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewProfileService](#NewProfileService) method instead.\n\n```go\nfunc NewProfileService(opts ...option.RequestOption) (r ProfileService)\n```\nNewProfileService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *ProfileService) Delete(ctx context.Context, idOrName string, opts ...option.RequestOption) (err error)\n```\nDelete a profile by its ID or by its name.\n\n```go\nfunc (r *ProfileService) Download(ctx context.Context, idOrName string, query ProfileDownloadParams, opts ...option.RequestOption) (res *http.Response, err error)\n```\nDownloads the profile in its stored format by default. Current profiles are returned as zstd-compressed tar archives, while legacy profiles remain JSON. Set \\`format=tar\\` to decompress current profiles during download; legacy profiles remain JSON.\n\nReturns 409 with code \\`profile\\_storage\\_unavailable\\` if the profile is stored in the organization's own storage bucket and that storage is paused or Kernel can't reach it, or the object there doesn't start with a profile archive's header or is larger than 512 MiB. With \\`format=tar\\`, it also returns 409 if the archive can't be decompressed; without it, the archive is returned as stored.\n\n```go\nfunc (r *ProfileService) Get(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *Profile, err error)\n```\nRetrieve details for a single profile by its ID or name.\n\n```go\nfunc (r *ProfileService) List(ctx context.Context, query ProfileListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[Profile], err error)\n```\nList profiles with optional filtering and pagination.\n\n```go\nfunc (r *ProfileService) ListAutoPaging(ctx context.Context, query ProfileListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[Profile]\n```\nList profiles with optional filtering and pagination.\n\n```go\nfunc (r *ProfileService) New(ctx context.Context, body ProfileNewParams, opts ...option.RequestOption) (res *Profile, err error)\n```\nCreate a browser profile that can be used to load state into future browser sessions. Returns 409 with code \\`profile\\_storage\\_unavailable\\` if the profile would be stored in the organization's own storage bucket and that storage is paused.\n\n```go\nfunc (r *ProfileService) Update(ctx context.Context, idOrName string, body ProfileUpdateParams, opts ...option.RequestOption) (res *Profile, err error)\n```\nUpdate a profile's name. Names must be unique within the logical project; during the default-project migration, unscoped profiles and profiles in the org default project are treated as the same project. Duplicate-name conflicts are checked before update but are best-effort because there is no backing unique index. Renaming a profile while a browser session references it by name may prevent that session's changes from saving; prefer renaming when the profile is not in use.\n\n```go\ntype ProfileUpdateParams struct {\n\t// New profile name. Must be unique within the logical project; during the\n\t// default-project migration, unscoped profiles and profiles in the org default\n\t// project are treated as the same project.\n\tName string `json:\"name\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProfileUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProfileUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Project struct {\n\t// Unique project identifier\n\tID string `json:\"id\" api:\"required\"`\n\t// When the project was created\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Project name\n\tName string `json:\"name\" api:\"required\"`\n\t// Project status\n\t//\n\t// Any of \"active\", \"archived\".\n\tStatus ProjectStatus `json:\"status\" api:\"required\"`\n\t// When the project was last updated\n\tUpdatedAt time.Time `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tCreatedAt   respjson.Field\n\t\tName        respjson.Field\n\t\tStatus      respjson.Field\n\t\tUpdatedAt   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r Project) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Project) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProjectLimitService struct {\n\tOptions []option.RequestOption\n}\n```\nCreate and manage projects for resource isolation within an organization.\n\nProjectLimitService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewProjectLimitService](#NewProjectLimitService) method instead.\n\n```go\nfunc NewProjectLimitService(opts ...option.RequestOption) (r ProjectLimitService)\n```\nNewProjectLimitService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *ProjectLimitService) Get(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *ProjectLimits, err error)\n```\nGet the resource limit overrides for a project. Null values mean no project-level cap (org limit applies).\n\n```go\nfunc (r *ProjectLimitService) Update(ctx context.Context, idOrName string, body ProjectLimitUpdateParams, opts ...option.RequestOption) (res *ProjectLimits, err error)\n```\nUpdate resource limit overrides for a project. Only fields present in the request are modified. Set a field to 0 to remove that limit cap; omit a field to leave it unchanged.\n\n```go\ntype ProjectLimitUpdateParams struct {\n\tUpdateProjectLimitsRequest UpdateProjectLimitsRequestParam\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProjectLimitUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProjectLimitUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProjectLimits struct {\n\t// Maximum concurrent app invocations for this project. Null means no project-level\n\t// cap.\n\tMaxConcurrentInvocations int64 `json:\"max_concurrent_invocations\" api:\"nullable\"`\n\t// Maximum concurrent browsers for this project, covering both on-demand sessions\n\t// (`browsers.create()`) and browser pool reservations. Null means no project-level\n\t// cap.\n\tMaxConcurrentSessions int64 `json:\"max_concurrent_sessions\" api:\"nullable\"`\n\t// Deprecated: pooled browsers now count toward `max_concurrent_sessions`. Always\n\t// null.\n\t//\n\t// Deprecated: deprecated\n\tMaxPooledSessions int64 `json:\"max_pooled_sessions\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMaxConcurrentInvocations respjson.Field\n\t\tMaxConcurrentSessions    respjson.Field\n\t\tMaxPooledSessions        respjson.Field\n\t\tExtraFields              map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ProjectLimits) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProjectLimits) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProjectListParams struct {\n\t// Maximum number of results to return\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Exact-match filter on project name using the database collation. In production,\n\t// matching is case- and accent-insensitive.\n\tName param.Opt[string] `query:\"name,omitzero\" json:\"-\"`\n\t// Number of results to skip\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Case-insensitive substring match against project name\n\tQuery param.Opt[string] `query:\"query,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProjectListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [ProjectListParams](#ProjectListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype ProjectNewParams struct {\n\tCreateProjectRequest CreateProjectRequestParam\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProjectNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProjectNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProjectService struct {\n\tOptions []option.RequestOption\n\t// Create and manage projects for resource isolation within an organization.\n\tLimits ProjectLimitService\n}\n```\nCreate and manage projects for resource isolation within an organization.\n\nProjectService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewProjectService](#NewProjectService) method instead.\n\n```go\nfunc NewProjectService(opts ...option.RequestOption) (r ProjectService)\n```\nNewProjectService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *ProjectService) Delete(ctx context.Context, idOrName string, opts ...option.RequestOption) (err error)\n```\nSoft-delete a project. The project must be empty (no active resources).\n\n```go\nfunc (r *ProjectService) Get(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *Project, err error)\n```\nGet a project by its ID or by its name. Names are unique within an organization.\n\n```go\nfunc (r *ProjectService) List(ctx context.Context, query ProjectListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[Project], err error)\n```\nList projects for the authenticated organization.\n\n```go\nfunc (r *ProjectService) ListAutoPaging(ctx context.Context, query ProjectListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[Project]\n```\nList projects for the authenticated organization.\n\n```go\nfunc (r *ProjectService) New(ctx context.Context, body ProjectNewParams, opts ...option.RequestOption) (res *Project, err error)\n```\nCreate a new project within the authenticated organization.\n\n```go\nfunc (r *ProjectService) Update(ctx context.Context, idOrName string, body ProjectUpdateParams, opts ...option.RequestOption) (res *Project, err error)\n```\nUpdate a project's name or status.\n\n```go\ntype ProjectStatus string\n```\nProject status\n\n```go\nconst (\n\tProjectStatusActive   ProjectStatus = \"active\"\n\tProjectStatusArchived ProjectStatus = \"archived\"\n)\n```\n\n```go\ntype ProjectUpdateParams struct {\n\tUpdateProjectRequest UpdateProjectRequestParam\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProjectUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProjectUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Provider struct {\n\tContent         ProviderContent         `json:\"content\" api:\"required\"`\n\tMaxResultsCap   int64                   `json:\"max_results_cap\" api:\"required\"`\n\tParams          ProviderParams          `json:\"params\" api:\"required\"`\n\tProviderOptions ProviderProviderOptions `json:\"provider_options\" api:\"required\"`\n\tSlug            string                  `json:\"slug\" api:\"required\"`\n\t// Provider-specific limitations, conditional filter support, and warnings about\n\t// search modes.\n\tNotes []string `json:\"notes\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tContent         respjson.Field\n\t\tMaxResultsCap   respjson.Field\n\t\tParams          respjson.Field\n\t\tProviderOptions respjson.Field\n\t\tSlug            respjson.Field\n\t\tNotes           respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r Provider) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Provider) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderContent struct {\n\t// Can enforce the requested maximum content age.\n\tFreshnessControl bool `json:\"freshness_control\" api:\"required\"`\n\t// Supports content retrieval with the search request.\n\tInline bool `json:\"inline\" api:\"required\"`\n\t// Supports content retrieval after the search completes.\n\tPostHoc bool `json:\"post_hoc\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tFreshnessControl respjson.Field\n\t\tInline           respjson.Field\n\t\tPostHoc          respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ProviderContent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProviderContent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderParams struct {\n\tCountry        ProviderParamsCountry        `json:\"country\" api:\"required\"`\n\tEndDate        ProviderParamsEndDate        `json:\"end_date\" api:\"required\"`\n\tExcludeDomains ProviderParamsExcludeDomains `json:\"exclude_domains\" api:\"required\"`\n\tIncludeDomains ProviderParamsIncludeDomains `json:\"include_domains\" api:\"required\"`\n\tLanguage       ProviderParamsLanguage       `json:\"language\" api:\"required\"`\n\tRecency        ProviderParamsRecency        `json:\"recency\" api:\"required\"`\n\tSafeSearch     ProviderParamsSafeSearch     `json:\"safe_search\" api:\"required\"`\n\tStartDate      ProviderParamsStartDate      `json:\"start_date\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCountry        respjson.Field\n\t\tEndDate        respjson.Field\n\t\tExcludeDomains respjson.Field\n\t\tIncludeDomains respjson.Field\n\t\tLanguage       respjson.Field\n\t\tRecency        respjson.Field\n\t\tSafeSearch     respjson.Field\n\t\tStartDate      respjson.Field\n\t\tExtraFields    map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ProviderParams) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProviderParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderParamsCountry struct {\n\t// Any of \"native\", \"emulated\", \"unsupported\".\n\tSupport string `json:\"support\" api:\"required\"`\n\t// Translation behavior, limitations, and precision.\n\tNotes string `json:\"notes\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tSupport     respjson.Field\n\t\tNotes       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ProviderParamsCountry) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProviderParamsCountry) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderParamsEndDate struct {\n\t// Any of \"native\", \"emulated\", \"unsupported\".\n\tSupport string `json:\"support\" api:\"required\"`\n\t// Translation behavior, limitations, and precision.\n\tNotes string `json:\"notes\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tSupport     respjson.Field\n\t\tNotes       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ProviderParamsEndDate) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProviderParamsEndDate) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderParamsExcludeDomains struct {\n\t// Any of \"native\", \"emulated\", \"unsupported\".\n\tSupport string `json:\"support\" api:\"required\"`\n\t// Translation behavior, limitations, and precision.\n\tNotes string `json:\"notes\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tSupport     respjson.Field\n\t\tNotes       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ProviderParamsExcludeDomains) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProviderParamsExcludeDomains) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderParamsIncludeDomains struct {\n\t// Any of \"native\", \"emulated\", \"unsupported\".\n\tSupport string `json:\"support\" api:\"required\"`\n\t// Translation behavior, limitations, and precision.\n\tNotes string `json:\"notes\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tSupport     respjson.Field\n\t\tNotes       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ProviderParamsIncludeDomains) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProviderParamsIncludeDomains) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderParamsLanguage struct {\n\t// Any of \"native\", \"emulated\", \"unsupported\".\n\tSupport string `json:\"support\" api:\"required\"`\n\t// Translation behavior, limitations, and precision.\n\tNotes string `json:\"notes\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tSupport     respjson.Field\n\t\tNotes       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ProviderParamsLanguage) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProviderParamsLanguage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderParamsRecency struct {\n\t// Any of \"native\", \"emulated\", \"unsupported\".\n\tSupport string `json:\"support\" api:\"required\"`\n\t// Translation behavior, limitations, and precision.\n\tNotes string `json:\"notes\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tSupport     respjson.Field\n\t\tNotes       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ProviderParamsRecency) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProviderParamsRecency) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderParamsSafeSearch struct {\n\t// Any of \"native\", \"emulated\", \"unsupported\".\n\tSupport string `json:\"support\" api:\"required\"`\n\t// Translation behavior, limitations, and precision.\n\tNotes string `json:\"notes\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tSupport     respjson.Field\n\t\tNotes       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ProviderParamsSafeSearch) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProviderParamsSafeSearch) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderParamsStartDate struct {\n\t// Any of \"native\", \"emulated\", \"unsupported\".\n\tSupport string `json:\"support\" api:\"required\"`\n\t// Translation behavior, limitations, and precision.\n\tNotes string `json:\"notes\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tSupport     respjson.Field\n\t\tNotes       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ProviderParamsStartDate) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProviderParamsStartDate) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderProviderOptions struct {\n\t// JSON Schema for the provider-native options accepted by POST /search.\n\tSchema map[string]any `json:\"schema\" api:\"required\"`\n\t// OpenAPI component name for the matching typed provider-options schema.\n\tSchemaRef string           `json:\"schema_ref\" api:\"required\"`\n\tExamples  []map[string]any `json:\"examples\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tSchema      respjson.Field\n\t\tSchemaRef   respjson.Field\n\t\tExamples    respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ProviderProviderOptions) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProviderProviderOptions) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetBraveOptionsParam struct {\n\t// Provider-native count. Lower-only alias for max_results; cannot raise the\n\t// effective result cap.\n\tCount param.Opt[int64] `json:\"count,omitzero\"`\n\t// Request additional snippets from Brave.\n\tExtraSnippets param.Opt[bool] `json:\"extra_snippets,omitzero\"`\n\t// Goggles re-ranking definition URL.\n\tGoggles param.Opt[string] `json:\"goggles,omitzero\"`\n\t// Deprecated Brave Goggle identifier. Prefer goggles.\n\t//\n\t// Deprecated: deprecated\n\tGogglesID param.Opt[string] `json:\"goggles_id,omitzero\"`\n\t// Include Brave's fetch metadata.\n\tIncludeFetchMetadata param.Opt[bool] `json:\"include_fetch_metadata,omitzero\"`\n\t// Page offset supported by Brave.\n\tOffset param.Opt[int64] `json:\"offset,omitzero\"`\n\t// Brave search operators.\n\tOperators param.Opt[string] `json:\"operators,omitzero\"`\n\t// Comma-separated result types to include, e.g. \"web,news\".\n\tResultFilter param.Opt[string] `json:\"result_filter,omitzero\"`\n\t// Language of the search, e.g. \"en\".\n\tSearchLang param.Opt[string] `json:\"search_lang,omitzero\"`\n\t// Apply Brave's query spellcheck.\n\tSpellcheck param.Opt[bool] `json:\"spellcheck,omitzero\"`\n\t// Language for UI strings in the response.\n\tUiLang param.Opt[string] `json:\"ui_lang,omitzero\"`\n\t// Measurement units.\n\t//\n\t// Any of \"metric\", \"imperial\".\n\tUnits string `json:\"units,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProviderTargetBraveOptionsParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProviderTargetBraveOptionsParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetBraveParam struct {\n\tOptions ProviderTargetBraveOptionsParam `json:\"options,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as \"brave\".\n\tProvider constant.Brave `json:\"provider\" default:\"brave\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Provider is required.\n\n```go\nfunc (r ProviderTargetBraveParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProviderTargetBraveParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetContextOptionsMarkdownOptionsParam struct {\n\tEnabled             param.Opt[bool]                                     `json:\"enabled,omitzero\"`\n\tIncludeFrames       param.Opt[bool]                                     `json:\"includeFrames,omitzero\"`\n\tIncludeImages       param.Opt[bool]                                     `json:\"includeImages,omitzero\"`\n\tIncludeLinks        param.Opt[bool]                                     `json:\"includeLinks,omitzero\"`\n\tMaxAgeMs            param.Opt[int64]                                    `json:\"maxAgeMs,omitzero\"`\n\tShortenBase64Images param.Opt[bool]                                     `json:\"shortenBase64Images,omitzero\"`\n\tTimeoutMs           param.Opt[int64]                                    `json:\"timeoutMS,omitzero\"`\n\tUseMainContentOnly  param.Opt[bool]                                     `json:\"useMainContentOnly,omitzero\"`\n\tWaitForMs           param.Opt[int64]                                    `json:\"waitForMs,omitzero\"`\n\tPdf                 ProviderTargetContextOptionsMarkdownOptionsPdfParam `json:\"pdf,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProviderTargetContextOptionsMarkdownOptionsParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProviderTargetContextOptionsMarkdownOptionsParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetContextOptionsMarkdownOptionsPdfParam struct {\n\tShouldParse param.Opt[bool] `json:\"shouldParse,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProviderTargetContextOptionsMarkdownOptionsPdfParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProviderTargetContextOptionsMarkdownOptionsPdfParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetContextOptionsParam struct {\n\t// ISO 3166-1 alpha-2 country code.\n\tCountry param.Opt[string] `json:\"country,omitzero\"`\n\t// Number of results to request from Context.dev.\n\tNumResults param.Opt[int64] `json:\"numResults,omitzero\"`\n\t// Expand the query into multiple parallel variants.\n\tQueryFanout param.Opt[bool] `json:\"queryFanout,omitzero\"`\n\t// Context.dev request timeout in milliseconds.\n\tTimeoutMs param.Opt[int64] `json:\"timeoutMS,omitzero\"`\n\t// Blocklist of result domains.\n\tExcludeDomains []string `json:\"excludeDomains,omitzero\"`\n\t// Restrict results to content published within this window.\n\t//\n\t// Any of \"last_24_hours\", \"last_week\", \"last_month\", \"last_year\".\n\tFreshness string `json:\"freshness,omitzero\"`\n\t// Allowlist of result domains.\n\tIncludeDomains  []string                                         `json:\"includeDomains,omitzero\"`\n\tMarkdownOptions ProviderTargetContextOptionsMarkdownOptionsParam `json:\"markdownOptions,omitzero\"`\n\t// Usage tracking tags.\n\tTags []string `json:\"tags,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProviderTargetContextOptionsParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProviderTargetContextOptionsParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetContextParam struct {\n\tOptions ProviderTargetContextOptionsParam `json:\"options,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as \"context\".\n\tProvider constant.Context `json:\"provider\" default:\"context\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Provider is required.\n\n```go\nfunc (r ProviderTargetContextParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProviderTargetContextParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetExaOptionsContentsParam struct {\n\t// Return query-relevant provider excerpts. Defaults to true for Exa search\n\t// requests; set false to disable.\n\tHighlights param.Opt[bool] `json:\"highlights,omitzero\"`\n\t// Return provider page text.\n\tText param.Opt[bool] `json:\"text,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nProvider-native content retrieval. Available without requesting Kernel browser retrieval; may incur provider retrieval charges.\n\n```go\nfunc (r ProviderTargetExaOptionsContentsParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProviderTargetExaOptionsContentsParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetExaOptionsParam struct {\n\t// Provider data-category hint.\n\tCategory param.Opt[string] `json:\"category,omitzero\"`\n\t// Provider-native compliance controls. Requires support and authorization on the\n\t// provider account.\n\tCompliance param.Opt[string] `json:\"compliance,omitzero\"`\n\t// Provider-native cache-age control. Unlike content.max_age_hours, this retains\n\t// Exa semantics, including any native sentinel values. It does not imply a\n\t// cross-provider freshness guarantee.\n\tMaxAgeHours param.Opt[float64] `json:\"maxAgeHours,omitzero\"`\n\t// Provider-native count. Lower-only alias for max_results.\n\tNumResults param.Opt[int64] `json:\"numResults,omitzero\"`\n\t// Provider-native content retrieval. Available without requesting Kernel browser\n\t// retrieval; may incur provider retrieval charges.\n\tContents ProviderTargetExaOptionsContentsParam `json:\"contents,omitzero\"`\n\t// Search mode supported by Exa.\n\t//\n\t// Any of \"auto\", \"fast\", \"instant\".\n\tType string `json:\"type,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProviderTargetExaOptionsParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProviderTargetExaOptionsParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetExaParam struct {\n\tOptions ProviderTargetExaOptionsParam `json:\"options,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as \"exa\".\n\tProvider constant.Exa `json:\"provider\" default:\"exa\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Provider is required.\n\n```go\nfunc (r ProviderTargetExaParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProviderTargetExaParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetOctenOptionsFullContentParam struct {\n\tEnable    param.Opt[bool]  `json:\"enable,omitzero\"`\n\tMaxTokens param.Opt[int64] `json:\"max_tokens,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProviderTargetOctenOptionsFullContentParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProviderTargetOctenOptionsFullContentParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetOctenOptionsHighlightParam struct {\n\tEnable    param.Opt[bool]  `json:\"enable,omitzero\"`\n\tMaxTokens param.Opt[int64] `json:\"max_tokens,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProviderTargetOctenOptionsHighlightParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProviderTargetOctenOptionsHighlightParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetOctenOptionsParam struct {\n\tCount          param.Opt[int64]     `json:\"count,omitzero\"`\n\tEndTime        param.Opt[time.Time] `json:\"end_time,omitzero\" format:\"date-time\"`\n\tIncludeImages  param.Opt[bool]      `json:\"include_images,omitzero\"`\n\tStartTime      param.Opt[time.Time] `json:\"start_time,omitzero\" format:\"date-time\"`\n\tExcludeDomains []string             `json:\"exclude_domains,omitzero\"`\n\tExcludeText    []string             `json:\"exclude_text,omitzero\"`\n\t// Any of \"markdown\", \"text\".\n\tFormat         string                                     `json:\"format,omitzero\"`\n\tFullContent    ProviderTargetOctenOptionsFullContentParam `json:\"full_content,omitzero\"`\n\tHighlight      ProviderTargetOctenOptionsHighlightParam   `json:\"highlight,omitzero\"`\n\tIncludeDomains []string                                   `json:\"include_domains,omitzero\"`\n\tIncludeText    []string                                   `json:\"include_text,omitzero\"`\n\tLanguage       []string                                   `json:\"language,omitzero\"`\n\t// Any of \"off\", \"strict\".\n\tSafesearch string `json:\"safesearch,omitzero\"`\n\t// Any of \"auto\", \"published\", \"crawled\".\n\tTimeBasis string `json:\"time_basis,omitzero\"`\n\t// Any of \"day\", \"week\", \"month\", \"year\", \"d\", \"w\", \"m\", \"y\".\n\tTimeRange string `json:\"time_range,omitzero\"`\n\t// Any of \"general\", \"news\".\n\tTopic string `json:\"topic,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProviderTargetOctenOptionsParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProviderTargetOctenOptionsParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetOctenParam struct {\n\tOptions ProviderTargetOctenOptionsParam `json:\"options,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as \"octen\".\n\tProvider constant.Octen `json:\"provider\" default:\"octen\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Provider is required.\n\n```go\nfunc (r ProviderTargetOctenParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProviderTargetOctenParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetParallelOptionsAdvancedSettingsExcerptSettingsParam struct {\n\tMaxCharsPerResult param.Opt[int64] `json:\"max_chars_per_result,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProviderTargetParallelOptionsAdvancedSettingsExcerptSettingsParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProviderTargetParallelOptionsAdvancedSettingsExcerptSettingsParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetParallelOptionsAdvancedSettingsFetchPolicyParam struct {\n\t// Native live-fetch trigger; minimum 600 seconds. Not the unified hard-freshness\n\t// control.\n\tMaxAgeSeconds param.Opt[int64] `json:\"max_age_seconds,omitzero\"`\n\t// Native live-fetch timeout, bounded by the remaining overall deadline.\n\tTimeoutSeconds param.Opt[float64] `json:\"timeout_seconds,omitzero\"`\n\t// When false, the provider may return cached content after live fetching fails.\n\tDisableCacheFallback param.Opt[bool] `json:\"disable_cache_fallback,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProviderTargetParallelOptionsAdvancedSettingsFetchPolicyParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProviderTargetParallelOptionsAdvancedSettingsFetchPolicyParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetParallelOptionsAdvancedSettingsParam struct {\n\t// Native ISO 3166-1 alpha-2 location preference.\n\tLocation param.Opt[string] `json:\"location,omitzero\"`\n\t// Native count; lower-only alias for unified max_results.\n\tMaxResults      param.Opt[int64]                                                  `json:\"max_results,omitzero\"`\n\tExcerptSettings ProviderTargetParallelOptionsAdvancedSettingsExcerptSettingsParam `json:\"excerpt_settings,omitzero\"`\n\tFetchPolicy     ProviderTargetParallelOptionsAdvancedSettingsFetchPolicyParam     `json:\"fetch_policy,omitzero\"`\n\tSourcePolicy    ProviderTargetParallelOptionsAdvancedSettingsSourcePolicyParam    `json:\"source_policy,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nExplicit search settings. Unified search parameters are re-applied to overlapping settings; native result counts are lower-only.\n\n```go\nfunc (r ProviderTargetParallelOptionsAdvancedSettingsParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProviderTargetParallelOptionsAdvancedSettingsParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetParallelOptionsAdvancedSettingsSourcePolicyParam struct {\n\t// Native publication-date lower bound.\n\tAfterDate param.Opt[time.Time] `json:\"after_date,omitzero\" format:\"date\"`\n\t// Native exclusions; the provider ignores these when native include_domains is\n\t// non-empty.\n\tExcludeDomains []string `json:\"exclude_domains,omitzero\"`\n\t// Native domain/path restrictions. Explicit unified domain parameters take\n\t// precedence. Combined include/exclude native lists cannot exceed 200 entries.\n\tIncludeDomains []string `json:\"include_domains,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProviderTargetParallelOptionsAdvancedSettingsSourcePolicyParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProviderTargetParallelOptionsAdvancedSettingsSourcePolicyParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetParallelOptionsParam struct {\n\t// Client model hint.\n\tClientModel param.Opt[string] `json:\"client_model,omitzero\"`\n\t// Cap total characters returned.\n\tMaxCharsTotal param.Opt[int64] `json:\"max_chars_total,omitzero\"`\n\t// The goal behind the search, stated separately from the query.\n\tObjective param.Opt[string] `json:\"objective,omitzero\"`\n\t// Group related searches.\n\tSessionID param.Opt[string] `json:\"session_id,omitzero\"`\n\t// Explicit search settings. Unified search parameters are re-applied to\n\t// overlapping settings; native result counts are lower-only.\n\tAdvancedSettings ProviderTargetParallelOptionsAdvancedSettingsParam `json:\"advanced_settings,omitzero\"`\n\t// Search mode. Basic is used when omitted; each mode can have different latency\n\t// and charges.\n\t//\n\t// Any of \"turbo\", \"fast\", \"basic\", \"advanced\".\n\tMode string `json:\"mode,omitzero\"`\n\t// Provider-native multi-query search. Defaults to [query] for this provider.\n\tSearchQueries []string `json:\"search_queries,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProviderTargetParallelOptionsParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProviderTargetParallelOptionsParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetParallelParam struct {\n\tOptions ProviderTargetParallelOptionsParam `json:\"options,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as \"parallel\".\n\tProvider constant.Parallel `json:\"provider\" default:\"parallel\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Provider is required.\n\n```go\nfunc (r ProviderTargetParallelParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProviderTargetParallelParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetPerplexityOptionsParam struct {\n\t// MM/DD/YYYY. Filters by last-updated date, not published date.\n\tLastUpdatedAfterFilter param.Opt[string] `json:\"last_updated_after_filter,omitzero\"`\n\t// MM/DD/YYYY upper bound on last-updated date.\n\tLastUpdatedBeforeFilter param.Opt[string] `json:\"last_updated_before_filter,omitzero\"`\n\t// Provider-native count. Lower-only alias for max_results.\n\tMaxResults param.Opt[int64] `json:\"max_results,omitzero\"`\n\t// Values outside the documented range are rejected.\n\tMaxTokens param.Opt[int64] `json:\"max_tokens,omitzero\"`\n\t// Per-page token cap.\n\tMaxTokensPerPage param.Opt[int64] `json:\"max_tokens_per_page,omitzero\"`\n\t// Provider-native multi-query form, applied only to Perplexity. Other fallback\n\t// providers receive the top-level query. Each query may incur a separate provider\n\t// charge.\n\tQuery []string `json:\"query,omitzero\"`\n\t// Amount of page content Perplexity extracts per result. Defaults to medium unless\n\t// max_tokens or max_tokens_per_page is set.\n\t//\n\t// Any of \"low\", \"medium\", \"high\".\n\tSearchContextSize string `json:\"search_context_size,omitzero\"`\n\t// ISO 639-1 language codes, max 20.\n\tSearchLanguageFilter []string `json:\"search_language_filter,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProviderTargetPerplexityOptionsParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProviderTargetPerplexityOptionsParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetPerplexityParam struct {\n\tOptions ProviderTargetPerplexityOptionsParam `json:\"options,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as \"perplexity\".\n\tProvider constant.Perplexity `json:\"provider\" default:\"perplexity\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Provider is required.\n\n```go\nfunc (r ProviderTargetPerplexityParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProviderTargetPerplexityParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetTavilyOptionsIncludeAnswerString string\n```\n\n```go\nconst (\n\tProviderTargetTavilyOptionsIncludeAnswerStringBasic    ProviderTargetTavilyOptionsIncludeAnswerString = \"basic\"\n\tProviderTargetTavilyOptionsIncludeAnswerStringAdvanced ProviderTargetTavilyOptionsIncludeAnswerString = \"advanced\"\n)\n```\n\n```go\ntype ProviderTargetTavilyOptionsIncludeAnswerUnionParam struct {\n\tOfBool param.Opt[bool] `json:\",omitzero,inline\"`\n\t// Check if union is this variant with\n\t// !param.IsOmitted(union.OfProviderTargetTavilyOptionsIncludeAnswerString)\n\tOfProviderTargetTavilyOptionsIncludeAnswerString param.Opt[string] `json:\",omitzero,inline\"`\n\t// contains filtered or unexported fields\n}\n```\nOnly one field can be non-zero.\n\nUse [param.IsOmitted](/github.com/kernel/kernel-go-sdk/packages/param#IsOmitted) to confirm if a field is set.\n\n```go\nfunc (u ProviderTargetTavilyOptionsIncludeAnswerUnionParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (u *ProviderTargetTavilyOptionsIncludeAnswerUnionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetTavilyOptionsIncludeRawContentString string\n```\n\n```go\nconst (\n\tProviderTargetTavilyOptionsIncludeRawContentStringMarkdown ProviderTargetTavilyOptionsIncludeRawContentString = \"markdown\"\n\tProviderTargetTavilyOptionsIncludeRawContentStringText     ProviderTargetTavilyOptionsIncludeRawContentString = \"text\"\n)\n```\n\n```go\ntype ProviderTargetTavilyOptionsIncludeRawContentUnionParam struct {\n\tOfBool param.Opt[bool] `json:\",omitzero,inline\"`\n\t// Check if union is this variant with\n\t// !param.IsOmitted(union.OfProviderTargetTavilyOptionsIncludeRawContentString)\n\tOfProviderTargetTavilyOptionsIncludeRawContentString param.Opt[string] `json:\",omitzero,inline\"`\n\t// contains filtered or unexported fields\n}\n```\nOnly one field can be non-zero.\n\nUse [param.IsOmitted](/github.com/kernel/kernel-go-sdk/packages/param#IsOmitted) to confirm if a field is set.\n\n```go\nfunc (u ProviderTargetTavilyOptionsIncludeRawContentUnionParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (u *ProviderTargetTavilyOptionsIncludeRawContentUnionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetTavilyOptionsParam struct {\n\t// Allow the provider to choose search parameters. May select a different billing\n\t// tier; explicit caller values retain provider-native precedence.\n\tAutoParameters param.Opt[bool] `json:\"auto_parameters,omitzero\"`\n\t// Provider excerpts per source, up to 500 characters each.\n\tChunksPerSource param.Opt[int64] `json:\"chunks_per_source,omitzero\"`\n\t// Require the quoted phrases in the query verbatim, bypassing semantic matches.\n\tExactMatch param.Opt[bool] `json:\"exact_match,omitzero\"`\n\t// Strictly filter non-matching languages. Requires `language`.\n\tFilterByLanguage param.Opt[bool] `json:\"filter_by_language,omitzero\"`\n\t// Favicon URL per result.\n\tIncludeFavicon param.Opt[bool] `json:\"include_favicon,omitzero\"`\n\t// Describe each image. Needs include_images.\n\tIncludeImageDescriptions param.Opt[bool] `json:\"include_image_descriptions,omitzero\"`\n\t// Query-related images plus per-result images.\n\tIncludeImages param.Opt[bool] `json:\"include_images,omitzero\"`\n\t// ISO 639-1 code or English language name. Ranking boost unless\n\t// filter_by_language.\n\tLanguage param.Opt[string] `json:\"language,omitzero\"`\n\t// Provider-native count. Lower-only alias for max_results.\n\tMaxResults param.Opt[int64] `json:\"max_results,omitzero\"`\n\t// Request the provider's generated answer. Returned as answer on the search\n\t// response, independently of include_raw.\n\tIncludeAnswer ProviderTargetTavilyOptionsIncludeAnswerUnionParam `json:\"include_answer,omitzero\"`\n\t// Native filter versus ranking boost semantics. Boost influences ranking rather\n\t// than restricting results to the listed domains. Requires include_domains.\n\t//\n\t// Any of \"filter\", \"boost\".\n\tIncludeDomainsMode string `json:\"include_domains_mode,omitzero\"`\n\t// Request native full-page content. Defaults to markdown when omitted for this\n\t// provider, False disables that native retrieval; it does not disable explicitly\n\t// requested Kernel browser retrieval.\n\tIncludeRawContent ProviderTargetTavilyOptionsIncludeRawContentUnionParam `json:\"include_raw_content,omitzero\"`\n\t// Provider relevance and latency tier. Some tiers cannot be combined with native\n\t// safe search; conflicts are described in warnings.\n\t//\n\t// Any of \"advanced\", \"basic\", \"fast\", \"ultra-fast\".\n\tSearchDepth string `json:\"search_depth,omitzero\"`\n\t// Provider corpus selector. Publication metadata depends on the selected topic.\n\t//\n\t// Any of \"general\", \"news\", \"finance\".\n\tTopic string `json:\"topic,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProviderTargetTavilyOptionsParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProviderTargetTavilyOptionsParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetTavilyParam struct {\n\tOptions ProviderTargetTavilyOptionsParam `json:\"options,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as \"tavily\".\n\tProvider constant.Tavily `json:\"provider\" default:\"tavily\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Provider is required.\n\n```go\nfunc (r ProviderTargetTavilyParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProviderTargetTavilyParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetUnionParam struct {\n\tOfBrave      *ProviderTargetBraveParam      `json:\",omitzero,inline\"`\n\tOfExa        *ProviderTargetExaParam        `json:\",omitzero,inline\"`\n\tOfPerplexity *ProviderTargetPerplexityParam `json:\",omitzero,inline\"`\n\tOfContext    *ProviderTargetContextParam    `json:\",omitzero,inline\"`\n\tOfParallel   *ProviderTargetParallelParam   `json:\",omitzero,inline\"`\n\tOfOcten      *ProviderTargetOctenParam      `json:\",omitzero,inline\"`\n\tOfYou        *ProviderTargetYouParam        `json:\",omitzero,inline\"`\n\tOfTavily     *ProviderTargetTavilyParam     `json:\",omitzero,inline\"`\n\t// contains filtered or unexported fields\n}\n```\nOnly one field can be non-zero.\n\nUse [param.IsOmitted](/github.com/kernel/kernel-go-sdk/packages/param#IsOmitted) to confirm if a field is set.\n\n```go\nfunc (u ProviderTargetUnionParam) GetOptions() (res providerTargetUnionParamOptions)\n```\nReturns a subunion which exports methods to access subproperties\n\nOr use AsAny() to get the underlying value\n\n```go\nfunc (u ProviderTargetUnionParam) GetProvider() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u ProviderTargetUnionParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (u *ProviderTargetUnionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetYouOptionsExtractionFullPageParam struct {\n\t// Any of \"html\", \"markdown\".\n\tExtractionFormats []string `json:\"extraction_formats,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProviderTargetYouOptionsExtractionFullPageParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProviderTargetYouOptionsExtractionFullPageParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetYouOptionsExtractionParam struct {\n\t// Any of \"highlights\", \"full_page\".\n\tExtractionMode string                                          `json:\"extraction_mode,omitzero\" api:\"required\"`\n\tFullPage       ProviderTargetYouOptionsExtractionFullPageParam `json:\"full_page,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nProvider-native page extraction. Both modes may incur per-row charges; full\\_page may retrieve web and news rows.\n\nThe property ExtractionMode is required.\n\n```go\nfunc (r ProviderTargetYouOptionsExtractionParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProviderTargetYouOptionsExtractionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetYouOptionsParam struct {\n\t// Provider-native per-section count. Lower-only alias for max_results. Web and\n\t// news sections may produce more rows than Kernel returns.\n\tCount param.Opt[int64] `json:\"count,omitzero\"`\n\t// Native extraction timeout in seconds, bounded by the remaining Kernel request\n\t// deadline.\n\tCrawlTimeout param.Opt[int64] `json:\"crawl_timeout,omitzero\"`\n\t// BCP 47 result language from You.com's 51-value enum, e.g. \"EN\", \"JA\". Default\n\t// EN.\n\tLanguage param.Opt[string] `json:\"language,omitzero\"`\n\t// Page offset supported by You.com.\n\tOffset param.Opt[int64] `json:\"offset,omitzero\"`\n\t// Prefer these domains without excluding others. Cannot be combined with\n\t// include_domains if the provider does not accept the combination.\n\tBoostDomains []string `json:\"boost_domains,omitzero\"`\n\t// Provider-native page extraction. Both modes may incur per-row charges; full_page\n\t// may retrieve web and news rows.\n\tExtraction ProviderTargetYouOptionsExtractionParam `json:\"extraction,omitzero\"`\n\t// Request licensed-data output. URL-less knowledge entries are not converted into\n\t// web results; include_raw exposes the full provider response separately.\n\t//\n\t// Any of \"core\".\n\tKnowledge string `json:\"knowledge,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProviderTargetYouOptionsParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProviderTargetYouOptionsParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProviderTargetYouParam struct {\n\tOptions ProviderTargetYouOptionsParam `json:\"options,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as \"you\".\n\tProvider constant.You `json:\"provider\" default:\"you\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Provider is required.\n\n```go\nfunc (r ProviderTargetYouParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProviderTargetYouParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyCheckParams struct {\n\t// An optional URL to test reachability against. If provided, the proxy check will\n\t// test connectivity to this URL instead of the default test URLs. Only HTTP and\n\t// HTTPS schemes are allowed. The hostname is resolved by the proxy, not by Kernel;\n\t// a URL that names an IP address directly must use a public one. For ISP proxies,\n\t// the exit IP is stable, so a successful check reliably indicates that subsequent\n\t// browser sessions will reach the target site with the same IP. For residential\n\t// and mobile proxies, the exit node changes between requests, so a successful\n\t// check validates proxy configuration but does not guarantee that a subsequent\n\t// browser session will use the same exit IP or reach the same site — it is useful\n\t// for verifying credentials and connectivity, not for predicting site-specific\n\t// behavior. When provided, the check result does not update the proxy's health\n\t// status, since a failure may indicate a problem with the target site rather than\n\t// the proxy itself.\n\tURL param.Opt[string] `json:\"url,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProxyCheckParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProxyCheckParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyCheckResponse struct {\n\t// Any of \"isp\", \"residential\", \"mobile\", \"custom\".\n\tType ProxyCheckResponseType `json:\"type\" api:\"required\"`\n\tID   string                 `json:\"id\"`\n\t// Hostnames that should bypass the parent proxy and connect directly.\n\tBypassHosts []string `json:\"bypass_hosts\"`\n\t// Configuration for an ISP proxy.\n\tConfig ProxyCheckResponseConfigUnion `json:\"config\"`\n\t// IP address that the proxy uses when making requests.\n\tIPAddress string `json:\"ip_address\"`\n\t// Timestamp of the last health check performed on this proxy.\n\tLastChecked time.Time `json:\"last_checked\" format:\"date-time\"`\n\t// Readable name of the proxy.\n\tName string `json:\"name\"`\n\t// Protocol to use for the proxy connection.\n\t//\n\t// Any of \"http\", \"https\".\n\tProtocol ProxyCheckResponseProtocol `json:\"protocol\"`\n\t// Current health status of the proxy.\n\t//\n\t// Any of \"available\", \"unavailable\".\n\tStatus ProxyCheckResponseStatus `json:\"status\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tType        respjson.Field\n\t\tID          respjson.Field\n\t\tBypassHosts respjson.Field\n\t\tConfig      respjson.Field\n\t\tIPAddress   respjson.Field\n\t\tLastChecked respjson.Field\n\t\tName        respjson.Field\n\t\tProtocol    respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for routing traffic through a proxy.\n\n```go\nfunc (r ProxyCheckResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyCheckResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyCheckResponseConfigCustom struct {\n\t// Proxy host address or IP.\n\tHost string `json:\"host\" api:\"required\"`\n\t// Proxy port.\n\tPort int64 `json:\"port\" api:\"required\"`\n\t// Whether the proxy has a custom CA bundle configured.\n\tHasCaBundle bool `json:\"has_ca_bundle\"`\n\t// Whether the proxy has a password.\n\tHasPassword bool `json:\"has_password\"`\n\t// Username for proxy authentication.\n\tUsername string `json:\"username\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tHost        respjson.Field\n\t\tPort        respjson.Field\n\t\tHasCaBundle respjson.Field\n\t\tHasPassword respjson.Field\n\t\tUsername    respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for a custom proxy (e.g., private proxy server).\n\n```go\nfunc (r ProxyCheckResponseConfigCustom) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyCheckResponseConfigCustom) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyCheckResponseConfigIsp struct {\n\t// ISO 3166 country code. Supported countries are US, GB, FR, DE, SG, and KR.\n\t// Defaults to US if not provided, or to the country of ip_address when that is\n\t// set.\n\tCountry string `json:\"country\"`\n\t// Reserved exit IP to pin the proxy to. Available only to organizations with a\n\t// reserved ISP allocation; the IP must be active in it (see GET /proxy_ips) and,\n\t// when country is also set, in that country. Omit to let Kernel choose an IP. A\n\t// proxy read includes it only when the proxy's primary exit IP is one of the\n\t// organization's reserved IPs; every ISP proxy's exit IP is on the top-level\n\t// ip_address. An IP outside the allocation is rejected with code ip_not_reserved;\n\t// one that cannot currently be assigned, with 409 ip_unavailable.\n\tIPAddress string `json:\"ip_address\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCountry     respjson.Field\n\t\tIPAddress   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for an ISP proxy.\n\n```go\nfunc (r ProxyCheckResponseConfigIsp) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyCheckResponseConfigIsp) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyCheckResponseConfigMobile struct {\n\t// Provider city alias. Mobile carrier routing can make observed geo vary.\n\tCity string `json:\"city\"`\n\t// ISO 3166 country code. If omitted, the proxy uses the global pool without\n\t// country targeting.\n\tCountry string `json:\"country\"`\n\t// US-only state code. Mobile carrier routing can make observed geo vary.\n\tState string `json:\"state\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCity        respjson.Field\n\t\tCountry     respjson.Field\n\t\tState       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for mobile proxies.\n\n```go\nfunc (r ProxyCheckResponseConfigMobile) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyCheckResponseConfigMobile) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyCheckResponseConfigResidential struct {\n\t// Autonomous system number. See https://bgp.potaroo.net/cidr/autnums.html\n\tAsn string `json:\"asn\"`\n\t// City name (no spaces, e.g. `sanfrancisco`). If provided, `country` must also be\n\t// provided.\n\tCity string `json:\"city\"`\n\t// ISO 3166 country code. If omitted, the proxy uses the global pool without\n\t// country targeting.\n\tCountry string `json:\"country\"`\n\t// Operating system of the residential device.\n\t//\n\t// Any of \"windows\", \"macos\", \"android\".\n\t//\n\t// Deprecated: deprecated\n\tOs string `json:\"os\"`\n\t// Two-letter state code.\n\tState string `json:\"state\"`\n\t// US ZIP code.\n\tZip string `json:\"zip\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAsn         respjson.Field\n\t\tCity        respjson.Field\n\t\tCountry     respjson.Field\n\t\tOs          respjson.Field\n\t\tState       respjson.Field\n\t\tZip         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for residential proxies.\n\n```go\nfunc (r ProxyCheckResponseConfigResidential) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyCheckResponseConfigResidential) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyCheckResponseConfigUnion struct {\n\tCountry string `json:\"country\"`\n\t// This field is from variant [ProxyCheckResponseConfigIsp].\n\tIPAddress string `json:\"ip_address\"`\n\t// This field is from variant [ProxyCheckResponseConfigResidential].\n\tAsn  string `json:\"asn\"`\n\tCity string `json:\"city\"`\n\t// This field is from variant [ProxyCheckResponseConfigResidential].\n\tOs    string `json:\"os\"`\n\tState string `json:\"state\"`\n\t// This field is from variant [ProxyCheckResponseConfigResidential].\n\tZip string `json:\"zip\"`\n\t// This field is from variant [ProxyCheckResponseConfigCustom].\n\tHost string `json:\"host\"`\n\t// This field is from variant [ProxyCheckResponseConfigCustom].\n\tPort int64 `json:\"port\"`\n\t// This field is from variant [ProxyCheckResponseConfigCustom].\n\tHasCaBundle bool `json:\"has_ca_bundle\"`\n\t// This field is from variant [ProxyCheckResponseConfigCustom].\n\tHasPassword bool `json:\"has_password\"`\n\t// This field is from variant [ProxyCheckResponseConfigCustom].\n\tUsername string `json:\"username\"`\n\tJSON     struct {\n\t\tCountry     respjson.Field\n\t\tIPAddress   respjson.Field\n\t\tAsn         respjson.Field\n\t\tCity        respjson.Field\n\t\tOs          respjson.Field\n\t\tState       respjson.Field\n\t\tZip         respjson.Field\n\t\tHost        respjson.Field\n\t\tPort        respjson.Field\n\t\tHasCaBundle respjson.Field\n\t\tHasPassword respjson.Field\n\t\tUsername    respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nProxyCheckResponseConfigUnion contains all possible properties and values from [ProxyCheckResponseConfigIsp](#ProxyCheckResponseConfigIsp), [ProxyCheckResponseConfigResidential](#ProxyCheckResponseConfigResidential), [ProxyCheckResponseConfigMobile](#ProxyCheckResponseConfigMobile), [ProxyCheckResponseConfigCustom](#ProxyCheckResponseConfigCustom).\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u ProxyCheckResponseConfigUnion) AsCustom() (v ProxyCheckResponseConfigCustom)\n```\n\n```go\nfunc (u ProxyCheckResponseConfigUnion) AsIsp() (v ProxyCheckResponseConfigIsp)\n```\n\n```go\nfunc (u ProxyCheckResponseConfigUnion) AsMobile() (v ProxyCheckResponseConfigMobile)\n```\n\n```go\nfunc (u ProxyCheckResponseConfigUnion) AsResidential() (v ProxyCheckResponseConfigResidential)\n```\n\n```go\nfunc (u ProxyCheckResponseConfigUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyCheckResponseConfigUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyCheckResponseProtocol string\n```\nProtocol to use for the proxy connection.\n\n```go\nconst (\n\tProxyCheckResponseProtocolHTTP  ProxyCheckResponseProtocol = \"http\"\n\tProxyCheckResponseProtocolHTTPS ProxyCheckResponseProtocol = \"https\"\n)\n```\n\n```go\ntype ProxyCheckResponseStatus string\n```\nCurrent health status of the proxy.\n\n```go\nconst (\n\tProxyCheckResponseStatusAvailable   ProxyCheckResponseStatus = \"available\"\n\tProxyCheckResponseStatusUnavailable ProxyCheckResponseStatus = \"unavailable\"\n)\n```\n\n```go\ntype ProxyCheckResponseType string\n```\n\n```go\nconst (\n\tProxyCheckResponseTypeIsp         ProxyCheckResponseType = \"isp\"\n\tProxyCheckResponseTypeResidential ProxyCheckResponseType = \"residential\"\n\tProxyCheckResponseTypeMobile      ProxyCheckResponseType = \"mobile\"\n\tProxyCheckResponseTypeCustom      ProxyCheckResponseType = \"custom\"\n)\n```\n\n```go\ntype ProxyDirect struct {\n\tMode constant.Direct `json:\"mode\" default:\"direct\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMode        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nDirect egress recipe. Pass \\`{ \"mode\": \"direct\" }\\` as the browser's \\`proxy\\`.\n\n```go\nfunc (r ProxyDirect) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyDirect) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyGetResponse struct {\n\t// Any of \"isp\", \"residential\", \"mobile\", \"custom\".\n\tType ProxyGetResponseType `json:\"type\" api:\"required\"`\n\tID   string               `json:\"id\"`\n\t// Hostnames that should bypass the parent proxy and connect directly.\n\tBypassHosts []string `json:\"bypass_hosts\"`\n\t// Configuration for an ISP proxy.\n\tConfig ProxyGetResponseConfigUnion `json:\"config\"`\n\t// IP address that the proxy uses when making requests.\n\tIPAddress string `json:\"ip_address\"`\n\t// Timestamp of the last health check performed on this proxy.\n\tLastChecked time.Time `json:\"last_checked\" format:\"date-time\"`\n\t// Readable name of the proxy.\n\tName string `json:\"name\"`\n\t// Protocol to use for the proxy connection.\n\t//\n\t// Any of \"http\", \"https\".\n\tProtocol ProxyGetResponseProtocol `json:\"protocol\"`\n\t// Current health status of the proxy.\n\t//\n\t// Any of \"available\", \"unavailable\".\n\tStatus ProxyGetResponseStatus `json:\"status\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tType        respjson.Field\n\t\tID          respjson.Field\n\t\tBypassHosts respjson.Field\n\t\tConfig      respjson.Field\n\t\tIPAddress   respjson.Field\n\t\tLastChecked respjson.Field\n\t\tName        respjson.Field\n\t\tProtocol    respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for routing traffic through a proxy.\n\n```go\nfunc (r ProxyGetResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyGetResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyGetResponseConfigCustom struct {\n\t// Proxy host address or IP.\n\tHost string `json:\"host\" api:\"required\"`\n\t// Proxy port.\n\tPort int64 `json:\"port\" api:\"required\"`\n\t// Whether the proxy has a custom CA bundle configured.\n\tHasCaBundle bool `json:\"has_ca_bundle\"`\n\t// Whether the proxy has a password.\n\tHasPassword bool `json:\"has_password\"`\n\t// Username for proxy authentication.\n\tUsername string `json:\"username\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tHost        respjson.Field\n\t\tPort        respjson.Field\n\t\tHasCaBundle respjson.Field\n\t\tHasPassword respjson.Field\n\t\tUsername    respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for a custom proxy (e.g., private proxy server).\n\n```go\nfunc (r ProxyGetResponseConfigCustom) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyGetResponseConfigCustom) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyGetResponseConfigIsp struct {\n\t// ISO 3166 country code. Supported countries are US, GB, FR, DE, SG, and KR.\n\t// Defaults to US if not provided, or to the country of ip_address when that is\n\t// set.\n\tCountry string `json:\"country\"`\n\t// Reserved exit IP to pin the proxy to. Available only to organizations with a\n\t// reserved ISP allocation; the IP must be active in it (see GET /proxy_ips) and,\n\t// when country is also set, in that country. Omit to let Kernel choose an IP. A\n\t// proxy read includes it only when the proxy's primary exit IP is one of the\n\t// organization's reserved IPs; every ISP proxy's exit IP is on the top-level\n\t// ip_address. An IP outside the allocation is rejected with code ip_not_reserved;\n\t// one that cannot currently be assigned, with 409 ip_unavailable.\n\tIPAddress string `json:\"ip_address\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCountry     respjson.Field\n\t\tIPAddress   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for an ISP proxy.\n\n```go\nfunc (r ProxyGetResponseConfigIsp) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyGetResponseConfigIsp) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyGetResponseConfigMobile struct {\n\t// Provider city alias. Mobile carrier routing can make observed geo vary.\n\tCity string `json:\"city\"`\n\t// ISO 3166 country code. If omitted, the proxy uses the global pool without\n\t// country targeting.\n\tCountry string `json:\"country\"`\n\t// US-only state code. Mobile carrier routing can make observed geo vary.\n\tState string `json:\"state\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCity        respjson.Field\n\t\tCountry     respjson.Field\n\t\tState       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for mobile proxies.\n\n```go\nfunc (r ProxyGetResponseConfigMobile) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyGetResponseConfigMobile) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyGetResponseConfigResidential struct {\n\t// Autonomous system number. See https://bgp.potaroo.net/cidr/autnums.html\n\tAsn string `json:\"asn\"`\n\t// City name (no spaces, e.g. `sanfrancisco`). If provided, `country` must also be\n\t// provided.\n\tCity string `json:\"city\"`\n\t// ISO 3166 country code. If omitted, the proxy uses the global pool without\n\t// country targeting.\n\tCountry string `json:\"country\"`\n\t// Operating system of the residential device.\n\t//\n\t// Any of \"windows\", \"macos\", \"android\".\n\t//\n\t// Deprecated: deprecated\n\tOs string `json:\"os\"`\n\t// Two-letter state code.\n\tState string `json:\"state\"`\n\t// US ZIP code.\n\tZip string `json:\"zip\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAsn         respjson.Field\n\t\tCity        respjson.Field\n\t\tCountry     respjson.Field\n\t\tOs          respjson.Field\n\t\tState       respjson.Field\n\t\tZip         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for residential proxies.\n\n```go\nfunc (r ProxyGetResponseConfigResidential) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyGetResponseConfigResidential) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyGetResponseConfigUnion struct {\n\tCountry string `json:\"country\"`\n\t// This field is from variant [ProxyGetResponseConfigIsp].\n\tIPAddress string `json:\"ip_address\"`\n\t// This field is from variant [ProxyGetResponseConfigResidential].\n\tAsn  string `json:\"asn\"`\n\tCity string `json:\"city\"`\n\t// This field is from variant [ProxyGetResponseConfigResidential].\n\tOs    string `json:\"os\"`\n\tState string `json:\"state\"`\n\t// This field is from variant [ProxyGetResponseConfigResidential].\n\tZip string `json:\"zip\"`\n\t// This field is from variant [ProxyGetResponseConfigCustom].\n\tHost string `json:\"host\"`\n\t// This field is from variant [ProxyGetResponseConfigCustom].\n\tPort int64 `json:\"port\"`\n\t// This field is from variant [ProxyGetResponseConfigCustom].\n\tHasCaBundle bool `json:\"has_ca_bundle\"`\n\t// This field is from variant [ProxyGetResponseConfigCustom].\n\tHasPassword bool `json:\"has_password\"`\n\t// This field is from variant [ProxyGetResponseConfigCustom].\n\tUsername string `json:\"username\"`\n\tJSON     struct {\n\t\tCountry     respjson.Field\n\t\tIPAddress   respjson.Field\n\t\tAsn         respjson.Field\n\t\tCity        respjson.Field\n\t\tOs          respjson.Field\n\t\tState       respjson.Field\n\t\tZip         respjson.Field\n\t\tHost        respjson.Field\n\t\tPort        respjson.Field\n\t\tHasCaBundle respjson.Field\n\t\tHasPassword respjson.Field\n\t\tUsername    respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nProxyGetResponseConfigUnion contains all possible properties and values from [ProxyGetResponseConfigIsp](#ProxyGetResponseConfigIsp), [ProxyGetResponseConfigResidential](#ProxyGetResponseConfigResidential), [ProxyGetResponseConfigMobile](#ProxyGetResponseConfigMobile), [ProxyGetResponseConfigCustom](#ProxyGetResponseConfigCustom).\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u ProxyGetResponseConfigUnion) AsCustom() (v ProxyGetResponseConfigCustom)\n```\n\n```go\nfunc (u ProxyGetResponseConfigUnion) AsIsp() (v ProxyGetResponseConfigIsp)\n```\n\n```go\nfunc (u ProxyGetResponseConfigUnion) AsMobile() (v ProxyGetResponseConfigMobile)\n```\n\n```go\nfunc (u ProxyGetResponseConfigUnion) AsResidential() (v ProxyGetResponseConfigResidential)\n```\n\n```go\nfunc (u ProxyGetResponseConfigUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyGetResponseConfigUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyGetResponseProtocol string\n```\nProtocol to use for the proxy connection.\n\n```go\nconst (\n\tProxyGetResponseProtocolHTTP  ProxyGetResponseProtocol = \"http\"\n\tProxyGetResponseProtocolHTTPS ProxyGetResponseProtocol = \"https\"\n)\n```\n\n```go\ntype ProxyGetResponseStatus string\n```\nCurrent health status of the proxy.\n\n```go\nconst (\n\tProxyGetResponseStatusAvailable   ProxyGetResponseStatus = \"available\"\n\tProxyGetResponseStatusUnavailable ProxyGetResponseStatus = \"unavailable\"\n)\n```\n\n```go\ntype ProxyGetResponseType string\n```\n\n```go\nconst (\n\tProxyGetResponseTypeIsp         ProxyGetResponseType = \"isp\"\n\tProxyGetResponseTypeResidential ProxyGetResponseType = \"residential\"\n\tProxyGetResponseTypeMobile      ProxyGetResponseType = \"mobile\"\n\tProxyGetResponseTypeCustom      ProxyGetResponseType = \"custom\"\n)\n```\n\n```go\ntype ProxyIP struct {\n\t// ISO 3166 country code of the IP.\n\tCountry string `json:\"country\" api:\"required\"`\n\t// Reserved exit IP address.\n\tIPAddress string `json:\"ip_address\" api:\"required\"`\n\t// Whether the IP can currently be assigned. An excluded IP is listed but cannot be\n\t// pinned or moved to; proxies already on it keep working.\n\t//\n\t// Any of \"active\", \"excluded\".\n\tStatus ProxyIPStatus `json:\"status\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCountry     respjson.Field\n\t\tIPAddress   respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOne IP address reserved for the organization's ISP proxies.\n\n```go\nfunc (r ProxyIP) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyIP) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyIPDetail struct {\n\t// ISO 3166 country code of the IP.\n\tCountry string `json:\"country\" api:\"required\"`\n\t// Reserved exit IP address.\n\tIPAddress string `json:\"ip_address\" api:\"required\"`\n\t// ISP proxies in the current project whose primary exit IP is this address.\n\tProxies []ProxyIPDetailProxy `json:\"proxies\" api:\"required\"`\n\t// Number of ISP proxies across the organization whose primary exit IP is this\n\t// address.\n\tProxyCount int64 `json:\"proxy_count\" api:\"required\"`\n\t// Whether the IP can currently be assigned. An excluded IP is listed but cannot be\n\t// pinned or moved to; proxies already on it keep working.\n\t//\n\t// Any of \"active\", \"excluded\".\n\tStatus ProxyIPDetailStatus `json:\"status\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCountry     respjson.Field\n\t\tIPAddress   respjson.Field\n\t\tProxies     respjson.Field\n\t\tProxyCount  respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA reserved IP with the ISP proxies using it as their primary exit. Reservations are organization-wide, so proxy\\_count covers every project while proxies lists only those in the current project.\n\n```go\nfunc (r ProxyIPDetail) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyIPDetail) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyIPDetailProxy struct {\n\tID   string `json:\"id\" api:\"required\"`\n\tName string `json:\"name\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tName        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn ISP proxy whose primary exit is the reserved IP.\n\n```go\nfunc (r ProxyIPDetailProxy) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyIPDetailProxy) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyIPDetailStatus string\n```\nWhether the IP can currently be assigned. An excluded IP is listed but cannot be pinned or moved to; proxies already on it keep working.\n\n```go\nconst (\n\tProxyIPDetailStatusActive   ProxyIPDetailStatus = \"active\"\n\tProxyIPDetailStatusExcluded ProxyIPDetailStatus = \"excluded\"\n)\n```\n\n```go\ntype ProxyIPListParams struct {\n\t// ISO 3166 country code to filter by. Must be a country ISP proxies support.\n\tCountry param.Opt[string] `query:\"country,omitzero\" json:\"-\"`\n\t// Limit the number of IPs to return.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Offset the number of IPs to return.\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Filter by whether the IP can currently be assigned.\n\t//\n\t// Any of \"active\", \"excluded\".\n\tStatus ProxyIPListParamsStatus `query:\"status,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProxyIPListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [ProxyIPListParams](#ProxyIPListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype ProxyIPListParamsStatus string\n```\nFilter by whether the IP can currently be assigned.\n\n```go\nconst (\n\tProxyIPListParamsStatusActive   ProxyIPListParamsStatus = \"active\"\n\tProxyIPListParamsStatusExcluded ProxyIPListParamsStatus = \"excluded\"\n)\n```\n\n```go\ntype ProxyIPService struct {\n\tOptions []option.RequestOption\n}\n```\nCreate and manage proxy configurations for routing browser traffic.\n\nProxyIPService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewProxyIPService](#NewProxyIPService) method instead.\n\n```go\nfunc NewProxyIPService(opts ...option.RequestOption) (r ProxyIPService)\n```\nNewProxyIPService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *ProxyIPService) Get(ctx context.Context, ipAddress string, opts ...option.RequestOption) (res *ProxyIPDetail, err error)\n```\nRetrieve one reserved IP with the ISP proxies using it as their primary exit. proxy\\_count spans the organization; proxies lists only those in the current project. Returns 404 when the IP is not in the organization's allocation and 403 with code reserved\\_isp\\_not\\_enabled when the organization has none. Scoped API keys require proxies:read on the whole project or organization, not on individual proxies; otherwise the operation returns 403 with code insufficient\\_scope.\n\n```go\nfunc (r *ProxyIPService) List(ctx context.Context, query ProxyIPListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[ProxyIP], err error)\n```\nList the IP addresses reserved for the organization's ISP proxies, with each IP's country and whether it can currently be assigned. Available only to organizations with a reserved ISP allocation; others receive a 403 with code reserved\\_isp\\_not\\_enabled. Served from the allocation itself, so IPs appear whether or not a proxy uses them. Scoped API keys require proxies:read on the whole project or organization, not on individual proxies; otherwise the operation returns 403 with code insufficient\\_scope.\n\n```go\nfunc (r *ProxyIPService) ListAutoPaging(ctx context.Context, query ProxyIPListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[ProxyIP]\n```\nList the IP addresses reserved for the organization's ISP proxies, with each IP's country and whether it can currently be assigned. Available only to organizations with a reserved ISP allocation; others receive a 403 with code reserved\\_isp\\_not\\_enabled. Served from the allocation itself, so IPs appear whether or not a proxy uses them. Scoped API keys require proxies:read on the whole project or organization, not on individual proxies; otherwise the operation returns 403 with code insufficient\\_scope.\n\n```go\ntype ProxyIPStatus string\n```\nWhether the IP can currently be assigned. An excluded IP is listed but cannot be pinned or moved to; proxies already on it keep working.\n\n```go\nconst (\n\tProxyIPStatusActive   ProxyIPStatus = \"active\"\n\tProxyIPStatusExcluded ProxyIPStatus = \"excluded\"\n)\n```\n\n```go\ntype ProxyListParams struct {\n\t// Exact match on the primary exit IP of ISP proxies. Must be an IPv4 address. Only\n\t// ISP proxies are matched: the ip_address shown on other proxy types is a one-time\n\t// observation, not a stable identity.\n\tIPAddress param.Opt[string] `query:\"ip_address,omitzero\" json:\"-\"`\n\t// Limit the number of proxies to return.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Exact-match filter on proxy name using the database collation. In production,\n\t// matching is case- and accent-insensitive. Names are not required to be unique,\n\t// so multiple proxies may match.\n\tName param.Opt[string] `query:\"name,omitzero\" json:\"-\"`\n\t// Offset the number of proxies to return.\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Case-insensitive substring match against proxy name, host, or IP address. IDs\n\t// match by exact value.\n\tQuery param.Opt[string] `query:\"query,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProxyListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [ProxyListParams](#ProxyListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype ProxyListResponse struct {\n\t// Any of \"isp\", \"residential\", \"mobile\", \"custom\".\n\tType ProxyListResponseType `json:\"type\" api:\"required\"`\n\tID   string                `json:\"id\"`\n\t// Hostnames that should bypass the parent proxy and connect directly.\n\tBypassHosts []string `json:\"bypass_hosts\"`\n\t// Configuration for an ISP proxy.\n\tConfig ProxyListResponseConfigUnion `json:\"config\"`\n\t// IP address that the proxy uses when making requests.\n\tIPAddress string `json:\"ip_address\"`\n\t// Timestamp of the last health check performed on this proxy.\n\tLastChecked time.Time `json:\"last_checked\" format:\"date-time\"`\n\t// Readable name of the proxy.\n\tName string `json:\"name\"`\n\t// Protocol to use for the proxy connection.\n\t//\n\t// Any of \"http\", \"https\".\n\tProtocol ProxyListResponseProtocol `json:\"protocol\"`\n\t// Current health status of the proxy.\n\t//\n\t// Any of \"available\", \"unavailable\".\n\tStatus ProxyListResponseStatus `json:\"status\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tType        respjson.Field\n\t\tID          respjson.Field\n\t\tBypassHosts respjson.Field\n\t\tConfig      respjson.Field\n\t\tIPAddress   respjson.Field\n\t\tLastChecked respjson.Field\n\t\tName        respjson.Field\n\t\tProtocol    respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for routing traffic through a proxy.\n\n```go\nfunc (r ProxyListResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyListResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyListResponseConfigCustom struct {\n\t// Proxy host address or IP.\n\tHost string `json:\"host\" api:\"required\"`\n\t// Proxy port.\n\tPort int64 `json:\"port\" api:\"required\"`\n\t// Whether the proxy has a custom CA bundle configured.\n\tHasCaBundle bool `json:\"has_ca_bundle\"`\n\t// Whether the proxy has a password.\n\tHasPassword bool `json:\"has_password\"`\n\t// Username for proxy authentication.\n\tUsername string `json:\"username\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tHost        respjson.Field\n\t\tPort        respjson.Field\n\t\tHasCaBundle respjson.Field\n\t\tHasPassword respjson.Field\n\t\tUsername    respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for a custom proxy (e.g., private proxy server).\n\n```go\nfunc (r ProxyListResponseConfigCustom) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyListResponseConfigCustom) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyListResponseConfigIsp struct {\n\t// ISO 3166 country code. Supported countries are US, GB, FR, DE, SG, and KR.\n\t// Defaults to US if not provided, or to the country of ip_address when that is\n\t// set.\n\tCountry string `json:\"country\"`\n\t// Reserved exit IP to pin the proxy to. Available only to organizations with a\n\t// reserved ISP allocation; the IP must be active in it (see GET /proxy_ips) and,\n\t// when country is also set, in that country. Omit to let Kernel choose an IP. A\n\t// proxy read includes it only when the proxy's primary exit IP is one of the\n\t// organization's reserved IPs; every ISP proxy's exit IP is on the top-level\n\t// ip_address. An IP outside the allocation is rejected with code ip_not_reserved;\n\t// one that cannot currently be assigned, with 409 ip_unavailable.\n\tIPAddress string `json:\"ip_address\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCountry     respjson.Field\n\t\tIPAddress   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for an ISP proxy.\n\n```go\nfunc (r ProxyListResponseConfigIsp) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyListResponseConfigIsp) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyListResponseConfigMobile struct {\n\t// Provider city alias. Mobile carrier routing can make observed geo vary.\n\tCity string `json:\"city\"`\n\t// ISO 3166 country code. If omitted, the proxy uses the global pool without\n\t// country targeting.\n\tCountry string `json:\"country\"`\n\t// US-only state code. Mobile carrier routing can make observed geo vary.\n\tState string `json:\"state\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCity        respjson.Field\n\t\tCountry     respjson.Field\n\t\tState       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for mobile proxies.\n\n```go\nfunc (r ProxyListResponseConfigMobile) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyListResponseConfigMobile) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyListResponseConfigResidential struct {\n\t// Autonomous system number. See https://bgp.potaroo.net/cidr/autnums.html\n\tAsn string `json:\"asn\"`\n\t// City name (no spaces, e.g. `sanfrancisco`). If provided, `country` must also be\n\t// provided.\n\tCity string `json:\"city\"`\n\t// ISO 3166 country code. If omitted, the proxy uses the global pool without\n\t// country targeting.\n\tCountry string `json:\"country\"`\n\t// Operating system of the residential device.\n\t//\n\t// Any of \"windows\", \"macos\", \"android\".\n\t//\n\t// Deprecated: deprecated\n\tOs string `json:\"os\"`\n\t// Two-letter state code.\n\tState string `json:\"state\"`\n\t// US ZIP code.\n\tZip string `json:\"zip\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAsn         respjson.Field\n\t\tCity        respjson.Field\n\t\tCountry     respjson.Field\n\t\tOs          respjson.Field\n\t\tState       respjson.Field\n\t\tZip         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for residential proxies.\n\n```go\nfunc (r ProxyListResponseConfigResidential) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyListResponseConfigResidential) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyListResponseConfigUnion struct {\n\tCountry string `json:\"country\"`\n\t// This field is from variant [ProxyListResponseConfigIsp].\n\tIPAddress string `json:\"ip_address\"`\n\t// This field is from variant [ProxyListResponseConfigResidential].\n\tAsn  string `json:\"asn\"`\n\tCity string `json:\"city\"`\n\t// This field is from variant [ProxyListResponseConfigResidential].\n\tOs    string `json:\"os\"`\n\tState string `json:\"state\"`\n\t// This field is from variant [ProxyListResponseConfigResidential].\n\tZip string `json:\"zip\"`\n\t// This field is from variant [ProxyListResponseConfigCustom].\n\tHost string `json:\"host\"`\n\t// This field is from variant [ProxyListResponseConfigCustom].\n\tPort int64 `json:\"port\"`\n\t// This field is from variant [ProxyListResponseConfigCustom].\n\tHasCaBundle bool `json:\"has_ca_bundle\"`\n\t// This field is from variant [ProxyListResponseConfigCustom].\n\tHasPassword bool `json:\"has_password\"`\n\t// This field is from variant [ProxyListResponseConfigCustom].\n\tUsername string `json:\"username\"`\n\tJSON     struct {\n\t\tCountry     respjson.Field\n\t\tIPAddress   respjson.Field\n\t\tAsn         respjson.Field\n\t\tCity        respjson.Field\n\t\tOs          respjson.Field\n\t\tState       respjson.Field\n\t\tZip         respjson.Field\n\t\tHost        respjson.Field\n\t\tPort        respjson.Field\n\t\tHasCaBundle respjson.Field\n\t\tHasPassword respjson.Field\n\t\tUsername    respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nProxyListResponseConfigUnion contains all possible properties and values from [ProxyListResponseConfigIsp](#ProxyListResponseConfigIsp), [ProxyListResponseConfigResidential](#ProxyListResponseConfigResidential), [ProxyListResponseConfigMobile](#ProxyListResponseConfigMobile), [ProxyListResponseConfigCustom](#ProxyListResponseConfigCustom).\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u ProxyListResponseConfigUnion) AsCustom() (v ProxyListResponseConfigCustom)\n```\n\n```go\nfunc (u ProxyListResponseConfigUnion) AsIsp() (v ProxyListResponseConfigIsp)\n```\n\n```go\nfunc (u ProxyListResponseConfigUnion) AsMobile() (v ProxyListResponseConfigMobile)\n```\n\n```go\nfunc (u ProxyListResponseConfigUnion) AsResidential() (v ProxyListResponseConfigResidential)\n```\n\n```go\nfunc (u ProxyListResponseConfigUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyListResponseConfigUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyListResponseProtocol string\n```\nProtocol to use for the proxy connection.\n\n```go\nconst (\n\tProxyListResponseProtocolHTTP  ProxyListResponseProtocol = \"http\"\n\tProxyListResponseProtocolHTTPS ProxyListResponseProtocol = \"https\"\n)\n```\n\n```go\ntype ProxyListResponseStatus string\n```\nCurrent health status of the proxy.\n\n```go\nconst (\n\tProxyListResponseStatusAvailable   ProxyListResponseStatus = \"available\"\n\tProxyListResponseStatusUnavailable ProxyListResponseStatus = \"unavailable\"\n)\n```\n\n```go\ntype ProxyListResponseType string\n```\n\n```go\nconst (\n\tProxyListResponseTypeIsp         ProxyListResponseType = \"isp\"\n\tProxyListResponseTypeResidential ProxyListResponseType = \"residential\"\n\tProxyListResponseTypeMobile      ProxyListResponseType = \"mobile\"\n\tProxyListResponseTypeCustom      ProxyListResponseType = \"custom\"\n)\n```\n\n```go\ntype ProxyManaged struct {\n\t// Configuration for routing traffic through a proxy.\n\tCreate ProxyManagedCreate `json:\"create\" api:\"required\"`\n\tMode   constant.Managed   `json:\"mode\" default:\"managed\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCreate      respjson.Field\n\t\tMode        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nManaged proxy recipe. \\`create\\` is a non-idempotent \\`POST /proxies\\` payload: create the resource once, retain its ID, and reuse that ID as the browser's \\`proxy.id\\`. Do not submit this recipe before every browser session.\n\n```go\nfunc (r ProxyManaged) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyManaged) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyManagedCreate struct {\n\t// Any of \"isp\", \"residential\", \"mobile\", \"custom\".\n\tType string `json:\"type\" api:\"required\"`\n\t// Hostnames that should bypass the parent proxy and connect directly.\n\tBypassHosts []string `json:\"bypass_hosts\"`\n\t// Configuration for an ISP proxy.\n\tConfig ProxyManagedCreateConfigUnion `json:\"config\"`\n\t// Readable name of the proxy.\n\tName string `json:\"name\"`\n\t// Protocol to use for the proxy connection.\n\t//\n\t// Any of \"http\", \"https\".\n\tProtocol string `json:\"protocol\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tType        respjson.Field\n\t\tBypassHosts respjson.Field\n\t\tConfig      respjson.Field\n\t\tName        respjson.Field\n\t\tProtocol    respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for routing traffic through a proxy.\n\n```go\nfunc (r ProxyManagedCreate) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyManagedCreate) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyManagedCreateConfigCustom struct {\n\t// Proxy host address or IP.\n\tHost string `json:\"host\" api:\"required\"`\n\t// Proxy port.\n\tPort int64 `json:\"port\" api:\"required\"`\n\t// PEM-encoded CA certificate bundle the proxy re-signs upstream TLS with. Provide\n\t// when the proxy terminates TLS (MITM) so the browser trusts its certificates. May\n\t// contain multiple concatenated certificates.\n\tCaBundle string `json:\"ca_bundle\"`\n\t// Password for proxy authentication.\n\tPassword string `json:\"password\"`\n\t// Username for proxy authentication.\n\tUsername string `json:\"username\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tHost        respjson.Field\n\t\tPort        respjson.Field\n\t\tCaBundle    respjson.Field\n\t\tPassword    respjson.Field\n\t\tUsername    respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for a custom proxy (e.g., private proxy server).\n\n```go\nfunc (r ProxyManagedCreateConfigCustom) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyManagedCreateConfigCustom) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyManagedCreateConfigIsp struct {\n\t// ISO 3166 country code. Supported countries are US, GB, FR, DE, SG, and KR.\n\t// Defaults to US if not provided, or to the country of ip_address when that is\n\t// set.\n\tCountry string `json:\"country\"`\n\t// Reserved exit IP to pin the proxy to. Available only to organizations with a\n\t// reserved ISP allocation; the IP must be active in it (see GET /proxy_ips) and,\n\t// when country is also set, in that country. Omit to let Kernel choose an IP. A\n\t// proxy read includes it only when the proxy's primary exit IP is one of the\n\t// organization's reserved IPs; every ISP proxy's exit IP is on the top-level\n\t// ip_address. An IP outside the allocation is rejected with code ip_not_reserved;\n\t// one that cannot currently be assigned, with 409 ip_unavailable.\n\tIPAddress string `json:\"ip_address\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCountry     respjson.Field\n\t\tIPAddress   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for an ISP proxy.\n\n```go\nfunc (r ProxyManagedCreateConfigIsp) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyManagedCreateConfigIsp) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyManagedCreateConfigMobile struct {\n\t// Provider city alias. Mobile carrier routing can make observed geo vary.\n\tCity string `json:\"city\"`\n\t// ISO 3166 country code. If omitted, the proxy uses the global pool without\n\t// country targeting.\n\tCountry string `json:\"country\"`\n\t// US-only state code. Mobile carrier routing can make observed geo vary.\n\tState string `json:\"state\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCity        respjson.Field\n\t\tCountry     respjson.Field\n\t\tState       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for mobile proxies.\n\n```go\nfunc (r ProxyManagedCreateConfigMobile) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyManagedCreateConfigMobile) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyManagedCreateConfigResidential struct {\n\t// Autonomous system number. See https://bgp.potaroo.net/cidr/autnums.html\n\tAsn string `json:\"asn\"`\n\t// City name (no spaces, e.g. `sanfrancisco`). If provided, `country` must also be\n\t// provided.\n\tCity string `json:\"city\"`\n\t// ISO 3166 country code. If omitted, the proxy uses the global pool without\n\t// country targeting.\n\tCountry string `json:\"country\"`\n\t// Operating system of the residential device.\n\t//\n\t// Any of \"windows\", \"macos\", \"android\".\n\t//\n\t// Deprecated: deprecated\n\tOs string `json:\"os\"`\n\t// Two-letter state code.\n\tState string `json:\"state\"`\n\t// US ZIP code.\n\tZip string `json:\"zip\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAsn         respjson.Field\n\t\tCity        respjson.Field\n\t\tCountry     respjson.Field\n\t\tOs          respjson.Field\n\t\tState       respjson.Field\n\t\tZip         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for residential proxies.\n\n```go\nfunc (r ProxyManagedCreateConfigResidential) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyManagedCreateConfigResidential) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyManagedCreateConfigUnion struct {\n\tCountry string `json:\"country\"`\n\t// This field is from variant [ProxyManagedCreateConfigIsp].\n\tIPAddress string `json:\"ip_address\"`\n\t// This field is from variant [ProxyManagedCreateConfigResidential].\n\tAsn  string `json:\"asn\"`\n\tCity string `json:\"city\"`\n\t// This field is from variant [ProxyManagedCreateConfigResidential].\n\tOs    string `json:\"os\"`\n\tState string `json:\"state\"`\n\t// This field is from variant [ProxyManagedCreateConfigResidential].\n\tZip string `json:\"zip\"`\n\t// This field is from variant [ProxyManagedCreateConfigCustom].\n\tHost string `json:\"host\"`\n\t// This field is from variant [ProxyManagedCreateConfigCustom].\n\tPort int64 `json:\"port\"`\n\t// This field is from variant [ProxyManagedCreateConfigCustom].\n\tCaBundle string `json:\"ca_bundle\"`\n\t// This field is from variant [ProxyManagedCreateConfigCustom].\n\tPassword string `json:\"password\"`\n\t// This field is from variant [ProxyManagedCreateConfigCustom].\n\tUsername string `json:\"username\"`\n\tJSON     struct {\n\t\tCountry   respjson.Field\n\t\tIPAddress respjson.Field\n\t\tAsn       respjson.Field\n\t\tCity      respjson.Field\n\t\tOs        respjson.Field\n\t\tState     respjson.Field\n\t\tZip       respjson.Field\n\t\tHost      respjson.Field\n\t\tPort      respjson.Field\n\t\tCaBundle  respjson.Field\n\t\tPassword  respjson.Field\n\t\tUsername  respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nProxyManagedCreateConfigUnion contains all possible properties and values from [ProxyManagedCreateConfigIsp](#ProxyManagedCreateConfigIsp), [ProxyManagedCreateConfigResidential](#ProxyManagedCreateConfigResidential), [ProxyManagedCreateConfigMobile](#ProxyManagedCreateConfigMobile), [ProxyManagedCreateConfigCustom](#ProxyManagedCreateConfigCustom).\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u ProxyManagedCreateConfigUnion) AsCustom() (v ProxyManagedCreateConfigCustom)\n```\n\n```go\nfunc (u ProxyManagedCreateConfigUnion) AsIsp() (v ProxyManagedCreateConfigIsp)\n```\n\n```go\nfunc (u ProxyManagedCreateConfigUnion) AsMobile() (v ProxyManagedCreateConfigMobile)\n```\n\n```go\nfunc (u ProxyManagedCreateConfigUnion) AsResidential() (v ProxyManagedCreateConfigResidential)\n```\n\n```go\nfunc (u ProxyManagedCreateConfigUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyManagedCreateConfigUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyNewParams struct {\n\t// Any of \"isp\", \"residential\", \"mobile\", \"custom\".\n\tType ProxyNewParamsType `json:\"type,omitzero\" api:\"required\"`\n\t// Readable name of the proxy.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// Hostnames that should bypass the parent proxy and connect directly.\n\tBypassHosts []string `json:\"bypass_hosts,omitzero\"`\n\t// Configuration for an ISP proxy.\n\tConfig ProxyNewParamsConfigUnion `json:\"config,omitzero\"`\n\t// Protocol to use for the proxy connection.\n\t//\n\t// Any of \"http\", \"https\".\n\tProtocol ProxyNewParamsProtocol `json:\"protocol,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProxyNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProxyNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyNewParamsConfigCustom struct {\n\t// Proxy host address or IP.\n\tHost string `json:\"host\" api:\"required\"`\n\t// Proxy port.\n\tPort int64 `json:\"port\" api:\"required\"`\n\t// PEM-encoded CA certificate bundle the proxy re-signs upstream TLS with. Provide\n\t// when the proxy terminates TLS (MITM) so the browser trusts its certificates. May\n\t// contain multiple concatenated certificates.\n\tCaBundle param.Opt[string] `json:\"ca_bundle,omitzero\"`\n\t// Password for proxy authentication.\n\tPassword param.Opt[string] `json:\"password,omitzero\"`\n\t// Username for proxy authentication.\n\tUsername param.Opt[string] `json:\"username,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nConfiguration for a custom proxy (e.g., private proxy server).\n\nThe properties Host, Port are required.\n\n```go\nfunc (r ProxyNewParamsConfigCustom) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProxyNewParamsConfigCustom) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyNewParamsConfigIsp struct {\n\t// ISO 3166 country code. Supported countries are US, GB, FR, DE, SG, and KR.\n\t// Defaults to US if not provided, or to the country of ip_address when that is\n\t// set.\n\tCountry param.Opt[string] `json:\"country,omitzero\"`\n\t// Reserved exit IP to pin the proxy to. Available only to organizations with a\n\t// reserved ISP allocation; the IP must be active in it (see GET /proxy_ips) and,\n\t// when country is also set, in that country. Omit to let Kernel choose an IP. A\n\t// proxy read includes it only when the proxy's primary exit IP is one of the\n\t// organization's reserved IPs; every ISP proxy's exit IP is on the top-level\n\t// ip_address. An IP outside the allocation is rejected with code ip_not_reserved;\n\t// one that cannot currently be assigned, with 409 ip_unavailable.\n\tIPAddress param.Opt[string] `json:\"ip_address,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nConfiguration for an ISP proxy.\n\n```go\nfunc (r ProxyNewParamsConfigIsp) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProxyNewParamsConfigIsp) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyNewParamsConfigMobile struct {\n\t// Provider city alias. Mobile carrier routing can make observed geo vary.\n\tCity param.Opt[string] `json:\"city,omitzero\"`\n\t// ISO 3166 country code. If omitted, the proxy uses the global pool without\n\t// country targeting.\n\tCountry param.Opt[string] `json:\"country,omitzero\"`\n\t// US-only state code. Mobile carrier routing can make observed geo vary.\n\tState param.Opt[string] `json:\"state,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nConfiguration for mobile proxies.\n\n```go\nfunc (r ProxyNewParamsConfigMobile) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProxyNewParamsConfigMobile) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyNewParamsConfigResidential struct {\n\t// Autonomous system number. See https://bgp.potaroo.net/cidr/autnums.html\n\tAsn param.Opt[string] `json:\"asn,omitzero\"`\n\t// City name (no spaces, e.g. `sanfrancisco`). If provided, `country` must also be\n\t// provided.\n\tCity param.Opt[string] `json:\"city,omitzero\"`\n\t// ISO 3166 country code. If omitted, the proxy uses the global pool without\n\t// country targeting.\n\tCountry param.Opt[string] `json:\"country,omitzero\"`\n\t// Two-letter state code.\n\tState param.Opt[string] `json:\"state,omitzero\"`\n\t// US ZIP code.\n\tZip param.Opt[string] `json:\"zip,omitzero\"`\n\t// Operating system of the residential device.\n\t//\n\t// Any of \"windows\", \"macos\", \"android\".\n\t//\n\t// Deprecated: deprecated\n\tOs string `json:\"os,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nConfiguration for residential proxies.\n\n```go\nfunc (r ProxyNewParamsConfigResidential) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProxyNewParamsConfigResidential) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyNewParamsConfigUnion struct {\n\tOfIsp         *ProxyNewParamsConfigIsp         `json:\",omitzero,inline\"`\n\tOfResidential *ProxyNewParamsConfigResidential `json:\",omitzero,inline\"`\n\tOfMobile      *ProxyNewParamsConfigMobile      `json:\",omitzero,inline\"`\n\tOfCustom      *ProxyNewParamsConfigCustom      `json:\",omitzero,inline\"`\n\t// contains filtered or unexported fields\n}\n```\nOnly one field can be non-zero.\n\nUse [param.IsOmitted](/github.com/kernel/kernel-go-sdk/packages/param#IsOmitted) to confirm if a field is set.\n\n```go\nfunc (u ProxyNewParamsConfigUnion) GetAsn() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u ProxyNewParamsConfigUnion) GetCaBundle() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u ProxyNewParamsConfigUnion) GetCity() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u ProxyNewParamsConfigUnion) GetCountry() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u ProxyNewParamsConfigUnion) GetHost() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u ProxyNewParamsConfigUnion) GetIPAddress() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u ProxyNewParamsConfigUnion) GetOs() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u ProxyNewParamsConfigUnion) GetPassword() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u ProxyNewParamsConfigUnion) GetPort() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u ProxyNewParamsConfigUnion) GetState() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u ProxyNewParamsConfigUnion) GetUsername() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u ProxyNewParamsConfigUnion) GetZip() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u ProxyNewParamsConfigUnion) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (u *ProxyNewParamsConfigUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyNewParamsProtocol string\n```\nProtocol to use for the proxy connection.\n\n```go\nconst (\n\tProxyNewParamsProtocolHTTP  ProxyNewParamsProtocol = \"http\"\n\tProxyNewParamsProtocolHTTPS ProxyNewParamsProtocol = \"https\"\n)\n```\n\n```go\ntype ProxyNewParamsType string\n```\n\n```go\nconst (\n\tProxyNewParamsTypeIsp         ProxyNewParamsType = \"isp\"\n\tProxyNewParamsTypeResidential ProxyNewParamsType = \"residential\"\n\tProxyNewParamsTypeMobile      ProxyNewParamsType = \"mobile\"\n\tProxyNewParamsTypeCustom      ProxyNewParamsType = \"custom\"\n)\n```\n\n```go\ntype ProxyNewResponse struct {\n\t// Any of \"isp\", \"residential\", \"mobile\", \"custom\".\n\tType ProxyNewResponseType `json:\"type\" api:\"required\"`\n\tID   string               `json:\"id\"`\n\t// Hostnames that should bypass the parent proxy and connect directly.\n\tBypassHosts []string `json:\"bypass_hosts\"`\n\t// Configuration for an ISP proxy.\n\tConfig ProxyNewResponseConfigUnion `json:\"config\"`\n\t// IP address that the proxy uses when making requests.\n\tIPAddress string `json:\"ip_address\"`\n\t// Timestamp of the last health check performed on this proxy.\n\tLastChecked time.Time `json:\"last_checked\" format:\"date-time\"`\n\t// Readable name of the proxy.\n\tName string `json:\"name\"`\n\t// Protocol to use for the proxy connection.\n\t//\n\t// Any of \"http\", \"https\".\n\tProtocol ProxyNewResponseProtocol `json:\"protocol\"`\n\t// Current health status of the proxy.\n\t//\n\t// Any of \"available\", \"unavailable\".\n\tStatus ProxyNewResponseStatus `json:\"status\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tType        respjson.Field\n\t\tID          respjson.Field\n\t\tBypassHosts respjson.Field\n\t\tConfig      respjson.Field\n\t\tIPAddress   respjson.Field\n\t\tLastChecked respjson.Field\n\t\tName        respjson.Field\n\t\tProtocol    respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for routing traffic through a proxy.\n\n```go\nfunc (r ProxyNewResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyNewResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyNewResponseConfigCustom struct {\n\t// Proxy host address or IP.\n\tHost string `json:\"host\" api:\"required\"`\n\t// Proxy port.\n\tPort int64 `json:\"port\" api:\"required\"`\n\t// Whether the proxy has a custom CA bundle configured.\n\tHasCaBundle bool `json:\"has_ca_bundle\"`\n\t// Whether the proxy has a password.\n\tHasPassword bool `json:\"has_password\"`\n\t// Username for proxy authentication.\n\tUsername string `json:\"username\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tHost        respjson.Field\n\t\tPort        respjson.Field\n\t\tHasCaBundle respjson.Field\n\t\tHasPassword respjson.Field\n\t\tUsername    respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for a custom proxy (e.g., private proxy server).\n\n```go\nfunc (r ProxyNewResponseConfigCustom) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyNewResponseConfigCustom) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyNewResponseConfigIsp struct {\n\t// ISO 3166 country code. Supported countries are US, GB, FR, DE, SG, and KR.\n\t// Defaults to US if not provided, or to the country of ip_address when that is\n\t// set.\n\tCountry string `json:\"country\"`\n\t// Reserved exit IP to pin the proxy to. Available only to organizations with a\n\t// reserved ISP allocation; the IP must be active in it (see GET /proxy_ips) and,\n\t// when country is also set, in that country. Omit to let Kernel choose an IP. A\n\t// proxy read includes it only when the proxy's primary exit IP is one of the\n\t// organization's reserved IPs; every ISP proxy's exit IP is on the top-level\n\t// ip_address. An IP outside the allocation is rejected with code ip_not_reserved;\n\t// one that cannot currently be assigned, with 409 ip_unavailable.\n\tIPAddress string `json:\"ip_address\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCountry     respjson.Field\n\t\tIPAddress   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for an ISP proxy.\n\n```go\nfunc (r ProxyNewResponseConfigIsp) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyNewResponseConfigIsp) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyNewResponseConfigMobile struct {\n\t// Provider city alias. Mobile carrier routing can make observed geo vary.\n\tCity string `json:\"city\"`\n\t// ISO 3166 country code. If omitted, the proxy uses the global pool without\n\t// country targeting.\n\tCountry string `json:\"country\"`\n\t// US-only state code. Mobile carrier routing can make observed geo vary.\n\tState string `json:\"state\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCity        respjson.Field\n\t\tCountry     respjson.Field\n\t\tState       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for mobile proxies.\n\n```go\nfunc (r ProxyNewResponseConfigMobile) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyNewResponseConfigMobile) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyNewResponseConfigResidential struct {\n\t// Autonomous system number. See https://bgp.potaroo.net/cidr/autnums.html\n\tAsn string `json:\"asn\"`\n\t// City name (no spaces, e.g. `sanfrancisco`). If provided, `country` must also be\n\t// provided.\n\tCity string `json:\"city\"`\n\t// ISO 3166 country code. If omitted, the proxy uses the global pool without\n\t// country targeting.\n\tCountry string `json:\"country\"`\n\t// Operating system of the residential device.\n\t//\n\t// Any of \"windows\", \"macos\", \"android\".\n\t//\n\t// Deprecated: deprecated\n\tOs string `json:\"os\"`\n\t// Two-letter state code.\n\tState string `json:\"state\"`\n\t// US ZIP code.\n\tZip string `json:\"zip\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAsn         respjson.Field\n\t\tCity        respjson.Field\n\t\tCountry     respjson.Field\n\t\tOs          respjson.Field\n\t\tState       respjson.Field\n\t\tZip         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for residential proxies.\n\n```go\nfunc (r ProxyNewResponseConfigResidential) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyNewResponseConfigResidential) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyNewResponseConfigUnion struct {\n\tCountry string `json:\"country\"`\n\t// This field is from variant [ProxyNewResponseConfigIsp].\n\tIPAddress string `json:\"ip_address\"`\n\t// This field is from variant [ProxyNewResponseConfigResidential].\n\tAsn  string `json:\"asn\"`\n\tCity string `json:\"city\"`\n\t// This field is from variant [ProxyNewResponseConfigResidential].\n\tOs    string `json:\"os\"`\n\tState string `json:\"state\"`\n\t// This field is from variant [ProxyNewResponseConfigResidential].\n\tZip string `json:\"zip\"`\n\t// This field is from variant [ProxyNewResponseConfigCustom].\n\tHost string `json:\"host\"`\n\t// This field is from variant [ProxyNewResponseConfigCustom].\n\tPort int64 `json:\"port\"`\n\t// This field is from variant [ProxyNewResponseConfigCustom].\n\tHasCaBundle bool `json:\"has_ca_bundle\"`\n\t// This field is from variant [ProxyNewResponseConfigCustom].\n\tHasPassword bool `json:\"has_password\"`\n\t// This field is from variant [ProxyNewResponseConfigCustom].\n\tUsername string `json:\"username\"`\n\tJSON     struct {\n\t\tCountry     respjson.Field\n\t\tIPAddress   respjson.Field\n\t\tAsn         respjson.Field\n\t\tCity        respjson.Field\n\t\tOs          respjson.Field\n\t\tState       respjson.Field\n\t\tZip         respjson.Field\n\t\tHost        respjson.Field\n\t\tPort        respjson.Field\n\t\tHasCaBundle respjson.Field\n\t\tHasPassword respjson.Field\n\t\tUsername    respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nProxyNewResponseConfigUnion contains all possible properties and values from [ProxyNewResponseConfigIsp](#ProxyNewResponseConfigIsp), [ProxyNewResponseConfigResidential](#ProxyNewResponseConfigResidential), [ProxyNewResponseConfigMobile](#ProxyNewResponseConfigMobile), [ProxyNewResponseConfigCustom](#ProxyNewResponseConfigCustom).\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u ProxyNewResponseConfigUnion) AsCustom() (v ProxyNewResponseConfigCustom)\n```\n\n```go\nfunc (u ProxyNewResponseConfigUnion) AsIsp() (v ProxyNewResponseConfigIsp)\n```\n\n```go\nfunc (u ProxyNewResponseConfigUnion) AsMobile() (v ProxyNewResponseConfigMobile)\n```\n\n```go\nfunc (u ProxyNewResponseConfigUnion) AsResidential() (v ProxyNewResponseConfigResidential)\n```\n\n```go\nfunc (u ProxyNewResponseConfigUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyNewResponseConfigUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyNewResponseProtocol string\n```\nProtocol to use for the proxy connection.\n\n```go\nconst (\n\tProxyNewResponseProtocolHTTP  ProxyNewResponseProtocol = \"http\"\n\tProxyNewResponseProtocolHTTPS ProxyNewResponseProtocol = \"https\"\n)\n```\n\n```go\ntype ProxyNewResponseStatus string\n```\nCurrent health status of the proxy.\n\n```go\nconst (\n\tProxyNewResponseStatusAvailable   ProxyNewResponseStatus = \"available\"\n\tProxyNewResponseStatusUnavailable ProxyNewResponseStatus = \"unavailable\"\n)\n```\n\n```go\ntype ProxyNewResponseType string\n```\n\n```go\nconst (\n\tProxyNewResponseTypeIsp         ProxyNewResponseType = \"isp\"\n\tProxyNewResponseTypeResidential ProxyNewResponseType = \"residential\"\n\tProxyNewResponseTypeMobile      ProxyNewResponseType = \"mobile\"\n\tProxyNewResponseTypeCustom      ProxyNewResponseType = \"custom\"\n)\n```\n\n```go\ntype ProxyService struct {\n\tOptions []option.RequestOption\n}\n```\nCreate and manage proxy configurations for routing browser traffic.\n\nProxyService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewProxyService](#NewProxyService) method instead.\n\n```go\nfunc NewProxyService(opts ...option.RequestOption) (r ProxyService)\n```\nNewProxyService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *ProxyService) Check(ctx context.Context, idOrName string, body ProxyCheckParams, opts ...option.RequestOption) (res *ProxyCheckResponse, err error)\n```\nRun a health check on the proxy to verify it's working. Optionally specify a URL to test reachability against a specific target. For ISP proxies, this reliably tests whether the target site is reachable from the proxy's stable exit IP. For residential and mobile proxies, the exit node varies between requests, so this validates proxy configuration and connectivity rather than guaranteeing site-specific reachability.\n\n```go\nfunc (r *ProxyService) Delete(ctx context.Context, idOrName string, opts ...option.RequestOption) (err error)\n```\nSoft delete a proxy. Session records referencing it are not modified. If egress binding polling is enabled, existing tunnels for active sessions using the proxy are terminated within one polling interval; subsequent connections through the deleted proxy are rejected.\n\n```go\nfunc (r *ProxyService) Get(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *ProxyGetResponse, err error)\n```\nRetrieve a proxy in the resolved project by ID or exact name using the database collation. IDs take precedence when a value matches both an ID and a name. Proxy names are not unique; an ambiguous name returns a 400 response with code ambiguous\\_proxy\\_name.\n\n```go\nfunc (r *ProxyService) List(ctx context.Context, query ProxyListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[ProxyListResponse], err error)\n```\nList proxies in the resolved project.\n\n```go\nfunc (r *ProxyService) ListAutoPaging(ctx context.Context, query ProxyListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[ProxyListResponse]\n```\nList proxies in the resolved project.\n\n```go\nfunc (r *ProxyService) New(ctx context.Context, body ProxyNewParams, opts ...option.RequestOption) (res *ProxyNewResponse, err error)\n```\nCreate a new proxy configuration in the resolved project.\n\n```go\nfunc (r *ProxyService) Update(ctx context.Context, idOrName string, body ProxyUpdateParams, opts ...option.RequestOption) (res *ProxyUpdateResponse, err error)\n```\nUpdate a proxy's name, or move an ISP proxy to another reserved exit IP. Proxy names are not unique and duplicate names are allowed. Moving requires a reserved ISP allocation and is accepted only for proxies of type isp: the new endpoint is probed first and nothing changes if the probe fails. An IP outside the allocation is a 400 with code ip\\_not\\_reserved. A 409 means the IP cannot currently be assigned or the proxy was changed concurrently; read it back and retry.\n\n```go\ntype ProxyUnion struct {\n\t// Any of \"direct\", \"managed\".\n\tMode string `json:\"mode\"`\n\t// This field is from variant [ProxyManaged].\n\tCreate ProxyManagedCreate `json:\"create\"`\n\tJSON   struct {\n\t\tMode   respjson.Field\n\t\tCreate respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nProxyUnion contains all possible properties and values from [ProxyDirect](#ProxyDirect), [ProxyManaged](#ProxyManaged).\n\nUse the [ProxyUnion.AsAny](#ProxyUnion.AsAny) method to switch on the variant.\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u ProxyUnion) AsAny() anyProxy\n```\nUse the following switch statement to find the correct variant\n\n\tswitch variant := ProxyUnion.AsAny().(type) {\n\tcase kernel.ProxyDirect:\n\tcase kernel.ProxyManaged:\n\tdefault:\n\t  fmt.Errorf(\"no variant present\")\n\t}\n\n```go\nfunc (u ProxyUnion) AsDirect() (v ProxyDirect)\n```\n\n```go\nfunc (u ProxyUnion) AsManaged() (v ProxyManaged)\n```\n\n```go\nfunc (u ProxyUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyUpdateParams struct {\n\t// New proxy name. Proxy names are trimmed and length-checked only; duplicates are\n\t// allowed because proxies are updated by ID, not by name.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// Changes to an ISP proxy's exit IP. Accepted only for proxies of type `isp`.\n\tConfig ProxyUpdateParamsConfig `json:\"config,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProxyUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProxyUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyUpdateParamsConfig struct {\n\t// Reserved exit IP to move the proxy to. The IP must be active in the\n\t// organization's allocation and in the proxy's country. The proxy keeps its ID.\n\t// The new endpoint is probed before anything changes; a failed probe leaves the\n\t// proxy as it was. Live browsers open new connections on the new IP within a few\n\t// seconds; established connections drain on the old one.\n\tIPAddress string `json:\"ip_address\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nChanges to an ISP proxy's exit IP. Accepted only for proxies of type \\`isp\\`.\n\nThe property IPAddress is required.\n\n```go\nfunc (r ProxyUpdateParamsConfig) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProxyUpdateParamsConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyUpdateResponse struct {\n\t// Any of \"isp\", \"residential\", \"mobile\", \"custom\".\n\tType ProxyUpdateResponseType `json:\"type\" api:\"required\"`\n\tID   string                  `json:\"id\"`\n\t// Hostnames that should bypass the parent proxy and connect directly.\n\tBypassHosts []string `json:\"bypass_hosts\"`\n\t// Configuration for an ISP proxy.\n\tConfig ProxyUpdateResponseConfigUnion `json:\"config\"`\n\t// IP address that the proxy uses when making requests.\n\tIPAddress string `json:\"ip_address\"`\n\t// Timestamp of the last health check performed on this proxy.\n\tLastChecked time.Time `json:\"last_checked\" format:\"date-time\"`\n\t// Readable name of the proxy.\n\tName string `json:\"name\"`\n\t// Protocol to use for the proxy connection.\n\t//\n\t// Any of \"http\", \"https\".\n\tProtocol ProxyUpdateResponseProtocol `json:\"protocol\"`\n\t// Current health status of the proxy.\n\t//\n\t// Any of \"available\", \"unavailable\".\n\tStatus ProxyUpdateResponseStatus `json:\"status\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tType        respjson.Field\n\t\tID          respjson.Field\n\t\tBypassHosts respjson.Field\n\t\tConfig      respjson.Field\n\t\tIPAddress   respjson.Field\n\t\tLastChecked respjson.Field\n\t\tName        respjson.Field\n\t\tProtocol    respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for routing traffic through a proxy.\n\n```go\nfunc (r ProxyUpdateResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyUpdateResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyUpdateResponseConfigCustom struct {\n\t// Proxy host address or IP.\n\tHost string `json:\"host\" api:\"required\"`\n\t// Proxy port.\n\tPort int64 `json:\"port\" api:\"required\"`\n\t// Whether the proxy has a custom CA bundle configured.\n\tHasCaBundle bool `json:\"has_ca_bundle\"`\n\t// Whether the proxy has a password.\n\tHasPassword bool `json:\"has_password\"`\n\t// Username for proxy authentication.\n\tUsername string `json:\"username\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tHost        respjson.Field\n\t\tPort        respjson.Field\n\t\tHasCaBundle respjson.Field\n\t\tHasPassword respjson.Field\n\t\tUsername    respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for a custom proxy (e.g., private proxy server).\n\n```go\nfunc (r ProxyUpdateResponseConfigCustom) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyUpdateResponseConfigCustom) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyUpdateResponseConfigIsp struct {\n\t// ISO 3166 country code. Supported countries are US, GB, FR, DE, SG, and KR.\n\t// Defaults to US if not provided, or to the country of ip_address when that is\n\t// set.\n\tCountry string `json:\"country\"`\n\t// Reserved exit IP to pin the proxy to. Available only to organizations with a\n\t// reserved ISP allocation; the IP must be active in it (see GET /proxy_ips) and,\n\t// when country is also set, in that country. Omit to let Kernel choose an IP. A\n\t// proxy read includes it only when the proxy's primary exit IP is one of the\n\t// organization's reserved IPs; every ISP proxy's exit IP is on the top-level\n\t// ip_address. An IP outside the allocation is rejected with code ip_not_reserved;\n\t// one that cannot currently be assigned, with 409 ip_unavailable.\n\tIPAddress string `json:\"ip_address\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCountry     respjson.Field\n\t\tIPAddress   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for an ISP proxy.\n\n```go\nfunc (r ProxyUpdateResponseConfigIsp) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyUpdateResponseConfigIsp) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyUpdateResponseConfigMobile struct {\n\t// Provider city alias. Mobile carrier routing can make observed geo vary.\n\tCity string `json:\"city\"`\n\t// ISO 3166 country code. If omitted, the proxy uses the global pool without\n\t// country targeting.\n\tCountry string `json:\"country\"`\n\t// US-only state code. Mobile carrier routing can make observed geo vary.\n\tState string `json:\"state\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCity        respjson.Field\n\t\tCountry     respjson.Field\n\t\tState       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for mobile proxies.\n\n```go\nfunc (r ProxyUpdateResponseConfigMobile) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyUpdateResponseConfigMobile) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyUpdateResponseConfigResidential struct {\n\t// Autonomous system number. See https://bgp.potaroo.net/cidr/autnums.html\n\tAsn string `json:\"asn\"`\n\t// City name (no spaces, e.g. `sanfrancisco`). If provided, `country` must also be\n\t// provided.\n\tCity string `json:\"city\"`\n\t// ISO 3166 country code. If omitted, the proxy uses the global pool without\n\t// country targeting.\n\tCountry string `json:\"country\"`\n\t// Operating system of the residential device.\n\t//\n\t// Any of \"windows\", \"macos\", \"android\".\n\t//\n\t// Deprecated: deprecated\n\tOs string `json:\"os\"`\n\t// Two-letter state code.\n\tState string `json:\"state\"`\n\t// US ZIP code.\n\tZip string `json:\"zip\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAsn         respjson.Field\n\t\tCity        respjson.Field\n\t\tCountry     respjson.Field\n\t\tOs          respjson.Field\n\t\tState       respjson.Field\n\t\tZip         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConfiguration for residential proxies.\n\n```go\nfunc (r ProxyUpdateResponseConfigResidential) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyUpdateResponseConfigResidential) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyUpdateResponseConfigUnion struct {\n\tCountry string `json:\"country\"`\n\t// This field is from variant [ProxyUpdateResponseConfigIsp].\n\tIPAddress string `json:\"ip_address\"`\n\t// This field is from variant [ProxyUpdateResponseConfigResidential].\n\tAsn  string `json:\"asn\"`\n\tCity string `json:\"city\"`\n\t// This field is from variant [ProxyUpdateResponseConfigResidential].\n\tOs    string `json:\"os\"`\n\tState string `json:\"state\"`\n\t// This field is from variant [ProxyUpdateResponseConfigResidential].\n\tZip string `json:\"zip\"`\n\t// This field is from variant [ProxyUpdateResponseConfigCustom].\n\tHost string `json:\"host\"`\n\t// This field is from variant [ProxyUpdateResponseConfigCustom].\n\tPort int64 `json:\"port\"`\n\t// This field is from variant [ProxyUpdateResponseConfigCustom].\n\tHasCaBundle bool `json:\"has_ca_bundle\"`\n\t// This field is from variant [ProxyUpdateResponseConfigCustom].\n\tHasPassword bool `json:\"has_password\"`\n\t// This field is from variant [ProxyUpdateResponseConfigCustom].\n\tUsername string `json:\"username\"`\n\tJSON     struct {\n\t\tCountry     respjson.Field\n\t\tIPAddress   respjson.Field\n\t\tAsn         respjson.Field\n\t\tCity        respjson.Field\n\t\tOs          respjson.Field\n\t\tState       respjson.Field\n\t\tZip         respjson.Field\n\t\tHost        respjson.Field\n\t\tPort        respjson.Field\n\t\tHasCaBundle respjson.Field\n\t\tHasPassword respjson.Field\n\t\tUsername    respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nProxyUpdateResponseConfigUnion contains all possible properties and values from [ProxyUpdateResponseConfigIsp](#ProxyUpdateResponseConfigIsp), [ProxyUpdateResponseConfigResidential](#ProxyUpdateResponseConfigResidential), [ProxyUpdateResponseConfigMobile](#ProxyUpdateResponseConfigMobile), [ProxyUpdateResponseConfigCustom](#ProxyUpdateResponseConfigCustom).\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u ProxyUpdateResponseConfigUnion) AsCustom() (v ProxyUpdateResponseConfigCustom)\n```\n\n```go\nfunc (u ProxyUpdateResponseConfigUnion) AsIsp() (v ProxyUpdateResponseConfigIsp)\n```\n\n```go\nfunc (u ProxyUpdateResponseConfigUnion) AsMobile() (v ProxyUpdateResponseConfigMobile)\n```\n\n```go\nfunc (u ProxyUpdateResponseConfigUnion) AsResidential() (v ProxyUpdateResponseConfigResidential)\n```\n\n```go\nfunc (u ProxyUpdateResponseConfigUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProxyUpdateResponseConfigUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProxyUpdateResponseProtocol string\n```\nProtocol to use for the proxy connection.\n\n```go\nconst (\n\tProxyUpdateResponseProtocolHTTP  ProxyUpdateResponseProtocol = \"http\"\n\tProxyUpdateResponseProtocolHTTPS ProxyUpdateResponseProtocol = \"https\"\n)\n```\n\n```go\ntype ProxyUpdateResponseStatus string\n```\nCurrent health status of the proxy.\n\n```go\nconst (\n\tProxyUpdateResponseStatusAvailable   ProxyUpdateResponseStatus = \"available\"\n\tProxyUpdateResponseStatusUnavailable ProxyUpdateResponseStatus = \"unavailable\"\n)\n```\n\n```go\ntype ProxyUpdateResponseType string\n```\n\n```go\nconst (\n\tProxyUpdateResponseTypeIsp         ProxyUpdateResponseType = \"isp\"\n\tProxyUpdateResponseTypeResidential ProxyUpdateResponseType = \"residential\"\n\tProxyUpdateResponseTypeMobile      ProxyUpdateResponseType = \"mobile\"\n\tProxyUpdateResponseTypeCustom      ProxyUpdateResponseType = \"custom\"\n)\n```\n\n```go\ntype Recommendation struct {\n\t// Browser settings that can be passed directly to `POST /browsers`.\n\tBrowser  Browser  `json:\"browser\" api:\"required\"`\n\tEvidence Evidence `json:\"evidence\" api:\"required\"`\n\t// Specificity of knowledge matched for this recommendation. Exact matches use\n\t// knowledge for the requested target; host and domain matches use broader fallback\n\t// knowledge.\n\t//\n\t// Any of \"exact\", \"host\", \"domain\".\n\tMatchScope RecommendationMatchScope `json:\"match_scope\" api:\"required\"`\n\t// Target value that supplied the recommendation.\n\tMatchedTarget string `json:\"matched_target\" api:\"required\"`\n\t// Proxy recipe for the recommended browser.\n\tProxy ProxyUnion              `json:\"proxy\" api:\"required\"`\n\tType  constant.Recommendation `json:\"type\" default:\"recommendation\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBrowser       respjson.Field\n\t\tEvidence      respjson.Field\n\t\tMatchScope    respjson.Field\n\t\tMatchedTarget respjson.Field\n\t\tProxy         respjson.Field\n\t\tType          respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r Recommendation) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Recommendation) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RecommendationMatchScope string\n```\nSpecificity of knowledge matched for this recommendation. Exact matches use knowledge for the requested target; host and domain matches use broader fallback knowledge.\n\n```go\nconst (\n\tRecommendationMatchScopeExact  RecommendationMatchScope = \"exact\"\n\tRecommendationMatchScopeHost   RecommendationMatchScope = \"host\"\n\tRecommendationMatchScopeDomain RecommendationMatchScope = \"domain\"\n)\n```\n\n```go\ntype RecommendationResultUnion struct {\n\t// This field is from variant [Recommendation].\n\tBrowser Browser `json:\"browser\"`\n\t// This field is from variant [Recommendation].\n\tEvidence Evidence `json:\"evidence\"`\n\t// This field is from variant [Recommendation].\n\tMatchScope RecommendationMatchScope `json:\"match_scope\"`\n\t// This field is from variant [Recommendation].\n\tMatchedTarget string `json:\"matched_target\"`\n\t// This field is from variant [Recommendation].\n\tProxy ProxyUnion `json:\"proxy\"`\n\t// Any of \"recommendation\", \"no_recommendation\".\n\tType string `json:\"type\"`\n\t// This field is from variant [NoRecommendation].\n\tCode NoRecommendationCode `json:\"code\"`\n\t// This field is from variant [NoRecommendation].\n\tMessage string `json:\"message\"`\n\tJSON    struct {\n\t\tBrowser       respjson.Field\n\t\tEvidence      respjson.Field\n\t\tMatchScope    respjson.Field\n\t\tMatchedTarget respjson.Field\n\t\tProxy         respjson.Field\n\t\tType          respjson.Field\n\t\tCode          respjson.Field\n\t\tMessage       respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nRecommendationResultUnion contains all possible properties and values from [Recommendation](#Recommendation), [NoRecommendation](#NoRecommendation).\n\nUse the [RecommendationResultUnion.AsAny](#RecommendationResultUnion.AsAny) method to switch on the variant.\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u RecommendationResultUnion) AsAny() anyRecommendationResult\n```\nUse the following switch statement to find the correct variant\n\n\tswitch variant := RecommendationResultUnion.AsAny().(type) {\n\tcase kernel.Recommendation:\n\tcase kernel.NoRecommendation:\n\tdefault:\n\t  fmt.Errorf(\"no variant present\")\n\t}\n\n```go\nfunc (u RecommendationResultUnion) AsNoRecommendation() (v NoRecommendation)\n```\n\n```go\nfunc (u RecommendationResultUnion) AsRecommendation() (v Recommendation)\n```\n\n```go\nfunc (u RecommendationResultUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *RecommendationResultUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RecommendationSummary struct {\n\t// ID of the most recently requested analysis for this exact target.\n\tAnalysisID string `json:\"analysis_id\" api:\"required\"`\n\t// Lifecycle status of the most recently requested analysis for this exact target.\n\t//\n\t// Any of \"running\", \"completed\", \"failed\", \"canceled\", \"expired\".\n\tAnalysisStatus RecommendationSummaryAnalysisStatus `json:\"analysis_status\" api:\"required\"`\n\t// Most recent time the selected project requested an analysis for this exact\n\t// target.\n\tLastRequestedAt time.Time `json:\"last_requested_at\" api:\"required\" format:\"date-time\"`\n\t// Recommendation produced by the latest analysis. Null when that analysis did not\n\t// produce one.\n\tRecommendation Recommendation `json:\"recommendation\" api:\"required\"`\n\t// Display label for the recommended browser configuration.\n\tRecommendedConfigLabel string `json:\"recommended_config_label\" api:\"required\"`\n\t// Success rate for the recommended configuration. Null when the latest analysis\n\t// did not produce one.\n\tSuccessRate float64 `json:\"success_rate\" api:\"required\"`\n\t// Normalized exact target previously analyzed by the selected project, including\n\t// scheme, host, port, and path.\n\tTarget string `json:\"target\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAnalysisID             respjson.Field\n\t\tAnalysisStatus         respjson.Field\n\t\tLastRequestedAt        respjson.Field\n\t\tRecommendation         respjson.Field\n\t\tRecommendedConfigLabel respjson.Field\n\t\tSuccessRate            respjson.Field\n\t\tTarget                 respjson.Field\n\t\tExtraFields            map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r RecommendationSummary) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *RecommendationSummary) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RecommendationSummaryAnalysisStatus string\n```\nLifecycle status of the most recently requested analysis for this exact target.\n\n```go\nconst (\n\tRecommendationSummaryAnalysisStatusRunning   RecommendationSummaryAnalysisStatus = \"running\"\n\tRecommendationSummaryAnalysisStatusCompleted RecommendationSummaryAnalysisStatus = \"completed\"\n\tRecommendationSummaryAnalysisStatusFailed    RecommendationSummaryAnalysisStatus = \"failed\"\n\tRecommendationSummaryAnalysisStatusCanceled  RecommendationSummaryAnalysisStatus = \"canceled\"\n\tRecommendationSummaryAnalysisStatusExpired   RecommendationSummaryAnalysisStatus = \"expired\"\n)\n```\n\n```go\ntype RegisterPasskeyVaultItemOperationRequestParam struct {\n\t// Browser session ID, not a reusable browser name.\n\tBrowserID string `json:\"browser_id\" api:\"required\"`\n\t// Any of \"register_passkey\".\n\tType RegisterPasskeyVaultItemOperationRequestType `json:\"type,omitzero\" api:\"required\"`\n\t// Empty passkey field to store the new passkey in. Required when more than one\n\t// passkey field is empty.\n\tField param.Opt[string] `json:\"field,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nLet a browser attached to the item's vault create a passkey on a website and store it in an empty passkey field. Only invoke when the item advertises \\`register\\_passkey\\`; declare the field first, for example by adding an optional passkey field with a credential update. Returns immediately; there is no time limit. The next passkey a page in that browser creates (\\`navigator.credentials.create\\`) is generated by Kernel, stored in the field, and only then returned to the page, so the website never receives a passkey Kernel failed to store. Each browser has one pending registration; a later \\`register\\_passkey\\` replaces it. Drive the website's \"add a passkey\" flow with your own browser tools, then confirm by reading the item (the field reports \\`has\\_value\\`) or its \\`credential\\_passkey\\_registered\\` event, and by signing in with \\`arm\\_passkey\\`. Only ES256 passkeys are created.\n\nThe properties BrowserID, Type are required.\n\n```go\nfunc (r RegisterPasskeyVaultItemOperationRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *RegisterPasskeyVaultItemOperationRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RegisterPasskeyVaultItemOperationRequestType string\n```\n\n```go\nconst (\n\tRegisterPasskeyVaultItemOperationRequestTypeRegisterPasskey RegisterPasskeyVaultItemOperationRequestType = \"register_passkey\"\n)\n```\n\n```go\ntype RemovePaymentMethodVaultItemOperationRequestParam struct {\n\t// ID from the wallet's payment_methods expansion.\n\tPaymentMethodID string `json:\"payment_method_id\" api:\"required\"`\n\t// Any of \"remove_payment_method\".\n\tType RemovePaymentMethodVaultItemOperationRequestType `json:\"type,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nRemove one payment method from a Kernel wallet, only when the wallet advertises remove\\_payment\\_method. Removal deletes the stored card and blocks new purchases, fills and confirmations funded by it without affecting the wallet's other payment methods; the wallet stays connected even with no payment methods left. A purchase funded by the method with an unresolved outcome blocks removal with 409 purchase\\_unresolved. If the provider outcome is uncertain the method stays in removal\\_pending and keeps refusing payments; retry the removal later. Removal is not proof that a payment did not occur. Scoped API keys require vaults:write in addition to vaults:use on this vault; otherwise the operation returns 403.\n\nThe properties PaymentMethodID, Type are required.\n\n```go\nfunc (r RemovePaymentMethodVaultItemOperationRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *RemovePaymentMethodVaultItemOperationRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RemovePaymentMethodVaultItemOperationRequestType string\n```\n\n```go\nconst (\n\tRemovePaymentMethodVaultItemOperationRequestTypeRemovePaymentMethod RemovePaymentMethodVaultItemOperationRequestType = \"remove_payment_method\"\n)\n```\n\n```go\ntype RemovePaymentMethodVaultItemOperationResult struct {\n\tPaymentMethodID string `json:\"payment_method_id\" api:\"required\"`\n\t// Any of \"removed\".\n\tStatus RemovePaymentMethodVaultItemOperationResultStatus `json:\"status\" api:\"required\"`\n\t// Any of \"remove_payment_method\".\n\tType RemovePaymentMethodVaultItemOperationResultType `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tPaymentMethodID respjson.Field\n\t\tStatus          respjson.Field\n\t\tType            respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r RemovePaymentMethodVaultItemOperationResult) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *RemovePaymentMethodVaultItemOperationResult) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RemovePaymentMethodVaultItemOperationResultStatus string\n```\n\n```go\nconst (\n\tRemovePaymentMethodVaultItemOperationResultStatusRemoved RemovePaymentMethodVaultItemOperationResultStatus = \"removed\"\n)\n```\n\n```go\ntype RemovePaymentMethodVaultItemOperationResultType string\n```\n\n```go\nconst (\n\tRemovePaymentMethodVaultItemOperationResultTypeRemovePaymentMethod RemovePaymentMethodVaultItemOperationResultType = \"remove_payment_method\"\n)\n```\n\n```go\ntype Report struct {\n\t// Unique identifier for the report\n\tID string `json:\"id\" api:\"required\"`\n\t// When the report was submitted\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Report data, matching the report type's schema\n\tData map[string]any `json:\"data\" api:\"required\"`\n\t// When the reported event happened\n\tOccurredAt time.Time `json:\"occurred_at\" api:\"required\" format:\"date-time\"`\n\t// Version of the report type's schema that data was validated against\n\tSchemaVersion int64 `json:\"schema_version\" api:\"required\"`\n\t// ID of the task the report belongs to\n\tTaskID string `json:\"task_id\" api:\"required\"`\n\t// Report type name\n\tType string `json:\"type\" api:\"required\"`\n\t// ID of the browser the report was observed in, if any\n\tSessionID string `json:\"session_id\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID            respjson.Field\n\t\tCreatedAt     respjson.Field\n\t\tData          respjson.Field\n\t\tOccurredAt    respjson.Field\n\t\tSchemaVersion respjson.Field\n\t\tTaskID        respjson.Field\n\t\tType          respjson.Field\n\t\tSessionID     respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA typed, schema-validated report an agent submitted against a task. Reports are immutable.\n\n```go\nfunc (r Report) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Report) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ReportListParams struct {\n\t// Task whose reports to list.\n\tTaskID string `query:\"task_id\" api:\"required\" json:\"-\"`\n\t// Limit the number of reports to return.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Offset the number of reports to return.\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Only return reports of this type.\n\tType param.Opt[string] `query:\"type,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ReportListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [ReportListParams](#ReportListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype ReportNewParams struct {\n\t// Report data. It must match the schema of the report type's version and encode to\n\t// at most 16 KB of JSON.\n\tData map[string]any `json:\"data,omitzero\" api:\"required\"`\n\t// ID of the task to report against.\n\tTaskID string `json:\"task_id\" api:\"required\"`\n\t// Report type name. List report types to see the available types and their\n\t// schemas.\n\tType string `json:\"type\" api:\"required\"`\n\t// When the reported event happened. Defaults to the time the report is submitted.\n\t// Must be no more than 5 minutes in the future or 30 days in the past.\n\tOccurredAt param.Opt[time.Time] `json:\"occurred_at,omitzero\" format:\"date-time\"`\n\t// Version of the report type's schema to validate data against. Defaults to the\n\t// type's latest version, which the response returns.\n\tSchemaVersion param.Opt[int64] `json:\"schema_version,omitzero\"`\n\t// ID of the browser the report was observed in. It must belong to the task's\n\t// project; deleted browsers are accepted. The browser is linked to the task if it\n\t// is not already.\n\tSessionID param.Opt[string] `json:\"session_id,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ReportNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ReportNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ReportService struct {\n\tOptions []option.RequestOption\n}\n```\nDiscover report types and submit typed reports against tasks.\n\nReportService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewReportService](#NewReportService) method instead.\n\n```go\nfunc NewReportService(opts ...option.RequestOption) (r ReportService)\n```\nNewReportService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *ReportService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Report, err error)\n```\nRetrieve a report.\n\n```go\nfunc (r *ReportService) List(ctx context.Context, query ReportListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[Report], err error)\n```\nList a task's reports in the order they were submitted, oldest first.\n\n```go\nfunc (r *ReportService) ListAutoPaging(ctx context.Context, query ReportListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[Report]\n```\nList a task's reports in the order they were submitted, oldest first.\n\n```go\nfunc (r *ReportService) New(ctx context.Context, body ReportNewParams, opts ...option.RequestOption) (res *Report, err error)\n```\nSubmit a typed report against a task. The data is validated against the report type's schema; a validation failure returns 400 with one detail per invalid field. A task can have at most 500 reports.\n\n```go\ntype ReportType struct {\n\t// What the report type records and when to submit it\n\tDescription string `json:\"description\" api:\"required\"`\n\t// Highest version that is not retired. A report submitted without a schema_version\n\t// uses this version. It is 0 when every version is retired.\n\tLatestVersion int64 `json:\"latest_version\" api:\"required\"`\n\t// JSON Schema (draft 2020-12) of the latest version, which a report's data must\n\t// match. Its field descriptions and examples describe what to send. Null when\n\t// every version is retired.\n\tSchema map[string]any `json:\"schema\" api:\"required\"`\n\t// Report type name, such as task.result\n\tType string `json:\"type\" api:\"required\"`\n\t// Every version of the type, oldest first, including retired versions.\n\tVersions []ReportTypeVersionSummary `json:\"versions\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDescription   respjson.Field\n\t\tLatestVersion respjson.Field\n\t\tSchema        respjson.Field\n\t\tType          respjson.Field\n\t\tVersions      respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA kind of report agents can submit against a task, with its versions and the JSON Schema of its latest version. A shipped version never changes; changes ship as new versions.\n\n```go\nfunc (r ReportType) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ReportType) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ReportTypeListParams struct {\n\t// Task the agent is finding a report type for.\n\tTaskID string `query:\"task_id\" api:\"required\" json:\"-\"`\n\t// Limit the number of report types to return.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Offset the number of report types to return.\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// What the agent wants to report, in its own words. Types are ranked by how\n\t// closely their meaning matches, most relevant first; they need not share any\n\t// words. Only this text affects the ranking, not the task. Without it, or if\n\t// ranking is unavailable, types are listed by name.\n\tQuery param.Opt[string] `query:\"query,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ReportTypeListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [ReportTypeListParams](#ReportTypeListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype ReportTypeService struct {\n\tOptions []option.RequestOption\n\t// Discover report types and submit typed reports against tasks.\n\tVersions ReportTypeVersionService\n}\n```\nDiscover report types and submit typed reports against tasks.\n\nReportTypeService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewReportTypeService](#NewReportTypeService) method instead.\n\n```go\nfunc NewReportTypeService(opts ...option.RequestOption) (r ReportTypeService)\n```\nNewReportTypeService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *ReportTypeService) Get(ctx context.Context, type_ string, opts ...option.RequestOption) (res *ReportType, err error)\n```\nRetrieve a report type, its versions, and the JSON Schema of its latest version.\n\n```go\nfunc (r *ReportTypeService) List(ctx context.Context, query ReportTypeListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[ReportTypeSummary], err error)\n```\nList the report types agents can submit for a task. Retrieve a type for the JSON Schema of its data.\n\n```go\nfunc (r *ReportTypeService) ListAutoPaging(ctx context.Context, query ReportTypeListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[ReportTypeSummary]\n```\nList the report types agents can submit for a task. Retrieve a type for the JSON Schema of its data.\n\n```go\ntype ReportTypeSummary struct {\n\t// What the report type records and when to submit it\n\tDescription string `json:\"description\" api:\"required\"`\n\t// Highest version that is not retired. A report submitted without a schema_version\n\t// uses this version. It is 0 when every version is retired.\n\tLatestVersion int64 `json:\"latest_version\" api:\"required\"`\n\t// Report type name, such as task.result\n\tType string `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDescription   respjson.Field\n\t\tLatestVersion respjson.Field\n\t\tType          respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA kind of report agents can submit against a task. Retrieve the type for the JSON Schema of its data.\n\n```go\nfunc (r ReportTypeSummary) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ReportTypeSummary) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ReportTypeVersion struct {\n\t// Whether the version is retired. Retired versions are no longer accepted for new\n\t// reports; existing reports keep them.\n\tRetired bool `json:\"retired\" api:\"required\"`\n\t// JSON Schema (draft 2020-12) that a report's data must match. Its field\n\t// descriptions and examples describe what to send.\n\tSchema map[string]any `json:\"schema\" api:\"required\"`\n\t// Report type name, such as task.result\n\tType string `json:\"type\" api:\"required\"`\n\t// Schema version number, starting at 1.\n\tVersion int64 `json:\"version\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tRetired     respjson.Field\n\t\tSchema      respjson.Field\n\t\tType        respjson.Field\n\t\tVersion     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOne immutable schema version of a report type.\n\n```go\nfunc (r ReportTypeVersion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ReportTypeVersion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ReportTypeVersionGetParams struct {\n\tType string `path:\"type\" api:\"required\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype ReportTypeVersionService struct {\n\tOptions []option.RequestOption\n}\n```\nDiscover report types and submit typed reports against tasks.\n\nReportTypeVersionService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewReportTypeVersionService](#NewReportTypeVersionService) method instead.\n\n```go\nfunc NewReportTypeVersionService(opts ...option.RequestOption) (r ReportTypeVersionService)\n```\nNewReportTypeVersionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *ReportTypeVersionService) Get(ctx context.Context, version int64, query ReportTypeVersionGetParams, opts ...option.RequestOption) (res *ReportTypeVersion, err error)\n```\nRetrieve one schema version of a report type, including retired versions.\n\n```go\ntype ReportTypeVersionSummary struct {\n\t// Whether the version is retired. Retired versions are no longer accepted for new\n\t// reports; existing reports keep them.\n\tRetired bool `json:\"retired\" api:\"required\"`\n\t// Schema version number, starting at 1.\n\tVersion int64 `json:\"version\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tRetired     respjson.Field\n\t\tVersion     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOne schema version of a report type, without its schema.\n\n```go\nfunc (r ReportTypeVersionSummary) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ReportTypeVersionSummary) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RequestContentBoolean bool\n```\nPass true to enable default portable content retrieval (auto source, markdown format, 10,000 char cap).\n\n```go\nconst (\n\tRequestContentBooleanTrue RequestContentBoolean = true\n)\n```\n\n```go\ntype RequestContentSearchContentOptionsBrowserParam struct {\n\t// Existing browser session ID authorized for the caller and selected project.\n\t// Reuses its cookies, proxy, and browser configuration; requests follow that\n\t// browser's existing network access behavior, with no additional destination\n\t// allowlist in this endpoint. Kernel does not delete a caller-supplied browser.\n\t// Render mode uses a temporary tab; website activity may still change shared\n\t// cookies and storage. When omitted and any result needs browser retrieval, Kernel\n\t// creates one temporary browser for the request using the dashboard launch\n\t// defaults (headful, stealth, default proxy), tags it with search_id, and deletes\n\t// it when the request finishes. It is billed and counts toward browser concurrency\n\t// like any other browser. A concurrency rejection returns 429 for source=browser;\n\t// for source=auto, results with retained content are still returned and the rest\n\t// report the rejection.\n\tBrowserID param.Opt[string] `json:\"browser_id,omitzero\"`\n\t// Curl uses the browser HTTP stack without navigation or JavaScript execution.\n\t// Render navigates a temporary page and extracts from its DOM. The selected mode\n\t// is used for the retrieval.\n\t//\n\t// Any of \"curl\", \"render\".\n\tMode string `json:\"mode,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nRequires source=auto or source=browser in deferred retrieval.\n\n```go\nfunc (r RequestContentSearchContentOptionsBrowserParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *RequestContentSearchContentOptionsBrowserParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RequestContentSearchContentOptionsParam struct {\n\t// For source=auto, maximum acceptable age of retained provider content, measured\n\t// from when the search received it from the provider. A value of 0 disables reuse\n\t// of retained content, so every result is fetched through a browser.\n\t// source=provider reuses retained provider content without freshness validation.\n\t// source=browser always fetches through a browser and does not use this age limit.\n\tMaxAgeHours param.Opt[int64] `json:\"max_age_hours,omitzero\"`\n\t// Per-result Unicode character limit after extraction. Retained provider content\n\t// cannot exceed what was stored at search time; such results report truncated when\n\t// the stored text was already truncated.\n\tMaxChars param.Opt[int64] `json:\"max_chars,omitzero\"`\n\t// Per-result deadline including capacity acquisition, retrieval, and extraction.\n\t// Also bounded by the overall request deadline.\n\tTimeoutMs param.Opt[int64] `json:\"timeout_ms,omitzero\"`\n\t// Requires source=auto or source=browser in deferred retrieval.\n\tBrowser RequestContentSearchContentOptionsBrowserParam `json:\"browser,omitzero\"`\n\t// Any of \"markdown\", \"text\".\n\tFormat string `json:\"format,omitzero\"`\n\t// auto uses retained provider content within max_age_hours; for deferred retrieval\n\t// it falls back to a Kernel browser (caller-supplied or temporary) for results\n\t// without it. Inline retrieval never uses a browser. provider reuses retained\n\t// provider content when available, without freshness validation, and never\n\t// provisions a browser. browser fetches each URL through a Kernel browser, either\n\t// caller-supplied or temporary. No option makes a new provider request. Defaults\n\t// to auto for both inline and deferred retrieval. Missing documents produce\n\t// per-result unavailable outcomes, not request failures.\n\t//\n\t// Any of \"auto\", \"provider\", \"browser\".\n\tSource string `json:\"source,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r RequestContentSearchContentOptionsParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *RequestContentSearchContentOptionsParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RequestContentUnionParam struct {\n\t// Check if union is this variant with\n\t// !param.IsOmitted(union.OfRequestContentBoolean)\n\tOfRequestContentBoolean              param.Opt[bool]                          `json:\",omitzero,inline\"`\n\tOfRequestContentSearchContentOptions *RequestContentSearchContentOptionsParam `json:\",omitzero,inline\"`\n\t// contains filtered or unexported fields\n}\n```\nOnly one field can be non-zero.\n\nUse [param.IsOmitted](/github.com/kernel/kernel-go-sdk/packages/param#IsOmitted) to confirm if a field is set.\n\n```go\nfunc (u RequestContentUnionParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (u *RequestContentUnionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RequestParam struct {\n\t// Primary search query. A provider-native multi-query option applies only to that\n\t// provider; other providers in a fallback chain receive this query.\n\tQuery string `json:\"query\" api:\"required\"`\n\t// ISO 3166-1 alpha-2 search locale preference.\n\tCountry param.Opt[string] `json:\"country,omitzero\"`\n\t// Inclusive publication-date upper bound; must not precede start_date. If recency\n\t// is also supplied, recency takes precedence with a warning. Unsupported or\n\t// approximated filtering is reported, or rejected under strict_params.\n\tEndDate param.Opt[time.Time] `json:\"end_date,omitzero\" format:\"date\"`\n\t// Include untouched per-result payloads and the full serving-provider response in\n\t// raw fields. Off by default; native top-level outputs such as answer remain\n\t// available without it.\n\tIncludeRaw param.Opt[bool] `json:\"include_raw,omitzero\"`\n\t// BCP 47 search language preference.\n\tLanguage param.Opt[string] `json:\"language,omitzero\"`\n\t// Requested result count from 1 through 100. The effective count is clamped to the\n\t// serving provider's cap with a warning. Effective native counts are the lower of\n\t// this limit and supplied provider-native count aliases. Strict mode rejects\n\t// unsupported counts.\n\tMaxResults param.Opt[int64] `json:\"max_results,omitzero\"`\n\t// Inclusive publication-date lower bound. If recency is also supplied, recency\n\t// takes precedence with a warning. Provider date semantics, precision, and\n\t// unsupported filters are reported; unknown source dates are not fabricated or\n\t// universally post-filtered.\n\tStartDate param.Opt[time.Time] `json:\"start_date,omitzero\" format:\"date\"`\n\t// When false, unsupported portable parameters are omitted and approximations are\n\t// described in warnings. When true, every supplied portable parameter must be\n\t// honored exactly. Requests that cannot be served with those parameters are\n\t// rejected. This does not guarantee identical rankings or document timestamps\n\t// across indexes. Authentication and project isolation are always enforced.\n\tStrictParams param.Opt[bool] `json:\"strict_params,omitzero\"`\n\t// Overall deadline across search attempts and inline retrieval. No new attempt\n\t// starts after the deadline. Completed search results survive inline retrieval\n\t// timeouts.\n\tTimeoutMs param.Opt[int64] `json:\"timeout_ms,omitzero\"`\n\t// Optional portable content retrieval. Pass true for defaults or an options\n\t// object. Omission never starts Kernel browser work; provider-supplied content is\n\t// still returned when available, including when requested through native options.\n\t// Both inline and deferred retrieval use the same options schema.\n\tContent RequestContentUnionParam `json:\"content,omitzero\"`\n\t// Hostname exclusions, with the same best-effort/strict behavior as\n\t// include_domains. Provider-specific combinations that cannot be represented are\n\t// reported via warnings or rejected in strict mode.\n\tExcludeDomains []string `json:\"exclude_domains,omitzero\"`\n\t// Hostname inclusion preference, matching a hostname and its subdomains. Empty\n\t// means unrestricted. Translated, emulated, or dropped with a warning according to\n\t// provider capability unless strict_params is true. Native boost modes remain\n\t// advisory and are identified in warnings.\n\tIncludeDomains []string `json:\"include_domains,omitzero\"`\n\t// Relative search window. Takes precedence over start_date/end_date with a warning\n\t// if both are set. Provider-native recency behavior is retained, including\n\t// documented hour-to-day widening. Unsupported filters are rejected only in strict\n\t// mode.\n\t//\n\t// Any of \"hour\", \"day\", \"week\", \"month\", \"year\".\n\tRecency RequestRecency `json:\"recency,omitzero\"`\n\t// Optional safety preference. Omit to use provider defaults. Unsupported values\n\t// are dropped with a warning unless strict_params is true. A search filter is not\n\t// an authorization boundary.\n\t//\n\t// Any of \"off\", \"moderate\", \"strict\".\n\tSafeSearch RequestSafeSearch `json:\"safe_search,omitzero\"`\n\t// Omitted strategy defaults to auto.\n\tStrategy StrategyUnionParam `json:\"strategy,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Query is required.\n\n```go\nfunc (r RequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *RequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RequestRecency string\n```\nRelative search window. Takes precedence over start\\_date/end\\_date with a warning if both are set. Provider-native recency behavior is retained, including documented hour-to-day widening. Unsupported filters are rejected only in strict mode.\n\n```go\nconst (\n\tRequestRecencyHour  RequestRecency = \"hour\"\n\tRequestRecencyDay   RequestRecency = \"day\"\n\tRequestRecencyWeek  RequestRecency = \"week\"\n\tRequestRecencyMonth RequestRecency = \"month\"\n\tRequestRecencyYear  RequestRecency = \"year\"\n)\n```\n\n```go\ntype RequestSafeSearch string\n```\nOptional safety preference. Omit to use provider defaults. Unsupported values are dropped with a warning unless strict\\_params is true. A search filter is not an authorization boundary.\n\n```go\nconst (\n\tRequestSafeSearchOff      RequestSafeSearch = \"off\"\n\tRequestSafeSearchModerate RequestSafeSearch = \"moderate\"\n\tRequestSafeSearchStrict   RequestSafeSearch = \"strict\"\n)\n```\n\n```go\ntype ResolveRequestParam struct {\n\t// Public HTTP(S) URL to refresh.\n\tURL string `json:\"url\" api:\"required\" format:\"uri\"`\n\t// Plain-language description of the workload you intend to run against this\n\t// target, in a sentence or two. Requires an https target, because the pass treats\n\t// any non-HTTPS destination as off-site and will not drive an http one. Kernel\n\t// uses it to drive the browser further into the site, where it can observe\n\t// protections that only appear once a session interacts. When this target already\n\t// has a recommended configuration, the run confirms that one instead of\n\t// re-deriving the whole matrix, so supplying an intent narrows what can be\n\t// recommended.\n\tIntent param.Opt[string] `json:\"intent,omitzero\"`\n\t// ISO 3166 country codes Kernel may use when searching for or returning a proxy\n\t// configuration. Kernel may test a subset of allowed countries. When omitted,\n\t// Kernel uses its default country selection.\n\tAllowedProxyCountries []string `json:\"allowed_proxy_countries,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property URL is required.\n\n```go\nfunc (r ResolveRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ResolveRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Response struct {\n\tContents []ResponseContent `json:\"contents\" api:\"required\"`\n\tSearchID string            `json:\"search_id\" api:\"required\"`\n\tUsage    Usage             `json:\"usage\" api:\"required\"`\n\tWarnings []Warning         `json:\"warnings\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tContents    respjson.Field\n\t\tSearchID    respjson.Field\n\t\tUsage       respjson.Field\n\t\tWarnings    respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r Response) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Response) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ResponseContent struct {\n\tResultID string `json:\"result_id\" api:\"required\"`\n\t// Ok means non-empty extracted content, not merely HTTP 200. Blocked includes\n\t// detected challenges or access denials. Detection is best-effort, not a guarantee\n\t// of page completeness. Error details are present for non-ok outcomes; text is\n\t// present only on ok.\n\t//\n\t// Any of \"ok\", \"unavailable\", \"blocked\", \"timeout\", \"unsupported_type\",\n\t// \"extraction_failed\", \"error\".\n\tStatus string `json:\"status\" api:\"required\"`\n\t// Original result URL.\n\tURL string `json:\"url\" api:\"required\" format:\"uri\"`\n\t// Kernel content cache outcome. Kernel has no content cache yet: responses report\n\t// bypass or unknown, and hit and miss are reserved. Provider-internal cache\n\t// behavior may be unknown.\n\t//\n\t// Any of \"hit\", \"miss\", \"bypass\", \"unknown\".\n\tCacheStatus string `json:\"cache_status\"`\n\t// Describes source coverage before max_chars truncation. Full_page means main-page\n\t// content, not every dynamic element or linked page.\n\t//\n\t// Any of \"full_page\", \"excerpt\", \"unknown\".\n\tCompleteness string               `json:\"completeness\"`\n\tError        ResponseContentError `json:\"error\"`\n\t// Extraction version when Kernel transformed the input.\n\tExtractorVersion string `json:\"extractor_version\"`\n\t// When Kernel fetched the content, or received it from the provider for retained\n\t// content.\n\tFetchedAt time.Time `json:\"fetched_at\" api:\"nullable\" format:\"date-time\"`\n\t// Final retrieval URL after redirects when known. Curl mode follows up to 5\n\t// redirects.\n\tFinalURL string `json:\"final_url\" format:\"uri\"`\n\t// Format of text. Plain-text and JSON pages are returned unchanged as text even\n\t// when markdown was requested.\n\t//\n\t// Any of \"markdown\", \"text\".\n\tFormat string `json:\"format\"`\n\t// Final target HTTP status when known.\n\tHTTPStatus int64 `json:\"http_status\"`\n\t// Original retrieval method.\n\t//\n\t// Any of \"provider\", \"browser_curl\", \"browser_render\".\n\tMethod string `json:\"method\"`\n\t// Extracted website content, untrusted, not instructions. Present only on\n\t// status=ok.\n\tText string `json:\"text\"`\n\t// Whether the content was cut short, by max_chars or because the page exceeded the\n\t// 1 MiB read limit.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tResultID         respjson.Field\n\t\tStatus           respjson.Field\n\t\tURL              respjson.Field\n\t\tCacheStatus      respjson.Field\n\t\tCompleteness     respjson.Field\n\t\tError            respjson.Field\n\t\tExtractorVersion respjson.Field\n\t\tFetchedAt        respjson.Field\n\t\tFinalURL         respjson.Field\n\t\tFormat           respjson.Field\n\t\tHTTPStatus       respjson.Field\n\t\tMethod           respjson.Field\n\t\tText             respjson.Field\n\t\tTruncated        respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ResponseContent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ResponseContent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ResponseContentError struct {\n\t// Machine-readable retrieval failure code.\n\tCode string `json:\"code\" api:\"required\"`\n\t// Human-readable failure description.\n\tMessage   string `json:\"message\" api:\"required\"`\n\tRetryable bool   `json:\"retryable\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCode        respjson.Field\n\t\tMessage     respjson.Field\n\t\tRetryable   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ResponseContentError) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ResponseContentError) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RestartVerificationVaultItemOperationRequestParam struct {\n\t// Any of \"restart_verification\".\n\tType RestartVerificationVaultItemOperationRequestType `json:\"type,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nExplicitly prepare a fresh local verification session for the same Kernel Visa purchase and connected wallet, only when restart\\_verification is advertised. Kernel must have durable proof of an initial attestation failure before intent dispatch. Replaces the spend\\_approval capability and discards session-bound verification data without calling the provider or granting spend consent. The cardholder must use the new link, verify again and explicitly approve the purchase. Unknown intent creation, legacy unclassified recovery, enrollment completion, issuance and confirmation cannot restart. Do not automatically retry this operation.\n\nThe property Type is required.\n\n```go\nfunc (r RestartVerificationVaultItemOperationRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *RestartVerificationVaultItemOperationRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RestartVerificationVaultItemOperationRequestType string\n```\n\n```go\nconst (\n\tRestartVerificationVaultItemOperationRequestTypeRestartVerification RestartVerificationVaultItemOperationRequestType = \"restart_verification\"\n)\n```\n\n```go\ntype Result struct {\n\t// Kernel-generated identifier for this result. Stable only within the retained\n\t// search; not standardized across providers. Provider-native IDs, when available,\n\t// remain provider-specific raw fields.\n\tID string `json:\"id\" api:\"required\"`\n\t// One-based position in the returned ranking.\n\tRank int64 `json:\"rank\" api:\"required\"`\n\t// Provider-returned URL, not assumed canonical.\n\tURL                string   `json:\"url\" api:\"required\" format:\"uri\"`\n\tAdditionalSnippets []string `json:\"additional_snippets\"`\n\t// Portable retrieval outcome, or native content supplied by the search provider.\n\t// Identity fields remain on the enclosing result. Native excerpts are labeled\n\t// excerpt rather than full_page. Omission never triggers browser retrieval.\n\tContent ResultContent `json:\"content\"`\n\t// Provider-supplied date or timestamp, preserving available precision. No\n\t// publication date is fabricated. Retains the published field name.\n\tPublishedDate string `json:\"published_date\" api:\"nullable\"`\n\t// Original provider result, included only with include_raw=true. Provider\n\t// relevance scores are not normalized. Top-level provider data is available in\n\t// Search.raw.\n\tRaw     any    `json:\"raw\"`\n\tSnippet string `json:\"snippet\" api:\"nullable\"`\n\t// Provider source name or result URL hostname, when available.\n\tSource string `json:\"source\" api:\"nullable\"`\n\tTitle  string `json:\"title\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                 respjson.Field\n\t\tRank               respjson.Field\n\t\tURL                respjson.Field\n\t\tAdditionalSnippets respjson.Field\n\t\tContent            respjson.Field\n\t\tPublishedDate      respjson.Field\n\t\tRaw                respjson.Field\n\t\tSnippet            respjson.Field\n\t\tSource             respjson.Field\n\t\tTitle              respjson.Field\n\t\tExtraFields        map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r Result) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Result) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ResultContent struct {\n\t// Ok means non-empty extracted content, not merely HTTP 200. Blocked includes\n\t// detected challenges or access denials. Detection is best-effort, not a guarantee\n\t// of page completeness. Error details are present for non-ok outcomes; text is\n\t// present only on ok.\n\t//\n\t// Any of \"ok\", \"unavailable\", \"blocked\", \"timeout\", \"unsupported_type\",\n\t// \"extraction_failed\", \"error\".\n\tStatus string `json:\"status\" api:\"required\"`\n\t// Kernel content cache outcome. Kernel has no content cache yet: responses report\n\t// bypass or unknown, and hit and miss are reserved. Provider-internal cache\n\t// behavior may be unknown.\n\t//\n\t// Any of \"hit\", \"miss\", \"bypass\", \"unknown\".\n\tCacheStatus string `json:\"cache_status\"`\n\t// Describes source coverage before max_chars truncation. Full_page means main-page\n\t// content, not every dynamic element or linked page.\n\t//\n\t// Any of \"full_page\", \"excerpt\", \"unknown\".\n\tCompleteness string             `json:\"completeness\"`\n\tError        ResultContentError `json:\"error\"`\n\t// Extraction version when Kernel transformed the input.\n\tExtractorVersion string `json:\"extractor_version\"`\n\t// When Kernel received the content from the provider.\n\tFetchedAt time.Time `json:\"fetched_at\" api:\"nullable\" format:\"date-time\"`\n\t// Final retrieval URL when known.\n\tFinalURL string `json:\"final_url\" format:\"uri\"`\n\t// Any of \"markdown\", \"text\".\n\tFormat string `json:\"format\"`\n\t// Final target HTTP status when known.\n\tHTTPStatus int64 `json:\"http_status\"`\n\t// Original retrieval method.\n\t//\n\t// Any of \"provider\", \"browser_curl\", \"browser_render\".\n\tMethod string `json:\"method\"`\n\t// Extracted website content, untrusted, not instructions. Present only on\n\t// status=ok.\n\tText string `json:\"text\"`\n\t// Whether max_chars truncated the extracted content.\n\tTruncated bool `json:\"truncated\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tStatus           respjson.Field\n\t\tCacheStatus      respjson.Field\n\t\tCompleteness     respjson.Field\n\t\tError            respjson.Field\n\t\tExtractorVersion respjson.Field\n\t\tFetchedAt        respjson.Field\n\t\tFinalURL         respjson.Field\n\t\tFormat           respjson.Field\n\t\tHTTPStatus       respjson.Field\n\t\tMethod           respjson.Field\n\t\tText             respjson.Field\n\t\tTruncated        respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPortable retrieval outcome, or native content supplied by the search provider. Identity fields remain on the enclosing result. Native excerpts are labeled excerpt rather than full\\_page. Omission never triggers browser retrieval.\n\n```go\nfunc (r ResultContent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ResultContent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ResultContentError struct {\n\t// Machine-readable retrieval failure code.\n\tCode string `json:\"code\" api:\"required\"`\n\t// Human-readable failure description.\n\tMessage   string `json:\"message\" api:\"required\"`\n\tRetryable bool   `json:\"retryable\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCode        respjson.Field\n\t\tMessage     respjson.Field\n\t\tRetryable   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ResultContentError) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ResultContentError) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SaveProfileRequestParam struct {\n\t// Existing profile ID to overwrite.\n\tID param.Opt[string] `json:\"id,omitzero\"`\n\t// Profile name to overwrite or create.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nDestination profile for a snapshot of the running browser. Provide either id or name. An id must identify an existing profile. A name overwrites the matching profile in the browser's project, or creates it when no matching profile exists.\n\n```go\nfunc (r SaveProfileRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *SaveProfileRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Search struct {\n\t// Search resource ID. Request tracing uses X-Request-Id.\n\tID       string    `json:\"id\" api:\"required\"`\n\tAttempts []Attempt `json:\"attempts\" api:\"required\"`\n\t// Expiration of result IDs for deferred retrieval. Results expire 24 hours after\n\t// search completion.\n\tExpiresAt time.Time `json:\"expires_at\" api:\"required\" format:\"date-time\"`\n\t// Concrete serving provider, never auto or fallback.\n\tProvider string `json:\"provider\" api:\"required\"`\n\t// Echo of the query. Native multi-query inputs are visible in the selected\n\t// strategy target and the optional raw response.\n\tQuery    string    `json:\"query\" api:\"required\"`\n\tResults  []Result  `json:\"results\" api:\"required\"`\n\tUsage    Usage     `json:\"usage\" api:\"required\"`\n\tWarnings []Warning `json:\"warnings\" api:\"required\"`\n\t// Provider-generated answer when requested (e.g. via Tavily include_answer or\n\t// Perplexity). Preserved independently of include_raw.\n\tAnswer string `json:\"answer\"`\n\t// Full serving-provider response, including top-level metadata that does not\n\t// belong to a result. Present only with include_raw=true; untrusted provider data.\n\tRaw any `json:\"raw\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tAttempts    respjson.Field\n\t\tExpiresAt   respjson.Field\n\t\tProvider    respjson.Field\n\t\tQuery       respjson.Field\n\t\tResults     respjson.Field\n\t\tUsage       respjson.Field\n\t\tWarnings    respjson.Field\n\t\tAnswer      respjson.Field\n\t\tRaw         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nRetained search results and provider attempt history.\n\n```go\nfunc (r Search) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Search) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SearchContentFetchParams struct {\n\tFetchRequest FetchRequestParam\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SearchContentFetchParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *SearchContentFetchParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SearchContentService struct {\n\tOptions []option.RequestOption\n}\n```\nSearch the web and retrieve content for selected results.\n\nSearchContentService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewSearchContentService](#NewSearchContentService) method instead.\n\n```go\nfunc NewSearchContentService(opts ...option.RequestOption) (r SearchContentService)\n```\nNewSearchContentService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *SearchContentService) Fetch(ctx context.Context, id string, body SearchContentFetchParams, opts ...option.RequestOption) (res *Response, err error)\n```\nRetrieves selected results from a retained search. Provide exactly one of result\\_ids or limit; the latter fetches the top results. Content defaults to source:auto. Responses preserve result\\_ids order. Unknown result IDs are rejected before retrieval starts. Missing, expired, or inaccessible searches return 404. Once retrieval begins, return one outcome per selected result, including timeout entries for work unfinished at the overall deadline. Browser retrievals run sequentially in result order, so later results may time out when earlier pages are slow. X-Request-Id identifies this request separately from the search resource.\n\n```go\ntype SearchNewParams struct {\n\tRequest RequestParam\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SearchNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *SearchNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SearchProviderListParams struct {\n\t// Optional concrete provider slug filter. Omit to list every provider. A slug that\n\t// is not listed returns an empty array.\n\t//\n\t// Any of \"brave\", \"exa\", \"perplexity\", \"context\", \"parallel\", \"octen\", \"you\",\n\t// \"tavily\".\n\tSlug SearchProviderListParamsSlug `query:\"slug,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SearchProviderListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [SearchProviderListParams](#SearchProviderListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype SearchProviderListParamsSlug string\n```\nOptional concrete provider slug filter. Omit to list every provider. A slug that is not listed returns an empty array.\n\n```go\nconst (\n\tSearchProviderListParamsSlugBrave      SearchProviderListParamsSlug = \"brave\"\n\tSearchProviderListParamsSlugExa        SearchProviderListParamsSlug = \"exa\"\n\tSearchProviderListParamsSlugPerplexity SearchProviderListParamsSlug = \"perplexity\"\n\tSearchProviderListParamsSlugContext    SearchProviderListParamsSlug = \"context\"\n\tSearchProviderListParamsSlugParallel   SearchProviderListParamsSlug = \"parallel\"\n\tSearchProviderListParamsSlugOcten      SearchProviderListParamsSlug = \"octen\"\n\tSearchProviderListParamsSlugYou        SearchProviderListParamsSlug = \"you\"\n\tSearchProviderListParamsSlugTavily     SearchProviderListParamsSlug = \"tavily\"\n)\n```\n\n```go\ntype SearchProviderService struct {\n\tOptions []option.RequestOption\n}\n```\nSearch the web and retrieve content for selected results.\n\nSearchProviderService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewSearchProviderService](#NewSearchProviderService) method instead.\n\n```go\nfunc NewSearchProviderService(opts ...option.RequestOption) (r SearchProviderService)\n```\nNewSearchProviderService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *SearchProviderService) List(ctx context.Context, query SearchProviderListParams, opts ...option.RequestOption) (res *[]Provider, err error)\n```\nLists providers, capabilities, and machine-readable native-option schemas. Auto and fallback are strategies, not provider entries. The list is not paginated and contains no latency benchmarks. X-Request-Id identifies the request.\n\n```go\ntype SearchService struct {\n\tOptions []option.RequestOption\n\t// Search the web and retrieve content for selected results.\n\tContents SearchContentService\n\t// Search the web and retrieve content for selected results.\n\tProviders SearchProviderService\n}\n```\nSearch the web and retrieve content for selected results.\n\nSearchService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewSearchService](#NewSearchService) method instead.\n\n```go\nfunc NewSearchService(opts ...option.RequestOption) (r SearchService)\n```\nNewSearchService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *SearchService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Search, err error)\n```\nReturns the retained search resource exactly as it was returned by POST /search: results, attempts, warnings, usage, and expires\\_at. No provider is called and nothing is billed. Use it to look up a search by ID for debugging, cost review, or to recover result IDs before calling the contents endpoint. Inline content fetched at search time is included; content fetched later through the contents endpoint is not merged in. Missing, expired, or inaccessible searches return 404.\n\n```go\nfunc (r *SearchService) New(ctx context.Context, body SearchNewParams, opts ...option.RequestOption) (res *Search, err error)\n```\nReturns ranked results from one serving provider. The default strategy selects a provider that supports the requested options. The fallback strategy tries providers in the supplied order. Results are not blended across providers. Portable filters may be approximated or omitted according to provider capabilities; warnings describe those outcomes unless strict\\_params is true. Native options apply only to their selected provider.\n\n```go\ntype ServiceAccount struct {\n\tID              string    `json:\"id\" api:\"required\"`\n\tArchivedAt      time.Time `json:\"archived_at\" api:\"required\" format:\"date-time\"`\n\tCreatedAt       time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\tCreatedByUserID string    `json:\"created_by_user_id\" api:\"required\"`\n\tDescription     string    `json:\"description\" api:\"required\"`\n\t// When one of the account's API keys last authenticated or one of its rules last\n\t// issued a token. Recorded at most once every 15 minutes, so it can lag. Null if\n\t// the account has never been used.\n\tLastUsedAt time.Time `json:\"last_used_at\" api:\"required\" format:\"date-time\"`\n\tName       string    `json:\"name\" api:\"required\"`\n\tOrgID      string    `json:\"org_id\" api:\"required\"`\n\t// Authority revision. Cosmetic updates do not widen permissions.\n\tSecurityVersion int64     `json:\"security_version\" api:\"required\"`\n\tUpdatedAt       time.Time `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID              respjson.Field\n\t\tArchivedAt      respjson.Field\n\t\tCreatedAt       respjson.Field\n\t\tCreatedByUserID respjson.Field\n\t\tDescription     respjson.Field\n\t\tLastUsedAt      respjson.Field\n\t\tName            respjson.Field\n\t\tOrgID           respjson.Field\n\t\tSecurityVersion respjson.Field\n\t\tUpdatedAt       respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ServiceAccount) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ServiceAccount) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ServiceAccountConfigParam struct {\n\tName        string            `json:\"name\" api:\"required\"`\n\tDescription param.Opt[string] `json:\"description,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Name is required.\n\n```go\nfunc (r ServiceAccountConfigParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ServiceAccountConfigParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ServiceAccountListParams struct {\n\tLimit  param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Case-insensitive substring match against name or description; exact ID match.\n\tQuery param.Opt[string] `query:\"query,omitzero\" json:\"-\"`\n\t// Any of \"active\", \"archived\", \"all\".\n\tStatus ServiceAccountListParamsStatus `query:\"status,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ServiceAccountListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [ServiceAccountListParams](#ServiceAccountListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype ServiceAccountListParamsStatus string\n```\n\n```go\nconst (\n\tServiceAccountListParamsStatusActive   ServiceAccountListParamsStatus = \"active\"\n\tServiceAccountListParamsStatusArchived ServiceAccountListParamsStatus = \"archived\"\n\tServiceAccountListParamsStatusAll      ServiceAccountListParamsStatus = \"all\"\n)\n```\n\n```go\ntype ServiceAccountNewParams struct {\n\tServiceAccountConfig ServiceAccountConfigParam\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ServiceAccountNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ServiceAccountNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ServiceAccountService struct {\n\tOptions []option.RequestOption\n}\n```\nServiceAccountService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewServiceAccountService](#NewServiceAccountService) method instead.\n\n```go\nfunc NewServiceAccountService(opts ...option.RequestOption) (r ServiceAccountService)\n```\nNewServiceAccountService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *ServiceAccountService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)\n```\nRetains history and invalidates associated authority within the documented status bound. Does not delete created browser resources.\n\n```go\nfunc (r *ServiceAccountService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *ServiceAccount, err error)\n```\nAny signed-in member of the organization can read this. API keys cannot.\n\n```go\nfunc (r *ServiceAccountService) List(ctx context.Context, query ServiceAccountListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[ServiceAccount], err error)\n```\nAny signed-in member of the organization can read this. API keys cannot.\n\n```go\nfunc (r *ServiceAccountService) ListAutoPaging(ctx context.Context, query ServiceAccountListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[ServiceAccount]\n```\nAny signed-in member of the organization can read this. API keys cannot.\n\n```go\nfunc (r *ServiceAccountService) New(ctx context.Context, body ServiceAccountNewParams, opts ...option.RequestOption) (res *ServiceAccount, err error)\n```\nOrganization credential administrators only. No external namespace-ownership or staff approval is required. New trust resources default disabled.\n\n```go\nfunc (r *ServiceAccountService) Update(ctx context.Context, id string, body ServiceAccountUpdateParams, opts ...option.RequestOption) (res *ServiceAccount, err error)\n```\nUpdate a service account\n\n```go\ntype ServiceAccountUpdateParams struct {\n\tExpectedVersion int64             `json:\"expected_version\" api:\"required\"`\n\tDescription     param.Opt[string] `json:\"description,omitzero\"`\n\tName            param.Opt[string] `json:\"name,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ServiceAccountUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ServiceAccountUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ShopPayCardState struct {\n\t// Any of \"shop_pay\".\n\tProvider ShopPayCardStateProvider `json:\"provider\" api:\"required\"`\n\t// declined covers a request the shopper declined or that was cancelled. consumed\n\t// means the transaction outcome was reported with confirm_transaction; the card is\n\t// no longer stored and cannot be filled again, whatever the outcome.\n\t// recovery_required means a provider operation has an unresolved outcome and the\n\t// card cannot be used. When status_reason says the provider refused retrieval\n\t// before acceptance, no card was issued and a later read retries. Otherwise follow\n\t// status_reason: recovery for issuance can be abandoned by deleting the card and\n\t// creating a new one, and the shopper approves the new purchase separately.\n\t// Recovery while reporting a merchant transaction cannot be deleted and must be\n\t// reconciled with support.\n\t//\n\t// Any of \"requested\", \"pending_authorization\", \"ready\", \"consumed\", \"expired\",\n\t// \"declined\", \"recovery_required\".\n\tStatus       ShopPayCardStateStatus `json:\"status\" api:\"required\"`\n\tDomains      []string               `json:\"domains\"`\n\tMasks        ShopPayCardStateMasks  `json:\"masks\"`\n\tStatusReason string                 `json:\"status_reason\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tProvider     respjson.Field\n\t\tStatus       respjson.Field\n\t\tDomains      respjson.Field\n\t\tMasks        respjson.Field\n\t\tStatusReason respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nIssued Shop Pay cards retain encrypted card material for the fill operation.\n\n```go\nfunc (r ShopPayCardState) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ShopPayCardState) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ShopPayCardStateMasks struct {\n\tBrand string `json:\"brand\"`\n\tLast4 string `json:\"last4\"`\n\t// Last four digits of the network token presented to the merchant.\n\tTokenLast4  string            `json:\"token_last4\"`\n\tExtraFields map[string]string `json:\"\" api:\"extrafields\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBrand       respjson.Field\n\t\tLast4       respjson.Field\n\t\tTokenLast4  respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ShopPayCardStateMasks) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ShopPayCardStateMasks) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ShopPayCardStateProvider string\n```\n\n```go\nconst (\n\tShopPayCardStateProviderShopPay ShopPayCardStateProvider = \"shop_pay\"\n)\n```\n\n```go\ntype ShopPayCardStateStatus string\n```\ndeclined covers a request the shopper declined or that was cancelled. consumed means the transaction outcome was reported with confirm\\_transaction; the card is no longer stored and cannot be filled again, whatever the outcome. recovery\\_required means a provider operation has an unresolved outcome and the card cannot be used. When status\\_reason says the provider refused retrieval before acceptance, no card was issued and a later read retries. Otherwise follow status\\_reason: recovery for issuance can be abandoned by deleting the card and creating a new one, and the shopper approves the new purchase separately. Recovery while reporting a merchant transaction cannot be deleted and must be reconciled with support.\n\n```go\nconst (\n\tShopPayCardStateStatusRequested            ShopPayCardStateStatus = \"requested\"\n\tShopPayCardStateStatusPendingAuthorization ShopPayCardStateStatus = \"pending_authorization\"\n\tShopPayCardStateStatusReady                ShopPayCardStateStatus = \"ready\"\n\tShopPayCardStateStatusConsumed             ShopPayCardStateStatus = \"consumed\"\n\tShopPayCardStateStatusExpired              ShopPayCardStateStatus = \"expired\"\n\tShopPayCardStateStatusDeclined             ShopPayCardStateStatus = \"declined\"\n\tShopPayCardStateStatusRecoveryRequired     ShopPayCardStateStatus = \"recovery_required\"\n)\n```\n\n```go\ntype ShopPayCardVaultItemSpec struct {\n\t// Approval limit in minor currency units, at most 1000000.\n\tAmount int64 `json:\"amount\" api:\"required\"`\n\t// What is being bought and why, written for the shopper.\n\tContext string `json:\"context\" api:\"required\"`\n\t// Shop accepts USD spend requests only.\n\tCurrency     string `json:\"currency\" api:\"required\"`\n\tMerchantName string `json:\"merchant_name\" api:\"required\"`\n\t// The merchant's https URL.\n\tMerchantURL string `json:\"merchant_url\" api:\"required\" format:\"uri\"`\n\t// Any of \"shop_pay\".\n\tProvider ShopPayCardVaultItemSpecProvider `json:\"provider\" api:\"required\"`\n\tTotals   []ShopPayCardVaultItemSpecTotal  `json:\"totals\" api:\"required\"`\n\t// Connected Shop Pay wallet item key.\n\tWallet    string                             `json:\"wallet\" api:\"required\"`\n\tLineItems []ShopPayCardVaultItemSpecLineItem `json:\"line_items\"`\n\t// ISO 3166-1 alpha-2 country of the merchant.\n\tMerchantCountry string `json:\"merchant_country\"`\n\t// Card ID from the wallet's payment_methods expansion. Omit it to use the\n\t// shopper's preferred card.\n\tPaymentMethodID string `json:\"payment_method_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAmount          respjson.Field\n\t\tContext         respjson.Field\n\t\tCurrency        respjson.Field\n\t\tMerchantName    respjson.Field\n\t\tMerchantURL     respjson.Field\n\t\tProvider        respjson.Field\n\t\tTotals          respjson.Field\n\t\tWallet          respjson.Field\n\t\tLineItems       respjson.Field\n\t\tMerchantCountry respjson.Field\n\t\tPaymentMethodID respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nShop Pay purchase. amount is the limit the shopper approves; totals must include exactly one positive total no higher than it. context is shown to the shopper when they approve. Authorize it with the browser at final checkout: Kernel sends that page to Shop as the merchant and the card fills only on its origin. Without browser\\_id and page\\_url it authorizes for merchant\\_url. authorize returns an approval action for the shopper, who approves the purchase in Shop; share its URL unchanged when present. Report the merchant outcome with confirm\\_transaction, which ends the card.\n\n```go\nfunc (r ShopPayCardVaultItemSpec) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r ShopPayCardVaultItemSpec) ToParam() ShopPayCardVaultItemSpecParam\n```\nToParam converts this ShopPayCardVaultItemSpec to a ShopPayCardVaultItemSpecParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ShopPayCardVaultItemSpecParam.Overrides()\n\n```go\nfunc (r *ShopPayCardVaultItemSpec) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ShopPayCardVaultItemSpecLineItem struct {\n\tName     string `json:\"name\" api:\"required\"`\n\tQuantity int64  `json:\"quantity\" api:\"required\"`\n\t// Unit price in minor currency units.\n\tUnitAmount int64 `json:\"unit_amount\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tName        respjson.Field\n\t\tQuantity    respjson.Field\n\t\tUnitAmount  respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ShopPayCardVaultItemSpecLineItem) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ShopPayCardVaultItemSpecLineItem) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ShopPayCardVaultItemSpecLineItemParam struct {\n\tName     string `json:\"name\" api:\"required\"`\n\tQuantity int64  `json:\"quantity\" api:\"required\"`\n\t// Unit price in minor currency units.\n\tUnitAmount int64 `json:\"unit_amount\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Name, Quantity, UnitAmount are required.\n\n```go\nfunc (r ShopPayCardVaultItemSpecLineItemParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ShopPayCardVaultItemSpecLineItemParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ShopPayCardVaultItemSpecParam struct {\n\t// Approval limit in minor currency units, at most 1000000.\n\tAmount int64 `json:\"amount\" api:\"required\"`\n\t// What is being bought and why, written for the shopper.\n\tContext string `json:\"context\" api:\"required\"`\n\t// Shop accepts USD spend requests only.\n\tCurrency     string `json:\"currency\" api:\"required\"`\n\tMerchantName string `json:\"merchant_name\" api:\"required\"`\n\t// The merchant's https URL.\n\tMerchantURL string `json:\"merchant_url\" api:\"required\" format:\"uri\"`\n\t// Any of \"shop_pay\".\n\tProvider ShopPayCardVaultItemSpecProvider     `json:\"provider,omitzero\" api:\"required\"`\n\tTotals   []ShopPayCardVaultItemSpecTotalParam `json:\"totals,omitzero\" api:\"required\"`\n\t// Connected Shop Pay wallet item key.\n\tWallet string `json:\"wallet\" api:\"required\"`\n\t// ISO 3166-1 alpha-2 country of the merchant.\n\tMerchantCountry param.Opt[string] `json:\"merchant_country,omitzero\"`\n\t// Card ID from the wallet's payment_methods expansion. Omit it to use the\n\t// shopper's preferred card.\n\tPaymentMethodID param.Opt[string]                       `json:\"payment_method_id,omitzero\"`\n\tLineItems       []ShopPayCardVaultItemSpecLineItemParam `json:\"line_items,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nShop Pay purchase. amount is the limit the shopper approves; totals must include exactly one positive total no higher than it. context is shown to the shopper when they approve. Authorize it with the browser at final checkout: Kernel sends that page to Shop as the merchant and the card fills only on its origin. Without browser\\_id and page\\_url it authorizes for merchant\\_url. authorize returns an approval action for the shopper, who approves the purchase in Shop; share its URL unchanged when present. Report the merchant outcome with confirm\\_transaction, which ends the card.\n\nThe properties Amount, Context, Currency, MerchantName, MerchantURL, Provider, Totals, Wallet are required.\n\n```go\nfunc (r ShopPayCardVaultItemSpecParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ShopPayCardVaultItemSpecParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ShopPayCardVaultItemSpecProvider string\n```\n\n```go\nconst (\n\tShopPayCardVaultItemSpecProviderShopPay ShopPayCardVaultItemSpecProvider = \"shop_pay\"\n)\n```\n\n```go\ntype ShopPayCardVaultItemSpecTotal struct {\n\t// Amount in minor currency units; discounts are negative.\n\tAmount int64 `json:\"amount\" api:\"required\"`\n\t// For example subtotal, fulfillment, tax, discount or total.\n\tType string `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAmount      respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ShopPayCardVaultItemSpecTotal) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ShopPayCardVaultItemSpecTotal) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ShopPayCardVaultItemSpecTotalParam struct {\n\t// Amount in minor currency units; discounts are negative.\n\tAmount int64 `json:\"amount\" api:\"required\"`\n\t// For example subtotal, fulfillment, tax, discount or total.\n\tType string `json:\"type\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Amount, Type are required.\n\n```go\nfunc (r ShopPayCardVaultItemSpecTotalParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ShopPayCardVaultItemSpecTotalParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ShopPayWalletState struct {\n\t// Any of \"shop_pay\".\n\tProvider ShopPayWalletStateProvider `json:\"provider\" api:\"required\"`\n\t// Any of \"pending_authorization\", \"connected\", \"declined\", \"reconnect_required\",\n\t// \"degraded\".\n\tStatus       ShopPayWalletStateStatus `json:\"status\" api:\"required\"`\n\tStatusReason string                   `json:\"status_reason\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tProvider     respjson.Field\n\t\tStatus       respjson.Field\n\t\tStatusReason respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ShopPayWalletState) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ShopPayWalletState) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ShopPayWalletStateProvider string\n```\n\n```go\nconst (\n\tShopPayWalletStateProviderShopPay ShopPayWalletStateProvider = \"shop_pay\"\n)\n```\n\n```go\ntype ShopPayWalletStateStatus string\n```\n\n```go\nconst (\n\tShopPayWalletStateStatusPendingAuthorization ShopPayWalletStateStatus = \"pending_authorization\"\n\tShopPayWalletStateStatusConnected            ShopPayWalletStateStatus = \"connected\"\n\tShopPayWalletStateStatusDeclined             ShopPayWalletStateStatus = \"declined\"\n\tShopPayWalletStateStatusReconnectRequired    ShopPayWalletStateStatus = \"reconnect_required\"\n\tShopPayWalletStateStatusDegraded             ShopPayWalletStateStatus = \"degraded\"\n)\n```\n\n```go\ntype ShopPayWalletVaultItemSpec struct {\n\tAuthorization ShopPayWalletVaultItemSpecAuthorization `json:\"authorization\" api:\"required\"`\n\t// Any of \"shop_pay\".\n\tProvider ShopPayWalletVaultItemSpecProvider `json:\"provider\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAuthorization respjson.Field\n\t\tProvider      respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nShop Pay wallet connected through Kernel's Shop app. Creation returns a shop\\_pay\\_oauth action: the shopper signs in to Shop and approves the connection, and the wallet connects. The connected wallet's payment\\_methods expansion lists the shopper's saved Shop Pay cards.\n\n```go\nfunc (r ShopPayWalletVaultItemSpec) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r ShopPayWalletVaultItemSpec) ToParam() ShopPayWalletVaultItemSpecParam\n```\nToParam converts this ShopPayWalletVaultItemSpec to a ShopPayWalletVaultItemSpecParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ShopPayWalletVaultItemSpecParam.Overrides()\n\n```go\nfunc (r *ShopPayWalletVaultItemSpec) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ShopPayWalletVaultItemSpecAuthorization struct {\n\tClient ShopPayWalletVaultItemSpecAuthorizationClient `json:\"client\" api:\"required\"`\n\t// Any of \"oauth\".\n\tMethod string `json:\"method\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tClient      respjson.Field\n\t\tMethod      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ShopPayWalletVaultItemSpecAuthorization) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ShopPayWalletVaultItemSpecAuthorization) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ShopPayWalletVaultItemSpecAuthorizationClient struct {\n\t// Any of \"kernel_managed\".\n\tType string `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ShopPayWalletVaultItemSpecAuthorizationClient) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ShopPayWalletVaultItemSpecAuthorizationClient) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ShopPayWalletVaultItemSpecAuthorizationClientParam struct {\n\t// Any of \"kernel_managed\".\n\tType string `json:\"type,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Type is required.\n\n```go\nfunc (r ShopPayWalletVaultItemSpecAuthorizationClientParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ShopPayWalletVaultItemSpecAuthorizationClientParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ShopPayWalletVaultItemSpecAuthorizationParam struct {\n\tClient ShopPayWalletVaultItemSpecAuthorizationClientParam `json:\"client,omitzero\" api:\"required\"`\n\t// Any of \"oauth\".\n\tMethod string `json:\"method,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Client, Method are required.\n\n```go\nfunc (r ShopPayWalletVaultItemSpecAuthorizationParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ShopPayWalletVaultItemSpecAuthorizationParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ShopPayWalletVaultItemSpecParam struct {\n\tAuthorization ShopPayWalletVaultItemSpecAuthorizationParam `json:\"authorization,omitzero\" api:\"required\"`\n\t// Any of \"shop_pay\".\n\tProvider ShopPayWalletVaultItemSpecProvider `json:\"provider,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nShop Pay wallet connected through Kernel's Shop app. Creation returns a shop\\_pay\\_oauth action: the shopper signs in to Shop and approves the connection, and the wallet connects. The connected wallet's payment\\_methods expansion lists the shopper's saved Shop Pay cards.\n\nThe properties Authorization, Provider are required.\n\n```go\nfunc (r ShopPayWalletVaultItemSpecParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ShopPayWalletVaultItemSpecParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ShopPayWalletVaultItemSpecProvider string\n```\n\n```go\nconst (\n\tShopPayWalletVaultItemSpecProviderShopPay ShopPayWalletVaultItemSpecProvider = \"shop_pay\"\n)\n```\n\n```go\ntype SingleUseCardBillingAddress struct {\n\tCity string `json:\"city\"`\n\t// ISO 3166-1 alpha-2 code.\n\tCountry    string `json:\"country\"`\n\tLine1      string `json:\"line1\"`\n\tLine2      string `json:\"line2\"`\n\tPostalCode string `json:\"postal_code\"`\n\tState      string `json:\"state\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCity        respjson.Field\n\t\tCountry     respjson.Field\n\t\tLine1       respjson.Field\n\t\tLine2       respjson.Field\n\t\tPostalCode  respjson.Field\n\t\tState       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nBilling address filled with the billing\\\\\\_\\\\\\* fill fields. Never returned.\n\n```go\nfunc (r SingleUseCardBillingAddress) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r SingleUseCardBillingAddress) ToParam() SingleUseCardBillingAddressParam\n```\nToParam converts this SingleUseCardBillingAddress to a SingleUseCardBillingAddressParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with SingleUseCardBillingAddressParam.Overrides()\n\n```go\nfunc (r *SingleUseCardBillingAddress) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SingleUseCardBillingAddressParam struct {\n\tCity param.Opt[string] `json:\"city,omitzero\"`\n\t// ISO 3166-1 alpha-2 code.\n\tCountry    param.Opt[string] `json:\"country,omitzero\"`\n\tLine1      param.Opt[string] `json:\"line1,omitzero\"`\n\tLine2      param.Opt[string] `json:\"line2,omitzero\"`\n\tPostalCode param.Opt[string] `json:\"postal_code,omitzero\"`\n\tState      param.Opt[string] `json:\"state,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nBilling address filled with the billing\\\\\\_\\\\\\* fill fields. Never returned.\n\n```go\nfunc (r SingleUseCardBillingAddressParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *SingleUseCardBillingAddressParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype StrategyAutoParam struct {\n\t// Conditions that advance to the next provider under auto routing or an explicit\n\t// providers chain. Ignored when provider pins a single provider. error means a\n\t// retryable provider failure, including rate limiting, not invalid caller input or\n\t// caller quotas. empty means zero results after required filtering. An empty list\n\t// disables fallback. If every attempt is empty or fails, the response is the first\n\t// valid empty response with the full attempt trail, or a 502 if none succeeded.\n\t//\n\t// Any of \"error\", \"timeout\", \"empty\".\n\tFallbackOn []string `json:\"fallback_on,omitzero\"`\n\t// Provider targets available to auto routing, each paired with typed native\n\t// options. Provider names must be unique.\n\tProviderOptions []ProviderTargetUnionParam `json:\"provider_options,omitzero\"`\n\t// Let Kernel choose an eligible provider by capability fit.\n\t//\n\t// This field can be elided, and will marshal its zero value as \"auto\".\n\tType constant.Auto `json:\"type\" default:\"auto\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Type is required.\n\n```go\nfunc (r StrategyAutoParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *StrategyAutoParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype StrategyFallbackParam struct {\n\t// Ordered provider targets. Provider names must be unique.\n\tProviders []ProviderTargetUnionParam `json:\"providers,omitzero\" api:\"required\"`\n\t// Conditions that advance to the next provider under auto routing or an explicit\n\t// providers chain. Ignored when provider pins a single provider. error means a\n\t// retryable provider failure, including rate limiting, not invalid caller input or\n\t// caller quotas. empty means zero results after required filtering. An empty list\n\t// disables fallback. If every attempt is empty or fails, the response is the first\n\t// valid empty response with the full attempt trail, or a 502 if none succeeded.\n\t//\n\t// Any of \"error\", \"timeout\", \"empty\".\n\tFallbackOn []string `json:\"fallback_on,omitzero\"`\n\t// Try providers in order and advance when fallback_on matches the outcome.\n\t//\n\t// This field can be elided, and will marshal its zero value as \"fallback\".\n\tType constant.Fallback `json:\"type\" default:\"fallback\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Providers, Type are required.\n\n```go\nfunc (r StrategyFallbackParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *StrategyFallbackParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype StrategyPinnedParam struct {\n\t// Provider name paired with its typed native options.\n\tProvider ProviderTargetUnionParam `json:\"provider,omitzero\" api:\"required\"`\n\t// Use exactly the selected provider with no cross-provider fallback.\n\t//\n\t// This field can be elided, and will marshal its zero value as \"pinned\".\n\tType constant.Pinned `json:\"type\" default:\"pinned\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Provider, Type are required.\n\n```go\nfunc (r StrategyPinnedParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *StrategyPinnedParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype StrategyUnionParam struct {\n\tOfAuto     *StrategyAutoParam     `json:\",omitzero,inline\"`\n\tOfPinned   *StrategyPinnedParam   `json:\",omitzero,inline\"`\n\tOfFallback *StrategyFallbackParam `json:\",omitzero,inline\"`\n\t// contains filtered or unexported fields\n}\n```\nOnly one field can be non-zero.\n\nUse [param.IsOmitted](/github.com/kernel/kernel-go-sdk/packages/param#IsOmitted) to confirm if a field is set.\n\n```go\nfunc StrategyParamOfFallback(providers []ProviderTargetUnionParam) StrategyUnionParam\n```\n\n```go\nfunc StrategyParamOfPinned[\n\tT ProviderTargetBraveParam | ProviderTargetExaParam | ProviderTargetPerplexityParam | ProviderTargetContextParam | ProviderTargetParallelParam | ProviderTargetOctenParam | ProviderTargetYouParam | ProviderTargetTavilyParam,\n](provider T) StrategyUnionParam\n```\n\n```go\nfunc (u StrategyUnionParam) GetFallbackOn() []string\n```\nReturns a pointer to the underlying variant's FallbackOn property, if present.\n\n```go\nfunc (u StrategyUnionParam) GetProvider() *ProviderTargetUnionParam\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u StrategyUnionParam) GetProviderOptions() []ProviderTargetUnionParam\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u StrategyUnionParam) GetProviders() []ProviderTargetUnionParam\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u StrategyUnionParam) GetType() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u StrategyUnionParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (u *StrategyUnionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SubmitFieldsRequestParam struct {\n\t// Opaque interaction ID returned with canonical fields and choices. Required for\n\t// canonical submissions.\n\tInteractionID param.Opt[string] `json:\"interaction_id,omitzero\"`\n\t// The MFA method type to select (when mfa_options were returned)\n\tMfaOptionID param.Opt[string] `json:\"mfa_option_id,omitzero\"`\n\t// Canonical choice ID selected by the user.\n\tSelectedChoiceID param.Opt[string] `json:\"selected_choice_id,omitzero\"`\n\t// The sign-in option ID to select (when sign_in_options were returned)\n\tSignInOptionID param.Opt[string] `json:\"sign_in_option_id,omitzero\"`\n\t// XPath selector for the SSO button to click (ODA). Use sso_provider instead for\n\t// CUA.\n\tSSOButtonSelector param.Opt[string] `json:\"sso_button_selector,omitzero\"`\n\t// SSO provider to click, matching the provider field from pending_sso_buttons\n\t// (e.g., \"google\", \"github\"). Cannot be used with sso_button_selector.\n\tSSOProvider param.Opt[string] `json:\"sso_provider,omitzero\"`\n\t// Canonical map of field ID to submitted value.\n\tFieldValues map[string]string `json:\"field_values,omitzero\"`\n\t// Map of field name to value\n\tFields map[string]string `json:\"fields,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nRequest to submit field values, click an SSO button, select an MFA method, or select a sign-in option. Prefer canonical selected\\_choice\\_id/field\\_values when the API returns fields/choices; legacy fields/sso\\_button\\_selector/sso\\_provider/mfa\\_option\\_id/sign\\_in\\_option\\_id remain supported during deprecation.\n\n```go\nfunc (r SubmitFieldsRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *SubmitFieldsRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SubmitFieldsResponse struct {\n\t// Whether the submission was accepted for processing\n\tAccepted bool `json:\"accepted\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAccepted    respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nResponse from submitting field values\n\n```go\nfunc (r SubmitFieldsResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *SubmitFieldsResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Tab struct {\n\t// Whether this call opened the tab. For a named executor this happens on its first\n\t// call and after its previous tab was closed. For the default executor it happens\n\t// only when the browser had no open page.\n\tCreated bool `json:\"created\" api:\"required\"`\n\t// CDP page target ID of the tab\n\tTargetID string `json:\"target_id\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCreated     respjson.Field\n\t\tTargetID    respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nThe tab 'page' was bound to for this call. Absent if the call failed before binding a tab.\n\n```go\nfunc (r Tab) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Tab) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Tags map[string]string\n```\n\n```go\ntype Target struct {\n\t// Registrable domain.\n\tDomain string `json:\"domain\" api:\"required\"`\n\t// Full hostname, including subdomain.\n\tHost string `json:\"host\" api:\"required\"`\n\t// Exact normalized scheme, host, port, and path used for lookup.\n\tNormalized string `json:\"normalized\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDomain      respjson.Field\n\t\tHost        respjson.Field\n\t\tNormalized  respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r Target) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Target) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Task struct {\n\t// Unique identifier for the task\n\tID string `json:\"id\" api:\"required\"`\n\t// When the task was created\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// What the task is meant to accomplish\n\tDescription string `json:\"description\" api:\"required\"`\n\t// Caller-defined string key-value pairs for grouping and filtering tasks, such as\n\t// a user or thread ID. At most 20 keys; keys are 1-64 characters, values at most\n\t// 256 characters, and keys and values together at most 4 KB.\n\tMetadata TaskMetadata `json:\"metadata\" api:\"required\"`\n\t// IDs of browsers linked to the task, oldest link first. Linked browsers may since\n\t// have been deleted.\n\tSessionIDs []string `json:\"session_ids\" api:\"required\"`\n\t// When work on the task started\n\tStartedAt time.Time `json:\"started_at\" api:\"required\" format:\"date-time\"`\n\t// Hostname of the website the task targets\n\tTargetWebsite string `json:\"target_website\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID            respjson.Field\n\t\tCreatedAt     respjson.Field\n\t\tDescription   respjson.Field\n\t\tMetadata      respjson.Field\n\t\tSessionIDs    respjson.Field\n\t\tStartedAt     respjson.Field\n\t\tTargetWebsite respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA goal an agent works toward. Reports are submitted against a task, and browsers can be linked to it. Tasks are immutable apart from added browser links.\n\n```go\nfunc (r Task) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Task) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TaskLinkBrowsersParams struct {\n\t// IDs of browsers to link. Each must belong to the task's project; deleted\n\t// browsers can be linked. Browsers already linked are ignored. A task can have at\n\t// most 100 linked browsers.\n\tSessionIDs []string `json:\"session_ids,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r TaskLinkBrowsersParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *TaskLinkBrowsersParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TaskListParams struct {\n\t// Limit the number of tasks to return.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Offset the number of tasks to return.\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Only return tasks linked to this browser ID.\n\tSessionID param.Opt[string] `query:\"session_id,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r TaskListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [TaskListParams](#TaskListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype TaskMetadata map[string]string\n```\n\n```go\ntype TaskNewParams struct {\n\t// What the task is meant to accomplish, at most 4 KB.\n\tDescription string `json:\"description\" api:\"required\"`\n\t// When work on the task started. Defaults to the time the task is created. Must be\n\t// no more than 5 minutes in the future or 30 days in the past.\n\tStartedAt param.Opt[time.Time] `json:\"started_at,omitzero\" format:\"date-time\"`\n\t// Hostname of the website the task targets, without a scheme or path.\n\tTargetWebsite param.Opt[string] `json:\"target_website,omitzero\"`\n\t// Caller-defined string key-value pairs for grouping and filtering tasks, such as\n\t// a user or thread ID. At most 20 keys; keys are 1-64 characters, values at most\n\t// 256 characters, and keys and values together at most 4 KB.\n\tMetadata TaskMetadata `json:\"metadata,omitzero\"`\n\t// IDs of browsers to link to the task. Each must belong to the request's project;\n\t// deleted browsers can be linked.\n\tSessionIDs []string `json:\"session_ids,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r TaskNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *TaskNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TaskService struct {\n\tOptions []option.RequestOption\n}\n```\nDefine tasks that agents work toward and link the browsers they use.\n\nTaskService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewTaskService](#NewTaskService) method instead.\n\n```go\nfunc NewTaskService(opts ...option.RequestOption) (r TaskService)\n```\nNewTaskService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *TaskService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Task, err error)\n```\nRetrieve a task and the IDs of its linked browsers.\n\n```go\nfunc (r *TaskService) LinkBrowsers(ctx context.Context, id string, body TaskLinkBrowsersParams, opts ...option.RequestOption) (res *Task, err error)\n```\nLink browsers to an existing task. Linking a browser that is already linked has no effect, so the call is safe to retry. Returns the updated task.\n\n```go\nfunc (r *TaskService) List(ctx context.Context, query TaskListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[Task], err error)\n```\nList tasks in the request's project, newest first.\n\n```go\nfunc (r *TaskService) ListAutoPaging(ctx context.Context, query TaskListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[Task]\n```\nList tasks in the request's project, newest first.\n\n```go\nfunc (r *TaskService) New(ctx context.Context, body TaskNewParams, opts ...option.RequestOption) (res *Task, err error)\n```\nDefine a task before or while an agent works on it, optionally linking the browsers it uses. Submit reports against the returned task ID.\n\n```go\ntype TelemetryDestinationListParams struct {\n\t// Limit the number of destinations to return.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Exact-match filter on destination name using the database collation. In\n\t// production, matching is case- and accent-insensitive.\n\tName param.Opt[string] `query:\"name,omitzero\" json:\"-\"`\n\t// Offset the number of destinations to return.\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Case-insensitive substring match against destination name or endpoint. IDs match\n\t// by exact value.\n\tQuery param.Opt[string] `query:\"query,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r TelemetryDestinationListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [TelemetryDestinationListParams](#TelemetryDestinationListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype TelemetryDestinationNewParams struct {\n\t// Base endpoint of the OTLP/HTTP collector, without a signal path. Kernel appends\n\t// the signal path itself, so pass `https://api.honeycomb.io` rather than\n\t// `https://api.honeycomb.io/v1/logs`. If your provider's docs give you a\n\t// signal-specific URL, drop the trailing `/v1/logs`, `/v1/traces`, or\n\t// `/v1/metrics` — an endpoint that already carries one is rejected.\n\t//\n\t// Must be http or https, must resolve to a public address, and must carry no query\n\t// string or fragment. Examples: `https://api.honeycomb.io`,\n\t// `https://otlp-gateway-prod-us-east-0.grafana.net/otlp`,\n\t// `https://otlp.datadoghq.com` (Datadog's OTLP intake for US1, not its logs\n\t// intake).\n\tEndpoint string `json:\"endpoint\" api:\"required\"`\n\t// Unique within the organization.\n\tName        string            `json:\"name\" api:\"required\"`\n\tDescription param.Opt[string] `json:\"description,omitzero\"`\n\t// Headers sent with each export request, typically an ingestion key. Encrypted at\n\t// rest and returned redacted. Names and values must be valid HTTP header tokens,\n\t// and the names and values together cannot exceed 8192 bytes. Names are matched\n\t// case-insensitively and stored canonicalized, so supplying two spellings of one\n\t// header is rejected.\n\tHeaders map[string]string `json:\"headers,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r TelemetryDestinationNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *TelemetryDestinationNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TelemetryDestinationService struct {\n\tOptions []option.RequestOption\n}\n```\nStream live telemetry events from a browser session, and manage the destinations sessions export them to.\n\nTelemetryDestinationService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewTelemetryDestinationService](#NewTelemetryDestinationService) method instead.\n\n```go\nfunc NewTelemetryDestinationService(opts ...option.RequestOption) (r TelemetryDestinationService)\n```\nNewTelemetryDestinationService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *TelemetryDestinationService) Delete(ctx context.Context, idOrName string, opts ...option.RequestOption) (err error)\n```\nDelete an OTLP destination. Sessions bound to it are still exporting, so the delete is refused with a 409 while any exist; either wait for those sessions to end or delete them first. It is refused the same way while a managed auth connection still selects it, because that connection re-resolves the destination on every login, and while a managed auth login using it is still in progress. Requires an organization-scoped credential or dashboard authentication; project-scoped credentials receive a 403.\n\n```go\nfunc (r *TelemetryDestinationService) Get(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *OtlpDestination, err error)\n```\nRetrieve a customer-visible OTLP destination in the authenticated organization by its ID or name. Project-scoped credentials can retrieve these destinations for selection by workloads in their project. Non-dashboard reads return header values redacted.\n\n```go\nfunc (r *TelemetryDestinationService) List(ctx context.Context, query TelemetryDestinationListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[OtlpDestination], err error)\n```\nList customer-visible OTLP export destinations in the authenticated organization. Project-scoped credentials can list these destinations for selection by workloads in their project. Non-dashboard reads return header values redacted.\n\n```go\nfunc (r *TelemetryDestinationService) ListAutoPaging(ctx context.Context, query TelemetryDestinationListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[OtlpDestination]\n```\nList customer-visible OTLP export destinations in the authenticated organization. Project-scoped credentials can list these destinations for selection by workloads in their project. Non-dashboard reads return header values redacted.\n\n```go\nfunc (r *TelemetryDestinationService) New(ctx context.Context, body TelemetryDestinationNewParams, opts ...option.RequestOption) (res *OtlpDestination, err error)\n```\nCreate an OTLP export destination in the authenticated organization. Names must be unique within the organization. Requires an organization-scoped credential or dashboard authentication; project-scoped credentials receive a 403.\n\n```go\nfunc (r *TelemetryDestinationService) Update(ctx context.Context, idOrName string, body TelemetryDestinationUpdateParams, opts ...option.RequestOption) (res *OtlpDestination, err error)\n```\nUpdate an OTLP destination. Sessions already exporting to it pick up the new values without restarting, which makes this the way to rotate credentials without interrupting export.\n\nNames must be unique within the organization. Renaming is refused with a 409 while a managed auth connection selects this destination by name, since that connection resolves the name on every login. Every other field, including \\`headers\\`, stays editable. Requires an organization-scoped credential or dashboard authentication; project-scoped credentials receive a 403.\n\n```go\ntype TelemetryDestinationUpdateParams struct {\n\tDescription param.Opt[string] `json:\"description,omitzero\"`\n\t// Base endpoint of the OTLP/HTTP collector, without a signal path. Same rules as\n\t// on create.\n\tEndpoint param.Opt[string] `json:\"endpoint,omitzero\"`\n\tName     param.Opt[string] `json:\"name,omitzero\"`\n\t// Edits stored headers key by key rather than replacing the map. A string value\n\t// adds or replaces that header, `null` deletes it, and any key you omit is left as\n\t// it is. Names are matched case-insensitively, so `authorization` replaces a\n\t// stored `Authorization` rather than adding a second entry. This is the credential\n\t// rotation path; sessions already exporting pick up the new values without\n\t// restarting. Names and values must be valid HTTP header tokens, and the names and\n\t// values together cannot exceed 8192 bytes.\n\tHeaders map[string]string `json:\"headers,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r TelemetryDestinationUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *TelemetryDestinationUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TelemetryService struct {\n\tOptions []option.RequestOption\n\t// Stream live telemetry events from a browser session, and manage the destinations\n\t// sessions export them to.\n\tDestinations TelemetryDestinationService\n}\n```\nTelemetryService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewTelemetryService](#NewTelemetryService) method instead.\n\n```go\nfunc NewTelemetryService(opts ...option.RequestOption) (r TelemetryService)\n```\nNewTelemetryService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\ntype Tool struct {\n\tSource ToolSource `json:\"source\" api:\"required\"`\n\t// Tool metadata follows the\n\t// [MCP Tool definition](https://modelcontextprotocol.io/specification/2025-11-25/server/tools#tool)\n\t// and the\n\t// [WebMCP RegisteredTool definition](https://webmachinelearning.github.io/webmcp/#dictdef-registeredtool).\n\t// outputSchema is optional for page and custom tools.\n\tTool ToolMetadata `json:\"tool\" api:\"required\"`\n\t// Opaque reference for invoking this exact live registration. It becomes invalid\n\t// when its document or browser process is replaced.\n\tToolRef string `json:\"tool_ref\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tSource      respjson.Field\n\t\tTool        respjson.Field\n\t\tToolRef     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r Tool) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Tool) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ToolAnnotations struct {\n\tAutosubmit           bool `json:\"autosubmit\"`\n\tConsequentialHint    bool `json:\"consequentialHint\"`\n\tDestructiveHint      bool `json:\"destructiveHint\"`\n\tIdempotentHint       bool `json:\"idempotentHint\"`\n\tOpenWorldHint        bool `json:\"openWorldHint\"`\n\tReadOnlyHint         bool `json:\"readOnlyHint\"`\n\tUntrustedContentHint bool `json:\"untrustedContentHint\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAutosubmit           respjson.Field\n\t\tConsequentialHint    respjson.Field\n\t\tDestructiveHint      respjson.Field\n\t\tIdempotentHint       respjson.Field\n\t\tOpenWorldHint        respjson.Field\n\t\tReadOnlyHint         respjson.Field\n\t\tUntrustedContentHint respjson.Field\n\t\tExtraFields          map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nTool-provided behavioral hints from the \\[MCP tool specification]([https://modelcontextprotocol.io/specification/2025-11-25/server/tools#tool](https://modelcontextprotocol.io/specification/2025-11-25/server/tools#tool)) and the \\[WebMCP ToolAnnotations definition]([https://webmachinelearning.github.io/webmcp/#dictdef-toolannotations](https://webmachinelearning.github.io/webmcp/#dictdef-toolannotations)). These hints are untrusted and are not enforced by Kernel.\n\n```go\nfunc (r ToolAnnotations) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ToolAnnotations) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ToolFrame struct {\n\t// Monotonically increasing identifier for this embedded frame during the current\n\t// browser process.\n\tFrameID int64 `json:\"frame_id\" api:\"required\"`\n\t// Current frame URL with the fragment omitted.\n\tURL string `json:\"url\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tFrameID     respjson.Field\n\t\tURL         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ToolFrame) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ToolFrame) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ToolMetadata struct {\n\tDescription string         `json:\"description\" api:\"required\"`\n\tInputSchema map[string]any `json:\"inputSchema\" api:\"required\"`\n\tName        string         `json:\"name\" api:\"required\"`\n\t// Tool-provided behavioral hints from the\n\t// [MCP tool specification](https://modelcontextprotocol.io/specification/2025-11-25/server/tools#tool)\n\t// and the\n\t// [WebMCP ToolAnnotations definition](https://webmachinelearning.github.io/webmcp/#dictdef-toolannotations).\n\t// These hints are untrusted and are not enforced by Kernel.\n\tAnnotations  ToolAnnotations `json:\"annotations\"`\n\tOutputSchema map[string]any  `json:\"outputSchema\"`\n\tTitle        string          `json:\"title\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDescription  respjson.Field\n\t\tInputSchema  respjson.Field\n\t\tName         respjson.Field\n\t\tAnnotations  respjson.Field\n\t\tOutputSchema respjson.Field\n\t\tTitle        respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nTool metadata follows the \\[MCP Tool definition]([https://modelcontextprotocol.io/specification/2025-11-25/server/tools#tool](https://modelcontextprotocol.io/specification/2025-11-25/server/tools#tool)) and the \\[WebMCP RegisteredTool definition]([https://webmachinelearning.github.io/webmcp/#dictdef-registeredtool](https://webmachinelearning.github.io/webmcp/#dictdef-registeredtool)). outputSchema is optional for page and custom tools.\n\n```go\nfunc (r ToolMetadata) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ToolMetadata) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ToolSource struct {\n\t// Embedded frame that registered the tool, or null when the top-level page\n\t// registered it.\n\tFrame ToolFrame `json:\"frame\" api:\"required\"`\n\t// Current title of the top-level page.\n\tPageTitle string `json:\"page_title\" api:\"required\"`\n\t// Current URL of the top-level page with the fragment omitted.\n\tPageURL string `json:\"page_url\" api:\"required\"`\n\t// Monotonically increasing identifier for the tab during the current browser\n\t// process.\n\tTabID int64 `json:\"tab_id\" api:\"required\"`\n\t// Monotonically increasing identifier for the browser window during the current\n\t// browser process.\n\tWindowID int64            `json:\"window_id\" api:\"required\"`\n\tCustom   CustomToolSource `json:\"custom\"`\n\t// CDP target ID for a custom tool's registration tab; omitted for page-provided\n\t// tools.\n\tTargetID string `json:\"target_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tFrame       respjson.Field\n\t\tPageTitle   respjson.Field\n\t\tPageURL     respjson.Field\n\t\tTabID       respjson.Field\n\t\tWindowID    respjson.Field\n\t\tCustom      respjson.Field\n\t\tTargetID    respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ToolSource) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ToolSource) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ToolsResponse struct {\n\tTools []Tool `json:\"tools\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tTools       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ToolsResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ToolsResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype UpdateAuditLogExportDestinationRequestParam struct {\n\tBucket param.Opt[string] `json:\"bucket,omitzero\"`\n\t// KMS key ID, alias, or ARN. Set to an empty string to remove the configured KMS\n\t// key; omit or send null to leave unchanged.\n\tKmsKeyID param.Opt[string] `json:\"kms_key_id,omitzero\"`\n\tPrefix   param.Opt[string] `json:\"prefix,omitzero\"`\n\tRegion   param.Opt[string] `json:\"region,omitzero\"`\n\tRoleArn  param.Opt[string] `json:\"role_arn,omitzero\"`\n\t// Any of \"active\", \"paused\".\n\tStatus UpdateAuditLogExportDestinationRequestStatus `json:\"status,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r UpdateAuditLogExportDestinationRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *UpdateAuditLogExportDestinationRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype UpdateAuditLogExportDestinationRequestStatus string\n```\n\n```go\nconst (\n\tUpdateAuditLogExportDestinationRequestStatusActive UpdateAuditLogExportDestinationRequestStatus = \"active\"\n\tUpdateAuditLogExportDestinationRequestStatusPaused UpdateAuditLogExportDestinationRequestStatus = \"paused\"\n)\n```\n\n```go\ntype UpdateCredentialProviderRequestParam struct {\n\t// New service account token (to rotate credentials)\n\tToken param.Opt[string] `json:\"token,omitzero\"`\n\t// How long to cache credential lists\n\tCacheTtlSeconds param.Opt[int64] `json:\"cache_ttl_seconds,omitzero\"`\n\t// Whether the provider is enabled for credential lookups\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// Human-readable name for this provider instance. Surrounding whitespace is\n\t// trimmed and the trimmed value must be non-empty.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// Priority order for credential lookups (lower numbers are checked first)\n\tPriority param.Opt[int64] `json:\"priority,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nRequest to update a credential provider\n\n```go\nfunc (r UpdateCredentialProviderRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *UpdateCredentialProviderRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype UpdateCredentialRequestParam struct {\n\t// If set, indicates this credential should be used with the specified SSO\n\t// provider. Set to empty string or null to remove.\n\tSSOProvider param.Opt[string] `json:\"sso_provider,omitzero\"`\n\t// New name for the credential\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// Number of digits in generated TOTP codes. Requires totp_secret and is ignored\n\t// when an `otpauth://` URI supplies the digit count.\n\tTotpDigits param.Opt[int64] `json:\"totp_digits,omitzero\"`\n\t// TOTP rotation period in seconds. Requires totp_secret and is ignored when an\n\t// `otpauth://` URI supplies the period.\n\tTotpPeriod param.Opt[int64] `json:\"totp_period,omitzero\"`\n\t// Accepts a 16-128 character base32-encoded TOTP secret or an `otpauth://totp/...`\n\t// URI. Only URI parameters present override the corresponding explicit TOTP\n\t// fields. When rotating a raw secret, omitted fields preserve their existing\n\t// values; a new URI defaults unspecified fields to SHA1/6/30. Set to empty string\n\t// to remove the secret and its metadata.\n\tTotpSecret param.Opt[string] `json:\"totp_secret,omitzero\"`\n\t// Field names to remove from the credential's stored values. Removals are applied\n\t// before `values` are merged, so a key present in both is kept with its new value.\n\tRemoveValueKeys []string `json:\"remove_value_keys,omitzero\"`\n\t// HMAC algorithm used to generate TOTP codes. Requires totp_secret and is ignored\n\t// when an `otpauth://` URI supplies the algorithm.\n\t//\n\t// Any of \"SHA1\", \"SHA256\", \"SHA512\".\n\tTotpAlgorithm UpdateCredentialRequestTotpAlgorithm `json:\"totp_algorithm,omitzero\"`\n\t// Field name to value mapping. Values are merged with existing values (new keys\n\t// added, existing keys overwritten).\n\tValues map[string]string `json:\"values,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nRequest to update an existing credential\n\n```go\nfunc (r UpdateCredentialRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *UpdateCredentialRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype UpdateCredentialRequestTotpAlgorithm string\n```\nHMAC algorithm used to generate TOTP codes. Requires totp\\_secret and is ignored when an \\`otpauth://\\` URI supplies the algorithm.\n\n```go\nconst (\n\tUpdateCredentialRequestTotpAlgorithmSha1   UpdateCredentialRequestTotpAlgorithm = \"SHA1\"\n\tUpdateCredentialRequestTotpAlgorithmSha256 UpdateCredentialRequestTotpAlgorithm = \"SHA256\"\n\tUpdateCredentialRequestTotpAlgorithmSha512 UpdateCredentialRequestTotpAlgorithm = \"SHA512\"\n)\n```\n\n```go\ntype UpdateOrgLimitsRequestParam struct {\n\t// Default maximum concurrent browsers for projects without an explicit override.\n\t// Set to 0 to remove the default; omit to leave unchanged. Cannot exceed the\n\t// organization's concurrency limit.\n\tDefaultProjectMaxConcurrentSessions param.Opt[int64] `json:\"default_project_max_concurrent_sessions,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r UpdateOrgLimitsRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *UpdateOrgLimitsRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype UpdateProjectLimitsRequestParam struct {\n\t// Maximum concurrent app invocations for this project. Set to 0 to remove the cap;\n\t// omit to leave unchanged.\n\tMaxConcurrentInvocations param.Opt[int64] `json:\"max_concurrent_invocations,omitzero\"`\n\t// Maximum concurrent browsers for this project, covering both on-demand sessions\n\t// and browser pool reservations. Set to 0 to remove the cap; omit to leave\n\t// unchanged.\n\tMaxConcurrentSessions param.Opt[int64] `json:\"max_concurrent_sessions,omitzero\"`\n\t// Deprecated: pooled browsers now count toward `max_concurrent_sessions`. Requests\n\t// that set this field are rejected with a 400.\n\t//\n\t// Deprecated: deprecated\n\tMaxPooledSessions param.Opt[int64] `json:\"max_pooled_sessions,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r UpdateProjectLimitsRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *UpdateProjectLimitsRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype UpdateProjectRequestParam struct {\n\t// New project name (1-255 Unicode code points; cannot contain `/` or `%`)\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// New project status\n\t//\n\t// Any of \"active\", \"archived\".\n\tStatus UpdateProjectRequestStatus `json:\"status,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r UpdateProjectRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *UpdateProjectRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype UpdateProjectRequestStatus string\n```\nNew project status\n\n```go\nconst (\n\tUpdateProjectRequestStatusActive   UpdateProjectRequestStatus = \"active\"\n\tUpdateProjectRequestStatusArchived UpdateProjectRequestStatus = \"archived\"\n)\n```\n\n```go\ntype Usage struct {\n\t// Number of result URLs for which a Kernel browser retrieval received a response\n\t// from the target, excluding cache-only hits.\n\tContentFetches int64 `json:\"content_fetches\" api:\"required\"`\n\t// Number of result entries returned, including failed entries on the contents\n\t// endpoint.\n\tResultsCount int64 `json:\"results_count\" api:\"required\"`\n\t// Total customer charge in USD when billing data is available.\n\tCost float64 `json:\"cost\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tContentFetches respjson.Field\n\t\tResultsCount   respjson.Field\n\t\tCost           respjson.Field\n\t\tExtraFields    map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r Usage) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Usage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Vault struct {\n\tID        string    `json:\"id\" api:\"required\"`\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Immutable name assigned when the vault is created.\n\tName      string    `json:\"name\" api:\"required\"`\n\tUpdatedAt time.Time `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tCreatedAt   respjson.Field\n\t\tName        respjson.Field\n\t\tUpdatedAt   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r Vault) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Vault) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultCardAliases struct {\n\tCvc      string `json:\"cvc\" api:\"required\"`\n\tExpMonth string `json:\"exp_month\" api:\"required\"`\n\tExpYear  string `json:\"exp_year\" api:\"required\"`\n\tNumber   string `json:\"number\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCvc         respjson.Field\n\t\tExpMonth    respjson.Field\n\t\tExpYear     respjson.Field\n\t\tNumber      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r VaultCardAliases) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultCardAliases) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultCheckoutContextEnvironment string\n```\nUse production or sandbox for Square, Braintree, Worldpay and Adyen; shared for Bambora and Mercado Pago. Shared endpoints do not establish test mode. Merchant credentials/configuration determine processor test mode, independently of the AgentCard credential mode.\n\n```go\nconst (\n\tVaultCheckoutContextEnvironmentProduction VaultCheckoutContextEnvironment = \"production\"\n\tVaultCheckoutContextEnvironmentSandbox    VaultCheckoutContextEnvironment = \"sandbox\"\n\tVaultCheckoutContextEnvironmentShared     VaultCheckoutContextEnvironment = \"shared\"\n)\n```\n\n```go\ntype VaultCheckoutContextParam struct {\n\t// Active browser session with this vault bound to it.\n\tBrowserID string `json:\"browser_id\" api:\"required\"`\n\t// Use production or sandbox for Square, Braintree, Worldpay and Adyen; shared for\n\t// Bambora and Mercado Pago. Shared endpoints do not establish test mode. Merchant\n\t// credentials/configuration determine processor test mode, independently of the\n\t// AgentCard credential mode.\n\t//\n\t// Any of \"production\", \"sandbox\", \"shared\".\n\tEnvironment VaultCheckoutContextEnvironment `json:\"environment,omitzero\" api:\"required\"`\n\t// Canonical HTTPS origin of the top-level merchant document, not a processor\n\t// iframe. HTTP localhost is accepted for tests.\n\tMerchantOrigin string `json:\"merchant_origin\" api:\"required\"`\n\t// Checkout processor. Omit for Square compatibility. Adyen supports fresh-card\n\t// Sessions requests on Adyen hosts only. Use public dummy card fields, not vault\n\t// aliases. The unique armed preparation is associated with the subsequent eligible\n\t// request from this browser and declared merchant origin; competing preparations\n\t// are rejected.\n\t//\n\t// Any of \"square\", \"braintree\", \"worldpay\", \"bambora\", \"mercado_pago\", \"adyen\".\n\tPsp AgentcardPreparedProcessor `json:\"psp,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nRequired when preparing an unused AgentCard card for a supported checkout processor. Consent is bound to this browser and declared merchant origin, not a tab. Wait for the item's ready\\_to\\_submit status before native Pay and submit within its readiness deadline. Unused preparations expire automatically; every preparation is single-use, including after failure or expiry.\n\nThe properties BrowserID, Environment, MerchantOrigin are required.\n\n```go\nfunc (r VaultCheckoutContextParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultCheckoutContextParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultEncryptionKey struct {\n\t// JWE key management algorithm.\n\t//\n\t// Any of \"ECDH-ES\".\n\tAlg VaultEncryptionKeyAlg `json:\"alg\" api:\"required\"`\n\t// JWE content encryption algorithm.\n\t//\n\t// Any of \"A256GCM\".\n\tEnc VaultEncryptionKeyEnc `json:\"enc\" api:\"required\"`\n\t// P-256 public key in JWK form.\n\tJwk VaultEncryptionKeyJwk `json:\"jwk\" api:\"required\"`\n\t// Key ID. Set it as the kid protected header of every encrypted_value.\n\tKid string `json:\"kid\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAlg         respjson.Field\n\t\tEnc         respjson.Field\n\t\tJwk         respjson.Field\n\t\tKid         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPublic key for encrypted\\_value on credential fields. Use this only if you run your own credential collection web app and want values encrypted in the browser, sent to your backend still encrypted, and forwarded to Kernel's API still encrypted. In every other case, including server-side code that already holds the plaintext, use value. Each vault has its own key; a value encrypted for one vault is rejected by every other vault. The key is created on first request and stays the same for the vault's lifetime, so it may be cached.\n\n```go\nfunc (r VaultEncryptionKey) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultEncryptionKey) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultEncryptionKeyAlg string\n```\nJWE key management algorithm.\n\n```go\nconst (\n\tVaultEncryptionKeyAlgEcdhEs VaultEncryptionKeyAlg = \"ECDH-ES\"\n)\n```\n\n```go\ntype VaultEncryptionKeyEnc string\n```\nJWE content encryption algorithm.\n\n```go\nconst (\n\tVaultEncryptionKeyEncA256Gcm VaultEncryptionKeyEnc = \"A256GCM\"\n)\n```\n\n```go\ntype VaultEncryptionKeyJwk struct {\n\t// Any of \"P-256\".\n\tCrv string `json:\"crv\" api:\"required\"`\n\t// Any of \"EC\".\n\tKty string `json:\"kty\" api:\"required\"`\n\t// Base64url-encoded x coordinate.\n\tX string `json:\"x\" api:\"required\"`\n\t// Base64url-encoded y coordinate.\n\tY string `json:\"y\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCrv         respjson.Field\n\t\tKty         respjson.Field\n\t\tX           respjson.Field\n\t\tY           respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nP-256 public key in JWK form.\n\n```go\nfunc (r VaultEncryptionKeyJwk) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultEncryptionKeyJwk) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultFillFieldFormat string\n```\nRequired only for a card's combined expiration field. Forbidden for other card fields and all credential fields.\n\n```go\nconst (\n\tVaultFillFieldFormatMmYy   VaultFillFieldFormat = \"MM/YY\"\n\tVaultFillFieldFormatMmYyyy VaultFillFieldFormat = \"MM/YYYY\"\n)\n```\n\n```go\ntype VaultFillFieldParam struct {\n\t// A credential field name from the item's declared fields (Kernel) or state.fields\n\t// from a single-item read (managed auth), or a supported card field. Unset\n\t// credential fields cannot be filled.\n\tField    string `json:\"field\" api:\"required\"`\n\tSelector string `json:\"selector\" api:\"required\"`\n\t// Required only for a card's combined expiration field. Forbidden for other card\n\t// fields and all credential fields.\n\t//\n\t// Any of \"MM/YY\", \"MM/YYYY\".\n\tFormat VaultFillFieldFormat `json:\"format,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Field, Selector are required.\n\n```go\nfunc (r VaultFillFieldParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultFillFieldParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultFillFieldResult struct {\n\t// Zero-based index into the request fields array.\n\tIndex int64 `json:\"index\" api:\"required\"`\n\t// Filled means the fill action completed, not that the website retained or\n\t// accepted the value.\n\t//\n\t// Any of \"filled\", \"failed\", \"not_attempted\", \"unknown\".\n\tStatus VaultFillFieldResultStatus `json:\"status\" api:\"required\"`\n\t// Present only for failed or unknown fields. Never includes secret values, DOM\n\t// content, or raw browser errors.\n\t//\n\t// Any of \"target_changed\", \"element_not_found\", \"ambiguous_selector\",\n\t// \"element_not_editable\", \"option_not_found\", \"timeout\", \"execution_failed\".\n\tErrorCode VaultFillFieldResultErrorCode `json:\"error_code\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tIndex       respjson.Field\n\t\tStatus      respjson.Field\n\t\tErrorCode   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r VaultFillFieldResult) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultFillFieldResult) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultFillFieldResultErrorCode string\n```\nPresent only for failed or unknown fields. Never includes secret values, DOM content, or raw browser errors.\n\n```go\nconst (\n\tVaultFillFieldResultErrorCodeTargetChanged      VaultFillFieldResultErrorCode = \"target_changed\"\n\tVaultFillFieldResultErrorCodeElementNotFound    VaultFillFieldResultErrorCode = \"element_not_found\"\n\tVaultFillFieldResultErrorCodeAmbiguousSelector  VaultFillFieldResultErrorCode = \"ambiguous_selector\"\n\tVaultFillFieldResultErrorCodeElementNotEditable VaultFillFieldResultErrorCode = \"element_not_editable\"\n\tVaultFillFieldResultErrorCodeOptionNotFound     VaultFillFieldResultErrorCode = \"option_not_found\"\n\tVaultFillFieldResultErrorCodeTimeout            VaultFillFieldResultErrorCode = \"timeout\"\n\tVaultFillFieldResultErrorCodeExecutionFailed    VaultFillFieldResultErrorCode = \"execution_failed\"\n)\n```\n\n```go\ntype VaultFillFieldResultStatus string\n```\nFilled means the fill action completed, not that the website retained or accepted the value.\n\n```go\nconst (\n\tVaultFillFieldResultStatusFilled       VaultFillFieldResultStatus = \"filled\"\n\tVaultFillFieldResultStatusFailed       VaultFillFieldResultStatus = \"failed\"\n\tVaultFillFieldResultStatusNotAttempted VaultFillFieldResultStatus = \"not_attempted\"\n\tVaultFillFieldResultStatusUnknown      VaultFillFieldResultStatus = \"unknown\"\n)\n```\n\n```go\ntype VaultItemActionCardEnrollment struct {\n\tName constant.CardEnrollment `json:\"name\" default:\"card_enrollment\"`\n\tURL  string                  `json:\"url\" api:\"required\" format:\"uri\"`\n\t// Secret bearer capability for embedded card capture with @onkernel/vault-react.\n\t// Present only for Kernel wallets; never for AgentCard. Treat it like the\n\t// enrollment URL and do not log or persist it in browser storage.\n\tCaptureToken string `json:\"capture_token\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tName         respjson.Field\n\t\tURL          respjson.Field\n\t\tCaptureToken respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r VaultItemActionCardEnrollment) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultItemActionCardEnrollment) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemActionCollect struct {\n\tName constant.Collect `json:\"name\" default:\"collect\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tName        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r VaultItemActionCollect) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultItemActionCollect) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemActionEmbeddedCeremony struct {\n\tName constant.EmbeddedCeremony `json:\"name\" default:\"embedded_ceremony\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tName        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r VaultItemActionEmbeddedCeremony) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultItemActionEmbeddedCeremony) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemActionLinkOAuth struct {\n\tName constant.LinkOAuth `json:\"name\" default:\"link_oauth\"`\n\tURL  string             `json:\"url\" api:\"required\" format:\"uri\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tName        respjson.Field\n\t\tURL         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r VaultItemActionLinkOAuth) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultItemActionLinkOAuth) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemActionMfa struct {\n\tName constant.Mfa `json:\"name\" default:\"mfa\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tName        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r VaultItemActionMfa) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultItemActionMfa) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemActionPushApproval struct {\n\tName constant.PushApproval `json:\"name\" default:\"push_approval\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tName        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r VaultItemActionPushApproval) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultItemActionPushApproval) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemActionShopPayOAuth struct {\n\tName constant.ShopPayOAuth `json:\"name\" default:\"shop_pay_oauth\"`\n\t// Shop sign-in page where the shopper connects their Shop account to Kernel.\n\tURL string `json:\"url\" api:\"required\" format:\"uri\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tName        respjson.Field\n\t\tURL         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r VaultItemActionShopPayOAuth) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultItemActionShopPayOAuth) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemActionSpendApproval struct {\n\tName constant.SpendApproval `json:\"name\" default:\"spend_approval\"`\n\tURL  string                 `json:\"url\" api:\"required\" format:\"uri\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tName        respjson.Field\n\t\tURL         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r VaultItemActionSpendApproval) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultItemActionSpendApproval) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemActionUnion struct {\n\t// Any of \"link_oauth\", \"shop_pay_oauth\", \"1password_oauth\", \"spend_approval\",\n\t// \"push_approval\", \"collect\", \"mfa\", \"embedded_ceremony\", \"card_enrollment\".\n\tName string `json:\"name\"`\n\tURL  string `json:\"url\"`\n\t// This field is from variant [OnePasswordOAuthAction].\n\tConnectURL string `json:\"connect_url\"`\n\t// This field is from variant [VaultItemActionCardEnrollment].\n\tCaptureToken string `json:\"capture_token\"`\n\tJSON         struct {\n\t\tName         respjson.Field\n\t\tURL          respjson.Field\n\t\tConnectURL   respjson.Field\n\t\tCaptureToken respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemActionUnion contains all possible properties and values from [VaultItemActionLinkOAuth](#VaultItemActionLinkOAuth), [VaultItemActionShopPayOAuth](#VaultItemActionShopPayOAuth), [OnePasswordOAuthAction](#OnePasswordOAuthAction), [VaultItemActionSpendApproval](#VaultItemActionSpendApproval), [VaultItemActionPushApproval](#VaultItemActionPushApproval), [VaultItemActionCollect](#VaultItemActionCollect), [VaultItemActionMfa](#VaultItemActionMfa), [VaultItemActionEmbeddedCeremony](#VaultItemActionEmbeddedCeremony), [VaultItemActionCardEnrollment](#VaultItemActionCardEnrollment).\n\nUse the [VaultItemActionUnion.AsAny](#VaultItemActionUnion.AsAny) method to switch on the variant.\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u VaultItemActionUnion) As1passwordOAuth() (v OnePasswordOAuthAction)\n```\n\n```go\nfunc (u VaultItemActionUnion) AsAny() anyVaultItemAction\n```\nUse the following switch statement to find the correct variant\n\n\tswitch variant := VaultItemActionUnion.AsAny().(type) {\n\tcase kernel.VaultItemActionLinkOAuth:\n\tcase kernel.VaultItemActionShopPayOAuth:\n\tcase kernel.OnePasswordOAuthAction:\n\tcase kernel.VaultItemActionSpendApproval:\n\tcase kernel.VaultItemActionPushApproval:\n\tcase kernel.VaultItemActionCollect:\n\tcase kernel.VaultItemActionMfa:\n\tcase kernel.VaultItemActionEmbeddedCeremony:\n\tcase kernel.VaultItemActionCardEnrollment:\n\tdefault:\n\t  fmt.Errorf(\"no variant present\")\n\t}\n\n```go\nfunc (u VaultItemActionUnion) AsCardEnrollment() (v VaultItemActionCardEnrollment)\n```\n\n```go\nfunc (u VaultItemActionUnion) AsCollect() (v VaultItemActionCollect)\n```\n\n```go\nfunc (u VaultItemActionUnion) AsEmbeddedCeremony() (v VaultItemActionEmbeddedCeremony)\n```\n\n```go\nfunc (u VaultItemActionUnion) AsLinkOAuth() (v VaultItemActionLinkOAuth)\n```\n\n```go\nfunc (u VaultItemActionUnion) AsMfa() (v VaultItemActionMfa)\n```\n\n```go\nfunc (u VaultItemActionUnion) AsPushApproval() (v VaultItemActionPushApproval)\n```\n\n```go\nfunc (u VaultItemActionUnion) AsShopPayOAuth() (v VaultItemActionShopPayOAuth)\n```\n\n```go\nfunc (u VaultItemActionUnion) AsSpendApproval() (v VaultItemActionSpendApproval)\n```\n\n```go\nfunc (u VaultItemActionUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultItemActionUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemCard struct {\n\tID                  string                            `json:\"id\" api:\"required\"`\n\tAvailableExpansions []VaultItemCardAvailableExpansion `json:\"available_expansions\" api:\"required\"`\n\tAvailableOperations []VaultItemCardAvailableOperation `json:\"available_operations\" api:\"required\"`\n\tCreatedAt           time.Time                         `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Immutable item key assigned when the item is created.\n\tKey string `json:\"key\" api:\"required\"`\n\t// Live Link card request. Test-mode card creation is not supported. The spec can\n\t// be changed with PATCH until the card is authorized at a checkout. Authorize it\n\t// with the browser at final checkout: Kernel inspects the checkout through WebMCP\n\t// and internally chooses a merchant-bound Link Pay Token when supported or a\n\t// virtual card otherwise. Callers do not choose how the credential is delivered;\n\t// after authorize, state.credential_type reports it.\n\tSpec CardVaultItemSpecUnion `json:\"spec\" api:\"required\"`\n\t// Issued Link cards retain encrypted card material for the fill operation. Link\n\t// cards do not expose aliases or support egress substitution.\n\tState     CardVaultItemStateUnion `json:\"state\" api:\"required\"`\n\tType      constant.Card           `json:\"type\" default:\"card\"`\n\tUpdatedAt time.Time               `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\tAction    VaultItemActionUnion    `json:\"action\"`\n\tExpiresAt time.Time               `json:\"expires_at\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                  respjson.Field\n\t\tAvailableExpansions respjson.Field\n\t\tAvailableOperations respjson.Field\n\t\tCreatedAt           respjson.Field\n\t\tKey                 respjson.Field\n\t\tSpec                respjson.Field\n\t\tState               respjson.Field\n\t\tType                respjson.Field\n\t\tUpdatedAt           respjson.Field\n\t\tAction              respjson.Field\n\t\tExpiresAt           respjson.Field\n\t\tExtraFields         map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r VaultItemCard) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultItemCard) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemCardAvailableExpansion struct {\n\tDescription string `json:\"description\" api:\"required\"`\n\t// Any of \"payment_methods\", \"link_user_info\", \"link_shipping_addresses\".\n\tType string `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDescription respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nLive data that can currently be requested by passing its type to the item GET expand parameter.\n\n```go\nfunc (r VaultItemCardAvailableExpansion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultItemCardAvailableExpansion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemCardAvailableOperation struct {\n\tDescription string `json:\"description\" api:\"required\"`\n\t// Any of \"authorize\", \"restart_verification\", \"confirm_transaction\", \"collect\",\n\t// \"prepare_checkout\", \"fill\", \"arm_passkey\", \"register_passkey\", \"disarm_passkey\",\n\t// \"1pw_create_access_request\", \"1pw_access_request_status\", \"1pw_fill\",\n\t// \"1pw_recover\", \"1pw_disconnect\", \"1pw_update_access_token\",\n\t// \"update_access_token\", \"webmcp_invoke\", \"add_payment_method\",\n\t// \"remove_payment_method\", \"link_balance_setup\".\n\tType string `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDescription respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn operation that is currently valid for this item. Read the description before invoking it through the item operations endpoint.\n\n```go\nfunc (r VaultItemCardAvailableOperation) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultItemCardAvailableOperation) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemDeleteParams struct {\n\tIDOrName string `path:\"id_or_name\" api:\"required\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype VaultItemEvent struct {\n\tID        string    `json:\"id\" api:\"required\"`\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\tName      string    `json:\"name\" api:\"required\"`\n\t// Browser session associated with the event, when applicable.\n\tBrowserID string         `json:\"browser_id\"`\n\tData      map[string]any `json:\"data\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tCreatedAt   respjson.Field\n\t\tName        respjson.Field\n\t\tBrowserID   respjson.Field\n\t\tData        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r VaultItemEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultItemEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemEventsParams struct {\n\tIDOrName string `path:\"id_or_name\" api:\"required\" json:\"-\"`\n\t// Return events after this event ID.\n\tAfter param.Opt[string] `query:\"after,omitzero\" json:\"-\"`\n\t// When true, also finds deleted items, and deleted vaults by ID only. `key` then\n\t// also accepts an item ID, which takes precedence over a key with the same value;\n\t// the lookup order is the item ID, then the live item with that key, then the most\n\t// recently deleted one. `wait` is ignored for a deleted item or vault.\n\tIncludeDeleted param.Opt[bool] `query:\"include_deleted,omitzero\" json:\"-\"`\n\t// Long-poll for new events for up to this many seconds.\n\tWait param.Opt[int64] `query:\"wait,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r VaultItemEventsParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [VaultItemEventsParams](#VaultItemEventsParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype VaultItemGetParams struct {\n\tIDOrName string `path:\"id_or_name\" api:\"required\" json:\"-\"`\n\t// Hold for up to this many seconds while the item is pending authorization,\n\t// approval, or credential collection. Return the current item when ready or when\n\t// the wait elapses. This does not wait for edits to an already-ready credential;\n\t// poll GET without wait and compare version to observe changes after collect.\n\t// Managed auth credentials are created ready, so wait returns immediately.\n\tWait param.Opt[int64] `query:\"wait,omitzero\" json:\"-\"`\n\t// Live fields advertised by `available_expansions` to include in `expanded`.\n\t//\n\t// Any of \"payment_methods\", \"link_user_info\", \"link_shipping_addresses\".\n\tExpand []string `query:\"expand,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r VaultItemGetParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [VaultItemGetParams](#VaultItemGetParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype VaultItemOperationResponseCardVaultItem struct {\n\tID                  string                                                      `json:\"id\" api:\"required\"`\n\tAvailableExpansions []VaultItemOperationResponseCardVaultItemAvailableExpansion `json:\"available_expansions\" api:\"required\"`\n\tAvailableOperations []VaultItemOperationResponseCardVaultItemAvailableOperation `json:\"available_operations\" api:\"required\"`\n\tCreatedAt           time.Time                                                   `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Immutable item key assigned when the item is created.\n\tKey string `json:\"key\" api:\"required\"`\n\t// Live Link card request. Test-mode card creation is not supported. The spec can\n\t// be changed with PATCH until the card is authorized at a checkout. Authorize it\n\t// with the browser at final checkout: Kernel inspects the checkout through WebMCP\n\t// and internally chooses a merchant-bound Link Pay Token when supported or a\n\t// virtual card otherwise. Callers do not choose how the credential is delivered;\n\t// after authorize, state.credential_type reports it.\n\tSpec CardVaultItemSpecUnion `json:\"spec\" api:\"required\"`\n\t// Issued Link cards retain encrypted card material for the fill operation. Link\n\t// cards do not expose aliases or support egress substitution.\n\tState CardVaultItemStateUnion `json:\"state\" api:\"required\"`\n\t// Any of \"card\".\n\tType      string               `json:\"type\" api:\"required\"`\n\tUpdatedAt time.Time            `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\tAction    VaultItemActionUnion `json:\"action\"`\n\tExpiresAt time.Time            `json:\"expires_at\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                  respjson.Field\n\t\tAvailableExpansions respjson.Field\n\t\tAvailableOperations respjson.Field\n\t\tCreatedAt           respjson.Field\n\t\tKey                 respjson.Field\n\t\tSpec                respjson.Field\n\t\tState               respjson.Field\n\t\tType                respjson.Field\n\t\tUpdatedAt           respjson.Field\n\t\tAction              respjson.Field\n\t\tExpiresAt           respjson.Field\n\t\tExtraFields         map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r VaultItemOperationResponseCardVaultItem) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultItemOperationResponseCardVaultItem) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemOperationResponseCardVaultItemAvailableExpansion struct {\n\tDescription string `json:\"description\" api:\"required\"`\n\t// Any of \"payment_methods\", \"link_user_info\", \"link_shipping_addresses\".\n\tType string `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDescription respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nLive data that can currently be requested by passing its type to the item GET expand parameter.\n\n```go\nfunc (r VaultItemOperationResponseCardVaultItemAvailableExpansion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultItemOperationResponseCardVaultItemAvailableExpansion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemOperationResponseCardVaultItemAvailableOperation struct {\n\tDescription string `json:\"description\" api:\"required\"`\n\t// Any of \"authorize\", \"restart_verification\", \"confirm_transaction\", \"collect\",\n\t// \"prepare_checkout\", \"fill\", \"arm_passkey\", \"register_passkey\", \"disarm_passkey\",\n\t// \"1pw_create_access_request\", \"1pw_access_request_status\", \"1pw_fill\",\n\t// \"1pw_recover\", \"1pw_disconnect\", \"1pw_update_access_token\",\n\t// \"update_access_token\", \"webmcp_invoke\", \"add_payment_method\",\n\t// \"remove_payment_method\", \"link_balance_setup\".\n\tType string `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDescription respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn operation that is currently valid for this item. Read the description before invoking it through the item operations endpoint.\n\n```go\nfunc (r VaultItemOperationResponseCardVaultItemAvailableOperation) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultItemOperationResponseCardVaultItemAvailableOperation) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemOperationResponseUnion struct {\n\tID string `json:\"id\"`\n\t// This field is a union of\n\t// [[]VaultItemOperationResponseWalletVaultItemAvailableExpansion],\n\t// [[]VaultItemOperationResponseCardVaultItemAvailableExpansion],\n\t// [[]PaymentRequestVaultItemAvailableExpansion],\n\t// [[]CredentialAccountVaultItemAvailableExpansion],\n\t// [[]CredentialVaultItemAvailableExpansion]\n\tAvailableExpansions VaultItemOperationResponseUnionAvailableExpansions `json:\"available_expansions\"`\n\t// This field is a union of\n\t// [[]VaultItemOperationResponseWalletVaultItemAvailableOperation],\n\t// [[]VaultItemOperationResponseCardVaultItemAvailableOperation],\n\t// [[]PaymentRequestVaultItemAvailableOperation],\n\t// [[]CredentialAccountVaultItemAvailableOperation],\n\t// [[]CredentialVaultItemAvailableOperation]\n\tAvailableOperations VaultItemOperationResponseUnionAvailableOperations `json:\"available_operations\"`\n\tCreatedAt           time.Time                                          `json:\"created_at\"`\n\tKey                 string                                             `json:\"key\"`\n\t// This field is a union of [WalletVaultItemSpecUnion], [CardVaultItemSpecUnion],\n\t// [PaymentRequestVaultItemSpecUnion], [OnePasswordCredentialAccountSpec],\n\t// [CredentialVaultItemSpecUnion]\n\tSpec VaultItemOperationResponseUnionSpec `json:\"spec\"`\n\t// This field is a union of [WalletVaultItemStateUnion], [CardVaultItemStateUnion],\n\t// [PaymentRequestVaultItemStateUnion], [OnePasswordCredentialAccountState],\n\t// [CredentialVaultItemStateUnion]\n\tState     VaultItemOperationResponseUnionState `json:\"state\"`\n\tType      string                               `json:\"type\"`\n\tUpdatedAt time.Time                            `json:\"updated_at\"`\n\t// This field is a union of [VaultItemActionUnion], [OnePasswordOAuthAction],\n\t// [CredentialVaultItemActionUnion]\n\tAction VaultItemOperationResponseUnionAction `json:\"action\"`\n\t// This field is from variant [VaultItemOperationResponseWalletVaultItem].\n\tDescription string `json:\"description\"`\n\t// This field is from variant [VaultItemOperationResponseWalletVaultItem].\n\tExpanded  VaultItemOperationResponseWalletVaultItemExpanded `json:\"expanded\"`\n\tExpiresAt time.Time                                         `json:\"expires_at\"`\n\t// This field is from variant [CredentialVaultItem].\n\tVersion int64 `json:\"version\"`\n\t// This field is from variant [FillVaultItemOperationResult].\n\tFields []VaultFillFieldResult `json:\"fields\"`\n\tStatus string                 `json:\"status\"`\n\t// This field is from variant [PasskeyVaultItemOperationResult].\n\tRpID string `json:\"rp_id\"`\n\t// This field is from variant [OnePasswordFillVaultItemOperationResult].\n\tErrorCode string `json:\"error_code\"`\n\t// This field is from variant [WebmcpInvokeVaultItemOperationResult].\n\tErrorText string `json:\"error_text\"`\n\t// This field is from variant [WebmcpInvokeVaultItemOperationResult].\n\tInvocationID string `json:\"invocation_id\"`\n\t// This field is from variant [WebmcpInvokeVaultItemOperationResult].\n\tOutput any `json:\"output\"`\n\t// This field is from variant [AddPaymentMethodVaultItemOperationResult].\n\tPaymentMethod VaultPaymentMethod `json:\"payment_method\"`\n\t// This field is from variant [RemovePaymentMethodVaultItemOperationResult].\n\tPaymentMethodID string `json:\"payment_method_id\"`\n\t// This field is from variant [LinkBalanceSetupVaultItemOperationResult].\n\tURL  string `json:\"url\"`\n\tJSON struct {\n\t\tID                  respjson.Field\n\t\tAvailableExpansions respjson.Field\n\t\tAvailableOperations respjson.Field\n\t\tCreatedAt           respjson.Field\n\t\tKey                 respjson.Field\n\t\tSpec                respjson.Field\n\t\tState               respjson.Field\n\t\tType                respjson.Field\n\t\tUpdatedAt           respjson.Field\n\t\tAction              respjson.Field\n\t\tDescription         respjson.Field\n\t\tExpanded            respjson.Field\n\t\tExpiresAt           respjson.Field\n\t\tVersion             respjson.Field\n\t\tFields              respjson.Field\n\t\tStatus              respjson.Field\n\t\tRpID                respjson.Field\n\t\tErrorCode           respjson.Field\n\t\tErrorText           respjson.Field\n\t\tInvocationID        respjson.Field\n\t\tOutput              respjson.Field\n\t\tPaymentMethod       respjson.Field\n\t\tPaymentMethodID     respjson.Field\n\t\tURL                 respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemOperationResponseUnion contains all possible properties and values from [VaultItemOperationResponseWalletVaultItem](#VaultItemOperationResponseWalletVaultItem), [VaultItemOperationResponseCardVaultItem](#VaultItemOperationResponseCardVaultItem), [PaymentRequestVaultItem](#PaymentRequestVaultItem), [CredentialAccountVaultItem](#CredentialAccountVaultItem), [CredentialVaultItem](#CredentialVaultItem), [FillVaultItemOperationResult](#FillVaultItemOperationResult), [PasskeyVaultItemOperationResult](#PasskeyVaultItemOperationResult), [OnePasswordFillVaultItemOperationResult](#OnePasswordFillVaultItemOperationResult), [WebmcpInvokeVaultItemOperationResult](#WebmcpInvokeVaultItemOperationResult), [AddPaymentMethodVaultItemOperationResult](#AddPaymentMethodVaultItemOperationResult), [RemovePaymentMethodVaultItemOperationResult](#RemovePaymentMethodVaultItemOperationResult), [LinkBalanceSetupVaultItemOperationResult](#LinkBalanceSetupVaultItemOperationResult).\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u VaultItemOperationResponseUnion) AsAddPaymentMethodVaultItemOperationResult() (v AddPaymentMethodVaultItemOperationResult)\n```\n\n```go\nfunc (u VaultItemOperationResponseUnion) AsCredentialAccountVaultItem() (v CredentialAccountVaultItem)\n```\n\n```go\nfunc (u VaultItemOperationResponseUnion) AsCredentialVaultItem() (v CredentialVaultItem)\n```\n\n```go\nfunc (u VaultItemOperationResponseUnion) AsFillVaultItemOperationResult() (v FillVaultItemOperationResult)\n```\n\n```go\nfunc (u VaultItemOperationResponseUnion) AsLinkBalanceSetupVaultItemOperationResult() (v LinkBalanceSetupVaultItemOperationResult)\n```\n\n```go\nfunc (u VaultItemOperationResponseUnion) AsOnePasswordFillVaultItemOperationResult() (v OnePasswordFillVaultItemOperationResult)\n```\n\n```go\nfunc (u VaultItemOperationResponseUnion) AsPasskeyVaultItemOperationResult() (v PasskeyVaultItemOperationResult)\n```\n\n```go\nfunc (u VaultItemOperationResponseUnion) AsPaymentRequestVaultItem() (v PaymentRequestVaultItem)\n```\n\n```go\nfunc (u VaultItemOperationResponseUnion) AsRemovePaymentMethodVaultItemOperationResult() (v RemovePaymentMethodVaultItemOperationResult)\n```\n\n```go\nfunc (u VaultItemOperationResponseUnion) AsVaultItemOperationResponseCardVaultItem() (v VaultItemOperationResponseCardVaultItem)\n```\n\n```go\nfunc (u VaultItemOperationResponseUnion) AsVaultItemOperationResponseWalletVaultItem() (v VaultItemOperationResponseWalletVaultItem)\n```\n\n```go\nfunc (u VaultItemOperationResponseUnion) AsWebmcpInvokeVaultItemOperationResult() (v WebmcpInvokeVaultItemOperationResult)\n```\n\n```go\nfunc (u VaultItemOperationResponseUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultItemOperationResponseUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemOperationResponseUnionAction struct {\n\tName string `json:\"name\"`\n\tURL  string `json:\"url\"`\n\t// This field is from variant [VaultItemActionUnion], [OnePasswordOAuthAction].\n\tConnectURL string `json:\"connect_url\"`\n\t// This field is from variant [VaultItemActionUnion].\n\tCaptureToken string `json:\"capture_token\"`\n\t// This field is from variant [CredentialVaultItemActionUnion].\n\tExpiresAt time.Time `json:\"expires_at\"`\n\t// This field is from variant [CredentialVaultItemActionUnion].\n\tAccessRequestReference string `json:\"access_request_reference\"`\n\t// This field is from variant [CredentialVaultItemActionUnion].\n\tInstructions string `json:\"instructions\"`\n\tJSON         struct {\n\t\tName                   respjson.Field\n\t\tURL                    respjson.Field\n\t\tConnectURL             respjson.Field\n\t\tCaptureToken           respjson.Field\n\t\tExpiresAt              respjson.Field\n\t\tAccessRequestReference respjson.Field\n\t\tInstructions           respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemOperationResponseUnionAction is an implicit subunion of [VaultItemOperationResponseUnion](#VaultItemOperationResponseUnion). VaultItemOperationResponseUnionAction provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [VaultItemOperationResponseUnion](#VaultItemOperationResponseUnion).\n\n```go\nfunc (r *VaultItemOperationResponseUnionAction) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemOperationResponseUnionAvailableExpansions struct {\n\t// This field will be present if the value is a\n\t// [[]VaultItemOperationResponseWalletVaultItemAvailableExpansion] instead of an\n\t// object.\n\tOfVaultItemOperationResponseWalletVaultItemAvailableExpansions []VaultItemOperationResponseWalletVaultItemAvailableExpansion `json:\",inline\"`\n\t// This field will be present if the value is a\n\t// [[]VaultItemOperationResponseCardVaultItemAvailableExpansion] instead of an\n\t// object.\n\tOfVaultItemOperationResponseCardVaultItemAvailableExpansions []VaultItemOperationResponseCardVaultItemAvailableExpansion `json:\",inline\"`\n\t// This field will be present if the value is a\n\t// [[]PaymentRequestVaultItemAvailableExpansion] instead of an object.\n\tOfPaymentRequestVaultItemAvailableExpansions []PaymentRequestVaultItemAvailableExpansion `json:\",inline\"`\n\t// This field will be present if the value is a\n\t// [[]CredentialAccountVaultItemAvailableExpansion] instead of an object.\n\tOfCredentialAccountVaultItemAvailableExpansions []CredentialAccountVaultItemAvailableExpansion `json:\",inline\"`\n\t// This field will be present if the value is a\n\t// [[]CredentialVaultItemAvailableExpansion] instead of an object.\n\tOfCredentialVaultItemAvailableExpansions []CredentialVaultItemAvailableExpansion `json:\",inline\"`\n\tJSON                                     struct {\n\t\tOfVaultItemOperationResponseWalletVaultItemAvailableExpansions respjson.Field\n\t\tOfVaultItemOperationResponseCardVaultItemAvailableExpansions   respjson.Field\n\t\tOfPaymentRequestVaultItemAvailableExpansions                   respjson.Field\n\t\tOfCredentialAccountVaultItemAvailableExpansions                respjson.Field\n\t\tOfCredentialVaultItemAvailableExpansions                       respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemOperationResponseUnionAvailableExpansions is an implicit subunion of [VaultItemOperationResponseUnion](#VaultItemOperationResponseUnion). VaultItemOperationResponseUnionAvailableExpansions provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [VaultItemOperationResponseUnion](#VaultItemOperationResponseUnion).\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfVaultItemOperationResponseWalletVaultItemAvailableExpansions OfVaultItemOperationResponseCardVaultItemAvailableExpansions OfPaymentRequestVaultItemAvailableExpansions OfCredentialAccountVaultItemAvailableExpansions OfCredentialVaultItemAvailableExpansions]\n\n```go\nfunc (r *VaultItemOperationResponseUnionAvailableExpansions) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemOperationResponseUnionAvailableOperations struct {\n\t// This field will be present if the value is a\n\t// [[]VaultItemOperationResponseWalletVaultItemAvailableOperation] instead of an\n\t// object.\n\tOfVaultItemOperationResponseWalletVaultItemAvailableOperations []VaultItemOperationResponseWalletVaultItemAvailableOperation `json:\",inline\"`\n\t// This field will be present if the value is a\n\t// [[]VaultItemOperationResponseCardVaultItemAvailableOperation] instead of an\n\t// object.\n\tOfVaultItemOperationResponseCardVaultItemAvailableOperations []VaultItemOperationResponseCardVaultItemAvailableOperation `json:\",inline\"`\n\t// This field will be present if the value is a\n\t// [[]PaymentRequestVaultItemAvailableOperation] instead of an object.\n\tOfPaymentRequestVaultItemAvailableOperations []PaymentRequestVaultItemAvailableOperation `json:\",inline\"`\n\t// This field will be present if the value is a\n\t// [[]CredentialAccountVaultItemAvailableOperation] instead of an object.\n\tOfCredentialAccountVaultItemAvailableOperations []CredentialAccountVaultItemAvailableOperation `json:\",inline\"`\n\t// This field will be present if the value is a\n\t// [[]CredentialVaultItemAvailableOperation] instead of an object.\n\tOfCredentialVaultItemAvailableOperations []CredentialVaultItemAvailableOperation `json:\",inline\"`\n\tJSON                                     struct {\n\t\tOfVaultItemOperationResponseWalletVaultItemAvailableOperations respjson.Field\n\t\tOfVaultItemOperationResponseCardVaultItemAvailableOperations   respjson.Field\n\t\tOfPaymentRequestVaultItemAvailableOperations                   respjson.Field\n\t\tOfCredentialAccountVaultItemAvailableOperations                respjson.Field\n\t\tOfCredentialVaultItemAvailableOperations                       respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemOperationResponseUnionAvailableOperations is an implicit subunion of [VaultItemOperationResponseUnion](#VaultItemOperationResponseUnion). VaultItemOperationResponseUnionAvailableOperations provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [VaultItemOperationResponseUnion](#VaultItemOperationResponseUnion).\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfVaultItemOperationResponseWalletVaultItemAvailableOperations OfVaultItemOperationResponseCardVaultItemAvailableOperations OfPaymentRequestVaultItemAvailableOperations OfCredentialAccountVaultItemAvailableOperations OfCredentialVaultItemAvailableOperations]\n\n```go\nfunc (r *VaultItemOperationResponseUnionAvailableOperations) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemOperationResponseUnionSpec struct {\n\t// This field is a union of [WalletVaultItemSpecLinkAuthorization],\n\t// [ShopPayWalletVaultItemSpecAuthorization],\n\t// [OnePasswordCredentialAccountSpecAuthorization]\n\tAuthorization VaultItemOperationResponseUnionSpecAuthorization `json:\"authorization\"`\n\tProvider      string                                           `json:\"provider\"`\n\t// This field is a union of [WalletVaultItemSpecAgentcardProviderConfig],\n\t// [VgsWalletVaultItemSpecProviderConfig]\n\tProviderConfig VaultItemOperationResponseUnionSpecProviderConfig `json:\"provider_config\"`\n\t// This field is from variant [WalletVaultItemSpecUnion].\n\tUserID          string `json:\"user_id\"`\n\tAmount          int64  `json:\"amount\"`\n\tContext         string `json:\"context\"`\n\tCurrency        string `json:\"currency\"`\n\tMerchantName    string `json:\"merchant_name\"`\n\tMerchantURL     string `json:\"merchant_url\"`\n\tPaymentMethodID string `json:\"payment_method_id\"`\n\tWallet          string `json:\"wallet\"`\n\t// This field is a union of [[]CardVaultItemSpecLinkLineItem],\n\t// [[]CardVaultItemSpecAgentcardLineItem], [[]ShopPayCardVaultItemSpecLineItem],\n\t// [[]PaymentRequestVaultItemSpecLinkLineItem]\n\tLineItems VaultItemOperationResponseUnionSpecLineItems `json:\"line_items\"`\n\tMetadata  map[string]string                            `json:\"metadata\"`\n\t// This field is a union of [CardVaultItemSpecLinkRecurring],\n\t// [PaymentRequestVaultItemSpecLinkRecurring]\n\tRecurring VaultItemOperationResponseUnionSpecRecurring `json:\"recurring\"`\n\t// This field is a union of [[]CardVaultItemSpecLinkTotal],\n\t// [[]ShopPayCardVaultItemSpecTotal], [[]PaymentRequestVaultItemSpecLinkTotal]\n\tTotals VaultItemOperationResponseUnionSpecTotals `json:\"totals\"`\n\t// This field is from variant [CardVaultItemSpecUnion].\n\tMerchant string `json:\"merchant\"`\n\t// This field is from variant [CardVaultItemSpecUnion].\n\tCardID string `json:\"card_id\"`\n\t// This field is from variant [CardVaultItemSpecUnion].\n\tCheckoutOrigin string `json:\"checkout_origin\"`\n\t// This field is from variant [CardVaultItemSpecUnion].\n\tDiscount int64 `json:\"discount\"`\n\t// This field is from variant [CardVaultItemSpecUnion].\n\tShipping int64 `json:\"shipping\"`\n\t// This field is from variant [CardVaultItemSpecUnion].\n\tSubtotal int64 `json:\"subtotal\"`\n\t// This field is from variant [CardVaultItemSpecUnion].\n\tTax int64 `json:\"tax\"`\n\t// This field is from variant [CardVaultItemSpecUnion].\n\tExpiresAt            time.Time `json:\"expires_at\"`\n\tMerchantCategory     string    `json:\"merchant_category\"`\n\tMerchantCategoryCode string    `json:\"merchant_category_code\"`\n\tMerchantCountry      string    `json:\"merchant_country\"`\n\t// This field is from variant [CardVaultItemSpecUnion].\n\tSingleUseCard KernelSingleUseCard `json:\"single_use_card\"`\n\t// This field is from variant [CardVaultItemSpecUnion].\n\tCard VgsCardInput `json:\"card\"`\n\t// This field is from variant [CardVaultItemSpecUnion].\n\tCardMode VgsCardVaultItemSpecCardMode `json:\"card_mode\"`\n\t// This field is from variant [CredentialVaultItemSpecUnion].\n\tFields      []CredentialVaultFieldDefinition `json:\"fields\"`\n\tDescription string                           `json:\"description\"`\n\t// This field is from variant [CredentialVaultItemSpecUnion].\n\tDomain string `json:\"domain\"`\n\t// This field is from variant [CredentialVaultItemSpecUnion].\n\tRequests OnePasswordCredentialVaultItemSpecRequests `json:\"requests\"`\n\t// This field is from variant [CredentialVaultItemSpecUnion].\n\tAccessTokenExpiresAt time.Time `json:\"access_token_expires_at\"`\n\t// This field is from variant [CredentialVaultItemSpecUnion].\n\tAccount string `json:\"account\"`\n\t// This field is from variant [CredentialVaultItemSpecUnion].\n\tConnectionID string `json:\"connection_id\"`\n\tJSON         struct {\n\t\tAuthorization        respjson.Field\n\t\tProvider             respjson.Field\n\t\tProviderConfig       respjson.Field\n\t\tUserID               respjson.Field\n\t\tAmount               respjson.Field\n\t\tContext              respjson.Field\n\t\tCurrency             respjson.Field\n\t\tMerchantName         respjson.Field\n\t\tMerchantURL          respjson.Field\n\t\tPaymentMethodID      respjson.Field\n\t\tWallet               respjson.Field\n\t\tLineItems            respjson.Field\n\t\tMetadata             respjson.Field\n\t\tRecurring            respjson.Field\n\t\tTotals               respjson.Field\n\t\tMerchant             respjson.Field\n\t\tCardID               respjson.Field\n\t\tCheckoutOrigin       respjson.Field\n\t\tDiscount             respjson.Field\n\t\tShipping             respjson.Field\n\t\tSubtotal             respjson.Field\n\t\tTax                  respjson.Field\n\t\tExpiresAt            respjson.Field\n\t\tMerchantCategory     respjson.Field\n\t\tMerchantCategoryCode respjson.Field\n\t\tMerchantCountry      respjson.Field\n\t\tSingleUseCard        respjson.Field\n\t\tCard                 respjson.Field\n\t\tCardMode             respjson.Field\n\t\tFields               respjson.Field\n\t\tDescription          respjson.Field\n\t\tDomain               respjson.Field\n\t\tRequests             respjson.Field\n\t\tAccessTokenExpiresAt respjson.Field\n\t\tAccount              respjson.Field\n\t\tConnectionID         respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemOperationResponseUnionSpec is an implicit subunion of [VaultItemOperationResponseUnion](#VaultItemOperationResponseUnion). VaultItemOperationResponseUnionSpec provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [VaultItemOperationResponseUnion](#VaultItemOperationResponseUnion).\n\n```go\nfunc (r *VaultItemOperationResponseUnionSpec) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemOperationResponseUnionSpecAuthorization struct {\n\t// This field is a union of [WalletVaultItemSpecLinkAuthorizationClientUnion],\n\t// [ShopPayWalletVaultItemSpecAuthorizationClient],\n\t// [OnePasswordCredentialAccountSpecAuthorizationClient]\n\tClient VaultItemOperationResponseUnionSpecAuthorizationClient `json:\"client\"`\n\tMethod string                                                 `json:\"method\"`\n\t// This field is from variant [WalletVaultItemSpecLinkAuthorization].\n\tTokenRefresh string `json:\"token_refresh\"`\n\tJSON         struct {\n\t\tClient       respjson.Field\n\t\tMethod       respjson.Field\n\t\tTokenRefresh respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemOperationResponseUnionSpecAuthorization is an implicit subunion of [VaultItemOperationResponseUnion](#VaultItemOperationResponseUnion). VaultItemOperationResponseUnionSpecAuthorization provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [VaultItemOperationResponseUnion](#VaultItemOperationResponseUnion).\n\n```go\nfunc (r *VaultItemOperationResponseUnionSpecAuthorization) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemOperationResponseUnionSpecAuthorizationClient struct {\n\tType string `json:\"type\"`\n\t// This field is from variant [WalletVaultItemSpecLinkAuthorizationClientUnion].\n\tProviderConfig WalletVaultItemSpecLinkAuthorizationClientCustomerManagedProviderConfig `json:\"provider_config\"`\n\tJSON           struct {\n\t\tType           respjson.Field\n\t\tProviderConfig respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemOperationResponseUnionSpecAuthorizationClient is an implicit subunion of [VaultItemOperationResponseUnion](#VaultItemOperationResponseUnion). VaultItemOperationResponseUnionSpecAuthorizationClient provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [VaultItemOperationResponseUnion](#VaultItemOperationResponseUnion).\n\n```go\nfunc (r *VaultItemOperationResponseUnionSpecAuthorizationClient) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemOperationResponseUnionSpecLineItems struct {\n\t// This field will be present if the value is a [[]CardVaultItemSpecLinkLineItem]\n\t// instead of an object.\n\tOfCardVaultItemSpecLinkLineItems []CardVaultItemSpecLinkLineItem `json:\",inline\"`\n\t// This field will be present if the value is a\n\t// [[]CardVaultItemSpecAgentcardLineItem] instead of an object.\n\tOfCardVaultItemSpecAgentcardLineItems []CardVaultItemSpecAgentcardLineItem `json:\",inline\"`\n\t// This field will be present if the value is a\n\t// [[]ShopPayCardVaultItemSpecLineItem] instead of an object.\n\tOfShopPayCardVaultItemSpecLineItems []ShopPayCardVaultItemSpecLineItem `json:\",inline\"`\n\t// This field will be present if the value is a\n\t// [[]PaymentRequestVaultItemSpecLinkLineItem] instead of an object.\n\tOfPaymentRequestVaultItemSpecLinkLineItems []PaymentRequestVaultItemSpecLinkLineItem `json:\",inline\"`\n\tJSON                                       struct {\n\t\tOfCardVaultItemSpecLinkLineItems           respjson.Field\n\t\tOfCardVaultItemSpecAgentcardLineItems      respjson.Field\n\t\tOfShopPayCardVaultItemSpecLineItems        respjson.Field\n\t\tOfPaymentRequestVaultItemSpecLinkLineItems respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemOperationResponseUnionSpecLineItems is an implicit subunion of [VaultItemOperationResponseUnion](#VaultItemOperationResponseUnion). VaultItemOperationResponseUnionSpecLineItems provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [VaultItemOperationResponseUnion](#VaultItemOperationResponseUnion).\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfCardVaultItemSpecLinkLineItems OfCardVaultItemSpecAgentcardLineItems OfShopPayCardVaultItemSpecLineItems OfPaymentRequestVaultItemSpecLinkLineItems]\n\n```go\nfunc (r *VaultItemOperationResponseUnionSpecLineItems) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemOperationResponseUnionSpecProviderConfig struct {\n\tID   string `json:\"id\"`\n\tName string `json:\"name\"`\n\tJSON struct {\n\t\tID   respjson.Field\n\t\tName respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemOperationResponseUnionSpecProviderConfig is an implicit subunion of [VaultItemOperationResponseUnion](#VaultItemOperationResponseUnion). VaultItemOperationResponseUnionSpecProviderConfig provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [VaultItemOperationResponseUnion](#VaultItemOperationResponseUnion).\n\n```go\nfunc (r *VaultItemOperationResponseUnionSpecProviderConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemOperationResponseUnionSpecRecurring struct {\n\tInterval      string `json:\"interval\"`\n\tIntervalCount int64  `json:\"interval_count\"`\n\tJSON          struct {\n\t\tInterval      respjson.Field\n\t\tIntervalCount respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemOperationResponseUnionSpecRecurring is an implicit subunion of [VaultItemOperationResponseUnion](#VaultItemOperationResponseUnion). VaultItemOperationResponseUnionSpecRecurring provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [VaultItemOperationResponseUnion](#VaultItemOperationResponseUnion).\n\n```go\nfunc (r *VaultItemOperationResponseUnionSpecRecurring) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemOperationResponseUnionSpecTotals struct {\n\t// This field will be present if the value is a [[]CardVaultItemSpecLinkTotal]\n\t// instead of an object.\n\tOfCardVaultItemSpecLinkTotals []CardVaultItemSpecLinkTotal `json:\",inline\"`\n\t// This field will be present if the value is a [[]ShopPayCardVaultItemSpecTotal]\n\t// instead of an object.\n\tOfShopPayCardVaultItemSpecTotals []ShopPayCardVaultItemSpecTotal `json:\",inline\"`\n\t// This field will be present if the value is a\n\t// [[]PaymentRequestVaultItemSpecLinkTotal] instead of an object.\n\tOfPaymentRequestVaultItemSpecLinkTotals []PaymentRequestVaultItemSpecLinkTotal `json:\",inline\"`\n\tJSON                                    struct {\n\t\tOfCardVaultItemSpecLinkTotals           respjson.Field\n\t\tOfShopPayCardVaultItemSpecTotals        respjson.Field\n\t\tOfPaymentRequestVaultItemSpecLinkTotals respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemOperationResponseUnionSpecTotals is an implicit subunion of [VaultItemOperationResponseUnion](#VaultItemOperationResponseUnion). VaultItemOperationResponseUnionSpecTotals provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [VaultItemOperationResponseUnion](#VaultItemOperationResponseUnion).\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfCardVaultItemSpecLinkTotals OfShopPayCardVaultItemSpecTotals OfPaymentRequestVaultItemSpecLinkTotals]\n\n```go\nfunc (r *VaultItemOperationResponseUnionSpecTotals) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemOperationResponseUnionState struct {\n\tProvider     string `json:\"provider\"`\n\tStatus       string `json:\"status\"`\n\tStatusReason string `json:\"status_reason\"`\n\t// This field is from variant [WalletVaultItemStateUnion].\n\tUserID         string   `json:\"user_id\"`\n\tCredentialType string   `json:\"credential_type\"`\n\tDomains        []string `json:\"domains\"`\n\t// This field is a union of [CardVaultItemStateLinkMasks],\n\t// [CardVaultItemStateAgentcardMasks], [KernelCardStateMasks],\n\t// [ShopPayCardStateMasks], [VgsCardStateMasks],\n\t// [PaymentRequestVaultItemStateLinkMasks]\n\tMasks VaultItemOperationResponseUnionStateMasks `json:\"masks\"`\n\t// This field is from variant [CardVaultItemStateUnion].\n\tAliases VaultCardAliases `json:\"aliases\"`\n\t// This field is from variant [CardVaultItemStateUnion].\n\tAuthorization AgentcardCheckoutAuthorization `json:\"authorization\"`\n\t// This field is from variant [CardVaultItemStateUnion].\n\tPreparation AgentcardCheckoutPreparation `json:\"preparation\"`\n\t// This field is from variant [CardVaultItemStateUnion],\n\t// [PaymentRequestVaultItemStateUnion].\n\tSource KernelCardStateSource `json:\"source\"`\n\t// This field is from variant [CardVaultItemStateUnion],\n\t// [PaymentRequestVaultItemStateUnion].\n\tFundingStatus KernelCardStateFundingStatus `json:\"funding_status\"`\n\t// This field is from variant [CardVaultItemStateUnion],\n\t// [PaymentRequestVaultItemStateUnion].\n\tPaymentMethodID string `json:\"payment_method_id\"`\n\t// This field is a union of [map[string]CredentialVaultFieldState],\n\t// [map[string]ManagedAuthCredentialVaultField]\n\tFields VaultItemOperationResponseUnionStateFields `json:\"fields\"`\n\t// This field is from variant [CredentialVaultItemStateUnion].\n\tAccessRequest OnePasswordCredentialVaultItemStateAccessRequest `json:\"access_request\"`\n\t// This field is from variant [CredentialVaultItemStateUnion].\n\tAccessRequestID string `json:\"access_request_id\"`\n\tJSON            struct {\n\t\tProvider        respjson.Field\n\t\tStatus          respjson.Field\n\t\tStatusReason    respjson.Field\n\t\tUserID          respjson.Field\n\t\tCredentialType  respjson.Field\n\t\tDomains         respjson.Field\n\t\tMasks           respjson.Field\n\t\tAliases         respjson.Field\n\t\tAuthorization   respjson.Field\n\t\tPreparation     respjson.Field\n\t\tSource          respjson.Field\n\t\tFundingStatus   respjson.Field\n\t\tPaymentMethodID respjson.Field\n\t\tFields          respjson.Field\n\t\tAccessRequest   respjson.Field\n\t\tAccessRequestID respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemOperationResponseUnionState is an implicit subunion of [VaultItemOperationResponseUnion](#VaultItemOperationResponseUnion). VaultItemOperationResponseUnionState provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [VaultItemOperationResponseUnion](#VaultItemOperationResponseUnion).\n\n```go\nfunc (r *VaultItemOperationResponseUnionState) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemOperationResponseUnionStateFields struct {\n\t// This field is from variant [map[string]CredentialVaultFieldState].\n\tHasValue bool `json:\"has_value\"`\n\t// This field is from variant [map[string]CredentialVaultFieldState].\n\tValue string `json:\"value\"`\n\t// This field is from variant [map[string]ManagedAuthCredentialVaultField].\n\tType CredentialVaultFieldType `json:\"type\"`\n\tJSON struct {\n\t\tHasValue respjson.Field\n\t\tValue    respjson.Field\n\t\tType     respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemOperationResponseUnionStateFields is an implicit subunion of [VaultItemOperationResponseUnion](#VaultItemOperationResponseUnion). VaultItemOperationResponseUnionStateFields provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [VaultItemOperationResponseUnion](#VaultItemOperationResponseUnion).\n\n```go\nfunc (r *VaultItemOperationResponseUnionStateFields) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemOperationResponseUnionStateMasks struct {\n\tBrand      string `json:\"brand\"`\n\tLast4      string `json:\"last4\"`\n\tTokenLast4 string `json:\"token_last4\"`\n\tJSON       struct {\n\t\tBrand      respjson.Field\n\t\tLast4      respjson.Field\n\t\tTokenLast4 respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemOperationResponseUnionStateMasks is an implicit subunion of [VaultItemOperationResponseUnion](#VaultItemOperationResponseUnion). VaultItemOperationResponseUnionStateMasks provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [VaultItemOperationResponseUnion](#VaultItemOperationResponseUnion).\n\n```go\nfunc (r *VaultItemOperationResponseUnionStateMasks) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemOperationResponseWalletVaultItem struct {\n\tID                  string                                                        `json:\"id\" api:\"required\"`\n\tAvailableExpansions []VaultItemOperationResponseWalletVaultItemAvailableExpansion `json:\"available_expansions\" api:\"required\"`\n\tAvailableOperations []VaultItemOperationResponseWalletVaultItemAvailableOperation `json:\"available_operations\" api:\"required\"`\n\tCreatedAt           time.Time                                                     `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Immutable item key assigned when the item is created.\n\tKey string `json:\"key\" api:\"required\"`\n\t// AgentCard wallet. Omit provider_config to use Kernel-managed credentials, or\n\t// select a customer-owned configuration. Mode (sandbox vs live) is determined by\n\t// the selected credential; there is no per-item test flag. Without user_id,\n\t// creation returns a hosted enrollment action and Kernel polls until the user\n\t// connects. With a customer-owned provider_config, user_id imports an existing\n\t// connection after verifying access with the selected credentials in their sandbox\n\t// or live mode; no hosted enrollment is needed, even if the connected user has no\n\t// stored cards. With Kernel-managed credentials, user_id may only reference a user\n\t// already enrolled by a wallet in this organization under the same configuration.\n\t// The user and configuration bindings cannot be changed after creation. Import\n\t// validation is read-only and runs before creation: a failed validation leaves no\n\t// wallet or reserved key, so the user_id can be corrected and retried. Concurrent\n\t// imports of the same key may both validate, but create at most one wallet and\n\t// connected event.\n\tSpec  WalletVaultItemSpecUnion  `json:\"spec\" api:\"required\"`\n\tState WalletVaultItemStateUnion `json:\"state\" api:\"required\"`\n\t// Any of \"wallet\".\n\tType      string               `json:\"type\" api:\"required\"`\n\tUpdatedAt time.Time            `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\tAction    VaultItemActionUnion `json:\"action\"`\n\t// Server-generated provider and lifecycle guidance for agents.\n\tDescription string `json:\"description\"`\n\t// Live, non-persisted data requested through the item GET expand parameter.\n\tExpanded  VaultItemOperationResponseWalletVaultItemExpanded `json:\"expanded\"`\n\tExpiresAt time.Time                                         `json:\"expires_at\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                  respjson.Field\n\t\tAvailableExpansions respjson.Field\n\t\tAvailableOperations respjson.Field\n\t\tCreatedAt           respjson.Field\n\t\tKey                 respjson.Field\n\t\tSpec                respjson.Field\n\t\tState               respjson.Field\n\t\tType                respjson.Field\n\t\tUpdatedAt           respjson.Field\n\t\tAction              respjson.Field\n\t\tDescription         respjson.Field\n\t\tExpanded            respjson.Field\n\t\tExpiresAt           respjson.Field\n\t\tExtraFields         map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r VaultItemOperationResponseWalletVaultItem) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultItemOperationResponseWalletVaultItem) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemOperationResponseWalletVaultItemAvailableExpansion struct {\n\tDescription string `json:\"description\" api:\"required\"`\n\t// Any of \"payment_methods\", \"link_user_info\", \"link_shipping_addresses\".\n\tType string `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDescription respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nLive data that can currently be requested by passing its type to the item GET expand parameter.\n\n```go\nfunc (r VaultItemOperationResponseWalletVaultItemAvailableExpansion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultItemOperationResponseWalletVaultItemAvailableExpansion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemOperationResponseWalletVaultItemAvailableOperation struct {\n\tDescription string `json:\"description\" api:\"required\"`\n\t// Any of \"authorize\", \"restart_verification\", \"confirm_transaction\", \"collect\",\n\t// \"prepare_checkout\", \"fill\", \"arm_passkey\", \"register_passkey\", \"disarm_passkey\",\n\t// \"1pw_create_access_request\", \"1pw_access_request_status\", \"1pw_fill\",\n\t// \"1pw_recover\", \"1pw_disconnect\", \"1pw_update_access_token\",\n\t// \"update_access_token\", \"webmcp_invoke\", \"add_payment_method\",\n\t// \"remove_payment_method\", \"link_balance_setup\".\n\tType string `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDescription respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn operation that is currently valid for this item. Read the description before invoking it through the item operations endpoint.\n\n```go\nfunc (r VaultItemOperationResponseWalletVaultItemAvailableOperation) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultItemOperationResponseWalletVaultItemAvailableOperation) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemOperationResponseWalletVaultItemExpanded struct {\n\t// Link's saved shipping addresses, present when the `link_shipping_addresses`\n\t// expansion is requested.\n\tLinkShippingAddresses []LinkShippingAddress `json:\"link_shipping_addresses\"`\n\t// Link's `GET /userinfo` response for the connected wallet, passed through as Link\n\t// reports it when the `link_user_info` expansion is requested. Kernel never stores\n\t// it. Null fields are null at Link; omitted fields were not reported. Amounts are\n\t// in the minor unit of `default_spend_request_currency`.\n\tLinkUserInfo   LinkUserInfo         `json:\"link_user_info\"`\n\tPaymentMethods []VaultPaymentMethod `json:\"payment_methods\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tLinkShippingAddresses respjson.Field\n\t\tLinkUserInfo          respjson.Field\n\t\tPaymentMethods        respjson.Field\n\t\tExtraFields           map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nLive, non-persisted data requested through the item GET expand parameter.\n\n```go\nfunc (r VaultItemOperationResponseWalletVaultItemExpanded) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultItemOperationResponseWalletVaultItemExpanded) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemPerformOperationParams struct {\n\tIDOrName string `path:\"id_or_name\" api:\"required\" json:\"-\"`\n\n\t// This field is a request body variant, only one variant field can be set.\n\t// Authorize a Link, Kernel or Shop Pay card using its existing purchase\n\t// specification. Use only after explicit user approval and when the item\n\t// advertises authorize; follow the advertised operation's description. For a Link\n\t// or Shop Pay card, pass browser_id and page_url together while the browser is on\n\t// the final checkout page: Kernel confirms that checkout is open, sends it to the\n\t// provider as the merchant, and limits fill to that checkout's origin in any\n\t// browser with this vault attached. For Link it also chooses how the credential is\n\t// delivered. Omitting both issues a virtual card that fills any page on the\n\t// merchant origin. Once approval has been requested, browser_id and page_url are\n\t// ignored and authorize only re-checks the request. Browser and checkout\n\t// inspection errors occur before any provider request and can be retried once the\n\t// browser is on the checkout page. Kernel cards accept browser_id but not\n\t// page_url: browser_id names the browser that will pay, which must have this vault\n\t// attached. For cards whose cardholder enters a fresh CVC on an encrypting card\n\t// form, Kernel tries to route that browser through the card vault's proxy as soon\n\t// as the CVC is entered, so authorize before the browser opens the payment step\n\t// and retrieve the card until fill is advertised before opening it. Other cards,\n\t// and any card whose routing fails, are routed at their first fill.\n\tOfAuthorize *AuthorizeVaultItemOperationRequestParam `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set.\n\t// Explicitly prepare a fresh local verification session for the same Kernel Visa\n\t// purchase and connected wallet, only when restart_verification is advertised.\n\t// Kernel must have durable proof of an initial attestation failure before intent\n\t// dispatch. Replaces the spend_approval capability and discards session-bound\n\t// verification data without calling the provider or granting spend consent. The\n\t// cardholder must use the new link, verify again and explicitly approve the\n\t// purchase. Unknown intent creation, legacy unclassified recovery, enrollment\n\t// completion, issuance and confirmation cannot restart. Do not automatically retry\n\t// this operation.\n\tOfRestartVerification *RestartVerificationVaultItemOperationRequestParam `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set. Report\n\t// a real merchant transaction outcome for an issued Kernel card or Shop Pay\n\t// credential. Kernel alias cards record the outcome without contacting the issuer.\n\t// Shop Pay accepts PURCHASE, AUTHORIZATION and CAPTURE. Never infer success from\n\t// filling checkout or receiving a credential. Supply the observed status,\n\t// transaction type, actual amount, currency and timestamp. Unknown outcomes\n\t// require manual reconciliation, not retry. Each purchase accepts one report.\n\tOfConfirmTransaction *ConfirmTransactionVaultItemOperationRequestParam `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set. Return\n\t// the credential item with its collection action. Supported for ready and\n\t// pending_collection credential items. Always render the same form from every\n\t// form-supported field; totp and passkey fields have no form input and are\n\t// omitted. No caller-selected field subsets or form overrides are accepted. Reuse\n\t// an active Kernel-hosted session or renew an expired session atomically.\n\t// Customer-hosted forms use their own backend and ordinary item GET/PATCH. Opening\n\t// the form does not clear values or change readiness or item version. To observe\n\t// edits on a ready item, record its version and poll GET without wait until the\n\t// version changes, then reconcile the returned state. Version changes may also\n\t// come from PATCH; they do not identify a particular form submission.\n\t// Customer-hosted apps use their own submission callback, including for unchanged\n\t// forms. The wait parameter waits for readiness, not edits.\n\tOfCollect *CollectVaultItemOperationRequestParam `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set. Prepare\n\t// an unused AgentCard card for a supported checkout. Deliver the returned approval\n\t// URL and keep the approval page open. Poll the item until ready_to_submit, then\n\t// submit native Pay before preparation.expires_at. Readiness lasts at most 30\n\t// seconds. Unused preparations expire automatically. Preparations are single-use\n\t// even after failure or expiry; do not automatically retry and reconcile uncertain\n\t// outcomes with the merchant.\n\tOfPrepareCheckout *PrepareCheckoutVaultItemOperationRequestParam `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set. Use a\n\t// vault item in a browser session, for example to fill a login or payment form.\n\t// Only invoke when the item advertises `fill`; the advertised operation describes\n\t// the inputs that item needs. Requires `browser_id` and usually `page_url`; some\n\t// items also require `fields`. Browser and vault must belong to the same project.\n\t// Kernel checks access and allowed destinations before filling; providing a page\n\t// URL does not authorize a destination.\n\t//\n\t// Fill never submits forms or clicks buttons, though input and change events may\n\t// trigger site behavior. It is not atomic: completed steps are not rolled back.\n\t// Fill does not consume the item, so a failed or indeterminate fill is safe to\n\t// retry. A retry right after an indeterminate fill may wait up to 15 seconds for\n\t// the earlier attempt's browser lock to expire.\n\t//\n\t// Secret values are never returned or included in operation logs, traces, audit\n\t// events, or error details. This does not prevent an agent with unrestricted\n\t// browser access from reading values from the page or other browser observation\n\t// surfaces.\n\tOfFill *FillVaultItemOperationRequestParam `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set. Let a\n\t// browser attached to the item's vault sign in with a stored passkey. Only invoke\n\t// when the item advertises `arm_passkey`. Returns immediately; there is no time\n\t// limit. While armed, when a page in that browser whose origin matches the\n\t// passkey's relying party asks for a passkey (`navigator.credentials.get`,\n\t// including autofill requests made at page load), Kernel answers with this\n\t// passkey. The private key never enters the browser: Kernel signs on its servers,\n\t// using the origin Chrome reports for the requesting frame. Arming a passkey for a\n\t// relying party replaces any passkey armed earlier in the browser for the same\n\t// relying party. The arm lasts until `disarm_passkey`, the browser ends, the vault\n\t// is detached, or the item or field is deleted. Drive the sign-in with your own\n\t// browser tools and inspect the page to confirm it. A page opened in a new tab or\n\t// window can run its first scripts before Kernel's handler attaches; if such a\n\t// page asks for a passkey as soon as it loads, reload it. While armed, any script\n\t// running on the relying party's pages can obtain a sign-in without user\n\t// interaction, as with a password manager that fills automatically; disarm when\n\t// the task is done. Passkeys report a signature counter of 0 and backup flags, as\n\t// synced passkeys do.\n\tOfArmPasskey *ArmPasskeyVaultItemOperationRequestParam `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set. Let a\n\t// browser attached to the item's vault create a passkey on a website and store it\n\t// in an empty passkey field. Only invoke when the item advertises\n\t// `register_passkey`; declare the field first, for example by adding an optional\n\t// passkey field with a credential update. Returns immediately; there is no time\n\t// limit. The next passkey a page in that browser creates\n\t// (`navigator.credentials.create`) is generated by Kernel, stored in the field,\n\t// and only then returned to the page, so the website never receives a passkey\n\t// Kernel failed to store. Each browser has one pending registration; a later\n\t// `register_passkey` replaces it. Drive the website's \"add a passkey\" flow with\n\t// your own browser tools, then confirm by reading the item (the field reports\n\t// `has_value`) or its `credential_passkey_registered` event, and by signing in\n\t// with `arm_passkey`. Only ES256 passkeys are created.\n\tOfRegisterPasskey *RegisterPasskeyVaultItemOperationRequestParam `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set. Stop a\n\t// browser from using this item's passkeys: removes its armed passkeys and its\n\t// pending registration into this item. Pages that already loaded keep Kernel's\n\t// WebAuthn handler but get the browser's own behavior.\n\tOfDisarmPasskey *DisarmPasskeyVaultItemOperationRequestParam `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set. Request\n\t// access to login entries in the end-user's own, non-shared 1Password vault. No\n\t// browser is needed; the end-user approves access in the 1Password app.\n\t// Shared-vault items and passkeys are not supported. Per-entry reason and keywords\n\t// overrides are only supported for a single login entry.\n\tOf1pwCreateAccessRequest *OnePasswordRequestAccessVaultItemOperationRequestParam `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set.\n\t// Retrieve the status of a 1Password access request after presenting the approval\n\t// link. Kernel paces checks on 1Password's schedule, timed from the first status\n\t// check (at once, then every 2 seconds, slowing to every 10 and 20 seconds). Each\n\t// call reads a fresh status, waiting up to 20 seconds for its first scheduled\n\t// check. If 1Password rate limits the account, it returns 429 with Retry-After.\n\t// After 3 minutes the approval prompt has closed; ask the owner whether they\n\t// approved and check once more, or invoke 1pw_create_access_request for a new\n\t// link. On a confirmed failed status, ask the end-user before deleting and\n\t// recreating the credential item for at most one new request. Do not retry an\n\t// uncertain dispatched request. The response contains no secret values.\n\t// Credentials with a customer-supplied access token also return the granted\n\t// references in state.access_request.resolved.\n\tOf1pwAccessRequestStatus *VaultItemPerformOperationParamsBody1pwAccessRequestStatus `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set. Fill\n\t// and submit an approved 1Password login in the selected browser page. The\n\t// 1Password extension decides whether the approved login matches the page and\n\t// refuses pages that don't. Supply entry_id when several entries are approved and\n\t// the page origin does not identify exactly one of them, and target_id when more\n\t// than one open page has page_url. The extension selects fields; callers cannot\n\t// supply selectors or secret values. Submission does not confirm website\n\t// authentication.\n\tOf1pwFill *OnePasswordFillVaultItemOperationRequestParam `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set. Kernel\n\t// encountered a recoverable error while linking this 1Password account. Use this\n\t// action to get a new link to recover the connection. After recovery completes,\n\t// start a new authorization on the same item.\n\tOf1pwRecover *OnePasswordRecoverVaultItemOperationRequestParam `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set. End\n\t// this account's 1Password connection and keep the item so it can be linked again.\n\t// Fills stop at once. When no other vault uses the person's connection, Kernel\n\t// revokes it at 1Password; if 1Password has not confirmed yet, this returns 409\n\t// provider_revocation_pending and Kernel keeps retrying. The account's credentials\n\t// stop working until it is linked again.\n\tOf1pwDisconnect *VaultItemPerformOperationParamsBody1pwDisconnect `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set. Replace\n\t// only the access token on a stored-token 1Password credential. Preserves its\n\t// integration key, request and approved references. Does not invoke 1Password or\n\t// retry a pending/uncertain operation. For a wallet whose grant your backend\n\t// refreshes, use update_access_token instead.\n\tOf1pwUpdateAccessToken *VaultItemPerformOperationParamsBody1pwUpdateAccessToken `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set. Replace\n\t// the stored access token on a wallet whose grant your backend refreshes, such as\n\t// a Link wallet imported with token_refresh=customer. The token must come from the\n\t// grant the wallet was imported with. Kernel stores it without contacting the\n\t// provider and never refreshes or revokes the grant. Call it when an operation\n\t// returns 409 with code access_token_rejected, then retry that operation. Existing\n\t// cards and pending spend requests keep their state. Requires vault write access.\n\t// For a stored-token 1Password credential, use 1pw_update_access_token instead.\n\tOfUpdateAccessToken *VaultItemPerformOperationParamsBodyUpdateAccessToken `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set. Invoke\n\t// a WebMCP tool using values from a vaulted item. The browser must be attached to\n\t// the item's vault. Discover the tool_ref, inputSchema, and source with GET\n\t// /browsers/{id_or_name}/webmcp/tools or webmcp.listTools() in the Browser REPL\n\t// (POST /browsers/{id_or_name}/repl) before invoking it. Input paths replace\n\t// existing null slots in input. Tool output is returned without redaction and may\n\t// include the supplied values. The tool may submit or perform other side effects.\n\t// Any item destination restrictions apply to the tool's top-level page and\n\t// registering frame (if any).\n\tOfWebmcpInvoke *WebmcpInvokeVaultItemOperationRequestParam `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set. Start\n\t// enrollment of a card in a connected Kernel wallet, including its first card,\n\t// only when the wallet advertises add_payment_method. Returns a new payment method\n\t// in pending_enrollment with a single-use action. Card details go directly to the\n\t// card vault and are never accepted by this API. With enrollment hosted (the\n\t// default) the action is a card_enrollment URL for the cardholder, which expires\n\t// after 30 minutes. With enrollment server the action is a card_ingest URL that\n\t// the card's issuer posts the card to from its backend, which expires after 5\n\t// minutes; server enrollment returns 409 when it is not configured for the\n\t// organization's card backend. A failed or expired enrollment does not affect the\n\t// wallet's other payment methods. Scoped API keys require vaults:write in addition\n\t// to vaults:use on this vault; otherwise the operation returns 403.\n\tOfAddPaymentMethod *AddPaymentMethodVaultItemOperationRequestParam `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set. Remove\n\t// one payment method from a Kernel wallet, only when the wallet advertises\n\t// remove_payment_method. Removal deletes the stored card and blocks new purchases,\n\t// fills and confirmations funded by it without affecting the wallet's other\n\t// payment methods; the wallet stays connected even with no payment methods left. A\n\t// purchase funded by the method with an unresolved outcome blocks removal with 409\n\t// purchase_unresolved. If the provider outcome is uncertain the method stays in\n\t// removal_pending and keeps refusing payments; retry the removal later. Removal is\n\t// not proof that a payment did not occur. Scoped API keys require vaults:write in\n\t// addition to vaults:use on this vault; otherwise the operation returns 403.\n\tOfRemovePaymentMethod *RemovePaymentMethodVaultItemOperationRequestParam `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set. Get the\n\t// Link page where the user sets up Link balance, adds money to it, and chooses an\n\t// approval threshold for this wallet's Link client. Kernel does not yet create\n\t// spend requests under that approval policy, so cards from this wallet still\n\t// require the user's approval even when they are paid from the balance. Available\n\t// on connected Link wallets. Kernel first reads Link's user info and returns 409\n\t// unless Link reports eligible_for_balance as true, which depends on both the user\n\t// and the wallet's Link client. Both amounts are suggestions the page prefills;\n\t// the user makes the final choice. Send only what needs to change:\n\t// desired_balance_amount to ask for money to be added, desired_transaction_limit\n\t// to set or change the threshold, or both for first-time setup.\n\tOfLinkBalanceSetup *LinkBalanceSetupVaultItemOperationRequestParam `json:\",inline\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (u VaultItemPerformOperationParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *VaultItemPerformOperationParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemPerformOperationParamsBody1pwAccessRequestStatus struct {\n\t// How long to keep checking on the schedule. The call still waits for its first\n\t// scheduled check, at most 20 seconds, when that comes later.\n\tTimeoutSeconds param.Opt[int64] `json:\"timeout_seconds,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as\n\t// \"1pw_access_request_status\".\n\tType constant.String1pwAccessRequestStatus `json:\"type\" default:\"1pw_access_request_status\"`\n\t// contains filtered or unexported fields\n}\n```\nRetrieve the status of a 1Password access request after presenting the approval link. Kernel paces checks on 1Password's schedule, timed from the first status check (at once, then every 2 seconds, slowing to every 10 and 20 seconds). Each call reads a fresh status, waiting up to 20 seconds for its first scheduled check. If 1Password rate limits the account, it returns 429 with Retry-After. After 3 minutes the approval prompt has closed; ask the owner whether they approved and check once more, or invoke 1pw\\_create\\_access\\_request for a new link. On a confirmed failed status, ask the end-user before deleting and recreating the credential item for at most one new request. Do not retry an uncertain dispatched request. The response contains no secret values. Credentials with a customer-supplied access token also return the granted references in state.access\\_request.resolved.\n\nThe property Type is required.\n\n```go\nfunc (r VaultItemPerformOperationParamsBody1pwAccessRequestStatus) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultItemPerformOperationParamsBody1pwAccessRequestStatus) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemPerformOperationParamsBody1pwDisconnect struct {\n\tType constant.String1pwDisconnect `json:\"type\" default:\"1pw_disconnect\"`\n\t// contains filtered or unexported fields\n}\n```\nEnd this account's 1Password connection and keep the item so it can be linked again. Fills stop at once. When no other vault uses the person's connection, Kernel revokes it at 1Password; if 1Password has not confirmed yet, this returns 409 provider\\_revocation\\_pending and Kernel keeps retrying. The account's credentials stop working until it is linked again.\n\nThis struct has a constant value, construct it with [NewVaultItemPerformOperationParamsBody1pwDisconnect](#NewVaultItemPerformOperationParamsBody1pwDisconnect).\n\n```go\nfunc NewVaultItemPerformOperationParamsBody1pwDisconnect() VaultItemPerformOperationParamsBody1pwDisconnect\n```\n\n```go\nfunc (r VaultItemPerformOperationParamsBody1pwDisconnect) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultItemPerformOperationParamsBody1pwDisconnect) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemPerformOperationParamsBody1pwUpdateAccessToken struct {\n\tAccessToken string `json:\"access_token\" api:\"required\"`\n\t// Optional supplied expiry. Omit to clear the old expiry.\n\tAccessTokenExpiresAt param.Opt[time.Time] `json:\"access_token_expires_at,omitzero\" format:\"date-time\"`\n\t// This field can be elided, and will marshal its zero value as\n\t// \"1pw_update_access_token\".\n\tType constant.String1pwUpdateAccessToken `json:\"type\" default:\"1pw_update_access_token\"`\n\t// contains filtered or unexported fields\n}\n```\nReplace only the access token on a stored-token 1Password credential. Preserves its integration key, request and approved references. Does not invoke 1Password or retry a pending/uncertain operation. For a wallet whose grant your backend refreshes, use update\\_access\\_token instead.\n\nThe properties AccessToken, Type are required.\n\n```go\nfunc (r VaultItemPerformOperationParamsBody1pwUpdateAccessToken) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultItemPerformOperationParamsBody1pwUpdateAccessToken) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemPerformOperationParamsBodyUpdateAccessToken struct {\n\tAccessToken string `json:\"access_token\" api:\"required\"`\n\t// This field can be elided, and will marshal its zero value as\n\t// \"update_access_token\".\n\tType constant.UpdateAccessToken `json:\"type\" default:\"update_access_token\"`\n\t// contains filtered or unexported fields\n}\n```\nReplace the stored access token on a wallet whose grant your backend refreshes, such as a Link wallet imported with token\\_refresh=customer. The token must come from the grant the wallet was imported with. Kernel stores it without contacting the provider and never refreshes or revokes the grant. Call it when an operation returns 409 with code access\\_token\\_rejected, then retry that operation. Existing cards and pending spend requests keep their state. Requires vault write access. For a stored-token 1Password credential, use 1pw\\_update\\_access\\_token instead.\n\nThe properties AccessToken, Type are required.\n\n```go\nfunc (r VaultItemPerformOperationParamsBodyUpdateAccessToken) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultItemPerformOperationParamsBodyUpdateAccessToken) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemService struct {\n\tOptions []option.RequestOption\n}\n```\nVaultItemService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewVaultItemService](#NewVaultItemService) method instead.\n\n```go\nfunc NewVaultItemService(opts ...option.RequestOption) (r VaultItemService)\n```\nNewVaultItemService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *VaultItemService) Delete(ctx context.Context, key string, body VaultItemDeleteParams, opts ...option.RequestOption) (err error)\n```\nUnresolved payment operations normally block deletion, including operations on child cards of a wallet. Deleting a connected Kernel wallet first blocks new payments on it, then removes its enrolled card. If that fails, the wallet is kept and keeps refusing payments; retry the deletion. A Link, Kernel or Shop Pay card in recovery\\_required for issuance, or an AgentCard card in recovery\\_required whose checkout create response returned no authorization ID, may be explicitly abandoned by deleting that card directly; deleting its wallet or vault remains blocked until the card is deleted. Deleting or recreating an item is not proof that a payment did not occur. Deleting a managed auth credential item leaves the connection and its saved credential unchanged. Deleting a 1Password credential\\_account stops its fills at once and, when no other vault uses the person's connection, revokes it at 1Password; until 1Password confirms, this returns 409 provider\\_revocation\\_pending and Kernel keeps retrying.\n\n```go\nfunc (r *VaultItemService) Events(ctx context.Context, key string, params VaultItemEventsParams, opts ...option.RequestOption) (res *[]VaultItemEvent, err error)\n```\nList immutable audit events for a vault item\n\n```go\nfunc (r *VaultItemService) Get(ctx context.Context, key string, params VaultItemGetParams, opts ...option.RequestOption) (res *VaultItemUnion, err error)\n```\nThe response advertises operations that are valid in the item's current state and live data that can be requested through \\`expand\\`. Read each operation's description before using it. Expanded data is fetched from the provider and is not persisted in the vault item. Requesting an unavailable expansion returns 409 instead of a partial item. Pending credential items return a collection action. Kernel-hosted active collection links are renewed atomically on expiry for ready or pending items without changing the item version. Invoke collect to open a form for a ready item without clearing values. Sensitive credential values are never returned.\n\n```go\nfunc (r *VaultItemService) List(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *[]VaultItemUnion, err error)\n```\nCredential entries include safe field metadata and non-sensitive values. Listing never creates or renews collection sessions; only an existing unexpired active session is included. Use single-item GET or collect to obtain a fresh link.\n\n```go\nfunc (r *VaultItemService) PerformOperation(ctx context.Context, key string, params VaultItemPerformOperationParams, opts ...option.RequestOption) (res *VaultItemOperationResponseUnion, err error)\n```\nRetrieve the item first and invoke only an operation listed in \\`available\\_operations\\`, following its natural-language description. Availability is rechecked at execution time; unavailable operations return 409. Authorization and preparation may call an external provider and return updated state. Link cards advertise authorize; pass browser\\_id and page\\_url from the final checkout page so Kernel can inspect the checkout. Eligible unused AgentCard cards advertise prepare\\_checkout, which requires checkout context and obtains device approval before native Square Pay. Keep the returned approval page open, poll until ready\\_to\\_submit, then submit before preparation.expires\\_at. Unused preparations expire automatically and cannot be reused. If spend-request creation is rejected with a non-retryable provider error, the card item is deleted and the provider's error code and message are returned. Rate limits return HTTP 429 and retain the card item; stop, back off, and retry the same authorize operation.\n\nReady Kernel cards advertise fill. Fill delivers card details for a few minutes; submit checkout promptly after filling. A repeated fill is safe.\n\nFill returns a value-free execution result. Validation failures before writing return 400 (invalid request or targets), 403 (access or destination denied), 404 (resource not found), or 409 (item or browser not ready). Once writing starts, known partial failures and indeterminate field outcomes return 200 with status \\`failed\\` or \\`unknown\\`. Fill never submits the page, so it is safe to retry after a failure, an \\`unknown\\` outcome, or a transport error.\n\nConnected Kernel wallets may advertise add\\_payment\\_method, which returns a single-use hosted card\\_enrollment link for a card, or with enrollment server a single-use card\\_ingest URL for the card's issuer, and remove\\_payment\\_method, which removes one card without affecting the others. Both operations require vaults:write in addition to vaults:use on the vault for scoped API keys, and return 403 without both permissions.\n\n```go\nfunc (r *VaultItemService) Update(ctx context.Context, key string, params VaultItemUpdateParams, opts ...option.RequestOption) (res *VaultItemUnion, err error)\n```\nCredential updates require type credential and the current version, and change only values or description; omitted values are preserved, nonempty strings replace, and null or empty strings clear supported fields. Clearing required text/email/password values returns pending\\_collection; browser forms still require nonempty required inputs. Card updates may omit type for compatibility with legacy requests. Requested cards accept a replacement specification. Pending issuance requests may update provider-supported fields on their existing request, subject to atomic provider approval checks; omitted optional fields remain unchanged and explicit empty lists clear them. Wallet/provider binding and unsupported fields cannot change after authorization starts. An uncertain update enters recovery\\_required; delete the card and create a new one rather than retrying the update. Checkout cards may be edited between authorizations. A Link card authorized with browser\\_id and page\\_url cannot be changed; delete it and create a new card with the updated details.\n\n```go\nfunc (r *VaultItemService) Upsert(ctx context.Context, key string, params VaultItemUpsertParams, opts ...option.RequestOption) (res *VaultItemUnion, err error)\n```\nCreate an item under a key unique within its vault, or retrieve the existing item when its specification matches. An identical card PUT returns the existing card in any lifecycle state without polling the provider, reauthorizing, replacing aliases, or resetting recovery. Conflicting specifications return 409. Provider-specific authorization requirements and retry behavior are described in the item's request schema. Do not use credential items to store, collect, or fill credit card data, including card numbers (PANs), security codes (CVV/CVC), or expiration dates. Use wallet, payment\\_request and card item types for credit cards and payment checkout instead. Where enabled, Link and Kernel purchases can be payment\\_request items parented by their wallet; card items remain supported for them and for AgentCard reusable cards.\n\n```go\ntype VaultItemUnion struct {\n\tID string `json:\"id\"`\n\t// This field is a union of [[]VaultItemWalletAvailableExpansion],\n\t// [[]VaultItemCardAvailableExpansion],\n\t// [[]PaymentRequestVaultItemAvailableExpansion],\n\t// [[]CredentialAccountVaultItemAvailableExpansion],\n\t// [[]CredentialVaultItemAvailableExpansion]\n\tAvailableExpansions VaultItemUnionAvailableExpansions `json:\"available_expansions\"`\n\t// This field is a union of [[]VaultItemWalletAvailableOperation],\n\t// [[]VaultItemCardAvailableOperation],\n\t// [[]PaymentRequestVaultItemAvailableOperation],\n\t// [[]CredentialAccountVaultItemAvailableOperation],\n\t// [[]CredentialVaultItemAvailableOperation]\n\tAvailableOperations VaultItemUnionAvailableOperations `json:\"available_operations\"`\n\tCreatedAt           time.Time                         `json:\"created_at\"`\n\tKey                 string                            `json:\"key\"`\n\t// This field is a union of [WalletVaultItemSpecUnion], [CardVaultItemSpecUnion],\n\t// [PaymentRequestVaultItemSpecUnion], [OnePasswordCredentialAccountSpec],\n\t// [CredentialVaultItemSpecUnion]\n\tSpec VaultItemUnionSpec `json:\"spec\"`\n\t// This field is a union of [WalletVaultItemStateUnion], [CardVaultItemStateUnion],\n\t// [PaymentRequestVaultItemStateUnion], [OnePasswordCredentialAccountState],\n\t// [CredentialVaultItemStateUnion]\n\tState VaultItemUnionState `json:\"state\"`\n\t// Any of \"wallet\", \"card\", \"payment_request\", \"credential_account\", \"credential\".\n\tType      string    `json:\"type\"`\n\tUpdatedAt time.Time `json:\"updated_at\"`\n\t// This field is a union of [VaultItemActionUnion], [OnePasswordOAuthAction],\n\t// [CredentialVaultItemActionUnion]\n\tAction VaultItemUnionAction `json:\"action\"`\n\t// This field is from variant [VaultItemWallet].\n\tDescription string `json:\"description\"`\n\t// This field is from variant [VaultItemWallet].\n\tExpanded  VaultItemWalletExpanded `json:\"expanded\"`\n\tExpiresAt time.Time               `json:\"expires_at\"`\n\t// This field is from variant [CredentialVaultItem].\n\tVersion int64 `json:\"version\"`\n\tJSON    struct {\n\t\tID                  respjson.Field\n\t\tAvailableExpansions respjson.Field\n\t\tAvailableOperations respjson.Field\n\t\tCreatedAt           respjson.Field\n\t\tKey                 respjson.Field\n\t\tSpec                respjson.Field\n\t\tState               respjson.Field\n\t\tType                respjson.Field\n\t\tUpdatedAt           respjson.Field\n\t\tAction              respjson.Field\n\t\tDescription         respjson.Field\n\t\tExpanded            respjson.Field\n\t\tExpiresAt           respjson.Field\n\t\tVersion             respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemUnion contains all possible properties and values from [VaultItemWallet](#VaultItemWallet), [VaultItemCard](#VaultItemCard), [PaymentRequestVaultItem](#PaymentRequestVaultItem), [CredentialAccountVaultItem](#CredentialAccountVaultItem), [CredentialVaultItem](#CredentialVaultItem).\n\nUse the [VaultItemUnion.AsAny](#VaultItemUnion.AsAny) method to switch on the variant.\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u VaultItemUnion) AsAny() anyVaultItem\n```\nUse the following switch statement to find the correct variant\n\n\tswitch variant := VaultItemUnion.AsAny().(type) {\n\tcase kernel.VaultItemWallet:\n\tcase kernel.VaultItemCard:\n\tcase kernel.PaymentRequestVaultItem:\n\tcase kernel.CredentialAccountVaultItem:\n\tcase kernel.CredentialVaultItem:\n\tdefault:\n\t  fmt.Errorf(\"no variant present\")\n\t}\n\n```go\nfunc (u VaultItemUnion) AsCard() (v VaultItemCard)\n```\n\n```go\nfunc (u VaultItemUnion) AsCredential() (v CredentialVaultItem)\n```\n\n```go\nfunc (u VaultItemUnion) AsCredentialAccount() (v CredentialAccountVaultItem)\n```\n\n```go\nfunc (u VaultItemUnion) AsPaymentRequest() (v PaymentRequestVaultItem)\n```\n\n```go\nfunc (u VaultItemUnion) AsWallet() (v VaultItemWallet)\n```\n\n```go\nfunc (u VaultItemUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultItemUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUnionAction struct {\n\tName string `json:\"name\"`\n\tURL  string `json:\"url\"`\n\t// This field is from variant [VaultItemActionUnion], [OnePasswordOAuthAction].\n\tConnectURL string `json:\"connect_url\"`\n\t// This field is from variant [VaultItemActionUnion].\n\tCaptureToken string `json:\"capture_token\"`\n\t// This field is from variant [CredentialVaultItemActionUnion].\n\tExpiresAt time.Time `json:\"expires_at\"`\n\t// This field is from variant [CredentialVaultItemActionUnion].\n\tAccessRequestReference string `json:\"access_request_reference\"`\n\t// This field is from variant [CredentialVaultItemActionUnion].\n\tInstructions string `json:\"instructions\"`\n\tJSON         struct {\n\t\tName                   respjson.Field\n\t\tURL                    respjson.Field\n\t\tConnectURL             respjson.Field\n\t\tCaptureToken           respjson.Field\n\t\tExpiresAt              respjson.Field\n\t\tAccessRequestReference respjson.Field\n\t\tInstructions           respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemUnionAction is an implicit subunion of [VaultItemUnion](#VaultItemUnion). VaultItemUnionAction provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [VaultItemUnion](#VaultItemUnion).\n\n```go\nfunc (r *VaultItemUnionAction) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUnionAvailableExpansions struct {\n\t// This field will be present if the value is a\n\t// [[]VaultItemWalletAvailableExpansion] instead of an object.\n\tOfVaultItemWalletAvailableExpansions []VaultItemWalletAvailableExpansion `json:\",inline\"`\n\t// This field will be present if the value is a [[]VaultItemCardAvailableExpansion]\n\t// instead of an object.\n\tOfVaultItemCardAvailableExpansions []VaultItemCardAvailableExpansion `json:\",inline\"`\n\t// This field will be present if the value is a\n\t// [[]PaymentRequestVaultItemAvailableExpansion] instead of an object.\n\tOfPaymentRequestVaultItemAvailableExpansions []PaymentRequestVaultItemAvailableExpansion `json:\",inline\"`\n\t// This field will be present if the value is a\n\t// [[]CredentialAccountVaultItemAvailableExpansion] instead of an object.\n\tOfCredentialAccountVaultItemAvailableExpansions []CredentialAccountVaultItemAvailableExpansion `json:\",inline\"`\n\t// This field will be present if the value is a\n\t// [[]CredentialVaultItemAvailableExpansion] instead of an object.\n\tOfCredentialVaultItemAvailableExpansions []CredentialVaultItemAvailableExpansion `json:\",inline\"`\n\tJSON                                     struct {\n\t\tOfVaultItemWalletAvailableExpansions            respjson.Field\n\t\tOfVaultItemCardAvailableExpansions              respjson.Field\n\t\tOfPaymentRequestVaultItemAvailableExpansions    respjson.Field\n\t\tOfCredentialAccountVaultItemAvailableExpansions respjson.Field\n\t\tOfCredentialVaultItemAvailableExpansions        respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemUnionAvailableExpansions is an implicit subunion of [VaultItemUnion](#VaultItemUnion). VaultItemUnionAvailableExpansions provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [VaultItemUnion](#VaultItemUnion).\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfVaultItemWalletAvailableExpansions OfVaultItemCardAvailableExpansions OfPaymentRequestVaultItemAvailableExpansions OfCredentialAccountVaultItemAvailableExpansions OfCredentialVaultItemAvailableExpansions]\n\n```go\nfunc (r *VaultItemUnionAvailableExpansions) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUnionAvailableOperations struct {\n\t// This field will be present if the value is a\n\t// [[]VaultItemWalletAvailableOperation] instead of an object.\n\tOfVaultItemWalletAvailableOperations []VaultItemWalletAvailableOperation `json:\",inline\"`\n\t// This field will be present if the value is a [[]VaultItemCardAvailableOperation]\n\t// instead of an object.\n\tOfVaultItemCardAvailableOperations []VaultItemCardAvailableOperation `json:\",inline\"`\n\t// This field will be present if the value is a\n\t// [[]PaymentRequestVaultItemAvailableOperation] instead of an object.\n\tOfPaymentRequestVaultItemAvailableOperations []PaymentRequestVaultItemAvailableOperation `json:\",inline\"`\n\t// This field will be present if the value is a\n\t// [[]CredentialAccountVaultItemAvailableOperation] instead of an object.\n\tOfCredentialAccountVaultItemAvailableOperations []CredentialAccountVaultItemAvailableOperation `json:\",inline\"`\n\t// This field will be present if the value is a\n\t// [[]CredentialVaultItemAvailableOperation] instead of an object.\n\tOfCredentialVaultItemAvailableOperations []CredentialVaultItemAvailableOperation `json:\",inline\"`\n\tJSON                                     struct {\n\t\tOfVaultItemWalletAvailableOperations            respjson.Field\n\t\tOfVaultItemCardAvailableOperations              respjson.Field\n\t\tOfPaymentRequestVaultItemAvailableOperations    respjson.Field\n\t\tOfCredentialAccountVaultItemAvailableOperations respjson.Field\n\t\tOfCredentialVaultItemAvailableOperations        respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemUnionAvailableOperations is an implicit subunion of [VaultItemUnion](#VaultItemUnion). VaultItemUnionAvailableOperations provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [VaultItemUnion](#VaultItemUnion).\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfVaultItemWalletAvailableOperations OfVaultItemCardAvailableOperations OfPaymentRequestVaultItemAvailableOperations OfCredentialAccountVaultItemAvailableOperations OfCredentialVaultItemAvailableOperations]\n\n```go\nfunc (r *VaultItemUnionAvailableOperations) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUnionSpec struct {\n\t// This field is a union of [WalletVaultItemSpecLinkAuthorization],\n\t// [ShopPayWalletVaultItemSpecAuthorization],\n\t// [OnePasswordCredentialAccountSpecAuthorization]\n\tAuthorization VaultItemUnionSpecAuthorization `json:\"authorization\"`\n\tProvider      string                          `json:\"provider\"`\n\t// This field is a union of [WalletVaultItemSpecAgentcardProviderConfig],\n\t// [VgsWalletVaultItemSpecProviderConfig]\n\tProviderConfig VaultItemUnionSpecProviderConfig `json:\"provider_config\"`\n\t// This field is from variant [WalletVaultItemSpecUnion].\n\tUserID          string `json:\"user_id\"`\n\tAmount          int64  `json:\"amount\"`\n\tContext         string `json:\"context\"`\n\tCurrency        string `json:\"currency\"`\n\tMerchantName    string `json:\"merchant_name\"`\n\tMerchantURL     string `json:\"merchant_url\"`\n\tPaymentMethodID string `json:\"payment_method_id\"`\n\tWallet          string `json:\"wallet\"`\n\t// This field is a union of [[]CardVaultItemSpecLinkLineItem],\n\t// [[]CardVaultItemSpecAgentcardLineItem], [[]ShopPayCardVaultItemSpecLineItem],\n\t// [[]PaymentRequestVaultItemSpecLinkLineItem]\n\tLineItems VaultItemUnionSpecLineItems `json:\"line_items\"`\n\tMetadata  map[string]string           `json:\"metadata\"`\n\t// This field is a union of [CardVaultItemSpecLinkRecurring],\n\t// [PaymentRequestVaultItemSpecLinkRecurring]\n\tRecurring VaultItemUnionSpecRecurring `json:\"recurring\"`\n\t// This field is a union of [[]CardVaultItemSpecLinkTotal],\n\t// [[]ShopPayCardVaultItemSpecTotal], [[]PaymentRequestVaultItemSpecLinkTotal]\n\tTotals VaultItemUnionSpecTotals `json:\"totals\"`\n\t// This field is from variant [CardVaultItemSpecUnion].\n\tMerchant string `json:\"merchant\"`\n\t// This field is from variant [CardVaultItemSpecUnion].\n\tCardID string `json:\"card_id\"`\n\t// This field is from variant [CardVaultItemSpecUnion].\n\tCheckoutOrigin string `json:\"checkout_origin\"`\n\t// This field is from variant [CardVaultItemSpecUnion].\n\tDiscount int64 `json:\"discount\"`\n\t// This field is from variant [CardVaultItemSpecUnion].\n\tShipping int64 `json:\"shipping\"`\n\t// This field is from variant [CardVaultItemSpecUnion].\n\tSubtotal int64 `json:\"subtotal\"`\n\t// This field is from variant [CardVaultItemSpecUnion].\n\tTax int64 `json:\"tax\"`\n\t// This field is from variant [CardVaultItemSpecUnion].\n\tExpiresAt            time.Time `json:\"expires_at\"`\n\tMerchantCategory     string    `json:\"merchant_category\"`\n\tMerchantCategoryCode string    `json:\"merchant_category_code\"`\n\tMerchantCountry      string    `json:\"merchant_country\"`\n\t// This field is from variant [CardVaultItemSpecUnion].\n\tSingleUseCard KernelSingleUseCard `json:\"single_use_card\"`\n\t// This field is from variant [CardVaultItemSpecUnion].\n\tCard VgsCardInput `json:\"card\"`\n\t// This field is from variant [CardVaultItemSpecUnion].\n\tCardMode VgsCardVaultItemSpecCardMode `json:\"card_mode\"`\n\t// This field is from variant [CredentialVaultItemSpecUnion].\n\tFields      []CredentialVaultFieldDefinition `json:\"fields\"`\n\tDescription string                           `json:\"description\"`\n\t// This field is from variant [CredentialVaultItemSpecUnion].\n\tDomain string `json:\"domain\"`\n\t// This field is from variant [CredentialVaultItemSpecUnion].\n\tRequests OnePasswordCredentialVaultItemSpecRequests `json:\"requests\"`\n\t// This field is from variant [CredentialVaultItemSpecUnion].\n\tAccessTokenExpiresAt time.Time `json:\"access_token_expires_at\"`\n\t// This field is from variant [CredentialVaultItemSpecUnion].\n\tAccount string `json:\"account\"`\n\t// This field is from variant [CredentialVaultItemSpecUnion].\n\tConnectionID string `json:\"connection_id\"`\n\tJSON         struct {\n\t\tAuthorization        respjson.Field\n\t\tProvider             respjson.Field\n\t\tProviderConfig       respjson.Field\n\t\tUserID               respjson.Field\n\t\tAmount               respjson.Field\n\t\tContext              respjson.Field\n\t\tCurrency             respjson.Field\n\t\tMerchantName         respjson.Field\n\t\tMerchantURL          respjson.Field\n\t\tPaymentMethodID      respjson.Field\n\t\tWallet               respjson.Field\n\t\tLineItems            respjson.Field\n\t\tMetadata             respjson.Field\n\t\tRecurring            respjson.Field\n\t\tTotals               respjson.Field\n\t\tMerchant             respjson.Field\n\t\tCardID               respjson.Field\n\t\tCheckoutOrigin       respjson.Field\n\t\tDiscount             respjson.Field\n\t\tShipping             respjson.Field\n\t\tSubtotal             respjson.Field\n\t\tTax                  respjson.Field\n\t\tExpiresAt            respjson.Field\n\t\tMerchantCategory     respjson.Field\n\t\tMerchantCategoryCode respjson.Field\n\t\tMerchantCountry      respjson.Field\n\t\tSingleUseCard        respjson.Field\n\t\tCard                 respjson.Field\n\t\tCardMode             respjson.Field\n\t\tFields               respjson.Field\n\t\tDescription          respjson.Field\n\t\tDomain               respjson.Field\n\t\tRequests             respjson.Field\n\t\tAccessTokenExpiresAt respjson.Field\n\t\tAccount              respjson.Field\n\t\tConnectionID         respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemUnionSpec is an implicit subunion of [VaultItemUnion](#VaultItemUnion). VaultItemUnionSpec provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [VaultItemUnion](#VaultItemUnion).\n\n```go\nfunc (r *VaultItemUnionSpec) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUnionSpecAuthorization struct {\n\t// This field is a union of [WalletVaultItemSpecLinkAuthorizationClientUnion],\n\t// [ShopPayWalletVaultItemSpecAuthorizationClient],\n\t// [OnePasswordCredentialAccountSpecAuthorizationClient]\n\tClient VaultItemUnionSpecAuthorizationClient `json:\"client\"`\n\tMethod string                                `json:\"method\"`\n\t// This field is from variant [WalletVaultItemSpecLinkAuthorization].\n\tTokenRefresh string `json:\"token_refresh\"`\n\tJSON         struct {\n\t\tClient       respjson.Field\n\t\tMethod       respjson.Field\n\t\tTokenRefresh respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemUnionSpecAuthorization is an implicit subunion of [VaultItemUnion](#VaultItemUnion). VaultItemUnionSpecAuthorization provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [VaultItemUnion](#VaultItemUnion).\n\n```go\nfunc (r *VaultItemUnionSpecAuthorization) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUnionSpecAuthorizationClient struct {\n\tType string `json:\"type\"`\n\t// This field is from variant [WalletVaultItemSpecLinkAuthorizationClientUnion].\n\tProviderConfig WalletVaultItemSpecLinkAuthorizationClientCustomerManagedProviderConfig `json:\"provider_config\"`\n\tJSON           struct {\n\t\tType           respjson.Field\n\t\tProviderConfig respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemUnionSpecAuthorizationClient is an implicit subunion of [VaultItemUnion](#VaultItemUnion). VaultItemUnionSpecAuthorizationClient provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [VaultItemUnion](#VaultItemUnion).\n\n```go\nfunc (r *VaultItemUnionSpecAuthorizationClient) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUnionSpecLineItems struct {\n\t// This field will be present if the value is a [[]CardVaultItemSpecLinkLineItem]\n\t// instead of an object.\n\tOfCardVaultItemSpecLinkLineItems []CardVaultItemSpecLinkLineItem `json:\",inline\"`\n\t// This field will be present if the value is a\n\t// [[]CardVaultItemSpecAgentcardLineItem] instead of an object.\n\tOfCardVaultItemSpecAgentcardLineItems []CardVaultItemSpecAgentcardLineItem `json:\",inline\"`\n\t// This field will be present if the value is a\n\t// [[]ShopPayCardVaultItemSpecLineItem] instead of an object.\n\tOfShopPayCardVaultItemSpecLineItems []ShopPayCardVaultItemSpecLineItem `json:\",inline\"`\n\t// This field will be present if the value is a\n\t// [[]PaymentRequestVaultItemSpecLinkLineItem] instead of an object.\n\tOfPaymentRequestVaultItemSpecLinkLineItems []PaymentRequestVaultItemSpecLinkLineItem `json:\",inline\"`\n\tJSON                                       struct {\n\t\tOfCardVaultItemSpecLinkLineItems           respjson.Field\n\t\tOfCardVaultItemSpecAgentcardLineItems      respjson.Field\n\t\tOfShopPayCardVaultItemSpecLineItems        respjson.Field\n\t\tOfPaymentRequestVaultItemSpecLinkLineItems respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemUnionSpecLineItems is an implicit subunion of [VaultItemUnion](#VaultItemUnion). VaultItemUnionSpecLineItems provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [VaultItemUnion](#VaultItemUnion).\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfCardVaultItemSpecLinkLineItems OfCardVaultItemSpecAgentcardLineItems OfShopPayCardVaultItemSpecLineItems OfPaymentRequestVaultItemSpecLinkLineItems]\n\n```go\nfunc (r *VaultItemUnionSpecLineItems) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUnionSpecProviderConfig struct {\n\tID   string `json:\"id\"`\n\tName string `json:\"name\"`\n\tJSON struct {\n\t\tID   respjson.Field\n\t\tName respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemUnionSpecProviderConfig is an implicit subunion of [VaultItemUnion](#VaultItemUnion). VaultItemUnionSpecProviderConfig provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [VaultItemUnion](#VaultItemUnion).\n\n```go\nfunc (r *VaultItemUnionSpecProviderConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUnionSpecRecurring struct {\n\tInterval      string `json:\"interval\"`\n\tIntervalCount int64  `json:\"interval_count\"`\n\tJSON          struct {\n\t\tInterval      respjson.Field\n\t\tIntervalCount respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemUnionSpecRecurring is an implicit subunion of [VaultItemUnion](#VaultItemUnion). VaultItemUnionSpecRecurring provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [VaultItemUnion](#VaultItemUnion).\n\n```go\nfunc (r *VaultItemUnionSpecRecurring) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUnionSpecTotals struct {\n\t// This field will be present if the value is a [[]CardVaultItemSpecLinkTotal]\n\t// instead of an object.\n\tOfCardVaultItemSpecLinkTotals []CardVaultItemSpecLinkTotal `json:\",inline\"`\n\t// This field will be present if the value is a [[]ShopPayCardVaultItemSpecTotal]\n\t// instead of an object.\n\tOfShopPayCardVaultItemSpecTotals []ShopPayCardVaultItemSpecTotal `json:\",inline\"`\n\t// This field will be present if the value is a\n\t// [[]PaymentRequestVaultItemSpecLinkTotal] instead of an object.\n\tOfPaymentRequestVaultItemSpecLinkTotals []PaymentRequestVaultItemSpecLinkTotal `json:\",inline\"`\n\tJSON                                    struct {\n\t\tOfCardVaultItemSpecLinkTotals           respjson.Field\n\t\tOfShopPayCardVaultItemSpecTotals        respjson.Field\n\t\tOfPaymentRequestVaultItemSpecLinkTotals respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemUnionSpecTotals is an implicit subunion of [VaultItemUnion](#VaultItemUnion). VaultItemUnionSpecTotals provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [VaultItemUnion](#VaultItemUnion).\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfCardVaultItemSpecLinkTotals OfShopPayCardVaultItemSpecTotals OfPaymentRequestVaultItemSpecLinkTotals]\n\n```go\nfunc (r *VaultItemUnionSpecTotals) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUnionState struct {\n\tProvider     string `json:\"provider\"`\n\tStatus       string `json:\"status\"`\n\tStatusReason string `json:\"status_reason\"`\n\t// This field is from variant [WalletVaultItemStateUnion].\n\tUserID         string   `json:\"user_id\"`\n\tCredentialType string   `json:\"credential_type\"`\n\tDomains        []string `json:\"domains\"`\n\t// This field is a union of [CardVaultItemStateLinkMasks],\n\t// [CardVaultItemStateAgentcardMasks], [KernelCardStateMasks],\n\t// [ShopPayCardStateMasks], [VgsCardStateMasks],\n\t// [PaymentRequestVaultItemStateLinkMasks]\n\tMasks VaultItemUnionStateMasks `json:\"masks\"`\n\t// This field is from variant [CardVaultItemStateUnion].\n\tAliases VaultCardAliases `json:\"aliases\"`\n\t// This field is from variant [CardVaultItemStateUnion].\n\tAuthorization AgentcardCheckoutAuthorization `json:\"authorization\"`\n\t// This field is from variant [CardVaultItemStateUnion].\n\tPreparation AgentcardCheckoutPreparation `json:\"preparation\"`\n\t// This field is from variant [CardVaultItemStateUnion],\n\t// [PaymentRequestVaultItemStateUnion].\n\tSource KernelCardStateSource `json:\"source\"`\n\t// This field is from variant [CardVaultItemStateUnion],\n\t// [PaymentRequestVaultItemStateUnion].\n\tFundingStatus KernelCardStateFundingStatus `json:\"funding_status\"`\n\t// This field is from variant [CardVaultItemStateUnion],\n\t// [PaymentRequestVaultItemStateUnion].\n\tPaymentMethodID string `json:\"payment_method_id\"`\n\t// This field is a union of [map[string]CredentialVaultFieldState],\n\t// [map[string]ManagedAuthCredentialVaultField]\n\tFields VaultItemUnionStateFields `json:\"fields\"`\n\t// This field is from variant [CredentialVaultItemStateUnion].\n\tAccessRequest OnePasswordCredentialVaultItemStateAccessRequest `json:\"access_request\"`\n\t// This field is from variant [CredentialVaultItemStateUnion].\n\tAccessRequestID string `json:\"access_request_id\"`\n\tJSON            struct {\n\t\tProvider        respjson.Field\n\t\tStatus          respjson.Field\n\t\tStatusReason    respjson.Field\n\t\tUserID          respjson.Field\n\t\tCredentialType  respjson.Field\n\t\tDomains         respjson.Field\n\t\tMasks           respjson.Field\n\t\tAliases         respjson.Field\n\t\tAuthorization   respjson.Field\n\t\tPreparation     respjson.Field\n\t\tSource          respjson.Field\n\t\tFundingStatus   respjson.Field\n\t\tPaymentMethodID respjson.Field\n\t\tFields          respjson.Field\n\t\tAccessRequest   respjson.Field\n\t\tAccessRequestID respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemUnionState is an implicit subunion of [VaultItemUnion](#VaultItemUnion). VaultItemUnionState provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [VaultItemUnion](#VaultItemUnion).\n\n```go\nfunc (r *VaultItemUnionState) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUnionStateFields struct {\n\t// This field is from variant [map[string]CredentialVaultFieldState].\n\tHasValue bool `json:\"has_value\"`\n\t// This field is from variant [map[string]CredentialVaultFieldState].\n\tValue string `json:\"value\"`\n\t// This field is from variant [map[string]ManagedAuthCredentialVaultField].\n\tType CredentialVaultFieldType `json:\"type\"`\n\tJSON struct {\n\t\tHasValue respjson.Field\n\t\tValue    respjson.Field\n\t\tType     respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemUnionStateFields is an implicit subunion of [VaultItemUnion](#VaultItemUnion). VaultItemUnionStateFields provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [VaultItemUnion](#VaultItemUnion).\n\n```go\nfunc (r *VaultItemUnionStateFields) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUnionStateMasks struct {\n\tBrand      string `json:\"brand\"`\n\tLast4      string `json:\"last4\"`\n\tTokenLast4 string `json:\"token_last4\"`\n\tJSON       struct {\n\t\tBrand      respjson.Field\n\t\tLast4      respjson.Field\n\t\tTokenLast4 respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultItemUnionStateMasks is an implicit subunion of [VaultItemUnion](#VaultItemUnion). VaultItemUnionStateMasks provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [VaultItemUnion](#VaultItemUnion).\n\n```go\nfunc (r *VaultItemUnionStateMasks) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUpdateParams struct {\n\tIDOrName string `path:\"id_or_name\" api:\"required\" json:\"-\"`\n\n\t// This field is a request body variant, only one variant field can be set.\n\tOfCardVaultItemUpdateRequest *VaultItemUpdateParamsBodyCardVaultItemUpdateRequest `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set.\n\tOfPaymentRequestVaultItemUpdateRequest *VaultItemUpdateParamsBodyPaymentRequestVaultItemUpdateRequest `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set.\n\t// Atomically update description, field definitions, and selected values. Omitted\n\t// properties are preserved. `remove_fields` deletes definitions and their values,\n\t// then `add_fields` appends definitions, then `fields` sets values, including for\n\t// added fields. An existing field's definition cannot be edited in place; to\n\t// change it, remove the field and add it again, in the same update or a later one.\n\t// The old value is deleted with it. Unknown field names return 400; stale versions\n\t// or mismatched item types return 409 without changing the item. A successful\n\t// update increments version and invalidates outstanding Kernel-hosted collection\n\t// sessions. If required values remain missing, return pending_collection and a\n\t// fresh collection action. Otherwise return ready without an action; collect can\n\t// open the form again without clearing values. Customer URLs have no\n\t// Kernel-managed expiry. 1Password and managed auth credentials return 409.\n\tOfCredentialVaultItemUpdateRequest *CredentialVaultItemUpdateRequestParam `json:\",inline\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (u VaultItemUpdateParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *VaultItemUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUpdateParamsBodyCardVaultItemUpdateRequest struct {\n\t// Live Link card request. Test-mode card creation is not supported. The spec can\n\t// be changed with PATCH until the card is authorized at a checkout. Authorize it\n\t// with the browser at final checkout: Kernel inspects the checkout through WebMCP\n\t// and internally chooses a merchant-bound Link Pay Token when supported or a\n\t// virtual card otherwise. Callers do not choose how the credential is delivered;\n\t// after authorize, state.credential_type reports it.\n\tSpec CardVaultItemSpecUnionParam `json:\"spec,omitzero\" api:\"required\"`\n\t// Any of \"card\".\n\tType string `json:\"type,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Spec is required.\n\n```go\nfunc (r VaultItemUpdateParamsBodyCardVaultItemUpdateRequest) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultItemUpdateParamsBodyCardVaultItemUpdateRequest) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUpdateParamsBodyPaymentRequestVaultItemUpdateRequest struct {\n\t// Live Link card request. Test-mode card creation is not supported. The spec can\n\t// be changed with PATCH until the card is authorized at a checkout. Authorize it\n\t// with the browser at final checkout: Kernel inspects the checkout through WebMCP\n\t// and internally chooses a merchant-bound Link Pay Token when supported or a\n\t// virtual card otherwise. Callers do not choose how the credential is delivered;\n\t// after authorize, state.credential_type reports it.\n\tSpec PaymentRequestVaultItemSpecUnionParam `json:\"spec,omitzero\" api:\"required\"`\n\t// Any of \"payment_request\".\n\tType string `json:\"type,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Spec, Type are required.\n\n```go\nfunc (r VaultItemUpdateParamsBodyPaymentRequestVaultItemUpdateRequest) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultItemUpdateParamsBodyPaymentRequestVaultItemUpdateRequest) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUpsertParams struct {\n\tIDOrName string `path:\"id_or_name\" api:\"required\" json:\"-\"`\n\n\t// This field is a request body variant, only one variant field can be set.\n\tOfWallet *VaultItemUpsertParamsBodyWallet `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set. Card\n\t// items are supported for Link and Kernel purchases and are required for AgentCard\n\t// reusable cards. Where enabled, Link and Kernel purchases can also be created as\n\t// payment_request items.\n\tOfCard *VaultItemUpsertParamsBodyCard `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set. Create\n\t// one Link or Kernel purchase under its wallet, where payment requests are enabled\n\t// for the organization. Kernel requests must select payment_method_id explicitly.\n\tOfPaymentRequest *VaultItemUpsertParamsBodyPaymentRequest `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set.\n\tOfCredentialAccount *CredentialAccountVaultItemRequestParam `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set. Ask the\n\t// end-user whether to link their site credential through 1Password. If they choose\n\t// 1Password, connect their account and request access to a login in their own\n\t// non-shared vault; passkeys are not supported. If they decline or that path\n\t// fails, collect a Kernel-hosted credential item instead. Never automatically\n\t// retry an uncertain 1Password request. After an uncertain fill, inspect the page\n\t// to see the result of the fill. Do not use credential items for credit card data.\n\t// Use wallet, payment_request and card item types instead. Kernel credentials\n\t// declare fields and may enter pending_collection. 1Password credentials either\n\t// reference a connected credential_account or store a supplied access token and\n\t// integration key encrypted on the item. They store no login values or selectors.\n\t// Managed auth credentials reference a managed auth connection in the same project\n\t// that already has a saved credential, and read it at fill time; they store no\n\t// values. Repeating the original creation request returns the current item without\n\t// overwriting later state. A different request at the same key returns 409.\n\tOfCredential *CredentialVaultItemRequestParam `json:\",inline\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (u VaultItemUpsertParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *VaultItemUpsertParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUpsertParamsBodyCard struct {\n\t// Live Link card request. Test-mode card creation is not supported. The spec can\n\t// be changed with PATCH until the card is authorized at a checkout. Authorize it\n\t// with the browser at final checkout: Kernel inspects the checkout through WebMCP\n\t// and internally chooses a merchant-bound Link Pay Token when supported or a\n\t// virtual card otherwise. Callers do not choose how the credential is delivered;\n\t// after authorize, state.credential_type reports it.\n\tSpec CardVaultItemSpecUnionParam `json:\"spec,omitzero\" api:\"required\"`\n\t// This field can be elided, and will marshal its zero value as \"card\".\n\tType constant.Card `json:\"type\" default:\"card\"`\n\t// contains filtered or unexported fields\n}\n```\nCard items are supported for Link and Kernel purchases and are required for AgentCard reusable cards. Where enabled, Link and Kernel purchases can also be created as payment\\_request items.\n\nThe properties Spec, Type are required.\n\n```go\nfunc (r VaultItemUpsertParamsBodyCard) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultItemUpsertParamsBodyCard) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUpsertParamsBodyPaymentRequest struct {\n\t// Live Link card request. Test-mode card creation is not supported. The spec can\n\t// be changed with PATCH until the card is authorized at a checkout. Authorize it\n\t// with the browser at final checkout: Kernel inspects the checkout through WebMCP\n\t// and internally chooses a merchant-bound Link Pay Token when supported or a\n\t// virtual card otherwise. Callers do not choose how the credential is delivered;\n\t// after authorize, state.credential_type reports it.\n\tSpec PaymentRequestVaultItemSpecUnionParam `json:\"spec,omitzero\" api:\"required\"`\n\t// This field can be elided, and will marshal its zero value as \"payment_request\".\n\tType constant.PaymentRequest `json:\"type\" default:\"payment_request\"`\n\t// contains filtered or unexported fields\n}\n```\nCreate one Link or Kernel purchase under its wallet, where payment requests are enabled for the organization. Kernel requests must select payment\\_method\\_id explicitly.\n\nThe properties Spec, Type are required.\n\n```go\nfunc (r VaultItemUpsertParamsBodyPaymentRequest) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultItemUpsertParamsBodyPaymentRequest) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUpsertParamsBodyWallet struct {\n\t// AgentCard wallet. Omit provider_config to use Kernel-managed credentials, or\n\t// select a customer-owned configuration. Mode (sandbox vs live) is determined by\n\t// the selected credential; there is no per-item test flag. Without user_id,\n\t// creation returns a hosted enrollment action and Kernel polls until the user\n\t// connects. With a customer-owned provider_config, user_id imports an existing\n\t// connection after verifying access with the selected credentials in their sandbox\n\t// or live mode; no hosted enrollment is needed, even if the connected user has no\n\t// stored cards. With Kernel-managed credentials, user_id may only reference a user\n\t// already enrolled by a wallet in this organization under the same configuration.\n\t// The user and configuration bindings cannot be changed after creation. Import\n\t// validation is read-only and runs before creation: a failed validation leaves no\n\t// wallet or reserved key, so the user_id can be corrected and retried. Concurrent\n\t// imports of the same key may both validate, but create at most one wallet and\n\t// connected event.\n\tSpec VaultItemUpsertParamsBodyWalletSpecUnion `json:\"spec,omitzero\" api:\"required\"`\n\t// This field can be elided, and will marshal its zero value as \"wallet\".\n\tType constant.Wallet `json:\"type\" default:\"wallet\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Spec, Type are required.\n\n```go\nfunc (r VaultItemUpsertParamsBodyWallet) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultItemUpsertParamsBodyWallet) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUpsertParamsBodyWalletSpecAgentcard struct {\n\tUserID param.Opt[string] `json:\"user_id,omitzero\"`\n\t// Select an AgentCard configuration. The wallet's configuration cannot be changed\n\t// after creation.\n\tProviderConfig VaultItemUpsertParamsBodyWalletSpecAgentcardProviderConfig `json:\"provider_config,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as \"agentcard\".\n\tProvider constant.Agentcard `json:\"provider\" default:\"agentcard\"`\n\t// contains filtered or unexported fields\n}\n```\nAgentCard wallet. Omit provider\\_config to use Kernel-managed credentials, or select a customer-owned configuration. Mode (sandbox vs live) is determined by the selected credential; there is no per-item test flag. Without user\\_id, creation returns a hosted enrollment action and Kernel polls until the user connects. With a customer-owned provider\\_config, user\\_id imports an existing connection after verifying access with the selected credentials in their sandbox or live mode; no hosted enrollment is needed, even if the connected user has no stored cards. With Kernel-managed credentials, user\\_id may only reference a user already enrolled by a wallet in this organization under the same configuration. The user and configuration bindings cannot be changed after creation. Import validation is read-only and runs before creation: a failed validation leaves no wallet or reserved key, so the user\\_id can be corrected and retried. Concurrent imports of the same key may both validate, but create at most one wallet and connected event.\n\nThe property Provider is required.\n\n```go\nfunc (r VaultItemUpsertParamsBodyWalletSpecAgentcard) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultItemUpsertParamsBodyWalletSpecAgentcard) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUpsertParamsBodyWalletSpecAgentcardProviderConfig struct {\n\tID   param.Opt[string] `json:\"id,omitzero\"`\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nSelect an AgentCard configuration. The wallet's configuration cannot be changed after creation.\n\n```go\nfunc (r VaultItemUpsertParamsBodyWalletSpecAgentcardProviderConfig) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultItemUpsertParamsBodyWalletSpecAgentcardProviderConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUpsertParamsBodyWalletSpecLink struct {\n\t// Kernel starts and completes the user's Link authorization flow.\n\tAuthorization VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationUnion `json:\"authorization,omitzero\" api:\"required\"`\n\t// This field can be elided, and will marshal its zero value as \"link\".\n\tProvider constant.Link `json:\"provider\" default:\"link\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Authorization, Provider are required.\n\n```go\nfunc (r VaultItemUpsertParamsBodyWalletSpecLink) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultItemUpsertParamsBodyWalletSpecLink) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationImportedLinkAuthorizationInput struct {\n\tClient VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationImportedLinkAuthorizationInputClient `json:\"client,omitzero\" api:\"required\"`\n\t// Any of \"oauth\".\n\tMethod string `json:\"method,omitzero\" api:\"required\"`\n\t// Send the tokens from your backend. Supply a currently valid access token. With\n\t// token_refresh=kernel, also send the refresh token from the same Link grant under\n\t// the referenced client; Kernel refreshes when needed after import and uses the\n\t// expiry returned by Link for subsequent tokens. With token_refresh=customer, omit\n\t// the refresh token. Tokens are never returned in wallet responses, events, or\n\t// logs.\n\tTokens VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationImportedLinkAuthorizationInputTokens `json:\"tokens,omitzero\" api:\"required\"`\n\t// Who refreshes an imported Link grant. kernel (default) means Kernel holds and\n\t// rotates the refresh token. customer means your backend keeps the refresh token\n\t// and replaces the access token with update_access_token; Kernel never refreshes\n\t// or revokes the grant. Fixed at wallet creation.\n\t//\n\t// Any of \"kernel\", \"customer\".\n\tTokenRefresh string `json:\"token_refresh,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe customer's backend completes Link OAuth and supplies the resulting tokens. For a new wallet, Kernel verifies the access token can access Link payment methods without consuming or rotating the refresh token. Valid access creates a wallet with state.status=connected. An expired, invalid, revoked, or insufficiently scoped access token returns 400 and no wallet is created. Refresh expired tokens in your backend before importing them. A failed import does not modify existing wallets. By default (token\\_refresh=kernel), Kernel owns subsequent refresh-token rotation after a successful import; the customer must stop refreshing this grant. With token\\_refresh=customer, send only the access token: your backend keeps the refresh token and rotates the grant, and Kernel never refreshes or revokes it. When Link rejects the stored access token, any operation that reaches Link, such as creating, authorizing or filling a card, returns 409 with code access\\_token\\_rejected without contacting Link again. Push a fresh access token with the wallet's update\\_access\\_token operation, then retry the operation. The remainder of this description applies to token\\_refresh=kernel. With token\\_refresh=kernel, Kernel owns subsequent refresh-token rotation; the customer must stop refreshing this grant. Import does not verify the refresh token: if it or the configured client credentials are rejected during a later refresh, the imported wallet becomes degraded. An unknown refresh outcome also leaves it degraded; Kernel does not retry a refresh token that may already have been consumed. There is no in-place reauthorization operation for an imported wallet. If this imported wallet's credentials become unusable, obtain a fresh Link OAuth grant in your backend and create a wallet under a NEW wallet key. Use the new wallet for NEW cards and payments, not to retry an old payment whose outcome is uncertain. This does not replace the old grant, rebind existing cards, or resolve their payment outcomes. Retain the old wallet and its cards while reconciling any uncertain payments with the provider or support. Do not repeat an uncertain payment on the new wallet, and do not treat deletion as evidence that it did not execute. Deletion of the old wallet can remain blocked by unresolved child cards. Repeating a create for the same item key and non-secret spec returns the existing wallet without replacing tokens, even if they have rotated or the wallet needs reconnection. ID and name references resolving to the same config are equivalent. A different config or non-secret spec returns 409. This create operation does not replace an existing grant.\n\nThe properties Client, Method, Tokens are required.\n\n```go\nfunc (r VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationImportedLinkAuthorizationInput) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationImportedLinkAuthorizationInput) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationImportedLinkAuthorizationInputClient struct {\n\t// Select a provider config by ID or name. Responses return the ID. Renaming a\n\t// config does not change existing wallet bindings; an item cannot switch to a\n\t// different config after creation.\n\tProviderConfig VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationImportedLinkAuthorizationInputClientProviderConfig `json:\"provider_config,omitzero\" api:\"required\"`\n\t// Any of \"customer_managed\".\n\tType string `json:\"type,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties ProviderConfig, Type are required.\n\n```go\nfunc (r VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationImportedLinkAuthorizationInputClient) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationImportedLinkAuthorizationInputClient) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationImportedLinkAuthorizationInputClientProviderConfig struct {\n\tID   param.Opt[string] `json:\"id,omitzero\"`\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nSelect a provider config by ID or name. Responses return the ID. Renaming a config does not change existing wallet bindings; an item cannot switch to a different config after creation.\n\n```go\nfunc (r VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationImportedLinkAuthorizationInputClientProviderConfig) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationImportedLinkAuthorizationInputClientProviderConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationImportedLinkAuthorizationInputTokens struct {\n\tAccessToken string `json:\"access_token\" api:\"required\"`\n\t// Required with token_refresh=kernel; rejected with token_refresh=customer.\n\tRefreshToken param.Opt[string] `json:\"refresh_token,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nSend the tokens from your backend. Supply a currently valid access token. With token\\_refresh=kernel, also send the refresh token from the same Link grant under the referenced client; Kernel refreshes when needed after import and uses the expiry returned by Link for subsequent tokens. With token\\_refresh=customer, omit the refresh token. Tokens are never returned in wallet responses, events, or logs.\n\nThe property AccessToken is required.\n\n```go\nfunc (r VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationImportedLinkAuthorizationInputTokens) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationImportedLinkAuthorizationInputTokens) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationKernelManagedLinkAuthorizationInput struct {\n\tClient VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationKernelManagedLinkAuthorizationInputClient `json:\"client,omitzero\" api:\"required\"`\n\t// Any of \"oauth\".\n\tMethod string `json:\"method,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nKernel starts and completes the user's Link authorization flow.\n\nThe properties Client, Method are required.\n\n```go\nfunc (r VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationKernelManagedLinkAuthorizationInput) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationKernelManagedLinkAuthorizationInput) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationKernelManagedLinkAuthorizationInputClient struct {\n\t// Any of \"kernel_managed\".\n\tType string `json:\"type,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Type is required.\n\n```go\nfunc (r VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationKernelManagedLinkAuthorizationInputClient) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationKernelManagedLinkAuthorizationInputClient) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationUnion struct {\n\tOfVaultItemUpsertsBodyWalletSpecLinkAuthorizationKernelManagedLinkAuthorizationInput *VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationKernelManagedLinkAuthorizationInput `json:\",omitzero,inline\"`\n\tOfVaultItemUpsertsBodyWalletSpecLinkAuthorizationImportedLinkAuthorizationInput      *VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationImportedLinkAuthorizationInput      `json:\",omitzero,inline\"`\n\t// contains filtered or unexported fields\n}\n```\nOnly one field can be non-zero.\n\nUse [param.IsOmitted](/github.com/kernel/kernel-go-sdk/packages/param#IsOmitted) to confirm if a field is set.\n\n```go\nfunc (u VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationUnion) GetClient() (res vaultItemUpsertParamsBodyWalletSpecLinkAuthorizationUnionClient)\n```\nReturns a subunion which exports methods to access subproperties\n\nOr use AsAny() to get the underlying value\n\n```go\nfunc (u VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationUnion) GetMethod() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationUnion) GetTokenRefresh() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationUnion) GetTokens() *VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationImportedLinkAuthorizationInputTokens\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationUnion) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (u *VaultItemUpsertParamsBodyWalletSpecLinkAuthorizationUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemUpsertParamsBodyWalletSpecUnion struct {\n\tOfLink      *VaultItemUpsertParamsBodyWalletSpecLink      `json:\",omitzero,inline\"`\n\tOfAgentcard *VaultItemUpsertParamsBodyWalletSpecAgentcard `json:\",omitzero,inline\"`\n\tOfKernel    *KernelWalletVaultItemSpecParam               `json:\",omitzero,inline\"`\n\tOfShopPay   *ShopPayWalletVaultItemSpecParam              `json:\",omitzero,inline\"`\n\tOfVgs       *VgsWalletVaultItemSpecParam                  `json:\",omitzero,inline\"`\n\t// contains filtered or unexported fields\n}\n```\nOnly one field can be non-zero.\n\nUse [param.IsOmitted](/github.com/kernel/kernel-go-sdk/packages/param#IsOmitted) to confirm if a field is set.\n\n```go\nfunc (u VaultItemUpsertParamsBodyWalletSpecUnion) GetAuthorization() (res vaultItemUpsertParamsBodyWalletSpecUnionAuthorization)\n```\nReturns a subunion which exports methods to access subproperties\n\nOr use AsAny() to get the underlying value\n\n```go\nfunc (u VaultItemUpsertParamsBodyWalletSpecUnion) GetProvider() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u VaultItemUpsertParamsBodyWalletSpecUnion) GetProviderConfig() (res vaultItemUpsertParamsBodyWalletSpecUnionProviderConfig)\n```\nReturns a subunion which exports methods to access subproperties\n\nOr use AsAny() to get the underlying value\n\n```go\nfunc (u VaultItemUpsertParamsBodyWalletSpecUnion) GetUserID() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u VaultItemUpsertParamsBodyWalletSpecUnion) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (u *VaultItemUpsertParamsBodyWalletSpecUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemWallet struct {\n\tID                  string                              `json:\"id\" api:\"required\"`\n\tAvailableExpansions []VaultItemWalletAvailableExpansion `json:\"available_expansions\" api:\"required\"`\n\tAvailableOperations []VaultItemWalletAvailableOperation `json:\"available_operations\" api:\"required\"`\n\tCreatedAt           time.Time                           `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Immutable item key assigned when the item is created.\n\tKey string `json:\"key\" api:\"required\"`\n\t// AgentCard wallet. Omit provider_config to use Kernel-managed credentials, or\n\t// select a customer-owned configuration. Mode (sandbox vs live) is determined by\n\t// the selected credential; there is no per-item test flag. Without user_id,\n\t// creation returns a hosted enrollment action and Kernel polls until the user\n\t// connects. With a customer-owned provider_config, user_id imports an existing\n\t// connection after verifying access with the selected credentials in their sandbox\n\t// or live mode; no hosted enrollment is needed, even if the connected user has no\n\t// stored cards. With Kernel-managed credentials, user_id may only reference a user\n\t// already enrolled by a wallet in this organization under the same configuration.\n\t// The user and configuration bindings cannot be changed after creation. Import\n\t// validation is read-only and runs before creation: a failed validation leaves no\n\t// wallet or reserved key, so the user_id can be corrected and retried. Concurrent\n\t// imports of the same key may both validate, but create at most one wallet and\n\t// connected event.\n\tSpec      WalletVaultItemSpecUnion  `json:\"spec\" api:\"required\"`\n\tState     WalletVaultItemStateUnion `json:\"state\" api:\"required\"`\n\tType      constant.Wallet           `json:\"type\" default:\"wallet\"`\n\tUpdatedAt time.Time                 `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\tAction    VaultItemActionUnion      `json:\"action\"`\n\t// Server-generated provider and lifecycle guidance for agents.\n\tDescription string `json:\"description\"`\n\t// Live, non-persisted data requested through the item GET expand parameter.\n\tExpanded  VaultItemWalletExpanded `json:\"expanded\"`\n\tExpiresAt time.Time               `json:\"expires_at\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                  respjson.Field\n\t\tAvailableExpansions respjson.Field\n\t\tAvailableOperations respjson.Field\n\t\tCreatedAt           respjson.Field\n\t\tKey                 respjson.Field\n\t\tSpec                respjson.Field\n\t\tState               respjson.Field\n\t\tType                respjson.Field\n\t\tUpdatedAt           respjson.Field\n\t\tAction              respjson.Field\n\t\tDescription         respjson.Field\n\t\tExpanded            respjson.Field\n\t\tExpiresAt           respjson.Field\n\t\tExtraFields         map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r VaultItemWallet) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultItemWallet) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemWalletAvailableExpansion struct {\n\tDescription string `json:\"description\" api:\"required\"`\n\t// Any of \"payment_methods\", \"link_user_info\", \"link_shipping_addresses\".\n\tType string `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDescription respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nLive data that can currently be requested by passing its type to the item GET expand parameter.\n\n```go\nfunc (r VaultItemWalletAvailableExpansion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultItemWalletAvailableExpansion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemWalletAvailableOperation struct {\n\tDescription string `json:\"description\" api:\"required\"`\n\t// Any of \"authorize\", \"restart_verification\", \"confirm_transaction\", \"collect\",\n\t// \"prepare_checkout\", \"fill\", \"arm_passkey\", \"register_passkey\", \"disarm_passkey\",\n\t// \"1pw_create_access_request\", \"1pw_access_request_status\", \"1pw_fill\",\n\t// \"1pw_recover\", \"1pw_disconnect\", \"1pw_update_access_token\",\n\t// \"update_access_token\", \"webmcp_invoke\", \"add_payment_method\",\n\t// \"remove_payment_method\", \"link_balance_setup\".\n\tType string `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDescription respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn operation that is currently valid for this item. Read the description before invoking it through the item operations endpoint.\n\n```go\nfunc (r VaultItemWalletAvailableOperation) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultItemWalletAvailableOperation) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultItemWalletExpanded struct {\n\t// Link's saved shipping addresses, present when the `link_shipping_addresses`\n\t// expansion is requested.\n\tLinkShippingAddresses []LinkShippingAddress `json:\"link_shipping_addresses\"`\n\t// Link's `GET /userinfo` response for the connected wallet, passed through as Link\n\t// reports it when the `link_user_info` expansion is requested. Kernel never stores\n\t// it. Null fields are null at Link; omitted fields were not reported. Amounts are\n\t// in the minor unit of `default_spend_request_currency`.\n\tLinkUserInfo   LinkUserInfo         `json:\"link_user_info\"`\n\tPaymentMethods []VaultPaymentMethod `json:\"payment_methods\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tLinkShippingAddresses respjson.Field\n\t\tLinkUserInfo          respjson.Field\n\t\tPaymentMethods        respjson.Field\n\t\tExtraFields           map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nLive, non-persisted data requested through the item GET expand parameter.\n\n```go\nfunc (r VaultItemWalletExpanded) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultItemWalletExpanded) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultListParams struct {\n\tLimit  param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Case-insensitive substring match against vault name. IDs match by exact value.\n\tQuery param.Opt[string] `query:\"query,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r VaultListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [VaultListParams](#VaultListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype VaultPaymentMethod struct {\n\tID string `json:\"id\" api:\"required\"`\n\t// Provider-reported advisory capabilities. A missing capability is unknown, not\n\t// ineligible; only eligible=false is an explicit negative signal.\n\tCapabilities VaultPaymentMethodCapabilities `json:\"capabilities\" api:\"required\"`\n\tDisplay      VaultPaymentMethodDisplay      `json:\"display\" api:\"required\"`\n\t// For Kernel wallets, true for the default card, ID card, which a Kernel card item\n\t// that omits payment_method_id selects. Only wallets created before cards were\n\t// added with add_payment_method have a default card.\n\tIsDefault bool `json:\"is_default\" api:\"required\"`\n\t// Provider that issued this payment-method ID.\n\tProvider string `json:\"provider\" api:\"required\"`\n\t// Provider-neutral payment-method type normalized to lowercase.\n\tType string `json:\"type\" api:\"required\"`\n\t// The open enrollment of a pending payment method. card_enrollment is a single-use\n\t// hosted link for the cardholder. card_ingest is a single-use URL on a Kernel\n\t// ingest hostname served by the card vault, which the card's issuer posts the card\n\t// to from its backend; Kernel never receives the card number or CVC.\n\tAction VaultPaymentMethodAction `json:\"action\"`\n\t// Present on stored-value payment methods, such as a Link balance (type\n\t// `balance`). `available` is the amount available to spend, absent when the\n\t// provider did not report it. Read live from the provider on every request and\n\t// never stored by Kernel.\n\tBalance VaultPaymentMethodBalance `json:\"balance\"`\n\t// Expiry of a pending enrollment link or ingest URL.\n\tExpiresAt time.Time `json:\"expires_at\" format:\"date-time\"`\n\t// Kernel wallets only. The issuer's reference for a card it pushed with a\n\t// card_ingest URL.\n\tIssuerReference string `json:\"issuer_reference\"`\n\t// Kernel wallets only. pending_enrollment means a card_enrollment link or\n\t// card_ingest URL is open; active means the card is stored and can pay when\n\t// capabilities.single_use_card.eligible is true; removal_pending means removal\n\t// started but the provider outcome is unknown, so retry remove_payment_method;\n\t// recovery_required means either an enrollment outcome is unknown (remove the\n\t// method), or the stored card cannot be read (contact support; removal is refused\n\t// with 409). Consult status_reason to distinguish these cases. Absent for other\n\t// providers.\n\t//\n\t// Any of \"pending_enrollment\", \"active\", \"removal_pending\", \"recovery_required\".\n\tStatus       VaultPaymentMethodStatus `json:\"status\"`\n\tStatusReason string                   `json:\"status_reason\"`\n\t// Kernel wallets only. When a card pushed with a card_ingest URL stops being\n\t// usable, as its issuer set.\n\tValidUntil time.Time `json:\"valid_until\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID              respjson.Field\n\t\tCapabilities    respjson.Field\n\t\tDisplay         respjson.Field\n\t\tIsDefault       respjson.Field\n\t\tProvider        respjson.Field\n\t\tType            respjson.Field\n\t\tAction          respjson.Field\n\t\tBalance         respjson.Field\n\t\tExpiresAt       respjson.Field\n\t\tIssuerReference respjson.Field\n\t\tStatus          respjson.Field\n\t\tStatusReason    respjson.Field\n\t\tValidUntil      respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r VaultPaymentMethod) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultPaymentMethod) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultPaymentMethodAction struct {\n\t// Any of \"card_enrollment\", \"card_ingest\".\n\tName string `json:\"name\" api:\"required\"`\n\tURL  string `json:\"url\" api:\"required\" format:\"uri\"`\n\t// Secret bearer capability for embedded card capture with @onkernel/vault-react.\n\t// Present only on card_enrollment for Kernel wallets; never for AgentCard. Treat\n\t// it like the enrollment URL and do not log or persist it in browser storage.\n\tCaptureToken string `json:\"capture_token\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tName         respjson.Field\n\t\tURL          respjson.Field\n\t\tCaptureToken respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nThe open enrollment of a pending payment method. card\\_enrollment is a single-use hosted link for the cardholder. card\\_ingest is a single-use URL on a Kernel ingest hostname served by the card vault, which the card's issuer posts the card to from its backend; Kernel never receives the card number or CVC.\n\n```go\nfunc (r VaultPaymentMethodAction) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultPaymentMethodAction) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultPaymentMethodAmount struct {\n\t// Amount in the currency's smallest unit, for example cents for USD.\n\tAmount int64 `json:\"amount\" api:\"required\"`\n\t// Lowercase ISO 4217 currency code.\n\tCurrency string `json:\"currency\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAmount      respjson.Field\n\t\tCurrency    respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r VaultPaymentMethodAmount) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultPaymentMethodAmount) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultPaymentMethodBalance struct {\n\tAvailable VaultPaymentMethodAmount `json:\"available\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAvailable   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPresent on stored-value payment methods, such as a Link balance (type \\`balance\\`). \\`available\\` is the amount available to spend, absent when the provider did not report it. Read live from the provider on every request and never stored by Kernel.\n\n```go\nfunc (r VaultPaymentMethodBalance) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultPaymentMethodBalance) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultPaymentMethodCapabilities struct {\n\tSingleUseCard VaultPaymentMethodCapabilitiesSingleUseCard `json:\"single_use_card\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tSingleUseCard respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nProvider-reported advisory capabilities. A missing capability is unknown, not ineligible; only eligible=false is an explicit negative signal.\n\n```go\nfunc (r VaultPaymentMethodCapabilities) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultPaymentMethodCapabilities) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultPaymentMethodCapabilitiesSingleUseCard struct {\n\tEligible bool     `json:\"eligible\" api:\"required\"`\n\tReasons  []string `json:\"reasons\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEligible    respjson.Field\n\t\tReasons     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r VaultPaymentMethodCapabilitiesSingleUseCard) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultPaymentMethodCapabilitiesSingleUseCard) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultPaymentMethodDisplay struct {\n\tBrand string `json:\"brand\"`\n\tLabel string `json:\"label\"`\n\tLast4 string `json:\"last4\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBrand       respjson.Field\n\t\tLabel       respjson.Field\n\t\tLast4       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r VaultPaymentMethodDisplay) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultPaymentMethodDisplay) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultPaymentMethodStatus string\n```\nKernel wallets only. pending\\_enrollment means a card\\_enrollment link or card\\_ingest URL is open; active means the card is stored and can pay when capabilities.single\\_use\\_card.eligible is true; removal\\_pending means removal started but the provider outcome is unknown, so retry remove\\_payment\\_method; recovery\\_required means either an enrollment outcome is unknown (remove the method), or the stored card cannot be read (contact support; removal is refused with 409). Consult status\\_reason to distinguish these cases. Absent for other providers.\n\n```go\nconst (\n\tVaultPaymentMethodStatusPendingEnrollment VaultPaymentMethodStatus = \"pending_enrollment\"\n\tVaultPaymentMethodStatusActive            VaultPaymentMethodStatus = \"active\"\n\tVaultPaymentMethodStatusRemovalPending    VaultPaymentMethodStatus = \"removal_pending\"\n\tVaultPaymentMethodStatusRecoveryRequired  VaultPaymentMethodStatus = \"recovery_required\"\n)\n```\n\n```go\ntype VaultProviderConfigAgentcard struct {\n\tID        string             `json:\"id\" api:\"required\"`\n\tClientID  string             `json:\"client_id\" api:\"required\"`\n\tCreatedAt time.Time          `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\tName      string             `json:\"name\" api:\"required\"`\n\tProvider  constant.Agentcard `json:\"provider\" default:\"agentcard\"`\n\t// Introspected mode of the selected credential; true means sandbox objects.\n\tTestMode  bool      `json:\"test_mode\" api:\"required\"`\n\tUpdatedAt time.Time `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tClientID    respjson.Field\n\t\tCreatedAt   respjson.Field\n\t\tName        respjson.Field\n\t\tProvider    respjson.Field\n\t\tTestMode    respjson.Field\n\t\tUpdatedAt   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nResponse schema for an AgentCard configuration, without secret credentials. Kernel generates the ID and timestamps and introspects test\\_mode from the credentials. Configuration creation uses VaultAgentCardProviderConfigRequest.\n\n```go\nfunc (r VaultProviderConfigAgentcard) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultProviderConfigAgentcard) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultProviderConfigLink struct {\n\tID string `json:\"id\" api:\"required\"`\n\t// OAuth client identity; immutable. Secret credentials are never returned.\n\tClientID  string    `json:\"client_id\" api:\"required\"`\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Unique within the organization.\n\tName      string        `json:\"name\" api:\"required\"`\n\tProvider  constant.Link `json:\"provider\" default:\"link\"`\n\tUpdatedAt time.Time     `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\t// Stripe publishable key sent to Link when refreshing and revoking wallet grants.\n\t// Omitted when not configured.\n\tPublishableKey string `json:\"publishable_key\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID             respjson.Field\n\t\tClientID       respjson.Field\n\t\tCreatedAt      respjson.Field\n\t\tName           respjson.Field\n\t\tProvider       respjson.Field\n\t\tUpdatedAt      respjson.Field\n\t\tPublishableKey respjson.Field\n\t\tExtraFields    map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nResponse schema for a Link configuration, without secret credentials. Kernel generates the ID and timestamps. Configuration creation uses VaultLinkProviderConfigRequest.\n\n```go\nfunc (r VaultProviderConfigLink) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultProviderConfigLink) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultProviderConfigListParams struct {\n\tLimit  param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r VaultProviderConfigListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [VaultProviderConfigListParams](#VaultProviderConfigListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype VaultProviderConfigNewParams struct {\n\n\t// This field is a request body variant, only one variant field can be set.\n\t// Register a customer-owned Link OAuth client for refreshing and revoking imported\n\t// wallet grants. The customer is responsible for initiating OAuth flows to connect\n\t// a user's wallet and handling the redirect to obtain a Link access token and\n\t// refresh token.\n\tOfLink *VaultProviderConfigNewParamsBodyLink `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set.\n\t// Register application credentials for AgentCard wallet enrollment and checkout\n\t// approvals. Kernel obtains application access tokens using client_credentials.\n\tOfAgentcard *VaultProviderConfigNewParamsBodyAgentcard `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set.\n\t// Register a service account for a customer-managed VGS vault. Kernel fetches a\n\t// token, requires the aliases:read scope, and then looks up an alias that does not\n\t// exist to confirm the account reaches vault_id in environment. If either check\n\t// fails, nothing is stored.\n\tOfVgs *VaultProviderConfigNewParamsBodyVgs `json:\",inline\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (u VaultProviderConfigNewParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *VaultProviderConfigNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultProviderConfigNewParamsBodyAgentcard struct {\n\tCredentials VaultProviderConfigNewParamsBodyAgentcardCredentials `json:\"credentials,omitzero\" api:\"required\"`\n\t// Unique within the organization.\n\tName string `json:\"name\" api:\"required\"`\n\t// This field can be elided, and will marshal its zero value as \"agentcard\".\n\tProvider constant.Agentcard `json:\"provider\" default:\"agentcard\"`\n\t// contains filtered or unexported fields\n}\n```\nRegister application credentials for AgentCard wallet enrollment and checkout approvals. Kernel obtains application access tokens using client\\_credentials.\n\nThe properties Credentials, Name, Provider are required.\n\n```go\nfunc (r VaultProviderConfigNewParamsBodyAgentcard) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultProviderConfigNewParamsBodyAgentcard) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultProviderConfigNewParamsBodyAgentcardCredentials struct {\n\tClientID     string `json:\"client_id\" api:\"required\"`\n\tClientSecret string `json:\"client_secret\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties ClientID, ClientSecret are required.\n\n```go\nfunc (r VaultProviderConfigNewParamsBodyAgentcardCredentials) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultProviderConfigNewParamsBodyAgentcardCredentials) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultProviderConfigNewParamsBodyLink struct {\n\tCredentials VaultProviderConfigNewParamsBodyLinkCredentials `json:\"credentials,omitzero\" api:\"required\"`\n\t// Unique within the organization.\n\tName string `json:\"name\" api:\"required\"`\n\t// This field can be elided, and will marshal its zero value as \"link\".\n\tProvider constant.Link `json:\"provider\" default:\"link\"`\n\t// contains filtered or unexported fields\n}\n```\nRegister a customer-owned Link OAuth client for refreshing and revoking imported wallet grants. The customer is responsible for initiating OAuth flows to connect a user's wallet and handling the redirect to obtain a Link access token and refresh token.\n\nThe properties Credentials, Name, Provider are required.\n\n```go\nfunc (r VaultProviderConfigNewParamsBodyLink) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultProviderConfigNewParamsBodyLink) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultProviderConfigNewParamsBodyLinkCredentials struct {\n\tClientID     string `json:\"client_id\" api:\"required\"`\n\tClientSecret string `json:\"client_secret\" api:\"required\"`\n\t// Stripe publishable key for the account that owns the Link OAuth client. Link\n\t// requires it as the bearer credential when Kernel refreshes or revokes imported\n\t// wallet grants; without it, those wallets stop working when the imported access\n\t// token expires.\n\tPublishableKey param.Opt[string] `json:\"publishable_key,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties ClientID, ClientSecret are required.\n\n```go\nfunc (r VaultProviderConfigNewParamsBodyLinkCredentials) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultProviderConfigNewParamsBodyLinkCredentials) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultProviderConfigNewParamsBodyVgs struct {\n\t// A VGS service account with the aliases:read scope on the customer's vault, which\n\t// Kernel uses to reveal the aliases each purchase sends.\n\tCredentials VaultProviderConfigNewParamsBodyVgsCredentials `json:\"credentials,omitzero\" api:\"required\"`\n\t// Unique within the organization.\n\tName string `json:\"name\" api:\"required\"`\n\t// This field can be elided, and will marshal its zero value as \"vgs\".\n\tProvider constant.Vgs `json:\"provider\" default:\"vgs\"`\n\t// contains filtered or unexported fields\n}\n```\nRegister a service account for a customer-managed VGS vault. Kernel fetches a token, requires the aliases:read scope, and then looks up an alias that does not exist to confirm the account reaches vault\\_id in environment. If either check fails, nothing is stored.\n\nThe properties Credentials, Name, Provider are required.\n\n```go\nfunc (r VaultProviderConfigNewParamsBodyVgs) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultProviderConfigNewParamsBodyVgs) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultProviderConfigNewParamsBodyVgsCredentials struct {\n\tClientID     string `json:\"client_id\" api:\"required\"`\n\tClientSecret string `json:\"client_secret\" api:\"required\"`\n\t// The vault's VGS environment.\n\t//\n\t// Any of \"sandbox\", \"live\".\n\tEnvironment string `json:\"environment,omitzero\" api:\"required\"`\n\t// The customer's VGS vault ID.\n\tVaultID string `json:\"vault_id\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nA VGS service account with the aliases:read scope on the customer's vault, which Kernel uses to reveal the aliases each purchase sends.\n\nThe properties ClientID, ClientSecret, Environment, VaultID are required.\n\n```go\nfunc (r VaultProviderConfigNewParamsBodyVgsCredentials) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultProviderConfigNewParamsBodyVgsCredentials) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultProviderConfigService struct {\n\tOptions []option.RequestOption\n}\n```\nVaultProviderConfigService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewVaultProviderConfigService](#NewVaultProviderConfigService) method instead.\n\n```go\nfunc NewVaultProviderConfigService(opts ...option.RequestOption) (r VaultProviderConfigService)\n```\nNewVaultProviderConfigService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *VaultProviderConfigService) Delete(ctx context.Context, idOrName string, opts ...option.RequestOption) (err error)\n```\nDelete a configuration in the organization. Returns 409 while any non-deleted vault item references the configuration, regardless of connection status. Does not delete the external OAuth client or revoke unrelated grants. Requires an organization-scoped credential or dashboard authentication; project-scoped credentials receive 403.\n\n```go\nfunc (r *VaultProviderConfigService) Get(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *VaultProviderConfigUnion, err error)\n```\nLook up a configuration by ID or name. Returns 404 when it does not exist in the organization.\n\n```go\nfunc (r *VaultProviderConfigService) List(ctx context.Context, query VaultProviderConfigListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[VaultProviderConfigUnion], err error)\n```\nSecret credentials are never returned.\n\n```go\nfunc (r *VaultProviderConfigService) ListAutoPaging(ctx context.Context, query VaultProviderConfigListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[VaultProviderConfigUnion]\n```\nSecret credentials are never returned.\n\n```go\nfunc (r *VaultProviderConfigService) New(ctx context.Context, body VaultProviderConfigNewParams, opts ...option.RequestOption) (res *VaultProviderConfigUnion, err error)\n```\nRegister a configuration shared across the organization's projects. Names are unique within the organization; duplicate names return 409 without replacing credentials. A configuration serves many wallets. Secret credentials are never returned. Requires an organization-scoped credential or dashboard authentication; project-scoped credentials receive 403.\n\n```go\nfunc (r *VaultProviderConfigService) Update(ctx context.Context, idOrName string, body VaultProviderConfigUpdateParams, opts ...option.RequestOption) (res *VaultProviderConfigUnion, err error)\n```\nUpdate the supplied fields; omitted fields remain unchanged. Names must remain unique within the organization. Requires an organization-scoped credential or dashboard authentication; project-scoped credentials receive 403.\n\n```go\ntype VaultProviderConfigUnion struct {\n\tID        string    `json:\"id\"`\n\tClientID  string    `json:\"client_id\"`\n\tCreatedAt time.Time `json:\"created_at\"`\n\tName      string    `json:\"name\"`\n\t// Any of \"link\", \"agentcard\", \"vgs\".\n\tProvider  string    `json:\"provider\"`\n\tUpdatedAt time.Time `json:\"updated_at\"`\n\t// This field is from variant [VaultProviderConfigLink].\n\tPublishableKey string `json:\"publishable_key\"`\n\t// This field is from variant [VaultProviderConfigAgentcard].\n\tTestMode bool `json:\"test_mode\"`\n\t// This field is from variant [VaultProviderConfigVgs].\n\tEnvironment string `json:\"environment\"`\n\t// This field is from variant [VaultProviderConfigVgs].\n\tVaultID string `json:\"vault_id\"`\n\tJSON    struct {\n\t\tID             respjson.Field\n\t\tClientID       respjson.Field\n\t\tCreatedAt      respjson.Field\n\t\tName           respjson.Field\n\t\tProvider       respjson.Field\n\t\tUpdatedAt      respjson.Field\n\t\tPublishableKey respjson.Field\n\t\tTestMode       respjson.Field\n\t\tEnvironment    respjson.Field\n\t\tVaultID        respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nVaultProviderConfigUnion contains all possible properties and values from [VaultProviderConfigLink](#VaultProviderConfigLink), [VaultProviderConfigAgentcard](#VaultProviderConfigAgentcard), [VaultProviderConfigVgs](#VaultProviderConfigVgs).\n\nUse the [VaultProviderConfigUnion.AsAny](#VaultProviderConfigUnion.AsAny) method to switch on the variant.\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u VaultProviderConfigUnion) AsAgentcard() (v VaultProviderConfigAgentcard)\n```\n\n```go\nfunc (u VaultProviderConfigUnion) AsAny() anyVaultProviderConfig\n```\nUse the following switch statement to find the correct variant\n\n\tswitch variant := VaultProviderConfigUnion.AsAny().(type) {\n\tcase kernel.VaultProviderConfigLink:\n\tcase kernel.VaultProviderConfigAgentcard:\n\tcase kernel.VaultProviderConfigVgs:\n\tdefault:\n\t  fmt.Errorf(\"no variant present\")\n\t}\n\n```go\nfunc (u VaultProviderConfigUnion) AsLink() (v VaultProviderConfigLink)\n```\n\n```go\nfunc (u VaultProviderConfigUnion) AsVgs() (v VaultProviderConfigVgs)\n```\n\n```go\nfunc (u VaultProviderConfigUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultProviderConfigUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultProviderConfigUpdateParams struct {\n\t// Unique within the organization.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// Fields to update. Omitted credentials are left unchanged. A rejected update\n\t// leaves existing credentials unchanged.\n\tCredentials VaultProviderConfigUpdateParamsCredentials `json:\"credentials,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r VaultProviderConfigUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultProviderConfigUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultProviderConfigUpdateParamsCredentials struct {\n\tClientSecret param.Opt[string] `json:\"client_secret,omitzero\"`\n\t// Link configurations only. Stripe publishable key sent to Link when refreshing\n\t// and revoking wallet grants.\n\tPublishableKey param.Opt[string] `json:\"publishable_key,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nFields to update. Omitted credentials are left unchanged. A rejected update leaves existing credentials unchanged.\n\n```go\nfunc (r VaultProviderConfigUpdateParamsCredentials) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultProviderConfigUpdateParamsCredentials) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultProviderConfigVgs struct {\n\tID string `json:\"id\" api:\"required\"`\n\t// Service account identity; immutable. The client secret is never returned.\n\tClientID  string    `json:\"client_id\" api:\"required\"`\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// The vault's VGS environment; immutable.\n\t//\n\t// Any of \"sandbox\", \"live\".\n\tEnvironment string `json:\"environment\" api:\"required\"`\n\t// Unique within the organization.\n\tName      string       `json:\"name\" api:\"required\"`\n\tProvider  constant.Vgs `json:\"provider\" default:\"vgs\"`\n\tUpdatedAt time.Time    `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\t// The customer's VGS vault ID; immutable.\n\tVaultID string `json:\"vault_id\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tClientID    respjson.Field\n\t\tCreatedAt   respjson.Field\n\t\tEnvironment respjson.Field\n\t\tName        respjson.Field\n\t\tProvider    respjson.Field\n\t\tUpdatedAt   respjson.Field\n\t\tVaultID     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nResponse schema for a customer-managed VGS vault configuration, without the client secret. Kernel generates the ID and timestamps. Configuration creation uses VaultVgsProviderConfigRequest.\n\n```go\nfunc (r VaultProviderConfigVgs) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VaultProviderConfigVgs) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultReference struct {\n\tID   string `json:\"id\"`\n\tName string `json:\"name\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tName        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nReference to a project-scoped vault. Provide exactly one of id or name.\n\n```go\nfunc (r VaultReference) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r VaultReference) ToParam() VaultReferenceParam\n```\nToParam converts this VaultReference to a VaultReferenceParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with VaultReferenceParam.Overrides()\n\n```go\nfunc (r *VaultReference) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultReferenceParam struct {\n\tID   param.Opt[string] `json:\"id,omitzero\"`\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nReference to a project-scoped vault. Provide exactly one of id or name.\n\n```go\nfunc (r VaultReferenceParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultReferenceParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultService struct {\n\tOptions []option.RequestOption\n\tItems   VaultItemService\n}\n```\nVaultService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewVaultService](#NewVaultService) method instead.\n\n```go\nfunc NewVaultService(opts ...option.RequestOption) (r VaultService)\n```\nNewVaultService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *VaultService) Delete(ctx context.Context, idOrName string, opts ...option.RequestOption) (err error)\n```\nUnresolved payment operations block deletion. Deleting a connected Kernel wallet first blocks new payments on it, then removes its enrolled card. If that fails, the wallet is kept and keeps refusing payments; retry the deletion. Reconcile the original attempt with the provider or support first; deleting or recreating an item is not proof that a payment did not occur. Each 1Password credential\\_account in the vault is ended the same way as deleting it; the vault is kept and this returns 409 provider\\_revocation\\_pending while 1Password has not confirmed a revoke.\n\n```go\nfunc (r *VaultService) Get(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *Vault, err error)\n```\nGet a vault\n\n```go\nfunc (r *VaultService) GetEncryptionKey(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *VaultEncryptionKey, err error)\n```\nReturns the public key that custom credential collection web apps use to encrypt values in the browser. Use this only if you run your own credential collection web app and want values encrypted in the browser, sent to your backend still encrypted, and forwarded to Kernel's API still encrypted. In every other case, including server-side code that already holds the plaintext, use value. The page encrypts each value to this key, your backend forwards the ciphertext unchanged as encrypted\\_value when creating or updating a credential item in this vault, and Kernel decrypts it.\n\n```go\nfunc (r *VaultService) List(ctx context.Context, query VaultListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[Vault], err error)\n```\nList vaults in the current project\n\n```go\nfunc (r *VaultService) ListAutoPaging(ctx context.Context, query VaultListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[Vault]\n```\nList vaults in the current project\n\n```go\nfunc (r *VaultService) Upsert(ctx context.Context, body VaultUpsertParams, opts ...option.RequestOption) (res *Vault, err error)\n```\nFree organizations can store up to 3 non-deleted vaults across all projects. Paid plans and active trials have no vault cap. Retrieving an existing vault by name succeeds even at the limit.\n\n```go\ntype VaultUpsertParams struct {\n\t// Immutable name used to create or retrieve the vault.\n\tName string `json:\"name\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r VaultUpsertParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultUpsertParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultWebmcpBindingParam struct {\n\t// A declared, populated credential field or supported card field. A TOTP field\n\t// supplies a fresh code, never its seed. Passkey fields cannot be filled.\n\tField string `json:\"field\" api:\"required\"`\n\t// RFC 6901 JSON Pointer to an existing null value in input. Object keys are exact;\n\t// array indices must be canonical and in range. No root or array-append paths.\n\t// Each path and each field may occur only once.\n\tInputPath string `json:\"input_path\" api:\"required\"`\n\t// Required for card expiration (MM/YY or MM/YYYY), forbidden for other fields.\n\t// Invalid formats are rejected before invocation.\n\tFormat param.Opt[string] `json:\"format,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Field, InputPath are required.\n\n```go\nfunc (r VaultWebmcpBindingParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VaultWebmcpBindingParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VgsCardInput struct {\n\t// A volatile alias of a freshly collected security code in the customer's vault.\n\t// It must still exist when authorize runs. Required in both modes.\n\tCvcAlias string `json:\"cvc_alias\" api:\"required\"`\n\t// Required with card_mode full, rejected with card_mode cvc_only.\n\tExpMonth int64 `json:\"exp_month\"`\n\t// Required with card_mode full, rejected with card_mode cvc_only.\n\tExpYear int64 `json:\"exp_year\"`\n\t// The card number's last four digits, checked against the revealed alias. Required\n\t// with card_mode full, rejected with card_mode cvc_only.\n\tLast4 string `json:\"last4\"`\n\t// A persistent alias of the card number in the customer's vault. Required with\n\t// card_mode full, rejected with card_mode cvc_only.\n\tPanAlias string `json:\"pan_alias\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCvcAlias    respjson.Field\n\t\tExpMonth    respjson.Field\n\t\tExpYear     respjson.Field\n\t\tLast4       respjson.Field\n\t\tPanAlias    respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nThe card supplied to a purchase, as aliases in the customer's VGS vault. With card\\_mode full it is a whole card: a persistent alias of its number, a freshly collected volatile alias of its security code, its expiry and its last four digits. With card\\_mode cvc\\_only it is a CVC alias alone, because the merchant holds the rest on file. pan\\_alias, exp\\_month, exp\\_year and last4 are required with card\\_mode full and rejected with card\\_mode cvc\\_only. Write-only: stored encrypted and never returned in the item, its events or logs. A repeated PUT with the same key must send the same card.\n\n```go\nfunc (r VgsCardInput) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r VgsCardInput) ToParam() VgsCardInputParam\n```\nToParam converts this VgsCardInput to a VgsCardInputParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with VgsCardInputParam.Overrides()\n\n```go\nfunc (r *VgsCardInput) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VgsCardInputParam struct {\n\t// A volatile alias of a freshly collected security code in the customer's vault.\n\t// It must still exist when authorize runs. Required in both modes.\n\tCvcAlias string `json:\"cvc_alias\" api:\"required\"`\n\t// Required with card_mode full, rejected with card_mode cvc_only.\n\tExpMonth param.Opt[int64] `json:\"exp_month,omitzero\"`\n\t// Required with card_mode full, rejected with card_mode cvc_only.\n\tExpYear param.Opt[int64] `json:\"exp_year,omitzero\"`\n\t// The card number's last four digits, checked against the revealed alias. Required\n\t// with card_mode full, rejected with card_mode cvc_only.\n\tLast4 param.Opt[string] `json:\"last4,omitzero\"`\n\t// A persistent alias of the card number in the customer's vault. Required with\n\t// card_mode full, rejected with card_mode cvc_only.\n\tPanAlias param.Opt[string] `json:\"pan_alias,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe card supplied to a purchase, as aliases in the customer's VGS vault. With card\\_mode full it is a whole card: a persistent alias of its number, a freshly collected volatile alias of its security code, its expiry and its last four digits. With card\\_mode cvc\\_only it is a CVC alias alone, because the merchant holds the rest on file. pan\\_alias, exp\\_month, exp\\_year and last4 are required with card\\_mode full and rejected with card\\_mode cvc\\_only. Write-only: stored encrypted and never returned in the item, its events or logs. A repeated PUT with the same key must send the same card.\n\nThe property CvcAlias is required.\n\n```go\nfunc (r VgsCardInputParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VgsCardInputParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VgsCardState struct {\n\t// Any of \"vgs\".\n\tProvider VgsCardStateProvider `json:\"provider\" api:\"required\"`\n\t// requested until authorize reveals the aliases; if the reveal fails before\n\t// anything is stored, authorize returns 503 provider_unavailable and the card\n\t// stays requested. declined means authorize was refused: invalid_card for aliases\n\t// that do not match the card or a card that has expired (fix the input and create\n\t// a new card), alias_not_found when the customer's vault has no such alias,\n\t// usually an expired CVC alias (collect the CVC again and create a new card), or\n\t// provider_credentials_rejected when VGS refused the configuration's service\n\t// account (update the provider configuration and create a new card). ready lasts\n\t// until the CVC alias expires, then expired.\n\t//\n\t// Any of \"requested\", \"pending_authorization\", \"ready\", \"expired\", \"declined\",\n\t// \"recovery_required\".\n\tStatus VgsCardStateStatus `json:\"status\" api:\"required\"`\n\t// Informational registrable domain. Fill is locked to merchant_url's exact origin.\n\tDomains      []string          `json:\"domains\"`\n\tMasks        VgsCardStateMasks `json:\"masks\"`\n\tStatusReason string            `json:\"status_reason\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tProvider     respjson.Field\n\t\tStatus       respjson.Field\n\t\tDomains      respjson.Field\n\t\tMasks        respjson.Field\n\t\tStatusReason respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA ready VGS card supports fill, then submit checkout, until expires\\_at. Kernel does not observe whether the merchant charged the card. masks.last4 is the card's last four digits.\n\n```go\nfunc (r VgsCardState) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VgsCardState) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VgsCardStateMasks struct {\n\tBrand string `json:\"brand\"`\n\tLast4 string `json:\"last4\"`\n\t// Last four digits of the network token presented to the merchant.\n\tTokenLast4  string            `json:\"token_last4\"`\n\tExtraFields map[string]string `json:\"\" api:\"extrafields\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBrand       respjson.Field\n\t\tLast4       respjson.Field\n\t\tTokenLast4  respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r VgsCardStateMasks) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VgsCardStateMasks) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VgsCardStateProvider string\n```\n\n```go\nconst (\n\tVgsCardStateProviderVgs VgsCardStateProvider = \"vgs\"\n)\n```\n\n```go\ntype VgsCardStateStatus string\n```\nrequested until authorize reveals the aliases; if the reveal fails before anything is stored, authorize returns 503 provider\\_unavailable and the card stays requested. declined means authorize was refused: invalid\\_card for aliases that do not match the card or a card that has expired (fix the input and create a new card), alias\\_not\\_found when the customer's vault has no such alias, usually an expired CVC alias (collect the CVC again and create a new card), or provider\\_credentials\\_rejected when VGS refused the configuration's service account (update the provider configuration and create a new card). ready lasts until the CVC alias expires, then expired.\n\n```go\nconst (\n\tVgsCardStateStatusRequested            VgsCardStateStatus = \"requested\"\n\tVgsCardStateStatusPendingAuthorization VgsCardStateStatus = \"pending_authorization\"\n\tVgsCardStateStatusReady                VgsCardStateStatus = \"ready\"\n\tVgsCardStateStatusExpired              VgsCardStateStatus = \"expired\"\n\tVgsCardStateStatusDeclined             VgsCardStateStatus = \"declined\"\n\tVgsCardStateStatusRecoveryRequired     VgsCardStateStatus = \"recovery_required\"\n)\n```\n\n```go\ntype VgsCardVaultItemSpec struct {\n\t// Integer amount in minor currency units (at most 1000000).\n\tAmount int64 `json:\"amount\" api:\"required\"`\n\t// ISO 4217 code. Supported: aud, brl, cad, chf, czk, dkk, eur, gbp, hkd, inr, jpy,\n\t// krw, mxn, nok, nzd, pln, sek, sgd, usd, zar.\n\tCurrency     string `json:\"currency\" api:\"required\"`\n\tMerchantName string `json:\"merchant_name\" api:\"required\"`\n\t// Merchant checkout URL. Fill is allowed only on this URL's origin.\n\tMerchantURL string `json:\"merchant_url\" api:\"required\" format:\"uri\"`\n\t// Any of \"vgs\".\n\tProvider VgsCardVaultItemSpecProvider `json:\"provider\" api:\"required\"`\n\t// Key of the VGS wallet item whose configuration reads the aliases.\n\tWallet string `json:\"wallet\" api:\"required\"`\n\t// Required when creating the card. Never returned.\n\tCard VgsCardInput `json:\"card\"`\n\t// Which card this purchase supplies, and the only part of it a read returns. full\n\t// is a whole card from the customer's vault. cvc_only is a card the merchant\n\t// already holds on file, whose checkout page asks for nothing but the security\n\t// code. It must match spec.card: a full card that is missing pan_alias is rejected\n\t// rather than treated as cvc_only. Omit it for full, which a read also omits.\n\t//\n\t// Any of \"full\", \"cvc_only\".\n\tCardMode VgsCardVaultItemSpecCardMode `json:\"card_mode\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAmount       respjson.Field\n\t\tCurrency     respjson.Field\n\t\tMerchantName respjson.Field\n\t\tMerchantURL  respjson.Field\n\t\tProvider     respjson.Field\n\t\tWallet       respjson.Field\n\t\tCard         respjson.Field\n\t\tCardMode     respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOne live purchase with a card in the customer's VGS vault. With card\\_mode full, authorize reveals card.pan\\_alias and card.cvc\\_alias through Kernel's VGS outbound proxy; with card\\_mode cvc\\_only, for a card the merchant already holds on file whose checkout page asks only for the security code, it reveals card.cvc\\_alias alone. The proxy replaces each revealed value with an alias in Kernel's vault before it reaches Kernel; Kernel never receives the card number or security code. The card is then ready with no further approval, until expires\\_at, by default five minutes after authorize. fill types Kernel's aliases on merchant\\_url's origin, and Kernel's VGS proxy replaces them with the card's details when the browser submits checkout; a cvc\\_only card fills only the cvc field, and reports no masks because it has no last4 to verify. A cvc\\_only card's payment window routes all of the browser's egress through Kernel's VGS outbound proxy, exactly as widely as a full card's: while it is open the proxy reveals the card's aliases to any destination the browser sends them to, not only the security code. An expired card requires a new purchase with a freshly collected CVC alias. The amount and merchant are recorded but do not restrict payment requests sent by the browser. Card updates are not supported; delete and create a new item instead.\n\n```go\nfunc (r VgsCardVaultItemSpec) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r VgsCardVaultItemSpec) ToParam() VgsCardVaultItemSpecParam\n```\nToParam converts this VgsCardVaultItemSpec to a VgsCardVaultItemSpecParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with VgsCardVaultItemSpecParam.Overrides()\n\n```go\nfunc (r *VgsCardVaultItemSpec) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VgsCardVaultItemSpecCardMode string\n```\nWhich card this purchase supplies, and the only part of it a read returns. full is a whole card from the customer's vault. cvc\\_only is a card the merchant already holds on file, whose checkout page asks for nothing but the security code. It must match spec.card: a full card that is missing pan\\_alias is rejected rather than treated as cvc\\_only. Omit it for full, which a read also omits.\n\n```go\nconst (\n\tVgsCardVaultItemSpecCardModeFull    VgsCardVaultItemSpecCardMode = \"full\"\n\tVgsCardVaultItemSpecCardModeCvcOnly VgsCardVaultItemSpecCardMode = \"cvc_only\"\n)\n```\n\n```go\ntype VgsCardVaultItemSpecParam struct {\n\t// Integer amount in minor currency units (at most 1000000).\n\tAmount int64 `json:\"amount\" api:\"required\"`\n\t// ISO 4217 code. Supported: aud, brl, cad, chf, czk, dkk, eur, gbp, hkd, inr, jpy,\n\t// krw, mxn, nok, nzd, pln, sek, sgd, usd, zar.\n\tCurrency     string `json:\"currency\" api:\"required\"`\n\tMerchantName string `json:\"merchant_name\" api:\"required\"`\n\t// Merchant checkout URL. Fill is allowed only on this URL's origin.\n\tMerchantURL string `json:\"merchant_url\" api:\"required\" format:\"uri\"`\n\t// Any of \"vgs\".\n\tProvider VgsCardVaultItemSpecProvider `json:\"provider,omitzero\" api:\"required\"`\n\t// Key of the VGS wallet item whose configuration reads the aliases.\n\tWallet string `json:\"wallet\" api:\"required\"`\n\t// Required when creating the card. Never returned.\n\tCard VgsCardInputParam `json:\"card,omitzero\"`\n\t// Which card this purchase supplies, and the only part of it a read returns. full\n\t// is a whole card from the customer's vault. cvc_only is a card the merchant\n\t// already holds on file, whose checkout page asks for nothing but the security\n\t// code. It must match spec.card: a full card that is missing pan_alias is rejected\n\t// rather than treated as cvc_only. Omit it for full, which a read also omits.\n\t//\n\t// Any of \"full\", \"cvc_only\".\n\tCardMode VgsCardVaultItemSpecCardMode `json:\"card_mode,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nOne live purchase with a card in the customer's VGS vault. With card\\_mode full, authorize reveals card.pan\\_alias and card.cvc\\_alias through Kernel's VGS outbound proxy; with card\\_mode cvc\\_only, for a card the merchant already holds on file whose checkout page asks only for the security code, it reveals card.cvc\\_alias alone. The proxy replaces each revealed value with an alias in Kernel's vault before it reaches Kernel; Kernel never receives the card number or security code. The card is then ready with no further approval, until expires\\_at, by default five minutes after authorize. fill types Kernel's aliases on merchant\\_url's origin, and Kernel's VGS proxy replaces them with the card's details when the browser submits checkout; a cvc\\_only card fills only the cvc field, and reports no masks because it has no last4 to verify. A cvc\\_only card's payment window routes all of the browser's egress through Kernel's VGS outbound proxy, exactly as widely as a full card's: while it is open the proxy reveals the card's aliases to any destination the browser sends them to, not only the security code. An expired card requires a new purchase with a freshly collected CVC alias. The amount and merchant are recorded but do not restrict payment requests sent by the browser. Card updates are not supported; delete and create a new item instead.\n\nThe properties Amount, Currency, MerchantName, MerchantURL, Provider, Wallet are required.\n\n```go\nfunc (r VgsCardVaultItemSpecParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VgsCardVaultItemSpecParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VgsCardVaultItemSpecProvider string\n```\n\n```go\nconst (\n\tVgsCardVaultItemSpecProviderVgs VgsCardVaultItemSpecProvider = \"vgs\"\n)\n```\n\n```go\ntype VgsWalletState struct {\n\t// Any of \"vgs\".\n\tProvider VgsWalletStateProvider `json:\"provider\" api:\"required\"`\n\t// A VGS wallet is connected on creation. pending_authorization or degraded means\n\t// its creation did not finish; reading the wallet retries it, and a wallet that\n\t// stays degraded can be deleted and created again. Whether its configuration's\n\t// credentials still work is checked when a card is authorized.\n\t//\n\t// Any of \"pending_authorization\", \"connected\", \"degraded\".\n\tStatus       VgsWalletStateStatus `json:\"status\" api:\"required\"`\n\tStatusReason string               `json:\"status_reason\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tProvider     respjson.Field\n\t\tStatus       respjson.Field\n\t\tStatusReason respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r VgsWalletState) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VgsWalletState) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VgsWalletStateProvider string\n```\n\n```go\nconst (\n\tVgsWalletStateProviderVgs VgsWalletStateProvider = \"vgs\"\n)\n```\n\n```go\ntype VgsWalletStateStatus string\n```\nA VGS wallet is connected on creation. pending\\_authorization or degraded means its creation did not finish; reading the wallet retries it, and a wallet that stays degraded can be deleted and created again. Whether its configuration's credentials still work is checked when a card is authorized.\n\n```go\nconst (\n\tVgsWalletStateStatusPendingAuthorization VgsWalletStateStatus = \"pending_authorization\"\n\tVgsWalletStateStatusConnected            VgsWalletStateStatus = \"connected\"\n\tVgsWalletStateStatusDegraded             VgsWalletStateStatus = \"degraded\"\n)\n```\n\n```go\ntype VgsWalletVaultItemSpec struct {\n\t// Any of \"vgs\".\n\tProvider VgsWalletVaultItemSpecProvider `json:\"provider\" api:\"required\"`\n\t// Select a VGS configuration. Required, because there are no Kernel-managed VGS\n\t// credentials for this provider.\n\tProviderConfig VgsWalletVaultItemSpecProviderConfig `json:\"provider_config\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tProvider       respjson.Field\n\t\tProviderConfig respjson.Field\n\t\tExtraFields    map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nCards kept in the customer's own VGS vault. The wallet binds a VGS provider configuration and is connected on creation; it holds no cards and has no payment methods. Each purchase is a card item that carries the card's aliases from the customer's vault. The configuration binding cannot be changed after creation.\n\n```go\nfunc (r VgsWalletVaultItemSpec) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r VgsWalletVaultItemSpec) ToParam() VgsWalletVaultItemSpecParam\n```\nToParam converts this VgsWalletVaultItemSpec to a VgsWalletVaultItemSpecParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with VgsWalletVaultItemSpecParam.Overrides()\n\n```go\nfunc (r *VgsWalletVaultItemSpec) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VgsWalletVaultItemSpecParam struct {\n\t// Any of \"vgs\".\n\tProvider VgsWalletVaultItemSpecProvider `json:\"provider,omitzero\" api:\"required\"`\n\t// Select a VGS configuration. Required, because there are no Kernel-managed VGS\n\t// credentials for this provider.\n\tProviderConfig VgsWalletVaultItemSpecProviderConfigParam `json:\"provider_config,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nCards kept in the customer's own VGS vault. The wallet binds a VGS provider configuration and is connected on creation; it holds no cards and has no payment methods. Each purchase is a card item that carries the card's aliases from the customer's vault. The configuration binding cannot be changed after creation.\n\nThe properties Provider, ProviderConfig are required.\n\n```go\nfunc (r VgsWalletVaultItemSpecParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VgsWalletVaultItemSpecParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VgsWalletVaultItemSpecProvider string\n```\n\n```go\nconst (\n\tVgsWalletVaultItemSpecProviderVgs VgsWalletVaultItemSpecProvider = \"vgs\"\n)\n```\n\n```go\ntype VgsWalletVaultItemSpecProviderConfig struct {\n\tID   string `json:\"id\"`\n\tName string `json:\"name\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tName        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSelect a VGS configuration. Required, because there are no Kernel-managed VGS credentials for this provider.\n\n```go\nfunc (r VgsWalletVaultItemSpecProviderConfig) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VgsWalletVaultItemSpecProviderConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VgsWalletVaultItemSpecProviderConfigParam struct {\n\tID   param.Opt[string] `json:\"id,omitzero\"`\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nSelect a VGS configuration. Required, because there are no Kernel-managed VGS credentials for this provider.\n\n```go\nfunc (r VgsWalletVaultItemSpecProviderConfigParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *VgsWalletVaultItemSpecProviderConfigParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WalletVaultItemSpecAgentcard struct {\n\tProvider constant.Agentcard `json:\"provider\" default:\"agentcard\"`\n\t// Select an AgentCard configuration. The wallet's configuration cannot be changed\n\t// after creation.\n\tProviderConfig WalletVaultItemSpecAgentcardProviderConfig `json:\"provider_config\"`\n\tUserID         string                                     `json:\"user_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tProvider       respjson.Field\n\t\tProviderConfig respjson.Field\n\t\tUserID         respjson.Field\n\t\tExtraFields    map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAgentCard wallet. Omit provider\\_config to use Kernel-managed credentials, or select a customer-owned configuration. Mode (sandbox vs live) is determined by the selected credential; there is no per-item test flag. Without user\\_id, creation returns a hosted enrollment action and Kernel polls until the user connects. With a customer-owned provider\\_config, user\\_id imports an existing connection after verifying access with the selected credentials in their sandbox or live mode; no hosted enrollment is needed, even if the connected user has no stored cards. With Kernel-managed credentials, user\\_id may only reference a user already enrolled by a wallet in this organization under the same configuration. The user and configuration bindings cannot be changed after creation. Import validation is read-only and runs before creation: a failed validation leaves no wallet or reserved key, so the user\\_id can be corrected and retried. Concurrent imports of the same key may both validate, but create at most one wallet and connected event.\n\n```go\nfunc (r WalletVaultItemSpecAgentcard) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WalletVaultItemSpecAgentcard) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WalletVaultItemSpecAgentcardProviderConfig struct {\n\tID   string `json:\"id\"`\n\tName string `json:\"name\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tName        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSelect an AgentCard configuration. The wallet's configuration cannot be changed after creation.\n\n```go\nfunc (r WalletVaultItemSpecAgentcardProviderConfig) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WalletVaultItemSpecAgentcardProviderConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WalletVaultItemSpecLink struct {\n\tAuthorization WalletVaultItemSpecLinkAuthorization `json:\"authorization\" api:\"required\"`\n\tProvider      constant.Link                        `json:\"provider\" default:\"link\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAuthorization respjson.Field\n\t\tProvider      respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r WalletVaultItemSpecLink) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WalletVaultItemSpecLink) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WalletVaultItemSpecLinkAuthorization struct {\n\tClient WalletVaultItemSpecLinkAuthorizationClientUnion `json:\"client\" api:\"required\"`\n\t// Any of \"oauth\".\n\tMethod string `json:\"method\" api:\"required\"`\n\t// Who refreshes an imported Link grant. kernel (default) means Kernel holds and\n\t// rotates the refresh token. customer means your backend keeps the refresh token\n\t// and replaces the access token with update_access_token; Kernel never refreshes\n\t// or revokes the grant. Fixed at wallet creation.\n\t//\n\t// Any of \"kernel\", \"customer\".\n\tTokenRefresh string `json:\"token_refresh\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tClient       respjson.Field\n\t\tMethod       respjson.Field\n\t\tTokenRefresh respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r WalletVaultItemSpecLinkAuthorization) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WalletVaultItemSpecLinkAuthorization) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WalletVaultItemSpecLinkAuthorizationClientCustomerManaged struct {\n\t// Select a provider config by ID or name. Responses return the ID. Renaming a\n\t// config does not change existing wallet bindings; an item cannot switch to a\n\t// different config after creation.\n\tProviderConfig WalletVaultItemSpecLinkAuthorizationClientCustomerManagedProviderConfig `json:\"provider_config\" api:\"required\"`\n\tType           constant.CustomerManaged                                                `json:\"type\" default:\"customer_managed\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tProviderConfig respjson.Field\n\t\tType           respjson.Field\n\t\tExtraFields    map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r WalletVaultItemSpecLinkAuthorizationClientCustomerManaged) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WalletVaultItemSpecLinkAuthorizationClientCustomerManaged) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WalletVaultItemSpecLinkAuthorizationClientCustomerManagedProviderConfig struct {\n\tID   string `json:\"id\"`\n\tName string `json:\"name\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tName        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSelect a provider config by ID or name. Responses return the ID. Renaming a config does not change existing wallet bindings; an item cannot switch to a different config after creation.\n\n```go\nfunc (r WalletVaultItemSpecLinkAuthorizationClientCustomerManagedProviderConfig) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WalletVaultItemSpecLinkAuthorizationClientCustomerManagedProviderConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WalletVaultItemSpecLinkAuthorizationClientKernelManaged struct {\n\tType constant.KernelManaged `json:\"type\" default:\"kernel_managed\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r WalletVaultItemSpecLinkAuthorizationClientKernelManaged) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WalletVaultItemSpecLinkAuthorizationClientKernelManaged) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WalletVaultItemSpecLinkAuthorizationClientUnion struct {\n\t// Any of \"kernel_managed\", \"customer_managed\".\n\tType string `json:\"type\"`\n\t// This field is from variant\n\t// [WalletVaultItemSpecLinkAuthorizationClientCustomerManaged].\n\tProviderConfig WalletVaultItemSpecLinkAuthorizationClientCustomerManagedProviderConfig `json:\"provider_config\"`\n\tJSON           struct {\n\t\tType           respjson.Field\n\t\tProviderConfig respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nWalletVaultItemSpecLinkAuthorizationClientUnion contains all possible properties and values from [WalletVaultItemSpecLinkAuthorizationClientKernelManaged](#WalletVaultItemSpecLinkAuthorizationClientKernelManaged), [WalletVaultItemSpecLinkAuthorizationClientCustomerManaged](#WalletVaultItemSpecLinkAuthorizationClientCustomerManaged).\n\nUse the [WalletVaultItemSpecLinkAuthorizationClientUnion.AsAny](#WalletVaultItemSpecLinkAuthorizationClientUnion.AsAny) method to switch on the variant.\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u WalletVaultItemSpecLinkAuthorizationClientUnion) AsAny() anyWalletVaultItemSpecLinkAuthorizationClient\n```\nUse the following switch statement to find the correct variant\n\n\tswitch variant := WalletVaultItemSpecLinkAuthorizationClientUnion.AsAny().(type) {\n\tcase kernel.WalletVaultItemSpecLinkAuthorizationClientKernelManaged:\n\tcase kernel.WalletVaultItemSpecLinkAuthorizationClientCustomerManaged:\n\tdefault:\n\t  fmt.Errorf(\"no variant present\")\n\t}\n\n```go\nfunc (u WalletVaultItemSpecLinkAuthorizationClientUnion) AsCustomerManaged() (v WalletVaultItemSpecLinkAuthorizationClientCustomerManaged)\n```\n\n```go\nfunc (u WalletVaultItemSpecLinkAuthorizationClientUnion) AsKernelManaged() (v WalletVaultItemSpecLinkAuthorizationClientKernelManaged)\n```\n\n```go\nfunc (u WalletVaultItemSpecLinkAuthorizationClientUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WalletVaultItemSpecLinkAuthorizationClientUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WalletVaultItemSpecUnion struct {\n\t// This field is a union of [WalletVaultItemSpecLinkAuthorization],\n\t// [ShopPayWalletVaultItemSpecAuthorization]\n\tAuthorization WalletVaultItemSpecUnionAuthorization `json:\"authorization\"`\n\t// Any of \"link\", \"agentcard\", \"kernel\", \"shop_pay\", \"vgs\".\n\tProvider string `json:\"provider\"`\n\t// This field is a union of [WalletVaultItemSpecAgentcardProviderConfig],\n\t// [VgsWalletVaultItemSpecProviderConfig]\n\tProviderConfig WalletVaultItemSpecUnionProviderConfig `json:\"provider_config\"`\n\t// This field is from variant [WalletVaultItemSpecAgentcard].\n\tUserID string `json:\"user_id\"`\n\tJSON   struct {\n\t\tAuthorization  respjson.Field\n\t\tProvider       respjson.Field\n\t\tProviderConfig respjson.Field\n\t\tUserID         respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nWalletVaultItemSpecUnion contains all possible properties and values from [WalletVaultItemSpecLink](#WalletVaultItemSpecLink), [WalletVaultItemSpecAgentcard](#WalletVaultItemSpecAgentcard), [KernelWalletVaultItemSpec](#KernelWalletVaultItemSpec), [ShopPayWalletVaultItemSpec](#ShopPayWalletVaultItemSpec), [VgsWalletVaultItemSpec](#VgsWalletVaultItemSpec).\n\nUse the [WalletVaultItemSpecUnion.AsAny](#WalletVaultItemSpecUnion.AsAny) method to switch on the variant.\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u WalletVaultItemSpecUnion) AsAgentcard() (v WalletVaultItemSpecAgentcard)\n```\n\n```go\nfunc (u WalletVaultItemSpecUnion) AsAny() anyWalletVaultItemSpec\n```\nUse the following switch statement to find the correct variant\n\n\tswitch variant := WalletVaultItemSpecUnion.AsAny().(type) {\n\tcase kernel.WalletVaultItemSpecLink:\n\tcase kernel.WalletVaultItemSpecAgentcard:\n\tcase kernel.KernelWalletVaultItemSpec:\n\tcase kernel.ShopPayWalletVaultItemSpec:\n\tcase kernel.VgsWalletVaultItemSpec:\n\tdefault:\n\t  fmt.Errorf(\"no variant present\")\n\t}\n\n```go\nfunc (u WalletVaultItemSpecUnion) AsKernel() (v KernelWalletVaultItemSpec)\n```\n\n```go\nfunc (u WalletVaultItemSpecUnion) AsLink() (v WalletVaultItemSpecLink)\n```\n\n```go\nfunc (u WalletVaultItemSpecUnion) AsShopPay() (v ShopPayWalletVaultItemSpec)\n```\n\n```go\nfunc (u WalletVaultItemSpecUnion) AsVgs() (v VgsWalletVaultItemSpec)\n```\n\n```go\nfunc (u WalletVaultItemSpecUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WalletVaultItemSpecUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WalletVaultItemSpecUnionAuthorization struct {\n\t// This field is a union of [WalletVaultItemSpecLinkAuthorizationClientUnion],\n\t// [ShopPayWalletVaultItemSpecAuthorizationClient]\n\tClient WalletVaultItemSpecUnionAuthorizationClient `json:\"client\"`\n\tMethod string                                      `json:\"method\"`\n\t// This field is from variant [WalletVaultItemSpecLinkAuthorization].\n\tTokenRefresh string `json:\"token_refresh\"`\n\tJSON         struct {\n\t\tClient       respjson.Field\n\t\tMethod       respjson.Field\n\t\tTokenRefresh respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nWalletVaultItemSpecUnionAuthorization is an implicit subunion of [WalletVaultItemSpecUnion](#WalletVaultItemSpecUnion). WalletVaultItemSpecUnionAuthorization provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [WalletVaultItemSpecUnion](#WalletVaultItemSpecUnion).\n\n```go\nfunc (r *WalletVaultItemSpecUnionAuthorization) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WalletVaultItemSpecUnionAuthorizationClient struct {\n\tType string `json:\"type\"`\n\t// This field is from variant [WalletVaultItemSpecLinkAuthorizationClientUnion].\n\tProviderConfig WalletVaultItemSpecLinkAuthorizationClientCustomerManagedProviderConfig `json:\"provider_config\"`\n\tJSON           struct {\n\t\tType           respjson.Field\n\t\tProviderConfig respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nWalletVaultItemSpecUnionAuthorizationClient is an implicit subunion of [WalletVaultItemSpecUnion](#WalletVaultItemSpecUnion). WalletVaultItemSpecUnionAuthorizationClient provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [WalletVaultItemSpecUnion](#WalletVaultItemSpecUnion).\n\n```go\nfunc (r *WalletVaultItemSpecUnionAuthorizationClient) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WalletVaultItemSpecUnionProviderConfig struct {\n\tID   string `json:\"id\"`\n\tName string `json:\"name\"`\n\tJSON struct {\n\t\tID   respjson.Field\n\t\tName respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nWalletVaultItemSpecUnionProviderConfig is an implicit subunion of [WalletVaultItemSpecUnion](#WalletVaultItemSpecUnion). WalletVaultItemSpecUnionProviderConfig provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [WalletVaultItemSpecUnion](#WalletVaultItemSpecUnion).\n\n```go\nfunc (r *WalletVaultItemSpecUnionProviderConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WalletVaultItemStateAgentcard struct {\n\tProvider constant.Agentcard `json:\"provider\" default:\"agentcard\"`\n\t// Any of \"pending_authorization\", \"connected\", \"degraded\".\n\tStatus       string `json:\"status\" api:\"required\"`\n\tStatusReason string `json:\"status_reason\"`\n\t// AgentCard user id linked to this wallet. Present once connected.\n\tUserID string `json:\"user_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tProvider     respjson.Field\n\t\tStatus       respjson.Field\n\t\tStatusReason respjson.Field\n\t\tUserID       respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r WalletVaultItemStateAgentcard) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WalletVaultItemStateAgentcard) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WalletVaultItemStateLink struct {\n\tProvider constant.Link `json:\"provider\" default:\"link\"`\n\t// Any of \"pending_authorization\", \"connected\", \"declined\", \"reconnect_required\",\n\t// \"degraded\".\n\tStatus       string `json:\"status\" api:\"required\"`\n\tStatusReason string `json:\"status_reason\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tProvider     respjson.Field\n\t\tStatus       respjson.Field\n\t\tStatusReason respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r WalletVaultItemStateLink) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WalletVaultItemStateLink) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WalletVaultItemStateUnion struct {\n\t// Any of \"link\", \"agentcard\", \"kernel\", \"shop_pay\", \"vgs\".\n\tProvider     string `json:\"provider\"`\n\tStatus       string `json:\"status\"`\n\tStatusReason string `json:\"status_reason\"`\n\t// This field is from variant [WalletVaultItemStateAgentcard].\n\tUserID string `json:\"user_id\"`\n\tJSON   struct {\n\t\tProvider     respjson.Field\n\t\tStatus       respjson.Field\n\t\tStatusReason respjson.Field\n\t\tUserID       respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nWalletVaultItemStateUnion contains all possible properties and values from [WalletVaultItemStateLink](#WalletVaultItemStateLink), [WalletVaultItemStateAgentcard](#WalletVaultItemStateAgentcard), [KernelWalletState](#KernelWalletState), [ShopPayWalletState](#ShopPayWalletState), [VgsWalletState](#VgsWalletState).\n\nUse the [WalletVaultItemStateUnion.AsAny](#WalletVaultItemStateUnion.AsAny) method to switch on the variant.\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u WalletVaultItemStateUnion) AsAgentcard() (v WalletVaultItemStateAgentcard)\n```\n\n```go\nfunc (u WalletVaultItemStateUnion) AsAny() anyWalletVaultItemState\n```\nUse the following switch statement to find the correct variant\n\n\tswitch variant := WalletVaultItemStateUnion.AsAny().(type) {\n\tcase kernel.WalletVaultItemStateLink:\n\tcase kernel.WalletVaultItemStateAgentcard:\n\tcase kernel.KernelWalletState:\n\tcase kernel.ShopPayWalletState:\n\tcase kernel.VgsWalletState:\n\tdefault:\n\t  fmt.Errorf(\"no variant present\")\n\t}\n\n```go\nfunc (u WalletVaultItemStateUnion) AsKernel() (v KernelWalletState)\n```\n\n```go\nfunc (u WalletVaultItemStateUnion) AsLink() (v WalletVaultItemStateLink)\n```\n\n```go\nfunc (u WalletVaultItemStateUnion) AsShopPay() (v ShopPayWalletState)\n```\n\n```go\nfunc (u WalletVaultItemStateUnion) AsVgs() (v VgsWalletState)\n```\n\n```go\nfunc (u WalletVaultItemStateUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WalletVaultItemStateUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Warning struct {\n\t// Examples: param_unsupported, preference_unsupported, max_results_clamped,\n\t// domains_truncated, recency_emulated, filter_emulated, date_filter_overridden,\n\t// provider_ineligible, fallback_failed, content_partial.\n\tCode     string `json:\"code\" api:\"required\"`\n\tMessage  string `json:\"message\" api:\"required\"`\n\tParam    string `json:\"param\"`\n\tProvider string `json:\"provider\"`\n\tResultID string `json:\"result_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCode        respjson.Field\n\t\tMessage     respjson.Field\n\t\tParam       respjson.Field\n\t\tProvider    respjson.Field\n\t\tResultID    respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r Warning) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Warning) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WebmcpInvokeVaultItemOperationRequestParam struct {\n\tBindings []VaultWebmcpBindingParam `json:\"bindings,omitzero\" api:\"required\"`\n\t// Browser session ID, not a reusable browser name.\n\tBrowserID string `json:\"browser_id\" api:\"required\"`\n\t// Public tool arguments with an existing null slot at each binding path. At most\n\t// 64 KiB after JSON serialization, including substituted values. Never include\n\t// vault values here.\n\tInput map[string]any `json:\"input,omitzero\" api:\"required\"`\n\t// Exact top-level URL from the discovered tool source (fragment omitted). This\n\t// pins the target page; it does not authorize a destination.\n\tPageURL string `json:\"page_url\" api:\"required\" format:\"uri\"`\n\t// Opaque reference to the exact live WebMCP registration.\n\tToolRef string `json:\"tool_ref\" api:\"required\"`\n\t// Any of \"webmcp_invoke\".\n\tType WebmcpInvokeVaultItemOperationRequestType `json:\"type,omitzero\" api:\"required\"`\n\t// Tool invocation timeout in seconds; preflight and response handling have an\n\t// additional bounded allowance. An indeterminate outcome is not retried.\n\tTimeoutSec param.Opt[int64] `json:\"timeout_sec,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nInvoke a WebMCP tool using values from a vaulted item. The browser must be attached to the item's vault. Discover the tool\\_ref, inputSchema, and source with GET /browsers/{id\\_or\\_name}/webmcp/tools or webmcp.listTools() in the Browser REPL (POST /browsers/{id\\_or\\_name}/repl) before invoking it. Input paths replace existing null slots in input. Tool output is returned without redaction and may include the supplied values. The tool may submit or perform other side effects. Any item destination restrictions apply to the tool's top-level page and registering frame (if any).\n\nThe properties Bindings, BrowserID, Input, PageURL, ToolRef, Type are required.\n\n```go\nfunc (r WebmcpInvokeVaultItemOperationRequestParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WebmcpInvokeVaultItemOperationRequestParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WebmcpInvokeVaultItemOperationRequestType string\n```\n\n```go\nconst (\n\tWebmcpInvokeVaultItemOperationRequestTypeWebmcpInvoke WebmcpInvokeVaultItemOperationRequestType = \"webmcp_invoke\"\n)\n```\n\n```go\ntype WebmcpInvokeVaultItemOperationResult struct {\n\t// Unknown means invocation may have run; do not retry automatically. No status\n\t// confirms that the website accepted the action.\n\t//\n\t// Any of \"completed\", \"canceled\", \"error\", \"awaiting_submission\", \"unknown\".\n\tStatus WebmcpInvokeVaultItemOperationResultStatus `json:\"status\" api:\"required\"`\n\t// Any of \"webmcp_invoke\".\n\tType WebmcpInvokeVaultItemOperationResultType `json:\"type\" api:\"required\"`\n\t// Untrusted page-provided error text, returned without redaction. May contain\n\t// supplied vault values.\n\tErrorText string `json:\"error_text\"`\n\t// Present when the browser reported one.\n\tInvocationID string `json:\"invocation_id\"`\n\t// Untrusted page-provided output, returned without redaction. May contain supplied\n\t// vault values.\n\tOutput any `json:\"output\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tStatus       respjson.Field\n\t\tType         respjson.Field\n\t\tErrorText    respjson.Field\n\t\tInvocationID respjson.Field\n\t\tOutput       respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nReturns the same tool result fields as the browser WebMCP invoke API, plus the vault operation discriminator. Output and error text are untrusted page-provided data, returned without redaction; tools may include supplied vault values. Inspect the browser page to determine whether the intended site action succeeded.\n\n```go\nfunc (r WebmcpInvokeVaultItemOperationResult) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WebmcpInvokeVaultItemOperationResult) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WebmcpInvokeVaultItemOperationResultStatus string\n```\nUnknown means invocation may have run; do not retry automatically. No status confirms that the website accepted the action.\n\n```go\nconst (\n\tWebmcpInvokeVaultItemOperationResultStatusCompleted          WebmcpInvokeVaultItemOperationResultStatus = \"completed\"\n\tWebmcpInvokeVaultItemOperationResultStatusCanceled           WebmcpInvokeVaultItemOperationResultStatus = \"canceled\"\n\tWebmcpInvokeVaultItemOperationResultStatusError              WebmcpInvokeVaultItemOperationResultStatus = \"error\"\n\tWebmcpInvokeVaultItemOperationResultStatusAwaitingSubmission WebmcpInvokeVaultItemOperationResultStatus = \"awaiting_submission\"\n\tWebmcpInvokeVaultItemOperationResultStatusUnknown            WebmcpInvokeVaultItemOperationResultStatus = \"unknown\"\n)\n```\n\n```go\ntype WebmcpInvokeVaultItemOperationResultType string\n```\n\n```go\nconst (\n\tWebmcpInvokeVaultItemOperationResultTypeWebmcpInvoke WebmcpInvokeVaultItemOperationResultType = \"webmcp_invoke\"\n)\n```\n\n```go\ntype WorkloadIdentityAuthenticationEvent struct {\n\tID               string    `json:\"id\" api:\"required\"`\n\tCorrelationID    string    `json:\"correlation_id\" api:\"required\"`\n\tCreatedAt        time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\tCredentialID     string    `json:\"credential_id\" api:\"required\"`\n\tFederationRuleID string    `json:\"federation_rule_id\" api:\"required\"`\n\tIssuerID         string    `json:\"issuer_id\" api:\"required\"`\n\tOrgID            string    `json:\"org_id\" api:\"required\"`\n\t// Any of \"success\", \"failure\".\n\tOutcome          WorkloadIdentityAuthenticationEventOutcome `json:\"outcome\" api:\"required\"`\n\tProjectID        string                                     `json:\"project_id\" api:\"required\"`\n\tReason           string                                     `json:\"reason\" api:\"required\"`\n\tServiceAccountID string                                     `json:\"service_account_id\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID               respjson.Field\n\t\tCorrelationID    respjson.Field\n\t\tCreatedAt        respjson.Field\n\t\tCredentialID     respjson.Field\n\t\tFederationRuleID respjson.Field\n\t\tIssuerID         respjson.Field\n\t\tOrgID            respjson.Field\n\t\tOutcome          respjson.Field\n\t\tProjectID        respjson.Field\n\t\tReason           respjson.Field\n\t\tServiceAccountID respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r WorkloadIdentityAuthenticationEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkloadIdentityAuthenticationEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkloadIdentityAuthenticationEventListParams struct {\n\tEndTime          param.Opt[time.Time] `query:\"end_time,omitzero\" format:\"date-time\" json:\"-\"`\n\tFederationRuleID param.Opt[string]    `query:\"federation_rule_id,omitzero\" json:\"-\"`\n\tIssuerID         param.Opt[string]    `query:\"issuer_id,omitzero\" json:\"-\"`\n\tLimit            param.Opt[int64]     `query:\"limit,omitzero\" json:\"-\"`\n\tOffset           param.Opt[int64]     `query:\"offset,omitzero\" json:\"-\"`\n\tProjectID        param.Opt[string]    `query:\"project_id,omitzero\" json:\"-\"`\n\tServiceAccountID param.Opt[string]    `query:\"service_account_id,omitzero\" json:\"-\"`\n\tStartTime        param.Opt[time.Time] `query:\"start_time,omitzero\" format:\"date-time\" json:\"-\"`\n\t// Any of \"success\", \"failure\".\n\tOutcome WorkloadIdentityAuthenticationEventListParamsOutcome `query:\"outcome,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r WorkloadIdentityAuthenticationEventListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [WorkloadIdentityAuthenticationEventListParams](#WorkloadIdentityAuthenticationEventListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype WorkloadIdentityAuthenticationEventListParamsOutcome string\n```\n\n```go\nconst (\n\tWorkloadIdentityAuthenticationEventListParamsOutcomeSuccess WorkloadIdentityAuthenticationEventListParamsOutcome = \"success\"\n\tWorkloadIdentityAuthenticationEventListParamsOutcomeFailure WorkloadIdentityAuthenticationEventListParamsOutcome = \"failure\"\n)\n```\n\n```go\ntype WorkloadIdentityAuthenticationEventOutcome string\n```\n\n```go\nconst (\n\tWorkloadIdentityAuthenticationEventOutcomeSuccess WorkloadIdentityAuthenticationEventOutcome = \"success\"\n\tWorkloadIdentityAuthenticationEventOutcomeFailure WorkloadIdentityAuthenticationEventOutcome = \"failure\"\n)\n```\n\n```go\ntype WorkloadIdentityAuthenticationEventService struct {\n\tOptions []option.RequestOption\n}\n```\nWorkloadIdentityAuthenticationEventService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewWorkloadIdentityAuthenticationEventService](#NewWorkloadIdentityAuthenticationEventService) method instead.\n\n```go\nfunc NewWorkloadIdentityAuthenticationEventService(opts ...option.RequestOption) (r WorkloadIdentityAuthenticationEventService)\n```\nNewWorkloadIdentityAuthenticationEventService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *WorkloadIdentityAuthenticationEventService) List(ctx context.Context, query WorkloadIdentityAuthenticationEventListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[WorkloadIdentityAuthenticationEvent], err error)\n```\nAny signed-in member of the organization can read this. API keys cannot.\n\n```go\nfunc (r *WorkloadIdentityAuthenticationEventService) ListAutoPaging(ctx context.Context, query WorkloadIdentityAuthenticationEventListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[WorkloadIdentityAuthenticationEvent]\n```\nAny signed-in member of the organization can read this. API keys cannot.\n\n```go\ntype WorkloadIdentityAuthorization struct {\n\t// Allow statements for resources in this rule's project, in the same format as a\n\t// scoped API key policy. API key actions are not allowed.\n\tPolicy WorkloadIdentityAuthorizationPolicy `json:\"policy\" api:\"required\"`\n\t// The one project credentials from this rule are limited to.\n\tProjectID          string `json:\"project_id\" api:\"required\"`\n\tTokenAudience      string `json:\"token_audience\" api:\"required\"`\n\tMaxTokenTtlSeconds int64  `json:\"max_token_ttl_seconds\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tPolicy             respjson.Field\n\t\tProjectID          respjson.Field\n\t\tTokenAudience      respjson.Field\n\t\tMaxTokenTtlSeconds respjson.Field\n\t\tExtraFields        map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r WorkloadIdentityAuthorization) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r WorkloadIdentityAuthorization) ToParam() WorkloadIdentityAuthorizationParam\n```\nToParam converts this WorkloadIdentityAuthorization to a WorkloadIdentityAuthorizationParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with WorkloadIdentityAuthorizationParam.Overrides()\n\n```go\nfunc (r *WorkloadIdentityAuthorization) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkloadIdentityAuthorizationParam struct {\n\t// Allow statements for resources in this rule's project, in the same format as a\n\t// scoped API key policy. API key actions are not allowed.\n\tPolicy WorkloadIdentityAuthorizationPolicyParam `json:\"policy,omitzero\" api:\"required\"`\n\t// The one project credentials from this rule are limited to.\n\tProjectID          string           `json:\"project_id\" api:\"required\"`\n\tTokenAudience      string           `json:\"token_audience\" api:\"required\"`\n\tMaxTokenTtlSeconds param.Opt[int64] `json:\"max_token_ttl_seconds,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Policy, ProjectID, TokenAudience are required.\n\n```go\nfunc (r WorkloadIdentityAuthorizationParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkloadIdentityAuthorizationParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkloadIdentityAuthorizationPolicy struct {\n\t// Allow statements. Every action and resource not listed is denied.\n\tStatements []WorkloadIdentityAuthorizationPolicyStatement `json:\"statements\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tStatements  respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAllow statements for resources in this rule's project, in the same format as a scoped API key policy. API key actions are not allowed.\n\n```go\nfunc (r WorkloadIdentityAuthorizationPolicy) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkloadIdentityAuthorizationPolicy) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkloadIdentityAuthorizationPolicyParam struct {\n\t// Allow statements. Every action and resource not listed is denied.\n\tStatements []WorkloadIdentityAuthorizationPolicyStatementParam `json:\"statements,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nAllow statements for resources in this rule's project, in the same format as a scoped API key policy. API key actions are not allowed.\n\nThe property Statements is required.\n\n```go\nfunc (r WorkloadIdentityAuthorizationPolicyParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkloadIdentityAuthorizationPolicyParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkloadIdentityAuthorizationPolicyStatement struct {\n\t// Permitted action, such as browsers:use or vaults:read. When creating an API key\n\t// or replacing its policy, `*` may replace whole components as shorthand:\n\t// browsers:_ names every browsers action, _:delete every delete action the\n\t// resource can carry, and _:_ every action the resource can carry. The stored\n\t// policy lists the concrete actions, so actions added later are not granted, and\n\t// api_keys:issue_beyond_expiry must always be listed explicitly. Partial\n\t// components such as brow*:use and a bare * are rejected. Other policies, such as\n\t// workload identity rules and deployment runtime policies, accept only exact\n\t// actions.\n\tAction string `json:\"action\" api:\"required\"`\n\t// Resource the action applies to, in the format projects/{project_id}/{kind}/{id}.\n\t// Wildcards are supported.\n\tResource string `json:\"resource\" api:\"required\"`\n\t// A condition narrows a policy statement to requests matching its constraint: the\n\t// request attribute, a comparison operator, and that operator's values.\n\tCondition WorkloadIdentityAuthorizationPolicyStatementCondition `json:\"condition\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAction      respjson.Field\n\t\tResource    respjson.Field\n\t\tCondition   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r WorkloadIdentityAuthorizationPolicyStatement) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkloadIdentityAuthorizationPolicyStatement) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkloadIdentityAuthorizationPolicyStatementCondition struct {\n\t// Request attribute the condition constrains. `source_ip` restricts the statement\n\t// to requests whose client address falls inside one of `values`.\n\t//\n\t// Any of \"source_ip\".\n\tKey string `json:\"key\" api:\"required\"`\n\t// Comparison the condition applies between the request attribute and values.\n\t//\n\t// Any of \"in\".\n\tOperator string `json:\"operator\" api:\"required\"`\n\t// Values the request attribute must match. For `source_ip`, CIDR networks: a bare\n\t// address without a mask is rejected, and so are an entry with host bits set and\n\t// an IPv4 network written in IPv6 notation.\n\tValues []string `json:\"values\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tKey         respjson.Field\n\t\tOperator    respjson.Field\n\t\tValues      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA condition narrows a policy statement to requests matching its constraint: the request attribute, a comparison operator, and that operator's values.\n\n```go\nfunc (r WorkloadIdentityAuthorizationPolicyStatementCondition) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkloadIdentityAuthorizationPolicyStatementCondition) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkloadIdentityAuthorizationPolicyStatementConditionParam struct {\n\t// Request attribute the condition constrains. `source_ip` restricts the statement\n\t// to requests whose client address falls inside one of `values`.\n\t//\n\t// Any of \"source_ip\".\n\tKey string `json:\"key,omitzero\" api:\"required\"`\n\t// Comparison the condition applies between the request attribute and values.\n\t//\n\t// Any of \"in\".\n\tOperator string `json:\"operator,omitzero\" api:\"required\"`\n\t// Values the request attribute must match. For `source_ip`, CIDR networks: a bare\n\t// address without a mask is rejected, and so are an entry with host bits set and\n\t// an IPv4 network written in IPv6 notation.\n\tValues []string `json:\"values,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nA condition narrows a policy statement to requests matching its constraint: the request attribute, a comparison operator, and that operator's values.\n\nThe properties Key, Operator, Values are required.\n\n```go\nfunc (r WorkloadIdentityAuthorizationPolicyStatementConditionParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkloadIdentityAuthorizationPolicyStatementConditionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkloadIdentityAuthorizationPolicyStatementParam struct {\n\t// Permitted action, such as browsers:use or vaults:read. When creating an API key\n\t// or replacing its policy, `*` may replace whole components as shorthand:\n\t// browsers:_ names every browsers action, _:delete every delete action the\n\t// resource can carry, and _:_ every action the resource can carry. The stored\n\t// policy lists the concrete actions, so actions added later are not granted, and\n\t// api_keys:issue_beyond_expiry must always be listed explicitly. Partial\n\t// components such as brow*:use and a bare * are rejected. Other policies, such as\n\t// workload identity rules and deployment runtime policies, accept only exact\n\t// actions.\n\tAction string `json:\"action\" api:\"required\"`\n\t// Resource the action applies to, in the format projects/{project_id}/{kind}/{id}.\n\t// Wildcards are supported.\n\tResource string `json:\"resource\" api:\"required\"`\n\t// A condition narrows a policy statement to requests matching its constraint: the\n\t// request attribute, a comparison operator, and that operator's values.\n\tCondition WorkloadIdentityAuthorizationPolicyStatementConditionParam `json:\"condition,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Action, Resource are required.\n\n```go\nfunc (r WorkloadIdentityAuthorizationPolicyStatementParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkloadIdentityAuthorizationPolicyStatementParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkloadIdentityFederationRule struct {\n\tID               string                        `json:\"id\" api:\"required\"`\n\tArchivedAt       time.Time                     `json:\"archived_at\" api:\"required\" format:\"date-time\"`\n\tAuthorization    WorkloadIdentityAuthorization `json:\"authorization\" api:\"required\"`\n\tCreatedAt        time.Time                     `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\tCreatedByUserID  string                        `json:\"created_by_user_id\" api:\"required\"`\n\tDescription      string                        `json:\"description\" api:\"required\"`\n\tEnabled          bool                          `json:\"enabled\" api:\"required\"`\n\tExpectedAudience string                        `json:\"expected_audience\" api:\"required\"`\n\tIssuerID         string                        `json:\"issuer_id\" api:\"required\"`\n\tLastExchangeAt   time.Time                     `json:\"last_exchange_at\" api:\"required\" format:\"date-time\"`\n\tMatch            WorkloadIdentityMatch         `json:\"match\" api:\"required\"`\n\tName             string                        `json:\"name\" api:\"required\"`\n\tOrgID            string                        `json:\"org_id\" api:\"required\"`\n\t// Authority revision. Cosmetic updates do not widen permissions.\n\tSecurityVersion int64                  `json:\"security_version\" api:\"required\"`\n\tTarget          WorkloadIdentityTarget `json:\"target\" api:\"required\"`\n\tUpdatedAt       time.Time              `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID               respjson.Field\n\t\tArchivedAt       respjson.Field\n\t\tAuthorization    respjson.Field\n\t\tCreatedAt        respjson.Field\n\t\tCreatedByUserID  respjson.Field\n\t\tDescription      respjson.Field\n\t\tEnabled          respjson.Field\n\t\tExpectedAudience respjson.Field\n\t\tIssuerID         respjson.Field\n\t\tLastExchangeAt   respjson.Field\n\t\tMatch            respjson.Field\n\t\tName             respjson.Field\n\t\tOrgID            respjson.Field\n\t\tSecurityVersion  respjson.Field\n\t\tTarget           respjson.Field\n\t\tUpdatedAt        respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r WorkloadIdentityFederationRule) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkloadIdentityFederationRule) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkloadIdentityFederationRuleConfigParam struct {\n\tAuthorization    WorkloadIdentityAuthorizationParam `json:\"authorization,omitzero\" api:\"required\"`\n\tExpectedAudience string                             `json:\"expected_audience\" api:\"required\"`\n\tIssuerID         string                             `json:\"issuer_id\" api:\"required\"`\n\tMatch            WorkloadIdentityMatchParam         `json:\"match,omitzero\" api:\"required\"`\n\tName             string                             `json:\"name\" api:\"required\"`\n\tTarget           WorkloadIdentityTargetParam        `json:\"target,omitzero\" api:\"required\"`\n\tDescription      param.Opt[string]                  `json:\"description,omitzero\"`\n\tEnabled          param.Opt[bool]                    `json:\"enabled,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Authorization, ExpectedAudience, IssuerID, Match, Name, Target are required.\n\n```go\nfunc (r WorkloadIdentityFederationRuleConfigParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkloadIdentityFederationRuleConfigParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkloadIdentityFederationRuleListParams struct {\n\tIssuerID  param.Opt[string] `query:\"issuer_id,omitzero\" json:\"-\"`\n\tLimit     param.Opt[int64]  `query:\"limit,omitzero\" json:\"-\"`\n\tOffset    param.Opt[int64]  `query:\"offset,omitzero\" json:\"-\"`\n\tProjectID param.Opt[string] `query:\"project_id,omitzero\" json:\"-\"`\n\t// Case-insensitive substring match against name or description; exact ID match.\n\tQuery            param.Opt[string] `query:\"query,omitzero\" json:\"-\"`\n\tServiceAccountID param.Opt[string] `query:\"service_account_id,omitzero\" json:\"-\"`\n\t// Any of \"active\", \"archived\", \"all\".\n\tStatus WorkloadIdentityFederationRuleListParamsStatus `query:\"status,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r WorkloadIdentityFederationRuleListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [WorkloadIdentityFederationRuleListParams](#WorkloadIdentityFederationRuleListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype WorkloadIdentityFederationRuleListParamsStatus string\n```\n\n```go\nconst (\n\tWorkloadIdentityFederationRuleListParamsStatusActive   WorkloadIdentityFederationRuleListParamsStatus = \"active\"\n\tWorkloadIdentityFederationRuleListParamsStatusArchived WorkloadIdentityFederationRuleListParamsStatus = \"archived\"\n\tWorkloadIdentityFederationRuleListParamsStatusAll      WorkloadIdentityFederationRuleListParamsStatus = \"all\"\n)\n```\n\n```go\ntype WorkloadIdentityFederationRuleNewParams struct {\n\tWorkloadIdentityFederationRuleConfig WorkloadIdentityFederationRuleConfigParam\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r WorkloadIdentityFederationRuleNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkloadIdentityFederationRuleNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkloadIdentityFederationRuleService struct {\n\tOptions []option.RequestOption\n}\n```\nWorkloadIdentityFederationRuleService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewWorkloadIdentityFederationRuleService](#NewWorkloadIdentityFederationRuleService) method instead.\n\n```go\nfunc NewWorkloadIdentityFederationRuleService(opts ...option.RequestOption) (r WorkloadIdentityFederationRuleService)\n```\nNewWorkloadIdentityFederationRuleService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *WorkloadIdentityFederationRuleService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)\n```\nRetains history and invalidates associated authority within the documented status bound. Does not delete created browser resources.\n\n```go\nfunc (r *WorkloadIdentityFederationRuleService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *WorkloadIdentityFederationRule, err error)\n```\nAny signed-in member of the organization can read this. API keys cannot.\n\n```go\nfunc (r *WorkloadIdentityFederationRuleService) List(ctx context.Context, query WorkloadIdentityFederationRuleListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[WorkloadIdentityFederationRule], err error)\n```\nAny signed-in member of the organization can read this. API keys cannot.\n\n```go\nfunc (r *WorkloadIdentityFederationRuleService) ListAutoPaging(ctx context.Context, query WorkloadIdentityFederationRuleListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[WorkloadIdentityFederationRule]\n```\nAny signed-in member of the organization can read this. API keys cannot.\n\n```go\nfunc (r *WorkloadIdentityFederationRuleService) New(ctx context.Context, body WorkloadIdentityFederationRuleNewParams, opts ...option.RequestOption) (res *WorkloadIdentityFederationRule, err error)\n```\nOrganization credential administrators only. No external namespace-ownership or staff approval is required. New trust resources default disabled.\n\n```go\nfunc (r *WorkloadIdentityFederationRuleService) Update(ctx context.Context, id string, body WorkloadIdentityFederationRuleUpdateParams, opts ...option.RequestOption) (res *WorkloadIdentityFederationRule, err error)\n```\nUpdate a workload identity federation rule\n\n```go\ntype WorkloadIdentityFederationRuleUpdateParams struct {\n\tExpectedVersion  int64                              `json:\"expected_version\" api:\"required\"`\n\tDescription      param.Opt[string]                  `json:\"description,omitzero\"`\n\tEnabled          param.Opt[bool]                    `json:\"enabled,omitzero\"`\n\tExpectedAudience param.Opt[string]                  `json:\"expected_audience,omitzero\"`\n\tIssuerID         param.Opt[string]                  `json:\"issuer_id,omitzero\"`\n\tName             param.Opt[string]                  `json:\"name,omitzero\"`\n\tAuthorization    WorkloadIdentityAuthorizationParam `json:\"authorization,omitzero\"`\n\tMatch            WorkloadIdentityMatchParam         `json:\"match,omitzero\"`\n\tTarget           WorkloadIdentityTargetParam        `json:\"target,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r WorkloadIdentityFederationRuleUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkloadIdentityFederationRuleUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkloadIdentityIssuer struct {\n\tID              string    `json:\"id\" api:\"required\"`\n\tArchivedAt      time.Time `json:\"archived_at\" api:\"required\" format:\"date-time\"`\n\tCreatedAt       time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\tCreatedByUserID string    `json:\"created_by_user_id\" api:\"required\"`\n\tDescription     string    `json:\"description\" api:\"required\"`\n\tEnabled         bool      `json:\"enabled\" api:\"required\"`\n\t// Exact expected signed issuer. Optional for github_actions and google_cloud,\n\t// which each have one fixed issuer.\n\tIssuerURL string                    `json:\"issuer_url\" api:\"required\" format:\"uri\"`\n\tJwks      WorkloadIdentityKeySource `json:\"jwks\" api:\"required\"`\n\tName      string                    `json:\"name\" api:\"required\"`\n\tOrgID     string                    `json:\"org_id\" api:\"required\"`\n\t// The kind of identity provider. GitHub Actions, Google Cloud and Microsoft Entra\n\t// issuers are recognized by their issuer URL and must use their own type. Defaults\n\t// to the type the issuer URL belongs to, or custom_oidc.\n\t//\n\t// Any of \"github_actions\", \"aws\", \"google_cloud\", \"microsoft_entra\", \"kubernetes\",\n\t// \"custom_oidc\".\n\tPresetType WorkloadIdentityPresetType `json:\"preset_type\" api:\"required\"`\n\t// Authority revision. Cosmetic updates do not widen permissions.\n\tSecurityVersion int64                           `json:\"security_version\" api:\"required\"`\n\tTokenValidation WorkloadIdentityTokenValidation `json:\"token_validation\" api:\"required\"`\n\tUpdatedAt       time.Time                       `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID              respjson.Field\n\t\tArchivedAt      respjson.Field\n\t\tCreatedAt       respjson.Field\n\t\tCreatedByUserID respjson.Field\n\t\tDescription     respjson.Field\n\t\tEnabled         respjson.Field\n\t\tIssuerURL       respjson.Field\n\t\tJwks            respjson.Field\n\t\tName            respjson.Field\n\t\tOrgID           respjson.Field\n\t\tPresetType      respjson.Field\n\t\tSecurityVersion respjson.Field\n\t\tTokenValidation respjson.Field\n\t\tUpdatedAt       respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r WorkloadIdentityIssuer) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkloadIdentityIssuer) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkloadIdentityIssuerConfigParam struct {\n\tName        string            `json:\"name\" api:\"required\"`\n\tDescription param.Opt[string] `json:\"description,omitzero\"`\n\tEnabled     param.Opt[bool]   `json:\"enabled,omitzero\"`\n\t// Exact expected signed issuer. Optional for github_actions and google_cloud,\n\t// which each have one fixed issuer.\n\tIssuerURL param.Opt[string]              `json:\"issuer_url,omitzero\" format:\"uri\"`\n\tJwks      WorkloadIdentityKeySourceParam `json:\"jwks,omitzero\"`\n\t// The kind of identity provider. GitHub Actions, Google Cloud and Microsoft Entra\n\t// issuers are recognized by their issuer URL and must use their own type. Defaults\n\t// to the type the issuer URL belongs to, or custom_oidc.\n\t//\n\t// Any of \"github_actions\", \"aws\", \"google_cloud\", \"microsoft_entra\", \"kubernetes\",\n\t// \"custom_oidc\".\n\tPresetType      WorkloadIdentityPresetType           `json:\"preset_type,omitzero\"`\n\tTokenValidation WorkloadIdentityTokenValidationParam `json:\"token_validation,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Name is required.\n\n```go\nfunc (r WorkloadIdentityIssuerConfigParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkloadIdentityIssuerConfigParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkloadIdentityIssuerKeyCheck struct {\n\tIssuerID string   `json:\"issuer_id\" api:\"required\"`\n\tKeyIDs   []string `json:\"key_ids\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tIssuerID    respjson.Field\n\t\tKeyIDs      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r WorkloadIdentityIssuerKeyCheck) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkloadIdentityIssuerKeyCheck) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkloadIdentityIssuerListParams struct {\n\tEnabled param.Opt[bool]  `query:\"enabled,omitzero\" json:\"-\"`\n\tLimit   param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\tOffset  param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Case-insensitive substring match against name or description; exact ID match.\n\tQuery param.Opt[string] `query:\"query,omitzero\" json:\"-\"`\n\t// Any of \"active\", \"archived\", \"all\".\n\tStatus WorkloadIdentityIssuerListParamsStatus `query:\"status,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r WorkloadIdentityIssuerListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [WorkloadIdentityIssuerListParams](#WorkloadIdentityIssuerListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype WorkloadIdentityIssuerListParamsStatus string\n```\n\n```go\nconst (\n\tWorkloadIdentityIssuerListParamsStatusActive   WorkloadIdentityIssuerListParamsStatus = \"active\"\n\tWorkloadIdentityIssuerListParamsStatusArchived WorkloadIdentityIssuerListParamsStatus = \"archived\"\n\tWorkloadIdentityIssuerListParamsStatusAll      WorkloadIdentityIssuerListParamsStatus = \"all\"\n)\n```\n\n```go\ntype WorkloadIdentityIssuerNewParams struct {\n\tWorkloadIdentityIssuerConfig WorkloadIdentityIssuerConfigParam\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r WorkloadIdentityIssuerNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkloadIdentityIssuerNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkloadIdentityIssuerService struct {\n\tOptions []option.RequestOption\n}\n```\nWorkloadIdentityIssuerService contains methods and other services that help with interacting with the kernel API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewWorkloadIdentityIssuerService](#NewWorkloadIdentityIssuerService) method instead.\n\n```go\nfunc NewWorkloadIdentityIssuerService(opts ...option.RequestOption) (r WorkloadIdentityIssuerService)\n```\nNewWorkloadIdentityIssuerService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *WorkloadIdentityIssuerService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)\n```\nRetains history and invalidates associated authority within the documented status bound. Does not delete created browser resources.\n\n```go\nfunc (r *WorkloadIdentityIssuerService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *WorkloadIdentityIssuer, err error)\n```\nAny signed-in member of the organization can read this. API keys cannot.\n\n```go\nfunc (r *WorkloadIdentityIssuerService) List(ctx context.Context, query WorkloadIdentityIssuerListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[WorkloadIdentityIssuer], err error)\n```\nAny signed-in member of the organization can read this. API keys cannot.\n\n```go\nfunc (r *WorkloadIdentityIssuerService) ListAutoPaging(ctx context.Context, query WorkloadIdentityIssuerListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[WorkloadIdentityIssuer]\n```\nAny signed-in member of the organization can read this. API keys cannot.\n\n```go\nfunc (r *WorkloadIdentityIssuerService) New(ctx context.Context, body WorkloadIdentityIssuerNewParams, opts ...option.RequestOption) (res *WorkloadIdentityIssuer, err error)\n```\nOrganization credential administrators only. No external namespace-ownership or staff approval is required. New trust resources default disabled.\n\n```go\nfunc (r *WorkloadIdentityIssuerService) Update(ctx context.Context, id string, body WorkloadIdentityIssuerUpdateParams, opts ...option.RequestOption) (res *WorkloadIdentityIssuer, err error)\n```\nUpdate a workload identity issuer\n\n```go\nfunc (r *WorkloadIdentityIssuerService) Verify(ctx context.Context, id string, opts ...option.RequestOption) (res *WorkloadIdentityIssuerKeyCheck, err error)\n```\nRead-only. Does not enable trust, approve namespace ownership, create a grant or issue credentials.\n\n```go\ntype WorkloadIdentityIssuerUpdateParams struct {\n\tExpectedVersion int64             `json:\"expected_version\" api:\"required\"`\n\tDescription     param.Opt[string] `json:\"description,omitzero\"`\n\tEnabled         param.Opt[bool]   `json:\"enabled,omitzero\"`\n\t// Exact expected signed issuer. Optional for github_actions and google_cloud,\n\t// which each have one fixed issuer.\n\tIssuerURL param.Opt[string]              `json:\"issuer_url,omitzero\" format:\"uri\"`\n\tName      param.Opt[string]              `json:\"name,omitzero\"`\n\tJwks      WorkloadIdentityKeySourceParam `json:\"jwks,omitzero\"`\n\t// The kind of identity provider. GitHub Actions, Google Cloud and Microsoft Entra\n\t// issuers are recognized by their issuer URL and must use their own type. Defaults\n\t// to the type the issuer URL belongs to, or custom_oidc.\n\t//\n\t// Any of \"github_actions\", \"aws\", \"google_cloud\", \"microsoft_entra\", \"kubernetes\",\n\t// \"custom_oidc\".\n\tPresetType      WorkloadIdentityPresetType           `json:\"preset_type,omitzero\"`\n\tTokenValidation WorkloadIdentityTokenValidationParam `json:\"token_validation,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r WorkloadIdentityIssuerUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkloadIdentityIssuerUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkloadIdentityKeySource struct {\n\t// Any of \"discovery\", \"explicit_url\", \"inline\".\n\tType WorkloadIdentityKeySourceType `json:\"type\" api:\"required\"`\n\t// Optional public CA certificates. When set, only these CAs are trusted for key\n\t// retrieval, in place of the system roots. Private keys and private-network\n\t// retrieval are not supported.\n\tCaCertPem        string           `json:\"ca_cert_pem\"`\n\tDiscoveryBaseURL string           `json:\"discovery_base_url\" format:\"uri\"`\n\tKeys             []map[string]any `json:\"keys\"`\n\tURL              string           `json:\"url\" format:\"uri\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tType             respjson.Field\n\t\tCaCertPem        respjson.Field\n\t\tDiscoveryBaseURL respjson.Field\n\t\tKeys             respjson.Field\n\t\tURL              respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r WorkloadIdentityKeySource) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r WorkloadIdentityKeySource) ToParam() WorkloadIdentityKeySourceParam\n```\nToParam converts this WorkloadIdentityKeySource to a WorkloadIdentityKeySourceParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with WorkloadIdentityKeySourceParam.Overrides()\n\n```go\nfunc (r *WorkloadIdentityKeySource) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkloadIdentityKeySourceParam struct {\n\t// Any of \"discovery\", \"explicit_url\", \"inline\".\n\tType WorkloadIdentityKeySourceType `json:\"type,omitzero\" api:\"required\"`\n\t// Optional public CA certificates. When set, only these CAs are trusted for key\n\t// retrieval, in place of the system roots. Private keys and private-network\n\t// retrieval are not supported.\n\tCaCertPem        param.Opt[string] `json:\"ca_cert_pem,omitzero\"`\n\tDiscoveryBaseURL param.Opt[string] `json:\"discovery_base_url,omitzero\" format:\"uri\"`\n\tURL              param.Opt[string] `json:\"url,omitzero\" format:\"uri\"`\n\tKeys             []map[string]any  `json:\"keys,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Type is required.\n\n```go\nfunc (r WorkloadIdentityKeySourceParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkloadIdentityKeySourceParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkloadIdentityKeySourceType string\n```\n\n```go\nconst (\n\tWorkloadIdentityKeySourceTypeDiscovery   WorkloadIdentityKeySourceType = \"discovery\"\n\tWorkloadIdentityKeySourceTypeExplicitURL WorkloadIdentityKeySourceType = \"explicit_url\"\n\tWorkloadIdentityKeySourceTypeInline      WorkloadIdentityKeySourceType = \"inline\"\n)\n```\n\n```go\ntype WorkloadIdentityMatch struct {\n\t// Must be the issuer's preset_type.\n\t//\n\t// Any of \"github_actions\", \"aws\", \"google_cloud\", \"microsoft_entra\", \"kubernetes\",\n\t// \"custom_oidc\".\n\tType WorkloadIdentityMatchType `json:\"type\" api:\"required\"`\n\t// Exact string conditions keyed by RFC 6901 JSON Pointers. All conditions are\n\t// ANDed.\n\tClaims         map[string]string `json:\"claims\"`\n\tEnvironment    string            `json:\"environment\"`\n\tEventNames     []string          `json:\"event_names\"`\n\tJobWorkflowRef string            `json:\"job_workflow_ref\"`\n\tNamespace      string            `json:\"namespace\"`\n\tRef            string            `json:\"ref\"`\n\t// Friendly display name. Immutable IDs define the repository identity.\n\tRepository        string `json:\"repository\"`\n\tRepositoryID      string `json:\"repository_id\"`\n\tRepositoryOwnerID string `json:\"repository_owner_id\"`\n\tServiceAccount    string `json:\"service_account\"`\n\tSubject           string `json:\"subject\"`\n\tSubjectPrefix     string `json:\"subject_prefix\"`\n\tWorkflow          string `json:\"workflow\"`\n\tWorkflowRef       string `json:\"workflow_ref\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tType              respjson.Field\n\t\tClaims            respjson.Field\n\t\tEnvironment       respjson.Field\n\t\tEventNames        respjson.Field\n\t\tJobWorkflowRef    respjson.Field\n\t\tNamespace         respjson.Field\n\t\tRef               respjson.Field\n\t\tRepository        respjson.Field\n\t\tRepositoryID      respjson.Field\n\t\tRepositoryOwnerID respjson.Field\n\t\tServiceAccount    respjson.Field\n\t\tSubject           respjson.Field\n\t\tSubjectPrefix     respjson.Field\n\t\tWorkflow          respjson.Field\n\t\tWorkflowRef       respjson.Field\n\t\tExtraFields       map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r WorkloadIdentityMatch) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r WorkloadIdentityMatch) ToParam() WorkloadIdentityMatchParam\n```\nToParam converts this WorkloadIdentityMatch to a WorkloadIdentityMatchParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with WorkloadIdentityMatchParam.Overrides()\n\n```go\nfunc (r *WorkloadIdentityMatch) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkloadIdentityMatchParam struct {\n\t// Must be the issuer's preset_type.\n\t//\n\t// Any of \"github_actions\", \"aws\", \"google_cloud\", \"microsoft_entra\", \"kubernetes\",\n\t// \"custom_oidc\".\n\tType           WorkloadIdentityMatchType `json:\"type,omitzero\" api:\"required\"`\n\tEnvironment    param.Opt[string]         `json:\"environment,omitzero\"`\n\tJobWorkflowRef param.Opt[string]         `json:\"job_workflow_ref,omitzero\"`\n\tNamespace      param.Opt[string]         `json:\"namespace,omitzero\"`\n\tRef            param.Opt[string]         `json:\"ref,omitzero\"`\n\t// Friendly display name. Immutable IDs define the repository identity.\n\tRepository        param.Opt[string] `json:\"repository,omitzero\"`\n\tRepositoryID      param.Opt[string] `json:\"repository_id,omitzero\"`\n\tRepositoryOwnerID param.Opt[string] `json:\"repository_owner_id,omitzero\"`\n\tServiceAccount    param.Opt[string] `json:\"service_account,omitzero\"`\n\tSubject           param.Opt[string] `json:\"subject,omitzero\"`\n\tSubjectPrefix     param.Opt[string] `json:\"subject_prefix,omitzero\"`\n\tWorkflow          param.Opt[string] `json:\"workflow,omitzero\"`\n\tWorkflowRef       param.Opt[string] `json:\"workflow_ref,omitzero\"`\n\t// Exact string conditions keyed by RFC 6901 JSON Pointers. All conditions are\n\t// ANDed.\n\tClaims     map[string]string `json:\"claims,omitzero\"`\n\tEventNames []string          `json:\"event_names,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Type is required.\n\n```go\nfunc (r WorkloadIdentityMatchParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkloadIdentityMatchParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkloadIdentityMatchType string\n```\nMust be the issuer's preset\\_type.\n\n```go\nconst (\n\tWorkloadIdentityMatchTypeGitHubActions  WorkloadIdentityMatchType = \"github_actions\"\n\tWorkloadIdentityMatchTypeAws            WorkloadIdentityMatchType = \"aws\"\n\tWorkloadIdentityMatchTypeGoogleCloud    WorkloadIdentityMatchType = \"google_cloud\"\n\tWorkloadIdentityMatchTypeMicrosoftEntra WorkloadIdentityMatchType = \"microsoft_entra\"\n\tWorkloadIdentityMatchTypeKubernetes     WorkloadIdentityMatchType = \"kubernetes\"\n\tWorkloadIdentityMatchTypeCustomOidc     WorkloadIdentityMatchType = \"custom_oidc\"\n)\n```\n\n```go\ntype WorkloadIdentityPresetType string\n```\nThe kind of identity provider. GitHub Actions, Google Cloud and Microsoft Entra issuers are recognized by their issuer URL and must use their own type. Defaults to the type the issuer URL belongs to, or custom\\_oidc.\n\n```go\nconst (\n\tWorkloadIdentityPresetTypeGitHubActions  WorkloadIdentityPresetType = \"github_actions\"\n\tWorkloadIdentityPresetTypeAws            WorkloadIdentityPresetType = \"aws\"\n\tWorkloadIdentityPresetTypeGoogleCloud    WorkloadIdentityPresetType = \"google_cloud\"\n\tWorkloadIdentityPresetTypeMicrosoftEntra WorkloadIdentityPresetType = \"microsoft_entra\"\n\tWorkloadIdentityPresetTypeKubernetes     WorkloadIdentityPresetType = \"kubernetes\"\n\tWorkloadIdentityPresetTypeCustomOidc     WorkloadIdentityPresetType = \"custom_oidc\"\n)\n```\n\n```go\ntype WorkloadIdentityTarget struct {\n\tServiceAccountID string `json:\"service_account_id\" api:\"required\"`\n\t// Any of \"service_account\".\n\tType WorkloadIdentityTargetType `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tServiceAccountID respjson.Field\n\t\tType             respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r WorkloadIdentityTarget) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r WorkloadIdentityTarget) ToParam() WorkloadIdentityTargetParam\n```\nToParam converts this WorkloadIdentityTarget to a WorkloadIdentityTargetParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with WorkloadIdentityTargetParam.Overrides()\n\n```go\nfunc (r *WorkloadIdentityTarget) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkloadIdentityTargetParam struct {\n\tServiceAccountID string `json:\"service_account_id\" api:\"required\"`\n\t// Any of \"service_account\".\n\tType WorkloadIdentityTargetType `json:\"type,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties ServiceAccountID, Type are required.\n\n```go\nfunc (r WorkloadIdentityTargetParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkloadIdentityTargetParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkloadIdentityTargetType string\n```\n\n```go\nconst (\n\tWorkloadIdentityTargetTypeServiceAccount WorkloadIdentityTargetType = \"service_account\"\n)\n```\n\n```go\ntype WorkloadIdentityTokenValidation struct {\n\t// Maximum incoming signed exp minus iat, independent of outgoing token lifetime.\n\t// At most 172800 (48 hours), which covers Azure managed identity tokens that live\n\t// slightly over 24 hours.\n\tMaxLifetimeSeconds int64 `json:\"max_lifetime_seconds\"`\n\t// Whether an incoming token can be exchanged more than once before it expires.\n\t// Defaults to single_use for github_actions, aws, microsoft_entra and custom_oidc,\n\t// and to allow_reuse for kubernetes, because a pod reads the same projected token\n\t// until it is rotated. google_cloud is always allow_reuse because Google identity\n\t// tokens carry no token ID. allow_reuse can be set on microsoft_entra and\n\t// custom_oidc, and single_use on kubernetes. github_actions and aws are always\n\t// single_use.\n\t//\n\t// Any of \"single_use\", \"allow_reuse\".\n\tReplayProtection WorkloadIdentityTokenValidationReplayProtection `json:\"replay_protection\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMaxLifetimeSeconds respjson.Field\n\t\tReplayProtection   respjson.Field\n\t\tExtraFields        map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r WorkloadIdentityTokenValidation) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r WorkloadIdentityTokenValidation) ToParam() WorkloadIdentityTokenValidationParam\n```\nToParam converts this WorkloadIdentityTokenValidation to a WorkloadIdentityTokenValidationParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with WorkloadIdentityTokenValidationParam.Overrides()\n\n```go\nfunc (r *WorkloadIdentityTokenValidation) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkloadIdentityTokenValidationParam struct {\n\t// Maximum incoming signed exp minus iat, independent of outgoing token lifetime.\n\t// At most 172800 (48 hours), which covers Azure managed identity tokens that live\n\t// slightly over 24 hours.\n\tMaxLifetimeSeconds param.Opt[int64] `json:\"max_lifetime_seconds,omitzero\"`\n\t// Whether an incoming token can be exchanged more than once before it expires.\n\t// Defaults to single_use for github_actions, aws, microsoft_entra and custom_oidc,\n\t// and to allow_reuse for kubernetes, because a pod reads the same projected token\n\t// until it is rotated. google_cloud is always allow_reuse because Google identity\n\t// tokens carry no token ID. allow_reuse can be set on microsoft_entra and\n\t// custom_oidc, and single_use on kubernetes. github_actions and aws are always\n\t// single_use.\n\t//\n\t// Any of \"single_use\", \"allow_reuse\".\n\tReplayProtection WorkloadIdentityTokenValidationReplayProtection `json:\"replay_protection,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r WorkloadIdentityTokenValidationParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkloadIdentityTokenValidationParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkloadIdentityTokenValidationReplayProtection string\n```\nWhether an incoming token can be exchanged more than once before it expires. Defaults to single\\_use for github\\_actions, aws, microsoft\\_entra and custom\\_oidc, and to allow\\_reuse for kubernetes, because a pod reads the same projected token until it is rotated. google\\_cloud is always allow\\_reuse because Google identity tokens carry no token ID. allow\\_reuse can be set on microsoft\\_entra and custom\\_oidc, and single\\_use on kubernetes. github\\_actions and aws are always single\\_use.\n\n```go\nconst (\n\tWorkloadIdentityTokenValidationReplayProtectionSingleUse  WorkloadIdentityTokenValidationReplayProtection = \"single_use\"\n\tWorkloadIdentityTokenValidationReplayProtectionAllowReuse WorkloadIdentityTokenValidationReplayProtection = \"allow_reuse\"\n)\n```\n\n","path":"github.com/kernel/kernel-go-sdk","name":"kernel","synopsis":"","isRedistributable":true}
