{"modulePath":"github.com/QoderAI/qoder-cloud-agents-sdk-go","version":"v0.15.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package forward\n\n## Constants\n\n```go\nconst DefaultBaseURL = \"https://api.qoder.com/api/v1/forward/\"\n```\n\n```go\nconst RealtimeMaxClientMessageBytes = 256 * 1024\n```\n\n```go\nconst RealtimeProtocolVersion = \"voice.realtime.v1\"\n```\n\n## Variables\n\n```go\nvar ErrWebhookVerification = errors.New(\"webhook signature verification failed\")\n```\nErrWebhookVerification indicates missing, invalid, expired or mismatched delivery authentication.\n\n## Functions\n\n```go\nfunc Bool(v bool) param.Opt[bool]\n```\n\n```go\nfunc Float(v float64) param.Opt[float64]\n```\n\n```go\nfunc Int(v int64) param.Opt[int64]\n```\n\n```go\nfunc String(v string) param.Opt[string]\n```\n\n```go\nfunc VerifyWebhookSignature(payload []byte, headers http.Header, secret string) error\n```\nVerifyWebhookSignature authenticates the original request bytes with the endpoint's whsec\\_ secret. It accepts any matching v1 signature within 300 seconds of now. Verify before parsing JSON; deduplicate accepted events using Webhook-ID.\n\n```go\nfunc WithIdentityID(identityID string) option.RequestOption\n```\nWithIdentityID selects identity ownership for Forward resources using a PAT. Omit this option when using a SAT; its identity is inferred by the server. Use it on retrieval, deletion, archive, and download methods without params.\n\n## Types\n\n```go\ntype Batch struct {\n\tIgnoreIdleWindow bool `json:\"ignore_idle_window\"`\n\t// Dynamic queue reason, present only when applicable to validating or queued Batches.\n\tQueueReason string `json:\"queue_reason\"`\n\t// Batch ID, prefixed with `batch_`.\n\tID string `json:\"id\"`\n\t// Always `batch`.\n\tObject string `json:\"object\"`\n\t// Batch status; see the status descriptions.\n\tStatus string `json:\"status\"`\n\t// Input JSONL file ID.\n\tInputFileID string `json:\"input_file_id\"`\n\t// File ID of successful results; omitted while incomplete or not yet generated.\n\tOutputFileID string `json:\"output_file_id\"`\n\t// Completion window: `24h`, `48h` or `72h`.\n\tCompletionWindow string `json:\"completion_window\"`\n\t// Creation time in RFC 3339.\n\tCreatedAt time.Time `json:\"created_at\" format:\"date-time\"`\n\t// Expiration time, `created_at` + `completion_window`.\n\tExpiresAt time.Time `json:\"expires_at\" format:\"date-time\"`\n\t// Aggregated task counts.\n\tRequestCounts BatchRequestCounts `json:\"request_counts\"`\n\t// `null` on the create response; on later Batch get, list and cancel responses it returns\n\t// the Credit total once at least one subtask has valid CAS Session usage.\n\tUsage BatchUsage `json:\"usage\" api:\"nullable\"`\n\t// Caller business metadata.\n\tMetadata map[string]any `json:\"metadata\"`\n\t// Total number of lines, including lines that failed validation.\n\tTotal int64 `json:\"total\"`\n\t// Number of lines waiting to run.\n\tPending int64 `json:\"pending\"`\n\t// Number of lines currently running.\n\tRunning int64 `json:\"running\"`\n\t// Number of lines that completed successfully.\n\tCompleted int64 `json:\"completed\"`\n\t// Number of permanently failed lines, including validation failures.\n\tFailed int64 `json:\"failed\"`\n\t// Number of lines terminated by cancellation.\n\tCancelled int64 `json:\"cancelled\"`\n\t// Number of lines terminated by expiration.\n\tExpired int64 `json:\"expired\"`\n\t// File ID of failed-line results; omitted when there are no failed lines.\n\tErrorFileID string `json:\"error_file_id\"`\n\t// Batch-level error description; present only in the `failed` status.\n\tErrorMessage string `json:\"error_message\"`\n\tJSON         struct {\n\t\tIgnoreIdleWindow respjson.Field\n\t\tQueueReason      respjson.Field\n\t\tID               respjson.Field\n\t\tObject           respjson.Field\n\t\tStatus           respjson.Field\n\t\tInputFileID      respjson.Field\n\t\tOutputFileID     respjson.Field\n\t\tCompletionWindow respjson.Field\n\t\tCreatedAt        respjson.Field\n\t\tExpiresAt        respjson.Field\n\t\tRequestCounts    respjson.Field\n\t\tUsage            respjson.Field\n\t\tMetadata         respjson.Field\n\t\tTotal            respjson.Field\n\t\tPending          respjson.Field\n\t\tRunning          respjson.Field\n\t\tCompleted        respjson.Field\n\t\tFailed           respjson.Field\n\t\tCancelled        respjson.Field\n\t\tExpired          respjson.Field\n\t\tErrorFileID      respjson.Field\n\t\tErrorMessage     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 Batch) RawJSON() string\n```\n\n```go\nfunc (r *Batch) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BatchCancelParams struct {\n\t// Optional idempotency key for requests with side effects.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BatchCancelParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype BatchFile struct {\n\t// Pre-signed OSS download URL with `Expires` / `OSSAccessKeyId` / `Signature` and\n\t// `response-content-disposition`; the file downloads as `batch-\u003cbatch_id\u003e-output.jsonl`.\n\tURL string `json:\"url\"`\n\t// Link expiration time in RFC 3339; the download must finish before it.\n\tExpiresAt time.Time `json:\"expires_at\" format:\"date-time\"`\n\tJSON      struct {\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 BatchFile) RawJSON() string\n```\n\n```go\nfunc (r *BatchFile) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BatchListParams struct {\n\t// Filter by status.\n\tStatus param.Opt[string] `query:\"status,omitzero\" json:\"-\"`\n\t// Page size, up to 100.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Cursor for the next page.\n\tAfterID param.Opt[string] `query:\"after_id,omitzero\" json:\"-\"`\n\t// Cursor for the previous page.\n\tBeforeID param.Opt[string] `query:\"before_id,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BatchListParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype BatchNewParams struct {\n\t// Ignore the scheduling time window; does not change capacity or FIFO priority.\n\tIgnoreIdleWindow param.Opt[bool] `json:\"ignore_idle_window,omitzero\"`\n\t// ID of a JSONL file uploaded through the Files API.\n\tInputFileID string `json:\"input_file_id\" api:\"required\"`\n\t// Completion window: `24h`, `48h` or `72h`. The Batch moves to `expired` when it elapses.\n\tCompletionWindow string `json:\"completion_window\" api:\"required\"`\n\t// Caller business metadata, up to 16 keys; values may be any JSON type; the serialized\n\t// object must be ≤ 2KB, keys ≤ 64 characters, and must not contain NUL (U+0000).\n\tMetadata map[string]any `json:\"metadata,omitzero\"`\n\t// Optional idempotency key for requests with side effects.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BatchNewParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *BatchNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BatchRequestCounts struct {\n\tTotal     int64 `json:\"total\"`\n\tPending   int64 `json:\"pending\"`\n\tRunning   int64 `json:\"running\"`\n\tCompleted int64 `json:\"completed\"`\n\tFailed    int64 `json:\"failed\"`\n\tCancelled int64 `json:\"cancelled\"`\n\tExpired   int64 `json:\"expired\"`\n\tJSON      struct {\n\t\tTotal       respjson.Field\n\t\tPending     respjson.Field\n\t\tRunning     respjson.Field\n\t\tCompleted   respjson.Field\n\t\tFailed      respjson.Field\n\t\tCancelled   respjson.Field\n\t\tExpired     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 BatchRequestCounts) RawJSON() string\n```\n\n```go\nfunc (r *BatchRequestCounts) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BatchService struct {\n\tOptions []option.RequestOption\n\tTasks   BatchTaskService\n}\n```\nBatchService provides Forward Batch operations.\n\n```go\nfunc NewBatchService(opts ...option.RequestOption) BatchService\n```\n\n```go\nfunc (r *BatchService) Cancel(ctx context.Context, batchID string, params BatchCancelParams, opts ...option.RequestOption) (res *Batch, err error)\n```\nCancel Batch\n\n```go\nfunc (r *BatchService) Get(ctx context.Context, batchID string, opts ...option.RequestOption) (res *Batch, err error)\n```\nGet Batch\n\n```go\nfunc (r *BatchService) GetError(ctx context.Context, batchID string, opts ...option.RequestOption) (res *BatchFile, err error)\n```\nGet error file\n\n```go\nfunc (r *BatchService) GetOutput(ctx context.Context, batchID string, opts ...option.RequestOption) (res *BatchFile, err error)\n```\nGet output file\n\n```go\nfunc (r *BatchService) List(ctx context.Context, params BatchListParams, opts ...option.RequestOption) (res *pagination.Page[Batch], err error)\n```\nList Batches\n\n```go\nfunc (r *BatchService) ListAutoPaging(ctx context.Context, params BatchListParams, opts ...option.RequestOption) *pagination.PageAutoPager[Batch]\n```\n\n```go\nfunc (r *BatchService) New(ctx context.Context, params BatchNewParams, opts ...option.RequestOption) (res *Batch, err error)\n```\nCreate Batch\n\n```go\ntype BatchTask struct {\n\tCustomID      string                   `json:\"custom_id\"`\n\tStatus        string                   `json:\"status\"`\n\tStartedAt     time.Time                `json:\"started_at\" format:\"date-time\"`\n\tCompletedAt   time.Time                `json:\"completed_at\" format:\"date-time\"`\n\tOutputSummary string                   `json:\"output_summary\"`\n\tUsage         BatchTaskUsage           `json:\"usage\"`\n\tArtifacts     []BatchTaskArtifactsItem `json:\"artifacts\"`\n\tError         BatchTaskError           `json:\"error\"`\n\tJSON          struct {\n\t\tCustomID      respjson.Field\n\t\tStatus        respjson.Field\n\t\tStartedAt     respjson.Field\n\t\tCompletedAt   respjson.Field\n\t\tOutputSummary respjson.Field\n\t\tUsage         respjson.Field\n\t\tArtifacts     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 BatchTask) RawJSON() string\n```\n\n```go\nfunc (r *BatchTask) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BatchTaskArtifactsItem struct {\n\tFileID      string `json:\"file_id\"`\n\tName        string `json:\"name\"`\n\tSize        int64  `json:\"size\"`\n\tContentType string `json:\"content_type\"`\n\tJSON        struct {\n\t\tFileID      respjson.Field\n\t\tName        respjson.Field\n\t\tSize        respjson.Field\n\t\tContentType 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 BatchTaskArtifactsItem) RawJSON() string\n```\n\n```go\nfunc (r *BatchTaskArtifactsItem) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BatchTaskError struct {\n\tCode    string `json:\"code\"`\n\tMessage string `json:\"message\"`\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 BatchTaskError) RawJSON() string\n```\n\n```go\nfunc (r *BatchTaskError) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BatchTaskListParams struct {\n\t// Filter by task status: `pending`, `running`, `completed`, `failed`, `cancelled` or\n\t// `expired`.\n\tStatus param.Opt[string] `query:\"status,omitzero\" json:\"-\"`\n\t// Exact filter on the caller's task identifier; a single value only, and an unmatched\n\t// value returns an empty list.\n\tCustomID param.Opt[string] `query:\"custom_id,omitzero\" json:\"-\"`\n\t// Page size, maximum 100.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Cursor for the next page; pass `last_id` from the previous response. The cursor must\n\t// belong to the current Batch.\n\tAfterID param.Opt[string] `query:\"after_id,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r BatchTaskListParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype BatchTaskService struct {\n\tOptions []option.RequestOption\n}\n```\nBatchTaskService provides Forward BatchTask operations.\n\n```go\nfunc NewBatchTaskService(opts ...option.RequestOption) BatchTaskService\n```\n\n```go\nfunc (r *BatchTaskService) List(ctx context.Context, batchID string, params BatchTaskListParams, opts ...option.RequestOption) (res *pagination.Page[BatchTask], err error)\n```\nList Batch tasks\n\n```go\nfunc (r *BatchTaskService) ListAutoPaging(ctx context.Context, batchID string, params BatchTaskListParams, opts ...option.RequestOption) *pagination.PageAutoPager[BatchTask]\n```\n\n```go\ntype BatchTaskUsage struct {\n\tTotalCredits float64 `json:\"total_credits\"`\n\tJSON         struct {\n\t\tTotalCredits 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 BatchTaskUsage) RawJSON() string\n```\n\n```go\nfunc (r *BatchTaskUsage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BatchUsage struct {\n\tTotalCredits float64 `json:\"total_credits\"`\n\tJSON         struct {\n\t\tTotalCredits 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 BatchUsage) RawJSON() string\n```\n\n```go\nfunc (r *BatchUsage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Channel struct {\n\t// Channel ID, prefixed with `channel_` in examples.\n\tID string `json:\"id\"`\n\t// Always `channel`.\n\tType string `json:\"type\"`\n\t// Bound Forward Identity ID in `fixed` mode; `null` in `pairing` mode.\n\tIdentityID         string                    `json:\"identity_id\" api:\"nullable\"`\n\tIdentityResolution ChannelIdentityResolution `json:\"identity_resolution\"`\n\t// Bound Forward Template ID in `fixed` mode; `null` in `pairing` mode.\n\tTemplateID string `json:\"template_id\" api:\"nullable\"`\n\t// External channel type.\n\tChannelType string `json:\"channel_type\"`\n\tName        string `json:\"name\"`\n\t// Manual enable/disable switch.\n\tEnabled bool `json:\"enabled\"`\n\t// `unbound`, `bound` or `expired`.\n\tBindingStatus string               `json:\"binding_status\"`\n\tChannelConfig ChannelChannelConfig `json:\"channel_config\"`\n\tCreatedAt     time.Time            `json:\"created_at\" format:\"date-time\"`\n\tUpdatedAt     time.Time            `json:\"updated_at\" format:\"date-time\"`\n\tJSON          struct {\n\t\tID                 respjson.Field\n\t\tType               respjson.Field\n\t\tIdentityID         respjson.Field\n\t\tIdentityResolution respjson.Field\n\t\tTemplateID         respjson.Field\n\t\tChannelType        respjson.Field\n\t\tName               respjson.Field\n\t\tEnabled            respjson.Field\n\t\tBindingStatus      respjson.Field\n\t\tChannelConfig      respjson.Field\n\t\tCreatedAt          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 Channel) RawJSON() string\n```\n\n```go\nfunc (r *Channel) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ChannelChannelConfig struct {\n\tResponseOptions ChannelChannelConfigResponseOptions `json:\"response_options\"`\n\tJSON            struct {\n\t\tResponseOptions 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 ChannelChannelConfig) RawJSON() string\n```\n\n```go\nfunc (r *ChannelChannelConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ChannelChannelConfigResponseOptions struct {\n\tIncludeToolCalls bool `json:\"include_tool_calls\"`\n\tIncludeThinking  bool `json:\"include_thinking\"`\n\tJSON             struct {\n\t\tIncludeToolCalls respjson.Field\n\t\tIncludeThinking  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 ChannelChannelConfigResponseOptions) RawJSON() string\n```\n\n```go\nfunc (r *ChannelChannelConfigResponseOptions) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ChannelIdentityResolution struct {\n\tMode string `json:\"mode\"`\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```\n\n```go\nfunc (r ChannelIdentityResolution) RawJSON() string\n```\n\n```go\nfunc (r *ChannelIdentityResolution) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ChannelListParams struct {\n\t// Filter by `wechat`, `wecom`, `feishu`, `dingtalk` or `teams` (Global).\n\tChannelType param.Opt[string] `query:\"channel_type,omitzero\" json:\"-\"`\n\t// Filter by the manual enable/disable state.\n\tEnabled param.Opt[bool] `query:\"enabled,omitzero\" json:\"-\"`\n\t// Filter by `unbound`, `bound` or `expired`.\n\tBindingStatus param.Opt[string] `query:\"binding_status,omitzero\" json:\"-\"`\n\t// Filter by Forward Identity ID.\n\tIdentityID param.Opt[string] `query:\"identity_id,omitzero\" json:\"-\"`\n\t// Filter by Forward Template ID.\n\tTemplateID param.Opt[string] `query:\"template_id,omitzero\" json:\"-\"`\n\t// Page size, up to 100.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Cursor for the next page.\n\tAfterID param.Opt[string] `query:\"after_id,omitzero\" json:\"-\"`\n\t// Cursor for the previous page.\n\tBeforeID param.Opt[string] `query:\"before_id,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ChannelListParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype ChannelNewParams struct {\n\t// Required in `fixed` mode; omit in `pairing` mode.\n\tIdentityID         param.Opt[string] `json:\"identity_id,omitzero\"`\n\tIdentityResolution map[string]any    `json:\"identity_resolution,omitzero\"`\n\t// Required in `fixed` mode; omit in `pairing` mode.\n\tTemplateID param.Opt[string] `json:\"template_id,omitzero\"`\n\t// Channel type; currently `wechat`, `wecom`, `feishu`, `dingtalk` and `teams` (Global).\n\tChannelType string `json:\"channel_type\" api:\"required\"`\n\t// Channel display name.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// Manual enable/disable switch, defaults to `true`. Pass `false` to create the Channel\n\t// without handling inbound messages yet.\n\tEnabled       param.Opt[bool] `json:\"enabled,omitzero\"`\n\tChannelConfig map[string]any  `json:\"channel_config,omitzero\"`\n\t// Optional idempotency key for requests with side effects.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ChannelNewParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *ChannelNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ChannelPairing struct {\n\tScopeType        string `json:\"scope_type\"`\n\tScopeExternalID  string `json:\"scope_external_id\"`\n\tScopeDisplayName string `json:\"scope_display_name\"`\n\tCreatedAt        string `json:\"created_at\"`\n\tUpdatedAt        string `json:\"updated_at\"`\n\t// Pairing ID, used when removing the pairing.\n\tID string `json:\"id\"`\n\t// Always `channel_pairing`.\n\tType string `json:\"type\"`\n\t// Channel ID.\n\tChannelID string `json:\"channel_id\"`\n\t// Bound Forward Identity ID.\n\tIdentityID string `json:\"identity_id\"`\n\t// Bound Forward Template ID.\n\tTemplateID string `json:\"template_id\"`\n\t// `active` when the pairing succeeded.\n\tStatus string `json:\"status\"`\n\t// Time the pairing completed.\n\tPairedAt string `json:\"paired_at\"`\n\tJSON     struct {\n\t\tScopeType        respjson.Field\n\t\tScopeExternalID  respjson.Field\n\t\tScopeDisplayName respjson.Field\n\t\tCreatedAt        respjson.Field\n\t\tUpdatedAt        respjson.Field\n\t\tID               respjson.Field\n\t\tType             respjson.Field\n\t\tChannelID        respjson.Field\n\t\tIdentityID       respjson.Field\n\t\tTemplateID       respjson.Field\n\t\tStatus           respjson.Field\n\t\tPairedAt         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 ChannelPairing) RawJSON() string\n```\n\n```go\nfunc (r *ChannelPairing) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ChannelPairingListParams struct {\n\tChannelID        param.Opt[string] `query:\"channel_id,omitzero\" json:\"-\"`\n\tStatus           param.Opt[string] `query:\"status,omitzero\" json:\"-\"`\n\tTargetType       param.Opt[string] `query:\"target_type,omitzero\" json:\"-\"`\n\tTargetExternalID param.Opt[string] `query:\"target_external_id,omitzero\" json:\"-\"`\n\tIdentityID       param.Opt[string] `query:\"identity_id,omitzero\" json:\"-\"`\n\tTemplateID       param.Opt[string] `query:\"template_id,omitzero\" json:\"-\"`\n\tLimit            param.Opt[int64]  `query:\"limit,omitzero\" json:\"-\"`\n\tAfterID          param.Opt[string] `query:\"after_id,omitzero\" json:\"-\"`\n\tBeforeID         param.Opt[string] `query:\"before_id,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ChannelPairingListParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype ChannelPairingNewParams struct {\n\t// Pairing code. Supply exactly one of Code or ChannelPairingID.\n\tCode string `json:\"code,omitzero\"`\n\t// Pending pairing ID. Supply exactly one of Code or ChannelPairingID.\n\tChannelPairingID string `json:\"channel_pairing_id,omitzero\"`\n\t// Forward Identity ID to bind.\n\tIdentityID string `json:\"identity_id\" api:\"required\"`\n\t// Forward Template ID to bind.\n\tTemplateID string `json:\"template_id\" api:\"required\"`\n\t// Client-generated unique idempotency key, used to safely retry the same pairing\n\t// request.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ChannelPairingNewParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *ChannelPairingNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ChannelPairingService struct {\n\tOptions []option.RequestOption\n}\n```\nChannelPairingService provides Forward ChannelPairing operations.\n\n```go\nfunc NewChannelPairingService(opts ...option.RequestOption) ChannelPairingService\n```\n\n```go\nfunc (r *ChannelPairingService) Delete(ctx context.Context, pairingID string, opts ...option.RequestOption) (res *DeletedChannelPairing, err error)\n```\nRemove Channel pairing\n\n```go\nfunc (r *ChannelPairingService) Get(ctx context.Context, pairingID string, opts ...option.RequestOption) (res *ChannelPairing, err error)\n```\n\n```go\nfunc (r *ChannelPairingService) List(ctx context.Context, params ChannelPairingListParams, opts ...option.RequestOption) (res *pagination.Page[ChannelPairing], err error)\n```\n\n```go\nfunc (r *ChannelPairingService) ListAutoPaging(ctx context.Context, params ChannelPairingListParams, opts ...option.RequestOption) *pagination.PageAutoPager[ChannelPairing]\n```\n\n```go\nfunc (r *ChannelPairingService) New(ctx context.Context, params ChannelPairingNewParams, opts ...option.RequestOption) (res *ChannelPairing, err error)\n```\nComplete Channel pairing\n\n```go\nfunc (r *ChannelPairingService) Update(ctx context.Context, pairingID string, params ChannelPairingUpdateParams, opts ...option.RequestOption) (res *ChannelPairing, err error)\n```\nUpdate changes an active binding. Supply at least one nonempty field.\n\n```go\ntype ChannelPairingUpdateParams struct {\n\tIdentityID param.Opt[string] `json:\"identity_id,omitzero\"`\n\tTemplateID param.Opt[string] `json:\"template_id,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ChannelPairingUpdateParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *ChannelPairingUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ChannelQRSession struct {\n\t// Opaque QR session key used to poll the status.\n\tSessionKey string `json:\"session_key\"`\n\t// ID of the associated Channel.\n\tChannelID string `json:\"channel_id\"`\n\t// `wechat`, `feishu`, `dingtalk` or `wecom`.\n\tChannelType string `json:\"channel_type\"`\n\t// Initial status, usually `waiting`.\n\tStatus string `json:\"status\"`\n\t// Raw QR code content, usually a third-party authorization URL.\n\tQRCodeContent string `json:\"qr_code_content\"`\n\t// QR code image generated by the server.\n\tQRCodeImageBase64 string `json:\"qr_code_image_base64\"`\n\t// Expiration time.\n\tExpiresAt string `json:\"expires_at\"`\n\t// null|Channel error code on failure.\n\tErrCode string `json:\"err_code\"`\n\t// null|Channel error message on failure.\n\tErrMsg string `json:\"err_msg\"`\n\tJSON   struct {\n\t\tSessionKey        respjson.Field\n\t\tChannelID         respjson.Field\n\t\tChannelType       respjson.Field\n\t\tStatus            respjson.Field\n\t\tQRCodeContent     respjson.Field\n\t\tQRCodeImageBase64 respjson.Field\n\t\tExpiresAt         respjson.Field\n\t\tErrCode           respjson.Field\n\t\tErrMsg            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 ChannelQRSession) RawJSON() string\n```\n\n```go\nfunc (r *ChannelQRSession) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ChannelQRSessionNewParams struct {\n\t// Optional idempotency key for requests with side effects.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ChannelQRSessionNewParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype ChannelQRSessionService struct {\n\tOptions []option.RequestOption\n}\n```\nChannelQRSessionService provides Forward ChannelQRSession operations.\n\n```go\nfunc NewChannelQRSessionService(opts ...option.RequestOption) ChannelQRSessionService\n```\n\n```go\nfunc (r *ChannelQRSessionService) Get(ctx context.Context, sessionKey string, opts ...option.RequestOption) (res *ChannelQRSession, err error)\n```\nGet Channel QR Session\n\n```go\nfunc (r *ChannelQRSessionService) New(ctx context.Context, channelID string, params ChannelQRSessionNewParams, opts ...option.RequestOption) (res *ChannelQRSession, err error)\n```\nCreate Channel QR Session\n\n```go\ntype ChannelService struct {\n\tOptions    []option.RequestOption\n\tQRSessions ChannelQRSessionService\n}\n```\nChannelService provides Forward Channel operations.\n\n```go\nfunc NewChannelService(opts ...option.RequestOption) ChannelService\n```\n\n```go\nfunc (r *ChannelService) Delete(ctx context.Context, channelID string, opts ...option.RequestOption) (res *DeletedChannel, err error)\n```\nDelete Channel\n\n```go\nfunc (r *ChannelService) Get(ctx context.Context, channelID string, opts ...option.RequestOption) (res *Channel, err error)\n```\nGet Channel\n\n```go\nfunc (r *ChannelService) List(ctx context.Context, params ChannelListParams, opts ...option.RequestOption) (res *pagination.Page[Channel], err error)\n```\nList Channels\n\n```go\nfunc (r *ChannelService) ListAutoPaging(ctx context.Context, params ChannelListParams, opts ...option.RequestOption) *pagination.PageAutoPager[Channel]\n```\n\n```go\nfunc (r *ChannelService) New(ctx context.Context, params ChannelNewParams, opts ...option.RequestOption) (res *Channel, err error)\n```\nCreate Channel\n\n```go\nfunc (r *ChannelService) Update(ctx context.Context, channelID string, params ChannelUpdateParams, opts ...option.RequestOption) (res *Channel, err error)\n```\nUpdate Channel\n\n```go\ntype ChannelUpdateParams struct {\n\t// Channel display name.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// New Forward Identity ID in `fixed` mode.\n\tIdentityID param.Opt[string] `json:\"identity_id,omitzero\"`\n\t// New Forward Template ID in `fixed` mode.\n\tTemplateID param.Opt[string] `json:\"template_id,omitzero\"`\n\t// Manual enable/disable switch.\n\tEnabled       param.Opt[bool] `json:\"enabled,omitzero\"`\n\tChannelConfig map[string]any  `json:\"channel_config,omitzero\"`\n\t// Optional idempotency key for requests with side effects.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ChannelUpdateParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *ChannelUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Client struct {\n\tDreams               DreamService\n\tWebhooks             WebhookService\n\tOptions              []option.RequestOption\n\tTemplates            TemplateService\n\tIdentities           IdentityService\n\tSessions             SessionService\n\tDecisions            DecisionService\n\tSchedules            ScheduleService\n\tScheduleRuns         ScheduleRunService\n\tBatches              BatchService\n\tChannels             ChannelService\n\tChannelPairings      ChannelPairingService\n\tEnvironments         EnvironmentService\n\tDrives               DriveService\n\tFiles                FileService\n\tSkills               SkillService\n\tVaults               VaultService\n\tMemoryStores         MemoryStoreService\n\tUsage                UsageService\n\tModels               ModelService\n\tServiceAccountTokens ServiceAccountTokenService\n\tRealtime             RealtimeService\n}\n```\nClient exposes Forward resources. Configure options before sharing a client.\n\n```go\nfunc NewClient(opts ...option.RequestOption) Client\n```\nNewClient uses common authentication defaults and QODER\\_FORWARD\\_BASE\\_URL. Explicit options win.\n\n```go\ntype ContentBlock struct {\n\tType     string      `json:\"type\" api:\"required\"`\n\tText     string      `json:\"text\"`\n\tThinking string      `json:\"thinking\"`\n\tSource   ImageSource `json:\"source\"`\n\tJSON     struct {\n\t\tType        respjson.Field\n\t\tText        respjson.Field\n\t\tThinking    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 ContentBlock) RawJSON() string\n```\n\n```go\nfunc (r *ContentBlock) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ContentBlockParam struct {\n\tType     string            `json:\"type\" api:\"required\"`\n\tText     param.Opt[string] `json:\"text,omitzero\"`\n\tThinking param.Opt[string] `json:\"thinking,omitzero\"`\n\tSource   ImageSourceParam  `json:\"source,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ContentBlockParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *ContentBlockParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Decision struct {\n\tID string `json:\"id\"`\n\t// Null for explicit-state input.\n\tSessionID string `json:\"session_id\" api:\"nullable\"`\n\tSource    string `json:\"source\"`\n\t// \"running\", \"completed\", or \"failed\".\n\tStatus      string             `json:\"status\"`\n\tQuestions   []DecisionQuestion `json:\"questions\"`\n\tAnswers     []DecisionAnswer   `json:\"answers\"`\n\tContext     DecisionContext    `json:\"context\"`\n\tError       DecisionError      `json:\"error\" api:\"nullable\"`\n\tCreatedAt   time.Time          `json:\"created_at\" format:\"date-time\"`\n\tCompletedAt time.Time          `json:\"completed_at\" format:\"date-time\" api:\"nullable\"`\n\tJSON        struct {\n\t\tID, SessionID, Source, Status, Questions, Answers, Context, Error, CreatedAt, CompletedAt respjson.Field\n\t\tExtraFields                                                                               map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nDecision is a stored evaluation. GET and List may also return running or failed records.\n\n```go\nfunc (r Decision) RawJSON() string\n```\n\n```go\nfunc (r *Decision) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DecisionAnswer struct {\n\t// \"choice\" or \"score\".\n\tType string `json:\"type\"`\n\tName string `json:\"name\"`\n\t// A string or boolean for choice answers; absent for scores.\n\tValue any `json:\"value\"`\n\t// Selected numeric level for score answers. Inspect JSON.Score for presence.\n\tScore float64 `json:\"score\"`\n\tJSON  struct {\n\t\tType, Name, Value, Score 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 DecisionAnswer) RawJSON() string\n```\n\n```go\nfunc (r *DecisionAnswer) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DecisionChoice struct {\n\t// The original string or boolean value, including false.\n\tValue       any    `json:\"value\"`\n\tDescription string `json:\"description\"`\n\tJSON        struct {\n\t\tValue, Description 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 DecisionChoice) RawJSON() string\n```\n\n```go\nfunc (r *DecisionChoice) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DecisionChoiceParam struct {\n\t// A nonempty string or boolean. Values must be distinct within a question.\n\tValue       any               `json:\"value\" api:\"required\"`\n\tDescription param.Opt[string] `json:\"description,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r DecisionChoiceParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *DecisionChoiceParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DecisionContext struct {\n\tMode                 string `json:\"mode\"`\n\tAnchorEventID        string `json:\"anchor_event_id\"`\n\tFirstEventID         string `json:\"first_event_id\"`\n\tLastEventID          string `json:\"last_event_id\"`\n\tIncludedSegmentCount int64  `json:\"included_segment_count\"`\n\tIncludedEventCount   int64  `json:\"included_event_count\"`\n\tJSON                 struct {\n\t\tMode, AnchorEventID, FirstEventID, LastEventID, IncludedSegmentCount, IncludedEventCount respjson.Field\n\t\tExtraFields                                                                              map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nDecisionContext describes the input mode and Session events used. Session-only fields may be absent for explicit state or when preparation fails; inspect JSON for presence.\n\n```go\nfunc (r DecisionContext) RawJSON() string\n```\n\n```go\nfunc (r *DecisionContext) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DecisionError struct {\n\tCode    string `json:\"code\"`\n\tMessage string `json:\"message\"`\n\tJSON    struct {\n\t\tCode, Message 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 DecisionError) RawJSON() string\n```\n\n```go\nfunc (r *DecisionError) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DecisionLevel struct {\n\tLabel       string  `json:\"label\"`\n\tScore       float64 `json:\"score\"`\n\tDescription string  `json:\"description\"`\n\tJSON        struct {\n\t\tLabel, Score, Description 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 DecisionLevel) RawJSON() string\n```\n\n```go\nfunc (r *DecisionLevel) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DecisionLevelParam struct {\n\tLabel string `json:\"label\" api:\"required\"`\n\t// A finite numeric score, including zero. The result selects a configured level.\n\tScore       float64           `json:\"score\" api:\"required\"`\n\tDescription param.Opt[string] `json:\"description,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r DecisionLevelParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *DecisionLevelParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DecisionListParams struct {\n\tSessionID param.Opt[string] `query:\"session_id,omitzero\" json:\"-\"`\n\t// Page size from 1 to 100; defaults to 20.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Cursor for the next page. Mutually exclusive with BeforeID.\n\tAfterID  param.Opt[string] `query:\"after_id,omitzero\" json:\"-\"`\n\tBeforeID param.Opt[string] `query:\"before_id,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r DecisionListParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype DecisionNewParams struct {\n\t// An accessible Session ID. Mutually exclusive with State.\n\tSessionID param.Opt[string] `json:\"session_id,omitzero\"`\n\t// A nonempty JSON object to evaluate. Mutually exclusive with SessionID.\n\t// The top-level state.session_context key is reserved for server-built history.\n\tState map[string]any `json:\"state,omitzero\"`\n\t// One to 32 choice or score questions.\n\tQuestions []DecisionQuestionParam `json:\"questions\" api:\"required\"`\n\t// Reusing a key with identical request bytes replays the stored result.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r DecisionNewParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *DecisionNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DecisionQuestion struct {\n\tType         string           `json:\"type\"`\n\tName         string           `json:\"name\"`\n\tInstructions string           `json:\"instructions\"`\n\tChoices      []DecisionChoice `json:\"choices\"`\n\tLevels       []DecisionLevel  `json:\"levels\"`\n\tJSON         struct {\n\t\tType, Name, Instructions, Choices, Levels 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 DecisionQuestion) RawJSON() string\n```\n\n```go\nfunc (r *DecisionQuestion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DecisionQuestionParam struct {\n\t// Either \"choice\" or \"score\".\n\tType string `json:\"type\" api:\"required\"`\n\t// Optional unique, nonempty question name, up to 128 bytes.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// Nonempty instructions for evaluating this question.\n\tInstructions string `json:\"instructions\" api:\"required\"`\n\t// Two to 32 options for a choice question; omit for score questions.\n\tChoices []DecisionChoiceParam `json:\"choices,omitzero\"`\n\t// Two to 32 discrete levels for a score question; omit for choice questions.\n\tLevels []DecisionLevelParam `json:\"levels,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r DecisionQuestionParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *DecisionQuestionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DecisionService struct {\n\tOptions []option.RequestOption\n}\n```\nDecisionService evaluates explicit state or an accessible Session's recent history. The Decision API is in Beta. Its behavior may change in future updates.\n\n```go\nfunc NewDecisionService(opts ...option.RequestOption) DecisionService\n```\n\n```go\nfunc (r *DecisionService) Get(ctx context.Context, decisionID string, opts ...option.RequestOption) (res *Decision, err error)\n```\nGet retrieves a Decision accessible to the current caller.\n\n```go\nfunc (r *DecisionService) List(ctx context.Context, params DecisionListParams, opts ...option.RequestOption) (res *pagination.Page[Decision], err error)\n```\nList retrieves Decisions, optionally restricted to an accessible Session.\n\n```go\nfunc (r *DecisionService) ListAutoPaging(ctx context.Context, params DecisionListParams, opts ...option.RequestOption) *pagination.PageAutoPager[Decision]\n```\n\n```go\nfunc (r *DecisionService) New(ctx context.Context, params DecisionNewParams, opts ...option.RequestOption) (res *Decision, err error)\n```\nNew synchronously evaluates questions and stores the resulting Decision. Provide exactly one of SessionID and State. Session context is selected and truncated by Forward; explicit State and Questions are never truncated.\n\n```go\ntype DeletedChannel struct {\n\t// ID of the deleted Channel.\n\tID string `json:\"id\"`\n\t// Whether the deletion succeeded; always `true` on success.\n\tDeleted bool `json:\"deleted\"`\n\tJSON    struct {\n\t\tID          respjson.Field\n\t\tDeleted     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 DeletedChannel) RawJSON() string\n```\n\n```go\nfunc (r *DeletedChannel) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DeletedChannelPairing struct {\n\t// Pairing ID.\n\tID string `json:\"id\"`\n\t// Whether the pairing was removed; `true` on success.\n\tDeleted bool `json:\"deleted\"`\n\tJSON    struct {\n\t\tID          respjson.Field\n\t\tDeleted     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 DeletedChannelPairing) RawJSON() string\n```\n\n```go\nfunc (r *DeletedChannelPairing) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DeletedIdentity struct {\n\t// ID of the deleted Identity.\n\tID string `json:\"id\"`\n\t// Whether the deletion completed. `true` in a successful response.\n\tDeleted bool `json:\"deleted\"`\n\tJSON    struct {\n\t\tID          respjson.Field\n\t\tDeleted     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 DeletedIdentity) RawJSON() string\n```\n\n```go\nfunc (r *DeletedIdentity) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DeletedMemory struct {\n\t// ID of the deleted Memory.\n\tID string `json:\"id\"`\n\t// Always `memory_deleted`.\n\tType string `json:\"type\"`\n\t// Whether the Memory was deleted.\n\tDeleted bool `json:\"deleted\"`\n\tJSON    struct {\n\t\tID          respjson.Field\n\t\tType        respjson.Field\n\t\tDeleted     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 DeletedMemory) RawJSON() string\n```\n\n```go\nfunc (r *DeletedMemory) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DeletedMemoryStore struct {\n\t// ID of the deleted Memory Store.\n\tID string `json:\"id\"`\n\t// Always `memory_store_deleted`.\n\tType string `json:\"type\"`\n\t// Whether the Memory Store was deleted.\n\tDeleted bool `json:\"deleted\"`\n\tJSON    struct {\n\t\tID          respjson.Field\n\t\tType        respjson.Field\n\t\tDeleted     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 DeletedMemoryStore) RawJSON() string\n```\n\n```go\nfunc (r *DeletedMemoryStore) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DeletedMemoryStoreMount struct {\n\t// ID of the unmounted Memory Store.\n\tID string `json:\"id\"`\n\t// Always `memory_store_binding_deleted`, as distinct from the `memory_store_deleted`\n\t// returned when deleting a Store: this endpoint only removes the mount, and the Store\n\t// itself continues to exist.\n\tType string `json:\"type\"`\n\t// Whether the mount was removed.\n\tDeleted bool `json:\"deleted\"`\n\tJSON    struct {\n\t\tID          respjson.Field\n\t\tType        respjson.Field\n\t\tDeleted     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 DeletedMemoryStoreMount) RawJSON() string\n```\n\n```go\nfunc (r *DeletedMemoryStoreMount) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DeletedSkillVersion struct {\n\t// The deleted version number.\n\tID string `json:\"id\"`\n\t// Always `\"skill_version_deleted\"`\n\tType string `json:\"type\"`\n\t// Always `true`\n\tDeleted bool `json:\"deleted\"`\n\tJSON    struct {\n\t\tID          respjson.Field\n\t\tType        respjson.Field\n\t\tDeleted     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 DeletedSkillVersion) RawJSON() string\n```\n\n```go\nfunc (r *DeletedSkillVersion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Dream struct {\n\tID           string           `json:\"id\"`\n\tType         string           `json:\"type\"`\n\tStatus       string           `json:\"status\"`\n\tInputs       []DreamInput     `json:\"inputs\"`\n\tOutputs      []DreamOutput    `json:\"outputs\"`\n\tModel        DreamModelConfig `json:\"model\"`\n\tInstructions string           `json:\"instructions\"`\n\tUsage        DreamUsage       `json:\"usage\"`\n\tError        DreamError       `json:\"error\"`\n\tCreatedAt    time.Time        `json:\"created_at\"`\n\tEndedAt      time.Time        `json:\"ended_at\"`\n\tArchivedAt   time.Time        `json:\"archived_at\"`\n\tJSON         struct {\n\t\tID           respjson.Field\n\t\tType         respjson.Field\n\t\tStatus       respjson.Field\n\t\tInputs       respjson.Field\n\t\tOutputs      respjson.Field\n\t\tModel        respjson.Field\n\t\tInstructions respjson.Field\n\t\tUsage        respjson.Field\n\t\tError        respjson.Field\n\t\tCreatedAt    respjson.Field\n\t\tEndedAt      respjson.Field\n\t\tArchivedAt   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 Dream) RawJSON() string\n```\n\n```go\nfunc (r *Dream) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DreamError struct {\n\tType    string `json:\"type\"`\n\tCode    string `json:\"code\"`\n\tMessage string `json:\"message\"`\n\tJSON    struct {\n\t\tType        respjson.Field\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 DreamError) RawJSON() string\n```\n\n```go\nfunc (r *DreamError) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DreamInput struct {\n\tType          string   `json:\"type\"`\n\tMemoryStoreID string   `json:\"memory_store_id\"`\n\tIdentityID    string   `json:\"identity_id\"`\n\tTemplateID    string   `json:\"template_id\"`\n\tSessionIDs    []string `json:\"session_ids\"`\n\tJSON          struct {\n\t\tType          respjson.Field\n\t\tMemoryStoreID respjson.Field\n\t\tIdentityID    respjson.Field\n\t\tTemplateID    respjson.Field\n\t\tSessionIDs    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 DreamInput) RawJSON() string\n```\n\n```go\nfunc (r *DreamInput) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DreamInputParam struct {\n\tType          string            `json:\"type\"`\n\tMemoryStoreID param.Opt[string] `json:\"memory_store_id,omitzero\"`\n\tIdentityID    param.Opt[string] `json:\"identity_id,omitzero\"`\n\tTemplateID    param.Opt[string] `json:\"template_id,omitzero\"`\n\tSessionIDs    []string          `json:\"session_ids,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r DreamInputParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *DreamInputParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DreamListParams struct {\n\tLimit           param.Opt[int64]  `query:\"limit,omitzero\" json:\"-\"`\n\tAfterID         param.Opt[string] `query:\"after_id,omitzero\" json:\"-\"`\n\tBeforeID        param.Opt[string] `query:\"before_id,omitzero\" json:\"-\"`\n\tIncludeArchived param.Opt[bool]   `query:\"include_archived,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r DreamListParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype DreamModelConfig struct {\n\tID            string `json:\"id\"`\n\tEffort        string `json:\"effort\"`\n\tContextWindow int64  `json:\"context_window\"`\n\tJSON          struct {\n\t\tID            respjson.Field\n\t\tEffort        respjson.Field\n\t\tContextWindow 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 DreamModelConfig) RawJSON() string\n```\n\n```go\nfunc (r *DreamModelConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DreamModelConfigParam struct {\n\tID            string            `json:\"id\"`\n\tEffort        param.Opt[string] `json:\"effort,omitzero\"`\n\tContextWindow param.Opt[int64]  `json:\"context_window,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r DreamModelConfigParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *DreamModelConfigParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DreamNewParams struct {\n\tInputs       []DreamInputParam        `json:\"inputs,omitzero\"`\n\tModel        DreamNewParamsModelUnion `json:\"model,omitzero\"`\n\tInstructions param.Opt[string]        `json:\"instructions,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r DreamNewParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *DreamNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DreamNewParamsModelUnion struct {\n\tOfString param.Opt[string]      `json:\",omitzero,inline\"`\n\tOfConfig *DreamModelConfigParam `json:\",omitzero,inline\"`\n\t// contains filtered or unexported fields\n}\n```\nDreamNewParamsModelUnion accepts a model ID or tuning object; omit to use auto.\n\n```go\nfunc (r DreamNewParamsModelUnion) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *DreamNewParamsModelUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DreamOutput struct {\n\tType          string   `json:\"type\"`\n\tMemoryStoreID string   `json:\"memory_store_id\"`\n\tFilesTouched  []string `json:\"files_touched\"`\n\tJSON          struct {\n\t\tType          respjson.Field\n\t\tMemoryStoreID respjson.Field\n\t\tFilesTouched  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 DreamOutput) RawJSON() string\n```\n\n```go\nfunc (r *DreamOutput) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DreamService struct{ Options []option.RequestOption }\n```\nDreamService consolidates Forward memory; requires PAT or an admin SAT.\n\n```go\nfunc NewDreamService(opts ...option.RequestOption) DreamService\n```\n\n```go\nfunc (r *DreamService) Archive(ctx context.Context, dreamID string, opts ...option.RequestOption) (res *Dream, err error)\n```\n\n```go\nfunc (r *DreamService) Cancel(ctx context.Context, dreamID string, opts ...option.RequestOption) (res *Dream, err error)\n```\n\n```go\nfunc (r *DreamService) Get(ctx context.Context, dreamID string, opts ...option.RequestOption) (res *Dream, err error)\n```\n\n```go\nfunc (r *DreamService) List(ctx context.Context, params DreamListParams, opts ...option.RequestOption) (res *pagination.Page[Dream], err error)\n```\n\n```go\nfunc (r *DreamService) ListAutoPaging(ctx context.Context, params DreamListParams, opts ...option.RequestOption) *pagination.PageAutoPager[Dream]\n```\n\n```go\nfunc (r *DreamService) New(ctx context.Context, params DreamNewParams, opts ...option.RequestOption) (res *Dream, err error)\n```\n\n```go\ntype DreamUsage struct {\n\tInputTokens              int64 `json:\"input_tokens\"`\n\tOutputTokens             int64 `json:\"output_tokens\"`\n\tCacheCreationInputTokens int64 `json:\"cache_creation_input_tokens\"`\n\tCacheReadInputTokens     int64 `json:\"cache_read_input_tokens\"`\n\tJSON                     struct {\n\t\tInputTokens              respjson.Field\n\t\tOutputTokens             respjson.Field\n\t\tCacheCreationInputTokens respjson.Field\n\t\tCacheReadInputTokens     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 DreamUsage) RawJSON() string\n```\n\n```go\nfunc (r *DreamUsage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DriveClearParams struct {\n\tIdentityID string `query:\"identity_id\" json:\"-\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r DriveClearParams) URLQuery() (url.Values, error)\n```\n\n```go\nfunc (r *DriveClearParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DriveClearResponse struct {\n\tDeletedCount int64 `json:\"deleted_count\"`\n\tJSON         struct {\n\t\tDeletedCount 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 DriveClearResponse) RawJSON() string\n```\n\n```go\nfunc (r *DriveClearResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DriveCreateDownloadURLParams struct {\n\tIdentityID string `query:\"identity_id\" json:\"-\" api:\"required\"`\n\tPath       string `json:\"path\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r DriveCreateDownloadURLParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r DriveCreateDownloadURLParams) URLQuery() (url.Values, error)\n```\n\n```go\nfunc (r *DriveCreateDownloadURLParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DriveCreateUploadURLParams struct {\n\tIdentityID  string            `query:\"identity_id\" json:\"-\" api:\"required\"`\n\tPath        string            `json:\"path\" api:\"required\"`\n\tContentType param.Opt[string] `json:\"content_type,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r DriveCreateUploadURLParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r DriveCreateUploadURLParams) URLQuery() (url.Values, error)\n```\n\n```go\nfunc (r *DriveCreateUploadURLParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DriveDeleteEntryParams struct {\n\tIdentityID string          `query:\"identity_id\" json:\"-\" api:\"required\"`\n\tPath       string          `json:\"path\" api:\"required\"`\n\tRecursive  param.Opt[bool] `json:\"recursive,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r DriveDeleteEntryParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r DriveDeleteEntryParams) URLQuery() (url.Values, error)\n```\n\n```go\nfunc (r *DriveDeleteEntryParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DriveDeleteEntryResponse struct {\n\tDeletedCount int64 `json:\"deleted_count\"`\n\tJSON         struct {\n\t\tDeletedCount 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 DriveDeleteEntryResponse) RawJSON() string\n```\n\n```go\nfunc (r *DriveDeleteEntryResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DriveDownloadURL struct {\n\tURL         string            `json:\"url\"`\n\tMethod      string            `json:\"method\"`\n\tHeaders     map[string]string `json:\"headers\"`\n\tExpiresAt   time.Time         `json:\"expires_at\" format:\"date-time\"`\n\tSize        int64             `json:\"size\"`\n\tETag        string            `json:\"etag\"`\n\tContentType string            `json:\"content_type\"`\n\tJSON        struct {\n\t\tURL         respjson.Field\n\t\tMethod      respjson.Field\n\t\tHeaders     respjson.Field\n\t\tExpiresAt   respjson.Field\n\t\tSize        respjson.Field\n\t\tETag        respjson.Field\n\t\tContentType 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 DriveDownloadURL) RawJSON() string\n```\n\n```go\nfunc (r *DriveDownloadURL) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DriveEntry struct {\n\tPath         string    `json:\"path\"`\n\tName         string    `json:\"name\"`\n\tType         string    `json:\"type\"`\n\tSize         int64     `json:\"size\"`\n\tETag         string    `json:\"etag\"`\n\tLastModified time.Time `json:\"last_modified\" format:\"date-time\"`\n\tJSON         struct {\n\t\tPath         respjson.Field\n\t\tName         respjson.Field\n\t\tType         respjson.Field\n\t\tSize         respjson.Field\n\t\tETag         respjson.Field\n\t\tLastModified respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nDriveEntry represents a file or directory. JSON.Size.Valid() distinguishes a zero-byte file from a directory.\n\n```go\nfunc (r DriveEntry) RawJSON() string\n```\n\n```go\nfunc (r *DriveEntry) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DriveListEntriesParams struct {\n\tIdentityID string            `query:\"identity_id\" json:\"-\" api:\"required\"`\n\tPath       param.Opt[string] `query:\"path,omitzero\" json:\"-\"`\n\tLimit      param.Opt[int64]  `query:\"limit,omitzero\" json:\"-\"`\n\tPageToken  param.Opt[string] `query:\"page_token,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r DriveListEntriesParams) URLQuery() (url.Values, error)\n```\n\n```go\nfunc (r *DriveListEntriesParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DriveListEntriesResponse struct {\n\tEntries       []DriveEntry `json:\"entries\"`\n\tNextPageToken string       `json:\"next_page_token\"`\n\tJSON          struct {\n\t\tEntries       respjson.Field\n\t\tNextPageToken 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 DriveListEntriesResponse) RawJSON() string\n```\n\n```go\nfunc (r *DriveListEntriesResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DriveService struct{ Options []option.RequestOption }\n```\nDriveService manages persistent Identity files. Drive is a Beta API. Every method requires IdentityID, including when using an Identity SAT.\n\n```go\nfunc NewDriveService(opts ...option.RequestOption) DriveService\n```\n\n```go\nfunc (r *DriveService) Clear(ctx context.Context, params DriveClearParams, opts ...option.RequestOption) (res *DriveClearResponse, err error)\n```\nClear clears the selected Identity Drive. Use only with an Identity whose files you intend to delete.\n\n```go\nfunc (r *DriveService) CreateDownloadURL(ctx context.Context, params DriveCreateDownloadURLParams, opts ...option.RequestOption) (res *DriveDownloadURL, err error)\n```\nCreateDownloadURL returns a short-lived GET URL. Use a new Idempotency-Key or omit it to refresh an expired URL.\n\n```go\nfunc (r *DriveService) CreateUploadURL(ctx context.Context, params DriveCreateUploadURLParams, opts ...option.RequestOption) (res *DriveUploadURL, err error)\n```\nCreateUploadURL returns a short-lived PUT URL. Use only its returned headers for the storage request. Replaying an Idempotency-Key does not renew expiry.\n\n```go\nfunc (r *DriveService) DeleteEntry(ctx context.Context, params DriveDeleteEntryParams, opts ...option.RequestOption) (res *DriveDeleteEntryResponse, err error)\n```\nDeleteEntry deletes a file or directory. Recursive must be true for a nonempty directory. Partial failures retain deleted\\_count in the API error raw body.\n\n```go\nfunc (r *DriveService) ListEntries(ctx context.Context, params DriveListEntriesParams, opts ...option.RequestOption) (res *DriveListEntriesResponse, err error)\n```\nListEntries returns one directory page in service order. Pass NextPageToken unchanged as PageToken to continue within the same Identity and directory.\n\n```go\ntype DriveUploadURL struct {\n\tURL       string            `json:\"url\"`\n\tMethod    string            `json:\"method\"`\n\tHeaders   map[string]string `json:\"headers\"`\n\tExpiresAt time.Time         `json:\"expires_at\" format:\"date-time\"`\n\tJSON      struct {\n\t\tURL         respjson.Field\n\t\tMethod      respjson.Field\n\t\tHeaders     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 DriveUploadURL) RawJSON() string\n```\n\n```go\nfunc (r *DriveUploadURL) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EffectiveConfig struct {\n\t// Always `effective_spec`.\n\tType string `json:\"type\"`\n\t// Hash of the compiled Agent section.\n\tAgentEffectiveHash string `json:\"agent_effective_hash\"`\n\t// Hash of the compiled Session section.\n\tSessionEffectiveHash string `json:\"session_effective_hash\"`\n\t// Hash of the full effective configuration.\n\tEffectiveHash string `json:\"effective_hash\"`\n\t// Compiled Agent configuration.\n\tAgent EffectiveConfigAgent `json:\"agent\"`\n\t// Compiled Session defaults.\n\tSession    EffectiveConfigSession `json:\"session\"`\n\tID         string                 `json:\"id\"`\n\tIdentityID string                 `json:\"identity_id\"`\n\tTemplateID string                 `json:\"template_id\"`\n\tJSON       struct {\n\t\tType                 respjson.Field\n\t\tAgentEffectiveHash   respjson.Field\n\t\tSessionEffectiveHash respjson.Field\n\t\tEffectiveHash        respjson.Field\n\t\tAgent                respjson.Field\n\t\tSession              respjson.Field\n\t\tID                   respjson.Field\n\t\tIdentityID           respjson.Field\n\t\tTemplateID           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 EffectiveConfig) RawJSON() string\n```\n\n```go\nfunc (r *EffectiveConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EffectiveConfigAgent struct {\n\tModel      ModelConfig                     `json:\"model\"`\n\tSystem     string                          `json:\"system\"`\n\tTools      []EffectiveConfigAgentToolsItem `json:\"tools\"`\n\tMCPServers []map[string]any                `json:\"mcp_servers\"`\n\tSkills     []map[string]any                `json:\"skills\"`\n\tJSON       struct {\n\t\tModel       respjson.Field\n\t\tSystem      respjson.Field\n\t\tTools       respjson.Field\n\t\tMCPServers  respjson.Field\n\t\tSkills      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 EffectiveConfigAgent) RawJSON() string\n```\n\n```go\nfunc (r *EffectiveConfigAgent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EffectiveConfigAgentToolsItem struct {\n\tType    string                                     `json:\"type\"`\n\tConfigs []EffectiveConfigAgentToolsItemConfigsItem `json:\"configs\"`\n\tJSON    struct {\n\t\tType        respjson.Field\n\t\tConfigs     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 EffectiveConfigAgentToolsItem) RawJSON() string\n```\n\n```go\nfunc (r *EffectiveConfigAgentToolsItem) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EffectiveConfigAgentToolsItemConfigsItem struct {\n\tName    string `json:\"name\"`\n\tEnabled bool   `json:\"enabled\"`\n\tJSON    struct {\n\t\tName        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```\n\n```go\nfunc (r EffectiveConfigAgentToolsItemConfigsItem) RawJSON() string\n```\n\n```go\nfunc (r *EffectiveConfigAgentToolsItemConfigsItem) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EffectiveConfigSession struct {\n\tEnvironmentID        string                                `json:\"environment_id\"`\n\tEnvironmentVariables map[string]string                     `json:\"environment_variables\"`\n\tVaultIDs             []string                              `json:\"vault_ids\"`\n\tResources            []EffectiveConfigSessionResourcesItem `json:\"resources\"`\n\tJSON                 struct {\n\t\tEnvironmentID        respjson.Field\n\t\tEnvironmentVariables respjson.Field\n\t\tVaultIDs             respjson.Field\n\t\tResources            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 EffectiveConfigSession) RawJSON() string\n```\n\n```go\nfunc (r *EffectiveConfigSession) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EffectiveConfigSessionResourcesItem struct {\n\tType      string `json:\"type\"`\n\tFileID    string `json:\"file_id\"`\n\tURL       string `json:\"url\"`\n\tMountPath string `json:\"mount_path\"`\n\tJSON      struct {\n\t\tType        respjson.Field\n\t\tFileID      respjson.Field\n\t\tURL         respjson.Field\n\t\tMountPath   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 EffectiveConfigSessionResourcesItem) RawJSON() string\n```\n\n```go\nfunc (r *EffectiveConfigSessionResourcesItem) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Environment struct {\n\tIconURL     string                 `json:\"icon_url\" api:\"nullable\"`\n\tBindingInfo EnvironmentBindingInfo `json:\"binding_info\"`\n\tID          string                 `json:\"id\"`\n\tType        string                 `json:\"type\"`\n\tName        string                 `json:\"name\"`\n\tDescription string                 `json:\"description\"`\n\tConfig      EnvironmentConfig      `json:\"config\"`\n\tMetadata    map[string]any         `json:\"metadata\"`\n\tCreatedAt   time.Time              `json:\"created_at\" format:\"date-time\"`\n\tUpdatedAt   time.Time              `json:\"updated_at\" format:\"date-time\"`\n\tIdentityID  string                 `json:\"identity_id\" api:\"nullable\"`\n\tArchivedAt  time.Time              `json:\"archived_at\" api:\"nullable\" format:\"date-time\"`\n\tJSON        struct {\n\t\tIconURL     respjson.Field\n\t\tBindingInfo respjson.Field\n\t\tID          respjson.Field\n\t\tType        respjson.Field\n\t\tName        respjson.Field\n\t\tDescription respjson.Field\n\t\tConfig      respjson.Field\n\t\tMetadata    respjson.Field\n\t\tCreatedAt   respjson.Field\n\t\tUpdatedAt   respjson.Field\n\t\tIdentityID  respjson.Field\n\t\tArchivedAt  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 Environment) RawJSON() string\n```\n\n```go\nfunc (r *Environment) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EnvironmentBindingInfo struct {\n\tAgentTemplateCount int64 `json:\"agent_template_count\"`\n\tJSON               struct {\n\t\tAgentTemplateCount 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 EnvironmentBindingInfo) RawJSON() string\n```\n\n```go\nfunc (r *EnvironmentBindingInfo) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EnvironmentConfig struct {\n\t// Runs on sandbox start/resume; self-hosted execution depends on the worker.\n\tStartupScript string                    `json:\"startup_script\"`\n\tSetupScript   string                    `json:\"setup_script\"`\n\tType          string                    `json:\"type\"`\n\tPackages      EnvironmentConfigPackages `json:\"packages\"`\n\tJSON          struct {\n\t\tStartupScript respjson.Field\n\t\tSetupScript   respjson.Field\n\t\tType          respjson.Field\n\t\tPackages      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 EnvironmentConfig) RawJSON() string\n```\n\n```go\nfunc (r *EnvironmentConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EnvironmentConfigPackages struct {\n\tType  string   `json:\"type\"`\n\tApt   []string `json:\"apt\"`\n\tCargo []string `json:\"cargo\"`\n\tGem   []string `json:\"gem\"`\n\tGo    []string `json:\"go\"`\n\tNpm   []string `json:\"npm\"`\n\tPip   []string `json:\"pip\"`\n\tJSON  struct {\n\t\tType        respjson.Field\n\t\tApt         respjson.Field\n\t\tCargo       respjson.Field\n\t\tGem         respjson.Field\n\t\tGo          respjson.Field\n\t\tNpm         respjson.Field\n\t\tPip         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 EnvironmentConfigPackages) RawJSON() string\n```\n\n```go\nfunc (r *EnvironmentConfigPackages) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EnvironmentListParams struct {\n\t// Select identity ownership with a PAT. Omit when using a SAT.\n\tIdentityID param.Opt[string] `query:\"identity_id,omitzero\" json:\"-\"`\n\t// Page size, maximum 100.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Pagination cursor (recommended); take the value from `next_page` in the previous\n\t// response. Mutually exclusive with `after_id` and `before_id`.\n\tPage param.Opt[string] `query:\"page,omitzero\" json:\"-\"`\n\t// Cursor for paging forward; mutually exclusive with `page` and `before_id`.\n\tAfterID param.Opt[string] `query:\"after_id,omitzero\" json:\"-\"`\n\t// Cursor for paging backward; mutually exclusive with `page` and `after_id`.\n\tBeforeID param.Opt[string] `query:\"before_id,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r EnvironmentListParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype EnvironmentNewParams struct {\n\t// Select identity ownership with a PAT. Omit when using a SAT.\n\tIdentityID param.Opt[string] `query:\"identity_id,omitzero\" json:\"-\"`\n\t// Environment name; must not be empty after trimming surrounding whitespace.\n\tName string `json:\"name\" api:\"required\"`\n\t// Description.\n\tDescription param.Opt[string] `json:\"description,omitzero\"`\n\t// Environment runtime configuration; defaults to `{\"type\":\"cloud\"}` when omitted.\n\t// When passed explicitly it must not be `null` or an empty object. See the schemas\n\t// for the available fields.\n\tConfig map[string]any `json:\"config,omitzero\"`\n\t// [Environment metadata](./schemas.md#environment-metadata); defaults to `{}` when\n\t// omitted and must not be `null` when passed explicitly.\n\tMetadata map[string]any `json:\"metadata,omitzero\"`\n\t// Recommended on create requests. The same key with the same request is safe to\n\t// retry.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r EnvironmentNewParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r EnvironmentNewParams) URLQuery() (url.Values, error)\n```\n\n```go\nfunc (r *EnvironmentNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EnvironmentSearchParams struct {\n\t// Exact string metadata filters combined with AND (at most 16 entries).\n\tMetadata map[string]string `json:\"metadata,omitzero\"`\n\t// Page size; default 20, maximum 100.\n\tLimit param.Opt[int64] `json:\"limit,omitzero\"`\n\t// Opaque next_page cursor returned by the previous search response.\n\tPage param.Opt[string] `json:\"page,omitzero\"`\n\t// Case-insensitive name substring filter.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// Include archived resources; defaults to false.\n\tIncludeArchived param.Opt[bool] `json:\"include_archived,omitzero\"`\n\t// Inclusive creation-time bound (RFC 3339).\n\tCreatedAtGte param.Opt[time.Time] `json:\"created_at[gte],omitzero\" format:\"date-time\"`\n\t// Inclusive creation-time bound (RFC 3339).\n\tCreatedAtLte param.Opt[time.Time] `json:\"created_at[lte],omitzero\" format:\"date-time\"`\n\t// Select Identity ownership with a PAT; omit with any SAT. Sent in the query only.\n\tIdentityID param.Opt[string] `query:\"identity_id,omitzero\" json:\"-\"`\n\t// Additional beta features; search-2026-08-31 is always included.\n\tBetas []string `header:\"x-qoder-beta,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\nEnvironmentSearchParams contains JSON body filters for Search.\n\n```go\nfunc (r EnvironmentSearchParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r EnvironmentSearchParams) URLQuery() (url.Values, error)\n```\n\n```go\nfunc (r *EnvironmentSearchParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EnvironmentService struct {\n\tOptions []option.RequestOption\n}\n```\nEnvironmentService provides Forward Environment operations.\n\n```go\nfunc NewEnvironmentService(opts ...option.RequestOption) EnvironmentService\n```\n\n```go\nfunc (r *EnvironmentService) Archive(ctx context.Context, id string, opts ...option.RequestOption) (res *Environment, err error)\n```\nArchive an environment retained by historical sessions or tool calls.\n\n```go\nfunc (r *EnvironmentService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)\n```\nDelete Environment\n\n```go\nfunc (r *EnvironmentService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Environment, err error)\n```\nGet Environment\n\n```go\nfunc (r *EnvironmentService) List(ctx context.Context, params EnvironmentListParams, opts ...option.RequestOption) (res *pagination.PageCursor[Environment], err error)\n```\nList Environments\n\n```go\nfunc (r *EnvironmentService) ListAutoPaging(ctx context.Context, params EnvironmentListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[Environment]\n```\n\n```go\nfunc (r *EnvironmentService) New(ctx context.Context, params EnvironmentNewParams, opts ...option.RequestOption) (res *Environment, err error)\n```\nCreate Environment\n\n```go\nfunc (r *EnvironmentService) Search(ctx context.Context, params EnvironmentSearchParams, opts ...option.RequestOption) (*pagination.PageCursor[Environment], error)\n```\nSearch environments by metadata and resource filters. Adds the required search Beta header.\n\n```go\nfunc (r *EnvironmentService) SearchAutoPaging(ctx context.Context, params EnvironmentSearchParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[Environment]\n```\nSearchAutoPaging iterates all matching environments using opaque body cursors.\n\n```go\nfunc (r *EnvironmentService) Update(ctx context.Context, id string, params EnvironmentUpdateParams, opts ...option.RequestOption) (res *Environment, err error)\n```\nUpdate Environment\n\n```go\ntype EnvironmentUpdateParams struct {\n\t// Select identity ownership with a PAT. Omit when using a SAT.\n\tIdentityID param.Opt[string] `query:\"identity_id,omitzero\" json:\"-\"`\n\t// New name.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// New description.\n\tDescription param.Opt[string] `json:\"description,omitzero\"`\n\t// New configuration; must not be `null` when passed, an explicit `null` returns 400.\n\t// See the schemas for the available fields.\n\tConfig map[string]any `json:\"config,omitzero\"`\n\t// [Environment metadata](./schemas.md#environment-metadata) to merge; must not be\n\t// `null` when passed, an explicit `null` returns 400.\n\tMetadata map[string]any `json:\"metadata,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r EnvironmentUpdateParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r EnvironmentUpdateParams) URLQuery() (url.Values, error)\n```\n\n```go\nfunc (r *EnvironmentUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EnvironmentVariableOverride struct {\n\tOp    string `json:\"op\" api:\"required\"`\n\tValue string `json:\"value\"`\n\tJSON  struct {\n\t\tOp          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 EnvironmentVariableOverride) RawJSON() string\n```\n\n```go\nfunc (r *EnvironmentVariableOverride) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EnvironmentVariableOverrideParam struct {\n\tOp    string            `json:\"op\" api:\"required\"`\n\tValue param.Opt[string] `json:\"value,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r EnvironmentVariableOverrideParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *EnvironmentVariableOverrideParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EnvironmentVariableUpdateParam struct {\n\tType        string            `json:\"type\" api:\"required\"`\n\tSecretValue param.Opt[string] `json:\"secret_value,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r EnvironmentVariableUpdateParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *EnvironmentVariableUpdateParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EnvironmentVariablesUnionParam struct {\n\tOfMap    map[string]any    `json:\",omitzero,inline\"`\n\tOfString param.Opt[string] `json:\",omitzero,inline\"`\n\t// contains filtered or unexported fields\n}\n```\nEnvironmentVariablesUnionParam accepts an environment map or the legacy string form. Map values may be nil to express an explicit null during updates.\n\n```go\nfunc (r EnvironmentVariablesUnionParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *EnvironmentVariablesUnionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Error = convention.Error\n```\n\n```go\ntype EventContentUnionParam struct {\n\tOfBlocks []ContentBlockParam `json:\",omitzero,inline\"`\n\tOfString param.Opt[string]   `json:\",omitzero,inline\"`\n\tOfObject map[string]any      `json:\",omitzero,inline\"`\n\t// contains filtered or unexported fields\n}\n```\nEventContentUnionParam represents message blocks or a tool result payload.\n\n```go\nfunc (r EventContentUnionParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *EventContentUnionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype FileListParams struct {\n\t// Select identity ownership with a PAT. Omit when using a SAT.\n\tIdentityID param.Opt[string] `query:\"identity_id,omitzero\" json:\"-\"`\n\t// Page size, maximum 100.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Pagination cursor (recommended), taken from `next_page` in the previous response;\n\t// mutually exclusive with `after_id` and `before_id`.\n\tPage param.Opt[string] `query:\"page,omitzero\" json:\"-\"`\n\t// Cursor for the next page; mutually exclusive with `page` and `before_id`.\n\tAfterID param.Opt[string] `query:\"after_id,omitzero\" json:\"-\"`\n\t// Cursor for the previous page; mutually exclusive with `page` and `after_id`.\n\tBeforeID param.Opt[string] `query:\"before_id,omitzero\" json:\"-\"`\n\t// Search by filename.\n\tName param.Opt[string] `query:\"name,omitzero\" json:\"-\"`\n\t// Filter by resource scope ID, commonly used to look up Session resource files. Do\n\t// not combine it with `before_id` or `after_id`; cursor parameters currently have no\n\t// effect in this filter mode.\n\tScopeID param.Opt[string] `query:\"scope_id,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r FileListParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype FileMetadata struct {\n\t// File ID.\n\tID string `json:\"id\"`\n\t// Always `file`.\n\tType string `json:\"type\"`\n\t// Filename.\n\tFilename string `json:\"filename\"`\n\t// File size in bytes.\n\tSizeBytes int64 `json:\"size_bytes\"`\n\t// MIME type.\n\tMIMEType string `json:\"mime_type\"`\n\t// Creation time in RFC 3339 format.\n\tCreatedAt time.Time `json:\"created_at\" format:\"date-time\"`\n\t// Last update time in RFC 3339 format.\n\tUpdatedAt time.Time `json:\"updated_at\" format:\"date-time\"`\n\t// Whether the file can be downloaded.\n\tDownloadable bool `json:\"downloadable\"`\n\t// Resource scope the file belongs to, such as a Session.\n\tScope map[string]any `json:\"scope\" api:\"nullable\"`\n\t// File metadata.\n\tMetadata map[string]any `json:\"metadata\"`\n\t// Owning Forward Identity.\n\tIdentityID string `json:\"identity_id\" api:\"nullable\"`\n\tJSON       struct {\n\t\tID           respjson.Field\n\t\tType         respjson.Field\n\t\tFilename     respjson.Field\n\t\tSizeBytes    respjson.Field\n\t\tMIMEType     respjson.Field\n\t\tCreatedAt    respjson.Field\n\t\tUpdatedAt    respjson.Field\n\t\tDownloadable respjson.Field\n\t\tScope        respjson.Field\n\t\tMetadata     respjson.Field\n\t\tIdentityID   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 FileMetadata) RawJSON() string\n```\n\n```go\nfunc (r *FileMetadata) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype FileSearchParams struct {\n\t// Exact string metadata filters combined with AND (at most 16 entries).\n\tMetadata map[string]string `json:\"metadata,omitzero\"`\n\t// Page size; default 20, maximum 100.\n\tLimit param.Opt[int64] `json:\"limit,omitzero\"`\n\t// Opaque next_page cursor returned by the previous search response.\n\tPage param.Opt[string] `json:\"page,omitzero\"`\n\t// Case-insensitive name substring filter.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// Resource scope ID, currently a Session ID.\n\tScopeID param.Opt[string] `json:\"scope_id,omitzero\"`\n\t// Select Identity ownership with a PAT; omit with any SAT. Sent in the query only.\n\tIdentityID param.Opt[string] `query:\"identity_id,omitzero\" json:\"-\"`\n\t// Additional beta features; search-2026-08-31 is always included.\n\tBetas []string `header:\"x-qoder-beta,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\nFileSearchParams contains JSON body filters for Search.\n\n```go\nfunc (r FileSearchParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r FileSearchParams) URLQuery() (url.Values, error)\n```\n\n```go\nfunc (r *FileSearchParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype FileService struct {\n\tOptions []option.RequestOption\n}\n```\nFileService provides Forward File operations.\n\n```go\nfunc NewFileService(opts ...option.RequestOption) FileService\n```\n\n```go\nfunc (r *FileService) Delete(ctx context.Context, fileID string, opts ...option.RequestOption) (err error)\n```\nDelete File\n\n```go\nfunc (r *FileService) Download(ctx context.Context, fileID string, opts ...option.RequestOption) (res *http.Response, err error)\n```\nDownload File\n\n```go\nfunc (r *FileService) GetMetadata(ctx context.Context, fileID string, opts ...option.RequestOption) (res *FileMetadata, err error)\n```\nGet File\n\n```go\nfunc (r *FileService) List(ctx context.Context, params FileListParams, opts ...option.RequestOption) (res *pagination.PageCursor[FileMetadata], err error)\n```\nList Files\n\n```go\nfunc (r *FileService) ListAutoPaging(ctx context.Context, params FileListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[FileMetadata]\n```\n\n```go\nfunc (r *FileService) Search(ctx context.Context, params FileSearchParams, opts ...option.RequestOption) (*pagination.PageCursor[FileMetadata], error)\n```\nSearch files by metadata and resource filters. Adds the required search Beta header.\n\n```go\nfunc (r *FileService) SearchAutoPaging(ctx context.Context, params FileSearchParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[FileMetadata]\n```\nSearchAutoPaging iterates all matching files using opaque body cursors.\n\n```go\nfunc (r *FileService) Upload(ctx context.Context, params FileUploadParams, opts ...option.RequestOption) (res *FileMetadata, err error)\n```\nUpload File\n\n```go\ntype FileUploadParams struct {\n\t// Select identity ownership with a PAT. Omit when using a SAT.\n\tIdentityID param.Opt[string] `query:\"identity_id,omitzero\" json:\"-\"`\n\t// Content of the file to upload. For accepted types see\n\t// [Supported upload file types](./schemas.md).\n\tFile io.Reader `json:\"file\" api:\"required\" format:\"binary\"`\n\t// Display name for the file; the multipart filename is used when omitted. After\n\t// normalization the length must be 1-255 bytes.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// Purpose of the file, defaults to `user_upload`; must be `session_resource` when the\n\t// file is used as Batch input.\n\tPurpose param.Opt[string] `json:\"purpose,omitzero\"`\n\t// Metadata object. `created_by` is reserved and must not be sent (sending it returns\n\t// 400).\n\tMetadata map[string]any `json:\"metadata,omitzero\" api:\"metadata\"`\n\t// Optional idempotency key for the create request. When set, the same key may only be\n\t// reused for an identical request; when omitted no local idempotent replay protection\n\t// is provided.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r FileUploadParams) MarshalMultipart() ([]byte, string, error)\n```\n\n```go\nfunc (r FileUploadParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype GitHubRepository struct {\n\tURL       string `json:\"url\"`\n\tMountPath string `json:\"mount_path\"`\n\tEnabled   bool   `json:\"enabled\"`\n\tJSON      struct {\n\t\tURL         respjson.Field\n\t\tMountPath   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```\n\n```go\nfunc (r GitHubRepository) RawJSON() string\n```\n\n```go\nfunc (r *GitHubRepository) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype GitHubRepositoryParam struct {\n\tURL                param.Opt[string] `json:\"url,omitzero\"`\n\tMountPath          param.Opt[string] `json:\"mount_path,omitzero\"`\n\tEnabled            param.Opt[bool]   `json:\"enabled,omitzero\"`\n\tAuthorizationToken param.Opt[string] `json:\"authorization_token,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r GitHubRepositoryParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *GitHubRepositoryParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Identity struct {\n\tAutoMemoryStore bool `json:\"auto_memory_store\"`\n\t// Forward Identity ID; the `idn_` prefix is recommended.\n\tID string `json:\"id\"`\n\t// End-user ID in the integrator's system.\n\tExternalID string `json:\"external_id\"`\n\t// Identity display name.\n\tName string `json:\"name\"`\n\t// Identity type. A regular Identity returns `normal`.\n\tIdentityType string `json:\"identity_type\"`\n\t// Whether the Identity may continue to be used.\n\tEnabled bool `json:\"enabled\"`\n\t// Business metadata.\n\tMetadata map[string]any `json:\"metadata\"`\n\t// Creation time, in RFC 3339 format.\n\tCreatedAt time.Time `json:\"created_at\" format:\"date-time\"`\n\t// Last update time, in RFC 3339 format.\n\tUpdatedAt time.Time `json:\"updated_at\" format:\"date-time\"`\n\tJSON      struct {\n\t\tAutoMemoryStore respjson.Field\n\t\tID              respjson.Field\n\t\tExternalID      respjson.Field\n\t\tName            respjson.Field\n\t\tIdentityType    respjson.Field\n\t\tEnabled         respjson.Field\n\t\tMetadata        respjson.Field\n\t\tCreatedAt       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 Identity) RawJSON() string\n```\n\n```go\nfunc (r *Identity) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype IdentityClearParams struct {\n\t// Reason for clearing; recorded only to capture the caller's intent.\n\tReason param.Opt[string] `json:\"reason,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r IdentityClearParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *IdentityClearParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype IdentityClearResponse struct {\n\t// ID of the cleared Identity.\n\tIdentityID string `json:\"identity_id\"`\n\t// Clear status; `completed` on success.\n\tStatus string `json:\"status\"`\n\t// Time the Forward-side cleanup completed, in RFC 3339 format.\n\tCompletedAt time.Time                    `json:\"completed_at\" format:\"date-time\"`\n\tSummary     IdentityClearResponseSummary `json:\"summary\"`\n\tJSON        struct {\n\t\tIdentityID  respjson.Field\n\t\tStatus      respjson.Field\n\t\tCompletedAt respjson.Field\n\t\tSummary     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 IdentityClearResponse) RawJSON() string\n```\n\n```go\nfunc (r *IdentityClearResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype IdentityClearResponseSummary struct {\n\tIdentityConfigsArchived        int64 `json:\"identity_configs_archived\"`\n\tResourceBindingsArchived       int64 `json:\"resource_bindings_archived\"`\n\tIdentityOwnedResourcesArchived int64 `json:\"identity_owned_resources_archived\"`\n\tSchedulesArchived              int64 `json:\"schedules_archived\"`\n\tScheduleRunsSkipped            int64 `json:\"schedule_runs_skipped\"`\n\tSessionsArchived               int64 `json:\"sessions_archived\"`\n\tJSON                           struct {\n\t\tIdentityConfigsArchived        respjson.Field\n\t\tResourceBindingsArchived       respjson.Field\n\t\tIdentityOwnedResourcesArchived respjson.Field\n\t\tSchedulesArchived              respjson.Field\n\t\tScheduleRunsSkipped            respjson.Field\n\t\tSessionsArchived               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 IdentityClearResponseSummary) RawJSON() string\n```\n\n```go\nfunc (r *IdentityClearResponseSummary) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype IdentityConfig struct {\n\t// Always `config`.\n\tType string `json:\"type\"`\n\tID   string `json:\"id\"`\n\t// Forward Identity ID.\n\tIdentityID string `json:\"identity_id\"`\n\t// Forward Template ID.\n\tTemplateID string `json:\"template_id\"`\n\tName       string `json:\"name\"`\n\tStatus     string `json:\"status\"`\n\t// Hash of the compiled Effective Config.\n\tEffectiveHash  string             `json:\"effective_hash\"`\n\tCreatedAt      time.Time          `json:\"created_at\" format:\"date-time\"`\n\tUpdatedAt      time.Time          `json:\"updated_at\" format:\"date-time\"`\n\tIdentityConfig IdentityConfigSpec `json:\"identity_config\"`\n\t// Business metadata.\n\tMetadata map[string]any `json:\"metadata\"`\n\tJSON     struct {\n\t\tType           respjson.Field\n\t\tID             respjson.Field\n\t\tIdentityID     respjson.Field\n\t\tTemplateID     respjson.Field\n\t\tName           respjson.Field\n\t\tStatus         respjson.Field\n\t\tEffectiveHash  respjson.Field\n\t\tCreatedAt      respjson.Field\n\t\tUpdatedAt      respjson.Field\n\t\tIdentityConfig 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```\n\n```go\nfunc (r IdentityConfig) RawJSON() string\n```\n\n```go\nfunc (r *IdentityConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype IdentityConfigListParams struct {\n\t// Filter by Forward Template ID.\n\tTemplateID param.Opt[string] `query:\"template_id,omitzero\" json:\"-\"`\n\t// Filter by `active` or `archived`.\n\tStatus param.Opt[string] `query:\"status,omitzero\" json:\"-\"`\n\t// Page size, maximum 100.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Cursor for the next page, taken from `last_id` in the previous response.\n\tAfterID param.Opt[string] `query:\"after_id,omitzero\" json:\"-\"`\n\t// Cursor for the previous page, taken from `first_id` in the previous response.\n\tBeforeID param.Opt[string] `query:\"before_id,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r IdentityConfigListParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype IdentityConfigService struct {\n\tOptions []option.RequestOption\n}\n```\nIdentityConfigService provides Forward IdentityConfig operations.\n\n```go\nfunc NewIdentityConfigService(opts ...option.RequestOption) IdentityConfigService\n```\n\n```go\nfunc (r *IdentityConfigService) Get(ctx context.Context, identityID string, templateID string, opts ...option.RequestOption) (res *IdentityConfig, err error)\n```\nGet Identity Config\n\n```go\nfunc (r *IdentityConfigService) GetEffective(ctx context.Context, identityID string, templateID string, opts ...option.RequestOption) (res *EffectiveConfig, err error)\n```\nGet Effective Config\n\n```go\nfunc (r *IdentityConfigService) List(ctx context.Context, identityID string, params IdentityConfigListParams, opts ...option.RequestOption) (res *pagination.Page[IdentityConfig], err error)\n```\nList Identity Configs\n\n```go\nfunc (r *IdentityConfigService) ListAutoPaging(ctx context.Context, identityID string, params IdentityConfigListParams, opts ...option.RequestOption) *pagination.PageAutoPager[IdentityConfig]\n```\n\n```go\nfunc (r *IdentityConfigService) Upsert(ctx context.Context, identityID string, templateID string, params IdentityConfigUpsertParams, opts ...option.RequestOption) (res *IdentityConfig, err error)\n```\nCreate or update Identity Config\n\n```go\ntype IdentityConfigSpec struct {\n\tManagedToolConfig    map[string]*ManagedCapabilityOverride  `json:\"managed_tool_config\"`\n\tSystem               SystemOverride                         `json:\"system\"`\n\tModel                ModelConfig                            `json:\"model\"`\n\tTools                IdentityToolsUnion                     `json:\"tools\"`\n\tMCPServers           map[string]MCPServerOverride           `json:\"mcp_servers\"`\n\tSkills               map[string]SkillOverride               `json:\"skills\"`\n\tToolsets             map[string]any                         `json:\"toolsets\"`\n\tAgentMetadata        map[string]any                         `json:\"agent_metadata\"`\n\tVaults               map[string]ResourceBinding             `json:\"vaults\"`\n\tFiles                map[string]ResourceBinding             `json:\"files\"`\n\tGitHubRepositories   map[string]GitHubRepository            `json:\"github_repositories\"`\n\tEnvironmentVariables map[string]EnvironmentVariableOverride `json:\"environment_variables\"`\n\tJSON                 struct {\n\t\tManagedToolConfig    respjson.Field\n\t\tSystem               respjson.Field\n\t\tModel                respjson.Field\n\t\tTools                respjson.Field\n\t\tMCPServers           respjson.Field\n\t\tSkills               respjson.Field\n\t\tToolsets             respjson.Field\n\t\tAgentMetadata        respjson.Field\n\t\tVaults               respjson.Field\n\t\tFiles                respjson.Field\n\t\tGitHubRepositories   respjson.Field\n\t\tEnvironmentVariables 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 IdentityConfigSpec) RawJSON() string\n```\n\n```go\nfunc (r *IdentityConfigSpec) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype IdentityConfigSpecParam struct {\n\tManagedToolConfig    map[string]ManagedCapabilityOverrideParam   `json:\"managed_tool_config,omitzero\"`\n\tSystem               SystemOverrideParam                         `json:\"system,omitzero\"`\n\tModel                ModelConfigUnionParam                       `json:\"model,omitzero\"`\n\tTools                IdentityToolsUnionParam                     `json:\"tools,omitzero\"`\n\tMCPServers           map[string]MCPServerOverrideParam           `json:\"mcp_servers,omitzero\"`\n\tSkills               map[string]SkillOverrideParam               `json:\"skills,omitzero\"`\n\tToolsets             map[string]any                              `json:\"toolsets,omitzero\"`\n\tAgentMetadata        map[string]any                              `json:\"agent_metadata,omitzero\"`\n\tVaults               map[string]ResourceBindingParam             `json:\"vaults,omitzero\"`\n\tFiles                map[string]ResourceBindingParam             `json:\"files,omitzero\"`\n\tGitHubRepositories   map[string]GitHubRepositoryParam            `json:\"github_repositories,omitzero\"`\n\tEnvironmentVariables map[string]EnvironmentVariableOverrideParam `json:\"environment_variables,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r IdentityConfigSpecParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *IdentityConfigSpecParam) UnmarshalAPIJSON(data []byte) error\n```\n\n```go\nfunc (r *IdentityConfigSpecParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype IdentityConfigUpsertParams struct {\n\t// Display name for the Config.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// User-level configuration overrides.\n\tIdentityConfig IdentityConfigSpecParam `json:\"identity_config\" api:\"required\"`\n\t// Business metadata; when sent it replaces the existing metadata entirely.\n\tMetadata map[string]any `json:\"metadata,omitzero\"`\n\t// Optional idempotency key for requests with side effects.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r IdentityConfigUpsertParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *IdentityConfigUpsertParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype IdentityListParams struct {\n\t// Filter by the integrator's end-user ID.\n\tExternalID param.Opt[string] `query:\"external_id,omitzero\" json:\"-\"`\n\t// Filter by multiple Identity IDs; accepts a comma-separated list or repeated\n\t// query parameters, up to 100 after deduplication.\n\tIdentityIDs []string `query:\"identity_ids,omitzero\" json:\"-\"`\n\t// Matches the Identity ID, name or external ID.\n\tSearch param.Opt[string] `query:\"search,omitzero\" json:\"-\"`\n\t// Filter by enabled state; a non-boolean value returns 400.\n\tEnabled param.Opt[bool] `query:\"enabled,omitzero\" json:\"-\"`\n\t// Page size, maximum 100; larger values are clamped to the maximum.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Cursor for the next page; cannot be combined with `before_id`.\n\tAfterID param.Opt[string] `query:\"after_id,omitzero\" json:\"-\"`\n\t// Cursor for the previous page; cannot be combined with `after_id`.\n\tBeforeID param.Opt[string] `query:\"before_id,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r IdentityListParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype IdentityListTemplatesResponse struct {\n\tData []IdentityTemplate `json:\"data\"`\n\tJSON struct {\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 IdentityListTemplatesResponse) RawJSON() string\n```\n\n```go\nfunc (r *IdentityListTemplatesResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype IdentityMemoryStoreListParams struct {\n\tLimit    param.Opt[int64]  `query:\"limit,omitzero\" json:\"-\"`\n\tAfterID  param.Opt[string] `query:\"after_id,omitzero\" json:\"-\"`\n\tBeforeID param.Opt[string] `query:\"before_id,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r IdentityMemoryStoreListParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype IdentityMemoryStoreListResponse struct {\n\tFirstID string             `json:\"first_id\"`\n\tLastID  string             `json:\"last_id\"`\n\tData    []MemoryStoreMount `json:\"data\"`\n\tHasMore bool               `json:\"has_more\"`\n\tJSON    struct {\n\t\tFirstID     respjson.Field\n\t\tLastID      respjson.Field\n\t\tData        respjson.Field\n\t\tHasMore     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 IdentityMemoryStoreListResponse) RawJSON() string\n```\n\n```go\nfunc (r *IdentityMemoryStoreListResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype IdentityMemoryStoreMountParams struct {\n\tAccess param.Opt[string] `json:\"access,omitzero\"`\n\t// ID of the Memory Store to mount (`memstore_...`). It must be an active Store\n\t// visible to the caller.\n\tMemoryStoreID string `json:\"memory_store_id\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r IdentityMemoryStoreMountParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *IdentityMemoryStoreMountParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype IdentityMemoryStoreService struct {\n\tOptions []option.RequestOption\n}\n```\nIdentityMemoryStoreService provides Forward IdentityMemoryStore operations.\n\n```go\nfunc NewIdentityMemoryStoreService(opts ...option.RequestOption) IdentityMemoryStoreService\n```\n\n```go\nfunc (r *IdentityMemoryStoreService) Detach(ctx context.Context, identityID string, templateID string, memoryStoreID string, opts ...option.RequestOption) (res *DeletedMemoryStoreMount, err error)\n```\nUnmount Memory Store from an Identity\n\n```go\nfunc (r *IdentityMemoryStoreService) List(ctx context.Context, identityID string, templateID string, params IdentityMemoryStoreListParams, opts ...option.RequestOption) (res *pagination.Page[MemoryStoreMount], err error)\n```\nList Memory Store mounts on an Identity\n\n```go\nfunc (r *IdentityMemoryStoreService) ListAutoPaging(ctx context.Context, identityID, templateID string, params IdentityMemoryStoreListParams, opts ...option.RequestOption) *pagination.PageAutoPager[MemoryStoreMount]\n```\n\n```go\nfunc (r *IdentityMemoryStoreService) Mount(ctx context.Context, identityID string, templateID string, params IdentityMemoryStoreMountParams, opts ...option.RequestOption) (res *MemoryStoreMount, err error)\n```\nMount Memory Store on an Identity\n\n```go\ntype IdentityNewParams struct {\n\tAutoMemoryStore param.Opt[bool] `json:\"auto_memory_store,omitzero\"`\n\t// End-user ID in the integrator's system; cannot be empty or whitespace only.\n\tExternalID string `json:\"external_id\" api:\"required\"`\n\t// Display name; when provided it cannot be empty or whitespace only.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// Whether the Identity is enabled; defaults to `true`.\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// Business metadata; at most 16 keys is recommended.\n\tMetadata map[string]any `json:\"metadata,omitzero\"`\n\t// Optional idempotency key for requests with side effects.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r IdentityNewParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *IdentityNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype IdentityService struct {\n\tOptions              []option.RequestOption\n\tConfigs              IdentityConfigService\n\tMemoryStores         IdentityMemoryStoreService\n\tServiceAccountTokens IdentityServiceAccountTokenService\n}\n```\nIdentityService provides Forward Identity operations.\n\n```go\nfunc NewIdentityService(opts ...option.RequestOption) IdentityService\n```\n\n```go\nfunc (r *IdentityService) Clear(ctx context.Context, identityID string, params IdentityClearParams, opts ...option.RequestOption) (res *IdentityClearResponse, err error)\n```\nClear Identity\n\n```go\nfunc (r *IdentityService) Delete(ctx context.Context, identityID string, opts ...option.RequestOption) (res *DeletedIdentity, err error)\n```\nDelete Identity\n\n```go\nfunc (r *IdentityService) Disable(ctx context.Context, identityID string, opts ...option.RequestOption) (res *Identity, err error)\n```\nDisable Identity\n\n```go\nfunc (r *IdentityService) Enable(ctx context.Context, identityID string, opts ...option.RequestOption) (res *Identity, err error)\n```\nEnable Identity\n\n```go\nfunc (r *IdentityService) EnsureAdmin(ctx context.Context, opts ...option.RequestOption) (res *Identity, err error)\n```\nEnsure the admin Identity\n\n```go\nfunc (r *IdentityService) Get(ctx context.Context, identityID string, opts ...option.RequestOption) (res *Identity, err error)\n```\nGet Identity\n\n```go\nfunc (r *IdentityService) List(ctx context.Context, params IdentityListParams, opts ...option.RequestOption) (res *pagination.Page[Identity], err error)\n```\nList Identities\n\n```go\nfunc (r *IdentityService) ListAutoPaging(ctx context.Context, params IdentityListParams, opts ...option.RequestOption) *pagination.PageAutoPager[Identity]\n```\n\n```go\nfunc (r *IdentityService) ListTemplates(ctx context.Context, identityID string, opts ...option.RequestOption) (res *IdentityListTemplatesResponse, err error)\n```\nList Templates used by an Identity\n\n```go\nfunc (r *IdentityService) New(ctx context.Context, params IdentityNewParams, opts ...option.RequestOption) (res *Identity, err error)\n```\nCreate Identity\n\n```go\nfunc (r *IdentityService) Stats(ctx context.Context, opts ...option.RequestOption) (res *IdentityStats, err error)\n```\nGet Identity stats\n\n```go\nfunc (r *IdentityService) Update(ctx context.Context, identityID string, params IdentityUpdateParams, opts ...option.RequestOption) (res *Identity, err error)\n```\nUpdate Identity\n\n```go\ntype IdentityServiceAccountTokenService struct {\n\tOptions []option.RequestOption\n}\n```\nIdentityServiceAccountTokenService issues SATs bound to a Forward Identity.\n\n```go\nfunc NewIdentityServiceAccountTokenService(opts ...option.RequestOption) IdentityServiceAccountTokenService\n```\n\n```go\nfunc (r *IdentityServiceAccountTokenService) New(ctx context.Context, identityID string, params ServiceAccountTokenNewParams, opts ...option.RequestOption) (res *ServiceAccountToken, err error)\n```\nNew issues an Identity SAT using the explicit SA Key. Automatic retries are disabled.\n\n```go\ntype IdentityStats struct {\n\t// Total number of Identities for the current account.\n\tTotalIdentities int64 `json:\"total_identities\"`\n\t// Number of recently active Identities.\n\tActiveIdentities int64 `json:\"active_identities\"`\n\t// Total number of Templates the current account has used.\n\tTotalAgents int64 `json:\"total_agents\"`\n\t// Total number of Sessions for the current account.\n\tTotalSessions int64 `json:\"total_sessions\"`\n\tJSON          struct {\n\t\tTotalIdentities  respjson.Field\n\t\tActiveIdentities respjson.Field\n\t\tTotalAgents      respjson.Field\n\t\tTotalSessions    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 IdentityStats) RawJSON() string\n```\n\n```go\nfunc (r *IdentityStats) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype IdentityTemplate struct {\n\tTemplateID   string    `json:\"template_id\"`\n\tTemplateName string    `json:\"template_name\"`\n\tSessionCount int64     `json:\"session_count\"`\n\tLastActiveAt time.Time `json:\"last_active_at\" format:\"date-time\"`\n\tJSON         struct {\n\t\tTemplateID   respjson.Field\n\t\tTemplateName respjson.Field\n\t\tSessionCount respjson.Field\n\t\tLastActiveAt 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 IdentityTemplate) RawJSON() string\n```\n\n```go\nfunc (r *IdentityTemplate) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype IdentityToolsUnion struct {\n\tOfOverrides map[string]*ToolOverride\n\tOfArray     []Tool\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r IdentityToolsUnion) RawJSON() string\n```\n\n```go\nfunc (r *IdentityToolsUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype IdentityToolsUnionParam struct {\n\tOfOverrides map[string]ToolOverrideParam `json:\",omitzero,inline\"`\n\tOfArray     []ToolParam                  `json:\",omitzero,inline\"`\n\t// contains filtered or unexported fields\n}\n```\nIdentityToolsUnionParam overrides individual tools or replaces the complete tools array.\n\n```go\nfunc (r IdentityToolsUnionParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *IdentityToolsUnionParam) UnmarshalAPIJSON(data []byte) error\n```\n\n```go\nfunc (r *IdentityToolsUnionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype IdentityUpdateParams struct {\n\tAutoMemoryStore param.Opt[bool] `json:\"auto_memory_store,omitzero\"`\n\t// Replaces the existing end-user ID.\n\tExternalID param.Opt[string] `json:\"external_id,omitzero\"`\n\t// Replaces the display name.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// Updates whether the Identity is usable.\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// Merges updates into the business metadata; an empty string value deletes the\n\t// corresponding key.\n\tMetadata map[string]any `json:\"metadata,omitzero\"`\n\t// Optional idempotency key for requests with side effects.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r IdentityUpdateParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *IdentityUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype IdentityUsage struct {\n\tType          string  `json:\"type\"`\n\tIdentityID    string  `json:\"identity_id\"`\n\tSessionCount  int64   `json:\"session_count\"`\n\tActiveSeconds float64 `json:\"active_seconds\"`\n\tCredits       float64 `json:\"credits\"`\n\tJSON          struct {\n\t\tType          respjson.Field\n\t\tIdentityID    respjson.Field\n\t\tSessionCount  respjson.Field\n\t\tActiveSeconds respjson.Field\n\t\tCredits       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 IdentityUsage) RawJSON() string\n```\n\n```go\nfunc (r *IdentityUsage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ImageSource struct {\n\tType      string `json:\"type\" api:\"required\"`\n\tMediaType string `json:\"media_type\"`\n\tData      string `json:\"data\"`\n\tURL       string `json:\"url\"`\n\tFileID    string `json:\"file_id\"`\n\tJSON      struct {\n\t\tType        respjson.Field\n\t\tMediaType   respjson.Field\n\t\tData        respjson.Field\n\t\tURL         respjson.Field\n\t\tFileID      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 ImageSource) RawJSON() string\n```\n\n```go\nfunc (r *ImageSource) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ImageSourceParam struct {\n\tType      string            `json:\"type\" api:\"required\"`\n\tMediaType param.Opt[string] `json:\"media_type,omitzero\"`\n\tData      param.Opt[string] `json:\"data,omitzero\"`\n\tURL       param.Opt[string] `json:\"url,omitzero\"`\n\tFileID    param.Opt[string] `json:\"file_id,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ImageSourceParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *ImageSourceParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MCPOAuthRefreshUpdateParam struct {\n\tRefreshToken      param.Opt[string] `json:\"refresh_token,omitzero\"`\n\tScope             param.Opt[string] `json:\"scope,omitzero\"`\n\tTokenEndpointAuth map[string]any    `json:\"token_endpoint_auth,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r MCPOAuthRefreshUpdateParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *MCPOAuthRefreshUpdateParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MCPOAuthUpdateParam struct {\n\tType        string                     `json:\"type\" api:\"required\"`\n\tAccessToken param.Opt[string]          `json:\"access_token,omitzero\"`\n\tExpiresAt   param.Opt[string]          `json:\"expires_at,omitzero\"`\n\tRefresh     MCPOAuthRefreshUpdateParam `json:\"refresh,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r MCPOAuthUpdateParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *MCPOAuthUpdateParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MCPServer struct {\n\tType string `json:\"type\"`\n\tName string `json:\"name\" api:\"required\"`\n\tURL  string `json:\"url\" api:\"required\"`\n\tJSON struct {\n\t\tType        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 MCPServer) RawJSON() string\n```\n\n```go\nfunc (r *MCPServer) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MCPServerOverride struct {\n\tEnabled bool   `json:\"enabled\"`\n\tType    string `json:\"type\"`\n\tURL     string `json:\"url\"`\n\tJSON    struct {\n\t\tEnabled     respjson.Field\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```\n\n```go\nfunc (r MCPServerOverride) RawJSON() string\n```\n\n```go\nfunc (r *MCPServerOverride) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MCPServerOverrideParam struct {\n\tEnabled param.Opt[bool]   `json:\"enabled,omitzero\"`\n\tType    param.Opt[string] `json:\"type,omitzero\"`\n\tURL     param.Opt[string] `json:\"url,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r MCPServerOverrideParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *MCPServerOverrideParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MCPServerParam struct {\n\tType param.Opt[string] `json:\"type,omitzero\"`\n\tName string            `json:\"name\" api:\"required\"`\n\tURL  string            `json:\"url\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r MCPServerParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *MCPServerParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedCapabilityOverride struct {\n\tEnabled bool `json:\"enabled\"`\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 ManagedCapabilityOverride) RawJSON() string\n```\n\n```go\nfunc (r *ManagedCapabilityOverride) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedCapabilityOverrideParam struct {\n\tEnabled bool `json:\"enabled\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nManagedCapabilityOverrideParam is a sparse Identity capability switch. Use param.NullStruct to restore inheritance for one selector.\n\n```go\nfunc (r ManagedCapabilityOverrideParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *ManagedCapabilityOverrideParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedToolConfig struct {\n\tEnabledTools []string `json:\"enabled_tools\"`\n\tJSON         struct {\n\t\tEnabledTools 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 ManagedToolConfig) RawJSON() string\n```\n\n```go\nfunc (r *ManagedToolConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ManagedToolConfigParam struct {\n\tEnabledTools []string `json:\"enabled_tools\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nManagedToolConfigParam replaces the complete enabled tool list. Include other tools you want to keep. An empty list disables all managed tools.\n\n```go\nfunc (r ManagedToolConfigParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *ManagedToolConfigParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Memory struct {\n\tID               string         `json:\"id\"`\n\tType             string         `json:\"type\"`\n\tMemoryStoreID    string         `json:\"memory_store_id\"`\n\tPath             string         `json:\"path\"`\n\tContentSizeBytes int64          `json:\"content_size_bytes\"`\n\tContentSHA256    string         `json:\"content_sha256\"`\n\tMetadata         map[string]any `json:\"metadata\"`\n\tCreatedAt        time.Time      `json:\"created_at\" format:\"date-time\"`\n\tUpdatedAt        time.Time      `json:\"updated_at\" format:\"date-time\"`\n\tContent          string         `json:\"content\"`\n\tJSON             struct {\n\t\tID               respjson.Field\n\t\tType             respjson.Field\n\t\tMemoryStoreID    respjson.Field\n\t\tPath             respjson.Field\n\t\tContentSizeBytes respjson.Field\n\t\tContentSHA256    respjson.Field\n\t\tMetadata         respjson.Field\n\t\tCreatedAt        respjson.Field\n\t\tUpdatedAt        respjson.Field\n\t\tContent          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 Memory) RawJSON() string\n```\n\n```go\nfunc (r *Memory) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MemoryStore struct {\n\tID            string           `json:\"id\"`\n\tType          string           `json:\"type\"`\n\tName          string           `json:\"name\"`\n\tDescription   string           `json:\"description\"`\n\tStatus        string           `json:\"status\"`\n\tEntryCount    int64            `json:\"entry_count\"`\n\tTotalSize     int64            `json:\"total_size\"`\n\tMetadata      map[string]any   `json:\"metadata\"`\n\tSystemManaged bool             `json:\"system_managed\"`\n\tIdentityID    string           `json:\"identity_id\" api:\"nullable\"`\n\tCreatedAt     time.Time        `json:\"created_at\" format:\"date-time\"`\n\tUpdatedAt     time.Time        `json:\"updated_at\" format:\"date-time\"`\n\tArchivedAt    time.Time        `json:\"archived_at\" api:\"nullable\" format:\"date-time\"`\n\tBindingInfo   map[string]int64 `json:\"binding_info\"`\n\tJSON          struct {\n\t\tID            respjson.Field\n\t\tType          respjson.Field\n\t\tName          respjson.Field\n\t\tDescription   respjson.Field\n\t\tStatus        respjson.Field\n\t\tEntryCount    respjson.Field\n\t\tTotalSize     respjson.Field\n\t\tMetadata      respjson.Field\n\t\tSystemManaged respjson.Field\n\t\tIdentityID    respjson.Field\n\t\tCreatedAt     respjson.Field\n\t\tUpdatedAt     respjson.Field\n\t\tArchivedAt    respjson.Field\n\t\tBindingInfo   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 MemoryStore) RawJSON() string\n```\n\n```go\nfunc (r *MemoryStore) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MemoryStoreListParams struct {\n\t// Maximum number of items per page, 1..100, defaults to 20.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Cursor for the previous page, mutually exclusive with `after_id`.\n\tBeforeID param.Opt[string] `query:\"before_id,omitzero\" json:\"-\"`\n\t// Cursor for the next page, mutually exclusive with `before_id`.\n\tAfterID param.Opt[string] `query:\"after_id,omitzero\" json:\"-\"`\n\t// Three-state filter: `true` returns only system default stores; `false` returns only\n\t// user-created stores; omit it to apply no filter.\n\tSystemManaged param.Opt[bool] `query:\"system_managed,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r MemoryStoreListParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype MemoryStoreMemoryListParams struct {\n\t// Maximum number of entries per page, 1..100, default 20.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Cursor for the previous page; mutually exclusive with `after_id`.\n\tBeforeID param.Opt[string] `query:\"before_id,omitzero\" json:\"-\"`\n\t// Cursor for the next page; mutually exclusive with `before_id`.\n\tAfterID param.Opt[string] `query:\"after_id,omitzero\" json:\"-\"`\n\t// Filter by `path` prefix. **This is a plain string prefix match, not directory\n\t// semantics** — `path_prefix=a/b` also matches `a/bc.md`.\n\tPathPrefix param.Opt[string] `query:\"path_prefix,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r MemoryStoreMemoryListParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype MemoryStoreMemoryNewParams struct {\n\t// Path relative to the store root, case-sensitive; it must be relative, with no\n\t// leading `/`.\n\tPath string `json:\"path\" api:\"required\"`\n\t// UTF-8 plain text content, not base64; at most 100 KiB of raw bytes.\n\tContent string `json:\"content\" api:\"required\"`\n\t// Key-value metadata whose values must be strings, up to **16** keys.\n\tMetadata map[string]any `json:\"metadata,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r MemoryStoreMemoryNewParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *MemoryStoreMemoryNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MemoryStoreMemoryService struct {\n\tOptions []option.RequestOption\n}\n```\nMemoryStoreMemoryService provides Forward MemoryStoreMemory operations.\n\n```go\nfunc NewMemoryStoreMemoryService(opts ...option.RequestOption) MemoryStoreMemoryService\n```\n\n```go\nfunc (r *MemoryStoreMemoryService) Delete(ctx context.Context, memoryStoreID string, memoryID string, opts ...option.RequestOption) (res *DeletedMemory, err error)\n```\nDelete Memory\n\n```go\nfunc (r *MemoryStoreMemoryService) Get(ctx context.Context, memoryStoreID string, memoryID string, opts ...option.RequestOption) (res *Memory, err error)\n```\nGet Memory\n\n```go\nfunc (r *MemoryStoreMemoryService) List(ctx context.Context, memoryStoreID string, params MemoryStoreMemoryListParams, opts ...option.RequestOption) (res *pagination.Page[Memory], err error)\n```\nList Memories\n\n```go\nfunc (r *MemoryStoreMemoryService) ListAutoPaging(ctx context.Context, memoryStoreID string, params MemoryStoreMemoryListParams, opts ...option.RequestOption) *pagination.PageAutoPager[Memory]\n```\n\n```go\nfunc (r *MemoryStoreMemoryService) New(ctx context.Context, memoryStoreID string, params MemoryStoreMemoryNewParams, opts ...option.RequestOption) (res *Memory, err error)\n```\nCreate Memory\n\n```go\nfunc (r *MemoryStoreMemoryService) Update(ctx context.Context, memoryStoreID string, memoryID string, params MemoryStoreMemoryUpdateParams, opts ...option.RequestOption) (res *Memory, err error)\n```\nUpdate Memory\n\n```go\ntype MemoryStoreMemoryUpdateParams struct {\n\t// New content as UTF-8 plain text; at most 100 KiB of raw bytes.\n\tContent string `json:\"content\" api:\"required\"`\n\t// Expected SHA-256 of the current content, for optimistic concurrency control.\n\t// Returns `409` when it does not match.\n\tContentSHA256 param.Opt[string] `json:\"content_sha256,omitzero\"`\n\t// New metadata, which **replaces** the current metadata wholesale rather than\n\t// merging into it. Omit to leave the existing metadata unchanged.\n\tMetadata map[string]any `json:\"metadata,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r MemoryStoreMemoryUpdateParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *MemoryStoreMemoryUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MemoryStoreMemoryVersionListParams struct {\n\t// Maximum number of entries per page, 1..100, default 20.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Cursor for the previous page; mutually exclusive with `after_id`.\n\tBeforeID param.Opt[string] `query:\"before_id,omitzero\" json:\"-\"`\n\t// Cursor for the next page; mutually exclusive with `before_id`.\n\tAfterID param.Opt[string] `query:\"after_id,omitzero\" json:\"-\"`\n\t// Return only versions of this memory (`mem_...`), to inspect the change history of\n\t// a single entry.\n\tMemoryID param.Opt[string] `query:\"memory_id,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r MemoryStoreMemoryVersionListParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype MemoryStoreMemoryVersionService struct {\n\tOptions []option.RequestOption\n}\n```\nMemoryStoreMemoryVersionService provides Forward MemoryStoreMemoryVersion operations.\n\n```go\nfunc NewMemoryStoreMemoryVersionService(opts ...option.RequestOption) MemoryStoreMemoryVersionService\n```\n\n```go\nfunc (r *MemoryStoreMemoryVersionService) Get(ctx context.Context, memoryStoreID string, memoryVersionID string, opts ...option.RequestOption) (res *MemoryVersion, err error)\n```\nGet Memory version\n\n```go\nfunc (r *MemoryStoreMemoryVersionService) List(ctx context.Context, memoryStoreID string, params MemoryStoreMemoryVersionListParams, opts ...option.RequestOption) (res *pagination.Page[MemoryVersion], err error)\n```\nList Memory versions\n\n```go\nfunc (r *MemoryStoreMemoryVersionService) ListAutoPaging(ctx context.Context, memoryStoreID string, params MemoryStoreMemoryVersionListParams, opts ...option.RequestOption) *pagination.PageAutoPager[MemoryVersion]\n```\n\n```go\nfunc (r *MemoryStoreMemoryVersionService) Redact(ctx context.Context, memoryStoreID string, memoryVersionID string, opts ...option.RequestOption) (res *MemoryVersion, err error)\n```\nRedact Memory version\n\n```go\ntype MemoryStoreMount struct {\n\tMemoryStoreID string    `json:\"memory_store_id\"`\n\tIdentityID    string    `json:\"identity_id\"`\n\tTemplateID    string    `json:\"template_id\"`\n\tAccess        string    `json:\"access\"`\n\tSystemManaged bool      `json:\"system_managed\"`\n\tName          string    `json:\"name\"`\n\tStatus        string    `json:\"status\"`\n\tEntryCount    int64     `json:\"entry_count\"`\n\tCreatedAt     time.Time `json:\"created_at\" format:\"date-time\"`\n\tJSON          struct {\n\t\tMemoryStoreID respjson.Field\n\t\tIdentityID    respjson.Field\n\t\tTemplateID    respjson.Field\n\t\tAccess        respjson.Field\n\t\tSystemManaged respjson.Field\n\t\tName          respjson.Field\n\t\tStatus        respjson.Field\n\t\tEntryCount    respjson.Field\n\t\tCreatedAt     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 MemoryStoreMount) RawJSON() string\n```\n\n```go\nfunc (r *MemoryStoreMount) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MemoryStoreNewParams struct {\n\t// Establish this mount before returning. Retry with the same key and body to resume creation.\n\tMount MemoryStoreNewParamsMount `json:\"mount,omitzero\"`\n\t// Display name for the store, non-empty. Non-printable control characters\n\t// (`U+0000`–`U+001F`, `U+007F`) are not allowed, except newline `\\n`, carriage return\n\t// `\\r` and tab `\\t`.\n\tName string `json:\"name\" api:\"required\"`\n\t// Free-text description. Non-printable control characters are not allowed.\n\tDescription param.Opt[string] `json:\"description,omitzero\"`\n\t// Key-value metadata whose values must be strings. At most **15** keys; keys 1..64\n\t// characters; values ≤512 characters. `created_by` is a Forward reserved key that the\n\t// server fills in with `\"forward\"`; sending `created_by` returns\n\t// `400 invalid_request_error`. See the Store metadata constraints in the MemoryStore\n\t// data structure reference for details.\n\tMetadata map[string]any `json:\"metadata,omitzero\"`\n\t// Idempotency key for the create request. The same key may only be reused with an\n\t// identical request body; omitting it returns `400`.\n\tIdempotencyKey string `header:\"Idempotency-Key,omitzero\" json:\"-\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r MemoryStoreNewParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *MemoryStoreNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MemoryStoreNewParamsMount struct {\n\tIdentityID string `json:\"identity_id\" api:\"required\"`\n\tTemplateID string `json:\"template_id\" api:\"required\"`\n\t// read_only (default) or read_write.\n\tAccess param.Opt[string] `json:\"access,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r MemoryStoreNewParamsMount) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *MemoryStoreNewParamsMount) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MemoryStoreService struct {\n\tOptions        []option.RequestOption\n\tMemories       MemoryStoreMemoryService\n\tMemoryVersions MemoryStoreMemoryVersionService\n}\n```\nMemoryStoreService provides Forward MemoryStore operations.\n\n```go\nfunc NewMemoryStoreService(opts ...option.RequestOption) MemoryStoreService\n```\n\n```go\nfunc (r *MemoryStoreService) Archive(ctx context.Context, memoryStoreID string, opts ...option.RequestOption) (res *MemoryStore, err error)\n```\nArchive Memory Store\n\n```go\nfunc (r *MemoryStoreService) Delete(ctx context.Context, memoryStoreID string, opts ...option.RequestOption) (res *DeletedMemoryStore, err error)\n```\nDelete Memory Store\n\n```go\nfunc (r *MemoryStoreService) Get(ctx context.Context, memoryStoreID string, opts ...option.RequestOption) (res *MemoryStore, err error)\n```\nGet Memory Store\n\n```go\nfunc (r *MemoryStoreService) List(ctx context.Context, params MemoryStoreListParams, opts ...option.RequestOption) (res *pagination.Page[MemoryStore], err error)\n```\nList Memory Stores\n\n```go\nfunc (r *MemoryStoreService) ListAutoPaging(ctx context.Context, params MemoryStoreListParams, opts ...option.RequestOption) *pagination.PageAutoPager[MemoryStore]\n```\n\n```go\nfunc (r *MemoryStoreService) New(ctx context.Context, params MemoryStoreNewParams, opts ...option.RequestOption) (res *MemoryStore, err error)\n```\nCreate Memory Store\n\n```go\nfunc (r *MemoryStoreService) Update(ctx context.Context, memoryStoreID string, params MemoryStoreUpdateParams, opts ...option.RequestOption) (res *MemoryStore, err error)\n```\nUpdate Memory Store\n\n```go\ntype MemoryStoreUpdateParams struct {\n\t// New name. Must be non-empty and free of non-printable control characters when sent.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// New description. Must be free of non-printable control characters when sent.\n\tDescription param.Opt[string] `json:\"description,omitzero\"`\n\t// New metadata that **replaces** the current metadata entirely (not a merge). See the\n\t// Store metadata constraints in the MemoryStore data structure reference for details.\n\tMetadata map[string]any `json:\"metadata,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r MemoryStoreUpdateParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *MemoryStoreUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MemoryVersion struct {\n\tID               string          `json:\"id\"`\n\tType             string          `json:\"type\"`\n\tMemoryStoreID    string          `json:\"memory_store_id\"`\n\tMemoryID         string          `json:\"memory_id\"`\n\tPath             string          `json:\"path\"`\n\tContentSizeBytes int64           `json:\"content_size_bytes\"`\n\tContentSHA256    string          `json:\"content_sha256\"`\n\tOperation        string          `json:\"operation\"`\n\tRedacted         bool            `json:\"redacted\"`\n\tRedactedAt       time.Time       `json:\"redacted_at\" api:\"nullable\" format:\"date-time\"`\n\tCreatedAt        time.Time       `json:\"created_at\" format:\"date-time\"`\n\tContent          json.RawMessage `json:\"content\"`\n\tJSON             struct {\n\t\tID               respjson.Field\n\t\tType             respjson.Field\n\t\tMemoryStoreID    respjson.Field\n\t\tMemoryID         respjson.Field\n\t\tPath             respjson.Field\n\t\tContentSizeBytes respjson.Field\n\t\tContentSHA256    respjson.Field\n\t\tOperation        respjson.Field\n\t\tRedacted         respjson.Field\n\t\tRedactedAt       respjson.Field\n\t\tCreatedAt        respjson.Field\n\t\tContent          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 MemoryVersion) RawJSON() string\n```\n\n```go\nfunc (r *MemoryVersion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Model struct {\n\tID                      string   `json:\"id\"`\n\tDisplayName             string   `json:\"display_name\"`\n\tIsEnabled               bool     `json:\"is_enabled\"`\n\tIsNew                   bool     `json:\"is_new\"`\n\tIsVl                    bool     `json:\"is_vl\"`\n\tSupportDisableReasoning bool     `json:\"support_disable_reasoning\"`\n\tPriceFactor             float64  `json:\"price_factor\"`\n\tEfforts                 []string `json:\"efforts\"`\n\tDefaultEffort           string   `json:\"default_effort\"`\n\tSpeed                   []string `json:\"speed\"`\n\tMaxInputTokens          int64    `json:\"max_input_tokens\"`\n\tDefaultContextWindow    int64    `json:\"default_context_window\"`\n\tAvailableContextWindows []int64  `json:\"available_context_windows\"`\n\tJSON                    struct {\n\t\tID                      respjson.Field\n\t\tDisplayName             respjson.Field\n\t\tIsEnabled               respjson.Field\n\t\tIsNew                   respjson.Field\n\t\tIsVl                    respjson.Field\n\t\tSupportDisableReasoning respjson.Field\n\t\tPriceFactor             respjson.Field\n\t\tEfforts                 respjson.Field\n\t\tDefaultEffort           respjson.Field\n\t\tSpeed                   respjson.Field\n\t\tMaxInputTokens          respjson.Field\n\t\tDefaultContextWindow    respjson.Field\n\t\tAvailableContextWindows 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 Model) RawJSON() string\n```\n\n```go\nfunc (r *Model) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ModelConfig struct {\n\t// Inference speed: standard or high, subject to model capabilities.\n\tSpeed         string `json:\"speed\"`\n\tID            string `json:\"id\"`\n\tEffort        string `json:\"effort\"`\n\tContextWindow int64  `json:\"context_window\"`\n\tJSON          struct {\n\t\tSpeed         respjson.Field\n\t\tID            respjson.Field\n\t\tEffort        respjson.Field\n\t\tContextWindow respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nModelConfig preserves either a model ID string or an object from the API. ID is populated for both shapes; RawJSON retains the original representation.\n\n```go\nfunc (r ModelConfig) RawJSON() string\n```\n\n```go\nfunc (r *ModelConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ModelConfigParam struct {\n\t// Inference speed: standard or high, subject to model capabilities.\n\tSpeed         param.Opt[string] `json:\"speed,omitzero\"`\n\tID            string            `json:\"id\" api:\"required\"`\n\tEffort        param.Opt[string] `json:\"effort,omitzero\"`\n\tContextWindow param.Opt[int64]  `json:\"context_window,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ModelConfigParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *ModelConfigParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ModelConfigUnionParam struct {\n\tOfString param.Opt[string] `json:\",omitzero,inline\"`\n\tOfConfig *ModelConfigParam `json:\",omitzero,inline\"`\n\t// contains filtered or unexported fields\n}\n```\nModelConfigUnionParam accepts one of a model ID or model configuration.\n\n```go\nfunc (r ModelConfigUnionParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *ModelConfigUnionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ModelListResponse struct {\n\tData    []Model `json:\"data\"`\n\tHasMore bool    `json:\"has_more\"`\n\tJSON    struct {\n\t\tData        respjson.Field\n\t\tHasMore     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 ModelListResponse) RawJSON() string\n```\n\n```go\nfunc (r *ModelListResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ModelService struct {\n\tOptions []option.RequestOption\n}\n```\nModelService provides Forward Model operations.\n\n```go\nfunc NewModelService(opts ...option.RequestOption) ModelService\n```\n\n```go\nfunc (r *ModelService) List(ctx context.Context, opts ...option.RequestOption) (res *ModelListResponse, err error)\n```\nList models\n\n```go\ntype MultiagentConfig struct {\n\tType   string            `json:\"type\" api:\"required\"`\n\tAgents []MultiagentEntry `json:\"agents\" api:\"required\"`\n\tJSON   struct {\n\t\tType        respjson.Field\n\t\tAgents      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 MultiagentConfig) RawJSON() string\n```\n\n```go\nfunc (r *MultiagentConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MultiagentConfigParam struct {\n\tType   string                 `json:\"type\" api:\"required\"`\n\tAgents []MultiagentEntryParam `json:\"agents\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r MultiagentConfigParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *MultiagentConfigParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MultiagentEntry struct {\n\tOfString   string `json:\"-\"`\n\tModel      string `json:\"model\"`\n\tType       string `json:\"type\" api:\"required\"`\n\tTemplateID string `json:\"template_id\"`\n\tName       string `json:\"name\"`\n\tJSON       struct {\n\t\tModel       respjson.Field\n\t\tType        respjson.Field\n\t\tTemplateID  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 MultiagentEntry) RawJSON() string\n```\n\n```go\nfunc (r *MultiagentEntry) UnmarshalAPIJSON(data []byte) error\n```\nUnmarshalAPIJSON keeps string roster entries intact when nested in a Template.\n\n```go\nfunc (r *MultiagentEntry) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MultiagentEntryParam struct {\n\tOfString   param.Opt[string] `json:\"-\"`\n\tModel      param.Opt[string] `json:\"model,omitzero\"`\n\tType       string            `json:\"type\" api:\"required\"`\n\tTemplateID param.Opt[string] `json:\"template_id,omitzero\"`\n\tName       param.Opt[string] `json:\"name,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r MultiagentEntryParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *MultiagentEntryParam) UnmarshalAPIJSON(data []byte) error\n```\n\n```go\nfunc (r *MultiagentEntryParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OutcomeRubric struct {\n\tType    string `json:\"type\"`\n\tContent string `json:\"content\"`\n\tFileID  string `json:\"file_id\"`\n\tJSON    struct {\n\t\tType        respjson.Field\n\t\tContent     respjson.Field\n\t\tFileID      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOutcomeRubric contains the text or file reference used to evaluate an Outcome.\n\n```go\nfunc (r OutcomeRubric) RawJSON() string\n```\n\n```go\nfunc (r *OutcomeRubric) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OutcomeRubricParam struct {\n\tType    string            `json:\"type\" api:\"required\"`\n\tContent param.Opt[string] `json:\"content,omitzero\"`\n\tFileID  param.Opt[string] `json:\"file_id,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nOutcomeRubricParam defines acceptance criteria as inline text or an uploaded file. Set Type to \"text\" with Content, or \"file\" with FileID.\n\n```go\nfunc (r OutcomeRubricParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *OutcomeRubricParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PermissionPolicy struct {\n\tType string `json:\"type\" api:\"required\"`\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 PermissionPolicy) RawJSON() string\n```\n\n```go\nfunc (r *PermissionPolicy) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PermissionPolicyParam struct {\n\tType string `json:\"type\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r PermissionPolicyParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *PermissionPolicyParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RealtimeAudioConfig struct {\n\tOutput RealtimeAudioOutputConfig `json:\"output\"`\n}\n```\n\n```go\ntype RealtimeAudioConfigParam struct {\n\tOutput RealtimeAudioOutputConfigParam `json:\"output,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r RealtimeAudioConfigParam) MarshalJSON() ([]byte, error)\n```\n\n```go\ntype RealtimeAudioFormat struct {\n\tFormat     string `json:\"format\"`\n\tSampleRate int    `json:\"sample_rate\"`\n\tChannels   int    `json:\"channels\"`\n}\n```\n\n```go\ntype RealtimeAudioOutputConfig struct {\n\tVoice string `json:\"voice\"`\n}\n```\n\n```go\ntype RealtimeAudioOutputConfigParam struct {\n\tVoice param.Opt[string] `json:\"voice,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r RealtimeAudioOutputConfigParam) MarshalJSON() ([]byte, error)\n```\n\n```go\ntype RealtimeAudioPayload struct {\n\tAudio string `json:\"audio\"`\n}\n```\n\n```go\ntype RealtimeCapabilities struct {\n\tGracefulClose bool `json:\"graceful_close\"`\n}\n```\n\n```go\ntype RealtimeClientEvent struct {\n\tVersion string         `json:\"version\"`\n\tType    string         `json:\"type\"`\n\tPayload map[string]any `json:\"payload\"`\n}\n```\nRealtimeClientEvent is always encoded as a JSON text frame. Use SendEvent for protocol extensions; convenience methods provide validated public events.\n\n```go\ntype RealtimeClosedPayload struct {\n\tRequestID string `json:\"request_id\"`\n\tOutcome   string `json:\"outcome\"`\n}\n```\n\n```go\ntype RealtimeConfig struct {\n\tAudio RealtimeAudioConfig `json:\"audio\"`\n}\n```\n\n```go\ntype RealtimeConfigParam struct {\n\tAudio RealtimeAudioConfigParam `json:\"audio,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r RealtimeConfigParam) MarshalJSON() ([]byte, error)\n```\n\n```go\ntype RealtimeConnectParams struct {\n\tHandshakeTimeout time.Duration // Default 30s.\n\tReadyTimeout     time.Duration // Default 60s.\n\tSendTimeout      time.Duration // Default 30s.\n\tCloseTimeout     time.Duration // Default 10s.\n\tQueueCapacity    int           // Default 256 events.\n\tQueueBytes       int64         // Default 4 MiB.\n\tReadLimit        int64         // Default 1 MiB per server message.\n}\n```\nRealtimeConnectParams controls per-stage timeouts and bounded buffering. Zero values select defaults; negative values are rejected. The caller's ctx spans the connection lifetime, independently of ordinary HTTP timeouts.\n\n```go\ntype RealtimeConnection struct {\n\tConversationID string\n\tRequestID      string\n\tReady          RealtimeReadyPayload\n\t// contains filtered or unexported fields\n}\n```\nRealtimeConnection has one receiver and serializes sends. Ready is immutable after Connect returns. Applications own audio playback and its receipts.\n\n```go\nfunc (c *RealtimeConnection) AppendAudio(ctx context.Context, pcm []byte) error\n```\nAppendAudio sends nonempty 16 kHz mono PCM16 little-endian bytes. It does not resample, decode WAV or send binary WebSocket frames.\n\n```go\nfunc (c *RealtimeConnection) Close() error\n```\nClose releases transport resources without confirming history persistence.\n\n```go\nfunc (c *RealtimeConnection) CloseGracefully(ctx context.Context) (*RealtimeClosedPayload, error)\n```\nCloseGracefully sends a unique close request, waits for matching persistence acknowledgement, then closes the transport. Ordinary Close does not confirm persistence. Repeated successful calls return the same acknowledgement.\n\n```go\nfunc (c *RealtimeConnection) Err() error\n```\nErr returns the terminal receive/transport error, if any.\n\n```go\nfunc (c *RealtimeConnection) Interrupt(ctx context.Context) error\n```\n\n```go\nfunc (c *RealtimeConnection) Ping(ctx context.Context) error\n```\n\n```go\nfunc (c *RealtimeConnection) PlaybackCancelled(ctx context.Context, r RealtimePlaybackReceipt) error\n```\n\n```go\nfunc (c *RealtimeConnection) PlaybackEnded(ctx context.Context, r RealtimePlaybackReceipt) error\n```\n\n```go\nfunc (c *RealtimeConnection) PlaybackStarted(ctx context.Context, r RealtimePlaybackReceipt) error\n```\n\n```go\nfunc (c *RealtimeConnection) Recv(ctx context.Context) (RealtimeEvent, error)\n```\nRecv preserves receive order and drains buffered events before reporting a terminal error. Cancelling this wait does not close the connection.\n\n```go\nfunc (c *RealtimeConnection) SendEvent(ctx context.Context, event RealtimeClientEvent) error\n```\n\n```go\nfunc (c *RealtimeConnection) SendText(ctx context.Context, text string) error\n```\n\n```go\ntype RealtimeConversation struct {\n\tID        string         `json:\"id\"`\n\tType      string         `json:\"type\"`\n\tStatus    string         `json:\"status\"`\n\tTitle     *string        `json:\"title\"`\n\tMetadata  map[string]any `json:\"metadata\"`\n\tConfig    RealtimeConfig `json:\"config\"`\n\tCreatedAt string         `json:\"created_at\"`\n\tUpdatedAt string         `json:\"updated_at\"`\n}\n```\nRealtimeConversation timestamps remain text to preserve the wire precision.\n\n```go\ntype RealtimeConversationHistoryParams struct {\n\tLimit  param.Opt[int64]  `query:\"limit,omitzero\" json:\"-\"`\n\tBefore param.Opt[string] `query:\"before,omitzero\" json:\"-\"`\n\t// \"message\", \"work\", or \"message,work\"; the default includes both.\n\tTypes param.Opt[string] `query:\"types,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r RealtimeConversationHistoryParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype RealtimeConversationNewParams struct {\n\tIdentityID     string              `json:\"identity_id\" api:\"required\"`\n\tTemplateID     string              `json:\"template_id\" api:\"required\"`\n\tTitle          param.Opt[string]   `json:\"title,omitzero\"`\n\tMetadata       map[string]any      `json:\"metadata,omitzero\"`\n\tConfig         RealtimeConfigParam `json:\"config,omitzero\"`\n\tIdempotencyKey param.Opt[string]   `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r RealtimeConversationNewParams) MarshalJSON() ([]byte, error)\n```\n\n```go\ntype RealtimeConversationService struct{ Options []option.RequestOption }\n```\nRealtimeConversationService creates Realtime Conversations and queries their persisted history. Realtime is Beta; a Template must already have it enabled.\n\n```go\nfunc NewRealtimeConversationService(opts ...option.RequestOption) RealtimeConversationService\n```\n\n```go\nfunc (r *RealtimeConversationService) History(ctx context.Context, conversationID string, params RealtimeConversationHistoryParams, opts ...option.RequestOption) (res *RealtimeHistoryPage, err error)\n```\nHistory fetches a page of persisted events. Its cursor points towards older history, and is unrelated to WebSocket event IDs or sequence numbers.\n\n```go\nfunc (r *RealtimeConversationService) HistoryAutoPaging(ctx context.Context, conversationID string, params RealtimeConversationHistoryParams, opts ...option.RequestOption) *RealtimeHistoryAutoPager\n```\nHistoryAutoPaging iterates persisted history towards older records.\n\n```go\nfunc (r *RealtimeConversationService) New(ctx context.Context, params RealtimeConversationNewParams, opts ...option.RequestOption) (res *RealtimeConversation, err error)\n```\nNew creates a Conversation. Supply a stable Idempotency-Key for this operation with IdempotencyKey or option.WithHeader; it is required by the service.\n\n```go\ntype RealtimeErrorPayload struct {\n\tCode         string `json:\"code\"`\n\tMessage      string `json:\"message\"`\n\tRetryable    *bool  `json:\"retryable,omitempty\"`\n\tRetryAfterMS *int64 `json:\"retry_after_ms,omitempty\"`\n}\n```\n\n```go\ntype RealtimeEvent struct {\n\tVersion        string          `json:\"version\"`\n\tType           string          `json:\"type\"`\n\tEventID        string          `json:\"event_id\"`\n\tSequence       int64           `json:\"sequence\"`\n\tConversationID string          `json:\"conversation_id\"`\n\tTimestamp      string          `json:\"timestamp\"`\n\tWorkID         string          `json:\"work_id,omitempty\"`\n\tAnnouncementID string          `json:\"announcement_id,omitempty\"`\n\tPayload        json.RawMessage `json:\"payload\"`\n\t// contains filtered or unexported fields\n}\n```\nRealtimeEvent is a server event. Payload and RawJSON preserve Beta extension fields; Timestamp preserves nanosecond precision. Sequence is not a cursor.\n\n```go\nfunc (e RealtimeEvent) Audio() ([]byte, error)\n```\nAudio decodes audio.delta PCM16. It does not decode WAV or play audio.\n\n```go\nfunc (e RealtimeEvent) DecodePayload(dst any) error\n```\nDecodePayload decodes a known typed payload or an application's extension.\n\n```go\nfunc (e RealtimeEvent) RawJSON() string\n```\n\n```go\ntype RealtimeHistoryAutoPager struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (p *RealtimeHistoryAutoPager) Current() RealtimeHistoryEvent\n```\n\n```go\nfunc (p *RealtimeHistoryAutoPager) Err() error\n```\n\n```go\nfunc (p *RealtimeHistoryAutoPager) Next() bool\n```\n\n```go\ntype RealtimeHistoryConversation struct {\n\tID                   string         `json:\"id\"`\n\tTitle                *string        `json:\"title\"`\n\tInitializationStatus string         `json:\"initialization_status\"`\n\tMetadata             map[string]any `json:\"metadata\"`\n\tCreatedAt            string         `json:\"created_at\"`\n\tUpdatedAt            string         `json:\"updated_at\"`\n}\n```\n\n```go\ntype RealtimeHistoryEvent struct {\n\tID                 string             `json:\"id\"`\n\tType               string             `json:\"type\"`\n\tStatus             string             `json:\"status\"`\n\tOccurredAt         string             `json:\"occurred_at\"`\n\tRole               string             `json:\"role,omitempty\"`\n\tText               string             `json:\"text,omitempty\"`\n\tWorkID             string             `json:\"work_id,omitempty\"`\n\tObjective          string             `json:\"objective,omitempty\"`\n\tResult             string             `json:\"result,omitempty\"`\n\tError              *RealtimeWorkError `json:\"error,omitempty\"`\n\tTurnID             string             `json:\"turn_id,omitempty\"`\n\tUserMessageEventID string             `json:\"user_message_event_id,omitempty\"`\n\tAnnouncementID     string             `json:\"announcement_id,omitempty\"`\n\tMilestoneType      string             `json:\"milestone_type,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nRealtimeHistoryEvent retains unknown fields through RawJSON. ID is a history ID (vevt\\_\\*), not an ephemeral WebSocket event\\_id.\n\n```go\nfunc (e RealtimeHistoryEvent) RawJSON() string\n```\n\n```go\nfunc (e *RealtimeHistoryEvent) UnmarshalJSON(b []byte) error\n```\n\n```go\ntype RealtimeHistoryPage struct {\n\tConversation RealtimeHistoryConversation `json:\"conversation\"`\n\tEvents       []RealtimeHistoryEvent      `json:\"events\"`\n\tPage         RealtimeHistoryPageInfo     `json:\"page\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (p *RealtimeHistoryPage) GetNextPage(ctx context.Context) (*RealtimeHistoryPage, error)\n```\nGetNextPage returns older history, or nil at the end.\n\n```go\nfunc (p *RealtimeHistoryPage) HasNextPage() bool\n```\n\n```go\ntype RealtimeHistoryPageInfo struct {\n\tNextBefore *string `json:\"next_before\"`\n\tHasMore    bool    `json:\"has_more\"`\n}\n```\n\n```go\ntype RealtimePlaybackReceipt struct {\n\tWorkID         string `json:\"work_id,omitempty\"`\n\tAnnouncementID string `json:\"announcement_id,omitempty\"`\n}\n```\n\n```go\ntype RealtimeProtocolError struct{ Message string }\n```\n\n```go\nfunc (e *RealtimeProtocolError) Error() string\n```\n\n```go\ntype RealtimeReadyPayload struct {\n\tConfig       RealtimeConfig       `json:\"config\"`\n\tProvider     string               `json:\"provider\"`\n\tInputAudio   RealtimeAudioFormat  `json:\"input_audio\"`\n\tOutputAudio  RealtimeAudioFormat  `json:\"output_audio\"`\n\tCapabilities RealtimeCapabilities `json:\"capabilities\"`\n}\n```\n\n```go\ntype RealtimeReasonPayload struct {\n\tReason string `json:\"reason\"`\n}\n```\n\n```go\ntype RealtimeServerError struct {\n\tRealtimeErrorPayload\n\tConversationID string\n}\n```\n\n```go\nfunc (e *RealtimeServerError) Error() string\n```\n\n```go\ntype RealtimeService struct {\n\tOptions       []option.RequestOption\n\tConversations RealtimeConversationService\n}\n```\n\n```go\nfunc NewRealtimeService(opts ...option.RequestOption) RealtimeService\n```\n\n```go\nfunc (r *RealtimeService) Connect(ctx context.Context, conversationID string, params RealtimeConnectParams, opts ...option.RequestOption) (*RealtimeConnection, error)\n```\nConnect upgrades once and waits for a validated voice.ready. It never follows redirects or automatically reconnects/replays input. Events received while waiting for ready, including ready itself, remain available through Recv.\n\n```go\ntype RealtimeStatePayload struct {\n\tState string `json:\"state\"`\n}\n```\n\n```go\ntype RealtimeTranscriptPayload struct {\n\tRole       string `json:\"role\"`\n\tText       string `json:\"text\"`\n\tItemID     string `json:\"item_id,omitempty\"`\n\tResponseID string `json:\"response_id,omitempty\"`\n}\n```\n\n```go\ntype RealtimeTransportError struct {\n\tConversationID string\n\tCloseCode      int\n\tReason         string\n\tErr            error\n}\n```\n\n```go\nfunc (e *RealtimeTransportError) Error() string\n```\n\n```go\nfunc (e *RealtimeTransportError) Unwrap() error\n```\n\n```go\ntype RealtimeWorkAcceptedPayload struct {\n\tStatus    string `json:\"status\"`\n\tObjective string `json:\"objective\"`\n}\n```\n\n```go\ntype RealtimeWorkCompletedPayload struct {\n\tStatus  string `json:\"status\"`\n\tResult  string `json:\"result\"`\n\tEventID string `json:\"event_id,omitempty\"`\n}\n```\n\n```go\ntype RealtimeWorkError struct {\n\tCode string `json:\"code\"`\n}\n```\n\n```go\ntype RealtimeWorkFailedPayload struct {\n\tStatus  string            `json:\"status\"`\n\tError   RealtimeWorkError `json:\"error\"`\n\tEventID string            `json:\"event_id,omitempty\"`\n}\n```\n\n```go\ntype RealtimeWorkMilestonePayload struct {\n\tAnnouncementID string `json:\"announcement_id\"`\n\tMilestoneType  string `json:\"milestone_type\"`\n\tSummary        string `json:\"summary\"`\n}\n```\n\n```go\ntype RealtimeWorkProgressPayload struct {\n\tKind    string `json:\"kind\"`\n\tDetail  string `json:\"detail\"`\n\tTitle   string `json:\"title,omitempty\"`\n\tIsError bool   `json:\"is_error,omitempty\"`\n\tEventID string `json:\"event_id,omitempty\"`\n}\n```\n\n```go\ntype RealtimeWorkRunningPayload struct {\n\tStatus string `json:\"status\"`\n}\n```\n\n```go\ntype ResourceBinding struct {\n\tEnabled bool `json:\"enabled\"`\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 ResourceBinding) RawJSON() string\n```\n\n```go\nfunc (r *ResourceBinding) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ResourceBindingParam struct {\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ResourceBindingParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *ResourceBindingParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ResumableSessionEventStream struct {\n\t// contains filtered or unexported fields\n}\n```\nResumableSessionEventStream is a Session Event stream that reconnects after retryable HTTP, transport, read, and unexpected EOF failures.\n\n```go\nfunc (s *ResumableSessionEventStream) Close() error\n```\n\n```go\nfunc (s *ResumableSessionEventStream) Current() SessionEvent\n```\n\n```go\nfunc (s *ResumableSessionEventStream) Err() error\n```\n\n```go\nfunc (s *ResumableSessionEventStream) LastEventID() string\n```\n\n```go\nfunc (s *ResumableSessionEventStream) Next() bool\n```\n\n```go\ntype ResumableSessionThreadEventStream struct {\n\t// contains filtered or unexported fields\n}\n```\nResumableSessionThreadEventStream reconnects a single thread's event stream. A thread/session termination or session deletion event ends the stream normally.\n\n```go\nfunc (s *ResumableSessionThreadEventStream) Close() error\n```\n\n```go\nfunc (s *ResumableSessionThreadEventStream) Current() SessionEvent\n```\n\n```go\nfunc (s *ResumableSessionThreadEventStream) Err() error\n```\n\n```go\nfunc (s *ResumableSessionThreadEventStream) LastEventID() string\n```\n\n```go\nfunc (s *ResumableSessionThreadEventStream) Next() bool\n```\n\n```go\ntype Schedule struct {\n\tResources []ScheduleFileResource `json:\"resources\"`\n\t// Authoritative creation method of the Schedule: api or tool.\n\tSource          string `json:\"source\"`\n\tSourceSessionID string `json:\"source_session_id\" api:\"nullable\"`\n\t// Server-maintained input version, incremented when initial_events changes.\n\tInitialEventsVersion int64                       `json:\"initial_events_version\"`\n\tID                   string                      `json:\"id\"`\n\tIdentityID           string                      `json:\"identity_id\"`\n\tTemplateID           string                      `json:\"template_id\"`\n\tName                 string                      `json:\"name\"`\n\tDescription          string                      `json:\"description\"`\n\tStatus               string                      `json:\"status\"`\n\tInitialEvents        []ScheduleInitialEventsItem `json:\"initial_events\"`\n\tExecution            ScheduleExecution           `json:\"execution\"`\n\tTriggerPolicy        ScheduleTriggerPolicy       `json:\"trigger_policy\"`\n\tEnvironmentID        string                      `json:\"environment_id\"`\n\tSinks                []ScheduleSinksItem         `json:\"sinks\"`\n\tMetadata             map[string]any              `json:\"metadata\"`\n\tCreatedAt            time.Time                   `json:\"created_at\" format:\"date-time\"`\n\tUpdatedAt            time.Time                   `json:\"updated_at\" format:\"date-time\"`\n\tArchivedAt           time.Time                   `json:\"archived_at\" format:\"date-time\"`\n\tPausedReason         SchedulePausedReason        `json:\"paused_reason\"`\n\tJSON                 struct {\n\t\tResources            respjson.Field\n\t\tSource               respjson.Field\n\t\tSourceSessionID      respjson.Field\n\t\tInitialEventsVersion respjson.Field\n\t\tID                   respjson.Field\n\t\tIdentityID           respjson.Field\n\t\tTemplateID           respjson.Field\n\t\tName                 respjson.Field\n\t\tDescription          respjson.Field\n\t\tStatus               respjson.Field\n\t\tInitialEvents        respjson.Field\n\t\tExecution            respjson.Field\n\t\tTriggerPolicy        respjson.Field\n\t\tEnvironmentID        respjson.Field\n\t\tSinks                respjson.Field\n\t\tMetadata             respjson.Field\n\t\tCreatedAt            respjson.Field\n\t\tUpdatedAt            respjson.Field\n\t\tArchivedAt           respjson.Field\n\t\tPausedReason         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 Schedule) RawJSON() string\n```\n\n```go\nfunc (r *Schedule) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ScheduleArchiveManyParams struct {\n\t// Archive scope; currently only by_schedule_ids is supported.\n\tScope string `json:\"scope\" api:\"required\"`\n\t// Must contain 1-50 non-empty Schedule IDs after deduplication.\n\tScheduleIDs []string `json:\"schedule_ids\" api:\"required\"`\n\t// Optional idempotency key for requests with side effects; the same owner, path\n\t// and body can be replayed safely.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ScheduleArchiveManyParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *ScheduleArchiveManyParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ScheduleArchiveManyResponse struct {\n\t// Number of Schedules that moved from unarchived to archived in this call;\n\t// targets that were already archived are not counted again.\n\tArchivedCount int64 `json:\"archived_count\"`\n\tJSON          struct {\n\t\tArchivedCount 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 ScheduleArchiveManyResponse) RawJSON() string\n```\n\n```go\nfunc (r *ScheduleArchiveManyResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ScheduleArchiveParams struct {\n\t// Optional idempotency key for requests with side effects.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ScheduleArchiveParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype ScheduleExecution struct {\n\tSessionMode       string `json:\"session_mode\"`\n\tMaxConcurrentRuns int64  `json:\"max_concurrent_runs\"`\n\tMaxAttempts       int64  `json:\"max_attempts\"`\n\tTimeoutMs         int64  `json:\"timeout_ms\"`\n\tJSON              struct {\n\t\tSessionMode       respjson.Field\n\t\tMaxConcurrentRuns respjson.Field\n\t\tMaxAttempts       respjson.Field\n\t\tTimeoutMs         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 ScheduleExecution) RawJSON() string\n```\n\n```go\nfunc (r *ScheduleExecution) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ScheduleFileResource struct {\n\tType      string `json:\"type\"`\n\tFileID    string `json:\"file_id\"`\n\tMountPath string `json:\"mount_path\"`\n\tJSON      struct {\n\t\tType        respjson.Field\n\t\tFileID      respjson.Field\n\t\tMountPath   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 ScheduleFileResource) RawJSON() string\n```\n\n```go\nfunc (r *ScheduleFileResource) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ScheduleFileResourceParam struct {\n\tType      string            `json:\"type\" api:\"required\"`\n\tFileID    string            `json:\"file_id\" api:\"required\"`\n\tMountPath param.Opt[string] `json:\"mount_path,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nScheduleFileResourceParam attaches a Forward file to each Schedule run.\n\n```go\nfunc (r ScheduleFileResourceParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *ScheduleFileResourceParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ScheduleInitialEventsItem struct {\n\tType    string `json:\"type\"`\n\tContent string `json:\"content\"`\n\tJSON    struct {\n\t\tType        respjson.Field\n\t\tContent     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 ScheduleInitialEventsItem) RawJSON() string\n```\n\n```go\nfunc (r *ScheduleInitialEventsItem) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ScheduleListParams struct {\n\t// Optional for a PAT or an admin SAT; when omitted, all Identities of the\n\t// current owner are queried. An Identity-bound SAT binds to itself when this is\n\t// omitted, and returns 403 if another Identity is passed explicitly.\n\tIdentityID param.Opt[string] `query:\"identity_id,omitzero\" json:\"-\"`\n\t// Filter by Forward Template ID.\n\tTemplateID param.Opt[string] `query:\"template_id,omitzero\" json:\"-\"`\n\t// Filter by `active` or `paused`.\n\tStatus param.Opt[string] `query:\"status,omitzero\" json:\"-\"`\n\t// Whether to include archived Schedules.\n\tIncludeArchived param.Opt[bool] `query:\"include_archived,omitzero\" json:\"-\"`\n\t// Page size, maximum 100.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Cursor for the next page.\n\tAfterID param.Opt[string] `query:\"after_id,omitzero\" json:\"-\"`\n\t// Cursor for the previous page.\n\tBeforeID param.Opt[string] `query:\"before_id,omitzero\" json:\"-\"`\n\t// Sort field: `created_at` or `upcoming_runs_at`.\n\tSortBy param.Opt[string] `query:\"sort_by,omitzero\" json:\"-\"`\n\t// Sort direction: `asc` or `desc`.\n\tOrder param.Opt[string] `query:\"order,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ScheduleListParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype ScheduleNewParams struct {\n\tResources []ScheduleFileResourceParam `json:\"resources,omitzero\"`\n\t// Forward Identity ID the Schedule belongs to.\n\tIdentityID string `json:\"identity_id\" api:\"required\"`\n\t// Forward Template ID to execute.\n\tTemplateID string `json:\"template_id\" api:\"required\"`\n\t// Schedule name.\n\tName string `json:\"name\" api:\"required\"`\n\t// Schedule description.\n\tDescription param.Opt[string] `json:\"description,omitzero\"`\n\t// Initial events injected on every run; currently `user.message` is supported.\n\tInitialEvents []map[string]any `json:\"initial_events\" api:\"required\"`\n\t// Execution policy; server-side defaults apply when omitted.\n\tExecution map[string]any `json:\"execution,omitzero\"`\n\t// Trigger policy; treated as `manual` when omitted or `null`.\n\tTriggerPolicy map[string]any `json:\"trigger_policy,omitzero\" api:\"nullable\"`\n\t// Environment used for execution.\n\tEnvironmentID string `json:\"environment_id\" api:\"required\"`\n\t// Destinations the run result is pushed to; kept as an array for compatibility,\n\t// currently at most one element is allowed.\n\tSinks []map[string]any `json:\"sinks,omitzero\" api:\"nullable\"`\n\t// Business metadata, used only for labeling or pass-through.\n\tMetadata map[string]any `json:\"metadata,omitzero\"`\n\t// Optional idempotency key for requests with side effects.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ScheduleNewParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *ScheduleNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SchedulePauseParams struct {\n\t// Optional idempotency key for requests with side effects.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SchedulePauseParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype SchedulePausedReason struct {\n\tType string `json:\"type\"`\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 SchedulePausedReason) RawJSON() string\n```\n\n```go\nfunc (r *SchedulePausedReason) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ScheduleRun struct {\n\tInitialEvents []SessionEvent `json:\"initial_events\"`\n\t// Authoritative creation method of the Schedule: api or tool.\n\tSource          string `json:\"source\"`\n\tSourceSessionID string `json:\"source_session_id\" api:\"nullable\"`\n\t// Server-selected input version; a missing Run version is unknown.\n\tInitialEventsVersion int64 `json:\"initial_events_version\"`\n\t// Schedule Run ID.\n\tID string `json:\"id\"`\n\t// ID of the owning Schedule.\n\tScheduleID string `json:\"schedule_id\"`\n\t// Forward Identity ID.\n\tIdentityID string `json:\"identity_id\"`\n\t// Forward Template ID.\n\tTemplateID string `json:\"template_id\"`\n\t// null|Session created or reused by this run.\n\tSessionID string `json:\"session_id\"`\n\t// `pending`, `running`, `completed`, `failed` or `skipped`.\n\tStatus string `json:\"status\"`\n\t// Trigger source.\n\tTriggerContext ScheduleRunTriggerContext `json:\"trigger_context\"`\n\t// null|Text result of the main flow.\n\tResultPayload string `json:\"result_payload\"`\n\t// null|Sink type used for this IM delivery; `null` when no delivery is configured.\n\tPushSink string `json:\"push_sink\"`\n\t// IM delivery status: `pending`, `succeeded`, `failed` or `skipped`. The main flow\n\t// status and the delivery status are independent.\n\tPushStatus string `json:\"push_status\"`\n\t// null|Time the IM delivery finished.\n\tPushFinishedAt time.Time `json:\"push_finished_at\" format:\"date-time\"`\n\t// Current or final attempt number, starting at `1`; may return `2` when the Schedule sets\n\t// `execution.max_attempts=2` and the server has performed an automatic retry.\n\tAttempt int64 `json:\"attempt\"`\n\t// Trigger time.\n\tTriggeredAt time.Time `json:\"triggered_at\" format:\"date-time\"`\n\t// null|Time execution started.\n\tStartedAt time.Time `json:\"started_at\" format:\"date-time\"`\n\t// null|Completion time.\n\tCompletedAt time.Time `json:\"completed_at\" format:\"date-time\"`\n\t// null|Execution duration in milliseconds.\n\tDurationMs int64 `json:\"duration_ms\"`\n\t// Record creation time.\n\tCreatedAt time.Time `json:\"created_at\" format:\"date-time\"`\n\t// null|Structured error when the Run failed or was skipped.\n\tError map[string]any `json:\"error\"`\n\t// null|Human-readable error message; structured details stay in `error`.\n\tErrorMessage string `json:\"error_message\"`\n\tJSON         struct {\n\t\tInitialEvents        respjson.Field\n\t\tSource               respjson.Field\n\t\tSourceSessionID      respjson.Field\n\t\tInitialEventsVersion respjson.Field\n\t\tID                   respjson.Field\n\t\tScheduleID           respjson.Field\n\t\tIdentityID           respjson.Field\n\t\tTemplateID           respjson.Field\n\t\tSessionID            respjson.Field\n\t\tStatus               respjson.Field\n\t\tTriggerContext       respjson.Field\n\t\tResultPayload        respjson.Field\n\t\tPushSink             respjson.Field\n\t\tPushStatus           respjson.Field\n\t\tPushFinishedAt       respjson.Field\n\t\tAttempt              respjson.Field\n\t\tTriggeredAt          respjson.Field\n\t\tStartedAt            respjson.Field\n\t\tCompletedAt          respjson.Field\n\t\tDurationMs           respjson.Field\n\t\tCreatedAt            respjson.Field\n\t\tError                respjson.Field\n\t\tErrorMessage         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 ScheduleRun) RawJSON() string\n```\n\n```go\nfunc (r *ScheduleRun) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ScheduleRunGetParams struct {\n\tIncludeInitialEvents param.Opt[bool] `query:\"include_initial_events,omitzero\" json:\"-\"`\n\t// Additional ownership constraint.\n\tIdentityID param.Opt[string] `query:\"identity_id,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ScheduleRunGetParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype ScheduleRunListParams struct {\n\t// Forward Identity ID that owns the Run.\n\tIdentityID string `query:\"identity_id,omitzero\" json:\"-\" api:\"required\"`\n\t// Filter by Schedule ID.\n\tScheduleID param.Opt[string] `query:\"schedule_id,omitzero\" json:\"-\"`\n\t// Filter by `pending`, `running`, `completed`, `failed` or `skipped`.\n\tStatus param.Opt[string] `query:\"status,omitzero\" json:\"-\"`\n\t// Filter by `schedule` or `manual`.\n\tTriggerType param.Opt[string] `query:\"trigger_type,omitzero\" json:\"-\"`\n\t// Whether to return only Runs with or without an error.\n\tHasError param.Opt[bool] `query:\"has_error,omitzero\" json:\"-\"`\n\t// Page size, up to 100.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Cursor for the next page.\n\tAfterID param.Opt[string] `query:\"after_id,omitzero\" json:\"-\"`\n\t// Cursor for the previous page.\n\tBeforeID param.Opt[string] `query:\"before_id,omitzero\" json:\"-\"`\n\t// Sort field: `created_at` or `triggered_at`.\n\tSortBy param.Opt[string] `query:\"sort_by,omitzero\" json:\"-\"`\n\t// Sort direction: `asc` or `desc`.\n\tOrder param.Opt[string] `query:\"order,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ScheduleRunListParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype ScheduleRunParams struct {\n\t// Optional idempotency key for requests with side effects.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ScheduleRunParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype ScheduleRunService struct {\n\tOptions []option.RequestOption\n}\n```\nScheduleRunService provides Forward ScheduleRun operations.\n\n```go\nfunc NewScheduleRunService(opts ...option.RequestOption) ScheduleRunService\n```\n\n```go\nfunc (r *ScheduleRunService) Get(ctx context.Context, runID string, params ScheduleRunGetParams, opts ...option.RequestOption) (res *ScheduleRun, err error)\n```\nGet Schedule Run\n\n```go\nfunc (r *ScheduleRunService) List(ctx context.Context, params ScheduleRunListParams, opts ...option.RequestOption) (res *pagination.Page[ScheduleRun], err error)\n```\nList Schedule Runs\n\n```go\nfunc (r *ScheduleRunService) ListAutoPaging(ctx context.Context, params ScheduleRunListParams, opts ...option.RequestOption) *pagination.PageAutoPager[ScheduleRun]\n```\n\n```go\ntype ScheduleRunTriggerContext struct {\n\tType        string    `json:\"type\"`\n\tScheduledAt time.Time `json:\"scheduled_at\" format:\"date-time\"`\n\tJSON        struct {\n\t\tType        respjson.Field\n\t\tScheduledAt 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 ScheduleRunTriggerContext) RawJSON() string\n```\n\n```go\nfunc (r *ScheduleRunTriggerContext) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ScheduleService struct {\n\tOptions []option.RequestOption\n}\n```\nScheduleService provides Forward Schedule operations.\n\n```go\nfunc NewScheduleService(opts ...option.RequestOption) ScheduleService\n```\n\n```go\nfunc (r *ScheduleService) Archive(ctx context.Context, scheduleID string, params ScheduleArchiveParams, opts ...option.RequestOption) (res *Schedule, err error)\n```\nArchive Schedule\n\n```go\nfunc (r *ScheduleService) ArchiveMany(ctx context.Context, params ScheduleArchiveManyParams, opts ...option.RequestOption) (res *ScheduleArchiveManyResponse, err error)\n```\nArchive Schedules in bulk\n\n```go\nfunc (r *ScheduleService) Get(ctx context.Context, scheduleID string, opts ...option.RequestOption) (res *Schedule, err error)\n```\nGet Schedule\n\n```go\nfunc (r *ScheduleService) List(ctx context.Context, params ScheduleListParams, opts ...option.RequestOption) (res *pagination.Page[Schedule], err error)\n```\nList Schedules\n\n```go\nfunc (r *ScheduleService) ListAutoPaging(ctx context.Context, params ScheduleListParams, opts ...option.RequestOption) *pagination.PageAutoPager[Schedule]\n```\n\n```go\nfunc (r *ScheduleService) New(ctx context.Context, params ScheduleNewParams, opts ...option.RequestOption) (res *Schedule, err error)\n```\nCreate Schedule\n\n```go\nfunc (r *ScheduleService) Pause(ctx context.Context, scheduleID string, params SchedulePauseParams, opts ...option.RequestOption) (res *Schedule, err error)\n```\nPause Schedule\n\n```go\nfunc (r *ScheduleService) Run(ctx context.Context, scheduleID string, params ScheduleRunParams, opts ...option.RequestOption) (res *ScheduleRun, err error)\n```\nRun Schedule\n\n```go\nfunc (r *ScheduleService) Unpause(ctx context.Context, scheduleID string, params ScheduleUnpauseParams, opts ...option.RequestOption) (res *Schedule, err error)\n```\nUnpause Schedule\n\n```go\nfunc (r *ScheduleService) Update(ctx context.Context, scheduleID string, params ScheduleUpdateParams, opts ...option.RequestOption) (res *Schedule, err error)\n```\nUpdate Schedule\n\n```go\ntype ScheduleSinksItem struct {\n\tType      string                  `json:\"type\"`\n\tChannelID string                  `json:\"channel_id\"`\n\tTarget    ScheduleSinksItemTarget `json:\"target\"`\n\tJSON      struct {\n\t\tType        respjson.Field\n\t\tChannelID   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 ScheduleSinksItem) RawJSON() string\n```\n\n```go\nfunc (r *ScheduleSinksItem) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ScheduleSinksItemTarget struct {\n\tType       string `json:\"type\"`\n\tExternalID string `json:\"external_id\"`\n\tJSON       struct {\n\t\tType        respjson.Field\n\t\tExternalID  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 ScheduleSinksItemTarget) RawJSON() string\n```\n\n```go\nfunc (r *ScheduleSinksItemTarget) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ScheduleTriggerPolicy struct {\n\tStartAt        time.Time   `json:\"start_at\" format:\"date-time\"`\n\tStopAt         time.Time   `json:\"stop_at\" format:\"date-time\"`\n\tLastRunAt      time.Time   `json:\"last_run_at\" api:\"nullable\" format:\"date-time\"`\n\tType           string      `json:\"type\"`\n\tExpression     string      `json:\"expression\"`\n\tTimezone       string      `json:\"timezone\"`\n\tUpcomingRunsAt []time.Time `json:\"upcoming_runs_at\"`\n\tJSON           struct {\n\t\tStartAt        respjson.Field\n\t\tStopAt         respjson.Field\n\t\tLastRunAt      respjson.Field\n\t\tType           respjson.Field\n\t\tExpression     respjson.Field\n\t\tTimezone       respjson.Field\n\t\tUpcomingRunsAt 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 ScheduleTriggerPolicy) RawJSON() string\n```\n\n```go\nfunc (r *ScheduleTriggerPolicy) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ScheduleUnpauseParams struct {\n\t// Optional idempotency key for requests with side effects.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ScheduleUnpauseParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype ScheduleUpdateParams struct {\n\tResources []ScheduleFileResourceParam `json:\"resources,omitzero\"`\n\t// New Schedule name.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// New Schedule description.\n\tDescription param.Opt[string] `json:\"description,omitzero\"`\n\t// New Forward Template ID.\n\tTemplateID param.Opt[string] `json:\"template_id,omitzero\"`\n\t// Replaces the initial event list.\n\tInitialEvents []map[string]any `json:\"initial_events,omitzero\"`\n\t// Merges updates into the execution policy.\n\tExecution map[string]any `json:\"execution,omitzero\"`\n\t// Updates the trigger policy; `null` switches it to manual.\n\tTriggerPolicy map[string]any `json:\"trigger_policy,omitzero\" api:\"nullable\"`\n\t// New Environment used for execution.\n\tEnvironmentID param.Opt[string] `json:\"environment_id,omitzero\"`\n\t// Destinations the run result is pushed to; kept as an array for compatibility,\n\t// currently at most one element is allowed.\n\tSinks []map[string]any `json:\"sinks,omitzero\" api:\"nullable\"`\n\t// Merges updates into metadata; a `null` value deletes the key.\n\tMetadata map[string]any `json:\"metadata,omitzero\"`\n\t// Optional idempotency key for requests with side effects.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ScheduleUpdateParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *ScheduleUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ServiceAccountToken struct {\n\tType             string    `json:\"type\"`\n\tAccessToken      string    `json:\"access_token\"`\n\tTokenType        string    `json:\"token_type\"`\n\tExpiresIn        int64     `json:\"expires_in\"`\n\tExpiresAt        time.Time `json:\"expires_at\" format:\"date-time\"`\n\tAuthTokenID      string    `json:\"auth_token_id\"`\n\tServiceAccountID string    `json:\"service_account_id\"`\n\tCredentialID     string    `json:\"credential_id\"`\n\t// admin or identity. IdentityID is absent for admin tokens.\n\tSubjectType string `json:\"subject_type\"`\n\tIdentityID  string `json:\"identity_id\"`\n\tJSON        struct {\n\t\tType             respjson.Field\n\t\tAccessToken      respjson.Field\n\t\tTokenType        respjson.Field\n\t\tExpiresIn        respjson.Field\n\t\tExpiresAt        respjson.Field\n\t\tAuthTokenID      respjson.Field\n\t\tServiceAccountID respjson.Field\n\t\tCredentialID     respjson.Field\n\t\tSubjectType      respjson.Field\n\t\tIdentityID       respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nServiceAccountToken contains a newly issued Forward SAT. Treat AccessToken and RawJSON as secrets. Use WithAuthMode(\"sa\") and WithAuthToken(AccessToken) for business calls; renewal is caller-owned.\n\n```go\nfunc (r ServiceAccountToken) GoString() string\n```\n\n```go\nfunc (r ServiceAccountToken) RawJSON() string\n```\n\n```go\nfunc (r ServiceAccountToken) String() string\n```\n\n```go\nfunc (r *ServiceAccountToken) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ServiceAccountTokenNewParams struct {\n\t// SA Key used only in this request's Authorization header; never serialized as JSON.\n\tSAKey string `json:\"-\"`\n\t// Lifetime in seconds, 1-43200. Omit to use the issuer's default.\n\tTTLSeconds param.Opt[int64] `json:\"ttl_seconds,omitzero\"`\n\t// Business audit metadata; do not include credentials or other secrets.\n\tMetadata map[string]any `json:\"metadata,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ServiceAccountTokenNewParams) GoString() string\n```\n\n```go\nfunc (r ServiceAccountTokenNewParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r ServiceAccountTokenNewParams) String() string\n```\n\n```go\nfunc (r *ServiceAccountTokenNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ServiceAccountTokenRevokeParams struct {\n\tSAKey              string               `json:\"-\"`\n\tTargetCredentialID param.Opt[string]    `json:\"target_credential_id,omitzero\"`\n\tTargetExpiresAt    param.Opt[time.Time] `json:\"target_expires_at,omitzero\" format:\"date-time\"`\n\tReason             param.Opt[string]    `json:\"reason,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ServiceAccountTokenRevokeParams) GoString() string\n```\n\n```go\nfunc (r ServiceAccountTokenRevokeParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r ServiceAccountTokenRevokeParams) String() string\n```\n\n```go\nfunc (r *ServiceAccountTokenRevokeParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ServiceAccountTokenRevokeResponse struct {\n\tRevoked bool `json:\"revoked\"`\n\tJSON    struct {\n\t\tRevoked     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 ServiceAccountTokenRevokeResponse) RawJSON() string\n```\n\n```go\nfunc (r *ServiceAccountTokenRevokeResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ServiceAccountTokenService struct {\n\tOptions []option.RequestOption\n}\n```\nServiceAccountTokenService issues admin SATs and revokes Forward SAT bindings. These methods require a per-call SA Key, rather than the client's PAT or SAT.\n\n```go\nfunc NewServiceAccountTokenService(opts ...option.RequestOption) ServiceAccountTokenService\n```\n\n```go\nfunc (r *ServiceAccountTokenService) New(ctx context.Context, params ServiceAccountTokenNewParams, opts ...option.RequestOption) (res *ServiceAccountToken, err error)\n```\nNew issues an admin SAT. Automatic retries are disabled to avoid duplicate issuance.\n\n```go\nfunc (r *ServiceAccountTokenService) Revoke(ctx context.Context, authTokenID string, params ServiceAccountTokenRevokeParams, opts ...option.RequestOption) (res *ServiceAccountTokenRevokeResponse, err error)\n```\nRevoke revokes a Forward SAT binding belonging to the same Service Account. Use the issuance response's CredentialID and ExpiresAt to disambiguate the target.\n\n```go\ntype Session struct {\n\t// Use JSON.Budget to distinguish absent, null (unlimited), and an object.\n\tBudget             SessionBudget              `json:\"budget\" api:\"nullable\"`\n\tOutcomeEvaluations []SessionOutcomeEvaluation `json:\"outcome_evaluations\"`\n\t// Session ID.\n\tID string `json:\"id\"`\n\t// Always `session`.\n\tType string `json:\"type\"`\n\t// Forward Identity ID.\n\tIdentityID string `json:\"identity_id\"`\n\t// Template summary.\n\tTemplate SessionTemplate `json:\"template\"`\n\t// Session source; `api` when created directly through the API.\n\tSourceType string `json:\"source_type\"`\n\t// `idle`, `running`, `rescheduling`, `canceling` or `terminated`.\n\tStatus     string            `json:\"status\"`\n\tTitle      string            `json:\"title\"`\n\tMetadata   map[string]any    `json:\"metadata\"`\n\tConfig     SessionConfig     `json:\"config\"`\n\tResources  []SessionResource `json:\"resources\"`\n\tStats      SessionStats      `json:\"stats\"`\n\tUsage      SessionUsage      `json:\"usage\"`\n\tArchivedAt time.Time         `json:\"archived_at\" api:\"nullable\" format:\"date-time\"`\n\tCreatedAt  time.Time         `json:\"created_at\" format:\"date-time\"`\n\tUpdatedAt  time.Time         `json:\"updated_at\" format:\"date-time\"`\n\tJSON       struct {\n\t\tBudget             respjson.Field\n\t\tOutcomeEvaluations respjson.Field\n\t\tID                 respjson.Field\n\t\tType               respjson.Field\n\t\tIdentityID         respjson.Field\n\t\tTemplate           respjson.Field\n\t\tSourceType         respjson.Field\n\t\tStatus             respjson.Field\n\t\tTitle              respjson.Field\n\t\tMetadata           respjson.Field\n\t\tConfig             respjson.Field\n\t\tResources          respjson.Field\n\t\tStats              respjson.Field\n\t\tUsage              respjson.Field\n\t\tArchivedAt         respjson.Field\n\t\tCreatedAt          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 Session) RawJSON() string\n```\n\n```go\nfunc (r *Session) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SessionArchiveParams struct {\n\t// Optional idempotency key for requests with side effects.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SessionArchiveParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype SessionBudget struct {\n\tType          string `json:\"type\"`\n\tMaxCreditCost string `json:\"max_credit_cost\"`\n\tJSON          struct {\n\t\tType          respjson.Field\n\t\tMaxCreditCost 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 SessionBudget) RawJSON() string\n```\n\n```go\nfunc (r *SessionBudget) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SessionBudgetParam struct {\n\tType          string `json:\"type\" api:\"required\"`\n\tMaxCreditCost string `json:\"max_credit_cost\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nA cumulative model and sandbox Credits limit. MaxCreditCost is a positive decimal string. Once reached, the server rejects the next user message; an active turn can finish.\n\n```go\nfunc (r SessionBudgetParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *SessionBudgetParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SessionCancelParams struct {\n\t// Optional idempotency key for requests with side effects.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SessionCancelParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype SessionConfig struct {\n\tModel                ModelConfig       `json:\"model\"`\n\tEnvironmentVariables map[string]string `json:\"environment_variables\"`\n\tJSON                 struct {\n\t\tModel                respjson.Field\n\t\tEnvironmentVariables 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 SessionConfig) RawJSON() string\n```\n\n```go\nfunc (r *SessionConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SessionEvent struct {\n\t// Cumulative total Credits.\n\tTotalCredits float64 `json:\"total_credits\"`\n\t// Cumulative sandbox Credits.\n\tSandboxRuntimeCredits float64 `json:\"sandbox_runtime_credits\"`\n\t// Cumulative model Credits; use the latest value, not a sum of events.\n\tModelCredits float64 `json:\"model_credits\"`\n\t// Related outcome evaluation start event.\n\tOutcomeEvaluationStartID string `json:\"outcome_evaluation_start_id\"`\n\t// Outcome evaluation explanation.\n\tExplanation string `json:\"explanation\"`\n\t// Outcome evaluation iteration.\n\tIteration int64 `json:\"iteration\"`\n\t// Optional status reason, such as outcome_evaluation.\n\tReason string `json:\"reason\"`\n\t// Optional approval details; evaluated_permission at the event root is a string.\n\tEvaluation ToolApprovalEvaluation `json:\"evaluation\"`\n\t// Use JSON.Budget to distinguish absent, null (unlimited), and an object.\n\tBudget              SessionBudget   `json:\"budget\" api:\"nullable\"`\n\tID                  string          `json:\"id\"`\n\tType                string          `json:\"type\"`\n\tSessionID           string          `json:\"session_id\"`\n\tContent             json.RawMessage `json:\"content\"`\n\tProcessedAt         time.Time       `json:\"processed_at\" format:\"date-time\"`\n\tSessionThreadID     string          `json:\"session_thread_id\"`\n\tThinking            string          `json:\"thinking\"`\n\tText                string          `json:\"text\"`\n\tToolUseID           string          `json:\"tool_use_id\"`\n\tCustomToolUseID     string          `json:\"custom_tool_use_id\"`\n\tMCPToolUseID        string          `json:\"mcp_tool_use_id\"`\n\tName                string          `json:\"name\"`\n\tMCPServerName       string          `json:\"mcp_server_name\"`\n\tInput               map[string]any  `json:\"input\"`\n\tIsError             bool            `json:\"is_error\"`\n\tResult              string          `json:\"result\"`\n\tDenyMessage         string          `json:\"deny_message\"`\n\tDescription         string          `json:\"description\"`\n\tRubric              OutcomeRubric   `json:\"rubric\"`\n\tOutcomeID           string          `json:\"outcome_id\"`\n\tMaxIterations       int64           `json:\"max_iterations\"`\n\tMessageID           string          `json:\"message_id\"`\n\tMessage             json.RawMessage `json:\"message\"`\n\tIndex               int64           `json:\"index\"`\n\tContentBlock        json.RawMessage `json:\"content_block\"`\n\tDelta               json.RawMessage `json:\"delta\"`\n\tEvent               json.RawMessage `json:\"event\"`\n\tEventID             string          `json:\"event_id\"`\n\tUsage               map[string]any  `json:\"usage\"`\n\tStopReason          map[string]any  `json:\"stop_reason\"`\n\tError               map[string]any  `json:\"error\"`\n\tEvaluatedPermission string          `json:\"evaluated_permission\"`\n\tFileID              string          `json:\"file_id\"`\n\tOriginalFilename    string          `json:\"original_filename\"`\n\tSize                int64           `json:\"size\"`\n\tContentType         string          `json:\"content_type\"`\n\tAgent               map[string]any  `json:\"agent\"`\n\tMetadata            map[string]any  `json:\"metadata\"`\n\tTitle               string          `json:\"title\"`\n\tModelRequestStartID string          `json:\"model_request_start_id\"`\n\tModelUsage          map[string]any  `json:\"model_usage\"`\n\tJSON                struct {\n\t\tTotalCredits             respjson.Field\n\t\tSandboxRuntimeCredits    respjson.Field\n\t\tModelCredits             respjson.Field\n\t\tOutcomeEvaluationStartID respjson.Field\n\t\tExplanation              respjson.Field\n\t\tIteration                respjson.Field\n\t\tReason                   respjson.Field\n\t\tEvaluation               respjson.Field\n\t\tBudget                   respjson.Field\n\t\tID                       respjson.Field\n\t\tType                     respjson.Field\n\t\tSessionID                respjson.Field\n\t\tContent                  respjson.Field\n\t\tProcessedAt              respjson.Field\n\t\tSessionThreadID          respjson.Field\n\t\tThinking                 respjson.Field\n\t\tText                     respjson.Field\n\t\tToolUseID                respjson.Field\n\t\tCustomToolUseID          respjson.Field\n\t\tMCPToolUseID             respjson.Field\n\t\tName                     respjson.Field\n\t\tMCPServerName            respjson.Field\n\t\tInput                    respjson.Field\n\t\tIsError                  respjson.Field\n\t\tResult                   respjson.Field\n\t\tDenyMessage              respjson.Field\n\t\tDescription              respjson.Field\n\t\tRubric                   respjson.Field\n\t\tOutcomeID                respjson.Field\n\t\tMaxIterations            respjson.Field\n\t\tMessageID                respjson.Field\n\t\tMessage                  respjson.Field\n\t\tIndex                    respjson.Field\n\t\tContentBlock             respjson.Field\n\t\tDelta                    respjson.Field\n\t\tEvent                    respjson.Field\n\t\tEventID                  respjson.Field\n\t\tUsage                    respjson.Field\n\t\tStopReason               respjson.Field\n\t\tError                    respjson.Field\n\t\tEvaluatedPermission      respjson.Field\n\t\tFileID                   respjson.Field\n\t\tOriginalFilename         respjson.Field\n\t\tSize                     respjson.Field\n\t\tContentType              respjson.Field\n\t\tAgent                    respjson.Field\n\t\tMetadata                 respjson.Field\n\t\tTitle                    respjson.Field\n\t\tModelRequestStartID      respjson.Field\n\t\tModelUsage               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 SessionEvent) ContentBlocks() ([]ContentBlock, error)\n```\nContentBlocks decodes block content; non-block event payloads remain in Content and RawJSON.\n\n```go\nfunc (r SessionEvent) RawJSON() string\n```\n\n```go\nfunc (r *SessionEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SessionEventListParams struct {\n\t// Page size, maximum 100.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Return events after this Event ID.\n\tAfterID param.Opt[string] `query:\"after_id,omitzero\" json:\"-\"`\n\t// Return events before this Event ID.\n\tBeforeID param.Opt[string] `query:\"before_id,omitzero\" json:\"-\"`\n\t// Sort direction: `asc` or `desc`.\n\tOrder param.Opt[string] `query:\"order,omitzero\" json:\"-\"`\n\t// Filter by Event type; accepts a comma-separated list.\n\tType param.Opt[string] `query:\"type,omitzero\" json:\"-\"`\n\t// Event type filter in array form.\n\tTypes []string `query:\"types[],omitzero\" json:\"-\"`\n\t// Whether to include tool call events.\n\tIncludeToolCalls param.Opt[bool] `query:\"include_tool_calls,omitzero\" json:\"-\"`\n\t// Whether to include thinking events.\n\tIncludeThinking param.Opt[bool] `query:\"include_thinking,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SessionEventListParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype SessionEventParam struct {\n\tType            string                 `json:\"type\" api:\"required\"`\n\tContent         EventContentUnionParam `json:\"content,omitzero\"`\n\tToolUseID       param.Opt[string]      `json:\"tool_use_id,omitzero\"`\n\tCustomToolUseID param.Opt[string]      `json:\"custom_tool_use_id,omitzero\"`\n\tResult          param.Opt[string]      `json:\"result,omitzero\"`\n\tDenyMessage     param.Opt[string]      `json:\"deny_message,omitzero\"`\n\tIsError         param.Opt[bool]        `json:\"is_error,omitzero\"`\n\tDescription     param.Opt[string]      `json:\"description,omitzero\"`\n\tRubric          OutcomeRubricParam     `json:\"rubric,omitzero\"`\n\tOutcomeID       param.Opt[string]      `json:\"outcome_id,omitzero\"`\n\tMaxIterations   param.Opt[int64]       `json:\"max_iterations,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SessionEventParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *SessionEventParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SessionEventSendParams struct {\n\tEvents []SessionEventParam `json:\"events\" api:\"required\"`\n\t// Optional idempotency key for requests with side effects.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SessionEventSendParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *SessionEventSendParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SessionEventSendResponse struct {\n\tData []SessionEvent `json:\"data\"`\n\tJSON struct {\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 SessionEventSendResponse) RawJSON() string\n```\n\n```go\nfunc (r *SessionEventSendResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SessionEventService struct {\n\tOptions []option.RequestOption\n}\n```\nSessionEventService provides Forward SessionEvent operations.\n\n```go\nfunc NewSessionEventService(opts ...option.RequestOption) SessionEventService\n```\n\n```go\nfunc (r *SessionEventService) List(ctx context.Context, sessionID string, params SessionEventListParams, opts ...option.RequestOption) (res *pagination.Page[SessionEvent], err error)\n```\nList Session Events\n\n```go\nfunc (r *SessionEventService) ListAutoPaging(ctx context.Context, sessionID string, params SessionEventListParams, opts ...option.RequestOption) *pagination.PageAutoPager[SessionEvent]\n```\n\n```go\nfunc (r *SessionEventService) NewResumableStream(ctx context.Context, sessionID string, params SessionEventStreamParams, opts ...option.RequestOption) *ResumableSessionEventStream\n```\nNewResumableStream subscribes to Session Events and reconnects retryable failures with the latest yielded Last-Event-ID cursor.\n\n```go\nfunc (r *SessionEventService) Send(ctx context.Context, sessionID string, params SessionEventSendParams, opts ...option.RequestOption) (res *SessionEventSendResponse, err error)\n```\nSend Session Events\n\n```go\nfunc (r *SessionEventService) StreamEvents(ctx context.Context, sessionID string, params SessionEventStreamParams, opts ...option.RequestOption) *ssestream.Stream[SessionEvent]\n```\nSubscribe to the Session Event stream\n\n```go\ntype SessionEventStreamParams struct {\n\t// Subscribe to streaming delta events for the given public event types. May be\n\t// repeated; see the streaming delta events section of the Session \u0026 Event data\n\t// structure documentation for the accepted values.\n\tEventDeltas []string `query:\"event_deltas[],omitzero\" json:\"-\"`\n\t// Whether to include tool call events.\n\tIncludeToolCalls param.Opt[bool] `query:\"include_tool_calls,omitzero\" json:\"-\"`\n\t// Whether to include thinking events.\n\tIncludeThinking param.Opt[bool] `query:\"include_thinking,omitzero\" json:\"-\"`\n\t// Resume the subscription after this Event ID.\n\tLastEventID param.Opt[string] `header:\"Last-Event-ID,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SessionEventStreamParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype SessionListParams struct {\n\t// Match an exact sess_ ID or search Session titles.\n\tSearch param.Opt[string] `query:\"search,omitzero\" json:\"-\"`\n\t// Filter by one or more Identity IDs, comma-separated.\n\tIdentityIDs []string `query:\"identity_ids,omitzero\" json:\"-\"`\n\t// Filter by Forward Template ID.\n\tTemplateID param.Opt[string] `query:\"template_id,omitzero\" json:\"-\"`\n\t// Filter by `api`, `im`, `schedule` or `batch`.\n\tSourceType param.Opt[string] `query:\"source_type,omitzero\" json:\"-\"`\n\t// Creation time strictly after this RFC 3339 timestamp.\n\tCreatedAtGt param.Opt[time.Time] `query:\"created_at[gt],omitzero\" json:\"-\" format:\"date-time\"`\n\t// Creation time at or after this RFC 3339 timestamp.\n\tCreatedAtGte param.Opt[time.Time] `query:\"created_at[gte],omitzero\" json:\"-\" format:\"date-time\"`\n\t// Creation time strictly before this RFC 3339 timestamp.\n\tCreatedAtLt param.Opt[time.Time] `query:\"created_at[lt],omitzero\" json:\"-\" format:\"date-time\"`\n\t// Creation time at or before this RFC 3339 timestamp.\n\tCreatedAtLte param.Opt[time.Time] `query:\"created_at[lte],omitzero\" json:\"-\" format:\"date-time\"`\n\t// Update time strictly after this RFC 3339 timestamp.\n\tUpdatedAtGt param.Opt[time.Time] `query:\"updated_at[gt],omitzero\" json:\"-\" format:\"date-time\"`\n\t// Update time at or after this RFC 3339 timestamp.\n\tUpdatedAtGte param.Opt[time.Time] `query:\"updated_at[gte],omitzero\" json:\"-\" format:\"date-time\"`\n\t// Update time strictly before this RFC 3339 timestamp.\n\tUpdatedAtLt param.Opt[time.Time] `query:\"updated_at[lt],omitzero\" json:\"-\" format:\"date-time\"`\n\t// Update time at or before this RFC 3339 timestamp.\n\tUpdatedAtLte param.Opt[time.Time] `query:\"updated_at[lte],omitzero\" json:\"-\" format:\"date-time\"`\n\t// Page size, up to 100.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Cursor for the next page; pass the `last_id` from the previous response.\n\tAfterID param.Opt[string] `query:\"after_id,omitzero\" json:\"-\"`\n\t// Cursor for the previous page; pass the `first_id` from the current response.\n\tBeforeID param.Opt[string] `query:\"before_id,omitzero\" json:\"-\"`\n\t// Sort direction by creation time: `desc` or `asc`.\n\tOrder param.Opt[string] `query:\"order,omitzero\" json:\"-\"`\n\t// Whether to include archived Sessions.\n\tIncludeArchived param.Opt[bool] `query:\"include_archived,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SessionListParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype SessionNewParams struct {\n\t// Omit to keep the default/current budget; use param.NullStruct[SessionBudgetParam]() to clear.\n\tBudget SessionBudgetParam `json:\"budget,omitzero\" api:\"nullable\"`\n\t// Forward Identity ID.\n\tIdentityID string `json:\"identity_id\" api:\"required\"`\n\t// Forward Template ID.\n\tTemplateID string `json:\"template_id\" api:\"required\"`\n\t// Session title.\n\tTitle param.Opt[string] `json:\"title,omitzero\"`\n\t// Business metadata.\n\tMetadata  map[string]any              `json:\"metadata,omitzero\"`\n\tConfig    SessionNewParamsConfigParam `json:\"config,omitzero\"`\n\tResources []SessionResourceSpecParam  `json:\"resources,omitzero\"`\n\t// Optional idempotency key for requests with side effects.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SessionNewParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *SessionNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SessionNewParamsConfigParam struct {\n\t// Model override. Omit on create to inherit; explicit null on update restores inheritance.\n\tModel                ModelConfigUnionParam `json:\"model,omitzero\"`\n\tEnvironmentVariables map[string]any        `json:\"environment_variables,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SessionNewParamsConfigParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *SessionNewParamsConfigParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SessionOutcomeEvaluation struct {\n\tType        string    `json:\"type\"`\n\tOutcomeID   string    `json:\"outcome_id\"`\n\tDescription string    `json:\"description\"`\n\tIteration   int64     `json:\"iteration\"`\n\tResult      string    `json:\"result\"`\n\tExplanation string    `json:\"explanation\" api:\"nullable\"`\n\tCompletedAt time.Time `json:\"completed_at\" api:\"nullable\" format:\"date-time\"`\n\tJSON        struct {\n\t\tType        respjson.Field\n\t\tOutcomeID   respjson.Field\n\t\tDescription respjson.Field\n\t\tIteration   respjson.Field\n\t\tResult      respjson.Field\n\t\tExplanation respjson.Field\n\t\tCompletedAt 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 SessionOutcomeEvaluation) RawJSON() string\n```\n\n```go\nfunc (r *SessionOutcomeEvaluation) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SessionResource struct {\n\t// Session resource ID, prefixed with `sesr_`.\n\tID string `json:\"id\"`\n\t// Resource type, always `file`.\n\tType string `json:\"type\"`\n\t// ID of the mounted File.\n\tFileID string `json:\"file_id\"`\n\t// Actual mount path of the file inside the Agent container.\n\tMountPath string `json:\"mount_path\"`\n\t// Resource creation time, RFC3339.\n\tCreatedAt time.Time `json:\"created_at\" format:\"date-time\"`\n\t// Resource update time, RFC3339.\n\tUpdatedAt time.Time `json:\"updated_at\" format:\"date-time\"`\n\tJSON      struct {\n\t\tID          respjson.Field\n\t\tType        respjson.Field\n\t\tFileID      respjson.Field\n\t\tMountPath   respjson.Field\n\t\tCreatedAt   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 SessionResource) RawJSON() string\n```\n\n```go\nfunc (r *SessionResource) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SessionResourceAddParams struct {\n\t// Resource type; must be `file`.\n\tType string `json:\"type\" api:\"required\"`\n\t// File ID returned by the Files API; the file must already be fully uploaded.\n\tFileID string `json:\"file_id\" api:\"required\"`\n\t// Mount path inside the Agent container; when omitted, Forward derives one from the\n\t// file name and mounts it at `/data/workspace/\u003cfile name\u003e`.\n\tMountPath param.Opt[string] `json:\"mount_path,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SessionResourceAddParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *SessionResourceAddParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SessionResourceService struct {\n\tOptions []option.RequestOption\n}\n```\nSessionResourceService provides Forward SessionResource operations.\n\n```go\nfunc NewSessionResourceService(opts ...option.RequestOption) SessionResourceService\n```\n\n```go\nfunc (r *SessionResourceService) Add(ctx context.Context, sessionID string, params SessionResourceAddParams, opts ...option.RequestOption) (res *SessionResource, err error)\n```\nAdd Session resource\n\n```go\ntype SessionResourceSpec struct {\n\tType      string `json:\"type\" api:\"required\"`\n\tFileID    string `json:\"file_id\" api:\"required\"`\n\tMountPath string `json:\"mount_path\"`\n\tJSON      struct {\n\t\tType        respjson.Field\n\t\tFileID      respjson.Field\n\t\tMountPath   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 SessionResourceSpec) RawJSON() string\n```\n\n```go\nfunc (r *SessionResourceSpec) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SessionResourceSpecParam struct {\n\tType      string            `json:\"type\" api:\"required\"`\n\tFileID    string            `json:\"file_id\" api:\"required\"`\n\tMountPath param.Opt[string] `json:\"mount_path,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SessionResourceSpecParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *SessionResourceSpecParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SessionService struct {\n\tOptions   []option.RequestOption\n\tEvents    SessionEventService\n\tResources SessionResourceService\n\tThreads   SessionThreadService\n}\n```\nSessionService provides Forward Session operations.\n\n```go\nfunc NewSessionService(opts ...option.RequestOption) SessionService\n```\n\n```go\nfunc (r *SessionService) Archive(ctx context.Context, sessionID string, params SessionArchiveParams, opts ...option.RequestOption) (res *Session, err error)\n```\nArchive Session\n\n```go\nfunc (r *SessionService) Cancel(ctx context.Context, sessionID string, params SessionCancelParams, opts ...option.RequestOption) (res *Session, err error)\n```\nCancel the current Turn\n\n```go\nfunc (r *SessionService) Get(ctx context.Context, sessionID string, opts ...option.RequestOption) (res *Session, err error)\n```\nGet Session\n\n```go\nfunc (r *SessionService) List(ctx context.Context, params SessionListParams, opts ...option.RequestOption) (res *pagination.Page[Session], err error)\n```\nList Sessions\n\n```go\nfunc (r *SessionService) ListAutoPaging(ctx context.Context, params SessionListParams, opts ...option.RequestOption) *pagination.PageAutoPager[Session]\n```\n\n```go\nfunc (r *SessionService) New(ctx context.Context, params SessionNewParams, opts ...option.RequestOption) (res *Session, err error)\n```\nCreate Session. Adds \\_\\_qca\\_sdk\\_ metadata; conflicting reserved values fail before sending.\n\n```go\nfunc (r *SessionService) Update(ctx context.Context, sessionID string, params SessionUpdateParams, opts ...option.RequestOption) (res *Session, err error)\n```\nUpdate Session\n\n```go\ntype SessionStats struct {\n\tActiveSeconds   int64 `json:\"active_seconds\"`\n\tDurationSeconds int64 `json:\"duration_seconds\"`\n\tJSON            struct {\n\t\tActiveSeconds   respjson.Field\n\t\tDurationSeconds 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 SessionStats) RawJSON() string\n```\n\n```go\nfunc (r *SessionStats) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SessionTemplate struct {\n\tID      string      `json:\"id\"`\n\tType    string      `json:\"type\"`\n\tName    string      `json:\"name\"`\n\tModel   ModelConfig `json:\"model\"`\n\tVersion int64       `json:\"version\"`\n\tJSON    struct {\n\t\tID          respjson.Field\n\t\tType        respjson.Field\n\t\tName        respjson.Field\n\t\tModel       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```\n\n```go\nfunc (r SessionTemplate) RawJSON() string\n```\n\n```go\nfunc (r *SessionTemplate) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SessionThread struct {\n\tStats              SessionThreadStats      `json:\"stats\"`\n\tUsage              SessionThreadUsage      `json:\"usage\"`\n\tID                 string                  `json:\"id\"`\n\tType               string                  `json:\"type\"`\n\tSessionID          string                  `json:\"session_id\"`\n\tTemplateID         string                  `json:\"template_id\"`\n\tRole               string                  `json:\"role\"`\n\tStatus             string                  `json:\"status\"`\n\tStopReason         SessionThreadStopReason `json:\"stop_reason\"`\n\tCreatedAt          time.Time               `json:\"created_at\" format:\"date-time\"`\n\tUpdatedAt          time.Time               `json:\"updated_at\" format:\"date-time\"`\n\tParentThreadID     string                  `json:\"parent_thread_id\"`\n\tName               string                  `json:\"name\"`\n\tCreatedByToolUseID string                  `json:\"created_by_tool_use_id\"`\n\tArchivedAt         time.Time               `json:\"archived_at\" format:\"date-time\"`\n\tJSON               struct {\n\t\tStats              respjson.Field\n\t\tUsage              respjson.Field\n\t\tID                 respjson.Field\n\t\tType               respjson.Field\n\t\tSessionID          respjson.Field\n\t\tTemplateID         respjson.Field\n\t\tRole               respjson.Field\n\t\tStatus             respjson.Field\n\t\tStopReason         respjson.Field\n\t\tCreatedAt          respjson.Field\n\t\tUpdatedAt          respjson.Field\n\t\tParentThreadID     respjson.Field\n\t\tName               respjson.Field\n\t\tCreatedByToolUseID respjson.Field\n\t\tArchivedAt         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 SessionThread) RawJSON() string\n```\n\n```go\nfunc (r *SessionThread) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SessionThreadArchiveParams struct {\n\t// Identifies one logical archive attempt; generate a unique value for each new\n\t// attempt.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SessionThreadArchiveParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype SessionThreadEventListParams struct {\n\t// Page size, 1–100.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Return records after this Event ID.\n\tAfterID param.Opt[string] `query:\"after_id,omitzero\" json:\"-\"`\n\t// Return records before this Event ID.\n\tBeforeID param.Opt[string] `query:\"before_id,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SessionThreadEventListParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype SessionThreadEventService struct {\n\tOptions []option.RequestOption\n}\n```\nSessionThreadEventService provides Forward SessionThreadEvent operations.\n\n```go\nfunc NewSessionThreadEventService(opts ...option.RequestOption) SessionThreadEventService\n```\n\n```go\nfunc (r *SessionThreadEventService) List(ctx context.Context, sessionID string, threadID string, params SessionThreadEventListParams, opts ...option.RequestOption) (res *pagination.Page[SessionEvent], err error)\n```\nList Session Thread Events\n\n```go\nfunc (r *SessionThreadEventService) ListAutoPaging(ctx context.Context, sessionID string, threadID string, params SessionThreadEventListParams, opts ...option.RequestOption) *pagination.PageAutoPager[SessionEvent]\n```\n\n```go\nfunc (r *SessionThreadEventService) NewResumableStream(ctx context.Context, sessionID string, threadID string, params SessionThreadEventStreamParams, opts ...option.RequestOption) *ResumableSessionThreadEventStream\n```\nNewResumableStream subscribes to Thread Events and reconnects retryable failures with the latest yielded Last-Event-ID cursor. Thread idle events do not stop it.\n\n```go\nfunc (r *SessionThreadEventService) StreamEvents(ctx context.Context, sessionID string, threadID string, params SessionThreadEventStreamParams, opts ...option.RequestOption) *ssestream.Stream[SessionEvent]\n```\nSubscribe to the Session Thread Event stream\n\n```go\ntype SessionThreadEventStreamParams struct {\n\t// Resume the subscription after this Thread Event.\n\tLastEventID param.Opt[string] `header:\"Last-Event-ID,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SessionThreadEventStreamParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype SessionThreadListParams struct {\n\t// Page size, 1–100.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Return records after this Thread ID.\n\tAfterID param.Opt[string] `query:\"after_id,omitzero\" json:\"-\"`\n\t// Return records before this Thread ID.\n\tBeforeID param.Opt[string] `query:\"before_id,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SessionThreadListParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype SessionThreadService struct {\n\tOptions []option.RequestOption\n\tEvents  SessionThreadEventService\n}\n```\nSessionThreadService provides Forward SessionThread operations.\n\n```go\nfunc NewSessionThreadService(opts ...option.RequestOption) SessionThreadService\n```\n\n```go\nfunc (r *SessionThreadService) Archive(ctx context.Context, sessionID string, threadID string, params SessionThreadArchiveParams, opts ...option.RequestOption) (res *SessionThread, err error)\n```\nArchive Session Thread\n\n```go\nfunc (r *SessionThreadService) Get(ctx context.Context, sessionID string, threadID string, opts ...option.RequestOption) (res *SessionThread, err error)\n```\nGet Session Thread\n\n```go\nfunc (r *SessionThreadService) List(ctx context.Context, sessionID string, params SessionThreadListParams, opts ...option.RequestOption) (res *pagination.Page[SessionThread], err error)\n```\nList Session Threads\n\n```go\nfunc (r *SessionThreadService) ListAutoPaging(ctx context.Context, sessionID string, params SessionThreadListParams, opts ...option.RequestOption) *pagination.PageAutoPager[SessionThread]\n```\n\n```go\ntype SessionThreadStats struct {\n\tActiveSeconds   int64 `json:\"active_seconds\"`\n\tDurationSeconds int64 `json:\"duration_seconds\"`\n\tStartupSeconds  int64 `json:\"startup_seconds\"`\n\tJSON            struct {\n\t\tActiveSeconds   respjson.Field\n\t\tDurationSeconds respjson.Field\n\t\tStartupSeconds  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 SessionThreadStats) RawJSON() string\n```\n\n```go\nfunc (r *SessionThreadStats) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SessionThreadStopReason struct {\n\tType string `json:\"type\"`\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 SessionThreadStopReason) RawJSON() string\n```\n\n```go\nfunc (r *SessionThreadStopReason) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SessionThreadUsage struct {\n\tTotalCredits float64 `json:\"total_credits\"`\n\tJSON         struct {\n\t\tTotalCredits 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 SessionThreadUsage) RawJSON() string\n```\n\n```go\nfunc (r *SessionThreadUsage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SessionUpdateParams struct {\n\t// Omit to keep the default/current budget; use param.NullStruct[SessionBudgetParam]() to clear.\n\tBudget SessionBudgetParam `json:\"budget,omitzero\" api:\"nullable\"`\n\t// New Session title.\n\tTitle param.Opt[string] `json:\"title,omitzero\"`\n\t// Metadata merge patch; supplied keys overwrite existing keys, omitted keys are kept.\n\tMetadata map[string]any                 `json:\"metadata,omitzero\"`\n\tConfig   SessionUpdateParamsConfigParam `json:\"config,omitzero\"`\n\t// Optional idempotency key for requests with side effects.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SessionUpdateParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *SessionUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SessionUpdateParamsConfigParam struct {\n\t// Model override. Omit on create to inherit; explicit null on update restores inheritance.\n\tModel                ModelConfigUnionParam `json:\"model,omitzero\"`\n\tEnvironmentVariables map[string]any        `json:\"environment_variables,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SessionUpdateParamsConfigParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *SessionUpdateParamsConfigParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SessionUsage struct {\n\tTotalCredits          float64 `json:\"total_credits\"`\n\tModelCredits          float64 `json:\"model_credits\"`\n\tSandboxRuntimeCredits float64 `json:\"sandbox_runtime_credits\"`\n\tJSON                  struct {\n\t\tModelCredits          respjson.Field\n\t\tSandboxRuntimeCredits respjson.Field\n\t\tTotalCredits          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 SessionUsage) RawJSON() string\n```\n\n```go\nfunc (r *SessionUsage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Skill struct {\n\tID            string           `json:\"id\"`\n\tType          string           `json:\"type\"`\n\tDisplayTitle  string           `json:\"display_title\"`\n\tDescription   string           `json:\"description\"`\n\tSource        string           `json:\"source\"`\n\tLatestVersion string           `json:\"latest_version\"`\n\tMetadata      map[string]any   `json:\"metadata\"`\n\tCreatedAt     time.Time        `json:\"created_at\" format:\"date-time\"`\n\tUpdatedAt     time.Time        `json:\"updated_at\" format:\"date-time\"`\n\tIdentityID    string           `json:\"identity_id\" api:\"nullable\"`\n\tIconURL       string           `json:\"icon_url\" api:\"nullable\"`\n\tBindingInfo   map[string]int64 `json:\"binding_info\"`\n\tJSON          struct {\n\t\tID            respjson.Field\n\t\tType          respjson.Field\n\t\tDisplayTitle  respjson.Field\n\t\tDescription   respjson.Field\n\t\tSource        respjson.Field\n\t\tLatestVersion respjson.Field\n\t\tMetadata      respjson.Field\n\t\tCreatedAt     respjson.Field\n\t\tUpdatedAt     respjson.Field\n\t\tIdentityID    respjson.Field\n\t\tIconURL       respjson.Field\n\t\tBindingInfo   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 Skill) RawJSON() string\n```\n\n```go\nfunc (r *Skill) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SkillBinding struct {\n\tType    string `json:\"type\" api:\"required\"`\n\tSkillID string `json:\"skill_id\" api:\"required\"`\n\tVersion string `json:\"version\"`\n\tEnabled bool   `json:\"enabled\"`\n\tJSON    struct {\n\t\tType        respjson.Field\n\t\tSkillID     respjson.Field\n\t\tVersion     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```\n\n```go\nfunc (r SkillBinding) RawJSON() string\n```\n\n```go\nfunc (r *SkillBinding) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SkillBindingParam struct {\n\tType    string            `json:\"type\" api:\"required\"`\n\tSkillID string            `json:\"skill_id\" api:\"required\"`\n\tVersion param.Opt[string] `json:\"version,omitzero\"`\n\tEnabled param.Opt[bool]   `json:\"enabled,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SkillBindingParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *SkillBindingParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SkillGetParams struct {\n\t// Select identity ownership with a PAT. Omit when using a SAT.\n\tIdentityID param.Opt[string] `query:\"identity_id,omitzero\" json:\"-\"`\n\t// ⚠️ **Deprecated**: when `true`, the response also carries `content` and\n\t// `content_encoding` (a base64 zip). Responses carry the `Deprecation: true` header\n\t// when it is used. Use [Download Skill version content](./Versions/download.md)\n\t// instead.\n\tIncludeContent param.Opt[bool] `query:\"include_content,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SkillGetParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype SkillListParams struct {\n\t// Select identity ownership with a PAT. Omit when using a SAT.\n\tIdentityID param.Opt[string] `query:\"identity_id,omitzero\" json:\"-\"`\n\t// Page size, maximum 100.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Pagination cursor (recommended), taken from `next_page` in the previous response;\n\t// mutually exclusive with `after_id` and `before_id`.\n\tPage param.Opt[string] `query:\"page,omitzero\" json:\"-\"`\n\t// Cursor for the next page; mutually exclusive with `page` and `before_id`.\n\tAfterID param.Opt[string] `query:\"after_id,omitzero\" json:\"-\"`\n\t// Cursor for the previous page; mutually exclusive with `page` and `after_id`.\n\tBeforeID param.Opt[string] `query:\"before_id,omitzero\" json:\"-\"`\n\t// Search by Skill display title prefix, case-insensitive.\n\tDisplayTitle param.Opt[string] `query:\"display_title,omitzero\" json:\"-\"`\n\t// Filter by Skill source, one of `custom`, `qoder`. `before_id` is not supported\n\t// when `source` is set.\n\tSource param.Opt[string] `query:\"source,omitzero\" json:\"-\"`\n\t// ⚠️ **Deprecated**: compatibility alias for `display_title` with identical\n\t// semantics. Use `display_title` instead.\n\tName param.Opt[string] `query:\"name,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SkillListParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype SkillNewParams struct {\n\t// Select identity ownership with a PAT. Omit when using a SAT.\n\tIdentityID param.Opt[string] `query:\"identity_id,omitzero\" json:\"-\"`\n\t// Recommended upload field, which may **repeat** several times. Two shapes are\n\t// supported: (1) a single `.zip` archive; (2) a bare file tree — each part uploads\n\t// one file and carries its relative path in `filename` (such as\n\t// `code-review/SKILL.md`, `code-review/scripts/run.sh`). Neither the archive itself\n\t// nor its uncompressed total size may exceed 50 MB.\n\tFiles []io.Reader `json:\"files,omitzero\" format:\"binary\"`\n\t// Caller metadata object, at most 15 keys. `created_by` is reserved and must not be\n\t// sent (sending it returns 400).\n\tMetadata map[string]any `json:\"metadata,omitzero\" api:\"metadata\"`\n\t// Public ID of the Forward Resource icon.\n\tIconID param.Opt[string] `json:\"icon_id,omitzero\"`\n\t// ⚠️ **Deprecated**: a single `.zip` archive with relaxed packaging rules. Responses\n\t// carry the `Deprecation: true` header when it is used. Migrate to `files`.\n\tFile io.Reader `json:\"file,omitzero\" format:\"binary\"`\n\t// ⚠️ **Deprecated**: the final name is always parsed from the `name` in the\n\t// `SKILL.md` frontmatter of the uploaded package. The field is kept for\n\t// compatibility only and is ignored when sent.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// ⚠️ **Deprecated**: the final description is always parsed from `SKILL.md`.\n\tDescription param.Opt[string] `json:\"description,omitzero\"`\n\t// ⚠️ **Deprecated**: Skill creation type, one of `custom`, `prebuilt`, defaults to\n\t// `custom`. `prebuilt` makes the response `source` field return `qoder` (everything\n\t// else returns `custom`).\n\tType param.Opt[string] `json:\"type,omitzero\"`\n\t// Recommended. Retrying is safe when the same key is paired with an identical\n\t// normalized `files` fingerprint.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SkillNewParams) MarshalMultipart() ([]byte, string, error)\n```\n\n```go\nfunc (r SkillNewParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype SkillOverride struct {\n\tEnabled bool   `json:\"enabled\"`\n\tType    string `json:\"type\"`\n\tVersion string `json:\"version\"`\n\tJSON    struct {\n\t\tEnabled     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```\n\n```go\nfunc (r SkillOverride) RawJSON() string\n```\n\n```go\nfunc (r *SkillOverride) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SkillOverrideParam struct {\n\tEnabled param.Opt[bool]   `json:\"enabled,omitzero\"`\n\tType    param.Opt[string] `json:\"type,omitzero\"`\n\tVersion param.Opt[string] `json:\"version,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SkillOverrideParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *SkillOverrideParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SkillSearchParams struct {\n\t// Exact string metadata filters combined with AND (at most 16 entries).\n\tMetadata map[string]string `json:\"metadata,omitzero\"`\n\t// Page size; default 20, maximum 100.\n\tLimit param.Opt[int64] `json:\"limit,omitzero\"`\n\t// Opaque next_page cursor returned by the previous search response.\n\tPage param.Opt[string] `json:\"page,omitzero\"`\n\t// Skill source: custom or qoder.\n\tSource param.Opt[string] `json:\"source,omitzero\"`\n\t// Case-insensitive Skill display-title substring filter.\n\tDisplayTitle param.Opt[string] `json:\"display_title,omitzero\"`\n\t// Select Identity ownership with a PAT; omit with any SAT. Sent in the query only.\n\tIdentityID param.Opt[string] `query:\"identity_id,omitzero\" json:\"-\"`\n\t// Additional beta features; search-2026-08-31 is always included.\n\tBetas []string `header:\"x-qoder-beta,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\nSkillSearchParams contains JSON body filters for Search.\n\n```go\nfunc (r SkillSearchParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r SkillSearchParams) URLQuery() (url.Values, error)\n```\n\n```go\nfunc (r *SkillSearchParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SkillService struct {\n\tOptions  []option.RequestOption\n\tVersions SkillVersionService\n}\n```\nSkillService provides Forward Skill operations.\n\n```go\nfunc NewSkillService(opts ...option.RequestOption) SkillService\n```\n\n```go\nfunc (r *SkillService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)\n```\nDelete Skill\n\n```go\nfunc (r *SkillService) Get(ctx context.Context, id string, params SkillGetParams, opts ...option.RequestOption) (res *Skill, err error)\n```\nGet Skill\n\n```go\nfunc (r *SkillService) List(ctx context.Context, params SkillListParams, opts ...option.RequestOption) (res *pagination.PageCursor[Skill], err error)\n```\nList Skills\n\n```go\nfunc (r *SkillService) ListAutoPaging(ctx context.Context, params SkillListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[Skill]\n```\n\n```go\nfunc (r *SkillService) New(ctx context.Context, params SkillNewParams, opts ...option.RequestOption) (res *Skill, err error)\n```\nCreate Skill\n\n```go\nfunc (r *SkillService) Search(ctx context.Context, params SkillSearchParams, opts ...option.RequestOption) (*pagination.PageCursor[Skill], error)\n```\nSearch skills by metadata and resource filters. Adds the required search Beta header.\n\n```go\nfunc (r *SkillService) SearchAutoPaging(ctx context.Context, params SkillSearchParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[Skill]\n```\nSearchAutoPaging iterates all matching skills using opaque body cursors.\n\n```go\nfunc (r *SkillService) Update(ctx context.Context, id string, params SkillUpdateParams, opts ...option.RequestOption) (res *Skill, err error)\n```\nUpdate Skill\n\n```go\ntype SkillUpdateParams struct {\n\t// Select identity ownership with a PAT. Omit when using a SAT.\n\tIdentityID param.Opt[string] `query:\"identity_id,omitzero\" json:\"-\"`\n\t// New description.\n\tDescription param.Opt[string] `json:\"description,omitzero\"`\n\t// New content (the contents of a zip archive). Neither the archive itself nor its\n\t// uncompressed total size may exceed 50 MB, otherwise 400 is returned. The request\n\t// body as a whole (including base64 encoding and the JSON envelope) is capped at\n\t// about 67.7 MB, beyond which 413 is returned.\n\tContent param.Opt[string] `json:\"content,omitzero\"`\n\t// Encoding of `content`. Supports `base64`, `utf-8`, `utf8`, `plain`, `text`; when\n\t// omitted the value is treated as UTF-8 text. Sending this field requires a\n\t// non-empty `content` as well.\n\tContentEncoding param.Opt[string] `json:\"content_encoding,omitzero\"`\n\t// Metadata object that **replaces** the current metadata (not a merge). It must not\n\t// be `null` when sent, and each value must be a string. `created_by` is reserved and\n\t// must not be sent (sending it returns 400).\n\tMetadata map[string]any `json:\"metadata,omitzero\"`\n\t// Update or clear the Forward icon.\n\tIconID param.Opt[string] `json:\"icon_id,omitzero\" api:\"nullable\"`\n\t// ⚠️ **Deprecated**: the Skill name cannot be changed. A value sent must match the\n\t// current canonical name exactly, otherwise 400 is returned; a matching value is a\n\t// no-op.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SkillUpdateParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r SkillUpdateParams) URLQuery() (url.Values, error)\n```\n\n```go\nfunc (r *SkillUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SkillVersion struct {\n\tID            string         `json:\"id\"`\n\tSkillID       string         `json:\"skill_id\"`\n\tVersion       string         `json:\"version\"`\n\tName          string         `json:\"name\"`\n\tDescription   string         `json:\"description\"`\n\tDirectory     string         `json:\"directory\"`\n\tContentSize   int64          `json:\"content_size\"`\n\tContentSHA256 string         `json:\"content_sha256\"`\n\tStatus        string         `json:\"status\"`\n\tCreatedAt     time.Time      `json:\"created_at\" format:\"date-time\"`\n\tMetadata      map[string]any `json:\"metadata\"`\n\tJSON          struct {\n\t\tID            respjson.Field\n\t\tSkillID       respjson.Field\n\t\tVersion       respjson.Field\n\t\tName          respjson.Field\n\t\tDescription   respjson.Field\n\t\tDirectory     respjson.Field\n\t\tContentSize   respjson.Field\n\t\tContentSHA256 respjson.Field\n\t\tStatus        respjson.Field\n\t\tCreatedAt     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```\n\n```go\nfunc (r SkillVersion) RawJSON() string\n```\n\n```go\nfunc (r *SkillVersion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SkillVersionListParams struct {\n\t// Select identity ownership with a PAT. Omit when using a SAT.\n\tIdentityID param.Opt[string] `query:\"identity_id,omitzero\" json:\"-\"`\n\t// Page size, maximum 100, default 20.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Cursor for paging forward; take the value from `next_page` in the previous\n\t// response. Omit to start from the first page.\n\tPage param.Opt[string] `query:\"page,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SkillVersionListParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype SkillVersionNewParams struct {\n\t// Select identity ownership with a PAT. Omit when using a SAT.\n\tIdentityID param.Opt[string] `query:\"identity_id,omitzero\" json:\"-\"`\n\t// Upload field, which may appear **multiple** times. Two shapes are supported: • a\n\t// single `.zip` archive; • a bare file tree, where every part uploads one file and\n\t// `filename` carries its relative path (e.g. `customer-reply/SKILL.md`,\n\t// `customer-reply/scripts/run.sh`). Neither the archive itself nor the total\n\t// uncompressed size may exceed 50 MB.\n\tFiles []io.Reader `json:\"files\" api:\"required\" format:\"binary\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SkillVersionNewParams) MarshalMultipart() ([]byte, string, error)\n```\n\n```go\nfunc (r SkillVersionNewParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype SkillVersionService struct {\n\tOptions []option.RequestOption\n}\n```\nSkillVersionService provides Forward SkillVersion operations.\n\n```go\nfunc NewSkillVersionService(opts ...option.RequestOption) SkillVersionService\n```\n\n```go\nfunc (r *SkillVersionService) Delete(ctx context.Context, id string, version string, opts ...option.RequestOption) (res *DeletedSkillVersion, err error)\n```\nDelete Skill version\n\n```go\nfunc (r *SkillVersionService) Download(ctx context.Context, id string, version string, opts ...option.RequestOption) (res *http.Response, err error)\n```\nDownload Skill version content\n\n```go\nfunc (r *SkillVersionService) Get(ctx context.Context, id string, version string, opts ...option.RequestOption) (res *SkillVersion, err error)\n```\nGet Skill version\n\n```go\nfunc (r *SkillVersionService) List(ctx context.Context, id string, params SkillVersionListParams, opts ...option.RequestOption) (res *pagination.PageCursor[SkillVersion], err error)\n```\nList Skill versions\n\n```go\nfunc (r *SkillVersionService) ListAutoPaging(ctx context.Context, id string, params SkillVersionListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[SkillVersion]\n```\n\n```go\nfunc (r *SkillVersionService) New(ctx context.Context, id string, params SkillVersionNewParams, opts ...option.RequestOption) (res *SkillVersion, err error)\n```\nCreate Skill version\n\n```go\ntype StaticBearerUpdateParam struct {\n\tType  string            `json:\"type\" api:\"required\"`\n\tToken param.Opt[string] `json:\"token,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r StaticBearerUpdateParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *StaticBearerUpdateParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SystemOverride struct {\n\tMode    string `json:\"mode\"`\n\tContent string `json:\"content\"`\n\tJSON    struct {\n\t\tMode        respjson.Field\n\t\tContent     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 SystemOverride) RawJSON() string\n```\n\n```go\nfunc (r *SystemOverride) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SystemOverrideParam struct {\n\tMode    param.Opt[string] `json:\"mode,omitzero\"`\n\tContent param.Opt[string] `json:\"content,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SystemOverrideParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *SystemOverrideParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Template struct {\n\t// Maximum tool-call rounds per Turn; omitted when unset.\n\tMaxToolRounds     int64             `json:\"max_tool_rounds\"`\n\tManagedToolConfig ManagedToolConfig `json:\"managed_tool_config\"`\n\t// Always `template`.\n\tType string `json:\"type\"`\n\t// Template ID.\n\tID string `json:\"id\"`\n\t// Template name.\n\tName        string `json:\"name\"`\n\tDescription string `json:\"description\"`\n\t// Either `active` or `archived`.\n\tStatus    string    `json:\"status\"`\n\tCreatedAt time.Time `json:\"created_at\" format:\"date-time\"`\n\tUpdatedAt time.Time `json:\"updated_at\" format:\"date-time\"`\n\t// Mirrors the shape submitted in the request; the object form keeps `id`,\n\t// `effort` and `context_window`.\n\tModel      ModelConfig      `json:\"model\"`\n\tMultiagent MultiagentConfig `json:\"multiagent\"`\n\t// Default Environment ID.\n\tEnvironmentID        string                      `json:\"environment_id\"`\n\tTunnelID             string                      `json:\"tunnel_id\"`\n\tVaults               map[string]ResourceBinding  `json:\"vaults\"`\n\tFiles                map[string]ResourceBinding  `json:\"files\"`\n\tGitHubRepositories   map[string]GitHubRepository `json:\"github_repositories\"`\n\tSystem               string                      `json:\"system\"`\n\tTools                []Tool                      `json:\"tools\"`\n\tMCPServers           []MCPServer                 `json:\"mcp_servers\"`\n\tSkills               []SkillBinding              `json:\"skills\"`\n\tEnvironmentVariables map[string]string           `json:\"environment_variables\"`\n\t// Custom metadata.\n\tMetadata map[string]any `json:\"metadata\"`\n\tJSON     struct {\n\t\tMaxToolRounds        respjson.Field\n\t\tManagedToolConfig    respjson.Field\n\t\tType                 respjson.Field\n\t\tID                   respjson.Field\n\t\tName                 respjson.Field\n\t\tDescription          respjson.Field\n\t\tStatus               respjson.Field\n\t\tCreatedAt            respjson.Field\n\t\tUpdatedAt            respjson.Field\n\t\tModel                respjson.Field\n\t\tMultiagent           respjson.Field\n\t\tEnvironmentID        respjson.Field\n\t\tTunnelID             respjson.Field\n\t\tVaults               respjson.Field\n\t\tFiles                respjson.Field\n\t\tGitHubRepositories   respjson.Field\n\t\tSystem               respjson.Field\n\t\tTools                respjson.Field\n\t\tMCPServers           respjson.Field\n\t\tSkills               respjson.Field\n\t\tEnvironmentVariables 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```\n\n```go\nfunc (r Template) RawJSON() string\n```\n\n```go\nfunc (r *Template) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TemplateArchiveParams struct {\n\t// Optional idempotency key for requests with side effects.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r TemplateArchiveParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype TemplateCloneParams struct {\n\t// Name of the new Template; defaults to `\u003csource name\u003e Copy \u003crandom short ID\u003e`.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// Description of the new Template; defaults to the source description.\n\tDescription param.Opt[string] `json:\"description,omitzero\"`\n\t// Optional idempotency key for requests with side effects.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r TemplateCloneParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *TemplateCloneParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TemplateListParams struct {\n\t// Filter by `active` or `archived`.\n\tStatus param.Opt[string] `query:\"status,omitzero\" json:\"-\"`\n\t// Page size, maximum 100.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Cursor for the next page; cannot be combined with `before_id`.\n\tAfterID param.Opt[string] `query:\"after_id,omitzero\" json:\"-\"`\n\t// Cursor for the previous page; cannot be combined with `after_id`.\n\tBeforeID param.Opt[string] `query:\"before_id,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r TemplateListParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype TemplateNewParams struct {\n\t// Maximum tool-call rounds per Turn; must be positive. Omit or pass null to use the platform default.\n\tMaxToolRounds param.Opt[int64] `json:\"max_tool_rounds,omitzero\" api:\"nullable\"`\n\t// Replaces the complete managed tool list; use an empty list to disable all.\n\tManagedToolConfig ManagedToolConfigParam `json:\"managed_tool_config,omitzero\" api:\"nullable\"`\n\t// Template name, 1-256 characters, unique per user.\n\tName string `json:\"name\" api:\"required\"`\n\t// Model identifier. Accepts a string (such as `\"ultimate\"`), or an Agent model\n\t// object to configure `effort` or `context_window` at the same time. Use the\n\t// list models endpoint to discover the available values.\n\tModel ModelConfigUnionParam `json:\"model\" api:\"required\"`\n\t// Environment ID used by default when creating a Session.\n\tEnvironmentID string `json:\"environment_id\" api:\"required\"`\n\t// BYOC tunnel inherited by sessions created from this template.\n\tTunnelID param.Opt[string] `json:\"tunnel_id,omitzero\"`\n\t// Template description, up to 2048 characters.\n\tDescription param.Opt[string] `json:\"description,omitzero\"`\n\t// System Prompt, up to 100,000 characters.\n\tSystem param.Opt[string] `json:\"system,omitzero\"`\n\t// Tool configuration list, up to 128 entries.\n\tTools []ToolParam `json:\"tools,omitzero\"`\n\t// MCP Server configuration list, up to 20 entries.\n\tMCPServers []MCPServerParam `json:\"mcp_servers,omitzero\"`\n\t// Skill binding list, up to 20 entries.\n\tSkills []SkillBindingParam `json:\"skills,omitzero\"`\n\t// Multi-agent collaboration configuration. `type` must be `coordinator`; omit\n\t// it or pass `null` to leave it disabled.\n\tMultiagent MultiagentConfigParam `json:\"multiagent,omitzero\"`\n\t// Default Vault configuration, keyed by Vault ID.\n\tVaults map[string]ResourceBindingParam `json:\"vaults,omitzero\"`\n\t// Default file resource configuration, keyed by file ID.\n\tFiles map[string]ResourceBindingParam `json:\"files,omitzero\"`\n\t// Default GitHub repository configuration, keyed by a caller-chosen binding\n\t// key, up to 20 entries.\n\tGitHubRepositories map[string]GitHubRepositoryParam `json:\"github_repositories,omitzero\"`\n\t// Default Session environment variables.\n\tEnvironmentVariables EnvironmentVariablesUnionParam `json:\"environment_variables,omitzero\"`\n\t// Custom metadata.\n\tMetadata map[string]any `json:\"metadata,omitzero\"`\n\t// Optional idempotency key for requests with side effects.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// Must be set to `browser-use-2026-07-14` when Browser Use is enabled.\n\tQoderBeta param.Opt[string] `header:\"X-Qoder-Beta,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r TemplateNewParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *TemplateNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TemplateService struct {\n\tOptions []option.RequestOption\n}\n```\nTemplateService provides Forward Template operations.\n\n```go\nfunc NewTemplateService(opts ...option.RequestOption) TemplateService\n```\n\n```go\nfunc (r *TemplateService) Archive(ctx context.Context, templateID string, params TemplateArchiveParams, opts ...option.RequestOption) (res *Template, err error)\n```\nArchive Template\n\n```go\nfunc (r *TemplateService) Clone(ctx context.Context, templateID string, params TemplateCloneParams, opts ...option.RequestOption) (res *Template, err error)\n```\nClone Template\n\n```go\nfunc (r *TemplateService) Get(ctx context.Context, templateID string, opts ...option.RequestOption) (res *Template, err error)\n```\nGet Template\n\n```go\nfunc (r *TemplateService) List(ctx context.Context, params TemplateListParams, opts ...option.RequestOption) (res *pagination.Page[Template], err error)\n```\nList Templates\n\n```go\nfunc (r *TemplateService) ListAutoPaging(ctx context.Context, params TemplateListParams, opts ...option.RequestOption) *pagination.PageAutoPager[Template]\n```\n\n```go\nfunc (r *TemplateService) New(ctx context.Context, params TemplateNewParams, opts ...option.RequestOption) (res *Template, err error)\n```\nCreate Template\n\n```go\nfunc (r *TemplateService) Update(ctx context.Context, templateID string, params TemplateUpdateParams, opts ...option.RequestOption) (res *Template, err error)\n```\nUpdate Template\n\n```go\ntype TemplateUpdateParams struct {\n\t// Maximum tool-call rounds per Turn; must be positive. Omit to preserve the limit; pass null to clear it.\n\tMaxToolRounds param.Opt[int64] `json:\"max_tool_rounds,omitzero\" api:\"nullable\"`\n\t// Replaces the complete managed tool list; use an empty list to disable all.\n\tManagedToolConfig ManagedToolConfigParam `json:\"managed_tool_config,omitzero\" api:\"nullable\"`\n\t// New Template name.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// New Template description.\n\tDescription param.Opt[string] `json:\"description,omitzero\"`\n\t// New model identifier. Accepts a string, or an Agent model object to configure\n\t// `effort` or `context_window` at the same time. Use the list models endpoint\n\t// to discover the available values.\n\tModel ModelConfigUnionParam `json:\"model,omitzero\"`\n\t// New System Prompt.\n\tSystem param.Opt[string] `json:\"system,omitzero\"`\n\t// Replaces the tool configuration list wholesale.\n\tTools []ToolParam `json:\"tools,omitzero\"`\n\t// Replaces the MCP Server list wholesale.\n\tMCPServers []MCPServerParam `json:\"mcp_servers,omitzero\"`\n\t// Replaces the Skill binding list wholesale.\n\tSkills []SkillBindingParam `json:\"skills,omitzero\"`\n\t// Replaces the Multi-agent collaboration configuration wholesale; `null` clears\n\t// it, omitting it keeps the current configuration.\n\tMultiagent MultiagentConfigParam `json:\"multiagent,omitzero\"`\n\t// Replaces the default Environment ID; `null` or an empty string clears it.\n\tEnvironmentID param.Opt[string] `json:\"environment_id,omitzero\" api:\"nullable\"`\n\t// Omit to keep the current tunnel, or pass null to clear the binding.\n\tTunnelID param.Opt[string] `json:\"tunnel_id,omitzero\" api:\"nullable\"`\n\t// Replaces the default Vault configuration wholesale, keyed by Vault ID;\n\t// `null` clears it.\n\tVaults map[string]ResourceBindingParam `json:\"vaults,omitzero\"`\n\t// Replaces the default file resource configuration wholesale; `null` clears it.\n\tFiles map[string]ResourceBindingParam `json:\"files,omitzero\"`\n\t// Replaces the default GitHub repository configuration wholesale, keyed by\n\t// binding key; `null` or an empty object clears it.\n\tGitHubRepositories map[string]GitHubRepositoryParam `json:\"github_repositories,omitzero\"`\n\t// Replaces the default environment variables wholesale; `null` clears it.\n\tEnvironmentVariables EnvironmentVariablesUnionParam `json:\"environment_variables,omitzero\"`\n\t// Merges updates into the custom metadata.\n\tMetadata map[string]any `json:\"metadata,omitzero\"`\n\t// Optional idempotency key for requests with side effects.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// Must be set to `browser-use-2026-07-14` when the updated `tools` include the\n\t// Browser Use toolset.\n\tQoderBeta param.Opt[string] `header:\"X-Qoder-Beta,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r TemplateUpdateParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *TemplateUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TemplateUsage struct {\n\tType             string  `json:\"type\"`\n\tTemplateID       string  `json:\"template_id\"`\n\tActiveIdentities int64   `json:\"active_identities\"`\n\tSessionCount     int64   `json:\"session_count\"`\n\tActiveSeconds    float64 `json:\"active_seconds\"`\n\tCredits          float64 `json:\"credits\"`\n\tJSON             struct {\n\t\tType             respjson.Field\n\t\tTemplateID       respjson.Field\n\t\tActiveIdentities respjson.Field\n\t\tSessionCount     respjson.Field\n\t\tActiveSeconds    respjson.Field\n\t\tCredits          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 TemplateUsage) RawJSON() string\n```\n\n```go\nfunc (r *TemplateUsage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Tool struct {\n\tType            string         `json:\"type\" api:\"required\"`\n\tEnabledTools    []string       `json:\"enabled_tools\"`\n\tDisallowedTools []string       `json:\"disallowed_tools\"`\n\tConfigs         []ToolConfig   `json:\"configs\"`\n\tMCPServerName   string         `json:\"mcp_server_name\"`\n\tName            string         `json:\"name\"`\n\tDescription     string         `json:\"description\"`\n\tInputSchema     map[string]any `json:\"input_schema\"`\n\tJSON            struct {\n\t\tType            respjson.Field\n\t\tEnabledTools    respjson.Field\n\t\tDisallowedTools respjson.Field\n\t\tConfigs         respjson.Field\n\t\tMCPServerName   respjson.Field\n\t\tName            respjson.Field\n\t\tDescription     respjson.Field\n\t\tInputSchema     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```\n\n```go\nfunc (r *Tool) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ToolApprovalDecision struct {\n\tType       string `json:\"type\"`\n\tReasonCode string `json:\"reason_code\"`\n\tJSON       struct {\n\t\tType        respjson.Field\n\t\tReasonCode  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 ToolApprovalDecision) RawJSON() string\n```\n\n```go\nfunc (r *ToolApprovalDecision) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ToolApprovalEvaluation struct {\n\tType                string               `json:\"type\"`\n\tEvaluatedPermission ToolApprovalDecision `json:\"evaluated_permission\"`\n\tJSON                struct {\n\t\tType                respjson.Field\n\t\tEvaluatedPermission 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 ToolApprovalEvaluation) RawJSON() string\n```\n\n```go\nfunc (r *ToolApprovalEvaluation) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ToolConfig struct {\n\tName             string           `json:\"name\" api:\"required\"`\n\tEnabled          bool             `json:\"enabled\"`\n\tPermissionPolicy PermissionPolicy `json:\"permission_policy\"`\n\tJSON             struct {\n\t\tName             respjson.Field\n\t\tEnabled          respjson.Field\n\t\tPermissionPolicy 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 ToolConfig) RawJSON() string\n```\n\n```go\nfunc (r *ToolConfig) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ToolConfigParam struct {\n\tName             string                `json:\"name\" api:\"required\"`\n\tEnabled          param.Opt[bool]       `json:\"enabled,omitzero\"`\n\tPermissionPolicy PermissionPolicyParam `json:\"permission_policy,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ToolConfigParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *ToolConfigParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ToolOverride struct {\n\tEnabled          bool             `json:\"enabled\"`\n\tPermissionPolicy PermissionPolicy `json:\"permission_policy\"`\n\tJSON             struct {\n\t\tEnabled          respjson.Field\n\t\tPermissionPolicy 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 ToolOverride) RawJSON() string\n```\n\n```go\nfunc (r *ToolOverride) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ToolOverrideParam struct {\n\tEnabled          param.Opt[bool]       `json:\"enabled,omitzero\"`\n\tPermissionPolicy PermissionPolicyParam `json:\"permission_policy,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ToolOverrideParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *ToolOverrideParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ToolParam struct {\n\tType            string            `json:\"type\" api:\"required\"`\n\tEnabledTools    []string          `json:\"enabled_tools,omitzero\"`\n\tDisallowedTools []string          `json:\"disallowed_tools,omitzero\"`\n\tConfigs         []ToolConfigParam `json:\"configs,omitzero\"`\n\tMCPServerName   param.Opt[string] `json:\"mcp_server_name,omitzero\"`\n\tName            param.Opt[string] `json:\"name,omitzero\"`\n\tDescription     param.Opt[string] `json:\"description,omitzero\"`\n\tInputSchema     map[string]any    `json:\"input_schema,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ToolParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *ToolParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype UsageListParams struct {\n\tStartAt    string            `query:\"start_at\" json:\"-\" api:\"required\"`\n\tEndAt      string            `query:\"end_at\" json:\"-\" api:\"required\"`\n\tLimit      param.Opt[int64]  `query:\"limit,omitzero\" json:\"-\"`\n\tAfterID    param.Opt[string] `query:\"after_id,omitzero\" json:\"-\"`\n\tBeforeID   param.Opt[string] `query:\"before_id,omitzero\" json:\"-\"`\n\tIdentityID param.Opt[string] `query:\"identity_id,omitzero\" json:\"-\"`\n\t// Repeated query values; an entry may also contain comma-separated IDs.\n\tIdentityIDs []string          `query:\"identity_ids,omitzero\" json:\"-\"`\n\tTemplateID  param.Opt[string] `query:\"template_id,omitzero\" json:\"-\"`\n\t// Repeated query values; an entry may also contain comma-separated IDs.\n\tTemplateIDs []string `query:\"template_ids,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\nUsageListParams accepts only hourly parameters. StartAt is inclusive; EndAt is exclusive, with a maximum span of 744 hours. Both use YYYY-MM-DDTHH:00:00 in Asia/Shanghai for CN and Global.\n\n```go\nfunc (r UsageListParams) URLQuery() (url.Values, error)\n```\n\n```go\nfunc (r *UsageListParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype UsageService struct{ Options []option.RequestOption }\n```\n\n```go\nfunc NewUsageService(opts ...option.RequestOption) UsageService\n```\n\n```go\nfunc (r *UsageService) ListIdentities(ctx context.Context, params UsageListParams, opts ...option.RequestOption) (res *pagination.Page[IdentityUsage], err error)\n```\nListIdentities aggregates an hourly Asia/Shanghai window. PAT or Admin SAT required.\n\n```go\nfunc (r *UsageService) ListIdentitiesAutoPaging(ctx context.Context, params UsageListParams, opts ...option.RequestOption) *pagination.PageAutoPager[IdentityUsage]\n```\n\n```go\nfunc (r *UsageService) ListTemplates(ctx context.Context, params UsageListParams, opts ...option.RequestOption) (res *pagination.Page[TemplateUsage], err error)\n```\nListTemplates aggregates an hourly Asia/Shanghai window. PAT or Admin SAT required.\n\n```go\nfunc (r *UsageService) ListTemplatesAutoPaging(ctx context.Context, params UsageListParams, opts ...option.RequestOption) *pagination.PageAutoPager[TemplateUsage]\n```\n\n```go\ntype Vault struct {\n\t// Vault ID。\n\tID string `json:\"id\"`\n\t// Always `vault`.\n\tType string `json:\"type\"`\n\t// Vault display name.\n\tDisplayName string `json:\"display_name\"`\n\t// Vault metadata.\n\tMetadata map[string]any `json:\"metadata\"`\n\t// Creation time in RFC 3339 format.\n\tCreatedAt time.Time `json:\"created_at\" format:\"date-time\"`\n\t// Last update time in RFC 3339 format.\n\tUpdatedAt time.Time `json:\"updated_at\" format:\"date-time\"`\n\t// Owning Forward identity.\n\tIdentityID string `json:\"identity_id\" api:\"nullable\"`\n\tJSON       struct {\n\t\tID          respjson.Field\n\t\tType        respjson.Field\n\t\tDisplayName respjson.Field\n\t\tMetadata    respjson.Field\n\t\tCreatedAt   respjson.Field\n\t\tUpdatedAt   respjson.Field\n\t\tIdentityID  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```\n\n```go\nfunc (r *Vault) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultCredential struct {\n\t// Credential ID.\n\tID string `json:\"id\"`\n\t// Always `vault_credential`.\n\tType string `json:\"type\"`\n\t// ID of the owning Vault.\n\tVaultID string `json:\"vault_id\"`\n\t// Redacted authentication material.\n\tAuth VaultCredentialAuth `json:\"auth\"`\n\t// Currently always an empty string.\n\tDisplayName string `json:\"display_name\"`\n\t// Credential metadata.\n\tMetadata map[string]any `json:\"metadata\"`\n\t// Archive time, null while active.\n\tArchivedAt time.Time `json:\"archived_at\" api:\"nullable\" format:\"date-time\"`\n\t// Creation time in RFC 3339 format.\n\tCreatedAt time.Time `json:\"created_at\" format:\"date-time\"`\n\t// Last update time in RFC 3339 format.\n\tUpdatedAt time.Time `json:\"updated_at\" format:\"date-time\"`\n\tJSON      struct {\n\t\tID          respjson.Field\n\t\tType        respjson.Field\n\t\tVaultID     respjson.Field\n\t\tAuth        respjson.Field\n\t\tDisplayName respjson.Field\n\t\tMetadata    respjson.Field\n\t\tArchivedAt  respjson.Field\n\t\tCreatedAt   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 VaultCredential) RawJSON() string\n```\n\n```go\nfunc (r *VaultCredential) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultCredentialAuth struct {\n\tType         string `json:\"type\"`\n\tMCPServerURL string `json:\"mcp_server_url\"`\n\tSecretName   string `json:\"secret_name\"`\n\tJSON         struct {\n\t\tType         respjson.Field\n\t\tMCPServerURL respjson.Field\n\t\tSecretName   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 VaultCredentialAuth) RawJSON() string\n```\n\n```go\nfunc (r *VaultCredentialAuth) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultCredentialListParams struct {\n\t// Select identity ownership with a PAT. Omit when using a SAT.\n\tIdentityID param.Opt[string] `query:\"identity_id,omitzero\" json:\"-\"`\n\t// Page size, maximum 100.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Pagination cursor (recommended), taken from `next_page` in the previous response;\n\t// mutually exclusive with `after_id` and `before_id`.\n\tPage param.Opt[string] `query:\"page,omitzero\" json:\"-\"`\n\t// Cursor for the next page; mutually exclusive with `page` and `before_id`.\n\tAfterID param.Opt[string] `query:\"after_id,omitzero\" json:\"-\"`\n\t// Cursor for the previous page; mutually exclusive with `page` and `after_id`.\n\tBeforeID param.Opt[string] `query:\"before_id,omitzero\" json:\"-\"`\n\t// Search by `mcp_server_url`.\n\tName param.Opt[string] `query:\"name,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r VaultCredentialListParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype VaultCredentialNewParams struct {\n\t// Select identity ownership with a PAT. Omit when using a SAT.\n\tIdentityID param.Opt[string] `query:\"identity_id,omitzero\" json:\"-\"`\n\t// Credential authentication material; supports `static_bearer` and `mcp_oauth`. The\n\t// response only returns redacted, non-secret fields.\n\tAuth map[string]any `json:\"auth\" api:\"required\"`\n\t// Compatibility field; currently not persisted, and Forward always returns an empty\n\t// string.\n\tDisplayName param.Opt[string] `json:\"display_name,omitzero\"`\n\t// Metadata object. `created_by` is reserved and must not be sent (sending it returns\n\t// 400).\n\tMetadata map[string]any `json:\"metadata,omitzero\"`\n\t// Optional idempotency key for the create request. The same key may only be reused\n\t// for an identical request.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r VaultCredentialNewParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r VaultCredentialNewParams) URLQuery() (url.Values, error)\n```\n\n```go\nfunc (r *VaultCredentialNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultCredentialService struct {\n\tOptions []option.RequestOption\n}\n```\nVaultCredentialService provides Forward VaultCredential operations.\n\n```go\nfunc NewVaultCredentialService(opts ...option.RequestOption) VaultCredentialService\n```\n\n```go\nfunc (r *VaultCredentialService) Delete(ctx context.Context, id string, credID string, opts ...option.RequestOption) (err error)\n```\nDelete Credential\n\n```go\nfunc (r *VaultCredentialService) Get(ctx context.Context, id string, credID string, opts ...option.RequestOption) (res *VaultCredential, err error)\n```\nGet Credential\n\n```go\nfunc (r *VaultCredentialService) List(ctx context.Context, id string, params VaultCredentialListParams, opts ...option.RequestOption) (res *pagination.PageCursor[VaultCredential], err error)\n```\nList Credentials\n\n```go\nfunc (r *VaultCredentialService) ListAutoPaging(ctx context.Context, id string, params VaultCredentialListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[VaultCredential]\n```\n\n```go\nfunc (r *VaultCredentialService) New(ctx context.Context, id string, params VaultCredentialNewParams, opts ...option.RequestOption) (res *VaultCredential, err error)\n```\nCreate Credential\n\n```go\nfunc (r *VaultCredentialService) Update(ctx context.Context, id string, credID string, params VaultCredentialUpdateParams, opts ...option.RequestOption) (res *VaultCredential, err error)\n```\nUpdate merges auth or metadata. Write-only secret rotation is never automatically retried.\n\n```go\ntype VaultCredentialUpdateAuthUnionParam struct {\n\tOfStaticBearer        *StaticBearerUpdateParam        `json:\",omitzero,inline\"`\n\tOfMCPOAuth            *MCPOAuthUpdateParam            `json:\",omitzero,inline\"`\n\tOfEnvironmentVariable *EnvironmentVariableUpdateParam `json:\",omitzero,inline\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r VaultCredentialUpdateAuthUnionParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *VaultCredentialUpdateAuthUnionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultCredentialUpdateParams struct {\n\tAuth       VaultCredentialUpdateAuthUnionParam `json:\"auth,omitzero\"`\n\tMetadata   map[string]any                      `json:\"metadata,omitzero\"`\n\tIdentityID param.Opt[string]                   `query:\"identity_id,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r VaultCredentialUpdateParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r VaultCredentialUpdateParams) URLQuery() (url.Values, error)\n```\n\n```go\nfunc (r *VaultCredentialUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultListParams struct {\n\t// Select identity ownership with a PAT. Omit when using a SAT.\n\tIdentityID param.Opt[string] `query:\"identity_id,omitzero\" json:\"-\"`\n\t// Page size, maximum 100.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Pagination cursor (recommended), taken from `next_page` in the previous\n\t// response; mutually exclusive with `after_id` and `before_id`.\n\tPage param.Opt[string] `query:\"page,omitzero\" json:\"-\"`\n\t// Cursor for the next page; mutually exclusive with `page` and `before_id`.\n\tAfterID param.Opt[string] `query:\"after_id,omitzero\" json:\"-\"`\n\t// Cursor for the previous page; mutually exclusive with `page` and `after_id`.\n\tBeforeID param.Opt[string] `query:\"before_id,omitzero\" json:\"-\"`\n\t// Search by `display_name`.\n\tName param.Opt[string] `query:\"name,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r VaultListParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype VaultNewParams struct {\n\t// Select identity ownership with a PAT. Omit when using a SAT.\n\tIdentityID param.Opt[string] `query:\"identity_id,omitzero\" json:\"-\"`\n\t// Vault display name.\n\tDisplayName string `json:\"display_name\" api:\"required\"`\n\t// Metadata object; `created_by` is reserved and cannot be supplied (supplying it\n\t// returns 400).\n\tMetadata map[string]any `json:\"metadata,omitzero\"`\n\t// Optional idempotency key for the create request. A given key may only be reused\n\t// for an identical request; when omitted, no local replay protection applies.\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r VaultNewParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r VaultNewParams) URLQuery() (url.Values, error)\n```\n\n```go\nfunc (r *VaultNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultSearchParams struct {\n\t// Exact string metadata filters combined with AND (at most 16 entries).\n\tMetadata map[string]string `json:\"metadata,omitzero\"`\n\t// Page size; default 20, maximum 100.\n\tLimit param.Opt[int64] `json:\"limit,omitzero\"`\n\t// Opaque next_page cursor returned by the previous search response.\n\tPage param.Opt[string] `json:\"page,omitzero\"`\n\t// Include archived resources; defaults to false.\n\tIncludeArchived param.Opt[bool] `json:\"include_archived,omitzero\"`\n\t// Case-insensitive name substring filter.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// Select Identity ownership with a PAT; omit with any SAT. Sent in the query only.\n\tIdentityID param.Opt[string] `query:\"identity_id,omitzero\" json:\"-\"`\n\t// Additional beta features; search-2026-08-31 is always included.\n\tBetas []string `header:\"x-qoder-beta,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\nVaultSearchParams contains JSON body filters for Search.\n\n```go\nfunc (r VaultSearchParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r VaultSearchParams) URLQuery() (url.Values, error)\n```\n\n```go\nfunc (r *VaultSearchParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VaultService struct {\n\tOptions     []option.RequestOption\n\tCredentials VaultCredentialService\n}\n```\nVaultService provides Forward Vault operations.\n\n```go\nfunc NewVaultService(opts ...option.RequestOption) VaultService\n```\n\n```go\nfunc (r *VaultService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)\n```\nDelete Vault\n\n```go\nfunc (r *VaultService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Vault, err error)\n```\nGet Vault\n\n```go\nfunc (r *VaultService) List(ctx context.Context, params VaultListParams, opts ...option.RequestOption) (res *pagination.PageCursor[Vault], err error)\n```\nList Vaults\n\n```go\nfunc (r *VaultService) ListAutoPaging(ctx context.Context, params VaultListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[Vault]\n```\n\n```go\nfunc (r *VaultService) New(ctx context.Context, params VaultNewParams, opts ...option.RequestOption) (res *Vault, err error)\n```\nCreate Vault\n\n```go\nfunc (r *VaultService) Search(ctx context.Context, params VaultSearchParams, opts ...option.RequestOption) (*pagination.PageCursor[Vault], error)\n```\nSearch vaults by metadata and resource filters. Adds the required search Beta header.\n\n```go\nfunc (r *VaultService) SearchAutoPaging(ctx context.Context, params VaultSearchParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[Vault]\n```\nSearchAutoPaging iterates all matching vaults using opaque body cursors.\n\n```go\ntype WebhookEndpoint struct {\n\tID              string         `json:\"id\"`\n\tURL             string         `json:\"url\"`\n\tDescription     string         `json:\"description\"`\n\tEvents          []string       `json:\"events\"`\n\tMetadata        map[string]any `json:\"metadata\"`\n\tActive          bool           `json:\"active\"`\n\tCreatedAt       time.Time      `json:\"created_at\" format:\"date-time\"`\n\tUpdatedAt       time.Time      `json:\"updated_at\" format:\"date-time\"`\n\tLastSuccessAt   time.Time      `json:\"last_success_at\" format:\"date-time\" api:\"nullable\"`\n\tLastFailureAt   time.Time      `json:\"last_failure_at\" format:\"date-time\" api:\"nullable\"`\n\tDisabledReason  string         `json:\"disabled_reason\"`\n\tConsecutiveFail int64          `json:\"consecutive_fail\"`\n\tJSON            struct {\n\t\tID              respjson.Field\n\t\tURL             respjson.Field\n\t\tDescription     respjson.Field\n\t\tEvents          respjson.Field\n\t\tMetadata        respjson.Field\n\t\tActive          respjson.Field\n\t\tCreatedAt       respjson.Field\n\t\tUpdatedAt       respjson.Field\n\t\tLastSuccessAt   respjson.Field\n\t\tLastFailureAt   respjson.Field\n\t\tDisabledReason  respjson.Field\n\t\tConsecutiveFail respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nWebhookEndpoint preserves unknown response fields.\n\n```go\nfunc (r WebhookEndpoint) RawJSON() string\n```\n\n```go\nfunc (r *WebhookEndpoint) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WebhookEndpointCreateResponse struct {\n\tID          string         `json:\"id\"`\n\tURL         string         `json:\"url\"`\n\tDescription string         `json:\"description\"`\n\tEvents      []string       `json:\"events\"`\n\tMetadata    map[string]any `json:\"metadata\"`\n\tActive      bool           `json:\"active\"`\n\tCreatedAt   time.Time      `json:\"created_at\" format:\"date-time\"`\n\t// Returned only at creation. Store securely; do not log.\n\tSigningSecret string `json:\"signing_secret\"`\n\tJSON          struct {\n\t\tID            respjson.Field\n\t\tURL           respjson.Field\n\t\tDescription   respjson.Field\n\t\tEvents        respjson.Field\n\t\tMetadata      respjson.Field\n\t\tActive        respjson.Field\n\t\tCreatedAt     respjson.Field\n\t\tSigningSecret respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nWebhookEndpointCreateResponse preserves unknown response fields.\n\n```go\nfunc (r WebhookEndpointCreateResponse) RawJSON() string\n```\n\n```go\nfunc (r *WebhookEndpointCreateResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WebhookEndpointListParams struct {\n\tLimit   param.Opt[int64]  `query:\"limit,omitzero\" json:\"-\"`\n\tAfterID param.Opt[string] `query:\"after_id,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r WebhookEndpointListParams) URLQuery() (url.Values, error)\n```\n\n```go\ntype WebhookEndpointNewParams struct {\n\tURL string `json:\"url\" api:\"required\"`\n\t// Full event names or \"*\". Unknown event names are passed to the server.\n\tEvents         []string          `json:\"events\" api:\"required\"`\n\tDescription    param.Opt[string] `json:\"description,omitzero\"`\n\tMetadata       map[string]string `json:\"metadata,omitzero\"`\n\tIdempotencyKey param.Opt[string] `header:\"Idempotency-Key,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r WebhookEndpointNewParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *WebhookEndpointNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WebhookEndpointService struct{ Options []option.RequestOption }\n```\n\n```go\nfunc NewWebhookEndpointService(opts ...option.RequestOption) WebhookEndpointService\n```\n\n```go\nfunc (r *WebhookEndpointService) Delete(ctx context.Context, endpointID string, opts ...option.RequestOption) (err error)\n```\nDelete a webhook endpoint.\n\n```go\nfunc (r *WebhookEndpointService) Disable(ctx context.Context, endpointID string, opts ...option.RequestOption) (res *WebhookEndpoint, err error)\n```\nDisable a webhook endpoint.\n\n```go\nfunc (r *WebhookEndpointService) Enable(ctx context.Context, endpointID string, opts ...option.RequestOption) (res *WebhookEndpoint, err error)\n```\nEnable a webhook endpoint.\n\n```go\nfunc (r *WebhookEndpointService) Get(ctx context.Context, endpointID string, opts ...option.RequestOption) (res *WebhookEndpoint, err error)\n```\nGet a webhook endpoint.\n\n```go\nfunc (r *WebhookEndpointService) List(ctx context.Context, params WebhookEndpointListParams, opts ...option.RequestOption) (res *pagination.Page[WebhookEndpoint], err error)\n```\nList a webhook endpoint page.\n\n```go\nfunc (r *WebhookEndpointService) ListAutoPaging(ctx context.Context, params WebhookEndpointListParams, opts ...option.RequestOption) *pagination.PageAutoPager[WebhookEndpoint]\n```\n\n```go\nfunc (r *WebhookEndpointService) New(ctx context.Context, params WebhookEndpointNewParams, opts ...option.RequestOption) (res *WebhookEndpointCreateResponse, err error)\n```\nNew a webhook endpoint.\n\n```go\nfunc (r *WebhookEndpointService) Test(ctx context.Context, endpointID string, opts ...option.RequestOption) (res *WebhookEndpointTestResponse, err error)\n```\nTest queues a synthetic event; acceptance does not confirm delivery.\n\n```go\nfunc (r *WebhookEndpointService) Update(ctx context.Context, endpointID string, params WebhookEndpointUpdateParams, opts ...option.RequestOption) (res *WebhookEndpoint, err error)\n```\nUpdate a webhook endpoint.\n\n```go\ntype WebhookEndpointTestResponse struct {\n\tEventID      int64 `json:\"event_id\"`\n\tDeliveryRows int64 `json:\"delivery_rows\"`\n\tJSON         struct {\n\t\tEventID      respjson.Field\n\t\tDeliveryRows respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nWebhookEndpointTestResponse preserves unknown response fields.\n\n```go\nfunc (r WebhookEndpointTestResponse) RawJSON() string\n```\n\n```go\nfunc (r *WebhookEndpointTestResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WebhookEndpointUpdateParams struct {\n\tURL         param.Opt[string] `json:\"url,omitzero\"`\n\tDescription param.Opt[string] `json:\"description,omitzero\"`\n\tEvents      []string          `json:\"events,omitzero\"`\n\tActive      param.Opt[bool]   `json:\"active,omitzero\"`\n\t// Values are merged; param.Null[string]() removes a key.\n\tMetadata map[string]param.Opt[string] `json:\"metadata,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r WebhookEndpointUpdateParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *WebhookEndpointUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WebhookService struct{ Endpoints WebhookEndpointService }\n```\nWebhookService manages account webhook subscriptions using a PAT or administrator SAT.\n\n```go\nfunc NewWebhookService(opts ...option.RequestOption) WebhookService\n```\n\n","path":"github.com/QoderAI/qoder-cloud-agents-sdk-go/forward","name":"forward","synopsis":"","isRedistributable":true}
