| ... | @@ -3,6 +3,11 @@ | ... | @@ -3,6 +3,11 @@ |
| 3 | | 3 | |
| 4 | import * as Schema from "effect/Schema"; | 4 | import * as Schema from "effect/Schema"; |
| 5 | | 5 | |
| | 6 | export type ApplyPatchApprovalParams__ThreadId = string; |
| | 7 | export const ApplyPatchApprovalParams__ThreadId = Schema.String.annotate({ |
| | 8 | identifier: "ApplyPatchApprovalParams__ThreadId", |
| | 9 | }); |
| | 10 | |
| 6 | export type ApplyPatchApprovalParams__FileChange = | 11 | export type ApplyPatchApprovalParams__FileChange = |
| 7 | | { readonly content: string; readonly type: "add" } | 12 | | { readonly content: string; readonly type: "add" } |
| 8 | | { readonly content: string; readonly type: "delete" } | 13 | | { readonly content: string; readonly type: "delete" } |
| ... | @@ -24,143 +29,80 @@ export const ApplyPatchApprovalParams__FileChange = Schema.Union( | ... | @@ -24,143 +29,80 @@ export const ApplyPatchApprovalParams__FileChange = Schema.Union( |
| 24 | }).annotate({ title: "UpdateFileChange" }), | 29 | }).annotate({ title: "UpdateFileChange" }), |
| 25 | ], | 30 | ], |
| 26 | { mode: "oneOf" }, | 31 | { mode: "oneOf" }, |
| 27 | ); | 32 | ).annotate({ identifier: "ApplyPatchApprovalParams__FileChange" }); |
| 28 | | | |
| 29 | export type ApplyPatchApprovalParams__ThreadId = string; | | |
| 30 | export const ApplyPatchApprovalParams__ThreadId = Schema.String; | | |
| 31 | | 33 | |
| 32 | export type ApplyPatchApprovalResponse__NetworkPolicyRuleAction = "allow" | "deny"; | 34 | export type ApplyPatchApprovalResponse__NetworkPolicyRuleAction = "allow" | "deny"; |
| 33 | export const ApplyPatchApprovalResponse__NetworkPolicyRuleAction = Schema.Literals([ | 35 | export const ApplyPatchApprovalResponse__NetworkPolicyRuleAction = Schema.Literals([ |
| 34 | "allow", | 36 | "allow", |
| 35 | "deny", | 37 | "deny", |
| 36 | ]); | 38 | ]).annotate({ identifier: "ApplyPatchApprovalResponse__NetworkPolicyRuleAction" }); |
| 37 | | 39 | |
| 38 | export type ChatgptAuthTokensRefreshParams__ChatgptAuthTokensRefreshReason = "unauthorized"; | 40 | export type ChatgptAuthTokensRefreshParams__ChatgptAuthTokensRefreshReason = "unauthorized"; |
| 39 | export const ChatgptAuthTokensRefreshParams__ChatgptAuthTokensRefreshReason = | 41 | export const ChatgptAuthTokensRefreshParams__ChatgptAuthTokensRefreshReason = Schema.Union( |
| 40 | Schema.Literal("unauthorized"); | | |
| 41 | | | |
| 42 | export type ClientRequest__AbsolutePathBuf = string; | | |
| 43 | export const ClientRequest__AbsolutePathBuf = Schema.String.annotate({ | | |
| 44 | description: | | |
| 45 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | | |
| 46 | }); | | |
| 47 | | | |
| 48 | export type ClientRequest__AddCreditsNudgeCreditType = "credits" | "usage_limit"; | | |
| 49 | export const ClientRequest__AddCreditsNudgeCreditType = Schema.Literals(["credits", "usage_limit"]); | | |
| 50 | | | |
| 51 | export type ClientRequest__AdditionalContextKind = "untrusted" | "application"; | | |
| 52 | export const ClientRequest__AdditionalContextKind = Schema.Literals(["untrusted", "application"]); | | |
| 53 | | | |
| 54 | export type ClientRequest__AgentMessageInputContent = | | |
| 55 | | { readonly text: string; readonly type: "input_text" } | | |
| 56 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; | | |
| 57 | export const ClientRequest__AgentMessageInputContent = Schema.Union( | | |
| 58 | [ | 42 | [ |
| 59 | Schema.Struct({ | 43 | Schema.Literal("unauthorized").annotate({ |
| 60 | text: Schema.String, | 44 | description: "Codex attempted a backend request and received `401 Unauthorized`.", |
| 61 | type: Schema.Literal("input_text").annotate({ | 45 | }), |
| 62 | title: "InputTextAgentMessageInputContentType", | | |
| 63 | }), | | |
| 64 | }).annotate({ title: "InputTextAgentMessageInputContent" }), | | |
| 65 | Schema.Struct({ | | |
| 66 | encrypted_content: Schema.String, | | |
| 67 | type: Schema.Literal("encrypted_content").annotate({ | | |
| 68 | title: "EncryptedContentAgentMessageInputContentType", | | |
| 69 | }), | | |
| 70 | }).annotate({ title: "EncryptedContentAgentMessageInputContent" }), | | |
| 71 | ], | 46 | ], |
| 72 | { mode: "oneOf" }, | 47 | { mode: "oneOf" }, |
| 73 | ); | 48 | ).annotate({ identifier: "ChatgptAuthTokensRefreshParams__ChatgptAuthTokensRefreshReason" }); |
| 74 | | 49 | |
| 75 | export type ClientRequest__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent"; | 50 | export type ClientRequest__RequestId = string | number; |
| 76 | export const ClientRequest__ApprovalsReviewer = Schema.Literals([ | 51 | export const ClientRequest__RequestId = Schema.Union([ |
| 77 | "user", | 52 | Schema.String, |
| 78 | "auto_review", | 53 | Schema.Number.annotate({ format: "int64" }).check( |
| 79 | "guardian_subagent", | 54 | Schema.isInt().annotate({ expected: "an integer" }), |
| 80 | ]).annotate({ | 55 | ), |
| 81 | description: | 56 | ]).annotate({ identifier: "ClientRequest__RequestId" }); |
| 82 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", | | |
| 83 | }); | | |
| 84 | | 57 | |
| 85 | export type ClientRequest__AppsInstalledParams = { | 58 | export type ClientRequest__InitializeCapabilities = { |
| 86 | readonly forceRefresh?: boolean; | 59 | readonly experimentalApi?: boolean; |
| 87 | readonly threadId?: string | null; | 60 | readonly mcpServerOpenaiFormElicitation?: boolean; |
| | 61 | readonly optOutNotificationMethods?: ReadonlyArray<string> | null; |
| | 62 | readonly requestAttestation?: boolean; |
| 88 | }; | 63 | }; |
| 89 | export const ClientRequest__AppsInstalledParams = Schema.Struct({ | 64 | export const ClientRequest__InitializeCapabilities = Schema.Struct({ |
| 90 | forceRefresh: Schema.optionalKey( | 65 | experimentalApi: Schema.optionalKey( |
| 91 | Schema.Boolean.annotate({ | 66 | Schema.Boolean.annotate({ |
| 92 | description: | 67 | description: "Opt into receiving experimental API methods and fields.", |
| 93 | "When true and Apps are permitted, refresh and publish the hosted connector runtime tool snapshot first.", | 68 | default: false, |
| 94 | }), | 69 | }), |
| 95 | ), | 70 | ), |
| 96 | threadId: Schema.optionalKey( | 71 | mcpServerOpenaiFormElicitation: Schema.optionalKey( |
| 97 | Schema.Union([ | | |
| 98 | Schema.String.annotate({ | | |
| 99 | description: "Optional loaded thread id used to evaluate effective app configuration.", | | |
| 100 | }), | | |
| 101 | Schema.Null, | | |
| 102 | ]), | | |
| 103 | ), | | |
| 104 | }).annotate({ description: "Read the committed installed connector runtime snapshot." }); | | |
| 105 | | | |
| 106 | export type ClientRequest__AppsListParams = { | | |
| 107 | readonly cursor?: string | null; | | |
| 108 | readonly forceRefetch?: boolean; | | |
| 109 | readonly limit?: number | null; | | |
| 110 | readonly threadId?: string | null; | | |
| 111 | }; | | |
| 112 | export const ClientRequest__AppsListParams = Schema.Struct({ | | |
| 113 | cursor: Schema.optionalKey( | | |
| 114 | Schema.Union([ | | |
| 115 | Schema.String.annotate({ | | |
| 116 | description: "Opaque pagination cursor returned by a previous call.", | | |
| 117 | }), | | |
| 118 | Schema.Null, | | |
| 119 | ]), | | |
| 120 | ), | | |
| 121 | forceRefetch: Schema.optionalKey( | | |
| 122 | Schema.Boolean.annotate({ | 72 | Schema.Boolean.annotate({ |
| 123 | description: "When true, bypass app caches and fetch the latest data from sources.", | 73 | description: "Allow downstream MCP servers to request OpenAI extended form elicitations.", |
| 124 | }), | 74 | }), |
| 125 | ), | 75 | ), |
| 126 | limit: Schema.optionalKey( | 76 | optOutNotificationMethods: Schema.optionalKey( |
| 127 | Schema.Union([ | | |
| 128 | Schema.Number.annotate({ | | |
| 129 | description: "Optional page size; defaults to a reasonable server-side value.", | | |
| 130 | format: "uint32", | | |
| 131 | }) | | |
| 132 | .check(Schema.isInt()) | | |
| 133 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 134 | Schema.Null, | | |
| 135 | ]), | | |
| 136 | ), | | |
| 137 | threadId: Schema.optionalKey( | | |
| 138 | Schema.Union([ | 77 | Schema.Union([ |
| 139 | Schema.String.annotate({ | 78 | Schema.Array(Schema.String).annotate({ |
| 140 | description: | 79 | description: |
| 141 | "Optional thread id used to evaluate app feature gating from that thread's config.", | 80 | "Exact notification method names that should be suppressed for this connection (for example `thread/started`).", |
| 142 | }), | 81 | }), |
| 143 | Schema.Null, | 82 | Schema.Null, |
| 144 | ]), | 83 | ]), |
| 145 | ), | 84 | ), |
| 146 | }).annotate({ description: "EXPERIMENTAL - list available apps/connectors." }); | 85 | requestAttestation: Schema.optionalKey( |
| 147 | | | |
| 148 | export type ClientRequest__AppsReadParams = { | | |
| 149 | readonly appIds: ReadonlyArray<string>; | | |
| 150 | readonly includeTools?: boolean; | | |
| 151 | }; | | |
| 152 | export const ClientRequest__AppsReadParams = Schema.Struct({ | | |
| 153 | appIds: Schema.Array(Schema.String).annotate({ | | |
| 154 | description: | | |
| 155 | "App ids to read. The server accepts at most 100 ids and deduplicates repeated ids while preserving their first-request order.", | | |
| 156 | }), | | |
| 157 | includeTools: Schema.optionalKey( | | |
| 158 | Schema.Boolean.annotate({ | 86 | Schema.Boolean.annotate({ |
| 159 | description: | 87 | description: "Opt into `attestation/generate` requests for upstream `x-oai-attestation`.", |
| 160 | "When true, include display-only public tool summaries in the returned metadata.", | 88 | default: false, |
| 161 | }), | 89 | }), |
| 162 | ), | 90 | ), |
| 163 | }).annotate({ description: "EXPERIMENTAL - read metadata for specific apps/connectors." }); | 91 | }).annotate({ |
| | 92 | description: "Client-declared capabilities negotiated during initialize.", |
| | 93 | identifier: "ClientRequest__InitializeCapabilities", |
| | 94 | }); |
| | 95 | |
| | 96 | export type ClientRequest__ClientInfo = { |
| | 97 | readonly name: string; |
| | 98 | readonly title?: string | null; |
| | 99 | readonly version: string; |
| | 100 | }; |
| | 101 | export const ClientRequest__ClientInfo = Schema.Struct({ |
| | 102 | name: Schema.String, |
| | 103 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 104 | version: Schema.String, |
| | 105 | }).annotate({ identifier: "ClientRequest__ClientInfo" }); |
| 164 | | 106 | |
| 165 | export type ClientRequest__AskForApproval = | 107 | export type ClientRequest__AskForApproval = |
| 166 | | "untrusted" | 108 | | "untrusted" |
| ... | @@ -189,182 +131,229 @@ export const ClientRequest__AskForApproval = Schema.Union( | ... | @@ -189,182 +131,229 @@ export const ClientRequest__AskForApproval = Schema.Union( |
| 189 | }).annotate({ title: "GranularAskForApproval" }), | 131 | }).annotate({ title: "GranularAskForApproval" }), |
| 190 | ], | 132 | ], |
| 191 | { mode: "oneOf" }, | 133 | { mode: "oneOf" }, |
| 192 | ); | 134 | ).annotate({ identifier: "ClientRequest__AskForApproval" }); |
| 193 | | 135 | |
| 194 | export type ClientRequest__CancelLoginAccountParams = { readonly loginId: string }; | 136 | export type ClientRequest__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent"; |
| 195 | export const ClientRequest__CancelLoginAccountParams = Schema.Struct({ loginId: Schema.String }); | 137 | export const ClientRequest__ApprovalsReviewer = Schema.Literals([ |
| | 138 | "user", |
| | 139 | "auto_review", |
| | 140 | "guardian_subagent", |
| | 141 | ]).annotate({ |
| | 142 | description: |
| | 143 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", |
| | 144 | identifier: "ClientRequest__ApprovalsReviewer", |
| | 145 | }); |
| 196 | | 146 | |
| 197 | export type ClientRequest__ClientInfo = { | 147 | export type ClientRequest__Personality = "none" | "friendly" | "pragmatic"; |
| | 148 | export const ClientRequest__Personality = Schema.Literals([ |
| | 149 | "none", |
| | 150 | "friendly", |
| | 151 | "pragmatic", |
| | 152 | ]).annotate({ identifier: "ClientRequest__Personality" }); |
| | 153 | |
| | 154 | export type ClientRequest__SandboxMode = "read-only" | "workspace-write" | "danger-full-access"; |
| | 155 | export const ClientRequest__SandboxMode = Schema.Literals([ |
| | 156 | "read-only", |
| | 157 | "workspace-write", |
| | 158 | "danger-full-access", |
| | 159 | ]).annotate({ identifier: "ClientRequest__SandboxMode" }); |
| | 160 | |
| | 161 | export type ClientRequest__ThreadStartSource = "startup" | "clear"; |
| | 162 | export const ClientRequest__ThreadStartSource = Schema.Literals(["startup", "clear"]).annotate({ |
| | 163 | identifier: "ClientRequest__ThreadStartSource", |
| | 164 | }); |
| | 165 | |
| | 166 | export type ClientRequest__ThreadSource = string; |
| | 167 | export const ClientRequest__ThreadSource = Schema.String.annotate({ |
| | 168 | identifier: "ClientRequest__ThreadSource", |
| | 169 | }); |
| | 170 | |
| | 171 | export type ClientRequest__ThreadArchiveParams = { readonly threadId: string }; |
| | 172 | export const ClientRequest__ThreadArchiveParams = Schema.Struct({ |
| | 173 | threadId: Schema.String, |
| | 174 | }).annotate({ identifier: "ClientRequest__ThreadArchiveParams" }); |
| | 175 | |
| | 176 | export type ClientRequest__ThreadDeleteParams = { readonly threadId: string }; |
| | 177 | export const ClientRequest__ThreadDeleteParams = Schema.Struct({ |
| | 178 | threadId: Schema.String, |
| | 179 | }).annotate({ identifier: "ClientRequest__ThreadDeleteParams" }); |
| | 180 | |
| | 181 | export type ClientRequest__ThreadUnsubscribeParams = { readonly threadId: string }; |
| | 182 | export const ClientRequest__ThreadUnsubscribeParams = Schema.Struct({ |
| | 183 | threadId: Schema.String, |
| | 184 | }).annotate({ identifier: "ClientRequest__ThreadUnsubscribeParams" }); |
| | 185 | |
| | 186 | export type ClientRequest__ThreadSetNameParams = { |
| 198 | readonly name: string; | 187 | readonly name: string; |
| 199 | readonly title?: string | null; | 188 | readonly threadId: string; |
| 200 | readonly version: string; | | |
| 201 | }; | 189 | }; |
| 202 | export const ClientRequest__ClientInfo = Schema.Struct({ | 190 | export const ClientRequest__ThreadSetNameParams = Schema.Struct({ |
| 203 | name: Schema.String, | 191 | name: Schema.String, |
| 204 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 192 | threadId: Schema.String, |
| 205 | version: Schema.String, | 193 | }).annotate({ identifier: "ClientRequest__ThreadSetNameParams" }); |
| 206 | }); | | |
| 207 | | 194 | |
| 208 | export type ClientRequest__CommandExecResizeParams = { | 195 | export type ClientRequest__ThreadGoalStatus = |
| 209 | readonly processId: string; | 196 | | "active" |
| 210 | readonly size: { readonly cols: number; readonly rows: number }; | 197 | | "paused" |
| 211 | }; | 198 | | "blocked" |
| 212 | export const ClientRequest__CommandExecResizeParams = Schema.Struct({ | 199 | | "usageLimited" |
| 213 | processId: Schema.String.annotate({ | 200 | | "budgetLimited" |
| 214 | description: | 201 | | "complete"; |
| 215 | "Client-supplied, connection-scoped `processId` from the original `command/exec` request.", | 202 | export const ClientRequest__ThreadGoalStatus = Schema.Literals([ |
| 216 | }), | 203 | "active", |
| 217 | size: Schema.Struct({ | 204 | "paused", |
| 218 | cols: Schema.Number.annotate({ | 205 | "blocked", |
| 219 | description: "Terminal width in character cells.", | 206 | "usageLimited", |
| 220 | format: "uint16", | 207 | "budgetLimited", |
| 221 | }) | 208 | "complete", |
| 222 | .check(Schema.isInt()) | 209 | ]).annotate({ identifier: "ClientRequest__ThreadGoalStatus" }); |
| 223 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 224 | rows: Schema.Number.annotate({ | | |
| 225 | description: "Terminal height in character cells.", | | |
| 226 | format: "uint16", | | |
| 227 | }) | | |
| 228 | .check(Schema.isInt()) | | |
| 229 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 230 | }).annotate({ description: "PTY size in character cells for `command/exec` PTY sessions." }), | | |
| 231 | }).annotate({ description: "Resize a running PTY-backed `command/exec` session." }); | | |
| 232 | | 210 | |
| 233 | export type ClientRequest__CommandExecTerminalSize = { | 211 | export type ClientRequest__ThreadGoalGetParams = { readonly threadId: string }; |
| 234 | readonly cols: number; | 212 | export const ClientRequest__ThreadGoalGetParams = Schema.Struct({ |
| 235 | readonly rows: number; | 213 | threadId: Schema.String, |
| 236 | }; | 214 | }).annotate({ identifier: "ClientRequest__ThreadGoalGetParams" }); |
| 237 | export const ClientRequest__CommandExecTerminalSize = Schema.Struct({ | | |
| 238 | cols: Schema.Number.annotate({ | | |
| 239 | description: "Terminal width in character cells.", | | |
| 240 | format: "uint16", | | |
| 241 | }) | | |
| 242 | .check(Schema.isInt()) | | |
| 243 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 244 | rows: Schema.Number.annotate({ | | |
| 245 | description: "Terminal height in character cells.", | | |
| 246 | format: "uint16", | | |
| 247 | }) | | |
| 248 | .check(Schema.isInt()) | | |
| 249 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 250 | }).annotate({ description: "PTY size in character cells for `command/exec` PTY sessions." }); | | |
| 251 | | 215 | |
| 252 | export type ClientRequest__CommandExecTerminateParams = { readonly processId: string }; | 216 | export type ClientRequest__ThreadGoalClearParams = { readonly threadId: string }; |
| 253 | export const ClientRequest__CommandExecTerminateParams = Schema.Struct({ | 217 | export const ClientRequest__ThreadGoalClearParams = Schema.Struct({ |
| 254 | processId: Schema.String.annotate({ | 218 | threadId: Schema.String, |
| 255 | description: | 219 | }).annotate({ identifier: "ClientRequest__ThreadGoalClearParams" }); |
| 256 | "Client-supplied, connection-scoped `processId` from the original `command/exec` request.", | | |
| 257 | }), | | |
| 258 | }).annotate({ description: "Terminate a running `command/exec` session." }); | | |
| 259 | | 220 | |
| 260 | export type ClientRequest__CommandExecWriteParams = { | 221 | export type ClientRequest__ThreadMetadataGitInfoUpdateParams = { |
| 261 | readonly closeStdin?: boolean; | 222 | readonly branch?: string | null; |
| 262 | readonly deltaBase64?: string | null; | 223 | readonly originUrl?: string | null; |
| 263 | readonly processId: string; | 224 | readonly sha?: string | null; |
| 264 | }; | 225 | }; |
| 265 | export const ClientRequest__CommandExecWriteParams = Schema.Struct({ | 226 | export const ClientRequest__ThreadMetadataGitInfoUpdateParams = Schema.Struct({ |
| 266 | closeStdin: Schema.optionalKey( | 227 | branch: Schema.optionalKey( |
| 267 | Schema.Boolean.annotate({ | | |
| 268 | description: "Close stdin after writing `deltaBase64`, if present.", | | |
| 269 | }), | | |
| 270 | ), | | |
| 271 | deltaBase64: Schema.optionalKey( | | |
| 272 | Schema.Union([ | 228 | Schema.Union([ |
| 273 | Schema.String.annotate({ description: "Optional base64-encoded stdin bytes to write." }), | 229 | Schema.String.annotate({ |
| | 230 | description: |
| | 231 | "Omit to leave the stored branch unchanged, set to `null` to clear it, or provide a non-empty string to replace it.", |
| | 232 | }), |
| 274 | Schema.Null, | 233 | Schema.Null, |
| 275 | ]), | 234 | ]), |
| 276 | ), | 235 | ), |
| 277 | processId: Schema.String.annotate({ | 236 | originUrl: Schema.optionalKey( |
| 278 | description: | | |
| 279 | "Client-supplied, connection-scoped `processId` from the original `command/exec` request.", | | |
| 280 | }), | | |
| 281 | }).annotate({ | | |
| 282 | description: "Write stdin bytes to a running `command/exec` session, close stdin, or both.", | | |
| 283 | }); | | |
| 284 | | | |
| 285 | export type ClientRequest__CommandMigration = { readonly name: string }; | | |
| 286 | export const ClientRequest__CommandMigration = Schema.Struct({ name: Schema.String }); | | |
| 287 | | | |
| 288 | export type ClientRequest__ConfigReadParams = { | | |
| 289 | readonly cwd?: string | null; | | |
| 290 | readonly includeLayers?: boolean; | | |
| 291 | }; | | |
| 292 | export const ClientRequest__ConfigReadParams = Schema.Struct({ | | |
| 293 | cwd: Schema.optionalKey( | | |
| 294 | Schema.Union([ | 237 | Schema.Union([ |
| 295 | Schema.String.annotate({ | 238 | Schema.String.annotate({ |
| 296 | description: | 239 | description: |
| 297 | "Optional working directory to resolve project config layers. If specified, return the effective config as seen from that directory (i.e., including any project layers between `cwd` and the project/repo root).", | 240 | "Omit to leave the stored origin URL unchanged, set to `null` to clear it, or provide a non-empty string to replace it.", |
| 298 | }), | 241 | }), |
| 299 | Schema.Null, | 242 | Schema.Null, |
| 300 | ]), | 243 | ]), |
| 301 | ), | 244 | ), |
| 302 | includeLayers: Schema.optionalKey(Schema.Boolean), | 245 | sha: Schema.optionalKey( |
| 303 | }); | | |
| 304 | | | |
| 305 | export type ClientRequest__ConsumeAccountRateLimitResetCreditParams = { | | |
| 306 | readonly creditId?: string | null; | | |
| 307 | readonly idempotencyKey: string; | | |
| 308 | }; | | |
| 309 | export const ClientRequest__ConsumeAccountRateLimitResetCreditParams = Schema.Struct({ | | |
| 310 | creditId: Schema.optionalKey( | | |
| 311 | Schema.Union([ | 246 | Schema.Union([ |
| 312 | Schema.String.annotate({ | 247 | Schema.String.annotate({ |
| 313 | description: | 248 | description: |
| 314 | "Opaque reset-credit identifier to redeem. When omitted, the backend selects the next available credit.", | 249 | "Omit to leave the stored commit unchanged, set to `null` to clear it, or provide a non-empty string to replace it.", |
| 315 | }), | 250 | }), |
| 316 | Schema.Null, | 251 | Schema.Null, |
| 317 | ]), | 252 | ]), |
| 318 | ), | 253 | ), |
| 319 | idempotencyKey: Schema.String.annotate({ | 254 | }).annotate({ identifier: "ClientRequest__ThreadMetadataGitInfoUpdateParams" }); |
| | 255 | |
| | 256 | export type ClientRequest__ThreadUnarchiveParams = { readonly threadId: string }; |
| | 257 | export const ClientRequest__ThreadUnarchiveParams = Schema.Struct({ |
| | 258 | threadId: Schema.String, |
| | 259 | }).annotate({ identifier: "ClientRequest__ThreadUnarchiveParams" }); |
| | 260 | |
| | 261 | export type ClientRequest__ThreadCompactStartParams = { readonly threadId: string }; |
| | 262 | export const ClientRequest__ThreadCompactStartParams = Schema.Struct({ |
| | 263 | threadId: Schema.String, |
| | 264 | }).annotate({ identifier: "ClientRequest__ThreadCompactStartParams" }); |
| | 265 | |
| | 266 | export type ClientRequest__ThreadShellCommandParams = { |
| | 267 | readonly command: string; |
| | 268 | readonly threadId: string; |
| | 269 | }; |
| | 270 | export const ClientRequest__ThreadShellCommandParams = Schema.Struct({ |
| | 271 | command: Schema.String.annotate({ |
| 320 | description: | 272 | description: |
| 321 | "Identifies one logical reset attempt. A UUID is recommended; reuse the same value when retrying that attempt.", | 273 | "Shell command string evaluated by the thread's configured shell. Unlike `command/exec`, this intentionally preserves shell syntax such as pipes, redirects, and quoting. This runs unsandboxed with full access rather than inheriting the thread sandbox policy.", |
| 322 | }), | 274 | }), |
| 323 | }); | 275 | threadId: Schema.String, |
| 324 | | 276 | }).annotate({ identifier: "ClientRequest__ThreadShellCommandParams" }); |
| 325 | export type ClientRequest__ConversationTextRole = "user" | "developer" | "assistant"; | | |
| 326 | export const ClientRequest__ConversationTextRole = Schema.Literals([ | | |
| 327 | "user", | | |
| 328 | "developer", | | |
| 329 | "assistant", | | |
| 330 | ]); | | |
| 331 | | 277 | |
| 332 | export type ClientRequest__DynamicToolNamespaceTool = { | 278 | export type ClientRequest__ThreadApproveGuardianDeniedActionParams = { |
| 333 | readonly deferLoading?: boolean; | 279 | readonly event: Schema.Json; |
| 334 | readonly description: string; | 280 | readonly threadId: string; |
| 335 | readonly inputSchema: unknown; | | |
| 336 | readonly name: string; | | |
| 337 | readonly type: "function"; | | |
| 338 | }; | 281 | }; |
| 339 | export const ClientRequest__DynamicToolNamespaceTool = Schema.Union( | 282 | export const ClientRequest__ThreadApproveGuardianDeniedActionParams = Schema.Struct({ |
| 340 | [ | 283 | event: Schema.Json.annotate({ |
| 341 | Schema.Struct({ | 284 | expected: "JSON value", |
| 342 | deferLoading: Schema.optionalKey(Schema.Boolean), | 285 | description: "Serialized `codex_protocol::protocol::GuardianAssessmentEvent`.", |
| 343 | description: Schema.String, | 286 | }), |
| 344 | inputSchema: Schema.Unknown, | 287 | threadId: Schema.String, |
| 345 | name: Schema.String, | 288 | }).annotate({ identifier: "ClientRequest__ThreadApproveGuardianDeniedActionParams" }); |
| 346 | type: Schema.Literal("function").annotate({ title: "FunctionDynamicToolNamespaceToolType" }), | | |
| 347 | }).annotate({ title: "FunctionDynamicToolNamespaceTool" }), | | |
| 348 | ], | | |
| 349 | { mode: "oneOf" }, | | |
| 350 | ); | | |
| 351 | | 289 | |
| 352 | export type ClientRequest__ExperimentalFeatureEnablementSetParams = { | 290 | export type ClientRequest__ThreadRollbackParams = { |
| 353 | readonly enablement: { readonly [x: string]: boolean }; | 291 | readonly numTurns: number; |
| | 292 | readonly threadId: string; |
| 354 | }; | 293 | }; |
| 355 | export const ClientRequest__ExperimentalFeatureEnablementSetParams = Schema.Struct({ | 294 | export const ClientRequest__ThreadRollbackParams = Schema.Struct({ |
| 356 | enablement: Schema.Record(Schema.String, Schema.Boolean).annotate({ | 295 | numTurns: Schema.Number.annotate({ |
| 357 | description: | 296 | description: |
| 358 | "Process-wide runtime feature enablement keyed by canonical feature name.\n\nOnly named features are updated. Omitted features are left unchanged. Send an empty map for a no-op.", | 297 | "The number of turns to drop from the end of the thread. Must be >= 1.\n\nThis only modifies the thread's history and does not revert local file changes that have been made by the agent. Clients are responsible for reverting these changes.", |
| 359 | }), | 298 | format: "uint32", |
| | 299 | }) |
| | 300 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 301 | .check( |
| | 302 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 303 | ), |
| | 304 | threadId: Schema.String, |
| | 305 | }).annotate({ |
| | 306 | description: "DEPRECATED: `thread/rollback` will be removed soon.", |
| | 307 | identifier: "ClientRequest__ThreadRollbackParams", |
| 360 | }); | 308 | }); |
| 361 | | 309 | |
| 362 | export type ClientRequest__ExperimentalFeatureListParams = { | 310 | export type ClientRequest__ThreadListCwdFilter = string | ReadonlyArray<string>; |
| | 311 | export const ClientRequest__ThreadListCwdFilter = Schema.Union([ |
| | 312 | Schema.String, |
| | 313 | Schema.Array(Schema.String), |
| | 314 | ]).annotate({ identifier: "ClientRequest__ThreadListCwdFilter" }); |
| | 315 | |
| | 316 | export type ClientRequest__SortDirection = "asc" | "desc"; |
| | 317 | export const ClientRequest__SortDirection = Schema.Literals(["asc", "desc"]).annotate({ |
| | 318 | identifier: "ClientRequest__SortDirection", |
| | 319 | }); |
| | 320 | |
| | 321 | export type ClientRequest__ThreadSortKey = "created_at" | "updated_at" | "recency_at"; |
| | 322 | export const ClientRequest__ThreadSortKey = Schema.Literals([ |
| | 323 | "created_at", |
| | 324 | "updated_at", |
| | 325 | "recency_at", |
| | 326 | ]).annotate({ identifier: "ClientRequest__ThreadSortKey" }); |
| | 327 | |
| | 328 | export type ClientRequest__ThreadSourceKind = |
| | 329 | | "cli" |
| | 330 | | "vscode" |
| | 331 | | "exec" |
| | 332 | | "appServer" |
| | 333 | | "subAgent" |
| | 334 | | "subAgentReview" |
| | 335 | | "subAgentCompact" |
| | 336 | | "subAgentThreadSpawn" |
| | 337 | | "subAgentOther" |
| | 338 | | "unknown"; |
| | 339 | export const ClientRequest__ThreadSourceKind = Schema.Literals([ |
| | 340 | "cli", |
| | 341 | "vscode", |
| | 342 | "exec", |
| | 343 | "appServer", |
| | 344 | "subAgent", |
| | 345 | "subAgentReview", |
| | 346 | "subAgentCompact", |
| | 347 | "subAgentThreadSpawn", |
| | 348 | "subAgentOther", |
| | 349 | "unknown", |
| | 350 | ]).annotate({ identifier: "ClientRequest__ThreadSourceKind" }); |
| | 351 | |
| | 352 | export type ClientRequest__ThreadLoadedListParams = { |
| 363 | readonly cursor?: string | null; | 353 | readonly cursor?: string | null; |
| 364 | readonly limit?: number | null; | 354 | readonly limit?: number | null; |
| 365 | readonly threadId?: string | null; | | |
| 366 | }; | 355 | }; |
| 367 | export const ClientRequest__ExperimentalFeatureListParams = Schema.Struct({ | 356 | export const ClientRequest__ThreadLoadedListParams = Schema.Struct({ |
| 368 | cursor: Schema.optionalKey( | 357 | cursor: Schema.optionalKey( |
| 369 | Schema.Union([ | 358 | Schema.Union([ |
| 370 | Schema.String.annotate({ | 359 | Schema.String.annotate({ |
| ... | @@ -376,439 +365,385 @@ export const ClientRequest__ExperimentalFeatureListParams = Schema.Struct({ | ... | @@ -376,439 +365,385 @@ export const ClientRequest__ExperimentalFeatureListParams = Schema.Struct({ |
| 376 | limit: Schema.optionalKey( | 365 | limit: Schema.optionalKey( |
| 377 | Schema.Union([ | 366 | Schema.Union([ |
| 378 | Schema.Number.annotate({ | 367 | Schema.Number.annotate({ |
| 379 | description: "Optional page size; defaults to a reasonable server-side value.", | 368 | description: "Optional page size; defaults to no limit.", |
| 380 | format: "uint32", | 369 | format: "uint32", |
| 381 | }) | 370 | }) |
| 382 | .check(Schema.isInt()) | 371 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 383 | .check(Schema.isGreaterThanOrEqualTo(0)), | 372 | .check( |
| 384 | Schema.Null, | 373 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| 385 | ]), | 374 | expected: "a value greater than or equal to 0", |
| 386 | ), | 375 | }), |
| 387 | threadId: Schema.optionalKey( | 376 | ), |
| 388 | Schema.Union([ | | |
| 389 | Schema.String.annotate({ | | |
| 390 | description: | | |
| 391 | "Optional loaded thread id. Pass this when showing feature state for an existing thread so enablement is computed from that thread's refreshed config, including project-local config for the thread's cwd.", | | |
| 392 | }), | | |
| 393 | Schema.Null, | 377 | Schema.Null, |
| 394 | ]), | 378 | ]), |
| 395 | ), | 379 | ), |
| 396 | }); | 380 | }).annotate({ identifier: "ClientRequest__ThreadLoadedListParams" }); |
| 397 | | 381 | |
| 398 | export type ClientRequest__ExternalAgentConfigDetectParams = { | 382 | export type ClientRequest__ThreadReadParams = { |
| 399 | readonly cwds?: ReadonlyArray<string> | null; | 383 | readonly includeTurns?: boolean; |
| 400 | readonly includeHome?: boolean; | 384 | readonly threadId: string; |
| 401 | readonly migrationSource?: string | null; | | |
| 402 | readonly source?: string | null; | | |
| 403 | }; | 385 | }; |
| 404 | export const ClientRequest__ExternalAgentConfigDetectParams = Schema.Struct({ | 386 | export const ClientRequest__ThreadReadParams = Schema.Struct({ |
| 405 | cwds: Schema.optionalKey( | 387 | includeTurns: Schema.optionalKey( |
| 406 | Schema.Union([ | | |
| 407 | Schema.Array(Schema.String).annotate({ | | |
| 408 | description: "Zero or more working directories to include for repo-scoped detection.", | | |
| 409 | }), | | |
| 410 | Schema.Null, | | |
| 411 | ]), | | |
| 412 | ), | | |
| 413 | includeHome: Schema.optionalKey( | | |
| 414 | Schema.Boolean.annotate({ | 388 | Schema.Boolean.annotate({ |
| 415 | description: "If true, include detection under the user's home directory.", | 389 | description: "When true, include turns and their items from rollout history.", |
| 416 | }), | 390 | }), |
| 417 | ), | 391 | ), |
| 418 | migrationSource: Schema.optionalKey( | 392 | threadId: Schema.String, |
| 419 | Schema.Union([ | 393 | }).annotate({ identifier: "ClientRequest__ThreadReadParams" }); |
| 420 | Schema.String.annotate({ | | |
| 421 | description: | | |
| 422 | "Optional migration-source selector. Missing or unrecognized values use the default source.", | | |
| 423 | }), | | |
| 424 | Schema.Null, | | |
| 425 | ]), | | |
| 426 | ), | | |
| 427 | source: Schema.optionalKey( | | |
| 428 | Schema.Union([ | | |
| 429 | Schema.String.annotate({ | | |
| 430 | description: | | |
| 431 | "Deprecated field retained for compatibility. This field is ignored; use `migrationSource` to select the migration source.", | | |
| 432 | }), | | |
| 433 | Schema.Null, | | |
| 434 | ]), | | |
| 435 | ), | | |
| 436 | }); | | |
| 437 | | | |
| 438 | export type ClientRequest__ExternalAgentConfigMigrationItemType = | | |
| 439 | | "AGENTS_MD" | | |
| 440 | | "CONFIG" | | |
| 441 | | "SKILLS" | | |
| 442 | | "PLUGINS" | | |
| 443 | | "MCP_SERVER_CONFIG" | | |
| 444 | | "SUBAGENTS" | | |
| 445 | | "HOOKS" | | |
| 446 | | "COMMANDS" | | |
| 447 | | "MEMORY" | | |
| 448 | | "SESSIONS"; | | |
| 449 | export const ClientRequest__ExternalAgentConfigMigrationItemType = Schema.Literals([ | | |
| 450 | "AGENTS_MD", | | |
| 451 | "CONFIG", | | |
| 452 | "SKILLS", | | |
| 453 | "PLUGINS", | | |
| 454 | "MCP_SERVER_CONFIG", | | |
| 455 | "SUBAGENTS", | | |
| 456 | "HOOKS", | | |
| 457 | "COMMANDS", | | |
| 458 | "MEMORY", | | |
| 459 | "SESSIONS", | | |
| 460 | ]); | | |
| 461 | | 394 | |
| 462 | export type ClientRequest__FeedbackUploadParams = { | 395 | export type ClientRequest__ThreadInjectItemsParams = { |
| 463 | readonly classification: string; | 396 | readonly items: ReadonlyArray<Schema.Json>; |
| 464 | readonly extraLogFiles?: ReadonlyArray<string> | null; | 397 | readonly threadId: string; |
| 465 | readonly includeLogs?: boolean; | | |
| 466 | readonly reason?: string | null; | | |
| 467 | readonly tags?: { readonly [x: string]: string } | null; | | |
| 468 | readonly threadId?: string | null; | | |
| 469 | }; | 398 | }; |
| 470 | export const ClientRequest__FeedbackUploadParams = Schema.Struct({ | 399 | export const ClientRequest__ThreadInjectItemsParams = Schema.Struct({ |
| 471 | classification: Schema.String, | 400 | items: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })).annotate({ |
| 472 | extraLogFiles: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | 401 | description: "Raw Responses API items to append to the thread's model-visible history.", |
| 473 | includeLogs: Schema.optionalKey(Schema.Boolean), | 402 | }), |
| 474 | reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 403 | threadId: Schema.String, |
| 475 | tags: Schema.optionalKey( | 404 | }).annotate({ identifier: "ClientRequest__ThreadInjectItemsParams" }); |
| 476 | Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null]), | | |
| 477 | ), | | |
| 478 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 479 | }); | | |
| 480 | | 405 | |
| 481 | export type ClientRequest__FsCopyParams = { | 406 | export type ClientRequest__SkillsListParams = { |
| 482 | readonly destinationPath: string; | 407 | readonly cwds?: ReadonlyArray<string>; |
| 483 | readonly recursive?: boolean; | 408 | readonly forceReload?: boolean; |
| 484 | readonly sourcePath: string; | | |
| 485 | }; | 409 | }; |
| 486 | export const ClientRequest__FsCopyParams = Schema.Struct({ | 410 | export const ClientRequest__SkillsListParams = Schema.Struct({ |
| 487 | destinationPath: Schema.String.annotate({ | 411 | cwds: Schema.optionalKey( |
| 488 | description: | 412 | Schema.Array(Schema.String).annotate({ |
| 489 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 413 | description: "When empty, defaults to the current session working directory.", |
| 490 | }), | 414 | }), |
| 491 | recursive: Schema.optionalKey( | 415 | ), |
| | 416 | forceReload: Schema.optionalKey( |
| 492 | Schema.Boolean.annotate({ | 417 | Schema.Boolean.annotate({ |
| 493 | description: "Required for directory copies; ignored for file copies.", | 418 | description: "When true, bypass the skills cache and re-scan skills from disk.", |
| 494 | }), | 419 | }), |
| 495 | ), | 420 | ), |
| 496 | sourcePath: Schema.String.annotate({ | 421 | }).annotate({ identifier: "ClientRequest__SkillsListParams" }); |
| 497 | description: | | |
| 498 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | | |
| 499 | }), | | |
| 500 | }).annotate({ description: "Copy a file or directory tree on the host filesystem." }); | | |
| 501 | | 422 | |
| 502 | export type ClientRequest__FsCreateDirectoryParams = { | 423 | export type ClientRequest__AbsolutePathBuf = string; |
| 503 | readonly path: string; | 424 | export const ClientRequest__AbsolutePathBuf = Schema.String.annotate({ |
| 504 | readonly recursive?: boolean | null; | 425 | description: |
| 505 | }; | 426 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| 506 | export const ClientRequest__FsCreateDirectoryParams = Schema.Struct({ | 427 | identifier: "ClientRequest__AbsolutePathBuf", |
| 507 | path: Schema.String.annotate({ | 428 | }); |
| 508 | description: | 429 | |
| 509 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 430 | export type ClientRequest__HooksListParams = { readonly cwds?: ReadonlyArray<string> }; |
| 510 | }), | 431 | export const ClientRequest__HooksListParams = Schema.Struct({ |
| 511 | recursive: Schema.optionalKey( | 432 | cwds: Schema.optionalKey( |
| 512 | Schema.Union([ | 433 | Schema.Array(Schema.String).annotate({ |
| 513 | Schema.Boolean.annotate({ | 434 | description: "When empty, defaults to the current session working directory.", |
| 514 | description: "Whether parent directories should also be created. Defaults to `true`.", | 435 | }), |
| 515 | }), | | |
| 516 | Schema.Null, | | |
| 517 | ]), | | |
| 518 | ), | 436 | ), |
| 519 | }).annotate({ description: "Create a directory on the host filesystem." }); | 437 | }).annotate({ identifier: "ClientRequest__HooksListParams" }); |
| 520 | | 438 | |
| 521 | export type ClientRequest__FsGetMetadataParams = { readonly path: string }; | 439 | export type ClientRequest__MarketplaceAddParams = { |
| 522 | export const ClientRequest__FsGetMetadataParams = Schema.Struct({ | 440 | readonly refName?: string | null; |
| 523 | path: Schema.String.annotate({ | 441 | readonly source: string; |
| 524 | description: | 442 | readonly sparsePaths?: ReadonlyArray<string> | null; |
| 525 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 443 | }; |
| 526 | }), | 444 | export const ClientRequest__MarketplaceAddParams = Schema.Struct({ |
| 527 | }).annotate({ description: "Request metadata for an absolute path." }); | 445 | refName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 446 | source: Schema.String, |
| | 447 | sparsePaths: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 448 | }).annotate({ identifier: "ClientRequest__MarketplaceAddParams" }); |
| 528 | | 449 | |
| 529 | export type ClientRequest__FsReadDirectoryParams = { readonly path: string }; | 450 | export type ClientRequest__MarketplaceRemoveParams = { readonly marketplaceName: string }; |
| 530 | export const ClientRequest__FsReadDirectoryParams = Schema.Struct({ | 451 | export const ClientRequest__MarketplaceRemoveParams = Schema.Struct({ |
| 531 | path: Schema.String.annotate({ | 452 | marketplaceName: Schema.String, |
| 532 | description: | 453 | }).annotate({ identifier: "ClientRequest__MarketplaceRemoveParams" }); |
| 533 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | | |
| 534 | }), | | |
| 535 | }).annotate({ description: "List direct child names for a directory." }); | | |
| 536 | | 454 | |
| 537 | export type ClientRequest__FsReadFileParams = { readonly path: string }; | 455 | export type ClientRequest__MarketplaceUpgradeParams = { readonly marketplaceName?: string | null }; |
| 538 | export const ClientRequest__FsReadFileParams = Schema.Struct({ | 456 | export const ClientRequest__MarketplaceUpgradeParams = Schema.Struct({ |
| 539 | path: Schema.String.annotate({ | 457 | marketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 540 | description: | 458 | }).annotate({ identifier: "ClientRequest__MarketplaceUpgradeParams" }); |
| 541 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | | |
| 542 | }), | | |
| 543 | }).annotate({ description: "Read a file from the host filesystem." }); | | |
| 544 | | 459 | |
| 545 | export type ClientRequest__FsRemoveParams = { | 460 | export type ClientRequest__PluginListMarketplaceKind = |
| 546 | readonly force?: boolean | null; | 461 | | "local" |
| 547 | readonly path: string; | 462 | | "vertical" |
| 548 | readonly recursive?: boolean | null; | 463 | | "workspace-directory" |
| | 464 | | "shared-with-me" |
| | 465 | | "created-by-me-remote"; |
| | 466 | export const ClientRequest__PluginListMarketplaceKind = Schema.Literals([ |
| | 467 | "local", |
| | 468 | "vertical", |
| | 469 | "workspace-directory", |
| | 470 | "shared-with-me", |
| | 471 | "created-by-me-remote", |
| | 472 | ]).annotate({ identifier: "ClientRequest__PluginListMarketplaceKind" }); |
| | 473 | |
| | 474 | export type ClientRequest__PluginSkillReadParams = { |
| | 475 | readonly remoteMarketplaceName: string; |
| | 476 | readonly remotePluginId: string; |
| | 477 | readonly skillName: string; |
| 549 | }; | 478 | }; |
| 550 | export const ClientRequest__FsRemoveParams = Schema.Struct({ | 479 | export const ClientRequest__PluginSkillReadParams = Schema.Struct({ |
| 551 | force: Schema.optionalKey( | 480 | remoteMarketplaceName: Schema.String, |
| 552 | Schema.Union([ | 481 | remotePluginId: Schema.String, |
| 553 | Schema.Boolean.annotate({ | 482 | skillName: Schema.String, |
| 554 | description: "Whether missing paths should be ignored. Defaults to `true`.", | 483 | }).annotate({ identifier: "ClientRequest__PluginSkillReadParams" }); |
| 555 | }), | | |
| 556 | Schema.Null, | | |
| 557 | ]), | | |
| 558 | ), | | |
| 559 | path: Schema.String.annotate({ | | |
| 560 | description: | | |
| 561 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | | |
| 562 | }), | | |
| 563 | recursive: Schema.optionalKey( | | |
| 564 | Schema.Union([ | | |
| 565 | Schema.Boolean.annotate({ | | |
| 566 | description: "Whether directory removal should recurse. Defaults to `true`.", | | |
| 567 | }), | | |
| 568 | Schema.Null, | | |
| 569 | ]), | | |
| 570 | ), | | |
| 571 | }).annotate({ description: "Remove a file or directory tree from the host filesystem." }); | | |
| 572 | | 484 | |
| 573 | export type ClientRequest__FsUnwatchParams = { readonly watchId: string }; | 485 | export type ClientRequest__PluginShareDiscoverability = "LISTED" | "UNLISTED" | "PRIVATE"; |
| 574 | export const ClientRequest__FsUnwatchParams = Schema.Struct({ | 486 | export const ClientRequest__PluginShareDiscoverability = Schema.Literals([ |
| 575 | watchId: Schema.String.annotate({ | 487 | "LISTED", |
| 576 | description: "Watch identifier previously provided to `fs/watch`.", | 488 | "UNLISTED", |
| 577 | }), | 489 | "PRIVATE", |
| 578 | }).annotate({ description: "Stop filesystem watch notifications for a prior `fs/watch`." }); | 490 | ]).annotate({ identifier: "ClientRequest__PluginShareDiscoverability" }); |
| 579 | | 491 | |
| 580 | export type ClientRequest__FsWatchParams = { readonly path: string; readonly watchId: string }; | 492 | export type ClientRequest__PluginSharePrincipalType = "user" | "group" | "workspace"; |
| 581 | export const ClientRequest__FsWatchParams = Schema.Struct({ | 493 | export const ClientRequest__PluginSharePrincipalType = Schema.Literals([ |
| 582 | path: Schema.String.annotate({ | 494 | "user", |
| 583 | description: | 495 | "group", |
| 584 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 496 | "workspace", |
| 585 | }), | 497 | ]).annotate({ identifier: "ClientRequest__PluginSharePrincipalType" }); |
| 586 | watchId: Schema.String.annotate({ | | |
| 587 | description: "Connection-scoped watch identifier used for `fs/unwatch` and `fs/changed`.", | | |
| 588 | }), | | |
| 589 | }).annotate({ description: "Start filesystem watch notifications for an absolute path." }); | | |
| 590 | | 498 | |
| 591 | export type ClientRequest__FsWriteFileParams = { | 499 | export type ClientRequest__PluginShareTargetRole = "reader" | "editor"; |
| 592 | readonly dataBase64: string; | 500 | export const ClientRequest__PluginShareTargetRole = Schema.Literals(["reader", "editor"]).annotate({ |
| 593 | readonly path: string; | 501 | identifier: "ClientRequest__PluginShareTargetRole", |
| | 502 | }); |
| | 503 | |
| | 504 | export type ClientRequest__PluginShareUpdateDiscoverability = "UNLISTED" | "PRIVATE" | "LISTED"; |
| | 505 | export const ClientRequest__PluginShareUpdateDiscoverability = Schema.Literals([ |
| | 506 | "UNLISTED", |
| | 507 | "PRIVATE", |
| | 508 | "LISTED", |
| | 509 | ]).annotate({ identifier: "ClientRequest__PluginShareUpdateDiscoverability" }); |
| | 510 | |
| | 511 | export type ClientRequest__PluginShareListParams = { readonly [x: string]: Schema.Json }; |
| | 512 | export const ClientRequest__PluginShareListParams = Schema.Record( |
| | 513 | Schema.String, |
| | 514 | Schema.Json.annotate({ expected: "JSON value" }), |
| | 515 | ).annotate({ identifier: "ClientRequest__PluginShareListParams" }); |
| | 516 | |
| | 517 | export type ClientRequest__PluginShareCheckoutParams = { readonly remotePluginId: string }; |
| | 518 | export const ClientRequest__PluginShareCheckoutParams = Schema.Struct({ |
| | 519 | remotePluginId: Schema.String, |
| | 520 | }).annotate({ identifier: "ClientRequest__PluginShareCheckoutParams" }); |
| | 521 | |
| | 522 | export type ClientRequest__PluginShareDeleteParams = { readonly remotePluginId: string }; |
| | 523 | export const ClientRequest__PluginShareDeleteParams = Schema.Struct({ |
| | 524 | remotePluginId: Schema.String, |
| | 525 | }).annotate({ identifier: "ClientRequest__PluginShareDeleteParams" }); |
| | 526 | |
| | 527 | export type ClientRequest__AppsReadParams = { |
| | 528 | readonly appIds: ReadonlyArray<string>; |
| | 529 | readonly includeTools?: boolean; |
| 594 | }; | 530 | }; |
| 595 | export const ClientRequest__FsWriteFileParams = Schema.Struct({ | 531 | export const ClientRequest__AppsReadParams = Schema.Struct({ |
| 596 | dataBase64: Schema.String.annotate({ description: "File contents encoded as base64." }), | 532 | appIds: Schema.Array(Schema.String).annotate({ |
| 597 | path: Schema.String.annotate({ | | |
| 598 | description: | 533 | description: |
| 599 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 534 | "App ids to read. The server accepts at most 100 ids and deduplicates repeated ids while preserving their first-request order.", |
| 600 | }), | 535 | }), |
| 601 | }).annotate({ description: "Write a file on the host filesystem." }); | 536 | includeTools: Schema.optionalKey( |
| 602 | | | |
| 603 | export type ClientRequest__FuzzyFileSearchParams = { | | |
| 604 | readonly cancellationToken?: string | null; | | |
| 605 | readonly query: string; | | |
| 606 | readonly roots: ReadonlyArray<string>; | | |
| 607 | }; | | |
| 608 | export const ClientRequest__FuzzyFileSearchParams = Schema.Struct({ | | |
| 609 | cancellationToken: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 610 | query: Schema.String, | | |
| 611 | roots: Schema.Array(Schema.String), | | |
| 612 | }); | | |
| 613 | | | |
| 614 | export type ClientRequest__GetAccountParams = { readonly refreshToken?: boolean }; | | |
| 615 | export const ClientRequest__GetAccountParams = Schema.Struct({ | | |
| 616 | refreshToken: Schema.optionalKey( | | |
| 617 | Schema.Boolean.annotate({ | 537 | Schema.Boolean.annotate({ |
| 618 | description: | 538 | description: |
| 619 | "When `true`, requests a proactive token refresh before returning.\n\nIn managed auth mode this triggers the normal refresh-token flow. In external auth mode this flag is ignored. Clients should refresh tokens themselves and call `account/login/start` with `chatgptAuthTokens`.", | 539 | "When true, include display-only public tool summaries in the returned metadata.", |
| 620 | }), | | |
| 621 | ), | | |
| 622 | }); | | |
| 623 | | | |
| 624 | export type ClientRequest__HookMigration = { readonly name: string }; | | |
| 625 | export const ClientRequest__HookMigration = Schema.Struct({ name: Schema.String }); | | |
| 626 | | | |
| 627 | export type ClientRequest__HooksListParams = { readonly cwds?: ReadonlyArray<string> }; | | |
| 628 | export const ClientRequest__HooksListParams = Schema.Struct({ | | |
| 629 | cwds: Schema.optionalKey( | | |
| 630 | Schema.Array(Schema.String).annotate({ | | |
| 631 | description: "When empty, defaults to the current session working directory.", | | |
| 632 | }), | 540 | }), |
| 633 | ), | 541 | ), |
| | 542 | }).annotate({ |
| | 543 | description: "EXPERIMENTAL - read metadata for specific apps/connectors.", |
| | 544 | identifier: "ClientRequest__AppsReadParams", |
| 634 | }); | 545 | }); |
| 635 | | 546 | |
| 636 | export type ClientRequest__ImageDetail = "auto" | "low" | "high" | "original"; | 547 | export type ClientRequest__AppsListParams = { |
| 637 | export const ClientRequest__ImageDetail = Schema.Literals(["auto", "low", "high", "original"]); | 548 | readonly cursor?: string | null; |
| 638 | | 549 | readonly forceRefetch?: boolean; |
| 639 | export type ClientRequest__InitializeCapabilities = { | 550 | readonly limit?: number | null; |
| 640 | readonly experimentalApi?: boolean; | 551 | readonly threadId?: string | null; |
| 641 | readonly mcpServerOpenaiFormElicitation?: boolean; | | |
| 642 | readonly optOutNotificationMethods?: ReadonlyArray<string> | null; | | |
| 643 | readonly requestAttestation?: boolean; | | |
| 644 | }; | 552 | }; |
| 645 | export const ClientRequest__InitializeCapabilities = Schema.Struct({ | 553 | export const ClientRequest__AppsListParams = Schema.Struct({ |
| 646 | experimentalApi: Schema.optionalKey( | 554 | cursor: Schema.optionalKey( |
| 647 | Schema.Boolean.annotate({ | 555 | Schema.Union([ |
| 648 | description: "Opt into receiving experimental API methods and fields.", | 556 | Schema.String.annotate({ |
| 649 | default: false, | 557 | description: "Opaque pagination cursor returned by a previous call.", |
| 650 | }), | 558 | }), |
| | 559 | Schema.Null, |
| | 560 | ]), |
| 651 | ), | 561 | ), |
| 652 | mcpServerOpenaiFormElicitation: Schema.optionalKey( | 562 | forceRefetch: Schema.optionalKey( |
| 653 | Schema.Boolean.annotate({ | 563 | Schema.Boolean.annotate({ |
| 654 | description: "Allow downstream MCP servers to request OpenAI extended form elicitations.", | 564 | description: "When true, bypass app caches and fetch the latest data from sources.", |
| 655 | }), | 565 | }), |
| 656 | ), | 566 | ), |
| 657 | optOutNotificationMethods: Schema.optionalKey( | 567 | limit: Schema.optionalKey( |
| 658 | Schema.Union([ | 568 | Schema.Union([ |
| 659 | Schema.Array(Schema.String).annotate({ | 569 | Schema.Number.annotate({ |
| | 570 | description: "Optional page size; defaults to a reasonable server-side value.", |
| | 571 | format: "uint32", |
| | 572 | }) |
| | 573 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 574 | .check( |
| | 575 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 576 | expected: "a value greater than or equal to 0", |
| | 577 | }), |
| | 578 | ), |
| | 579 | Schema.Null, |
| | 580 | ]), |
| | 581 | ), |
| | 582 | threadId: Schema.optionalKey( |
| | 583 | Schema.Union([ |
| | 584 | Schema.String.annotate({ |
| 660 | description: | 585 | description: |
| 661 | "Exact notification method names that should be suppressed for this connection (for example `thread/started`).", | 586 | "Optional thread id used to evaluate app feature gating from that thread's config.", |
| 662 | }), | 587 | }), |
| 663 | Schema.Null, | 588 | Schema.Null, |
| 664 | ]), | 589 | ]), |
| 665 | ), | 590 | ), |
| 666 | requestAttestation: Schema.optionalKey( | 591 | }).annotate({ |
| | 592 | description: "EXPERIMENTAL - list available apps/connectors.", |
| | 593 | identifier: "ClientRequest__AppsListParams", |
| | 594 | }); |
| | 595 | |
| | 596 | export type ClientRequest__AppsInstalledParams = { |
| | 597 | readonly forceRefresh?: boolean; |
| | 598 | readonly threadId?: string | null; |
| | 599 | }; |
| | 600 | export const ClientRequest__AppsInstalledParams = Schema.Struct({ |
| | 601 | forceRefresh: Schema.optionalKey( |
| 667 | Schema.Boolean.annotate({ | 602 | Schema.Boolean.annotate({ |
| 668 | description: "Opt into `attestation/generate` requests for upstream `x-oai-attestation`.", | 603 | description: |
| 669 | default: false, | 604 | "When true and Apps are permitted, refresh and publish the hosted connector runtime tool snapshot first.", |
| 670 | }), | 605 | }), |
| 671 | ), | 606 | ), |
| 672 | }).annotate({ description: "Client-declared capabilities negotiated during initialize." }); | 607 | threadId: Schema.optionalKey( |
| | 608 | Schema.Union([ |
| | 609 | Schema.String.annotate({ |
| | 610 | description: "Optional loaded thread id used to evaluate effective app configuration.", |
| | 611 | }), |
| | 612 | Schema.Null, |
| | 613 | ]), |
| | 614 | ), |
| | 615 | }).annotate({ |
| | 616 | description: "Read the committed installed connector runtime snapshot.", |
| | 617 | identifier: "ClientRequest__AppsInstalledParams", |
| | 618 | }); |
| 673 | | 619 | |
| 674 | export type ClientRequest__InternalChatMessageMetadataPassthrough = { | 620 | export type ClientRequest__FsUnwatchParams = { readonly watchId: string }; |
| 675 | readonly turn_id?: string | null; | 621 | export const ClientRequest__FsUnwatchParams = Schema.Struct({ |
| 676 | }; | 622 | watchId: Schema.String.annotate({ |
| 677 | export const ClientRequest__InternalChatMessageMetadataPassthrough = Schema.Struct({ | 623 | description: "Watch identifier previously provided to `fs/watch`.", |
| 678 | turn_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 624 | }), |
| 679 | }).annotate({ | 625 | }).annotate({ |
| 680 | description: | 626 | description: "Stop filesystem watch notifications for a prior `fs/watch`.", |
| 681 | "Internal Responses API passthrough metadata copied into underlying chat messages.\n\nResponses API strongly types this payload. Do not modify it without first getting API approval and making the corresponding Responses API change.", | 627 | identifier: "ClientRequest__FsUnwatchParams", |
| 682 | }); | 628 | }); |
| 683 | | 629 | |
| 684 | export type ClientRequest__LegacyAppPathString = string; | 630 | export type ClientRequest__PluginUninstallParams = { readonly pluginId: string }; |
| 685 | export const ClientRequest__LegacyAppPathString = Schema.String; | 631 | export const ClientRequest__PluginUninstallParams = Schema.Struct({ |
| | 632 | pluginId: Schema.String, |
| | 633 | }).annotate({ identifier: "ClientRequest__PluginUninstallParams" }); |
| 686 | | 634 | |
| 687 | export type ClientRequest__LocalShellAction = { | 635 | export type ClientRequest__ReasoningEffort = string; |
| 688 | readonly command: ReadonlyArray<string>; | 636 | export const ClientRequest__ReasoningEffort = Schema.String.annotate({ |
| 689 | readonly env?: { readonly [x: string]: string } | null; | 637 | description: "A non-empty reasoning effort value advertised by the model.", |
| 690 | readonly timeout_ms?: number | null; | 638 | }).check( |
| 691 | readonly type: "exec"; | 639 | Schema.isMinLength(1).annotate({ |
| 692 | readonly user?: string | null; | 640 | expected: "a value with a length of at least 1", |
| 693 | readonly working_directory?: string | null; | 641 | identifier: "ClientRequest__ReasoningEffort", |
| 694 | }; | 642 | }), |
| 695 | export const ClientRequest__LocalShellAction = Schema.Union( | | |
| 696 | [ | | |
| 697 | Schema.Struct({ | | |
| 698 | command: Schema.Array(Schema.String), | | |
| 699 | env: Schema.optionalKey( | | |
| 700 | Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null]), | | |
| 701 | ), | | |
| 702 | timeout_ms: Schema.optionalKey( | | |
| 703 | Schema.Union([ | | |
| 704 | Schema.Number.annotate({ format: "uint64" }) | | |
| 705 | .check(Schema.isInt()) | | |
| 706 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 707 | Schema.Null, | | |
| 708 | ]), | | |
| 709 | ), | | |
| 710 | type: Schema.Literal("exec").annotate({ title: "ExecLocalShellActionType" }), | | |
| 711 | user: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 712 | working_directory: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 713 | }).annotate({ title: "ExecLocalShellAction" }), | | |
| 714 | ], | | |
| 715 | { mode: "oneOf" }, | | |
| 716 | ); | 643 | ); |
| 717 | | 644 | |
| 718 | export type ClientRequest__LocalShellStatus = "completed" | "in_progress" | "incomplete"; | 645 | export type ClientRequest__ByteRange = { readonly end: number; readonly start: number }; |
| 719 | export const ClientRequest__LocalShellStatus = Schema.Literals([ | 646 | export const ClientRequest__ByteRange = Schema.Struct({ |
| 720 | "completed", | 647 | end: Schema.Number.annotate({ format: "uint" }) |
| 721 | "in_progress", | 648 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 722 | "incomplete", | 649 | .check( |
| 723 | ]); | 650 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| 724 | | 651 | ), |
| 725 | export type ClientRequest__LoginAppBrand = "codex" | "chatgpt"; | 652 | start: Schema.Number.annotate({ format: "uint" }) |
| 726 | export const ClientRequest__LoginAppBrand = Schema.Literals(["codex", "chatgpt"]); | 653 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 727 | | 654 | .check( |
| 728 | export type ClientRequest__MarketplaceAddParams = { | 655 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| 729 | readonly refName?: string | null; | 656 | ), |
| 730 | readonly source: string; | 657 | }).annotate({ identifier: "ClientRequest__ByteRange" }); |
| 731 | readonly sparsePaths?: ReadonlyArray<string> | null; | | |
| 732 | }; | | |
| 733 | export const ClientRequest__MarketplaceAddParams = Schema.Struct({ | | |
| 734 | refName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 735 | source: Schema.String, | | |
| 736 | sparsePaths: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 737 | }); | | |
| 738 | | | |
| 739 | export type ClientRequest__MarketplaceRemoveParams = { readonly marketplaceName: string }; | | |
| 740 | export const ClientRequest__MarketplaceRemoveParams = Schema.Struct({ | | |
| 741 | marketplaceName: Schema.String, | | |
| 742 | }); | | |
| 743 | | 658 | |
| 744 | export type ClientRequest__MarketplaceUpgradeParams = { readonly marketplaceName?: string | null }; | 659 | export type ClientRequest__ImageDetail = "auto" | "low" | "high" | "original"; |
| 745 | export const ClientRequest__MarketplaceUpgradeParams = Schema.Struct({ | 660 | export const ClientRequest__ImageDetail = Schema.Literals([ |
| 746 | marketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 661 | "auto", |
| 747 | }); | 662 | "low", |
| | 663 | "high", |
| | 664 | "original", |
| | 665 | ]).annotate({ identifier: "ClientRequest__ImageDetail" }); |
| 748 | | 666 | |
| 749 | export type ClientRequest__McpResourceReadParams = { | 667 | export type ClientRequest__NetworkAccess = "restricted" | "enabled"; |
| 750 | readonly server: string; | 668 | export const ClientRequest__NetworkAccess = Schema.Literals(["restricted", "enabled"]).annotate({ |
| 751 | readonly threadId?: string | null; | 669 | identifier: "ClientRequest__NetworkAccess", |
| 752 | readonly uri: string; | | |
| 753 | }; | | |
| 754 | export const ClientRequest__McpResourceReadParams = Schema.Struct({ | | |
| 755 | server: Schema.String, | | |
| 756 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 757 | uri: Schema.String, | | |
| 758 | }); | 670 | }); |
| 759 | | 671 | |
| 760 | export type ClientRequest__McpServerMigration = { readonly name: string }; | 672 | export type ClientRequest__ReasoningSummary = "auto" | "concise" | "detailed" | "none"; |
| 761 | export const ClientRequest__McpServerMigration = Schema.Struct({ name: Schema.String }); | 673 | export const ClientRequest__ReasoningSummary = Schema.Union( |
| 762 | | 674 | [ |
| 763 | export type ClientRequest__McpServerOauthLoginParams = { | 675 | Schema.Literals(["auto", "concise", "detailed"]), |
| 764 | readonly name: string; | 676 | Schema.Literal("none").annotate({ description: "Option to disable reasoning summaries." }), |
| 765 | readonly scopes?: ReadonlyArray<string> | null; | 677 | ], |
| 766 | readonly threadId?: string | null; | 678 | { mode: "oneOf" }, |
| 767 | readonly timeoutSecs?: number | null; | 679 | ).annotate({ |
| 768 | }; | 680 | description: |
| 769 | export const ClientRequest__McpServerOauthLoginParams = Schema.Struct({ | 681 | "A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries", |
| 770 | name: Schema.String, | 682 | identifier: "ClientRequest__ReasoningSummary", |
| 771 | scopes: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 772 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 773 | timeoutSecs: Schema.optionalKey( | | |
| 774 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), | | |
| 775 | ), | | |
| 776 | }); | 683 | }); |
| 777 | | 684 | |
| 778 | export type ClientRequest__McpServerStatusDetail = "full" | "toolsAndAuthOnly"; | 685 | export type ClientRequest__TurnInterruptParams = { |
| 779 | export const ClientRequest__McpServerStatusDetail = Schema.Literals(["full", "toolsAndAuthOnly"]); | | |
| 780 | | | |
| 781 | export type ClientRequest__McpServerToolCallParams = { | | |
| 782 | readonly _meta?: unknown; | | |
| 783 | readonly arguments?: unknown; | | |
| 784 | readonly server: string; | | |
| 785 | readonly threadId: string; | 686 | readonly threadId: string; |
| 786 | readonly tool: string; | 687 | readonly turnId: string; |
| 787 | }; | 688 | }; |
| 788 | export const ClientRequest__McpServerToolCallParams = Schema.Struct({ | 689 | export const ClientRequest__TurnInterruptParams = Schema.Struct({ |
| 789 | _meta: Schema.optionalKey(Schema.Unknown), | | |
| 790 | arguments: Schema.optionalKey(Schema.Unknown), | | |
| 791 | server: Schema.String, | | |
| 792 | threadId: Schema.String, | 690 | threadId: Schema.String, |
| 793 | tool: Schema.String, | 691 | turnId: Schema.String, |
| 794 | }); | 692 | }).annotate({ identifier: "ClientRequest__TurnInterruptParams" }); |
| 795 | | | |
| 796 | export type ClientRequest__MergeStrategy = "replace" | "upsert"; | | |
| 797 | export const ClientRequest__MergeStrategy = Schema.Literals(["replace", "upsert"]); | | |
| 798 | | | |
| 799 | export type ClientRequest__MessagePhase = "commentary" | "final_answer"; | | |
| 800 | export const ClientRequest__MessagePhase = Schema.Literals(["commentary", "final_answer"]).annotate( | | |
| 801 | { | | |
| 802 | description: | | |
| 803 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', | | |
| 804 | }, | | |
| 805 | ); | | |
| 806 | | 693 | |
| 807 | export type ClientRequest__ModeKind = "plan" | "default"; | 694 | export type ClientRequest__ReviewDelivery = "inline" | "detached"; |
| 808 | export const ClientRequest__ModeKind = Schema.Literals(["plan", "default"]).annotate({ | 695 | export const ClientRequest__ReviewDelivery = Schema.Literals(["inline", "detached"]).annotate({ |
| 809 | description: "Initial collaboration mode to use when the TUI starts.", | 696 | identifier: "ClientRequest__ReviewDelivery", |
| 810 | }); | 697 | }); |
| 811 | | 698 | |
| | 699 | export type ClientRequest__ReviewTarget = |
| | 700 | | { readonly type: "uncommittedChanges" } |
| | 701 | | { readonly branch: string; readonly type: "baseBranch" } |
| | 702 | | { readonly sha: string; readonly title?: string | null; readonly type: "commit" } |
| | 703 | | { readonly instructions: string; readonly type: "custom" }; |
| | 704 | export const ClientRequest__ReviewTarget = Schema.Union( |
| | 705 | [ |
| | 706 | Schema.Struct({ |
| | 707 | type: Schema.Literal("uncommittedChanges").annotate({ |
| | 708 | title: "UncommittedChangesReviewTargetType", |
| | 709 | }), |
| | 710 | }).annotate({ |
| | 711 | title: "UncommittedChangesReviewTarget", |
| | 712 | description: "Review the working tree: staged, unstaged, and untracked files.", |
| | 713 | }), |
| | 714 | Schema.Struct({ |
| | 715 | branch: Schema.String, |
| | 716 | type: Schema.Literal("baseBranch").annotate({ title: "BaseBranchReviewTargetType" }), |
| | 717 | }).annotate({ |
| | 718 | title: "BaseBranchReviewTarget", |
| | 719 | description: "Review changes between the current branch and the given base branch.", |
| | 720 | }), |
| | 721 | Schema.Struct({ |
| | 722 | sha: Schema.String, |
| | 723 | title: Schema.optionalKey( |
| | 724 | Schema.Union([ |
| | 725 | Schema.String.annotate({ |
| | 726 | description: "Optional human-readable label (e.g., commit subject) for UIs.", |
| | 727 | }), |
| | 728 | Schema.Null, |
| | 729 | ]), |
| | 730 | ), |
| | 731 | type: Schema.Literal("commit").annotate({ title: "CommitReviewTargetType" }), |
| | 732 | }).annotate({ |
| | 733 | title: "CommitReviewTarget", |
| | 734 | description: "Review the changes introduced by a specific commit.", |
| | 735 | }), |
| | 736 | Schema.Struct({ |
| | 737 | instructions: Schema.String, |
| | 738 | type: Schema.Literal("custom").annotate({ title: "CustomReviewTargetType" }), |
| | 739 | }).annotate({ |
| | 740 | title: "CustomReviewTarget", |
| | 741 | description: "Arbitrary instructions, equivalent to the old free-form prompt.", |
| | 742 | }), |
| | 743 | ], |
| | 744 | { mode: "oneOf" }, |
| | 745 | ).annotate({ identifier: "ClientRequest__ReviewTarget" }); |
| | 746 | |
| 812 | export type ClientRequest__ModelListParams = { | 747 | export type ClientRequest__ModelListParams = { |
| 813 | readonly cursor?: string | null; | 748 | readonly cursor?: string | null; |
| 814 | readonly includeHidden?: boolean | null; | 749 | readonly includeHidden?: boolean | null; |
| ... | @@ -837,15 +772,64 @@ export const ClientRequest__ModelListParams = Schema.Struct({ | ... | @@ -837,15 +772,64 @@ export const ClientRequest__ModelListParams = Schema.Struct({ |
| 837 | description: "Optional page size; defaults to a reasonable server-side value.", | 772 | description: "Optional page size; defaults to a reasonable server-side value.", |
| 838 | format: "uint32", | 773 | format: "uint32", |
| 839 | }) | 774 | }) |
| 840 | .check(Schema.isInt()) | 775 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 841 | .check(Schema.isGreaterThanOrEqualTo(0)), | 776 | .check( |
| | 777 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 778 | expected: "a value greater than or equal to 0", |
| | 779 | }), |
| | 780 | ), |
| 842 | Schema.Null, | 781 | Schema.Null, |
| 843 | ]), | 782 | ]), |
| 844 | ), | 783 | ), |
| 845 | }); | 784 | }).annotate({ identifier: "ClientRequest__ModelListParams" }); |
| | 785 | |
| | 786 | export type ClientRequest__ModelProviderCapabilitiesReadParams = { |
| | 787 | readonly [x: string]: Schema.Json; |
| | 788 | }; |
| | 789 | export const ClientRequest__ModelProviderCapabilitiesReadParams = Schema.Record( |
| | 790 | Schema.String, |
| | 791 | Schema.Json.annotate({ expected: "JSON value" }), |
| | 792 | ).annotate({ identifier: "ClientRequest__ModelProviderCapabilitiesReadParams" }); |
| 846 | | 793 | |
| 847 | export type ClientRequest__ModelProviderCapabilitiesReadParams = {}; | 794 | export type ClientRequest__ExperimentalFeatureListParams = { |
| 848 | export const ClientRequest__ModelProviderCapabilitiesReadParams = Schema.Struct({}); | 795 | readonly cursor?: string | null; |
| | 796 | readonly limit?: number | null; |
| | 797 | readonly threadId?: string | null; |
| | 798 | }; |
| | 799 | export const ClientRequest__ExperimentalFeatureListParams = Schema.Struct({ |
| | 800 | cursor: Schema.optionalKey( |
| | 801 | Schema.Union([ |
| | 802 | Schema.String.annotate({ |
| | 803 | description: "Opaque pagination cursor returned by a previous call.", |
| | 804 | }), |
| | 805 | Schema.Null, |
| | 806 | ]), |
| | 807 | ), |
| | 808 | limit: Schema.optionalKey( |
| | 809 | Schema.Union([ |
| | 810 | Schema.Number.annotate({ |
| | 811 | description: "Optional page size; defaults to a reasonable server-side value.", |
| | 812 | format: "uint32", |
| | 813 | }) |
| | 814 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 815 | .check( |
| | 816 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 817 | expected: "a value greater than or equal to 0", |
| | 818 | }), |
| | 819 | ), |
| | 820 | Schema.Null, |
| | 821 | ]), |
| | 822 | ), |
| | 823 | threadId: Schema.optionalKey( |
| | 824 | Schema.Union([ |
| | 825 | Schema.String.annotate({ |
| | 826 | description: |
| | 827 | "Optional loaded thread id. Pass this when showing feature state for an existing thread so enablement is computed from that thread's refreshed config, including project-local config for the thread's cwd.", |
| | 828 | }), |
| | 829 | Schema.Null, |
| | 830 | ]), |
| | 831 | ), |
| | 832 | }).annotate({ identifier: "ClientRequest__ExperimentalFeatureListParams" }); |
| 849 | | 833 | |
| 850 | export type ClientRequest__PermissionProfileListParams = { | 834 | export type ClientRequest__PermissionProfileListParams = { |
| 851 | readonly cursor?: string | null; | 835 | readonly cursor?: string | null; |
| ... | @@ -875,80 +859,274 @@ export const ClientRequest__PermissionProfileListParams = Schema.Struct({ | ... | @@ -875,80 +859,274 @@ export const ClientRequest__PermissionProfileListParams = Schema.Struct({ |
| 875 | description: "Optional page size; defaults to the full result set.", | 859 | description: "Optional page size; defaults to the full result set.", |
| 876 | format: "uint32", | 860 | format: "uint32", |
| 877 | }) | 861 | }) |
| 878 | .check(Schema.isInt()) | 862 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 879 | .check(Schema.isGreaterThanOrEqualTo(0)), | 863 | .check( |
| | 864 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 865 | expected: "a value greater than or equal to 0", |
| | 866 | }), |
| | 867 | ), |
| 880 | Schema.Null, | 868 | Schema.Null, |
| 881 | ]), | 869 | ]), |
| 882 | ), | 870 | ), |
| 883 | }); | 871 | }).annotate({ identifier: "ClientRequest__PermissionProfileListParams" }); |
| 884 | | 872 | |
| 885 | export type ClientRequest__Personality = "none" | "friendly" | "pragmatic"; | 873 | export type ClientRequest__ExperimentalFeatureEnablementSetParams = { |
| 886 | export const ClientRequest__Personality = Schema.Literals(["none", "friendly", "pragmatic"]); | 874 | readonly enablement: { readonly [x: string]: boolean }; |
| | 875 | }; |
| | 876 | export const ClientRequest__ExperimentalFeatureEnablementSetParams = Schema.Struct({ |
| | 877 | enablement: Schema.Record(Schema.String, Schema.Boolean).annotate({ |
| | 878 | description: |
| | 879 | "Process-wide runtime feature enablement keyed by canonical feature name.\n\nOnly named features are updated. Omitted features are left unchanged. Send an empty map for a no-op.", |
| | 880 | }), |
| | 881 | }).annotate({ identifier: "ClientRequest__ExperimentalFeatureEnablementSetParams" }); |
| 887 | | 882 | |
| 888 | export type ClientRequest__PluginListMarketplaceKind = | 883 | export type ClientRequest__McpServerOauthLoginParams = { |
| 889 | | "local" | 884 | readonly name: string; |
| 890 | | "vertical" | 885 | readonly scopes?: ReadonlyArray<string> | null; |
| 891 | | "workspace-directory" | 886 | readonly threadId?: string | null; |
| 892 | | "shared-with-me" | 887 | readonly timeoutSecs?: number | null; |
| 893 | | "created-by-me-remote"; | 888 | }; |
| 894 | export const ClientRequest__PluginListMarketplaceKind = Schema.Literals([ | 889 | export const ClientRequest__McpServerOauthLoginParams = Schema.Struct({ |
| 895 | "local", | 890 | name: Schema.String, |
| 896 | "vertical", | 891 | scopes: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| 897 | "workspace-directory", | 892 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 898 | "shared-with-me", | 893 | timeoutSecs: Schema.optionalKey( |
| 899 | "created-by-me-remote", | 894 | Schema.Union([ |
| 900 | ]); | 895 | Schema.Number.annotate({ format: "int64" }).check( |
| | 896 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 897 | ), |
| | 898 | Schema.Null, |
| | 899 | ]), |
| | 900 | ), |
| | 901 | }).annotate({ identifier: "ClientRequest__McpServerOauthLoginParams" }); |
| 901 | | 902 | |
| 902 | export type ClientRequest__PluginShareCheckoutParams = { readonly remotePluginId: string }; | 903 | export type ClientRequest__McpServerStatusDetail = "full" | "toolsAndAuthOnly"; |
| 903 | export const ClientRequest__PluginShareCheckoutParams = Schema.Struct({ | 904 | export const ClientRequest__McpServerStatusDetail = Schema.Literals([ |
| 904 | remotePluginId: Schema.String, | 905 | "full", |
| 905 | }); | 906 | "toolsAndAuthOnly", |
| | 907 | ]).annotate({ identifier: "ClientRequest__McpServerStatusDetail" }); |
| 906 | | 908 | |
| 907 | export type ClientRequest__PluginShareDeleteParams = { readonly remotePluginId: string }; | 909 | export type ClientRequest__McpResourceReadParams = { |
| 908 | export const ClientRequest__PluginShareDeleteParams = Schema.Struct({ | 910 | readonly server: string; |
| 909 | remotePluginId: Schema.String, | 911 | readonly threadId?: string | null; |
| | 912 | readonly uri: string; |
| | 913 | }; |
| | 914 | export const ClientRequest__McpResourceReadParams = Schema.Struct({ |
| | 915 | server: Schema.String, |
| | 916 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 917 | uri: Schema.String, |
| | 918 | }).annotate({ identifier: "ClientRequest__McpResourceReadParams" }); |
| | 919 | |
| | 920 | export type ClientRequest__McpServerToolCallParams = { |
| | 921 | readonly _meta?: Schema.Json; |
| | 922 | readonly arguments?: Schema.Json; |
| | 923 | readonly server: string; |
| | 924 | readonly threadId: string; |
| | 925 | readonly tool: string; |
| | 926 | }; |
| | 927 | export const ClientRequest__McpServerToolCallParams = Schema.Struct({ |
| | 928 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 929 | arguments: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 930 | server: Schema.String, |
| | 931 | threadId: Schema.String, |
| | 932 | tool: Schema.String, |
| | 933 | }).annotate({ identifier: "ClientRequest__McpServerToolCallParams" }); |
| | 934 | |
| | 935 | export type ClientRequest__WindowsSandboxSetupMode = "elevated" | "unelevated"; |
| | 936 | export const ClientRequest__WindowsSandboxSetupMode = Schema.Literals([ |
| | 937 | "elevated", |
| | 938 | "unelevated", |
| | 939 | ]).annotate({ identifier: "ClientRequest__WindowsSandboxSetupMode" }); |
| | 940 | |
| | 941 | export type ClientRequest__LoginAppBrand = "codex" | "chatgpt"; |
| | 942 | export const ClientRequest__LoginAppBrand = Schema.Literals(["codex", "chatgpt"]).annotate({ |
| | 943 | identifier: "ClientRequest__LoginAppBrand", |
| 910 | }); | 944 | }); |
| 911 | | 945 | |
| 912 | export type ClientRequest__PluginShareDiscoverability = "LISTED" | "UNLISTED" | "PRIVATE"; | 946 | export type ClientRequest__CancelLoginAccountParams = { readonly loginId: string }; |
| 913 | export const ClientRequest__PluginShareDiscoverability = Schema.Literals([ | 947 | export const ClientRequest__CancelLoginAccountParams = Schema.Struct({ |
| 914 | "LISTED", | 948 | loginId: Schema.String, |
| 915 | "UNLISTED", | 949 | }).annotate({ identifier: "ClientRequest__CancelLoginAccountParams" }); |
| 916 | "PRIVATE", | | |
| 917 | ]); | | |
| 918 | | 950 | |
| 919 | export type ClientRequest__PluginShareListParams = {}; | 951 | export type ClientRequest__ConsumeAccountRateLimitResetCreditParams = { |
| 920 | export const ClientRequest__PluginShareListParams = Schema.Struct({}); | 952 | readonly creditId?: string | null; |
| | 953 | readonly idempotencyKey: string; |
| | 954 | }; |
| | 955 | export const ClientRequest__ConsumeAccountRateLimitResetCreditParams = Schema.Struct({ |
| | 956 | creditId: Schema.optionalKey( |
| | 957 | Schema.Union([ |
| | 958 | Schema.String.annotate({ |
| | 959 | description: |
| | 960 | "Opaque reset-credit identifier to redeem. When omitted, the backend selects the next available credit.", |
| | 961 | }), |
| | 962 | Schema.Null, |
| | 963 | ]), |
| | 964 | ), |
| | 965 | idempotencyKey: Schema.String.annotate({ |
| | 966 | description: |
| | 967 | "Identifies one logical reset attempt. A UUID is recommended; reuse the same value when retrying that attempt.", |
| | 968 | }), |
| | 969 | }).annotate({ identifier: "ClientRequest__ConsumeAccountRateLimitResetCreditParams" }); |
| 921 | | 970 | |
| 922 | export type ClientRequest__PluginSharePrincipalType = "user" | "group" | "workspace"; | 971 | export type ClientRequest__AddCreditsNudgeCreditType = "credits" | "usage_limit"; |
| 923 | export const ClientRequest__PluginSharePrincipalType = Schema.Literals([ | 972 | export const ClientRequest__AddCreditsNudgeCreditType = Schema.Literals([ |
| 924 | "user", | 973 | "credits", |
| 925 | "group", | 974 | "usage_limit", |
| 926 | "workspace", | 975 | ]).annotate({ identifier: "ClientRequest__AddCreditsNudgeCreditType" }); |
| 927 | ]); | | |
| 928 | | 976 | |
| 929 | export type ClientRequest__PluginShareTargetRole = "reader" | "editor"; | 977 | export type ClientRequest__FeedbackUploadParams = { |
| 930 | export const ClientRequest__PluginShareTargetRole = Schema.Literals(["reader", "editor"]); | 978 | readonly classification: string; |
| | 979 | readonly extraLogFiles?: ReadonlyArray<string> | null; |
| | 980 | readonly includeLogs?: boolean; |
| | 981 | readonly reason?: string | null; |
| | 982 | readonly tags?: { readonly [x: string]: string } | null; |
| | 983 | readonly threadId?: string | null; |
| | 984 | }; |
| | 985 | export const ClientRequest__FeedbackUploadParams = Schema.Struct({ |
| | 986 | classification: Schema.String, |
| | 987 | extraLogFiles: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 988 | includeLogs: Schema.optionalKey(Schema.Boolean), |
| | 989 | reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 990 | tags: Schema.optionalKey( |
| | 991 | Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null]), |
| | 992 | ), |
| | 993 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 994 | }).annotate({ identifier: "ClientRequest__FeedbackUploadParams" }); |
| 931 | | 995 | |
| 932 | export type ClientRequest__PluginShareUpdateDiscoverability = "UNLISTED" | "PRIVATE" | "LISTED"; | 996 | export type ClientRequest__CommandExecTerminalSize = { |
| 933 | export const ClientRequest__PluginShareUpdateDiscoverability = Schema.Literals([ | 997 | readonly cols: number; |
| 934 | "UNLISTED", | 998 | readonly rows: number; |
| 935 | "PRIVATE", | 999 | }; |
| 936 | "LISTED", | 1000 | export const ClientRequest__CommandExecTerminalSize = Schema.Struct({ |
| 937 | ]); | 1001 | cols: Schema.Number.annotate({ |
| | 1002 | description: "Terminal width in character cells.", |
| | 1003 | format: "uint16", |
| | 1004 | }) |
| | 1005 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 1006 | .check( |
| | 1007 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 1008 | ), |
| | 1009 | rows: Schema.Number.annotate({ |
| | 1010 | description: "Terminal height in character cells.", |
| | 1011 | format: "uint16", |
| | 1012 | }) |
| | 1013 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 1014 | .check( |
| | 1015 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 1016 | ), |
| | 1017 | }).annotate({ |
| | 1018 | description: "PTY size in character cells for `command/exec` PTY sessions.", |
| | 1019 | identifier: "ClientRequest__CommandExecTerminalSize", |
| | 1020 | }); |
| 938 | | 1021 | |
| 939 | export type ClientRequest__PluginSkillReadParams = { | 1022 | export type ClientRequest__CommandExecWriteParams = { |
| 940 | readonly remoteMarketplaceName: string; | 1023 | readonly closeStdin?: boolean; |
| 941 | readonly remotePluginId: string; | 1024 | readonly deltaBase64?: string | null; |
| 942 | readonly skillName: string; | 1025 | readonly processId: string; |
| 943 | }; | 1026 | }; |
| 944 | export const ClientRequest__PluginSkillReadParams = Schema.Struct({ | 1027 | export const ClientRequest__CommandExecWriteParams = Schema.Struct({ |
| 945 | remoteMarketplaceName: Schema.String, | 1028 | closeStdin: Schema.optionalKey( |
| 946 | remotePluginId: Schema.String, | 1029 | Schema.Boolean.annotate({ |
| 947 | skillName: Schema.String, | 1030 | description: "Close stdin after writing `deltaBase64`, if present.", |
| | 1031 | }), |
| | 1032 | ), |
| | 1033 | deltaBase64: Schema.optionalKey( |
| | 1034 | Schema.Union([ |
| | 1035 | Schema.String.annotate({ description: "Optional base64-encoded stdin bytes to write." }), |
| | 1036 | Schema.Null, |
| | 1037 | ]), |
| | 1038 | ), |
| | 1039 | processId: Schema.String.annotate({ |
| | 1040 | description: |
| | 1041 | "Client-supplied, connection-scoped `processId` from the original `command/exec` request.", |
| | 1042 | }), |
| | 1043 | }).annotate({ |
| | 1044 | description: "Write stdin bytes to a running `command/exec` session, close stdin, or both.", |
| | 1045 | identifier: "ClientRequest__CommandExecWriteParams", |
| 948 | }); | 1046 | }); |
| 949 | | 1047 | |
| 950 | export type ClientRequest__PluginUninstallParams = { readonly pluginId: string }; | 1048 | export type ClientRequest__CommandExecTerminateParams = { readonly processId: string }; |
| 951 | export const ClientRequest__PluginUninstallParams = Schema.Struct({ pluginId: Schema.String }); | 1049 | export const ClientRequest__CommandExecTerminateParams = Schema.Struct({ |
| | 1050 | processId: Schema.String.annotate({ |
| | 1051 | description: |
| | 1052 | "Client-supplied, connection-scoped `processId` from the original `command/exec` request.", |
| | 1053 | }), |
| | 1054 | }).annotate({ |
| | 1055 | description: "Terminate a running `command/exec` session.", |
| | 1056 | identifier: "ClientRequest__CommandExecTerminateParams", |
| | 1057 | }); |
| | 1058 | |
| | 1059 | export type ClientRequest__ConfigReadParams = { |
| | 1060 | readonly cwd?: string | null; |
| | 1061 | readonly includeLayers?: boolean; |
| | 1062 | }; |
| | 1063 | export const ClientRequest__ConfigReadParams = Schema.Struct({ |
| | 1064 | cwd: Schema.optionalKey( |
| | 1065 | Schema.Union([ |
| | 1066 | Schema.String.annotate({ |
| | 1067 | description: |
| | 1068 | "Optional working directory to resolve project config layers. If specified, return the effective config as seen from that directory (i.e., including any project layers between `cwd` and the project/repo root).", |
| | 1069 | }), |
| | 1070 | Schema.Null, |
| | 1071 | ]), |
| | 1072 | ), |
| | 1073 | includeLayers: Schema.optionalKey(Schema.Boolean), |
| | 1074 | }).annotate({ identifier: "ClientRequest__ConfigReadParams" }); |
| | 1075 | |
| | 1076 | export type ClientRequest__ExternalAgentConfigDetectParams = { |
| | 1077 | readonly cwds?: ReadonlyArray<string> | null; |
| | 1078 | readonly includeHome?: boolean; |
| | 1079 | readonly migrationSource?: string | null; |
| | 1080 | readonly source?: string | null; |
| | 1081 | }; |
| | 1082 | export const ClientRequest__ExternalAgentConfigDetectParams = Schema.Struct({ |
| | 1083 | cwds: Schema.optionalKey( |
| | 1084 | Schema.Union([ |
| | 1085 | Schema.Array(Schema.String).annotate({ |
| | 1086 | description: "Zero or more working directories to include for repo-scoped detection.", |
| | 1087 | }), |
| | 1088 | Schema.Null, |
| | 1089 | ]), |
| | 1090 | ), |
| | 1091 | includeHome: Schema.optionalKey( |
| | 1092 | Schema.Boolean.annotate({ |
| | 1093 | description: "If true, include detection under the user's home directory.", |
| | 1094 | }), |
| | 1095 | ), |
| | 1096 | migrationSource: Schema.optionalKey( |
| | 1097 | Schema.Union([ |
| | 1098 | Schema.String.annotate({ |
| | 1099 | description: |
| | 1100 | "Optional migration-source selector. Missing or unrecognized values use the default source.", |
| | 1101 | }), |
| | 1102 | Schema.Null, |
| | 1103 | ]), |
| | 1104 | ), |
| | 1105 | source: Schema.optionalKey( |
| | 1106 | Schema.Union([ |
| | 1107 | Schema.String.annotate({ |
| | 1108 | description: |
| | 1109 | "Deprecated field retained for compatibility. This field is ignored; use `migrationSource` to select the migration source.", |
| | 1110 | }), |
| | 1111 | Schema.Null, |
| | 1112 | ]), |
| | 1113 | ), |
| | 1114 | }).annotate({ identifier: "ClientRequest__ExternalAgentConfigDetectParams" }); |
| | 1115 | |
| | 1116 | export type ClientRequest__CommandMigration = { readonly name: string }; |
| | 1117 | export const ClientRequest__CommandMigration = Schema.Struct({ name: Schema.String }).annotate({ |
| | 1118 | identifier: "ClientRequest__CommandMigration", |
| | 1119 | }); |
| | 1120 | |
| | 1121 | export type ClientRequest__HookMigration = { readonly name: string }; |
| | 1122 | export const ClientRequest__HookMigration = Schema.Struct({ name: Schema.String }).annotate({ |
| | 1123 | identifier: "ClientRequest__HookMigration", |
| | 1124 | }); |
| | 1125 | |
| | 1126 | export type ClientRequest__McpServerMigration = { readonly name: string }; |
| | 1127 | export const ClientRequest__McpServerMigration = Schema.Struct({ name: Schema.String }).annotate({ |
| | 1128 | identifier: "ClientRequest__McpServerMigration", |
| | 1129 | }); |
| 952 | | 1130 | |
| 953 | export type ClientRequest__PluginsMigration = { | 1131 | export type ClientRequest__PluginsMigration = { |
| 954 | readonly marketplaceName: string; | 1132 | readonly marketplaceName: string; |
| ... | @@ -957,12 +1135,160 @@ export type ClientRequest__PluginsMigration = { | ... | @@ -957,12 +1135,160 @@ export type ClientRequest__PluginsMigration = { |
| 957 | export const ClientRequest__PluginsMigration = Schema.Struct({ | 1135 | export const ClientRequest__PluginsMigration = Schema.Struct({ |
| 958 | marketplaceName: Schema.String, | 1136 | marketplaceName: Schema.String, |
| 959 | pluginNames: Schema.Array(Schema.String), | 1137 | pluginNames: Schema.Array(Schema.String), |
| | 1138 | }).annotate({ identifier: "ClientRequest__PluginsMigration" }); |
| | 1139 | |
| | 1140 | export type ClientRequest__SessionMigration = { |
| | 1141 | readonly cwd: string; |
| | 1142 | readonly path: string; |
| | 1143 | readonly title?: string | null; |
| | 1144 | }; |
| | 1145 | export const ClientRequest__SessionMigration = Schema.Struct({ |
| | 1146 | cwd: Schema.String, |
| | 1147 | path: Schema.String, |
| | 1148 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 1149 | }).annotate({ identifier: "ClientRequest__SessionMigration" }); |
| | 1150 | |
| | 1151 | export type ClientRequest__SkillMigration = { readonly name: string }; |
| | 1152 | export const ClientRequest__SkillMigration = Schema.Struct({ name: Schema.String }).annotate({ |
| | 1153 | identifier: "ClientRequest__SkillMigration", |
| 960 | }); | 1154 | }); |
| 961 | | 1155 | |
| 962 | export type ClientRequest__ReasoningEffort = string; | 1156 | export type ClientRequest__SubagentMigration = { readonly name: string }; |
| 963 | export const ClientRequest__ReasoningEffort = Schema.String.annotate({ | 1157 | export const ClientRequest__SubagentMigration = Schema.Struct({ name: Schema.String }).annotate({ |
| 964 | description: "A non-empty reasoning effort value advertised by the model.", | 1158 | identifier: "ClientRequest__SubagentMigration", |
| 965 | }).check(Schema.isMinLength(1)); | 1159 | }); |
| | 1160 | |
| | 1161 | export type ClientRequest__ExternalAgentConfigMigrationItemType = |
| | 1162 | | "AGENTS_MD" |
| | 1163 | | "CONFIG" |
| | 1164 | | "SKILLS" |
| | 1165 | | "PLUGINS" |
| | 1166 | | "MCP_SERVER_CONFIG" |
| | 1167 | | "SUBAGENTS" |
| | 1168 | | "HOOKS" |
| | 1169 | | "COMMANDS" |
| | 1170 | | "MEMORY" |
| | 1171 | | "SESSIONS"; |
| | 1172 | export const ClientRequest__ExternalAgentConfigMigrationItemType = Schema.Literals([ |
| | 1173 | "AGENTS_MD", |
| | 1174 | "CONFIG", |
| | 1175 | "SKILLS", |
| | 1176 | "PLUGINS", |
| | 1177 | "MCP_SERVER_CONFIG", |
| | 1178 | "SUBAGENTS", |
| | 1179 | "HOOKS", |
| | 1180 | "COMMANDS", |
| | 1181 | "MEMORY", |
| | 1182 | "SESSIONS", |
| | 1183 | ]).annotate({ identifier: "ClientRequest__ExternalAgentConfigMigrationItemType" }); |
| | 1184 | |
| | 1185 | export type ClientRequest__MergeStrategy = "replace" | "upsert"; |
| | 1186 | export const ClientRequest__MergeStrategy = Schema.Literals(["replace", "upsert"]).annotate({ |
| | 1187 | identifier: "ClientRequest__MergeStrategy", |
| | 1188 | }); |
| | 1189 | |
| | 1190 | export type ClientRequest__GetAccountParams = { readonly refreshToken?: boolean }; |
| | 1191 | export const ClientRequest__GetAccountParams = Schema.Struct({ |
| | 1192 | refreshToken: Schema.optionalKey( |
| | 1193 | Schema.Boolean.annotate({ |
| | 1194 | description: |
| | 1195 | "When `true`, requests a proactive token refresh before returning.\n\nIn managed auth mode this triggers the normal refresh-token flow. In external auth mode this flag is ignored. Clients should refresh tokens themselves and call `account/login/start` with `chatgptAuthTokens`.", |
| | 1196 | }), |
| | 1197 | ), |
| | 1198 | }).annotate({ identifier: "ClientRequest__GetAccountParams" }); |
| | 1199 | |
| | 1200 | export type ClientRequest__FuzzyFileSearchParams = { |
| | 1201 | readonly cancellationToken?: string | null; |
| | 1202 | readonly query: string; |
| | 1203 | readonly roots: ReadonlyArray<string>; |
| | 1204 | }; |
| | 1205 | export const ClientRequest__FuzzyFileSearchParams = Schema.Struct({ |
| | 1206 | cancellationToken: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 1207 | query: Schema.String, |
| | 1208 | roots: Schema.Array(Schema.String), |
| | 1209 | }).annotate({ identifier: "ClientRequest__FuzzyFileSearchParams" }); |
| | 1210 | |
| | 1211 | export type ClientRequest__AdditionalContextKind = "untrusted" | "application"; |
| | 1212 | export const ClientRequest__AdditionalContextKind = Schema.Literals([ |
| | 1213 | "untrusted", |
| | 1214 | "application", |
| | 1215 | ]).annotate({ identifier: "ClientRequest__AdditionalContextKind" }); |
| | 1216 | |
| | 1217 | export type ClientRequest__ModeKind = "plan" | "default"; |
| | 1218 | export const ClientRequest__ModeKind = Schema.Literals(["plan", "default"]).annotate({ |
| | 1219 | description: "Initial collaboration mode to use when the TUI starts.", |
| | 1220 | identifier: "ClientRequest__ModeKind", |
| | 1221 | }); |
| | 1222 | |
| | 1223 | export type ClientRequest__DynamicToolNamespaceTool = { |
| | 1224 | readonly deferLoading?: boolean; |
| | 1225 | readonly description: string; |
| | 1226 | readonly inputSchema: Schema.Json; |
| | 1227 | readonly name: string; |
| | 1228 | readonly type: "function"; |
| | 1229 | }; |
| | 1230 | export const ClientRequest__DynamicToolNamespaceTool = Schema.Union( |
| | 1231 | [ |
| | 1232 | Schema.Struct({ |
| | 1233 | deferLoading: Schema.optionalKey(Schema.Boolean), |
| | 1234 | description: Schema.String, |
| | 1235 | inputSchema: Schema.Json.annotate({ expected: "JSON value" }), |
| | 1236 | name: Schema.String, |
| | 1237 | type: Schema.Literal("function").annotate({ title: "FunctionDynamicToolNamespaceToolType" }), |
| | 1238 | }).annotate({ title: "FunctionDynamicToolNamespaceTool" }), |
| | 1239 | ], |
| | 1240 | { mode: "oneOf" }, |
| | 1241 | ).annotate({ identifier: "ClientRequest__DynamicToolNamespaceTool" }); |
| | 1242 | |
| | 1243 | export type ClientRequest__InternalChatMessageMetadataPassthrough = { |
| | 1244 | readonly turn_id?: string | null; |
| | 1245 | }; |
| | 1246 | export const ClientRequest__InternalChatMessageMetadataPassthrough = Schema.Struct({ |
| | 1247 | turn_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 1248 | }).annotate({ |
| | 1249 | description: |
| | 1250 | "Internal Responses API passthrough metadata copied into underlying chat messages.\n\nResponses API strongly types this payload. Do not modify it without first getting API approval and making the corresponding Responses API change.", |
| | 1251 | identifier: "ClientRequest__InternalChatMessageMetadataPassthrough", |
| | 1252 | }); |
| | 1253 | |
| | 1254 | export type ClientRequest__MessagePhase = "commentary" | "final_answer"; |
| | 1255 | export const ClientRequest__MessagePhase = Schema.Union( |
| | 1256 | [ |
| | 1257 | Schema.Literal("commentary").annotate({ |
| | 1258 | description: |
| | 1259 | "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.", |
| | 1260 | }), |
| | 1261 | Schema.Literal("final_answer").annotate({ |
| | 1262 | description: "The assistant's terminal answer text for the current turn.", |
| | 1263 | }), |
| | 1264 | ], |
| | 1265 | { mode: "oneOf" }, |
| | 1266 | ).annotate({ |
| | 1267 | description: |
| | 1268 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', |
| | 1269 | identifier: "ClientRequest__MessagePhase", |
| | 1270 | }); |
| | 1271 | |
| | 1272 | export type ClientRequest__AgentMessageInputContent = |
| | 1273 | | { readonly text: string; readonly type: "input_text" } |
| | 1274 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; |
| | 1275 | export const ClientRequest__AgentMessageInputContent = Schema.Union( |
| | 1276 | [ |
| | 1277 | Schema.Struct({ |
| | 1278 | text: Schema.String, |
| | 1279 | type: Schema.Literal("input_text").annotate({ |
| | 1280 | title: "InputTextAgentMessageInputContentType", |
| | 1281 | }), |
| | 1282 | }).annotate({ title: "InputTextAgentMessageInputContent" }), |
| | 1283 | Schema.Struct({ |
| | 1284 | encrypted_content: Schema.String, |
| | 1285 | type: Schema.Literal("encrypted_content").annotate({ |
| | 1286 | title: "EncryptedContentAgentMessageInputContentType", |
| | 1287 | }), |
| | 1288 | }).annotate({ title: "EncryptedContentAgentMessageInputContent" }), |
| | 1289 | ], |
| | 1290 | { mode: "oneOf" }, |
| | 1291 | ).annotate({ identifier: "ClientRequest__AgentMessageInputContent" }); |
| 966 | | 1292 | |
| 967 | export type ClientRequest__ReasoningItemContent = | 1293 | export type ClientRequest__ReasoningItemContent = |
| 968 | | { readonly text: string; readonly type: "reasoning_text" } | 1294 | | { readonly text: string; readonly type: "reasoning_text" } |
| ... | @@ -981,7 +1307,7 @@ export const ClientRequest__ReasoningItemContent = Schema.Union( | ... | @@ -981,7 +1307,7 @@ export const ClientRequest__ReasoningItemContent = Schema.Union( |
| 981 | }).annotate({ title: "TextReasoningItemContent" }), | 1307 | }).annotate({ title: "TextReasoningItemContent" }), |
| 982 | ], | 1308 | ], |
| 983 | { mode: "oneOf" }, | 1309 | { mode: "oneOf" }, |
| 984 | ); | 1310 | ).annotate({ identifier: "ClientRequest__ReasoningItemContent" }); |
| 985 | | 1311 | |
| 986 | export type ClientRequest__ReasoningItemReasoningSummary = { | 1312 | export type ClientRequest__ReasoningItemReasoningSummary = { |
| 987 | readonly text: string; | 1313 | readonly text: string; |
| ... | @@ -997,25 +1323,49 @@ export const ClientRequest__ReasoningItemReasoningSummary = Schema.Union( | ... | @@ -997,25 +1323,49 @@ export const ClientRequest__ReasoningItemReasoningSummary = Schema.Union( |
| 997 | }).annotate({ title: "SummaryTextReasoningItemReasoningSummary" }), | 1323 | }).annotate({ title: "SummaryTextReasoningItemReasoningSummary" }), |
| 998 | ], | 1324 | ], |
| 999 | { mode: "oneOf" }, | 1325 | { mode: "oneOf" }, |
| 1000 | ); | 1326 | ).annotate({ identifier: "ClientRequest__ReasoningItemReasoningSummary" }); |
| 1001 | | 1327 | |
| 1002 | export type ClientRequest__ReasoningSummary = "auto" | "concise" | "detailed" | "none"; | 1328 | export type ClientRequest__LocalShellAction = { |
| 1003 | export const ClientRequest__ReasoningSummary = Schema.Union( | 1329 | readonly command: ReadonlyArray<string>; |
| | 1330 | readonly env?: { readonly [x: string]: string } | null; |
| | 1331 | readonly timeout_ms?: number | null; |
| | 1332 | readonly type: "exec"; |
| | 1333 | readonly user?: string | null; |
| | 1334 | readonly working_directory?: string | null; |
| | 1335 | }; |
| | 1336 | export const ClientRequest__LocalShellAction = Schema.Union( |
| 1004 | [ | 1337 | [ |
| 1005 | Schema.Literals(["auto", "concise", "detailed"]), | 1338 | Schema.Struct({ |
| 1006 | Schema.Literal("none").annotate({ description: "Option to disable reasoning summaries." }), | 1339 | command: Schema.Array(Schema.String), |
| | 1340 | env: Schema.optionalKey( |
| | 1341 | Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null]), |
| | 1342 | ), |
| | 1343 | timeout_ms: Schema.optionalKey( |
| | 1344 | Schema.Union([ |
| | 1345 | Schema.Number.annotate({ format: "uint64" }) |
| | 1346 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 1347 | .check( |
| | 1348 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 1349 | expected: "a value greater than or equal to 0", |
| | 1350 | }), |
| | 1351 | ), |
| | 1352 | Schema.Null, |
| | 1353 | ]), |
| | 1354 | ), |
| | 1355 | type: Schema.Literal("exec").annotate({ title: "ExecLocalShellActionType" }), |
| | 1356 | user: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 1357 | working_directory: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 1358 | }).annotate({ title: "ExecLocalShellAction" }), |
| 1007 | ], | 1359 | ], |
| 1008 | { mode: "oneOf" }, | 1360 | { mode: "oneOf" }, |
| 1009 | ).annotate({ | 1361 | ).annotate({ identifier: "ClientRequest__LocalShellAction" }); |
| 1010 | description: | | |
| 1011 | "A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries", | | |
| 1012 | }); | | |
| 1013 | | 1362 | |
| 1014 | export type ClientRequest__RequestId = string | number; | 1363 | export type ClientRequest__LocalShellStatus = "completed" | "in_progress" | "incomplete"; |
| 1015 | export const ClientRequest__RequestId = Schema.Union([ | 1364 | export const ClientRequest__LocalShellStatus = Schema.Literals([ |
| 1016 | Schema.String, | 1365 | "completed", |
| 1017 | Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 1366 | "in_progress", |
| 1018 | ]); | 1367 | "incomplete", |
| | 1368 | ]).annotate({ identifier: "ClientRequest__LocalShellStatus" }); |
| 1019 | | 1369 | |
| 1020 | export type ClientRequest__ResponsesApiWebSearchAction = | 1370 | export type ClientRequest__ResponsesApiWebSearchAction = |
| 1021 | | { | 1371 | | { |
| ... | @@ -1055,377 +1405,74 @@ export const ClientRequest__ResponsesApiWebSearchAction = Schema.Union( | ... | @@ -1055,377 +1405,74 @@ export const ClientRequest__ResponsesApiWebSearchAction = Schema.Union( |
| 1055 | }).annotate({ title: "OtherResponsesApiWebSearchAction" }), | 1405 | }).annotate({ title: "OtherResponsesApiWebSearchAction" }), |
| 1056 | ], | 1406 | ], |
| 1057 | { mode: "oneOf" }, | 1407 | { mode: "oneOf" }, |
| 1058 | ); | 1408 | ).annotate({ identifier: "ClientRequest__ResponsesApiWebSearchAction" }); |
| 1059 | | | |
| 1060 | export type ClientRequest__ReviewDelivery = "inline" | "detached"; | | |
| 1061 | export const ClientRequest__ReviewDelivery = Schema.Literals(["inline", "detached"]); | | |
| 1062 | | 1409 | |
| 1063 | export type ClientRequest__ReviewTarget = | 1410 | export type ClientRequest__CapabilityRootLocation = { |
| 1064 | | { readonly type: "uncommittedChanges" } | 1411 | readonly environmentId: string; |
| 1065 | | { readonly branch: string; readonly type: "baseBranch" } | 1412 | readonly path: string; |
| 1066 | | { readonly sha: string; readonly title?: string | null; readonly type: "commit" } | 1413 | readonly type: "environment"; |
| 1067 | | { readonly instructions: string; readonly type: "custom" }; | 1414 | }; |
| 1068 | export const ClientRequest__ReviewTarget = Schema.Union( | 1415 | export const ClientRequest__CapabilityRootLocation = Schema.Union( |
| 1069 | [ | 1416 | [ |
| 1070 | Schema.Struct({ | 1417 | Schema.Struct({ |
| 1071 | type: Schema.Literal("uncommittedChanges").annotate({ | 1418 | environmentId: Schema.String, |
| 1072 | title: "UncommittedChangesReviewTargetType", | 1419 | path: Schema.String.annotate({ |
| | 1420 | description: "Absolute path for the root in the selected environment.", |
| | 1421 | }), |
| | 1422 | type: Schema.Literal("environment").annotate({ |
| | 1423 | title: "EnvironmentCapabilityRootLocationType", |
| 1073 | }), | 1424 | }), |
| 1074 | }).annotate({ | 1425 | }).annotate({ |
| 1075 | title: "UncommittedChangesReviewTarget", | 1426 | title: "EnvironmentCapabilityRootLocation", |
| 1076 | description: "Review the working tree: staged, unstaged, and untracked files.", | 1427 | description: "A path owned by an execution environment.", |
| 1077 | }), | 1428 | }), |
| 1078 | Schema.Struct({ | 1429 | ], |
| 1079 | branch: Schema.String, | 1430 | { mode: "oneOf" }, |
| 1080 | type: Schema.Literal("baseBranch").annotate({ title: "BaseBranchReviewTargetType" }), | 1431 | ).annotate({ |
| 1081 | }).annotate({ | 1432 | description: "Location used to resolve a selected capability root.", |
| 1082 | title: "BaseBranchReviewTarget", | 1433 | identifier: "ClientRequest__CapabilityRootLocation", |
| 1083 | description: "Review changes between the current branch and the given base branch.", | 1434 | }); |
| | 1435 | |
| | 1436 | export type ClientRequest__ConversationTextRole = "user" | "developer" | "assistant"; |
| | 1437 | export const ClientRequest__ConversationTextRole = Schema.Literals([ |
| | 1438 | "user", |
| | 1439 | "developer", |
| | 1440 | "assistant", |
| | 1441 | ]).annotate({ identifier: "ClientRequest__ConversationTextRole" }); |
| | 1442 | |
| | 1443 | export type ClientRequest__TurnItemsView = "notLoaded" | "summary" | "full"; |
| | 1444 | export const ClientRequest__TurnItemsView = Schema.Union( |
| | 1445 | [ |
| | 1446 | Schema.Literal("notLoaded").annotate({ |
| | 1447 | description: "`items` was not loaded for this turn. The field is intentionally empty.", |
| 1084 | }), | 1448 | }), |
| 1085 | Schema.Struct({ | 1449 | Schema.Literal("summary").annotate({ |
| 1086 | sha: Schema.String, | 1450 | description: "`items` contains only a display summary for this turn.", |
| 1087 | title: Schema.optionalKey( | | |
| 1088 | Schema.Union([ | | |
| 1089 | Schema.String.annotate({ | | |
| 1090 | description: "Optional human-readable label (e.g., commit subject) for UIs.", | | |
| 1091 | }), | | |
| 1092 | Schema.Null, | | |
| 1093 | ]), | | |
| 1094 | ), | | |
| 1095 | type: Schema.Literal("commit").annotate({ title: "CommitReviewTargetType" }), | | |
| 1096 | }).annotate({ | | |
| 1097 | title: "CommitReviewTarget", | | |
| 1098 | description: "Review the changes introduced by a specific commit.", | | |
| 1099 | }), | 1451 | }), |
| 1100 | Schema.Struct({ | 1452 | Schema.Literal("full").annotate({ |
| 1101 | instructions: Schema.String, | 1453 | description: |
| 1102 | type: Schema.Literal("custom").annotate({ title: "CustomReviewTargetType" }), | 1454 | "`items` contains every ThreadItem available from persisted app-server history for this turn.", |
| 1103 | }).annotate({ | | |
| 1104 | title: "CustomReviewTarget", | | |
| 1105 | description: "Arbitrary instructions, equivalent to the old free-form prompt.", | | |
| 1106 | }), | 1455 | }), |
| 1107 | ], | 1456 | ], |
| 1108 | { mode: "oneOf" }, | 1457 | { mode: "oneOf" }, |
| 1109 | ); | 1458 | ).annotate({ identifier: "ClientRequest__TurnItemsView" }); |
| 1110 | | | |
| 1111 | export type ClientRequest__SandboxMode = "read-only" | "workspace-write" | "danger-full-access"; | | |
| 1112 | export const ClientRequest__SandboxMode = Schema.Literals([ | | |
| 1113 | "read-only", | | |
| 1114 | "workspace-write", | | |
| 1115 | "danger-full-access", | | |
| 1116 | ]); | | |
| 1117 | | 1459 | |
| 1118 | export type ClientRequest__SessionMigration = { | 1460 | export type ClientRequest__LegacyAppPathString = string; |
| 1119 | readonly cwd: string; | 1461 | export const ClientRequest__LegacyAppPathString = Schema.String.annotate({ |
| 1120 | readonly path: string; | 1462 | identifier: "ClientRequest__LegacyAppPathString", |
| 1121 | readonly title?: string | null; | | |
| 1122 | }; | | |
| 1123 | export const ClientRequest__SessionMigration = Schema.Struct({ | | |
| 1124 | cwd: Schema.String, | | |
| 1125 | path: Schema.String, | | |
| 1126 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 1127 | }); | 1463 | }); |
| 1128 | | 1464 | |
| 1129 | export type ClientRequest__SkillMigration = { readonly name: string }; | 1465 | export type CommandExecutionRequestApprovalParams__AbsolutePathBuf = string; |
| 1130 | export const ClientRequest__SkillMigration = Schema.Struct({ name: Schema.String }); | 1466 | export const CommandExecutionRequestApprovalParams__AbsolutePathBuf = Schema.String.annotate({ |
| 1131 | | 1467 | description: |
| 1132 | export type ClientRequest__SkillsListParams = { | 1468 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| 1133 | readonly cwds?: ReadonlyArray<string>; | 1469 | identifier: "CommandExecutionRequestApprovalParams__AbsolutePathBuf", |
| 1134 | readonly forceReload?: boolean; | | |
| 1135 | }; | | |
| 1136 | export const ClientRequest__SkillsListParams = Schema.Struct({ | | |
| 1137 | cwds: Schema.optionalKey( | | |
| 1138 | Schema.Array(Schema.String).annotate({ | | |
| 1139 | description: "When empty, defaults to the current session working directory.", | | |
| 1140 | }), | | |
| 1141 | ), | | |
| 1142 | forceReload: Schema.optionalKey( | | |
| 1143 | Schema.Boolean.annotate({ | | |
| 1144 | description: "When true, bypass the skills cache and re-scan skills from disk.", | | |
| 1145 | }), | | |
| 1146 | ), | | |
| 1147 | }); | 1470 | }); |
| 1148 | | 1471 | |
| 1149 | export type ClientRequest__SortDirection = "asc" | "desc"; | | |
| 1150 | export const ClientRequest__SortDirection = Schema.Literals(["asc", "desc"]); | | |
| 1151 | | | |
| 1152 | export type ClientRequest__SubagentMigration = { readonly name: string }; | | |
| 1153 | export const ClientRequest__SubagentMigration = Schema.Struct({ name: Schema.String }); | | |
| 1154 | | | |
| 1155 | export type ClientRequest__TextElement = { | | |
| 1156 | readonly byteRange: { readonly end: number; readonly start: number }; | | |
| 1157 | readonly placeholder?: string | null; | | |
| 1158 | }; | | |
| 1159 | export const ClientRequest__TextElement = Schema.Struct({ | | |
| 1160 | byteRange: Schema.Struct({ | | |
| 1161 | end: Schema.Number.annotate({ format: "uint" }) | | |
| 1162 | .check(Schema.isInt()) | | |
| 1163 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 1164 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 1165 | .check(Schema.isInt()) | | |
| 1166 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 1167 | }).annotate({ | | |
| 1168 | description: "Byte range in the parent `text` buffer that this element occupies.", | | |
| 1169 | }), | | |
| 1170 | placeholder: Schema.optionalKey( | | |
| 1171 | Schema.Union([ | | |
| 1172 | Schema.String.annotate({ | | |
| 1173 | description: "Optional human-readable placeholder for the element, displayed in the UI.", | | |
| 1174 | }), | | |
| 1175 | Schema.Null, | | |
| 1176 | ]), | | |
| 1177 | ), | | |
| 1178 | }); | | |
| 1179 | | | |
| 1180 | export type ClientRequest__ThreadApproveGuardianDeniedActionParams = { | | |
| 1181 | readonly event: unknown; | | |
| 1182 | readonly threadId: string; | | |
| 1183 | }; | | |
| 1184 | export const ClientRequest__ThreadApproveGuardianDeniedActionParams = Schema.Struct({ | | |
| 1185 | event: Schema.Unknown.annotate({ | | |
| 1186 | description: "Serialized `codex_protocol::protocol::GuardianAssessmentEvent`.", | | |
| 1187 | }), | | |
| 1188 | threadId: Schema.String, | | |
| 1189 | }); | | |
| 1190 | | | |
| 1191 | export type ClientRequest__ThreadArchiveParams = { readonly threadId: string }; | | |
| 1192 | export const ClientRequest__ThreadArchiveParams = Schema.Struct({ threadId: Schema.String }); | | |
| 1193 | | | |
| 1194 | export type ClientRequest__ThreadCompactStartParams = { readonly threadId: string }; | | |
| 1195 | export const ClientRequest__ThreadCompactStartParams = Schema.Struct({ threadId: Schema.String }); | | |
| 1196 | | | |
| 1197 | export type ClientRequest__ThreadDeleteParams = { readonly threadId: string }; | | |
| 1198 | export const ClientRequest__ThreadDeleteParams = Schema.Struct({ threadId: Schema.String }); | | |
| 1199 | | | |
| 1200 | export type ClientRequest__ThreadGoalClearParams = { readonly threadId: string }; | | |
| 1201 | export const ClientRequest__ThreadGoalClearParams = Schema.Struct({ threadId: Schema.String }); | | |
| 1202 | | | |
| 1203 | export type ClientRequest__ThreadGoalGetParams = { readonly threadId: string }; | | |
| 1204 | export const ClientRequest__ThreadGoalGetParams = Schema.Struct({ threadId: Schema.String }); | | |
| 1205 | | | |
| 1206 | export type ClientRequest__ThreadGoalStatus = | | |
| 1207 | | "active" | | |
| 1208 | | "paused" | | |
| 1209 | | "blocked" | | |
| 1210 | | "usageLimited" | | |
| 1211 | | "budgetLimited" | | |
| 1212 | | "complete"; | | |
| 1213 | export const ClientRequest__ThreadGoalStatus = Schema.Literals([ | | |
| 1214 | "active", | | |
| 1215 | "paused", | | |
| 1216 | "blocked", | | |
| 1217 | "usageLimited", | | |
| 1218 | "budgetLimited", | | |
| 1219 | "complete", | | |
| 1220 | ]); | | |
| 1221 | | | |
| 1222 | export type ClientRequest__ThreadInjectItemsParams = { | | |
| 1223 | readonly items: ReadonlyArray<unknown>; | | |
| 1224 | readonly threadId: string; | | |
| 1225 | }; | | |
| 1226 | export const ClientRequest__ThreadInjectItemsParams = Schema.Struct({ | | |
| 1227 | items: Schema.Array(Schema.Unknown).annotate({ | | |
| 1228 | description: "Raw Responses API items to append to the thread's model-visible history.", | | |
| 1229 | }), | | |
| 1230 | threadId: Schema.String, | | |
| 1231 | }); | | |
| 1232 | | | |
| 1233 | export type ClientRequest__ThreadListCwdFilter = string | ReadonlyArray<string>; | | |
| 1234 | export const ClientRequest__ThreadListCwdFilter = Schema.Union([ | | |
| 1235 | Schema.String, | | |
| 1236 | Schema.Array(Schema.String), | | |
| 1237 | ]); | | |
| 1238 | | | |
| 1239 | export type ClientRequest__ThreadLoadedListParams = { | | |
| 1240 | readonly cursor?: string | null; | | |
| 1241 | readonly limit?: number | null; | | |
| 1242 | }; | | |
| 1243 | export const ClientRequest__ThreadLoadedListParams = Schema.Struct({ | | |
| 1244 | cursor: Schema.optionalKey( | | |
| 1245 | Schema.Union([ | | |
| 1246 | Schema.String.annotate({ | | |
| 1247 | description: "Opaque pagination cursor returned by a previous call.", | | |
| 1248 | }), | | |
| 1249 | Schema.Null, | | |
| 1250 | ]), | | |
| 1251 | ), | | |
| 1252 | limit: Schema.optionalKey( | | |
| 1253 | Schema.Union([ | | |
| 1254 | Schema.Number.annotate({ | | |
| 1255 | description: "Optional page size; defaults to no limit.", | | |
| 1256 | format: "uint32", | | |
| 1257 | }) | | |
| 1258 | .check(Schema.isInt()) | | |
| 1259 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 1260 | Schema.Null, | | |
| 1261 | ]), | | |
| 1262 | ), | | |
| 1263 | }); | | |
| 1264 | | | |
| 1265 | export type ClientRequest__ThreadMetadataGitInfoUpdateParams = { | | |
| 1266 | readonly branch?: string | null; | | |
| 1267 | readonly originUrl?: string | null; | | |
| 1268 | readonly sha?: string | null; | | |
| 1269 | }; | | |
| 1270 | export const ClientRequest__ThreadMetadataGitInfoUpdateParams = Schema.Struct({ | | |
| 1271 | branch: Schema.optionalKey( | | |
| 1272 | Schema.Union([ | | |
| 1273 | Schema.String.annotate({ | | |
| 1274 | description: | | |
| 1275 | "Omit to leave the stored branch unchanged, set to `null` to clear it, or provide a non-empty string to replace it.", | | |
| 1276 | }), | | |
| 1277 | Schema.Null, | | |
| 1278 | ]), | | |
| 1279 | ), | | |
| 1280 | originUrl: Schema.optionalKey( | | |
| 1281 | Schema.Union([ | | |
| 1282 | Schema.String.annotate({ | | |
| 1283 | description: | | |
| 1284 | "Omit to leave the stored origin URL unchanged, set to `null` to clear it, or provide a non-empty string to replace it.", | | |
| 1285 | }), | | |
| 1286 | Schema.Null, | | |
| 1287 | ]), | | |
| 1288 | ), | | |
| 1289 | sha: Schema.optionalKey( | | |
| 1290 | Schema.Union([ | | |
| 1291 | Schema.String.annotate({ | | |
| 1292 | description: | | |
| 1293 | "Omit to leave the stored commit unchanged, set to `null` to clear it, or provide a non-empty string to replace it.", | | |
| 1294 | }), | | |
| 1295 | Schema.Null, | | |
| 1296 | ]), | | |
| 1297 | ), | | |
| 1298 | }); | | |
| 1299 | | | |
| 1300 | export type ClientRequest__ThreadReadParams = { | | |
| 1301 | readonly includeTurns?: boolean; | | |
| 1302 | readonly threadId: string; | | |
| 1303 | }; | | |
| 1304 | export const ClientRequest__ThreadReadParams = Schema.Struct({ | | |
| 1305 | includeTurns: Schema.optionalKey( | | |
| 1306 | Schema.Boolean.annotate({ | | |
| 1307 | description: "When true, include turns and their items from rollout history.", | | |
| 1308 | }), | | |
| 1309 | ), | | |
| 1310 | threadId: Schema.String, | | |
| 1311 | }); | | |
| 1312 | | | |
| 1313 | export type ClientRequest__ThreadRollbackParams = { | | |
| 1314 | readonly numTurns: number; | | |
| 1315 | readonly threadId: string; | | |
| 1316 | }; | | |
| 1317 | export const ClientRequest__ThreadRollbackParams = Schema.Struct({ | | |
| 1318 | numTurns: Schema.Number.annotate({ | | |
| 1319 | description: | | |
| 1320 | "The number of turns to drop from the end of the thread. Must be >= 1.\n\nThis only modifies the thread's history and does not revert local file changes that have been made by the agent. Clients are responsible for reverting these changes.", | | |
| 1321 | format: "uint32", | | |
| 1322 | }) | | |
| 1323 | .check(Schema.isInt()) | | |
| 1324 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 1325 | threadId: Schema.String, | | |
| 1326 | }).annotate({ description: "DEPRECATED: `thread/rollback` will be removed soon." }); | | |
| 1327 | | | |
| 1328 | export type ClientRequest__ThreadSetNameParams = { | | |
| 1329 | readonly name: string; | | |
| 1330 | readonly threadId: string; | | |
| 1331 | }; | | |
| 1332 | export const ClientRequest__ThreadSetNameParams = Schema.Struct({ | | |
| 1333 | name: Schema.String, | | |
| 1334 | threadId: Schema.String, | | |
| 1335 | }); | | |
| 1336 | | | |
| 1337 | export type ClientRequest__ThreadShellCommandParams = { | | |
| 1338 | readonly command: string; | | |
| 1339 | readonly threadId: string; | | |
| 1340 | }; | | |
| 1341 | export const ClientRequest__ThreadShellCommandParams = Schema.Struct({ | | |
| 1342 | command: Schema.String.annotate({ | | |
| 1343 | description: | | |
| 1344 | "Shell command string evaluated by the thread's configured shell. Unlike `command/exec`, this intentionally preserves shell syntax such as pipes, redirects, and quoting. This runs unsandboxed with full access rather than inheriting the thread sandbox policy.", | | |
| 1345 | }), | | |
| 1346 | threadId: Schema.String, | | |
| 1347 | }); | | |
| 1348 | | | |
| 1349 | export type ClientRequest__ThreadSortKey = "created_at" | "updated_at" | "recency_at"; | | |
| 1350 | export const ClientRequest__ThreadSortKey = Schema.Literals([ | | |
| 1351 | "created_at", | | |
| 1352 | "updated_at", | | |
| 1353 | "recency_at", | | |
| 1354 | ]); | | |
| 1355 | | | |
| 1356 | export type ClientRequest__ThreadSource = string; | | |
| 1357 | export const ClientRequest__ThreadSource = Schema.String; | | |
| 1358 | | | |
| 1359 | export type ClientRequest__ThreadSourceKind = | | |
| 1360 | | "cli" | | |
| 1361 | | "vscode" | | |
| 1362 | | "exec" | | |
| 1363 | | "appServer" | | |
| 1364 | | "subAgent" | | |
| 1365 | | "subAgentReview" | | |
| 1366 | | "subAgentCompact" | | |
| 1367 | | "subAgentThreadSpawn" | | |
| 1368 | | "subAgentOther" | | |
| 1369 | | "unknown"; | | |
| 1370 | export const ClientRequest__ThreadSourceKind = Schema.Literals([ | | |
| 1371 | "cli", | | |
| 1372 | "vscode", | | |
| 1373 | "exec", | | |
| 1374 | "appServer", | | |
| 1375 | "subAgent", | | |
| 1376 | "subAgentReview", | | |
| 1377 | "subAgentCompact", | | |
| 1378 | "subAgentThreadSpawn", | | |
| 1379 | "subAgentOther", | | |
| 1380 | "unknown", | | |
| 1381 | ]); | | |
| 1382 | | | |
| 1383 | export type ClientRequest__ThreadStartSource = "startup" | "clear"; | | |
| 1384 | export const ClientRequest__ThreadStartSource = Schema.Literals(["startup", "clear"]); | | |
| 1385 | | | |
| 1386 | export type ClientRequest__ThreadUnarchiveParams = { readonly threadId: string }; | | |
| 1387 | export const ClientRequest__ThreadUnarchiveParams = Schema.Struct({ threadId: Schema.String }); | | |
| 1388 | | | |
| 1389 | export type ClientRequest__ThreadUnsubscribeParams = { readonly threadId: string }; | | |
| 1390 | export const ClientRequest__ThreadUnsubscribeParams = Schema.Struct({ threadId: Schema.String }); | | |
| 1391 | | | |
| 1392 | export type ClientRequest__TurnInterruptParams = { | | |
| 1393 | readonly threadId: string; | | |
| 1394 | readonly turnId: string; | | |
| 1395 | }; | | |
| 1396 | export const ClientRequest__TurnInterruptParams = Schema.Struct({ | | |
| 1397 | threadId: Schema.String, | | |
| 1398 | turnId: Schema.String, | | |
| 1399 | }); | | |
| 1400 | | | |
| 1401 | export type ClientRequest__TurnItemsView = "notLoaded" | "summary" | "full"; | | |
| 1402 | export const ClientRequest__TurnItemsView = Schema.Literals(["notLoaded", "summary", "full"]); | | |
| 1403 | | | |
| 1404 | export type ClientRequest__WindowsSandboxSetupMode = "elevated" | "unelevated"; | | |
| 1405 | export const ClientRequest__WindowsSandboxSetupMode = Schema.Literals(["elevated", "unelevated"]); | | |
| 1406 | | | |
| 1407 | export type CommandExecutionRequestApprovalParams__AbsolutePathBuf = string; | | |
| 1408 | export const CommandExecutionRequestApprovalParams__AbsolutePathBuf = Schema.String.annotate({ | | |
| 1409 | description: | | |
| 1410 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | | |
| 1411 | }); | | |
| 1412 | | | |
| 1413 | export type CommandExecutionRequestApprovalParams__AdditionalNetworkPermissions = { | | |
| 1414 | readonly enabled?: boolean | null; | | |
| 1415 | }; | | |
| 1416 | export const CommandExecutionRequestApprovalParams__AdditionalNetworkPermissions = Schema.Struct({ | | |
| 1417 | enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | | |
| 1418 | }); | | |
| 1419 | | | |
| 1420 | export type CommandExecutionRequestApprovalParams__FileSystemAccessMode = "read" | "write" | "deny"; | | |
| 1421 | export const CommandExecutionRequestApprovalParams__FileSystemAccessMode = Schema.Literals([ | | |
| 1422 | "read", | | |
| 1423 | "write", | | |
| 1424 | "deny", | | |
| 1425 | ]); | | |
| 1426 | | | |
| 1427 | export type CommandExecutionRequestApprovalParams__LegacyAppPathString = string; | 1472 | export type CommandExecutionRequestApprovalParams__LegacyAppPathString = string; |
| 1428 | export const CommandExecutionRequestApprovalParams__LegacyAppPathString = Schema.String; | 1473 | export const CommandExecutionRequestApprovalParams__LegacyAppPathString = Schema.String.annotate({ |
| | 1474 | identifier: "CommandExecutionRequestApprovalParams__LegacyAppPathString", |
| | 1475 | }); |
| 1429 | | 1476 | |
| 1430 | export type CommandExecutionRequestApprovalParams__NetworkApprovalProtocol = | 1477 | export type CommandExecutionRequestApprovalParams__NetworkApprovalProtocol = |
| 1431 | | "http" | 1478 | | "http" |
| ... | @@ -1437,19 +1484,33 @@ export const CommandExecutionRequestApprovalParams__NetworkApprovalProtocol = Sc | ... | @@ -1437,19 +1484,33 @@ export const CommandExecutionRequestApprovalParams__NetworkApprovalProtocol = Sc |
| 1437 | "https", | 1484 | "https", |
| 1438 | "socks5Tcp", | 1485 | "socks5Tcp", |
| 1439 | "socks5Udp", | 1486 | "socks5Udp", |
| 1440 | ]); | 1487 | ]).annotate({ identifier: "CommandExecutionRequestApprovalParams__NetworkApprovalProtocol" }); |
| 1441 | | 1488 | |
| 1442 | export type CommandExecutionRequestApprovalParams__NetworkPolicyRuleAction = "allow" | "deny"; | 1489 | export type CommandExecutionRequestApprovalParams__NetworkPolicyRuleAction = "allow" | "deny"; |
| 1443 | export const CommandExecutionRequestApprovalParams__NetworkPolicyRuleAction = Schema.Literals([ | 1490 | export const CommandExecutionRequestApprovalParams__NetworkPolicyRuleAction = Schema.Literals([ |
| 1444 | "allow", | 1491 | "allow", |
| 1445 | "deny", | 1492 | "deny", |
| 1446 | ]); | 1493 | ]).annotate({ identifier: "CommandExecutionRequestApprovalParams__NetworkPolicyRuleAction" }); |
| | 1494 | |
| | 1495 | export type CommandExecutionRequestApprovalParams__FileSystemAccessMode = "read" | "write" | "deny"; |
| | 1496 | export const CommandExecutionRequestApprovalParams__FileSystemAccessMode = Schema.Literals([ |
| | 1497 | "read", |
| | 1498 | "write", |
| | 1499 | "deny", |
| | 1500 | ]).annotate({ identifier: "CommandExecutionRequestApprovalParams__FileSystemAccessMode" }); |
| | 1501 | |
| | 1502 | export type CommandExecutionRequestApprovalParams__AdditionalNetworkPermissions = { |
| | 1503 | readonly enabled?: boolean | null; |
| | 1504 | }; |
| | 1505 | export const CommandExecutionRequestApprovalParams__AdditionalNetworkPermissions = Schema.Struct({ |
| | 1506 | enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 1507 | }).annotate({ identifier: "CommandExecutionRequestApprovalParams__AdditionalNetworkPermissions" }); |
| 1447 | | 1508 | |
| 1448 | export type CommandExecutionRequestApprovalResponse__NetworkPolicyRuleAction = "allow" | "deny"; | 1509 | export type CommandExecutionRequestApprovalResponse__NetworkPolicyRuleAction = "allow" | "deny"; |
| 1449 | export const CommandExecutionRequestApprovalResponse__NetworkPolicyRuleAction = Schema.Literals([ | 1510 | export const CommandExecutionRequestApprovalResponse__NetworkPolicyRuleAction = Schema.Literals([ |
| 1450 | "allow", | 1511 | "allow", |
| 1451 | "deny", | 1512 | "deny", |
| 1452 | ]); | 1513 | ]).annotate({ identifier: "CommandExecutionRequestApprovalResponse__NetworkPolicyRuleAction" }); |
| 1453 | | 1514 | |
| 1454 | export type DynamicToolCallResponse__DynamicToolCallOutputContentItem = | 1515 | export type DynamicToolCallResponse__DynamicToolCallOutputContentItem = |
| 1455 | | { readonly text: string; readonly type: "inputText" } | 1516 | | { readonly text: string; readonly type: "inputText" } |
| ... | @@ -1477,7 +1538,12 @@ export const DynamicToolCallResponse__DynamicToolCallOutputContentItem = Schema. | ... | @@ -1477,7 +1538,12 @@ export const DynamicToolCallResponse__DynamicToolCallOutputContentItem = Schema. |
| 1477 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), | 1538 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), |
| 1478 | ], | 1539 | ], |
| 1479 | { mode: "oneOf" }, | 1540 | { mode: "oneOf" }, |
| 1480 | ); | 1541 | ).annotate({ identifier: "DynamicToolCallResponse__DynamicToolCallOutputContentItem" }); |
| | 1542 | |
| | 1543 | export type ExecCommandApprovalParams__ThreadId = string; |
| | 1544 | export const ExecCommandApprovalParams__ThreadId = Schema.String.annotate({ |
| | 1545 | identifier: "ExecCommandApprovalParams__ThreadId", |
| | 1546 | }); |
| 1481 | | 1547 | |
| 1482 | export type ExecCommandApprovalParams__ParsedCommand = | 1548 | export type ExecCommandApprovalParams__ParsedCommand = |
| 1483 | | { readonly cmd: string; readonly name: string; readonly path: string; readonly type: "read" } | 1549 | | { readonly cmd: string; readonly name: string; readonly path: string; readonly type: "read" } |
| ... | @@ -1517,34 +1583,41 @@ export const ExecCommandApprovalParams__ParsedCommand = Schema.Union( | ... | @@ -1517,34 +1583,41 @@ export const ExecCommandApprovalParams__ParsedCommand = Schema.Union( |
| 1517 | }).annotate({ title: "UnknownParsedCommand" }), | 1583 | }).annotate({ title: "UnknownParsedCommand" }), |
| 1518 | ], | 1584 | ], |
| 1519 | { mode: "oneOf" }, | 1585 | { mode: "oneOf" }, |
| 1520 | ); | 1586 | ).annotate({ identifier: "ExecCommandApprovalParams__ParsedCommand" }); |
| 1521 | | | |
| 1522 | export type ExecCommandApprovalParams__ThreadId = string; | | |
| 1523 | export const ExecCommandApprovalParams__ThreadId = Schema.String; | | |
| 1524 | | 1587 | |
| 1525 | export type ExecCommandApprovalResponse__NetworkPolicyRuleAction = "allow" | "deny"; | 1588 | export type ExecCommandApprovalResponse__NetworkPolicyRuleAction = "allow" | "deny"; |
| 1526 | export const ExecCommandApprovalResponse__NetworkPolicyRuleAction = Schema.Literals([ | 1589 | export const ExecCommandApprovalResponse__NetworkPolicyRuleAction = Schema.Literals([ |
| 1527 | "allow", | 1590 | "allow", |
| 1528 | "deny", | 1591 | "deny", |
| 1529 | ]); | 1592 | ]).annotate({ identifier: "ExecCommandApprovalResponse__NetworkPolicyRuleAction" }); |
| 1530 | | 1593 | |
| 1531 | export type FileChangeRequestApprovalResponse__FileChangeApprovalDecision = | 1594 | export type FileChangeRequestApprovalResponse__FileChangeApprovalDecision = |
| 1532 | | "accept" | 1595 | | "accept" |
| 1533 | | "acceptForSession" | 1596 | | "acceptForSession" |
| 1534 | | "decline" | 1597 | | "decline" |
| 1535 | | "cancel"; | 1598 | | "cancel"; |
| 1536 | export const FileChangeRequestApprovalResponse__FileChangeApprovalDecision = Schema.Literals([ | 1599 | export const FileChangeRequestApprovalResponse__FileChangeApprovalDecision = Schema.Union( |
| 1537 | "accept", | 1600 | [ |
| 1538 | "acceptForSession", | 1601 | Schema.Literal("accept").annotate({ description: "User approved the file changes." }), |
| 1539 | "decline", | 1602 | Schema.Literal("acceptForSession").annotate({ |
| 1540 | "cancel", | 1603 | description: |
| 1541 | ]); | 1604 | "User approved the file changes and future changes to the same files should run without prompting.", |
| | 1605 | }), |
| | 1606 | Schema.Literal("decline").annotate({ |
| | 1607 | description: "User denied the file changes. The agent will continue the turn.", |
| | 1608 | }), |
| | 1609 | Schema.Literal("cancel").annotate({ |
| | 1610 | description: "User denied the file changes. The turn will also be immediately interrupted.", |
| | 1611 | }), |
| | 1612 | ], |
| | 1613 | { mode: "oneOf" }, |
| | 1614 | ).annotate({ identifier: "FileChangeRequestApprovalResponse__FileChangeApprovalDecision" }); |
| 1542 | | 1615 | |
| 1543 | export type FuzzyFileSearchResponse__FuzzyFileSearchMatchType = "file" | "directory"; | 1616 | export type FuzzyFileSearchResponse__FuzzyFileSearchMatchType = "file" | "directory"; |
| 1544 | export const FuzzyFileSearchResponse__FuzzyFileSearchMatchType = Schema.Literals([ | 1617 | export const FuzzyFileSearchResponse__FuzzyFileSearchMatchType = Schema.Literals([ |
| 1545 | "file", | 1618 | "file", |
| 1546 | "directory", | 1619 | "directory", |
| 1547 | ]); | 1620 | ]).annotate({ identifier: "FuzzyFileSearchResponse__FuzzyFileSearchMatchType" }); |
| 1548 | | 1621 | |
| 1549 | export type FuzzyFileSearchSessionUpdatedNotification__FuzzyFileSearchMatchType = | 1622 | export type FuzzyFileSearchSessionUpdatedNotification__FuzzyFileSearchMatchType = |
| 1550 | | "file" | 1623 | | "file" |
| ... | @@ -1552,50 +1625,36 @@ export type FuzzyFileSearchSessionUpdatedNotification__FuzzyFileSearchMatchType | ... | @@ -1552,50 +1625,36 @@ export type FuzzyFileSearchSessionUpdatedNotification__FuzzyFileSearchMatchType |
| 1552 | export const FuzzyFileSearchSessionUpdatedNotification__FuzzyFileSearchMatchType = Schema.Literals([ | 1625 | export const FuzzyFileSearchSessionUpdatedNotification__FuzzyFileSearchMatchType = Schema.Literals([ |
| 1553 | "file", | 1626 | "file", |
| 1554 | "directory", | 1627 | "directory", |
| 1555 | ]); | 1628 | ]).annotate({ identifier: "FuzzyFileSearchSessionUpdatedNotification__FuzzyFileSearchMatchType" }); |
| 1556 | | 1629 | |
| 1557 | export type JSONRPCError__JSONRPCErrorError = { | 1630 | export type JSONRPCError__JSONRPCErrorError = { |
| 1558 | readonly code: number; | 1631 | readonly code: number; |
| 1559 | readonly data?: unknown; | 1632 | readonly data?: Schema.Json; |
| 1560 | readonly message: string; | 1633 | readonly message: string; |
| 1561 | }; | 1634 | }; |
| 1562 | export const JSONRPCError__JSONRPCErrorError = Schema.Struct({ | 1635 | export const JSONRPCError__JSONRPCErrorError = Schema.Struct({ |
| 1563 | code: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 1636 | code: Schema.Number.annotate({ format: "int64" }).check( |
| 1564 | data: Schema.optionalKey(Schema.Unknown), | 1637 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 1638 | ), |
| | 1639 | data: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 1565 | message: Schema.String, | 1640 | message: Schema.String, |
| 1566 | }); | 1641 | }).annotate({ identifier: "JSONRPCError__JSONRPCErrorError" }); |
| 1567 | | 1642 | |
| 1568 | export type JSONRPCError__RequestId = string | number; | 1643 | export type JSONRPCError__RequestId = string | number; |
| 1569 | export const JSONRPCError__RequestId = Schema.Union([ | 1644 | export const JSONRPCError__RequestId = Schema.Union([ |
| 1570 | Schema.String, | 1645 | Schema.String, |
| 1571 | Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 1646 | Schema.Number.annotate({ format: "int64" }).check( |
| 1572 | ]); | 1647 | Schema.isInt().annotate({ expected: "an integer" }), |
| 1573 | | 1648 | ), |
| 1574 | export type JSONRPCMessage__JSONRPCErrorError = { | 1649 | ]).annotate({ identifier: "JSONRPCError__RequestId" }); |
| 1575 | readonly code: number; | | |
| 1576 | readonly data?: unknown; | | |
| 1577 | readonly message: string; | | |
| 1578 | }; | | |
| 1579 | export const JSONRPCMessage__JSONRPCErrorError = Schema.Struct({ | | |
| 1580 | code: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | | |
| 1581 | data: Schema.optionalKey(Schema.Unknown), | | |
| 1582 | message: Schema.String, | | |
| 1583 | }); | | |
| 1584 | | | |
| 1585 | export type JSONRPCMessage__JSONRPCNotification = { | | |
| 1586 | readonly method: string; | | |
| 1587 | readonly params?: unknown; | | |
| 1588 | }; | | |
| 1589 | export const JSONRPCMessage__JSONRPCNotification = Schema.Struct({ | | |
| 1590 | method: Schema.String, | | |
| 1591 | params: Schema.optionalKey(Schema.Unknown), | | |
| 1592 | }).annotate({ description: "A notification which does not expect a response." }); | | |
| 1593 | | 1650 | |
| 1594 | export type JSONRPCMessage__RequestId = string | number; | 1651 | export type JSONRPCMessage__RequestId = string | number; |
| 1595 | export const JSONRPCMessage__RequestId = Schema.Union([ | 1652 | export const JSONRPCMessage__RequestId = Schema.Union([ |
| 1596 | Schema.String, | 1653 | Schema.String, |
| 1597 | Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 1654 | Schema.Number.annotate({ format: "int64" }).check( |
| 1598 | ]); | 1655 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 1656 | ), |
| | 1657 | ]).annotate({ identifier: "JSONRPCMessage__RequestId" }); |
| 1599 | | 1658 | |
| 1600 | export type JSONRPCMessage__W3cTraceContext = { | 1659 | export type JSONRPCMessage__W3cTraceContext = { |
| 1601 | readonly traceparent?: string | null; | 1660 | readonly traceparent?: string | null; |
| ... | @@ -1604,13 +1663,40 @@ export type JSONRPCMessage__W3cTraceContext = { | ... | @@ -1604,13 +1663,40 @@ export type JSONRPCMessage__W3cTraceContext = { |
| 1604 | export const JSONRPCMessage__W3cTraceContext = Schema.Struct({ | 1663 | export const JSONRPCMessage__W3cTraceContext = Schema.Struct({ |
| 1605 | traceparent: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 1664 | traceparent: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 1606 | tracestate: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 1665 | tracestate: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 1666 | }).annotate({ identifier: "JSONRPCMessage__W3cTraceContext" }); |
| | 1667 | |
| | 1668 | export type JSONRPCMessage__JSONRPCNotification = { |
| | 1669 | readonly method: string; |
| | 1670 | readonly params?: Schema.Json; |
| | 1671 | }; |
| | 1672 | export const JSONRPCMessage__JSONRPCNotification = Schema.Struct({ |
| | 1673 | method: Schema.String, |
| | 1674 | params: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 1675 | }).annotate({ |
| | 1676 | description: "A notification which does not expect a response.", |
| | 1677 | identifier: "JSONRPCMessage__JSONRPCNotification", |
| 1607 | }); | 1678 | }); |
| 1608 | | 1679 | |
| | 1680 | export type JSONRPCMessage__JSONRPCErrorError = { |
| | 1681 | readonly code: number; |
| | 1682 | readonly data?: Schema.Json; |
| | 1683 | readonly message: string; |
| | 1684 | }; |
| | 1685 | export const JSONRPCMessage__JSONRPCErrorError = Schema.Struct({ |
| | 1686 | code: Schema.Number.annotate({ format: "int64" }).check( |
| | 1687 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 1688 | ), |
| | 1689 | data: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 1690 | message: Schema.String, |
| | 1691 | }).annotate({ identifier: "JSONRPCMessage__JSONRPCErrorError" }); |
| | 1692 | |
| 1609 | export type JSONRPCRequest__RequestId = string | number; | 1693 | export type JSONRPCRequest__RequestId = string | number; |
| 1610 | export const JSONRPCRequest__RequestId = Schema.Union([ | 1694 | export const JSONRPCRequest__RequestId = Schema.Union([ |
| 1611 | Schema.String, | 1695 | Schema.String, |
| 1612 | Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 1696 | Schema.Number.annotate({ format: "int64" }).check( |
| 1613 | ]); | 1697 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 1698 | ), |
| | 1699 | ]).annotate({ identifier: "JSONRPCRequest__RequestId" }); |
| 1614 | | 1700 | |
| 1615 | export type JSONRPCRequest__W3cTraceContext = { | 1701 | export type JSONRPCRequest__W3cTraceContext = { |
| 1616 | readonly traceparent?: string | null; | 1702 | readonly traceparent?: string | null; |
| ... | @@ -1619,20 +1705,20 @@ export type JSONRPCRequest__W3cTraceContext = { | ... | @@ -1619,20 +1705,20 @@ export type JSONRPCRequest__W3cTraceContext = { |
| 1619 | export const JSONRPCRequest__W3cTraceContext = Schema.Struct({ | 1705 | export const JSONRPCRequest__W3cTraceContext = Schema.Struct({ |
| 1620 | traceparent: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 1706 | traceparent: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 1621 | tracestate: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 1707 | tracestate: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 1622 | }); | 1708 | }).annotate({ identifier: "JSONRPCRequest__W3cTraceContext" }); |
| 1623 | | 1709 | |
| 1624 | export type JSONRPCResponse__RequestId = string | number; | 1710 | export type JSONRPCResponse__RequestId = string | number; |
| 1625 | export const JSONRPCResponse__RequestId = Schema.Union([ | 1711 | export const JSONRPCResponse__RequestId = Schema.Union([ |
| 1626 | Schema.String, | 1712 | Schema.String, |
| 1627 | Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 1713 | Schema.Number.annotate({ format: "int64" }).check( |
| 1628 | ]); | 1714 | Schema.isInt().annotate({ expected: "an integer" }), |
| 1629 | | 1715 | ), |
| 1630 | export type McpServerElicitationRequestParams__McpElicitationArrayType = "array"; | 1716 | ]).annotate({ identifier: "JSONRPCResponse__RequestId" }); |
| 1631 | export const McpServerElicitationRequestParams__McpElicitationArrayType = Schema.Literal("array"); | | |
| 1632 | | 1717 | |
| 1633 | export type McpServerElicitationRequestParams__McpElicitationBooleanType = "boolean"; | 1718 | export type McpServerElicitationRequestParams__McpElicitationStringType = "string"; |
| 1634 | export const McpServerElicitationRequestParams__McpElicitationBooleanType = | 1719 | export const McpServerElicitationRequestParams__McpElicitationStringType = Schema.Literal( |
| 1635 | Schema.Literal("boolean"); | 1720 | "string", |
| | 1721 | ).annotate({ identifier: "McpServerElicitationRequestParams__McpElicitationStringType" }); |
| 1636 | | 1722 | |
| 1637 | export type McpServerElicitationRequestParams__McpElicitationConstOption = { | 1723 | export type McpServerElicitationRequestParams__McpElicitationConstOption = { |
| 1638 | readonly const: string; | 1724 | readonly const: string; |
| ... | @@ -1641,16 +1727,12 @@ export type McpServerElicitationRequestParams__McpElicitationConstOption = { | ... | @@ -1641,16 +1727,12 @@ export type McpServerElicitationRequestParams__McpElicitationConstOption = { |
| 1641 | export const McpServerElicitationRequestParams__McpElicitationConstOption = Schema.Struct({ | 1727 | export const McpServerElicitationRequestParams__McpElicitationConstOption = Schema.Struct({ |
| 1642 | const: Schema.String, | 1728 | const: Schema.String, |
| 1643 | title: Schema.String, | 1729 | title: Schema.String, |
| 1644 | }); | 1730 | }).annotate({ identifier: "McpServerElicitationRequestParams__McpElicitationConstOption" }); |
| 1645 | | | |
| 1646 | export type McpServerElicitationRequestParams__McpElicitationNumberType = "number" | "integer"; | | |
| 1647 | export const McpServerElicitationRequestParams__McpElicitationNumberType = Schema.Literals([ | | |
| 1648 | "number", | | |
| 1649 | "integer", | | |
| 1650 | ]); | | |
| 1651 | | 1731 | |
| 1652 | export type McpServerElicitationRequestParams__McpElicitationObjectType = "object"; | 1732 | export type McpServerElicitationRequestParams__McpElicitationArrayType = "array"; |
| 1653 | export const McpServerElicitationRequestParams__McpElicitationObjectType = Schema.Literal("object"); | 1733 | export const McpServerElicitationRequestParams__McpElicitationArrayType = Schema.Literal( |
| | 1734 | "array", |
| | 1735 | ).annotate({ identifier: "McpServerElicitationRequestParams__McpElicitationArrayType" }); |
| 1654 | | 1736 | |
| 1655 | export type McpServerElicitationRequestParams__McpElicitationStringFormat = | 1737 | export type McpServerElicitationRequestParams__McpElicitationStringFormat = |
| 1656 | | "email" | 1738 | | "email" |
| ... | @@ -1662,10 +1744,23 @@ export const McpServerElicitationRequestParams__McpElicitationStringFormat = Sch | ... | @@ -1662,10 +1744,23 @@ export const McpServerElicitationRequestParams__McpElicitationStringFormat = Sch |
| 1662 | "uri", | 1744 | "uri", |
| 1663 | "date", | 1745 | "date", |
| 1664 | "date-time", | 1746 | "date-time", |
| 1665 | ]); | 1747 | ]).annotate({ identifier: "McpServerElicitationRequestParams__McpElicitationStringFormat" }); |
| 1666 | | 1748 | |
| 1667 | export type McpServerElicitationRequestParams__McpElicitationStringType = "string"; | 1749 | export type McpServerElicitationRequestParams__McpElicitationNumberType = "number" | "integer"; |
| 1668 | export const McpServerElicitationRequestParams__McpElicitationStringType = Schema.Literal("string"); | 1750 | export const McpServerElicitationRequestParams__McpElicitationNumberType = Schema.Literals([ |
| | 1751 | "number", |
| | 1752 | "integer", |
| | 1753 | ]).annotate({ identifier: "McpServerElicitationRequestParams__McpElicitationNumberType" }); |
| | 1754 | |
| | 1755 | export type McpServerElicitationRequestParams__McpElicitationBooleanType = "boolean"; |
| | 1756 | export const McpServerElicitationRequestParams__McpElicitationBooleanType = Schema.Literal( |
| | 1757 | "boolean", |
| | 1758 | ).annotate({ identifier: "McpServerElicitationRequestParams__McpElicitationBooleanType" }); |
| | 1759 | |
| | 1760 | export type McpServerElicitationRequestParams__McpElicitationObjectType = "object"; |
| | 1761 | export const McpServerElicitationRequestParams__McpElicitationObjectType = Schema.Literal( |
| | 1762 | "object", |
| | 1763 | ).annotate({ identifier: "McpServerElicitationRequestParams__McpElicitationObjectType" }); |
| 1669 | | 1764 | |
| 1670 | export type McpServerElicitationRequestResponse__McpServerElicitationAction = | 1765 | export type McpServerElicitationRequestResponse__McpServerElicitationAction = |
| 1671 | | "accept" | 1766 | | "accept" |
| ... | @@ -1675,19 +1770,13 @@ export const McpServerElicitationRequestResponse__McpServerElicitationAction = S | ... | @@ -1675,19 +1770,13 @@ export const McpServerElicitationRequestResponse__McpServerElicitationAction = S |
| 1675 | "accept", | 1770 | "accept", |
| 1676 | "decline", | 1771 | "decline", |
| 1677 | "cancel", | 1772 | "cancel", |
| 1678 | ]); | 1773 | ]).annotate({ identifier: "McpServerElicitationRequestResponse__McpServerElicitationAction" }); |
| 1679 | | 1774 | |
| 1680 | export type PermissionsRequestApprovalParams__AbsolutePathBuf = string; | 1775 | export type PermissionsRequestApprovalParams__AbsolutePathBuf = string; |
| 1681 | export const PermissionsRequestApprovalParams__AbsolutePathBuf = Schema.String.annotate({ | 1776 | export const PermissionsRequestApprovalParams__AbsolutePathBuf = Schema.String.annotate({ |
| 1682 | description: | 1777 | description: |
| 1683 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 1778 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| 1684 | }); | 1779 | identifier: "PermissionsRequestApprovalParams__AbsolutePathBuf", |
| 1685 | | | |
| 1686 | export type PermissionsRequestApprovalParams__AdditionalNetworkPermissions = { | | |
| 1687 | readonly enabled?: boolean | null; | | |
| 1688 | }; | | |
| 1689 | export const PermissionsRequestApprovalParams__AdditionalNetworkPermissions = Schema.Struct({ | | |
| 1690 | enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | | |
| 1691 | }); | 1780 | }); |
| 1692 | | 1781 | |
| 1693 | export type PermissionsRequestApprovalParams__FileSystemAccessMode = "read" | "write" | "deny"; | 1782 | export type PermissionsRequestApprovalParams__FileSystemAccessMode = "read" | "write" | "deny"; |
| ... | @@ -1695,283 +1784,258 @@ export const PermissionsRequestApprovalParams__FileSystemAccessMode = Schema.Lit | ... | @@ -1695,283 +1784,258 @@ export const PermissionsRequestApprovalParams__FileSystemAccessMode = Schema.Lit |
| 1695 | "read", | 1784 | "read", |
| 1696 | "write", | 1785 | "write", |
| 1697 | "deny", | 1786 | "deny", |
| 1698 | ]); | 1787 | ]).annotate({ identifier: "PermissionsRequestApprovalParams__FileSystemAccessMode" }); |
| 1699 | | 1788 | |
| 1700 | export type PermissionsRequestApprovalParams__LegacyAppPathString = string; | 1789 | export type PermissionsRequestApprovalParams__LegacyAppPathString = string; |
| 1701 | export const PermissionsRequestApprovalParams__LegacyAppPathString = Schema.String; | 1790 | export const PermissionsRequestApprovalParams__LegacyAppPathString = Schema.String.annotate({ |
| | 1791 | identifier: "PermissionsRequestApprovalParams__LegacyAppPathString", |
| | 1792 | }); |
| 1702 | | 1793 | |
| 1703 | export type PermissionsRequestApprovalResponse__AdditionalNetworkPermissions = { | 1794 | export type PermissionsRequestApprovalParams__AdditionalNetworkPermissions = { |
| 1704 | readonly enabled?: boolean | null; | 1795 | readonly enabled?: boolean | null; |
| 1705 | }; | 1796 | }; |
| 1706 | export const PermissionsRequestApprovalResponse__AdditionalNetworkPermissions = Schema.Struct({ | 1797 | export const PermissionsRequestApprovalParams__AdditionalNetworkPermissions = Schema.Struct({ |
| 1707 | enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 1798 | enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 1708 | }); | 1799 | }).annotate({ identifier: "PermissionsRequestApprovalParams__AdditionalNetworkPermissions" }); |
| 1709 | | 1800 | |
| 1710 | export type PermissionsRequestApprovalResponse__FileSystemAccessMode = "read" | "write" | "deny"; | 1801 | export type PermissionsRequestApprovalResponse__FileSystemAccessMode = "read" | "write" | "deny"; |
| 1711 | export const PermissionsRequestApprovalResponse__FileSystemAccessMode = Schema.Literals([ | 1802 | export const PermissionsRequestApprovalResponse__FileSystemAccessMode = Schema.Literals([ |
| 1712 | "read", | 1803 | "read", |
| 1713 | "write", | 1804 | "write", |
| 1714 | "deny", | 1805 | "deny", |
| 1715 | ]); | 1806 | ]).annotate({ identifier: "PermissionsRequestApprovalResponse__FileSystemAccessMode" }); |
| 1716 | | 1807 | |
| 1717 | export type PermissionsRequestApprovalResponse__LegacyAppPathString = string; | 1808 | export type PermissionsRequestApprovalResponse__LegacyAppPathString = string; |
| 1718 | export const PermissionsRequestApprovalResponse__LegacyAppPathString = Schema.String; | 1809 | export const PermissionsRequestApprovalResponse__LegacyAppPathString = Schema.String.annotate({ |
| | 1810 | identifier: "PermissionsRequestApprovalResponse__LegacyAppPathString", |
| | 1811 | }); |
| | 1812 | |
| | 1813 | export type PermissionsRequestApprovalResponse__AdditionalNetworkPermissions = { |
| | 1814 | readonly enabled?: boolean | null; |
| | 1815 | }; |
| | 1816 | export const PermissionsRequestApprovalResponse__AdditionalNetworkPermissions = Schema.Struct({ |
| | 1817 | enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 1818 | }).annotate({ identifier: "PermissionsRequestApprovalResponse__AdditionalNetworkPermissions" }); |
| | 1819 | |
| | 1820 | export type PermissionsRequestApprovalResponse__PermissionGrantScope = "turn" | "session"; |
| | 1821 | export const PermissionsRequestApprovalResponse__PermissionGrantScope = Schema.Literals([ |
| | 1822 | "turn", |
| | 1823 | "session", |
| | 1824 | ]).annotate({ identifier: "PermissionsRequestApprovalResponse__PermissionGrantScope" }); |
| | 1825 | |
| | 1826 | export type ServerNotification__NonSteerableTurnKind = "review" | "compact"; |
| | 1827 | export const ServerNotification__NonSteerableTurnKind = Schema.Literals([ |
| | 1828 | "review", |
| | 1829 | "compact", |
| | 1830 | ]).annotate({ identifier: "ServerNotification__NonSteerableTurnKind" }); |
| 1719 | | 1831 | |
| 1720 | export type ServerNotification__AbsolutePathBuf = string; | 1832 | export type ServerNotification__AbsolutePathBuf = string; |
| 1721 | export const ServerNotification__AbsolutePathBuf = Schema.String.annotate({ | 1833 | export const ServerNotification__AbsolutePathBuf = Schema.String.annotate({ |
| 1722 | description: | 1834 | description: |
| 1723 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 1835 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 1836 | identifier: "ServerNotification__AbsolutePathBuf", |
| 1724 | }); | 1837 | }); |
| 1725 | | 1838 | |
| 1726 | export type ServerNotification__AccountLoginCompletedNotification = { | 1839 | export type ServerNotification__GitInfo = { |
| 1727 | readonly error?: string | null; | 1840 | readonly branch?: string | null; |
| 1728 | readonly loginId?: string | null; | 1841 | readonly originUrl?: string | null; |
| 1729 | readonly success: boolean; | 1842 | readonly sha?: string | null; |
| 1730 | }; | 1843 | }; |
| 1731 | export const ServerNotification__AccountLoginCompletedNotification = Schema.Struct({ | 1844 | export const ServerNotification__GitInfo = Schema.Struct({ |
| 1732 | error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 1845 | branch: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 1733 | loginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 1846 | originUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 1734 | success: Schema.Boolean, | 1847 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 1735 | }); | 1848 | }).annotate({ identifier: "ServerNotification__GitInfo" }); |
| 1736 | | 1849 | |
| 1737 | export type ServerNotification__ActivePermissionProfile = { | 1850 | export type ServerNotification__AgentPath = string; |
| 1738 | readonly extends?: string | null; | 1851 | export const ServerNotification__AgentPath = Schema.String.annotate({ |
| 1739 | readonly id: string; | 1852 | identifier: "ServerNotification__AgentPath", |
| 1740 | }; | | |
| 1741 | export const ServerNotification__ActivePermissionProfile = Schema.Struct({ | | |
| 1742 | extends: Schema.optionalKey( | | |
| 1743 | Schema.Union([ | | |
| 1744 | Schema.String.annotate({ | | |
| 1745 | description: | | |
| 1746 | "Parent profile identifier from the selected permissions profile's `extends` setting, when present.", | | |
| 1747 | }), | | |
| 1748 | Schema.Null, | | |
| 1749 | ]), | | |
| 1750 | ), | | |
| 1751 | id: Schema.String.annotate({ | | |
| 1752 | description: | | |
| 1753 | "Identifier from `default_permissions` or the implicit built-in default, such as `:workspace` or a user-defined `[permissions.<id>]` profile.", | | |
| 1754 | }), | | |
| 1755 | }); | 1853 | }); |
| 1756 | | 1854 | |
| 1757 | export type ServerNotification__AdditionalNetworkPermissions = { | 1855 | export type ServerNotification__ThreadId = string; |
| 1758 | readonly enabled?: boolean | null; | 1856 | export const ServerNotification__ThreadId = Schema.String.annotate({ |
| 1759 | }; | 1857 | identifier: "ServerNotification__ThreadId", |
| 1760 | export const ServerNotification__AdditionalNetworkPermissions = Schema.Struct({ | | |
| 1761 | enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | | |
| 1762 | }); | 1858 | }); |
| 1763 | | 1859 | |
| 1764 | export type ServerNotification__AgentMessageDeltaNotification = { | 1860 | export type ServerNotification__ThreadActiveFlag = "waitingOnApproval" | "waitingOnUserInput"; |
| 1765 | readonly delta: string; | 1861 | export const ServerNotification__ThreadActiveFlag = Schema.Literals([ |
| 1766 | readonly itemId: string; | 1862 | "waitingOnApproval", |
| 1767 | readonly threadId: string; | 1863 | "waitingOnUserInput", |
| 1768 | readonly turnId: string; | 1864 | ]).annotate({ identifier: "ServerNotification__ThreadActiveFlag" }); |
| 1769 | }; | 1865 | |
| 1770 | export const ServerNotification__AgentMessageDeltaNotification = Schema.Struct({ | 1866 | export type ServerNotification__ThreadSource = string; |
| 1771 | delta: Schema.String, | 1867 | export const ServerNotification__ThreadSource = Schema.String.annotate({ |
| 1772 | itemId: Schema.String, | 1868 | identifier: "ServerNotification__ThreadSource", |
| 1773 | threadId: Schema.String, | | |
| 1774 | turnId: Schema.String, | | |
| 1775 | }); | 1869 | }); |
| 1776 | | 1870 | |
| 1777 | export type ServerNotification__AgentPath = string; | 1871 | export type ServerNotification__ByteRange = { readonly end: number; readonly start: number }; |
| 1778 | export const ServerNotification__AgentPath = Schema.String; | 1872 | export const ServerNotification__ByteRange = Schema.Struct({ |
| | 1873 | end: Schema.Number.annotate({ format: "uint" }) |
| | 1874 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 1875 | .check( |
| | 1876 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 1877 | ), |
| | 1878 | start: Schema.Number.annotate({ format: "uint" }) |
| | 1879 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 1880 | .check( |
| | 1881 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 1882 | ), |
| | 1883 | }).annotate({ identifier: "ServerNotification__ByteRange" }); |
| 1779 | | 1884 | |
| 1780 | export type ServerNotification__AppBranding = { | 1885 | export type ServerNotification__ImageDetail = "auto" | "low" | "high" | "original"; |
| 1781 | readonly category?: string | null; | 1886 | export const ServerNotification__ImageDetail = Schema.Literals([ |
| 1782 | readonly developer?: string | null; | 1887 | "auto", |
| 1783 | readonly isDiscoverableApp: boolean; | 1888 | "low", |
| 1784 | readonly privacyPolicy?: string | null; | 1889 | "high", |
| 1785 | readonly termsOfService?: string | null; | 1890 | "original", |
| 1786 | readonly website?: string | null; | 1891 | ]).annotate({ identifier: "ServerNotification__ImageDetail" }); |
| 1787 | }; | | |
| 1788 | export const ServerNotification__AppBranding = Schema.Struct({ | | |
| 1789 | category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 1790 | developer: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 1791 | isDiscoverableApp: Schema.Boolean, | | |
| 1792 | privacyPolicy: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 1793 | termsOfService: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 1794 | website: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 1795 | }).annotate({ description: "EXPERIMENTAL - app metadata returned by app-list APIs." }); | | |
| 1796 | | 1892 | |
| 1797 | export type ServerNotification__AppReview = { readonly status: string }; | 1893 | export type ServerNotification__HookPromptFragment = { |
| 1798 | export const ServerNotification__AppReview = Schema.Struct({ status: Schema.String }); | 1894 | readonly hookRunId: string; |
| | 1895 | readonly text: string; |
| | 1896 | }; |
| | 1897 | export const ServerNotification__HookPromptFragment = Schema.Struct({ |
| | 1898 | hookRunId: Schema.String, |
| | 1899 | text: Schema.String, |
| | 1900 | }).annotate({ identifier: "ServerNotification__HookPromptFragment" }); |
| 1799 | | 1901 | |
| 1800 | export type ServerNotification__AppScreenshot = { | 1902 | export type ServerNotification__MemoryCitationEntry = { |
| 1801 | readonly fileId?: string | null; | 1903 | readonly lineEnd: number; |
| 1802 | readonly url?: string | null; | 1904 | readonly lineStart: number; |
| 1803 | readonly userPrompt: string; | 1905 | readonly note: string; |
| | 1906 | readonly path: string; |
| 1804 | }; | 1907 | }; |
| 1805 | export const ServerNotification__AppScreenshot = Schema.Struct({ | 1908 | export const ServerNotification__MemoryCitationEntry = Schema.Struct({ |
| 1806 | fileId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 1909 | lineEnd: Schema.Number.annotate({ format: "uint32" }) |
| 1807 | url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 1910 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 1808 | userPrompt: Schema.String, | 1911 | .check( |
| 1809 | }); | 1912 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 1913 | ), |
| | 1914 | lineStart: Schema.Number.annotate({ format: "uint32" }) |
| | 1915 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 1916 | .check( |
| | 1917 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 1918 | ), |
| | 1919 | note: Schema.String, |
| | 1920 | path: Schema.String, |
| | 1921 | }).annotate({ identifier: "ServerNotification__MemoryCitationEntry" }); |
| 1810 | | 1922 | |
| 1811 | export type ServerNotification__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent"; | 1923 | export type ServerNotification__MessagePhase = "commentary" | "final_answer"; |
| 1812 | export const ServerNotification__ApprovalsReviewer = Schema.Literals([ | 1924 | export const ServerNotification__MessagePhase = Schema.Union( |
| 1813 | "user", | 1925 | [ |
| 1814 | "auto_review", | 1926 | Schema.Literal("commentary").annotate({ |
| 1815 | "guardian_subagent", | 1927 | description: |
| 1816 | ]).annotate({ | 1928 | "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.", |
| | 1929 | }), |
| | 1930 | Schema.Literal("final_answer").annotate({ |
| | 1931 | description: "The assistant's terminal answer text for the current turn.", |
| | 1932 | }), |
| | 1933 | ], |
| | 1934 | { mode: "oneOf" }, |
| | 1935 | ).annotate({ |
| 1817 | description: | 1936 | description: |
| 1818 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", | 1937 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', |
| | 1938 | identifier: "ServerNotification__MessagePhase", |
| 1819 | }); | 1939 | }); |
| 1820 | | 1940 | |
| 1821 | export type ServerNotification__AskForApproval = | 1941 | export type ServerNotification__LegacyAppPathString = string; |
| 1822 | | "untrusted" | 1942 | export const ServerNotification__LegacyAppPathString = Schema.String.annotate({ |
| 1823 | | "on-request" | 1943 | identifier: "ServerNotification__LegacyAppPathString", |
| 1824 | | "never" | | |
| 1825 | | { | | |
| 1826 | readonly granular: { | | |
| 1827 | readonly mcp_elicitations: boolean; | | |
| 1828 | readonly request_permissions?: boolean; | | |
| 1829 | readonly rules: boolean; | | |
| 1830 | readonly sandbox_approval: boolean; | | |
| 1831 | readonly skill_approval?: boolean; | | |
| 1832 | }; | | |
| 1833 | }; | | |
| 1834 | export const ServerNotification__AskForApproval = Schema.Union( | | |
| 1835 | [ | | |
| 1836 | Schema.Literals(["untrusted", "on-request", "never"]), | | |
| 1837 | Schema.Struct({ | | |
| 1838 | granular: Schema.Struct({ | | |
| 1839 | mcp_elicitations: Schema.Boolean, | | |
| 1840 | request_permissions: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 1841 | rules: Schema.Boolean, | | |
| 1842 | sandbox_approval: Schema.Boolean, | | |
| 1843 | skill_approval: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 1844 | }), | | |
| 1845 | }).annotate({ title: "GranularAskForApproval" }), | | |
| 1846 | ], | | |
| 1847 | { mode: "oneOf" }, | | |
| 1848 | ); | | |
| 1849 | | | |
| 1850 | export type ServerNotification__AuthMode = | | |
| 1851 | | "apikey" | | |
| 1852 | | "chatgpt" | | |
| 1853 | | "chatgptAuthTokens" | | |
| 1854 | | "headers" | | |
| 1855 | | "agentIdentity" | | |
| 1856 | | "personalAccessToken" | | |
| 1857 | | "bedrockApiKey"; | | |
| 1858 | export const ServerNotification__AuthMode = Schema.Literals([ | | |
| 1859 | "apikey", | | |
| 1860 | "chatgpt", | | |
| 1861 | "chatgptAuthTokens", | | |
| 1862 | "headers", | | |
| 1863 | "agentIdentity", | | |
| 1864 | "personalAccessToken", | | |
| 1865 | "bedrockApiKey", | | |
| 1866 | ]).annotate({ description: "Authentication mode for OpenAI-backed providers." }); | | |
| 1867 | | | |
| 1868 | export type ServerNotification__AutoReviewDecisionSource = "agent"; | | |
| 1869 | export const ServerNotification__AutoReviewDecisionSource = Schema.Literal("agent").annotate({ | | |
| 1870 | description: "[UNSTABLE] Source that produced a terminal approval auto-review decision.", | | |
| 1871 | }); | 1944 | }); |
| 1872 | | 1945 | |
| 1873 | export type ServerNotification__CollabAgentStatus = | 1946 | export type ServerNotification__CommandExecutionSource = |
| 1874 | | "pendingInit" | 1947 | | "agent" |
| 1875 | | "running" | 1948 | | "userShell" |
| 1876 | | "interrupted" | 1949 | | "unifiedExecStartup" |
| | 1950 | | "unifiedExecInteraction"; |
| | 1951 | export const ServerNotification__CommandExecutionSource = Schema.Literals([ |
| | 1952 | "agent", |
| | 1953 | "userShell", |
| | 1954 | "unifiedExecStartup", |
| | 1955 | "unifiedExecInteraction", |
| | 1956 | ]).annotate({ identifier: "ServerNotification__CommandExecutionSource" }); |
| | 1957 | |
| | 1958 | export type ServerNotification__CommandExecutionStatus = |
| | 1959 | | "inProgress" |
| 1877 | | "completed" | 1960 | | "completed" |
| 1878 | | "errored" | 1961 | | "failed" |
| 1879 | | "shutdown" | 1962 | | "declined"; |
| 1880 | | "notFound"; | 1963 | export const ServerNotification__CommandExecutionStatus = Schema.Literals([ |
| 1881 | export const ServerNotification__CollabAgentStatus = Schema.Literals([ | 1964 | "inProgress", |
| 1882 | "pendingInit", | | |
| 1883 | "running", | | |
| 1884 | "interrupted", | | |
| 1885 | "completed", | 1965 | "completed", |
| 1886 | "errored", | 1966 | "failed", |
| 1887 | "shutdown", | 1967 | "declined", |
| 1888 | "notFound", | 1968 | ]).annotate({ identifier: "ServerNotification__CommandExecutionStatus" }); |
| 1889 | ]); | | |
| 1890 | | | |
| 1891 | export type ServerNotification__CommandExecOutputDeltaNotification = { | | |
| 1892 | readonly capReached: boolean; | | |
| 1893 | readonly deltaBase64: string; | | |
| 1894 | readonly processId: string; | | |
| 1895 | readonly stream: "stdout" | "stderr"; | | |
| 1896 | }; | | |
| 1897 | export const ServerNotification__CommandExecOutputDeltaNotification = Schema.Struct({ | | |
| 1898 | capReached: Schema.Boolean.annotate({ | | |
| 1899 | description: | | |
| 1900 | "`true` on the final streamed chunk for a stream when `outputBytesCap` truncated later output on that stream.", | | |
| 1901 | }), | | |
| 1902 | deltaBase64: Schema.String.annotate({ description: "Base64-encoded output bytes." }), | | |
| 1903 | processId: Schema.String.annotate({ | | |
| 1904 | description: | | |
| 1905 | "Client-supplied, connection-scoped `processId` from the original `command/exec` request.", | | |
| 1906 | }), | | |
| 1907 | stream: Schema.Literals(["stdout", "stderr"]).annotate({ | | |
| 1908 | description: "Stream label for `command/exec/outputDelta` notifications.", | | |
| 1909 | }), | | |
| 1910 | }).annotate({ | | |
| 1911 | description: | | |
| 1912 | "Base64-encoded output chunk emitted for a streaming `command/exec` request.\n\nThese notifications are connection-scoped. If the originating connection closes, the server terminates the process.", | | |
| 1913 | }); | | |
| 1914 | | 1969 | |
| 1915 | export type ServerNotification__CommandExecutionOutputDeltaNotification = { | 1970 | export type ServerNotification__PatchChangeKind = |
| 1916 | readonly delta: string; | 1971 | | { readonly type: "add" } |
| 1917 | readonly itemId: string; | 1972 | | { readonly type: "delete" } |
| 1918 | readonly threadId: string; | 1973 | | { readonly move_path?: string | null; readonly type: "update" }; |
| 1919 | readonly turnId: string; | 1974 | export const ServerNotification__PatchChangeKind = Schema.Union( |
| 1920 | }; | 1975 | [ |
| 1921 | export const ServerNotification__CommandExecutionOutputDeltaNotification = Schema.Struct({ | 1976 | Schema.Struct({ |
| 1922 | delta: Schema.String, | 1977 | type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }), |
| 1923 | itemId: Schema.String, | 1978 | }).annotate({ title: "AddPatchChangeKind" }), |
| 1924 | threadId: Schema.String, | 1979 | Schema.Struct({ |
| 1925 | turnId: Schema.String, | 1980 | type: Schema.Literal("delete").annotate({ title: "DeletePatchChangeKindType" }), |
| 1926 | }); | 1981 | }).annotate({ title: "DeletePatchChangeKind" }), |
| | 1982 | Schema.Struct({ |
| | 1983 | move_path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 1984 | type: Schema.Literal("update").annotate({ title: "UpdatePatchChangeKindType" }), |
| | 1985 | }).annotate({ title: "UpdatePatchChangeKind" }), |
| | 1986 | ], |
| | 1987 | { mode: "oneOf" }, |
| | 1988 | ).annotate({ identifier: "ServerNotification__PatchChangeKind" }); |
| 1927 | | 1989 | |
| 1928 | export type ServerNotification__CommandExecutionStatus = | 1990 | export type ServerNotification__PatchApplyStatus = |
| 1929 | | "inProgress" | 1991 | | "inProgress" |
| 1930 | | "completed" | 1992 | | "completed" |
| 1931 | | "failed" | 1993 | | "failed" |
| 1932 | | "declined"; | 1994 | | "declined"; |
| 1933 | export const ServerNotification__CommandExecutionStatus = Schema.Literals([ | 1995 | export const ServerNotification__PatchApplyStatus = Schema.Literals([ |
| 1934 | "inProgress", | 1996 | "inProgress", |
| 1935 | "completed", | 1997 | "completed", |
| 1936 | "failed", | 1998 | "failed", |
| 1937 | "declined", | 1999 | "declined", |
| 1938 | ]); | 2000 | ]).annotate({ identifier: "ServerNotification__PatchApplyStatus" }); |
| 1939 | | 2001 | |
| 1940 | export type ServerNotification__ContextCompactedNotification = { | 2002 | export type ServerNotification__McpToolCallAppContext = { |
| 1941 | readonly threadId: string; | 2003 | readonly actionName?: string | null; |
| 1942 | readonly turnId: string; | 2004 | readonly appName?: string | null; |
| | 2005 | readonly connectorId: string; |
| | 2006 | readonly linkId?: string | null; |
| | 2007 | readonly resourceUri?: string | null; |
| 1943 | }; | 2008 | }; |
| 1944 | export const ServerNotification__ContextCompactedNotification = Schema.Struct({ | 2009 | export const ServerNotification__McpToolCallAppContext = Schema.Struct({ |
| 1945 | threadId: Schema.String, | 2010 | actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 1946 | turnId: Schema.String, | 2011 | appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 1947 | }).annotate({ description: "Deprecated: Use `ContextCompaction` item type instead." }); | 2012 | connectorId: Schema.String, |
| | 2013 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 2014 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 2015 | }).annotate({ identifier: "ServerNotification__McpToolCallAppContext" }); |
| 1948 | | 2016 | |
| 1949 | export type ServerNotification__CreditsSnapshot = { | 2017 | export type ServerNotification__McpToolCallError = { readonly message: string }; |
| 1950 | readonly balance?: string | null; | 2018 | export const ServerNotification__McpToolCallError = Schema.Struct({ |
| 1951 | readonly hasCredits: boolean; | 2019 | message: Schema.String, |
| 1952 | readonly unlimited: boolean; | 2020 | }).annotate({ identifier: "ServerNotification__McpToolCallError" }); |
| 1953 | }; | | |
| 1954 | export const ServerNotification__CreditsSnapshot = Schema.Struct({ | | |
| 1955 | balance: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 1956 | hasCredits: Schema.Boolean, | | |
| 1957 | unlimited: Schema.Boolean, | | |
| 1958 | }); | | |
| 1959 | | 2021 | |
| 1960 | export type ServerNotification__DeprecationNoticeNotification = { | 2022 | export type ServerNotification__McpToolCallResult = { |
| 1961 | readonly details?: string | null; | 2023 | readonly _meta?: Schema.Json; |
| 1962 | readonly summary: string; | 2024 | readonly content: ReadonlyArray<Schema.Json>; |
| | 2025 | readonly structuredContent?: Schema.Json; |
| 1963 | }; | 2026 | }; |
| 1964 | export const ServerNotification__DeprecationNoticeNotification = Schema.Struct({ | 2027 | export const ServerNotification__McpToolCallResult = Schema.Struct({ |
| 1965 | details: Schema.optionalKey( | 2028 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 1966 | Schema.Union([ | 2029 | content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), |
| 1967 | Schema.String.annotate({ | 2030 | structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 1968 | description: "Optional extra guidance, such as migration steps or rationale.", | 2031 | }).annotate({ identifier: "ServerNotification__McpToolCallResult" }); |
| 1969 | }), | 2032 | |
| 1970 | Schema.Null, | 2033 | export type ServerNotification__McpToolCallStatus = "inProgress" | "completed" | "failed"; |
| 1971 | ]), | 2034 | export const ServerNotification__McpToolCallStatus = Schema.Literals([ |
| 1972 | ), | 2035 | "inProgress", |
| 1973 | summary: Schema.String.annotate({ description: "Concise summary of what is deprecated." }), | 2036 | "completed", |
| 1974 | }); | 2037 | "failed", |
| | 2038 | ]).annotate({ identifier: "ServerNotification__McpToolCallStatus" }); |
| 1975 | | 2039 | |
| 1976 | export type ServerNotification__DynamicToolCallOutputContentItem = | 2040 | export type ServerNotification__DynamicToolCallOutputContentItem = |
| 1977 | | { readonly text: string; readonly type: "inputText" } | 2041 | | { readonly text: string; readonly type: "inputText" } |
| ... | @@ -1999,344 +2063,462 @@ export const ServerNotification__DynamicToolCallOutputContentItem = Schema.Union | ... | @@ -1999,344 +2063,462 @@ export const ServerNotification__DynamicToolCallOutputContentItem = Schema.Union |
| 1999 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), | 2063 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), |
| 2000 | ], | 2064 | ], |
| 2001 | { mode: "oneOf" }, | 2065 | { mode: "oneOf" }, |
| 2002 | ); | 2066 | ).annotate({ identifier: "ServerNotification__DynamicToolCallOutputContentItem" }); |
| 2003 | | 2067 | |
| 2004 | export type ServerNotification__DynamicToolCallStatus = "inProgress" | "completed" | "failed"; | 2068 | export type ServerNotification__DynamicToolCallStatus = "inProgress" | "completed" | "failed"; |
| 2005 | export const ServerNotification__DynamicToolCallStatus = Schema.Literals([ | 2069 | export const ServerNotification__DynamicToolCallStatus = Schema.Literals([ |
| 2006 | "inProgress", | 2070 | "inProgress", |
| 2007 | "completed", | 2071 | "completed", |
| 2008 | "failed", | 2072 | "failed", |
| 2009 | ]); | 2073 | ]).annotate({ identifier: "ServerNotification__DynamicToolCallStatus" }); |
| 2010 | | 2074 | |
| 2011 | export type ServerNotification__EnvironmentConnectionNotification = { | 2075 | export type ServerNotification__CollabAgentStatus = |
| 2012 | readonly environmentId: string; | 2076 | | "pendingInit" |
| 2013 | readonly threadId: string; | 2077 | | "running" |
| 2014 | }; | 2078 | | "interrupted" |
| 2015 | export const ServerNotification__EnvironmentConnectionNotification = Schema.Struct({ | 2079 | | "completed" |
| 2016 | environmentId: Schema.String, | 2080 | | "errored" |
| 2017 | threadId: Schema.String, | 2081 | | "shutdown" |
| 2018 | }); | 2082 | | "notFound"; |
| | 2083 | export const ServerNotification__CollabAgentStatus = Schema.Literals([ |
| | 2084 | "pendingInit", |
| | 2085 | "running", |
| | 2086 | "interrupted", |
| | 2087 | "completed", |
| | 2088 | "errored", |
| | 2089 | "shutdown", |
| | 2090 | "notFound", |
| | 2091 | ]).annotate({ identifier: "ServerNotification__CollabAgentStatus" }); |
| 2019 | | 2092 | |
| 2020 | export type ServerNotification__ExternalAgentConfigMigrationItemType = | 2093 | export type ServerNotification__ReasoningEffort = string; |
| 2021 | | "AGENTS_MD" | 2094 | export const ServerNotification__ReasoningEffort = Schema.String.annotate({ |
| 2022 | | "CONFIG" | 2095 | description: "A non-empty reasoning effort value advertised by the model.", |
| 2023 | | "SKILLS" | 2096 | }).check( |
| 2024 | | "PLUGINS" | 2097 | Schema.isMinLength(1).annotate({ |
| 2025 | | "MCP_SERVER_CONFIG" | 2098 | expected: "a value with a length of at least 1", |
| 2026 | | "SUBAGENTS" | 2099 | identifier: "ServerNotification__ReasoningEffort", |
| 2027 | | "HOOKS" | 2100 | }), |
| 2028 | | "COMMANDS" | 2101 | ); |
| 2029 | | "MEMORY" | | |
| 2030 | | "SESSIONS"; | | |
| 2031 | export const ServerNotification__ExternalAgentConfigMigrationItemType = Schema.Literals([ | | |
| 2032 | "AGENTS_MD", | | |
| 2033 | "CONFIG", | | |
| 2034 | "SKILLS", | | |
| 2035 | "PLUGINS", | | |
| 2036 | "MCP_SERVER_CONFIG", | | |
| 2037 | "SUBAGENTS", | | |
| 2038 | "HOOKS", | | |
| 2039 | "COMMANDS", | | |
| 2040 | "MEMORY", | | |
| 2041 | "SESSIONS", | | |
| 2042 | ]); | | |
| 2043 | | 2102 | |
| 2044 | export type ServerNotification__FileChangeOutputDeltaNotification = { | 2103 | export type ServerNotification__CollabAgentToolCallStatus = |
| 2045 | readonly delta: string; | 2104 | | "inProgress" |
| 2046 | readonly itemId: string; | 2105 | | "completed" |
| 2047 | readonly threadId: string; | 2106 | | "failed" |
| 2048 | readonly turnId: string; | 2107 | | "interrupted"; |
| 2049 | }; | 2108 | export const ServerNotification__CollabAgentToolCallStatus = Schema.Literals([ |
| 2050 | export const ServerNotification__FileChangeOutputDeltaNotification = Schema.Struct({ | 2109 | "inProgress", |
| 2051 | delta: Schema.String, | 2110 | "completed", |
| 2052 | itemId: Schema.String, | 2111 | "failed", |
| 2053 | threadId: Schema.String, | 2112 | "interrupted", |
| 2054 | turnId: Schema.String, | 2113 | ]).annotate({ identifier: "ServerNotification__CollabAgentToolCallStatus" }); |
| 2055 | }).annotate({ | | |
| 2056 | description: | | |
| 2057 | "Deprecated legacy notification for `apply_patch` textual output.\n\nThe server no longer emits this notification.", | | |
| 2058 | }); | | |
| 2059 | | 2114 | |
| 2060 | export type ServerNotification__FileSystemAccessMode = "read" | "write" | "deny"; | 2115 | export type ServerNotification__CollabAgentTool = |
| 2061 | export const ServerNotification__FileSystemAccessMode = Schema.Literals(["read", "write", "deny"]); | 2116 | | "spawnAgent" |
| | 2117 | | "sendInput" |
| | 2118 | | "resumeAgent" |
| | 2119 | | "wait" |
| | 2120 | | "closeAgent" |
| | 2121 | | "sendMessage" |
| | 2122 | | "followupTask" |
| | 2123 | | "interruptAgent" |
| | 2124 | | "listAgents"; |
| | 2125 | export const ServerNotification__CollabAgentTool = Schema.Literals([ |
| | 2126 | "spawnAgent", |
| | 2127 | "sendInput", |
| | 2128 | "resumeAgent", |
| | 2129 | "wait", |
| | 2130 | "closeAgent", |
| | 2131 | "sendMessage", |
| | 2132 | "followupTask", |
| | 2133 | "interruptAgent", |
| | 2134 | "listAgents", |
| | 2135 | ]).annotate({ identifier: "ServerNotification__CollabAgentTool" }); |
| 2062 | | 2136 | |
| 2063 | export type ServerNotification__FuzzyFileSearchMatchType = "file" | "directory"; | 2137 | export type ServerNotification__SubAgentActivityKind = |
| 2064 | export const ServerNotification__FuzzyFileSearchMatchType = Schema.Literals(["file", "directory"]); | 2138 | | "started" |
| | 2139 | | "interacted" |
| | 2140 | | "interrupted" |
| | 2141 | | "completed"; |
| | 2142 | export const ServerNotification__SubAgentActivityKind = Schema.Literals([ |
| | 2143 | "started", |
| | 2144 | "interacted", |
| | 2145 | "interrupted", |
| | 2146 | "completed", |
| | 2147 | ]).annotate({ identifier: "ServerNotification__SubAgentActivityKind" }); |
| 2065 | | 2148 | |
| 2066 | export type ServerNotification__FuzzyFileSearchSessionCompletedNotification = { | 2149 | export type ServerNotification__WebSearchAction = |
| 2067 | readonly sessionId: string; | 2150 | | { |
| 2068 | }; | 2151 | readonly queries?: ReadonlyArray<string> | null; |
| 2069 | export const ServerNotification__FuzzyFileSearchSessionCompletedNotification = Schema.Struct({ | 2152 | readonly query?: string | null; |
| 2070 | sessionId: Schema.String, | 2153 | readonly type: "search"; |
| 2071 | }); | 2154 | } |
| | 2155 | | { readonly type: "openPage"; readonly url?: string | null } |
| | 2156 | | { readonly pattern?: string | null; readonly type: "findInPage"; readonly url?: string | null } |
| | 2157 | | { readonly type: "other" }; |
| | 2158 | export const ServerNotification__WebSearchAction = Schema.Union( |
| | 2159 | [ |
| | 2160 | Schema.Struct({ |
| | 2161 | queries: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 2162 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 2163 | type: Schema.Literal("search").annotate({ title: "SearchWebSearchActionType" }), |
| | 2164 | }).annotate({ title: "SearchWebSearchAction" }), |
| | 2165 | Schema.Struct({ |
| | 2166 | type: Schema.Literal("openPage").annotate({ title: "OpenPageWebSearchActionType" }), |
| | 2167 | url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 2168 | }).annotate({ title: "OpenPageWebSearchAction" }), |
| | 2169 | Schema.Struct({ |
| | 2170 | pattern: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 2171 | type: Schema.Literal("findInPage").annotate({ title: "FindInPageWebSearchActionType" }), |
| | 2172 | url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 2173 | }).annotate({ title: "FindInPageWebSearchAction" }), |
| | 2174 | Schema.Struct({ |
| | 2175 | type: Schema.Literal("other").annotate({ title: "OtherWebSearchActionType" }), |
| | 2176 | }).annotate({ title: "OtherWebSearchAction" }), |
| | 2177 | ], |
| | 2178 | { mode: "oneOf" }, |
| | 2179 | ).annotate({ identifier: "ServerNotification__WebSearchAction" }); |
| 2072 | | 2180 | |
| 2073 | export type ServerNotification__GitInfo = { | 2181 | export type ServerNotification__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 2074 | readonly branch?: string | null; | 2182 | export const ServerNotification__TurnItemsView = Schema.Union( |
| 2075 | readonly originUrl?: string | null; | 2183 | [ |
| 2076 | readonly sha?: string | null; | 2184 | Schema.Literal("notLoaded").annotate({ |
| 2077 | }; | 2185 | description: "`items` was not loaded for this turn. The field is intentionally empty.", |
| 2078 | export const ServerNotification__GitInfo = Schema.Struct({ | 2186 | }), |
| 2079 | branch: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 2187 | Schema.Literal("summary").annotate({ |
| 2080 | originUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 2188 | description: "`items` contains only a display summary for this turn.", |
| 2081 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 2189 | }), |
| 2082 | }); | 2190 | Schema.Literal("full").annotate({ |
| | 2191 | description: |
| | 2192 | "`items` contains every ThreadItem available from persisted app-server history for this turn.", |
| | 2193 | }), |
| | 2194 | ], |
| | 2195 | { mode: "oneOf" }, |
| | 2196 | ).annotate({ identifier: "ServerNotification__TurnItemsView" }); |
| 2083 | | 2197 | |
| 2084 | export type ServerNotification__GuardianApprovalReviewStatus = | 2198 | export type ServerNotification__TurnStatus = "completed" | "interrupted" | "failed" | "inProgress"; |
| 2085 | | "inProgress" | 2199 | export const ServerNotification__TurnStatus = Schema.Literals([ |
| 2086 | | "approved" | 2200 | "completed", |
| 2087 | | "denied" | 2201 | "interrupted", |
| 2088 | | "timedOut" | 2202 | "failed", |
| 2089 | | "aborted"; | | |
| 2090 | export const ServerNotification__GuardianApprovalReviewStatus = Schema.Literals([ | | |
| 2091 | "inProgress", | 2203 | "inProgress", |
| 2092 | "approved", | 2204 | ]).annotate({ identifier: "ServerNotification__TurnStatus" }); |
| 2093 | "denied", | | |
| 2094 | "timedOut", | | |
| 2095 | "aborted", | | |
| 2096 | ]).annotate({ description: "[UNSTABLE] Lifecycle state for an approval auto-review." }); | | |
| 2097 | | | |
| 2098 | export type ServerNotification__GuardianCommandSource = "shell" | "unifiedExec"; | | |
| 2099 | export const ServerNotification__GuardianCommandSource = Schema.Literals(["shell", "unifiedExec"]); | | |
| 2100 | | | |
| 2101 | export type ServerNotification__GuardianRiskLevel = "low" | "medium" | "high" | "critical"; | | |
| 2102 | export const ServerNotification__GuardianRiskLevel = Schema.Literals([ | | |
| 2103 | "low", | | |
| 2104 | "medium", | | |
| 2105 | "high", | | |
| 2106 | "critical", | | |
| 2107 | ]).annotate({ description: "[UNSTABLE] Risk level assigned by approval auto-review." }); | | |
| 2108 | | 2205 | |
| 2109 | export type ServerNotification__GuardianUserAuthorization = "unknown" | "low" | "medium" | "high"; | 2206 | export type ServerNotification__ThreadArchivedNotification = { readonly threadId: string }; |
| 2110 | export const ServerNotification__GuardianUserAuthorization = Schema.Literals([ | 2207 | export const ServerNotification__ThreadArchivedNotification = Schema.Struct({ |
| 2111 | "unknown", | 2208 | threadId: Schema.String, |
| 2112 | "low", | 2209 | }).annotate({ identifier: "ServerNotification__ThreadArchivedNotification" }); |
| 2113 | "medium", | | |
| 2114 | "high", | | |
| 2115 | ]).annotate({ description: "[UNSTABLE] Authorization level assigned by approval auto-review." }); | | |
| 2116 | | | |
| 2117 | export type ServerNotification__GuardianWarningNotification = { | | |
| 2118 | readonly message: string; | | |
| 2119 | readonly threadId: string; | | |
| 2120 | }; | | |
| 2121 | export const ServerNotification__GuardianWarningNotification = Schema.Struct({ | | |
| 2122 | message: Schema.String.annotate({ | | |
| 2123 | description: "Concise guardian warning message for the user.", | | |
| 2124 | }), | | |
| 2125 | threadId: Schema.String.annotate({ description: "Thread target for the guardian warning." }), | | |
| 2126 | }); | | |
| 2127 | | 2210 | |
| 2128 | export type ServerNotification__HookEventName = | 2211 | export type ServerNotification__ThreadDeletedNotification = { readonly threadId: string }; |
| 2129 | | "preToolUse" | 2212 | export const ServerNotification__ThreadDeletedNotification = Schema.Struct({ |
| 2130 | | "permissionRequest" | 2213 | threadId: Schema.String, |
| 2131 | | "postToolUse" | 2214 | }).annotate({ identifier: "ServerNotification__ThreadDeletedNotification" }); |
| 2132 | | "preCompact" | | |
| 2133 | | "postCompact" | | |
| 2134 | | "sessionStart" | | |
| 2135 | | "sessionEnd" | | |
| 2136 | | "userPromptSubmit" | | |
| 2137 | | "subagentStart" | | |
| 2138 | | "subagentStop" | | |
| 2139 | | "stop"; | | |
| 2140 | export const ServerNotification__HookEventName = Schema.Literals([ | | |
| 2141 | "preToolUse", | | |
| 2142 | "permissionRequest", | | |
| 2143 | "postToolUse", | | |
| 2144 | "preCompact", | | |
| 2145 | "postCompact", | | |
| 2146 | "sessionStart", | | |
| 2147 | "sessionEnd", | | |
| 2148 | "userPromptSubmit", | | |
| 2149 | "subagentStart", | | |
| 2150 | "subagentStop", | | |
| 2151 | "stop", | | |
| 2152 | ]); | | |
| 2153 | | 2215 | |
| 2154 | export type ServerNotification__HookExecutionMode = "sync" | "async"; | 2216 | export type ServerNotification__ThreadUnarchivedNotification = { readonly threadId: string }; |
| 2155 | export const ServerNotification__HookExecutionMode = Schema.Literals(["sync", "async"]); | 2217 | export const ServerNotification__ThreadUnarchivedNotification = Schema.Struct({ |
| | 2218 | threadId: Schema.String, |
| | 2219 | }).annotate({ identifier: "ServerNotification__ThreadUnarchivedNotification" }); |
| 2156 | | 2220 | |
| 2157 | export type ServerNotification__HookHandlerType = "command" | "prompt" | "agent"; | 2221 | export type ServerNotification__ThreadClosedNotification = { readonly threadId: string }; |
| 2158 | export const ServerNotification__HookHandlerType = Schema.Literals(["command", "prompt", "agent"]); | 2222 | export const ServerNotification__ThreadClosedNotification = Schema.Struct({ |
| | 2223 | threadId: Schema.String, |
| | 2224 | }).annotate({ identifier: "ServerNotification__ThreadClosedNotification" }); |
| 2159 | | 2225 | |
| 2160 | export type ServerNotification__HookOutputEntryKind = | 2226 | export type ServerNotification__SkillsChangedNotification = { readonly [x: string]: Schema.Json }; |
| 2161 | | "warning" | 2227 | export const ServerNotification__SkillsChangedNotification = Schema.Record( |
| 2162 | | "stop" | 2228 | Schema.String, |
| 2163 | | "feedback" | 2229 | Schema.Json.annotate({ expected: "JSON value" }), |
| 2164 | | "context" | 2230 | ).annotate({ |
| 2165 | | "error"; | 2231 | description: |
| 2166 | export const ServerNotification__HookOutputEntryKind = Schema.Literals([ | 2232 | "Notification emitted when watched local skill files change.\n\nTreat this as an invalidation signal and re-run `skills/list` with the client's current parameters when refreshed skill metadata is needed.", |
| 2167 | "warning", | 2233 | identifier: "ServerNotification__SkillsChangedNotification", |
| 2168 | "stop", | 2234 | }); |
| 2169 | "feedback", | | |
| 2170 | "context", | | |
| 2171 | "error", | | |
| 2172 | ]); | | |
| 2173 | | 2235 | |
| 2174 | export type ServerNotification__HookPromptFragment = { | 2236 | export type ServerNotification__ThreadNameUpdatedNotification = { |
| 2175 | readonly hookRunId: string; | 2237 | readonly threadId: string; |
| 2176 | readonly text: string; | 2238 | readonly threadName?: string | null; |
| 2177 | }; | 2239 | }; |
| 2178 | export const ServerNotification__HookPromptFragment = Schema.Struct({ | 2240 | export const ServerNotification__ThreadNameUpdatedNotification = Schema.Struct({ |
| 2179 | hookRunId: Schema.String, | 2241 | threadId: Schema.String, |
| 2180 | text: Schema.String, | 2242 | threadName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 2181 | }); | 2243 | }).annotate({ identifier: "ServerNotification__ThreadNameUpdatedNotification" }); |
| 2182 | | 2244 | |
| 2183 | export type ServerNotification__HookRunStatus = | 2245 | export type ServerNotification__ThreadGoalStatus = |
| 2184 | | "running" | 2246 | | "active" |
| 2185 | | "completed" | 2247 | | "paused" |
| 2186 | | "failed" | | |
| 2187 | | "blocked" | 2248 | | "blocked" |
| 2188 | | "stopped"; | 2249 | | "usageLimited" |
| 2189 | export const ServerNotification__HookRunStatus = Schema.Literals([ | 2250 | | "budgetLimited" |
| 2190 | "running", | 2251 | | "complete"; |
| 2191 | "completed", | 2252 | export const ServerNotification__ThreadGoalStatus = Schema.Literals([ |
| 2192 | "failed", | 2253 | "active", |
| | 2254 | "paused", |
| 2193 | "blocked", | 2255 | "blocked", |
| 2194 | "stopped", | 2256 | "usageLimited", |
| 2195 | ]); | 2257 | "budgetLimited", |
| 2196 | | 2258 | "complete", |
| 2197 | export type ServerNotification__HookScope = "thread" | "turn"; | 2259 | ]).annotate({ identifier: "ServerNotification__ThreadGoalStatus" }); |
| 2198 | export const ServerNotification__HookScope = Schema.Literals(["thread", "turn"]); | | |
| 2199 | | | |
| 2200 | export type ServerNotification__ImageDetail = "auto" | "low" | "high" | "original"; | | |
| 2201 | export const ServerNotification__ImageDetail = Schema.Literals(["auto", "low", "high", "original"]); | | |
| 2202 | | 2260 | |
| 2203 | export type ServerNotification__LegacyAppPathString = string; | 2261 | export type ServerNotification__ThreadGoalClearedNotification = { readonly threadId: string }; |
| 2204 | export const ServerNotification__LegacyAppPathString = Schema.String; | 2262 | export const ServerNotification__ThreadGoalClearedNotification = Schema.Struct({ |
| | 2263 | threadId: Schema.String, |
| | 2264 | }).annotate({ identifier: "ServerNotification__ThreadGoalClearedNotification" }); |
| 2205 | | 2265 | |
| 2206 | export type ServerNotification__McpServerOauthLoginCompletedNotification = { | 2266 | export type ServerNotification__EnvironmentConnectionNotification = { |
| 2207 | readonly error?: string | null; | 2267 | readonly environmentId: string; |
| 2208 | readonly name: string; | 2268 | readonly threadId: string; |
| 2209 | readonly success: boolean; | | |
| 2210 | readonly threadId?: string | null; | | |
| 2211 | }; | 2269 | }; |
| 2212 | export const ServerNotification__McpServerOauthLoginCompletedNotification = Schema.Struct({ | 2270 | export const ServerNotification__EnvironmentConnectionNotification = Schema.Struct({ |
| 2213 | error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 2271 | environmentId: Schema.String, |
| 2214 | name: Schema.String, | 2272 | threadId: Schema.String, |
| 2215 | success: Schema.Boolean, | 2273 | }).annotate({ identifier: "ServerNotification__EnvironmentConnectionNotification" }); |
| 2216 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 2217 | }); | | |
| 2218 | | 2274 | |
| 2219 | export type ServerNotification__McpServerStartupFailureReason = "reauthenticationRequired"; | 2275 | export type ServerNotification__ActivePermissionProfile = { |
| 2220 | export const ServerNotification__McpServerStartupFailureReason = Schema.Literal( | 2276 | readonly extends?: string | null; |
| 2221 | "reauthenticationRequired", | 2277 | readonly id: string; |
| 2222 | ); | 2278 | }; |
| | 2279 | export const ServerNotification__ActivePermissionProfile = Schema.Struct({ |
| | 2280 | extends: Schema.optionalKey( |
| | 2281 | Schema.Union([ |
| | 2282 | Schema.String.annotate({ |
| | 2283 | description: |
| | 2284 | "Parent profile identifier from the selected permissions profile's `extends` setting, when present.", |
| | 2285 | }), |
| | 2286 | Schema.Null, |
| | 2287 | ]), |
| | 2288 | ), |
| | 2289 | id: Schema.String.annotate({ |
| | 2290 | description: |
| | 2291 | "Identifier from `default_permissions` or the implicit built-in default, such as `:workspace` or a user-defined `[permissions.<id>]` profile.", |
| | 2292 | }), |
| | 2293 | }).annotate({ identifier: "ServerNotification__ActivePermissionProfile" }); |
| 2223 | | 2294 | |
| 2224 | export type ServerNotification__McpServerStartupState = | 2295 | export type ServerNotification__AskForApproval = |
| 2225 | | "starting" | 2296 | | "untrusted" |
| 2226 | | "ready" | 2297 | | "on-request" |
| 2227 | | "failed" | 2298 | | "never" |
| 2228 | | "cancelled"; | 2299 | | { |
| 2229 | export const ServerNotification__McpServerStartupState = Schema.Literals([ | 2300 | readonly granular: { |
| 2230 | "starting", | 2301 | readonly mcp_elicitations: boolean; |
| 2231 | "ready", | 2302 | readonly request_permissions?: boolean; |
| 2232 | "failed", | 2303 | readonly rules: boolean; |
| 2233 | "cancelled", | 2304 | readonly sandbox_approval: boolean; |
| 2234 | ]); | 2305 | readonly skill_approval?: boolean; |
| | 2306 | }; |
| | 2307 | }; |
| | 2308 | export const ServerNotification__AskForApproval = Schema.Union( |
| | 2309 | [ |
| | 2310 | Schema.Literals(["untrusted", "on-request", "never"]), |
| | 2311 | Schema.Struct({ |
| | 2312 | granular: Schema.Struct({ |
| | 2313 | mcp_elicitations: Schema.Boolean, |
| | 2314 | request_permissions: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| | 2315 | rules: Schema.Boolean, |
| | 2316 | sandbox_approval: Schema.Boolean, |
| | 2317 | skill_approval: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| | 2318 | }), |
| | 2319 | }).annotate({ title: "GranularAskForApproval" }), |
| | 2320 | ], |
| | 2321 | { mode: "oneOf" }, |
| | 2322 | ).annotate({ identifier: "ServerNotification__AskForApproval" }); |
| 2235 | | 2323 | |
| 2236 | export type ServerNotification__McpToolCallAppContext = { | 2324 | export type ServerNotification__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent"; |
| 2237 | readonly actionName?: string | null; | 2325 | export const ServerNotification__ApprovalsReviewer = Schema.Literals([ |
| 2238 | readonly appName?: string | null; | 2326 | "user", |
| 2239 | readonly connectorId: string; | 2327 | "auto_review", |
| 2240 | readonly linkId?: string | null; | 2328 | "guardian_subagent", |
| 2241 | readonly resourceUri?: string | null; | 2329 | ]).annotate({ |
| 2242 | }; | 2330 | description: |
| 2243 | export const ServerNotification__McpToolCallAppContext = Schema.Struct({ | 2331 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", |
| 2244 | actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 2332 | identifier: "ServerNotification__ApprovalsReviewer", |
| 2245 | appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 2246 | connectorId: Schema.String, | | |
| 2247 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 2248 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 2249 | }); | 2333 | }); |
| 2250 | | 2334 | |
| 2251 | export type ServerNotification__McpToolCallError = { readonly message: string }; | 2335 | export type ServerNotification__ModeKind = "plan" | "default"; |
| 2252 | export const ServerNotification__McpToolCallError = Schema.Struct({ message: Schema.String }); | 2336 | export const ServerNotification__ModeKind = Schema.Literals(["plan", "default"]).annotate({ |
| | 2337 | description: "Initial collaboration mode to use when the TUI starts.", |
| | 2338 | identifier: "ServerNotification__ModeKind", |
| | 2339 | }); |
| 2253 | | 2340 | |
| 2254 | export type ServerNotification__McpToolCallProgressNotification = { | 2341 | export type ServerNotification__Personality = "none" | "friendly" | "pragmatic"; |
| 2255 | readonly itemId: string; | 2342 | export const ServerNotification__Personality = Schema.Literals([ |
| 2256 | readonly message: string; | 2343 | "none", |
| 2257 | readonly threadId: string; | 2344 | "friendly", |
| 2258 | readonly turnId: string; | 2345 | "pragmatic", |
| 2259 | }; | 2346 | ]).annotate({ identifier: "ServerNotification__Personality" }); |
| 2260 | export const ServerNotification__McpToolCallProgressNotification = Schema.Struct({ | 2347 | |
| 2261 | itemId: Schema.String, | 2348 | export type ServerNotification__NetworkAccess = "restricted" | "enabled"; |
| 2262 | message: Schema.String, | 2349 | export const ServerNotification__NetworkAccess = Schema.Literals([ |
| 2263 | threadId: Schema.String, | 2350 | "restricted", |
| 2264 | turnId: Schema.String, | 2351 | "enabled", |
| | 2352 | ]).annotate({ identifier: "ServerNotification__NetworkAccess" }); |
| | 2353 | |
| | 2354 | export type ServerNotification__ReasoningSummary = "auto" | "concise" | "detailed" | "none"; |
| | 2355 | export const ServerNotification__ReasoningSummary = Schema.Union( |
| | 2356 | [ |
| | 2357 | Schema.Literals(["auto", "concise", "detailed"]), |
| | 2358 | Schema.Literal("none").annotate({ description: "Option to disable reasoning summaries." }), |
| | 2359 | ], |
| | 2360 | { mode: "oneOf" }, |
| | 2361 | ).annotate({ |
| | 2362 | description: |
| | 2363 | "A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries", |
| | 2364 | identifier: "ServerNotification__ReasoningSummary", |
| 2265 | }); | 2365 | }); |
| 2266 | | 2366 | |
| 2267 | export type ServerNotification__McpToolCallResult = { | 2367 | export type ServerNotification__TokenUsageBreakdown = { |
| 2268 | readonly _meta?: unknown; | 2368 | readonly cacheWriteInputTokens?: number; |
| 2269 | readonly content: ReadonlyArray<unknown>; | 2369 | readonly cachedInputTokens: number; |
| 2270 | readonly structuredContent?: unknown; | 2370 | readonly inputTokens: number; |
| | 2371 | readonly outputTokens: number; |
| | 2372 | readonly reasoningOutputTokens: number; |
| | 2373 | readonly totalTokens: number; |
| 2271 | }; | 2374 | }; |
| 2272 | export const ServerNotification__McpToolCallResult = Schema.Struct({ | 2375 | export const ServerNotification__TokenUsageBreakdown = Schema.Struct({ |
| 2273 | _meta: Schema.optionalKey(Schema.Unknown), | 2376 | cacheWriteInputTokens: Schema.optionalKey( |
| 2274 | content: Schema.Array(Schema.Unknown), | 2377 | Schema.Number.annotate({ default: 0, format: "int64" }).check( |
| 2275 | structuredContent: Schema.optionalKey(Schema.Unknown), | 2378 | Schema.isInt().annotate({ expected: "an integer" }), |
| 2276 | }); | 2379 | ), |
| | 2380 | ), |
| | 2381 | cachedInputTokens: Schema.Number.annotate({ format: "int64" }).check( |
| | 2382 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 2383 | ), |
| | 2384 | inputTokens: Schema.Number.annotate({ format: "int64" }).check( |
| | 2385 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 2386 | ), |
| | 2387 | outputTokens: Schema.Number.annotate({ format: "int64" }).check( |
| | 2388 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 2389 | ), |
| | 2390 | reasoningOutputTokens: Schema.Number.annotate({ format: "int64" }).check( |
| | 2391 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 2392 | ), |
| | 2393 | totalTokens: Schema.Number.annotate({ format: "int64" }).check( |
| | 2394 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 2395 | ), |
| | 2396 | }).annotate({ identifier: "ServerNotification__TokenUsageBreakdown" }); |
| 2277 | | 2397 | |
| 2278 | export type ServerNotification__McpToolCallStatus = "inProgress" | "completed" | "failed"; | 2398 | export type ServerNotification__HookOutputEntryKind = |
| 2279 | export const ServerNotification__McpToolCallStatus = Schema.Literals([ | 2399 | | "warning" |
| 2280 | "inProgress", | 2400 | | "stop" |
| 2281 | "completed", | 2401 | | "feedback" |
| 2282 | "failed", | 2402 | | "context" |
| 2283 | ]); | 2403 | | "error"; |
| | 2404 | export const ServerNotification__HookOutputEntryKind = Schema.Literals([ |
| | 2405 | "warning", |
| | 2406 | "stop", |
| | 2407 | "feedback", |
| | 2408 | "context", |
| | 2409 | "error", |
| | 2410 | ]).annotate({ identifier: "ServerNotification__HookOutputEntryKind" }); |
| 2284 | | 2411 | |
| 2285 | export type ServerNotification__MemoryCitationEntry = { | 2412 | export type ServerNotification__HookEventName = |
| 2286 | readonly lineEnd: number; | 2413 | | "preToolUse" |
| 2287 | readonly lineStart: number; | 2414 | | "permissionRequest" |
| 2288 | readonly note: string; | 2415 | | "postToolUse" |
| 2289 | readonly path: string; | 2416 | | "preCompact" |
| 2290 | }; | 2417 | | "postCompact" |
| 2291 | export const ServerNotification__MemoryCitationEntry = Schema.Struct({ | 2418 | | "sessionStart" |
| 2292 | lineEnd: Schema.Number.annotate({ format: "uint32" }) | 2419 | | "sessionEnd" |
| 2293 | .check(Schema.isInt()) | 2420 | | "userPromptSubmit" |
| 2294 | .check(Schema.isGreaterThanOrEqualTo(0)), | 2421 | | "subagentStart" |
| 2295 | lineStart: Schema.Number.annotate({ format: "uint32" }) | 2422 | | "subagentStop" |
| 2296 | .check(Schema.isInt()) | 2423 | | "stop"; |
| 2297 | .check(Schema.isGreaterThanOrEqualTo(0)), | 2424 | export const ServerNotification__HookEventName = Schema.Literals([ |
| 2298 | note: Schema.String, | 2425 | "preToolUse", |
| 2299 | path: Schema.String, | 2426 | "permissionRequest", |
| 2300 | }); | 2427 | "postToolUse", |
| | 2428 | "preCompact", |
| | 2429 | "postCompact", |
| | 2430 | "sessionStart", |
| | 2431 | "sessionEnd", |
| | 2432 | "userPromptSubmit", |
| | 2433 | "subagentStart", |
| | 2434 | "subagentStop", |
| | 2435 | "stop", |
| | 2436 | ]).annotate({ identifier: "ServerNotification__HookEventName" }); |
| 2301 | | 2437 | |
| 2302 | export type ServerNotification__MessagePhase = "commentary" | "final_answer"; | 2438 | export type ServerNotification__HookExecutionMode = "sync" | "async"; |
| 2303 | export const ServerNotification__MessagePhase = Schema.Literals([ | 2439 | export const ServerNotification__HookExecutionMode = Schema.Literals(["sync", "async"]).annotate({ |
| 2304 | "commentary", | 2440 | identifier: "ServerNotification__HookExecutionMode", |
| 2305 | "final_answer", | | |
| 2306 | ]).annotate({ | | |
| 2307 | description: | | |
| 2308 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', | | |
| 2309 | }); | 2441 | }); |
| 2310 | | 2442 | |
| 2311 | export type ServerNotification__ModeKind = "plan" | "default"; | 2443 | export type ServerNotification__HookHandlerType = "command" | "prompt" | "agent"; |
| 2312 | export const ServerNotification__ModeKind = Schema.Literals(["plan", "default"]).annotate({ | 2444 | export const ServerNotification__HookHandlerType = Schema.Literals([ |
| 2313 | description: "Initial collaboration mode to use when the TUI starts.", | 2445 | "command", |
| | 2446 | "prompt", |
| | 2447 | "agent", |
| | 2448 | ]).annotate({ identifier: "ServerNotification__HookHandlerType" }); |
| | 2449 | |
| | 2450 | export type ServerNotification__HookScope = "thread" | "turn"; |
| | 2451 | export const ServerNotification__HookScope = Schema.Literals(["thread", "turn"]).annotate({ |
| | 2452 | identifier: "ServerNotification__HookScope", |
| 2314 | }); | 2453 | }); |
| 2315 | | 2454 | |
| 2316 | export type ServerNotification__ModelRerouteReason = "highRiskCyberActivity"; | 2455 | export type ServerNotification__HookSource = |
| 2317 | export const ServerNotification__ModelRerouteReason = Schema.Literal("highRiskCyberActivity"); | 2456 | | "system" |
| | 2457 | | "user" |
| | 2458 | | "project" |
| | 2459 | | "mdm" |
| | 2460 | | "sessionFlags" |
| | 2461 | | "plugin" |
| | 2462 | | "cloudRequirements" |
| | 2463 | | "cloudManagedConfig" |
| | 2464 | | "legacyManagedConfigFile" |
| | 2465 | | "legacyManagedConfigMdm" |
| | 2466 | | "unknown"; |
| | 2467 | export const ServerNotification__HookSource = Schema.Literals([ |
| | 2468 | "system", |
| | 2469 | "user", |
| | 2470 | "project", |
| | 2471 | "mdm", |
| | 2472 | "sessionFlags", |
| | 2473 | "plugin", |
| | 2474 | "cloudRequirements", |
| | 2475 | "cloudManagedConfig", |
| | 2476 | "legacyManagedConfigFile", |
| | 2477 | "legacyManagedConfigMdm", |
| | 2478 | "unknown", |
| | 2479 | ]).annotate({ identifier: "ServerNotification__HookSource" }); |
| 2318 | | 2480 | |
| 2319 | export type ServerNotification__ModelSafetyBufferingUpdatedNotification = { | 2481 | export type ServerNotification__HookRunStatus = |
| 2320 | readonly fasterModel?: string | null; | 2482 | | "running" |
| 2321 | readonly model: string; | 2483 | | "completed" |
| 2322 | readonly reasons: ReadonlyArray<string>; | 2484 | | "failed" |
| 2323 | readonly showBufferingUi: boolean; | 2485 | | "blocked" |
| | 2486 | | "stopped"; |
| | 2487 | export const ServerNotification__HookRunStatus = Schema.Literals([ |
| | 2488 | "running", |
| | 2489 | "completed", |
| | 2490 | "failed", |
| | 2491 | "blocked", |
| | 2492 | "stopped", |
| | 2493 | ]).annotate({ identifier: "ServerNotification__HookRunStatus" }); |
| | 2494 | |
| | 2495 | export type ServerNotification__TurnDiffUpdatedNotification = { |
| | 2496 | readonly diff: string; |
| 2324 | readonly threadId: string; | 2497 | readonly threadId: string; |
| 2325 | readonly turnId: string; | 2498 | readonly turnId: string; |
| 2326 | readonly useCases: ReadonlyArray<string>; | | |
| 2327 | }; | 2499 | }; |
| 2328 | export const ServerNotification__ModelSafetyBufferingUpdatedNotification = Schema.Struct({ | 2500 | export const ServerNotification__TurnDiffUpdatedNotification = Schema.Struct({ |
| 2329 | fasterModel: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 2501 | diff: Schema.String, |
| 2330 | model: Schema.String, | | |
| 2331 | reasons: Schema.Array(Schema.String), | | |
| 2332 | showBufferingUi: Schema.Boolean, | | |
| 2333 | threadId: Schema.String, | 2502 | threadId: Schema.String, |
| 2334 | turnId: Schema.String, | 2503 | turnId: Schema.String, |
| 2335 | useCases: Schema.Array(Schema.String), | 2504 | }).annotate({ |
| | 2505 | description: |
| | 2506 | "Notification that the turn-level unified diff has changed. Contains the latest aggregated diff across all file changes in the turn.", |
| | 2507 | identifier: "ServerNotification__TurnDiffUpdatedNotification", |
| 2336 | }); | 2508 | }); |
| 2337 | | 2509 | |
| 2338 | export type ServerNotification__ModelVerification = "trustedAccessForCyber"; | 2510 | export type ServerNotification__TurnPlanStepStatus = "pending" | "inProgress" | "completed"; |
| 2339 | export const ServerNotification__ModelVerification = Schema.Literal("trustedAccessForCyber"); | 2511 | export const ServerNotification__TurnPlanStepStatus = Schema.Literals([ |
| | 2512 | "pending", |
| | 2513 | "inProgress", |
| | 2514 | "completed", |
| | 2515 | ]).annotate({ identifier: "ServerNotification__TurnPlanStepStatus" }); |
| | 2516 | |
| | 2517 | export type ServerNotification__GuardianCommandSource = "shell" | "unifiedExec"; |
| | 2518 | export const ServerNotification__GuardianCommandSource = Schema.Literals([ |
| | 2519 | "shell", |
| | 2520 | "unifiedExec", |
| | 2521 | ]).annotate({ identifier: "ServerNotification__GuardianCommandSource" }); |
| 2340 | | 2522 | |
| 2341 | export type ServerNotification__NetworkApprovalProtocol = | 2523 | export type ServerNotification__NetworkApprovalProtocol = |
| 2342 | | "http" | 2524 | | "http" |
| ... | @@ -2348,45 +2530,79 @@ export const ServerNotification__NetworkApprovalProtocol = Schema.Literals([ | ... | @@ -2348,45 +2530,79 @@ export const ServerNotification__NetworkApprovalProtocol = Schema.Literals([ |
| 2348 | "https", | 2530 | "https", |
| 2349 | "socks5Tcp", | 2531 | "socks5Tcp", |
| 2350 | "socks5Udp", | 2532 | "socks5Udp", |
| 2351 | ]); | 2533 | ]).annotate({ identifier: "ServerNotification__NetworkApprovalProtocol" }); |
| 2352 | | 2534 | |
| 2353 | export type ServerNotification__NonSteerableTurnKind = "review" | "compact"; | 2535 | export type ServerNotification__FileSystemAccessMode = "read" | "write" | "deny"; |
| 2354 | export const ServerNotification__NonSteerableTurnKind = Schema.Literals(["review", "compact"]); | 2536 | export const ServerNotification__FileSystemAccessMode = Schema.Literals([ |
| | 2537 | "read", |
| | 2538 | "write", |
| | 2539 | "deny", |
| | 2540 | ]).annotate({ identifier: "ServerNotification__FileSystemAccessMode" }); |
| 2355 | | 2541 | |
| 2356 | export type ServerNotification__PatchApplyStatus = | 2542 | export type ServerNotification__AdditionalNetworkPermissions = { |
| | 2543 | readonly enabled?: boolean | null; |
| | 2544 | }; |
| | 2545 | export const ServerNotification__AdditionalNetworkPermissions = Schema.Struct({ |
| | 2546 | enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 2547 | }).annotate({ identifier: "ServerNotification__AdditionalNetworkPermissions" }); |
| | 2548 | |
| | 2549 | export type ServerNotification__GuardianRiskLevel = "low" | "medium" | "high" | "critical"; |
| | 2550 | export const ServerNotification__GuardianRiskLevel = Schema.Literals([ |
| | 2551 | "low", |
| | 2552 | "medium", |
| | 2553 | "high", |
| | 2554 | "critical", |
| | 2555 | ]).annotate({ |
| | 2556 | description: "[UNSTABLE] Risk level assigned by approval auto-review.", |
| | 2557 | identifier: "ServerNotification__GuardianRiskLevel", |
| | 2558 | }); |
| | 2559 | |
| | 2560 | export type ServerNotification__GuardianApprovalReviewStatus = |
| 2357 | | "inProgress" | 2561 | | "inProgress" |
| 2358 | | "completed" | 2562 | | "approved" |
| 2359 | | "failed" | 2563 | | "denied" |
| 2360 | | "declined"; | 2564 | | "timedOut" |
| 2361 | export const ServerNotification__PatchApplyStatus = Schema.Literals([ | 2565 | | "aborted"; |
| | 2566 | export const ServerNotification__GuardianApprovalReviewStatus = Schema.Literals([ |
| 2362 | "inProgress", | 2567 | "inProgress", |
| 2363 | "completed", | 2568 | "approved", |
| 2364 | "failed", | 2569 | "denied", |
| 2365 | "declined", | 2570 | "timedOut", |
| 2366 | ]); | 2571 | "aborted", |
| | 2572 | ]).annotate({ |
| | 2573 | description: "[UNSTABLE] Lifecycle state for an approval auto-review.", |
| | 2574 | identifier: "ServerNotification__GuardianApprovalReviewStatus", |
| | 2575 | }); |
| 2367 | | 2576 | |
| 2368 | export type ServerNotification__PatchChangeKind = | 2577 | export type ServerNotification__GuardianUserAuthorization = "unknown" | "low" | "medium" | "high"; |
| 2369 | | { readonly type: "add" } | 2578 | export const ServerNotification__GuardianUserAuthorization = Schema.Literals([ |
| 2370 | | { readonly type: "delete" } | 2579 | "unknown", |
| 2371 | | { readonly move_path?: string | null; readonly type: "update" }; | 2580 | "low", |
| 2372 | export const ServerNotification__PatchChangeKind = Schema.Union( | 2581 | "medium", |
| 2373 | [ | 2582 | "high", |
| 2374 | Schema.Struct({ | 2583 | ]).annotate({ |
| 2375 | type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }), | 2584 | description: "[UNSTABLE] Authorization level assigned by approval auto-review.", |
| 2376 | }).annotate({ title: "AddPatchChangeKind" }), | 2585 | identifier: "ServerNotification__GuardianUserAuthorization", |
| 2377 | Schema.Struct({ | 2586 | }); |
| 2378 | type: Schema.Literal("delete").annotate({ title: "DeletePatchChangeKindType" }), | | |
| 2379 | }).annotate({ title: "DeletePatchChangeKind" }), | | |
| 2380 | Schema.Struct({ | | |
| 2381 | move_path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 2382 | type: Schema.Literal("update").annotate({ title: "UpdatePatchChangeKindType" }), | | |
| 2383 | }).annotate({ title: "UpdatePatchChangeKind" }), | | |
| 2384 | ], | | |
| 2385 | { mode: "oneOf" }, | | |
| 2386 | ); | | |
| 2387 | | 2587 | |
| 2388 | export type ServerNotification__Personality = "none" | "friendly" | "pragmatic"; | 2588 | export type ServerNotification__AutoReviewDecisionSource = "agent"; |
| 2389 | export const ServerNotification__Personality = Schema.Literals(["none", "friendly", "pragmatic"]); | 2589 | export const ServerNotification__AutoReviewDecisionSource = Schema.Literal("agent").annotate({ |
| | 2590 | description: "[UNSTABLE] Source that produced a terminal approval auto-review decision.", |
| | 2591 | identifier: "ServerNotification__AutoReviewDecisionSource", |
| | 2592 | }); |
| | 2593 | |
| | 2594 | export type ServerNotification__AgentMessageDeltaNotification = { |
| | 2595 | readonly delta: string; |
| | 2596 | readonly itemId: string; |
| | 2597 | readonly threadId: string; |
| | 2598 | readonly turnId: string; |
| | 2599 | }; |
| | 2600 | export const ServerNotification__AgentMessageDeltaNotification = Schema.Struct({ |
| | 2601 | delta: Schema.String, |
| | 2602 | itemId: Schema.String, |
| | 2603 | threadId: Schema.String, |
| | 2604 | turnId: Schema.String, |
| | 2605 | }).annotate({ identifier: "ServerNotification__AgentMessageDeltaNotification" }); |
| 2390 | | 2606 | |
| 2391 | export type ServerNotification__PlanDeltaNotification = { | 2607 | export type ServerNotification__PlanDeltaNotification = { |
| 2392 | readonly delta: string; | 2608 | readonly delta: string; |
| ... | @@ -2402,45 +2618,36 @@ export const ServerNotification__PlanDeltaNotification = Schema.Struct({ | ... | @@ -2402,45 +2618,36 @@ export const ServerNotification__PlanDeltaNotification = Schema.Struct({ |
| 2402 | }).annotate({ | 2618 | }).annotate({ |
| 2403 | description: | 2619 | description: |
| 2404 | "EXPERIMENTAL - proposed plan streaming deltas for plan items. Clients should not assume concatenated deltas match the completed plan item content.", | 2620 | "EXPERIMENTAL - proposed plan streaming deltas for plan items. Clients should not assume concatenated deltas match the completed plan item content.", |
| | 2621 | identifier: "ServerNotification__PlanDeltaNotification", |
| 2405 | }); | 2622 | }); |
| 2406 | | 2623 | |
| 2407 | export type ServerNotification__PlanType = | 2624 | export type ServerNotification__CommandExecOutputStream = "stdout" | "stderr"; |
| 2408 | | "free" | 2625 | export const ServerNotification__CommandExecOutputStream = Schema.Union( |
| 2409 | | "go" | 2626 | [ |
| 2410 | | "plus" | 2627 | Schema.Literal("stdout").annotate({ |
| 2411 | | "pro" | 2628 | description: "stdout stream. PTY mode multiplexes terminal output here.", |
| 2412 | | "prolite" | 2629 | }), |
| 2413 | | "team" | 2630 | Schema.Literal("stderr").annotate({ description: "stderr stream." }), |
| 2414 | | "self_serve_business_prolite" | 2631 | ], |
| 2415 | | "self_serve_business_usage_based" | 2632 | { mode: "oneOf" }, |
| 2416 | | "business" | 2633 | ).annotate({ |
| 2417 | | "ent26" | 2634 | description: "Stream label for `command/exec/outputDelta` notifications.", |
| 2418 | | "enterprise_cbp_automation" | 2635 | identifier: "ServerNotification__CommandExecOutputStream", |
| 2419 | | "enterprise_cbp_usage_based" | 2636 | }); |
| 2420 | | "enterprise" | 2637 | |
| 2421 | | "edu" | 2638 | export type ServerNotification__ProcessOutputStream = "stdout" | "stderr"; |
| 2422 | | "edu_plus" | 2639 | export const ServerNotification__ProcessOutputStream = Schema.Union( |
| 2423 | | "edu_pro" | 2640 | [ |
| 2424 | | "unknown"; | 2641 | Schema.Literal("stdout").annotate({ |
| 2425 | export const ServerNotification__PlanType = Schema.Literals([ | 2642 | description: "stdout stream. PTY mode multiplexes terminal output here.", |
| 2426 | "free", | 2643 | }), |
| 2427 | "go", | 2644 | Schema.Literal("stderr").annotate({ description: "stderr stream." }), |
| 2428 | "plus", | 2645 | ], |
| 2429 | "pro", | 2646 | { mode: "oneOf" }, |
| 2430 | "prolite", | 2647 | ).annotate({ |
| 2431 | "team", | 2648 | description: "Stream label for `process/outputDelta` notifications.", |
| 2432 | "self_serve_business_prolite", | 2649 | identifier: "ServerNotification__ProcessOutputStream", |
| 2433 | "self_serve_business_usage_based", | 2650 | }); |
| 2434 | "business", | | |
| 2435 | "ent26", | | |
| 2436 | "enterprise_cbp_automation", | | |
| 2437 | "enterprise_cbp_usage_based", | | |
| 2438 | "enterprise", | | |
| 2439 | "edu", | | |
| 2440 | "edu_plus", | | |
| 2441 | "edu_pro", | | |
| 2442 | "unknown", | | |
| 2443 | ]); | | |
| 2444 | | 2651 | |
| 2445 | export type ServerNotification__ProcessExitedNotification = { | 2652 | export type ServerNotification__ProcessExitedNotification = { |
| 2446 | readonly exitCode: number; | 2653 | readonly exitCode: number; |
| ... | @@ -2452,7 +2659,7 @@ export type ServerNotification__ProcessExitedNotification = { | ... | @@ -2452,7 +2659,7 @@ export type ServerNotification__ProcessExitedNotification = { |
| 2452 | }; | 2659 | }; |
| 2453 | export const ServerNotification__ProcessExitedNotification = Schema.Struct({ | 2660 | export const ServerNotification__ProcessExitedNotification = Schema.Struct({ |
| 2454 | exitCode: Schema.Number.annotate({ description: "Process exit code.", format: "int32" }).check( | 2661 | exitCode: Schema.Number.annotate({ description: "Process exit code.", format: "int32" }).check( |
| 2455 | Schema.isInt(), | 2662 | Schema.isInt().annotate({ expected: "an integer" }), |
| 2456 | ), | 2663 | ), |
| 2457 | processHandle: Schema.String.annotate({ | 2664 | processHandle: Schema.String.annotate({ |
| 2458 | description: "Client-supplied, connection-scoped `processHandle` from `process/spawn`.", | 2665 | description: "Client-supplied, connection-scoped `processHandle` from `process/spawn`.", |
| ... | @@ -2473,146 +2680,195 @@ export const ServerNotification__ProcessExitedNotification = Schema.Struct({ | ... | @@ -2473,146 +2680,195 @@ export const ServerNotification__ProcessExitedNotification = Schema.Struct({ |
| 2473 | description: | 2680 | description: |
| 2474 | "Whether stdout reached `outputBytesCap`.\n\nIn streaming mode, stdout is empty and cap state is also reported on the final stdout `process/outputDelta` notification.", | 2681 | "Whether stdout reached `outputBytesCap`.\n\nIn streaming mode, stdout is empty and cap state is also reported on the final stdout `process/outputDelta` notification.", |
| 2475 | }), | 2682 | }), |
| 2476 | }).annotate({ description: "Final process exit notification for `process/spawn`." }); | | |
| 2477 | | | |
| 2478 | export type ServerNotification__ProcessOutputDeltaNotification = { | | |
| 2479 | readonly capReached: boolean; | | |
| 2480 | readonly deltaBase64: string; | | |
| 2481 | readonly processHandle: string; | | |
| 2482 | readonly stream: "stdout" | "stderr"; | | |
| 2483 | }; | | |
| 2484 | export const ServerNotification__ProcessOutputDeltaNotification = Schema.Struct({ | | |
| 2485 | capReached: Schema.Boolean.annotate({ | | |
| 2486 | description: | | |
| 2487 | "True on the final streamed chunk for this stream when output was truncated by `outputBytesCap`.", | | |
| 2488 | }), | | |
| 2489 | deltaBase64: Schema.String.annotate({ description: "Base64-encoded output bytes." }), | | |
| 2490 | processHandle: Schema.String.annotate({ | | |
| 2491 | description: "Client-supplied, connection-scoped `processHandle` from `process/spawn`.", | | |
| 2492 | }), | | |
| 2493 | stream: Schema.Literals(["stdout", "stderr"]).annotate({ | | |
| 2494 | description: "Stream label for `process/outputDelta` notifications.", | | |
| 2495 | }), | | |
| 2496 | }).annotate({ | 2683 | }).annotate({ |
| 2497 | description: "Base64-encoded output chunk emitted for a streaming `process/spawn` request.", | 2684 | description: "Final process exit notification for `process/spawn`.", |
| 2498 | }); | 2685 | identifier: "ServerNotification__ProcessExitedNotification", |
| 2499 | | | |
| 2500 | export type ServerNotification__RateLimitReachedType = | | |
| 2501 | | "rate_limit_reached" | | |
| 2502 | | "workspace_owner_credits_depleted" | | |
| 2503 | | "workspace_member_credits_depleted" | | |
| 2504 | | "workspace_owner_usage_limit_reached" | | |
| 2505 | | "workspace_member_usage_limit_reached"; | | |
| 2506 | export const ServerNotification__RateLimitReachedType = Schema.Literals([ | | |
| 2507 | "rate_limit_reached", | | |
| 2508 | "workspace_owner_credits_depleted", | | |
| 2509 | "workspace_member_credits_depleted", | | |
| 2510 | "workspace_owner_usage_limit_reached", | | |
| 2511 | "workspace_member_usage_limit_reached", | | |
| 2512 | ]); | | |
| 2513 | | | |
| 2514 | export type ServerNotification__RateLimitWindow = { | | |
| 2515 | readonly resetsAt?: number | null; | | |
| 2516 | readonly usedPercent: number; | | |
| 2517 | readonly windowDurationMins?: number | null; | | |
| 2518 | }; | | |
| 2519 | export const ServerNotification__RateLimitWindow = Schema.Struct({ | | |
| 2520 | resetsAt: Schema.optionalKey( | | |
| 2521 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), | | |
| 2522 | ), | | |
| 2523 | usedPercent: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()), | | |
| 2524 | windowDurationMins: Schema.optionalKey( | | |
| 2525 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), | | |
| 2526 | ), | | |
| 2527 | }); | | |
| 2528 | | | |
| 2529 | export type ServerNotification__RealtimeConversationVersion = "v1" | "v2" | "v3"; | | |
| 2530 | export const ServerNotification__RealtimeConversationVersion = Schema.Literals(["v1", "v2", "v3"]); | | |
| 2531 | | | |
| 2532 | export type ServerNotification__ReasoningEffort = string; | | |
| 2533 | export const ServerNotification__ReasoningEffort = Schema.String.annotate({ | | |
| 2534 | description: "A non-empty reasoning effort value advertised by the model.", | | |
| 2535 | }).check(Schema.isMinLength(1)); | | |
| 2536 | | | |
| 2537 | export type ServerNotification__ReasoningSummary = "auto" | "concise" | "detailed" | "none"; | | |
| 2538 | export const ServerNotification__ReasoningSummary = Schema.Union( | | |
| 2539 | [ | | |
| 2540 | Schema.Literals(["auto", "concise", "detailed"]), | | |
| 2541 | Schema.Literal("none").annotate({ description: "Option to disable reasoning summaries." }), | | |
| 2542 | ], | | |
| 2543 | { mode: "oneOf" }, | | |
| 2544 | ).annotate({ | | |
| 2545 | description: | | |
| 2546 | "A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries", | | |
| 2547 | }); | 2686 | }); |
| 2548 | | 2687 | |
| 2549 | export type ServerNotification__ReasoningSummaryPartAddedNotification = { | 2688 | export type ServerNotification__CommandExecutionOutputDeltaNotification = { |
| | 2689 | readonly delta: string; |
| 2550 | readonly itemId: string; | 2690 | readonly itemId: string; |
| 2551 | readonly summaryIndex: number; | | |
| 2552 | readonly threadId: string; | 2691 | readonly threadId: string; |
| 2553 | readonly turnId: string; | 2692 | readonly turnId: string; |
| 2554 | }; | 2693 | }; |
| 2555 | export const ServerNotification__ReasoningSummaryPartAddedNotification = Schema.Struct({ | 2694 | export const ServerNotification__CommandExecutionOutputDeltaNotification = Schema.Struct({ |
| | 2695 | delta: Schema.String, |
| 2556 | itemId: Schema.String, | 2696 | itemId: Schema.String, |
| 2557 | summaryIndex: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | | |
| 2558 | threadId: Schema.String, | 2697 | threadId: Schema.String, |
| 2559 | turnId: Schema.String, | 2698 | turnId: Schema.String, |
| 2560 | }); | 2699 | }).annotate({ identifier: "ServerNotification__CommandExecutionOutputDeltaNotification" }); |
| 2561 | | 2700 | |
| 2562 | export type ServerNotification__ReasoningSummaryTextDeltaNotification = { | 2701 | export type ServerNotification__TerminalInteractionNotification = { |
| 2563 | readonly delta: string; | | |
| 2564 | readonly itemId: string; | 2702 | readonly itemId: string; |
| 2565 | readonly summaryIndex: number; | 2703 | readonly processId: string; |
| | 2704 | readonly stdin: string; |
| 2566 | readonly threadId: string; | 2705 | readonly threadId: string; |
| 2567 | readonly turnId: string; | 2706 | readonly turnId: string; |
| 2568 | }; | 2707 | }; |
| 2569 | export const ServerNotification__ReasoningSummaryTextDeltaNotification = Schema.Struct({ | 2708 | export const ServerNotification__TerminalInteractionNotification = Schema.Struct({ |
| 2570 | delta: Schema.String, | | |
| 2571 | itemId: Schema.String, | 2709 | itemId: Schema.String, |
| 2572 | summaryIndex: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 2710 | processId: Schema.String, |
| | 2711 | stdin: Schema.String, |
| 2573 | threadId: Schema.String, | 2712 | threadId: Schema.String, |
| 2574 | turnId: Schema.String, | 2713 | turnId: Schema.String, |
| 2575 | }); | 2714 | }).annotate({ identifier: "ServerNotification__TerminalInteractionNotification" }); |
| 2576 | | 2715 | |
| 2577 | export type ServerNotification__ReasoningTextDeltaNotification = { | 2716 | export type ServerNotification__FileChangeOutputDeltaNotification = { |
| 2578 | readonly contentIndex: number; | | |
| 2579 | readonly delta: string; | 2717 | readonly delta: string; |
| 2580 | readonly itemId: string; | 2718 | readonly itemId: string; |
| 2581 | readonly threadId: string; | 2719 | readonly threadId: string; |
| 2582 | readonly turnId: string; | 2720 | readonly turnId: string; |
| 2583 | }; | 2721 | }; |
| 2584 | export const ServerNotification__ReasoningTextDeltaNotification = Schema.Struct({ | 2722 | export const ServerNotification__FileChangeOutputDeltaNotification = Schema.Struct({ |
| 2585 | contentIndex: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | | |
| 2586 | delta: Schema.String, | 2723 | delta: Schema.String, |
| 2587 | itemId: Schema.String, | 2724 | itemId: Schema.String, |
| 2588 | threadId: Schema.String, | 2725 | threadId: Schema.String, |
| 2589 | turnId: Schema.String, | 2726 | turnId: Schema.String, |
| | 2727 | }).annotate({ |
| | 2728 | description: |
| | 2729 | "Deprecated legacy notification for `apply_patch` textual output.\n\nThe server no longer emits this notification.", |
| | 2730 | identifier: "ServerNotification__FileChangeOutputDeltaNotification", |
| 2590 | }); | 2731 | }); |
| 2591 | | 2732 | |
| 2592 | export type ServerNotification__RemoteControlConnectionStatus = | | |
| 2593 | | "disabled" | | |
| 2594 | | "connecting" | | |
| 2595 | | "connected" | | |
| 2596 | | "errored"; | | |
| 2597 | export const ServerNotification__RemoteControlConnectionStatus = Schema.Literals([ | | |
| 2598 | "disabled", | | |
| 2599 | "connecting", | | |
| 2600 | "connected", | | |
| 2601 | "errored", | | |
| 2602 | ]); | | |
| 2603 | | | |
| 2604 | export type ServerNotification__RequestId = string | number; | 2733 | export type ServerNotification__RequestId = string | number; |
| 2605 | export const ServerNotification__RequestId = Schema.Union([ | 2734 | export const ServerNotification__RequestId = Schema.Union([ |
| 2606 | Schema.String, | 2735 | Schema.String, |
| 2607 | Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 2736 | Schema.Number.annotate({ format: "int64" }).check( |
| 2608 | ]); | 2737 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 2738 | ), |
| | 2739 | ]).annotate({ identifier: "ServerNotification__RequestId" }); |
| 2609 | | 2740 | |
| 2610 | export type ServerNotification__SkillsChangedNotification = {}; | 2741 | export type ServerNotification__McpToolCallProgressNotification = { |
| 2611 | export const ServerNotification__SkillsChangedNotification = Schema.Struct({}).annotate({ | 2742 | readonly itemId: string; |
| 2612 | description: | 2743 | readonly message: string; |
| 2613 | "Notification emitted when watched local skill files change.\n\nTreat this as an invalidation signal and re-run `skills/list` with the client's current parameters when refreshed skill metadata is needed.", | 2744 | readonly threadId: string; |
| | 2745 | readonly turnId: string; |
| | 2746 | }; |
| | 2747 | export const ServerNotification__McpToolCallProgressNotification = Schema.Struct({ |
| | 2748 | itemId: Schema.String, |
| | 2749 | message: Schema.String, |
| | 2750 | threadId: Schema.String, |
| | 2751 | turnId: Schema.String, |
| | 2752 | }).annotate({ identifier: "ServerNotification__McpToolCallProgressNotification" }); |
| | 2753 | |
| | 2754 | export type ServerNotification__McpServerOauthLoginCompletedNotification = { |
| | 2755 | readonly error?: string | null; |
| | 2756 | readonly name: string; |
| | 2757 | readonly success: boolean; |
| | 2758 | readonly threadId?: string | null; |
| | 2759 | }; |
| | 2760 | export const ServerNotification__McpServerOauthLoginCompletedNotification = Schema.Struct({ |
| | 2761 | error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 2762 | name: Schema.String, |
| | 2763 | success: Schema.Boolean, |
| | 2764 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 2765 | }).annotate({ identifier: "ServerNotification__McpServerOauthLoginCompletedNotification" }); |
| | 2766 | |
| | 2767 | export type ServerNotification__McpServerStartupFailureReason = "reauthenticationRequired"; |
| | 2768 | export const ServerNotification__McpServerStartupFailureReason = Schema.Literal( |
| | 2769 | "reauthenticationRequired", |
| | 2770 | ).annotate({ identifier: "ServerNotification__McpServerStartupFailureReason" }); |
| | 2771 | |
| | 2772 | export type ServerNotification__McpServerStartupState = |
| | 2773 | | "starting" |
| | 2774 | | "ready" |
| | 2775 | | "failed" |
| | 2776 | | "cancelled"; |
| | 2777 | export const ServerNotification__McpServerStartupState = Schema.Literals([ |
| | 2778 | "starting", |
| | 2779 | "ready", |
| | 2780 | "failed", |
| | 2781 | "cancelled", |
| | 2782 | ]).annotate({ identifier: "ServerNotification__McpServerStartupState" }); |
| | 2783 | |
| | 2784 | export type ServerNotification__AuthMode = |
| | 2785 | | "apikey" |
| | 2786 | | "chatgpt" |
| | 2787 | | "chatgptAuthTokens" |
| | 2788 | | "headers" |
| | 2789 | | "agentIdentity" |
| | 2790 | | "personalAccessToken" |
| | 2791 | | "bedrockApiKey"; |
| | 2792 | export const ServerNotification__AuthMode = Schema.Union( |
| | 2793 | [ |
| | 2794 | Schema.Literal("apikey").annotate({ |
| | 2795 | description: "OpenAI API key provided by the caller and stored by Codex.", |
| | 2796 | }), |
| | 2797 | Schema.Literal("chatgpt").annotate({ |
| | 2798 | description: "ChatGPT OAuth managed by Codex (tokens persisted and refreshed by Codex).", |
| | 2799 | }), |
| | 2800 | Schema.Literal("chatgptAuthTokens").annotate({ |
| | 2801 | description: |
| | 2802 | "[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE.\n\nChatGPT auth tokens are supplied by an external host app and are only stored in memory. Token refresh must be handled by the external host app.", |
| | 2803 | }), |
| | 2804 | Schema.Literal("headers").annotate({ |
| | 2805 | description: "Backend auth supplied as request headers.", |
| | 2806 | }), |
| | 2807 | Schema.Literal("agentIdentity").annotate({ |
| | 2808 | description: "Programmatic Codex auth backed by a registered Agent Identity.", |
| | 2809 | }), |
| | 2810 | Schema.Literal("personalAccessToken").annotate({ |
| | 2811 | description: "Programmatic Codex auth backed by a personal access token.", |
| | 2812 | }), |
| | 2813 | Schema.Literal("bedrockApiKey").annotate({ |
| | 2814 | description: "Amazon Bedrock bearer token managed by Codex.", |
| | 2815 | }), |
| | 2816 | ], |
| | 2817 | { mode: "oneOf" }, |
| | 2818 | ).annotate({ |
| | 2819 | description: "Authentication mode for OpenAI-backed providers.", |
| | 2820 | identifier: "ServerNotification__AuthMode", |
| 2614 | }); | 2821 | }); |
| 2615 | | 2822 | |
| | 2823 | export type ServerNotification__PlanType = |
| | 2824 | | "free" |
| | 2825 | | "go" |
| | 2826 | | "plus" |
| | 2827 | | "pro" |
| | 2828 | | "prolite" |
| | 2829 | | "team" |
| | 2830 | | "self_serve_business_prolite" |
| | 2831 | | "self_serve_business_usage_based" |
| | 2832 | | "business" |
| | 2833 | | "ent26" |
| | 2834 | | "enterprise_cbp_automation" |
| | 2835 | | "enterprise_cbp_usage_based" |
| | 2836 | | "enterprise" |
| | 2837 | | "edu" |
| | 2838 | | "edu_plus" |
| | 2839 | | "edu_pro" |
| | 2840 | | "unknown"; |
| | 2841 | export const ServerNotification__PlanType = Schema.Literals([ |
| | 2842 | "free", |
| | 2843 | "go", |
| | 2844 | "plus", |
| | 2845 | "pro", |
| | 2846 | "prolite", |
| | 2847 | "team", |
| | 2848 | "self_serve_business_prolite", |
| | 2849 | "self_serve_business_usage_based", |
| | 2850 | "business", |
| | 2851 | "ent26", |
| | 2852 | "enterprise_cbp_automation", |
| | 2853 | "enterprise_cbp_usage_based", |
| | 2854 | "enterprise", |
| | 2855 | "edu", |
| | 2856 | "edu_plus", |
| | 2857 | "edu_pro", |
| | 2858 | "unknown", |
| | 2859 | ]).annotate({ identifier: "ServerNotification__PlanType" }); |
| | 2860 | |
| | 2861 | export type ServerNotification__CreditsSnapshot = { |
| | 2862 | readonly balance?: string | null; |
| | 2863 | readonly hasCredits: boolean; |
| | 2864 | readonly unlimited: boolean; |
| | 2865 | }; |
| | 2866 | export const ServerNotification__CreditsSnapshot = Schema.Struct({ |
| | 2867 | balance: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 2868 | hasCredits: Schema.Boolean, |
| | 2869 | unlimited: Schema.Boolean, |
| | 2870 | }).annotate({ identifier: "ServerNotification__CreditsSnapshot" }); |
| | 2871 | |
| 2616 | export type ServerNotification__SpendControlLimitSnapshot = { | 2872 | export type ServerNotification__SpendControlLimitSnapshot = { |
| 2617 | readonly limit: string; | 2873 | readonly limit: string; |
| 2618 | readonly remainingPercent: number; | 2874 | readonly remainingPercent: number; |
| ... | @@ -2621,62 +2877,271 @@ export type ServerNotification__SpendControlLimitSnapshot = { | ... | @@ -2621,62 +2877,271 @@ export type ServerNotification__SpendControlLimitSnapshot = { |
| 2621 | }; | 2877 | }; |
| 2622 | export const ServerNotification__SpendControlLimitSnapshot = Schema.Struct({ | 2878 | export const ServerNotification__SpendControlLimitSnapshot = Schema.Struct({ |
| 2623 | limit: Schema.String, | 2879 | limit: Schema.String, |
| 2624 | remainingPercent: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()), | 2880 | remainingPercent: Schema.Number.annotate({ format: "int32" }).check( |
| 2625 | resetsAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 2881 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 2882 | ), |
| | 2883 | resetsAt: Schema.Number.annotate({ format: "int64" }).check( |
| | 2884 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 2885 | ), |
| 2626 | used: Schema.String, | 2886 | used: Schema.String, |
| | 2887 | }).annotate({ identifier: "ServerNotification__SpendControlLimitSnapshot" }); |
| | 2888 | |
| | 2889 | export type ServerNotification__RateLimitWindow = { |
| | 2890 | readonly resetsAt?: number | null; |
| | 2891 | readonly usedPercent: number; |
| | 2892 | readonly windowDurationMins?: number | null; |
| | 2893 | }; |
| | 2894 | export const ServerNotification__RateLimitWindow = Schema.Struct({ |
| | 2895 | resetsAt: Schema.optionalKey( |
| | 2896 | Schema.Union([ |
| | 2897 | Schema.Number.annotate({ format: "int64" }).check( |
| | 2898 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 2899 | ), |
| | 2900 | Schema.Null, |
| | 2901 | ]), |
| | 2902 | ), |
| | 2903 | usedPercent: Schema.Number.annotate({ format: "int32" }).check( |
| | 2904 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 2905 | ), |
| | 2906 | windowDurationMins: Schema.optionalKey( |
| | 2907 | Schema.Union([ |
| | 2908 | Schema.Number.annotate({ format: "int64" }).check( |
| | 2909 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 2910 | ), |
| | 2911 | Schema.Null, |
| | 2912 | ]), |
| | 2913 | ), |
| | 2914 | }).annotate({ identifier: "ServerNotification__RateLimitWindow" }); |
| | 2915 | |
| | 2916 | export type ServerNotification__RateLimitReachedType = |
| | 2917 | | "rate_limit_reached" |
| | 2918 | | "workspace_owner_credits_depleted" |
| | 2919 | | "workspace_member_credits_depleted" |
| | 2920 | | "workspace_owner_usage_limit_reached" |
| | 2921 | | "workspace_member_usage_limit_reached"; |
| | 2922 | export const ServerNotification__RateLimitReachedType = Schema.Literals([ |
| | 2923 | "rate_limit_reached", |
| | 2924 | "workspace_owner_credits_depleted", |
| | 2925 | "workspace_member_credits_depleted", |
| | 2926 | "workspace_owner_usage_limit_reached", |
| | 2927 | "workspace_member_usage_limit_reached", |
| | 2928 | ]).annotate({ identifier: "ServerNotification__RateLimitReachedType" }); |
| | 2929 | |
| | 2930 | export type ServerNotification__AppReview = { readonly status: string }; |
| | 2931 | export const ServerNotification__AppReview = Schema.Struct({ status: Schema.String }).annotate({ |
| | 2932 | identifier: "ServerNotification__AppReview", |
| 2627 | }); | 2933 | }); |
| 2628 | | 2934 | |
| 2629 | export type ServerNotification__SubAgentActivityKind = | 2935 | export type ServerNotification__AppScreenshot = { |
| 2630 | | "started" | 2936 | readonly fileId?: string | null; |
| 2631 | | "interacted" | 2937 | readonly url?: string | null; |
| 2632 | | "interrupted" | 2938 | readonly userPrompt: string; |
| 2633 | | "completed"; | 2939 | }; |
| 2634 | export const ServerNotification__SubAgentActivityKind = Schema.Literals([ | 2940 | export const ServerNotification__AppScreenshot = Schema.Struct({ |
| 2635 | "started", | 2941 | fileId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 2636 | "interacted", | 2942 | url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 2637 | "interrupted", | 2943 | userPrompt: Schema.String, |
| 2638 | "completed", | 2944 | }).annotate({ identifier: "ServerNotification__AppScreenshot" }); |
| 2639 | ]); | | |
| 2640 | | 2945 | |
| 2641 | export type ServerNotification__TerminalInteractionNotification = { | 2946 | export type ServerNotification__AppBranding = { |
| | 2947 | readonly category?: string | null; |
| | 2948 | readonly developer?: string | null; |
| | 2949 | readonly isDiscoverableApp: boolean; |
| | 2950 | readonly privacyPolicy?: string | null; |
| | 2951 | readonly termsOfService?: string | null; |
| | 2952 | readonly website?: string | null; |
| | 2953 | }; |
| | 2954 | export const ServerNotification__AppBranding = Schema.Struct({ |
| | 2955 | category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 2956 | developer: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 2957 | isDiscoverableApp: Schema.Boolean, |
| | 2958 | privacyPolicy: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 2959 | termsOfService: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 2960 | website: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 2961 | }).annotate({ |
| | 2962 | description: "EXPERIMENTAL - app metadata returned by app-list APIs.", |
| | 2963 | identifier: "ServerNotification__AppBranding", |
| | 2964 | }); |
| | 2965 | |
| | 2966 | export type ServerNotification__RemoteControlConnectionStatus = |
| | 2967 | | "disabled" |
| | 2968 | | "connecting" |
| | 2969 | | "connected" |
| | 2970 | | "errored"; |
| | 2971 | export const ServerNotification__RemoteControlConnectionStatus = Schema.Literals([ |
| | 2972 | "disabled", |
| | 2973 | "connecting", |
| | 2974 | "connected", |
| | 2975 | "errored", |
| | 2976 | ]).annotate({ identifier: "ServerNotification__RemoteControlConnectionStatus" }); |
| | 2977 | |
| | 2978 | export type ServerNotification__ExternalAgentConfigMigrationItemType = |
| | 2979 | | "AGENTS_MD" |
| | 2980 | | "CONFIG" |
| | 2981 | | "SKILLS" |
| | 2982 | | "PLUGINS" |
| | 2983 | | "MCP_SERVER_CONFIG" |
| | 2984 | | "SUBAGENTS" |
| | 2985 | | "HOOKS" |
| | 2986 | | "COMMANDS" |
| | 2987 | | "MEMORY" |
| | 2988 | | "SESSIONS"; |
| | 2989 | export const ServerNotification__ExternalAgentConfigMigrationItemType = Schema.Literals([ |
| | 2990 | "AGENTS_MD", |
| | 2991 | "CONFIG", |
| | 2992 | "SKILLS", |
| | 2993 | "PLUGINS", |
| | 2994 | "MCP_SERVER_CONFIG", |
| | 2995 | "SUBAGENTS", |
| | 2996 | "HOOKS", |
| | 2997 | "COMMANDS", |
| | 2998 | "MEMORY", |
| | 2999 | "SESSIONS", |
| | 3000 | ]).annotate({ identifier: "ServerNotification__ExternalAgentConfigMigrationItemType" }); |
| | 3001 | |
| | 3002 | export type ServerNotification__ReasoningSummaryTextDeltaNotification = { |
| | 3003 | readonly delta: string; |
| 2642 | readonly itemId: string; | 3004 | readonly itemId: string; |
| 2643 | readonly processId: string; | 3005 | readonly summaryIndex: number; |
| 2644 | readonly stdin: string; | | |
| 2645 | readonly threadId: string; | 3006 | readonly threadId: string; |
| 2646 | readonly turnId: string; | 3007 | readonly turnId: string; |
| 2647 | }; | 3008 | }; |
| 2648 | export const ServerNotification__TerminalInteractionNotification = Schema.Struct({ | 3009 | export const ServerNotification__ReasoningSummaryTextDeltaNotification = Schema.Struct({ |
| | 3010 | delta: Schema.String, |
| 2649 | itemId: Schema.String, | 3011 | itemId: Schema.String, |
| 2650 | processId: Schema.String, | 3012 | summaryIndex: Schema.Number.annotate({ format: "int64" }).check( |
| 2651 | stdin: Schema.String, | 3013 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 3014 | ), |
| | 3015 | threadId: Schema.String, |
| | 3016 | turnId: Schema.String, |
| | 3017 | }).annotate({ identifier: "ServerNotification__ReasoningSummaryTextDeltaNotification" }); |
| | 3018 | |
| | 3019 | export type ServerNotification__ReasoningSummaryPartAddedNotification = { |
| | 3020 | readonly itemId: string; |
| | 3021 | readonly summaryIndex: number; |
| | 3022 | readonly threadId: string; |
| | 3023 | readonly turnId: string; |
| | 3024 | }; |
| | 3025 | export const ServerNotification__ReasoningSummaryPartAddedNotification = Schema.Struct({ |
| | 3026 | itemId: Schema.String, |
| | 3027 | summaryIndex: Schema.Number.annotate({ format: "int64" }).check( |
| | 3028 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 3029 | ), |
| | 3030 | threadId: Schema.String, |
| | 3031 | turnId: Schema.String, |
| | 3032 | }).annotate({ identifier: "ServerNotification__ReasoningSummaryPartAddedNotification" }); |
| | 3033 | |
| | 3034 | export type ServerNotification__ReasoningTextDeltaNotification = { |
| | 3035 | readonly contentIndex: number; |
| | 3036 | readonly delta: string; |
| | 3037 | readonly itemId: string; |
| | 3038 | readonly threadId: string; |
| | 3039 | readonly turnId: string; |
| | 3040 | }; |
| | 3041 | export const ServerNotification__ReasoningTextDeltaNotification = Schema.Struct({ |
| | 3042 | contentIndex: Schema.Number.annotate({ format: "int64" }).check( |
| | 3043 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 3044 | ), |
| | 3045 | delta: Schema.String, |
| | 3046 | itemId: Schema.String, |
| | 3047 | threadId: Schema.String, |
| | 3048 | turnId: Schema.String, |
| | 3049 | }).annotate({ identifier: "ServerNotification__ReasoningTextDeltaNotification" }); |
| | 3050 | |
| | 3051 | export type ServerNotification__ContextCompactedNotification = { |
| | 3052 | readonly threadId: string; |
| | 3053 | readonly turnId: string; |
| | 3054 | }; |
| | 3055 | export const ServerNotification__ContextCompactedNotification = Schema.Struct({ |
| 2652 | threadId: Schema.String, | 3056 | threadId: Schema.String, |
| 2653 | turnId: Schema.String, | 3057 | turnId: Schema.String, |
| | 3058 | }).annotate({ |
| | 3059 | description: "Deprecated: Use `ContextCompaction` item type instead.", |
| | 3060 | identifier: "ServerNotification__ContextCompactedNotification", |
| 2654 | }); | 3061 | }); |
| 2655 | | 3062 | |
| 2656 | export type ServerNotification__TextElement = { | 3063 | export type ServerNotification__ModelRerouteReason = "highRiskCyberActivity"; |
| 2657 | readonly byteRange: { readonly end: number; readonly start: number }; | 3064 | export const ServerNotification__ModelRerouteReason = Schema.Literal( |
| 2658 | readonly placeholder?: string | null; | 3065 | "highRiskCyberActivity", |
| | 3066 | ).annotate({ identifier: "ServerNotification__ModelRerouteReason" }); |
| | 3067 | |
| | 3068 | export type ServerNotification__ModelVerification = "trustedAccessForCyber"; |
| | 3069 | export const ServerNotification__ModelVerification = Schema.Literal( |
| | 3070 | "trustedAccessForCyber", |
| | 3071 | ).annotate({ identifier: "ServerNotification__ModelVerification" }); |
| | 3072 | |
| | 3073 | export type ServerNotification__TurnModerationMetadataNotification = { |
| | 3074 | readonly metadata: Schema.Json; |
| | 3075 | readonly threadId: string; |
| | 3076 | readonly turnId: string; |
| 2659 | }; | 3077 | }; |
| 2660 | export const ServerNotification__TextElement = Schema.Struct({ | 3078 | export const ServerNotification__TurnModerationMetadataNotification = Schema.Struct({ |
| 2661 | byteRange: Schema.Struct({ | 3079 | metadata: Schema.Json.annotate({ expected: "JSON value" }), |
| 2662 | end: Schema.Number.annotate({ format: "uint" }) | 3080 | threadId: Schema.String, |
| 2663 | .check(Schema.isInt()) | 3081 | turnId: Schema.String, |
| 2664 | .check(Schema.isGreaterThanOrEqualTo(0)), | 3082 | }).annotate({ identifier: "ServerNotification__TurnModerationMetadataNotification" }); |
| 2665 | start: Schema.Number.annotate({ format: "uint" }) | 3083 | |
| 2666 | .check(Schema.isInt()) | 3084 | export type ServerNotification__ModelSafetyBufferingUpdatedNotification = { |
| 2667 | .check(Schema.isGreaterThanOrEqualTo(0)), | 3085 | readonly fasterModel?: string | null; |
| 2668 | }).annotate({ | 3086 | readonly model: string; |
| 2669 | description: "Byte range in the parent `text` buffer that this element occupies.", | 3087 | readonly reasons: ReadonlyArray<string>; |
| | 3088 | readonly showBufferingUi: boolean; |
| | 3089 | readonly threadId: string; |
| | 3090 | readonly turnId: string; |
| | 3091 | readonly useCases: ReadonlyArray<string>; |
| | 3092 | }; |
| | 3093 | export const ServerNotification__ModelSafetyBufferingUpdatedNotification = Schema.Struct({ |
| | 3094 | fasterModel: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 3095 | model: Schema.String, |
| | 3096 | reasons: Schema.Array(Schema.String), |
| | 3097 | showBufferingUi: Schema.Boolean, |
| | 3098 | threadId: Schema.String, |
| | 3099 | turnId: Schema.String, |
| | 3100 | useCases: Schema.Array(Schema.String), |
| | 3101 | }).annotate({ identifier: "ServerNotification__ModelSafetyBufferingUpdatedNotification" }); |
| | 3102 | |
| | 3103 | export type ServerNotification__WarningNotification = { |
| | 3104 | readonly message: string; |
| | 3105 | readonly threadId?: string | null; |
| | 3106 | }; |
| | 3107 | export const ServerNotification__WarningNotification = Schema.Struct({ |
| | 3108 | message: Schema.String.annotate({ description: "Concise warning message for the user." }), |
| | 3109 | threadId: Schema.optionalKey( |
| | 3110 | Schema.Union([ |
| | 3111 | Schema.String.annotate({ |
| | 3112 | description: "Optional thread target when the warning applies to a specific thread.", |
| | 3113 | }), |
| | 3114 | Schema.Null, |
| | 3115 | ]), |
| | 3116 | ), |
| | 3117 | }).annotate({ identifier: "ServerNotification__WarningNotification" }); |
| | 3118 | |
| | 3119 | export type ServerNotification__GuardianWarningNotification = { |
| | 3120 | readonly message: string; |
| | 3121 | readonly threadId: string; |
| | 3122 | }; |
| | 3123 | export const ServerNotification__GuardianWarningNotification = Schema.Struct({ |
| | 3124 | message: Schema.String.annotate({ |
| | 3125 | description: "Concise guardian warning message for the user.", |
| 2670 | }), | 3126 | }), |
| 2671 | placeholder: Schema.optionalKey( | 3127 | threadId: Schema.String.annotate({ description: "Thread target for the guardian warning." }), |
| | 3128 | }).annotate({ identifier: "ServerNotification__GuardianWarningNotification" }); |
| | 3129 | |
| | 3130 | export type ServerNotification__DeprecationNoticeNotification = { |
| | 3131 | readonly details?: string | null; |
| | 3132 | readonly summary: string; |
| | 3133 | }; |
| | 3134 | export const ServerNotification__DeprecationNoticeNotification = Schema.Struct({ |
| | 3135 | details: Schema.optionalKey( |
| 2672 | Schema.Union([ | 3136 | Schema.Union([ |
| 2673 | Schema.String.annotate({ | 3137 | Schema.String.annotate({ |
| 2674 | description: "Optional human-readable placeholder for the element, displayed in the UI.", | 3138 | description: "Optional extra guidance, such as migration steps or rationale.", |
| 2675 | }), | 3139 | }), |
| 2676 | Schema.Null, | 3140 | Schema.Null, |
| 2677 | ]), | 3141 | ]), |
| 2678 | ), | 3142 | ), |
| 2679 | }); | 3143 | summary: Schema.String.annotate({ description: "Concise summary of what is deprecated." }), |
| | 3144 | }).annotate({ identifier: "ServerNotification__DeprecationNoticeNotification" }); |
| 2680 | | 3145 | |
| 2681 | export type ServerNotification__TextPosition = { readonly column: number; readonly line: number }; | 3146 | export type ServerNotification__TextPosition = { readonly column: number; readonly line: number }; |
| 2682 | export const ServerNotification__TextPosition = Schema.Struct({ | 3147 | export const ServerNotification__TextPosition = Schema.Struct({ |
| ... | @@ -2684,65 +3149,77 @@ export const ServerNotification__TextPosition = Schema.Struct({ | ... | @@ -2684,65 +3149,77 @@ export const ServerNotification__TextPosition = Schema.Struct({ |
| 2684 | description: "1-based column number (in Unicode scalar values).", | 3149 | description: "1-based column number (in Unicode scalar values).", |
| 2685 | format: "uint", | 3150 | format: "uint", |
| 2686 | }) | 3151 | }) |
| 2687 | .check(Schema.isInt()) | 3152 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 2688 | .check(Schema.isGreaterThanOrEqualTo(0)), | 3153 | .check( |
| | 3154 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 3155 | ), |
| 2689 | line: Schema.Number.annotate({ description: "1-based line number.", format: "uint" }) | 3156 | line: Schema.Number.annotate({ description: "1-based line number.", format: "uint" }) |
| 2690 | .check(Schema.isInt()) | 3157 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 2691 | .check(Schema.isGreaterThanOrEqualTo(0)), | 3158 | .check( |
| 2692 | }); | 3159 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 3160 | ), |
| | 3161 | }).annotate({ identifier: "ServerNotification__TextPosition" }); |
| 2693 | | 3162 | |
| 2694 | export type ServerNotification__ThreadActiveFlag = "waitingOnApproval" | "waitingOnUserInput"; | 3163 | export type ServerNotification__FuzzyFileSearchMatchType = "file" | "directory"; |
| 2695 | export const ServerNotification__ThreadActiveFlag = Schema.Literals([ | 3164 | export const ServerNotification__FuzzyFileSearchMatchType = Schema.Literals([ |
| 2696 | "waitingOnApproval", | 3165 | "file", |
| 2697 | "waitingOnUserInput", | 3166 | "directory", |
| 2698 | ]); | 3167 | ]).annotate({ identifier: "ServerNotification__FuzzyFileSearchMatchType" }); |
| 2699 | | 3168 | |
| 2700 | export type ServerNotification__ThreadArchivedNotification = { readonly threadId: string }; | 3169 | export type ServerNotification__FuzzyFileSearchSessionCompletedNotification = { |
| 2701 | export const ServerNotification__ThreadArchivedNotification = Schema.Struct({ | 3170 | readonly sessionId: string; |
| 2702 | threadId: Schema.String, | 3171 | }; |
| 2703 | }); | 3172 | export const ServerNotification__FuzzyFileSearchSessionCompletedNotification = Schema.Struct({ |
| | 3173 | sessionId: Schema.String, |
| | 3174 | }).annotate({ identifier: "ServerNotification__FuzzyFileSearchSessionCompletedNotification" }); |
| 2704 | | 3175 | |
| 2705 | export type ServerNotification__ThreadClosedNotification = { readonly threadId: string }; | 3176 | export type ServerNotification__RealtimeConversationVersion = "v1" | "v2" | "v3"; |
| 2706 | export const ServerNotification__ThreadClosedNotification = Schema.Struct({ | 3177 | export const ServerNotification__RealtimeConversationVersion = Schema.Literals([ |
| 2707 | threadId: Schema.String, | 3178 | "v1", |
| 2708 | }); | 3179 | "v2", |
| | 3180 | "v3", |
| | 3181 | ]).annotate({ identifier: "ServerNotification__RealtimeConversationVersion" }); |
| 2709 | | 3182 | |
| 2710 | export type ServerNotification__ThreadDeletedNotification = { readonly threadId: string }; | 3183 | export type ServerNotification__ThreadRealtimeItemAddedNotification = { |
| 2711 | export const ServerNotification__ThreadDeletedNotification = Schema.Struct({ | 3184 | readonly item: Schema.Json; |
| | 3185 | readonly threadId: string; |
| | 3186 | }; |
| | 3187 | export const ServerNotification__ThreadRealtimeItemAddedNotification = Schema.Struct({ |
| | 3188 | item: Schema.Json.annotate({ expected: "JSON value" }), |
| 2712 | threadId: Schema.String, | 3189 | threadId: Schema.String, |
| | 3190 | }).annotate({ |
| | 3191 | description: "EXPERIMENTAL - raw non-audio thread realtime item emitted by the backend.", |
| | 3192 | identifier: "ServerNotification__ThreadRealtimeItemAddedNotification", |
| 2713 | }); | 3193 | }); |
| 2714 | | 3194 | |
| 2715 | export type ServerNotification__ThreadGoalClearedNotification = { readonly threadId: string }; | 3195 | export type ServerNotification__ThreadRealtimeTranscriptDeltaNotification = { |
| 2716 | export const ServerNotification__ThreadGoalClearedNotification = Schema.Struct({ | 3196 | readonly delta: string; |
| | 3197 | readonly role: string; |
| | 3198 | readonly threadId: string; |
| | 3199 | }; |
| | 3200 | export const ServerNotification__ThreadRealtimeTranscriptDeltaNotification = Schema.Struct({ |
| | 3201 | delta: Schema.String.annotate({ description: "Live transcript delta from the realtime event." }), |
| | 3202 | role: Schema.String, |
| 2717 | threadId: Schema.String, | 3203 | threadId: Schema.String, |
| | 3204 | }).annotate({ |
| | 3205 | description: |
| | 3206 | "EXPERIMENTAL - flat transcript delta emitted whenever realtime transcript text changes.", |
| | 3207 | identifier: "ServerNotification__ThreadRealtimeTranscriptDeltaNotification", |
| 2718 | }); | 3208 | }); |
| 2719 | | 3209 | |
| 2720 | export type ServerNotification__ThreadGoalStatus = | 3210 | export type ServerNotification__ThreadRealtimeTranscriptDoneNotification = { |
| 2721 | | "active" | 3211 | readonly role: string; |
| 2722 | | "paused" | 3212 | readonly text: string; |
| 2723 | | "blocked" | | |
| 2724 | | "usageLimited" | | |
| 2725 | | "budgetLimited" | | |
| 2726 | | "complete"; | | |
| 2727 | export const ServerNotification__ThreadGoalStatus = Schema.Literals([ | | |
| 2728 | "active", | | |
| 2729 | "paused", | | |
| 2730 | "blocked", | | |
| 2731 | "usageLimited", | | |
| 2732 | "budgetLimited", | | |
| 2733 | "complete", | | |
| 2734 | ]); | | |
| 2735 | | | |
| 2736 | export type ServerNotification__ThreadId = string; | | |
| 2737 | export const ServerNotification__ThreadId = Schema.String; | | |
| 2738 | | | |
| 2739 | export type ServerNotification__ThreadNameUpdatedNotification = { | | |
| 2740 | readonly threadId: string; | 3213 | readonly threadId: string; |
| 2741 | readonly threadName?: string | null; | | |
| 2742 | }; | 3214 | }; |
| 2743 | export const ServerNotification__ThreadNameUpdatedNotification = Schema.Struct({ | 3215 | export const ServerNotification__ThreadRealtimeTranscriptDoneNotification = Schema.Struct({ |
| | 3216 | role: Schema.String, |
| | 3217 | text: Schema.String.annotate({ description: "Final complete text for the transcript part." }), |
| 2744 | threadId: Schema.String, | 3218 | threadId: Schema.String, |
| 2745 | threadName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 3219 | }).annotate({ |
| | 3220 | description: |
| | 3221 | "EXPERIMENTAL - final transcript text emitted when realtime completes a transcript part.", |
| | 3222 | identifier: "ServerNotification__ThreadRealtimeTranscriptDoneNotification", |
| 2746 | }); | 3223 | }); |
| 2747 | | 3224 | |
| 2748 | export type ServerNotification__ThreadRealtimeAudioChunk = { | 3225 | export type ServerNotification__ThreadRealtimeAudioChunk = { |
| ... | @@ -2756,48 +3233,30 @@ export const ServerNotification__ThreadRealtimeAudioChunk = Schema.Struct({ | ... | @@ -2756,48 +3233,30 @@ export const ServerNotification__ThreadRealtimeAudioChunk = Schema.Struct({ |
| 2756 | data: Schema.String, | 3233 | data: Schema.String, |
| 2757 | itemId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 3234 | itemId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 2758 | numChannels: Schema.Number.annotate({ format: "uint16" }) | 3235 | numChannels: Schema.Number.annotate({ format: "uint16" }) |
| 2759 | .check(Schema.isInt()) | 3236 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 2760 | .check(Schema.isGreaterThanOrEqualTo(0)), | 3237 | .check( |
| | 3238 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 3239 | ), |
| 2761 | sampleRate: Schema.Number.annotate({ format: "uint32" }) | 3240 | sampleRate: Schema.Number.annotate({ format: "uint32" }) |
| 2762 | .check(Schema.isInt()) | 3241 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 2763 | .check(Schema.isGreaterThanOrEqualTo(0)), | 3242 | .check( |
| | 3243 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 3244 | ), |
| 2764 | samplesPerChannel: Schema.optionalKey( | 3245 | samplesPerChannel: Schema.optionalKey( |
| 2765 | Schema.Union([ | 3246 | Schema.Union([ |
| 2766 | Schema.Number.annotate({ format: "uint32" }) | 3247 | Schema.Number.annotate({ format: "uint32" }) |
| 2767 | .check(Schema.isInt()) | 3248 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 2768 | .check(Schema.isGreaterThanOrEqualTo(0)), | 3249 | .check( |
| | 3250 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 3251 | expected: "a value greater than or equal to 0", |
| | 3252 | }), |
| | 3253 | ), |
| 2769 | Schema.Null, | 3254 | Schema.Null, |
| 2770 | ]), | 3255 | ]), |
| 2771 | ), | 3256 | ), |
| 2772 | }).annotate({ description: "EXPERIMENTAL - thread realtime audio chunk." }); | | |
| 2773 | | | |
| 2774 | export type ServerNotification__ThreadRealtimeClosedNotification = { | | |
| 2775 | readonly reason?: string | null; | | |
| 2776 | readonly threadId: string; | | |
| 2777 | }; | | |
| 2778 | export const ServerNotification__ThreadRealtimeClosedNotification = Schema.Struct({ | | |
| 2779 | reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 2780 | threadId: Schema.String, | | |
| 2781 | }).annotate({ description: "EXPERIMENTAL - emitted when thread realtime transport closes." }); | | |
| 2782 | | | |
| 2783 | export type ServerNotification__ThreadRealtimeErrorNotification = { | | |
| 2784 | readonly message: string; | | |
| 2785 | readonly threadId: string; | | |
| 2786 | }; | | |
| 2787 | export const ServerNotification__ThreadRealtimeErrorNotification = Schema.Struct({ | | |
| 2788 | message: Schema.String, | | |
| 2789 | threadId: Schema.String, | | |
| 2790 | }).annotate({ description: "EXPERIMENTAL - emitted when thread realtime encounters an error." }); | | |
| 2791 | | | |
| 2792 | export type ServerNotification__ThreadRealtimeItemAddedNotification = { | | |
| 2793 | readonly item: unknown; | | |
| 2794 | readonly threadId: string; | | |
| 2795 | }; | | |
| 2796 | export const ServerNotification__ThreadRealtimeItemAddedNotification = Schema.Struct({ | | |
| 2797 | item: Schema.Unknown, | | |
| 2798 | threadId: Schema.String, | | |
| 2799 | }).annotate({ | 3257 | }).annotate({ |
| 2800 | description: "EXPERIMENTAL - raw non-audio thread realtime item emitted by the backend.", | 3258 | description: "EXPERIMENTAL - thread realtime audio chunk.", |
| | 3259 | identifier: "ServerNotification__ThreadRealtimeAudioChunk", |
| 2801 | }); | 3260 | }); |
| 2802 | | 3261 | |
| 2803 | export type ServerNotification__ThreadRealtimeSdpNotification = { | 3262 | export type ServerNotification__ThreadRealtimeSdpNotification = { |
| ... | @@ -2809,189 +3268,202 @@ export const ServerNotification__ThreadRealtimeSdpNotification = Schema.Struct({ | ... | @@ -2809,189 +3268,202 @@ export const ServerNotification__ThreadRealtimeSdpNotification = Schema.Struct({ |
| 2809 | threadId: Schema.String, | 3268 | threadId: Schema.String, |
| 2810 | }).annotate({ | 3269 | }).annotate({ |
| 2811 | description: "EXPERIMENTAL - emitted with the remote SDP for a WebRTC realtime session.", | 3270 | description: "EXPERIMENTAL - emitted with the remote SDP for a WebRTC realtime session.", |
| | 3271 | identifier: "ServerNotification__ThreadRealtimeSdpNotification", |
| 2812 | }); | 3272 | }); |
| 2813 | | 3273 | |
| 2814 | export type ServerNotification__ThreadRealtimeTranscriptDeltaNotification = { | 3274 | export type ServerNotification__ThreadRealtimeErrorNotification = { |
| 2815 | readonly delta: string; | 3275 | readonly message: string; |
| 2816 | readonly role: string; | | |
| 2817 | readonly threadId: string; | 3276 | readonly threadId: string; |
| 2818 | }; | 3277 | }; |
| 2819 | export const ServerNotification__ThreadRealtimeTranscriptDeltaNotification = Schema.Struct({ | 3278 | export const ServerNotification__ThreadRealtimeErrorNotification = Schema.Struct({ |
| 2820 | delta: Schema.String.annotate({ description: "Live transcript delta from the realtime event." }), | 3279 | message: Schema.String, |
| 2821 | role: Schema.String, | | |
| 2822 | threadId: Schema.String, | 3280 | threadId: Schema.String, |
| 2823 | }).annotate({ | 3281 | }).annotate({ |
| 2824 | description: | 3282 | description: "EXPERIMENTAL - emitted when thread realtime encounters an error.", |
| 2825 | "EXPERIMENTAL - flat transcript delta emitted whenever realtime transcript text changes.", | 3283 | identifier: "ServerNotification__ThreadRealtimeErrorNotification", |
| 2826 | }); | 3284 | }); |
| 2827 | | 3285 | |
| 2828 | export type ServerNotification__ThreadRealtimeTranscriptDoneNotification = { | 3286 | export type ServerNotification__ThreadRealtimeClosedNotification = { |
| 2829 | readonly role: string; | 3287 | readonly reason?: string | null; |
| 2830 | readonly text: string; | | |
| 2831 | readonly threadId: string; | 3288 | readonly threadId: string; |
| 2832 | }; | 3289 | }; |
| 2833 | export const ServerNotification__ThreadRealtimeTranscriptDoneNotification = Schema.Struct({ | 3290 | export const ServerNotification__ThreadRealtimeClosedNotification = Schema.Struct({ |
| 2834 | role: Schema.String, | 3291 | reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 2835 | text: Schema.String.annotate({ description: "Final complete text for the transcript part." }), | | |
| 2836 | threadId: Schema.String, | 3292 | threadId: Schema.String, |
| 2837 | }).annotate({ | 3293 | }).annotate({ |
| 2838 | description: | 3294 | description: "EXPERIMENTAL - emitted when thread realtime transport closes.", |
| 2839 | "EXPERIMENTAL - final transcript text emitted when realtime completes a transcript part.", | 3295 | identifier: "ServerNotification__ThreadRealtimeClosedNotification", |
| 2840 | }); | 3296 | }); |
| 2841 | | 3297 | |
| 2842 | export type ServerNotification__ThreadSource = string; | 3298 | export type ServerNotification__WindowsWorldWritableWarningNotification = { |
| 2843 | export const ServerNotification__ThreadSource = Schema.String; | 3299 | readonly extraCount: number; |
| | 3300 | readonly failedScan: boolean; |
| | 3301 | readonly samplePaths: ReadonlyArray<string>; |
| | 3302 | }; |
| | 3303 | export const ServerNotification__WindowsWorldWritableWarningNotification = Schema.Struct({ |
| | 3304 | extraCount: Schema.Number.annotate({ format: "uint" }) |
| | 3305 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 3306 | .check( |
| | 3307 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 3308 | ), |
| | 3309 | failedScan: Schema.Boolean, |
| | 3310 | samplePaths: Schema.Array(Schema.String), |
| | 3311 | }).annotate({ identifier: "ServerNotification__WindowsWorldWritableWarningNotification" }); |
| 2844 | | 3312 | |
| 2845 | export type ServerNotification__ThreadUnarchivedNotification = { readonly threadId: string }; | 3313 | export type ServerNotification__WindowsSandboxSetupMode = "elevated" | "unelevated"; |
| 2846 | export const ServerNotification__ThreadUnarchivedNotification = Schema.Struct({ | 3314 | export const ServerNotification__WindowsSandboxSetupMode = Schema.Literals([ |
| 2847 | threadId: Schema.String, | 3315 | "elevated", |
| 2848 | }); | 3316 | "unelevated", |
| | 3317 | ]).annotate({ identifier: "ServerNotification__WindowsSandboxSetupMode" }); |
| 2849 | | 3318 | |
| 2850 | export type ServerNotification__TokenUsageBreakdown = { | 3319 | export type ServerNotification__AccountLoginCompletedNotification = { |
| 2851 | readonly cacheWriteInputTokens?: number; | 3320 | readonly error?: string | null; |
| 2852 | readonly cachedInputTokens: number; | 3321 | readonly loginId?: string | null; |
| 2853 | readonly inputTokens: number; | 3322 | readonly success: boolean; |
| 2854 | readonly outputTokens: number; | | |
| 2855 | readonly reasoningOutputTokens: number; | | |
| 2856 | readonly totalTokens: number; | | |
| 2857 | }; | 3323 | }; |
| 2858 | export const ServerNotification__TokenUsageBreakdown = Schema.Struct({ | 3324 | export const ServerNotification__AccountLoginCompletedNotification = Schema.Struct({ |
| 2859 | cacheWriteInputTokens: Schema.optionalKey( | 3325 | error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 2860 | Schema.Number.annotate({ default: 0, format: "int64" }).check(Schema.isInt()), | 3326 | loginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 3327 | success: Schema.Boolean, |
| | 3328 | }).annotate({ identifier: "ServerNotification__AccountLoginCompletedNotification" }); |
| | 3329 | |
| | 3330 | export type ServerRequest__RequestId = string | number; |
| | 3331 | export const ServerRequest__RequestId = Schema.Union([ |
| | 3332 | Schema.String, |
| | 3333 | Schema.Number.annotate({ format: "int64" }).check( |
| | 3334 | Schema.isInt().annotate({ expected: "an integer" }), |
| 2861 | ), | 3335 | ), |
| 2862 | cachedInputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 3336 | ]).annotate({ identifier: "ServerRequest__RequestId" }); |
| 2863 | inputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 3337 | |
| 2864 | outputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 3338 | export type ServerRequest__AbsolutePathBuf = string; |
| 2865 | reasoningOutputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 3339 | export const ServerRequest__AbsolutePathBuf = Schema.String.annotate({ |
| 2866 | totalTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 3340 | description: |
| | 3341 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 3342 | identifier: "ServerRequest__AbsolutePathBuf", |
| 2867 | }); | 3343 | }); |
| 2868 | | 3344 | |
| 2869 | export type ServerNotification__TurnDiffUpdatedNotification = { | 3345 | export type ServerRequest__LegacyAppPathString = string; |
| 2870 | readonly diff: string; | 3346 | export const ServerRequest__LegacyAppPathString = Schema.String.annotate({ |
| 2871 | readonly threadId: string; | 3347 | identifier: "ServerRequest__LegacyAppPathString", |
| 2872 | readonly turnId: string; | | |
| 2873 | }; | | |
| 2874 | export const ServerNotification__TurnDiffUpdatedNotification = Schema.Struct({ | | |
| 2875 | diff: Schema.String, | | |
| 2876 | threadId: Schema.String, | | |
| 2877 | turnId: Schema.String, | | |
| 2878 | }).annotate({ | | |
| 2879 | description: | | |
| 2880 | "Notification that the turn-level unified diff has changed. Contains the latest aggregated diff across all file changes in the turn.", | | |
| 2881 | }); | | |
| 2882 | | | |
| 2883 | export type ServerNotification__TurnModerationMetadataNotification = { | | |
| 2884 | readonly metadata: unknown; | | |
| 2885 | readonly threadId: string; | | |
| 2886 | readonly turnId: string; | | |
| 2887 | }; | | |
| 2888 | export const ServerNotification__TurnModerationMetadataNotification = Schema.Struct({ | | |
| 2889 | metadata: Schema.Unknown, | | |
| 2890 | threadId: Schema.String, | | |
| 2891 | turnId: Schema.String, | | |
| 2892 | }); | 3348 | }); |
| 2893 | | 3349 | |
| 2894 | export type ServerNotification__TurnPlanStepStatus = "pending" | "inProgress" | "completed"; | 3350 | export type ServerRequest__NetworkApprovalProtocol = "http" | "https" | "socks5Tcp" | "socks5Udp"; |
| 2895 | export const ServerNotification__TurnPlanStepStatus = Schema.Literals([ | 3351 | export const ServerRequest__NetworkApprovalProtocol = Schema.Literals([ |
| 2896 | "pending", | 3352 | "http", |
| 2897 | "inProgress", | 3353 | "https", |
| 2898 | "completed", | 3354 | "socks5Tcp", |
| 2899 | ]); | 3355 | "socks5Udp", |
| | 3356 | ]).annotate({ identifier: "ServerRequest__NetworkApprovalProtocol" }); |
| 2900 | | 3357 | |
| 2901 | export type ServerNotification__TurnStatus = "completed" | "interrupted" | "failed" | "inProgress"; | 3358 | export type ServerRequest__NetworkPolicyRuleAction = "allow" | "deny"; |
| 2902 | export const ServerNotification__TurnStatus = Schema.Literals([ | 3359 | export const ServerRequest__NetworkPolicyRuleAction = Schema.Literals(["allow", "deny"]).annotate({ |
| 2903 | "completed", | 3360 | identifier: "ServerRequest__NetworkPolicyRuleAction", |
| 2904 | "interrupted", | 3361 | }); |
| 2905 | "failed", | | |
| 2906 | "inProgress", | | |
| 2907 | ]); | | |
| 2908 | | 3362 | |
| 2909 | export type ServerNotification__WarningNotification = { | 3363 | export type ServerRequest__FileChangeRequestApprovalParams = { |
| 2910 | readonly message: string; | 3364 | readonly grantRoot?: string | null; |
| 2911 | readonly threadId?: string | null; | 3365 | readonly itemId: string; |
| | 3366 | readonly reason?: string | null; |
| | 3367 | readonly startedAtMs: number; |
| | 3368 | readonly threadId: string; |
| | 3369 | readonly turnId: string; |
| 2912 | }; | 3370 | }; |
| 2913 | export const ServerNotification__WarningNotification = Schema.Struct({ | 3371 | export const ServerRequest__FileChangeRequestApprovalParams = Schema.Struct({ |
| 2914 | message: Schema.String.annotate({ description: "Concise warning message for the user." }), | 3372 | grantRoot: Schema.optionalKey( |
| 2915 | threadId: Schema.optionalKey( | | |
| 2916 | Schema.Union([ | 3373 | Schema.Union([ |
| 2917 | Schema.String.annotate({ | 3374 | Schema.String.annotate({ |
| 2918 | description: "Optional thread target when the warning applies to a specific thread.", | 3375 | description: |
| | 3376 | "[UNSTABLE] When set, the agent is asking the user to allow writes under this root for the remainder of the session (unclear if this is honored today).", |
| 2919 | }), | 3377 | }), |
| 2920 | Schema.Null, | 3378 | Schema.Null, |
| 2921 | ]), | 3379 | ]), |
| 2922 | ), | 3380 | ), |
| 2923 | }); | 3381 | itemId: Schema.String, |
| | 3382 | reason: Schema.optionalKey( |
| | 3383 | Schema.Union([ |
| | 3384 | Schema.String.annotate({ |
| | 3385 | description: "Optional explanatory reason (e.g. request for extra write access).", |
| | 3386 | }), |
| | 3387 | Schema.Null, |
| | 3388 | ]), |
| | 3389 | ), |
| | 3390 | startedAtMs: Schema.Number.annotate({ |
| | 3391 | description: "Unix timestamp (in milliseconds) when this approval request started.", |
| | 3392 | format: "int64", |
| | 3393 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 3394 | threadId: Schema.String, |
| | 3395 | turnId: Schema.String, |
| | 3396 | }).annotate({ identifier: "ServerRequest__FileChangeRequestApprovalParams" }); |
| 2924 | | 3397 | |
| 2925 | export type ServerNotification__WebSearchAction = | 3398 | export type ServerRequest__ToolRequestUserInputOption = { |
| 2926 | | { | 3399 | readonly description: string; |
| 2927 | readonly queries?: ReadonlyArray<string> | null; | 3400 | readonly label: string; |
| 2928 | readonly query?: string | null; | 3401 | }; |
| 2929 | readonly type: "search"; | 3402 | export const ServerRequest__ToolRequestUserInputOption = Schema.Struct({ |
| 2930 | } | 3403 | description: Schema.String, |
| 2931 | | { readonly type: "openPage"; readonly url?: string | null } | 3404 | label: Schema.String, |
| 2932 | | { readonly pattern?: string | null; readonly type: "findInPage"; readonly url?: string | null } | 3405 | }).annotate({ |
| 2933 | | { readonly type: "other" }; | 3406 | description: "EXPERIMENTAL. Defines a single selectable option for request_user_input.", |
| 2934 | export const ServerNotification__WebSearchAction = Schema.Union( | 3407 | identifier: "ServerRequest__ToolRequestUserInputOption", |
| 2935 | [ | 3408 | }); |
| 2936 | Schema.Struct({ | | |
| 2937 | queries: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 2938 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 2939 | type: Schema.Literal("search").annotate({ title: "SearchWebSearchActionType" }), | | |
| 2940 | }).annotate({ title: "SearchWebSearchAction" }), | | |
| 2941 | Schema.Struct({ | | |
| 2942 | type: Schema.Literal("openPage").annotate({ title: "OpenPageWebSearchActionType" }), | | |
| 2943 | url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 2944 | }).annotate({ title: "OpenPageWebSearchAction" }), | | |
| 2945 | Schema.Struct({ | | |
| 2946 | pattern: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 2947 | type: Schema.Literal("findInPage").annotate({ title: "FindInPageWebSearchActionType" }), | | |
| 2948 | url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 2949 | }).annotate({ title: "FindInPageWebSearchAction" }), | | |
| 2950 | Schema.Struct({ | | |
| 2951 | type: Schema.Literal("other").annotate({ title: "OtherWebSearchActionType" }), | | |
| 2952 | }).annotate({ title: "OtherWebSearchAction" }), | | |
| 2953 | ], | | |
| 2954 | { mode: "oneOf" }, | | |
| 2955 | ); | | |
| 2956 | | 3409 | |
| 2957 | export type ServerNotification__WindowsSandboxSetupMode = "elevated" | "unelevated"; | 3410 | export type ServerRequest__McpElicitationStringType = "string"; |
| 2958 | export const ServerNotification__WindowsSandboxSetupMode = Schema.Literals([ | 3411 | export const ServerRequest__McpElicitationStringType = Schema.Literal("string").annotate({ |
| 2959 | "elevated", | 3412 | identifier: "ServerRequest__McpElicitationStringType", |
| 2960 | "unelevated", | 3413 | }); |
| 2961 | ]); | | |
| 2962 | | 3414 | |
| 2963 | export type ServerNotification__WindowsWorldWritableWarningNotification = { | 3415 | export type ServerRequest__McpElicitationConstOption = { |
| 2964 | readonly extraCount: number; | 3416 | readonly const: string; |
| 2965 | readonly failedScan: boolean; | 3417 | readonly title: string; |
| 2966 | readonly samplePaths: ReadonlyArray<string>; | | |
| 2967 | }; | 3418 | }; |
| 2968 | export const ServerNotification__WindowsWorldWritableWarningNotification = Schema.Struct({ | 3419 | export const ServerRequest__McpElicitationConstOption = Schema.Struct({ |
| 2969 | extraCount: Schema.Number.annotate({ format: "uint" }) | 3420 | const: Schema.String, |
| 2970 | .check(Schema.isInt()) | 3421 | title: Schema.String, |
| 2971 | .check(Schema.isGreaterThanOrEqualTo(0)), | 3422 | }).annotate({ identifier: "ServerRequest__McpElicitationConstOption" }); |
| 2972 | failedScan: Schema.Boolean, | 3423 | |
| 2973 | samplePaths: Schema.Array(Schema.String), | 3424 | export type ServerRequest__McpElicitationArrayType = "array"; |
| | 3425 | export const ServerRequest__McpElicitationArrayType = Schema.Literal("array").annotate({ |
| | 3426 | identifier: "ServerRequest__McpElicitationArrayType", |
| 2974 | }); | 3427 | }); |
| 2975 | | 3428 | |
| 2976 | export type ServerRequest__AbsolutePathBuf = string; | 3429 | export type ServerRequest__McpElicitationStringFormat = "email" | "uri" | "date" | "date-time"; |
| 2977 | export const ServerRequest__AbsolutePathBuf = Schema.String.annotate({ | 3430 | export const ServerRequest__McpElicitationStringFormat = Schema.Literals([ |
| 2978 | description: | 3431 | "email", |
| 2979 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 3432 | "uri", |
| | 3433 | "date", |
| | 3434 | "date-time", |
| | 3435 | ]).annotate({ identifier: "ServerRequest__McpElicitationStringFormat" }); |
| | 3436 | |
| | 3437 | export type ServerRequest__McpElicitationNumberType = "number" | "integer"; |
| | 3438 | export const ServerRequest__McpElicitationNumberType = Schema.Literals([ |
| | 3439 | "number", |
| | 3440 | "integer", |
| | 3441 | ]).annotate({ identifier: "ServerRequest__McpElicitationNumberType" }); |
| | 3442 | |
| | 3443 | export type ServerRequest__McpElicitationBooleanType = "boolean"; |
| | 3444 | export const ServerRequest__McpElicitationBooleanType = Schema.Literal("boolean").annotate({ |
| | 3445 | identifier: "ServerRequest__McpElicitationBooleanType", |
| 2980 | }); | 3446 | }); |
| 2981 | | 3447 | |
| 2982 | export type ServerRequest__AdditionalNetworkPermissions = { readonly enabled?: boolean | null }; | 3448 | export type ServerRequest__McpElicitationObjectType = "object"; |
| 2983 | export const ServerRequest__AdditionalNetworkPermissions = Schema.Struct({ | 3449 | export const ServerRequest__McpElicitationObjectType = Schema.Literal("object").annotate({ |
| 2984 | enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 3450 | identifier: "ServerRequest__McpElicitationObjectType", |
| 2985 | }); | 3451 | }); |
| 2986 | | 3452 | |
| 2987 | export type ServerRequest__AttestationGenerateParams = {}; | 3453 | export type ServerRequest__FileSystemAccessMode = "read" | "write" | "deny"; |
| 2988 | export const ServerRequest__AttestationGenerateParams = Schema.Struct({}); | 3454 | export const ServerRequest__FileSystemAccessMode = Schema.Literals([ |
| | 3455 | "read", |
| | 3456 | "write", |
| | 3457 | "deny", |
| | 3458 | ]).annotate({ identifier: "ServerRequest__FileSystemAccessMode" }); |
| 2989 | | 3459 | |
| 2990 | export type ServerRequest__ChatgptAuthTokensRefreshReason = "unauthorized"; | 3460 | export type ServerRequest__AdditionalNetworkPermissions = { readonly enabled?: boolean | null }; |
| 2991 | export const ServerRequest__ChatgptAuthTokensRefreshReason = Schema.Literal("unauthorized"); | 3461 | export const ServerRequest__AdditionalNetworkPermissions = Schema.Struct({ |
| | 3462 | enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 3463 | }).annotate({ identifier: "ServerRequest__AdditionalNetworkPermissions" }); |
| 2992 | | 3464 | |
| 2993 | export type ServerRequest__DynamicToolCallParams = { | 3465 | export type ServerRequest__DynamicToolCallParams = { |
| 2994 | readonly arguments: unknown; | 3466 | readonly arguments: Schema.Json; |
| 2995 | readonly callId: string; | 3467 | readonly callId: string; |
| 2996 | readonly namespace?: string | null; | 3468 | readonly namespace?: string | null; |
| 2997 | readonly threadId: string; | 3469 | readonly threadId: string; |
| ... | @@ -2999,12 +3471,33 @@ export type ServerRequest__DynamicToolCallParams = { | ... | @@ -2999,12 +3471,33 @@ export type ServerRequest__DynamicToolCallParams = { |
| 2999 | readonly turnId: string; | 3471 | readonly turnId: string; |
| 3000 | }; | 3472 | }; |
| 3001 | export const ServerRequest__DynamicToolCallParams = Schema.Struct({ | 3473 | export const ServerRequest__DynamicToolCallParams = Schema.Struct({ |
| 3002 | arguments: Schema.Unknown, | 3474 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 3003 | callId: Schema.String, | 3475 | callId: Schema.String, |
| 3004 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 3476 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 3005 | threadId: Schema.String, | 3477 | threadId: Schema.String, |
| 3006 | tool: Schema.String, | 3478 | tool: Schema.String, |
| 3007 | turnId: Schema.String, | 3479 | turnId: Schema.String, |
| | 3480 | }).annotate({ identifier: "ServerRequest__DynamicToolCallParams" }); |
| | 3481 | |
| | 3482 | export type ServerRequest__ChatgptAuthTokensRefreshReason = "unauthorized"; |
| | 3483 | export const ServerRequest__ChatgptAuthTokensRefreshReason = Schema.Union( |
| | 3484 | [ |
| | 3485 | Schema.Literal("unauthorized").annotate({ |
| | 3486 | description: "Codex attempted a backend request and received `401 Unauthorized`.", |
| | 3487 | }), |
| | 3488 | ], |
| | 3489 | { mode: "oneOf" }, |
| | 3490 | ).annotate({ identifier: "ServerRequest__ChatgptAuthTokensRefreshReason" }); |
| | 3491 | |
| | 3492 | export type ServerRequest__AttestationGenerateParams = { readonly [x: string]: Schema.Json }; |
| | 3493 | export const ServerRequest__AttestationGenerateParams = Schema.Record( |
| | 3494 | Schema.String, |
| | 3495 | Schema.Json.annotate({ expected: "JSON value" }), |
| | 3496 | ).annotate({ identifier: "ServerRequest__AttestationGenerateParams" }); |
| | 3497 | |
| | 3498 | export type ServerRequest__ThreadId = string; |
| | 3499 | export const ServerRequest__ThreadId = Schema.String.annotate({ |
| | 3500 | identifier: "ServerRequest__ThreadId", |
| 3008 | }); | 3501 | }); |
| 3009 | | 3502 | |
| 3010 | export type ServerRequest__FileChange = | 3503 | export type ServerRequest__FileChange = |
| ... | @@ -3028,91 +3521,7 @@ export const ServerRequest__FileChange = Schema.Union( | ... | @@ -3028,91 +3521,7 @@ export const ServerRequest__FileChange = Schema.Union( |
| 3028 | }).annotate({ title: "UpdateFileChange" }), | 3521 | }).annotate({ title: "UpdateFileChange" }), |
| 3029 | ], | 3522 | ], |
| 3030 | { mode: "oneOf" }, | 3523 | { mode: "oneOf" }, |
| 3031 | ); | 3524 | ).annotate({ identifier: "ServerRequest__FileChange" }); |
| 3032 | | | |
| 3033 | export type ServerRequest__FileChangeRequestApprovalParams = { | | |
| 3034 | readonly grantRoot?: string | null; | | |
| 3035 | readonly itemId: string; | | |
| 3036 | readonly reason?: string | null; | | |
| 3037 | readonly startedAtMs: number; | | |
| 3038 | readonly threadId: string; | | |
| 3039 | readonly turnId: string; | | |
| 3040 | }; | | |
| 3041 | export const ServerRequest__FileChangeRequestApprovalParams = Schema.Struct({ | | |
| 3042 | grantRoot: Schema.optionalKey( | | |
| 3043 | Schema.Union([ | | |
| 3044 | Schema.String.annotate({ | | |
| 3045 | description: | | |
| 3046 | "[UNSTABLE] When set, the agent is asking the user to allow writes under this root for the remainder of the session (unclear if this is honored today).", | | |
| 3047 | }), | | |
| 3048 | Schema.Null, | | |
| 3049 | ]), | | |
| 3050 | ), | | |
| 3051 | itemId: Schema.String, | | |
| 3052 | reason: Schema.optionalKey( | | |
| 3053 | Schema.Union([ | | |
| 3054 | Schema.String.annotate({ | | |
| 3055 | description: "Optional explanatory reason (e.g. request for extra write access).", | | |
| 3056 | }), | | |
| 3057 | Schema.Null, | | |
| 3058 | ]), | | |
| 3059 | ), | | |
| 3060 | startedAtMs: Schema.Number.annotate({ | | |
| 3061 | description: "Unix timestamp (in milliseconds) when this approval request started.", | | |
| 3062 | format: "int64", | | |
| 3063 | }).check(Schema.isInt()), | | |
| 3064 | threadId: Schema.String, | | |
| 3065 | turnId: Schema.String, | | |
| 3066 | }); | | |
| 3067 | | | |
| 3068 | export type ServerRequest__FileSystemAccessMode = "read" | "write" | "deny"; | | |
| 3069 | export const ServerRequest__FileSystemAccessMode = Schema.Literals(["read", "write", "deny"]); | | |
| 3070 | | | |
| 3071 | export type ServerRequest__LegacyAppPathString = string; | | |
| 3072 | export const ServerRequest__LegacyAppPathString = Schema.String; | | |
| 3073 | | | |
| 3074 | export type ServerRequest__McpElicitationArrayType = "array"; | | |
| 3075 | export const ServerRequest__McpElicitationArrayType = Schema.Literal("array"); | | |
| 3076 | | | |
| 3077 | export type ServerRequest__McpElicitationBooleanType = "boolean"; | | |
| 3078 | export const ServerRequest__McpElicitationBooleanType = Schema.Literal("boolean"); | | |
| 3079 | | | |
| 3080 | export type ServerRequest__McpElicitationConstOption = { | | |
| 3081 | readonly const: string; | | |
| 3082 | readonly title: string; | | |
| 3083 | }; | | |
| 3084 | export const ServerRequest__McpElicitationConstOption = Schema.Struct({ | | |
| 3085 | const: Schema.String, | | |
| 3086 | title: Schema.String, | | |
| 3087 | }); | | |
| 3088 | | | |
| 3089 | export type ServerRequest__McpElicitationNumberType = "number" | "integer"; | | |
| 3090 | export const ServerRequest__McpElicitationNumberType = Schema.Literals(["number", "integer"]); | | |
| 3091 | | | |
| 3092 | export type ServerRequest__McpElicitationObjectType = "object"; | | |
| 3093 | export const ServerRequest__McpElicitationObjectType = Schema.Literal("object"); | | |
| 3094 | | | |
| 3095 | export type ServerRequest__McpElicitationStringFormat = "email" | "uri" | "date" | "date-time"; | | |
| 3096 | export const ServerRequest__McpElicitationStringFormat = Schema.Literals([ | | |
| 3097 | "email", | | |
| 3098 | "uri", | | |
| 3099 | "date", | | |
| 3100 | "date-time", | | |
| 3101 | ]); | | |
| 3102 | | | |
| 3103 | export type ServerRequest__McpElicitationStringType = "string"; | | |
| 3104 | export const ServerRequest__McpElicitationStringType = Schema.Literal("string"); | | |
| 3105 | | | |
| 3106 | export type ServerRequest__NetworkApprovalProtocol = "http" | "https" | "socks5Tcp" | "socks5Udp"; | | |
| 3107 | export const ServerRequest__NetworkApprovalProtocol = Schema.Literals([ | | |
| 3108 | "http", | | |
| 3109 | "https", | | |
| 3110 | "socks5Tcp", | | |
| 3111 | "socks5Udp", | | |
| 3112 | ]); | | |
| 3113 | | | |
| 3114 | export type ServerRequest__NetworkPolicyRuleAction = "allow" | "deny"; | | |
| 3115 | export const ServerRequest__NetworkPolicyRuleAction = Schema.Literals(["allow", "deny"]); | | |
| 3116 | | 3525 | |
| 3117 | export type ServerRequest__ParsedCommand = | 3526 | export type ServerRequest__ParsedCommand = |
| 3118 | | { readonly cmd: string; readonly name: string; readonly path: string; readonly type: "read" } | 3527 | | { readonly cmd: string; readonly name: string; readonly path: string; readonly type: "read" } |
| ... | @@ -3152,27 +3561,7 @@ export const ServerRequest__ParsedCommand = Schema.Union( | ... | @@ -3152,27 +3561,7 @@ export const ServerRequest__ParsedCommand = Schema.Union( |
| 3152 | }).annotate({ title: "UnknownParsedCommand" }), | 3561 | }).annotate({ title: "UnknownParsedCommand" }), |
| 3153 | ], | 3562 | ], |
| 3154 | { mode: "oneOf" }, | 3563 | { mode: "oneOf" }, |
| 3155 | ); | 3564 | ).annotate({ identifier: "ServerRequest__ParsedCommand" }); |
| 3156 | | | |
| 3157 | export type ServerRequest__RequestId = string | number; | | |
| 3158 | export const ServerRequest__RequestId = Schema.Union([ | | |
| 3159 | Schema.String, | | |
| 3160 | Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | | |
| 3161 | ]); | | |
| 3162 | | | |
| 3163 | export type ServerRequest__ThreadId = string; | | |
| 3164 | export const ServerRequest__ThreadId = Schema.String; | | |
| 3165 | | | |
| 3166 | export type ServerRequest__ToolRequestUserInputOption = { | | |
| 3167 | readonly description: string; | | |
| 3168 | readonly label: string; | | |
| 3169 | }; | | |
| 3170 | export const ServerRequest__ToolRequestUserInputOption = Schema.Struct({ | | |
| 3171 | description: Schema.String, | | |
| 3172 | label: Schema.String, | | |
| 3173 | }).annotate({ | | |
| 3174 | description: "EXPERIMENTAL. Defines a single selectable option for request_user_input.", | | |
| 3175 | }); | | |
| 3176 | | 3565 | |
| 3177 | export type ToolRequestUserInputParams__ToolRequestUserInputOption = { | 3566 | export type ToolRequestUserInputParams__ToolRequestUserInputOption = { |
| 3178 | readonly description: string; | 3567 | readonly description: string; |
| ... | @@ -3183,6 +3572,7 @@ export const ToolRequestUserInputParams__ToolRequestUserInputOption = Schema.Str | ... | @@ -3183,6 +3572,7 @@ export const ToolRequestUserInputParams__ToolRequestUserInputOption = Schema.Str |
| 3183 | label: Schema.String, | 3572 | label: Schema.String, |
| 3184 | }).annotate({ | 3573 | }).annotate({ |
| 3185 | description: "EXPERIMENTAL. Defines a single selectable option for request_user_input.", | 3574 | description: "EXPERIMENTAL. Defines a single selectable option for request_user_input.", |
| | 3575 | identifier: "ToolRequestUserInputParams__ToolRequestUserInputOption", |
| 3186 | }); | 3576 | }); |
| 3187 | | 3577 | |
| 3188 | export type ToolRequestUserInputResponse__ToolRequestUserInputAnswer = { | 3578 | export type ToolRequestUserInputResponse__ToolRequestUserInputAnswer = { |
| ... | @@ -3192,17 +3582,7 @@ export const ToolRequestUserInputResponse__ToolRequestUserInputAnswer = Schema.S | ... | @@ -3192,17 +3582,7 @@ export const ToolRequestUserInputResponse__ToolRequestUserInputAnswer = Schema.S |
| 3192 | answers: Schema.Array(Schema.String), | 3582 | answers: Schema.Array(Schema.String), |
| 3193 | }).annotate({ | 3583 | }).annotate({ |
| 3194 | description: "EXPERIMENTAL. Captures a user's answer to a request_user_input question.", | 3584 | description: "EXPERIMENTAL. Captures a user's answer to a request_user_input question.", |
| 3195 | }); | 3585 | identifier: "ToolRequestUserInputResponse__ToolRequestUserInputAnswer", |
| 3196 | | | |
| 3197 | export type V1InitializeParams__ClientInfo = { | | |
| 3198 | readonly name: string; | | |
| 3199 | readonly title?: string | null; | | |
| 3200 | readonly version: string; | | |
| 3201 | }; | | |
| 3202 | export const V1InitializeParams__ClientInfo = Schema.Struct({ | | |
| 3203 | name: Schema.String, | | |
| 3204 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 3205 | version: Schema.String, | | |
| 3206 | }); | 3586 | }); |
| 3207 | | 3587 | |
| 3208 | export type V1InitializeParams__InitializeCapabilities = { | 3588 | export type V1InitializeParams__InitializeCapabilities = { |
| ... | @@ -3238,7 +3618,28 @@ export const V1InitializeParams__InitializeCapabilities = Schema.Struct({ | ... | @@ -3238,7 +3618,28 @@ export const V1InitializeParams__InitializeCapabilities = Schema.Struct({ |
| 3238 | default: false, | 3618 | default: false, |
| 3239 | }), | 3619 | }), |
| 3240 | ), | 3620 | ), |
| 3241 | }).annotate({ description: "Client-declared capabilities negotiated during initialize." }); | 3621 | }).annotate({ |
| | 3622 | description: "Client-declared capabilities negotiated during initialize.", |
| | 3623 | identifier: "V1InitializeParams__InitializeCapabilities", |
| | 3624 | }); |
| | 3625 | |
| | 3626 | export type V1InitializeParams__ClientInfo = { |
| | 3627 | readonly name: string; |
| | 3628 | readonly title?: string | null; |
| | 3629 | readonly version: string; |
| | 3630 | }; |
| | 3631 | export const V1InitializeParams__ClientInfo = Schema.Struct({ |
| | 3632 | name: Schema.String, |
| | 3633 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 3634 | version: Schema.String, |
| | 3635 | }).annotate({ identifier: "V1InitializeParams__ClientInfo" }); |
| | 3636 | |
| | 3637 | export type V1InitializeResponse__AbsolutePathBuf = string; |
| | 3638 | export const V1InitializeResponse__AbsolutePathBuf = Schema.String.annotate({ |
| | 3639 | description: |
| | 3640 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 3641 | identifier: "V1InitializeResponse__AbsolutePathBuf", |
| | 3642 | }); |
| 3242 | | 3643 | |
| 3243 | export type V2AccountRateLimitsUpdatedNotification__CreditsSnapshot = { | 3644 | export type V2AccountRateLimitsUpdatedNotification__CreditsSnapshot = { |
| 3244 | readonly balance?: string | null; | 3645 | readonly balance?: string | null; |
| ... | @@ -3249,7 +3650,24 @@ export const V2AccountRateLimitsUpdatedNotification__CreditsSnapshot = Schema.St | ... | @@ -3249,7 +3650,24 @@ export const V2AccountRateLimitsUpdatedNotification__CreditsSnapshot = Schema.St |
| 3249 | balance: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 3650 | balance: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 3250 | hasCredits: Schema.Boolean, | 3651 | hasCredits: Schema.Boolean, |
| 3251 | unlimited: Schema.Boolean, | 3652 | unlimited: Schema.Boolean, |
| 3252 | }); | 3653 | }).annotate({ identifier: "V2AccountRateLimitsUpdatedNotification__CreditsSnapshot" }); |
| | 3654 | |
| | 3655 | export type V2AccountRateLimitsUpdatedNotification__SpendControlLimitSnapshot = { |
| | 3656 | readonly limit: string; |
| | 3657 | readonly remainingPercent: number; |
| | 3658 | readonly resetsAt: number; |
| | 3659 | readonly used: string; |
| | 3660 | }; |
| | 3661 | export const V2AccountRateLimitsUpdatedNotification__SpendControlLimitSnapshot = Schema.Struct({ |
| | 3662 | limit: Schema.String, |
| | 3663 | remainingPercent: Schema.Number.annotate({ format: "int32" }).check( |
| | 3664 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 3665 | ), |
| | 3666 | resetsAt: Schema.Number.annotate({ format: "int64" }).check( |
| | 3667 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 3668 | ), |
| | 3669 | used: Schema.String, |
| | 3670 | }).annotate({ identifier: "V2AccountRateLimitsUpdatedNotification__SpendControlLimitSnapshot" }); |
| 3253 | | 3671 | |
| 3254 | export type V2AccountRateLimitsUpdatedNotification__PlanType = | 3672 | export type V2AccountRateLimitsUpdatedNotification__PlanType = |
| 3255 | | "free" | 3673 | | "free" |
| ... | @@ -3287,7 +3705,34 @@ export const V2AccountRateLimitsUpdatedNotification__PlanType = Schema.Literals( | ... | @@ -3287,7 +3705,34 @@ export const V2AccountRateLimitsUpdatedNotification__PlanType = Schema.Literals( |
| 3287 | "edu_plus", | 3705 | "edu_plus", |
| 3288 | "edu_pro", | 3706 | "edu_pro", |
| 3289 | "unknown", | 3707 | "unknown", |
| 3290 | ]); | 3708 | ]).annotate({ identifier: "V2AccountRateLimitsUpdatedNotification__PlanType" }); |
| | 3709 | |
| | 3710 | export type V2AccountRateLimitsUpdatedNotification__RateLimitWindow = { |
| | 3711 | readonly resetsAt?: number | null; |
| | 3712 | readonly usedPercent: number; |
| | 3713 | readonly windowDurationMins?: number | null; |
| | 3714 | }; |
| | 3715 | export const V2AccountRateLimitsUpdatedNotification__RateLimitWindow = Schema.Struct({ |
| | 3716 | resetsAt: Schema.optionalKey( |
| | 3717 | Schema.Union([ |
| | 3718 | Schema.Number.annotate({ format: "int64" }).check( |
| | 3719 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 3720 | ), |
| | 3721 | Schema.Null, |
| | 3722 | ]), |
| | 3723 | ), |
| | 3724 | usedPercent: Schema.Number.annotate({ format: "int32" }).check( |
| | 3725 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 3726 | ), |
| | 3727 | windowDurationMins: Schema.optionalKey( |
| | 3728 | Schema.Union([ |
| | 3729 | Schema.Number.annotate({ format: "int64" }).check( |
| | 3730 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 3731 | ), |
| | 3732 | Schema.Null, |
| | 3733 | ]), |
| | 3734 | ), |
| | 3735 | }).annotate({ identifier: "V2AccountRateLimitsUpdatedNotification__RateLimitWindow" }); |
| 3291 | | 3736 | |
| 3292 | export type V2AccountRateLimitsUpdatedNotification__RateLimitReachedType = | 3737 | export type V2AccountRateLimitsUpdatedNotification__RateLimitReachedType = |
| 3293 | | "rate_limit_reached" | 3738 | | "rate_limit_reached" |
| ... | @@ -3301,35 +3746,7 @@ export const V2AccountRateLimitsUpdatedNotification__RateLimitReachedType = Sche | ... | @@ -3301,35 +3746,7 @@ export const V2AccountRateLimitsUpdatedNotification__RateLimitReachedType = Sche |
| 3301 | "workspace_member_credits_depleted", | 3746 | "workspace_member_credits_depleted", |
| 3302 | "workspace_owner_usage_limit_reached", | 3747 | "workspace_owner_usage_limit_reached", |
| 3303 | "workspace_member_usage_limit_reached", | 3748 | "workspace_member_usage_limit_reached", |
| 3304 | ]); | 3749 | ]).annotate({ identifier: "V2AccountRateLimitsUpdatedNotification__RateLimitReachedType" }); |
| 3305 | | | |
| 3306 | export type V2AccountRateLimitsUpdatedNotification__RateLimitWindow = { | | |
| 3307 | readonly resetsAt?: number | null; | | |
| 3308 | readonly usedPercent: number; | | |
| 3309 | readonly windowDurationMins?: number | null; | | |
| 3310 | }; | | |
| 3311 | export const V2AccountRateLimitsUpdatedNotification__RateLimitWindow = Schema.Struct({ | | |
| 3312 | resetsAt: Schema.optionalKey( | | |
| 3313 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), | | |
| 3314 | ), | | |
| 3315 | usedPercent: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()), | | |
| 3316 | windowDurationMins: Schema.optionalKey( | | |
| 3317 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), | | |
| 3318 | ), | | |
| 3319 | }); | | |
| 3320 | | | |
| 3321 | export type V2AccountRateLimitsUpdatedNotification__SpendControlLimitSnapshot = { | | |
| 3322 | readonly limit: string; | | |
| 3323 | readonly remainingPercent: number; | | |
| 3324 | readonly resetsAt: number; | | |
| 3325 | readonly used: string; | | |
| 3326 | }; | | |
| 3327 | export const V2AccountRateLimitsUpdatedNotification__SpendControlLimitSnapshot = Schema.Struct({ | | |
| 3328 | limit: Schema.String, | | |
| 3329 | remainingPercent: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()), | | |
| 3330 | resetsAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | | |
| 3331 | used: Schema.String, | | |
| 3332 | }); | | |
| 3333 | | 3750 | |
| 3334 | export type V2AccountUpdatedNotification__AuthMode = | 3751 | export type V2AccountUpdatedNotification__AuthMode = |
| 3335 | | "apikey" | 3752 | | "apikey" |
| ... | @@ -3339,15 +3756,36 @@ export type V2AccountUpdatedNotification__AuthMode = | ... | @@ -3339,15 +3756,36 @@ export type V2AccountUpdatedNotification__AuthMode = |
| 3339 | | "agentIdentity" | 3756 | | "agentIdentity" |
| 3340 | | "personalAccessToken" | 3757 | | "personalAccessToken" |
| 3341 | | "bedrockApiKey"; | 3758 | | "bedrockApiKey"; |
| 3342 | export const V2AccountUpdatedNotification__AuthMode = Schema.Literals([ | 3759 | export const V2AccountUpdatedNotification__AuthMode = Schema.Union( |
| 3343 | "apikey", | 3760 | [ |
| 3344 | "chatgpt", | 3761 | Schema.Literal("apikey").annotate({ |
| 3345 | "chatgptAuthTokens", | 3762 | description: "OpenAI API key provided by the caller and stored by Codex.", |
| 3346 | "headers", | 3763 | }), |
| 3347 | "agentIdentity", | 3764 | Schema.Literal("chatgpt").annotate({ |
| 3348 | "personalAccessToken", | 3765 | description: "ChatGPT OAuth managed by Codex (tokens persisted and refreshed by Codex).", |
| 3349 | "bedrockApiKey", | 3766 | }), |
| 3350 | ]).annotate({ description: "Authentication mode for OpenAI-backed providers." }); | 3767 | Schema.Literal("chatgptAuthTokens").annotate({ |
| | 3768 | description: |
| | 3769 | "[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE.\n\nChatGPT auth tokens are supplied by an external host app and are only stored in memory. Token refresh must be handled by the external host app.", |
| | 3770 | }), |
| | 3771 | Schema.Literal("headers").annotate({ |
| | 3772 | description: "Backend auth supplied as request headers.", |
| | 3773 | }), |
| | 3774 | Schema.Literal("agentIdentity").annotate({ |
| | 3775 | description: "Programmatic Codex auth backed by a registered Agent Identity.", |
| | 3776 | }), |
| | 3777 | Schema.Literal("personalAccessToken").annotate({ |
| | 3778 | description: "Programmatic Codex auth backed by a personal access token.", |
| | 3779 | }), |
| | 3780 | Schema.Literal("bedrockApiKey").annotate({ |
| | 3781 | description: "Amazon Bedrock bearer token managed by Codex.", |
| | 3782 | }), |
| | 3783 | ], |
| | 3784 | { mode: "oneOf" }, |
| | 3785 | ).annotate({ |
| | 3786 | description: "Authentication mode for OpenAI-backed providers.", |
| | 3787 | identifier: "V2AccountUpdatedNotification__AuthMode", |
| | 3788 | }); |
| 3351 | | 3789 | |
| 3352 | export type V2AccountUpdatedNotification__PlanType = | 3790 | export type V2AccountUpdatedNotification__PlanType = |
| 3353 | | "free" | 3791 | | "free" |
| ... | @@ -3385,7 +3823,23 @@ export const V2AccountUpdatedNotification__PlanType = Schema.Literals([ | ... | @@ -3385,7 +3823,23 @@ export const V2AccountUpdatedNotification__PlanType = Schema.Literals([ |
| 3385 | "edu_plus", | 3823 | "edu_plus", |
| 3386 | "edu_pro", | 3824 | "edu_pro", |
| 3387 | "unknown", | 3825 | "unknown", |
| 3388 | ]); | 3826 | ]).annotate({ identifier: "V2AccountUpdatedNotification__PlanType" }); |
| | 3827 | |
| | 3828 | export type V2AppListUpdatedNotification__AppReview = { readonly status: string }; |
| | 3829 | export const V2AppListUpdatedNotification__AppReview = Schema.Struct({ |
| | 3830 | status: Schema.String, |
| | 3831 | }).annotate({ identifier: "V2AppListUpdatedNotification__AppReview" }); |
| | 3832 | |
| | 3833 | export type V2AppListUpdatedNotification__AppScreenshot = { |
| | 3834 | readonly fileId?: string | null; |
| | 3835 | readonly url?: string | null; |
| | 3836 | readonly userPrompt: string; |
| | 3837 | }; |
| | 3838 | export const V2AppListUpdatedNotification__AppScreenshot = Schema.Struct({ |
| | 3839 | fileId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 3840 | url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 3841 | userPrompt: Schema.String, |
| | 3842 | }).annotate({ identifier: "V2AppListUpdatedNotification__AppScreenshot" }); |
| 3389 | | 3843 | |
| 3390 | export type V2AppListUpdatedNotification__AppBranding = { | 3844 | export type V2AppListUpdatedNotification__AppBranding = { |
| 3391 | readonly category?: string | null; | 3845 | readonly category?: string | null; |
| ... | @@ -3402,20 +3856,9 @@ export const V2AppListUpdatedNotification__AppBranding = Schema.Struct({ | ... | @@ -3402,20 +3856,9 @@ export const V2AppListUpdatedNotification__AppBranding = Schema.Struct({ |
| 3402 | privacyPolicy: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 3856 | privacyPolicy: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 3403 | termsOfService: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 3857 | termsOfService: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 3404 | website: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 3858 | website: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 3405 | }).annotate({ description: "EXPERIMENTAL - app metadata returned by app-list APIs." }); | 3859 | }).annotate({ |
| 3406 | | 3860 | description: "EXPERIMENTAL - app metadata returned by app-list APIs.", |
| 3407 | export type V2AppListUpdatedNotification__AppReview = { readonly status: string }; | 3861 | identifier: "V2AppListUpdatedNotification__AppBranding", |
| 3408 | export const V2AppListUpdatedNotification__AppReview = Schema.Struct({ status: Schema.String }); | | |
| 3409 | | | |
| 3410 | export type V2AppListUpdatedNotification__AppScreenshot = { | | |
| 3411 | readonly fileId?: string | null; | | |
| 3412 | readonly url?: string | null; | | |
| 3413 | readonly userPrompt: string; | | |
| 3414 | }; | | |
| 3415 | export const V2AppListUpdatedNotification__AppScreenshot = Schema.Struct({ | | |
| 3416 | fileId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 3417 | url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 3418 | userPrompt: Schema.String, | | |
| 3419 | }); | 3862 | }); |
| 3420 | | 3863 | |
| 3421 | export type V2AppsInstalledResponse__InstalledApp = { | 3864 | export type V2AppsInstalledResponse__InstalledApp = { |
| ... | @@ -3443,7 +3886,26 @@ export const V2AppsInstalledResponse__InstalledApp = Schema.Struct({ | ... | @@ -3443,7 +3886,26 @@ export const V2AppsInstalledResponse__InstalledApp = Schema.Struct({ |
| 3443 | Schema.Null, | 3886 | Schema.Null, |
| 3444 | ]), | 3887 | ]), |
| 3445 | ), | 3888 | ), |
| 3446 | }).annotate({ description: "Installed connector runtime state." }); | 3889 | }).annotate({ |
| | 3890 | description: "Installed connector runtime state.", |
| | 3891 | identifier: "V2AppsInstalledResponse__InstalledApp", |
| | 3892 | }); |
| | 3893 | |
| | 3894 | export type V2AppsListResponse__AppReview = { readonly status: string }; |
| | 3895 | export const V2AppsListResponse__AppReview = Schema.Struct({ status: Schema.String }).annotate({ |
| | 3896 | identifier: "V2AppsListResponse__AppReview", |
| | 3897 | }); |
| | 3898 | |
| | 3899 | export type V2AppsListResponse__AppScreenshot = { |
| | 3900 | readonly fileId?: string | null; |
| | 3901 | readonly url?: string | null; |
| | 3902 | readonly userPrompt: string; |
| | 3903 | }; |
| | 3904 | export const V2AppsListResponse__AppScreenshot = Schema.Struct({ |
| | 3905 | fileId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 3906 | url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 3907 | userPrompt: Schema.String, |
| | 3908 | }).annotate({ identifier: "V2AppsListResponse__AppScreenshot" }); |
| 3447 | | 3909 | |
| 3448 | export type V2AppsListResponse__AppBranding = { | 3910 | export type V2AppsListResponse__AppBranding = { |
| 3449 | readonly category?: string | null; | 3911 | readonly category?: string | null; |
| ... | @@ -3460,20 +3922,9 @@ export const V2AppsListResponse__AppBranding = Schema.Struct({ | ... | @@ -3460,20 +3922,9 @@ export const V2AppsListResponse__AppBranding = Schema.Struct({ |
| 3460 | privacyPolicy: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 3922 | privacyPolicy: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 3461 | termsOfService: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 3923 | termsOfService: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 3462 | website: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 3924 | website: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 3463 | }).annotate({ description: "EXPERIMENTAL - app metadata returned by app-list APIs." }); | 3925 | }).annotate({ |
| 3464 | | 3926 | description: "EXPERIMENTAL - app metadata returned by app-list APIs.", |
| 3465 | export type V2AppsListResponse__AppReview = { readonly status: string }; | 3927 | identifier: "V2AppsListResponse__AppBranding", |
| 3466 | export const V2AppsListResponse__AppReview = Schema.Struct({ status: Schema.String }); | | |
| 3467 | | | |
| 3468 | export type V2AppsListResponse__AppScreenshot = { | | |
| 3469 | readonly fileId?: string | null; | | |
| 3470 | readonly url?: string | null; | | |
| 3471 | readonly userPrompt: string; | | |
| 3472 | }; | | |
| 3473 | export const V2AppsListResponse__AppScreenshot = Schema.Struct({ | | |
| 3474 | fileId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 3475 | url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 3476 | userPrompt: Schema.String, | | |
| 3477 | }); | 3928 | }); |
| 3478 | | 3929 | |
| 3479 | export type V2AppsReadResponse__AppToolSummary = { | 3930 | export type V2AppsReadResponse__AppToolSummary = { |
| ... | @@ -3485,18 +3936,42 @@ export const V2AppsReadResponse__AppToolSummary = Schema.Struct({ | ... | @@ -3485,18 +3936,42 @@ export const V2AppsReadResponse__AppToolSummary = Schema.Struct({ |
| 3485 | description: Schema.String, | 3936 | description: Schema.String, |
| 3486 | name: Schema.String, | 3937 | name: Schema.String, |
| 3487 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 3938 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 3488 | }).annotate({ description: "EXPERIMENTAL - metadata returned by app/read." }); | 3939 | }).annotate({ |
| | 3940 | description: "EXPERIMENTAL - metadata returned by app/read.", |
| | 3941 | identifier: "V2AppsReadResponse__AppToolSummary", |
| | 3942 | }); |
| 3489 | | 3943 | |
| 3490 | export type V2CancelLoginAccountResponse__CancelLoginAccountStatus = "canceled" | "notFound"; | 3944 | export type V2CancelLoginAccountResponse__CancelLoginAccountStatus = "canceled" | "notFound"; |
| 3491 | export const V2CancelLoginAccountResponse__CancelLoginAccountStatus = Schema.Literals([ | 3945 | export const V2CancelLoginAccountResponse__CancelLoginAccountStatus = Schema.Literals([ |
| 3492 | "canceled", | 3946 | "canceled", |
| 3493 | "notFound", | 3947 | "notFound", |
| 3494 | ]); | 3948 | ]).annotate({ identifier: "V2CancelLoginAccountResponse__CancelLoginAccountStatus" }); |
| | 3949 | |
| | 3950 | export type V2CommandExecOutputDeltaNotification__CommandExecOutputStream = "stdout" | "stderr"; |
| | 3951 | export const V2CommandExecOutputDeltaNotification__CommandExecOutputStream = Schema.Union( |
| | 3952 | [ |
| | 3953 | Schema.Literal("stdout").annotate({ |
| | 3954 | description: "stdout stream. PTY mode multiplexes terminal output here.", |
| | 3955 | }), |
| | 3956 | Schema.Literal("stderr").annotate({ description: "stderr stream." }), |
| | 3957 | ], |
| | 3958 | { mode: "oneOf" }, |
| | 3959 | ).annotate({ |
| | 3960 | description: "Stream label for `command/exec/outputDelta` notifications.", |
| | 3961 | identifier: "V2CommandExecOutputDeltaNotification__CommandExecOutputStream", |
| | 3962 | }); |
| | 3963 | |
| | 3964 | export type V2CommandExecParams__NetworkAccess = "restricted" | "enabled"; |
| | 3965 | export const V2CommandExecParams__NetworkAccess = Schema.Literals([ |
| | 3966 | "restricted", |
| | 3967 | "enabled", |
| | 3968 | ]).annotate({ identifier: "V2CommandExecParams__NetworkAccess" }); |
| 3495 | | 3969 | |
| 3496 | export type V2CommandExecParams__AbsolutePathBuf = string; | 3970 | export type V2CommandExecParams__AbsolutePathBuf = string; |
| 3497 | export const V2CommandExecParams__AbsolutePathBuf = Schema.String.annotate({ | 3971 | export const V2CommandExecParams__AbsolutePathBuf = Schema.String.annotate({ |
| 3498 | description: | 3972 | description: |
| 3499 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 3973 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 3974 | identifier: "V2CommandExecParams__AbsolutePathBuf", |
| 3500 | }); | 3975 | }); |
| 3501 | | 3976 | |
| 3502 | export type V2CommandExecParams__CommandExecTerminalSize = { | 3977 | export type V2CommandExecParams__CommandExecTerminalSize = { |
| ... | @@ -3508,54 +3983,62 @@ export const V2CommandExecParams__CommandExecTerminalSize = Schema.Struct({ | ... | @@ -3508,54 +3983,62 @@ export const V2CommandExecParams__CommandExecTerminalSize = Schema.Struct({ |
| 3508 | description: "Terminal width in character cells.", | 3983 | description: "Terminal width in character cells.", |
| 3509 | format: "uint16", | 3984 | format: "uint16", |
| 3510 | }) | 3985 | }) |
| 3511 | .check(Schema.isInt()) | 3986 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 3512 | .check(Schema.isGreaterThanOrEqualTo(0)), | 3987 | .check( |
| | 3988 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 3989 | ), |
| 3513 | rows: Schema.Number.annotate({ | 3990 | rows: Schema.Number.annotate({ |
| 3514 | description: "Terminal height in character cells.", | 3991 | description: "Terminal height in character cells.", |
| 3515 | format: "uint16", | 3992 | format: "uint16", |
| 3516 | }) | 3993 | }) |
| 3517 | .check(Schema.isInt()) | 3994 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 3518 | .check(Schema.isGreaterThanOrEqualTo(0)), | 3995 | .check( |
| 3519 | }).annotate({ description: "PTY size in character cells for `command/exec` PTY sessions." }); | 3996 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| 3520 | | 3997 | ), |
| 3521 | export type V2ConfigBatchWriteParams__MergeStrategy = "replace" | "upsert"; | 3998 | }).annotate({ |
| 3522 | export const V2ConfigBatchWriteParams__MergeStrategy = Schema.Literals(["replace", "upsert"]); | 3999 | description: "PTY size in character cells for `command/exec` PTY sessions.", |
| | 4000 | identifier: "V2CommandExecParams__CommandExecTerminalSize", |
| | 4001 | }); |
| 3523 | | 4002 | |
| 3524 | export type V2ConfigReadResponse__AbsolutePathBuf = string; | 4003 | export type V2CommandExecResizeParams__CommandExecTerminalSize = { |
| 3525 | export const V2ConfigReadResponse__AbsolutePathBuf = Schema.String.annotate({ | 4004 | readonly cols: number; |
| 3526 | description: | 4005 | readonly rows: number; |
| 3527 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 4006 | }; |
| | 4007 | export const V2CommandExecResizeParams__CommandExecTerminalSize = Schema.Struct({ |
| | 4008 | cols: Schema.Number.annotate({ |
| | 4009 | description: "Terminal width in character cells.", |
| | 4010 | format: "uint16", |
| | 4011 | }) |
| | 4012 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 4013 | .check( |
| | 4014 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 4015 | ), |
| | 4016 | rows: Schema.Number.annotate({ |
| | 4017 | description: "Terminal height in character cells.", |
| | 4018 | format: "uint16", |
| | 4019 | }) |
| | 4020 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 4021 | .check( |
| | 4022 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 4023 | ), |
| | 4024 | }).annotate({ |
| | 4025 | description: "PTY size in character cells for `command/exec` PTY sessions.", |
| | 4026 | identifier: "V2CommandExecResizeParams__CommandExecTerminalSize", |
| 3528 | }); | 4027 | }); |
| 3529 | | 4028 | |
| 3530 | export type V2ConfigReadResponse__AnalyticsConfig = { | 4029 | export type V2ConfigBatchWriteParams__MergeStrategy = "replace" | "upsert"; |
| 3531 | readonly enabled?: boolean | null; | 4030 | export const V2ConfigBatchWriteParams__MergeStrategy = Schema.Literals([ |
| 3532 | readonly [x: string]: unknown; | 4031 | "replace", |
| | 4032 | "upsert", |
| | 4033 | ]).annotate({ identifier: "V2ConfigBatchWriteParams__MergeStrategy" }); |
| | 4034 | |
| | 4035 | export type V2ConfigReadResponse__AnalyticsConfig = { readonly enabled?: boolean | null } & { |
| | 4036 | readonly [x: string]: Schema.Json; |
| 3533 | }; | 4037 | }; |
| 3534 | export const V2ConfigReadResponse__AnalyticsConfig = Schema.StructWithRest( | 4038 | export const V2ConfigReadResponse__AnalyticsConfig = Schema.StructWithRest( |
| 3535 | Schema.Struct({ enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])) }), | 4039 | Schema.Struct({ enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])) }), |
| 3536 | [Schema.Record(Schema.String, Schema.Unknown)], | 4040 | [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))], |
| 3537 | ); | 4041 | ).annotate({ identifier: "V2ConfigReadResponse__AnalyticsConfig" }); |
| 3538 | | | |
| 3539 | export type V2ConfigReadResponse__AppToolApproval = "auto" | "prompt" | "writes" | "approve"; | | |
| 3540 | export const V2ConfigReadResponse__AppToolApproval = Schema.Literals([ | | |
| 3541 | "auto", | | |
| 3542 | "prompt", | | |
| 3543 | "writes", | | |
| 3544 | "approve", | | |
| 3545 | ]); | | |
| 3546 | | | |
| 3547 | export type V2ConfigReadResponse__AppToolsConfig = {}; | | |
| 3548 | export const V2ConfigReadResponse__AppToolsConfig = Schema.Struct({}); | | |
| 3549 | | | |
| 3550 | export type V2ConfigReadResponse__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent"; | | |
| 3551 | export const V2ConfigReadResponse__ApprovalsReviewer = Schema.Literals([ | | |
| 3552 | "user", | | |
| 3553 | "auto_review", | | |
| 3554 | "guardian_subagent", | | |
| 3555 | ]).annotate({ | | |
| 3556 | description: | | |
| 3557 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", | | |
| 3558 | }); | | |
| 3559 | | 4042 | |
| 3560 | export type V2ConfigReadResponse__AskForApproval = | 4043 | export type V2ConfigReadResponse__AskForApproval = |
| 3561 | | "untrusted" | 4044 | | "untrusted" |
| ... | @@ -3584,15 +4067,17 @@ export const V2ConfigReadResponse__AskForApproval = Schema.Union( | ... | @@ -3584,15 +4067,17 @@ export const V2ConfigReadResponse__AskForApproval = Schema.Union( |
| 3584 | }).annotate({ title: "GranularAskForApproval" }), | 4067 | }).annotate({ title: "GranularAskForApproval" }), |
| 3585 | ], | 4068 | ], |
| 3586 | { mode: "oneOf" }, | 4069 | { mode: "oneOf" }, |
| 3587 | ); | 4070 | ).annotate({ identifier: "V2ConfigReadResponse__AskForApproval" }); |
| 3588 | | 4071 | |
| 3589 | export type V2ConfigReadResponse__AutoCompactTokenLimitScope = "total" | "body_after_prefix"; | 4072 | export type V2ConfigReadResponse__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent"; |
| 3590 | export const V2ConfigReadResponse__AutoCompactTokenLimitScope = Schema.Literals([ | 4073 | export const V2ConfigReadResponse__ApprovalsReviewer = Schema.Literals([ |
| 3591 | "total", | 4074 | "user", |
| 3592 | "body_after_prefix", | 4075 | "auto_review", |
| | 4076 | "guardian_subagent", |
| 3593 | ]).annotate({ | 4077 | ]).annotate({ |
| 3594 | description: | 4078 | description: |
| 3595 | "Selects which part of the active context is charged against `model_auto_compact_token_limit`.", | 4079 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", |
| | 4080 | identifier: "V2ConfigReadResponse__ApprovalsReviewer", |
| 3596 | }); | 4081 | }); |
| 3597 | | 4082 | |
| 3598 | export type V2ConfigReadResponse__ForcedChatgptWorkspaceIds = string | ReadonlyArray<string>; | 4083 | export type V2ConfigReadResponse__ForcedChatgptWorkspaceIds = string | ReadonlyArray<string>; |
| ... | @@ -3601,15 +4086,40 @@ export const V2ConfigReadResponse__ForcedChatgptWorkspaceIds = Schema.Union([ | ... | @@ -3601,15 +4086,40 @@ export const V2ConfigReadResponse__ForcedChatgptWorkspaceIds = Schema.Union([ |
| 3601 | Schema.Array(Schema.String), | 4086 | Schema.Array(Schema.String), |
| 3602 | ]).annotate({ | 4087 | ]).annotate({ |
| 3603 | description: "Backward-compatible API shape for ChatGPT workspace login restrictions.", | 4088 | description: "Backward-compatible API shape for ChatGPT workspace login restrictions.", |
| | 4089 | identifier: "V2ConfigReadResponse__ForcedChatgptWorkspaceIds", |
| 3604 | }); | 4090 | }); |
| 3605 | | 4091 | |
| 3606 | export type V2ConfigReadResponse__ForcedLoginMethod = "chatgpt" | "api"; | 4092 | export type V2ConfigReadResponse__ForcedLoginMethod = "chatgpt" | "api"; |
| 3607 | export const V2ConfigReadResponse__ForcedLoginMethod = Schema.Literals(["chatgpt", "api"]); | 4093 | export const V2ConfigReadResponse__ForcedLoginMethod = Schema.Literals(["chatgpt", "api"]).annotate( |
| | 4094 | { identifier: "V2ConfigReadResponse__ForcedLoginMethod" }, |
| | 4095 | ); |
| | 4096 | |
| | 4097 | export type V2ConfigReadResponse__AutoCompactTokenLimitScope = "total" | "body_after_prefix"; |
| | 4098 | export const V2ConfigReadResponse__AutoCompactTokenLimitScope = Schema.Union( |
| | 4099 | [ |
| | 4100 | Schema.Literal("total").annotate({ |
| | 4101 | description: "Count the full active context against the limit.", |
| | 4102 | }), |
| | 4103 | Schema.Literal("body_after_prefix").annotate({ |
| | 4104 | description: "Count sampled output and later growth after the carried window prefix.", |
| | 4105 | }), |
| | 4106 | ], |
| | 4107 | { mode: "oneOf" }, |
| | 4108 | ).annotate({ |
| | 4109 | description: |
| | 4110 | "Selects which part of the active context is charged against `model_auto_compact_token_limit`.", |
| | 4111 | identifier: "V2ConfigReadResponse__AutoCompactTokenLimitScope", |
| | 4112 | }); |
| 3608 | | 4113 | |
| 3609 | export type V2ConfigReadResponse__ReasoningEffort = string; | 4114 | export type V2ConfigReadResponse__ReasoningEffort = string; |
| 3610 | export const V2ConfigReadResponse__ReasoningEffort = Schema.String.annotate({ | 4115 | export const V2ConfigReadResponse__ReasoningEffort = Schema.String.annotate({ |
| 3611 | description: "A non-empty reasoning effort value advertised by the model.", | 4116 | description: "A non-empty reasoning effort value advertised by the model.", |
| 3612 | }).check(Schema.isMinLength(1)); | 4117 | }).check( |
| | 4118 | Schema.isMinLength(1).annotate({ |
| | 4119 | expected: "a value with a length of at least 1", |
| | 4120 | identifier: "V2ConfigReadResponse__ReasoningEffort", |
| | 4121 | }), |
| | 4122 | ); |
| 3613 | | 4123 | |
| 3614 | export type V2ConfigReadResponse__ReasoningSummary = "auto" | "concise" | "detailed" | "none"; | 4124 | export type V2ConfigReadResponse__ReasoningSummary = "auto" | "concise" | "detailed" | "none"; |
| 3615 | export const V2ConfigReadResponse__ReasoningSummary = Schema.Union( | 4125 | export const V2ConfigReadResponse__ReasoningSummary = Schema.Union( |
| ... | @@ -3621,6 +4131,14 @@ export const V2ConfigReadResponse__ReasoningSummary = Schema.Union( | ... | @@ -3621,6 +4131,14 @@ export const V2ConfigReadResponse__ReasoningSummary = Schema.Union( |
| 3621 | ).annotate({ | 4131 | ).annotate({ |
| 3622 | description: | 4132 | description: |
| 3623 | "A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries", | 4133 | "A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries", |
| | 4134 | identifier: "V2ConfigReadResponse__ReasoningSummary", |
| | 4135 | }); |
| | 4136 | |
| | 4137 | export type V2ConfigReadResponse__Verbosity = "low" | "medium" | "high"; |
| | 4138 | export const V2ConfigReadResponse__Verbosity = Schema.Literals(["low", "medium", "high"]).annotate({ |
| | 4139 | description: |
| | 4140 | "Controls output length/detail on GPT-5 models via the Responses API. Serialized with lowercase values to match the OpenAI API.", |
| | 4141 | identifier: "V2ConfigReadResponse__Verbosity", |
| 3624 | }); | 4142 | }); |
| 3625 | | 4143 | |
| 3626 | export type V2ConfigReadResponse__SandboxMode = | 4144 | export type V2ConfigReadResponse__SandboxMode = |
| ... | @@ -3631,7 +4149,7 @@ export const V2ConfigReadResponse__SandboxMode = Schema.Literals([ | ... | @@ -3631,7 +4149,7 @@ export const V2ConfigReadResponse__SandboxMode = Schema.Literals([ |
| 3631 | "read-only", | 4149 | "read-only", |
| 3632 | "workspace-write", | 4150 | "workspace-write", |
| 3633 | "danger-full-access", | 4151 | "danger-full-access", |
| 3634 | ]); | 4152 | ]).annotate({ identifier: "V2ConfigReadResponse__SandboxMode" }); |
| 3635 | | 4153 | |
| 3636 | export type V2ConfigReadResponse__SandboxWorkspaceWrite = { | 4154 | export type V2ConfigReadResponse__SandboxWorkspaceWrite = { |
| 3637 | readonly exclude_slash_tmp?: boolean; | 4155 | readonly exclude_slash_tmp?: boolean; |
| ... | @@ -3644,20 +4162,14 @@ export const V2ConfigReadResponse__SandboxWorkspaceWrite = Schema.Struct({ | ... | @@ -3644,20 +4162,14 @@ export const V2ConfigReadResponse__SandboxWorkspaceWrite = Schema.Struct({ |
| 3644 | exclude_tmpdir_env_var: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | 4162 | exclude_tmpdir_env_var: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 3645 | network_access: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | 4163 | network_access: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 3646 | writable_roots: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), | 4164 | writable_roots: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| 3647 | }); | 4165 | }).annotate({ identifier: "V2ConfigReadResponse__SandboxWorkspaceWrite" }); |
| 3648 | | | |
| 3649 | export type V2ConfigReadResponse__Verbosity = "low" | "medium" | "high"; | | |
| 3650 | export const V2ConfigReadResponse__Verbosity = Schema.Literals(["low", "medium", "high"]).annotate({ | | |
| 3651 | description: | | |
| 3652 | "Controls output length/detail on GPT-5 models via the Responses API. Serialized with lowercase values to match the OpenAI API.", | | |
| 3653 | }); | | |
| 3654 | | 4166 | |
| 3655 | export type V2ConfigReadResponse__WebSearchContextSize = "low" | "medium" | "high"; | 4167 | export type V2ConfigReadResponse__WebSearchContextSize = "low" | "medium" | "high"; |
| 3656 | export const V2ConfigReadResponse__WebSearchContextSize = Schema.Literals([ | 4168 | export const V2ConfigReadResponse__WebSearchContextSize = Schema.Literals([ |
| 3657 | "low", | 4169 | "low", |
| 3658 | "medium", | 4170 | "medium", |
| 3659 | "high", | 4171 | "high", |
| 3660 | ]); | 4172 | ]).annotate({ identifier: "V2ConfigReadResponse__WebSearchContextSize" }); |
| 3661 | | 4173 | |
| 3662 | export type V2ConfigReadResponse__WebSearchLocation = { | 4174 | export type V2ConfigReadResponse__WebSearchLocation = { |
| 3663 | readonly city?: string | null; | 4175 | readonly city?: string | null; |
| ... | @@ -3670,7 +4182,7 @@ export const V2ConfigReadResponse__WebSearchLocation = Schema.Struct({ | ... | @@ -3670,7 +4182,7 @@ export const V2ConfigReadResponse__WebSearchLocation = Schema.Struct({ |
| 3670 | country: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 4182 | country: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 3671 | region: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 4183 | region: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 3672 | timezone: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 4184 | timezone: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 3673 | }); | 4185 | }).annotate({ identifier: "V2ConfigReadResponse__WebSearchLocation" }); |
| 3674 | | 4186 | |
| 3675 | export type V2ConfigReadResponse__WebSearchMode = "disabled" | "cached" | "indexed" | "live"; | 4187 | export type V2ConfigReadResponse__WebSearchMode = "disabled" | "cached" | "indexed" | "live"; |
| 3676 | export const V2ConfigReadResponse__WebSearchMode = Schema.Literals([ | 4188 | export const V2ConfigReadResponse__WebSearchMode = Schema.Literals([ |
| ... | @@ -3678,7 +4190,28 @@ export const V2ConfigReadResponse__WebSearchMode = Schema.Literals([ | ... | @@ -3678,7 +4190,28 @@ export const V2ConfigReadResponse__WebSearchMode = Schema.Literals([ |
| 3678 | "cached", | 4190 | "cached", |
| 3679 | "indexed", | 4191 | "indexed", |
| 3680 | "live", | 4192 | "live", |
| 3681 | ]); | 4193 | ]).annotate({ identifier: "V2ConfigReadResponse__WebSearchMode" }); |
| | 4194 | |
| | 4195 | export type V2ConfigReadResponse__AbsolutePathBuf = string; |
| | 4196 | export const V2ConfigReadResponse__AbsolutePathBuf = Schema.String.annotate({ |
| | 4197 | description: |
| | 4198 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 4199 | identifier: "V2ConfigReadResponse__AbsolutePathBuf", |
| | 4200 | }); |
| | 4201 | |
| | 4202 | export type V2ConfigReadResponse__AppToolApproval = "auto" | "prompt" | "writes" | "approve"; |
| | 4203 | export const V2ConfigReadResponse__AppToolApproval = Schema.Literals([ |
| | 4204 | "auto", |
| | 4205 | "prompt", |
| | 4206 | "writes", |
| | 4207 | "approve", |
| | 4208 | ]).annotate({ identifier: "V2ConfigReadResponse__AppToolApproval" }); |
| | 4209 | |
| | 4210 | export type V2ConfigReadResponse__AppToolsConfig = { readonly [x: string]: Schema.Json }; |
| | 4211 | export const V2ConfigReadResponse__AppToolsConfig = Schema.Record( |
| | 4212 | Schema.String, |
| | 4213 | Schema.Json.annotate({ expected: "JSON value" }), |
| | 4214 | ).annotate({ identifier: "V2ConfigReadResponse__AppToolsConfig" }); |
| 3682 | | 4215 | |
| 3683 | export type V2ConfigRequirementsReadResponse__AskForApproval = | 4216 | export type V2ConfigRequirementsReadResponse__AskForApproval = |
| 3684 | | "untrusted" | 4217 | | "untrusted" |
| ... | @@ -3707,14 +4240,57 @@ export const V2ConfigRequirementsReadResponse__AskForApproval = Schema.Union( | ... | @@ -3707,14 +4240,57 @@ export const V2ConfigRequirementsReadResponse__AskForApproval = Schema.Union( |
| 3707 | }).annotate({ title: "GranularAskForApproval" }), | 4240 | }).annotate({ title: "GranularAskForApproval" }), |
| 3708 | ], | 4241 | ], |
| 3709 | { mode: "oneOf" }, | 4242 | { mode: "oneOf" }, |
| 3710 | ); | 4243 | ).annotate({ identifier: "V2ConfigRequirementsReadResponse__AskForApproval" }); |
| | 4244 | |
| | 4245 | export type V2ConfigRequirementsReadResponse__SandboxMode = |
| | 4246 | | "read-only" |
| | 4247 | | "workspace-write" |
| | 4248 | | "danger-full-access"; |
| | 4249 | export const V2ConfigRequirementsReadResponse__SandboxMode = Schema.Literals([ |
| | 4250 | "read-only", |
| | 4251 | "workspace-write", |
| | 4252 | "danger-full-access", |
| | 4253 | ]).annotate({ identifier: "V2ConfigRequirementsReadResponse__SandboxMode" }); |
| | 4254 | |
| | 4255 | export type V2ConfigRequirementsReadResponse__WebSearchMode = |
| | 4256 | | "disabled" |
| | 4257 | | "cached" |
| | 4258 | | "indexed" |
| | 4259 | | "live"; |
| | 4260 | export const V2ConfigRequirementsReadResponse__WebSearchMode = Schema.Literals([ |
| | 4261 | "disabled", |
| | 4262 | "cached", |
| | 4263 | "indexed", |
| | 4264 | "live", |
| | 4265 | ]).annotate({ identifier: "V2ConfigRequirementsReadResponse__WebSearchMode" }); |
| | 4266 | |
| | 4267 | export type V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode = "elevated" | "unelevated"; |
| | 4268 | export const V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode = Schema.Literals([ |
| | 4269 | "elevated", |
| | 4270 | "unelevated", |
| | 4271 | ]).annotate({ identifier: "V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode" }); |
| 3711 | | 4272 | |
| 3712 | export type V2ConfigRequirementsReadResponse__ComputerUseRequirements = { | 4273 | export type V2ConfigRequirementsReadResponse__ComputerUseRequirements = { |
| 3713 | readonly allowLockedComputerUse?: boolean | null; | 4274 | readonly allowLockedComputerUse?: boolean | null; |
| 3714 | }; | 4275 | }; |
| 3715 | export const V2ConfigRequirementsReadResponse__ComputerUseRequirements = Schema.Struct({ | 4276 | export const V2ConfigRequirementsReadResponse__ComputerUseRequirements = Schema.Struct({ |
| 3716 | allowLockedComputerUse: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 4277 | allowLockedComputerUse: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 3717 | }); | 4278 | }).annotate({ identifier: "V2ConfigRequirementsReadResponse__ComputerUseRequirements" }); |
| | 4279 | |
| | 4280 | export type V2ConfigRequirementsReadResponse__ResidencyRequirement = "us"; |
| | 4281 | export const V2ConfigRequirementsReadResponse__ResidencyRequirement = Schema.Literal("us").annotate( |
| | 4282 | { identifier: "V2ConfigRequirementsReadResponse__ResidencyRequirement" }, |
| | 4283 | ); |
| | 4284 | |
| | 4285 | export type V2ConfigRequirementsReadResponse__ReasoningEffort = string; |
| | 4286 | export const V2ConfigRequirementsReadResponse__ReasoningEffort = Schema.String.annotate({ |
| | 4287 | description: "A non-empty reasoning effort value advertised by the model.", |
| | 4288 | }).check( |
| | 4289 | Schema.isMinLength(1).annotate({ |
| | 4290 | expected: "a value with a length of at least 1", |
| | 4291 | identifier: "V2ConfigRequirementsReadResponse__ReasoningEffort", |
| | 4292 | }), |
| | 4293 | ); |
| 3718 | | 4294 | |
| 3719 | export type V2ConfigRequirementsReadResponse__ConfiguredHookHandler = | 4295 | export type V2ConfigRequirementsReadResponse__ConfiguredHookHandler = |
| 3720 | | { | 4296 | | { |
| ... | @@ -3737,8 +4313,12 @@ export const V2ConfigRequirementsReadResponse__ConfiguredHookHandler = Schema.Un | ... | @@ -3737,8 +4313,12 @@ export const V2ConfigRequirementsReadResponse__ConfiguredHookHandler = Schema.Un |
| 3737 | timeoutSec: Schema.optionalKey( | 4313 | timeoutSec: Schema.optionalKey( |
| 3738 | Schema.Union([ | 4314 | Schema.Union([ |
| 3739 | Schema.Number.annotate({ format: "uint64" }) | 4315 | Schema.Number.annotate({ format: "uint64" }) |
| 3740 | .check(Schema.isInt()) | 4316 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 3741 | .check(Schema.isGreaterThanOrEqualTo(0)), | 4317 | .check( |
| | 4318 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 4319 | expected: "a value greater than or equal to 0", |
| | 4320 | }), |
| | 4321 | ), |
| 3742 | Schema.Null, | 4322 | Schema.Null, |
| 3743 | ]), | 4323 | ]), |
| 3744 | ), | 4324 | ), |
| ... | @@ -3752,58 +4332,25 @@ export const V2ConfigRequirementsReadResponse__ConfiguredHookHandler = Schema.Un | ... | @@ -3752,58 +4332,25 @@ export const V2ConfigRequirementsReadResponse__ConfiguredHookHandler = Schema.Un |
| 3752 | }).annotate({ title: "AgentConfiguredHookHandler" }), | 4332 | }).annotate({ title: "AgentConfiguredHookHandler" }), |
| 3753 | ], | 4333 | ], |
| 3754 | { mode: "oneOf" }, | 4334 | { mode: "oneOf" }, |
| 3755 | ); | 4335 | ).annotate({ identifier: "V2ConfigRequirementsReadResponse__ConfiguredHookHandler" }); |
| 3756 | | 4336 | |
| 3757 | export type V2ConfigRequirementsReadResponse__NetworkDomainPermission = "allow" | "deny"; | 4337 | export type V2ConfigRequirementsReadResponse__NetworkDomainPermission = "allow" | "deny"; |
| 3758 | export const V2ConfigRequirementsReadResponse__NetworkDomainPermission = Schema.Literals([ | 4338 | export const V2ConfigRequirementsReadResponse__NetworkDomainPermission = Schema.Literals([ |
| 3759 | "allow", | 4339 | "allow", |
| 3760 | "deny", | 4340 | "deny", |
| 3761 | ]); | 4341 | ]).annotate({ identifier: "V2ConfigRequirementsReadResponse__NetworkDomainPermission" }); |
| 3762 | | 4342 | |
| 3763 | export type V2ConfigRequirementsReadResponse__NetworkUnixSocketPermission = "allow" | "deny"; | 4343 | export type V2ConfigRequirementsReadResponse__NetworkUnixSocketPermission = "allow" | "deny"; |
| 3764 | export const V2ConfigRequirementsReadResponse__NetworkUnixSocketPermission = Schema.Literals([ | 4344 | export const V2ConfigRequirementsReadResponse__NetworkUnixSocketPermission = Schema.Literals([ |
| 3765 | "allow", | 4345 | "allow", |
| 3766 | "deny", | 4346 | "deny", |
| 3767 | ]); | 4347 | ]).annotate({ identifier: "V2ConfigRequirementsReadResponse__NetworkUnixSocketPermission" }); |
| 3768 | | | |
| 3769 | export type V2ConfigRequirementsReadResponse__ReasoningEffort = string; | | |
| 3770 | export const V2ConfigRequirementsReadResponse__ReasoningEffort = Schema.String.annotate({ | | |
| 3771 | description: "A non-empty reasoning effort value advertised by the model.", | | |
| 3772 | }).check(Schema.isMinLength(1)); | | |
| 3773 | | | |
| 3774 | export type V2ConfigRequirementsReadResponse__ResidencyRequirement = "us"; | | |
| 3775 | export const V2ConfigRequirementsReadResponse__ResidencyRequirement = Schema.Literal("us"); | | |
| 3776 | | | |
| 3777 | export type V2ConfigRequirementsReadResponse__SandboxMode = | | |
| 3778 | | "read-only" | | |
| 3779 | | "workspace-write" | | |
| 3780 | | "danger-full-access"; | | |
| 3781 | export const V2ConfigRequirementsReadResponse__SandboxMode = Schema.Literals([ | | |
| 3782 | "read-only", | | |
| 3783 | "workspace-write", | | |
| 3784 | "danger-full-access", | | |
| 3785 | ]); | | |
| 3786 | | | |
| 3787 | export type V2ConfigRequirementsReadResponse__WebSearchMode = | | |
| 3788 | | "disabled" | | |
| 3789 | | "cached" | | |
| 3790 | | "indexed" | | |
| 3791 | | "live"; | | |
| 3792 | export const V2ConfigRequirementsReadResponse__WebSearchMode = Schema.Literals([ | | |
| 3793 | "disabled", | | |
| 3794 | "cached", | | |
| 3795 | "indexed", | | |
| 3796 | "live", | | |
| 3797 | ]); | | |
| 3798 | | | |
| 3799 | export type V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode = "elevated" | "unelevated"; | | |
| 3800 | export const V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode = Schema.Literals([ | | |
| 3801 | "elevated", | | |
| 3802 | "unelevated", | | |
| 3803 | ]); | | |
| 3804 | | 4348 | |
| 3805 | export type V2ConfigValueWriteParams__MergeStrategy = "replace" | "upsert"; | 4349 | export type V2ConfigValueWriteParams__MergeStrategy = "replace" | "upsert"; |
| 3806 | export const V2ConfigValueWriteParams__MergeStrategy = Schema.Literals(["replace", "upsert"]); | 4350 | export const V2ConfigValueWriteParams__MergeStrategy = Schema.Literals([ |
| | 4351 | "replace", |
| | 4352 | "upsert", |
| | 4353 | ]).annotate({ identifier: "V2ConfigValueWriteParams__MergeStrategy" }); |
| 3807 | | 4354 | |
| 3808 | export type V2ConfigWarningNotification__TextPosition = { | 4355 | export type V2ConfigWarningNotification__TextPosition = { |
| 3809 | readonly column: number; | 4356 | readonly column: number; |
| ... | @@ -3814,21 +4361,28 @@ export const V2ConfigWarningNotification__TextPosition = Schema.Struct({ | ... | @@ -3814,21 +4361,28 @@ export const V2ConfigWarningNotification__TextPosition = Schema.Struct({ |
| 3814 | description: "1-based column number (in Unicode scalar values).", | 4361 | description: "1-based column number (in Unicode scalar values).", |
| 3815 | format: "uint", | 4362 | format: "uint", |
| 3816 | }) | 4363 | }) |
| 3817 | .check(Schema.isInt()) | 4364 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 3818 | .check(Schema.isGreaterThanOrEqualTo(0)), | 4365 | .check( |
| | 4366 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 4367 | ), |
| 3819 | line: Schema.Number.annotate({ description: "1-based line number.", format: "uint" }) | 4368 | line: Schema.Number.annotate({ description: "1-based line number.", format: "uint" }) |
| 3820 | .check(Schema.isInt()) | 4369 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 3821 | .check(Schema.isGreaterThanOrEqualTo(0)), | 4370 | .check( |
| 3822 | }); | 4371 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 4372 | ), |
| | 4373 | }).annotate({ identifier: "V2ConfigWarningNotification__TextPosition" }); |
| 3823 | | 4374 | |
| 3824 | export type V2ConfigWriteResponse__AbsolutePathBuf = string; | 4375 | export type V2ConfigWriteResponse__AbsolutePathBuf = string; |
| 3825 | export const V2ConfigWriteResponse__AbsolutePathBuf = Schema.String.annotate({ | 4376 | export const V2ConfigWriteResponse__AbsolutePathBuf = Schema.String.annotate({ |
| 3826 | description: | 4377 | description: |
| 3827 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 4378 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 4379 | identifier: "V2ConfigWriteResponse__AbsolutePathBuf", |
| 3828 | }); | 4380 | }); |
| 3829 | | 4381 | |
| 3830 | export type V2ConfigWriteResponse__WriteStatus = "ok" | "okOverridden"; | 4382 | export type V2ConfigWriteResponse__WriteStatus = "ok" | "okOverridden"; |
| 3831 | export const V2ConfigWriteResponse__WriteStatus = Schema.Literals(["ok", "okOverridden"]); | 4383 | export const V2ConfigWriteResponse__WriteStatus = Schema.Literals(["ok", "okOverridden"]).annotate({ |
| | 4384 | identifier: "V2ConfigWriteResponse__WriteStatus", |
| | 4385 | }); |
| 3832 | | 4386 | |
| 3833 | export type V2ConsumeAccountRateLimitResetCreditResponse__ConsumeAccountRateLimitResetCreditOutcome = | 4387 | export type V2ConsumeAccountRateLimitResetCreditResponse__ConsumeAccountRateLimitResetCreditOutcome = |
| 3834 | | "reset" | 4388 | | "reset" |
| ... | @@ -3836,101 +4390,72 @@ export type V2ConsumeAccountRateLimitResetCreditResponse__ConsumeAccountRateLimi | ... | @@ -3836,101 +4390,72 @@ export type V2ConsumeAccountRateLimitResetCreditResponse__ConsumeAccountRateLimi |
| 3836 | | "noCredit" | 4390 | | "noCredit" |
| 3837 | | "alreadyRedeemed"; | 4391 | | "alreadyRedeemed"; |
| 3838 | export const V2ConsumeAccountRateLimitResetCreditResponse__ConsumeAccountRateLimitResetCreditOutcome = | 4392 | export const V2ConsumeAccountRateLimitResetCreditResponse__ConsumeAccountRateLimitResetCreditOutcome = |
| 3839 | Schema.Literals(["reset", "nothingToReset", "noCredit", "alreadyRedeemed"]); | 4393 | Schema.Union( |
| 3840 | | 4394 | [ |
| 3841 | export type V2ErrorNotification__NonSteerableTurnKind = "review" | "compact"; | 4395 | Schema.Literal("reset").annotate({ |
| 3842 | export const V2ErrorNotification__NonSteerableTurnKind = Schema.Literals(["review", "compact"]); | 4396 | description: "A reset credit was consumed and the eligible rate-limit windows were reset.", |
| 3843 | | | |
| 3844 | export type V2ExperimentalFeatureListResponse__ExperimentalFeature = { | | |
| 3845 | readonly announcement?: string | null; | | |
| 3846 | readonly defaultEnabled: boolean; | | |
| 3847 | readonly description?: string | null; | | |
| 3848 | readonly displayName?: string | null; | | |
| 3849 | readonly enabled: boolean; | | |
| 3850 | readonly name: string; | | |
| 3851 | readonly stage: "beta" | "underDevelopment" | "stable" | "deprecated" | "removed"; | | |
| 3852 | }; | | |
| 3853 | export const V2ExperimentalFeatureListResponse__ExperimentalFeature = Schema.Struct({ | | |
| 3854 | announcement: Schema.optionalKey( | | |
| 3855 | Schema.Union([ | | |
| 3856 | Schema.String.annotate({ | | |
| 3857 | description: | | |
| 3858 | "Announcement copy shown to users when the feature is introduced. Null when this feature is not in beta.", | | |
| 3859 | }), | 4397 | }), |
| 3860 | Schema.Null, | 4398 | Schema.Literal("nothingToReset").annotate({ |
| 3861 | ]), | 4399 | description: "No current rate-limit window is eligible for a reset.", |
| 3862 | ), | | |
| 3863 | defaultEnabled: Schema.Boolean.annotate({ | | |
| 3864 | description: "Whether this feature is enabled by default.", | | |
| 3865 | }), | | |
| 3866 | description: Schema.optionalKey( | | |
| 3867 | Schema.Union([ | | |
| 3868 | Schema.String.annotate({ | | |
| 3869 | description: | | |
| 3870 | "Short summary describing what the feature does. Null when this feature is not in beta.", | | |
| 3871 | }), | 4400 | }), |
| 3872 | Schema.Null, | 4401 | Schema.Literal("noCredit").annotate({ |
| 3873 | ]), | 4402 | description: "The account has no earned reset credits available.", |
| 3874 | ), | | |
| 3875 | displayName: Schema.optionalKey( | | |
| 3876 | Schema.Union([ | | |
| 3877 | Schema.String.annotate({ | | |
| 3878 | description: | | |
| 3879 | "User-facing display name shown in the experimental features UI. Null when this feature is not in beta.", | | |
| 3880 | }), | 4403 | }), |
| 3881 | Schema.Null, | 4404 | Schema.Literal("alreadyRedeemed").annotate({ |
| 3882 | ]), | 4405 | description: "The same idempotency key already completed a reset successfully.", |
| 3883 | ), | 4406 | }), |
| 3884 | enabled: Schema.Boolean.annotate({ | 4407 | ], |
| 3885 | description: "Whether this feature is currently enabled in the loaded config.", | 4408 | { mode: "oneOf" }, |
| 3886 | }), | 4409 | ).annotate({ |
| 3887 | name: Schema.String.annotate({ | 4410 | identifier: |
| 3888 | description: "Stable key used in config.toml and CLI flag toggles.", | 4411 | "V2ConsumeAccountRateLimitResetCreditResponse__ConsumeAccountRateLimitResetCreditOutcome", |
| 3889 | }), | 4412 | }); |
| 3890 | stage: Schema.Literals(["beta", "underDevelopment", "stable", "deprecated", "removed"]).annotate({ | 4413 | |
| 3891 | description: "Lifecycle stage of this feature flag.", | 4414 | export type V2ErrorNotification__NonSteerableTurnKind = "review" | "compact"; |
| 3892 | }), | 4415 | export const V2ErrorNotification__NonSteerableTurnKind = Schema.Literals([ |
| 3893 | }); | 4416 | "review", |
| | 4417 | "compact", |
| | 4418 | ]).annotate({ identifier: "V2ErrorNotification__NonSteerableTurnKind" }); |
| | 4419 | |
| | 4420 | export type V2ExperimentalFeatureListResponse__ExperimentalFeatureStage = |
| | 4421 | | "beta" |
| | 4422 | | "underDevelopment" |
| | 4423 | | "stable" |
| | 4424 | | "deprecated" |
| | 4425 | | "removed"; |
| | 4426 | export const V2ExperimentalFeatureListResponse__ExperimentalFeatureStage = Schema.Union( |
| | 4427 | [ |
| | 4428 | Schema.Literal("beta").annotate({ |
| | 4429 | description: "Feature is available for user testing and feedback.", |
| | 4430 | }), |
| | 4431 | Schema.Literal("underDevelopment").annotate({ |
| | 4432 | description: "Feature is still being built and not ready for broad use.", |
| | 4433 | }), |
| | 4434 | Schema.Literal("stable").annotate({ description: "Feature is production-ready." }), |
| | 4435 | Schema.Literal("deprecated").annotate({ |
| | 4436 | description: "Feature is deprecated and should be avoided.", |
| | 4437 | }), |
| | 4438 | Schema.Literal("removed").annotate({ |
| | 4439 | description: "Feature flag is retained only for backwards compatibility.", |
| | 4440 | }), |
| | 4441 | ], |
| | 4442 | { mode: "oneOf" }, |
| | 4443 | ).annotate({ identifier: "V2ExperimentalFeatureListResponse__ExperimentalFeatureStage" }); |
| 3894 | | 4444 | |
| 3895 | export type V2ExternalAgentConfigDetectResponse__CommandMigration = { readonly name: string }; | 4445 | export type V2ExternalAgentConfigDetectResponse__CommandMigration = { readonly name: string }; |
| 3896 | export const V2ExternalAgentConfigDetectResponse__CommandMigration = Schema.Struct({ | 4446 | export const V2ExternalAgentConfigDetectResponse__CommandMigration = Schema.Struct({ |
| 3897 | name: Schema.String, | 4447 | name: Schema.String, |
| 3898 | }); | 4448 | }).annotate({ identifier: "V2ExternalAgentConfigDetectResponse__CommandMigration" }); |
| 3899 | | | |
| 3900 | export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType = | | |
| 3901 | | "AGENTS_MD" | | |
| 3902 | | "CONFIG" | | |
| 3903 | | "SKILLS" | | |
| 3904 | | "PLUGINS" | | |
| 3905 | | "MCP_SERVER_CONFIG" | | |
| 3906 | | "SUBAGENTS" | | |
| 3907 | | "HOOKS" | | |
| 3908 | | "COMMANDS" | | |
| 3909 | | "MEMORY" | | |
| 3910 | | "SESSIONS"; | | |
| 3911 | export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType = | | |
| 3912 | Schema.Literals([ | | |
| 3913 | "AGENTS_MD", | | |
| 3914 | "CONFIG", | | |
| 3915 | "SKILLS", | | |
| 3916 | "PLUGINS", | | |
| 3917 | "MCP_SERVER_CONFIG", | | |
| 3918 | "SUBAGENTS", | | |
| 3919 | "HOOKS", | | |
| 3920 | "COMMANDS", | | |
| 3921 | "MEMORY", | | |
| 3922 | "SESSIONS", | | |
| 3923 | ]); | | |
| 3924 | | 4449 | |
| 3925 | export type V2ExternalAgentConfigDetectResponse__HookMigration = { readonly name: string }; | 4450 | export type V2ExternalAgentConfigDetectResponse__HookMigration = { readonly name: string }; |
| 3926 | export const V2ExternalAgentConfigDetectResponse__HookMigration = Schema.Struct({ | 4451 | export const V2ExternalAgentConfigDetectResponse__HookMigration = Schema.Struct({ |
| 3927 | name: Schema.String, | 4452 | name: Schema.String, |
| 3928 | }); | 4453 | }).annotate({ identifier: "V2ExternalAgentConfigDetectResponse__HookMigration" }); |
| 3929 | | 4454 | |
| 3930 | export type V2ExternalAgentConfigDetectResponse__McpServerMigration = { readonly name: string }; | 4455 | export type V2ExternalAgentConfigDetectResponse__McpServerMigration = { readonly name: string }; |
| 3931 | export const V2ExternalAgentConfigDetectResponse__McpServerMigration = Schema.Struct({ | 4456 | export const V2ExternalAgentConfigDetectResponse__McpServerMigration = Schema.Struct({ |
| 3932 | name: Schema.String, | 4457 | name: Schema.String, |
| 3933 | }); | 4458 | }).annotate({ identifier: "V2ExternalAgentConfigDetectResponse__McpServerMigration" }); |
| 3934 | | 4459 | |
| 3935 | export type V2ExternalAgentConfigDetectResponse__PluginsMigration = { | 4460 | export type V2ExternalAgentConfigDetectResponse__PluginsMigration = { |
| 3936 | readonly marketplaceName: string; | 4461 | readonly marketplaceName: string; |
| ... | @@ -3939,7 +4464,7 @@ export type V2ExternalAgentConfigDetectResponse__PluginsMigration = { | ... | @@ -3939,7 +4464,7 @@ export type V2ExternalAgentConfigDetectResponse__PluginsMigration = { |
| 3939 | export const V2ExternalAgentConfigDetectResponse__PluginsMigration = Schema.Struct({ | 4464 | export const V2ExternalAgentConfigDetectResponse__PluginsMigration = Schema.Struct({ |
| 3940 | marketplaceName: Schema.String, | 4465 | marketplaceName: Schema.String, |
| 3941 | pluginNames: Schema.Array(Schema.String), | 4466 | pluginNames: Schema.Array(Schema.String), |
| 3942 | }); | 4467 | }).annotate({ identifier: "V2ExternalAgentConfigDetectResponse__PluginsMigration" }); |
| 3943 | | 4468 | |
| 3944 | export type V2ExternalAgentConfigDetectResponse__SessionMigration = { | 4469 | export type V2ExternalAgentConfigDetectResponse__SessionMigration = { |
| 3945 | readonly cwd: string; | 4470 | readonly cwd: string; |
| ... | @@ -3950,19 +4475,19 @@ export const V2ExternalAgentConfigDetectResponse__SessionMigration = Schema.Stru | ... | @@ -3950,19 +4475,19 @@ export const V2ExternalAgentConfigDetectResponse__SessionMigration = Schema.Stru |
| 3950 | cwd: Schema.String, | 4475 | cwd: Schema.String, |
| 3951 | path: Schema.String, | 4476 | path: Schema.String, |
| 3952 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 4477 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 3953 | }); | 4478 | }).annotate({ identifier: "V2ExternalAgentConfigDetectResponse__SessionMigration" }); |
| 3954 | | 4479 | |
| 3955 | export type V2ExternalAgentConfigDetectResponse__SkillMigration = { readonly name: string }; | 4480 | export type V2ExternalAgentConfigDetectResponse__SkillMigration = { readonly name: string }; |
| 3956 | export const V2ExternalAgentConfigDetectResponse__SkillMigration = Schema.Struct({ | 4481 | export const V2ExternalAgentConfigDetectResponse__SkillMigration = Schema.Struct({ |
| 3957 | name: Schema.String, | 4482 | name: Schema.String, |
| 3958 | }); | 4483 | }).annotate({ identifier: "V2ExternalAgentConfigDetectResponse__SkillMigration" }); |
| 3959 | | 4484 | |
| 3960 | export type V2ExternalAgentConfigDetectResponse__SubagentMigration = { readonly name: string }; | 4485 | export type V2ExternalAgentConfigDetectResponse__SubagentMigration = { readonly name: string }; |
| 3961 | export const V2ExternalAgentConfigDetectResponse__SubagentMigration = Schema.Struct({ | 4486 | export const V2ExternalAgentConfigDetectResponse__SubagentMigration = Schema.Struct({ |
| 3962 | name: Schema.String, | 4487 | name: Schema.String, |
| 3963 | }); | 4488 | }).annotate({ identifier: "V2ExternalAgentConfigDetectResponse__SubagentMigration" }); |
| 3964 | | 4489 | |
| 3965 | export type V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigMigrationItemType = | 4490 | export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType = |
| 3966 | | "AGENTS_MD" | 4491 | | "AGENTS_MD" |
| 3967 | | "CONFIG" | 4492 | | "CONFIG" |
| 3968 | | "SKILLS" | 4493 | | "SKILLS" |
| ... | @@ -3973,7 +4498,7 @@ export type V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfi | ... | @@ -3973,7 +4498,7 @@ export type V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfi |
| 3973 | | "COMMANDS" | 4498 | | "COMMANDS" |
| 3974 | | "MEMORY" | 4499 | | "MEMORY" |
| 3975 | | "SESSIONS"; | 4500 | | "SESSIONS"; |
| 3976 | export const V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigMigrationItemType = | 4501 | export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType = |
| 3977 | Schema.Literals([ | 4502 | Schema.Literals([ |
| 3978 | "AGENTS_MD", | 4503 | "AGENTS_MD", |
| 3979 | "CONFIG", | 4504 | "CONFIG", |
| ... | @@ -3985,9 +4510,11 @@ export const V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConf | ... | @@ -3985,9 +4510,11 @@ export const V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConf |
| 3985 | "COMMANDS", | 4510 | "COMMANDS", |
| 3986 | "MEMORY", | 4511 | "MEMORY", |
| 3987 | "SESSIONS", | 4512 | "SESSIONS", |
| 3988 | ]); | 4513 | ]).annotate({ |
| | 4514 | identifier: "V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType", |
| | 4515 | }); |
| 3989 | | 4516 | |
| 3990 | export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigMigrationItemType = | 4517 | export type V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigMigrationItemType = |
| 3991 | | "AGENTS_MD" | 4518 | | "AGENTS_MD" |
| 3992 | | "CONFIG" | 4519 | | "CONFIG" |
| 3993 | | "SKILLS" | 4520 | | "SKILLS" |
| ... | @@ -3998,7 +4525,7 @@ export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfi | ... | @@ -3998,7 +4525,7 @@ export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfi |
| 3998 | | "COMMANDS" | 4525 | | "COMMANDS" |
| 3999 | | "MEMORY" | 4526 | | "MEMORY" |
| 4000 | | "SESSIONS"; | 4527 | | "SESSIONS"; |
| 4001 | export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigMigrationItemType = | 4528 | export const V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigMigrationItemType = |
| 4002 | Schema.Literals([ | 4529 | Schema.Literals([ |
| 4003 | "AGENTS_MD", | 4530 | "AGENTS_MD", |
| 4004 | "CONFIG", | 4531 | "CONFIG", |
| ... | @@ -4010,19 +4537,20 @@ export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConf | ... | @@ -4010,19 +4537,20 @@ export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConf |
| 4010 | "COMMANDS", | 4537 | "COMMANDS", |
| 4011 | "MEMORY", | 4538 | "MEMORY", |
| 4012 | "SESSIONS", | 4539 | "SESSIONS", |
| 4013 | ]); | 4540 | ]).annotate({ |
| | 4541 | identifier: |
| | 4542 | "V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigMigrationItemType", |
| | 4543 | }); |
| 4014 | | 4544 | |
| 4015 | export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentImportedConnectorSource = | 4545 | export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentImportedConnectorSource = |
| 4016 | "remoteMcpServersConfig"; | 4546 | "remoteMcpServersConfig"; |
| 4017 | export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentImportedConnectorSource = | 4547 | export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentImportedConnectorSource = |
| 4018 | Schema.Literal("remoteMcpServersConfig"); | 4548 | Schema.Literal("remoteMcpServersConfig").annotate({ |
| 4019 | | 4549 | identifier: |
| 4020 | export type V2ExternalAgentConfigImportParams__CommandMigration = { readonly name: string }; | 4550 | "V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentImportedConnectorSource", |
| 4021 | export const V2ExternalAgentConfigImportParams__CommandMigration = Schema.Struct({ | 4551 | }); |
| 4022 | name: Schema.String, | | |
| 4023 | }); | | |
| 4024 | | 4552 | |
| 4025 | export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType = | 4553 | export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigMigrationItemType = |
| 4026 | | "AGENTS_MD" | 4554 | | "AGENTS_MD" |
| 4027 | | "CONFIG" | 4555 | | "CONFIG" |
| 4028 | | "SKILLS" | 4556 | | "SKILLS" |
| ... | @@ -4033,7 +4561,7 @@ export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemT | ... | @@ -4033,7 +4561,7 @@ export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemT |
| 4033 | | "COMMANDS" | 4561 | | "COMMANDS" |
| 4034 | | "MEMORY" | 4562 | | "MEMORY" |
| 4035 | | "SESSIONS"; | 4563 | | "SESSIONS"; |
| 4036 | export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType = | 4564 | export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigMigrationItemType = |
| 4037 | Schema.Literals([ | 4565 | Schema.Literals([ |
| 4038 | "AGENTS_MD", | 4566 | "AGENTS_MD", |
| 4039 | "CONFIG", | 4567 | "CONFIG", |
| ... | @@ -4045,17 +4573,25 @@ export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem | ... | @@ -4045,17 +4573,25 @@ export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem |
| 4045 | "COMMANDS", | 4573 | "COMMANDS", |
| 4046 | "MEMORY", | 4574 | "MEMORY", |
| 4047 | "SESSIONS", | 4575 | "SESSIONS", |
| 4048 | ]); | 4576 | ]).annotate({ |
| | 4577 | identifier: |
| | 4578 | "V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigMigrationItemType", |
| | 4579 | }); |
| | 4580 | |
| | 4581 | export type V2ExternalAgentConfigImportParams__CommandMigration = { readonly name: string }; |
| | 4582 | export const V2ExternalAgentConfigImportParams__CommandMigration = Schema.Struct({ |
| | 4583 | name: Schema.String, |
| | 4584 | }).annotate({ identifier: "V2ExternalAgentConfigImportParams__CommandMigration" }); |
| 4049 | | 4585 | |
| 4050 | export type V2ExternalAgentConfigImportParams__HookMigration = { readonly name: string }; | 4586 | export type V2ExternalAgentConfigImportParams__HookMigration = { readonly name: string }; |
| 4051 | export const V2ExternalAgentConfigImportParams__HookMigration = Schema.Struct({ | 4587 | export const V2ExternalAgentConfigImportParams__HookMigration = Schema.Struct({ |
| 4052 | name: Schema.String, | 4588 | name: Schema.String, |
| 4053 | }); | 4589 | }).annotate({ identifier: "V2ExternalAgentConfigImportParams__HookMigration" }); |
| 4054 | | 4590 | |
| 4055 | export type V2ExternalAgentConfigImportParams__McpServerMigration = { readonly name: string }; | 4591 | export type V2ExternalAgentConfigImportParams__McpServerMigration = { readonly name: string }; |
| 4056 | export const V2ExternalAgentConfigImportParams__McpServerMigration = Schema.Struct({ | 4592 | export const V2ExternalAgentConfigImportParams__McpServerMigration = Schema.Struct({ |
| 4057 | name: Schema.String, | 4593 | name: Schema.String, |
| 4058 | }); | 4594 | }).annotate({ identifier: "V2ExternalAgentConfigImportParams__McpServerMigration" }); |
| 4059 | | 4595 | |
| 4060 | export type V2ExternalAgentConfigImportParams__PluginsMigration = { | 4596 | export type V2ExternalAgentConfigImportParams__PluginsMigration = { |
| 4061 | readonly marketplaceName: string; | 4597 | readonly marketplaceName: string; |
| ... | @@ -4064,7 +4600,7 @@ export type V2ExternalAgentConfigImportParams__PluginsMigration = { | ... | @@ -4064,7 +4600,7 @@ export type V2ExternalAgentConfigImportParams__PluginsMigration = { |
| 4064 | export const V2ExternalAgentConfigImportParams__PluginsMigration = Schema.Struct({ | 4600 | export const V2ExternalAgentConfigImportParams__PluginsMigration = Schema.Struct({ |
| 4065 | marketplaceName: Schema.String, | 4601 | marketplaceName: Schema.String, |
| 4066 | pluginNames: Schema.Array(Schema.String), | 4602 | pluginNames: Schema.Array(Schema.String), |
| 4067 | }); | 4603 | }).annotate({ identifier: "V2ExternalAgentConfigImportParams__PluginsMigration" }); |
| 4068 | | 4604 | |
| 4069 | export type V2ExternalAgentConfigImportParams__SessionMigration = { | 4605 | export type V2ExternalAgentConfigImportParams__SessionMigration = { |
| 4070 | readonly cwd: string; | 4606 | readonly cwd: string; |
| ... | @@ -4075,17 +4611,44 @@ export const V2ExternalAgentConfigImportParams__SessionMigration = Schema.Struct | ... | @@ -4075,17 +4611,44 @@ export const V2ExternalAgentConfigImportParams__SessionMigration = Schema.Struct |
| 4075 | cwd: Schema.String, | 4611 | cwd: Schema.String, |
| 4076 | path: Schema.String, | 4612 | path: Schema.String, |
| 4077 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 4613 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 4078 | }); | 4614 | }).annotate({ identifier: "V2ExternalAgentConfigImportParams__SessionMigration" }); |
| 4079 | | 4615 | |
| 4080 | export type V2ExternalAgentConfigImportParams__SkillMigration = { readonly name: string }; | 4616 | export type V2ExternalAgentConfigImportParams__SkillMigration = { readonly name: string }; |
| 4081 | export const V2ExternalAgentConfigImportParams__SkillMigration = Schema.Struct({ | 4617 | export const V2ExternalAgentConfigImportParams__SkillMigration = Schema.Struct({ |
| 4082 | name: Schema.String, | 4618 | name: Schema.String, |
| 4083 | }); | 4619 | }).annotate({ identifier: "V2ExternalAgentConfigImportParams__SkillMigration" }); |
| 4084 | | 4620 | |
| 4085 | export type V2ExternalAgentConfigImportParams__SubagentMigration = { readonly name: string }; | 4621 | export type V2ExternalAgentConfigImportParams__SubagentMigration = { readonly name: string }; |
| 4086 | export const V2ExternalAgentConfigImportParams__SubagentMigration = Schema.Struct({ | 4622 | export const V2ExternalAgentConfigImportParams__SubagentMigration = Schema.Struct({ |
| 4087 | name: Schema.String, | 4623 | name: Schema.String, |
| 4088 | }); | 4624 | }).annotate({ identifier: "V2ExternalAgentConfigImportParams__SubagentMigration" }); |
| | 4625 | |
| | 4626 | export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType = |
| | 4627 | | "AGENTS_MD" |
| | 4628 | | "CONFIG" |
| | 4629 | | "SKILLS" |
| | 4630 | | "PLUGINS" |
| | 4631 | | "MCP_SERVER_CONFIG" |
| | 4632 | | "SUBAGENTS" |
| | 4633 | | "HOOKS" |
| | 4634 | | "COMMANDS" |
| | 4635 | | "MEMORY" |
| | 4636 | | "SESSIONS"; |
| | 4637 | export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType = |
| | 4638 | Schema.Literals([ |
| | 4639 | "AGENTS_MD", |
| | 4640 | "CONFIG", |
| | 4641 | "SKILLS", |
| | 4642 | "PLUGINS", |
| | 4643 | "MCP_SERVER_CONFIG", |
| | 4644 | "SUBAGENTS", |
| | 4645 | "HOOKS", |
| | 4646 | "COMMANDS", |
| | 4647 | "MEMORY", |
| | 4648 | "SESSIONS", |
| | 4649 | ]).annotate({ |
| | 4650 | identifier: "V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType", |
| | 4651 | }); |
| 4089 | | 4652 | |
| 4090 | export type V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigMigrationItemType = | 4653 | export type V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigMigrationItemType = |
| 4091 | | "AGENTS_MD" | 4654 | | "AGENTS_MD" |
| ... | @@ -4110,7 +4673,10 @@ export const V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfi | ... | @@ -4110,7 +4673,10 @@ export const V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfi |
| 4110 | "COMMANDS", | 4673 | "COMMANDS", |
| 4111 | "MEMORY", | 4674 | "MEMORY", |
| 4112 | "SESSIONS", | 4675 | "SESSIONS", |
| 4113 | ]); | 4676 | ]).annotate({ |
| | 4677 | identifier: |
| | 4678 | "V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigMigrationItemType", |
| | 4679 | }); |
| 4114 | | 4680 | |
| 4115 | export type V2FileChangePatchUpdatedNotification__PatchChangeKind = | 4681 | export type V2FileChangePatchUpdatedNotification__PatchChangeKind = |
| 4116 | | { readonly type: "add" } | 4682 | | { readonly type: "add" } |
| ... | @@ -4130,12 +4696,41 @@ export const V2FileChangePatchUpdatedNotification__PatchChangeKind = Schema.Unio | ... | @@ -4130,12 +4696,41 @@ export const V2FileChangePatchUpdatedNotification__PatchChangeKind = Schema.Unio |
| 4130 | }).annotate({ title: "UpdatePatchChangeKind" }), | 4696 | }).annotate({ title: "UpdatePatchChangeKind" }), |
| 4131 | ], | 4697 | ], |
| 4132 | { mode: "oneOf" }, | 4698 | { mode: "oneOf" }, |
| 4133 | ); | 4699 | ).annotate({ identifier: "V2FileChangePatchUpdatedNotification__PatchChangeKind" }); |
| 4134 | | 4700 | |
| 4135 | export type V2FsChangedNotification__AbsolutePathBuf = string; | 4701 | export type V2FsChangedNotification__AbsolutePathBuf = string; |
| 4136 | export const V2FsChangedNotification__AbsolutePathBuf = Schema.String.annotate({ | 4702 | export const V2FsChangedNotification__AbsolutePathBuf = Schema.String.annotate({ |
| 4137 | description: | 4703 | description: |
| 4138 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 4704 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 4705 | identifier: "V2FsChangedNotification__AbsolutePathBuf", |
| | 4706 | }); |
| | 4707 | |
| | 4708 | export type V2FsCopyParams__AbsolutePathBuf = string; |
| | 4709 | export const V2FsCopyParams__AbsolutePathBuf = Schema.String.annotate({ |
| | 4710 | description: |
| | 4711 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 4712 | identifier: "V2FsCopyParams__AbsolutePathBuf", |
| | 4713 | }); |
| | 4714 | |
| | 4715 | export type V2FsCreateDirectoryParams__AbsolutePathBuf = string; |
| | 4716 | export const V2FsCreateDirectoryParams__AbsolutePathBuf = Schema.String.annotate({ |
| | 4717 | description: |
| | 4718 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 4719 | identifier: "V2FsCreateDirectoryParams__AbsolutePathBuf", |
| | 4720 | }); |
| | 4721 | |
| | 4722 | export type V2FsGetMetadataParams__AbsolutePathBuf = string; |
| | 4723 | export const V2FsGetMetadataParams__AbsolutePathBuf = Schema.String.annotate({ |
| | 4724 | description: |
| | 4725 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 4726 | identifier: "V2FsGetMetadataParams__AbsolutePathBuf", |
| | 4727 | }); |
| | 4728 | |
| | 4729 | export type V2FsReadDirectoryParams__AbsolutePathBuf = string; |
| | 4730 | export const V2FsReadDirectoryParams__AbsolutePathBuf = Schema.String.annotate({ |
| | 4731 | description: |
| | 4732 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 4733 | identifier: "V2FsReadDirectoryParams__AbsolutePathBuf", |
| 4139 | }); | 4734 | }); |
| 4140 | | 4735 | |
| 4141 | export type V2FsReadDirectoryResponse__FsReadDirectoryEntry = { | 4736 | export type V2FsReadDirectoryResponse__FsReadDirectoryEntry = { |
| ... | @@ -4153,7 +4748,63 @@ export const V2FsReadDirectoryResponse__FsReadDirectoryEntry = Schema.Struct({ | ... | @@ -4153,7 +4748,63 @@ export const V2FsReadDirectoryResponse__FsReadDirectoryEntry = Schema.Struct({ |
| 4153 | isFile: Schema.Boolean.annotate({ | 4748 | isFile: Schema.Boolean.annotate({ |
| 4154 | description: "Whether this entry resolves to a regular file.", | 4749 | description: "Whether this entry resolves to a regular file.", |
| 4155 | }), | 4750 | }), |
| 4156 | }).annotate({ description: "A directory entry returned by `fs/readDirectory`." }); | 4751 | }).annotate({ |
| | 4752 | description: "A directory entry returned by `fs/readDirectory`.", |
| | 4753 | identifier: "V2FsReadDirectoryResponse__FsReadDirectoryEntry", |
| | 4754 | }); |
| | 4755 | |
| | 4756 | export type V2FsReadFileParams__AbsolutePathBuf = string; |
| | 4757 | export const V2FsReadFileParams__AbsolutePathBuf = Schema.String.annotate({ |
| | 4758 | description: |
| | 4759 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 4760 | identifier: "V2FsReadFileParams__AbsolutePathBuf", |
| | 4761 | }); |
| | 4762 | |
| | 4763 | export type V2FsRemoveParams__AbsolutePathBuf = string; |
| | 4764 | export const V2FsRemoveParams__AbsolutePathBuf = Schema.String.annotate({ |
| | 4765 | description: |
| | 4766 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 4767 | identifier: "V2FsRemoveParams__AbsolutePathBuf", |
| | 4768 | }); |
| | 4769 | |
| | 4770 | export type V2FsWatchParams__AbsolutePathBuf = string; |
| | 4771 | export const V2FsWatchParams__AbsolutePathBuf = Schema.String.annotate({ |
| | 4772 | description: |
| | 4773 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 4774 | identifier: "V2FsWatchParams__AbsolutePathBuf", |
| | 4775 | }); |
| | 4776 | |
| | 4777 | export type V2FsWatchResponse__AbsolutePathBuf = string; |
| | 4778 | export const V2FsWatchResponse__AbsolutePathBuf = Schema.String.annotate({ |
| | 4779 | description: |
| | 4780 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 4781 | identifier: "V2FsWatchResponse__AbsolutePathBuf", |
| | 4782 | }); |
| | 4783 | |
| | 4784 | export type V2FsWriteFileParams__AbsolutePathBuf = string; |
| | 4785 | export const V2FsWriteFileParams__AbsolutePathBuf = Schema.String.annotate({ |
| | 4786 | description: |
| | 4787 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 4788 | identifier: "V2FsWriteFileParams__AbsolutePathBuf", |
| | 4789 | }); |
| | 4790 | |
| | 4791 | export type V2GetAccountRateLimitsResponse__RateLimitResetType = "codexRateLimits" | "unknown"; |
| | 4792 | export const V2GetAccountRateLimitsResponse__RateLimitResetType = Schema.Literals([ |
| | 4793 | "codexRateLimits", |
| | 4794 | "unknown", |
| | 4795 | ]).annotate({ identifier: "V2GetAccountRateLimitsResponse__RateLimitResetType" }); |
| | 4796 | |
| | 4797 | export type V2GetAccountRateLimitsResponse__RateLimitResetCreditStatus = |
| | 4798 | | "available" |
| | 4799 | | "redeeming" |
| | 4800 | | "redeemed" |
| | 4801 | | "unknown"; |
| | 4802 | export const V2GetAccountRateLimitsResponse__RateLimitResetCreditStatus = Schema.Literals([ |
| | 4803 | "available", |
| | 4804 | "redeeming", |
| | 4805 | "redeemed", |
| | 4806 | "unknown", |
| | 4807 | ]).annotate({ identifier: "V2GetAccountRateLimitsResponse__RateLimitResetCreditStatus" }); |
| 4157 | | 4808 | |
| 4158 | export type V2GetAccountRateLimitsResponse__CreditsSnapshot = { | 4809 | export type V2GetAccountRateLimitsResponse__CreditsSnapshot = { |
| 4159 | readonly balance?: string | null; | 4810 | readonly balance?: string | null; |
| ... | @@ -4164,7 +4815,24 @@ export const V2GetAccountRateLimitsResponse__CreditsSnapshot = Schema.Struct({ | ... | @@ -4164,7 +4815,24 @@ export const V2GetAccountRateLimitsResponse__CreditsSnapshot = Schema.Struct({ |
| 4164 | balance: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 4815 | balance: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 4165 | hasCredits: Schema.Boolean, | 4816 | hasCredits: Schema.Boolean, |
| 4166 | unlimited: Schema.Boolean, | 4817 | unlimited: Schema.Boolean, |
| 4167 | }); | 4818 | }).annotate({ identifier: "V2GetAccountRateLimitsResponse__CreditsSnapshot" }); |
| | 4819 | |
| | 4820 | export type V2GetAccountRateLimitsResponse__SpendControlLimitSnapshot = { |
| | 4821 | readonly limit: string; |
| | 4822 | readonly remainingPercent: number; |
| | 4823 | readonly resetsAt: number; |
| | 4824 | readonly used: string; |
| | 4825 | }; |
| | 4826 | export const V2GetAccountRateLimitsResponse__SpendControlLimitSnapshot = Schema.Struct({ |
| | 4827 | limit: Schema.String, |
| | 4828 | remainingPercent: Schema.Number.annotate({ format: "int32" }).check( |
| | 4829 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 4830 | ), |
| | 4831 | resetsAt: Schema.Number.annotate({ format: "int64" }).check( |
| | 4832 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 4833 | ), |
| | 4834 | used: Schema.String, |
| | 4835 | }).annotate({ identifier: "V2GetAccountRateLimitsResponse__SpendControlLimitSnapshot" }); |
| 4168 | | 4836 | |
| 4169 | export type V2GetAccountRateLimitsResponse__PlanType = | 4837 | export type V2GetAccountRateLimitsResponse__PlanType = |
| 4170 | | "free" | 4838 | | "free" |
| ... | @@ -4202,7 +4870,34 @@ export const V2GetAccountRateLimitsResponse__PlanType = Schema.Literals([ | ... | @@ -4202,7 +4870,34 @@ export const V2GetAccountRateLimitsResponse__PlanType = Schema.Literals([ |
| 4202 | "edu_plus", | 4870 | "edu_plus", |
| 4203 | "edu_pro", | 4871 | "edu_pro", |
| 4204 | "unknown", | 4872 | "unknown", |
| 4205 | ]); | 4873 | ]).annotate({ identifier: "V2GetAccountRateLimitsResponse__PlanType" }); |
| | 4874 | |
| | 4875 | export type V2GetAccountRateLimitsResponse__RateLimitWindow = { |
| | 4876 | readonly resetsAt?: number | null; |
| | 4877 | readonly usedPercent: number; |
| | 4878 | readonly windowDurationMins?: number | null; |
| | 4879 | }; |
| | 4880 | export const V2GetAccountRateLimitsResponse__RateLimitWindow = Schema.Struct({ |
| | 4881 | resetsAt: Schema.optionalKey( |
| | 4882 | Schema.Union([ |
| | 4883 | Schema.Number.annotate({ format: "int64" }).check( |
| | 4884 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 4885 | ), |
| | 4886 | Schema.Null, |
| | 4887 | ]), |
| | 4888 | ), |
| | 4889 | usedPercent: Schema.Number.annotate({ format: "int32" }).check( |
| | 4890 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 4891 | ), |
| | 4892 | windowDurationMins: Schema.optionalKey( |
| | 4893 | Schema.Union([ |
| | 4894 | Schema.Number.annotate({ format: "int64" }).check( |
| | 4895 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 4896 | ), |
| | 4897 | Schema.Null, |
| | 4898 | ]), |
| | 4899 | ), |
| | 4900 | }).annotate({ identifier: "V2GetAccountRateLimitsResponse__RateLimitWindow" }); |
| 4206 | | 4901 | |
| 4207 | export type V2GetAccountRateLimitsResponse__RateLimitReachedType = | 4902 | export type V2GetAccountRateLimitsResponse__RateLimitReachedType = |
| 4208 | | "rate_limit_reached" | 4903 | | "rate_limit_reached" |
| ... | @@ -4216,53 +4911,7 @@ export const V2GetAccountRateLimitsResponse__RateLimitReachedType = Schema.Liter | ... | @@ -4216,53 +4911,7 @@ export const V2GetAccountRateLimitsResponse__RateLimitReachedType = Schema.Liter |
| 4216 | "workspace_member_credits_depleted", | 4911 | "workspace_member_credits_depleted", |
| 4217 | "workspace_owner_usage_limit_reached", | 4912 | "workspace_owner_usage_limit_reached", |
| 4218 | "workspace_member_usage_limit_reached", | 4913 | "workspace_member_usage_limit_reached", |
| 4219 | ]); | 4914 | ]).annotate({ identifier: "V2GetAccountRateLimitsResponse__RateLimitReachedType" }); |
| 4220 | | | |
| 4221 | export type V2GetAccountRateLimitsResponse__RateLimitResetCreditStatus = | | |
| 4222 | | "available" | | |
| 4223 | | "redeeming" | | |
| 4224 | | "redeemed" | | |
| 4225 | | "unknown"; | | |
| 4226 | export const V2GetAccountRateLimitsResponse__RateLimitResetCreditStatus = Schema.Literals([ | | |
| 4227 | "available", | | |
| 4228 | "redeeming", | | |
| 4229 | "redeemed", | | |
| 4230 | "unknown", | | |
| 4231 | ]); | | |
| 4232 | | | |
| 4233 | export type V2GetAccountRateLimitsResponse__RateLimitResetType = "codexRateLimits" | "unknown"; | | |
| 4234 | export const V2GetAccountRateLimitsResponse__RateLimitResetType = Schema.Literals([ | | |
| 4235 | "codexRateLimits", | | |
| 4236 | "unknown", | | |
| 4237 | ]); | | |
| 4238 | | | |
| 4239 | export type V2GetAccountRateLimitsResponse__RateLimitWindow = { | | |
| 4240 | readonly resetsAt?: number | null; | | |
| 4241 | readonly usedPercent: number; | | |
| 4242 | readonly windowDurationMins?: number | null; | | |
| 4243 | }; | | |
| 4244 | export const V2GetAccountRateLimitsResponse__RateLimitWindow = Schema.Struct({ | | |
| 4245 | resetsAt: Schema.optionalKey( | | |
| 4246 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), | | |
| 4247 | ), | | |
| 4248 | usedPercent: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()), | | |
| 4249 | windowDurationMins: Schema.optionalKey( | | |
| 4250 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), | | |
| 4251 | ), | | |
| 4252 | }); | | |
| 4253 | | | |
| 4254 | export type V2GetAccountRateLimitsResponse__SpendControlLimitSnapshot = { | | |
| 4255 | readonly limit: string; | | |
| 4256 | readonly remainingPercent: number; | | |
| 4257 | readonly resetsAt: number; | | |
| 4258 | readonly used: string; | | |
| 4259 | }; | | |
| 4260 | export const V2GetAccountRateLimitsResponse__SpendControlLimitSnapshot = Schema.Struct({ | | |
| 4261 | limit: Schema.String, | | |
| 4262 | remainingPercent: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()), | | |
| 4263 | resetsAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | | |
| 4264 | used: Schema.String, | | |
| 4265 | }); | | |
| 4266 | | 4915 | |
| 4267 | export type V2GetAccountResponse__PlanType = | 4916 | export type V2GetAccountResponse__PlanType = |
| 4268 | | "free" | 4917 | | "free" |
| ... | @@ -4300,7 +4949,7 @@ export const V2GetAccountResponse__PlanType = Schema.Literals([ | ... | @@ -4300,7 +4949,7 @@ export const V2GetAccountResponse__PlanType = Schema.Literals([ |
| 4300 | "edu_plus", | 4949 | "edu_plus", |
| 4301 | "edu_pro", | 4950 | "edu_pro", |
| 4302 | "unknown", | 4951 | "unknown", |
| 4303 | ]); | 4952 | ]).annotate({ identifier: "V2GetAccountResponse__PlanType" }); |
| 4304 | | 4953 | |
| 4305 | export type V2GetAccountTokenUsageResponse__AccountTokenUsageDailyBucket = { | 4954 | export type V2GetAccountTokenUsageResponse__AccountTokenUsageDailyBucket = { |
| 4306 | readonly startDate: string; | 4955 | readonly startDate: string; |
| ... | @@ -4308,8 +4957,10 @@ export type V2GetAccountTokenUsageResponse__AccountTokenUsageDailyBucket = { | ... | @@ -4308,8 +4957,10 @@ export type V2GetAccountTokenUsageResponse__AccountTokenUsageDailyBucket = { |
| 4308 | }; | 4957 | }; |
| 4309 | export const V2GetAccountTokenUsageResponse__AccountTokenUsageDailyBucket = Schema.Struct({ | 4958 | export const V2GetAccountTokenUsageResponse__AccountTokenUsageDailyBucket = Schema.Struct({ |
| 4310 | startDate: Schema.String, | 4959 | startDate: Schema.String, |
| 4311 | tokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 4960 | tokens: Schema.Number.annotate({ format: "int64" }).check( |
| 4312 | }); | 4961 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 4962 | ), |
| | 4963 | }).annotate({ identifier: "V2GetAccountTokenUsageResponse__AccountTokenUsageDailyBucket" }); |
| 4313 | | 4964 | |
| 4314 | export type V2GetAccountTokenUsageResponse__AccountTokenUsageSummary = { | 4965 | export type V2GetAccountTokenUsageResponse__AccountTokenUsageSummary = { |
| 4315 | readonly currentStreakDays?: number | null; | 4966 | readonly currentStreakDays?: number | null; |
| ... | @@ -4320,21 +4971,46 @@ export type V2GetAccountTokenUsageResponse__AccountTokenUsageSummary = { | ... | @@ -4320,21 +4971,46 @@ export type V2GetAccountTokenUsageResponse__AccountTokenUsageSummary = { |
| 4320 | }; | 4971 | }; |
| 4321 | export const V2GetAccountTokenUsageResponse__AccountTokenUsageSummary = Schema.Struct({ | 4972 | export const V2GetAccountTokenUsageResponse__AccountTokenUsageSummary = Schema.Struct({ |
| 4322 | currentStreakDays: Schema.optionalKey( | 4973 | currentStreakDays: Schema.optionalKey( |
| 4323 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), | 4974 | Schema.Union([ |
| | 4975 | Schema.Number.annotate({ format: "int64" }).check( |
| | 4976 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 4977 | ), |
| | 4978 | Schema.Null, |
| | 4979 | ]), |
| 4324 | ), | 4980 | ), |
| 4325 | lifetimeTokens: Schema.optionalKey( | 4981 | lifetimeTokens: Schema.optionalKey( |
| 4326 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), | 4982 | Schema.Union([ |
| | 4983 | Schema.Number.annotate({ format: "int64" }).check( |
| | 4984 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 4985 | ), |
| | 4986 | Schema.Null, |
| | 4987 | ]), |
| 4327 | ), | 4988 | ), |
| 4328 | longestRunningTurnSec: Schema.optionalKey( | 4989 | longestRunningTurnSec: Schema.optionalKey( |
| 4329 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), | 4990 | Schema.Union([ |
| | 4991 | Schema.Number.annotate({ format: "int64" }).check( |
| | 4992 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 4993 | ), |
| | 4994 | Schema.Null, |
| | 4995 | ]), |
| 4330 | ), | 4996 | ), |
| 4331 | longestStreakDays: Schema.optionalKey( | 4997 | longestStreakDays: Schema.optionalKey( |
| 4332 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), | 4998 | Schema.Union([ |
| | 4999 | Schema.Number.annotate({ format: "int64" }).check( |
| | 5000 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 5001 | ), |
| | 5002 | Schema.Null, |
| | 5003 | ]), |
| 4333 | ), | 5004 | ), |
| 4334 | peakDailyTokens: Schema.optionalKey( | 5005 | peakDailyTokens: Schema.optionalKey( |
| 4335 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), | 5006 | Schema.Union([ |
| | 5007 | Schema.Number.annotate({ format: "int64" }).check( |
| | 5008 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 5009 | ), |
| | 5010 | Schema.Null, |
| | 5011 | ]), |
| 4336 | ), | 5012 | ), |
| 4337 | }); | 5013 | }).annotate({ identifier: "V2GetAccountTokenUsageResponse__AccountTokenUsageSummary" }); |
| 4338 | | 5014 | |
| 4339 | export type V2GetWorkspaceMessagesResponse__WorkspaceMessageType = | 5015 | export type V2GetWorkspaceMessagesResponse__WorkspaceMessageType = |
| 4340 | | "headline" | 5016 | | "headline" |
| ... | @@ -4344,13 +5020,21 @@ export const V2GetWorkspaceMessagesResponse__WorkspaceMessageType = Schema.Liter | ... | @@ -4344,13 +5020,21 @@ export const V2GetWorkspaceMessagesResponse__WorkspaceMessageType = Schema.Liter |
| 4344 | "headline", | 5020 | "headline", |
| 4345 | "announcement", | 5021 | "announcement", |
| 4346 | "unknown", | 5022 | "unknown", |
| 4347 | ]); | 5023 | ]).annotate({ identifier: "V2GetWorkspaceMessagesResponse__WorkspaceMessageType" }); |
| 4348 | | 5024 | |
| 4349 | export type V2HookCompletedNotification__AbsolutePathBuf = string; | 5025 | export type V2HookCompletedNotification__HookOutputEntryKind = |
| 4350 | export const V2HookCompletedNotification__AbsolutePathBuf = Schema.String.annotate({ | 5026 | | "warning" |
| 4351 | description: | 5027 | | "stop" |
| 4352 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 5028 | | "feedback" |
| 4353 | }); | 5029 | | "context" |
| | 5030 | | "error"; |
| | 5031 | export const V2HookCompletedNotification__HookOutputEntryKind = Schema.Literals([ |
| | 5032 | "warning", |
| | 5033 | "stop", |
| | 5034 | "feedback", |
| | 5035 | "context", |
| | 5036 | "error", |
| | 5037 | ]).annotate({ identifier: "V2HookCompletedNotification__HookOutputEntryKind" }); |
| 4354 | | 5038 | |
| 4355 | export type V2HookCompletedNotification__HookEventName = | 5039 | export type V2HookCompletedNotification__HookEventName = |
| 4356 | | "preToolUse" | 5040 | | "preToolUse" |
| ... | @@ -4376,31 +5060,58 @@ export const V2HookCompletedNotification__HookEventName = Schema.Literals([ | ... | @@ -4376,31 +5060,58 @@ export const V2HookCompletedNotification__HookEventName = Schema.Literals([ |
| 4376 | "subagentStart", | 5060 | "subagentStart", |
| 4377 | "subagentStop", | 5061 | "subagentStop", |
| 4378 | "stop", | 5062 | "stop", |
| 4379 | ]); | 5063 | ]).annotate({ identifier: "V2HookCompletedNotification__HookEventName" }); |
| 4380 | | 5064 | |
| 4381 | export type V2HookCompletedNotification__HookExecutionMode = "sync" | "async"; | 5065 | export type V2HookCompletedNotification__HookExecutionMode = "sync" | "async"; |
| 4382 | export const V2HookCompletedNotification__HookExecutionMode = Schema.Literals(["sync", "async"]); | 5066 | export const V2HookCompletedNotification__HookExecutionMode = Schema.Literals([ |
| | 5067 | "sync", |
| | 5068 | "async", |
| | 5069 | ]).annotate({ identifier: "V2HookCompletedNotification__HookExecutionMode" }); |
| 4383 | | 5070 | |
| 4384 | export type V2HookCompletedNotification__HookHandlerType = "command" | "prompt" | "agent"; | 5071 | export type V2HookCompletedNotification__HookHandlerType = "command" | "prompt" | "agent"; |
| 4385 | export const V2HookCompletedNotification__HookHandlerType = Schema.Literals([ | 5072 | export const V2HookCompletedNotification__HookHandlerType = Schema.Literals([ |
| 4386 | "command", | 5073 | "command", |
| 4387 | "prompt", | 5074 | "prompt", |
| 4388 | "agent", | 5075 | "agent", |
| 4389 | ]); | 5076 | ]).annotate({ identifier: "V2HookCompletedNotification__HookHandlerType" }); |
| 4390 | | 5077 | |
| 4391 | export type V2HookCompletedNotification__HookOutputEntryKind = | 5078 | export type V2HookCompletedNotification__HookScope = "thread" | "turn"; |
| 4392 | | "warning" | 5079 | export const V2HookCompletedNotification__HookScope = Schema.Literals(["thread", "turn"]).annotate({ |
| 4393 | | "stop" | 5080 | identifier: "V2HookCompletedNotification__HookScope", |
| 4394 | | "feedback" | 5081 | }); |
| 4395 | | "context" | 5082 | |
| 4396 | | "error"; | 5083 | export type V2HookCompletedNotification__HookSource = |
| 4397 | export const V2HookCompletedNotification__HookOutputEntryKind = Schema.Literals([ | 5084 | | "system" |
| 4398 | "warning", | 5085 | | "user" |
| 4399 | "stop", | 5086 | | "project" |
| 4400 | "feedback", | 5087 | | "mdm" |
| 4401 | "context", | 5088 | | "sessionFlags" |
| 4402 | "error", | 5089 | | "plugin" |
| 4403 | ]); | 5090 | | "cloudRequirements" |
| | 5091 | | "cloudManagedConfig" |
| | 5092 | | "legacyManagedConfigFile" |
| | 5093 | | "legacyManagedConfigMdm" |
| | 5094 | | "unknown"; |
| | 5095 | export const V2HookCompletedNotification__HookSource = Schema.Literals([ |
| | 5096 | "system", |
| | 5097 | "user", |
| | 5098 | "project", |
| | 5099 | "mdm", |
| | 5100 | "sessionFlags", |
| | 5101 | "plugin", |
| | 5102 | "cloudRequirements", |
| | 5103 | "cloudManagedConfig", |
| | 5104 | "legacyManagedConfigFile", |
| | 5105 | "legacyManagedConfigMdm", |
| | 5106 | "unknown", |
| | 5107 | ]).annotate({ identifier: "V2HookCompletedNotification__HookSource" }); |
| | 5108 | |
| | 5109 | export type V2HookCompletedNotification__AbsolutePathBuf = string; |
| | 5110 | export const V2HookCompletedNotification__AbsolutePathBuf = Schema.String.annotate({ |
| | 5111 | description: |
| | 5112 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 5113 | identifier: "V2HookCompletedNotification__AbsolutePathBuf", |
| | 5114 | }); |
| 4404 | | 5115 | |
| 4405 | export type V2HookCompletedNotification__HookRunStatus = | 5116 | export type V2HookCompletedNotification__HookRunStatus = |
| 4406 | | "running" | 5117 | | "running" |
| ... | @@ -4414,16 +5125,7 @@ export const V2HookCompletedNotification__HookRunStatus = Schema.Literals([ | ... | @@ -4414,16 +5125,7 @@ export const V2HookCompletedNotification__HookRunStatus = Schema.Literals([ |
| 4414 | "failed", | 5125 | "failed", |
| 4415 | "blocked", | 5126 | "blocked", |
| 4416 | "stopped", | 5127 | "stopped", |
| 4417 | ]); | 5128 | ]).annotate({ identifier: "V2HookCompletedNotification__HookRunStatus" }); |
| 4418 | | | |
| 4419 | export type V2HookCompletedNotification__HookScope = "thread" | "turn"; | | |
| 4420 | export const V2HookCompletedNotification__HookScope = Schema.Literals(["thread", "turn"]); | | |
| 4421 | | | |
| 4422 | export type V2HooksListResponse__AbsolutePathBuf = string; | | |
| 4423 | export const V2HooksListResponse__AbsolutePathBuf = Schema.String.annotate({ | | |
| 4424 | description: | | |
| 4425 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | | |
| 4426 | }); | | |
| 4427 | | 5129 | |
| 4428 | export type V2HooksListResponse__HookErrorInfo = { | 5130 | export type V2HooksListResponse__HookErrorInfo = { |
| 4429 | readonly message: string; | 5131 | readonly message: string; |
| ... | @@ -4432,7 +5134,7 @@ export type V2HooksListResponse__HookErrorInfo = { | ... | @@ -4432,7 +5134,7 @@ export type V2HooksListResponse__HookErrorInfo = { |
| 4432 | export const V2HooksListResponse__HookErrorInfo = Schema.Struct({ | 5134 | export const V2HooksListResponse__HookErrorInfo = Schema.Struct({ |
| 4433 | message: Schema.String, | 5135 | message: Schema.String, |
| 4434 | path: Schema.String, | 5136 | path: Schema.String, |
| 4435 | }); | 5137 | }).annotate({ identifier: "V2HooksListResponse__HookErrorInfo" }); |
| 4436 | | 5138 | |
| 4437 | export type V2HooksListResponse__HookEventName = | 5139 | export type V2HooksListResponse__HookEventName = |
| 4438 | | "preToolUse" | 5140 | | "preToolUse" |
| ... | @@ -4458,10 +5160,14 @@ export const V2HooksListResponse__HookEventName = Schema.Literals([ | ... | @@ -4458,10 +5160,14 @@ export const V2HooksListResponse__HookEventName = Schema.Literals([ |
| 4458 | "subagentStart", | 5160 | "subagentStart", |
| 4459 | "subagentStop", | 5161 | "subagentStop", |
| 4460 | "stop", | 5162 | "stop", |
| 4461 | ]); | 5163 | ]).annotate({ identifier: "V2HooksListResponse__HookEventName" }); |
| 4462 | | 5164 | |
| 4463 | export type V2HooksListResponse__HookHandlerType = "command" | "prompt" | "agent"; | 5165 | export type V2HooksListResponse__HookHandlerType = "command" | "prompt" | "agent"; |
| 4464 | export const V2HooksListResponse__HookHandlerType = Schema.Literals(["command", "prompt", "agent"]); | 5166 | export const V2HooksListResponse__HookHandlerType = Schema.Literals([ |
| | 5167 | "command", |
| | 5168 | "prompt", |
| | 5169 | "agent", |
| | 5170 | ]).annotate({ identifier: "V2HooksListResponse__HookHandlerType" }); |
| 4465 | | 5171 | |
| 4466 | export type V2HooksListResponse__HookSource = | 5172 | export type V2HooksListResponse__HookSource = |
| 4467 | | "system" | 5173 | | "system" |
| ... | @@ -4487,7 +5193,14 @@ export const V2HooksListResponse__HookSource = Schema.Literals([ | ... | @@ -4487,7 +5193,14 @@ export const V2HooksListResponse__HookSource = Schema.Literals([ |
| 4487 | "legacyManagedConfigFile", | 5193 | "legacyManagedConfigFile", |
| 4488 | "legacyManagedConfigMdm", | 5194 | "legacyManagedConfigMdm", |
| 4489 | "unknown", | 5195 | "unknown", |
| 4490 | ]); | 5196 | ]).annotate({ identifier: "V2HooksListResponse__HookSource" }); |
| | 5197 | |
| | 5198 | export type V2HooksListResponse__AbsolutePathBuf = string; |
| | 5199 | export const V2HooksListResponse__AbsolutePathBuf = Schema.String.annotate({ |
| | 5200 | description: |
| | 5201 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 5202 | identifier: "V2HooksListResponse__AbsolutePathBuf", |
| | 5203 | }); |
| 4491 | | 5204 | |
| 4492 | export type V2HooksListResponse__HookTrustStatus = "managed" | "untrusted" | "trusted" | "modified"; | 5205 | export type V2HooksListResponse__HookTrustStatus = "managed" | "untrusted" | "trusted" | "modified"; |
| 4493 | export const V2HooksListResponse__HookTrustStatus = Schema.Literals([ | 5206 | export const V2HooksListResponse__HookTrustStatus = Schema.Literals([ |
| ... | @@ -4495,13 +5208,21 @@ export const V2HooksListResponse__HookTrustStatus = Schema.Literals([ | ... | @@ -4495,13 +5208,21 @@ export const V2HooksListResponse__HookTrustStatus = Schema.Literals([ |
| 4495 | "untrusted", | 5208 | "untrusted", |
| 4496 | "trusted", | 5209 | "trusted", |
| 4497 | "modified", | 5210 | "modified", |
| 4498 | ]); | 5211 | ]).annotate({ identifier: "V2HooksListResponse__HookTrustStatus" }); |
| 4499 | | 5212 | |
| 4500 | export type V2HookStartedNotification__AbsolutePathBuf = string; | 5213 | export type V2HookStartedNotification__HookOutputEntryKind = |
| 4501 | export const V2HookStartedNotification__AbsolutePathBuf = Schema.String.annotate({ | 5214 | | "warning" |
| 4502 | description: | 5215 | | "stop" |
| 4503 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 5216 | | "feedback" |
| 4504 | }); | 5217 | | "context" |
| | 5218 | | "error"; |
| | 5219 | export const V2HookStartedNotification__HookOutputEntryKind = Schema.Literals([ |
| | 5220 | "warning", |
| | 5221 | "stop", |
| | 5222 | "feedback", |
| | 5223 | "context", |
| | 5224 | "error", |
| | 5225 | ]).annotate({ identifier: "V2HookStartedNotification__HookOutputEntryKind" }); |
| 4505 | | 5226 | |
| 4506 | export type V2HookStartedNotification__HookEventName = | 5227 | export type V2HookStartedNotification__HookEventName = |
| 4507 | | "preToolUse" | 5228 | | "preToolUse" |
| ... | @@ -4527,31 +5248,58 @@ export const V2HookStartedNotification__HookEventName = Schema.Literals([ | ... | @@ -4527,31 +5248,58 @@ export const V2HookStartedNotification__HookEventName = Schema.Literals([ |
| 4527 | "subagentStart", | 5248 | "subagentStart", |
| 4528 | "subagentStop", | 5249 | "subagentStop", |
| 4529 | "stop", | 5250 | "stop", |
| 4530 | ]); | 5251 | ]).annotate({ identifier: "V2HookStartedNotification__HookEventName" }); |
| 4531 | | 5252 | |
| 4532 | export type V2HookStartedNotification__HookExecutionMode = "sync" | "async"; | 5253 | export type V2HookStartedNotification__HookExecutionMode = "sync" | "async"; |
| 4533 | export const V2HookStartedNotification__HookExecutionMode = Schema.Literals(["sync", "async"]); | 5254 | export const V2HookStartedNotification__HookExecutionMode = Schema.Literals([ |
| | 5255 | "sync", |
| | 5256 | "async", |
| | 5257 | ]).annotate({ identifier: "V2HookStartedNotification__HookExecutionMode" }); |
| 4534 | | 5258 | |
| 4535 | export type V2HookStartedNotification__HookHandlerType = "command" | "prompt" | "agent"; | 5259 | export type V2HookStartedNotification__HookHandlerType = "command" | "prompt" | "agent"; |
| 4536 | export const V2HookStartedNotification__HookHandlerType = Schema.Literals([ | 5260 | export const V2HookStartedNotification__HookHandlerType = Schema.Literals([ |
| 4537 | "command", | 5261 | "command", |
| 4538 | "prompt", | 5262 | "prompt", |
| 4539 | "agent", | 5263 | "agent", |
| 4540 | ]); | 5264 | ]).annotate({ identifier: "V2HookStartedNotification__HookHandlerType" }); |
| 4541 | | 5265 | |
| 4542 | export type V2HookStartedNotification__HookOutputEntryKind = | 5266 | export type V2HookStartedNotification__HookScope = "thread" | "turn"; |
| 4543 | | "warning" | 5267 | export const V2HookStartedNotification__HookScope = Schema.Literals(["thread", "turn"]).annotate({ |
| 4544 | | "stop" | 5268 | identifier: "V2HookStartedNotification__HookScope", |
| 4545 | | "feedback" | 5269 | }); |
| 4546 | | "context" | 5270 | |
| 4547 | | "error"; | 5271 | export type V2HookStartedNotification__HookSource = |
| 4548 | export const V2HookStartedNotification__HookOutputEntryKind = Schema.Literals([ | 5272 | | "system" |
| 4549 | "warning", | 5273 | | "user" |
| 4550 | "stop", | 5274 | | "project" |
| 4551 | "feedback", | 5275 | | "mdm" |
| 4552 | "context", | 5276 | | "sessionFlags" |
| 4553 | "error", | 5277 | | "plugin" |
| 4554 | ]); | 5278 | | "cloudRequirements" |
| | 5279 | | "cloudManagedConfig" |
| | 5280 | | "legacyManagedConfigFile" |
| | 5281 | | "legacyManagedConfigMdm" |
| | 5282 | | "unknown"; |
| | 5283 | export const V2HookStartedNotification__HookSource = Schema.Literals([ |
| | 5284 | "system", |
| | 5285 | "user", |
| | 5286 | "project", |
| | 5287 | "mdm", |
| | 5288 | "sessionFlags", |
| | 5289 | "plugin", |
| | 5290 | "cloudRequirements", |
| | 5291 | "cloudManagedConfig", |
| | 5292 | "legacyManagedConfigFile", |
| | 5293 | "legacyManagedConfigMdm", |
| | 5294 | "unknown", |
| | 5295 | ]).annotate({ identifier: "V2HookStartedNotification__HookSource" }); |
| | 5296 | |
| | 5297 | export type V2HookStartedNotification__AbsolutePathBuf = string; |
| | 5298 | export const V2HookStartedNotification__AbsolutePathBuf = Schema.String.annotate({ |
| | 5299 | description: |
| | 5300 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 5301 | identifier: "V2HookStartedNotification__AbsolutePathBuf", |
| | 5302 | }); |
| 4555 | | 5303 | |
| 4556 | export type V2HookStartedNotification__HookRunStatus = | 5304 | export type V2HookStartedNotification__HookRunStatus = |
| 4557 | | "running" | 5305 | | "running" |
| ... | @@ -4565,34 +5313,104 @@ export const V2HookStartedNotification__HookRunStatus = Schema.Literals([ | ... | @@ -4565,34 +5313,104 @@ export const V2HookStartedNotification__HookRunStatus = Schema.Literals([ |
| 4565 | "failed", | 5313 | "failed", |
| 4566 | "blocked", | 5314 | "blocked", |
| 4567 | "stopped", | 5315 | "stopped", |
| 4568 | ]); | 5316 | ]).annotate({ identifier: "V2HookStartedNotification__HookRunStatus" }); |
| 4569 | | 5317 | |
| 4570 | export type V2HookStartedNotification__HookScope = "thread" | "turn"; | 5318 | export type V2ItemCompletedNotification__ByteRange = { |
| 4571 | export const V2HookStartedNotification__HookScope = Schema.Literals(["thread", "turn"]); | 5319 | readonly end: number; |
| | 5320 | readonly start: number; |
| | 5321 | }; |
| | 5322 | export const V2ItemCompletedNotification__ByteRange = Schema.Struct({ |
| | 5323 | end: Schema.Number.annotate({ format: "uint" }) |
| | 5324 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 5325 | .check( |
| | 5326 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 5327 | ), |
| | 5328 | start: Schema.Number.annotate({ format: "uint" }) |
| | 5329 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 5330 | .check( |
| | 5331 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 5332 | ), |
| | 5333 | }).annotate({ identifier: "V2ItemCompletedNotification__ByteRange" }); |
| | 5334 | |
| | 5335 | export type V2ItemCompletedNotification__ImageDetail = "auto" | "low" | "high" | "original"; |
| | 5336 | export const V2ItemCompletedNotification__ImageDetail = Schema.Literals([ |
| | 5337 | "auto", |
| | 5338 | "low", |
| | 5339 | "high", |
| | 5340 | "original", |
| | 5341 | ]).annotate({ identifier: "V2ItemCompletedNotification__ImageDetail" }); |
| | 5342 | |
| | 5343 | export type V2ItemCompletedNotification__HookPromptFragment = { |
| | 5344 | readonly hookRunId: string; |
| | 5345 | readonly text: string; |
| | 5346 | }; |
| | 5347 | export const V2ItemCompletedNotification__HookPromptFragment = Schema.Struct({ |
| | 5348 | hookRunId: Schema.String, |
| | 5349 | text: Schema.String, |
| | 5350 | }).annotate({ identifier: "V2ItemCompletedNotification__HookPromptFragment" }); |
| | 5351 | |
| | 5352 | export type V2ItemCompletedNotification__MemoryCitationEntry = { |
| | 5353 | readonly lineEnd: number; |
| | 5354 | readonly lineStart: number; |
| | 5355 | readonly note: string; |
| | 5356 | readonly path: string; |
| | 5357 | }; |
| | 5358 | export const V2ItemCompletedNotification__MemoryCitationEntry = Schema.Struct({ |
| | 5359 | lineEnd: Schema.Number.annotate({ format: "uint32" }) |
| | 5360 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 5361 | .check( |
| | 5362 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 5363 | ), |
| | 5364 | lineStart: Schema.Number.annotate({ format: "uint32" }) |
| | 5365 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 5366 | .check( |
| | 5367 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 5368 | ), |
| | 5369 | note: Schema.String, |
| | 5370 | path: Schema.String, |
| | 5371 | }).annotate({ identifier: "V2ItemCompletedNotification__MemoryCitationEntry" }); |
| | 5372 | |
| | 5373 | export type V2ItemCompletedNotification__MessagePhase = "commentary" | "final_answer"; |
| | 5374 | export const V2ItemCompletedNotification__MessagePhase = Schema.Union( |
| | 5375 | [ |
| | 5376 | Schema.Literal("commentary").annotate({ |
| | 5377 | description: |
| | 5378 | "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.", |
| | 5379 | }), |
| | 5380 | Schema.Literal("final_answer").annotate({ |
| | 5381 | description: "The assistant's terminal answer text for the current turn.", |
| | 5382 | }), |
| | 5383 | ], |
| | 5384 | { mode: "oneOf" }, |
| | 5385 | ).annotate({ |
| | 5386 | description: |
| | 5387 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', |
| | 5388 | identifier: "V2ItemCompletedNotification__MessagePhase", |
| | 5389 | }); |
| 4572 | | 5390 | |
| 4573 | export type V2ItemCompletedNotification__AbsolutePathBuf = string; | 5391 | export type V2ItemCompletedNotification__AbsolutePathBuf = string; |
| 4574 | export const V2ItemCompletedNotification__AbsolutePathBuf = Schema.String.annotate({ | 5392 | export const V2ItemCompletedNotification__AbsolutePathBuf = Schema.String.annotate({ |
| 4575 | description: | 5393 | description: |
| 4576 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 5394 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 5395 | identifier: "V2ItemCompletedNotification__AbsolutePathBuf", |
| 4577 | }); | 5396 | }); |
| 4578 | | 5397 | |
| 4579 | export type V2ItemCompletedNotification__CollabAgentStatus = | 5398 | export type V2ItemCompletedNotification__LegacyAppPathString = string; |
| 4580 | | "pendingInit" | 5399 | export const V2ItemCompletedNotification__LegacyAppPathString = Schema.String.annotate({ |
| 4581 | | "running" | 5400 | identifier: "V2ItemCompletedNotification__LegacyAppPathString", |
| 4582 | | "interrupted" | 5401 | }); |
| 4583 | | "completed" | 5402 | |
| 4584 | | "errored" | 5403 | export type V2ItemCompletedNotification__CommandExecutionSource = |
| 4585 | | "shutdown" | 5404 | | "agent" |
| 4586 | | "notFound"; | 5405 | | "userShell" |
| 4587 | export const V2ItemCompletedNotification__CollabAgentStatus = Schema.Literals([ | 5406 | | "unifiedExecStartup" |
| 4588 | "pendingInit", | 5407 | | "unifiedExecInteraction"; |
| 4589 | "running", | 5408 | export const V2ItemCompletedNotification__CommandExecutionSource = Schema.Literals([ |
| 4590 | "interrupted", | 5409 | "agent", |
| 4591 | "completed", | 5410 | "userShell", |
| 4592 | "errored", | 5411 | "unifiedExecStartup", |
| 4593 | "shutdown", | 5412 | "unifiedExecInteraction", |
| 4594 | "notFound", | 5413 | ]).annotate({ identifier: "V2ItemCompletedNotification__CommandExecutionSource" }); |
| 4595 | ]); | | |
| 4596 | | 5414 | |
| 4597 | export type V2ItemCompletedNotification__CommandExecutionStatus = | 5415 | export type V2ItemCompletedNotification__CommandExecutionStatus = |
| 4598 | | "inProgress" | 5416 | | "inProgress" |
| ... | @@ -4604,65 +5422,39 @@ export const V2ItemCompletedNotification__CommandExecutionStatus = Schema.Litera | ... | @@ -4604,65 +5422,39 @@ export const V2ItemCompletedNotification__CommandExecutionStatus = Schema.Litera |
| 4604 | "completed", | 5422 | "completed", |
| 4605 | "failed", | 5423 | "failed", |
| 4606 | "declined", | 5424 | "declined", |
| 4607 | ]); | 5425 | ]).annotate({ identifier: "V2ItemCompletedNotification__CommandExecutionStatus" }); |
| 4608 | | 5426 | |
| 4609 | export type V2ItemCompletedNotification__DynamicToolCallOutputContentItem = | 5427 | export type V2ItemCompletedNotification__PatchChangeKind = |
| 4610 | | { readonly text: string; readonly type: "inputText" } | 5428 | | { readonly type: "add" } |
| 4611 | | { readonly imageUrl: string; readonly type: "inputImage" } | 5429 | | { readonly type: "delete" } |
| 4612 | | { readonly audioUrl: string; readonly type: "inputAudio" }; | 5430 | | { readonly move_path?: string | null; readonly type: "update" }; |
| 4613 | export const V2ItemCompletedNotification__DynamicToolCallOutputContentItem = Schema.Union( | 5431 | export const V2ItemCompletedNotification__PatchChangeKind = Schema.Union( |
| 4614 | [ | 5432 | [ |
| 4615 | Schema.Struct({ | 5433 | Schema.Struct({ |
| 4616 | text: Schema.String, | 5434 | type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }), |
| 4617 | type: Schema.Literal("inputText").annotate({ | 5435 | }).annotate({ title: "AddPatchChangeKind" }), |
| 4618 | title: "InputTextDynamicToolCallOutputContentItemType", | | |
| 4619 | }), | | |
| 4620 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), | | |
| 4621 | Schema.Struct({ | 5436 | Schema.Struct({ |
| 4622 | imageUrl: Schema.String, | 5437 | type: Schema.Literal("delete").annotate({ title: "DeletePatchChangeKindType" }), |
| 4623 | type: Schema.Literal("inputImage").annotate({ | 5438 | }).annotate({ title: "DeletePatchChangeKind" }), |
| 4624 | title: "InputImageDynamicToolCallOutputContentItemType", | | |
| 4625 | }), | | |
| 4626 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), | | |
| 4627 | Schema.Struct({ | 5439 | Schema.Struct({ |
| 4628 | audioUrl: Schema.String, | 5440 | move_path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 4629 | type: Schema.Literal("inputAudio").annotate({ | 5441 | type: Schema.Literal("update").annotate({ title: "UpdatePatchChangeKindType" }), |
| 4630 | title: "InputAudioDynamicToolCallOutputContentItemType", | 5442 | }).annotate({ title: "UpdatePatchChangeKind" }), |
| 4631 | }), | | |
| 4632 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), | | |
| 4633 | ], | 5443 | ], |
| 4634 | { mode: "oneOf" }, | 5444 | { mode: "oneOf" }, |
| 4635 | ); | 5445 | ).annotate({ identifier: "V2ItemCompletedNotification__PatchChangeKind" }); |
| 4636 | | 5446 | |
| 4637 | export type V2ItemCompletedNotification__DynamicToolCallStatus = | 5447 | export type V2ItemCompletedNotification__PatchApplyStatus = |
| 4638 | | "inProgress" | 5448 | | "inProgress" |
| 4639 | | "completed" | 5449 | | "completed" |
| 4640 | | "failed"; | 5450 | | "failed" |
| 4641 | export const V2ItemCompletedNotification__DynamicToolCallStatus = Schema.Literals([ | 5451 | | "declined"; |
| | 5452 | export const V2ItemCompletedNotification__PatchApplyStatus = Schema.Literals([ |
| 4642 | "inProgress", | 5453 | "inProgress", |
| 4643 | "completed", | 5454 | "completed", |
| 4644 | "failed", | 5455 | "failed", |
| 4645 | ]); | 5456 | "declined", |
| 4646 | | 5457 | ]).annotate({ identifier: "V2ItemCompletedNotification__PatchApplyStatus" }); |
| 4647 | export type V2ItemCompletedNotification__HookPromptFragment = { | | |
| 4648 | readonly hookRunId: string; | | |
| 4649 | readonly text: string; | | |
| 4650 | }; | | |
| 4651 | export const V2ItemCompletedNotification__HookPromptFragment = Schema.Struct({ | | |
| 4652 | hookRunId: Schema.String, | | |
| 4653 | text: Schema.String, | | |
| 4654 | }); | | |
| 4655 | | | |
| 4656 | export type V2ItemCompletedNotification__ImageDetail = "auto" | "low" | "high" | "original"; | | |
| 4657 | export const V2ItemCompletedNotification__ImageDetail = Schema.Literals([ | | |
| 4658 | "auto", | | |
| 4659 | "low", | | |
| 4660 | "high", | | |
| 4661 | "original", | | |
| 4662 | ]); | | |
| 4663 | | | |
| 4664 | export type V2ItemCompletedNotification__LegacyAppPathString = string; | | |
| 4665 | export const V2ItemCompletedNotification__LegacyAppPathString = Schema.String; | | |
| 4666 | | 5458 | |
| 4667 | export type V2ItemCompletedNotification__McpToolCallAppContext = { | 5459 | export type V2ItemCompletedNotification__McpToolCallAppContext = { |
| 4668 | readonly actionName?: string | null; | 5460 | readonly actionName?: string | null; |
| ... | @@ -4677,93 +5469,130 @@ export const V2ItemCompletedNotification__McpToolCallAppContext = Schema.Struct( | ... | @@ -4677,93 +5469,130 @@ export const V2ItemCompletedNotification__McpToolCallAppContext = Schema.Struct( |
| 4677 | connectorId: Schema.String, | 5469 | connectorId: Schema.String, |
| 4678 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 5470 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 4679 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 5471 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 4680 | }); | 5472 | }).annotate({ identifier: "V2ItemCompletedNotification__McpToolCallAppContext" }); |
| 4681 | | 5473 | |
| 4682 | export type V2ItemCompletedNotification__McpToolCallError = { readonly message: string }; | 5474 | export type V2ItemCompletedNotification__McpToolCallError = { readonly message: string }; |
| 4683 | export const V2ItemCompletedNotification__McpToolCallError = Schema.Struct({ | 5475 | export const V2ItemCompletedNotification__McpToolCallError = Schema.Struct({ |
| 4684 | message: Schema.String, | 5476 | message: Schema.String, |
| 4685 | }); | 5477 | }).annotate({ identifier: "V2ItemCompletedNotification__McpToolCallError" }); |
| 4686 | | 5478 | |
| 4687 | export type V2ItemCompletedNotification__McpToolCallResult = { | 5479 | export type V2ItemCompletedNotification__McpToolCallResult = { |
| 4688 | readonly _meta?: unknown; | 5480 | readonly _meta?: Schema.Json; |
| 4689 | readonly content: ReadonlyArray<unknown>; | 5481 | readonly content: ReadonlyArray<Schema.Json>; |
| 4690 | readonly structuredContent?: unknown; | 5482 | readonly structuredContent?: Schema.Json; |
| 4691 | }; | 5483 | }; |
| 4692 | export const V2ItemCompletedNotification__McpToolCallResult = Schema.Struct({ | 5484 | export const V2ItemCompletedNotification__McpToolCallResult = Schema.Struct({ |
| 4693 | _meta: Schema.optionalKey(Schema.Unknown), | 5485 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 4694 | content: Schema.Array(Schema.Unknown), | 5486 | content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), |
| 4695 | structuredContent: Schema.optionalKey(Schema.Unknown), | 5487 | structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 4696 | }); | 5488 | }).annotate({ identifier: "V2ItemCompletedNotification__McpToolCallResult" }); |
| 4697 | | 5489 | |
| 4698 | export type V2ItemCompletedNotification__McpToolCallStatus = "inProgress" | "completed" | "failed"; | 5490 | export type V2ItemCompletedNotification__McpToolCallStatus = "inProgress" | "completed" | "failed"; |
| 4699 | export const V2ItemCompletedNotification__McpToolCallStatus = Schema.Literals([ | 5491 | export const V2ItemCompletedNotification__McpToolCallStatus = Schema.Literals([ |
| 4700 | "inProgress", | 5492 | "inProgress", |
| 4701 | "completed", | 5493 | "completed", |
| 4702 | "failed", | 5494 | "failed", |
| 4703 | ]); | 5495 | ]).annotate({ identifier: "V2ItemCompletedNotification__McpToolCallStatus" }); |
| 4704 | | | |
| 4705 | export type V2ItemCompletedNotification__MemoryCitationEntry = { | | |
| 4706 | readonly lineEnd: number; | | |
| 4707 | readonly lineStart: number; | | |
| 4708 | readonly note: string; | | |
| 4709 | readonly path: string; | | |
| 4710 | }; | | |
| 4711 | export const V2ItemCompletedNotification__MemoryCitationEntry = Schema.Struct({ | | |
| 4712 | lineEnd: Schema.Number.annotate({ format: "uint32" }) | | |
| 4713 | .check(Schema.isInt()) | | |
| 4714 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 4715 | lineStart: Schema.Number.annotate({ format: "uint32" }) | | |
| 4716 | .check(Schema.isInt()) | | |
| 4717 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 4718 | note: Schema.String, | | |
| 4719 | path: Schema.String, | | |
| 4720 | }); | | |
| 4721 | | 5496 | |
| 4722 | export type V2ItemCompletedNotification__MessagePhase = "commentary" | "final_answer"; | 5497 | export type V2ItemCompletedNotification__DynamicToolCallOutputContentItem = |
| 4723 | export const V2ItemCompletedNotification__MessagePhase = Schema.Literals([ | 5498 | | { readonly text: string; readonly type: "inputText" } |
| 4724 | "commentary", | 5499 | | { readonly imageUrl: string; readonly type: "inputImage" } |
| 4725 | "final_answer", | 5500 | | { readonly audioUrl: string; readonly type: "inputAudio" }; |
| 4726 | ]).annotate({ | 5501 | export const V2ItemCompletedNotification__DynamicToolCallOutputContentItem = Schema.Union( |
| 4727 | description: | 5502 | [ |
| 4728 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', | 5503 | Schema.Struct({ |
| 4729 | }); | 5504 | text: Schema.String, |
| | 5505 | type: Schema.Literal("inputText").annotate({ |
| | 5506 | title: "InputTextDynamicToolCallOutputContentItemType", |
| | 5507 | }), |
| | 5508 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), |
| | 5509 | Schema.Struct({ |
| | 5510 | imageUrl: Schema.String, |
| | 5511 | type: Schema.Literal("inputImage").annotate({ |
| | 5512 | title: "InputImageDynamicToolCallOutputContentItemType", |
| | 5513 | }), |
| | 5514 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), |
| | 5515 | Schema.Struct({ |
| | 5516 | audioUrl: Schema.String, |
| | 5517 | type: Schema.Literal("inputAudio").annotate({ |
| | 5518 | title: "InputAudioDynamicToolCallOutputContentItemType", |
| | 5519 | }), |
| | 5520 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), |
| | 5521 | ], |
| | 5522 | { mode: "oneOf" }, |
| | 5523 | ).annotate({ identifier: "V2ItemCompletedNotification__DynamicToolCallOutputContentItem" }); |
| 4730 | | 5524 | |
| 4731 | export type V2ItemCompletedNotification__PatchApplyStatus = | 5525 | export type V2ItemCompletedNotification__DynamicToolCallStatus = |
| 4732 | | "inProgress" | 5526 | | "inProgress" |
| 4733 | | "completed" | 5527 | | "completed" |
| 4734 | | "failed" | 5528 | | "failed"; |
| 4735 | | "declined"; | 5529 | export const V2ItemCompletedNotification__DynamicToolCallStatus = Schema.Literals([ |
| 4736 | export const V2ItemCompletedNotification__PatchApplyStatus = Schema.Literals([ | | |
| 4737 | "inProgress", | 5530 | "inProgress", |
| 4738 | "completed", | 5531 | "completed", |
| 4739 | "failed", | 5532 | "failed", |
| 4740 | "declined", | 5533 | ]).annotate({ identifier: "V2ItemCompletedNotification__DynamicToolCallStatus" }); |
| 4741 | ]); | | |
| 4742 | | 5534 | |
| 4743 | export type V2ItemCompletedNotification__PatchChangeKind = | 5535 | export type V2ItemCompletedNotification__CollabAgentStatus = |
| 4744 | | { readonly type: "add" } | 5536 | | "pendingInit" |
| 4745 | | { readonly type: "delete" } | 5537 | | "running" |
| 4746 | | { readonly move_path?: string | null; readonly type: "update" }; | 5538 | | "interrupted" |
| 4747 | export const V2ItemCompletedNotification__PatchChangeKind = Schema.Union( | 5539 | | "completed" |
| 4748 | [ | 5540 | | "errored" |
| 4749 | Schema.Struct({ | 5541 | | "shutdown" |
| 4750 | type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }), | 5542 | | "notFound"; |
| 4751 | }).annotate({ title: "AddPatchChangeKind" }), | 5543 | export const V2ItemCompletedNotification__CollabAgentStatus = Schema.Literals([ |
| 4752 | Schema.Struct({ | 5544 | "pendingInit", |
| 4753 | type: Schema.Literal("delete").annotate({ title: "DeletePatchChangeKindType" }), | 5545 | "running", |
| 4754 | }).annotate({ title: "DeletePatchChangeKind" }), | 5546 | "interrupted", |
| 4755 | Schema.Struct({ | 5547 | "completed", |
| 4756 | move_path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 5548 | "errored", |
| 4757 | type: Schema.Literal("update").annotate({ title: "UpdatePatchChangeKindType" }), | 5549 | "shutdown", |
| 4758 | }).annotate({ title: "UpdatePatchChangeKind" }), | 5550 | "notFound", |
| 4759 | ], | 5551 | ]).annotate({ identifier: "V2ItemCompletedNotification__CollabAgentStatus" }); |
| 4760 | { mode: "oneOf" }, | | |
| 4761 | ); | | |
| 4762 | | 5552 | |
| 4763 | export type V2ItemCompletedNotification__ReasoningEffort = string; | 5553 | export type V2ItemCompletedNotification__ReasoningEffort = string; |
| 4764 | export const V2ItemCompletedNotification__ReasoningEffort = Schema.String.annotate({ | 5554 | export const V2ItemCompletedNotification__ReasoningEffort = Schema.String.annotate({ |
| 4765 | description: "A non-empty reasoning effort value advertised by the model.", | 5555 | description: "A non-empty reasoning effort value advertised by the model.", |
| 4766 | }).check(Schema.isMinLength(1)); | 5556 | }).check( |
| | 5557 | Schema.isMinLength(1).annotate({ |
| | 5558 | expected: "a value with a length of at least 1", |
| | 5559 | identifier: "V2ItemCompletedNotification__ReasoningEffort", |
| | 5560 | }), |
| | 5561 | ); |
| | 5562 | |
| | 5563 | export type V2ItemCompletedNotification__CollabAgentToolCallStatus = |
| | 5564 | | "inProgress" |
| | 5565 | | "completed" |
| | 5566 | | "failed" |
| | 5567 | | "interrupted"; |
| | 5568 | export const V2ItemCompletedNotification__CollabAgentToolCallStatus = Schema.Literals([ |
| | 5569 | "inProgress", |
| | 5570 | "completed", |
| | 5571 | "failed", |
| | 5572 | "interrupted", |
| | 5573 | ]).annotate({ identifier: "V2ItemCompletedNotification__CollabAgentToolCallStatus" }); |
| | 5574 | |
| | 5575 | export type V2ItemCompletedNotification__CollabAgentTool = |
| | 5576 | | "spawnAgent" |
| | 5577 | | "sendInput" |
| | 5578 | | "resumeAgent" |
| | 5579 | | "wait" |
| | 5580 | | "closeAgent" |
| | 5581 | | "sendMessage" |
| | 5582 | | "followupTask" |
| | 5583 | | "interruptAgent" |
| | 5584 | | "listAgents"; |
| | 5585 | export const V2ItemCompletedNotification__CollabAgentTool = Schema.Literals([ |
| | 5586 | "spawnAgent", |
| | 5587 | "sendInput", |
| | 5588 | "resumeAgent", |
| | 5589 | "wait", |
| | 5590 | "closeAgent", |
| | 5591 | "sendMessage", |
| | 5592 | "followupTask", |
| | 5593 | "interruptAgent", |
| | 5594 | "listAgents", |
| | 5595 | ]).annotate({ identifier: "V2ItemCompletedNotification__CollabAgentTool" }); |
| 4767 | | 5596 | |
| 4768 | export type V2ItemCompletedNotification__SubAgentActivityKind = | 5597 | export type V2ItemCompletedNotification__SubAgentActivityKind = |
| 4769 | | "started" | 5598 | | "started" |
| ... | @@ -4775,32 +5604,7 @@ export const V2ItemCompletedNotification__SubAgentActivityKind = Schema.Literals | ... | @@ -4775,32 +5604,7 @@ export const V2ItemCompletedNotification__SubAgentActivityKind = Schema.Literals |
| 4775 | "interacted", | 5604 | "interacted", |
| 4776 | "interrupted", | 5605 | "interrupted", |
| 4777 | "completed", | 5606 | "completed", |
| 4778 | ]); | 5607 | ]).annotate({ identifier: "V2ItemCompletedNotification__SubAgentActivityKind" }); |
| 4779 | | | |
| 4780 | export type V2ItemCompletedNotification__TextElement = { | | |
| 4781 | readonly byteRange: { readonly end: number; readonly start: number }; | | |
| 4782 | readonly placeholder?: string | null; | | |
| 4783 | }; | | |
| 4784 | export const V2ItemCompletedNotification__TextElement = Schema.Struct({ | | |
| 4785 | byteRange: Schema.Struct({ | | |
| 4786 | end: Schema.Number.annotate({ format: "uint" }) | | |
| 4787 | .check(Schema.isInt()) | | |
| 4788 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 4789 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 4790 | .check(Schema.isInt()) | | |
| 4791 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 4792 | }).annotate({ | | |
| 4793 | description: "Byte range in the parent `text` buffer that this element occupies.", | | |
| 4794 | }), | | |
| 4795 | placeholder: Schema.optionalKey( | | |
| 4796 | Schema.Union([ | | |
| 4797 | Schema.String.annotate({ | | |
| 4798 | description: "Optional human-readable placeholder for the element, displayed in the UI.", | | |
| 4799 | }), | | |
| 4800 | Schema.Null, | | |
| 4801 | ]), | | |
| 4802 | ), | | |
| 4803 | }); | | |
| 4804 | | 5608 | |
| 4805 | export type V2ItemCompletedNotification__WebSearchAction = | 5609 | export type V2ItemCompletedNotification__WebSearchAction = |
| 4806 | | { | 5610 | | { |
| ... | @@ -4832,33 +5636,77 @@ export const V2ItemCompletedNotification__WebSearchAction = Schema.Union( | ... | @@ -4832,33 +5636,77 @@ export const V2ItemCompletedNotification__WebSearchAction = Schema.Union( |
| 4832 | }).annotate({ title: "OtherWebSearchAction" }), | 5636 | }).annotate({ title: "OtherWebSearchAction" }), |
| 4833 | ], | 5637 | ], |
| 4834 | { mode: "oneOf" }, | 5638 | { mode: "oneOf" }, |
| 4835 | ); | 5639 | ).annotate({ identifier: "V2ItemCompletedNotification__WebSearchAction" }); |
| 4836 | | 5640 | |
| 4837 | export type V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf = string; | 5641 | export type V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf = string; |
| 4838 | export const V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf = | 5642 | export const V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf = |
| 4839 | Schema.String.annotate({ | 5643 | Schema.String.annotate({ |
| 4840 | description: | 5644 | description: |
| 4841 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 5645 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 5646 | identifier: "V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf", |
| | 5647 | }); |
| | 5648 | |
| | 5649 | export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource = |
| | 5650 | | "shell" |
| | 5651 | | "unifiedExec"; |
| | 5652 | export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource = |
| | 5653 | Schema.Literals(["shell", "unifiedExec"]).annotate({ |
| | 5654 | identifier: "V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource", |
| | 5655 | }); |
| | 5656 | |
| | 5657 | export type V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol = |
| | 5658 | | "http" |
| | 5659 | | "https" |
| | 5660 | | "socks5Tcp" |
| | 5661 | | "socks5Udp"; |
| | 5662 | export const V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol = |
| | 5663 | Schema.Literals(["http", "https", "socks5Tcp", "socks5Udp"]).annotate({ |
| | 5664 | identifier: "V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol", |
| | 5665 | }); |
| | 5666 | |
| | 5667 | export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode = |
| | 5668 | | "read" |
| | 5669 | | "write" |
| | 5670 | | "deny"; |
| | 5671 | export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode = |
| | 5672 | Schema.Literals(["read", "write", "deny"]).annotate({ |
| | 5673 | identifier: "V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode", |
| | 5674 | }); |
| | 5675 | |
| | 5676 | export type V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString = string; |
| | 5677 | export const V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString = |
| | 5678 | Schema.String.annotate({ |
| | 5679 | identifier: "V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString", |
| 4842 | }); | 5680 | }); |
| 4843 | | 5681 | |
| 4844 | export type V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions = { | 5682 | export type V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions = { |
| 4845 | readonly enabled?: boolean | null; | 5683 | readonly enabled?: boolean | null; |
| 4846 | }; | 5684 | }; |
| 4847 | export const V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions = | 5685 | export const V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions = |
| 4848 | Schema.Struct({ enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])) }); | 5686 | Schema.Struct({ |
| | 5687 | enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 5688 | }).annotate({ |
| | 5689 | identifier: "V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions", |
| | 5690 | }); |
| 4849 | | 5691 | |
| 4850 | export type V2ItemGuardianApprovalReviewCompletedNotification__AutoReviewDecisionSource = "agent"; | 5692 | export type V2ItemGuardianApprovalReviewCompletedNotification__AutoReviewDecisionSource = "agent"; |
| 4851 | export const V2ItemGuardianApprovalReviewCompletedNotification__AutoReviewDecisionSource = | 5693 | export const V2ItemGuardianApprovalReviewCompletedNotification__AutoReviewDecisionSource = |
| 4852 | Schema.Literal("agent").annotate({ | 5694 | Schema.Literal("agent").annotate({ |
| 4853 | description: "[UNSTABLE] Source that produced a terminal approval auto-review decision.", | 5695 | description: "[UNSTABLE] Source that produced a terminal approval auto-review decision.", |
| | 5696 | identifier: "V2ItemGuardianApprovalReviewCompletedNotification__AutoReviewDecisionSource", |
| 4854 | }); | 5697 | }); |
| 4855 | | 5698 | |
| 4856 | export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode = | 5699 | export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel = |
| 4857 | | "read" | 5700 | | "low" |
| 4858 | | "write" | 5701 | | "medium" |
| 4859 | | "deny"; | 5702 | | "high" |
| 4860 | export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode = | 5703 | | "critical"; |
| 4861 | Schema.Literals(["read", "write", "deny"]); | 5704 | export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel = Schema.Literals( |
| | 5705 | ["low", "medium", "high", "critical"], |
| | 5706 | ).annotate({ |
| | 5707 | description: "[UNSTABLE] Risk level assigned by approval auto-review.", |
| | 5708 | identifier: "V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel", |
| | 5709 | }); |
| 4862 | | 5710 | |
| 4863 | export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewStatus = | 5711 | export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewStatus = |
| 4864 | | "inProgress" | 5712 | | "inProgress" |
| ... | @@ -4869,23 +5717,9 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalR | ... | @@ -4869,23 +5717,9 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalR |
| 4869 | export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewStatus = | 5717 | export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewStatus = |
| 4870 | Schema.Literals(["inProgress", "approved", "denied", "timedOut", "aborted"]).annotate({ | 5718 | Schema.Literals(["inProgress", "approved", "denied", "timedOut", "aborted"]).annotate({ |
| 4871 | description: "[UNSTABLE] Lifecycle state for an approval auto-review.", | 5719 | description: "[UNSTABLE] Lifecycle state for an approval auto-review.", |
| | 5720 | identifier: "V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewStatus", |
| 4872 | }); | 5721 | }); |
| 4873 | | 5722 | |
| 4874 | export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource = | | |
| 4875 | | "shell" | | |
| 4876 | | "unifiedExec"; | | |
| 4877 | export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource = | | |
| 4878 | Schema.Literals(["shell", "unifiedExec"]); | | |
| 4879 | | | |
| 4880 | export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel = | | |
| 4881 | | "low" | | |
| 4882 | | "medium" | | |
| 4883 | | "high" | | |
| 4884 | | "critical"; | | |
| 4885 | export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel = Schema.Literals( | | |
| 4886 | ["low", "medium", "high", "critical"], | | |
| 4887 | ).annotate({ description: "[UNSTABLE] Risk level assigned by approval auto-review." }); | | |
| 4888 | | | |
| 4889 | export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuthorization = | 5723 | export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuthorization = |
| 4890 | | "unknown" | 5724 | | "unknown" |
| 4891 | | "low" | 5725 | | "low" |
| ... | @@ -4894,55 +5728,59 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAutho | ... | @@ -4894,55 +5728,59 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAutho |
| 4894 | export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuthorization = | 5728 | export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuthorization = |
| 4895 | Schema.Literals(["unknown", "low", "medium", "high"]).annotate({ | 5729 | Schema.Literals(["unknown", "low", "medium", "high"]).annotate({ |
| 4896 | description: "[UNSTABLE] Authorization level assigned by approval auto-review.", | 5730 | description: "[UNSTABLE] Authorization level assigned by approval auto-review.", |
| | 5731 | identifier: "V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuthorization", |
| 4897 | }); | 5732 | }); |
| 4898 | | 5733 | |
| 4899 | export type V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString = string; | | |
| 4900 | export const V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString = Schema.String; | | |
| 4901 | | | |
| 4902 | export type V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol = | | |
| 4903 | | "http" | | |
| 4904 | | "https" | | |
| 4905 | | "socks5Tcp" | | |
| 4906 | | "socks5Udp"; | | |
| 4907 | export const V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol = | | |
| 4908 | Schema.Literals(["http", "https", "socks5Tcp", "socks5Udp"]); | | |
| 4909 | | | |
| 4910 | export type V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf = string; | 5734 | export type V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf = string; |
| 4911 | export const V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf = | 5735 | export const V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf = |
| 4912 | Schema.String.annotate({ | 5736 | Schema.String.annotate({ |
| 4913 | description: | 5737 | description: |
| 4914 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 5738 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 5739 | identifier: "V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf", |
| 4915 | }); | 5740 | }); |
| 4916 | | 5741 | |
| 4917 | export type V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions = { | 5742 | export type V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource = |
| 4918 | readonly enabled?: boolean | null; | 5743 | | "shell" |
| 4919 | }; | 5744 | | "unifiedExec"; |
| 4920 | export const V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions = | 5745 | export const V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource = |
| 4921 | Schema.Struct({ enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])) }); | 5746 | Schema.Literals(["shell", "unifiedExec"]).annotate({ |
| | 5747 | identifier: "V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource", |
| | 5748 | }); |
| | 5749 | |
| | 5750 | export type V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol = |
| | 5751 | | "http" |
| | 5752 | | "https" |
| | 5753 | | "socks5Tcp" |
| | 5754 | | "socks5Udp"; |
| | 5755 | export const V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol = |
| | 5756 | Schema.Literals(["http", "https", "socks5Tcp", "socks5Udp"]).annotate({ |
| | 5757 | identifier: "V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol", |
| | 5758 | }); |
| 4922 | | 5759 | |
| 4923 | export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode = | 5760 | export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode = |
| 4924 | | "read" | 5761 | | "read" |
| 4925 | | "write" | 5762 | | "write" |
| 4926 | | "deny"; | 5763 | | "deny"; |
| 4927 | export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode = | 5764 | export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode = |
| 4928 | Schema.Literals(["read", "write", "deny"]); | 5765 | Schema.Literals(["read", "write", "deny"]).annotate({ |
| | 5766 | identifier: "V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode", |
| | 5767 | }); |
| 4929 | | 5768 | |
| 4930 | export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewStatus = | 5769 | export type V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString = string; |
| 4931 | | "inProgress" | 5770 | export const V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString = |
| 4932 | | "approved" | 5771 | Schema.String.annotate({ |
| 4933 | | "denied" | 5772 | identifier: "V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString", |
| 4934 | | "timedOut" | | |
| 4935 | | "aborted"; | | |
| 4936 | export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewStatus = | | |
| 4937 | Schema.Literals(["inProgress", "approved", "denied", "timedOut", "aborted"]).annotate({ | | |
| 4938 | description: "[UNSTABLE] Lifecycle state for an approval auto-review.", | | |
| 4939 | }); | 5773 | }); |
| 4940 | | 5774 | |
| 4941 | export type V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource = | 5775 | export type V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions = { |
| 4942 | | "shell" | 5776 | readonly enabled?: boolean | null; |
| 4943 | | "unifiedExec"; | 5777 | }; |
| 4944 | export const V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource = | 5778 | export const V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions = |
| 4945 | Schema.Literals(["shell", "unifiedExec"]); | 5779 | Schema.Struct({ |
| | 5780 | enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 5781 | }).annotate({ |
| | 5782 | identifier: "V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions", |
| | 5783 | }); |
| 4946 | | 5784 | |
| 4947 | export type V2ItemGuardianApprovalReviewStartedNotification__GuardianRiskLevel = | 5785 | export type V2ItemGuardianApprovalReviewStartedNotification__GuardianRiskLevel = |
| 4948 | | "low" | 5786 | | "low" |
| ... | @@ -4954,7 +5792,22 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianRiskLevel | ... | @@ -4954,7 +5792,22 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianRiskLevel |
| 4954 | "medium", | 5792 | "medium", |
| 4955 | "high", | 5793 | "high", |
| 4956 | "critical", | 5794 | "critical", |
| 4957 | ]).annotate({ description: "[UNSTABLE] Risk level assigned by approval auto-review." }); | 5795 | ]).annotate({ |
| | 5796 | description: "[UNSTABLE] Risk level assigned by approval auto-review.", |
| | 5797 | identifier: "V2ItemGuardianApprovalReviewStartedNotification__GuardianRiskLevel", |
| | 5798 | }); |
| | 5799 | |
| | 5800 | export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewStatus = |
| | 5801 | | "inProgress" |
| | 5802 | | "approved" |
| | 5803 | | "denied" |
| | 5804 | | "timedOut" |
| | 5805 | | "aborted"; |
| | 5806 | export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewStatus = |
| | 5807 | Schema.Literals(["inProgress", "approved", "denied", "timedOut", "aborted"]).annotate({ |
| | 5808 | description: "[UNSTABLE] Lifecycle state for an approval auto-review.", |
| | 5809 | identifier: "V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewStatus", |
| | 5810 | }); |
| 4958 | | 5811 | |
| 4959 | export type V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthorization = | 5812 | export type V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthorization = |
| 4960 | | "unknown" | 5813 | | "unknown" |
| ... | @@ -4964,42 +5817,102 @@ export type V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthori | ... | @@ -4964,42 +5817,102 @@ export type V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthori |
| 4964 | export const V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthorization = | 5817 | export const V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthorization = |
| 4965 | Schema.Literals(["unknown", "low", "medium", "high"]).annotate({ | 5818 | Schema.Literals(["unknown", "low", "medium", "high"]).annotate({ |
| 4966 | description: "[UNSTABLE] Authorization level assigned by approval auto-review.", | 5819 | description: "[UNSTABLE] Authorization level assigned by approval auto-review.", |
| | 5820 | identifier: "V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthorization", |
| 4967 | }); | 5821 | }); |
| 4968 | | 5822 | |
| 4969 | export type V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString = string; | 5823 | export type V2ItemStartedNotification__ByteRange = { readonly end: number; readonly start: number }; |
| 4970 | export const V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString = Schema.String; | 5824 | export const V2ItemStartedNotification__ByteRange = Schema.Struct({ |
| | 5825 | end: Schema.Number.annotate({ format: "uint" }) |
| | 5826 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 5827 | .check( |
| | 5828 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 5829 | ), |
| | 5830 | start: Schema.Number.annotate({ format: "uint" }) |
| | 5831 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 5832 | .check( |
| | 5833 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 5834 | ), |
| | 5835 | }).annotate({ identifier: "V2ItemStartedNotification__ByteRange" }); |
| 4971 | | 5836 | |
| 4972 | export type V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol = | 5837 | export type V2ItemStartedNotification__ImageDetail = "auto" | "low" | "high" | "original"; |
| 4973 | | "http" | 5838 | export const V2ItemStartedNotification__ImageDetail = Schema.Literals([ |
| 4974 | | "https" | 5839 | "auto", |
| 4975 | | "socks5Tcp" | 5840 | "low", |
| 4976 | | "socks5Udp"; | 5841 | "high", |
| 4977 | export const V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol = | 5842 | "original", |
| 4978 | Schema.Literals(["http", "https", "socks5Tcp", "socks5Udp"]); | 5843 | ]).annotate({ identifier: "V2ItemStartedNotification__ImageDetail" }); |
| 4979 | | 5844 | |
| 4980 | export type V2ItemStartedNotification__AbsolutePathBuf = string; | 5845 | export type V2ItemStartedNotification__HookPromptFragment = { |
| 4981 | export const V2ItemStartedNotification__AbsolutePathBuf = Schema.String.annotate({ | 5846 | readonly hookRunId: string; |
| 4982 | description: | 5847 | readonly text: string; |
| 4983 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 5848 | }; |
| | 5849 | export const V2ItemStartedNotification__HookPromptFragment = Schema.Struct({ |
| | 5850 | hookRunId: Schema.String, |
| | 5851 | text: Schema.String, |
| | 5852 | }).annotate({ identifier: "V2ItemStartedNotification__HookPromptFragment" }); |
| | 5853 | |
| | 5854 | export type V2ItemStartedNotification__MemoryCitationEntry = { |
| | 5855 | readonly lineEnd: number; |
| | 5856 | readonly lineStart: number; |
| | 5857 | readonly note: string; |
| | 5858 | readonly path: string; |
| | 5859 | }; |
| | 5860 | export const V2ItemStartedNotification__MemoryCitationEntry = Schema.Struct({ |
| | 5861 | lineEnd: Schema.Number.annotate({ format: "uint32" }) |
| | 5862 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 5863 | .check( |
| | 5864 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 5865 | ), |
| | 5866 | lineStart: Schema.Number.annotate({ format: "uint32" }) |
| | 5867 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 5868 | .check( |
| | 5869 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 5870 | ), |
| | 5871 | note: Schema.String, |
| | 5872 | path: Schema.String, |
| | 5873 | }).annotate({ identifier: "V2ItemStartedNotification__MemoryCitationEntry" }); |
| | 5874 | |
| | 5875 | export type V2ItemStartedNotification__MessagePhase = "commentary" | "final_answer"; |
| | 5876 | export const V2ItemStartedNotification__MessagePhase = Schema.Union( |
| | 5877 | [ |
| | 5878 | Schema.Literal("commentary").annotate({ |
| | 5879 | description: |
| | 5880 | "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.", |
| | 5881 | }), |
| | 5882 | Schema.Literal("final_answer").annotate({ |
| | 5883 | description: "The assistant's terminal answer text for the current turn.", |
| | 5884 | }), |
| | 5885 | ], |
| | 5886 | { mode: "oneOf" }, |
| | 5887 | ).annotate({ |
| | 5888 | description: |
| | 5889 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', |
| | 5890 | identifier: "V2ItemStartedNotification__MessagePhase", |
| 4984 | }); | 5891 | }); |
| 4985 | | 5892 | |
| 4986 | export type V2ItemStartedNotification__CollabAgentStatus = | 5893 | export type V2ItemStartedNotification__AbsolutePathBuf = string; |
| 4987 | | "pendingInit" | 5894 | export const V2ItemStartedNotification__AbsolutePathBuf = Schema.String.annotate({ |
| 4988 | | "running" | 5895 | description: |
| 4989 | | "interrupted" | 5896 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| 4990 | | "completed" | 5897 | identifier: "V2ItemStartedNotification__AbsolutePathBuf", |
| 4991 | | "errored" | 5898 | }); |
| 4992 | | "shutdown" | 5899 | |
| 4993 | | "notFound"; | 5900 | export type V2ItemStartedNotification__LegacyAppPathString = string; |
| 4994 | export const V2ItemStartedNotification__CollabAgentStatus = Schema.Literals([ | 5901 | export const V2ItemStartedNotification__LegacyAppPathString = Schema.String.annotate({ |
| 4995 | "pendingInit", | 5902 | identifier: "V2ItemStartedNotification__LegacyAppPathString", |
| 4996 | "running", | 5903 | }); |
| 4997 | "interrupted", | 5904 | |
| 4998 | "completed", | 5905 | export type V2ItemStartedNotification__CommandExecutionSource = |
| 4999 | "errored", | 5906 | | "agent" |
| 5000 | "shutdown", | 5907 | | "userShell" |
| 5001 | "notFound", | 5908 | | "unifiedExecStartup" |
| 5002 | ]); | 5909 | | "unifiedExecInteraction"; |
| | 5910 | export const V2ItemStartedNotification__CommandExecutionSource = Schema.Literals([ |
| | 5911 | "agent", |
| | 5912 | "userShell", |
| | 5913 | "unifiedExecStartup", |
| | 5914 | "unifiedExecInteraction", |
| | 5915 | ]).annotate({ identifier: "V2ItemStartedNotification__CommandExecutionSource" }); |
| 5003 | | 5916 | |
| 5004 | export type V2ItemStartedNotification__CommandExecutionStatus = | 5917 | export type V2ItemStartedNotification__CommandExecutionStatus = |
| 5005 | | "inProgress" | 5918 | | "inProgress" |
| ... | @@ -5011,65 +5924,39 @@ export const V2ItemStartedNotification__CommandExecutionStatus = Schema.Literals | ... | @@ -5011,65 +5924,39 @@ export const V2ItemStartedNotification__CommandExecutionStatus = Schema.Literals |
| 5011 | "completed", | 5924 | "completed", |
| 5012 | "failed", | 5925 | "failed", |
| 5013 | "declined", | 5926 | "declined", |
| 5014 | ]); | 5927 | ]).annotate({ identifier: "V2ItemStartedNotification__CommandExecutionStatus" }); |
| 5015 | | 5928 | |
| 5016 | export type V2ItemStartedNotification__DynamicToolCallOutputContentItem = | 5929 | export type V2ItemStartedNotification__PatchChangeKind = |
| 5017 | | { readonly text: string; readonly type: "inputText" } | 5930 | | { readonly type: "add" } |
| 5018 | | { readonly imageUrl: string; readonly type: "inputImage" } | 5931 | | { readonly type: "delete" } |
| 5019 | | { readonly audioUrl: string; readonly type: "inputAudio" }; | 5932 | | { readonly move_path?: string | null; readonly type: "update" }; |
| 5020 | export const V2ItemStartedNotification__DynamicToolCallOutputContentItem = Schema.Union( | 5933 | export const V2ItemStartedNotification__PatchChangeKind = Schema.Union( |
| 5021 | [ | 5934 | [ |
| 5022 | Schema.Struct({ | 5935 | Schema.Struct({ |
| 5023 | text: Schema.String, | 5936 | type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }), |
| 5024 | type: Schema.Literal("inputText").annotate({ | 5937 | }).annotate({ title: "AddPatchChangeKind" }), |
| 5025 | title: "InputTextDynamicToolCallOutputContentItemType", | | |
| 5026 | }), | | |
| 5027 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), | | |
| 5028 | Schema.Struct({ | 5938 | Schema.Struct({ |
| 5029 | imageUrl: Schema.String, | 5939 | type: Schema.Literal("delete").annotate({ title: "DeletePatchChangeKindType" }), |
| 5030 | type: Schema.Literal("inputImage").annotate({ | 5940 | }).annotate({ title: "DeletePatchChangeKind" }), |
| 5031 | title: "InputImageDynamicToolCallOutputContentItemType", | | |
| 5032 | }), | | |
| 5033 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), | | |
| 5034 | Schema.Struct({ | 5941 | Schema.Struct({ |
| 5035 | audioUrl: Schema.String, | 5942 | move_path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 5036 | type: Schema.Literal("inputAudio").annotate({ | 5943 | type: Schema.Literal("update").annotate({ title: "UpdatePatchChangeKindType" }), |
| 5037 | title: "InputAudioDynamicToolCallOutputContentItemType", | 5944 | }).annotate({ title: "UpdatePatchChangeKind" }), |
| 5038 | }), | | |
| 5039 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), | | |
| 5040 | ], | 5945 | ], |
| 5041 | { mode: "oneOf" }, | 5946 | { mode: "oneOf" }, |
| 5042 | ); | 5947 | ).annotate({ identifier: "V2ItemStartedNotification__PatchChangeKind" }); |
| 5043 | | 5948 | |
| 5044 | export type V2ItemStartedNotification__DynamicToolCallStatus = | 5949 | export type V2ItemStartedNotification__PatchApplyStatus = |
| 5045 | | "inProgress" | 5950 | | "inProgress" |
| 5046 | | "completed" | 5951 | | "completed" |
| 5047 | | "failed"; | 5952 | | "failed" |
| 5048 | export const V2ItemStartedNotification__DynamicToolCallStatus = Schema.Literals([ | 5953 | | "declined"; |
| | 5954 | export const V2ItemStartedNotification__PatchApplyStatus = Schema.Literals([ |
| 5049 | "inProgress", | 5955 | "inProgress", |
| 5050 | "completed", | 5956 | "completed", |
| 5051 | "failed", | 5957 | "failed", |
| 5052 | ]); | 5958 | "declined", |
| 5053 | | 5959 | ]).annotate({ identifier: "V2ItemStartedNotification__PatchApplyStatus" }); |
| 5054 | export type V2ItemStartedNotification__HookPromptFragment = { | | |
| 5055 | readonly hookRunId: string; | | |
| 5056 | readonly text: string; | | |
| 5057 | }; | | |
| 5058 | export const V2ItemStartedNotification__HookPromptFragment = Schema.Struct({ | | |
| 5059 | hookRunId: Schema.String, | | |
| 5060 | text: Schema.String, | | |
| 5061 | }); | | |
| 5062 | | | |
| 5063 | export type V2ItemStartedNotification__ImageDetail = "auto" | "low" | "high" | "original"; | | |
| 5064 | export const V2ItemStartedNotification__ImageDetail = Schema.Literals([ | | |
| 5065 | "auto", | | |
| 5066 | "low", | | |
| 5067 | "high", | | |
| 5068 | "original", | | |
| 5069 | ]); | | |
| 5070 | | | |
| 5071 | export type V2ItemStartedNotification__LegacyAppPathString = string; | | |
| 5072 | export const V2ItemStartedNotification__LegacyAppPathString = Schema.String; | | |
| 5073 | | 5960 | |
| 5074 | export type V2ItemStartedNotification__McpToolCallAppContext = { | 5961 | export type V2ItemStartedNotification__McpToolCallAppContext = { |
| 5075 | readonly actionName?: string | null; | 5962 | readonly actionName?: string | null; |
| ... | @@ -5084,93 +5971,130 @@ export const V2ItemStartedNotification__McpToolCallAppContext = Schema.Struct({ | ... | @@ -5084,93 +5971,130 @@ export const V2ItemStartedNotification__McpToolCallAppContext = Schema.Struct({ |
| 5084 | connectorId: Schema.String, | 5971 | connectorId: Schema.String, |
| 5085 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 5972 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 5086 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 5973 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 5087 | }); | 5974 | }).annotate({ identifier: "V2ItemStartedNotification__McpToolCallAppContext" }); |
| 5088 | | 5975 | |
| 5089 | export type V2ItemStartedNotification__McpToolCallError = { readonly message: string }; | 5976 | export type V2ItemStartedNotification__McpToolCallError = { readonly message: string }; |
| 5090 | export const V2ItemStartedNotification__McpToolCallError = Schema.Struct({ | 5977 | export const V2ItemStartedNotification__McpToolCallError = Schema.Struct({ |
| 5091 | message: Schema.String, | 5978 | message: Schema.String, |
| 5092 | }); | 5979 | }).annotate({ identifier: "V2ItemStartedNotification__McpToolCallError" }); |
| 5093 | | 5980 | |
| 5094 | export type V2ItemStartedNotification__McpToolCallResult = { | 5981 | export type V2ItemStartedNotification__McpToolCallResult = { |
| 5095 | readonly _meta?: unknown; | 5982 | readonly _meta?: Schema.Json; |
| 5096 | readonly content: ReadonlyArray<unknown>; | 5983 | readonly content: ReadonlyArray<Schema.Json>; |
| 5097 | readonly structuredContent?: unknown; | 5984 | readonly structuredContent?: Schema.Json; |
| 5098 | }; | 5985 | }; |
| 5099 | export const V2ItemStartedNotification__McpToolCallResult = Schema.Struct({ | 5986 | export const V2ItemStartedNotification__McpToolCallResult = Schema.Struct({ |
| 5100 | _meta: Schema.optionalKey(Schema.Unknown), | 5987 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 5101 | content: Schema.Array(Schema.Unknown), | 5988 | content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), |
| 5102 | structuredContent: Schema.optionalKey(Schema.Unknown), | 5989 | structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 5103 | }); | 5990 | }).annotate({ identifier: "V2ItemStartedNotification__McpToolCallResult" }); |
| 5104 | | 5991 | |
| 5105 | export type V2ItemStartedNotification__McpToolCallStatus = "inProgress" | "completed" | "failed"; | 5992 | export type V2ItemStartedNotification__McpToolCallStatus = "inProgress" | "completed" | "failed"; |
| 5106 | export const V2ItemStartedNotification__McpToolCallStatus = Schema.Literals([ | 5993 | export const V2ItemStartedNotification__McpToolCallStatus = Schema.Literals([ |
| 5107 | "inProgress", | 5994 | "inProgress", |
| 5108 | "completed", | 5995 | "completed", |
| 5109 | "failed", | 5996 | "failed", |
| 5110 | ]); | 5997 | ]).annotate({ identifier: "V2ItemStartedNotification__McpToolCallStatus" }); |
| 5111 | | | |
| 5112 | export type V2ItemStartedNotification__MemoryCitationEntry = { | | |
| 5113 | readonly lineEnd: number; | | |
| 5114 | readonly lineStart: number; | | |
| 5115 | readonly note: string; | | |
| 5116 | readonly path: string; | | |
| 5117 | }; | | |
| 5118 | export const V2ItemStartedNotification__MemoryCitationEntry = Schema.Struct({ | | |
| 5119 | lineEnd: Schema.Number.annotate({ format: "uint32" }) | | |
| 5120 | .check(Schema.isInt()) | | |
| 5121 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 5122 | lineStart: Schema.Number.annotate({ format: "uint32" }) | | |
| 5123 | .check(Schema.isInt()) | | |
| 5124 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 5125 | note: Schema.String, | | |
| 5126 | path: Schema.String, | | |
| 5127 | }); | | |
| 5128 | | 5998 | |
| 5129 | export type V2ItemStartedNotification__MessagePhase = "commentary" | "final_answer"; | 5999 | export type V2ItemStartedNotification__DynamicToolCallOutputContentItem = |
| 5130 | export const V2ItemStartedNotification__MessagePhase = Schema.Literals([ | 6000 | | { readonly text: string; readonly type: "inputText" } |
| 5131 | "commentary", | 6001 | | { readonly imageUrl: string; readonly type: "inputImage" } |
| 5132 | "final_answer", | 6002 | | { readonly audioUrl: string; readonly type: "inputAudio" }; |
| 5133 | ]).annotate({ | 6003 | export const V2ItemStartedNotification__DynamicToolCallOutputContentItem = Schema.Union( |
| 5134 | description: | 6004 | [ |
| 5135 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', | 6005 | Schema.Struct({ |
| 5136 | }); | 6006 | text: Schema.String, |
| | 6007 | type: Schema.Literal("inputText").annotate({ |
| | 6008 | title: "InputTextDynamicToolCallOutputContentItemType", |
| | 6009 | }), |
| | 6010 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), |
| | 6011 | Schema.Struct({ |
| | 6012 | imageUrl: Schema.String, |
| | 6013 | type: Schema.Literal("inputImage").annotate({ |
| | 6014 | title: "InputImageDynamicToolCallOutputContentItemType", |
| | 6015 | }), |
| | 6016 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), |
| | 6017 | Schema.Struct({ |
| | 6018 | audioUrl: Schema.String, |
| | 6019 | type: Schema.Literal("inputAudio").annotate({ |
| | 6020 | title: "InputAudioDynamicToolCallOutputContentItemType", |
| | 6021 | }), |
| | 6022 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), |
| | 6023 | ], |
| | 6024 | { mode: "oneOf" }, |
| | 6025 | ).annotate({ identifier: "V2ItemStartedNotification__DynamicToolCallOutputContentItem" }); |
| 5137 | | 6026 | |
| 5138 | export type V2ItemStartedNotification__PatchApplyStatus = | 6027 | export type V2ItemStartedNotification__DynamicToolCallStatus = |
| 5139 | | "inProgress" | 6028 | | "inProgress" |
| 5140 | | "completed" | 6029 | | "completed" |
| 5141 | | "failed" | 6030 | | "failed"; |
| 5142 | | "declined"; | 6031 | export const V2ItemStartedNotification__DynamicToolCallStatus = Schema.Literals([ |
| 5143 | export const V2ItemStartedNotification__PatchApplyStatus = Schema.Literals([ | | |
| 5144 | "inProgress", | 6032 | "inProgress", |
| 5145 | "completed", | 6033 | "completed", |
| 5146 | "failed", | 6034 | "failed", |
| 5147 | "declined", | 6035 | ]).annotate({ identifier: "V2ItemStartedNotification__DynamicToolCallStatus" }); |
| 5148 | ]); | | |
| 5149 | | 6036 | |
| 5150 | export type V2ItemStartedNotification__PatchChangeKind = | 6037 | export type V2ItemStartedNotification__CollabAgentStatus = |
| 5151 | | { readonly type: "add" } | 6038 | | "pendingInit" |
| 5152 | | { readonly type: "delete" } | 6039 | | "running" |
| 5153 | | { readonly move_path?: string | null; readonly type: "update" }; | 6040 | | "interrupted" |
| 5154 | export const V2ItemStartedNotification__PatchChangeKind = Schema.Union( | 6041 | | "completed" |
| 5155 | [ | 6042 | | "errored" |
| 5156 | Schema.Struct({ | 6043 | | "shutdown" |
| 5157 | type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }), | 6044 | | "notFound"; |
| 5158 | }).annotate({ title: "AddPatchChangeKind" }), | 6045 | export const V2ItemStartedNotification__CollabAgentStatus = Schema.Literals([ |
| 5159 | Schema.Struct({ | 6046 | "pendingInit", |
| 5160 | type: Schema.Literal("delete").annotate({ title: "DeletePatchChangeKindType" }), | 6047 | "running", |
| 5161 | }).annotate({ title: "DeletePatchChangeKind" }), | 6048 | "interrupted", |
| 5162 | Schema.Struct({ | 6049 | "completed", |
| 5163 | move_path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 6050 | "errored", |
| 5164 | type: Schema.Literal("update").annotate({ title: "UpdatePatchChangeKindType" }), | 6051 | "shutdown", |
| 5165 | }).annotate({ title: "UpdatePatchChangeKind" }), | 6052 | "notFound", |
| 5166 | ], | 6053 | ]).annotate({ identifier: "V2ItemStartedNotification__CollabAgentStatus" }); |
| 5167 | { mode: "oneOf" }, | | |
| 5168 | ); | | |
| 5169 | | 6054 | |
| 5170 | export type V2ItemStartedNotification__ReasoningEffort = string; | 6055 | export type V2ItemStartedNotification__ReasoningEffort = string; |
| 5171 | export const V2ItemStartedNotification__ReasoningEffort = Schema.String.annotate({ | 6056 | export const V2ItemStartedNotification__ReasoningEffort = Schema.String.annotate({ |
| 5172 | description: "A non-empty reasoning effort value advertised by the model.", | 6057 | description: "A non-empty reasoning effort value advertised by the model.", |
| 5173 | }).check(Schema.isMinLength(1)); | 6058 | }).check( |
| | 6059 | Schema.isMinLength(1).annotate({ |
| | 6060 | expected: "a value with a length of at least 1", |
| | 6061 | identifier: "V2ItemStartedNotification__ReasoningEffort", |
| | 6062 | }), |
| | 6063 | ); |
| | 6064 | |
| | 6065 | export type V2ItemStartedNotification__CollabAgentToolCallStatus = |
| | 6066 | | "inProgress" |
| | 6067 | | "completed" |
| | 6068 | | "failed" |
| | 6069 | | "interrupted"; |
| | 6070 | export const V2ItemStartedNotification__CollabAgentToolCallStatus = Schema.Literals([ |
| | 6071 | "inProgress", |
| | 6072 | "completed", |
| | 6073 | "failed", |
| | 6074 | "interrupted", |
| | 6075 | ]).annotate({ identifier: "V2ItemStartedNotification__CollabAgentToolCallStatus" }); |
| | 6076 | |
| | 6077 | export type V2ItemStartedNotification__CollabAgentTool = |
| | 6078 | | "spawnAgent" |
| | 6079 | | "sendInput" |
| | 6080 | | "resumeAgent" |
| | 6081 | | "wait" |
| | 6082 | | "closeAgent" |
| | 6083 | | "sendMessage" |
| | 6084 | | "followupTask" |
| | 6085 | | "interruptAgent" |
| | 6086 | | "listAgents"; |
| | 6087 | export const V2ItemStartedNotification__CollabAgentTool = Schema.Literals([ |
| | 6088 | "spawnAgent", |
| | 6089 | "sendInput", |
| | 6090 | "resumeAgent", |
| | 6091 | "wait", |
| | 6092 | "closeAgent", |
| | 6093 | "sendMessage", |
| | 6094 | "followupTask", |
| | 6095 | "interruptAgent", |
| | 6096 | "listAgents", |
| | 6097 | ]).annotate({ identifier: "V2ItemStartedNotification__CollabAgentTool" }); |
| 5174 | | 6098 | |
| 5175 | export type V2ItemStartedNotification__SubAgentActivityKind = | 6099 | export type V2ItemStartedNotification__SubAgentActivityKind = |
| 5176 | | "started" | 6100 | | "started" |
| ... | @@ -5182,32 +6106,7 @@ export const V2ItemStartedNotification__SubAgentActivityKind = Schema.Literals([ | ... | @@ -5182,32 +6106,7 @@ export const V2ItemStartedNotification__SubAgentActivityKind = Schema.Literals([ |
| 5182 | "interacted", | 6106 | "interacted", |
| 5183 | "interrupted", | 6107 | "interrupted", |
| 5184 | "completed", | 6108 | "completed", |
| 5185 | ]); | 6109 | ]).annotate({ identifier: "V2ItemStartedNotification__SubAgentActivityKind" }); |
| 5186 | | | |
| 5187 | export type V2ItemStartedNotification__TextElement = { | | |
| 5188 | readonly byteRange: { readonly end: number; readonly start: number }; | | |
| 5189 | readonly placeholder?: string | null; | | |
| 5190 | }; | | |
| 5191 | export const V2ItemStartedNotification__TextElement = Schema.Struct({ | | |
| 5192 | byteRange: Schema.Struct({ | | |
| 5193 | end: Schema.Number.annotate({ format: "uint" }) | | |
| 5194 | .check(Schema.isInt()) | | |
| 5195 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 5196 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 5197 | .check(Schema.isInt()) | | |
| 5198 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 5199 | }).annotate({ | | |
| 5200 | description: "Byte range in the parent `text` buffer that this element occupies.", | | |
| 5201 | }), | | |
| 5202 | placeholder: Schema.optionalKey( | | |
| 5203 | Schema.Union([ | | |
| 5204 | Schema.String.annotate({ | | |
| 5205 | description: "Optional human-readable placeholder for the element, displayed in the UI.", | | |
| 5206 | }), | | |
| 5207 | Schema.Null, | | |
| 5208 | ]), | | |
| 5209 | ), | | |
| 5210 | }); | | |
| 5211 | | 6110 | |
| 5212 | export type V2ItemStartedNotification__WebSearchAction = | 6111 | export type V2ItemStartedNotification__WebSearchAction = |
| 5213 | | { | 6112 | | { |
| ... | @@ -5239,13 +6138,13 @@ export const V2ItemStartedNotification__WebSearchAction = Schema.Union( | ... | @@ -5239,13 +6138,13 @@ export const V2ItemStartedNotification__WebSearchAction = Schema.Union( |
| 5239 | }).annotate({ title: "OtherWebSearchAction" }), | 6138 | }).annotate({ title: "OtherWebSearchAction" }), |
| 5240 | ], | 6139 | ], |
| 5241 | { mode: "oneOf" }, | 6140 | { mode: "oneOf" }, |
| 5242 | ); | 6141 | ).annotate({ identifier: "V2ItemStartedNotification__WebSearchAction" }); |
| 5243 | | 6142 | |
| 5244 | export type V2ListMcpServerStatusParams__McpServerStatusDetail = "full" | "toolsAndAuthOnly"; | 6143 | export type V2ListMcpServerStatusParams__McpServerStatusDetail = "full" | "toolsAndAuthOnly"; |
| 5245 | export const V2ListMcpServerStatusParams__McpServerStatusDetail = Schema.Literals([ | 6144 | export const V2ListMcpServerStatusParams__McpServerStatusDetail = Schema.Literals([ |
| 5246 | "full", | 6145 | "full", |
| 5247 | "toolsAndAuthOnly", | 6146 | "toolsAndAuthOnly", |
| 5248 | ]); | 6147 | ]).annotate({ identifier: "V2ListMcpServerStatusParams__McpServerStatusDetail" }); |
| 5249 | | 6148 | |
| 5250 | export type V2ListMcpServerStatusResponse__McpAuthStatus = | 6149 | export type V2ListMcpServerStatusResponse__McpAuthStatus = |
| 5251 | | "unsupported" | 6150 | | "unsupported" |
| ... | @@ -5257,30 +6156,33 @@ export const V2ListMcpServerStatusResponse__McpAuthStatus = Schema.Literals([ | ... | @@ -5257,30 +6156,33 @@ export const V2ListMcpServerStatusResponse__McpAuthStatus = Schema.Literals([ |
| 5257 | "notLoggedIn", | 6156 | "notLoggedIn", |
| 5258 | "bearerToken", | 6157 | "bearerToken", |
| 5259 | "oAuth", | 6158 | "oAuth", |
| 5260 | ]); | 6159 | ]).annotate({ identifier: "V2ListMcpServerStatusResponse__McpAuthStatus" }); |
| 5261 | | 6160 | |
| 5262 | export type V2ListMcpServerStatusResponse__McpServerInfo = { | 6161 | export type V2ListMcpServerStatusResponse__ResourceTemplate = { |
| | 6162 | readonly annotations?: Schema.Json; |
| 5263 | readonly description?: string | null; | 6163 | readonly description?: string | null; |
| 5264 | readonly icons?: ReadonlyArray<unknown> | null; | 6164 | readonly mimeType?: string | null; |
| 5265 | readonly name: string; | 6165 | readonly name: string; |
| 5266 | readonly title?: string | null; | 6166 | readonly title?: string | null; |
| 5267 | readonly version: string; | 6167 | readonly uriTemplate: string; |
| 5268 | readonly websiteUrl?: string | null; | | |
| 5269 | }; | 6168 | }; |
| 5270 | export const V2ListMcpServerStatusResponse__McpServerInfo = Schema.Struct({ | 6169 | export const V2ListMcpServerStatusResponse__ResourceTemplate = Schema.Struct({ |
| | 6170 | annotations: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 5271 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 6171 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 5272 | icons: Schema.optionalKey(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])), | 6172 | mimeType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 5273 | name: Schema.String, | 6173 | name: Schema.String, |
| 5274 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 6174 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 5275 | version: Schema.String, | 6175 | uriTemplate: Schema.String, |
| 5276 | websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 6176 | }).annotate({ |
| 5277 | }).annotate({ description: "Presentation metadata advertised by an initialized MCP server." }); | 6177 | description: "A template description for resources available on the server.", |
| | 6178 | identifier: "V2ListMcpServerStatusResponse__ResourceTemplate", |
| | 6179 | }); |
| 5278 | | 6180 | |
| 5279 | export type V2ListMcpServerStatusResponse__Resource = { | 6181 | export type V2ListMcpServerStatusResponse__Resource = { |
| 5280 | readonly _meta?: unknown; | 6182 | readonly _meta?: Schema.Json; |
| 5281 | readonly annotations?: unknown; | 6183 | readonly annotations?: Schema.Json; |
| 5282 | readonly description?: string | null; | 6184 | readonly description?: string | null; |
| 5283 | readonly icons?: ReadonlyArray<unknown> | null; | 6185 | readonly icons?: ReadonlyArray<Schema.Json> | null; |
| 5284 | readonly mimeType?: string | null; | 6186 | readonly mimeType?: string | null; |
| 5285 | readonly name: string; | 6187 | readonly name: string; |
| 5286 | readonly size?: number | null; | 6188 | readonly size?: number | null; |
| ... | @@ -5288,76 +6190,94 @@ export type V2ListMcpServerStatusResponse__Resource = { | ... | @@ -5288,76 +6190,94 @@ export type V2ListMcpServerStatusResponse__Resource = { |
| 5288 | readonly uri: string; | 6190 | readonly uri: string; |
| 5289 | }; | 6191 | }; |
| 5290 | export const V2ListMcpServerStatusResponse__Resource = Schema.Struct({ | 6192 | export const V2ListMcpServerStatusResponse__Resource = Schema.Struct({ |
| 5291 | _meta: Schema.optionalKey(Schema.Unknown), | 6193 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 5292 | annotations: Schema.optionalKey(Schema.Unknown), | 6194 | annotations: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 5293 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 6195 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 5294 | icons: Schema.optionalKey(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])), | 6196 | icons: Schema.optionalKey( |
| | 6197 | Schema.Union([Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), Schema.Null]), |
| | 6198 | ), |
| 5295 | mimeType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 6199 | mimeType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 5296 | name: Schema.String, | 6200 | name: Schema.String, |
| 5297 | size: Schema.optionalKey( | 6201 | size: Schema.optionalKey( |
| 5298 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), | 6202 | Schema.Union([ |
| | 6203 | Schema.Number.annotate({ format: "int64" }).check( |
| | 6204 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 6205 | ), |
| | 6206 | Schema.Null, |
| | 6207 | ]), |
| 5299 | ), | 6208 | ), |
| 5300 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 6209 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 5301 | uri: Schema.String, | 6210 | uri: Schema.String, |
| 5302 | }).annotate({ description: "A known resource that the server is capable of reading." }); | 6211 | }).annotate({ |
| | 6212 | description: "A known resource that the server is capable of reading.", |
| | 6213 | identifier: "V2ListMcpServerStatusResponse__Resource", |
| | 6214 | }); |
| 5303 | | 6215 | |
| 5304 | export type V2ListMcpServerStatusResponse__ResourceTemplate = { | 6216 | export type V2ListMcpServerStatusResponse__McpServerInfo = { |
| 5305 | readonly annotations?: unknown; | | |
| 5306 | readonly description?: string | null; | 6217 | readonly description?: string | null; |
| 5307 | readonly mimeType?: string | null; | 6218 | readonly icons?: ReadonlyArray<Schema.Json> | null; |
| 5308 | readonly name: string; | 6219 | readonly name: string; |
| 5309 | readonly title?: string | null; | 6220 | readonly title?: string | null; |
| 5310 | readonly uriTemplate: string; | 6221 | readonly version: string; |
| | 6222 | readonly websiteUrl?: string | null; |
| 5311 | }; | 6223 | }; |
| 5312 | export const V2ListMcpServerStatusResponse__ResourceTemplate = Schema.Struct({ | 6224 | export const V2ListMcpServerStatusResponse__McpServerInfo = Schema.Struct({ |
| 5313 | annotations: Schema.optionalKey(Schema.Unknown), | | |
| 5314 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 6225 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 5315 | mimeType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 6226 | icons: Schema.optionalKey( |
| | 6227 | Schema.Union([Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), Schema.Null]), |
| | 6228 | ), |
| 5316 | name: Schema.String, | 6229 | name: Schema.String, |
| 5317 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 6230 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 5318 | uriTemplate: Schema.String, | 6231 | version: Schema.String, |
| 5319 | }).annotate({ description: "A template description for resources available on the server." }); | 6232 | websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 6233 | }).annotate({ |
| | 6234 | description: "Presentation metadata advertised by an initialized MCP server.", |
| | 6235 | identifier: "V2ListMcpServerStatusResponse__McpServerInfo", |
| | 6236 | }); |
| 5320 | | 6237 | |
| 5321 | export type V2ListMcpServerStatusResponse__Tool = { | 6238 | export type V2ListMcpServerStatusResponse__Tool = { |
| 5322 | readonly _meta?: unknown; | 6239 | readonly _meta?: Schema.Json; |
| 5323 | readonly annotations?: unknown; | 6240 | readonly annotations?: Schema.Json; |
| 5324 | readonly description?: string | null; | 6241 | readonly description?: string | null; |
| 5325 | readonly icons?: ReadonlyArray<unknown> | null; | 6242 | readonly icons?: ReadonlyArray<Schema.Json> | null; |
| 5326 | readonly inputSchema: unknown; | 6243 | readonly inputSchema: Schema.Json; |
| 5327 | readonly name: string; | 6244 | readonly name: string; |
| 5328 | readonly outputSchema?: unknown; | 6245 | readonly outputSchema?: Schema.Json; |
| 5329 | readonly title?: string | null; | 6246 | readonly title?: string | null; |
| 5330 | }; | 6247 | }; |
| 5331 | export const V2ListMcpServerStatusResponse__Tool = Schema.Struct({ | 6248 | export const V2ListMcpServerStatusResponse__Tool = Schema.Struct({ |
| 5332 | _meta: Schema.optionalKey(Schema.Unknown), | 6249 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 5333 | annotations: Schema.optionalKey(Schema.Unknown), | 6250 | annotations: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 5334 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 6251 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 5335 | icons: Schema.optionalKey(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])), | 6252 | icons: Schema.optionalKey( |
| 5336 | inputSchema: Schema.Unknown, | 6253 | Schema.Union([Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), Schema.Null]), |
| | 6254 | ), |
| | 6255 | inputSchema: Schema.Json.annotate({ expected: "JSON value" }), |
| 5337 | name: Schema.String, | 6256 | name: Schema.String, |
| 5338 | outputSchema: Schema.optionalKey(Schema.Unknown), | 6257 | outputSchema: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 5339 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 6258 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 5340 | }).annotate({ description: "Definition for a tool the client can call." }); | 6259 | }).annotate({ |
| | 6260 | description: "Definition for a tool the client can call.", |
| | 6261 | identifier: "V2ListMcpServerStatusResponse__Tool", |
| | 6262 | }); |
| 5341 | | 6263 | |
| 5342 | export type V2LoginAccountParams__LoginAppBrand = "codex" | "chatgpt"; | 6264 | export type V2LoginAccountParams__LoginAppBrand = "codex" | "chatgpt"; |
| 5343 | export const V2LoginAccountParams__LoginAppBrand = Schema.Literals(["codex", "chatgpt"]); | 6265 | export const V2LoginAccountParams__LoginAppBrand = Schema.Literals(["codex", "chatgpt"]).annotate({ |
| | 6266 | identifier: "V2LoginAccountParams__LoginAppBrand", |
| | 6267 | }); |
| 5344 | | 6268 | |
| 5345 | export type V2MarketplaceAddResponse__AbsolutePathBuf = string; | 6269 | export type V2MarketplaceAddResponse__AbsolutePathBuf = string; |
| 5346 | export const V2MarketplaceAddResponse__AbsolutePathBuf = Schema.String.annotate({ | 6270 | export const V2MarketplaceAddResponse__AbsolutePathBuf = Schema.String.annotate({ |
| 5347 | description: | 6271 | description: |
| 5348 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 6272 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 6273 | identifier: "V2MarketplaceAddResponse__AbsolutePathBuf", |
| 5349 | }); | 6274 | }); |
| 5350 | | 6275 | |
| 5351 | export type V2MarketplaceRemoveResponse__AbsolutePathBuf = string; | 6276 | export type V2MarketplaceRemoveResponse__AbsolutePathBuf = string; |
| 5352 | export const V2MarketplaceRemoveResponse__AbsolutePathBuf = Schema.String.annotate({ | 6277 | export const V2MarketplaceRemoveResponse__AbsolutePathBuf = Schema.String.annotate({ |
| 5353 | description: | 6278 | description: |
| 5354 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 6279 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| 5355 | }); | 6280 | identifier: "V2MarketplaceRemoveResponse__AbsolutePathBuf", |
| 5356 | | | |
| 5357 | export type V2MarketplaceUpgradeResponse__AbsolutePathBuf = string; | | |
| 5358 | export const V2MarketplaceUpgradeResponse__AbsolutePathBuf = Schema.String.annotate({ | | |
| 5359 | description: | | |
| 5360 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | | |
| 5361 | }); | 6281 | }); |
| 5362 | | 6282 | |
| 5363 | export type V2MarketplaceUpgradeResponse__MarketplaceUpgradeErrorInfo = { | 6283 | export type V2MarketplaceUpgradeResponse__MarketplaceUpgradeErrorInfo = { |
| ... | @@ -5367,41 +6287,51 @@ export type V2MarketplaceUpgradeResponse__MarketplaceUpgradeErrorInfo = { | ... | @@ -5367,41 +6287,51 @@ export type V2MarketplaceUpgradeResponse__MarketplaceUpgradeErrorInfo = { |
| 5367 | export const V2MarketplaceUpgradeResponse__MarketplaceUpgradeErrorInfo = Schema.Struct({ | 6287 | export const V2MarketplaceUpgradeResponse__MarketplaceUpgradeErrorInfo = Schema.Struct({ |
| 5368 | marketplaceName: Schema.String, | 6288 | marketplaceName: Schema.String, |
| 5369 | message: Schema.String, | 6289 | message: Schema.String, |
| | 6290 | }).annotate({ identifier: "V2MarketplaceUpgradeResponse__MarketplaceUpgradeErrorInfo" }); |
| | 6291 | |
| | 6292 | export type V2MarketplaceUpgradeResponse__AbsolutePathBuf = string; |
| | 6293 | export const V2MarketplaceUpgradeResponse__AbsolutePathBuf = Schema.String.annotate({ |
| | 6294 | description: |
| | 6295 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 6296 | identifier: "V2MarketplaceUpgradeResponse__AbsolutePathBuf", |
| 5370 | }); | 6297 | }); |
| 5371 | | 6298 | |
| 5372 | export type V2McpResourceReadResponse__ResourceContent = | 6299 | export type V2McpResourceReadResponse__ResourceContent = |
| 5373 | | { | 6300 | | { |
| 5374 | readonly _meta?: unknown; | 6301 | readonly _meta?: Schema.Json; |
| 5375 | readonly mimeType?: string | null; | 6302 | readonly mimeType?: string | null; |
| 5376 | readonly text: string; | 6303 | readonly text: string; |
| 5377 | readonly uri: string; | 6304 | readonly uri: string; |
| 5378 | } | 6305 | } |
| 5379 | | { | 6306 | | { |
| 5380 | readonly _meta?: unknown; | 6307 | readonly _meta?: Schema.Json; |
| 5381 | readonly blob: string; | 6308 | readonly blob: string; |
| 5382 | readonly mimeType?: string | null; | 6309 | readonly mimeType?: string | null; |
| 5383 | readonly uri: string; | 6310 | readonly uri: string; |
| 5384 | }; | 6311 | }; |
| 5385 | export const V2McpResourceReadResponse__ResourceContent = Schema.Union([ | 6312 | export const V2McpResourceReadResponse__ResourceContent = Schema.Union([ |
| 5386 | Schema.Struct({ | 6313 | Schema.Struct({ |
| 5387 | _meta: Schema.optionalKey(Schema.Unknown), | 6314 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 5388 | mimeType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 6315 | mimeType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 5389 | text: Schema.String, | 6316 | text: Schema.String, |
| 5390 | uri: Schema.String.annotate({ description: "The URI of this resource." }), | 6317 | uri: Schema.String.annotate({ description: "The URI of this resource." }), |
| 5391 | }), | 6318 | }), |
| 5392 | Schema.Struct({ | 6319 | Schema.Struct({ |
| 5393 | _meta: Schema.optionalKey(Schema.Unknown), | 6320 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 5394 | blob: Schema.String, | 6321 | blob: Schema.String, |
| 5395 | mimeType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 6322 | mimeType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 5396 | uri: Schema.String.annotate({ description: "The URI of this resource." }), | 6323 | uri: Schema.String.annotate({ description: "The URI of this resource." }), |
| 5397 | }), | 6324 | }), |
| 5398 | ]).annotate({ description: "Contents returned when reading a resource from an MCP server." }); | 6325 | ]).annotate({ |
| | 6326 | description: "Contents returned when reading a resource from an MCP server.", |
| | 6327 | identifier: "V2McpResourceReadResponse__ResourceContent", |
| | 6328 | }); |
| 5399 | | 6329 | |
| 5400 | export type V2McpServerStatusUpdatedNotification__McpServerStartupFailureReason = | 6330 | export type V2McpServerStatusUpdatedNotification__McpServerStartupFailureReason = |
| 5401 | "reauthenticationRequired"; | 6331 | "reauthenticationRequired"; |
| 5402 | export const V2McpServerStatusUpdatedNotification__McpServerStartupFailureReason = Schema.Literal( | 6332 | export const V2McpServerStatusUpdatedNotification__McpServerStartupFailureReason = Schema.Literal( |
| 5403 | "reauthenticationRequired", | 6333 | "reauthenticationRequired", |
| 5404 | ); | 6334 | ).annotate({ identifier: "V2McpServerStatusUpdatedNotification__McpServerStartupFailureReason" }); |
| 5405 | | 6335 | |
| 5406 | export type V2McpServerStatusUpdatedNotification__McpServerStartupState = | 6336 | export type V2McpServerStatusUpdatedNotification__McpServerStartupState = |
| 5407 | | "starting" | 6337 | | "starting" |
| ... | @@ -5413,17 +6343,35 @@ export const V2McpServerStatusUpdatedNotification__McpServerStartupState = Schem | ... | @@ -5413,17 +6343,35 @@ export const V2McpServerStatusUpdatedNotification__McpServerStartupState = Schem |
| 5413 | "ready", | 6343 | "ready", |
| 5414 | "failed", | 6344 | "failed", |
| 5415 | "cancelled", | 6345 | "cancelled", |
| 5416 | ]); | 6346 | ]).annotate({ identifier: "V2McpServerStatusUpdatedNotification__McpServerStartupState" }); |
| 5417 | | | |
| 5418 | export type V2ModelListResponse__InputModality = "text" | "image" | "audio"; | | |
| 5419 | export const V2ModelListResponse__InputModality = Schema.Literals([ | | |
| 5420 | "text", | | |
| 5421 | "image", | | |
| 5422 | "audio", | | |
| 5423 | ]).annotate({ description: "Canonical user-input modality tags advertised by a model." }); | | |
| 5424 | | 6347 | |
| 5425 | export type V2ModelListResponse__ModelAvailabilityNux = { readonly message: string }; | 6348 | export type V2ModelListResponse__ModelAvailabilityNux = { readonly message: string }; |
| 5426 | export const V2ModelListResponse__ModelAvailabilityNux = Schema.Struct({ message: Schema.String }); | 6349 | export const V2ModelListResponse__ModelAvailabilityNux = Schema.Struct({ |
| | 6350 | message: Schema.String, |
| | 6351 | }).annotate({ identifier: "V2ModelListResponse__ModelAvailabilityNux" }); |
| | 6352 | |
| | 6353 | export type V2ModelListResponse__ReasoningEffort = string; |
| | 6354 | export const V2ModelListResponse__ReasoningEffort = Schema.String.annotate({ |
| | 6355 | description: "A non-empty reasoning effort value advertised by the model.", |
| | 6356 | }).check( |
| | 6357 | Schema.isMinLength(1).annotate({ |
| | 6358 | expected: "a value with a length of at least 1", |
| | 6359 | identifier: "V2ModelListResponse__ReasoningEffort", |
| | 6360 | }), |
| | 6361 | ); |
| | 6362 | |
| | 6363 | export type V2ModelListResponse__InputModality = "text" | "image" | "audio"; |
| | 6364 | export const V2ModelListResponse__InputModality = Schema.Union( |
| | 6365 | [ |
| | 6366 | Schema.Literal("text").annotate({ description: "Plain text turns and tool payloads." }), |
| | 6367 | Schema.Literal("image").annotate({ description: "Image attachments included in user turns." }), |
| | 6368 | Schema.Literal("audio").annotate({ description: "Audio attachments included in user turns." }), |
| | 6369 | ], |
| | 6370 | { mode: "oneOf" }, |
| | 6371 | ).annotate({ |
| | 6372 | description: "Canonical user-input modality tags advertised by a model.", |
| | 6373 | identifier: "V2ModelListResponse__InputModality", |
| | 6374 | }); |
| 5427 | | 6375 | |
| 5428 | export type V2ModelListResponse__ModelServiceTier = { | 6376 | export type V2ModelListResponse__ModelServiceTier = { |
| 5429 | readonly description: string; | 6377 | readonly description: string; |
| ... | @@ -5434,7 +6382,7 @@ export const V2ModelListResponse__ModelServiceTier = Schema.Struct({ | ... | @@ -5434,7 +6382,7 @@ export const V2ModelListResponse__ModelServiceTier = Schema.Struct({ |
| 5434 | description: Schema.String, | 6382 | description: Schema.String, |
| 5435 | id: Schema.String, | 6383 | id: Schema.String, |
| 5436 | name: Schema.String, | 6384 | name: Schema.String, |
| 5437 | }); | 6385 | }).annotate({ identifier: "V2ModelListResponse__ModelServiceTier" }); |
| 5438 | | 6386 | |
| 5439 | export type V2ModelListResponse__ModelUpgradeInfo = { | 6387 | export type V2ModelListResponse__ModelUpgradeInfo = { |
| 5440 | readonly migrationMarkdown?: string | null; | 6388 | readonly migrationMarkdown?: string | null; |
| ... | @@ -5447,20 +6395,17 @@ export const V2ModelListResponse__ModelUpgradeInfo = Schema.Struct({ | ... | @@ -5447,20 +6395,17 @@ export const V2ModelListResponse__ModelUpgradeInfo = Schema.Struct({ |
| 5447 | model: Schema.String, | 6395 | model: Schema.String, |
| 5448 | modelLink: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 6396 | modelLink: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 5449 | upgradeCopy: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 6397 | upgradeCopy: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 5450 | }); | 6398 | }).annotate({ identifier: "V2ModelListResponse__ModelUpgradeInfo" }); |
| 5451 | | | |
| 5452 | export type V2ModelListResponse__ReasoningEffort = string; | | |
| 5453 | export const V2ModelListResponse__ReasoningEffort = Schema.String.annotate({ | | |
| 5454 | description: "A non-empty reasoning effort value advertised by the model.", | | |
| 5455 | }).check(Schema.isMinLength(1)); | | |
| 5456 | | 6399 | |
| 5457 | export type V2ModelReroutedNotification__ModelRerouteReason = "highRiskCyberActivity"; | 6400 | export type V2ModelReroutedNotification__ModelRerouteReason = "highRiskCyberActivity"; |
| 5458 | export const V2ModelReroutedNotification__ModelRerouteReason = | 6401 | export const V2ModelReroutedNotification__ModelRerouteReason = Schema.Literal( |
| 5459 | Schema.Literal("highRiskCyberActivity"); | 6402 | "highRiskCyberActivity", |
| | 6403 | ).annotate({ identifier: "V2ModelReroutedNotification__ModelRerouteReason" }); |
| 5460 | | 6404 | |
| 5461 | export type V2ModelVerificationNotification__ModelVerification = "trustedAccessForCyber"; | 6405 | export type V2ModelVerificationNotification__ModelVerification = "trustedAccessForCyber"; |
| 5462 | export const V2ModelVerificationNotification__ModelVerification = | 6406 | export const V2ModelVerificationNotification__ModelVerification = Schema.Literal( |
| 5463 | Schema.Literal("trustedAccessForCyber"); | 6407 | "trustedAccessForCyber", |
| | 6408 | ).annotate({ identifier: "V2ModelVerificationNotification__ModelVerification" }); |
| 5464 | | 6409 | |
| 5465 | export type V2PermissionProfileListResponse__PermissionProfileSummary = { | 6410 | export type V2PermissionProfileListResponse__PermissionProfileSummary = { |
| 5466 | readonly allowed: boolean; | 6411 | readonly allowed: boolean; |
| ... | @@ -5480,18 +6425,20 @@ export const V2PermissionProfileListResponse__PermissionProfileSummary = Schema. | ... | @@ -5480,18 +6425,20 @@ export const V2PermissionProfileListResponse__PermissionProfileSummary = Schema. |
| 5480 | ]), | 6425 | ]), |
| 5481 | ), | 6426 | ), |
| 5482 | id: Schema.String.annotate({ description: "Available permission profile identifier." }), | 6427 | id: Schema.String.annotate({ description: "Available permission profile identifier." }), |
| 5483 | }); | 6428 | }).annotate({ identifier: "V2PermissionProfileListResponse__PermissionProfileSummary" }); |
| 5484 | | 6429 | |
| 5485 | export type V2PluginInstalledParams__AbsolutePathBuf = string; | 6430 | export type V2PluginInstalledParams__AbsolutePathBuf = string; |
| 5486 | export const V2PluginInstalledParams__AbsolutePathBuf = Schema.String.annotate({ | 6431 | export const V2PluginInstalledParams__AbsolutePathBuf = Schema.String.annotate({ |
| 5487 | description: | 6432 | description: |
| 5488 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 6433 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 6434 | identifier: "V2PluginInstalledParams__AbsolutePathBuf", |
| 5489 | }); | 6435 | }); |
| 5490 | | 6436 | |
| 5491 | export type V2PluginInstalledResponse__AbsolutePathBuf = string; | 6437 | export type V2PluginInstalledResponse__AbsolutePathBuf = string; |
| 5492 | export const V2PluginInstalledResponse__AbsolutePathBuf = Schema.String.annotate({ | 6438 | export const V2PluginInstalledResponse__AbsolutePathBuf = Schema.String.annotate({ |
| 5493 | description: | 6439 | description: |
| 5494 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 6440 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 6441 | identifier: "V2PluginInstalledResponse__AbsolutePathBuf", |
| 5495 | }); | 6442 | }); |
| 5496 | | 6443 | |
| 5497 | export type V2PluginInstalledResponse__MarketplaceInterface = { | 6444 | export type V2PluginInstalledResponse__MarketplaceInterface = { |
| ... | @@ -5499,13 +6446,25 @@ export type V2PluginInstalledResponse__MarketplaceInterface = { | ... | @@ -5499,13 +6446,25 @@ export type V2PluginInstalledResponse__MarketplaceInterface = { |
| 5499 | }; | 6446 | }; |
| 5500 | export const V2PluginInstalledResponse__MarketplaceInterface = Schema.Struct({ | 6447 | export const V2PluginInstalledResponse__MarketplaceInterface = Schema.Struct({ |
| 5501 | displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 6448 | displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 5502 | }); | 6449 | }).annotate({ identifier: "V2PluginInstalledResponse__MarketplaceInterface" }); |
| 5503 | | 6450 | |
| 5504 | export type V2PluginInstalledResponse__PluginAuthPolicy = "ON_INSTALL" | "ON_USE"; | 6451 | export type V2PluginInstalledResponse__PluginAuthPolicy = "ON_INSTALL" | "ON_USE"; |
| 5505 | export const V2PluginInstalledResponse__PluginAuthPolicy = Schema.Literals([ | 6452 | export const V2PluginInstalledResponse__PluginAuthPolicy = Schema.Literals([ |
| 5506 | "ON_INSTALL", | 6453 | "ON_INSTALL", |
| 5507 | "ON_USE", | 6454 | "ON_USE", |
| 5508 | ]); | 6455 | ]).annotate({ identifier: "V2PluginInstalledResponse__PluginAuthPolicy" }); |
| | 6456 | |
| | 6457 | export type V2PluginInstalledResponse__PluginAvailability = "DISABLED_BY_ADMIN" | "AVAILABLE"; |
| | 6458 | export const V2PluginInstalledResponse__PluginAvailability = Schema.Union( |
| | 6459 | [ |
| | 6460 | Schema.Literal("DISABLED_BY_ADMIN"), |
| | 6461 | Schema.Literal("AVAILABLE").annotate({ |
| | 6462 | description: |
| | 6463 | 'Plugin-service currently sends `"ENABLED"` for available remote plugins. Codex app-server exposes `"AVAILABLE"` in its API; the alias keeps decoding compatible with that upstream response.', |
| | 6464 | }), |
| | 6465 | ], |
| | 6466 | { mode: "oneOf" }, |
| | 6467 | ).annotate({ identifier: "V2PluginInstalledResponse__PluginAvailability" }); |
| 5509 | | 6468 | |
| 5510 | export type V2PluginInstalledResponse__PluginInstallPolicy = | 6469 | export type V2PluginInstalledResponse__PluginInstallPolicy = |
| 5511 | | "NOT_AVAILABLE" | 6470 | | "NOT_AVAILABLE" |
| ... | @@ -5515,7 +6474,7 @@ export const V2PluginInstalledResponse__PluginInstallPolicy = Schema.Literals([ | ... | @@ -5515,7 +6474,7 @@ export const V2PluginInstalledResponse__PluginInstallPolicy = Schema.Literals([ |
| 5515 | "NOT_AVAILABLE", | 6474 | "NOT_AVAILABLE", |
| 5516 | "AVAILABLE", | 6475 | "AVAILABLE", |
| 5517 | "INSTALLED_BY_DEFAULT", | 6476 | "INSTALLED_BY_DEFAULT", |
| 5518 | ]); | 6477 | ]).annotate({ identifier: "V2PluginInstalledResponse__PluginInstallPolicy" }); |
| 5519 | | 6478 | |
| 5520 | export type V2PluginInstalledResponse__PluginInstallPolicySource = | 6479 | export type V2PluginInstalledResponse__PluginInstallPolicySource = |
| 5521 | | "WORKSPACE_SETTING" | 6480 | | "WORKSPACE_SETTING" |
| ... | @@ -5523,7 +6482,7 @@ export type V2PluginInstalledResponse__PluginInstallPolicySource = | ... | @@ -5523,7 +6482,7 @@ export type V2PluginInstalledResponse__PluginInstallPolicySource = |
| 5523 | export const V2PluginInstalledResponse__PluginInstallPolicySource = Schema.Literals([ | 6482 | export const V2PluginInstalledResponse__PluginInstallPolicySource = Schema.Literals([ |
| 5524 | "WORKSPACE_SETTING", | 6483 | "WORKSPACE_SETTING", |
| 5525 | "IMPLICIT_CANONICAL_APP", | 6484 | "IMPLICIT_CANONICAL_APP", |
| 5526 | ]); | 6485 | ]).annotate({ identifier: "V2PluginInstalledResponse__PluginInstallPolicySource" }); |
| 5527 | | 6486 | |
| 5528 | export type V2PluginInstalledResponse__PluginShareDiscoverability = | 6487 | export type V2PluginInstalledResponse__PluginShareDiscoverability = |
| 5529 | | "LISTED" | 6488 | | "LISTED" |
| ... | @@ -5533,26 +6492,27 @@ export const V2PluginInstalledResponse__PluginShareDiscoverability = Schema.Lite | ... | @@ -5533,26 +6492,27 @@ export const V2PluginInstalledResponse__PluginShareDiscoverability = Schema.Lite |
| 5533 | "LISTED", | 6492 | "LISTED", |
| 5534 | "UNLISTED", | 6493 | "UNLISTED", |
| 5535 | "PRIVATE", | 6494 | "PRIVATE", |
| 5536 | ]); | 6495 | ]).annotate({ identifier: "V2PluginInstalledResponse__PluginShareDiscoverability" }); |
| 5537 | | | |
| 5538 | export type V2PluginInstalledResponse__PluginSharePrincipalRole = "reader" | "editor" | "owner"; | | |
| 5539 | export const V2PluginInstalledResponse__PluginSharePrincipalRole = Schema.Literals([ | | |
| 5540 | "reader", | | |
| 5541 | "editor", | | |
| 5542 | "owner", | | |
| 5543 | ]); | | |
| 5544 | | 6496 | |
| 5545 | export type V2PluginInstalledResponse__PluginSharePrincipalType = "user" | "group" | "workspace"; | 6497 | export type V2PluginInstalledResponse__PluginSharePrincipalType = "user" | "group" | "workspace"; |
| 5546 | export const V2PluginInstalledResponse__PluginSharePrincipalType = Schema.Literals([ | 6498 | export const V2PluginInstalledResponse__PluginSharePrincipalType = Schema.Literals([ |
| 5547 | "user", | 6499 | "user", |
| 5548 | "group", | 6500 | "group", |
| 5549 | "workspace", | 6501 | "workspace", |
| 5550 | ]); | 6502 | ]).annotate({ identifier: "V2PluginInstalledResponse__PluginSharePrincipalType" }); |
| | 6503 | |
| | 6504 | export type V2PluginInstalledResponse__PluginSharePrincipalRole = "reader" | "editor" | "owner"; |
| | 6505 | export const V2PluginInstalledResponse__PluginSharePrincipalRole = Schema.Literals([ |
| | 6506 | "reader", |
| | 6507 | "editor", |
| | 6508 | "owner", |
| | 6509 | ]).annotate({ identifier: "V2PluginInstalledResponse__PluginSharePrincipalRole" }); |
| 5551 | | 6510 | |
| 5552 | export type V2PluginInstallParams__AbsolutePathBuf = string; | 6511 | export type V2PluginInstallParams__AbsolutePathBuf = string; |
| 5553 | export const V2PluginInstallParams__AbsolutePathBuf = Schema.String.annotate({ | 6512 | export const V2PluginInstallParams__AbsolutePathBuf = Schema.String.annotate({ |
| 5554 | description: | 6513 | description: |
| 5555 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 6514 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 6515 | identifier: "V2PluginInstallParams__AbsolutePathBuf", |
| 5556 | }); | 6516 | }); |
| 5557 | | 6517 | |
| 5558 | export type V2PluginInstallResponse__AppSummary = { | 6518 | export type V2PluginInstallResponse__AppSummary = { |
| ... | @@ -5568,15 +6528,22 @@ export const V2PluginInstallResponse__AppSummary = Schema.Struct({ | ... | @@ -5568,15 +6528,22 @@ export const V2PluginInstallResponse__AppSummary = Schema.Struct({ |
| 5568 | id: Schema.String, | 6528 | id: Schema.String, |
| 5569 | installUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 6529 | installUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 5570 | name: Schema.String, | 6530 | name: Schema.String, |
| 5571 | }).annotate({ description: "EXPERIMENTAL - app metadata summary for plugin responses." }); | 6531 | }).annotate({ |
| | 6532 | description: "EXPERIMENTAL - app metadata summary for plugin responses.", |
| | 6533 | identifier: "V2PluginInstallResponse__AppSummary", |
| | 6534 | }); |
| 5572 | | 6535 | |
| 5573 | export type V2PluginInstallResponse__PluginAuthPolicy = "ON_INSTALL" | "ON_USE"; | 6536 | export type V2PluginInstallResponse__PluginAuthPolicy = "ON_INSTALL" | "ON_USE"; |
| 5574 | export const V2PluginInstallResponse__PluginAuthPolicy = Schema.Literals(["ON_INSTALL", "ON_USE"]); | 6537 | export const V2PluginInstallResponse__PluginAuthPolicy = Schema.Literals([ |
| | 6538 | "ON_INSTALL", |
| | 6539 | "ON_USE", |
| | 6540 | ]).annotate({ identifier: "V2PluginInstallResponse__PluginAuthPolicy" }); |
| 5575 | | 6541 | |
| 5576 | export type V2PluginListParams__AbsolutePathBuf = string; | 6542 | export type V2PluginListParams__AbsolutePathBuf = string; |
| 5577 | export const V2PluginListParams__AbsolutePathBuf = Schema.String.annotate({ | 6543 | export const V2PluginListParams__AbsolutePathBuf = Schema.String.annotate({ |
| 5578 | description: | 6544 | description: |
| 5579 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 6545 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 6546 | identifier: "V2PluginListParams__AbsolutePathBuf", |
| 5580 | }); | 6547 | }); |
| 5581 | | 6548 | |
| 5582 | export type V2PluginListParams__PluginListMarketplaceKind = | 6549 | export type V2PluginListParams__PluginListMarketplaceKind = |
| ... | @@ -5591,21 +6558,37 @@ export const V2PluginListParams__PluginListMarketplaceKind = Schema.Literals([ | ... | @@ -5591,21 +6558,37 @@ export const V2PluginListParams__PluginListMarketplaceKind = Schema.Literals([ |
| 5591 | "workspace-directory", | 6558 | "workspace-directory", |
| 5592 | "shared-with-me", | 6559 | "shared-with-me", |
| 5593 | "created-by-me-remote", | 6560 | "created-by-me-remote", |
| 5594 | ]); | 6561 | ]).annotate({ identifier: "V2PluginListParams__PluginListMarketplaceKind" }); |
| 5595 | | 6562 | |
| 5596 | export type V2PluginListResponse__AbsolutePathBuf = string; | 6563 | export type V2PluginListResponse__AbsolutePathBuf = string; |
| 5597 | export const V2PluginListResponse__AbsolutePathBuf = Schema.String.annotate({ | 6564 | export const V2PluginListResponse__AbsolutePathBuf = Schema.String.annotate({ |
| 5598 | description: | 6565 | description: |
| 5599 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 6566 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 6567 | identifier: "V2PluginListResponse__AbsolutePathBuf", |
| 5600 | }); | 6568 | }); |
| 5601 | | 6569 | |
| 5602 | export type V2PluginListResponse__MarketplaceInterface = { readonly displayName?: string | null }; | 6570 | export type V2PluginListResponse__MarketplaceInterface = { readonly displayName?: string | null }; |
| 5603 | export const V2PluginListResponse__MarketplaceInterface = Schema.Struct({ | 6571 | export const V2PluginListResponse__MarketplaceInterface = Schema.Struct({ |
| 5604 | displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 6572 | displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 5605 | }); | 6573 | }).annotate({ identifier: "V2PluginListResponse__MarketplaceInterface" }); |
| 5606 | | 6574 | |
| 5607 | export type V2PluginListResponse__PluginAuthPolicy = "ON_INSTALL" | "ON_USE"; | 6575 | export type V2PluginListResponse__PluginAuthPolicy = "ON_INSTALL" | "ON_USE"; |
| 5608 | export const V2PluginListResponse__PluginAuthPolicy = Schema.Literals(["ON_INSTALL", "ON_USE"]); | 6576 | export const V2PluginListResponse__PluginAuthPolicy = Schema.Literals([ |
| | 6577 | "ON_INSTALL", |
| | 6578 | "ON_USE", |
| | 6579 | ]).annotate({ identifier: "V2PluginListResponse__PluginAuthPolicy" }); |
| | 6580 | |
| | 6581 | export type V2PluginListResponse__PluginAvailability = "DISABLED_BY_ADMIN" | "AVAILABLE"; |
| | 6582 | export const V2PluginListResponse__PluginAvailability = Schema.Union( |
| | 6583 | [ |
| | 6584 | Schema.Literal("DISABLED_BY_ADMIN"), |
| | 6585 | Schema.Literal("AVAILABLE").annotate({ |
| | 6586 | description: |
| | 6587 | 'Plugin-service currently sends `"ENABLED"` for available remote plugins. Codex app-server exposes `"AVAILABLE"` in its API; the alias keeps decoding compatible with that upstream response.', |
| | 6588 | }), |
| | 6589 | ], |
| | 6590 | { mode: "oneOf" }, |
| | 6591 | ).annotate({ identifier: "V2PluginListResponse__PluginAvailability" }); |
| 5609 | | 6592 | |
| 5610 | export type V2PluginListResponse__PluginInstallPolicy = | 6593 | export type V2PluginListResponse__PluginInstallPolicy = |
| 5611 | | "NOT_AVAILABLE" | 6594 | | "NOT_AVAILABLE" |
| ... | @@ -5615,7 +6598,7 @@ export const V2PluginListResponse__PluginInstallPolicy = Schema.Literals([ | ... | @@ -5615,7 +6598,7 @@ export const V2PluginListResponse__PluginInstallPolicy = Schema.Literals([ |
| 5615 | "NOT_AVAILABLE", | 6598 | "NOT_AVAILABLE", |
| 5616 | "AVAILABLE", | 6599 | "AVAILABLE", |
| 5617 | "INSTALLED_BY_DEFAULT", | 6600 | "INSTALLED_BY_DEFAULT", |
| 5618 | ]); | 6601 | ]).annotate({ identifier: "V2PluginListResponse__PluginInstallPolicy" }); |
| 5619 | | 6602 | |
| 5620 | export type V2PluginListResponse__PluginInstallPolicySource = | 6603 | export type V2PluginListResponse__PluginInstallPolicySource = |
| 5621 | | "WORKSPACE_SETTING" | 6604 | | "WORKSPACE_SETTING" |
| ... | @@ -5623,40 +6606,43 @@ export type V2PluginListResponse__PluginInstallPolicySource = | ... | @@ -5623,40 +6606,43 @@ export type V2PluginListResponse__PluginInstallPolicySource = |
| 5623 | export const V2PluginListResponse__PluginInstallPolicySource = Schema.Literals([ | 6606 | export const V2PluginListResponse__PluginInstallPolicySource = Schema.Literals([ |
| 5624 | "WORKSPACE_SETTING", | 6607 | "WORKSPACE_SETTING", |
| 5625 | "IMPLICIT_CANONICAL_APP", | 6608 | "IMPLICIT_CANONICAL_APP", |
| 5626 | ]); | 6609 | ]).annotate({ identifier: "V2PluginListResponse__PluginInstallPolicySource" }); |
| 5627 | | 6610 | |
| 5628 | export type V2PluginListResponse__PluginShareDiscoverability = "LISTED" | "UNLISTED" | "PRIVATE"; | 6611 | export type V2PluginListResponse__PluginShareDiscoverability = "LISTED" | "UNLISTED" | "PRIVATE"; |
| 5629 | export const V2PluginListResponse__PluginShareDiscoverability = Schema.Literals([ | 6612 | export const V2PluginListResponse__PluginShareDiscoverability = Schema.Literals([ |
| 5630 | "LISTED", | 6613 | "LISTED", |
| 5631 | "UNLISTED", | 6614 | "UNLISTED", |
| 5632 | "PRIVATE", | 6615 | "PRIVATE", |
| 5633 | ]); | 6616 | ]).annotate({ identifier: "V2PluginListResponse__PluginShareDiscoverability" }); |
| 5634 | | | |
| 5635 | export type V2PluginListResponse__PluginSharePrincipalRole = "reader" | "editor" | "owner"; | | |
| 5636 | export const V2PluginListResponse__PluginSharePrincipalRole = Schema.Literals([ | | |
| 5637 | "reader", | | |
| 5638 | "editor", | | |
| 5639 | "owner", | | |
| 5640 | ]); | | |
| 5641 | | 6617 | |
| 5642 | export type V2PluginListResponse__PluginSharePrincipalType = "user" | "group" | "workspace"; | 6618 | export type V2PluginListResponse__PluginSharePrincipalType = "user" | "group" | "workspace"; |
| 5643 | export const V2PluginListResponse__PluginSharePrincipalType = Schema.Literals([ | 6619 | export const V2PluginListResponse__PluginSharePrincipalType = Schema.Literals([ |
| 5644 | "user", | 6620 | "user", |
| 5645 | "group", | 6621 | "group", |
| 5646 | "workspace", | 6622 | "workspace", |
| 5647 | ]); | 6623 | ]).annotate({ identifier: "V2PluginListResponse__PluginSharePrincipalType" }); |
| | 6624 | |
| | 6625 | export type V2PluginListResponse__PluginSharePrincipalRole = "reader" | "editor" | "owner"; |
| | 6626 | export const V2PluginListResponse__PluginSharePrincipalRole = Schema.Literals([ |
| | 6627 | "reader", |
| | 6628 | "editor", |
| | 6629 | "owner", |
| | 6630 | ]).annotate({ identifier: "V2PluginListResponse__PluginSharePrincipalRole" }); |
| 5648 | | 6631 | |
| 5649 | export type V2PluginReadParams__AbsolutePathBuf = string; | 6632 | export type V2PluginReadParams__AbsolutePathBuf = string; |
| 5650 | export const V2PluginReadParams__AbsolutePathBuf = Schema.String.annotate({ | 6633 | export const V2PluginReadParams__AbsolutePathBuf = Schema.String.annotate({ |
| 5651 | description: | 6634 | description: |
| 5652 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 6635 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 6636 | identifier: "V2PluginReadParams__AbsolutePathBuf", |
| 5653 | }); | 6637 | }); |
| 5654 | | 6638 | |
| 5655 | export type V2PluginReadResponse__AbsolutePathBuf = string; | 6639 | export type V2PluginReadResponse__AppTemplateUnavailableReason = |
| 5656 | export const V2PluginReadResponse__AbsolutePathBuf = Schema.String.annotate({ | 6640 | | "NOT_CONFIGURED_FOR_WORKSPACE" |
| 5657 | description: | 6641 | | "NO_ACTIVE_WORKSPACE"; |
| 5658 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 6642 | export const V2PluginReadResponse__AppTemplateUnavailableReason = Schema.Literals([ |
| 5659 | }); | 6643 | "NOT_CONFIGURED_FOR_WORKSPACE", |
| | 6644 | "NO_ACTIVE_WORKSPACE", |
| | 6645 | ]).annotate({ identifier: "V2PluginReadResponse__AppTemplateUnavailableReason" }); |
| 5660 | | 6646 | |
| 5661 | export type V2PluginReadResponse__AppSummary = { | 6647 | export type V2PluginReadResponse__AppSummary = { |
| 5662 | readonly category?: string | null; | 6648 | readonly category?: string | null; |
| ... | @@ -5671,15 +6657,10 @@ export const V2PluginReadResponse__AppSummary = Schema.Struct({ | ... | @@ -5671,15 +6657,10 @@ export const V2PluginReadResponse__AppSummary = Schema.Struct({ |
| 5671 | id: Schema.String, | 6657 | id: Schema.String, |
| 5672 | installUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 6658 | installUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 5673 | name: Schema.String, | 6659 | name: Schema.String, |
| 5674 | }).annotate({ description: "EXPERIMENTAL - app metadata summary for plugin responses." }); | 6660 | }).annotate({ |
| 5675 | | 6661 | description: "EXPERIMENTAL - app metadata summary for plugin responses.", |
| 5676 | export type V2PluginReadResponse__AppTemplateUnavailableReason = | 6662 | identifier: "V2PluginReadResponse__AppSummary", |
| 5677 | | "NOT_CONFIGURED_FOR_WORKSPACE" | 6663 | }); |
| 5678 | | "NO_ACTIVE_WORKSPACE"; | | |
| 5679 | export const V2PluginReadResponse__AppTemplateUnavailableReason = Schema.Literals([ | | |
| 5680 | "NOT_CONFIGURED_FOR_WORKSPACE", | | |
| 5681 | "NO_ACTIVE_WORKSPACE", | | |
| 5682 | ]); | | |
| 5683 | | 6664 | |
| 5684 | export type V2PluginReadResponse__HookEventName = | 6665 | export type V2PluginReadResponse__HookEventName = |
| 5685 | | "preToolUse" | 6666 | | "preToolUse" |
| ... | @@ -5705,10 +6686,50 @@ export const V2PluginReadResponse__HookEventName = Schema.Literals([ | ... | @@ -5705,10 +6686,50 @@ export const V2PluginReadResponse__HookEventName = Schema.Literals([ |
| 5705 | "subagentStart", | 6686 | "subagentStart", |
| 5706 | "subagentStop", | 6687 | "subagentStop", |
| 5707 | "stop", | 6688 | "stop", |
| 5708 | ]); | 6689 | ]).annotate({ identifier: "V2PluginReadResponse__HookEventName" }); |
| | 6690 | |
| | 6691 | export type V2PluginReadResponse__AbsolutePathBuf = string; |
| | 6692 | export const V2PluginReadResponse__AbsolutePathBuf = Schema.String.annotate({ |
| | 6693 | description: |
| | 6694 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 6695 | identifier: "V2PluginReadResponse__AbsolutePathBuf", |
| | 6696 | }); |
| | 6697 | |
| | 6698 | export type V2PluginReadResponse__ScheduledTaskWeekday = |
| | 6699 | | "MO" |
| | 6700 | | "TU" |
| | 6701 | | "WE" |
| | 6702 | | "TH" |
| | 6703 | | "FR" |
| | 6704 | | "SA" |
| | 6705 | | "SU"; |
| | 6706 | export const V2PluginReadResponse__ScheduledTaskWeekday = Schema.Literals([ |
| | 6707 | "MO", |
| | 6708 | "TU", |
| | 6709 | "WE", |
| | 6710 | "TH", |
| | 6711 | "FR", |
| | 6712 | "SA", |
| | 6713 | "SU", |
| | 6714 | ]).annotate({ identifier: "V2PluginReadResponse__ScheduledTaskWeekday" }); |
| 5709 | | 6715 | |
| 5710 | export type V2PluginReadResponse__PluginAuthPolicy = "ON_INSTALL" | "ON_USE"; | 6716 | export type V2PluginReadResponse__PluginAuthPolicy = "ON_INSTALL" | "ON_USE"; |
| 5711 | export const V2PluginReadResponse__PluginAuthPolicy = Schema.Literals(["ON_INSTALL", "ON_USE"]); | 6717 | export const V2PluginReadResponse__PluginAuthPolicy = Schema.Literals([ |
| | 6718 | "ON_INSTALL", |
| | 6719 | "ON_USE", |
| | 6720 | ]).annotate({ identifier: "V2PluginReadResponse__PluginAuthPolicy" }); |
| | 6721 | |
| | 6722 | export type V2PluginReadResponse__PluginAvailability = "DISABLED_BY_ADMIN" | "AVAILABLE"; |
| | 6723 | export const V2PluginReadResponse__PluginAvailability = Schema.Union( |
| | 6724 | [ |
| | 6725 | Schema.Literal("DISABLED_BY_ADMIN"), |
| | 6726 | Schema.Literal("AVAILABLE").annotate({ |
| | 6727 | description: |
| | 6728 | 'Plugin-service currently sends `"ENABLED"` for available remote plugins. Codex app-server exposes `"AVAILABLE"` in its API; the alias keeps decoding compatible with that upstream response.', |
| | 6729 | }), |
| | 6730 | ], |
| | 6731 | { mode: "oneOf" }, |
| | 6732 | ).annotate({ identifier: "V2PluginReadResponse__PluginAvailability" }); |
| 5712 | | 6733 | |
| 5713 | export type V2PluginReadResponse__PluginInstallPolicy = | 6734 | export type V2PluginReadResponse__PluginInstallPolicy = |
| 5714 | | "NOT_AVAILABLE" | 6735 | | "NOT_AVAILABLE" |
| ... | @@ -5718,7 +6739,7 @@ export const V2PluginReadResponse__PluginInstallPolicy = Schema.Literals([ | ... | @@ -5718,7 +6739,7 @@ export const V2PluginReadResponse__PluginInstallPolicy = Schema.Literals([ |
| 5718 | "NOT_AVAILABLE", | 6739 | "NOT_AVAILABLE", |
| 5719 | "AVAILABLE", | 6740 | "AVAILABLE", |
| 5720 | "INSTALLED_BY_DEFAULT", | 6741 | "INSTALLED_BY_DEFAULT", |
| 5721 | ]); | 6742 | ]).annotate({ identifier: "V2PluginReadResponse__PluginInstallPolicy" }); |
| 5722 | | 6743 | |
| 5723 | export type V2PluginReadResponse__PluginInstallPolicySource = | 6744 | export type V2PluginReadResponse__PluginInstallPolicySource = |
| 5724 | | "WORKSPACE_SETTING" | 6745 | | "WORKSPACE_SETTING" |
| ... | @@ -5726,64 +6747,60 @@ export type V2PluginReadResponse__PluginInstallPolicySource = | ... | @@ -5726,64 +6747,60 @@ export type V2PluginReadResponse__PluginInstallPolicySource = |
| 5726 | export const V2PluginReadResponse__PluginInstallPolicySource = Schema.Literals([ | 6747 | export const V2PluginReadResponse__PluginInstallPolicySource = Schema.Literals([ |
| 5727 | "WORKSPACE_SETTING", | 6748 | "WORKSPACE_SETTING", |
| 5728 | "IMPLICIT_CANONICAL_APP", | 6749 | "IMPLICIT_CANONICAL_APP", |
| 5729 | ]); | 6750 | ]).annotate({ identifier: "V2PluginReadResponse__PluginInstallPolicySource" }); |
| 5730 | | 6751 | |
| 5731 | export type V2PluginReadResponse__PluginShareDiscoverability = "LISTED" | "UNLISTED" | "PRIVATE"; | 6752 | export type V2PluginReadResponse__PluginShareDiscoverability = "LISTED" | "UNLISTED" | "PRIVATE"; |
| 5732 | export const V2PluginReadResponse__PluginShareDiscoverability = Schema.Literals([ | 6753 | export const V2PluginReadResponse__PluginShareDiscoverability = Schema.Literals([ |
| 5733 | "LISTED", | 6754 | "LISTED", |
| 5734 | "UNLISTED", | 6755 | "UNLISTED", |
| 5735 | "PRIVATE", | 6756 | "PRIVATE", |
| 5736 | ]); | 6757 | ]).annotate({ identifier: "V2PluginReadResponse__PluginShareDiscoverability" }); |
| 5737 | | | |
| 5738 | export type V2PluginReadResponse__PluginSharePrincipalRole = "reader" | "editor" | "owner"; | | |
| 5739 | export const V2PluginReadResponse__PluginSharePrincipalRole = Schema.Literals([ | | |
| 5740 | "reader", | | |
| 5741 | "editor", | | |
| 5742 | "owner", | | |
| 5743 | ]); | | |
| 5744 | | 6758 | |
| 5745 | export type V2PluginReadResponse__PluginSharePrincipalType = "user" | "group" | "workspace"; | 6759 | export type V2PluginReadResponse__PluginSharePrincipalType = "user" | "group" | "workspace"; |
| 5746 | export const V2PluginReadResponse__PluginSharePrincipalType = Schema.Literals([ | 6760 | export const V2PluginReadResponse__PluginSharePrincipalType = Schema.Literals([ |
| 5747 | "user", | 6761 | "user", |
| 5748 | "group", | 6762 | "group", |
| 5749 | "workspace", | 6763 | "workspace", |
| 5750 | ]); | 6764 | ]).annotate({ identifier: "V2PluginReadResponse__PluginSharePrincipalType" }); |
| 5751 | | 6765 | |
| 5752 | export type V2PluginReadResponse__ScheduledTaskWeekday = | 6766 | export type V2PluginReadResponse__PluginSharePrincipalRole = "reader" | "editor" | "owner"; |
| 5753 | | "MO" | 6767 | export const V2PluginReadResponse__PluginSharePrincipalRole = Schema.Literals([ |
| 5754 | | "TU" | 6768 | "reader", |
| 5755 | | "WE" | 6769 | "editor", |
| 5756 | | "TH" | 6770 | "owner", |
| 5757 | | "FR" | 6771 | ]).annotate({ identifier: "V2PluginReadResponse__PluginSharePrincipalRole" }); |
| 5758 | | "SA" | | |
| 5759 | | "SU"; | | |
| 5760 | export const V2PluginReadResponse__ScheduledTaskWeekday = Schema.Literals([ | | |
| 5761 | "MO", | | |
| 5762 | "TU", | | |
| 5763 | "WE", | | |
| 5764 | "TH", | | |
| 5765 | "FR", | | |
| 5766 | "SA", | | |
| 5767 | "SU", | | |
| 5768 | ]); | | |
| 5769 | | 6772 | |
| 5770 | export type V2PluginShareCheckoutResponse__AbsolutePathBuf = string; | 6773 | export type V2PluginShareCheckoutResponse__AbsolutePathBuf = string; |
| 5771 | export const V2PluginShareCheckoutResponse__AbsolutePathBuf = Schema.String.annotate({ | 6774 | export const V2PluginShareCheckoutResponse__AbsolutePathBuf = Schema.String.annotate({ |
| 5772 | description: | 6775 | description: |
| 5773 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 6776 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 6777 | identifier: "V2PluginShareCheckoutResponse__AbsolutePathBuf", |
| 5774 | }); | 6778 | }); |
| 5775 | | 6779 | |
| 5776 | export type V2PluginShareListResponse__AbsolutePathBuf = string; | 6780 | export type V2PluginShareListResponse__AbsolutePathBuf = string; |
| 5777 | export const V2PluginShareListResponse__AbsolutePathBuf = Schema.String.annotate({ | 6781 | export const V2PluginShareListResponse__AbsolutePathBuf = Schema.String.annotate({ |
| 5778 | description: | 6782 | description: |
| 5779 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 6783 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 6784 | identifier: "V2PluginShareListResponse__AbsolutePathBuf", |
| 5780 | }); | 6785 | }); |
| 5781 | | 6786 | |
| 5782 | export type V2PluginShareListResponse__PluginAuthPolicy = "ON_INSTALL" | "ON_USE"; | 6787 | export type V2PluginShareListResponse__PluginAuthPolicy = "ON_INSTALL" | "ON_USE"; |
| 5783 | export const V2PluginShareListResponse__PluginAuthPolicy = Schema.Literals([ | 6788 | export const V2PluginShareListResponse__PluginAuthPolicy = Schema.Literals([ |
| 5784 | "ON_INSTALL", | 6789 | "ON_INSTALL", |
| 5785 | "ON_USE", | 6790 | "ON_USE", |
| 5786 | ]); | 6791 | ]).annotate({ identifier: "V2PluginShareListResponse__PluginAuthPolicy" }); |
| | 6792 | |
| | 6793 | export type V2PluginShareListResponse__PluginAvailability = "DISABLED_BY_ADMIN" | "AVAILABLE"; |
| | 6794 | export const V2PluginShareListResponse__PluginAvailability = Schema.Union( |
| | 6795 | [ |
| | 6796 | Schema.Literal("DISABLED_BY_ADMIN"), |
| | 6797 | Schema.Literal("AVAILABLE").annotate({ |
| | 6798 | description: |
| | 6799 | 'Plugin-service currently sends `"ENABLED"` for available remote plugins. Codex app-server exposes `"AVAILABLE"` in its API; the alias keeps decoding compatible with that upstream response.', |
| | 6800 | }), |
| | 6801 | ], |
| | 6802 | { mode: "oneOf" }, |
| | 6803 | ).annotate({ identifier: "V2PluginShareListResponse__PluginAvailability" }); |
| 5787 | | 6804 | |
| 5788 | export type V2PluginShareListResponse__PluginInstallPolicy = | 6805 | export type V2PluginShareListResponse__PluginInstallPolicy = |
| 5789 | | "NOT_AVAILABLE" | 6806 | | "NOT_AVAILABLE" |
| ... | @@ -5793,7 +6810,7 @@ export const V2PluginShareListResponse__PluginInstallPolicy = Schema.Literals([ | ... | @@ -5793,7 +6810,7 @@ export const V2PluginShareListResponse__PluginInstallPolicy = Schema.Literals([ |
| 5793 | "NOT_AVAILABLE", | 6810 | "NOT_AVAILABLE", |
| 5794 | "AVAILABLE", | 6811 | "AVAILABLE", |
| 5795 | "INSTALLED_BY_DEFAULT", | 6812 | "INSTALLED_BY_DEFAULT", |
| 5796 | ]); | 6813 | ]).annotate({ identifier: "V2PluginShareListResponse__PluginInstallPolicy" }); |
| 5797 | | 6814 | |
| 5798 | export type V2PluginShareListResponse__PluginInstallPolicySource = | 6815 | export type V2PluginShareListResponse__PluginInstallPolicySource = |
| 5799 | | "WORKSPACE_SETTING" | 6816 | | "WORKSPACE_SETTING" |
| ... | @@ -5801,7 +6818,7 @@ export type V2PluginShareListResponse__PluginInstallPolicySource = | ... | @@ -5801,7 +6818,7 @@ export type V2PluginShareListResponse__PluginInstallPolicySource = |
| 5801 | export const V2PluginShareListResponse__PluginInstallPolicySource = Schema.Literals([ | 6818 | export const V2PluginShareListResponse__PluginInstallPolicySource = Schema.Literals([ |
| 5802 | "WORKSPACE_SETTING", | 6819 | "WORKSPACE_SETTING", |
| 5803 | "IMPLICIT_CANONICAL_APP", | 6820 | "IMPLICIT_CANONICAL_APP", |
| 5804 | ]); | 6821 | ]).annotate({ identifier: "V2PluginShareListResponse__PluginInstallPolicySource" }); |
| 5805 | | 6822 | |
| 5806 | export type V2PluginShareListResponse__PluginShareDiscoverability = | 6823 | export type V2PluginShareListResponse__PluginShareDiscoverability = |
| 5807 | | "LISTED" | 6824 | | "LISTED" |
| ... | @@ -5811,44 +6828,58 @@ export const V2PluginShareListResponse__PluginShareDiscoverability = Schema.Lite | ... | @@ -5811,44 +6828,58 @@ export const V2PluginShareListResponse__PluginShareDiscoverability = Schema.Lite |
| 5811 | "LISTED", | 6828 | "LISTED", |
| 5812 | "UNLISTED", | 6829 | "UNLISTED", |
| 5813 | "PRIVATE", | 6830 | "PRIVATE", |
| 5814 | ]); | 6831 | ]).annotate({ identifier: "V2PluginShareListResponse__PluginShareDiscoverability" }); |
| 5815 | | | |
| 5816 | export type V2PluginShareListResponse__PluginSharePrincipalRole = "reader" | "editor" | "owner"; | | |
| 5817 | export const V2PluginShareListResponse__PluginSharePrincipalRole = Schema.Literals([ | | |
| 5818 | "reader", | | |
| 5819 | "editor", | | |
| 5820 | "owner", | | |
| 5821 | ]); | | |
| 5822 | | 6832 | |
| 5823 | export type V2PluginShareListResponse__PluginSharePrincipalType = "user" | "group" | "workspace"; | 6833 | export type V2PluginShareListResponse__PluginSharePrincipalType = "user" | "group" | "workspace"; |
| 5824 | export const V2PluginShareListResponse__PluginSharePrincipalType = Schema.Literals([ | 6834 | export const V2PluginShareListResponse__PluginSharePrincipalType = Schema.Literals([ |
| 5825 | "user", | 6835 | "user", |
| 5826 | "group", | 6836 | "group", |
| 5827 | "workspace", | 6837 | "workspace", |
| 5828 | ]); | 6838 | ]).annotate({ identifier: "V2PluginShareListResponse__PluginSharePrincipalType" }); |
| 5829 | | 6839 | |
| 5830 | export type V2PluginShareSaveParams__AbsolutePathBuf = string; | 6840 | export type V2PluginShareListResponse__PluginSharePrincipalRole = "reader" | "editor" | "owner"; |
| 5831 | export const V2PluginShareSaveParams__AbsolutePathBuf = Schema.String.annotate({ | 6841 | export const V2PluginShareListResponse__PluginSharePrincipalRole = Schema.Literals([ |
| 5832 | description: | 6842 | "reader", |
| 5833 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 6843 | "editor", |
| 5834 | }); | 6844 | "owner", |
| | 6845 | ]).annotate({ identifier: "V2PluginShareListResponse__PluginSharePrincipalRole" }); |
| 5835 | | 6846 | |
| 5836 | export type V2PluginShareSaveParams__PluginShareDiscoverability = "LISTED" | "UNLISTED" | "PRIVATE"; | 6847 | export type V2PluginShareSaveParams__PluginShareDiscoverability = "LISTED" | "UNLISTED" | "PRIVATE"; |
| 5837 | export const V2PluginShareSaveParams__PluginShareDiscoverability = Schema.Literals([ | 6848 | export const V2PluginShareSaveParams__PluginShareDiscoverability = Schema.Literals([ |
| 5838 | "LISTED", | 6849 | "LISTED", |
| 5839 | "UNLISTED", | 6850 | "UNLISTED", |
| 5840 | "PRIVATE", | 6851 | "PRIVATE", |
| 5841 | ]); | 6852 | ]).annotate({ identifier: "V2PluginShareSaveParams__PluginShareDiscoverability" }); |
| | 6853 | |
| | 6854 | export type V2PluginShareSaveParams__AbsolutePathBuf = string; |
| | 6855 | export const V2PluginShareSaveParams__AbsolutePathBuf = Schema.String.annotate({ |
| | 6856 | description: |
| | 6857 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 6858 | identifier: "V2PluginShareSaveParams__AbsolutePathBuf", |
| | 6859 | }); |
| 5842 | | 6860 | |
| 5843 | export type V2PluginShareSaveParams__PluginSharePrincipalType = "user" | "group" | "workspace"; | 6861 | export type V2PluginShareSaveParams__PluginSharePrincipalType = "user" | "group" | "workspace"; |
| 5844 | export const V2PluginShareSaveParams__PluginSharePrincipalType = Schema.Literals([ | 6862 | export const V2PluginShareSaveParams__PluginSharePrincipalType = Schema.Literals([ |
| 5845 | "user", | 6863 | "user", |
| 5846 | "group", | 6864 | "group", |
| 5847 | "workspace", | 6865 | "workspace", |
| 5848 | ]); | 6866 | ]).annotate({ identifier: "V2PluginShareSaveParams__PluginSharePrincipalType" }); |
| 5849 | | 6867 | |
| 5850 | export type V2PluginShareSaveParams__PluginShareTargetRole = "reader" | "editor"; | 6868 | export type V2PluginShareSaveParams__PluginShareTargetRole = "reader" | "editor"; |
| 5851 | export const V2PluginShareSaveParams__PluginShareTargetRole = Schema.Literals(["reader", "editor"]); | 6869 | export const V2PluginShareSaveParams__PluginShareTargetRole = Schema.Literals([ |
| | 6870 | "reader", |
| | 6871 | "editor", |
| | 6872 | ]).annotate({ identifier: "V2PluginShareSaveParams__PluginShareTargetRole" }); |
| | 6873 | |
| | 6874 | export type V2PluginShareUpdateTargetsParams__PluginShareUpdateDiscoverability = |
| | 6875 | | "UNLISTED" |
| | 6876 | | "PRIVATE" |
| | 6877 | | "LISTED"; |
| | 6878 | export const V2PluginShareUpdateTargetsParams__PluginShareUpdateDiscoverability = Schema.Literals([ |
| | 6879 | "UNLISTED", |
| | 6880 | "PRIVATE", |
| | 6881 | "LISTED", |
| | 6882 | ]).annotate({ identifier: "V2PluginShareUpdateTargetsParams__PluginShareUpdateDiscoverability" }); |
| 5852 | | 6883 | |
| 5853 | export type V2PluginShareUpdateTargetsParams__PluginSharePrincipalType = | 6884 | export type V2PluginShareUpdateTargetsParams__PluginSharePrincipalType = |
| 5854 | | "user" | 6885 | | "user" |
| ... | @@ -5858,23 +6889,13 @@ export const V2PluginShareUpdateTargetsParams__PluginSharePrincipalType = Schema | ... | @@ -5858,23 +6889,13 @@ export const V2PluginShareUpdateTargetsParams__PluginSharePrincipalType = Schema |
| 5858 | "user", | 6889 | "user", |
| 5859 | "group", | 6890 | "group", |
| 5860 | "workspace", | 6891 | "workspace", |
| 5861 | ]); | 6892 | ]).annotate({ identifier: "V2PluginShareUpdateTargetsParams__PluginSharePrincipalType" }); |
| 5862 | | 6893 | |
| 5863 | export type V2PluginShareUpdateTargetsParams__PluginShareTargetRole = "reader" | "editor"; | 6894 | export type V2PluginShareUpdateTargetsParams__PluginShareTargetRole = "reader" | "editor"; |
| 5864 | export const V2PluginShareUpdateTargetsParams__PluginShareTargetRole = Schema.Literals([ | 6895 | export const V2PluginShareUpdateTargetsParams__PluginShareTargetRole = Schema.Literals([ |
| 5865 | "reader", | 6896 | "reader", |
| 5866 | "editor", | 6897 | "editor", |
| 5867 | ]); | 6898 | ]).annotate({ identifier: "V2PluginShareUpdateTargetsParams__PluginShareTargetRole" }); |
| 5868 | | | |
| 5869 | export type V2PluginShareUpdateTargetsParams__PluginShareUpdateDiscoverability = | | |
| 5870 | | "UNLISTED" | | |
| 5871 | | "PRIVATE" | | |
| 5872 | | "LISTED"; | | |
| 5873 | export const V2PluginShareUpdateTargetsParams__PluginShareUpdateDiscoverability = Schema.Literals([ | | |
| 5874 | "UNLISTED", | | |
| 5875 | "PRIVATE", | | |
| 5876 | "LISTED", | | |
| 5877 | ]); | | |
| 5878 | | 6899 | |
| 5879 | export type V2PluginShareUpdateTargetsResponse__PluginShareDiscoverability = | 6900 | export type V2PluginShareUpdateTargetsResponse__PluginShareDiscoverability = |
| 5880 | | "LISTED" | 6901 | | "LISTED" |
| ... | @@ -5884,7 +6905,17 @@ export const V2PluginShareUpdateTargetsResponse__PluginShareDiscoverability = Sc | ... | @@ -5884,7 +6905,17 @@ export const V2PluginShareUpdateTargetsResponse__PluginShareDiscoverability = Sc |
| 5884 | "LISTED", | 6905 | "LISTED", |
| 5885 | "UNLISTED", | 6906 | "UNLISTED", |
| 5886 | "PRIVATE", | 6907 | "PRIVATE", |
| 5887 | ]); | 6908 | ]).annotate({ identifier: "V2PluginShareUpdateTargetsResponse__PluginShareDiscoverability" }); |
| | 6909 | |
| | 6910 | export type V2PluginShareUpdateTargetsResponse__PluginSharePrincipalType = |
| | 6911 | | "user" |
| | 6912 | | "group" |
| | 6913 | | "workspace"; |
| | 6914 | export const V2PluginShareUpdateTargetsResponse__PluginSharePrincipalType = Schema.Literals([ |
| | 6915 | "user", |
| | 6916 | "group", |
| | 6917 | "workspace", |
| | 6918 | ]).annotate({ identifier: "V2PluginShareUpdateTargetsResponse__PluginSharePrincipalType" }); |
| 5888 | | 6919 | |
| 5889 | export type V2PluginShareUpdateTargetsResponse__PluginSharePrincipalRole = | 6920 | export type V2PluginShareUpdateTargetsResponse__PluginSharePrincipalRole = |
| 5890 | | "reader" | 6921 | | "reader" |
| ... | @@ -5894,17 +6925,21 @@ export const V2PluginShareUpdateTargetsResponse__PluginSharePrincipalRole = Sche | ... | @@ -5894,17 +6925,21 @@ export const V2PluginShareUpdateTargetsResponse__PluginSharePrincipalRole = Sche |
| 5894 | "reader", | 6925 | "reader", |
| 5895 | "editor", | 6926 | "editor", |
| 5896 | "owner", | 6927 | "owner", |
| 5897 | ]); | 6928 | ]).annotate({ identifier: "V2PluginShareUpdateTargetsResponse__PluginSharePrincipalRole" }); |
| 5898 | | 6929 | |
| 5899 | export type V2PluginShareUpdateTargetsResponse__PluginSharePrincipalType = | 6930 | export type V2ProcessOutputDeltaNotification__ProcessOutputStream = "stdout" | "stderr"; |
| 5900 | | "user" | 6931 | export const V2ProcessOutputDeltaNotification__ProcessOutputStream = Schema.Union( |
| 5901 | | "group" | 6932 | [ |
| 5902 | | "workspace"; | 6933 | Schema.Literal("stdout").annotate({ |
| 5903 | export const V2PluginShareUpdateTargetsResponse__PluginSharePrincipalType = Schema.Literals([ | 6934 | description: "stdout stream. PTY mode multiplexes terminal output here.", |
| 5904 | "user", | 6935 | }), |
| 5905 | "group", | 6936 | Schema.Literal("stderr").annotate({ description: "stderr stream." }), |
| 5906 | "workspace", | 6937 | ], |
| 5907 | ]); | 6938 | { mode: "oneOf" }, |
| | 6939 | ).annotate({ |
| | 6940 | description: "Stream label for `process/outputDelta` notifications.", |
| | 6941 | identifier: "V2ProcessOutputDeltaNotification__ProcessOutputStream", |
| | 6942 | }); |
| 5908 | | 6943 | |
| 5909 | export type V2RawResponseCompletedNotification__TokenUsageBreakdown = { | 6944 | export type V2RawResponseCompletedNotification__TokenUsageBreakdown = { |
| 5910 | readonly cacheWriteInputTokens?: number; | 6945 | readonly cacheWriteInputTokens?: number; |
| ... | @@ -5916,35 +6951,26 @@ export type V2RawResponseCompletedNotification__TokenUsageBreakdown = { | ... | @@ -5916,35 +6951,26 @@ export type V2RawResponseCompletedNotification__TokenUsageBreakdown = { |
| 5916 | }; | 6951 | }; |
| 5917 | export const V2RawResponseCompletedNotification__TokenUsageBreakdown = Schema.Struct({ | 6952 | export const V2RawResponseCompletedNotification__TokenUsageBreakdown = Schema.Struct({ |
| 5918 | cacheWriteInputTokens: Schema.optionalKey( | 6953 | cacheWriteInputTokens: Schema.optionalKey( |
| 5919 | Schema.Number.annotate({ default: 0, format: "int64" }).check(Schema.isInt()), | 6954 | Schema.Number.annotate({ default: 0, format: "int64" }).check( |
| | 6955 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 6956 | ), |
| 5920 | ), | 6957 | ), |
| 5921 | cachedInputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 6958 | cachedInputTokens: Schema.Number.annotate({ format: "int64" }).check( |
| 5922 | inputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 6959 | Schema.isInt().annotate({ expected: "an integer" }), |
| 5923 | outputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 6960 | ), |
| 5924 | reasoningOutputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 6961 | inputTokens: Schema.Number.annotate({ format: "int64" }).check( |
| 5925 | totalTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 6962 | Schema.isInt().annotate({ expected: "an integer" }), |
| 5926 | }); | 6963 | ), |
| 5927 | | 6964 | outputTokens: Schema.Number.annotate({ format: "int64" }).check( |
| 5928 | export type V2RawResponseItemCompletedNotification__AgentMessageInputContent = | 6965 | Schema.isInt().annotate({ expected: "an integer" }), |
| 5929 | | { readonly text: string; readonly type: "input_text" } | 6966 | ), |
| 5930 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; | 6967 | reasoningOutputTokens: Schema.Number.annotate({ format: "int64" }).check( |
| 5931 | export const V2RawResponseItemCompletedNotification__AgentMessageInputContent = Schema.Union( | 6968 | Schema.isInt().annotate({ expected: "an integer" }), |
| 5932 | [ | 6969 | ), |
| 5933 | Schema.Struct({ | 6970 | totalTokens: Schema.Number.annotate({ format: "int64" }).check( |
| 5934 | text: Schema.String, | 6971 | Schema.isInt().annotate({ expected: "an integer" }), |
| 5935 | type: Schema.Literal("input_text").annotate({ | 6972 | ), |
| 5936 | title: "InputTextAgentMessageInputContentType", | 6973 | }).annotate({ identifier: "V2RawResponseCompletedNotification__TokenUsageBreakdown" }); |
| 5937 | }), | | |
| 5938 | }).annotate({ title: "InputTextAgentMessageInputContent" }), | | |
| 5939 | Schema.Struct({ | | |
| 5940 | encrypted_content: Schema.String, | | |
| 5941 | type: Schema.Literal("encrypted_content").annotate({ | | |
| 5942 | title: "EncryptedContentAgentMessageInputContentType", | | |
| 5943 | }), | | |
| 5944 | }).annotate({ title: "EncryptedContentAgentMessageInputContent" }), | | |
| 5945 | ], | | |
| 5946 | { mode: "oneOf" }, | | |
| 5947 | ); | | |
| 5948 | | 6974 | |
| 5949 | export type V2RawResponseItemCompletedNotification__ImageDetail = | 6975 | export type V2RawResponseItemCompletedNotification__ImageDetail = |
| 5950 | | "auto" | 6976 | | "auto" |
| ... | @@ -5956,7 +6982,7 @@ export const V2RawResponseItemCompletedNotification__ImageDetail = Schema.Litera | ... | @@ -5956,7 +6982,7 @@ export const V2RawResponseItemCompletedNotification__ImageDetail = Schema.Litera |
| 5956 | "low", | 6982 | "low", |
| 5957 | "high", | 6983 | "high", |
| 5958 | "original", | 6984 | "original", |
| 5959 | ]); | 6985 | ]).annotate({ identifier: "V2RawResponseItemCompletedNotification__ImageDetail" }); |
| 5960 | | 6986 | |
| 5961 | export type V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough = { | 6987 | export type V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough = { |
| 5962 | readonly turn_id?: string | null; | 6988 | readonly turn_id?: string | null; |
| ... | @@ -5967,58 +6993,48 @@ export const V2RawResponseItemCompletedNotification__InternalChatMessageMetadata | ... | @@ -5967,58 +6993,48 @@ export const V2RawResponseItemCompletedNotification__InternalChatMessageMetadata |
| 5967 | }).annotate({ | 6993 | }).annotate({ |
| 5968 | description: | 6994 | description: |
| 5969 | "Internal Responses API passthrough metadata copied into underlying chat messages.\n\nResponses API strongly types this payload. Do not modify it without first getting API approval and making the corresponding Responses API change.", | 6995 | "Internal Responses API passthrough metadata copied into underlying chat messages.\n\nResponses API strongly types this payload. Do not modify it without first getting API approval and making the corresponding Responses API change.", |
| | 6996 | identifier: "V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough", |
| 5970 | }); | 6997 | }); |
| 5971 | | 6998 | |
| 5972 | export type V2RawResponseItemCompletedNotification__LocalShellAction = { | 6999 | export type V2RawResponseItemCompletedNotification__MessagePhase = "commentary" | "final_answer"; |
| 5973 | readonly command: ReadonlyArray<string>; | 7000 | export const V2RawResponseItemCompletedNotification__MessagePhase = Schema.Union( |
| 5974 | readonly env?: { readonly [x: string]: string } | null; | | |
| 5975 | readonly timeout_ms?: number | null; | | |
| 5976 | readonly type: "exec"; | | |
| 5977 | readonly user?: string | null; | | |
| 5978 | readonly working_directory?: string | null; | | |
| 5979 | }; | | |
| 5980 | export const V2RawResponseItemCompletedNotification__LocalShellAction = Schema.Union( | | |
| 5981 | [ | 7001 | [ |
| 5982 | Schema.Struct({ | 7002 | Schema.Literal("commentary").annotate({ |
| 5983 | command: Schema.Array(Schema.String), | 7003 | description: |
| 5984 | env: Schema.optionalKey( | 7004 | "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.", |
| 5985 | Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null]), | 7005 | }), |
| 5986 | ), | 7006 | Schema.Literal("final_answer").annotate({ |
| 5987 | timeout_ms: Schema.optionalKey( | 7007 | description: "The assistant's terminal answer text for the current turn.", |
| 5988 | Schema.Union([ | 7008 | }), |
| 5989 | Schema.Number.annotate({ format: "uint64" }) | | |
| 5990 | .check(Schema.isInt()) | | |
| 5991 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 5992 | Schema.Null, | | |
| 5993 | ]), | | |
| 5994 | ), | | |
| 5995 | type: Schema.Literal("exec").annotate({ title: "ExecLocalShellActionType" }), | | |
| 5996 | user: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 5997 | working_directory: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 5998 | }).annotate({ title: "ExecLocalShellAction" }), | | |
| 5999 | ], | 7009 | ], |
| 6000 | { mode: "oneOf" }, | 7010 | { mode: "oneOf" }, |
| 6001 | ); | 7011 | ).annotate({ |
| 6002 | | | |
| 6003 | export type V2RawResponseItemCompletedNotification__LocalShellStatus = | | |
| 6004 | | "completed" | | |
| 6005 | | "in_progress" | | |
| 6006 | | "incomplete"; | | |
| 6007 | export const V2RawResponseItemCompletedNotification__LocalShellStatus = Schema.Literals([ | | |
| 6008 | "completed", | | |
| 6009 | "in_progress", | | |
| 6010 | "incomplete", | | |
| 6011 | ]); | | |
| 6012 | | | |
| 6013 | export type V2RawResponseItemCompletedNotification__MessagePhase = "commentary" | "final_answer"; | | |
| 6014 | export const V2RawResponseItemCompletedNotification__MessagePhase = Schema.Literals([ | | |
| 6015 | "commentary", | | |
| 6016 | "final_answer", | | |
| 6017 | ]).annotate({ | | |
| 6018 | description: | 7012 | description: |
| 6019 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', | 7013 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', |
| | 7014 | identifier: "V2RawResponseItemCompletedNotification__MessagePhase", |
| 6020 | }); | 7015 | }); |
| 6021 | | 7016 | |
| | 7017 | export type V2RawResponseItemCompletedNotification__AgentMessageInputContent = |
| | 7018 | | { readonly text: string; readonly type: "input_text" } |
| | 7019 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; |
| | 7020 | export const V2RawResponseItemCompletedNotification__AgentMessageInputContent = Schema.Union( |
| | 7021 | [ |
| | 7022 | Schema.Struct({ |
| | 7023 | text: Schema.String, |
| | 7024 | type: Schema.Literal("input_text").annotate({ |
| | 7025 | title: "InputTextAgentMessageInputContentType", |
| | 7026 | }), |
| | 7027 | }).annotate({ title: "InputTextAgentMessageInputContent" }), |
| | 7028 | Schema.Struct({ |
| | 7029 | encrypted_content: Schema.String, |
| | 7030 | type: Schema.Literal("encrypted_content").annotate({ |
| | 7031 | title: "EncryptedContentAgentMessageInputContentType", |
| | 7032 | }), |
| | 7033 | }).annotate({ title: "EncryptedContentAgentMessageInputContent" }), |
| | 7034 | ], |
| | 7035 | { mode: "oneOf" }, |
| | 7036 | ).annotate({ identifier: "V2RawResponseItemCompletedNotification__AgentMessageInputContent" }); |
| | 7037 | |
| 6022 | export type V2RawResponseItemCompletedNotification__ReasoningItemContent = | 7038 | export type V2RawResponseItemCompletedNotification__ReasoningItemContent = |
| 6023 | | { readonly text: string; readonly type: "reasoning_text" } | 7039 | | { readonly text: string; readonly type: "reasoning_text" } |
| 6024 | | { readonly text: string; readonly type: "text" }; | 7040 | | { readonly text: string; readonly type: "text" }; |
| ... | @@ -6036,7 +7052,7 @@ export const V2RawResponseItemCompletedNotification__ReasoningItemContent = Sche | ... | @@ -6036,7 +7052,7 @@ export const V2RawResponseItemCompletedNotification__ReasoningItemContent = Sche |
| 6036 | }).annotate({ title: "TextReasoningItemContent" }), | 7052 | }).annotate({ title: "TextReasoningItemContent" }), |
| 6037 | ], | 7053 | ], |
| 6038 | { mode: "oneOf" }, | 7054 | { mode: "oneOf" }, |
| 6039 | ); | 7055 | ).annotate({ identifier: "V2RawResponseItemCompletedNotification__ReasoningItemContent" }); |
| 6040 | | 7056 | |
| 6041 | export type V2RawResponseItemCompletedNotification__ReasoningItemReasoningSummary = { | 7057 | export type V2RawResponseItemCompletedNotification__ReasoningItemReasoningSummary = { |
| 6042 | readonly text: string; | 7058 | readonly text: string; |
| ... | @@ -6052,7 +7068,52 @@ export const V2RawResponseItemCompletedNotification__ReasoningItemReasoningSumma | ... | @@ -6052,7 +7068,52 @@ export const V2RawResponseItemCompletedNotification__ReasoningItemReasoningSumma |
| 6052 | }).annotate({ title: "SummaryTextReasoningItemReasoningSummary" }), | 7068 | }).annotate({ title: "SummaryTextReasoningItemReasoningSummary" }), |
| 6053 | ], | 7069 | ], |
| 6054 | { mode: "oneOf" }, | 7070 | { mode: "oneOf" }, |
| 6055 | ); | 7071 | ).annotate({ identifier: "V2RawResponseItemCompletedNotification__ReasoningItemReasoningSummary" }); |
| | 7072 | |
| | 7073 | export type V2RawResponseItemCompletedNotification__LocalShellAction = { |
| | 7074 | readonly command: ReadonlyArray<string>; |
| | 7075 | readonly env?: { readonly [x: string]: string } | null; |
| | 7076 | readonly timeout_ms?: number | null; |
| | 7077 | readonly type: "exec"; |
| | 7078 | readonly user?: string | null; |
| | 7079 | readonly working_directory?: string | null; |
| | 7080 | }; |
| | 7081 | export const V2RawResponseItemCompletedNotification__LocalShellAction = Schema.Union( |
| | 7082 | [ |
| | 7083 | Schema.Struct({ |
| | 7084 | command: Schema.Array(Schema.String), |
| | 7085 | env: Schema.optionalKey( |
| | 7086 | Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null]), |
| | 7087 | ), |
| | 7088 | timeout_ms: Schema.optionalKey( |
| | 7089 | Schema.Union([ |
| | 7090 | Schema.Number.annotate({ format: "uint64" }) |
| | 7091 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 7092 | .check( |
| | 7093 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 7094 | expected: "a value greater than or equal to 0", |
| | 7095 | }), |
| | 7096 | ), |
| | 7097 | Schema.Null, |
| | 7098 | ]), |
| | 7099 | ), |
| | 7100 | type: Schema.Literal("exec").annotate({ title: "ExecLocalShellActionType" }), |
| | 7101 | user: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 7102 | working_directory: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 7103 | }).annotate({ title: "ExecLocalShellAction" }), |
| | 7104 | ], |
| | 7105 | { mode: "oneOf" }, |
| | 7106 | ).annotate({ identifier: "V2RawResponseItemCompletedNotification__LocalShellAction" }); |
| | 7107 | |
| | 7108 | export type V2RawResponseItemCompletedNotification__LocalShellStatus = |
| | 7109 | | "completed" |
| | 7110 | | "in_progress" |
| | 7111 | | "incomplete"; |
| | 7112 | export const V2RawResponseItemCompletedNotification__LocalShellStatus = Schema.Literals([ |
| | 7113 | "completed", |
| | 7114 | "in_progress", |
| | 7115 | "incomplete", |
| | 7116 | ]).annotate({ identifier: "V2RawResponseItemCompletedNotification__LocalShellStatus" }); |
| 6056 | | 7117 | |
| 6057 | export type V2RawResponseItemCompletedNotification__ResponsesApiWebSearchAction = | 7118 | export type V2RawResponseItemCompletedNotification__ResponsesApiWebSearchAction = |
| 6058 | | { | 7119 | | { |
| ... | @@ -6092,7 +7153,7 @@ export const V2RawResponseItemCompletedNotification__ResponsesApiWebSearchAction | ... | @@ -6092,7 +7153,7 @@ export const V2RawResponseItemCompletedNotification__ResponsesApiWebSearchAction |
| 6092 | }).annotate({ title: "OtherResponsesApiWebSearchAction" }), | 7153 | }).annotate({ title: "OtherResponsesApiWebSearchAction" }), |
| 6093 | ], | 7154 | ], |
| 6094 | { mode: "oneOf" }, | 7155 | { mode: "oneOf" }, |
| 6095 | ); | 7156 | ).annotate({ identifier: "V2RawResponseItemCompletedNotification__ResponsesApiWebSearchAction" }); |
| 6096 | | 7157 | |
| 6097 | export type V2RemoteControlStatusChangedNotification__RemoteControlConnectionStatus = | 7158 | export type V2RemoteControlStatusChangedNotification__RemoteControlConnectionStatus = |
| 6098 | | "disabled" | 7159 | | "disabled" |
| ... | @@ -6100,10 +7161,14 @@ export type V2RemoteControlStatusChangedNotification__RemoteControlConnectionSta | ... | @@ -6100,10 +7161,14 @@ export type V2RemoteControlStatusChangedNotification__RemoteControlConnectionSta |
| 6100 | | "connected" | 7161 | | "connected" |
| 6101 | | "errored"; | 7162 | | "errored"; |
| 6102 | export const V2RemoteControlStatusChangedNotification__RemoteControlConnectionStatus = | 7163 | export const V2RemoteControlStatusChangedNotification__RemoteControlConnectionStatus = |
| 6103 | Schema.Literals(["disabled", "connecting", "connected", "errored"]); | 7164 | Schema.Literals(["disabled", "connecting", "connected", "errored"]).annotate({ |
| | 7165 | identifier: "V2RemoteControlStatusChangedNotification__RemoteControlConnectionStatus", |
| | 7166 | }); |
| 6104 | | 7167 | |
| 6105 | export type V2ReviewStartParams__ReviewDelivery = "inline" | "detached"; | 7168 | export type V2ReviewStartParams__ReviewDelivery = "inline" | "detached"; |
| 6106 | export const V2ReviewStartParams__ReviewDelivery = Schema.Literals(["inline", "detached"]); | 7169 | export const V2ReviewStartParams__ReviewDelivery = Schema.Literals(["inline", "detached"]).annotate( |
| | 7170 | { identifier: "V2ReviewStartParams__ReviewDelivery" }, |
| | 7171 | ); |
| 6107 | | 7172 | |
| 6108 | export type V2ReviewStartParams__ReviewTarget = | 7173 | export type V2ReviewStartParams__ReviewTarget = |
| 6109 | | { readonly type: "uncommittedChanges" } | 7174 | | { readonly type: "uncommittedChanges" } |
| ... | @@ -6151,31 +7216,107 @@ export const V2ReviewStartParams__ReviewTarget = Schema.Union( | ... | @@ -6151,31 +7216,107 @@ export const V2ReviewStartParams__ReviewTarget = Schema.Union( |
| 6151 | }), | 7216 | }), |
| 6152 | ], | 7217 | ], |
| 6153 | { mode: "oneOf" }, | 7218 | { mode: "oneOf" }, |
| 6154 | ); | 7219 | ).annotate({ identifier: "V2ReviewStartParams__ReviewTarget" }); |
| | 7220 | |
| | 7221 | export type V2ReviewStartResponse__NonSteerableTurnKind = "review" | "compact"; |
| | 7222 | export const V2ReviewStartResponse__NonSteerableTurnKind = Schema.Literals([ |
| | 7223 | "review", |
| | 7224 | "compact", |
| | 7225 | ]).annotate({ identifier: "V2ReviewStartResponse__NonSteerableTurnKind" }); |
| | 7226 | |
| | 7227 | export type V2ReviewStartResponse__ByteRange = { readonly end: number; readonly start: number }; |
| | 7228 | export const V2ReviewStartResponse__ByteRange = Schema.Struct({ |
| | 7229 | end: Schema.Number.annotate({ format: "uint" }) |
| | 7230 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 7231 | .check( |
| | 7232 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 7233 | ), |
| | 7234 | start: Schema.Number.annotate({ format: "uint" }) |
| | 7235 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 7236 | .check( |
| | 7237 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 7238 | ), |
| | 7239 | }).annotate({ identifier: "V2ReviewStartResponse__ByteRange" }); |
| | 7240 | |
| | 7241 | export type V2ReviewStartResponse__ImageDetail = "auto" | "low" | "high" | "original"; |
| | 7242 | export const V2ReviewStartResponse__ImageDetail = Schema.Literals([ |
| | 7243 | "auto", |
| | 7244 | "low", |
| | 7245 | "high", |
| | 7246 | "original", |
| | 7247 | ]).annotate({ identifier: "V2ReviewStartResponse__ImageDetail" }); |
| | 7248 | |
| | 7249 | export type V2ReviewStartResponse__HookPromptFragment = { |
| | 7250 | readonly hookRunId: string; |
| | 7251 | readonly text: string; |
| | 7252 | }; |
| | 7253 | export const V2ReviewStartResponse__HookPromptFragment = Schema.Struct({ |
| | 7254 | hookRunId: Schema.String, |
| | 7255 | text: Schema.String, |
| | 7256 | }).annotate({ identifier: "V2ReviewStartResponse__HookPromptFragment" }); |
| | 7257 | |
| | 7258 | export type V2ReviewStartResponse__MemoryCitationEntry = { |
| | 7259 | readonly lineEnd: number; |
| | 7260 | readonly lineStart: number; |
| | 7261 | readonly note: string; |
| | 7262 | readonly path: string; |
| | 7263 | }; |
| | 7264 | export const V2ReviewStartResponse__MemoryCitationEntry = Schema.Struct({ |
| | 7265 | lineEnd: Schema.Number.annotate({ format: "uint32" }) |
| | 7266 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 7267 | .check( |
| | 7268 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 7269 | ), |
| | 7270 | lineStart: Schema.Number.annotate({ format: "uint32" }) |
| | 7271 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 7272 | .check( |
| | 7273 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 7274 | ), |
| | 7275 | note: Schema.String, |
| | 7276 | path: Schema.String, |
| | 7277 | }).annotate({ identifier: "V2ReviewStartResponse__MemoryCitationEntry" }); |
| | 7278 | |
| | 7279 | export type V2ReviewStartResponse__MessagePhase = "commentary" | "final_answer"; |
| | 7280 | export const V2ReviewStartResponse__MessagePhase = Schema.Union( |
| | 7281 | [ |
| | 7282 | Schema.Literal("commentary").annotate({ |
| | 7283 | description: |
| | 7284 | "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.", |
| | 7285 | }), |
| | 7286 | Schema.Literal("final_answer").annotate({ |
| | 7287 | description: "The assistant's terminal answer text for the current turn.", |
| | 7288 | }), |
| | 7289 | ], |
| | 7290 | { mode: "oneOf" }, |
| | 7291 | ).annotate({ |
| | 7292 | description: |
| | 7293 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', |
| | 7294 | identifier: "V2ReviewStartResponse__MessagePhase", |
| | 7295 | }); |
| 6155 | | 7296 | |
| 6156 | export type V2ReviewStartResponse__AbsolutePathBuf = string; | 7297 | export type V2ReviewStartResponse__AbsolutePathBuf = string; |
| 6157 | export const V2ReviewStartResponse__AbsolutePathBuf = Schema.String.annotate({ | 7298 | export const V2ReviewStartResponse__AbsolutePathBuf = Schema.String.annotate({ |
| 6158 | description: | 7299 | description: |
| 6159 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 7300 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 7301 | identifier: "V2ReviewStartResponse__AbsolutePathBuf", |
| 6160 | }); | 7302 | }); |
| 6161 | | 7303 | |
| 6162 | export type V2ReviewStartResponse__CollabAgentStatus = | 7304 | export type V2ReviewStartResponse__LegacyAppPathString = string; |
| 6163 | | "pendingInit" | 7305 | export const V2ReviewStartResponse__LegacyAppPathString = Schema.String.annotate({ |
| 6164 | | "running" | 7306 | identifier: "V2ReviewStartResponse__LegacyAppPathString", |
| 6165 | | "interrupted" | 7307 | }); |
| 6166 | | "completed" | 7308 | |
| 6167 | | "errored" | 7309 | export type V2ReviewStartResponse__CommandExecutionSource = |
| 6168 | | "shutdown" | 7310 | | "agent" |
| 6169 | | "notFound"; | 7311 | | "userShell" |
| 6170 | export const V2ReviewStartResponse__CollabAgentStatus = Schema.Literals([ | 7312 | | "unifiedExecStartup" |
| 6171 | "pendingInit", | 7313 | | "unifiedExecInteraction"; |
| 6172 | "running", | 7314 | export const V2ReviewStartResponse__CommandExecutionSource = Schema.Literals([ |
| 6173 | "interrupted", | 7315 | "agent", |
| 6174 | "completed", | 7316 | "userShell", |
| 6175 | "errored", | 7317 | "unifiedExecStartup", |
| 6176 | "shutdown", | 7318 | "unifiedExecInteraction", |
| 6177 | "notFound", | 7319 | ]).annotate({ identifier: "V2ReviewStartResponse__CommandExecutionSource" }); |
| 6178 | ]); | | |
| 6179 | | 7320 | |
| 6180 | export type V2ReviewStartResponse__CommandExecutionStatus = | 7321 | export type V2ReviewStartResponse__CommandExecutionStatus = |
| 6181 | | "inProgress" | 7322 | | "inProgress" |
| ... | @@ -6187,62 +7328,39 @@ export const V2ReviewStartResponse__CommandExecutionStatus = Schema.Literals([ | ... | @@ -6187,62 +7328,39 @@ export const V2ReviewStartResponse__CommandExecutionStatus = Schema.Literals([ |
| 6187 | "completed", | 7328 | "completed", |
| 6188 | "failed", | 7329 | "failed", |
| 6189 | "declined", | 7330 | "declined", |
| 6190 | ]); | 7331 | ]).annotate({ identifier: "V2ReviewStartResponse__CommandExecutionStatus" }); |
| 6191 | | 7332 | |
| 6192 | export type V2ReviewStartResponse__DynamicToolCallOutputContentItem = | 7333 | export type V2ReviewStartResponse__PatchChangeKind = |
| 6193 | | { readonly text: string; readonly type: "inputText" } | 7334 | | { readonly type: "add" } |
| 6194 | | { readonly imageUrl: string; readonly type: "inputImage" } | 7335 | | { readonly type: "delete" } |
| 6195 | | { readonly audioUrl: string; readonly type: "inputAudio" }; | 7336 | | { readonly move_path?: string | null; readonly type: "update" }; |
| 6196 | export const V2ReviewStartResponse__DynamicToolCallOutputContentItem = Schema.Union( | 7337 | export const V2ReviewStartResponse__PatchChangeKind = Schema.Union( |
| 6197 | [ | 7338 | [ |
| 6198 | Schema.Struct({ | 7339 | Schema.Struct({ |
| 6199 | text: Schema.String, | 7340 | type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }), |
| 6200 | type: Schema.Literal("inputText").annotate({ | 7341 | }).annotate({ title: "AddPatchChangeKind" }), |
| 6201 | title: "InputTextDynamicToolCallOutputContentItemType", | | |
| 6202 | }), | | |
| 6203 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), | | |
| 6204 | Schema.Struct({ | 7342 | Schema.Struct({ |
| 6205 | imageUrl: Schema.String, | 7343 | type: Schema.Literal("delete").annotate({ title: "DeletePatchChangeKindType" }), |
| 6206 | type: Schema.Literal("inputImage").annotate({ | 7344 | }).annotate({ title: "DeletePatchChangeKind" }), |
| 6207 | title: "InputImageDynamicToolCallOutputContentItemType", | | |
| 6208 | }), | | |
| 6209 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), | | |
| 6210 | Schema.Struct({ | 7345 | Schema.Struct({ |
| 6211 | audioUrl: Schema.String, | 7346 | move_path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 6212 | type: Schema.Literal("inputAudio").annotate({ | 7347 | type: Schema.Literal("update").annotate({ title: "UpdatePatchChangeKindType" }), |
| 6213 | title: "InputAudioDynamicToolCallOutputContentItemType", | 7348 | }).annotate({ title: "UpdatePatchChangeKind" }), |
| 6214 | }), | | |
| 6215 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), | | |
| 6216 | ], | 7349 | ], |
| 6217 | { mode: "oneOf" }, | 7350 | { mode: "oneOf" }, |
| 6218 | ); | 7351 | ).annotate({ identifier: "V2ReviewStartResponse__PatchChangeKind" }); |
| 6219 | | 7352 | |
| 6220 | export type V2ReviewStartResponse__DynamicToolCallStatus = "inProgress" | "completed" | "failed"; | 7353 | export type V2ReviewStartResponse__PatchApplyStatus = |
| 6221 | export const V2ReviewStartResponse__DynamicToolCallStatus = Schema.Literals([ | 7354 | | "inProgress" |
| | 7355 | | "completed" |
| | 7356 | | "failed" |
| | 7357 | | "declined"; |
| | 7358 | export const V2ReviewStartResponse__PatchApplyStatus = Schema.Literals([ |
| 6222 | "inProgress", | 7359 | "inProgress", |
| 6223 | "completed", | 7360 | "completed", |
| 6224 | "failed", | 7361 | "failed", |
| 6225 | ]); | 7362 | "declined", |
| 6226 | | 7363 | ]).annotate({ identifier: "V2ReviewStartResponse__PatchApplyStatus" }); |
| 6227 | export type V2ReviewStartResponse__HookPromptFragment = { | | |
| 6228 | readonly hookRunId: string; | | |
| 6229 | readonly text: string; | | |
| 6230 | }; | | |
| 6231 | export const V2ReviewStartResponse__HookPromptFragment = Schema.Struct({ | | |
| 6232 | hookRunId: Schema.String, | | |
| 6233 | text: Schema.String, | | |
| 6234 | }); | | |
| 6235 | | | |
| 6236 | export type V2ReviewStartResponse__ImageDetail = "auto" | "low" | "high" | "original"; | | |
| 6237 | export const V2ReviewStartResponse__ImageDetail = Schema.Literals([ | | |
| 6238 | "auto", | | |
| 6239 | "low", | | |
| 6240 | "high", | | |
| 6241 | "original", | | |
| 6242 | ]); | | |
| 6243 | | | |
| 6244 | export type V2ReviewStartResponse__LegacyAppPathString = string; | | |
| 6245 | export const V2ReviewStartResponse__LegacyAppPathString = Schema.String; | | |
| 6246 | | 7364 | |
| 6247 | export type V2ReviewStartResponse__McpToolCallAppContext = { | 7365 | export type V2ReviewStartResponse__McpToolCallAppContext = { |
| 6248 | readonly actionName?: string | null; | 7366 | readonly actionName?: string | null; |
| ... | @@ -6257,94 +7375,127 @@ export const V2ReviewStartResponse__McpToolCallAppContext = Schema.Struct({ | ... | @@ -6257,94 +7375,127 @@ export const V2ReviewStartResponse__McpToolCallAppContext = Schema.Struct({ |
| 6257 | connectorId: Schema.String, | 7375 | connectorId: Schema.String, |
| 6258 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 7376 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 6259 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 7377 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 6260 | }); | 7378 | }).annotate({ identifier: "V2ReviewStartResponse__McpToolCallAppContext" }); |
| 6261 | | 7379 | |
| 6262 | export type V2ReviewStartResponse__McpToolCallError = { readonly message: string }; | 7380 | export type V2ReviewStartResponse__McpToolCallError = { readonly message: string }; |
| 6263 | export const V2ReviewStartResponse__McpToolCallError = Schema.Struct({ message: Schema.String }); | 7381 | export const V2ReviewStartResponse__McpToolCallError = Schema.Struct({ |
| | 7382 | message: Schema.String, |
| | 7383 | }).annotate({ identifier: "V2ReviewStartResponse__McpToolCallError" }); |
| 6264 | | 7384 | |
| 6265 | export type V2ReviewStartResponse__McpToolCallResult = { | 7385 | export type V2ReviewStartResponse__McpToolCallResult = { |
| 6266 | readonly _meta?: unknown; | 7386 | readonly _meta?: Schema.Json; |
| 6267 | readonly content: ReadonlyArray<unknown>; | 7387 | readonly content: ReadonlyArray<Schema.Json>; |
| 6268 | readonly structuredContent?: unknown; | 7388 | readonly structuredContent?: Schema.Json; |
| 6269 | }; | 7389 | }; |
| 6270 | export const V2ReviewStartResponse__McpToolCallResult = Schema.Struct({ | 7390 | export const V2ReviewStartResponse__McpToolCallResult = Schema.Struct({ |
| 6271 | _meta: Schema.optionalKey(Schema.Unknown), | 7391 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 6272 | content: Schema.Array(Schema.Unknown), | 7392 | content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), |
| 6273 | structuredContent: Schema.optionalKey(Schema.Unknown), | 7393 | structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 6274 | }); | 7394 | }).annotate({ identifier: "V2ReviewStartResponse__McpToolCallResult" }); |
| 6275 | | 7395 | |
| 6276 | export type V2ReviewStartResponse__McpToolCallStatus = "inProgress" | "completed" | "failed"; | 7396 | export type V2ReviewStartResponse__McpToolCallStatus = "inProgress" | "completed" | "failed"; |
| 6277 | export const V2ReviewStartResponse__McpToolCallStatus = Schema.Literals([ | 7397 | export const V2ReviewStartResponse__McpToolCallStatus = Schema.Literals([ |
| 6278 | "inProgress", | 7398 | "inProgress", |
| 6279 | "completed", | 7399 | "completed", |
| 6280 | "failed", | 7400 | "failed", |
| 6281 | ]); | 7401 | ]).annotate({ identifier: "V2ReviewStartResponse__McpToolCallStatus" }); |
| 6282 | | | |
| 6283 | export type V2ReviewStartResponse__MemoryCitationEntry = { | | |
| 6284 | readonly lineEnd: number; | | |
| 6285 | readonly lineStart: number; | | |
| 6286 | readonly note: string; | | |
| 6287 | readonly path: string; | | |
| 6288 | }; | | |
| 6289 | export const V2ReviewStartResponse__MemoryCitationEntry = Schema.Struct({ | | |
| 6290 | lineEnd: Schema.Number.annotate({ format: "uint32" }) | | |
| 6291 | .check(Schema.isInt()) | | |
| 6292 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 6293 | lineStart: Schema.Number.annotate({ format: "uint32" }) | | |
| 6294 | .check(Schema.isInt()) | | |
| 6295 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 6296 | note: Schema.String, | | |
| 6297 | path: Schema.String, | | |
| 6298 | }); | | |
| 6299 | | | |
| 6300 | export type V2ReviewStartResponse__MessagePhase = "commentary" | "final_answer"; | | |
| 6301 | export const V2ReviewStartResponse__MessagePhase = Schema.Literals([ | | |
| 6302 | "commentary", | | |
| 6303 | "final_answer", | | |
| 6304 | ]).annotate({ | | |
| 6305 | description: | | |
| 6306 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', | | |
| 6307 | }); | | |
| 6308 | | | |
| 6309 | export type V2ReviewStartResponse__NonSteerableTurnKind = "review" | "compact"; | | |
| 6310 | export const V2ReviewStartResponse__NonSteerableTurnKind = Schema.Literals(["review", "compact"]); | | |
| 6311 | | | |
| 6312 | export type V2ReviewStartResponse__PatchApplyStatus = | | |
| 6313 | | "inProgress" | | |
| 6314 | | "completed" | | |
| 6315 | | "failed" | | |
| 6316 | | "declined"; | | |
| 6317 | export const V2ReviewStartResponse__PatchApplyStatus = Schema.Literals([ | | |
| 6318 | "inProgress", | | |
| 6319 | "completed", | | |
| 6320 | "failed", | | |
| 6321 | "declined", | | |
| 6322 | ]); | | |
| 6323 | | 7402 | |
| 6324 | export type V2ReviewStartResponse__PatchChangeKind = | 7403 | export type V2ReviewStartResponse__DynamicToolCallOutputContentItem = |
| 6325 | | { readonly type: "add" } | 7404 | | { readonly text: string; readonly type: "inputText" } |
| 6326 | | { readonly type: "delete" } | 7405 | | { readonly imageUrl: string; readonly type: "inputImage" } |
| 6327 | | { readonly move_path?: string | null; readonly type: "update" }; | 7406 | | { readonly audioUrl: string; readonly type: "inputAudio" }; |
| 6328 | export const V2ReviewStartResponse__PatchChangeKind = Schema.Union( | 7407 | export const V2ReviewStartResponse__DynamicToolCallOutputContentItem = Schema.Union( |
| 6329 | [ | 7408 | [ |
| 6330 | Schema.Struct({ | 7409 | Schema.Struct({ |
| 6331 | type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }), | 7410 | text: Schema.String, |
| 6332 | }).annotate({ title: "AddPatchChangeKind" }), | 7411 | type: Schema.Literal("inputText").annotate({ |
| | 7412 | title: "InputTextDynamicToolCallOutputContentItemType", |
| | 7413 | }), |
| | 7414 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), |
| 6333 | Schema.Struct({ | 7415 | Schema.Struct({ |
| 6334 | type: Schema.Literal("delete").annotate({ title: "DeletePatchChangeKindType" }), | 7416 | imageUrl: Schema.String, |
| 6335 | }).annotate({ title: "DeletePatchChangeKind" }), | 7417 | type: Schema.Literal("inputImage").annotate({ |
| | 7418 | title: "InputImageDynamicToolCallOutputContentItemType", |
| | 7419 | }), |
| | 7420 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), |
| 6336 | Schema.Struct({ | 7421 | Schema.Struct({ |
| 6337 | move_path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 7422 | audioUrl: Schema.String, |
| 6338 | type: Schema.Literal("update").annotate({ title: "UpdatePatchChangeKindType" }), | 7423 | type: Schema.Literal("inputAudio").annotate({ |
| 6339 | }).annotate({ title: "UpdatePatchChangeKind" }), | 7424 | title: "InputAudioDynamicToolCallOutputContentItemType", |
| | 7425 | }), |
| | 7426 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), |
| 6340 | ], | 7427 | ], |
| 6341 | { mode: "oneOf" }, | 7428 | { mode: "oneOf" }, |
| 6342 | ); | 7429 | ).annotate({ identifier: "V2ReviewStartResponse__DynamicToolCallOutputContentItem" }); |
| | 7430 | |
| | 7431 | export type V2ReviewStartResponse__DynamicToolCallStatus = "inProgress" | "completed" | "failed"; |
| | 7432 | export const V2ReviewStartResponse__DynamicToolCallStatus = Schema.Literals([ |
| | 7433 | "inProgress", |
| | 7434 | "completed", |
| | 7435 | "failed", |
| | 7436 | ]).annotate({ identifier: "V2ReviewStartResponse__DynamicToolCallStatus" }); |
| | 7437 | |
| | 7438 | export type V2ReviewStartResponse__CollabAgentStatus = |
| | 7439 | | "pendingInit" |
| | 7440 | | "running" |
| | 7441 | | "interrupted" |
| | 7442 | | "completed" |
| | 7443 | | "errored" |
| | 7444 | | "shutdown" |
| | 7445 | | "notFound"; |
| | 7446 | export const V2ReviewStartResponse__CollabAgentStatus = Schema.Literals([ |
| | 7447 | "pendingInit", |
| | 7448 | "running", |
| | 7449 | "interrupted", |
| | 7450 | "completed", |
| | 7451 | "errored", |
| | 7452 | "shutdown", |
| | 7453 | "notFound", |
| | 7454 | ]).annotate({ identifier: "V2ReviewStartResponse__CollabAgentStatus" }); |
| 6343 | | 7455 | |
| 6344 | export type V2ReviewStartResponse__ReasoningEffort = string; | 7456 | export type V2ReviewStartResponse__ReasoningEffort = string; |
| 6345 | export const V2ReviewStartResponse__ReasoningEffort = Schema.String.annotate({ | 7457 | export const V2ReviewStartResponse__ReasoningEffort = Schema.String.annotate({ |
| 6346 | description: "A non-empty reasoning effort value advertised by the model.", | 7458 | description: "A non-empty reasoning effort value advertised by the model.", |
| 6347 | }).check(Schema.isMinLength(1)); | 7459 | }).check( |
| | 7460 | Schema.isMinLength(1).annotate({ |
| | 7461 | expected: "a value with a length of at least 1", |
| | 7462 | identifier: "V2ReviewStartResponse__ReasoningEffort", |
| | 7463 | }), |
| | 7464 | ); |
| | 7465 | |
| | 7466 | export type V2ReviewStartResponse__CollabAgentToolCallStatus = |
| | 7467 | | "inProgress" |
| | 7468 | | "completed" |
| | 7469 | | "failed" |
| | 7470 | | "interrupted"; |
| | 7471 | export const V2ReviewStartResponse__CollabAgentToolCallStatus = Schema.Literals([ |
| | 7472 | "inProgress", |
| | 7473 | "completed", |
| | 7474 | "failed", |
| | 7475 | "interrupted", |
| | 7476 | ]).annotate({ identifier: "V2ReviewStartResponse__CollabAgentToolCallStatus" }); |
| | 7477 | |
| | 7478 | export type V2ReviewStartResponse__CollabAgentTool = |
| | 7479 | | "spawnAgent" |
| | 7480 | | "sendInput" |
| | 7481 | | "resumeAgent" |
| | 7482 | | "wait" |
| | 7483 | | "closeAgent" |
| | 7484 | | "sendMessage" |
| | 7485 | | "followupTask" |
| | 7486 | | "interruptAgent" |
| | 7487 | | "listAgents"; |
| | 7488 | export const V2ReviewStartResponse__CollabAgentTool = Schema.Literals([ |
| | 7489 | "spawnAgent", |
| | 7490 | "sendInput", |
| | 7491 | "resumeAgent", |
| | 7492 | "wait", |
| | 7493 | "closeAgent", |
| | 7494 | "sendMessage", |
| | 7495 | "followupTask", |
| | 7496 | "interruptAgent", |
| | 7497 | "listAgents", |
| | 7498 | ]).annotate({ identifier: "V2ReviewStartResponse__CollabAgentTool" }); |
| 6348 | | 7499 | |
| 6349 | export type V2ReviewStartResponse__SubAgentActivityKind = | 7500 | export type V2ReviewStartResponse__SubAgentActivityKind = |
| 6350 | | "started" | 7501 | | "started" |
| ... | @@ -6356,44 +7507,7 @@ export const V2ReviewStartResponse__SubAgentActivityKind = Schema.Literals([ | ... | @@ -6356,44 +7507,7 @@ export const V2ReviewStartResponse__SubAgentActivityKind = Schema.Literals([ |
| 6356 | "interacted", | 7507 | "interacted", |
| 6357 | "interrupted", | 7508 | "interrupted", |
| 6358 | "completed", | 7509 | "completed", |
| 6359 | ]); | 7510 | ]).annotate({ identifier: "V2ReviewStartResponse__SubAgentActivityKind" }); |
| 6360 | | | |
| 6361 | export type V2ReviewStartResponse__TextElement = { | | |
| 6362 | readonly byteRange: { readonly end: number; readonly start: number }; | | |
| 6363 | readonly placeholder?: string | null; | | |
| 6364 | }; | | |
| 6365 | export const V2ReviewStartResponse__TextElement = Schema.Struct({ | | |
| 6366 | byteRange: Schema.Struct({ | | |
| 6367 | end: Schema.Number.annotate({ format: "uint" }) | | |
| 6368 | .check(Schema.isInt()) | | |
| 6369 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 6370 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 6371 | .check(Schema.isInt()) | | |
| 6372 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 6373 | }).annotate({ | | |
| 6374 | description: "Byte range in the parent `text` buffer that this element occupies.", | | |
| 6375 | }), | | |
| 6376 | placeholder: Schema.optionalKey( | | |
| 6377 | Schema.Union([ | | |
| 6378 | Schema.String.annotate({ | | |
| 6379 | description: "Optional human-readable placeholder for the element, displayed in the UI.", | | |
| 6380 | }), | | |
| 6381 | Schema.Null, | | |
| 6382 | ]), | | |
| 6383 | ), | | |
| 6384 | }); | | |
| 6385 | | | |
| 6386 | export type V2ReviewStartResponse__TurnStatus = | | |
| 6387 | | "completed" | | |
| 6388 | | "interrupted" | | |
| 6389 | | "failed" | | |
| 6390 | | "inProgress"; | | |
| 6391 | export const V2ReviewStartResponse__TurnStatus = Schema.Literals([ | | |
| 6392 | "completed", | | |
| 6393 | "interrupted", | | |
| 6394 | "failed", | | |
| 6395 | "inProgress", | | |
| 6396 | ]); | | |
| 6397 | | 7511 | |
| 6398 | export type V2ReviewStartResponse__WebSearchAction = | 7512 | export type V2ReviewStartResponse__WebSearchAction = |
| 6399 | | { | 7513 | | { |
| ... | @@ -6425,13 +7539,42 @@ export const V2ReviewStartResponse__WebSearchAction = Schema.Union( | ... | @@ -6425,13 +7539,42 @@ export const V2ReviewStartResponse__WebSearchAction = Schema.Union( |
| 6425 | }).annotate({ title: "OtherWebSearchAction" }), | 7539 | }).annotate({ title: "OtherWebSearchAction" }), |
| 6426 | ], | 7540 | ], |
| 6427 | { mode: "oneOf" }, | 7541 | { mode: "oneOf" }, |
| 6428 | ); | 7542 | ).annotate({ identifier: "V2ReviewStartResponse__WebSearchAction" }); |
| | 7543 | |
| | 7544 | export type V2ReviewStartResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| | 7545 | export const V2ReviewStartResponse__TurnItemsView = Schema.Union( |
| | 7546 | [ |
| | 7547 | Schema.Literal("notLoaded").annotate({ |
| | 7548 | description: "`items` was not loaded for this turn. The field is intentionally empty.", |
| | 7549 | }), |
| | 7550 | Schema.Literal("summary").annotate({ |
| | 7551 | description: "`items` contains only a display summary for this turn.", |
| | 7552 | }), |
| | 7553 | Schema.Literal("full").annotate({ |
| | 7554 | description: |
| | 7555 | "`items` contains every ThreadItem available from persisted app-server history for this turn.", |
| | 7556 | }), |
| | 7557 | ], |
| | 7558 | { mode: "oneOf" }, |
| | 7559 | ).annotate({ identifier: "V2ReviewStartResponse__TurnItemsView" }); |
| | 7560 | |
| | 7561 | export type V2ReviewStartResponse__TurnStatus = |
| | 7562 | | "completed" |
| | 7563 | | "interrupted" |
| | 7564 | | "failed" |
| | 7565 | | "inProgress"; |
| | 7566 | export const V2ReviewStartResponse__TurnStatus = Schema.Literals([ |
| | 7567 | "completed", |
| | 7568 | "interrupted", |
| | 7569 | "failed", |
| | 7570 | "inProgress", |
| | 7571 | ]).annotate({ identifier: "V2ReviewStartResponse__TurnStatus" }); |
| 6429 | | 7572 | |
| 6430 | export type V2SendAddCreditsNudgeEmailParams__AddCreditsNudgeCreditType = "credits" | "usage_limit"; | 7573 | export type V2SendAddCreditsNudgeEmailParams__AddCreditsNudgeCreditType = "credits" | "usage_limit"; |
| 6431 | export const V2SendAddCreditsNudgeEmailParams__AddCreditsNudgeCreditType = Schema.Literals([ | 7574 | export const V2SendAddCreditsNudgeEmailParams__AddCreditsNudgeCreditType = Schema.Literals([ |
| 6432 | "credits", | 7575 | "credits", |
| 6433 | "usage_limit", | 7576 | "usage_limit", |
| 6434 | ]); | 7577 | ]).annotate({ identifier: "V2SendAddCreditsNudgeEmailParams__AddCreditsNudgeCreditType" }); |
| 6435 | | 7578 | |
| 6436 | export type V2SendAddCreditsNudgeEmailResponse__AddCreditsNudgeEmailStatus = | 7579 | export type V2SendAddCreditsNudgeEmailResponse__AddCreditsNudgeEmailStatus = |
| 6437 | | "sent" | 7580 | | "sent" |
| ... | @@ -6439,30 +7582,28 @@ export type V2SendAddCreditsNudgeEmailResponse__AddCreditsNudgeEmailStatus = | ... | @@ -6439,30 +7582,28 @@ export type V2SendAddCreditsNudgeEmailResponse__AddCreditsNudgeEmailStatus = |
| 6439 | export const V2SendAddCreditsNudgeEmailResponse__AddCreditsNudgeEmailStatus = Schema.Literals([ | 7582 | export const V2SendAddCreditsNudgeEmailResponse__AddCreditsNudgeEmailStatus = Schema.Literals([ |
| 6440 | "sent", | 7583 | "sent", |
| 6441 | "cooldown_active", | 7584 | "cooldown_active", |
| 6442 | ]); | 7585 | ]).annotate({ identifier: "V2SendAddCreditsNudgeEmailResponse__AddCreditsNudgeEmailStatus" }); |
| 6443 | | 7586 | |
| 6444 | export type V2ServerRequestResolvedNotification__RequestId = string | number; | 7587 | export type V2ServerRequestResolvedNotification__RequestId = string | number; |
| 6445 | export const V2ServerRequestResolvedNotification__RequestId = Schema.Union([ | 7588 | export const V2ServerRequestResolvedNotification__RequestId = Schema.Union([ |
| 6446 | Schema.String, | 7589 | Schema.String, |
| 6447 | Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 7590 | Schema.Number.annotate({ format: "int64" }).check( |
| 6448 | ]); | 7591 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 7592 | ), |
| | 7593 | ]).annotate({ identifier: "V2ServerRequestResolvedNotification__RequestId" }); |
| 6449 | | 7594 | |
| 6450 | export type V2SkillsConfigWriteParams__AbsolutePathBuf = string; | 7595 | export type V2SkillsConfigWriteParams__AbsolutePathBuf = string; |
| 6451 | export const V2SkillsConfigWriteParams__AbsolutePathBuf = Schema.String.annotate({ | 7596 | export const V2SkillsConfigWriteParams__AbsolutePathBuf = Schema.String.annotate({ |
| 6452 | description: | 7597 | description: |
| 6453 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 7598 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 7599 | identifier: "V2SkillsConfigWriteParams__AbsolutePathBuf", |
| 6454 | }); | 7600 | }); |
| 6455 | | 7601 | |
| 6456 | export type V2SkillsExtraRootsSetParams__AbsolutePathBuf = string; | 7602 | export type V2SkillsExtraRootsSetParams__AbsolutePathBuf = string; |
| 6457 | export const V2SkillsExtraRootsSetParams__AbsolutePathBuf = Schema.String.annotate({ | 7603 | export const V2SkillsExtraRootsSetParams__AbsolutePathBuf = Schema.String.annotate({ |
| 6458 | description: | 7604 | description: |
| 6459 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 7605 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| 6460 | }); | 7606 | identifier: "V2SkillsExtraRootsSetParams__AbsolutePathBuf", |
| 6461 | | | |
| 6462 | export type V2SkillsListResponse__AbsolutePathBuf = string; | | |
| 6463 | export const V2SkillsListResponse__AbsolutePathBuf = Schema.String.annotate({ | | |
| 6464 | description: | | |
| 6465 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | | |
| 6466 | }); | 7607 | }); |
| 6467 | | 7608 | |
| 6468 | export type V2SkillsListResponse__SkillErrorInfo = { | 7609 | export type V2SkillsListResponse__SkillErrorInfo = { |
| ... | @@ -6472,15 +7613,7 @@ export type V2SkillsListResponse__SkillErrorInfo = { | ... | @@ -6472,15 +7613,7 @@ export type V2SkillsListResponse__SkillErrorInfo = { |
| 6472 | export const V2SkillsListResponse__SkillErrorInfo = Schema.Struct({ | 7613 | export const V2SkillsListResponse__SkillErrorInfo = Schema.Struct({ |
| 6473 | message: Schema.String, | 7614 | message: Schema.String, |
| 6474 | path: Schema.String, | 7615 | path: Schema.String, |
| 6475 | }); | 7616 | }).annotate({ identifier: "V2SkillsListResponse__SkillErrorInfo" }); |
| 6476 | | | |
| 6477 | export type V2SkillsListResponse__SkillScope = "user" | "repo" | "system" | "admin"; | | |
| 6478 | export const V2SkillsListResponse__SkillScope = Schema.Literals([ | | |
| 6479 | "user", | | |
| 6480 | "repo", | | |
| 6481 | "system", | | |
| 6482 | "admin", | | |
| 6483 | ]); | | |
| 6484 | | 7617 | |
| 6485 | export type V2SkillsListResponse__SkillToolDependency = { | 7618 | export type V2SkillsListResponse__SkillToolDependency = { |
| 6486 | readonly command?: string | null; | 7619 | readonly command?: string | null; |
| ... | @@ -6497,18 +7630,23 @@ export const V2SkillsListResponse__SkillToolDependency = Schema.Struct({ | ... | @@ -6497,18 +7630,23 @@ export const V2SkillsListResponse__SkillToolDependency = Schema.Struct({ |
| 6497 | type: Schema.String, | 7630 | type: Schema.String, |
| 6498 | url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 7631 | url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 6499 | value: Schema.String, | 7632 | value: Schema.String, |
| 6500 | }); | 7633 | }).annotate({ identifier: "V2SkillsListResponse__SkillToolDependency" }); |
| 6501 | | 7634 | |
| 6502 | export type V2ThreadForkParams__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent"; | 7635 | export type V2SkillsListResponse__AbsolutePathBuf = string; |
| 6503 | export const V2ThreadForkParams__ApprovalsReviewer = Schema.Literals([ | 7636 | export const V2SkillsListResponse__AbsolutePathBuf = Schema.String.annotate({ |
| 6504 | "user", | | |
| 6505 | "auto_review", | | |
| 6506 | "guardian_subagent", | | |
| 6507 | ]).annotate({ | | |
| 6508 | description: | 7637 | description: |
| 6509 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", | 7638 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 7639 | identifier: "V2SkillsListResponse__AbsolutePathBuf", |
| 6510 | }); | 7640 | }); |
| 6511 | | 7641 | |
| | 7642 | export type V2SkillsListResponse__SkillScope = "user" | "repo" | "system" | "admin"; |
| | 7643 | export const V2SkillsListResponse__SkillScope = Schema.Literals([ |
| | 7644 | "user", |
| | 7645 | "repo", |
| | 7646 | "system", |
| | 7647 | "admin", |
| | 7648 | ]).annotate({ identifier: "V2SkillsListResponse__SkillScope" }); |
| | 7649 | |
| 6512 | export type V2ThreadForkParams__AskForApproval = | 7650 | export type V2ThreadForkParams__AskForApproval = |
| 6513 | | "untrusted" | 7651 | | "untrusted" |
| 6514 | | "on-request" | 7652 | | "on-request" |
| ... | @@ -6536,7 +7674,18 @@ export const V2ThreadForkParams__AskForApproval = Schema.Union( | ... | @@ -6536,7 +7674,18 @@ export const V2ThreadForkParams__AskForApproval = Schema.Union( |
| 6536 | }).annotate({ title: "GranularAskForApproval" }), | 7674 | }).annotate({ title: "GranularAskForApproval" }), |
| 6537 | ], | 7675 | ], |
| 6538 | { mode: "oneOf" }, | 7676 | { mode: "oneOf" }, |
| 6539 | ); | 7677 | ).annotate({ identifier: "V2ThreadForkParams__AskForApproval" }); |
| | 7678 | |
| | 7679 | export type V2ThreadForkParams__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent"; |
| | 7680 | export const V2ThreadForkParams__ApprovalsReviewer = Schema.Literals([ |
| | 7681 | "user", |
| | 7682 | "auto_review", |
| | 7683 | "guardian_subagent", |
| | 7684 | ]).annotate({ |
| | 7685 | description: |
| | 7686 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", |
| | 7687 | identifier: "V2ThreadForkParams__ApprovalsReviewer", |
| | 7688 | }); |
| 6540 | | 7689 | |
| 6541 | export type V2ThreadForkParams__SandboxMode = | 7690 | export type V2ThreadForkParams__SandboxMode = |
| 6542 | | "read-only" | 7691 | | "read-only" |
| ... | @@ -6546,20 +7695,13 @@ export const V2ThreadForkParams__SandboxMode = Schema.Literals([ | ... | @@ -6546,20 +7695,13 @@ export const V2ThreadForkParams__SandboxMode = Schema.Literals([ |
| 6546 | "read-only", | 7695 | "read-only", |
| 6547 | "workspace-write", | 7696 | "workspace-write", |
| 6548 | "danger-full-access", | 7697 | "danger-full-access", |
| 6549 | ]); | 7698 | ]).annotate({ identifier: "V2ThreadForkParams__SandboxMode" }); |
| 6550 | | 7699 | |
| 6551 | export type V2ThreadForkParams__ThreadSource = string; | 7700 | export type V2ThreadForkParams__ThreadSource = string; |
| 6552 | export const V2ThreadForkParams__ThreadSource = Schema.String; | 7701 | export const V2ThreadForkParams__ThreadSource = Schema.String.annotate({ |
| 6553 | | 7702 | identifier: "V2ThreadForkParams__ThreadSource", |
| 6554 | export type V2ThreadForkResponse__AbsolutePathBuf = string; | | |
| 6555 | export const V2ThreadForkResponse__AbsolutePathBuf = Schema.String.annotate({ | | |
| 6556 | description: | | |
| 6557 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | | |
| 6558 | }); | 7703 | }); |
| 6559 | | 7704 | |
| 6560 | export type V2ThreadForkResponse__AgentPath = string; | | |
| 6561 | export const V2ThreadForkResponse__AgentPath = Schema.String; | | |
| 6562 | | | |
| 6563 | export type V2ThreadForkResponse__AskForApproval = | 7705 | export type V2ThreadForkResponse__AskForApproval = |
| 6564 | | "untrusted" | 7706 | | "untrusted" |
| 6565 | | "on-request" | 7707 | | "on-request" |
| ... | @@ -6587,72 +7729,46 @@ export const V2ThreadForkResponse__AskForApproval = Schema.Union( | ... | @@ -6587,72 +7729,46 @@ export const V2ThreadForkResponse__AskForApproval = Schema.Union( |
| 6587 | }).annotate({ title: "GranularAskForApproval" }), | 7729 | }).annotate({ title: "GranularAskForApproval" }), |
| 6588 | ], | 7730 | ], |
| 6589 | { mode: "oneOf" }, | 7731 | { mode: "oneOf" }, |
| 6590 | ); | 7732 | ).annotate({ identifier: "V2ThreadForkResponse__AskForApproval" }); |
| 6591 | | 7733 | |
| 6592 | export type V2ThreadForkResponse__CollabAgentStatus = | 7734 | export type V2ThreadForkResponse__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent"; |
| 6593 | | "pendingInit" | 7735 | export const V2ThreadForkResponse__ApprovalsReviewer = Schema.Literals([ |
| 6594 | | "running" | 7736 | "user", |
| 6595 | | "interrupted" | 7737 | "auto_review", |
| 6596 | | "completed" | 7738 | "guardian_subagent", |
| 6597 | | "errored" | 7739 | ]).annotate({ |
| 6598 | | "shutdown" | 7740 | description: |
| 6599 | | "notFound"; | 7741 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", |
| 6600 | export const V2ThreadForkResponse__CollabAgentStatus = Schema.Literals([ | 7742 | identifier: "V2ThreadForkResponse__ApprovalsReviewer", |
| 6601 | "pendingInit", | 7743 | }); |
| 6602 | "running", | | |
| 6603 | "interrupted", | | |
| 6604 | "completed", | | |
| 6605 | "errored", | | |
| 6606 | "shutdown", | | |
| 6607 | "notFound", | | |
| 6608 | ]); | | |
| 6609 | | 7744 | |
| 6610 | export type V2ThreadForkResponse__CommandExecutionStatus = | 7745 | export type V2ThreadForkResponse__AbsolutePathBuf = string; |
| 6611 | | "inProgress" | 7746 | export const V2ThreadForkResponse__AbsolutePathBuf = Schema.String.annotate({ |
| 6612 | | "completed" | 7747 | description: |
| 6613 | | "failed" | 7748 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| 6614 | | "declined"; | 7749 | identifier: "V2ThreadForkResponse__AbsolutePathBuf", |
| 6615 | export const V2ThreadForkResponse__CommandExecutionStatus = Schema.Literals([ | 7750 | }); |
| 6616 | "inProgress", | | |
| 6617 | "completed", | | |
| 6618 | "failed", | | |
| 6619 | "declined", | | |
| 6620 | ]); | | |
| 6621 | | 7751 | |
| 6622 | export type V2ThreadForkResponse__DynamicToolCallOutputContentItem = | 7752 | export type V2ThreadForkResponse__LegacyAppPathString = string; |
| 6623 | | { readonly text: string; readonly type: "inputText" } | 7753 | export const V2ThreadForkResponse__LegacyAppPathString = Schema.String.annotate({ |
| 6624 | | { readonly imageUrl: string; readonly type: "inputImage" } | 7754 | identifier: "V2ThreadForkResponse__LegacyAppPathString", |
| 6625 | | { readonly audioUrl: string; readonly type: "inputAudio" }; | 7755 | }); |
| 6626 | export const V2ThreadForkResponse__DynamicToolCallOutputContentItem = Schema.Union( | 7756 | |
| 6627 | [ | 7757 | export type V2ThreadForkResponse__ReasoningEffort = string; |
| 6628 | Schema.Struct({ | 7758 | export const V2ThreadForkResponse__ReasoningEffort = Schema.String.annotate({ |
| 6629 | text: Schema.String, | 7759 | description: "A non-empty reasoning effort value advertised by the model.", |
| 6630 | type: Schema.Literal("inputText").annotate({ | 7760 | }).check( |
| 6631 | title: "InputTextDynamicToolCallOutputContentItemType", | 7761 | Schema.isMinLength(1).annotate({ |
| 6632 | }), | 7762 | expected: "a value with a length of at least 1", |
| 6633 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), | 7763 | identifier: "V2ThreadForkResponse__ReasoningEffort", |
| 6634 | Schema.Struct({ | 7764 | }), |
| 6635 | imageUrl: Schema.String, | | |
| 6636 | type: Schema.Literal("inputImage").annotate({ | | |
| 6637 | title: "InputImageDynamicToolCallOutputContentItemType", | | |
| 6638 | }), | | |
| 6639 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), | | |
| 6640 | Schema.Struct({ | | |
| 6641 | audioUrl: Schema.String, | | |
| 6642 | type: Schema.Literal("inputAudio").annotate({ | | |
| 6643 | title: "InputAudioDynamicToolCallOutputContentItemType", | | |
| 6644 | }), | | |
| 6645 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), | | |
| 6646 | ], | | |
| 6647 | { mode: "oneOf" }, | | |
| 6648 | ); | 7765 | ); |
| 6649 | | 7766 | |
| 6650 | export type V2ThreadForkResponse__DynamicToolCallStatus = "inProgress" | "completed" | "failed"; | 7767 | export type V2ThreadForkResponse__NetworkAccess = "restricted" | "enabled"; |
| 6651 | export const V2ThreadForkResponse__DynamicToolCallStatus = Schema.Literals([ | 7768 | export const V2ThreadForkResponse__NetworkAccess = Schema.Literals([ |
| 6652 | "inProgress", | 7769 | "restricted", |
| 6653 | "completed", | 7770 | "enabled", |
| 6654 | "failed", | 7771 | ]).annotate({ identifier: "V2ThreadForkResponse__NetworkAccess" }); |
| 6655 | ]); | | |
| 6656 | | 7772 | |
| 6657 | export type V2ThreadForkResponse__GitInfo = { | 7773 | export type V2ThreadForkResponse__GitInfo = { |
| 6658 | readonly branch?: string | null; | 7774 | readonly branch?: string | null; |
| ... | @@ -6663,63 +7779,65 @@ export const V2ThreadForkResponse__GitInfo = Schema.Struct({ | ... | @@ -6663,63 +7779,65 @@ export const V2ThreadForkResponse__GitInfo = Schema.Struct({ |
| 6663 | branch: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 7779 | branch: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 6664 | originUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 7780 | originUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 6665 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 7781 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 7782 | }).annotate({ identifier: "V2ThreadForkResponse__GitInfo" }); |
| | 7783 | |
| | 7784 | export type V2ThreadForkResponse__AgentPath = string; |
| | 7785 | export const V2ThreadForkResponse__AgentPath = Schema.String.annotate({ |
| | 7786 | identifier: "V2ThreadForkResponse__AgentPath", |
| 6666 | }); | 7787 | }); |
| 6667 | | 7788 | |
| 6668 | export type V2ThreadForkResponse__HookPromptFragment = { | 7789 | export type V2ThreadForkResponse__ThreadId = string; |
| 6669 | readonly hookRunId: string; | 7790 | export const V2ThreadForkResponse__ThreadId = Schema.String.annotate({ |
| 6670 | readonly text: string; | 7791 | identifier: "V2ThreadForkResponse__ThreadId", |
| 6671 | }; | 7792 | }); |
| 6672 | export const V2ThreadForkResponse__HookPromptFragment = Schema.Struct({ | 7793 | |
| 6673 | hookRunId: Schema.String, | 7794 | export type V2ThreadForkResponse__ThreadActiveFlag = "waitingOnApproval" | "waitingOnUserInput"; |
| 6674 | text: Schema.String, | 7795 | export const V2ThreadForkResponse__ThreadActiveFlag = Schema.Literals([ |
| | 7796 | "waitingOnApproval", |
| | 7797 | "waitingOnUserInput", |
| | 7798 | ]).annotate({ identifier: "V2ThreadForkResponse__ThreadActiveFlag" }); |
| | 7799 | |
| | 7800 | export type V2ThreadForkResponse__ThreadSource = string; |
| | 7801 | export const V2ThreadForkResponse__ThreadSource = Schema.String.annotate({ |
| | 7802 | identifier: "V2ThreadForkResponse__ThreadSource", |
| 6675 | }); | 7803 | }); |
| 6676 | | 7804 | |
| | 7805 | export type V2ThreadForkResponse__NonSteerableTurnKind = "review" | "compact"; |
| | 7806 | export const V2ThreadForkResponse__NonSteerableTurnKind = Schema.Literals([ |
| | 7807 | "review", |
| | 7808 | "compact", |
| | 7809 | ]).annotate({ identifier: "V2ThreadForkResponse__NonSteerableTurnKind" }); |
| | 7810 | |
| | 7811 | export type V2ThreadForkResponse__ByteRange = { readonly end: number; readonly start: number }; |
| | 7812 | export const V2ThreadForkResponse__ByteRange = Schema.Struct({ |
| | 7813 | end: Schema.Number.annotate({ format: "uint" }) |
| | 7814 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 7815 | .check( |
| | 7816 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 7817 | ), |
| | 7818 | start: Schema.Number.annotate({ format: "uint" }) |
| | 7819 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 7820 | .check( |
| | 7821 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 7822 | ), |
| | 7823 | }).annotate({ identifier: "V2ThreadForkResponse__ByteRange" }); |
| | 7824 | |
| 6677 | export type V2ThreadForkResponse__ImageDetail = "auto" | "low" | "high" | "original"; | 7825 | export type V2ThreadForkResponse__ImageDetail = "auto" | "low" | "high" | "original"; |
| 6678 | export const V2ThreadForkResponse__ImageDetail = Schema.Literals([ | 7826 | export const V2ThreadForkResponse__ImageDetail = Schema.Literals([ |
| 6679 | "auto", | 7827 | "auto", |
| 6680 | "low", | 7828 | "low", |
| 6681 | "high", | 7829 | "high", |
| 6682 | "original", | 7830 | "original", |
| 6683 | ]); | 7831 | ]).annotate({ identifier: "V2ThreadForkResponse__ImageDetail" }); |
| 6684 | | | |
| 6685 | export type V2ThreadForkResponse__LegacyAppPathString = string; | | |
| 6686 | export const V2ThreadForkResponse__LegacyAppPathString = Schema.String; | | |
| 6687 | | | |
| 6688 | export type V2ThreadForkResponse__McpToolCallAppContext = { | | |
| 6689 | readonly actionName?: string | null; | | |
| 6690 | readonly appName?: string | null; | | |
| 6691 | readonly connectorId: string; | | |
| 6692 | readonly linkId?: string | null; | | |
| 6693 | readonly resourceUri?: string | null; | | |
| 6694 | }; | | |
| 6695 | export const V2ThreadForkResponse__McpToolCallAppContext = Schema.Struct({ | | |
| 6696 | actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 6697 | appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 6698 | connectorId: Schema.String, | | |
| 6699 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 6700 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 6701 | }); | | |
| 6702 | | | |
| 6703 | export type V2ThreadForkResponse__McpToolCallError = { readonly message: string }; | | |
| 6704 | export const V2ThreadForkResponse__McpToolCallError = Schema.Struct({ message: Schema.String }); | | |
| 6705 | | 7832 | |
| 6706 | export type V2ThreadForkResponse__McpToolCallResult = { | 7833 | export type V2ThreadForkResponse__HookPromptFragment = { |
| 6707 | readonly _meta?: unknown; | 7834 | readonly hookRunId: string; |
| 6708 | readonly content: ReadonlyArray<unknown>; | 7835 | readonly text: string; |
| 6709 | readonly structuredContent?: unknown; | | |
| 6710 | }; | 7836 | }; |
| 6711 | export const V2ThreadForkResponse__McpToolCallResult = Schema.Struct({ | 7837 | export const V2ThreadForkResponse__HookPromptFragment = Schema.Struct({ |
| 6712 | _meta: Schema.optionalKey(Schema.Unknown), | 7838 | hookRunId: Schema.String, |
| 6713 | content: Schema.Array(Schema.Unknown), | 7839 | text: Schema.String, |
| 6714 | structuredContent: Schema.optionalKey(Schema.Unknown), | 7840 | }).annotate({ identifier: "V2ThreadForkResponse__HookPromptFragment" }); |
| 6715 | }); | | |
| 6716 | | | |
| 6717 | export type V2ThreadForkResponse__McpToolCallStatus = "inProgress" | "completed" | "failed"; | | |
| 6718 | export const V2ThreadForkResponse__McpToolCallStatus = Schema.Literals([ | | |
| 6719 | "inProgress", | | |
| 6720 | "completed", | | |
| 6721 | "failed", | | |
| 6722 | ]); | | |
| 6723 | | 7841 | |
| 6724 | export type V2ThreadForkResponse__MemoryCitationEntry = { | 7842 | export type V2ThreadForkResponse__MemoryCitationEntry = { |
| 6725 | readonly lineEnd: number; | 7843 | readonly lineEnd: number; |
| ... | @@ -6729,38 +7847,60 @@ export type V2ThreadForkResponse__MemoryCitationEntry = { | ... | @@ -6729,38 +7847,60 @@ export type V2ThreadForkResponse__MemoryCitationEntry = { |
| 6729 | }; | 7847 | }; |
| 6730 | export const V2ThreadForkResponse__MemoryCitationEntry = Schema.Struct({ | 7848 | export const V2ThreadForkResponse__MemoryCitationEntry = Schema.Struct({ |
| 6731 | lineEnd: Schema.Number.annotate({ format: "uint32" }) | 7849 | lineEnd: Schema.Number.annotate({ format: "uint32" }) |
| 6732 | .check(Schema.isInt()) | 7850 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 6733 | .check(Schema.isGreaterThanOrEqualTo(0)), | 7851 | .check( |
| | 7852 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 7853 | ), |
| 6734 | lineStart: Schema.Number.annotate({ format: "uint32" }) | 7854 | lineStart: Schema.Number.annotate({ format: "uint32" }) |
| 6735 | .check(Schema.isInt()) | 7855 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 6736 | .check(Schema.isGreaterThanOrEqualTo(0)), | 7856 | .check( |
| | 7857 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 7858 | ), |
| 6737 | note: Schema.String, | 7859 | note: Schema.String, |
| 6738 | path: Schema.String, | 7860 | path: Schema.String, |
| 6739 | }); | 7861 | }).annotate({ identifier: "V2ThreadForkResponse__MemoryCitationEntry" }); |
| 6740 | | 7862 | |
| 6741 | export type V2ThreadForkResponse__MessagePhase = "commentary" | "final_answer"; | 7863 | export type V2ThreadForkResponse__MessagePhase = "commentary" | "final_answer"; |
| 6742 | export const V2ThreadForkResponse__MessagePhase = Schema.Literals([ | 7864 | export const V2ThreadForkResponse__MessagePhase = Schema.Union( |
| 6743 | "commentary", | 7865 | [ |
| 6744 | "final_answer", | 7866 | Schema.Literal("commentary").annotate({ |
| 6745 | ]).annotate({ | 7867 | description: |
| | 7868 | "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.", |
| | 7869 | }), |
| | 7870 | Schema.Literal("final_answer").annotate({ |
| | 7871 | description: "The assistant's terminal answer text for the current turn.", |
| | 7872 | }), |
| | 7873 | ], |
| | 7874 | { mode: "oneOf" }, |
| | 7875 | ).annotate({ |
| 6746 | description: | 7876 | description: |
| 6747 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', | 7877 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', |
| | 7878 | identifier: "V2ThreadForkResponse__MessagePhase", |
| 6748 | }); | 7879 | }); |
| 6749 | | 7880 | |
| 6750 | export type V2ThreadForkResponse__NonSteerableTurnKind = "review" | "compact"; | 7881 | export type V2ThreadForkResponse__CommandExecutionSource = |
| 6751 | export const V2ThreadForkResponse__NonSteerableTurnKind = Schema.Literals(["review", "compact"]); | 7882 | | "agent" |
| | 7883 | | "userShell" |
| | 7884 | | "unifiedExecStartup" |
| | 7885 | | "unifiedExecInteraction"; |
| | 7886 | export const V2ThreadForkResponse__CommandExecutionSource = Schema.Literals([ |
| | 7887 | "agent", |
| | 7888 | "userShell", |
| | 7889 | "unifiedExecStartup", |
| | 7890 | "unifiedExecInteraction", |
| | 7891 | ]).annotate({ identifier: "V2ThreadForkResponse__CommandExecutionSource" }); |
| 6752 | | 7892 | |
| 6753 | export type V2ThreadForkResponse__PatchApplyStatus = | 7893 | export type V2ThreadForkResponse__CommandExecutionStatus = |
| 6754 | | "inProgress" | 7894 | | "inProgress" |
| 6755 | | "completed" | 7895 | | "completed" |
| 6756 | | "failed" | 7896 | | "failed" |
| 6757 | | "declined"; | 7897 | | "declined"; |
| 6758 | export const V2ThreadForkResponse__PatchApplyStatus = Schema.Literals([ | 7898 | export const V2ThreadForkResponse__CommandExecutionStatus = Schema.Literals([ |
| 6759 | "inProgress", | 7899 | "inProgress", |
| 6760 | "completed", | 7900 | "completed", |
| 6761 | "failed", | 7901 | "failed", |
| 6762 | "declined", | 7902 | "declined", |
| 6763 | ]); | 7903 | ]).annotate({ identifier: "V2ThreadForkResponse__CommandExecutionStatus" }); |
| 6764 | | 7904 | |
| 6765 | export type V2ThreadForkResponse__PatchChangeKind = | 7905 | export type V2ThreadForkResponse__PatchChangeKind = |
| 6766 | | { readonly type: "add" } | 7906 | | { readonly type: "add" } |
| ... | @@ -6780,73 +7920,156 @@ export const V2ThreadForkResponse__PatchChangeKind = Schema.Union( | ... | @@ -6780,73 +7920,156 @@ export const V2ThreadForkResponse__PatchChangeKind = Schema.Union( |
| 6780 | }).annotate({ title: "UpdatePatchChangeKind" }), | 7920 | }).annotate({ title: "UpdatePatchChangeKind" }), |
| 6781 | ], | 7921 | ], |
| 6782 | { mode: "oneOf" }, | 7922 | { mode: "oneOf" }, |
| 6783 | ); | 7923 | ).annotate({ identifier: "V2ThreadForkResponse__PatchChangeKind" }); |
| 6784 | | | |
| 6785 | export type V2ThreadForkResponse__ReasoningEffort = string; | | |
| 6786 | export const V2ThreadForkResponse__ReasoningEffort = Schema.String.annotate({ | | |
| 6787 | description: "A non-empty reasoning effort value advertised by the model.", | | |
| 6788 | }).check(Schema.isMinLength(1)); | | |
| 6789 | | 7924 | |
| 6790 | export type V2ThreadForkResponse__SubAgentActivityKind = | 7925 | export type V2ThreadForkResponse__PatchApplyStatus = |
| 6791 | | "started" | 7926 | | "inProgress" |
| 6792 | | "interacted" | 7927 | | "completed" |
| 6793 | | "interrupted" | 7928 | | "failed" |
| 6794 | | "completed"; | 7929 | | "declined"; |
| 6795 | export const V2ThreadForkResponse__SubAgentActivityKind = Schema.Literals([ | 7930 | export const V2ThreadForkResponse__PatchApplyStatus = Schema.Literals([ |
| 6796 | "started", | 7931 | "inProgress", |
| 6797 | "interacted", | | |
| 6798 | "interrupted", | | |
| 6799 | "completed", | 7932 | "completed", |
| 6800 | ]); | 7933 | "failed", |
| | 7934 | "declined", |
| | 7935 | ]).annotate({ identifier: "V2ThreadForkResponse__PatchApplyStatus" }); |
| 6801 | | 7936 | |
| 6802 | export type V2ThreadForkResponse__TextElement = { | 7937 | export type V2ThreadForkResponse__McpToolCallAppContext = { |
| 6803 | readonly byteRange: { readonly end: number; readonly start: number }; | 7938 | readonly actionName?: string | null; |
| 6804 | readonly placeholder?: string | null; | 7939 | readonly appName?: string | null; |
| | 7940 | readonly connectorId: string; |
| | 7941 | readonly linkId?: string | null; |
| | 7942 | readonly resourceUri?: string | null; |
| 6805 | }; | 7943 | }; |
| 6806 | export const V2ThreadForkResponse__TextElement = Schema.Struct({ | 7944 | export const V2ThreadForkResponse__McpToolCallAppContext = Schema.Struct({ |
| 6807 | byteRange: Schema.Struct({ | 7945 | actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 6808 | end: Schema.Number.annotate({ format: "uint" }) | 7946 | appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 6809 | .check(Schema.isInt()) | 7947 | connectorId: Schema.String, |
| 6810 | .check(Schema.isGreaterThanOrEqualTo(0)), | 7948 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 6811 | start: Schema.Number.annotate({ format: "uint" }) | 7949 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 6812 | .check(Schema.isInt()) | 7950 | }).annotate({ identifier: "V2ThreadForkResponse__McpToolCallAppContext" }); |
| 6813 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 6814 | }).annotate({ | | |
| 6815 | description: "Byte range in the parent `text` buffer that this element occupies.", | | |
| 6816 | }), | | |
| 6817 | placeholder: Schema.optionalKey( | | |
| 6818 | Schema.Union([ | | |
| 6819 | Schema.String.annotate({ | | |
| 6820 | description: "Optional human-readable placeholder for the element, displayed in the UI.", | | |
| 6821 | }), | | |
| 6822 | Schema.Null, | | |
| 6823 | ]), | | |
| 6824 | ), | | |
| 6825 | }); | | |
| 6826 | | 7951 | |
| 6827 | export type V2ThreadForkResponse__ThreadActiveFlag = "waitingOnApproval" | "waitingOnUserInput"; | 7952 | export type V2ThreadForkResponse__McpToolCallError = { readonly message: string }; |
| 6828 | export const V2ThreadForkResponse__ThreadActiveFlag = Schema.Literals([ | 7953 | export const V2ThreadForkResponse__McpToolCallError = Schema.Struct({ |
| 6829 | "waitingOnApproval", | 7954 | message: Schema.String, |
| 6830 | "waitingOnUserInput", | 7955 | }).annotate({ identifier: "V2ThreadForkResponse__McpToolCallError" }); |
| 6831 | ]); | | |
| 6832 | | 7956 | |
| 6833 | export type V2ThreadForkResponse__ThreadId = string; | 7957 | export type V2ThreadForkResponse__McpToolCallResult = { |
| 6834 | export const V2ThreadForkResponse__ThreadId = Schema.String; | 7958 | readonly _meta?: Schema.Json; |
| | 7959 | readonly content: ReadonlyArray<Schema.Json>; |
| | 7960 | readonly structuredContent?: Schema.Json; |
| | 7961 | }; |
| | 7962 | export const V2ThreadForkResponse__McpToolCallResult = Schema.Struct({ |
| | 7963 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 7964 | content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), |
| | 7965 | structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 7966 | }).annotate({ identifier: "V2ThreadForkResponse__McpToolCallResult" }); |
| 6835 | | 7967 | |
| 6836 | export type V2ThreadForkResponse__ThreadSource = string; | 7968 | export type V2ThreadForkResponse__McpToolCallStatus = "inProgress" | "completed" | "failed"; |
| 6837 | export const V2ThreadForkResponse__ThreadSource = Schema.String; | 7969 | export const V2ThreadForkResponse__McpToolCallStatus = Schema.Literals([ |
| | 7970 | "inProgress", |
| | 7971 | "completed", |
| | 7972 | "failed", |
| | 7973 | ]).annotate({ identifier: "V2ThreadForkResponse__McpToolCallStatus" }); |
| 6838 | | 7974 | |
| 6839 | export type V2ThreadForkResponse__TurnStatus = | 7975 | export type V2ThreadForkResponse__DynamicToolCallOutputContentItem = |
| 6840 | | "completed" | 7976 | | { readonly text: string; readonly type: "inputText" } |
| | 7977 | | { readonly imageUrl: string; readonly type: "inputImage" } |
| | 7978 | | { readonly audioUrl: string; readonly type: "inputAudio" }; |
| | 7979 | export const V2ThreadForkResponse__DynamicToolCallOutputContentItem = Schema.Union( |
| | 7980 | [ |
| | 7981 | Schema.Struct({ |
| | 7982 | text: Schema.String, |
| | 7983 | type: Schema.Literal("inputText").annotate({ |
| | 7984 | title: "InputTextDynamicToolCallOutputContentItemType", |
| | 7985 | }), |
| | 7986 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), |
| | 7987 | Schema.Struct({ |
| | 7988 | imageUrl: Schema.String, |
| | 7989 | type: Schema.Literal("inputImage").annotate({ |
| | 7990 | title: "InputImageDynamicToolCallOutputContentItemType", |
| | 7991 | }), |
| | 7992 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), |
| | 7993 | Schema.Struct({ |
| | 7994 | audioUrl: Schema.String, |
| | 7995 | type: Schema.Literal("inputAudio").annotate({ |
| | 7996 | title: "InputAudioDynamicToolCallOutputContentItemType", |
| | 7997 | }), |
| | 7998 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), |
| | 7999 | ], |
| | 8000 | { mode: "oneOf" }, |
| | 8001 | ).annotate({ identifier: "V2ThreadForkResponse__DynamicToolCallOutputContentItem" }); |
| | 8002 | |
| | 8003 | export type V2ThreadForkResponse__DynamicToolCallStatus = "inProgress" | "completed" | "failed"; |
| | 8004 | export const V2ThreadForkResponse__DynamicToolCallStatus = Schema.Literals([ |
| | 8005 | "inProgress", |
| | 8006 | "completed", |
| | 8007 | "failed", |
| | 8008 | ]).annotate({ identifier: "V2ThreadForkResponse__DynamicToolCallStatus" }); |
| | 8009 | |
| | 8010 | export type V2ThreadForkResponse__CollabAgentStatus = |
| | 8011 | | "pendingInit" |
| | 8012 | | "running" |
| 6841 | | "interrupted" | 8013 | | "interrupted" |
| | 8014 | | "completed" |
| | 8015 | | "errored" |
| | 8016 | | "shutdown" |
| | 8017 | | "notFound"; |
| | 8018 | export const V2ThreadForkResponse__CollabAgentStatus = Schema.Literals([ |
| | 8019 | "pendingInit", |
| | 8020 | "running", |
| | 8021 | "interrupted", |
| | 8022 | "completed", |
| | 8023 | "errored", |
| | 8024 | "shutdown", |
| | 8025 | "notFound", |
| | 8026 | ]).annotate({ identifier: "V2ThreadForkResponse__CollabAgentStatus" }); |
| | 8027 | |
| | 8028 | export type V2ThreadForkResponse__CollabAgentToolCallStatus = |
| | 8029 | | "inProgress" |
| | 8030 | | "completed" |
| 6842 | | "failed" | 8031 | | "failed" |
| 6843 | | "inProgress"; | 8032 | | "interrupted"; |
| 6844 | export const V2ThreadForkResponse__TurnStatus = Schema.Literals([ | 8033 | export const V2ThreadForkResponse__CollabAgentToolCallStatus = Schema.Literals([ |
| | 8034 | "inProgress", |
| 6845 | "completed", | 8035 | "completed", |
| 6846 | "interrupted", | | |
| 6847 | "failed", | 8036 | "failed", |
| 6848 | "inProgress", | 8037 | "interrupted", |
| 6849 | ]); | 8038 | ]).annotate({ identifier: "V2ThreadForkResponse__CollabAgentToolCallStatus" }); |
| | 8039 | |
| | 8040 | export type V2ThreadForkResponse__CollabAgentTool = |
| | 8041 | | "spawnAgent" |
| | 8042 | | "sendInput" |
| | 8043 | | "resumeAgent" |
| | 8044 | | "wait" |
| | 8045 | | "closeAgent" |
| | 8046 | | "sendMessage" |
| | 8047 | | "followupTask" |
| | 8048 | | "interruptAgent" |
| | 8049 | | "listAgents"; |
| | 8050 | export const V2ThreadForkResponse__CollabAgentTool = Schema.Literals([ |
| | 8051 | "spawnAgent", |
| | 8052 | "sendInput", |
| | 8053 | "resumeAgent", |
| | 8054 | "wait", |
| | 8055 | "closeAgent", |
| | 8056 | "sendMessage", |
| | 8057 | "followupTask", |
| | 8058 | "interruptAgent", |
| | 8059 | "listAgents", |
| | 8060 | ]).annotate({ identifier: "V2ThreadForkResponse__CollabAgentTool" }); |
| | 8061 | |
| | 8062 | export type V2ThreadForkResponse__SubAgentActivityKind = |
| | 8063 | | "started" |
| | 8064 | | "interacted" |
| | 8065 | | "interrupted" |
| | 8066 | | "completed"; |
| | 8067 | export const V2ThreadForkResponse__SubAgentActivityKind = Schema.Literals([ |
| | 8068 | "started", |
| | 8069 | "interacted", |
| | 8070 | "interrupted", |
| | 8071 | "completed", |
| | 8072 | ]).annotate({ identifier: "V2ThreadForkResponse__SubAgentActivityKind" }); |
| 6850 | | 8073 | |
| 6851 | export type V2ThreadForkResponse__WebSearchAction = | 8074 | export type V2ThreadForkResponse__WebSearchAction = |
| 6852 | | { | 8075 | | { |
| ... | @@ -6878,7 +8101,36 @@ export const V2ThreadForkResponse__WebSearchAction = Schema.Union( | ... | @@ -6878,7 +8101,36 @@ export const V2ThreadForkResponse__WebSearchAction = Schema.Union( |
| 6878 | }).annotate({ title: "OtherWebSearchAction" }), | 8101 | }).annotate({ title: "OtherWebSearchAction" }), |
| 6879 | ], | 8102 | ], |
| 6880 | { mode: "oneOf" }, | 8103 | { mode: "oneOf" }, |
| 6881 | ); | 8104 | ).annotate({ identifier: "V2ThreadForkResponse__WebSearchAction" }); |
| | 8105 | |
| | 8106 | export type V2ThreadForkResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| | 8107 | export const V2ThreadForkResponse__TurnItemsView = Schema.Union( |
| | 8108 | [ |
| | 8109 | Schema.Literal("notLoaded").annotate({ |
| | 8110 | description: "`items` was not loaded for this turn. The field is intentionally empty.", |
| | 8111 | }), |
| | 8112 | Schema.Literal("summary").annotate({ |
| | 8113 | description: "`items` contains only a display summary for this turn.", |
| | 8114 | }), |
| | 8115 | Schema.Literal("full").annotate({ |
| | 8116 | description: |
| | 8117 | "`items` contains every ThreadItem available from persisted app-server history for this turn.", |
| | 8118 | }), |
| | 8119 | ], |
| | 8120 | { mode: "oneOf" }, |
| | 8121 | ).annotate({ identifier: "V2ThreadForkResponse__TurnItemsView" }); |
| | 8122 | |
| | 8123 | export type V2ThreadForkResponse__TurnStatus = |
| | 8124 | | "completed" |
| | 8125 | | "interrupted" |
| | 8126 | | "failed" |
| | 8127 | | "inProgress"; |
| | 8128 | export const V2ThreadForkResponse__TurnStatus = Schema.Literals([ |
| | 8129 | "completed", |
| | 8130 | "interrupted", |
| | 8131 | "failed", |
| | 8132 | "inProgress", |
| | 8133 | ]).annotate({ identifier: "V2ThreadForkResponse__TurnStatus" }); |
| 6882 | | 8134 | |
| 6883 | export type V2ThreadGoalGetResponse__ThreadGoalStatus = | 8135 | export type V2ThreadGoalGetResponse__ThreadGoalStatus = |
| 6884 | | "active" | 8136 | | "active" |
| ... | @@ -6894,7 +8146,7 @@ export const V2ThreadGoalGetResponse__ThreadGoalStatus = Schema.Literals([ | ... | @@ -6894,7 +8146,7 @@ export const V2ThreadGoalGetResponse__ThreadGoalStatus = Schema.Literals([ |
| 6894 | "usageLimited", | 8146 | "usageLimited", |
| 6895 | "budgetLimited", | 8147 | "budgetLimited", |
| 6896 | "complete", | 8148 | "complete", |
| 6897 | ]); | 8149 | ]).annotate({ identifier: "V2ThreadGoalGetResponse__ThreadGoalStatus" }); |
| 6898 | | 8150 | |
| 6899 | export type V2ThreadGoalSetParams__ThreadGoalStatus = | 8151 | export type V2ThreadGoalSetParams__ThreadGoalStatus = |
| 6900 | | "active" | 8152 | | "active" |
| ... | @@ -6910,7 +8162,7 @@ export const V2ThreadGoalSetParams__ThreadGoalStatus = Schema.Literals([ | ... | @@ -6910,7 +8162,7 @@ export const V2ThreadGoalSetParams__ThreadGoalStatus = Schema.Literals([ |
| 6910 | "usageLimited", | 8162 | "usageLimited", |
| 6911 | "budgetLimited", | 8163 | "budgetLimited", |
| 6912 | "complete", | 8164 | "complete", |
| 6913 | ]); | 8165 | ]).annotate({ identifier: "V2ThreadGoalSetParams__ThreadGoalStatus" }); |
| 6914 | | 8166 | |
| 6915 | export type V2ThreadGoalSetResponse__ThreadGoalStatus = | 8167 | export type V2ThreadGoalSetResponse__ThreadGoalStatus = |
| 6916 | | "active" | 8168 | | "active" |
| ... | @@ -6926,7 +8178,7 @@ export const V2ThreadGoalSetResponse__ThreadGoalStatus = Schema.Literals([ | ... | @@ -6926,7 +8178,7 @@ export const V2ThreadGoalSetResponse__ThreadGoalStatus = Schema.Literals([ |
| 6926 | "usageLimited", | 8178 | "usageLimited", |
| 6927 | "budgetLimited", | 8179 | "budgetLimited", |
| 6928 | "complete", | 8180 | "complete", |
| 6929 | ]); | 8181 | ]).annotate({ identifier: "V2ThreadGoalSetResponse__ThreadGoalStatus" }); |
| 6930 | | 8182 | |
| 6931 | export type V2ThreadGoalUpdatedNotification__ThreadGoalStatus = | 8183 | export type V2ThreadGoalUpdatedNotification__ThreadGoalStatus = |
| 6932 | | "active" | 8184 | | "active" |
| ... | @@ -6942,23 +8194,25 @@ export const V2ThreadGoalUpdatedNotification__ThreadGoalStatus = Schema.Literals | ... | @@ -6942,23 +8194,25 @@ export const V2ThreadGoalUpdatedNotification__ThreadGoalStatus = Schema.Literals |
| 6942 | "usageLimited", | 8194 | "usageLimited", |
| 6943 | "budgetLimited", | 8195 | "budgetLimited", |
| 6944 | "complete", | 8196 | "complete", |
| 6945 | ]); | 8197 | ]).annotate({ identifier: "V2ThreadGoalUpdatedNotification__ThreadGoalStatus" }); |
| 6946 | | | |
| 6947 | export type V2ThreadListParams__SortDirection = "asc" | "desc"; | | |
| 6948 | export const V2ThreadListParams__SortDirection = Schema.Literals(["asc", "desc"]); | | |
| 6949 | | 8198 | |
| 6950 | export type V2ThreadListParams__ThreadListCwdFilter = string | ReadonlyArray<string>; | 8199 | export type V2ThreadListParams__ThreadListCwdFilter = string | ReadonlyArray<string>; |
| 6951 | export const V2ThreadListParams__ThreadListCwdFilter = Schema.Union([ | 8200 | export const V2ThreadListParams__ThreadListCwdFilter = Schema.Union([ |
| 6952 | Schema.String, | 8201 | Schema.String, |
| 6953 | Schema.Array(Schema.String), | 8202 | Schema.Array(Schema.String), |
| 6954 | ]); | 8203 | ]).annotate({ identifier: "V2ThreadListParams__ThreadListCwdFilter" }); |
| | 8204 | |
| | 8205 | export type V2ThreadListParams__SortDirection = "asc" | "desc"; |
| | 8206 | export const V2ThreadListParams__SortDirection = Schema.Literals(["asc", "desc"]).annotate({ |
| | 8207 | identifier: "V2ThreadListParams__SortDirection", |
| | 8208 | }); |
| 6955 | | 8209 | |
| 6956 | export type V2ThreadListParams__ThreadSortKey = "created_at" | "updated_at" | "recency_at"; | 8210 | export type V2ThreadListParams__ThreadSortKey = "created_at" | "updated_at" | "recency_at"; |
| 6957 | export const V2ThreadListParams__ThreadSortKey = Schema.Literals([ | 8211 | export const V2ThreadListParams__ThreadSortKey = Schema.Literals([ |
| 6958 | "created_at", | 8212 | "created_at", |
| 6959 | "updated_at", | 8213 | "updated_at", |
| 6960 | "recency_at", | 8214 | "recency_at", |
| 6961 | ]); | 8215 | ]).annotate({ identifier: "V2ThreadListParams__ThreadSortKey" }); |
| 6962 | | 8216 | |
| 6963 | export type V2ThreadListParams__ThreadSourceKind = | 8217 | export type V2ThreadListParams__ThreadSourceKind = |
| 6964 | | "cli" | 8218 | | "cli" |
| ... | @@ -6982,101 +8236,66 @@ export const V2ThreadListParams__ThreadSourceKind = Schema.Literals([ | ... | @@ -6982,101 +8236,66 @@ export const V2ThreadListParams__ThreadSourceKind = Schema.Literals([ |
| 6982 | "subAgentThreadSpawn", | 8236 | "subAgentThreadSpawn", |
| 6983 | "subAgentOther", | 8237 | "subAgentOther", |
| 6984 | "unknown", | 8238 | "unknown", |
| 6985 | ]); | 8239 | ]).annotate({ identifier: "V2ThreadListParams__ThreadSourceKind" }); |
| 6986 | | 8240 | |
| 6987 | export type V2ThreadListResponse__AbsolutePathBuf = string; | 8241 | export type V2ThreadListResponse__AbsolutePathBuf = string; |
| 6988 | export const V2ThreadListResponse__AbsolutePathBuf = Schema.String.annotate({ | 8242 | export const V2ThreadListResponse__AbsolutePathBuf = Schema.String.annotate({ |
| 6989 | description: | 8243 | description: |
| 6990 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 8244 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 8245 | identifier: "V2ThreadListResponse__AbsolutePathBuf", |
| 6991 | }); | 8246 | }); |
| 6992 | | 8247 | |
| | 8248 | export type V2ThreadListResponse__GitInfo = { |
| | 8249 | readonly branch?: string | null; |
| | 8250 | readonly originUrl?: string | null; |
| | 8251 | readonly sha?: string | null; |
| | 8252 | }; |
| | 8253 | export const V2ThreadListResponse__GitInfo = Schema.Struct({ |
| | 8254 | branch: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 8255 | originUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 8256 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 8257 | }).annotate({ identifier: "V2ThreadListResponse__GitInfo" }); |
| | 8258 | |
| 6993 | export type V2ThreadListResponse__AgentPath = string; | 8259 | export type V2ThreadListResponse__AgentPath = string; |
| 6994 | export const V2ThreadListResponse__AgentPath = Schema.String; | 8260 | export const V2ThreadListResponse__AgentPath = Schema.String.annotate({ |
| | 8261 | identifier: "V2ThreadListResponse__AgentPath", |
| | 8262 | }); |
| 6995 | | 8263 | |
| 6996 | export type V2ThreadListResponse__CollabAgentStatus = | 8264 | export type V2ThreadListResponse__ThreadId = string; |
| 6997 | | "pendingInit" | 8265 | export const V2ThreadListResponse__ThreadId = Schema.String.annotate({ |
| 6998 | | "running" | 8266 | identifier: "V2ThreadListResponse__ThreadId", |
| 6999 | | "interrupted" | 8267 | }); |
| 7000 | | "completed" | | |
| 7001 | | "errored" | | |
| 7002 | | "shutdown" | | |
| 7003 | | "notFound"; | | |
| 7004 | export const V2ThreadListResponse__CollabAgentStatus = Schema.Literals([ | | |
| 7005 | "pendingInit", | | |
| 7006 | "running", | | |
| 7007 | "interrupted", | | |
| 7008 | "completed", | | |
| 7009 | "errored", | | |
| 7010 | "shutdown", | | |
| 7011 | "notFound", | | |
| 7012 | ]); | | |
| 7013 | | 8268 | |
| 7014 | export type V2ThreadListResponse__CommandExecutionStatus = | 8269 | export type V2ThreadListResponse__ThreadActiveFlag = "waitingOnApproval" | "waitingOnUserInput"; |
| 7015 | | "inProgress" | 8270 | export const V2ThreadListResponse__ThreadActiveFlag = Schema.Literals([ |
| 7016 | | "completed" | 8271 | "waitingOnApproval", |
| 7017 | | "failed" | 8272 | "waitingOnUserInput", |
| 7018 | | "declined"; | 8273 | ]).annotate({ identifier: "V2ThreadListResponse__ThreadActiveFlag" }); |
| 7019 | export const V2ThreadListResponse__CommandExecutionStatus = Schema.Literals([ | | |
| 7020 | "inProgress", | | |
| 7021 | "completed", | | |
| 7022 | "failed", | | |
| 7023 | "declined", | | |
| 7024 | ]); | | |
| 7025 | | 8274 | |
| 7026 | export type V2ThreadListResponse__DynamicToolCallOutputContentItem = | 8275 | export type V2ThreadListResponse__ThreadSource = string; |
| 7027 | | { readonly text: string; readonly type: "inputText" } | 8276 | export const V2ThreadListResponse__ThreadSource = Schema.String.annotate({ |
| 7028 | | { readonly imageUrl: string; readonly type: "inputImage" } | 8277 | identifier: "V2ThreadListResponse__ThreadSource", |
| 7029 | | { readonly audioUrl: string; readonly type: "inputAudio" }; | | |
| 7030 | export const V2ThreadListResponse__DynamicToolCallOutputContentItem = Schema.Union( | | |
| 7031 | [ | | |
| 7032 | Schema.Struct({ | | |
| 7033 | text: Schema.String, | | |
| 7034 | type: Schema.Literal("inputText").annotate({ | | |
| 7035 | title: "InputTextDynamicToolCallOutputContentItemType", | | |
| 7036 | }), | | |
| 7037 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), | | |
| 7038 | Schema.Struct({ | | |
| 7039 | imageUrl: Schema.String, | | |
| 7040 | type: Schema.Literal("inputImage").annotate({ | | |
| 7041 | title: "InputImageDynamicToolCallOutputContentItemType", | | |
| 7042 | }), | | |
| 7043 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), | | |
| 7044 | Schema.Struct({ | | |
| 7045 | audioUrl: Schema.String, | | |
| 7046 | type: Schema.Literal("inputAudio").annotate({ | | |
| 7047 | title: "InputAudioDynamicToolCallOutputContentItemType", | | |
| 7048 | }), | | |
| 7049 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), | | |
| 7050 | ], | | |
| 7051 | { mode: "oneOf" }, | | |
| 7052 | ); | | |
| 7053 | | | |
| 7054 | export type V2ThreadListResponse__DynamicToolCallStatus = "inProgress" | "completed" | "failed"; | | |
| 7055 | export const V2ThreadListResponse__DynamicToolCallStatus = Schema.Literals([ | | |
| 7056 | "inProgress", | | |
| 7057 | "completed", | | |
| 7058 | "failed", | | |
| 7059 | ]); | | |
| 7060 | | | |
| 7061 | export type V2ThreadListResponse__GitInfo = { | | |
| 7062 | readonly branch?: string | null; | | |
| 7063 | readonly originUrl?: string | null; | | |
| 7064 | readonly sha?: string | null; | | |
| 7065 | }; | | |
| 7066 | export const V2ThreadListResponse__GitInfo = Schema.Struct({ | | |
| 7067 | branch: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 7068 | originUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 7069 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 7070 | }); | 8278 | }); |
| 7071 | | 8279 | |
| 7072 | export type V2ThreadListResponse__HookPromptFragment = { | 8280 | export type V2ThreadListResponse__NonSteerableTurnKind = "review" | "compact"; |
| 7073 | readonly hookRunId: string; | 8281 | export const V2ThreadListResponse__NonSteerableTurnKind = Schema.Literals([ |
| 7074 | readonly text: string; | 8282 | "review", |
| 7075 | }; | 8283 | "compact", |
| 7076 | export const V2ThreadListResponse__HookPromptFragment = Schema.Struct({ | 8284 | ]).annotate({ identifier: "V2ThreadListResponse__NonSteerableTurnKind" }); |
| 7077 | hookRunId: Schema.String, | 8285 | |
| 7078 | text: Schema.String, | 8286 | export type V2ThreadListResponse__ByteRange = { readonly end: number; readonly start: number }; |
| 7079 | }); | 8287 | export const V2ThreadListResponse__ByteRange = Schema.Struct({ |
| | 8288 | end: Schema.Number.annotate({ format: "uint" }) |
| | 8289 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 8290 | .check( |
| | 8291 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 8292 | ), |
| | 8293 | start: Schema.Number.annotate({ format: "uint" }) |
| | 8294 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 8295 | .check( |
| | 8296 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 8297 | ), |
| | 8298 | }).annotate({ identifier: "V2ThreadListResponse__ByteRange" }); |
| 7080 | | 8299 | |
| 7081 | export type V2ThreadListResponse__ImageDetail = "auto" | "low" | "high" | "original"; | 8300 | export type V2ThreadListResponse__ImageDetail = "auto" | "low" | "high" | "original"; |
| 7082 | export const V2ThreadListResponse__ImageDetail = Schema.Literals([ | 8301 | export const V2ThreadListResponse__ImageDetail = Schema.Literals([ |
| ... | @@ -7084,46 +8303,16 @@ export const V2ThreadListResponse__ImageDetail = Schema.Literals([ | ... | @@ -7084,46 +8303,16 @@ export const V2ThreadListResponse__ImageDetail = Schema.Literals([ |
| 7084 | "low", | 8303 | "low", |
| 7085 | "high", | 8304 | "high", |
| 7086 | "original", | 8305 | "original", |
| 7087 | ]); | 8306 | ]).annotate({ identifier: "V2ThreadListResponse__ImageDetail" }); |
| 7088 | | | |
| 7089 | export type V2ThreadListResponse__LegacyAppPathString = string; | | |
| 7090 | export const V2ThreadListResponse__LegacyAppPathString = Schema.String; | | |
| 7091 | | | |
| 7092 | export type V2ThreadListResponse__McpToolCallAppContext = { | | |
| 7093 | readonly actionName?: string | null; | | |
| 7094 | readonly appName?: string | null; | | |
| 7095 | readonly connectorId: string; | | |
| 7096 | readonly linkId?: string | null; | | |
| 7097 | readonly resourceUri?: string | null; | | |
| 7098 | }; | | |
| 7099 | export const V2ThreadListResponse__McpToolCallAppContext = Schema.Struct({ | | |
| 7100 | actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 7101 | appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 7102 | connectorId: Schema.String, | | |
| 7103 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 7104 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 7105 | }); | | |
| 7106 | | | |
| 7107 | export type V2ThreadListResponse__McpToolCallError = { readonly message: string }; | | |
| 7108 | export const V2ThreadListResponse__McpToolCallError = Schema.Struct({ message: Schema.String }); | | |
| 7109 | | 8307 | |
| 7110 | export type V2ThreadListResponse__McpToolCallResult = { | 8308 | export type V2ThreadListResponse__HookPromptFragment = { |
| 7111 | readonly _meta?: unknown; | 8309 | readonly hookRunId: string; |
| 7112 | readonly content: ReadonlyArray<unknown>; | 8310 | readonly text: string; |
| 7113 | readonly structuredContent?: unknown; | | |
| 7114 | }; | 8311 | }; |
| 7115 | export const V2ThreadListResponse__McpToolCallResult = Schema.Struct({ | 8312 | export const V2ThreadListResponse__HookPromptFragment = Schema.Struct({ |
| 7116 | _meta: Schema.optionalKey(Schema.Unknown), | 8313 | hookRunId: Schema.String, |
| 7117 | content: Schema.Array(Schema.Unknown), | 8314 | text: Schema.String, |
| 7118 | structuredContent: Schema.optionalKey(Schema.Unknown), | 8315 | }).annotate({ identifier: "V2ThreadListResponse__HookPromptFragment" }); |
| 7119 | }); | | |
| 7120 | | | |
| 7121 | export type V2ThreadListResponse__McpToolCallStatus = "inProgress" | "completed" | "failed"; | | |
| 7122 | export const V2ThreadListResponse__McpToolCallStatus = Schema.Literals([ | | |
| 7123 | "inProgress", | | |
| 7124 | "completed", | | |
| 7125 | "failed", | | |
| 7126 | ]); | | |
| 7127 | | 8316 | |
| 7128 | export type V2ThreadListResponse__MemoryCitationEntry = { | 8317 | export type V2ThreadListResponse__MemoryCitationEntry = { |
| 7129 | readonly lineEnd: number; | 8318 | readonly lineEnd: number; |
| ... | @@ -7133,38 +8322,65 @@ export type V2ThreadListResponse__MemoryCitationEntry = { | ... | @@ -7133,38 +8322,65 @@ export type V2ThreadListResponse__MemoryCitationEntry = { |
| 7133 | }; | 8322 | }; |
| 7134 | export const V2ThreadListResponse__MemoryCitationEntry = Schema.Struct({ | 8323 | export const V2ThreadListResponse__MemoryCitationEntry = Schema.Struct({ |
| 7135 | lineEnd: Schema.Number.annotate({ format: "uint32" }) | 8324 | lineEnd: Schema.Number.annotate({ format: "uint32" }) |
| 7136 | .check(Schema.isInt()) | 8325 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 7137 | .check(Schema.isGreaterThanOrEqualTo(0)), | 8326 | .check( |
| | 8327 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 8328 | ), |
| 7138 | lineStart: Schema.Number.annotate({ format: "uint32" }) | 8329 | lineStart: Schema.Number.annotate({ format: "uint32" }) |
| 7139 | .check(Schema.isInt()) | 8330 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 7140 | .check(Schema.isGreaterThanOrEqualTo(0)), | 8331 | .check( |
| | 8332 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 8333 | ), |
| 7141 | note: Schema.String, | 8334 | note: Schema.String, |
| 7142 | path: Schema.String, | 8335 | path: Schema.String, |
| 7143 | }); | 8336 | }).annotate({ identifier: "V2ThreadListResponse__MemoryCitationEntry" }); |
| 7144 | | 8337 | |
| 7145 | export type V2ThreadListResponse__MessagePhase = "commentary" | "final_answer"; | 8338 | export type V2ThreadListResponse__MessagePhase = "commentary" | "final_answer"; |
| 7146 | export const V2ThreadListResponse__MessagePhase = Schema.Literals([ | 8339 | export const V2ThreadListResponse__MessagePhase = Schema.Union( |
| 7147 | "commentary", | 8340 | [ |
| 7148 | "final_answer", | 8341 | Schema.Literal("commentary").annotate({ |
| 7149 | ]).annotate({ | 8342 | description: |
| | 8343 | "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.", |
| | 8344 | }), |
| | 8345 | Schema.Literal("final_answer").annotate({ |
| | 8346 | description: "The assistant's terminal answer text for the current turn.", |
| | 8347 | }), |
| | 8348 | ], |
| | 8349 | { mode: "oneOf" }, |
| | 8350 | ).annotate({ |
| 7150 | description: | 8351 | description: |
| 7151 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', | 8352 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', |
| | 8353 | identifier: "V2ThreadListResponse__MessagePhase", |
| 7152 | }); | 8354 | }); |
| 7153 | | 8355 | |
| 7154 | export type V2ThreadListResponse__NonSteerableTurnKind = "review" | "compact"; | 8356 | export type V2ThreadListResponse__LegacyAppPathString = string; |
| 7155 | export const V2ThreadListResponse__NonSteerableTurnKind = Schema.Literals(["review", "compact"]); | 8357 | export const V2ThreadListResponse__LegacyAppPathString = Schema.String.annotate({ |
| | 8358 | identifier: "V2ThreadListResponse__LegacyAppPathString", |
| | 8359 | }); |
| 7156 | | 8360 | |
| 7157 | export type V2ThreadListResponse__PatchApplyStatus = | 8361 | export type V2ThreadListResponse__CommandExecutionSource = |
| | 8362 | | "agent" |
| | 8363 | | "userShell" |
| | 8364 | | "unifiedExecStartup" |
| | 8365 | | "unifiedExecInteraction"; |
| | 8366 | export const V2ThreadListResponse__CommandExecutionSource = Schema.Literals([ |
| | 8367 | "agent", |
| | 8368 | "userShell", |
| | 8369 | "unifiedExecStartup", |
| | 8370 | "unifiedExecInteraction", |
| | 8371 | ]).annotate({ identifier: "V2ThreadListResponse__CommandExecutionSource" }); |
| | 8372 | |
| | 8373 | export type V2ThreadListResponse__CommandExecutionStatus = |
| 7158 | | "inProgress" | 8374 | | "inProgress" |
| 7159 | | "completed" | 8375 | | "completed" |
| 7160 | | "failed" | 8376 | | "failed" |
| 7161 | | "declined"; | 8377 | | "declined"; |
| 7162 | export const V2ThreadListResponse__PatchApplyStatus = Schema.Literals([ | 8378 | export const V2ThreadListResponse__CommandExecutionStatus = Schema.Literals([ |
| 7163 | "inProgress", | 8379 | "inProgress", |
| 7164 | "completed", | 8380 | "completed", |
| 7165 | "failed", | 8381 | "failed", |
| 7166 | "declined", | 8382 | "declined", |
| 7167 | ]); | 8383 | ]).annotate({ identifier: "V2ThreadListResponse__CommandExecutionStatus" }); |
| 7168 | | 8384 | |
| 7169 | export type V2ThreadListResponse__PatchChangeKind = | 8385 | export type V2ThreadListResponse__PatchChangeKind = |
| 7170 | | { readonly type: "add" } | 8386 | | { readonly type: "add" } |
| ... | @@ -7184,12 +8400,154 @@ export const V2ThreadListResponse__PatchChangeKind = Schema.Union( | ... | @@ -7184,12 +8400,154 @@ export const V2ThreadListResponse__PatchChangeKind = Schema.Union( |
| 7184 | }).annotate({ title: "UpdatePatchChangeKind" }), | 8400 | }).annotate({ title: "UpdatePatchChangeKind" }), |
| 7185 | ], | 8401 | ], |
| 7186 | { mode: "oneOf" }, | 8402 | { mode: "oneOf" }, |
| 7187 | ); | 8403 | ).annotate({ identifier: "V2ThreadListResponse__PatchChangeKind" }); |
| | 8404 | |
| | 8405 | export type V2ThreadListResponse__PatchApplyStatus = |
| | 8406 | | "inProgress" |
| | 8407 | | "completed" |
| | 8408 | | "failed" |
| | 8409 | | "declined"; |
| | 8410 | export const V2ThreadListResponse__PatchApplyStatus = Schema.Literals([ |
| | 8411 | "inProgress", |
| | 8412 | "completed", |
| | 8413 | "failed", |
| | 8414 | "declined", |
| | 8415 | ]).annotate({ identifier: "V2ThreadListResponse__PatchApplyStatus" }); |
| | 8416 | |
| | 8417 | export type V2ThreadListResponse__McpToolCallAppContext = { |
| | 8418 | readonly actionName?: string | null; |
| | 8419 | readonly appName?: string | null; |
| | 8420 | readonly connectorId: string; |
| | 8421 | readonly linkId?: string | null; |
| | 8422 | readonly resourceUri?: string | null; |
| | 8423 | }; |
| | 8424 | export const V2ThreadListResponse__McpToolCallAppContext = Schema.Struct({ |
| | 8425 | actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 8426 | appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 8427 | connectorId: Schema.String, |
| | 8428 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 8429 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 8430 | }).annotate({ identifier: "V2ThreadListResponse__McpToolCallAppContext" }); |
| | 8431 | |
| | 8432 | export type V2ThreadListResponse__McpToolCallError = { readonly message: string }; |
| | 8433 | export const V2ThreadListResponse__McpToolCallError = Schema.Struct({ |
| | 8434 | message: Schema.String, |
| | 8435 | }).annotate({ identifier: "V2ThreadListResponse__McpToolCallError" }); |
| | 8436 | |
| | 8437 | export type V2ThreadListResponse__McpToolCallResult = { |
| | 8438 | readonly _meta?: Schema.Json; |
| | 8439 | readonly content: ReadonlyArray<Schema.Json>; |
| | 8440 | readonly structuredContent?: Schema.Json; |
| | 8441 | }; |
| | 8442 | export const V2ThreadListResponse__McpToolCallResult = Schema.Struct({ |
| | 8443 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 8444 | content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), |
| | 8445 | structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 8446 | }).annotate({ identifier: "V2ThreadListResponse__McpToolCallResult" }); |
| | 8447 | |
| | 8448 | export type V2ThreadListResponse__McpToolCallStatus = "inProgress" | "completed" | "failed"; |
| | 8449 | export const V2ThreadListResponse__McpToolCallStatus = Schema.Literals([ |
| | 8450 | "inProgress", |
| | 8451 | "completed", |
| | 8452 | "failed", |
| | 8453 | ]).annotate({ identifier: "V2ThreadListResponse__McpToolCallStatus" }); |
| | 8454 | |
| | 8455 | export type V2ThreadListResponse__DynamicToolCallOutputContentItem = |
| | 8456 | | { readonly text: string; readonly type: "inputText" } |
| | 8457 | | { readonly imageUrl: string; readonly type: "inputImage" } |
| | 8458 | | { readonly audioUrl: string; readonly type: "inputAudio" }; |
| | 8459 | export const V2ThreadListResponse__DynamicToolCallOutputContentItem = Schema.Union( |
| | 8460 | [ |
| | 8461 | Schema.Struct({ |
| | 8462 | text: Schema.String, |
| | 8463 | type: Schema.Literal("inputText").annotate({ |
| | 8464 | title: "InputTextDynamicToolCallOutputContentItemType", |
| | 8465 | }), |
| | 8466 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), |
| | 8467 | Schema.Struct({ |
| | 8468 | imageUrl: Schema.String, |
| | 8469 | type: Schema.Literal("inputImage").annotate({ |
| | 8470 | title: "InputImageDynamicToolCallOutputContentItemType", |
| | 8471 | }), |
| | 8472 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), |
| | 8473 | Schema.Struct({ |
| | 8474 | audioUrl: Schema.String, |
| | 8475 | type: Schema.Literal("inputAudio").annotate({ |
| | 8476 | title: "InputAudioDynamicToolCallOutputContentItemType", |
| | 8477 | }), |
| | 8478 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), |
| | 8479 | ], |
| | 8480 | { mode: "oneOf" }, |
| | 8481 | ).annotate({ identifier: "V2ThreadListResponse__DynamicToolCallOutputContentItem" }); |
| | 8482 | |
| | 8483 | export type V2ThreadListResponse__DynamicToolCallStatus = "inProgress" | "completed" | "failed"; |
| | 8484 | export const V2ThreadListResponse__DynamicToolCallStatus = Schema.Literals([ |
| | 8485 | "inProgress", |
| | 8486 | "completed", |
| | 8487 | "failed", |
| | 8488 | ]).annotate({ identifier: "V2ThreadListResponse__DynamicToolCallStatus" }); |
| | 8489 | |
| | 8490 | export type V2ThreadListResponse__CollabAgentStatus = |
| | 8491 | | "pendingInit" |
| | 8492 | | "running" |
| | 8493 | | "interrupted" |
| | 8494 | | "completed" |
| | 8495 | | "errored" |
| | 8496 | | "shutdown" |
| | 8497 | | "notFound"; |
| | 8498 | export const V2ThreadListResponse__CollabAgentStatus = Schema.Literals([ |
| | 8499 | "pendingInit", |
| | 8500 | "running", |
| | 8501 | "interrupted", |
| | 8502 | "completed", |
| | 8503 | "errored", |
| | 8504 | "shutdown", |
| | 8505 | "notFound", |
| | 8506 | ]).annotate({ identifier: "V2ThreadListResponse__CollabAgentStatus" }); |
| 7188 | | 8507 | |
| 7189 | export type V2ThreadListResponse__ReasoningEffort = string; | 8508 | export type V2ThreadListResponse__ReasoningEffort = string; |
| 7190 | export const V2ThreadListResponse__ReasoningEffort = Schema.String.annotate({ | 8509 | export const V2ThreadListResponse__ReasoningEffort = Schema.String.annotate({ |
| 7191 | description: "A non-empty reasoning effort value advertised by the model.", | 8510 | description: "A non-empty reasoning effort value advertised by the model.", |
| 7192 | }).check(Schema.isMinLength(1)); | 8511 | }).check( |
| | 8512 | Schema.isMinLength(1).annotate({ |
| | 8513 | expected: "a value with a length of at least 1", |
| | 8514 | identifier: "V2ThreadListResponse__ReasoningEffort", |
| | 8515 | }), |
| | 8516 | ); |
| | 8517 | |
| | 8518 | export type V2ThreadListResponse__CollabAgentToolCallStatus = |
| | 8519 | | "inProgress" |
| | 8520 | | "completed" |
| | 8521 | | "failed" |
| | 8522 | | "interrupted"; |
| | 8523 | export const V2ThreadListResponse__CollabAgentToolCallStatus = Schema.Literals([ |
| | 8524 | "inProgress", |
| | 8525 | "completed", |
| | 8526 | "failed", |
| | 8527 | "interrupted", |
| | 8528 | ]).annotate({ identifier: "V2ThreadListResponse__CollabAgentToolCallStatus" }); |
| | 8529 | |
| | 8530 | export type V2ThreadListResponse__CollabAgentTool = |
| | 8531 | | "spawnAgent" |
| | 8532 | | "sendInput" |
| | 8533 | | "resumeAgent" |
| | 8534 | | "wait" |
| | 8535 | | "closeAgent" |
| | 8536 | | "sendMessage" |
| | 8537 | | "followupTask" |
| | 8538 | | "interruptAgent" |
| | 8539 | | "listAgents"; |
| | 8540 | export const V2ThreadListResponse__CollabAgentTool = Schema.Literals([ |
| | 8541 | "spawnAgent", |
| | 8542 | "sendInput", |
| | 8543 | "resumeAgent", |
| | 8544 | "wait", |
| | 8545 | "closeAgent", |
| | 8546 | "sendMessage", |
| | 8547 | "followupTask", |
| | 8548 | "interruptAgent", |
| | 8549 | "listAgents", |
| | 8550 | ]).annotate({ identifier: "V2ThreadListResponse__CollabAgentTool" }); |
| 7193 | | 8551 | |
| 7194 | export type V2ThreadListResponse__SubAgentActivityKind = | 8552 | export type V2ThreadListResponse__SubAgentActivityKind = |
| 7195 | | "started" | 8553 | | "started" |
| ... | @@ -7201,56 +8559,7 @@ export const V2ThreadListResponse__SubAgentActivityKind = Schema.Literals([ | ... | @@ -7201,56 +8559,7 @@ export const V2ThreadListResponse__SubAgentActivityKind = Schema.Literals([ |
| 7201 | "interacted", | 8559 | "interacted", |
| 7202 | "interrupted", | 8560 | "interrupted", |
| 7203 | "completed", | 8561 | "completed", |
| 7204 | ]); | 8562 | ]).annotate({ identifier: "V2ThreadListResponse__SubAgentActivityKind" }); |
| 7205 | | | |
| 7206 | export type V2ThreadListResponse__TextElement = { | | |
| 7207 | readonly byteRange: { readonly end: number; readonly start: number }; | | |
| 7208 | readonly placeholder?: string | null; | | |
| 7209 | }; | | |
| 7210 | export const V2ThreadListResponse__TextElement = Schema.Struct({ | | |
| 7211 | byteRange: Schema.Struct({ | | |
| 7212 | end: Schema.Number.annotate({ format: "uint" }) | | |
| 7213 | .check(Schema.isInt()) | | |
| 7214 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 7215 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 7216 | .check(Schema.isInt()) | | |
| 7217 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 7218 | }).annotate({ | | |
| 7219 | description: "Byte range in the parent `text` buffer that this element occupies.", | | |
| 7220 | }), | | |
| 7221 | placeholder: Schema.optionalKey( | | |
| 7222 | Schema.Union([ | | |
| 7223 | Schema.String.annotate({ | | |
| 7224 | description: "Optional human-readable placeholder for the element, displayed in the UI.", | | |
| 7225 | }), | | |
| 7226 | Schema.Null, | | |
| 7227 | ]), | | |
| 7228 | ), | | |
| 7229 | }); | | |
| 7230 | | | |
| 7231 | export type V2ThreadListResponse__ThreadActiveFlag = "waitingOnApproval" | "waitingOnUserInput"; | | |
| 7232 | export const V2ThreadListResponse__ThreadActiveFlag = Schema.Literals([ | | |
| 7233 | "waitingOnApproval", | | |
| 7234 | "waitingOnUserInput", | | |
| 7235 | ]); | | |
| 7236 | | | |
| 7237 | export type V2ThreadListResponse__ThreadId = string; | | |
| 7238 | export const V2ThreadListResponse__ThreadId = Schema.String; | | |
| 7239 | | | |
| 7240 | export type V2ThreadListResponse__ThreadSource = string; | | |
| 7241 | export const V2ThreadListResponse__ThreadSource = Schema.String; | | |
| 7242 | | | |
| 7243 | export type V2ThreadListResponse__TurnStatus = | | |
| 7244 | | "completed" | | |
| 7245 | | "interrupted" | | |
| 7246 | | "failed" | | |
| 7247 | | "inProgress"; | | |
| 7248 | export const V2ThreadListResponse__TurnStatus = Schema.Literals([ | | |
| 7249 | "completed", | | |
| 7250 | "interrupted", | | |
| 7251 | "failed", | | |
| 7252 | "inProgress", | | |
| 7253 | ]); | | |
| 7254 | | 8563 | |
| 7255 | export type V2ThreadListResponse__WebSearchAction = | 8564 | export type V2ThreadListResponse__WebSearchAction = |
| 7256 | | { | 8565 | | { |
| ... | @@ -7282,7 +8591,36 @@ export const V2ThreadListResponse__WebSearchAction = Schema.Union( | ... | @@ -7282,7 +8591,36 @@ export const V2ThreadListResponse__WebSearchAction = Schema.Union( |
| 7282 | }).annotate({ title: "OtherWebSearchAction" }), | 8591 | }).annotate({ title: "OtherWebSearchAction" }), |
| 7283 | ], | 8592 | ], |
| 7284 | { mode: "oneOf" }, | 8593 | { mode: "oneOf" }, |
| 7285 | ); | 8594 | ).annotate({ identifier: "V2ThreadListResponse__WebSearchAction" }); |
| | 8595 | |
| | 8596 | export type V2ThreadListResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| | 8597 | export const V2ThreadListResponse__TurnItemsView = Schema.Union( |
| | 8598 | [ |
| | 8599 | Schema.Literal("notLoaded").annotate({ |
| | 8600 | description: "`items` was not loaded for this turn. The field is intentionally empty.", |
| | 8601 | }), |
| | 8602 | Schema.Literal("summary").annotate({ |
| | 8603 | description: "`items` contains only a display summary for this turn.", |
| | 8604 | }), |
| | 8605 | Schema.Literal("full").annotate({ |
| | 8606 | description: |
| | 8607 | "`items` contains every ThreadItem available from persisted app-server history for this turn.", |
| | 8608 | }), |
| | 8609 | ], |
| | 8610 | { mode: "oneOf" }, |
| | 8611 | ).annotate({ identifier: "V2ThreadListResponse__TurnItemsView" }); |
| | 8612 | |
| | 8613 | export type V2ThreadListResponse__TurnStatus = |
| | 8614 | | "completed" |
| | 8615 | | "interrupted" |
| | 8616 | | "failed" |
| | 8617 | | "inProgress"; |
| | 8618 | export const V2ThreadListResponse__TurnStatus = Schema.Literals([ |
| | 8619 | "completed", |
| | 8620 | "interrupted", |
| | 8621 | "failed", |
| | 8622 | "inProgress", |
| | 8623 | ]).annotate({ identifier: "V2ThreadListResponse__TurnStatus" }); |
| 7286 | | 8624 | |
| 7287 | export type V2ThreadMetadataUpdateParams__ThreadMetadataGitInfoUpdateParams = { | 8625 | export type V2ThreadMetadataUpdateParams__ThreadMetadataGitInfoUpdateParams = { |
| 7288 | readonly branch?: string | null; | 8626 | readonly branch?: string | null; |
| ... | @@ -7317,85 +8655,15 @@ export const V2ThreadMetadataUpdateParams__ThreadMetadataGitInfoUpdateParams = S | ... | @@ -7317,85 +8655,15 @@ export const V2ThreadMetadataUpdateParams__ThreadMetadataGitInfoUpdateParams = S |
| 7317 | Schema.Null, | 8655 | Schema.Null, |
| 7318 | ]), | 8656 | ]), |
| 7319 | ), | 8657 | ), |
| 7320 | }); | 8658 | }).annotate({ identifier: "V2ThreadMetadataUpdateParams__ThreadMetadataGitInfoUpdateParams" }); |
| 7321 | | 8659 | |
| 7322 | export type V2ThreadMetadataUpdateResponse__AbsolutePathBuf = string; | 8660 | export type V2ThreadMetadataUpdateResponse__AbsolutePathBuf = string; |
| 7323 | export const V2ThreadMetadataUpdateResponse__AbsolutePathBuf = Schema.String.annotate({ | 8661 | export const V2ThreadMetadataUpdateResponse__AbsolutePathBuf = Schema.String.annotate({ |
| 7324 | description: | 8662 | description: |
| 7325 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 8663 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 8664 | identifier: "V2ThreadMetadataUpdateResponse__AbsolutePathBuf", |
| 7326 | }); | 8665 | }); |
| 7327 | | 8666 | |
| 7328 | export type V2ThreadMetadataUpdateResponse__AgentPath = string; | | |
| 7329 | export const V2ThreadMetadataUpdateResponse__AgentPath = Schema.String; | | |
| 7330 | | | |
| 7331 | export type V2ThreadMetadataUpdateResponse__CollabAgentStatus = | | |
| 7332 | | "pendingInit" | | |
| 7333 | | "running" | | |
| 7334 | | "interrupted" | | |
| 7335 | | "completed" | | |
| 7336 | | "errored" | | |
| 7337 | | "shutdown" | | |
| 7338 | | "notFound"; | | |
| 7339 | export const V2ThreadMetadataUpdateResponse__CollabAgentStatus = Schema.Literals([ | | |
| 7340 | "pendingInit", | | |
| 7341 | "running", | | |
| 7342 | "interrupted", | | |
| 7343 | "completed", | | |
| 7344 | "errored", | | |
| 7345 | "shutdown", | | |
| 7346 | "notFound", | | |
| 7347 | ]); | | |
| 7348 | | | |
| 7349 | export type V2ThreadMetadataUpdateResponse__CommandExecutionStatus = | | |
| 7350 | | "inProgress" | | |
| 7351 | | "completed" | | |
| 7352 | | "failed" | | |
| 7353 | | "declined"; | | |
| 7354 | export const V2ThreadMetadataUpdateResponse__CommandExecutionStatus = Schema.Literals([ | | |
| 7355 | "inProgress", | | |
| 7356 | "completed", | | |
| 7357 | "failed", | | |
| 7358 | "declined", | | |
| 7359 | ]); | | |
| 7360 | | | |
| 7361 | export type V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem = | | |
| 7362 | | { readonly text: string; readonly type: "inputText" } | | |
| 7363 | | { readonly imageUrl: string; readonly type: "inputImage" } | | |
| 7364 | | { readonly audioUrl: string; readonly type: "inputAudio" }; | | |
| 7365 | export const V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem = Schema.Union( | | |
| 7366 | [ | | |
| 7367 | Schema.Struct({ | | |
| 7368 | text: Schema.String, | | |
| 7369 | type: Schema.Literal("inputText").annotate({ | | |
| 7370 | title: "InputTextDynamicToolCallOutputContentItemType", | | |
| 7371 | }), | | |
| 7372 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), | | |
| 7373 | Schema.Struct({ | | |
| 7374 | imageUrl: Schema.String, | | |
| 7375 | type: Schema.Literal("inputImage").annotate({ | | |
| 7376 | title: "InputImageDynamicToolCallOutputContentItemType", | | |
| 7377 | }), | | |
| 7378 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), | | |
| 7379 | Schema.Struct({ | | |
| 7380 | audioUrl: Schema.String, | | |
| 7381 | type: Schema.Literal("inputAudio").annotate({ | | |
| 7382 | title: "InputAudioDynamicToolCallOutputContentItemType", | | |
| 7383 | }), | | |
| 7384 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), | | |
| 7385 | ], | | |
| 7386 | { mode: "oneOf" }, | | |
| 7387 | ); | | |
| 7388 | | | |
| 7389 | export type V2ThreadMetadataUpdateResponse__DynamicToolCallStatus = | | |
| 7390 | | "inProgress" | | |
| 7391 | | "completed" | | |
| 7392 | | "failed"; | | |
| 7393 | export const V2ThreadMetadataUpdateResponse__DynamicToolCallStatus = Schema.Literals([ | | |
| 7394 | "inProgress", | | |
| 7395 | "completed", | | |
| 7396 | "failed", | | |
| 7397 | ]); | | |
| 7398 | | | |
| 7399 | export type V2ThreadMetadataUpdateResponse__GitInfo = { | 8667 | export type V2ThreadMetadataUpdateResponse__GitInfo = { |
| 7400 | readonly branch?: string | null; | 8668 | readonly branch?: string | null; |
| 7401 | readonly originUrl?: string | null; | 8669 | readonly originUrl?: string | null; |
| ... | @@ -7405,68 +8673,70 @@ export const V2ThreadMetadataUpdateResponse__GitInfo = Schema.Struct({ | ... | @@ -7405,68 +8673,70 @@ export const V2ThreadMetadataUpdateResponse__GitInfo = Schema.Struct({ |
| 7405 | branch: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 8673 | branch: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 7406 | originUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 8674 | originUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 7407 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 8675 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 8676 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__GitInfo" }); |
| | 8677 | |
| | 8678 | export type V2ThreadMetadataUpdateResponse__AgentPath = string; |
| | 8679 | export const V2ThreadMetadataUpdateResponse__AgentPath = Schema.String.annotate({ |
| | 8680 | identifier: "V2ThreadMetadataUpdateResponse__AgentPath", |
| 7408 | }); | 8681 | }); |
| 7409 | | 8682 | |
| 7410 | export type V2ThreadMetadataUpdateResponse__HookPromptFragment = { | 8683 | export type V2ThreadMetadataUpdateResponse__ThreadId = string; |
| 7411 | readonly hookRunId: string; | 8684 | export const V2ThreadMetadataUpdateResponse__ThreadId = Schema.String.annotate({ |
| 7412 | readonly text: string; | 8685 | identifier: "V2ThreadMetadataUpdateResponse__ThreadId", |
| 7413 | }; | 8686 | }); |
| 7414 | export const V2ThreadMetadataUpdateResponse__HookPromptFragment = Schema.Struct({ | 8687 | |
| 7415 | hookRunId: Schema.String, | 8688 | export type V2ThreadMetadataUpdateResponse__ThreadActiveFlag = |
| 7416 | text: Schema.String, | 8689 | | "waitingOnApproval" |
| | 8690 | | "waitingOnUserInput"; |
| | 8691 | export const V2ThreadMetadataUpdateResponse__ThreadActiveFlag = Schema.Literals([ |
| | 8692 | "waitingOnApproval", |
| | 8693 | "waitingOnUserInput", |
| | 8694 | ]).annotate({ identifier: "V2ThreadMetadataUpdateResponse__ThreadActiveFlag" }); |
| | 8695 | |
| | 8696 | export type V2ThreadMetadataUpdateResponse__ThreadSource = string; |
| | 8697 | export const V2ThreadMetadataUpdateResponse__ThreadSource = Schema.String.annotate({ |
| | 8698 | identifier: "V2ThreadMetadataUpdateResponse__ThreadSource", |
| 7417 | }); | 8699 | }); |
| 7418 | | 8700 | |
| | 8701 | export type V2ThreadMetadataUpdateResponse__NonSteerableTurnKind = "review" | "compact"; |
| | 8702 | export const V2ThreadMetadataUpdateResponse__NonSteerableTurnKind = Schema.Literals([ |
| | 8703 | "review", |
| | 8704 | "compact", |
| | 8705 | ]).annotate({ identifier: "V2ThreadMetadataUpdateResponse__NonSteerableTurnKind" }); |
| | 8706 | |
| | 8707 | export type V2ThreadMetadataUpdateResponse__ByteRange = { |
| | 8708 | readonly end: number; |
| | 8709 | readonly start: number; |
| | 8710 | }; |
| | 8711 | export const V2ThreadMetadataUpdateResponse__ByteRange = Schema.Struct({ |
| | 8712 | end: Schema.Number.annotate({ format: "uint" }) |
| | 8713 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 8714 | .check( |
| | 8715 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 8716 | ), |
| | 8717 | start: Schema.Number.annotate({ format: "uint" }) |
| | 8718 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 8719 | .check( |
| | 8720 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 8721 | ), |
| | 8722 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__ByteRange" }); |
| | 8723 | |
| 7419 | export type V2ThreadMetadataUpdateResponse__ImageDetail = "auto" | "low" | "high" | "original"; | 8724 | export type V2ThreadMetadataUpdateResponse__ImageDetail = "auto" | "low" | "high" | "original"; |
| 7420 | export const V2ThreadMetadataUpdateResponse__ImageDetail = Schema.Literals([ | 8725 | export const V2ThreadMetadataUpdateResponse__ImageDetail = Schema.Literals([ |
| 7421 | "auto", | 8726 | "auto", |
| 7422 | "low", | 8727 | "low", |
| 7423 | "high", | 8728 | "high", |
| 7424 | "original", | 8729 | "original", |
| 7425 | ]); | 8730 | ]).annotate({ identifier: "V2ThreadMetadataUpdateResponse__ImageDetail" }); |
| 7426 | | | |
| 7427 | export type V2ThreadMetadataUpdateResponse__LegacyAppPathString = string; | | |
| 7428 | export const V2ThreadMetadataUpdateResponse__LegacyAppPathString = Schema.String; | | |
| 7429 | | | |
| 7430 | export type V2ThreadMetadataUpdateResponse__McpToolCallAppContext = { | | |
| 7431 | readonly actionName?: string | null; | | |
| 7432 | readonly appName?: string | null; | | |
| 7433 | readonly connectorId: string; | | |
| 7434 | readonly linkId?: string | null; | | |
| 7435 | readonly resourceUri?: string | null; | | |
| 7436 | }; | | |
| 7437 | export const V2ThreadMetadataUpdateResponse__McpToolCallAppContext = Schema.Struct({ | | |
| 7438 | actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 7439 | appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 7440 | connectorId: Schema.String, | | |
| 7441 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 7442 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 7443 | }); | | |
| 7444 | | | |
| 7445 | export type V2ThreadMetadataUpdateResponse__McpToolCallError = { readonly message: string }; | | |
| 7446 | export const V2ThreadMetadataUpdateResponse__McpToolCallError = Schema.Struct({ | | |
| 7447 | message: Schema.String, | | |
| 7448 | }); | | |
| 7449 | | 8731 | |
| 7450 | export type V2ThreadMetadataUpdateResponse__McpToolCallResult = { | 8732 | export type V2ThreadMetadataUpdateResponse__HookPromptFragment = { |
| 7451 | readonly _meta?: unknown; | 8733 | readonly hookRunId: string; |
| 7452 | readonly content: ReadonlyArray<unknown>; | 8734 | readonly text: string; |
| 7453 | readonly structuredContent?: unknown; | | |
| 7454 | }; | 8735 | }; |
| 7455 | export const V2ThreadMetadataUpdateResponse__McpToolCallResult = Schema.Struct({ | 8736 | export const V2ThreadMetadataUpdateResponse__HookPromptFragment = Schema.Struct({ |
| 7456 | _meta: Schema.optionalKey(Schema.Unknown), | 8737 | hookRunId: Schema.String, |
| 7457 | content: Schema.Array(Schema.Unknown), | 8738 | text: Schema.String, |
| 7458 | structuredContent: Schema.optionalKey(Schema.Unknown), | 8739 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__HookPromptFragment" }); |
| 7459 | }); | | |
| 7460 | | | |
| 7461 | export type V2ThreadMetadataUpdateResponse__McpToolCallStatus = | | |
| 7462 | | "inProgress" | | |
| 7463 | | "completed" | | |
| 7464 | | "failed"; | | |
| 7465 | export const V2ThreadMetadataUpdateResponse__McpToolCallStatus = Schema.Literals([ | | |
| 7466 | "inProgress", | | |
| 7467 | "completed", | | |
| 7468 | "failed", | | |
| 7469 | ]); | | |
| 7470 | | 8740 | |
| 7471 | export type V2ThreadMetadataUpdateResponse__MemoryCitationEntry = { | 8741 | export type V2ThreadMetadataUpdateResponse__MemoryCitationEntry = { |
| 7472 | readonly lineEnd: number; | 8742 | readonly lineEnd: number; |
| ... | @@ -7476,41 +8746,65 @@ export type V2ThreadMetadataUpdateResponse__MemoryCitationEntry = { | ... | @@ -7476,41 +8746,65 @@ export type V2ThreadMetadataUpdateResponse__MemoryCitationEntry = { |
| 7476 | }; | 8746 | }; |
| 7477 | export const V2ThreadMetadataUpdateResponse__MemoryCitationEntry = Schema.Struct({ | 8747 | export const V2ThreadMetadataUpdateResponse__MemoryCitationEntry = Schema.Struct({ |
| 7478 | lineEnd: Schema.Number.annotate({ format: "uint32" }) | 8748 | lineEnd: Schema.Number.annotate({ format: "uint32" }) |
| 7479 | .check(Schema.isInt()) | 8749 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 7480 | .check(Schema.isGreaterThanOrEqualTo(0)), | 8750 | .check( |
| | 8751 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 8752 | ), |
| 7481 | lineStart: Schema.Number.annotate({ format: "uint32" }) | 8753 | lineStart: Schema.Number.annotate({ format: "uint32" }) |
| 7482 | .check(Schema.isInt()) | 8754 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 7483 | .check(Schema.isGreaterThanOrEqualTo(0)), | 8755 | .check( |
| | 8756 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 8757 | ), |
| 7484 | note: Schema.String, | 8758 | note: Schema.String, |
| 7485 | path: Schema.String, | 8759 | path: Schema.String, |
| 7486 | }); | 8760 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__MemoryCitationEntry" }); |
| 7487 | | 8761 | |
| 7488 | export type V2ThreadMetadataUpdateResponse__MessagePhase = "commentary" | "final_answer"; | 8762 | export type V2ThreadMetadataUpdateResponse__MessagePhase = "commentary" | "final_answer"; |
| 7489 | export const V2ThreadMetadataUpdateResponse__MessagePhase = Schema.Literals([ | 8763 | export const V2ThreadMetadataUpdateResponse__MessagePhase = Schema.Union( |
| 7490 | "commentary", | 8764 | [ |
| 7491 | "final_answer", | 8765 | Schema.Literal("commentary").annotate({ |
| 7492 | ]).annotate({ | 8766 | description: |
| | 8767 | "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.", |
| | 8768 | }), |
| | 8769 | Schema.Literal("final_answer").annotate({ |
| | 8770 | description: "The assistant's terminal answer text for the current turn.", |
| | 8771 | }), |
| | 8772 | ], |
| | 8773 | { mode: "oneOf" }, |
| | 8774 | ).annotate({ |
| 7493 | description: | 8775 | description: |
| 7494 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', | 8776 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', |
| | 8777 | identifier: "V2ThreadMetadataUpdateResponse__MessagePhase", |
| 7495 | }); | 8778 | }); |
| 7496 | | 8779 | |
| 7497 | export type V2ThreadMetadataUpdateResponse__NonSteerableTurnKind = "review" | "compact"; | 8780 | export type V2ThreadMetadataUpdateResponse__LegacyAppPathString = string; |
| 7498 | export const V2ThreadMetadataUpdateResponse__NonSteerableTurnKind = Schema.Literals([ | 8781 | export const V2ThreadMetadataUpdateResponse__LegacyAppPathString = Schema.String.annotate({ |
| 7499 | "review", | 8782 | identifier: "V2ThreadMetadataUpdateResponse__LegacyAppPathString", |
| 7500 | "compact", | 8783 | }); |
| 7501 | ]); | | |
| 7502 | | 8784 | |
| 7503 | export type V2ThreadMetadataUpdateResponse__PatchApplyStatus = | 8785 | export type V2ThreadMetadataUpdateResponse__CommandExecutionSource = |
| | 8786 | | "agent" |
| | 8787 | | "userShell" |
| | 8788 | | "unifiedExecStartup" |
| | 8789 | | "unifiedExecInteraction"; |
| | 8790 | export const V2ThreadMetadataUpdateResponse__CommandExecutionSource = Schema.Literals([ |
| | 8791 | "agent", |
| | 8792 | "userShell", |
| | 8793 | "unifiedExecStartup", |
| | 8794 | "unifiedExecInteraction", |
| | 8795 | ]).annotate({ identifier: "V2ThreadMetadataUpdateResponse__CommandExecutionSource" }); |
| | 8796 | |
| | 8797 | export type V2ThreadMetadataUpdateResponse__CommandExecutionStatus = |
| 7504 | | "inProgress" | 8798 | | "inProgress" |
| 7505 | | "completed" | 8799 | | "completed" |
| 7506 | | "failed" | 8800 | | "failed" |
| 7507 | | "declined"; | 8801 | | "declined"; |
| 7508 | export const V2ThreadMetadataUpdateResponse__PatchApplyStatus = Schema.Literals([ | 8802 | export const V2ThreadMetadataUpdateResponse__CommandExecutionStatus = Schema.Literals([ |
| 7509 | "inProgress", | 8803 | "inProgress", |
| 7510 | "completed", | 8804 | "completed", |
| 7511 | "failed", | 8805 | "failed", |
| 7512 | "declined", | 8806 | "declined", |
| 7513 | ]); | 8807 | ]).annotate({ identifier: "V2ThreadMetadataUpdateResponse__CommandExecutionStatus" }); |
| 7514 | | 8808 | |
| 7515 | export type V2ThreadMetadataUpdateResponse__PatchChangeKind = | 8809 | export type V2ThreadMetadataUpdateResponse__PatchChangeKind = |
| 7516 | | { readonly type: "add" } | 8810 | | { readonly type: "add" } |
| ... | @@ -7530,75 +8824,172 @@ export const V2ThreadMetadataUpdateResponse__PatchChangeKind = Schema.Union( | ... | @@ -7530,75 +8824,172 @@ export const V2ThreadMetadataUpdateResponse__PatchChangeKind = Schema.Union( |
| 7530 | }).annotate({ title: "UpdatePatchChangeKind" }), | 8824 | }).annotate({ title: "UpdatePatchChangeKind" }), |
| 7531 | ], | 8825 | ], |
| 7532 | { mode: "oneOf" }, | 8826 | { mode: "oneOf" }, |
| 7533 | ); | 8827 | ).annotate({ identifier: "V2ThreadMetadataUpdateResponse__PatchChangeKind" }); |
| 7534 | | | |
| 7535 | export type V2ThreadMetadataUpdateResponse__ReasoningEffort = string; | | |
| 7536 | export const V2ThreadMetadataUpdateResponse__ReasoningEffort = Schema.String.annotate({ | | |
| 7537 | description: "A non-empty reasoning effort value advertised by the model.", | | |
| 7538 | }).check(Schema.isMinLength(1)); | | |
| 7539 | | 8828 | |
| 7540 | export type V2ThreadMetadataUpdateResponse__SubAgentActivityKind = | 8829 | export type V2ThreadMetadataUpdateResponse__PatchApplyStatus = |
| 7541 | | "started" | 8830 | | "inProgress" |
| 7542 | | "interacted" | 8831 | | "completed" |
| 7543 | | "interrupted" | 8832 | | "failed" |
| 7544 | | "completed"; | 8833 | | "declined"; |
| 7545 | export const V2ThreadMetadataUpdateResponse__SubAgentActivityKind = Schema.Literals([ | 8834 | export const V2ThreadMetadataUpdateResponse__PatchApplyStatus = Schema.Literals([ |
| 7546 | "started", | 8835 | "inProgress", |
| 7547 | "interacted", | | |
| 7548 | "interrupted", | | |
| 7549 | "completed", | 8836 | "completed", |
| 7550 | ]); | 8837 | "failed", |
| | 8838 | "declined", |
| | 8839 | ]).annotate({ identifier: "V2ThreadMetadataUpdateResponse__PatchApplyStatus" }); |
| 7551 | | 8840 | |
| 7552 | export type V2ThreadMetadataUpdateResponse__TextElement = { | 8841 | export type V2ThreadMetadataUpdateResponse__McpToolCallAppContext = { |
| 7553 | readonly byteRange: { readonly end: number; readonly start: number }; | 8842 | readonly actionName?: string | null; |
| 7554 | readonly placeholder?: string | null; | 8843 | readonly appName?: string | null; |
| | 8844 | readonly connectorId: string; |
| | 8845 | readonly linkId?: string | null; |
| | 8846 | readonly resourceUri?: string | null; |
| 7555 | }; | 8847 | }; |
| 7556 | export const V2ThreadMetadataUpdateResponse__TextElement = Schema.Struct({ | 8848 | export const V2ThreadMetadataUpdateResponse__McpToolCallAppContext = Schema.Struct({ |
| 7557 | byteRange: Schema.Struct({ | 8849 | actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 7558 | end: Schema.Number.annotate({ format: "uint" }) | 8850 | appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 7559 | .check(Schema.isInt()) | 8851 | connectorId: Schema.String, |
| 7560 | .check(Schema.isGreaterThanOrEqualTo(0)), | 8852 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 7561 | start: Schema.Number.annotate({ format: "uint" }) | 8853 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 7562 | .check(Schema.isInt()) | 8854 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__McpToolCallAppContext" }); |
| 7563 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 7564 | }).annotate({ | | |
| 7565 | description: "Byte range in the parent `text` buffer that this element occupies.", | | |
| 7566 | }), | | |
| 7567 | placeholder: Schema.optionalKey( | | |
| 7568 | Schema.Union([ | | |
| 7569 | Schema.String.annotate({ | | |
| 7570 | description: "Optional human-readable placeholder for the element, displayed in the UI.", | | |
| 7571 | }), | | |
| 7572 | Schema.Null, | | |
| 7573 | ]), | | |
| 7574 | ), | | |
| 7575 | }); | | |
| 7576 | | 8855 | |
| 7577 | export type V2ThreadMetadataUpdateResponse__ThreadActiveFlag = | 8856 | export type V2ThreadMetadataUpdateResponse__McpToolCallError = { readonly message: string }; |
| 7578 | | "waitingOnApproval" | 8857 | export const V2ThreadMetadataUpdateResponse__McpToolCallError = Schema.Struct({ |
| 7579 | | "waitingOnUserInput"; | 8858 | message: Schema.String, |
| 7580 | export const V2ThreadMetadataUpdateResponse__ThreadActiveFlag = Schema.Literals([ | 8859 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__McpToolCallError" }); |
| 7581 | "waitingOnApproval", | | |
| 7582 | "waitingOnUserInput", | | |
| 7583 | ]); | | |
| 7584 | | 8860 | |
| 7585 | export type V2ThreadMetadataUpdateResponse__ThreadId = string; | 8861 | export type V2ThreadMetadataUpdateResponse__McpToolCallResult = { |
| 7586 | export const V2ThreadMetadataUpdateResponse__ThreadId = Schema.String; | 8862 | readonly _meta?: Schema.Json; |
| | 8863 | readonly content: ReadonlyArray<Schema.Json>; |
| | 8864 | readonly structuredContent?: Schema.Json; |
| | 8865 | }; |
| | 8866 | export const V2ThreadMetadataUpdateResponse__McpToolCallResult = Schema.Struct({ |
| | 8867 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 8868 | content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), |
| | 8869 | structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 8870 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__McpToolCallResult" }); |
| 7587 | | 8871 | |
| 7588 | export type V2ThreadMetadataUpdateResponse__ThreadSource = string; | 8872 | export type V2ThreadMetadataUpdateResponse__McpToolCallStatus = |
| 7589 | export const V2ThreadMetadataUpdateResponse__ThreadSource = Schema.String; | 8873 | | "inProgress" |
| | 8874 | | "completed" |
| | 8875 | | "failed"; |
| | 8876 | export const V2ThreadMetadataUpdateResponse__McpToolCallStatus = Schema.Literals([ |
| | 8877 | "inProgress", |
| | 8878 | "completed", |
| | 8879 | "failed", |
| | 8880 | ]).annotate({ identifier: "V2ThreadMetadataUpdateResponse__McpToolCallStatus" }); |
| 7590 | | 8881 | |
| 7591 | export type V2ThreadMetadataUpdateResponse__TurnStatus = | 8882 | export type V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem = |
| | 8883 | | { readonly text: string; readonly type: "inputText" } |
| | 8884 | | { readonly imageUrl: string; readonly type: "inputImage" } |
| | 8885 | | { readonly audioUrl: string; readonly type: "inputAudio" }; |
| | 8886 | export const V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem = Schema.Union( |
| | 8887 | [ |
| | 8888 | Schema.Struct({ |
| | 8889 | text: Schema.String, |
| | 8890 | type: Schema.Literal("inputText").annotate({ |
| | 8891 | title: "InputTextDynamicToolCallOutputContentItemType", |
| | 8892 | }), |
| | 8893 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), |
| | 8894 | Schema.Struct({ |
| | 8895 | imageUrl: Schema.String, |
| | 8896 | type: Schema.Literal("inputImage").annotate({ |
| | 8897 | title: "InputImageDynamicToolCallOutputContentItemType", |
| | 8898 | }), |
| | 8899 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), |
| | 8900 | Schema.Struct({ |
| | 8901 | audioUrl: Schema.String, |
| | 8902 | type: Schema.Literal("inputAudio").annotate({ |
| | 8903 | title: "InputAudioDynamicToolCallOutputContentItemType", |
| | 8904 | }), |
| | 8905 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), |
| | 8906 | ], |
| | 8907 | { mode: "oneOf" }, |
| | 8908 | ).annotate({ identifier: "V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem" }); |
| | 8909 | |
| | 8910 | export type V2ThreadMetadataUpdateResponse__DynamicToolCallStatus = |
| | 8911 | | "inProgress" |
| 7592 | | "completed" | 8912 | | "completed" |
| | 8913 | | "failed"; |
| | 8914 | export const V2ThreadMetadataUpdateResponse__DynamicToolCallStatus = Schema.Literals([ |
| | 8915 | "inProgress", |
| | 8916 | "completed", |
| | 8917 | "failed", |
| | 8918 | ]).annotate({ identifier: "V2ThreadMetadataUpdateResponse__DynamicToolCallStatus" }); |
| | 8919 | |
| | 8920 | export type V2ThreadMetadataUpdateResponse__CollabAgentStatus = |
| | 8921 | | "pendingInit" |
| | 8922 | | "running" |
| 7593 | | "interrupted" | 8923 | | "interrupted" |
| | 8924 | | "completed" |
| | 8925 | | "errored" |
| | 8926 | | "shutdown" |
| | 8927 | | "notFound"; |
| | 8928 | export const V2ThreadMetadataUpdateResponse__CollabAgentStatus = Schema.Literals([ |
| | 8929 | "pendingInit", |
| | 8930 | "running", |
| | 8931 | "interrupted", |
| | 8932 | "completed", |
| | 8933 | "errored", |
| | 8934 | "shutdown", |
| | 8935 | "notFound", |
| | 8936 | ]).annotate({ identifier: "V2ThreadMetadataUpdateResponse__CollabAgentStatus" }); |
| | 8937 | |
| | 8938 | export type V2ThreadMetadataUpdateResponse__ReasoningEffort = string; |
| | 8939 | export const V2ThreadMetadataUpdateResponse__ReasoningEffort = Schema.String.annotate({ |
| | 8940 | description: "A non-empty reasoning effort value advertised by the model.", |
| | 8941 | }).check( |
| | 8942 | Schema.isMinLength(1).annotate({ |
| | 8943 | expected: "a value with a length of at least 1", |
| | 8944 | identifier: "V2ThreadMetadataUpdateResponse__ReasoningEffort", |
| | 8945 | }), |
| | 8946 | ); |
| | 8947 | |
| | 8948 | export type V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus = |
| | 8949 | | "inProgress" |
| | 8950 | | "completed" |
| 7594 | | "failed" | 8951 | | "failed" |
| 7595 | | "inProgress"; | 8952 | | "interrupted"; |
| 7596 | export const V2ThreadMetadataUpdateResponse__TurnStatus = Schema.Literals([ | 8953 | export const V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus = Schema.Literals([ |
| | 8954 | "inProgress", |
| 7597 | "completed", | 8955 | "completed", |
| 7598 | "interrupted", | | |
| 7599 | "failed", | 8956 | "failed", |
| 7600 | "inProgress", | 8957 | "interrupted", |
| 7601 | ]); | 8958 | ]).annotate({ identifier: "V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus" }); |
| | 8959 | |
| | 8960 | export type V2ThreadMetadataUpdateResponse__CollabAgentTool = |
| | 8961 | | "spawnAgent" |
| | 8962 | | "sendInput" |
| | 8963 | | "resumeAgent" |
| | 8964 | | "wait" |
| | 8965 | | "closeAgent" |
| | 8966 | | "sendMessage" |
| | 8967 | | "followupTask" |
| | 8968 | | "interruptAgent" |
| | 8969 | | "listAgents"; |
| | 8970 | export const V2ThreadMetadataUpdateResponse__CollabAgentTool = Schema.Literals([ |
| | 8971 | "spawnAgent", |
| | 8972 | "sendInput", |
| | 8973 | "resumeAgent", |
| | 8974 | "wait", |
| | 8975 | "closeAgent", |
| | 8976 | "sendMessage", |
| | 8977 | "followupTask", |
| | 8978 | "interruptAgent", |
| | 8979 | "listAgents", |
| | 8980 | ]).annotate({ identifier: "V2ThreadMetadataUpdateResponse__CollabAgentTool" }); |
| | 8981 | |
| | 8982 | export type V2ThreadMetadataUpdateResponse__SubAgentActivityKind = |
| | 8983 | | "started" |
| | 8984 | | "interacted" |
| | 8985 | | "interrupted" |
| | 8986 | | "completed"; |
| | 8987 | export const V2ThreadMetadataUpdateResponse__SubAgentActivityKind = Schema.Literals([ |
| | 8988 | "started", |
| | 8989 | "interacted", |
| | 8990 | "interrupted", |
| | 8991 | "completed", |
| | 8992 | ]).annotate({ identifier: "V2ThreadMetadataUpdateResponse__SubAgentActivityKind" }); |
| 7602 | | 8993 | |
| 7603 | export type V2ThreadMetadataUpdateResponse__WebSearchAction = | 8994 | export type V2ThreadMetadataUpdateResponse__WebSearchAction = |
| 7604 | | { | 8995 | | { |
| ... | @@ -7630,81 +9021,43 @@ export const V2ThreadMetadataUpdateResponse__WebSearchAction = Schema.Union( | ... | @@ -7630,81 +9021,43 @@ export const V2ThreadMetadataUpdateResponse__WebSearchAction = Schema.Union( |
| 7630 | }).annotate({ title: "OtherWebSearchAction" }), | 9021 | }).annotate({ title: "OtherWebSearchAction" }), |
| 7631 | ], | 9022 | ], |
| 7632 | { mode: "oneOf" }, | 9023 | { mode: "oneOf" }, |
| 7633 | ); | 9024 | ).annotate({ identifier: "V2ThreadMetadataUpdateResponse__WebSearchAction" }); |
| 7634 | | | |
| 7635 | export type V2ThreadReadResponse__AbsolutePathBuf = string; | | |
| 7636 | export const V2ThreadReadResponse__AbsolutePathBuf = Schema.String.annotate({ | | |
| 7637 | description: | | |
| 7638 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | | |
| 7639 | }); | | |
| 7640 | | | |
| 7641 | export type V2ThreadReadResponse__AgentPath = string; | | |
| 7642 | export const V2ThreadReadResponse__AgentPath = Schema.String; | | |
| 7643 | | | |
| 7644 | export type V2ThreadReadResponse__CollabAgentStatus = | | |
| 7645 | | "pendingInit" | | |
| 7646 | | "running" | | |
| 7647 | | "interrupted" | | |
| 7648 | | "completed" | | |
| 7649 | | "errored" | | |
| 7650 | | "shutdown" | | |
| 7651 | | "notFound"; | | |
| 7652 | export const V2ThreadReadResponse__CollabAgentStatus = Schema.Literals([ | | |
| 7653 | "pendingInit", | | |
| 7654 | "running", | | |
| 7655 | "interrupted", | | |
| 7656 | "completed", | | |
| 7657 | "errored", | | |
| 7658 | "shutdown", | | |
| 7659 | "notFound", | | |
| 7660 | ]); | | |
| 7661 | | | |
| 7662 | export type V2ThreadReadResponse__CommandExecutionStatus = | | |
| 7663 | | "inProgress" | | |
| 7664 | | "completed" | | |
| 7665 | | "failed" | | |
| 7666 | | "declined"; | | |
| 7667 | export const V2ThreadReadResponse__CommandExecutionStatus = Schema.Literals([ | | |
| 7668 | "inProgress", | | |
| 7669 | "completed", | | |
| 7670 | "failed", | | |
| 7671 | "declined", | | |
| 7672 | ]); | | |
| 7673 | | 9025 | |
| 7674 | export type V2ThreadReadResponse__DynamicToolCallOutputContentItem = | 9026 | export type V2ThreadMetadataUpdateResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 7675 | | { readonly text: string; readonly type: "inputText" } | 9027 | export const V2ThreadMetadataUpdateResponse__TurnItemsView = Schema.Union( |
| 7676 | | { readonly imageUrl: string; readonly type: "inputImage" } | | |
| 7677 | | { readonly audioUrl: string; readonly type: "inputAudio" }; | | |
| 7678 | export const V2ThreadReadResponse__DynamicToolCallOutputContentItem = Schema.Union( | | |
| 7679 | [ | 9028 | [ |
| 7680 | Schema.Struct({ | 9029 | Schema.Literal("notLoaded").annotate({ |
| 7681 | text: Schema.String, | 9030 | description: "`items` was not loaded for this turn. The field is intentionally empty.", |
| 7682 | type: Schema.Literal("inputText").annotate({ | 9031 | }), |
| 7683 | title: "InputTextDynamicToolCallOutputContentItemType", | 9032 | Schema.Literal("summary").annotate({ |
| 7684 | }), | 9033 | description: "`items` contains only a display summary for this turn.", |
| 7685 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), | 9034 | }), |
| 7686 | Schema.Struct({ | 9035 | Schema.Literal("full").annotate({ |
| 7687 | imageUrl: Schema.String, | 9036 | description: |
| 7688 | type: Schema.Literal("inputImage").annotate({ | 9037 | "`items` contains every ThreadItem available from persisted app-server history for this turn.", |
| 7689 | title: "InputImageDynamicToolCallOutputContentItemType", | 9038 | }), |
| 7690 | }), | | |
| 7691 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), | | |
| 7692 | Schema.Struct({ | | |
| 7693 | audioUrl: Schema.String, | | |
| 7694 | type: Schema.Literal("inputAudio").annotate({ | | |
| 7695 | title: "InputAudioDynamicToolCallOutputContentItemType", | | |
| 7696 | }), | | |
| 7697 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), | | |
| 7698 | ], | 9039 | ], |
| 7699 | { mode: "oneOf" }, | 9040 | { mode: "oneOf" }, |
| 7700 | ); | 9041 | ).annotate({ identifier: "V2ThreadMetadataUpdateResponse__TurnItemsView" }); |
| 7701 | | 9042 | |
| 7702 | export type V2ThreadReadResponse__DynamicToolCallStatus = "inProgress" | "completed" | "failed"; | 9043 | export type V2ThreadMetadataUpdateResponse__TurnStatus = |
| 7703 | export const V2ThreadReadResponse__DynamicToolCallStatus = Schema.Literals([ | 9044 | | "completed" |
| 7704 | "inProgress", | 9045 | | "interrupted" |
| | 9046 | | "failed" |
| | 9047 | | "inProgress"; |
| | 9048 | export const V2ThreadMetadataUpdateResponse__TurnStatus = Schema.Literals([ |
| 7705 | "completed", | 9049 | "completed", |
| | 9050 | "interrupted", |
| 7706 | "failed", | 9051 | "failed", |
| 7707 | ]); | 9052 | "inProgress", |
| | 9053 | ]).annotate({ identifier: "V2ThreadMetadataUpdateResponse__TurnStatus" }); |
| | 9054 | |
| | 9055 | export type V2ThreadReadResponse__AbsolutePathBuf = string; |
| | 9056 | export const V2ThreadReadResponse__AbsolutePathBuf = Schema.String.annotate({ |
| | 9057 | description: |
| | 9058 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 9059 | identifier: "V2ThreadReadResponse__AbsolutePathBuf", |
| | 9060 | }); |
| 7708 | | 9061 | |
| 7709 | export type V2ThreadReadResponse__GitInfo = { | 9062 | export type V2ThreadReadResponse__GitInfo = { |
| 7710 | readonly branch?: string | null; | 9063 | readonly branch?: string | null; |
| ... | @@ -7715,63 +9068,65 @@ export const V2ThreadReadResponse__GitInfo = Schema.Struct({ | ... | @@ -7715,63 +9068,65 @@ export const V2ThreadReadResponse__GitInfo = Schema.Struct({ |
| 7715 | branch: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 9068 | branch: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 7716 | originUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 9069 | originUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 7717 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 9070 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 9071 | }).annotate({ identifier: "V2ThreadReadResponse__GitInfo" }); |
| | 9072 | |
| | 9073 | export type V2ThreadReadResponse__AgentPath = string; |
| | 9074 | export const V2ThreadReadResponse__AgentPath = Schema.String.annotate({ |
| | 9075 | identifier: "V2ThreadReadResponse__AgentPath", |
| 7718 | }); | 9076 | }); |
| 7719 | | 9077 | |
| 7720 | export type V2ThreadReadResponse__HookPromptFragment = { | 9078 | export type V2ThreadReadResponse__ThreadId = string; |
| 7721 | readonly hookRunId: string; | 9079 | export const V2ThreadReadResponse__ThreadId = Schema.String.annotate({ |
| 7722 | readonly text: string; | 9080 | identifier: "V2ThreadReadResponse__ThreadId", |
| 7723 | }; | 9081 | }); |
| 7724 | export const V2ThreadReadResponse__HookPromptFragment = Schema.Struct({ | 9082 | |
| 7725 | hookRunId: Schema.String, | 9083 | export type V2ThreadReadResponse__ThreadActiveFlag = "waitingOnApproval" | "waitingOnUserInput"; |
| 7726 | text: Schema.String, | 9084 | export const V2ThreadReadResponse__ThreadActiveFlag = Schema.Literals([ |
| | 9085 | "waitingOnApproval", |
| | 9086 | "waitingOnUserInput", |
| | 9087 | ]).annotate({ identifier: "V2ThreadReadResponse__ThreadActiveFlag" }); |
| | 9088 | |
| | 9089 | export type V2ThreadReadResponse__ThreadSource = string; |
| | 9090 | export const V2ThreadReadResponse__ThreadSource = Schema.String.annotate({ |
| | 9091 | identifier: "V2ThreadReadResponse__ThreadSource", |
| 7727 | }); | 9092 | }); |
| 7728 | | 9093 | |
| | 9094 | export type V2ThreadReadResponse__NonSteerableTurnKind = "review" | "compact"; |
| | 9095 | export const V2ThreadReadResponse__NonSteerableTurnKind = Schema.Literals([ |
| | 9096 | "review", |
| | 9097 | "compact", |
| | 9098 | ]).annotate({ identifier: "V2ThreadReadResponse__NonSteerableTurnKind" }); |
| | 9099 | |
| | 9100 | export type V2ThreadReadResponse__ByteRange = { readonly end: number; readonly start: number }; |
| | 9101 | export const V2ThreadReadResponse__ByteRange = Schema.Struct({ |
| | 9102 | end: Schema.Number.annotate({ format: "uint" }) |
| | 9103 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 9104 | .check( |
| | 9105 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 9106 | ), |
| | 9107 | start: Schema.Number.annotate({ format: "uint" }) |
| | 9108 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 9109 | .check( |
| | 9110 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 9111 | ), |
| | 9112 | }).annotate({ identifier: "V2ThreadReadResponse__ByteRange" }); |
| | 9113 | |
| 7729 | export type V2ThreadReadResponse__ImageDetail = "auto" | "low" | "high" | "original"; | 9114 | export type V2ThreadReadResponse__ImageDetail = "auto" | "low" | "high" | "original"; |
| 7730 | export const V2ThreadReadResponse__ImageDetail = Schema.Literals([ | 9115 | export const V2ThreadReadResponse__ImageDetail = Schema.Literals([ |
| 7731 | "auto", | 9116 | "auto", |
| 7732 | "low", | 9117 | "low", |
| 7733 | "high", | 9118 | "high", |
| 7734 | "original", | 9119 | "original", |
| 7735 | ]); | 9120 | ]).annotate({ identifier: "V2ThreadReadResponse__ImageDetail" }); |
| 7736 | | | |
| 7737 | export type V2ThreadReadResponse__LegacyAppPathString = string; | | |
| 7738 | export const V2ThreadReadResponse__LegacyAppPathString = Schema.String; | | |
| 7739 | | | |
| 7740 | export type V2ThreadReadResponse__McpToolCallAppContext = { | | |
| 7741 | readonly actionName?: string | null; | | |
| 7742 | readonly appName?: string | null; | | |
| 7743 | readonly connectorId: string; | | |
| 7744 | readonly linkId?: string | null; | | |
| 7745 | readonly resourceUri?: string | null; | | |
| 7746 | }; | | |
| 7747 | export const V2ThreadReadResponse__McpToolCallAppContext = Schema.Struct({ | | |
| 7748 | actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 7749 | appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 7750 | connectorId: Schema.String, | | |
| 7751 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 7752 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 7753 | }); | | |
| 7754 | | 9121 | |
| 7755 | export type V2ThreadReadResponse__McpToolCallError = { readonly message: string }; | 9122 | export type V2ThreadReadResponse__HookPromptFragment = { |
| 7756 | export const V2ThreadReadResponse__McpToolCallError = Schema.Struct({ message: Schema.String }); | 9123 | readonly hookRunId: string; |
| 7757 | | 9124 | readonly text: string; |
| 7758 | export type V2ThreadReadResponse__McpToolCallResult = { | | |
| 7759 | readonly _meta?: unknown; | | |
| 7760 | readonly content: ReadonlyArray<unknown>; | | |
| 7761 | readonly structuredContent?: unknown; | | |
| 7762 | }; | 9125 | }; |
| 7763 | export const V2ThreadReadResponse__McpToolCallResult = Schema.Struct({ | 9126 | export const V2ThreadReadResponse__HookPromptFragment = Schema.Struct({ |
| 7764 | _meta: Schema.optionalKey(Schema.Unknown), | 9127 | hookRunId: Schema.String, |
| 7765 | content: Schema.Array(Schema.Unknown), | 9128 | text: Schema.String, |
| 7766 | structuredContent: Schema.optionalKey(Schema.Unknown), | 9129 | }).annotate({ identifier: "V2ThreadReadResponse__HookPromptFragment" }); |
| 7767 | }); | | |
| 7768 | | | |
| 7769 | export type V2ThreadReadResponse__McpToolCallStatus = "inProgress" | "completed" | "failed"; | | |
| 7770 | export const V2ThreadReadResponse__McpToolCallStatus = Schema.Literals([ | | |
| 7771 | "inProgress", | | |
| 7772 | "completed", | | |
| 7773 | "failed", | | |
| 7774 | ]); | | |
| 7775 | | 9130 | |
| 7776 | export type V2ThreadReadResponse__MemoryCitationEntry = { | 9131 | export type V2ThreadReadResponse__MemoryCitationEntry = { |
| 7777 | readonly lineEnd: number; | 9132 | readonly lineEnd: number; |
| ... | @@ -7781,38 +9136,65 @@ export type V2ThreadReadResponse__MemoryCitationEntry = { | ... | @@ -7781,38 +9136,65 @@ export type V2ThreadReadResponse__MemoryCitationEntry = { |
| 7781 | }; | 9136 | }; |
| 7782 | export const V2ThreadReadResponse__MemoryCitationEntry = Schema.Struct({ | 9137 | export const V2ThreadReadResponse__MemoryCitationEntry = Schema.Struct({ |
| 7783 | lineEnd: Schema.Number.annotate({ format: "uint32" }) | 9138 | lineEnd: Schema.Number.annotate({ format: "uint32" }) |
| 7784 | .check(Schema.isInt()) | 9139 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 7785 | .check(Schema.isGreaterThanOrEqualTo(0)), | 9140 | .check( |
| | 9141 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 9142 | ), |
| 7786 | lineStart: Schema.Number.annotate({ format: "uint32" }) | 9143 | lineStart: Schema.Number.annotate({ format: "uint32" }) |
| 7787 | .check(Schema.isInt()) | 9144 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 7788 | .check(Schema.isGreaterThanOrEqualTo(0)), | 9145 | .check( |
| | 9146 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 9147 | ), |
| 7789 | note: Schema.String, | 9148 | note: Schema.String, |
| 7790 | path: Schema.String, | 9149 | path: Schema.String, |
| 7791 | }); | 9150 | }).annotate({ identifier: "V2ThreadReadResponse__MemoryCitationEntry" }); |
| 7792 | | 9151 | |
| 7793 | export type V2ThreadReadResponse__MessagePhase = "commentary" | "final_answer"; | 9152 | export type V2ThreadReadResponse__MessagePhase = "commentary" | "final_answer"; |
| 7794 | export const V2ThreadReadResponse__MessagePhase = Schema.Literals([ | 9153 | export const V2ThreadReadResponse__MessagePhase = Schema.Union( |
| 7795 | "commentary", | 9154 | [ |
| 7796 | "final_answer", | 9155 | Schema.Literal("commentary").annotate({ |
| 7797 | ]).annotate({ | 9156 | description: |
| | 9157 | "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.", |
| | 9158 | }), |
| | 9159 | Schema.Literal("final_answer").annotate({ |
| | 9160 | description: "The assistant's terminal answer text for the current turn.", |
| | 9161 | }), |
| | 9162 | ], |
| | 9163 | { mode: "oneOf" }, |
| | 9164 | ).annotate({ |
| 7798 | description: | 9165 | description: |
| 7799 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', | 9166 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', |
| | 9167 | identifier: "V2ThreadReadResponse__MessagePhase", |
| 7800 | }); | 9168 | }); |
| 7801 | | 9169 | |
| 7802 | export type V2ThreadReadResponse__NonSteerableTurnKind = "review" | "compact"; | 9170 | export type V2ThreadReadResponse__LegacyAppPathString = string; |
| 7803 | export const V2ThreadReadResponse__NonSteerableTurnKind = Schema.Literals(["review", "compact"]); | 9171 | export const V2ThreadReadResponse__LegacyAppPathString = Schema.String.annotate({ |
| | 9172 | identifier: "V2ThreadReadResponse__LegacyAppPathString", |
| | 9173 | }); |
| 7804 | | 9174 | |
| 7805 | export type V2ThreadReadResponse__PatchApplyStatus = | 9175 | export type V2ThreadReadResponse__CommandExecutionSource = |
| | 9176 | | "agent" |
| | 9177 | | "userShell" |
| | 9178 | | "unifiedExecStartup" |
| | 9179 | | "unifiedExecInteraction"; |
| | 9180 | export const V2ThreadReadResponse__CommandExecutionSource = Schema.Literals([ |
| | 9181 | "agent", |
| | 9182 | "userShell", |
| | 9183 | "unifiedExecStartup", |
| | 9184 | "unifiedExecInteraction", |
| | 9185 | ]).annotate({ identifier: "V2ThreadReadResponse__CommandExecutionSource" }); |
| | 9186 | |
| | 9187 | export type V2ThreadReadResponse__CommandExecutionStatus = |
| 7806 | | "inProgress" | 9188 | | "inProgress" |
| 7807 | | "completed" | 9189 | | "completed" |
| 7808 | | "failed" | 9190 | | "failed" |
| 7809 | | "declined"; | 9191 | | "declined"; |
| 7810 | export const V2ThreadReadResponse__PatchApplyStatus = Schema.Literals([ | 9192 | export const V2ThreadReadResponse__CommandExecutionStatus = Schema.Literals([ |
| 7811 | "inProgress", | 9193 | "inProgress", |
| 7812 | "completed", | 9194 | "completed", |
| 7813 | "failed", | 9195 | "failed", |
| 7814 | "declined", | 9196 | "declined", |
| 7815 | ]); | 9197 | ]).annotate({ identifier: "V2ThreadReadResponse__CommandExecutionStatus" }); |
| 7816 | | 9198 | |
| 7817 | export type V2ThreadReadResponse__PatchChangeKind = | 9199 | export type V2ThreadReadResponse__PatchChangeKind = |
| 7818 | | { readonly type: "add" } | 9200 | | { readonly type: "add" } |
| ... | @@ -7832,12 +9214,154 @@ export const V2ThreadReadResponse__PatchChangeKind = Schema.Union( | ... | @@ -7832,12 +9214,154 @@ export const V2ThreadReadResponse__PatchChangeKind = Schema.Union( |
| 7832 | }).annotate({ title: "UpdatePatchChangeKind" }), | 9214 | }).annotate({ title: "UpdatePatchChangeKind" }), |
| 7833 | ], | 9215 | ], |
| 7834 | { mode: "oneOf" }, | 9216 | { mode: "oneOf" }, |
| 7835 | ); | 9217 | ).annotate({ identifier: "V2ThreadReadResponse__PatchChangeKind" }); |
| | 9218 | |
| | 9219 | export type V2ThreadReadResponse__PatchApplyStatus = |
| | 9220 | | "inProgress" |
| | 9221 | | "completed" |
| | 9222 | | "failed" |
| | 9223 | | "declined"; |
| | 9224 | export const V2ThreadReadResponse__PatchApplyStatus = Schema.Literals([ |
| | 9225 | "inProgress", |
| | 9226 | "completed", |
| | 9227 | "failed", |
| | 9228 | "declined", |
| | 9229 | ]).annotate({ identifier: "V2ThreadReadResponse__PatchApplyStatus" }); |
| | 9230 | |
| | 9231 | export type V2ThreadReadResponse__McpToolCallAppContext = { |
| | 9232 | readonly actionName?: string | null; |
| | 9233 | readonly appName?: string | null; |
| | 9234 | readonly connectorId: string; |
| | 9235 | readonly linkId?: string | null; |
| | 9236 | readonly resourceUri?: string | null; |
| | 9237 | }; |
| | 9238 | export const V2ThreadReadResponse__McpToolCallAppContext = Schema.Struct({ |
| | 9239 | actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 9240 | appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 9241 | connectorId: Schema.String, |
| | 9242 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 9243 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 9244 | }).annotate({ identifier: "V2ThreadReadResponse__McpToolCallAppContext" }); |
| | 9245 | |
| | 9246 | export type V2ThreadReadResponse__McpToolCallError = { readonly message: string }; |
| | 9247 | export const V2ThreadReadResponse__McpToolCallError = Schema.Struct({ |
| | 9248 | message: Schema.String, |
| | 9249 | }).annotate({ identifier: "V2ThreadReadResponse__McpToolCallError" }); |
| | 9250 | |
| | 9251 | export type V2ThreadReadResponse__McpToolCallResult = { |
| | 9252 | readonly _meta?: Schema.Json; |
| | 9253 | readonly content: ReadonlyArray<Schema.Json>; |
| | 9254 | readonly structuredContent?: Schema.Json; |
| | 9255 | }; |
| | 9256 | export const V2ThreadReadResponse__McpToolCallResult = Schema.Struct({ |
| | 9257 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 9258 | content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), |
| | 9259 | structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 9260 | }).annotate({ identifier: "V2ThreadReadResponse__McpToolCallResult" }); |
| | 9261 | |
| | 9262 | export type V2ThreadReadResponse__McpToolCallStatus = "inProgress" | "completed" | "failed"; |
| | 9263 | export const V2ThreadReadResponse__McpToolCallStatus = Schema.Literals([ |
| | 9264 | "inProgress", |
| | 9265 | "completed", |
| | 9266 | "failed", |
| | 9267 | ]).annotate({ identifier: "V2ThreadReadResponse__McpToolCallStatus" }); |
| | 9268 | |
| | 9269 | export type V2ThreadReadResponse__DynamicToolCallOutputContentItem = |
| | 9270 | | { readonly text: string; readonly type: "inputText" } |
| | 9271 | | { readonly imageUrl: string; readonly type: "inputImage" } |
| | 9272 | | { readonly audioUrl: string; readonly type: "inputAudio" }; |
| | 9273 | export const V2ThreadReadResponse__DynamicToolCallOutputContentItem = Schema.Union( |
| | 9274 | [ |
| | 9275 | Schema.Struct({ |
| | 9276 | text: Schema.String, |
| | 9277 | type: Schema.Literal("inputText").annotate({ |
| | 9278 | title: "InputTextDynamicToolCallOutputContentItemType", |
| | 9279 | }), |
| | 9280 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), |
| | 9281 | Schema.Struct({ |
| | 9282 | imageUrl: Schema.String, |
| | 9283 | type: Schema.Literal("inputImage").annotate({ |
| | 9284 | title: "InputImageDynamicToolCallOutputContentItemType", |
| | 9285 | }), |
| | 9286 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), |
| | 9287 | Schema.Struct({ |
| | 9288 | audioUrl: Schema.String, |
| | 9289 | type: Schema.Literal("inputAudio").annotate({ |
| | 9290 | title: "InputAudioDynamicToolCallOutputContentItemType", |
| | 9291 | }), |
| | 9292 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), |
| | 9293 | ], |
| | 9294 | { mode: "oneOf" }, |
| | 9295 | ).annotate({ identifier: "V2ThreadReadResponse__DynamicToolCallOutputContentItem" }); |
| | 9296 | |
| | 9297 | export type V2ThreadReadResponse__DynamicToolCallStatus = "inProgress" | "completed" | "failed"; |
| | 9298 | export const V2ThreadReadResponse__DynamicToolCallStatus = Schema.Literals([ |
| | 9299 | "inProgress", |
| | 9300 | "completed", |
| | 9301 | "failed", |
| | 9302 | ]).annotate({ identifier: "V2ThreadReadResponse__DynamicToolCallStatus" }); |
| | 9303 | |
| | 9304 | export type V2ThreadReadResponse__CollabAgentStatus = |
| | 9305 | | "pendingInit" |
| | 9306 | | "running" |
| | 9307 | | "interrupted" |
| | 9308 | | "completed" |
| | 9309 | | "errored" |
| | 9310 | | "shutdown" |
| | 9311 | | "notFound"; |
| | 9312 | export const V2ThreadReadResponse__CollabAgentStatus = Schema.Literals([ |
| | 9313 | "pendingInit", |
| | 9314 | "running", |
| | 9315 | "interrupted", |
| | 9316 | "completed", |
| | 9317 | "errored", |
| | 9318 | "shutdown", |
| | 9319 | "notFound", |
| | 9320 | ]).annotate({ identifier: "V2ThreadReadResponse__CollabAgentStatus" }); |
| 7836 | | 9321 | |
| 7837 | export type V2ThreadReadResponse__ReasoningEffort = string; | 9322 | export type V2ThreadReadResponse__ReasoningEffort = string; |
| 7838 | export const V2ThreadReadResponse__ReasoningEffort = Schema.String.annotate({ | 9323 | export const V2ThreadReadResponse__ReasoningEffort = Schema.String.annotate({ |
| 7839 | description: "A non-empty reasoning effort value advertised by the model.", | 9324 | description: "A non-empty reasoning effort value advertised by the model.", |
| 7840 | }).check(Schema.isMinLength(1)); | 9325 | }).check( |
| | 9326 | Schema.isMinLength(1).annotate({ |
| | 9327 | expected: "a value with a length of at least 1", |
| | 9328 | identifier: "V2ThreadReadResponse__ReasoningEffort", |
| | 9329 | }), |
| | 9330 | ); |
| | 9331 | |
| | 9332 | export type V2ThreadReadResponse__CollabAgentToolCallStatus = |
| | 9333 | | "inProgress" |
| | 9334 | | "completed" |
| | 9335 | | "failed" |
| | 9336 | | "interrupted"; |
| | 9337 | export const V2ThreadReadResponse__CollabAgentToolCallStatus = Schema.Literals([ |
| | 9338 | "inProgress", |
| | 9339 | "completed", |
| | 9340 | "failed", |
| | 9341 | "interrupted", |
| | 9342 | ]).annotate({ identifier: "V2ThreadReadResponse__CollabAgentToolCallStatus" }); |
| | 9343 | |
| | 9344 | export type V2ThreadReadResponse__CollabAgentTool = |
| | 9345 | | "spawnAgent" |
| | 9346 | | "sendInput" |
| | 9347 | | "resumeAgent" |
| | 9348 | | "wait" |
| | 9349 | | "closeAgent" |
| | 9350 | | "sendMessage" |
| | 9351 | | "followupTask" |
| | 9352 | | "interruptAgent" |
| | 9353 | | "listAgents"; |
| | 9354 | export const V2ThreadReadResponse__CollabAgentTool = Schema.Literals([ |
| | 9355 | "spawnAgent", |
| | 9356 | "sendInput", |
| | 9357 | "resumeAgent", |
| | 9358 | "wait", |
| | 9359 | "closeAgent", |
| | 9360 | "sendMessage", |
| | 9361 | "followupTask", |
| | 9362 | "interruptAgent", |
| | 9363 | "listAgents", |
| | 9364 | ]).annotate({ identifier: "V2ThreadReadResponse__CollabAgentTool" }); |
| 7841 | | 9365 | |
| 7842 | export type V2ThreadReadResponse__SubAgentActivityKind = | 9366 | export type V2ThreadReadResponse__SubAgentActivityKind = |
| 7843 | | "started" | 9367 | | "started" |
| ... | @@ -7849,56 +9373,7 @@ export const V2ThreadReadResponse__SubAgentActivityKind = Schema.Literals([ | ... | @@ -7849,56 +9373,7 @@ export const V2ThreadReadResponse__SubAgentActivityKind = Schema.Literals([ |
| 7849 | "interacted", | 9373 | "interacted", |
| 7850 | "interrupted", | 9374 | "interrupted", |
| 7851 | "completed", | 9375 | "completed", |
| 7852 | ]); | 9376 | ]).annotate({ identifier: "V2ThreadReadResponse__SubAgentActivityKind" }); |
| 7853 | | | |
| 7854 | export type V2ThreadReadResponse__TextElement = { | | |
| 7855 | readonly byteRange: { readonly end: number; readonly start: number }; | | |
| 7856 | readonly placeholder?: string | null; | | |
| 7857 | }; | | |
| 7858 | export const V2ThreadReadResponse__TextElement = Schema.Struct({ | | |
| 7859 | byteRange: Schema.Struct({ | | |
| 7860 | end: Schema.Number.annotate({ format: "uint" }) | | |
| 7861 | .check(Schema.isInt()) | | |
| 7862 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 7863 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 7864 | .check(Schema.isInt()) | | |
| 7865 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 7866 | }).annotate({ | | |
| 7867 | description: "Byte range in the parent `text` buffer that this element occupies.", | | |
| 7868 | }), | | |
| 7869 | placeholder: Schema.optionalKey( | | |
| 7870 | Schema.Union([ | | |
| 7871 | Schema.String.annotate({ | | |
| 7872 | description: "Optional human-readable placeholder for the element, displayed in the UI.", | | |
| 7873 | }), | | |
| 7874 | Schema.Null, | | |
| 7875 | ]), | | |
| 7876 | ), | | |
| 7877 | }); | | |
| 7878 | | | |
| 7879 | export type V2ThreadReadResponse__ThreadActiveFlag = "waitingOnApproval" | "waitingOnUserInput"; | | |
| 7880 | export const V2ThreadReadResponse__ThreadActiveFlag = Schema.Literals([ | | |
| 7881 | "waitingOnApproval", | | |
| 7882 | "waitingOnUserInput", | | |
| 7883 | ]); | | |
| 7884 | | | |
| 7885 | export type V2ThreadReadResponse__ThreadId = string; | | |
| 7886 | export const V2ThreadReadResponse__ThreadId = Schema.String; | | |
| 7887 | | | |
| 7888 | export type V2ThreadReadResponse__ThreadSource = string; | | |
| 7889 | export const V2ThreadReadResponse__ThreadSource = Schema.String; | | |
| 7890 | | | |
| 7891 | export type V2ThreadReadResponse__TurnStatus = | | |
| 7892 | | "completed" | | |
| 7893 | | "interrupted" | | |
| 7894 | | "failed" | | |
| 7895 | | "inProgress"; | | |
| 7896 | export const V2ThreadReadResponse__TurnStatus = Schema.Literals([ | | |
| 7897 | "completed", | | |
| 7898 | "interrupted", | | |
| 7899 | "failed", | | |
| 7900 | "inProgress", | | |
| 7901 | ]); | | |
| 7902 | | 9377 | |
| 7903 | export type V2ThreadReadResponse__WebSearchAction = | 9378 | export type V2ThreadReadResponse__WebSearchAction = |
| 7904 | | { | 9379 | | { |
| ... | @@ -7930,7 +9405,36 @@ export const V2ThreadReadResponse__WebSearchAction = Schema.Union( | ... | @@ -7930,7 +9405,36 @@ export const V2ThreadReadResponse__WebSearchAction = Schema.Union( |
| 7930 | }).annotate({ title: "OtherWebSearchAction" }), | 9405 | }).annotate({ title: "OtherWebSearchAction" }), |
| 7931 | ], | 9406 | ], |
| 7932 | { mode: "oneOf" }, | 9407 | { mode: "oneOf" }, |
| 7933 | ); | 9408 | ).annotate({ identifier: "V2ThreadReadResponse__WebSearchAction" }); |
| | 9409 | |
| | 9410 | export type V2ThreadReadResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| | 9411 | export const V2ThreadReadResponse__TurnItemsView = Schema.Union( |
| | 9412 | [ |
| | 9413 | Schema.Literal("notLoaded").annotate({ |
| | 9414 | description: "`items` was not loaded for this turn. The field is intentionally empty.", |
| | 9415 | }), |
| | 9416 | Schema.Literal("summary").annotate({ |
| | 9417 | description: "`items` contains only a display summary for this turn.", |
| | 9418 | }), |
| | 9419 | Schema.Literal("full").annotate({ |
| | 9420 | description: |
| | 9421 | "`items` contains every ThreadItem available from persisted app-server history for this turn.", |
| | 9422 | }), |
| | 9423 | ], |
| | 9424 | { mode: "oneOf" }, |
| | 9425 | ).annotate({ identifier: "V2ThreadReadResponse__TurnItemsView" }); |
| | 9426 | |
| | 9427 | export type V2ThreadReadResponse__TurnStatus = |
| | 9428 | | "completed" |
| | 9429 | | "interrupted" |
| | 9430 | | "failed" |
| | 9431 | | "inProgress"; |
| | 9432 | export const V2ThreadReadResponse__TurnStatus = Schema.Literals([ |
| | 9433 | "completed", |
| | 9434 | "interrupted", |
| | 9435 | "failed", |
| | 9436 | "inProgress", |
| | 9437 | ]).annotate({ identifier: "V2ThreadReadResponse__TurnStatus" }); |
| 7934 | | 9438 | |
| 7935 | export type V2ThreadRealtimeOutputAudioDeltaNotification__ThreadRealtimeAudioChunk = { | 9439 | export type V2ThreadRealtimeOutputAudioDeltaNotification__ThreadRealtimeAudioChunk = { |
| 7936 | readonly data: string; | 9440 | readonly data: string; |
| ... | @@ -7944,59 +9448,43 @@ export const V2ThreadRealtimeOutputAudioDeltaNotification__ThreadRealtimeAudioCh | ... | @@ -7944,59 +9448,43 @@ export const V2ThreadRealtimeOutputAudioDeltaNotification__ThreadRealtimeAudioCh |
| 7944 | data: Schema.String, | 9448 | data: Schema.String, |
| 7945 | itemId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 9449 | itemId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 7946 | numChannels: Schema.Number.annotate({ format: "uint16" }) | 9450 | numChannels: Schema.Number.annotate({ format: "uint16" }) |
| 7947 | .check(Schema.isInt()) | 9451 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 7948 | .check(Schema.isGreaterThanOrEqualTo(0)), | 9452 | .check( |
| | 9453 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 9454 | expected: "a value greater than or equal to 0", |
| | 9455 | }), |
| | 9456 | ), |
| 7949 | sampleRate: Schema.Number.annotate({ format: "uint32" }) | 9457 | sampleRate: Schema.Number.annotate({ format: "uint32" }) |
| 7950 | .check(Schema.isInt()) | 9458 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 7951 | .check(Schema.isGreaterThanOrEqualTo(0)), | 9459 | .check( |
| | 9460 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 9461 | expected: "a value greater than or equal to 0", |
| | 9462 | }), |
| | 9463 | ), |
| 7952 | samplesPerChannel: Schema.optionalKey( | 9464 | samplesPerChannel: Schema.optionalKey( |
| 7953 | Schema.Union([ | 9465 | Schema.Union([ |
| 7954 | Schema.Number.annotate({ format: "uint32" }) | 9466 | Schema.Number.annotate({ format: "uint32" }) |
| 7955 | .check(Schema.isInt()) | 9467 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 7956 | .check(Schema.isGreaterThanOrEqualTo(0)), | 9468 | .check( |
| | 9469 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 9470 | expected: "a value greater than or equal to 0", |
| | 9471 | }), |
| | 9472 | ), |
| 7957 | Schema.Null, | 9473 | Schema.Null, |
| 7958 | ]), | 9474 | ]), |
| 7959 | ), | 9475 | ), |
| 7960 | }, | 9476 | }, |
| 7961 | ).annotate({ description: "EXPERIMENTAL - thread realtime audio chunk." }); | 9477 | ).annotate({ |
| | 9478 | description: "EXPERIMENTAL - thread realtime audio chunk.", |
| | 9479 | identifier: "V2ThreadRealtimeOutputAudioDeltaNotification__ThreadRealtimeAudioChunk", |
| | 9480 | }); |
| 7962 | | 9481 | |
| 7963 | export type V2ThreadRealtimeStartedNotification__RealtimeConversationVersion = "v1" | "v2" | "v3"; | 9482 | export type V2ThreadRealtimeStartedNotification__RealtimeConversationVersion = "v1" | "v2" | "v3"; |
| 7964 | export const V2ThreadRealtimeStartedNotification__RealtimeConversationVersion = Schema.Literals([ | 9483 | export const V2ThreadRealtimeStartedNotification__RealtimeConversationVersion = Schema.Literals([ |
| 7965 | "v1", | 9484 | "v1", |
| 7966 | "v2", | 9485 | "v2", |
| 7967 | "v3", | 9486 | "v3", |
| 7968 | ]); | 9487 | ]).annotate({ identifier: "V2ThreadRealtimeStartedNotification__RealtimeConversationVersion" }); |
| 7969 | | | |
| 7970 | export type V2ThreadResumeParams__AgentMessageInputContent = | | |
| 7971 | | { readonly text: string; readonly type: "input_text" } | | |
| 7972 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; | | |
| 7973 | export const V2ThreadResumeParams__AgentMessageInputContent = Schema.Union( | | |
| 7974 | [ | | |
| 7975 | Schema.Struct({ | | |
| 7976 | text: Schema.String, | | |
| 7977 | type: Schema.Literal("input_text").annotate({ | | |
| 7978 | title: "InputTextAgentMessageInputContentType", | | |
| 7979 | }), | | |
| 7980 | }).annotate({ title: "InputTextAgentMessageInputContent" }), | | |
| 7981 | Schema.Struct({ | | |
| 7982 | encrypted_content: Schema.String, | | |
| 7983 | type: Schema.Literal("encrypted_content").annotate({ | | |
| 7984 | title: "EncryptedContentAgentMessageInputContentType", | | |
| 7985 | }), | | |
| 7986 | }).annotate({ title: "EncryptedContentAgentMessageInputContent" }), | | |
| 7987 | ], | | |
| 7988 | { mode: "oneOf" }, | | |
| 7989 | ); | | |
| 7990 | | | |
| 7991 | export type V2ThreadResumeParams__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent"; | | |
| 7992 | export const V2ThreadResumeParams__ApprovalsReviewer = Schema.Literals([ | | |
| 7993 | "user", | | |
| 7994 | "auto_review", | | |
| 7995 | "guardian_subagent", | | |
| 7996 | ]).annotate({ | | |
| 7997 | description: | | |
| 7998 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", | | |
| 7999 | }); | | |
| 8000 | | 9488 | |
| 8001 | export type V2ThreadResumeParams__AskForApproval = | 9489 | export type V2ThreadResumeParams__AskForApproval = |
| 8002 | | "untrusted" | 9490 | | "untrusted" |
| ... | @@ -8025,7 +9513,35 @@ export const V2ThreadResumeParams__AskForApproval = Schema.Union( | ... | @@ -8025,7 +9513,35 @@ export const V2ThreadResumeParams__AskForApproval = Schema.Union( |
| 8025 | }).annotate({ title: "GranularAskForApproval" }), | 9513 | }).annotate({ title: "GranularAskForApproval" }), |
| 8026 | ], | 9514 | ], |
| 8027 | { mode: "oneOf" }, | 9515 | { mode: "oneOf" }, |
| 8028 | ); | 9516 | ).annotate({ identifier: "V2ThreadResumeParams__AskForApproval" }); |
| | 9517 | |
| | 9518 | export type V2ThreadResumeParams__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent"; |
| | 9519 | export const V2ThreadResumeParams__ApprovalsReviewer = Schema.Literals([ |
| | 9520 | "user", |
| | 9521 | "auto_review", |
| | 9522 | "guardian_subagent", |
| | 9523 | ]).annotate({ |
| | 9524 | description: |
| | 9525 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", |
| | 9526 | identifier: "V2ThreadResumeParams__ApprovalsReviewer", |
| | 9527 | }); |
| | 9528 | |
| | 9529 | export type V2ThreadResumeParams__Personality = "none" | "friendly" | "pragmatic"; |
| | 9530 | export const V2ThreadResumeParams__Personality = Schema.Literals([ |
| | 9531 | "none", |
| | 9532 | "friendly", |
| | 9533 | "pragmatic", |
| | 9534 | ]).annotate({ identifier: "V2ThreadResumeParams__Personality" }); |
| | 9535 | |
| | 9536 | export type V2ThreadResumeParams__SandboxMode = |
| | 9537 | | "read-only" |
| | 9538 | | "workspace-write" |
| | 9539 | | "danger-full-access"; |
| | 9540 | export const V2ThreadResumeParams__SandboxMode = Schema.Literals([ |
| | 9541 | "read-only", |
| | 9542 | "workspace-write", |
| | 9543 | "danger-full-access", |
| | 9544 | ]).annotate({ identifier: "V2ThreadResumeParams__SandboxMode" }); |
| 8029 | | 9545 | |
| 8030 | export type V2ThreadResumeParams__ImageDetail = "auto" | "low" | "high" | "original"; | 9546 | export type V2ThreadResumeParams__ImageDetail = "auto" | "low" | "high" | "original"; |
| 8031 | export const V2ThreadResumeParams__ImageDetail = Schema.Literals([ | 9547 | export const V2ThreadResumeParams__ImageDetail = Schema.Literals([ |
| ... | @@ -8033,7 +9549,7 @@ export const V2ThreadResumeParams__ImageDetail = Schema.Literals([ | ... | @@ -8033,7 +9549,7 @@ export const V2ThreadResumeParams__ImageDetail = Schema.Literals([ |
| 8033 | "low", | 9549 | "low", |
| 8034 | "high", | 9550 | "high", |
| 8035 | "original", | 9551 | "original", |
| 8036 | ]); | 9552 | ]).annotate({ identifier: "V2ThreadResumeParams__ImageDetail" }); |
| 8037 | | 9553 | |
| 8038 | export type V2ThreadResumeParams__InternalChatMessageMetadataPassthrough = { | 9554 | export type V2ThreadResumeParams__InternalChatMessageMetadataPassthrough = { |
| 8039 | readonly turn_id?: string | null; | 9555 | readonly turn_id?: string | null; |
| ... | @@ -8043,57 +9559,47 @@ export const V2ThreadResumeParams__InternalChatMessageMetadataPassthrough = Sche | ... | @@ -8043,57 +9559,47 @@ export const V2ThreadResumeParams__InternalChatMessageMetadataPassthrough = Sche |
| 8043 | }).annotate({ | 9559 | }).annotate({ |
| 8044 | description: | 9560 | description: |
| 8045 | "Internal Responses API passthrough metadata copied into underlying chat messages.\n\nResponses API strongly types this payload. Do not modify it without first getting API approval and making the corresponding Responses API change.", | 9561 | "Internal Responses API passthrough metadata copied into underlying chat messages.\n\nResponses API strongly types this payload. Do not modify it without first getting API approval and making the corresponding Responses API change.", |
| | 9562 | identifier: "V2ThreadResumeParams__InternalChatMessageMetadataPassthrough", |
| 8046 | }); | 9563 | }); |
| 8047 | | 9564 | |
| 8048 | export type V2ThreadResumeParams__LocalShellAction = { | 9565 | export type V2ThreadResumeParams__MessagePhase = "commentary" | "final_answer"; |
| 8049 | readonly command: ReadonlyArray<string>; | 9566 | export const V2ThreadResumeParams__MessagePhase = Schema.Union( |
| 8050 | readonly env?: { readonly [x: string]: string } | null; | | |
| 8051 | readonly timeout_ms?: number | null; | | |
| 8052 | readonly type: "exec"; | | |
| 8053 | readonly user?: string | null; | | |
| 8054 | readonly working_directory?: string | null; | | |
| 8055 | }; | | |
| 8056 | export const V2ThreadResumeParams__LocalShellAction = Schema.Union( | | |
| 8057 | [ | 9567 | [ |
| 8058 | Schema.Struct({ | 9568 | Schema.Literal("commentary").annotate({ |
| 8059 | command: Schema.Array(Schema.String), | 9569 | description: |
| 8060 | env: Schema.optionalKey( | 9570 | "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.", |
| 8061 | Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null]), | 9571 | }), |
| 8062 | ), | 9572 | Schema.Literal("final_answer").annotate({ |
| 8063 | timeout_ms: Schema.optionalKey( | 9573 | description: "The assistant's terminal answer text for the current turn.", |
| 8064 | Schema.Union([ | 9574 | }), |
| 8065 | Schema.Number.annotate({ format: "uint64" }) | | |
| 8066 | .check(Schema.isInt()) | | |
| 8067 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 8068 | Schema.Null, | | |
| 8069 | ]), | | |
| 8070 | ), | | |
| 8071 | type: Schema.Literal("exec").annotate({ title: "ExecLocalShellActionType" }), | | |
| 8072 | user: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 8073 | working_directory: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 8074 | }).annotate({ title: "ExecLocalShellAction" }), | | |
| 8075 | ], | 9575 | ], |
| 8076 | { mode: "oneOf" }, | 9576 | { mode: "oneOf" }, |
| 8077 | ); | 9577 | ).annotate({ |
| 8078 | | | |
| 8079 | export type V2ThreadResumeParams__LocalShellStatus = "completed" | "in_progress" | "incomplete"; | | |
| 8080 | export const V2ThreadResumeParams__LocalShellStatus = Schema.Literals([ | | |
| 8081 | "completed", | | |
| 8082 | "in_progress", | | |
| 8083 | "incomplete", | | |
| 8084 | ]); | | |
| 8085 | | | |
| 8086 | export type V2ThreadResumeParams__MessagePhase = "commentary" | "final_answer"; | | |
| 8087 | export const V2ThreadResumeParams__MessagePhase = Schema.Literals([ | | |
| 8088 | "commentary", | | |
| 8089 | "final_answer", | | |
| 8090 | ]).annotate({ | | |
| 8091 | description: | 9578 | description: |
| 8092 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', | 9579 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', |
| | 9580 | identifier: "V2ThreadResumeParams__MessagePhase", |
| 8093 | }); | 9581 | }); |
| 8094 | | 9582 | |
| 8095 | export type V2ThreadResumeParams__Personality = "none" | "friendly" | "pragmatic"; | 9583 | export type V2ThreadResumeParams__AgentMessageInputContent = |
| 8096 | export const V2ThreadResumeParams__Personality = Schema.Literals(["none", "friendly", "pragmatic"]); | 9584 | | { readonly text: string; readonly type: "input_text" } |
| | 9585 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; |
| | 9586 | export const V2ThreadResumeParams__AgentMessageInputContent = Schema.Union( |
| | 9587 | [ |
| | 9588 | Schema.Struct({ |
| | 9589 | text: Schema.String, |
| | 9590 | type: Schema.Literal("input_text").annotate({ |
| | 9591 | title: "InputTextAgentMessageInputContentType", |
| | 9592 | }), |
| | 9593 | }).annotate({ title: "InputTextAgentMessageInputContent" }), |
| | 9594 | Schema.Struct({ |
| | 9595 | encrypted_content: Schema.String, |
| | 9596 | type: Schema.Literal("encrypted_content").annotate({ |
| | 9597 | title: "EncryptedContentAgentMessageInputContentType", |
| | 9598 | }), |
| | 9599 | }).annotate({ title: "EncryptedContentAgentMessageInputContent" }), |
| | 9600 | ], |
| | 9601 | { mode: "oneOf" }, |
| | 9602 | ).annotate({ identifier: "V2ThreadResumeParams__AgentMessageInputContent" }); |
| 8097 | | 9603 | |
| 8098 | export type V2ThreadResumeParams__ReasoningItemContent = | 9604 | export type V2ThreadResumeParams__ReasoningItemContent = |
| 8099 | | { readonly text: string; readonly type: "reasoning_text" } | 9605 | | { readonly text: string; readonly type: "reasoning_text" } |
| ... | @@ -8112,7 +9618,7 @@ export const V2ThreadResumeParams__ReasoningItemContent = Schema.Union( | ... | @@ -8112,7 +9618,7 @@ export const V2ThreadResumeParams__ReasoningItemContent = Schema.Union( |
| 8112 | }).annotate({ title: "TextReasoningItemContent" }), | 9618 | }).annotate({ title: "TextReasoningItemContent" }), |
| 8113 | ], | 9619 | ], |
| 8114 | { mode: "oneOf" }, | 9620 | { mode: "oneOf" }, |
| 8115 | ); | 9621 | ).annotate({ identifier: "V2ThreadResumeParams__ReasoningItemContent" }); |
| 8116 | | 9622 | |
| 8117 | export type V2ThreadResumeParams__ReasoningItemReasoningSummary = { | 9623 | export type V2ThreadResumeParams__ReasoningItemReasoningSummary = { |
| 8118 | readonly text: string; | 9624 | readonly text: string; |
| ... | @@ -8128,7 +9634,49 @@ export const V2ThreadResumeParams__ReasoningItemReasoningSummary = Schema.Union( | ... | @@ -8128,7 +9634,49 @@ export const V2ThreadResumeParams__ReasoningItemReasoningSummary = Schema.Union( |
| 8128 | }).annotate({ title: "SummaryTextReasoningItemReasoningSummary" }), | 9634 | }).annotate({ title: "SummaryTextReasoningItemReasoningSummary" }), |
| 8129 | ], | 9635 | ], |
| 8130 | { mode: "oneOf" }, | 9636 | { mode: "oneOf" }, |
| 8131 | ); | 9637 | ).annotate({ identifier: "V2ThreadResumeParams__ReasoningItemReasoningSummary" }); |
| | 9638 | |
| | 9639 | export type V2ThreadResumeParams__LocalShellAction = { |
| | 9640 | readonly command: ReadonlyArray<string>; |
| | 9641 | readonly env?: { readonly [x: string]: string } | null; |
| | 9642 | readonly timeout_ms?: number | null; |
| | 9643 | readonly type: "exec"; |
| | 9644 | readonly user?: string | null; |
| | 9645 | readonly working_directory?: string | null; |
| | 9646 | }; |
| | 9647 | export const V2ThreadResumeParams__LocalShellAction = Schema.Union( |
| | 9648 | [ |
| | 9649 | Schema.Struct({ |
| | 9650 | command: Schema.Array(Schema.String), |
| | 9651 | env: Schema.optionalKey( |
| | 9652 | Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null]), |
| | 9653 | ), |
| | 9654 | timeout_ms: Schema.optionalKey( |
| | 9655 | Schema.Union([ |
| | 9656 | Schema.Number.annotate({ format: "uint64" }) |
| | 9657 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 9658 | .check( |
| | 9659 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 9660 | expected: "a value greater than or equal to 0", |
| | 9661 | }), |
| | 9662 | ), |
| | 9663 | Schema.Null, |
| | 9664 | ]), |
| | 9665 | ), |
| | 9666 | type: Schema.Literal("exec").annotate({ title: "ExecLocalShellActionType" }), |
| | 9667 | user: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 9668 | working_directory: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 9669 | }).annotate({ title: "ExecLocalShellAction" }), |
| | 9670 | ], |
| | 9671 | { mode: "oneOf" }, |
| | 9672 | ).annotate({ identifier: "V2ThreadResumeParams__LocalShellAction" }); |
| | 9673 | |
| | 9674 | export type V2ThreadResumeParams__LocalShellStatus = "completed" | "in_progress" | "incomplete"; |
| | 9675 | export const V2ThreadResumeParams__LocalShellStatus = Schema.Literals([ |
| | 9676 | "completed", |
| | 9677 | "in_progress", |
| | 9678 | "incomplete", |
| | 9679 | ]).annotate({ identifier: "V2ThreadResumeParams__LocalShellStatus" }); |
| 8132 | | 9680 | |
| 8133 | export type V2ThreadResumeParams__ResponsesApiWebSearchAction = | 9681 | export type V2ThreadResumeParams__ResponsesApiWebSearchAction = |
| 8134 | | { | 9682 | | { |
| ... | @@ -8168,37 +9716,30 @@ export const V2ThreadResumeParams__ResponsesApiWebSearchAction = Schema.Union( | ... | @@ -8168,37 +9716,30 @@ export const V2ThreadResumeParams__ResponsesApiWebSearchAction = Schema.Union( |
| 8168 | }).annotate({ title: "OtherResponsesApiWebSearchAction" }), | 9716 | }).annotate({ title: "OtherResponsesApiWebSearchAction" }), |
| 8169 | ], | 9717 | ], |
| 8170 | { mode: "oneOf" }, | 9718 | { mode: "oneOf" }, |
| 8171 | ); | 9719 | ).annotate({ identifier: "V2ThreadResumeParams__ResponsesApiWebSearchAction" }); |
| 8172 | | | |
| 8173 | export type V2ThreadResumeParams__SandboxMode = | | |
| 8174 | | "read-only" | | |
| 8175 | | "workspace-write" | | |
| 8176 | | "danger-full-access"; | | |
| 8177 | export const V2ThreadResumeParams__SandboxMode = Schema.Literals([ | | |
| 8178 | "read-only", | | |
| 8179 | "workspace-write", | | |
| 8180 | "danger-full-access", | | |
| 8181 | ]); | | |
| 8182 | | | |
| 8183 | export type V2ThreadResumeParams__SortDirection = "asc" | "desc"; | | |
| 8184 | export const V2ThreadResumeParams__SortDirection = Schema.Literals(["asc", "desc"]); | | |
| 8185 | | 9720 | |
| 8186 | export type V2ThreadResumeParams__TurnItemsView = "notLoaded" | "summary" | "full"; | 9721 | export type V2ThreadResumeParams__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 8187 | export const V2ThreadResumeParams__TurnItemsView = Schema.Literals([ | 9722 | export const V2ThreadResumeParams__TurnItemsView = Schema.Union( |
| 8188 | "notLoaded", | 9723 | [ |
| 8189 | "summary", | 9724 | Schema.Literal("notLoaded").annotate({ |
| 8190 | "full", | 9725 | description: "`items` was not loaded for this turn. The field is intentionally empty.", |
| 8191 | ]); | 9726 | }), |
| | 9727 | Schema.Literal("summary").annotate({ |
| | 9728 | description: "`items` contains only a display summary for this turn.", |
| | 9729 | }), |
| | 9730 | Schema.Literal("full").annotate({ |
| | 9731 | description: |
| | 9732 | "`items` contains every ThreadItem available from persisted app-server history for this turn.", |
| | 9733 | }), |
| | 9734 | ], |
| | 9735 | { mode: "oneOf" }, |
| | 9736 | ).annotate({ identifier: "V2ThreadResumeParams__TurnItemsView" }); |
| 8192 | | 9737 | |
| 8193 | export type V2ThreadResumeResponse__AbsolutePathBuf = string; | 9738 | export type V2ThreadResumeParams__SortDirection = "asc" | "desc"; |
| 8194 | export const V2ThreadResumeResponse__AbsolutePathBuf = Schema.String.annotate({ | 9739 | export const V2ThreadResumeParams__SortDirection = Schema.Literals(["asc", "desc"]).annotate({ |
| 8195 | description: | 9740 | identifier: "V2ThreadResumeParams__SortDirection", |
| 8196 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | | |
| 8197 | }); | 9741 | }); |
| 8198 | | 9742 | |
| 8199 | export type V2ThreadResumeResponse__AgentPath = string; | | |
| 8200 | export const V2ThreadResumeResponse__AgentPath = Schema.String; | | |
| 8201 | | | |
| 8202 | export type V2ThreadResumeResponse__AskForApproval = | 9743 | export type V2ThreadResumeResponse__AskForApproval = |
| 8203 | | "untrusted" | 9744 | | "untrusted" |
| 8204 | | "on-request" | 9745 | | "on-request" |
| ... | @@ -8226,72 +9767,49 @@ export const V2ThreadResumeResponse__AskForApproval = Schema.Union( | ... | @@ -8226,72 +9767,49 @@ export const V2ThreadResumeResponse__AskForApproval = Schema.Union( |
| 8226 | }).annotate({ title: "GranularAskForApproval" }), | 9767 | }).annotate({ title: "GranularAskForApproval" }), |
| 8227 | ], | 9768 | ], |
| 8228 | { mode: "oneOf" }, | 9769 | { mode: "oneOf" }, |
| 8229 | ); | 9770 | ).annotate({ identifier: "V2ThreadResumeResponse__AskForApproval" }); |
| 8230 | | 9771 | |
| 8231 | export type V2ThreadResumeResponse__CollabAgentStatus = | 9772 | export type V2ThreadResumeResponse__ApprovalsReviewer = |
| 8232 | | "pendingInit" | 9773 | | "user" |
| 8233 | | "running" | 9774 | | "auto_review" |
| 8234 | | "interrupted" | 9775 | | "guardian_subagent"; |
| 8235 | | "completed" | 9776 | export const V2ThreadResumeResponse__ApprovalsReviewer = Schema.Literals([ |
| 8236 | | "errored" | 9777 | "user", |
| 8237 | | "shutdown" | 9778 | "auto_review", |
| 8238 | | "notFound"; | 9779 | "guardian_subagent", |
| 8239 | export const V2ThreadResumeResponse__CollabAgentStatus = Schema.Literals([ | 9780 | ]).annotate({ |
| 8240 | "pendingInit", | 9781 | description: |
| 8241 | "running", | 9782 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", |
| 8242 | "interrupted", | 9783 | identifier: "V2ThreadResumeResponse__ApprovalsReviewer", |
| 8243 | "completed", | 9784 | }); |
| 8244 | "errored", | | |
| 8245 | "shutdown", | | |
| 8246 | "notFound", | | |
| 8247 | ]); | | |
| 8248 | | 9785 | |
| 8249 | export type V2ThreadResumeResponse__CommandExecutionStatus = | 9786 | export type V2ThreadResumeResponse__AbsolutePathBuf = string; |
| 8250 | | "inProgress" | 9787 | export const V2ThreadResumeResponse__AbsolutePathBuf = Schema.String.annotate({ |
| 8251 | | "completed" | 9788 | description: |
| 8252 | | "failed" | 9789 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| 8253 | | "declined"; | 9790 | identifier: "V2ThreadResumeResponse__AbsolutePathBuf", |
| 8254 | export const V2ThreadResumeResponse__CommandExecutionStatus = Schema.Literals([ | 9791 | }); |
| 8255 | "inProgress", | | |
| 8256 | "completed", | | |
| 8257 | "failed", | | |
| 8258 | "declined", | | |
| 8259 | ]); | | |
| 8260 | | 9792 | |
| 8261 | export type V2ThreadResumeResponse__DynamicToolCallOutputContentItem = | 9793 | export type V2ThreadResumeResponse__LegacyAppPathString = string; |
| 8262 | | { readonly text: string; readonly type: "inputText" } | 9794 | export const V2ThreadResumeResponse__LegacyAppPathString = Schema.String.annotate({ |
| 8263 | | { readonly imageUrl: string; readonly type: "inputImage" } | 9795 | identifier: "V2ThreadResumeResponse__LegacyAppPathString", |
| 8264 | | { readonly audioUrl: string; readonly type: "inputAudio" }; | 9796 | }); |
| 8265 | export const V2ThreadResumeResponse__DynamicToolCallOutputContentItem = Schema.Union( | 9797 | |
| 8266 | [ | 9798 | export type V2ThreadResumeResponse__ReasoningEffort = string; |
| 8267 | Schema.Struct({ | 9799 | export const V2ThreadResumeResponse__ReasoningEffort = Schema.String.annotate({ |
| 8268 | text: Schema.String, | 9800 | description: "A non-empty reasoning effort value advertised by the model.", |
| 8269 | type: Schema.Literal("inputText").annotate({ | 9801 | }).check( |
| 8270 | title: "InputTextDynamicToolCallOutputContentItemType", | 9802 | Schema.isMinLength(1).annotate({ |
| 8271 | }), | 9803 | expected: "a value with a length of at least 1", |
| 8272 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), | 9804 | identifier: "V2ThreadResumeResponse__ReasoningEffort", |
| 8273 | Schema.Struct({ | 9805 | }), |
| 8274 | imageUrl: Schema.String, | | |
| 8275 | type: Schema.Literal("inputImage").annotate({ | | |
| 8276 | title: "InputImageDynamicToolCallOutputContentItemType", | | |
| 8277 | }), | | |
| 8278 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), | | |
| 8279 | Schema.Struct({ | | |
| 8280 | audioUrl: Schema.String, | | |
| 8281 | type: Schema.Literal("inputAudio").annotate({ | | |
| 8282 | title: "InputAudioDynamicToolCallOutputContentItemType", | | |
| 8283 | }), | | |
| 8284 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), | | |
| 8285 | ], | | |
| 8286 | { mode: "oneOf" }, | | |
| 8287 | ); | 9806 | ); |
| 8288 | | 9807 | |
| 8289 | export type V2ThreadResumeResponse__DynamicToolCallStatus = "inProgress" | "completed" | "failed"; | 9808 | export type V2ThreadResumeResponse__NetworkAccess = "restricted" | "enabled"; |
| 8290 | export const V2ThreadResumeResponse__DynamicToolCallStatus = Schema.Literals([ | 9809 | export const V2ThreadResumeResponse__NetworkAccess = Schema.Literals([ |
| 8291 | "inProgress", | 9810 | "restricted", |
| 8292 | "completed", | 9811 | "enabled", |
| 8293 | "failed", | 9812 | ]).annotate({ identifier: "V2ThreadResumeResponse__NetworkAccess" }); |
| 8294 | ]); | | |
| 8295 | | 9813 | |
| 8296 | export type V2ThreadResumeResponse__GitInfo = { | 9814 | export type V2ThreadResumeResponse__GitInfo = { |
| 8297 | readonly branch?: string | null; | 9815 | readonly branch?: string | null; |
| ... | @@ -8302,63 +9820,65 @@ export const V2ThreadResumeResponse__GitInfo = Schema.Struct({ | ... | @@ -8302,63 +9820,65 @@ export const V2ThreadResumeResponse__GitInfo = Schema.Struct({ |
| 8302 | branch: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 9820 | branch: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 8303 | originUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 9821 | originUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 8304 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 9822 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 9823 | }).annotate({ identifier: "V2ThreadResumeResponse__GitInfo" }); |
| | 9824 | |
| | 9825 | export type V2ThreadResumeResponse__AgentPath = string; |
| | 9826 | export const V2ThreadResumeResponse__AgentPath = Schema.String.annotate({ |
| | 9827 | identifier: "V2ThreadResumeResponse__AgentPath", |
| 8305 | }); | 9828 | }); |
| 8306 | | 9829 | |
| 8307 | export type V2ThreadResumeResponse__HookPromptFragment = { | 9830 | export type V2ThreadResumeResponse__ThreadId = string; |
| 8308 | readonly hookRunId: string; | 9831 | export const V2ThreadResumeResponse__ThreadId = Schema.String.annotate({ |
| 8309 | readonly text: string; | 9832 | identifier: "V2ThreadResumeResponse__ThreadId", |
| 8310 | }; | 9833 | }); |
| 8311 | export const V2ThreadResumeResponse__HookPromptFragment = Schema.Struct({ | 9834 | |
| 8312 | hookRunId: Schema.String, | 9835 | export type V2ThreadResumeResponse__ThreadActiveFlag = "waitingOnApproval" | "waitingOnUserInput"; |
| 8313 | text: Schema.String, | 9836 | export const V2ThreadResumeResponse__ThreadActiveFlag = Schema.Literals([ |
| | 9837 | "waitingOnApproval", |
| | 9838 | "waitingOnUserInput", |
| | 9839 | ]).annotate({ identifier: "V2ThreadResumeResponse__ThreadActiveFlag" }); |
| | 9840 | |
| | 9841 | export type V2ThreadResumeResponse__ThreadSource = string; |
| | 9842 | export const V2ThreadResumeResponse__ThreadSource = Schema.String.annotate({ |
| | 9843 | identifier: "V2ThreadResumeResponse__ThreadSource", |
| 8314 | }); | 9844 | }); |
| 8315 | | 9845 | |
| | 9846 | export type V2ThreadResumeResponse__NonSteerableTurnKind = "review" | "compact"; |
| | 9847 | export const V2ThreadResumeResponse__NonSteerableTurnKind = Schema.Literals([ |
| | 9848 | "review", |
| | 9849 | "compact", |
| | 9850 | ]).annotate({ identifier: "V2ThreadResumeResponse__NonSteerableTurnKind" }); |
| | 9851 | |
| | 9852 | export type V2ThreadResumeResponse__ByteRange = { readonly end: number; readonly start: number }; |
| | 9853 | export const V2ThreadResumeResponse__ByteRange = Schema.Struct({ |
| | 9854 | end: Schema.Number.annotate({ format: "uint" }) |
| | 9855 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 9856 | .check( |
| | 9857 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 9858 | ), |
| | 9859 | start: Schema.Number.annotate({ format: "uint" }) |
| | 9860 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 9861 | .check( |
| | 9862 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 9863 | ), |
| | 9864 | }).annotate({ identifier: "V2ThreadResumeResponse__ByteRange" }); |
| | 9865 | |
| 8316 | export type V2ThreadResumeResponse__ImageDetail = "auto" | "low" | "high" | "original"; | 9866 | export type V2ThreadResumeResponse__ImageDetail = "auto" | "low" | "high" | "original"; |
| 8317 | export const V2ThreadResumeResponse__ImageDetail = Schema.Literals([ | 9867 | export const V2ThreadResumeResponse__ImageDetail = Schema.Literals([ |
| 8318 | "auto", | 9868 | "auto", |
| 8319 | "low", | 9869 | "low", |
| 8320 | "high", | 9870 | "high", |
| 8321 | "original", | 9871 | "original", |
| 8322 | ]); | 9872 | ]).annotate({ identifier: "V2ThreadResumeResponse__ImageDetail" }); |
| 8323 | | | |
| 8324 | export type V2ThreadResumeResponse__LegacyAppPathString = string; | | |
| 8325 | export const V2ThreadResumeResponse__LegacyAppPathString = Schema.String; | | |
| 8326 | | | |
| 8327 | export type V2ThreadResumeResponse__McpToolCallAppContext = { | | |
| 8328 | readonly actionName?: string | null; | | |
| 8329 | readonly appName?: string | null; | | |
| 8330 | readonly connectorId: string; | | |
| 8331 | readonly linkId?: string | null; | | |
| 8332 | readonly resourceUri?: string | null; | | |
| 8333 | }; | | |
| 8334 | export const V2ThreadResumeResponse__McpToolCallAppContext = Schema.Struct({ | | |
| 8335 | actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 8336 | appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 8337 | connectorId: Schema.String, | | |
| 8338 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 8339 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 8340 | }); | | |
| 8341 | | 9873 | |
| 8342 | export type V2ThreadResumeResponse__McpToolCallError = { readonly message: string }; | 9874 | export type V2ThreadResumeResponse__HookPromptFragment = { |
| 8343 | export const V2ThreadResumeResponse__McpToolCallError = Schema.Struct({ message: Schema.String }); | 9875 | readonly hookRunId: string; |
| 8344 | | 9876 | readonly text: string; |
| 8345 | export type V2ThreadResumeResponse__McpToolCallResult = { | | |
| 8346 | readonly _meta?: unknown; | | |
| 8347 | readonly content: ReadonlyArray<unknown>; | | |
| 8348 | readonly structuredContent?: unknown; | | |
| 8349 | }; | 9877 | }; |
| 8350 | export const V2ThreadResumeResponse__McpToolCallResult = Schema.Struct({ | 9878 | export const V2ThreadResumeResponse__HookPromptFragment = Schema.Struct({ |
| 8351 | _meta: Schema.optionalKey(Schema.Unknown), | 9879 | hookRunId: Schema.String, |
| 8352 | content: Schema.Array(Schema.Unknown), | 9880 | text: Schema.String, |
| 8353 | structuredContent: Schema.optionalKey(Schema.Unknown), | 9881 | }).annotate({ identifier: "V2ThreadResumeResponse__HookPromptFragment" }); |
| 8354 | }); | | |
| 8355 | | | |
| 8356 | export type V2ThreadResumeResponse__McpToolCallStatus = "inProgress" | "completed" | "failed"; | | |
| 8357 | export const V2ThreadResumeResponse__McpToolCallStatus = Schema.Literals([ | | |
| 8358 | "inProgress", | | |
| 8359 | "completed", | | |
| 8360 | "failed", | | |
| 8361 | ]); | | |
| 8362 | | 9882 | |
| 8363 | export type V2ThreadResumeResponse__MemoryCitationEntry = { | 9883 | export type V2ThreadResumeResponse__MemoryCitationEntry = { |
| 8364 | readonly lineEnd: number; | 9884 | readonly lineEnd: number; |
| ... | @@ -8368,38 +9888,60 @@ export type V2ThreadResumeResponse__MemoryCitationEntry = { | ... | @@ -8368,38 +9888,60 @@ export type V2ThreadResumeResponse__MemoryCitationEntry = { |
| 8368 | }; | 9888 | }; |
| 8369 | export const V2ThreadResumeResponse__MemoryCitationEntry = Schema.Struct({ | 9889 | export const V2ThreadResumeResponse__MemoryCitationEntry = Schema.Struct({ |
| 8370 | lineEnd: Schema.Number.annotate({ format: "uint32" }) | 9890 | lineEnd: Schema.Number.annotate({ format: "uint32" }) |
| 8371 | .check(Schema.isInt()) | 9891 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 8372 | .check(Schema.isGreaterThanOrEqualTo(0)), | 9892 | .check( |
| | 9893 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 9894 | ), |
| 8373 | lineStart: Schema.Number.annotate({ format: "uint32" }) | 9895 | lineStart: Schema.Number.annotate({ format: "uint32" }) |
| 8374 | .check(Schema.isInt()) | 9896 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 8375 | .check(Schema.isGreaterThanOrEqualTo(0)), | 9897 | .check( |
| | 9898 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 9899 | ), |
| 8376 | note: Schema.String, | 9900 | note: Schema.String, |
| 8377 | path: Schema.String, | 9901 | path: Schema.String, |
| 8378 | }); | 9902 | }).annotate({ identifier: "V2ThreadResumeResponse__MemoryCitationEntry" }); |
| 8379 | | 9903 | |
| 8380 | export type V2ThreadResumeResponse__MessagePhase = "commentary" | "final_answer"; | 9904 | export type V2ThreadResumeResponse__MessagePhase = "commentary" | "final_answer"; |
| 8381 | export const V2ThreadResumeResponse__MessagePhase = Schema.Literals([ | 9905 | export const V2ThreadResumeResponse__MessagePhase = Schema.Union( |
| 8382 | "commentary", | 9906 | [ |
| 8383 | "final_answer", | 9907 | Schema.Literal("commentary").annotate({ |
| 8384 | ]).annotate({ | 9908 | description: |
| | 9909 | "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.", |
| | 9910 | }), |
| | 9911 | Schema.Literal("final_answer").annotate({ |
| | 9912 | description: "The assistant's terminal answer text for the current turn.", |
| | 9913 | }), |
| | 9914 | ], |
| | 9915 | { mode: "oneOf" }, |
| | 9916 | ).annotate({ |
| 8385 | description: | 9917 | description: |
| 8386 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', | 9918 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', |
| | 9919 | identifier: "V2ThreadResumeResponse__MessagePhase", |
| 8387 | }); | 9920 | }); |
| 8388 | | 9921 | |
| 8389 | export type V2ThreadResumeResponse__NonSteerableTurnKind = "review" | "compact"; | 9922 | export type V2ThreadResumeResponse__CommandExecutionSource = |
| 8390 | export const V2ThreadResumeResponse__NonSteerableTurnKind = Schema.Literals(["review", "compact"]); | 9923 | | "agent" |
| | 9924 | | "userShell" |
| | 9925 | | "unifiedExecStartup" |
| | 9926 | | "unifiedExecInteraction"; |
| | 9927 | export const V2ThreadResumeResponse__CommandExecutionSource = Schema.Literals([ |
| | 9928 | "agent", |
| | 9929 | "userShell", |
| | 9930 | "unifiedExecStartup", |
| | 9931 | "unifiedExecInteraction", |
| | 9932 | ]).annotate({ identifier: "V2ThreadResumeResponse__CommandExecutionSource" }); |
| 8391 | | 9933 | |
| 8392 | export type V2ThreadResumeResponse__PatchApplyStatus = | 9934 | export type V2ThreadResumeResponse__CommandExecutionStatus = |
| 8393 | | "inProgress" | 9935 | | "inProgress" |
| 8394 | | "completed" | 9936 | | "completed" |
| 8395 | | "failed" | 9937 | | "failed" |
| 8396 | | "declined"; | 9938 | | "declined"; |
| 8397 | export const V2ThreadResumeResponse__PatchApplyStatus = Schema.Literals([ | 9939 | export const V2ThreadResumeResponse__CommandExecutionStatus = Schema.Literals([ |
| 8398 | "inProgress", | 9940 | "inProgress", |
| 8399 | "completed", | 9941 | "completed", |
| 8400 | "failed", | 9942 | "failed", |
| 8401 | "declined", | 9943 | "declined", |
| 8402 | ]); | 9944 | ]).annotate({ identifier: "V2ThreadResumeResponse__CommandExecutionStatus" }); |
| 8403 | | 9945 | |
| 8404 | export type V2ThreadResumeResponse__PatchChangeKind = | 9946 | export type V2ThreadResumeResponse__PatchChangeKind = |
| 8405 | | { readonly type: "add" } | 9947 | | { readonly type: "add" } |
| ... | @@ -8419,116 +9961,94 @@ export const V2ThreadResumeResponse__PatchChangeKind = Schema.Union( | ... | @@ -8419,116 +9961,94 @@ export const V2ThreadResumeResponse__PatchChangeKind = Schema.Union( |
| 8419 | }).annotate({ title: "UpdatePatchChangeKind" }), | 9961 | }).annotate({ title: "UpdatePatchChangeKind" }), |
| 8420 | ], | 9962 | ], |
| 8421 | { mode: "oneOf" }, | 9963 | { mode: "oneOf" }, |
| 8422 | ); | 9964 | ).annotate({ identifier: "V2ThreadResumeResponse__PatchChangeKind" }); |
| 8423 | | | |
| 8424 | export type V2ThreadResumeResponse__ReasoningEffort = string; | | |
| 8425 | export const V2ThreadResumeResponse__ReasoningEffort = Schema.String.annotate({ | | |
| 8426 | description: "A non-empty reasoning effort value advertised by the model.", | | |
| 8427 | }).check(Schema.isMinLength(1)); | | |
| 8428 | | 9965 | |
| 8429 | export type V2ThreadResumeResponse__SubAgentActivityKind = | 9966 | export type V2ThreadResumeResponse__PatchApplyStatus = |
| 8430 | | "started" | 9967 | | "inProgress" |
| 8431 | | "interacted" | 9968 | | "completed" |
| 8432 | | "interrupted" | 9969 | | "failed" |
| 8433 | | "completed"; | 9970 | | "declined"; |
| 8434 | export const V2ThreadResumeResponse__SubAgentActivityKind = Schema.Literals([ | 9971 | export const V2ThreadResumeResponse__PatchApplyStatus = Schema.Literals([ |
| 8435 | "started", | 9972 | "inProgress", |
| 8436 | "interacted", | | |
| 8437 | "interrupted", | | |
| 8438 | "completed", | 9973 | "completed", |
| 8439 | ]); | 9974 | "failed", |
| | 9975 | "declined", |
| | 9976 | ]).annotate({ identifier: "V2ThreadResumeResponse__PatchApplyStatus" }); |
| 8440 | | 9977 | |
| 8441 | export type V2ThreadResumeResponse__TextElement = { | 9978 | export type V2ThreadResumeResponse__McpToolCallAppContext = { |
| 8442 | readonly byteRange: { readonly end: number; readonly start: number }; | 9979 | readonly actionName?: string | null; |
| 8443 | readonly placeholder?: string | null; | 9980 | readonly appName?: string | null; |
| | 9981 | readonly connectorId: string; |
| | 9982 | readonly linkId?: string | null; |
| | 9983 | readonly resourceUri?: string | null; |
| 8444 | }; | 9984 | }; |
| 8445 | export const V2ThreadResumeResponse__TextElement = Schema.Struct({ | 9985 | export const V2ThreadResumeResponse__McpToolCallAppContext = Schema.Struct({ |
| 8446 | byteRange: Schema.Struct({ | 9986 | actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 8447 | end: Schema.Number.annotate({ format: "uint" }) | 9987 | appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 8448 | .check(Schema.isInt()) | 9988 | connectorId: Schema.String, |
| 8449 | .check(Schema.isGreaterThanOrEqualTo(0)), | 9989 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 8450 | start: Schema.Number.annotate({ format: "uint" }) | 9990 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 8451 | .check(Schema.isInt()) | 9991 | }).annotate({ identifier: "V2ThreadResumeResponse__McpToolCallAppContext" }); |
| 8452 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 8453 | }).annotate({ | | |
| 8454 | description: "Byte range in the parent `text` buffer that this element occupies.", | | |
| 8455 | }), | | |
| 8456 | placeholder: Schema.optionalKey( | | |
| 8457 | Schema.Union([ | | |
| 8458 | Schema.String.annotate({ | | |
| 8459 | description: "Optional human-readable placeholder for the element, displayed in the UI.", | | |
| 8460 | }), | | |
| 8461 | Schema.Null, | | |
| 8462 | ]), | | |
| 8463 | ), | | |
| 8464 | }); | | |
| 8465 | | | |
| 8466 | export type V2ThreadResumeResponse__ThreadActiveFlag = "waitingOnApproval" | "waitingOnUserInput"; | | |
| 8467 | export const V2ThreadResumeResponse__ThreadActiveFlag = Schema.Literals([ | | |
| 8468 | "waitingOnApproval", | | |
| 8469 | "waitingOnUserInput", | | |
| 8470 | ]); | | |
| 8471 | | 9992 | |
| 8472 | export type V2ThreadResumeResponse__ThreadId = string; | 9993 | export type V2ThreadResumeResponse__McpToolCallError = { readonly message: string }; |
| 8473 | export const V2ThreadResumeResponse__ThreadId = Schema.String; | 9994 | export const V2ThreadResumeResponse__McpToolCallError = Schema.Struct({ |
| | 9995 | message: Schema.String, |
| | 9996 | }).annotate({ identifier: "V2ThreadResumeResponse__McpToolCallError" }); |
| 8474 | | 9997 | |
| 8475 | export type V2ThreadResumeResponse__ThreadSource = string; | 9998 | export type V2ThreadResumeResponse__McpToolCallResult = { |
| 8476 | export const V2ThreadResumeResponse__ThreadSource = Schema.String; | 9999 | readonly _meta?: Schema.Json; |
| | 10000 | readonly content: ReadonlyArray<Schema.Json>; |
| | 10001 | readonly structuredContent?: Schema.Json; |
| | 10002 | }; |
| | 10003 | export const V2ThreadResumeResponse__McpToolCallResult = Schema.Struct({ |
| | 10004 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 10005 | content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), |
| | 10006 | structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 10007 | }).annotate({ identifier: "V2ThreadResumeResponse__McpToolCallResult" }); |
| 8477 | | 10008 | |
| 8478 | export type V2ThreadResumeResponse__TurnStatus = | 10009 | export type V2ThreadResumeResponse__McpToolCallStatus = "inProgress" | "completed" | "failed"; |
| 8479 | | "completed" | 10010 | export const V2ThreadResumeResponse__McpToolCallStatus = Schema.Literals([ |
| 8480 | | "interrupted" | 10011 | "inProgress", |
| 8481 | | "failed" | | |
| 8482 | | "inProgress"; | | |
| 8483 | export const V2ThreadResumeResponse__TurnStatus = Schema.Literals([ | | |
| 8484 | "completed", | 10012 | "completed", |
| 8485 | "interrupted", | | |
| 8486 | "failed", | 10013 | "failed", |
| 8487 | "inProgress", | 10014 | ]).annotate({ identifier: "V2ThreadResumeResponse__McpToolCallStatus" }); |
| 8488 | ]); | | |
| 8489 | | 10015 | |
| 8490 | export type V2ThreadResumeResponse__WebSearchAction = | 10016 | export type V2ThreadResumeResponse__DynamicToolCallOutputContentItem = |
| 8491 | | { | 10017 | | { readonly text: string; readonly type: "inputText" } |
| 8492 | readonly queries?: ReadonlyArray<string> | null; | 10018 | | { readonly imageUrl: string; readonly type: "inputImage" } |
| 8493 | readonly query?: string | null; | 10019 | | { readonly audioUrl: string; readonly type: "inputAudio" }; |
| 8494 | readonly type: "search"; | 10020 | export const V2ThreadResumeResponse__DynamicToolCallOutputContentItem = Schema.Union( |
| 8495 | } | | |
| 8496 | | { readonly type: "openPage"; readonly url?: string | null } | | |
| 8497 | | { readonly pattern?: string | null; readonly type: "findInPage"; readonly url?: string | null } | | |
| 8498 | | { readonly type: "other" }; | | |
| 8499 | export const V2ThreadResumeResponse__WebSearchAction = Schema.Union( | | |
| 8500 | [ | 10021 | [ |
| 8501 | Schema.Struct({ | 10022 | Schema.Struct({ |
| 8502 | queries: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | 10023 | text: Schema.String, |
| 8503 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 10024 | type: Schema.Literal("inputText").annotate({ |
| 8504 | type: Schema.Literal("search").annotate({ title: "SearchWebSearchActionType" }), | 10025 | title: "InputTextDynamicToolCallOutputContentItemType", |
| 8505 | }).annotate({ title: "SearchWebSearchAction" }), | 10026 | }), |
| 8506 | Schema.Struct({ | 10027 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), |
| 8507 | type: Schema.Literal("openPage").annotate({ title: "OpenPageWebSearchActionType" }), | | |
| 8508 | url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 8509 | }).annotate({ title: "OpenPageWebSearchAction" }), | | |
| 8510 | Schema.Struct({ | 10028 | Schema.Struct({ |
| 8511 | pattern: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 10029 | imageUrl: Schema.String, |
| 8512 | type: Schema.Literal("findInPage").annotate({ title: "FindInPageWebSearchActionType" }), | 10030 | type: Schema.Literal("inputImage").annotate({ |
| 8513 | url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 10031 | title: "InputImageDynamicToolCallOutputContentItemType", |
| 8514 | }).annotate({ title: "FindInPageWebSearchAction" }), | 10032 | }), |
| | 10033 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), |
| 8515 | Schema.Struct({ | 10034 | Schema.Struct({ |
| 8516 | type: Schema.Literal("other").annotate({ title: "OtherWebSearchActionType" }), | 10035 | audioUrl: Schema.String, |
| 8517 | }).annotate({ title: "OtherWebSearchAction" }), | 10036 | type: Schema.Literal("inputAudio").annotate({ |
| | 10037 | title: "InputAudioDynamicToolCallOutputContentItemType", |
| | 10038 | }), |
| | 10039 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), |
| 8518 | ], | 10040 | ], |
| 8519 | { mode: "oneOf" }, | 10041 | { mode: "oneOf" }, |
| 8520 | ); | 10042 | ).annotate({ identifier: "V2ThreadResumeResponse__DynamicToolCallOutputContentItem" }); |
| 8521 | | | |
| 8522 | export type V2ThreadRollbackResponse__AbsolutePathBuf = string; | | |
| 8523 | export const V2ThreadRollbackResponse__AbsolutePathBuf = Schema.String.annotate({ | | |
| 8524 | description: | | |
| 8525 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | | |
| 8526 | }); | | |
| 8527 | | 10043 | |
| 8528 | export type V2ThreadRollbackResponse__AgentPath = string; | 10044 | export type V2ThreadResumeResponse__DynamicToolCallStatus = "inProgress" | "completed" | "failed"; |
| 8529 | export const V2ThreadRollbackResponse__AgentPath = Schema.String; | 10045 | export const V2ThreadResumeResponse__DynamicToolCallStatus = Schema.Literals([ |
| | 10046 | "inProgress", |
| | 10047 | "completed", |
| | 10048 | "failed", |
| | 10049 | ]).annotate({ identifier: "V2ThreadResumeResponse__DynamicToolCallStatus" }); |
| 8530 | | 10050 | |
| 8531 | export type V2ThreadRollbackResponse__CollabAgentStatus = | 10051 | export type V2ThreadResumeResponse__CollabAgentStatus = |
| 8532 | | "pendingInit" | 10052 | | "pendingInit" |
| 8533 | | "running" | 10053 | | "running" |
| 8534 | | "interrupted" | 10054 | | "interrupted" |
| ... | @@ -8536,7 +10056,7 @@ export type V2ThreadRollbackResponse__CollabAgentStatus = | ... | @@ -8536,7 +10056,7 @@ export type V2ThreadRollbackResponse__CollabAgentStatus = |
| 8536 | | "errored" | 10056 | | "errored" |
| 8537 | | "shutdown" | 10057 | | "shutdown" |
| 8538 | | "notFound"; | 10058 | | "notFound"; |
| 8539 | export const V2ThreadRollbackResponse__CollabAgentStatus = Schema.Literals([ | 10059 | export const V2ThreadResumeResponse__CollabAgentStatus = Schema.Literals([ |
| 8540 | "pendingInit", | 10060 | "pendingInit", |
| 8541 | "running", | 10061 | "running", |
| 8542 | "interrupted", | 10062 | "interrupted", |
| ... | @@ -8544,54 +10064,121 @@ export const V2ThreadRollbackResponse__CollabAgentStatus = Schema.Literals([ | ... | @@ -8544,54 +10064,121 @@ export const V2ThreadRollbackResponse__CollabAgentStatus = Schema.Literals([ |
| 8544 | "errored", | 10064 | "errored", |
| 8545 | "shutdown", | 10065 | "shutdown", |
| 8546 | "notFound", | 10066 | "notFound", |
| 8547 | ]); | 10067 | ]).annotate({ identifier: "V2ThreadResumeResponse__CollabAgentStatus" }); |
| 8548 | | 10068 | |
| 8549 | export type V2ThreadRollbackResponse__CommandExecutionStatus = | 10069 | export type V2ThreadResumeResponse__CollabAgentToolCallStatus = |
| 8550 | | "inProgress" | 10070 | | "inProgress" |
| 8551 | | "completed" | 10071 | | "completed" |
| 8552 | | "failed" | 10072 | | "failed" |
| 8553 | | "declined"; | 10073 | | "interrupted"; |
| 8554 | export const V2ThreadRollbackResponse__CommandExecutionStatus = Schema.Literals([ | 10074 | export const V2ThreadResumeResponse__CollabAgentToolCallStatus = Schema.Literals([ |
| 8555 | "inProgress", | 10075 | "inProgress", |
| 8556 | "completed", | 10076 | "completed", |
| 8557 | "failed", | 10077 | "failed", |
| 8558 | "declined", | 10078 | "interrupted", |
| 8559 | ]); | 10079 | ]).annotate({ identifier: "V2ThreadResumeResponse__CollabAgentToolCallStatus" }); |
| 8560 | | 10080 | |
| 8561 | export type V2ThreadRollbackResponse__DynamicToolCallOutputContentItem = | 10081 | export type V2ThreadResumeResponse__CollabAgentTool = |
| 8562 | | { readonly text: string; readonly type: "inputText" } | 10082 | | "spawnAgent" |
| 8563 | | { readonly imageUrl: string; readonly type: "inputImage" } | 10083 | | "sendInput" |
| 8564 | | { readonly audioUrl: string; readonly type: "inputAudio" }; | 10084 | | "resumeAgent" |
| 8565 | export const V2ThreadRollbackResponse__DynamicToolCallOutputContentItem = Schema.Union( | 10085 | | "wait" |
| | 10086 | | "closeAgent" |
| | 10087 | | "sendMessage" |
| | 10088 | | "followupTask" |
| | 10089 | | "interruptAgent" |
| | 10090 | | "listAgents"; |
| | 10091 | export const V2ThreadResumeResponse__CollabAgentTool = Schema.Literals([ |
| | 10092 | "spawnAgent", |
| | 10093 | "sendInput", |
| | 10094 | "resumeAgent", |
| | 10095 | "wait", |
| | 10096 | "closeAgent", |
| | 10097 | "sendMessage", |
| | 10098 | "followupTask", |
| | 10099 | "interruptAgent", |
| | 10100 | "listAgents", |
| | 10101 | ]).annotate({ identifier: "V2ThreadResumeResponse__CollabAgentTool" }); |
| | 10102 | |
| | 10103 | export type V2ThreadResumeResponse__SubAgentActivityKind = |
| | 10104 | | "started" |
| | 10105 | | "interacted" |
| | 10106 | | "interrupted" |
| | 10107 | | "completed"; |
| | 10108 | export const V2ThreadResumeResponse__SubAgentActivityKind = Schema.Literals([ |
| | 10109 | "started", |
| | 10110 | "interacted", |
| | 10111 | "interrupted", |
| | 10112 | "completed", |
| | 10113 | ]).annotate({ identifier: "V2ThreadResumeResponse__SubAgentActivityKind" }); |
| | 10114 | |
| | 10115 | export type V2ThreadResumeResponse__WebSearchAction = |
| | 10116 | | { |
| | 10117 | readonly queries?: ReadonlyArray<string> | null; |
| | 10118 | readonly query?: string | null; |
| | 10119 | readonly type: "search"; |
| | 10120 | } |
| | 10121 | | { readonly type: "openPage"; readonly url?: string | null } |
| | 10122 | | { readonly pattern?: string | null; readonly type: "findInPage"; readonly url?: string | null } |
| | 10123 | | { readonly type: "other" }; |
| | 10124 | export const V2ThreadResumeResponse__WebSearchAction = Schema.Union( |
| 8566 | [ | 10125 | [ |
| 8567 | Schema.Struct({ | 10126 | Schema.Struct({ |
| 8568 | text: Schema.String, | 10127 | queries: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| 8569 | type: Schema.Literal("inputText").annotate({ | 10128 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 8570 | title: "InputTextDynamicToolCallOutputContentItemType", | 10129 | type: Schema.Literal("search").annotate({ title: "SearchWebSearchActionType" }), |
| 8571 | }), | 10130 | }).annotate({ title: "SearchWebSearchAction" }), |
| 8572 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), | | |
| 8573 | Schema.Struct({ | 10131 | Schema.Struct({ |
| 8574 | imageUrl: Schema.String, | 10132 | type: Schema.Literal("openPage").annotate({ title: "OpenPageWebSearchActionType" }), |
| 8575 | type: Schema.Literal("inputImage").annotate({ | 10133 | url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 8576 | title: "InputImageDynamicToolCallOutputContentItemType", | 10134 | }).annotate({ title: "OpenPageWebSearchAction" }), |
| 8577 | }), | | |
| 8578 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), | | |
| 8579 | Schema.Struct({ | 10135 | Schema.Struct({ |
| 8580 | audioUrl: Schema.String, | 10136 | pattern: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 8581 | type: Schema.Literal("inputAudio").annotate({ | 10137 | type: Schema.Literal("findInPage").annotate({ title: "FindInPageWebSearchActionType" }), |
| 8582 | title: "InputAudioDynamicToolCallOutputContentItemType", | 10138 | url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 8583 | }), | 10139 | }).annotate({ title: "FindInPageWebSearchAction" }), |
| 8584 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), | 10140 | Schema.Struct({ |
| | 10141 | type: Schema.Literal("other").annotate({ title: "OtherWebSearchActionType" }), |
| | 10142 | }).annotate({ title: "OtherWebSearchAction" }), |
| 8585 | ], | 10143 | ], |
| 8586 | { mode: "oneOf" }, | 10144 | { mode: "oneOf" }, |
| 8587 | ); | 10145 | ).annotate({ identifier: "V2ThreadResumeResponse__WebSearchAction" }); |
| 8588 | | 10146 | |
| 8589 | export type V2ThreadRollbackResponse__DynamicToolCallStatus = "inProgress" | "completed" | "failed"; | 10147 | export type V2ThreadResumeResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 8590 | export const V2ThreadRollbackResponse__DynamicToolCallStatus = Schema.Literals([ | 10148 | export const V2ThreadResumeResponse__TurnItemsView = Schema.Union( |
| 8591 | "inProgress", | 10149 | [ |
| | 10150 | Schema.Literal("notLoaded").annotate({ |
| | 10151 | description: "`items` was not loaded for this turn. The field is intentionally empty.", |
| | 10152 | }), |
| | 10153 | Schema.Literal("summary").annotate({ |
| | 10154 | description: "`items` contains only a display summary for this turn.", |
| | 10155 | }), |
| | 10156 | Schema.Literal("full").annotate({ |
| | 10157 | description: |
| | 10158 | "`items` contains every ThreadItem available from persisted app-server history for this turn.", |
| | 10159 | }), |
| | 10160 | ], |
| | 10161 | { mode: "oneOf" }, |
| | 10162 | ).annotate({ identifier: "V2ThreadResumeResponse__TurnItemsView" }); |
| | 10163 | |
| | 10164 | export type V2ThreadResumeResponse__TurnStatus = |
| | 10165 | | "completed" |
| | 10166 | | "interrupted" |
| | 10167 | | "failed" |
| | 10168 | | "inProgress"; |
| | 10169 | export const V2ThreadResumeResponse__TurnStatus = Schema.Literals([ |
| 8592 | "completed", | 10170 | "completed", |
| | 10171 | "interrupted", |
| 8593 | "failed", | 10172 | "failed", |
| 8594 | ]); | 10173 | "inProgress", |
| | 10174 | ]).annotate({ identifier: "V2ThreadResumeResponse__TurnStatus" }); |
| | 10175 | |
| | 10176 | export type V2ThreadRollbackResponse__AbsolutePathBuf = string; |
| | 10177 | export const V2ThreadRollbackResponse__AbsolutePathBuf = Schema.String.annotate({ |
| | 10178 | description: |
| | 10179 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 10180 | identifier: "V2ThreadRollbackResponse__AbsolutePathBuf", |
| | 10181 | }); |
| 8595 | | 10182 | |
| 8596 | export type V2ThreadRollbackResponse__GitInfo = { | 10183 | export type V2ThreadRollbackResponse__GitInfo = { |
| 8597 | readonly branch?: string | null; | 10184 | readonly branch?: string | null; |
| ... | @@ -8602,63 +10189,65 @@ export const V2ThreadRollbackResponse__GitInfo = Schema.Struct({ | ... | @@ -8602,63 +10189,65 @@ export const V2ThreadRollbackResponse__GitInfo = Schema.Struct({ |
| 8602 | branch: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 10189 | branch: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 8603 | originUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 10190 | originUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 8604 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 10191 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 10192 | }).annotate({ identifier: "V2ThreadRollbackResponse__GitInfo" }); |
| | 10193 | |
| | 10194 | export type V2ThreadRollbackResponse__AgentPath = string; |
| | 10195 | export const V2ThreadRollbackResponse__AgentPath = Schema.String.annotate({ |
| | 10196 | identifier: "V2ThreadRollbackResponse__AgentPath", |
| 8605 | }); | 10197 | }); |
| 8606 | | 10198 | |
| 8607 | export type V2ThreadRollbackResponse__HookPromptFragment = { | 10199 | export type V2ThreadRollbackResponse__ThreadId = string; |
| 8608 | readonly hookRunId: string; | 10200 | export const V2ThreadRollbackResponse__ThreadId = Schema.String.annotate({ |
| 8609 | readonly text: string; | 10201 | identifier: "V2ThreadRollbackResponse__ThreadId", |
| 8610 | }; | 10202 | }); |
| 8611 | export const V2ThreadRollbackResponse__HookPromptFragment = Schema.Struct({ | 10203 | |
| 8612 | hookRunId: Schema.String, | 10204 | export type V2ThreadRollbackResponse__ThreadActiveFlag = "waitingOnApproval" | "waitingOnUserInput"; |
| 8613 | text: Schema.String, | 10205 | export const V2ThreadRollbackResponse__ThreadActiveFlag = Schema.Literals([ |
| | 10206 | "waitingOnApproval", |
| | 10207 | "waitingOnUserInput", |
| | 10208 | ]).annotate({ identifier: "V2ThreadRollbackResponse__ThreadActiveFlag" }); |
| | 10209 | |
| | 10210 | export type V2ThreadRollbackResponse__ThreadSource = string; |
| | 10211 | export const V2ThreadRollbackResponse__ThreadSource = Schema.String.annotate({ |
| | 10212 | identifier: "V2ThreadRollbackResponse__ThreadSource", |
| 8614 | }); | 10213 | }); |
| 8615 | | 10214 | |
| | 10215 | export type V2ThreadRollbackResponse__NonSteerableTurnKind = "review" | "compact"; |
| | 10216 | export const V2ThreadRollbackResponse__NonSteerableTurnKind = Schema.Literals([ |
| | 10217 | "review", |
| | 10218 | "compact", |
| | 10219 | ]).annotate({ identifier: "V2ThreadRollbackResponse__NonSteerableTurnKind" }); |
| | 10220 | |
| | 10221 | export type V2ThreadRollbackResponse__ByteRange = { readonly end: number; readonly start: number }; |
| | 10222 | export const V2ThreadRollbackResponse__ByteRange = Schema.Struct({ |
| | 10223 | end: Schema.Number.annotate({ format: "uint" }) |
| | 10224 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 10225 | .check( |
| | 10226 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 10227 | ), |
| | 10228 | start: Schema.Number.annotate({ format: "uint" }) |
| | 10229 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 10230 | .check( |
| | 10231 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 10232 | ), |
| | 10233 | }).annotate({ identifier: "V2ThreadRollbackResponse__ByteRange" }); |
| | 10234 | |
| 8616 | export type V2ThreadRollbackResponse__ImageDetail = "auto" | "low" | "high" | "original"; | 10235 | export type V2ThreadRollbackResponse__ImageDetail = "auto" | "low" | "high" | "original"; |
| 8617 | export const V2ThreadRollbackResponse__ImageDetail = Schema.Literals([ | 10236 | export const V2ThreadRollbackResponse__ImageDetail = Schema.Literals([ |
| 8618 | "auto", | 10237 | "auto", |
| 8619 | "low", | 10238 | "low", |
| 8620 | "high", | 10239 | "high", |
| 8621 | "original", | 10240 | "original", |
| 8622 | ]); | 10241 | ]).annotate({ identifier: "V2ThreadRollbackResponse__ImageDetail" }); |
| 8623 | | | |
| 8624 | export type V2ThreadRollbackResponse__LegacyAppPathString = string; | | |
| 8625 | export const V2ThreadRollbackResponse__LegacyAppPathString = Schema.String; | | |
| 8626 | | | |
| 8627 | export type V2ThreadRollbackResponse__McpToolCallAppContext = { | | |
| 8628 | readonly actionName?: string | null; | | |
| 8629 | readonly appName?: string | null; | | |
| 8630 | readonly connectorId: string; | | |
| 8631 | readonly linkId?: string | null; | | |
| 8632 | readonly resourceUri?: string | null; | | |
| 8633 | }; | | |
| 8634 | export const V2ThreadRollbackResponse__McpToolCallAppContext = Schema.Struct({ | | |
| 8635 | actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 8636 | appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 8637 | connectorId: Schema.String, | | |
| 8638 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 8639 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 8640 | }); | | |
| 8641 | | | |
| 8642 | export type V2ThreadRollbackResponse__McpToolCallError = { readonly message: string }; | | |
| 8643 | export const V2ThreadRollbackResponse__McpToolCallError = Schema.Struct({ message: Schema.String }); | | |
| 8644 | | 10242 | |
| 8645 | export type V2ThreadRollbackResponse__McpToolCallResult = { | 10243 | export type V2ThreadRollbackResponse__HookPromptFragment = { |
| 8646 | readonly _meta?: unknown; | 10244 | readonly hookRunId: string; |
| 8647 | readonly content: ReadonlyArray<unknown>; | 10245 | readonly text: string; |
| 8648 | readonly structuredContent?: unknown; | | |
| 8649 | }; | 10246 | }; |
| 8650 | export const V2ThreadRollbackResponse__McpToolCallResult = Schema.Struct({ | 10247 | export const V2ThreadRollbackResponse__HookPromptFragment = Schema.Struct({ |
| 8651 | _meta: Schema.optionalKey(Schema.Unknown), | 10248 | hookRunId: Schema.String, |
| 8652 | content: Schema.Array(Schema.Unknown), | 10249 | text: Schema.String, |
| 8653 | structuredContent: Schema.optionalKey(Schema.Unknown), | 10250 | }).annotate({ identifier: "V2ThreadRollbackResponse__HookPromptFragment" }); |
| 8654 | }); | | |
| 8655 | | | |
| 8656 | export type V2ThreadRollbackResponse__McpToolCallStatus = "inProgress" | "completed" | "failed"; | | |
| 8657 | export const V2ThreadRollbackResponse__McpToolCallStatus = Schema.Literals([ | | |
| 8658 | "inProgress", | | |
| 8659 | "completed", | | |
| 8660 | "failed", | | |
| 8661 | ]); | | |
| 8662 | | 10251 | |
| 8663 | export type V2ThreadRollbackResponse__MemoryCitationEntry = { | 10252 | export type V2ThreadRollbackResponse__MemoryCitationEntry = { |
| 8664 | readonly lineEnd: number; | 10253 | readonly lineEnd: number; |
| ... | @@ -8668,41 +10257,65 @@ export type V2ThreadRollbackResponse__MemoryCitationEntry = { | ... | @@ -8668,41 +10257,65 @@ export type V2ThreadRollbackResponse__MemoryCitationEntry = { |
| 8668 | }; | 10257 | }; |
| 8669 | export const V2ThreadRollbackResponse__MemoryCitationEntry = Schema.Struct({ | 10258 | export const V2ThreadRollbackResponse__MemoryCitationEntry = Schema.Struct({ |
| 8670 | lineEnd: Schema.Number.annotate({ format: "uint32" }) | 10259 | lineEnd: Schema.Number.annotate({ format: "uint32" }) |
| 8671 | .check(Schema.isInt()) | 10260 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 8672 | .check(Schema.isGreaterThanOrEqualTo(0)), | 10261 | .check( |
| | 10262 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 10263 | ), |
| 8673 | lineStart: Schema.Number.annotate({ format: "uint32" }) | 10264 | lineStart: Schema.Number.annotate({ format: "uint32" }) |
| 8674 | .check(Schema.isInt()) | 10265 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 8675 | .check(Schema.isGreaterThanOrEqualTo(0)), | 10266 | .check( |
| | 10267 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 10268 | ), |
| 8676 | note: Schema.String, | 10269 | note: Schema.String, |
| 8677 | path: Schema.String, | 10270 | path: Schema.String, |
| 8678 | }); | 10271 | }).annotate({ identifier: "V2ThreadRollbackResponse__MemoryCitationEntry" }); |
| 8679 | | 10272 | |
| 8680 | export type V2ThreadRollbackResponse__MessagePhase = "commentary" | "final_answer"; | 10273 | export type V2ThreadRollbackResponse__MessagePhase = "commentary" | "final_answer"; |
| 8681 | export const V2ThreadRollbackResponse__MessagePhase = Schema.Literals([ | 10274 | export const V2ThreadRollbackResponse__MessagePhase = Schema.Union( |
| 8682 | "commentary", | 10275 | [ |
| 8683 | "final_answer", | 10276 | Schema.Literal("commentary").annotate({ |
| 8684 | ]).annotate({ | 10277 | description: |
| | 10278 | "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.", |
| | 10279 | }), |
| | 10280 | Schema.Literal("final_answer").annotate({ |
| | 10281 | description: "The assistant's terminal answer text for the current turn.", |
| | 10282 | }), |
| | 10283 | ], |
| | 10284 | { mode: "oneOf" }, |
| | 10285 | ).annotate({ |
| 8685 | description: | 10286 | description: |
| 8686 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', | 10287 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', |
| | 10288 | identifier: "V2ThreadRollbackResponse__MessagePhase", |
| 8687 | }); | 10289 | }); |
| 8688 | | 10290 | |
| 8689 | export type V2ThreadRollbackResponse__NonSteerableTurnKind = "review" | "compact"; | 10291 | export type V2ThreadRollbackResponse__LegacyAppPathString = string; |
| 8690 | export const V2ThreadRollbackResponse__NonSteerableTurnKind = Schema.Literals([ | 10292 | export const V2ThreadRollbackResponse__LegacyAppPathString = Schema.String.annotate({ |
| 8691 | "review", | 10293 | identifier: "V2ThreadRollbackResponse__LegacyAppPathString", |
| 8692 | "compact", | 10294 | }); |
| 8693 | ]); | | |
| 8694 | | 10295 | |
| 8695 | export type V2ThreadRollbackResponse__PatchApplyStatus = | 10296 | export type V2ThreadRollbackResponse__CommandExecutionSource = |
| | 10297 | | "agent" |
| | 10298 | | "userShell" |
| | 10299 | | "unifiedExecStartup" |
| | 10300 | | "unifiedExecInteraction"; |
| | 10301 | export const V2ThreadRollbackResponse__CommandExecutionSource = Schema.Literals([ |
| | 10302 | "agent", |
| | 10303 | "userShell", |
| | 10304 | "unifiedExecStartup", |
| | 10305 | "unifiedExecInteraction", |
| | 10306 | ]).annotate({ identifier: "V2ThreadRollbackResponse__CommandExecutionSource" }); |
| | 10307 | |
| | 10308 | export type V2ThreadRollbackResponse__CommandExecutionStatus = |
| 8696 | | "inProgress" | 10309 | | "inProgress" |
| 8697 | | "completed" | 10310 | | "completed" |
| 8698 | | "failed" | 10311 | | "failed" |
| 8699 | | "declined"; | 10312 | | "declined"; |
| 8700 | export const V2ThreadRollbackResponse__PatchApplyStatus = Schema.Literals([ | 10313 | export const V2ThreadRollbackResponse__CommandExecutionStatus = Schema.Literals([ |
| 8701 | "inProgress", | 10314 | "inProgress", |
| 8702 | "completed", | 10315 | "completed", |
| 8703 | "failed", | 10316 | "failed", |
| 8704 | "declined", | 10317 | "declined", |
| 8705 | ]); | 10318 | ]).annotate({ identifier: "V2ThreadRollbackResponse__CommandExecutionStatus" }); |
| 8706 | | 10319 | |
| 8707 | export type V2ThreadRollbackResponse__PatchChangeKind = | 10320 | export type V2ThreadRollbackResponse__PatchChangeKind = |
| 8708 | | { readonly type: "add" } | 10321 | | { readonly type: "add" } |
| ... | @@ -8722,12 +10335,154 @@ export const V2ThreadRollbackResponse__PatchChangeKind = Schema.Union( | ... | @@ -8722,12 +10335,154 @@ export const V2ThreadRollbackResponse__PatchChangeKind = Schema.Union( |
| 8722 | }).annotate({ title: "UpdatePatchChangeKind" }), | 10335 | }).annotate({ title: "UpdatePatchChangeKind" }), |
| 8723 | ], | 10336 | ], |
| 8724 | { mode: "oneOf" }, | 10337 | { mode: "oneOf" }, |
| 8725 | ); | 10338 | ).annotate({ identifier: "V2ThreadRollbackResponse__PatchChangeKind" }); |
| | 10339 | |
| | 10340 | export type V2ThreadRollbackResponse__PatchApplyStatus = |
| | 10341 | | "inProgress" |
| | 10342 | | "completed" |
| | 10343 | | "failed" |
| | 10344 | | "declined"; |
| | 10345 | export const V2ThreadRollbackResponse__PatchApplyStatus = Schema.Literals([ |
| | 10346 | "inProgress", |
| | 10347 | "completed", |
| | 10348 | "failed", |
| | 10349 | "declined", |
| | 10350 | ]).annotate({ identifier: "V2ThreadRollbackResponse__PatchApplyStatus" }); |
| | 10351 | |
| | 10352 | export type V2ThreadRollbackResponse__McpToolCallAppContext = { |
| | 10353 | readonly actionName?: string | null; |
| | 10354 | readonly appName?: string | null; |
| | 10355 | readonly connectorId: string; |
| | 10356 | readonly linkId?: string | null; |
| | 10357 | readonly resourceUri?: string | null; |
| | 10358 | }; |
| | 10359 | export const V2ThreadRollbackResponse__McpToolCallAppContext = Schema.Struct({ |
| | 10360 | actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 10361 | appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 10362 | connectorId: Schema.String, |
| | 10363 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 10364 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 10365 | }).annotate({ identifier: "V2ThreadRollbackResponse__McpToolCallAppContext" }); |
| | 10366 | |
| | 10367 | export type V2ThreadRollbackResponse__McpToolCallError = { readonly message: string }; |
| | 10368 | export const V2ThreadRollbackResponse__McpToolCallError = Schema.Struct({ |
| | 10369 | message: Schema.String, |
| | 10370 | }).annotate({ identifier: "V2ThreadRollbackResponse__McpToolCallError" }); |
| | 10371 | |
| | 10372 | export type V2ThreadRollbackResponse__McpToolCallResult = { |
| | 10373 | readonly _meta?: Schema.Json; |
| | 10374 | readonly content: ReadonlyArray<Schema.Json>; |
| | 10375 | readonly structuredContent?: Schema.Json; |
| | 10376 | }; |
| | 10377 | export const V2ThreadRollbackResponse__McpToolCallResult = Schema.Struct({ |
| | 10378 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 10379 | content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), |
| | 10380 | structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 10381 | }).annotate({ identifier: "V2ThreadRollbackResponse__McpToolCallResult" }); |
| | 10382 | |
| | 10383 | export type V2ThreadRollbackResponse__McpToolCallStatus = "inProgress" | "completed" | "failed"; |
| | 10384 | export const V2ThreadRollbackResponse__McpToolCallStatus = Schema.Literals([ |
| | 10385 | "inProgress", |
| | 10386 | "completed", |
| | 10387 | "failed", |
| | 10388 | ]).annotate({ identifier: "V2ThreadRollbackResponse__McpToolCallStatus" }); |
| | 10389 | |
| | 10390 | export type V2ThreadRollbackResponse__DynamicToolCallOutputContentItem = |
| | 10391 | | { readonly text: string; readonly type: "inputText" } |
| | 10392 | | { readonly imageUrl: string; readonly type: "inputImage" } |
| | 10393 | | { readonly audioUrl: string; readonly type: "inputAudio" }; |
| | 10394 | export const V2ThreadRollbackResponse__DynamicToolCallOutputContentItem = Schema.Union( |
| | 10395 | [ |
| | 10396 | Schema.Struct({ |
| | 10397 | text: Schema.String, |
| | 10398 | type: Schema.Literal("inputText").annotate({ |
| | 10399 | title: "InputTextDynamicToolCallOutputContentItemType", |
| | 10400 | }), |
| | 10401 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), |
| | 10402 | Schema.Struct({ |
| | 10403 | imageUrl: Schema.String, |
| | 10404 | type: Schema.Literal("inputImage").annotate({ |
| | 10405 | title: "InputImageDynamicToolCallOutputContentItemType", |
| | 10406 | }), |
| | 10407 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), |
| | 10408 | Schema.Struct({ |
| | 10409 | audioUrl: Schema.String, |
| | 10410 | type: Schema.Literal("inputAudio").annotate({ |
| | 10411 | title: "InputAudioDynamicToolCallOutputContentItemType", |
| | 10412 | }), |
| | 10413 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), |
| | 10414 | ], |
| | 10415 | { mode: "oneOf" }, |
| | 10416 | ).annotate({ identifier: "V2ThreadRollbackResponse__DynamicToolCallOutputContentItem" }); |
| | 10417 | |
| | 10418 | export type V2ThreadRollbackResponse__DynamicToolCallStatus = "inProgress" | "completed" | "failed"; |
| | 10419 | export const V2ThreadRollbackResponse__DynamicToolCallStatus = Schema.Literals([ |
| | 10420 | "inProgress", |
| | 10421 | "completed", |
| | 10422 | "failed", |
| | 10423 | ]).annotate({ identifier: "V2ThreadRollbackResponse__DynamicToolCallStatus" }); |
| | 10424 | |
| | 10425 | export type V2ThreadRollbackResponse__CollabAgentStatus = |
| | 10426 | | "pendingInit" |
| | 10427 | | "running" |
| | 10428 | | "interrupted" |
| | 10429 | | "completed" |
| | 10430 | | "errored" |
| | 10431 | | "shutdown" |
| | 10432 | | "notFound"; |
| | 10433 | export const V2ThreadRollbackResponse__CollabAgentStatus = Schema.Literals([ |
| | 10434 | "pendingInit", |
| | 10435 | "running", |
| | 10436 | "interrupted", |
| | 10437 | "completed", |
| | 10438 | "errored", |
| | 10439 | "shutdown", |
| | 10440 | "notFound", |
| | 10441 | ]).annotate({ identifier: "V2ThreadRollbackResponse__CollabAgentStatus" }); |
| 8726 | | 10442 | |
| 8727 | export type V2ThreadRollbackResponse__ReasoningEffort = string; | 10443 | export type V2ThreadRollbackResponse__ReasoningEffort = string; |
| 8728 | export const V2ThreadRollbackResponse__ReasoningEffort = Schema.String.annotate({ | 10444 | export const V2ThreadRollbackResponse__ReasoningEffort = Schema.String.annotate({ |
| 8729 | description: "A non-empty reasoning effort value advertised by the model.", | 10445 | description: "A non-empty reasoning effort value advertised by the model.", |
| 8730 | }).check(Schema.isMinLength(1)); | 10446 | }).check( |
| | 10447 | Schema.isMinLength(1).annotate({ |
| | 10448 | expected: "a value with a length of at least 1", |
| | 10449 | identifier: "V2ThreadRollbackResponse__ReasoningEffort", |
| | 10450 | }), |
| | 10451 | ); |
| | 10452 | |
| | 10453 | export type V2ThreadRollbackResponse__CollabAgentToolCallStatus = |
| | 10454 | | "inProgress" |
| | 10455 | | "completed" |
| | 10456 | | "failed" |
| | 10457 | | "interrupted"; |
| | 10458 | export const V2ThreadRollbackResponse__CollabAgentToolCallStatus = Schema.Literals([ |
| | 10459 | "inProgress", |
| | 10460 | "completed", |
| | 10461 | "failed", |
| | 10462 | "interrupted", |
| | 10463 | ]).annotate({ identifier: "V2ThreadRollbackResponse__CollabAgentToolCallStatus" }); |
| | 10464 | |
| | 10465 | export type V2ThreadRollbackResponse__CollabAgentTool = |
| | 10466 | | "spawnAgent" |
| | 10467 | | "sendInput" |
| | 10468 | | "resumeAgent" |
| | 10469 | | "wait" |
| | 10470 | | "closeAgent" |
| | 10471 | | "sendMessage" |
| | 10472 | | "followupTask" |
| | 10473 | | "interruptAgent" |
| | 10474 | | "listAgents"; |
| | 10475 | export const V2ThreadRollbackResponse__CollabAgentTool = Schema.Literals([ |
| | 10476 | "spawnAgent", |
| | 10477 | "sendInput", |
| | 10478 | "resumeAgent", |
| | 10479 | "wait", |
| | 10480 | "closeAgent", |
| | 10481 | "sendMessage", |
| | 10482 | "followupTask", |
| | 10483 | "interruptAgent", |
| | 10484 | "listAgents", |
| | 10485 | ]).annotate({ identifier: "V2ThreadRollbackResponse__CollabAgentTool" }); |
| 8731 | | 10486 | |
| 8732 | export type V2ThreadRollbackResponse__SubAgentActivityKind = | 10487 | export type V2ThreadRollbackResponse__SubAgentActivityKind = |
| 8733 | | "started" | 10488 | | "started" |
| ... | @@ -8739,56 +10494,7 @@ export const V2ThreadRollbackResponse__SubAgentActivityKind = Schema.Literals([ | ... | @@ -8739,56 +10494,7 @@ export const V2ThreadRollbackResponse__SubAgentActivityKind = Schema.Literals([ |
| 8739 | "interacted", | 10494 | "interacted", |
| 8740 | "interrupted", | 10495 | "interrupted", |
| 8741 | "completed", | 10496 | "completed", |
| 8742 | ]); | 10497 | ]).annotate({ identifier: "V2ThreadRollbackResponse__SubAgentActivityKind" }); |
| 8743 | | | |
| 8744 | export type V2ThreadRollbackResponse__TextElement = { | | |
| 8745 | readonly byteRange: { readonly end: number; readonly start: number }; | | |
| 8746 | readonly placeholder?: string | null; | | |
| 8747 | }; | | |
| 8748 | export const V2ThreadRollbackResponse__TextElement = Schema.Struct({ | | |
| 8749 | byteRange: Schema.Struct({ | | |
| 8750 | end: Schema.Number.annotate({ format: "uint" }) | | |
| 8751 | .check(Schema.isInt()) | | |
| 8752 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 8753 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 8754 | .check(Schema.isInt()) | | |
| 8755 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 8756 | }).annotate({ | | |
| 8757 | description: "Byte range in the parent `text` buffer that this element occupies.", | | |
| 8758 | }), | | |
| 8759 | placeholder: Schema.optionalKey( | | |
| 8760 | Schema.Union([ | | |
| 8761 | Schema.String.annotate({ | | |
| 8762 | description: "Optional human-readable placeholder for the element, displayed in the UI.", | | |
| 8763 | }), | | |
| 8764 | Schema.Null, | | |
| 8765 | ]), | | |
| 8766 | ), | | |
| 8767 | }); | | |
| 8768 | | | |
| 8769 | export type V2ThreadRollbackResponse__ThreadActiveFlag = "waitingOnApproval" | "waitingOnUserInput"; | | |
| 8770 | export const V2ThreadRollbackResponse__ThreadActiveFlag = Schema.Literals([ | | |
| 8771 | "waitingOnApproval", | | |
| 8772 | "waitingOnUserInput", | | |
| 8773 | ]); | | |
| 8774 | | | |
| 8775 | export type V2ThreadRollbackResponse__ThreadId = string; | | |
| 8776 | export const V2ThreadRollbackResponse__ThreadId = Schema.String; | | |
| 8777 | | | |
| 8778 | export type V2ThreadRollbackResponse__ThreadSource = string; | | |
| 8779 | export const V2ThreadRollbackResponse__ThreadSource = Schema.String; | | |
| 8780 | | | |
| 8781 | export type V2ThreadRollbackResponse__TurnStatus = | | |
| 8782 | | "completed" | | |
| 8783 | | "interrupted" | | |
| 8784 | | "failed" | | |
| 8785 | | "inProgress"; | | |
| 8786 | export const V2ThreadRollbackResponse__TurnStatus = Schema.Literals([ | | |
| 8787 | "completed", | | |
| 8788 | "interrupted", | | |
| 8789 | "failed", | | |
| 8790 | "inProgress", | | |
| 8791 | ]); | | |
| 8792 | | 10498 | |
| 8793 | export type V2ThreadRollbackResponse__WebSearchAction = | 10499 | export type V2ThreadRollbackResponse__WebSearchAction = |
| 8794 | | { | 10500 | | { |
| ... | @@ -8820,13 +10526,36 @@ export const V2ThreadRollbackResponse__WebSearchAction = Schema.Union( | ... | @@ -8820,13 +10526,36 @@ export const V2ThreadRollbackResponse__WebSearchAction = Schema.Union( |
| 8820 | }).annotate({ title: "OtherWebSearchAction" }), | 10526 | }).annotate({ title: "OtherWebSearchAction" }), |
| 8821 | ], | 10527 | ], |
| 8822 | { mode: "oneOf" }, | 10528 | { mode: "oneOf" }, |
| 8823 | ); | 10529 | ).annotate({ identifier: "V2ThreadRollbackResponse__WebSearchAction" }); |
| 8824 | | 10530 | |
| 8825 | export type V2ThreadSettingsUpdatedNotification__AbsolutePathBuf = string; | 10531 | export type V2ThreadRollbackResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 8826 | export const V2ThreadSettingsUpdatedNotification__AbsolutePathBuf = Schema.String.annotate({ | 10532 | export const V2ThreadRollbackResponse__TurnItemsView = Schema.Union( |
| 8827 | description: | 10533 | [ |
| 8828 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 10534 | Schema.Literal("notLoaded").annotate({ |
| 8829 | }); | 10535 | description: "`items` was not loaded for this turn. The field is intentionally empty.", |
| | 10536 | }), |
| | 10537 | Schema.Literal("summary").annotate({ |
| | 10538 | description: "`items` contains only a display summary for this turn.", |
| | 10539 | }), |
| | 10540 | Schema.Literal("full").annotate({ |
| | 10541 | description: |
| | 10542 | "`items` contains every ThreadItem available from persisted app-server history for this turn.", |
| | 10543 | }), |
| | 10544 | ], |
| | 10545 | { mode: "oneOf" }, |
| | 10546 | ).annotate({ identifier: "V2ThreadRollbackResponse__TurnItemsView" }); |
| | 10547 | |
| | 10548 | export type V2ThreadRollbackResponse__TurnStatus = |
| | 10549 | | "completed" |
| | 10550 | | "interrupted" |
| | 10551 | | "failed" |
| | 10552 | | "inProgress"; |
| | 10553 | export const V2ThreadRollbackResponse__TurnStatus = Schema.Literals([ |
| | 10554 | "completed", |
| | 10555 | "interrupted", |
| | 10556 | "failed", |
| | 10557 | "inProgress", |
| | 10558 | ]).annotate({ identifier: "V2ThreadRollbackResponse__TurnStatus" }); |
| 8830 | | 10559 | |
| 8831 | export type V2ThreadSettingsUpdatedNotification__ActivePermissionProfile = { | 10560 | export type V2ThreadSettingsUpdatedNotification__ActivePermissionProfile = { |
| 8832 | readonly extends?: string | null; | 10561 | readonly extends?: string | null; |
| ... | @@ -8846,20 +10575,7 @@ export const V2ThreadSettingsUpdatedNotification__ActivePermissionProfile = Sche | ... | @@ -8846,20 +10575,7 @@ export const V2ThreadSettingsUpdatedNotification__ActivePermissionProfile = Sche |
| 8846 | description: | 10575 | description: |
| 8847 | "Identifier from `default_permissions` or the implicit built-in default, such as `:workspace` or a user-defined `[permissions.<id>]` profile.", | 10576 | "Identifier from `default_permissions` or the implicit built-in default, such as `:workspace` or a user-defined `[permissions.<id>]` profile.", |
| 8848 | }), | 10577 | }), |
| 8849 | }); | 10578 | }).annotate({ identifier: "V2ThreadSettingsUpdatedNotification__ActivePermissionProfile" }); |
| 8850 | | | |
| 8851 | export type V2ThreadSettingsUpdatedNotification__ApprovalsReviewer = | | |
| 8852 | | "user" | | |
| 8853 | | "auto_review" | | |
| 8854 | | "guardian_subagent"; | | |
| 8855 | export const V2ThreadSettingsUpdatedNotification__ApprovalsReviewer = Schema.Literals([ | | |
| 8856 | "user", | | |
| 8857 | "auto_review", | | |
| 8858 | "guardian_subagent", | | |
| 8859 | ]).annotate({ | | |
| 8860 | description: | | |
| 8861 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", | | |
| 8862 | }); | | |
| 8863 | | 10579 | |
| 8864 | export type V2ThreadSettingsUpdatedNotification__AskForApproval = | 10580 | export type V2ThreadSettingsUpdatedNotification__AskForApproval = |
| 8865 | | "untrusted" | 10581 | | "untrusted" |
| ... | @@ -8888,25 +10604,60 @@ export const V2ThreadSettingsUpdatedNotification__AskForApproval = Schema.Union( | ... | @@ -8888,25 +10604,60 @@ export const V2ThreadSettingsUpdatedNotification__AskForApproval = Schema.Union( |
| 8888 | }).annotate({ title: "GranularAskForApproval" }), | 10604 | }).annotate({ title: "GranularAskForApproval" }), |
| 8889 | ], | 10605 | ], |
| 8890 | { mode: "oneOf" }, | 10606 | { mode: "oneOf" }, |
| 8891 | ); | 10607 | ).annotate({ identifier: "V2ThreadSettingsUpdatedNotification__AskForApproval" }); |
| | 10608 | |
| | 10609 | export type V2ThreadSettingsUpdatedNotification__ApprovalsReviewer = |
| | 10610 | | "user" |
| | 10611 | | "auto_review" |
| | 10612 | | "guardian_subagent"; |
| | 10613 | export const V2ThreadSettingsUpdatedNotification__ApprovalsReviewer = Schema.Literals([ |
| | 10614 | "user", |
| | 10615 | "auto_review", |
| | 10616 | "guardian_subagent", |
| | 10617 | ]).annotate({ |
| | 10618 | description: |
| | 10619 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", |
| | 10620 | identifier: "V2ThreadSettingsUpdatedNotification__ApprovalsReviewer", |
| | 10621 | }); |
| 8892 | | 10622 | |
| 8893 | export type V2ThreadSettingsUpdatedNotification__ModeKind = "plan" | "default"; | 10623 | export type V2ThreadSettingsUpdatedNotification__ModeKind = "plan" | "default"; |
| 8894 | export const V2ThreadSettingsUpdatedNotification__ModeKind = Schema.Literals([ | 10624 | export const V2ThreadSettingsUpdatedNotification__ModeKind = Schema.Literals([ |
| 8895 | "plan", | 10625 | "plan", |
| 8896 | "default", | 10626 | "default", |
| 8897 | ]).annotate({ description: "Initial collaboration mode to use when the TUI starts." }); | 10627 | ]).annotate({ |
| | 10628 | description: "Initial collaboration mode to use when the TUI starts.", |
| | 10629 | identifier: "V2ThreadSettingsUpdatedNotification__ModeKind", |
| | 10630 | }); |
| | 10631 | |
| | 10632 | export type V2ThreadSettingsUpdatedNotification__ReasoningEffort = string; |
| | 10633 | export const V2ThreadSettingsUpdatedNotification__ReasoningEffort = Schema.String.annotate({ |
| | 10634 | description: "A non-empty reasoning effort value advertised by the model.", |
| | 10635 | }).check( |
| | 10636 | Schema.isMinLength(1).annotate({ |
| | 10637 | expected: "a value with a length of at least 1", |
| | 10638 | identifier: "V2ThreadSettingsUpdatedNotification__ReasoningEffort", |
| | 10639 | }), |
| | 10640 | ); |
| | 10641 | |
| | 10642 | export type V2ThreadSettingsUpdatedNotification__AbsolutePathBuf = string; |
| | 10643 | export const V2ThreadSettingsUpdatedNotification__AbsolutePathBuf = Schema.String.annotate({ |
| | 10644 | description: |
| | 10645 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 10646 | identifier: "V2ThreadSettingsUpdatedNotification__AbsolutePathBuf", |
| | 10647 | }); |
| 8898 | | 10648 | |
| 8899 | export type V2ThreadSettingsUpdatedNotification__Personality = "none" | "friendly" | "pragmatic"; | 10649 | export type V2ThreadSettingsUpdatedNotification__Personality = "none" | "friendly" | "pragmatic"; |
| 8900 | export const V2ThreadSettingsUpdatedNotification__Personality = Schema.Literals([ | 10650 | export const V2ThreadSettingsUpdatedNotification__Personality = Schema.Literals([ |
| 8901 | "none", | 10651 | "none", |
| 8902 | "friendly", | 10652 | "friendly", |
| 8903 | "pragmatic", | 10653 | "pragmatic", |
| 8904 | ]); | 10654 | ]).annotate({ identifier: "V2ThreadSettingsUpdatedNotification__Personality" }); |
| 8905 | | 10655 | |
| 8906 | export type V2ThreadSettingsUpdatedNotification__ReasoningEffort = string; | 10656 | export type V2ThreadSettingsUpdatedNotification__NetworkAccess = "restricted" | "enabled"; |
| 8907 | export const V2ThreadSettingsUpdatedNotification__ReasoningEffort = Schema.String.annotate({ | 10657 | export const V2ThreadSettingsUpdatedNotification__NetworkAccess = Schema.Literals([ |
| 8908 | description: "A non-empty reasoning effort value advertised by the model.", | 10658 | "restricted", |
| 8909 | }).check(Schema.isMinLength(1)); | 10659 | "enabled", |
| | 10660 | ]).annotate({ identifier: "V2ThreadSettingsUpdatedNotification__NetworkAccess" }); |
| 8910 | | 10661 | |
| 8911 | export type V2ThreadSettingsUpdatedNotification__ReasoningSummary = | 10662 | export type V2ThreadSettingsUpdatedNotification__ReasoningSummary = |
| 8912 | | "auto" | 10663 | | "auto" |
| ... | @@ -8922,104 +10673,72 @@ export const V2ThreadSettingsUpdatedNotification__ReasoningSummary = Schema.Unio | ... | @@ -8922,104 +10673,72 @@ export const V2ThreadSettingsUpdatedNotification__ReasoningSummary = Schema.Unio |
| 8922 | ).annotate({ | 10673 | ).annotate({ |
| 8923 | description: | 10674 | description: |
| 8924 | "A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries", | 10675 | "A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries", |
| | 10676 | identifier: "V2ThreadSettingsUpdatedNotification__ReasoningSummary", |
| 8925 | }); | 10677 | }); |
| 8926 | | 10678 | |
| 8927 | export type V2ThreadStartedNotification__AbsolutePathBuf = string; | 10679 | export type V2ThreadStartedNotification__AbsolutePathBuf = string; |
| 8928 | export const V2ThreadStartedNotification__AbsolutePathBuf = Schema.String.annotate({ | 10680 | export const V2ThreadStartedNotification__AbsolutePathBuf = Schema.String.annotate({ |
| 8929 | description: | 10681 | description: |
| 8930 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 10682 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 10683 | identifier: "V2ThreadStartedNotification__AbsolutePathBuf", |
| 8931 | }); | 10684 | }); |
| 8932 | | 10685 | |
| | 10686 | export type V2ThreadStartedNotification__GitInfo = { |
| | 10687 | readonly branch?: string | null; |
| | 10688 | readonly originUrl?: string | null; |
| | 10689 | readonly sha?: string | null; |
| | 10690 | }; |
| | 10691 | export const V2ThreadStartedNotification__GitInfo = Schema.Struct({ |
| | 10692 | branch: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 10693 | originUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 10694 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 10695 | }).annotate({ identifier: "V2ThreadStartedNotification__GitInfo" }); |
| | 10696 | |
| 8933 | export type V2ThreadStartedNotification__AgentPath = string; | 10697 | export type V2ThreadStartedNotification__AgentPath = string; |
| 8934 | export const V2ThreadStartedNotification__AgentPath = Schema.String; | 10698 | export const V2ThreadStartedNotification__AgentPath = Schema.String.annotate({ |
| | 10699 | identifier: "V2ThreadStartedNotification__AgentPath", |
| | 10700 | }); |
| 8935 | | 10701 | |
| 8936 | export type V2ThreadStartedNotification__CollabAgentStatus = | 10702 | export type V2ThreadStartedNotification__ThreadId = string; |
| 8937 | | "pendingInit" | 10703 | export const V2ThreadStartedNotification__ThreadId = Schema.String.annotate({ |
| 8938 | | "running" | 10704 | identifier: "V2ThreadStartedNotification__ThreadId", |
| 8939 | | "interrupted" | 10705 | }); |
| 8940 | | "completed" | | |
| 8941 | | "errored" | | |
| 8942 | | "shutdown" | | |
| 8943 | | "notFound"; | | |
| 8944 | export const V2ThreadStartedNotification__CollabAgentStatus = Schema.Literals([ | | |
| 8945 | "pendingInit", | | |
| 8946 | "running", | | |
| 8947 | "interrupted", | | |
| 8948 | "completed", | | |
| 8949 | "errored", | | |
| 8950 | "shutdown", | | |
| 8951 | "notFound", | | |
| 8952 | ]); | | |
| 8953 | | 10706 | |
| 8954 | export type V2ThreadStartedNotification__CommandExecutionStatus = | 10707 | export type V2ThreadStartedNotification__ThreadActiveFlag = |
| 8955 | | "inProgress" | 10708 | | "waitingOnApproval" |
| 8956 | | "completed" | 10709 | | "waitingOnUserInput"; |
| 8957 | | "failed" | 10710 | export const V2ThreadStartedNotification__ThreadActiveFlag = Schema.Literals([ |
| 8958 | | "declined"; | 10711 | "waitingOnApproval", |
| 8959 | export const V2ThreadStartedNotification__CommandExecutionStatus = Schema.Literals([ | 10712 | "waitingOnUserInput", |
| 8960 | "inProgress", | 10713 | ]).annotate({ identifier: "V2ThreadStartedNotification__ThreadActiveFlag" }); |
| 8961 | "completed", | | |
| 8962 | "failed", | | |
| 8963 | "declined", | | |
| 8964 | ]); | | |
| 8965 | | 10714 | |
| 8966 | export type V2ThreadStartedNotification__DynamicToolCallOutputContentItem = | 10715 | export type V2ThreadStartedNotification__ThreadSource = string; |
| 8967 | | { readonly text: string; readonly type: "inputText" } | 10716 | export const V2ThreadStartedNotification__ThreadSource = Schema.String.annotate({ |
| 8968 | | { readonly imageUrl: string; readonly type: "inputImage" } | 10717 | identifier: "V2ThreadStartedNotification__ThreadSource", |
| 8969 | | { readonly audioUrl: string; readonly type: "inputAudio" }; | | |
| 8970 | export const V2ThreadStartedNotification__DynamicToolCallOutputContentItem = Schema.Union( | | |
| 8971 | [ | | |
| 8972 | Schema.Struct({ | | |
| 8973 | text: Schema.String, | | |
| 8974 | type: Schema.Literal("inputText").annotate({ | | |
| 8975 | title: "InputTextDynamicToolCallOutputContentItemType", | | |
| 8976 | }), | | |
| 8977 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), | | |
| 8978 | Schema.Struct({ | | |
| 8979 | imageUrl: Schema.String, | | |
| 8980 | type: Schema.Literal("inputImage").annotate({ | | |
| 8981 | title: "InputImageDynamicToolCallOutputContentItemType", | | |
| 8982 | }), | | |
| 8983 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), | | |
| 8984 | Schema.Struct({ | | |
| 8985 | audioUrl: Schema.String, | | |
| 8986 | type: Schema.Literal("inputAudio").annotate({ | | |
| 8987 | title: "InputAudioDynamicToolCallOutputContentItemType", | | |
| 8988 | }), | | |
| 8989 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), | | |
| 8990 | ], | | |
| 8991 | { mode: "oneOf" }, | | |
| 8992 | ); | | |
| 8993 | | | |
| 8994 | export type V2ThreadStartedNotification__DynamicToolCallStatus = | | |
| 8995 | | "inProgress" | | |
| 8996 | | "completed" | | |
| 8997 | | "failed"; | | |
| 8998 | export const V2ThreadStartedNotification__DynamicToolCallStatus = Schema.Literals([ | | |
| 8999 | "inProgress", | | |
| 9000 | "completed", | | |
| 9001 | "failed", | | |
| 9002 | ]); | | |
| 9003 | | | |
| 9004 | export type V2ThreadStartedNotification__GitInfo = { | | |
| 9005 | readonly branch?: string | null; | | |
| 9006 | readonly originUrl?: string | null; | | |
| 9007 | readonly sha?: string | null; | | |
| 9008 | }; | | |
| 9009 | export const V2ThreadStartedNotification__GitInfo = Schema.Struct({ | | |
| 9010 | branch: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 9011 | originUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 9012 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 9013 | }); | 10718 | }); |
| 9014 | | 10719 | |
| 9015 | export type V2ThreadStartedNotification__HookPromptFragment = { | 10720 | export type V2ThreadStartedNotification__NonSteerableTurnKind = "review" | "compact"; |
| 9016 | readonly hookRunId: string; | 10721 | export const V2ThreadStartedNotification__NonSteerableTurnKind = Schema.Literals([ |
| 9017 | readonly text: string; | 10722 | "review", |
| | 10723 | "compact", |
| | 10724 | ]).annotate({ identifier: "V2ThreadStartedNotification__NonSteerableTurnKind" }); |
| | 10725 | |
| | 10726 | export type V2ThreadStartedNotification__ByteRange = { |
| | 10727 | readonly end: number; |
| | 10728 | readonly start: number; |
| 9018 | }; | 10729 | }; |
| 9019 | export const V2ThreadStartedNotification__HookPromptFragment = Schema.Struct({ | 10730 | export const V2ThreadStartedNotification__ByteRange = Schema.Struct({ |
| 9020 | hookRunId: Schema.String, | 10731 | end: Schema.Number.annotate({ format: "uint" }) |
| 9021 | text: Schema.String, | 10732 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 9022 | }); | 10733 | .check( |
| | 10734 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 10735 | ), |
| | 10736 | start: Schema.Number.annotate({ format: "uint" }) |
| | 10737 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 10738 | .check( |
| | 10739 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 10740 | ), |
| | 10741 | }).annotate({ identifier: "V2ThreadStartedNotification__ByteRange" }); |
| 9023 | | 10742 | |
| 9024 | export type V2ThreadStartedNotification__ImageDetail = "auto" | "low" | "high" | "original"; | 10743 | export type V2ThreadStartedNotification__ImageDetail = "auto" | "low" | "high" | "original"; |
| 9025 | export const V2ThreadStartedNotification__ImageDetail = Schema.Literals([ | 10744 | export const V2ThreadStartedNotification__ImageDetail = Schema.Literals([ |
| ... | @@ -9027,48 +10746,16 @@ export const V2ThreadStartedNotification__ImageDetail = Schema.Literals([ | ... | @@ -9027,48 +10746,16 @@ export const V2ThreadStartedNotification__ImageDetail = Schema.Literals([ |
| 9027 | "low", | 10746 | "low", |
| 9028 | "high", | 10747 | "high", |
| 9029 | "original", | 10748 | "original", |
| 9030 | ]); | 10749 | ]).annotate({ identifier: "V2ThreadStartedNotification__ImageDetail" }); |
| 9031 | | | |
| 9032 | export type V2ThreadStartedNotification__LegacyAppPathString = string; | | |
| 9033 | export const V2ThreadStartedNotification__LegacyAppPathString = Schema.String; | | |
| 9034 | | | |
| 9035 | export type V2ThreadStartedNotification__McpToolCallAppContext = { | | |
| 9036 | readonly actionName?: string | null; | | |
| 9037 | readonly appName?: string | null; | | |
| 9038 | readonly connectorId: string; | | |
| 9039 | readonly linkId?: string | null; | | |
| 9040 | readonly resourceUri?: string | null; | | |
| 9041 | }; | | |
| 9042 | export const V2ThreadStartedNotification__McpToolCallAppContext = Schema.Struct({ | | |
| 9043 | actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 9044 | appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 9045 | connectorId: Schema.String, | | |
| 9046 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 9047 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 9048 | }); | | |
| 9049 | | | |
| 9050 | export type V2ThreadStartedNotification__McpToolCallError = { readonly message: string }; | | |
| 9051 | export const V2ThreadStartedNotification__McpToolCallError = Schema.Struct({ | | |
| 9052 | message: Schema.String, | | |
| 9053 | }); | | |
| 9054 | | 10750 | |
| 9055 | export type V2ThreadStartedNotification__McpToolCallResult = { | 10751 | export type V2ThreadStartedNotification__HookPromptFragment = { |
| 9056 | readonly _meta?: unknown; | 10752 | readonly hookRunId: string; |
| 9057 | readonly content: ReadonlyArray<unknown>; | 10753 | readonly text: string; |
| 9058 | readonly structuredContent?: unknown; | | |
| 9059 | }; | 10754 | }; |
| 9060 | export const V2ThreadStartedNotification__McpToolCallResult = Schema.Struct({ | 10755 | export const V2ThreadStartedNotification__HookPromptFragment = Schema.Struct({ |
| 9061 | _meta: Schema.optionalKey(Schema.Unknown), | 10756 | hookRunId: Schema.String, |
| 9062 | content: Schema.Array(Schema.Unknown), | 10757 | text: Schema.String, |
| 9063 | structuredContent: Schema.optionalKey(Schema.Unknown), | 10758 | }).annotate({ identifier: "V2ThreadStartedNotification__HookPromptFragment" }); |
| 9064 | }); | | |
| 9065 | | | |
| 9066 | export type V2ThreadStartedNotification__McpToolCallStatus = "inProgress" | "completed" | "failed"; | | |
| 9067 | export const V2ThreadStartedNotification__McpToolCallStatus = Schema.Literals([ | | |
| 9068 | "inProgress", | | |
| 9069 | "completed", | | |
| 9070 | "failed", | | |
| 9071 | ]); | | |
| 9072 | | 10759 | |
| 9073 | export type V2ThreadStartedNotification__MemoryCitationEntry = { | 10760 | export type V2ThreadStartedNotification__MemoryCitationEntry = { |
| 9074 | readonly lineEnd: number; | 10761 | readonly lineEnd: number; |
| ... | @@ -9078,41 +10765,65 @@ export type V2ThreadStartedNotification__MemoryCitationEntry = { | ... | @@ -9078,41 +10765,65 @@ export type V2ThreadStartedNotification__MemoryCitationEntry = { |
| 9078 | }; | 10765 | }; |
| 9079 | export const V2ThreadStartedNotification__MemoryCitationEntry = Schema.Struct({ | 10766 | export const V2ThreadStartedNotification__MemoryCitationEntry = Schema.Struct({ |
| 9080 | lineEnd: Schema.Number.annotate({ format: "uint32" }) | 10767 | lineEnd: Schema.Number.annotate({ format: "uint32" }) |
| 9081 | .check(Schema.isInt()) | 10768 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 9082 | .check(Schema.isGreaterThanOrEqualTo(0)), | 10769 | .check( |
| | 10770 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 10771 | ), |
| 9083 | lineStart: Schema.Number.annotate({ format: "uint32" }) | 10772 | lineStart: Schema.Number.annotate({ format: "uint32" }) |
| 9084 | .check(Schema.isInt()) | 10773 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 9085 | .check(Schema.isGreaterThanOrEqualTo(0)), | 10774 | .check( |
| | 10775 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 10776 | ), |
| 9086 | note: Schema.String, | 10777 | note: Schema.String, |
| 9087 | path: Schema.String, | 10778 | path: Schema.String, |
| 9088 | }); | 10779 | }).annotate({ identifier: "V2ThreadStartedNotification__MemoryCitationEntry" }); |
| 9089 | | 10780 | |
| 9090 | export type V2ThreadStartedNotification__MessagePhase = "commentary" | "final_answer"; | 10781 | export type V2ThreadStartedNotification__MessagePhase = "commentary" | "final_answer"; |
| 9091 | export const V2ThreadStartedNotification__MessagePhase = Schema.Literals([ | 10782 | export const V2ThreadStartedNotification__MessagePhase = Schema.Union( |
| 9092 | "commentary", | 10783 | [ |
| 9093 | "final_answer", | 10784 | Schema.Literal("commentary").annotate({ |
| 9094 | ]).annotate({ | 10785 | description: |
| | 10786 | "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.", |
| | 10787 | }), |
| | 10788 | Schema.Literal("final_answer").annotate({ |
| | 10789 | description: "The assistant's terminal answer text for the current turn.", |
| | 10790 | }), |
| | 10791 | ], |
| | 10792 | { mode: "oneOf" }, |
| | 10793 | ).annotate({ |
| 9095 | description: | 10794 | description: |
| 9096 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', | 10795 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', |
| | 10796 | identifier: "V2ThreadStartedNotification__MessagePhase", |
| 9097 | }); | 10797 | }); |
| 9098 | | 10798 | |
| 9099 | export type V2ThreadStartedNotification__NonSteerableTurnKind = "review" | "compact"; | 10799 | export type V2ThreadStartedNotification__LegacyAppPathString = string; |
| 9100 | export const V2ThreadStartedNotification__NonSteerableTurnKind = Schema.Literals([ | 10800 | export const V2ThreadStartedNotification__LegacyAppPathString = Schema.String.annotate({ |
| 9101 | "review", | 10801 | identifier: "V2ThreadStartedNotification__LegacyAppPathString", |
| 9102 | "compact", | 10802 | }); |
| 9103 | ]); | | |
| 9104 | | 10803 | |
| 9105 | export type V2ThreadStartedNotification__PatchApplyStatus = | 10804 | export type V2ThreadStartedNotification__CommandExecutionSource = |
| | 10805 | | "agent" |
| | 10806 | | "userShell" |
| | 10807 | | "unifiedExecStartup" |
| | 10808 | | "unifiedExecInteraction"; |
| | 10809 | export const V2ThreadStartedNotification__CommandExecutionSource = Schema.Literals([ |
| | 10810 | "agent", |
| | 10811 | "userShell", |
| | 10812 | "unifiedExecStartup", |
| | 10813 | "unifiedExecInteraction", |
| | 10814 | ]).annotate({ identifier: "V2ThreadStartedNotification__CommandExecutionSource" }); |
| | 10815 | |
| | 10816 | export type V2ThreadStartedNotification__CommandExecutionStatus = |
| 9106 | | "inProgress" | 10817 | | "inProgress" |
| 9107 | | "completed" | 10818 | | "completed" |
| 9108 | | "failed" | 10819 | | "failed" |
| 9109 | | "declined"; | 10820 | | "declined"; |
| 9110 | export const V2ThreadStartedNotification__PatchApplyStatus = Schema.Literals([ | 10821 | export const V2ThreadStartedNotification__CommandExecutionStatus = Schema.Literals([ |
| 9111 | "inProgress", | 10822 | "inProgress", |
| 9112 | "completed", | 10823 | "completed", |
| 9113 | "failed", | 10824 | "failed", |
| 9114 | "declined", | 10825 | "declined", |
| 9115 | ]); | 10826 | ]).annotate({ identifier: "V2ThreadStartedNotification__CommandExecutionStatus" }); |
| 9116 | | 10827 | |
| 9117 | export type V2ThreadStartedNotification__PatchChangeKind = | 10828 | export type V2ThreadStartedNotification__PatchChangeKind = |
| 9118 | | { readonly type: "add" } | 10829 | | { readonly type: "add" } |
| ... | @@ -9132,12 +10843,157 @@ export const V2ThreadStartedNotification__PatchChangeKind = Schema.Union( | ... | @@ -9132,12 +10843,157 @@ export const V2ThreadStartedNotification__PatchChangeKind = Schema.Union( |
| 9132 | }).annotate({ title: "UpdatePatchChangeKind" }), | 10843 | }).annotate({ title: "UpdatePatchChangeKind" }), |
| 9133 | ], | 10844 | ], |
| 9134 | { mode: "oneOf" }, | 10845 | { mode: "oneOf" }, |
| 9135 | ); | 10846 | ).annotate({ identifier: "V2ThreadStartedNotification__PatchChangeKind" }); |
| | 10847 | |
| | 10848 | export type V2ThreadStartedNotification__PatchApplyStatus = |
| | 10849 | | "inProgress" |
| | 10850 | | "completed" |
| | 10851 | | "failed" |
| | 10852 | | "declined"; |
| | 10853 | export const V2ThreadStartedNotification__PatchApplyStatus = Schema.Literals([ |
| | 10854 | "inProgress", |
| | 10855 | "completed", |
| | 10856 | "failed", |
| | 10857 | "declined", |
| | 10858 | ]).annotate({ identifier: "V2ThreadStartedNotification__PatchApplyStatus" }); |
| | 10859 | |
| | 10860 | export type V2ThreadStartedNotification__McpToolCallAppContext = { |
| | 10861 | readonly actionName?: string | null; |
| | 10862 | readonly appName?: string | null; |
| | 10863 | readonly connectorId: string; |
| | 10864 | readonly linkId?: string | null; |
| | 10865 | readonly resourceUri?: string | null; |
| | 10866 | }; |
| | 10867 | export const V2ThreadStartedNotification__McpToolCallAppContext = Schema.Struct({ |
| | 10868 | actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 10869 | appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 10870 | connectorId: Schema.String, |
| | 10871 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 10872 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 10873 | }).annotate({ identifier: "V2ThreadStartedNotification__McpToolCallAppContext" }); |
| | 10874 | |
| | 10875 | export type V2ThreadStartedNotification__McpToolCallError = { readonly message: string }; |
| | 10876 | export const V2ThreadStartedNotification__McpToolCallError = Schema.Struct({ |
| | 10877 | message: Schema.String, |
| | 10878 | }).annotate({ identifier: "V2ThreadStartedNotification__McpToolCallError" }); |
| | 10879 | |
| | 10880 | export type V2ThreadStartedNotification__McpToolCallResult = { |
| | 10881 | readonly _meta?: Schema.Json; |
| | 10882 | readonly content: ReadonlyArray<Schema.Json>; |
| | 10883 | readonly structuredContent?: Schema.Json; |
| | 10884 | }; |
| | 10885 | export const V2ThreadStartedNotification__McpToolCallResult = Schema.Struct({ |
| | 10886 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 10887 | content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), |
| | 10888 | structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 10889 | }).annotate({ identifier: "V2ThreadStartedNotification__McpToolCallResult" }); |
| | 10890 | |
| | 10891 | export type V2ThreadStartedNotification__McpToolCallStatus = "inProgress" | "completed" | "failed"; |
| | 10892 | export const V2ThreadStartedNotification__McpToolCallStatus = Schema.Literals([ |
| | 10893 | "inProgress", |
| | 10894 | "completed", |
| | 10895 | "failed", |
| | 10896 | ]).annotate({ identifier: "V2ThreadStartedNotification__McpToolCallStatus" }); |
| | 10897 | |
| | 10898 | export type V2ThreadStartedNotification__DynamicToolCallOutputContentItem = |
| | 10899 | | { readonly text: string; readonly type: "inputText" } |
| | 10900 | | { readonly imageUrl: string; readonly type: "inputImage" } |
| | 10901 | | { readonly audioUrl: string; readonly type: "inputAudio" }; |
| | 10902 | export const V2ThreadStartedNotification__DynamicToolCallOutputContentItem = Schema.Union( |
| | 10903 | [ |
| | 10904 | Schema.Struct({ |
| | 10905 | text: Schema.String, |
| | 10906 | type: Schema.Literal("inputText").annotate({ |
| | 10907 | title: "InputTextDynamicToolCallOutputContentItemType", |
| | 10908 | }), |
| | 10909 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), |
| | 10910 | Schema.Struct({ |
| | 10911 | imageUrl: Schema.String, |
| | 10912 | type: Schema.Literal("inputImage").annotate({ |
| | 10913 | title: "InputImageDynamicToolCallOutputContentItemType", |
| | 10914 | }), |
| | 10915 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), |
| | 10916 | Schema.Struct({ |
| | 10917 | audioUrl: Schema.String, |
| | 10918 | type: Schema.Literal("inputAudio").annotate({ |
| | 10919 | title: "InputAudioDynamicToolCallOutputContentItemType", |
| | 10920 | }), |
| | 10921 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), |
| | 10922 | ], |
| | 10923 | { mode: "oneOf" }, |
| | 10924 | ).annotate({ identifier: "V2ThreadStartedNotification__DynamicToolCallOutputContentItem" }); |
| | 10925 | |
| | 10926 | export type V2ThreadStartedNotification__DynamicToolCallStatus = |
| | 10927 | | "inProgress" |
| | 10928 | | "completed" |
| | 10929 | | "failed"; |
| | 10930 | export const V2ThreadStartedNotification__DynamicToolCallStatus = Schema.Literals([ |
| | 10931 | "inProgress", |
| | 10932 | "completed", |
| | 10933 | "failed", |
| | 10934 | ]).annotate({ identifier: "V2ThreadStartedNotification__DynamicToolCallStatus" }); |
| | 10935 | |
| | 10936 | export type V2ThreadStartedNotification__CollabAgentStatus = |
| | 10937 | | "pendingInit" |
| | 10938 | | "running" |
| | 10939 | | "interrupted" |
| | 10940 | | "completed" |
| | 10941 | | "errored" |
| | 10942 | | "shutdown" |
| | 10943 | | "notFound"; |
| | 10944 | export const V2ThreadStartedNotification__CollabAgentStatus = Schema.Literals([ |
| | 10945 | "pendingInit", |
| | 10946 | "running", |
| | 10947 | "interrupted", |
| | 10948 | "completed", |
| | 10949 | "errored", |
| | 10950 | "shutdown", |
| | 10951 | "notFound", |
| | 10952 | ]).annotate({ identifier: "V2ThreadStartedNotification__CollabAgentStatus" }); |
| 9136 | | 10953 | |
| 9137 | export type V2ThreadStartedNotification__ReasoningEffort = string; | 10954 | export type V2ThreadStartedNotification__ReasoningEffort = string; |
| 9138 | export const V2ThreadStartedNotification__ReasoningEffort = Schema.String.annotate({ | 10955 | export const V2ThreadStartedNotification__ReasoningEffort = Schema.String.annotate({ |
| 9139 | description: "A non-empty reasoning effort value advertised by the model.", | 10956 | description: "A non-empty reasoning effort value advertised by the model.", |
| 9140 | }).check(Schema.isMinLength(1)); | 10957 | }).check( |
| | 10958 | Schema.isMinLength(1).annotate({ |
| | 10959 | expected: "a value with a length of at least 1", |
| | 10960 | identifier: "V2ThreadStartedNotification__ReasoningEffort", |
| | 10961 | }), |
| | 10962 | ); |
| | 10963 | |
| | 10964 | export type V2ThreadStartedNotification__CollabAgentToolCallStatus = |
| | 10965 | | "inProgress" |
| | 10966 | | "completed" |
| | 10967 | | "failed" |
| | 10968 | | "interrupted"; |
| | 10969 | export const V2ThreadStartedNotification__CollabAgentToolCallStatus = Schema.Literals([ |
| | 10970 | "inProgress", |
| | 10971 | "completed", |
| | 10972 | "failed", |
| | 10973 | "interrupted", |
| | 10974 | ]).annotate({ identifier: "V2ThreadStartedNotification__CollabAgentToolCallStatus" }); |
| | 10975 | |
| | 10976 | export type V2ThreadStartedNotification__CollabAgentTool = |
| | 10977 | | "spawnAgent" |
| | 10978 | | "sendInput" |
| | 10979 | | "resumeAgent" |
| | 10980 | | "wait" |
| | 10981 | | "closeAgent" |
| | 10982 | | "sendMessage" |
| | 10983 | | "followupTask" |
| | 10984 | | "interruptAgent" |
| | 10985 | | "listAgents"; |
| | 10986 | export const V2ThreadStartedNotification__CollabAgentTool = Schema.Literals([ |
| | 10987 | "spawnAgent", |
| | 10988 | "sendInput", |
| | 10989 | "resumeAgent", |
| | 10990 | "wait", |
| | 10991 | "closeAgent", |
| | 10992 | "sendMessage", |
| | 10993 | "followupTask", |
| | 10994 | "interruptAgent", |
| | 10995 | "listAgents", |
| | 10996 | ]).annotate({ identifier: "V2ThreadStartedNotification__CollabAgentTool" }); |
| 9141 | | 10997 | |
| 9142 | export type V2ThreadStartedNotification__SubAgentActivityKind = | 10998 | export type V2ThreadStartedNotification__SubAgentActivityKind = |
| 9143 | | "started" | 10999 | | "started" |
| ... | @@ -9149,58 +11005,7 @@ export const V2ThreadStartedNotification__SubAgentActivityKind = Schema.Literals | ... | @@ -9149,58 +11005,7 @@ export const V2ThreadStartedNotification__SubAgentActivityKind = Schema.Literals |
| 9149 | "interacted", | 11005 | "interacted", |
| 9150 | "interrupted", | 11006 | "interrupted", |
| 9151 | "completed", | 11007 | "completed", |
| 9152 | ]); | 11008 | ]).annotate({ identifier: "V2ThreadStartedNotification__SubAgentActivityKind" }); |
| 9153 | | | |
| 9154 | export type V2ThreadStartedNotification__TextElement = { | | |
| 9155 | readonly byteRange: { readonly end: number; readonly start: number }; | | |
| 9156 | readonly placeholder?: string | null; | | |
| 9157 | }; | | |
| 9158 | export const V2ThreadStartedNotification__TextElement = Schema.Struct({ | | |
| 9159 | byteRange: Schema.Struct({ | | |
| 9160 | end: Schema.Number.annotate({ format: "uint" }) | | |
| 9161 | .check(Schema.isInt()) | | |
| 9162 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 9163 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 9164 | .check(Schema.isInt()) | | |
| 9165 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 9166 | }).annotate({ | | |
| 9167 | description: "Byte range in the parent `text` buffer that this element occupies.", | | |
| 9168 | }), | | |
| 9169 | placeholder: Schema.optionalKey( | | |
| 9170 | Schema.Union([ | | |
| 9171 | Schema.String.annotate({ | | |
| 9172 | description: "Optional human-readable placeholder for the element, displayed in the UI.", | | |
| 9173 | }), | | |
| 9174 | Schema.Null, | | |
| 9175 | ]), | | |
| 9176 | ), | | |
| 9177 | }); | | |
| 9178 | | | |
| 9179 | export type V2ThreadStartedNotification__ThreadActiveFlag = | | |
| 9180 | | "waitingOnApproval" | | |
| 9181 | | "waitingOnUserInput"; | | |
| 9182 | export const V2ThreadStartedNotification__ThreadActiveFlag = Schema.Literals([ | | |
| 9183 | "waitingOnApproval", | | |
| 9184 | "waitingOnUserInput", | | |
| 9185 | ]); | | |
| 9186 | | | |
| 9187 | export type V2ThreadStartedNotification__ThreadId = string; | | |
| 9188 | export const V2ThreadStartedNotification__ThreadId = Schema.String; | | |
| 9189 | | | |
| 9190 | export type V2ThreadStartedNotification__ThreadSource = string; | | |
| 9191 | export const V2ThreadStartedNotification__ThreadSource = Schema.String; | | |
| 9192 | | | |
| 9193 | export type V2ThreadStartedNotification__TurnStatus = | | |
| 9194 | | "completed" | | |
| 9195 | | "interrupted" | | |
| 9196 | | "failed" | | |
| 9197 | | "inProgress"; | | |
| 9198 | export const V2ThreadStartedNotification__TurnStatus = Schema.Literals([ | | |
| 9199 | "completed", | | |
| 9200 | "interrupted", | | |
| 9201 | "failed", | | |
| 9202 | "inProgress", | | |
| 9203 | ]); | | |
| 9204 | | 11009 | |
| 9205 | export type V2ThreadStartedNotification__WebSearchAction = | 11010 | export type V2ThreadStartedNotification__WebSearchAction = |
| 9206 | | { | 11011 | | { |
| ... | @@ -9232,17 +11037,36 @@ export const V2ThreadStartedNotification__WebSearchAction = Schema.Union( | ... | @@ -9232,17 +11037,36 @@ export const V2ThreadStartedNotification__WebSearchAction = Schema.Union( |
| 9232 | }).annotate({ title: "OtherWebSearchAction" }), | 11037 | }).annotate({ title: "OtherWebSearchAction" }), |
| 9233 | ], | 11038 | ], |
| 9234 | { mode: "oneOf" }, | 11039 | { mode: "oneOf" }, |
| 9235 | ); | 11040 | ).annotate({ identifier: "V2ThreadStartedNotification__WebSearchAction" }); |
| 9236 | | 11041 | |
| 9237 | export type V2ThreadStartParams__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent"; | 11042 | export type V2ThreadStartedNotification__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 9238 | export const V2ThreadStartParams__ApprovalsReviewer = Schema.Literals([ | 11043 | export const V2ThreadStartedNotification__TurnItemsView = Schema.Union( |
| 9239 | "user", | 11044 | [ |
| 9240 | "auto_review", | 11045 | Schema.Literal("notLoaded").annotate({ |
| 9241 | "guardian_subagent", | 11046 | description: "`items` was not loaded for this turn. The field is intentionally empty.", |
| 9242 | ]).annotate({ | 11047 | }), |
| 9243 | description: | 11048 | Schema.Literal("summary").annotate({ |
| 9244 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", | 11049 | description: "`items` contains only a display summary for this turn.", |
| 9245 | }); | 11050 | }), |
| | 11051 | Schema.Literal("full").annotate({ |
| | 11052 | description: |
| | 11053 | "`items` contains every ThreadItem available from persisted app-server history for this turn.", |
| | 11054 | }), |
| | 11055 | ], |
| | 11056 | { mode: "oneOf" }, |
| | 11057 | ).annotate({ identifier: "V2ThreadStartedNotification__TurnItemsView" }); |
| | 11058 | |
| | 11059 | export type V2ThreadStartedNotification__TurnStatus = |
| | 11060 | | "completed" |
| | 11061 | | "interrupted" |
| | 11062 | | "failed" |
| | 11063 | | "inProgress"; |
| | 11064 | export const V2ThreadStartedNotification__TurnStatus = Schema.Literals([ |
| | 11065 | "completed", |
| | 11066 | "interrupted", |
| | 11067 | "failed", |
| | 11068 | "inProgress", |
| | 11069 | ]).annotate({ identifier: "V2ThreadStartedNotification__TurnStatus" }); |
| 9246 | | 11070 | |
| 9247 | export type V2ThreadStartParams__AskForApproval = | 11071 | export type V2ThreadStartParams__AskForApproval = |
| 9248 | | "untrusted" | 11072 | | "untrusted" |
| ... | @@ -9271,12 +11095,51 @@ export const V2ThreadStartParams__AskForApproval = Schema.Union( | ... | @@ -9271,12 +11095,51 @@ export const V2ThreadStartParams__AskForApproval = Schema.Union( |
| 9271 | }).annotate({ title: "GranularAskForApproval" }), | 11095 | }).annotate({ title: "GranularAskForApproval" }), |
| 9272 | ], | 11096 | ], |
| 9273 | { mode: "oneOf" }, | 11097 | { mode: "oneOf" }, |
| 9274 | ); | 11098 | ).annotate({ identifier: "V2ThreadStartParams__AskForApproval" }); |
| | 11099 | |
| | 11100 | export type V2ThreadStartParams__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent"; |
| | 11101 | export const V2ThreadStartParams__ApprovalsReviewer = Schema.Literals([ |
| | 11102 | "user", |
| | 11103 | "auto_review", |
| | 11104 | "guardian_subagent", |
| | 11105 | ]).annotate({ |
| | 11106 | description: |
| | 11107 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", |
| | 11108 | identifier: "V2ThreadStartParams__ApprovalsReviewer", |
| | 11109 | }); |
| | 11110 | |
| | 11111 | export type V2ThreadStartParams__Personality = "none" | "friendly" | "pragmatic"; |
| | 11112 | export const V2ThreadStartParams__Personality = Schema.Literals([ |
| | 11113 | "none", |
| | 11114 | "friendly", |
| | 11115 | "pragmatic", |
| | 11116 | ]).annotate({ identifier: "V2ThreadStartParams__Personality" }); |
| | 11117 | |
| | 11118 | export type V2ThreadStartParams__SandboxMode = |
| | 11119 | | "read-only" |
| | 11120 | | "workspace-write" |
| | 11121 | | "danger-full-access"; |
| | 11122 | export const V2ThreadStartParams__SandboxMode = Schema.Literals([ |
| | 11123 | "read-only", |
| | 11124 | "workspace-write", |
| | 11125 | "danger-full-access", |
| | 11126 | ]).annotate({ identifier: "V2ThreadStartParams__SandboxMode" }); |
| | 11127 | |
| | 11128 | export type V2ThreadStartParams__ThreadStartSource = "startup" | "clear"; |
| | 11129 | export const V2ThreadStartParams__ThreadStartSource = Schema.Literals([ |
| | 11130 | "startup", |
| | 11131 | "clear", |
| | 11132 | ]).annotate({ identifier: "V2ThreadStartParams__ThreadStartSource" }); |
| | 11133 | |
| | 11134 | export type V2ThreadStartParams__ThreadSource = string; |
| | 11135 | export const V2ThreadStartParams__ThreadSource = Schema.String.annotate({ |
| | 11136 | identifier: "V2ThreadStartParams__ThreadSource", |
| | 11137 | }); |
| 9275 | | 11138 | |
| 9276 | export type V2ThreadStartParams__DynamicToolNamespaceTool = { | 11139 | export type V2ThreadStartParams__DynamicToolNamespaceTool = { |
| 9277 | readonly deferLoading?: boolean; | 11140 | readonly deferLoading?: boolean; |
| 9278 | readonly description: string; | 11141 | readonly description: string; |
| 9279 | readonly inputSchema: unknown; | 11142 | readonly inputSchema: Schema.Json; |
| 9280 | readonly name: string; | 11143 | readonly name: string; |
| 9281 | readonly type: "function"; | 11144 | readonly type: "function"; |
| 9282 | }; | 11145 | }; |
| ... | @@ -9285,44 +11148,44 @@ export const V2ThreadStartParams__DynamicToolNamespaceTool = Schema.Union( | ... | @@ -9285,44 +11148,44 @@ export const V2ThreadStartParams__DynamicToolNamespaceTool = Schema.Union( |
| 9285 | Schema.Struct({ | 11148 | Schema.Struct({ |
| 9286 | deferLoading: Schema.optionalKey(Schema.Boolean), | 11149 | deferLoading: Schema.optionalKey(Schema.Boolean), |
| 9287 | description: Schema.String, | 11150 | description: Schema.String, |
| 9288 | inputSchema: Schema.Unknown, | 11151 | inputSchema: Schema.Json.annotate({ expected: "JSON value" }), |
| 9289 | name: Schema.String, | 11152 | name: Schema.String, |
| 9290 | type: Schema.Literal("function").annotate({ title: "FunctionDynamicToolNamespaceToolType" }), | 11153 | type: Schema.Literal("function").annotate({ title: "FunctionDynamicToolNamespaceToolType" }), |
| 9291 | }).annotate({ title: "FunctionDynamicToolNamespaceTool" }), | 11154 | }).annotate({ title: "FunctionDynamicToolNamespaceTool" }), |
| 9292 | ], | 11155 | ], |
| 9293 | { mode: "oneOf" }, | 11156 | { mode: "oneOf" }, |
| 9294 | ); | 11157 | ).annotate({ identifier: "V2ThreadStartParams__DynamicToolNamespaceTool" }); |
| 9295 | | | |
| 9296 | export type V2ThreadStartParams__LegacyAppPathString = string; | | |
| 9297 | export const V2ThreadStartParams__LegacyAppPathString = Schema.String; | | |
| 9298 | | | |
| 9299 | export type V2ThreadStartParams__Personality = "none" | "friendly" | "pragmatic"; | | |
| 9300 | export const V2ThreadStartParams__Personality = Schema.Literals(["none", "friendly", "pragmatic"]); | | |
| 9301 | | | |
| 9302 | export type V2ThreadStartParams__SandboxMode = | | |
| 9303 | | "read-only" | | |
| 9304 | | "workspace-write" | | |
| 9305 | | "danger-full-access"; | | |
| 9306 | export const V2ThreadStartParams__SandboxMode = Schema.Literals([ | | |
| 9307 | "read-only", | | |
| 9308 | "workspace-write", | | |
| 9309 | "danger-full-access", | | |
| 9310 | ]); | | |
| 9311 | | 11158 | |
| 9312 | export type V2ThreadStartParams__ThreadSource = string; | 11159 | export type V2ThreadStartParams__CapabilityRootLocation = { |
| 9313 | export const V2ThreadStartParams__ThreadSource = Schema.String; | 11160 | readonly environmentId: string; |
| 9314 | | 11161 | readonly path: string; |
| 9315 | export type V2ThreadStartParams__ThreadStartSource = "startup" | "clear"; | 11162 | readonly type: "environment"; |
| 9316 | export const V2ThreadStartParams__ThreadStartSource = Schema.Literals(["startup", "clear"]); | 11163 | }; |
| 9317 | | 11164 | export const V2ThreadStartParams__CapabilityRootLocation = Schema.Union( |
| 9318 | export type V2ThreadStartResponse__AbsolutePathBuf = string; | 11165 | [ |
| 9319 | export const V2ThreadStartResponse__AbsolutePathBuf = Schema.String.annotate({ | 11166 | Schema.Struct({ |
| 9320 | description: | 11167 | environmentId: Schema.String, |
| 9321 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 11168 | path: Schema.String.annotate({ |
| | 11169 | description: "Absolute path for the root in the selected environment.", |
| | 11170 | }), |
| | 11171 | type: Schema.Literal("environment").annotate({ |
| | 11172 | title: "EnvironmentCapabilityRootLocationType", |
| | 11173 | }), |
| | 11174 | }).annotate({ |
| | 11175 | title: "EnvironmentCapabilityRootLocation", |
| | 11176 | description: "A path owned by an execution environment.", |
| | 11177 | }), |
| | 11178 | ], |
| | 11179 | { mode: "oneOf" }, |
| | 11180 | ).annotate({ |
| | 11181 | description: "Location used to resolve a selected capability root.", |
| | 11182 | identifier: "V2ThreadStartParams__CapabilityRootLocation", |
| 9322 | }); | 11183 | }); |
| 9323 | | 11184 | |
| 9324 | export type V2ThreadStartResponse__AgentPath = string; | 11185 | export type V2ThreadStartParams__LegacyAppPathString = string; |
| 9325 | export const V2ThreadStartResponse__AgentPath = Schema.String; | 11186 | export const V2ThreadStartParams__LegacyAppPathString = Schema.String.annotate({ |
| | 11187 | identifier: "V2ThreadStartParams__LegacyAppPathString", |
| | 11188 | }); |
| 9326 | | 11189 | |
| 9327 | export type V2ThreadStartResponse__AskForApproval = | 11190 | export type V2ThreadStartResponse__AskForApproval = |
| 9328 | | "untrusted" | 11191 | | "untrusted" |
| ... | @@ -9351,72 +11214,46 @@ export const V2ThreadStartResponse__AskForApproval = Schema.Union( | ... | @@ -9351,72 +11214,46 @@ export const V2ThreadStartResponse__AskForApproval = Schema.Union( |
| 9351 | }).annotate({ title: "GranularAskForApproval" }), | 11214 | }).annotate({ title: "GranularAskForApproval" }), |
| 9352 | ], | 11215 | ], |
| 9353 | { mode: "oneOf" }, | 11216 | { mode: "oneOf" }, |
| 9354 | ); | 11217 | ).annotate({ identifier: "V2ThreadStartResponse__AskForApproval" }); |
| 9355 | | 11218 | |
| 9356 | export type V2ThreadStartResponse__CollabAgentStatus = | 11219 | export type V2ThreadStartResponse__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent"; |
| 9357 | | "pendingInit" | 11220 | export const V2ThreadStartResponse__ApprovalsReviewer = Schema.Literals([ |
| 9358 | | "running" | 11221 | "user", |
| 9359 | | "interrupted" | 11222 | "auto_review", |
| 9360 | | "completed" | 11223 | "guardian_subagent", |
| 9361 | | "errored" | 11224 | ]).annotate({ |
| 9362 | | "shutdown" | 11225 | description: |
| 9363 | | "notFound"; | 11226 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", |
| 9364 | export const V2ThreadStartResponse__CollabAgentStatus = Schema.Literals([ | 11227 | identifier: "V2ThreadStartResponse__ApprovalsReviewer", |
| 9365 | "pendingInit", | 11228 | }); |
| 9366 | "running", | | |
| 9367 | "interrupted", | | |
| 9368 | "completed", | | |
| 9369 | "errored", | | |
| 9370 | "shutdown", | | |
| 9371 | "notFound", | | |
| 9372 | ]); | | |
| 9373 | | 11229 | |
| 9374 | export type V2ThreadStartResponse__CommandExecutionStatus = | 11230 | export type V2ThreadStartResponse__AbsolutePathBuf = string; |
| 9375 | | "inProgress" | 11231 | export const V2ThreadStartResponse__AbsolutePathBuf = Schema.String.annotate({ |
| 9376 | | "completed" | 11232 | description: |
| 9377 | | "failed" | 11233 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| 9378 | | "declined"; | 11234 | identifier: "V2ThreadStartResponse__AbsolutePathBuf", |
| 9379 | export const V2ThreadStartResponse__CommandExecutionStatus = Schema.Literals([ | 11235 | }); |
| 9380 | "inProgress", | | |
| 9381 | "completed", | | |
| 9382 | "failed", | | |
| 9383 | "declined", | | |
| 9384 | ]); | | |
| 9385 | | 11236 | |
| 9386 | export type V2ThreadStartResponse__DynamicToolCallOutputContentItem = | 11237 | export type V2ThreadStartResponse__LegacyAppPathString = string; |
| 9387 | | { readonly text: string; readonly type: "inputText" } | 11238 | export const V2ThreadStartResponse__LegacyAppPathString = Schema.String.annotate({ |
| 9388 | | { readonly imageUrl: string; readonly type: "inputImage" } | 11239 | identifier: "V2ThreadStartResponse__LegacyAppPathString", |
| 9389 | | { readonly audioUrl: string; readonly type: "inputAudio" }; | 11240 | }); |
| 9390 | export const V2ThreadStartResponse__DynamicToolCallOutputContentItem = Schema.Union( | 11241 | |
| 9391 | [ | 11242 | export type V2ThreadStartResponse__ReasoningEffort = string; |
| 9392 | Schema.Struct({ | 11243 | export const V2ThreadStartResponse__ReasoningEffort = Schema.String.annotate({ |
| 9393 | text: Schema.String, | 11244 | description: "A non-empty reasoning effort value advertised by the model.", |
| 9394 | type: Schema.Literal("inputText").annotate({ | 11245 | }).check( |
| 9395 | title: "InputTextDynamicToolCallOutputContentItemType", | 11246 | Schema.isMinLength(1).annotate({ |
| 9396 | }), | 11247 | expected: "a value with a length of at least 1", |
| 9397 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), | 11248 | identifier: "V2ThreadStartResponse__ReasoningEffort", |
| 9398 | Schema.Struct({ | 11249 | }), |
| 9399 | imageUrl: Schema.String, | | |
| 9400 | type: Schema.Literal("inputImage").annotate({ | | |
| 9401 | title: "InputImageDynamicToolCallOutputContentItemType", | | |
| 9402 | }), | | |
| 9403 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), | | |
| 9404 | Schema.Struct({ | | |
| 9405 | audioUrl: Schema.String, | | |
| 9406 | type: Schema.Literal("inputAudio").annotate({ | | |
| 9407 | title: "InputAudioDynamicToolCallOutputContentItemType", | | |
| 9408 | }), | | |
| 9409 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), | | |
| 9410 | ], | | |
| 9411 | { mode: "oneOf" }, | | |
| 9412 | ); | 11250 | ); |
| 9413 | | 11251 | |
| 9414 | export type V2ThreadStartResponse__DynamicToolCallStatus = "inProgress" | "completed" | "failed"; | 11252 | export type V2ThreadStartResponse__NetworkAccess = "restricted" | "enabled"; |
| 9415 | export const V2ThreadStartResponse__DynamicToolCallStatus = Schema.Literals([ | 11253 | export const V2ThreadStartResponse__NetworkAccess = Schema.Literals([ |
| 9416 | "inProgress", | 11254 | "restricted", |
| 9417 | "completed", | 11255 | "enabled", |
| 9418 | "failed", | 11256 | ]).annotate({ identifier: "V2ThreadStartResponse__NetworkAccess" }); |
| 9419 | ]); | | |
| 9420 | | 11257 | |
| 9421 | export type V2ThreadStartResponse__GitInfo = { | 11258 | export type V2ThreadStartResponse__GitInfo = { |
| 9422 | readonly branch?: string | null; | 11259 | readonly branch?: string | null; |
| ... | @@ -9427,63 +11264,65 @@ export const V2ThreadStartResponse__GitInfo = Schema.Struct({ | ... | @@ -9427,63 +11264,65 @@ export const V2ThreadStartResponse__GitInfo = Schema.Struct({ |
| 9427 | branch: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 11264 | branch: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 9428 | originUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 11265 | originUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 9429 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 11266 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 11267 | }).annotate({ identifier: "V2ThreadStartResponse__GitInfo" }); |
| | 11268 | |
| | 11269 | export type V2ThreadStartResponse__AgentPath = string; |
| | 11270 | export const V2ThreadStartResponse__AgentPath = Schema.String.annotate({ |
| | 11271 | identifier: "V2ThreadStartResponse__AgentPath", |
| 9430 | }); | 11272 | }); |
| 9431 | | 11273 | |
| 9432 | export type V2ThreadStartResponse__HookPromptFragment = { | 11274 | export type V2ThreadStartResponse__ThreadId = string; |
| 9433 | readonly hookRunId: string; | 11275 | export const V2ThreadStartResponse__ThreadId = Schema.String.annotate({ |
| 9434 | readonly text: string; | 11276 | identifier: "V2ThreadStartResponse__ThreadId", |
| 9435 | }; | | |
| 9436 | export const V2ThreadStartResponse__HookPromptFragment = Schema.Struct({ | | |
| 9437 | hookRunId: Schema.String, | | |
| 9438 | text: Schema.String, | | |
| 9439 | }); | 11277 | }); |
| 9440 | | 11278 | |
| 9441 | export type V2ThreadStartResponse__ImageDetail = "auto" | "low" | "high" | "original"; | 11279 | export type V2ThreadStartResponse__ThreadActiveFlag = "waitingOnApproval" | "waitingOnUserInput"; |
| 9442 | export const V2ThreadStartResponse__ImageDetail = Schema.Literals([ | 11280 | export const V2ThreadStartResponse__ThreadActiveFlag = Schema.Literals([ |
| 9443 | "auto", | 11281 | "waitingOnApproval", |
| 9444 | "low", | 11282 | "waitingOnUserInput", |
| 9445 | "high", | 11283 | ]).annotate({ identifier: "V2ThreadStartResponse__ThreadActiveFlag" }); |
| 9446 | "original", | | |
| 9447 | ]); | | |
| 9448 | | 11284 | |
| 9449 | export type V2ThreadStartResponse__LegacyAppPathString = string; | 11285 | export type V2ThreadStartResponse__ThreadSource = string; |
| 9450 | export const V2ThreadStartResponse__LegacyAppPathString = Schema.String; | 11286 | export const V2ThreadStartResponse__ThreadSource = Schema.String.annotate({ |
| | 11287 | identifier: "V2ThreadStartResponse__ThreadSource", |
| | 11288 | }); |
| 9451 | | 11289 | |
| 9452 | export type V2ThreadStartResponse__McpToolCallAppContext = { | 11290 | export type V2ThreadStartResponse__NonSteerableTurnKind = "review" | "compact"; |
| 9453 | readonly actionName?: string | null; | 11291 | export const V2ThreadStartResponse__NonSteerableTurnKind = Schema.Literals([ |
| 9454 | readonly appName?: string | null; | 11292 | "review", |
| 9455 | readonly connectorId: string; | 11293 | "compact", |
| 9456 | readonly linkId?: string | null; | 11294 | ]).annotate({ identifier: "V2ThreadStartResponse__NonSteerableTurnKind" }); |
| 9457 | readonly resourceUri?: string | null; | | |
| 9458 | }; | | |
| 9459 | export const V2ThreadStartResponse__McpToolCallAppContext = Schema.Struct({ | | |
| 9460 | actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 9461 | appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 9462 | connectorId: Schema.String, | | |
| 9463 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 9464 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 9465 | }); | | |
| 9466 | | 11295 | |
| 9467 | export type V2ThreadStartResponse__McpToolCallError = { readonly message: string }; | 11296 | export type V2ThreadStartResponse__ByteRange = { readonly end: number; readonly start: number }; |
| 9468 | export const V2ThreadStartResponse__McpToolCallError = Schema.Struct({ message: Schema.String }); | 11297 | export const V2ThreadStartResponse__ByteRange = Schema.Struct({ |
| | 11298 | end: Schema.Number.annotate({ format: "uint" }) |
| | 11299 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 11300 | .check( |
| | 11301 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 11302 | ), |
| | 11303 | start: Schema.Number.annotate({ format: "uint" }) |
| | 11304 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 11305 | .check( |
| | 11306 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 11307 | ), |
| | 11308 | }).annotate({ identifier: "V2ThreadStartResponse__ByteRange" }); |
| 9469 | | 11309 | |
| 9470 | export type V2ThreadStartResponse__McpToolCallResult = { | 11310 | export type V2ThreadStartResponse__ImageDetail = "auto" | "low" | "high" | "original"; |
| 9471 | readonly _meta?: unknown; | 11311 | export const V2ThreadStartResponse__ImageDetail = Schema.Literals([ |
| 9472 | readonly content: ReadonlyArray<unknown>; | 11312 | "auto", |
| 9473 | readonly structuredContent?: unknown; | 11313 | "low", |
| 9474 | }; | 11314 | "high", |
| 9475 | export const V2ThreadStartResponse__McpToolCallResult = Schema.Struct({ | 11315 | "original", |
| 9476 | _meta: Schema.optionalKey(Schema.Unknown), | 11316 | ]).annotate({ identifier: "V2ThreadStartResponse__ImageDetail" }); |
| 9477 | content: Schema.Array(Schema.Unknown), | | |
| 9478 | structuredContent: Schema.optionalKey(Schema.Unknown), | | |
| 9479 | }); | | |
| 9480 | | 11317 | |
| 9481 | export type V2ThreadStartResponse__McpToolCallStatus = "inProgress" | "completed" | "failed"; | 11318 | export type V2ThreadStartResponse__HookPromptFragment = { |
| 9482 | export const V2ThreadStartResponse__McpToolCallStatus = Schema.Literals([ | 11319 | readonly hookRunId: string; |
| 9483 | "inProgress", | 11320 | readonly text: string; |
| 9484 | "completed", | 11321 | }; |
| 9485 | "failed", | 11322 | export const V2ThreadStartResponse__HookPromptFragment = Schema.Struct({ |
| 9486 | ]); | 11323 | hookRunId: Schema.String, |
| | 11324 | text: Schema.String, |
| | 11325 | }).annotate({ identifier: "V2ThreadStartResponse__HookPromptFragment" }); |
| 9487 | | 11326 | |
| 9488 | export type V2ThreadStartResponse__MemoryCitationEntry = { | 11327 | export type V2ThreadStartResponse__MemoryCitationEntry = { |
| 9489 | readonly lineEnd: number; | 11328 | readonly lineEnd: number; |
| ... | @@ -9493,38 +11332,60 @@ export type V2ThreadStartResponse__MemoryCitationEntry = { | ... | @@ -9493,38 +11332,60 @@ export type V2ThreadStartResponse__MemoryCitationEntry = { |
| 9493 | }; | 11332 | }; |
| 9494 | export const V2ThreadStartResponse__MemoryCitationEntry = Schema.Struct({ | 11333 | export const V2ThreadStartResponse__MemoryCitationEntry = Schema.Struct({ |
| 9495 | lineEnd: Schema.Number.annotate({ format: "uint32" }) | 11334 | lineEnd: Schema.Number.annotate({ format: "uint32" }) |
| 9496 | .check(Schema.isInt()) | 11335 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 9497 | .check(Schema.isGreaterThanOrEqualTo(0)), | 11336 | .check( |
| | 11337 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 11338 | ), |
| 9498 | lineStart: Schema.Number.annotate({ format: "uint32" }) | 11339 | lineStart: Schema.Number.annotate({ format: "uint32" }) |
| 9499 | .check(Schema.isInt()) | 11340 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 9500 | .check(Schema.isGreaterThanOrEqualTo(0)), | 11341 | .check( |
| | 11342 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 11343 | ), |
| 9501 | note: Schema.String, | 11344 | note: Schema.String, |
| 9502 | path: Schema.String, | 11345 | path: Schema.String, |
| 9503 | }); | 11346 | }).annotate({ identifier: "V2ThreadStartResponse__MemoryCitationEntry" }); |
| 9504 | | 11347 | |
| 9505 | export type V2ThreadStartResponse__MessagePhase = "commentary" | "final_answer"; | 11348 | export type V2ThreadStartResponse__MessagePhase = "commentary" | "final_answer"; |
| 9506 | export const V2ThreadStartResponse__MessagePhase = Schema.Literals([ | 11349 | export const V2ThreadStartResponse__MessagePhase = Schema.Union( |
| 9507 | "commentary", | 11350 | [ |
| 9508 | "final_answer", | 11351 | Schema.Literal("commentary").annotate({ |
| 9509 | ]).annotate({ | 11352 | description: |
| | 11353 | "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.", |
| | 11354 | }), |
| | 11355 | Schema.Literal("final_answer").annotate({ |
| | 11356 | description: "The assistant's terminal answer text for the current turn.", |
| | 11357 | }), |
| | 11358 | ], |
| | 11359 | { mode: "oneOf" }, |
| | 11360 | ).annotate({ |
| 9510 | description: | 11361 | description: |
| 9511 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', | 11362 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', |
| | 11363 | identifier: "V2ThreadStartResponse__MessagePhase", |
| 9512 | }); | 11364 | }); |
| 9513 | | 11365 | |
| 9514 | export type V2ThreadStartResponse__NonSteerableTurnKind = "review" | "compact"; | 11366 | export type V2ThreadStartResponse__CommandExecutionSource = |
| 9515 | export const V2ThreadStartResponse__NonSteerableTurnKind = Schema.Literals(["review", "compact"]); | 11367 | | "agent" |
| | 11368 | | "userShell" |
| | 11369 | | "unifiedExecStartup" |
| | 11370 | | "unifiedExecInteraction"; |
| | 11371 | export const V2ThreadStartResponse__CommandExecutionSource = Schema.Literals([ |
| | 11372 | "agent", |
| | 11373 | "userShell", |
| | 11374 | "unifiedExecStartup", |
| | 11375 | "unifiedExecInteraction", |
| | 11376 | ]).annotate({ identifier: "V2ThreadStartResponse__CommandExecutionSource" }); |
| 9516 | | 11377 | |
| 9517 | export type V2ThreadStartResponse__PatchApplyStatus = | 11378 | export type V2ThreadStartResponse__CommandExecutionStatus = |
| 9518 | | "inProgress" | 11379 | | "inProgress" |
| 9519 | | "completed" | 11380 | | "completed" |
| 9520 | | "failed" | 11381 | | "failed" |
| 9521 | | "declined"; | 11382 | | "declined"; |
| 9522 | export const V2ThreadStartResponse__PatchApplyStatus = Schema.Literals([ | 11383 | export const V2ThreadStartResponse__CommandExecutionStatus = Schema.Literals([ |
| 9523 | "inProgress", | 11384 | "inProgress", |
| 9524 | "completed", | 11385 | "completed", |
| 9525 | "failed", | 11386 | "failed", |
| 9526 | "declined", | 11387 | "declined", |
| 9527 | ]); | 11388 | ]).annotate({ identifier: "V2ThreadStartResponse__CommandExecutionStatus" }); |
| 9528 | | 11389 | |
| 9529 | export type V2ThreadStartResponse__PatchChangeKind = | 11390 | export type V2ThreadStartResponse__PatchChangeKind = |
| 9530 | | { readonly type: "add" } | 11391 | | { readonly type: "add" } |
| ... | @@ -9544,73 +11405,156 @@ export const V2ThreadStartResponse__PatchChangeKind = Schema.Union( | ... | @@ -9544,73 +11405,156 @@ export const V2ThreadStartResponse__PatchChangeKind = Schema.Union( |
| 9544 | }).annotate({ title: "UpdatePatchChangeKind" }), | 11405 | }).annotate({ title: "UpdatePatchChangeKind" }), |
| 9545 | ], | 11406 | ], |
| 9546 | { mode: "oneOf" }, | 11407 | { mode: "oneOf" }, |
| 9547 | ); | 11408 | ).annotate({ identifier: "V2ThreadStartResponse__PatchChangeKind" }); |
| 9548 | | | |
| 9549 | export type V2ThreadStartResponse__ReasoningEffort = string; | | |
| 9550 | export const V2ThreadStartResponse__ReasoningEffort = Schema.String.annotate({ | | |
| 9551 | description: "A non-empty reasoning effort value advertised by the model.", | | |
| 9552 | }).check(Schema.isMinLength(1)); | | |
| 9553 | | 11409 | |
| 9554 | export type V2ThreadStartResponse__SubAgentActivityKind = | 11410 | export type V2ThreadStartResponse__PatchApplyStatus = |
| 9555 | | "started" | 11411 | | "inProgress" |
| 9556 | | "interacted" | 11412 | | "completed" |
| 9557 | | "interrupted" | 11413 | | "failed" |
| 9558 | | "completed"; | 11414 | | "declined"; |
| 9559 | export const V2ThreadStartResponse__SubAgentActivityKind = Schema.Literals([ | 11415 | export const V2ThreadStartResponse__PatchApplyStatus = Schema.Literals([ |
| 9560 | "started", | 11416 | "inProgress", |
| 9561 | "interacted", | | |
| 9562 | "interrupted", | | |
| 9563 | "completed", | 11417 | "completed", |
| 9564 | ]); | 11418 | "failed", |
| | 11419 | "declined", |
| | 11420 | ]).annotate({ identifier: "V2ThreadStartResponse__PatchApplyStatus" }); |
| 9565 | | 11421 | |
| 9566 | export type V2ThreadStartResponse__TextElement = { | 11422 | export type V2ThreadStartResponse__McpToolCallAppContext = { |
| 9567 | readonly byteRange: { readonly end: number; readonly start: number }; | 11423 | readonly actionName?: string | null; |
| 9568 | readonly placeholder?: string | null; | 11424 | readonly appName?: string | null; |
| | 11425 | readonly connectorId: string; |
| | 11426 | readonly linkId?: string | null; |
| | 11427 | readonly resourceUri?: string | null; |
| 9569 | }; | 11428 | }; |
| 9570 | export const V2ThreadStartResponse__TextElement = Schema.Struct({ | 11429 | export const V2ThreadStartResponse__McpToolCallAppContext = Schema.Struct({ |
| 9571 | byteRange: Schema.Struct({ | 11430 | actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 9572 | end: Schema.Number.annotate({ format: "uint" }) | 11431 | appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 9573 | .check(Schema.isInt()) | 11432 | connectorId: Schema.String, |
| 9574 | .check(Schema.isGreaterThanOrEqualTo(0)), | 11433 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 9575 | start: Schema.Number.annotate({ format: "uint" }) | 11434 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 9576 | .check(Schema.isInt()) | 11435 | }).annotate({ identifier: "V2ThreadStartResponse__McpToolCallAppContext" }); |
| 9577 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 9578 | }).annotate({ | | |
| 9579 | description: "Byte range in the parent `text` buffer that this element occupies.", | | |
| 9580 | }), | | |
| 9581 | placeholder: Schema.optionalKey( | | |
| 9582 | Schema.Union([ | | |
| 9583 | Schema.String.annotate({ | | |
| 9584 | description: "Optional human-readable placeholder for the element, displayed in the UI.", | | |
| 9585 | }), | | |
| 9586 | Schema.Null, | | |
| 9587 | ]), | | |
| 9588 | ), | | |
| 9589 | }); | | |
| 9590 | | 11436 | |
| 9591 | export type V2ThreadStartResponse__ThreadActiveFlag = "waitingOnApproval" | "waitingOnUserInput"; | 11437 | export type V2ThreadStartResponse__McpToolCallError = { readonly message: string }; |
| 9592 | export const V2ThreadStartResponse__ThreadActiveFlag = Schema.Literals([ | 11438 | export const V2ThreadStartResponse__McpToolCallError = Schema.Struct({ |
| 9593 | "waitingOnApproval", | 11439 | message: Schema.String, |
| 9594 | "waitingOnUserInput", | 11440 | }).annotate({ identifier: "V2ThreadStartResponse__McpToolCallError" }); |
| 9595 | ]); | | |
| 9596 | | 11441 | |
| 9597 | export type V2ThreadStartResponse__ThreadId = string; | 11442 | export type V2ThreadStartResponse__McpToolCallResult = { |
| 9598 | export const V2ThreadStartResponse__ThreadId = Schema.String; | 11443 | readonly _meta?: Schema.Json; |
| | 11444 | readonly content: ReadonlyArray<Schema.Json>; |
| | 11445 | readonly structuredContent?: Schema.Json; |
| | 11446 | }; |
| | 11447 | export const V2ThreadStartResponse__McpToolCallResult = Schema.Struct({ |
| | 11448 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 11449 | content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), |
| | 11450 | structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 11451 | }).annotate({ identifier: "V2ThreadStartResponse__McpToolCallResult" }); |
| 9599 | | 11452 | |
| 9600 | export type V2ThreadStartResponse__ThreadSource = string; | 11453 | export type V2ThreadStartResponse__McpToolCallStatus = "inProgress" | "completed" | "failed"; |
| 9601 | export const V2ThreadStartResponse__ThreadSource = Schema.String; | 11454 | export const V2ThreadStartResponse__McpToolCallStatus = Schema.Literals([ |
| | 11455 | "inProgress", |
| | 11456 | "completed", |
| | 11457 | "failed", |
| | 11458 | ]).annotate({ identifier: "V2ThreadStartResponse__McpToolCallStatus" }); |
| 9602 | | 11459 | |
| 9603 | export type V2ThreadStartResponse__TurnStatus = | 11460 | export type V2ThreadStartResponse__DynamicToolCallOutputContentItem = |
| 9604 | | "completed" | 11461 | | { readonly text: string; readonly type: "inputText" } |
| | 11462 | | { readonly imageUrl: string; readonly type: "inputImage" } |
| | 11463 | | { readonly audioUrl: string; readonly type: "inputAudio" }; |
| | 11464 | export const V2ThreadStartResponse__DynamicToolCallOutputContentItem = Schema.Union( |
| | 11465 | [ |
| | 11466 | Schema.Struct({ |
| | 11467 | text: Schema.String, |
| | 11468 | type: Schema.Literal("inputText").annotate({ |
| | 11469 | title: "InputTextDynamicToolCallOutputContentItemType", |
| | 11470 | }), |
| | 11471 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), |
| | 11472 | Schema.Struct({ |
| | 11473 | imageUrl: Schema.String, |
| | 11474 | type: Schema.Literal("inputImage").annotate({ |
| | 11475 | title: "InputImageDynamicToolCallOutputContentItemType", |
| | 11476 | }), |
| | 11477 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), |
| | 11478 | Schema.Struct({ |
| | 11479 | audioUrl: Schema.String, |
| | 11480 | type: Schema.Literal("inputAudio").annotate({ |
| | 11481 | title: "InputAudioDynamicToolCallOutputContentItemType", |
| | 11482 | }), |
| | 11483 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), |
| | 11484 | ], |
| | 11485 | { mode: "oneOf" }, |
| | 11486 | ).annotate({ identifier: "V2ThreadStartResponse__DynamicToolCallOutputContentItem" }); |
| | 11487 | |
| | 11488 | export type V2ThreadStartResponse__DynamicToolCallStatus = "inProgress" | "completed" | "failed"; |
| | 11489 | export const V2ThreadStartResponse__DynamicToolCallStatus = Schema.Literals([ |
| | 11490 | "inProgress", |
| | 11491 | "completed", |
| | 11492 | "failed", |
| | 11493 | ]).annotate({ identifier: "V2ThreadStartResponse__DynamicToolCallStatus" }); |
| | 11494 | |
| | 11495 | export type V2ThreadStartResponse__CollabAgentStatus = |
| | 11496 | | "pendingInit" |
| | 11497 | | "running" |
| 9605 | | "interrupted" | 11498 | | "interrupted" |
| | 11499 | | "completed" |
| | 11500 | | "errored" |
| | 11501 | | "shutdown" |
| | 11502 | | "notFound"; |
| | 11503 | export const V2ThreadStartResponse__CollabAgentStatus = Schema.Literals([ |
| | 11504 | "pendingInit", |
| | 11505 | "running", |
| | 11506 | "interrupted", |
| | 11507 | "completed", |
| | 11508 | "errored", |
| | 11509 | "shutdown", |
| | 11510 | "notFound", |
| | 11511 | ]).annotate({ identifier: "V2ThreadStartResponse__CollabAgentStatus" }); |
| | 11512 | |
| | 11513 | export type V2ThreadStartResponse__CollabAgentToolCallStatus = |
| | 11514 | | "inProgress" |
| | 11515 | | "completed" |
| 9606 | | "failed" | 11516 | | "failed" |
| 9607 | | "inProgress"; | 11517 | | "interrupted"; |
| 9608 | export const V2ThreadStartResponse__TurnStatus = Schema.Literals([ | 11518 | export const V2ThreadStartResponse__CollabAgentToolCallStatus = Schema.Literals([ |
| | 11519 | "inProgress", |
| 9609 | "completed", | 11520 | "completed", |
| 9610 | "interrupted", | | |
| 9611 | "failed", | 11521 | "failed", |
| 9612 | "inProgress", | 11522 | "interrupted", |
| 9613 | ]); | 11523 | ]).annotate({ identifier: "V2ThreadStartResponse__CollabAgentToolCallStatus" }); |
| | 11524 | |
| | 11525 | export type V2ThreadStartResponse__CollabAgentTool = |
| | 11526 | | "spawnAgent" |
| | 11527 | | "sendInput" |
| | 11528 | | "resumeAgent" |
| | 11529 | | "wait" |
| | 11530 | | "closeAgent" |
| | 11531 | | "sendMessage" |
| | 11532 | | "followupTask" |
| | 11533 | | "interruptAgent" |
| | 11534 | | "listAgents"; |
| | 11535 | export const V2ThreadStartResponse__CollabAgentTool = Schema.Literals([ |
| | 11536 | "spawnAgent", |
| | 11537 | "sendInput", |
| | 11538 | "resumeAgent", |
| | 11539 | "wait", |
| | 11540 | "closeAgent", |
| | 11541 | "sendMessage", |
| | 11542 | "followupTask", |
| | 11543 | "interruptAgent", |
| | 11544 | "listAgents", |
| | 11545 | ]).annotate({ identifier: "V2ThreadStartResponse__CollabAgentTool" }); |
| | 11546 | |
| | 11547 | export type V2ThreadStartResponse__SubAgentActivityKind = |
| | 11548 | | "started" |
| | 11549 | | "interacted" |
| | 11550 | | "interrupted" |
| | 11551 | | "completed"; |
| | 11552 | export const V2ThreadStartResponse__SubAgentActivityKind = Schema.Literals([ |
| | 11553 | "started", |
| | 11554 | "interacted", |
| | 11555 | "interrupted", |
| | 11556 | "completed", |
| | 11557 | ]).annotate({ identifier: "V2ThreadStartResponse__SubAgentActivityKind" }); |
| 9614 | | 11558 | |
| 9615 | export type V2ThreadStartResponse__WebSearchAction = | 11559 | export type V2ThreadStartResponse__WebSearchAction = |
| 9616 | | { | 11560 | | { |
| ... | @@ -9642,7 +11586,36 @@ export const V2ThreadStartResponse__WebSearchAction = Schema.Union( | ... | @@ -9642,7 +11586,36 @@ export const V2ThreadStartResponse__WebSearchAction = Schema.Union( |
| 9642 | }).annotate({ title: "OtherWebSearchAction" }), | 11586 | }).annotate({ title: "OtherWebSearchAction" }), |
| 9643 | ], | 11587 | ], |
| 9644 | { mode: "oneOf" }, | 11588 | { mode: "oneOf" }, |
| 9645 | ); | 11589 | ).annotate({ identifier: "V2ThreadStartResponse__WebSearchAction" }); |
| | 11590 | |
| | 11591 | export type V2ThreadStartResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| | 11592 | export const V2ThreadStartResponse__TurnItemsView = Schema.Union( |
| | 11593 | [ |
| | 11594 | Schema.Literal("notLoaded").annotate({ |
| | 11595 | description: "`items` was not loaded for this turn. The field is intentionally empty.", |
| | 11596 | }), |
| | 11597 | Schema.Literal("summary").annotate({ |
| | 11598 | description: "`items` contains only a display summary for this turn.", |
| | 11599 | }), |
| | 11600 | Schema.Literal("full").annotate({ |
| | 11601 | description: |
| | 11602 | "`items` contains every ThreadItem available from persisted app-server history for this turn.", |
| | 11603 | }), |
| | 11604 | ], |
| | 11605 | { mode: "oneOf" }, |
| | 11606 | ).annotate({ identifier: "V2ThreadStartResponse__TurnItemsView" }); |
| | 11607 | |
| | 11608 | export type V2ThreadStartResponse__TurnStatus = |
| | 11609 | | "completed" |
| | 11610 | | "interrupted" |
| | 11611 | | "failed" |
| | 11612 | | "inProgress"; |
| | 11613 | export const V2ThreadStartResponse__TurnStatus = Schema.Literals([ |
| | 11614 | "completed", |
| | 11615 | "interrupted", |
| | 11616 | "failed", |
| | 11617 | "inProgress", |
| | 11618 | ]).annotate({ identifier: "V2ThreadStartResponse__TurnStatus" }); |
| 9646 | | 11619 | |
| 9647 | export type V2ThreadStatusChangedNotification__ThreadActiveFlag = | 11620 | export type V2ThreadStatusChangedNotification__ThreadActiveFlag = |
| 9648 | | "waitingOnApproval" | 11621 | | "waitingOnApproval" |
| ... | @@ -9650,7 +11623,7 @@ export type V2ThreadStatusChangedNotification__ThreadActiveFlag = | ... | @@ -9650,7 +11623,7 @@ export type V2ThreadStatusChangedNotification__ThreadActiveFlag = |
| 9650 | export const V2ThreadStatusChangedNotification__ThreadActiveFlag = Schema.Literals([ | 11623 | export const V2ThreadStatusChangedNotification__ThreadActiveFlag = Schema.Literals([ |
| 9651 | "waitingOnApproval", | 11624 | "waitingOnApproval", |
| 9652 | "waitingOnUserInput", | 11625 | "waitingOnUserInput", |
| 9653 | ]); | 11626 | ]).annotate({ identifier: "V2ThreadStatusChangedNotification__ThreadActiveFlag" }); |
| 9654 | | 11627 | |
| 9655 | export type V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = { | 11628 | export type V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = { |
| 9656 | readonly cacheWriteInputTokens?: number; | 11629 | readonly cacheWriteInputTokens?: number; |
| ... | @@ -9662,92 +11635,34 @@ export type V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = { | ... | @@ -9662,92 +11635,34 @@ export type V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = { |
| 9662 | }; | 11635 | }; |
| 9663 | export const V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = Schema.Struct({ | 11636 | export const V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = Schema.Struct({ |
| 9664 | cacheWriteInputTokens: Schema.optionalKey( | 11637 | cacheWriteInputTokens: Schema.optionalKey( |
| 9665 | Schema.Number.annotate({ default: 0, format: "int64" }).check(Schema.isInt()), | 11638 | Schema.Number.annotate({ default: 0, format: "int64" }).check( |
| | 11639 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 11640 | ), |
| 9666 | ), | 11641 | ), |
| 9667 | cachedInputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 11642 | cachedInputTokens: Schema.Number.annotate({ format: "int64" }).check( |
| 9668 | inputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 11643 | Schema.isInt().annotate({ expected: "an integer" }), |
| 9669 | outputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 11644 | ), |
| 9670 | reasoningOutputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 11645 | inputTokens: Schema.Number.annotate({ format: "int64" }).check( |
| 9671 | totalTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 11646 | Schema.isInt().annotate({ expected: "an integer" }), |
| 9672 | }); | 11647 | ), |
| | 11648 | outputTokens: Schema.Number.annotate({ format: "int64" }).check( |
| | 11649 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 11650 | ), |
| | 11651 | reasoningOutputTokens: Schema.Number.annotate({ format: "int64" }).check( |
| | 11652 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 11653 | ), |
| | 11654 | totalTokens: Schema.Number.annotate({ format: "int64" }).check( |
| | 11655 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 11656 | ), |
| | 11657 | }).annotate({ identifier: "V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown" }); |
| 9673 | | 11658 | |
| 9674 | export type V2ThreadUnarchiveResponse__AbsolutePathBuf = string; | 11659 | export type V2ThreadUnarchiveResponse__AbsolutePathBuf = string; |
| 9675 | export const V2ThreadUnarchiveResponse__AbsolutePathBuf = Schema.String.annotate({ | 11660 | export const V2ThreadUnarchiveResponse__AbsolutePathBuf = Schema.String.annotate({ |
| 9676 | description: | 11661 | description: |
| 9677 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 11662 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 11663 | identifier: "V2ThreadUnarchiveResponse__AbsolutePathBuf", |
| 9678 | }); | 11664 | }); |
| 9679 | | 11665 | |
| 9680 | export type V2ThreadUnarchiveResponse__AgentPath = string; | | |
| 9681 | export const V2ThreadUnarchiveResponse__AgentPath = Schema.String; | | |
| 9682 | | | |
| 9683 | export type V2ThreadUnarchiveResponse__CollabAgentStatus = | | |
| 9684 | | "pendingInit" | | |
| 9685 | | "running" | | |
| 9686 | | "interrupted" | | |
| 9687 | | "completed" | | |
| 9688 | | "errored" | | |
| 9689 | | "shutdown" | | |
| 9690 | | "notFound"; | | |
| 9691 | export const V2ThreadUnarchiveResponse__CollabAgentStatus = Schema.Literals([ | | |
| 9692 | "pendingInit", | | |
| 9693 | "running", | | |
| 9694 | "interrupted", | | |
| 9695 | "completed", | | |
| 9696 | "errored", | | |
| 9697 | "shutdown", | | |
| 9698 | "notFound", | | |
| 9699 | ]); | | |
| 9700 | | | |
| 9701 | export type V2ThreadUnarchiveResponse__CommandExecutionStatus = | | |
| 9702 | | "inProgress" | | |
| 9703 | | "completed" | | |
| 9704 | | "failed" | | |
| 9705 | | "declined"; | | |
| 9706 | export const V2ThreadUnarchiveResponse__CommandExecutionStatus = Schema.Literals([ | | |
| 9707 | "inProgress", | | |
| 9708 | "completed", | | |
| 9709 | "failed", | | |
| 9710 | "declined", | | |
| 9711 | ]); | | |
| 9712 | | | |
| 9713 | export type V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem = | | |
| 9714 | | { readonly text: string; readonly type: "inputText" } | | |
| 9715 | | { readonly imageUrl: string; readonly type: "inputImage" } | | |
| 9716 | | { readonly audioUrl: string; readonly type: "inputAudio" }; | | |
| 9717 | export const V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem = Schema.Union( | | |
| 9718 | [ | | |
| 9719 | Schema.Struct({ | | |
| 9720 | text: Schema.String, | | |
| 9721 | type: Schema.Literal("inputText").annotate({ | | |
| 9722 | title: "InputTextDynamicToolCallOutputContentItemType", | | |
| 9723 | }), | | |
| 9724 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), | | |
| 9725 | Schema.Struct({ | | |
| 9726 | imageUrl: Schema.String, | | |
| 9727 | type: Schema.Literal("inputImage").annotate({ | | |
| 9728 | title: "InputImageDynamicToolCallOutputContentItemType", | | |
| 9729 | }), | | |
| 9730 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), | | |
| 9731 | Schema.Struct({ | | |
| 9732 | audioUrl: Schema.String, | | |
| 9733 | type: Schema.Literal("inputAudio").annotate({ | | |
| 9734 | title: "InputAudioDynamicToolCallOutputContentItemType", | | |
| 9735 | }), | | |
| 9736 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), | | |
| 9737 | ], | | |
| 9738 | { mode: "oneOf" }, | | |
| 9739 | ); | | |
| 9740 | | | |
| 9741 | export type V2ThreadUnarchiveResponse__DynamicToolCallStatus = | | |
| 9742 | | "inProgress" | | |
| 9743 | | "completed" | | |
| 9744 | | "failed"; | | |
| 9745 | export const V2ThreadUnarchiveResponse__DynamicToolCallStatus = Schema.Literals([ | | |
| 9746 | "inProgress", | | |
| 9747 | "completed", | | |
| 9748 | "failed", | | |
| 9749 | ]); | | |
| 9750 | | | |
| 9751 | export type V2ThreadUnarchiveResponse__GitInfo = { | 11666 | export type V2ThreadUnarchiveResponse__GitInfo = { |
| 9752 | readonly branch?: string | null; | 11667 | readonly branch?: string | null; |
| 9753 | readonly originUrl?: string | null; | 11668 | readonly originUrl?: string | null; |
| ... | @@ -9757,65 +11672,67 @@ export const V2ThreadUnarchiveResponse__GitInfo = Schema.Struct({ | ... | @@ -9757,65 +11672,67 @@ export const V2ThreadUnarchiveResponse__GitInfo = Schema.Struct({ |
| 9757 | branch: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 11672 | branch: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 9758 | originUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 11673 | originUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 9759 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 11674 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 11675 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__GitInfo" }); |
| | 11676 | |
| | 11677 | export type V2ThreadUnarchiveResponse__AgentPath = string; |
| | 11678 | export const V2ThreadUnarchiveResponse__AgentPath = Schema.String.annotate({ |
| | 11679 | identifier: "V2ThreadUnarchiveResponse__AgentPath", |
| 9760 | }); | 11680 | }); |
| 9761 | | 11681 | |
| 9762 | export type V2ThreadUnarchiveResponse__HookPromptFragment = { | 11682 | export type V2ThreadUnarchiveResponse__ThreadId = string; |
| 9763 | readonly hookRunId: string; | 11683 | export const V2ThreadUnarchiveResponse__ThreadId = Schema.String.annotate({ |
| 9764 | readonly text: string; | 11684 | identifier: "V2ThreadUnarchiveResponse__ThreadId", |
| 9765 | }; | 11685 | }); |
| 9766 | export const V2ThreadUnarchiveResponse__HookPromptFragment = Schema.Struct({ | 11686 | |
| 9767 | hookRunId: Schema.String, | 11687 | export type V2ThreadUnarchiveResponse__ThreadActiveFlag = |
| 9768 | text: Schema.String, | 11688 | | "waitingOnApproval" |
| | 11689 | | "waitingOnUserInput"; |
| | 11690 | export const V2ThreadUnarchiveResponse__ThreadActiveFlag = Schema.Literals([ |
| | 11691 | "waitingOnApproval", |
| | 11692 | "waitingOnUserInput", |
| | 11693 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__ThreadActiveFlag" }); |
| | 11694 | |
| | 11695 | export type V2ThreadUnarchiveResponse__ThreadSource = string; |
| | 11696 | export const V2ThreadUnarchiveResponse__ThreadSource = Schema.String.annotate({ |
| | 11697 | identifier: "V2ThreadUnarchiveResponse__ThreadSource", |
| 9769 | }); | 11698 | }); |
| 9770 | | 11699 | |
| | 11700 | export type V2ThreadUnarchiveResponse__NonSteerableTurnKind = "review" | "compact"; |
| | 11701 | export const V2ThreadUnarchiveResponse__NonSteerableTurnKind = Schema.Literals([ |
| | 11702 | "review", |
| | 11703 | "compact", |
| | 11704 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__NonSteerableTurnKind" }); |
| | 11705 | |
| | 11706 | export type V2ThreadUnarchiveResponse__ByteRange = { readonly end: number; readonly start: number }; |
| | 11707 | export const V2ThreadUnarchiveResponse__ByteRange = Schema.Struct({ |
| | 11708 | end: Schema.Number.annotate({ format: "uint" }) |
| | 11709 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 11710 | .check( |
| | 11711 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 11712 | ), |
| | 11713 | start: Schema.Number.annotate({ format: "uint" }) |
| | 11714 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 11715 | .check( |
| | 11716 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 11717 | ), |
| | 11718 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__ByteRange" }); |
| | 11719 | |
| 9771 | export type V2ThreadUnarchiveResponse__ImageDetail = "auto" | "low" | "high" | "original"; | 11720 | export type V2ThreadUnarchiveResponse__ImageDetail = "auto" | "low" | "high" | "original"; |
| 9772 | export const V2ThreadUnarchiveResponse__ImageDetail = Schema.Literals([ | 11721 | export const V2ThreadUnarchiveResponse__ImageDetail = Schema.Literals([ |
| 9773 | "auto", | 11722 | "auto", |
| 9774 | "low", | 11723 | "low", |
| 9775 | "high", | 11724 | "high", |
| 9776 | "original", | 11725 | "original", |
| 9777 | ]); | 11726 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__ImageDetail" }); |
| 9778 | | | |
| 9779 | export type V2ThreadUnarchiveResponse__LegacyAppPathString = string; | | |
| 9780 | export const V2ThreadUnarchiveResponse__LegacyAppPathString = Schema.String; | | |
| 9781 | | | |
| 9782 | export type V2ThreadUnarchiveResponse__McpToolCallAppContext = { | | |
| 9783 | readonly actionName?: string | null; | | |
| 9784 | readonly appName?: string | null; | | |
| 9785 | readonly connectorId: string; | | |
| 9786 | readonly linkId?: string | null; | | |
| 9787 | readonly resourceUri?: string | null; | | |
| 9788 | }; | | |
| 9789 | export const V2ThreadUnarchiveResponse__McpToolCallAppContext = Schema.Struct({ | | |
| 9790 | actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 9791 | appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 9792 | connectorId: Schema.String, | | |
| 9793 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 9794 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 9795 | }); | | |
| 9796 | | 11727 | |
| 9797 | export type V2ThreadUnarchiveResponse__McpToolCallError = { readonly message: string }; | 11728 | export type V2ThreadUnarchiveResponse__HookPromptFragment = { |
| 9798 | export const V2ThreadUnarchiveResponse__McpToolCallError = Schema.Struct({ | 11729 | readonly hookRunId: string; |
| 9799 | message: Schema.String, | 11730 | readonly text: string; |
| 9800 | }); | | |
| 9801 | | | |
| 9802 | export type V2ThreadUnarchiveResponse__McpToolCallResult = { | | |
| 9803 | readonly _meta?: unknown; | | |
| 9804 | readonly content: ReadonlyArray<unknown>; | | |
| 9805 | readonly structuredContent?: unknown; | | |
| 9806 | }; | 11731 | }; |
| 9807 | export const V2ThreadUnarchiveResponse__McpToolCallResult = Schema.Struct({ | 11732 | export const V2ThreadUnarchiveResponse__HookPromptFragment = Schema.Struct({ |
| 9808 | _meta: Schema.optionalKey(Schema.Unknown), | 11733 | hookRunId: Schema.String, |
| 9809 | content: Schema.Array(Schema.Unknown), | 11734 | text: Schema.String, |
| 9810 | structuredContent: Schema.optionalKey(Schema.Unknown), | 11735 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__HookPromptFragment" }); |
| 9811 | }); | | |
| 9812 | | | |
| 9813 | export type V2ThreadUnarchiveResponse__McpToolCallStatus = "inProgress" | "completed" | "failed"; | | |
| 9814 | export const V2ThreadUnarchiveResponse__McpToolCallStatus = Schema.Literals([ | | |
| 9815 | "inProgress", | | |
| 9816 | "completed", | | |
| 9817 | "failed", | | |
| 9818 | ]); | | |
| 9819 | | 11736 | |
| 9820 | export type V2ThreadUnarchiveResponse__MemoryCitationEntry = { | 11737 | export type V2ThreadUnarchiveResponse__MemoryCitationEntry = { |
| 9821 | readonly lineEnd: number; | 11738 | readonly lineEnd: number; |
| ... | @@ -9825,41 +11742,65 @@ export type V2ThreadUnarchiveResponse__MemoryCitationEntry = { | ... | @@ -9825,41 +11742,65 @@ export type V2ThreadUnarchiveResponse__MemoryCitationEntry = { |
| 9825 | }; | 11742 | }; |
| 9826 | export const V2ThreadUnarchiveResponse__MemoryCitationEntry = Schema.Struct({ | 11743 | export const V2ThreadUnarchiveResponse__MemoryCitationEntry = Schema.Struct({ |
| 9827 | lineEnd: Schema.Number.annotate({ format: "uint32" }) | 11744 | lineEnd: Schema.Number.annotate({ format: "uint32" }) |
| 9828 | .check(Schema.isInt()) | 11745 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 9829 | .check(Schema.isGreaterThanOrEqualTo(0)), | 11746 | .check( |
| | 11747 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 11748 | ), |
| 9830 | lineStart: Schema.Number.annotate({ format: "uint32" }) | 11749 | lineStart: Schema.Number.annotate({ format: "uint32" }) |
| 9831 | .check(Schema.isInt()) | 11750 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 9832 | .check(Schema.isGreaterThanOrEqualTo(0)), | 11751 | .check( |
| | 11752 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 11753 | ), |
| 9833 | note: Schema.String, | 11754 | note: Schema.String, |
| 9834 | path: Schema.String, | 11755 | path: Schema.String, |
| 9835 | }); | 11756 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__MemoryCitationEntry" }); |
| 9836 | | 11757 | |
| 9837 | export type V2ThreadUnarchiveResponse__MessagePhase = "commentary" | "final_answer"; | 11758 | export type V2ThreadUnarchiveResponse__MessagePhase = "commentary" | "final_answer"; |
| 9838 | export const V2ThreadUnarchiveResponse__MessagePhase = Schema.Literals([ | 11759 | export const V2ThreadUnarchiveResponse__MessagePhase = Schema.Union( |
| 9839 | "commentary", | 11760 | [ |
| 9840 | "final_answer", | 11761 | Schema.Literal("commentary").annotate({ |
| 9841 | ]).annotate({ | 11762 | description: |
| | 11763 | "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.", |
| | 11764 | }), |
| | 11765 | Schema.Literal("final_answer").annotate({ |
| | 11766 | description: "The assistant's terminal answer text for the current turn.", |
| | 11767 | }), |
| | 11768 | ], |
| | 11769 | { mode: "oneOf" }, |
| | 11770 | ).annotate({ |
| 9842 | description: | 11771 | description: |
| 9843 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', | 11772 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', |
| | 11773 | identifier: "V2ThreadUnarchiveResponse__MessagePhase", |
| 9844 | }); | 11774 | }); |
| 9845 | | 11775 | |
| 9846 | export type V2ThreadUnarchiveResponse__NonSteerableTurnKind = "review" | "compact"; | 11776 | export type V2ThreadUnarchiveResponse__LegacyAppPathString = string; |
| 9847 | export const V2ThreadUnarchiveResponse__NonSteerableTurnKind = Schema.Literals([ | 11777 | export const V2ThreadUnarchiveResponse__LegacyAppPathString = Schema.String.annotate({ |
| 9848 | "review", | 11778 | identifier: "V2ThreadUnarchiveResponse__LegacyAppPathString", |
| 9849 | "compact", | 11779 | }); |
| 9850 | ]); | | |
| 9851 | | 11780 | |
| 9852 | export type V2ThreadUnarchiveResponse__PatchApplyStatus = | 11781 | export type V2ThreadUnarchiveResponse__CommandExecutionSource = |
| | 11782 | | "agent" |
| | 11783 | | "userShell" |
| | 11784 | | "unifiedExecStartup" |
| | 11785 | | "unifiedExecInteraction"; |
| | 11786 | export const V2ThreadUnarchiveResponse__CommandExecutionSource = Schema.Literals([ |
| | 11787 | "agent", |
| | 11788 | "userShell", |
| | 11789 | "unifiedExecStartup", |
| | 11790 | "unifiedExecInteraction", |
| | 11791 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__CommandExecutionSource" }); |
| | 11792 | |
| | 11793 | export type V2ThreadUnarchiveResponse__CommandExecutionStatus = |
| 9853 | | "inProgress" | 11794 | | "inProgress" |
| 9854 | | "completed" | 11795 | | "completed" |
| 9855 | | "failed" | 11796 | | "failed" |
| 9856 | | "declined"; | 11797 | | "declined"; |
| 9857 | export const V2ThreadUnarchiveResponse__PatchApplyStatus = Schema.Literals([ | 11798 | export const V2ThreadUnarchiveResponse__CommandExecutionStatus = Schema.Literals([ |
| 9858 | "inProgress", | 11799 | "inProgress", |
| 9859 | "completed", | 11800 | "completed", |
| 9860 | "failed", | 11801 | "failed", |
| 9861 | "declined", | 11802 | "declined", |
| 9862 | ]); | 11803 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__CommandExecutionStatus" }); |
| 9863 | | 11804 | |
| 9864 | export type V2ThreadUnarchiveResponse__PatchChangeKind = | 11805 | export type V2ThreadUnarchiveResponse__PatchChangeKind = |
| 9865 | | { readonly type: "add" } | 11806 | | { readonly type: "add" } |
| ... | @@ -9879,75 +11820,169 @@ export const V2ThreadUnarchiveResponse__PatchChangeKind = Schema.Union( | ... | @@ -9879,75 +11820,169 @@ export const V2ThreadUnarchiveResponse__PatchChangeKind = Schema.Union( |
| 9879 | }).annotate({ title: "UpdatePatchChangeKind" }), | 11820 | }).annotate({ title: "UpdatePatchChangeKind" }), |
| 9880 | ], | 11821 | ], |
| 9881 | { mode: "oneOf" }, | 11822 | { mode: "oneOf" }, |
| 9882 | ); | 11823 | ).annotate({ identifier: "V2ThreadUnarchiveResponse__PatchChangeKind" }); |
| 9883 | | | |
| 9884 | export type V2ThreadUnarchiveResponse__ReasoningEffort = string; | | |
| 9885 | export const V2ThreadUnarchiveResponse__ReasoningEffort = Schema.String.annotate({ | | |
| 9886 | description: "A non-empty reasoning effort value advertised by the model.", | | |
| 9887 | }).check(Schema.isMinLength(1)); | | |
| 9888 | | 11824 | |
| 9889 | export type V2ThreadUnarchiveResponse__SubAgentActivityKind = | 11825 | export type V2ThreadUnarchiveResponse__PatchApplyStatus = |
| 9890 | | "started" | 11826 | | "inProgress" |
| 9891 | | "interacted" | 11827 | | "completed" |
| 9892 | | "interrupted" | 11828 | | "failed" |
| 9893 | | "completed"; | 11829 | | "declined"; |
| 9894 | export const V2ThreadUnarchiveResponse__SubAgentActivityKind = Schema.Literals([ | 11830 | export const V2ThreadUnarchiveResponse__PatchApplyStatus = Schema.Literals([ |
| 9895 | "started", | 11831 | "inProgress", |
| 9896 | "interacted", | | |
| 9897 | "interrupted", | | |
| 9898 | "completed", | 11832 | "completed", |
| 9899 | ]); | 11833 | "failed", |
| | 11834 | "declined", |
| | 11835 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__PatchApplyStatus" }); |
| 9900 | | 11836 | |
| 9901 | export type V2ThreadUnarchiveResponse__TextElement = { | 11837 | export type V2ThreadUnarchiveResponse__McpToolCallAppContext = { |
| 9902 | readonly byteRange: { readonly end: number; readonly start: number }; | 11838 | readonly actionName?: string | null; |
| 9903 | readonly placeholder?: string | null; | 11839 | readonly appName?: string | null; |
| | 11840 | readonly connectorId: string; |
| | 11841 | readonly linkId?: string | null; |
| | 11842 | readonly resourceUri?: string | null; |
| 9904 | }; | 11843 | }; |
| 9905 | export const V2ThreadUnarchiveResponse__TextElement = Schema.Struct({ | 11844 | export const V2ThreadUnarchiveResponse__McpToolCallAppContext = Schema.Struct({ |
| 9906 | byteRange: Schema.Struct({ | 11845 | actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 9907 | end: Schema.Number.annotate({ format: "uint" }) | 11846 | appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 9908 | .check(Schema.isInt()) | 11847 | connectorId: Schema.String, |
| 9909 | .check(Schema.isGreaterThanOrEqualTo(0)), | 11848 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 9910 | start: Schema.Number.annotate({ format: "uint" }) | 11849 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 9911 | .check(Schema.isInt()) | 11850 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__McpToolCallAppContext" }); |
| 9912 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 9913 | }).annotate({ | | |
| 9914 | description: "Byte range in the parent `text` buffer that this element occupies.", | | |
| 9915 | }), | | |
| 9916 | placeholder: Schema.optionalKey( | | |
| 9917 | Schema.Union([ | | |
| 9918 | Schema.String.annotate({ | | |
| 9919 | description: "Optional human-readable placeholder for the element, displayed in the UI.", | | |
| 9920 | }), | | |
| 9921 | Schema.Null, | | |
| 9922 | ]), | | |
| 9923 | ), | | |
| 9924 | }); | | |
| 9925 | | 11851 | |
| 9926 | export type V2ThreadUnarchiveResponse__ThreadActiveFlag = | 11852 | export type V2ThreadUnarchiveResponse__McpToolCallError = { readonly message: string }; |
| 9927 | | "waitingOnApproval" | 11853 | export const V2ThreadUnarchiveResponse__McpToolCallError = Schema.Struct({ |
| 9928 | | "waitingOnUserInput"; | 11854 | message: Schema.String, |
| 9929 | export const V2ThreadUnarchiveResponse__ThreadActiveFlag = Schema.Literals([ | 11855 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__McpToolCallError" }); |
| 9930 | "waitingOnApproval", | | |
| 9931 | "waitingOnUserInput", | | |
| 9932 | ]); | | |
| 9933 | | 11856 | |
| 9934 | export type V2ThreadUnarchiveResponse__ThreadId = string; | 11857 | export type V2ThreadUnarchiveResponse__McpToolCallResult = { |
| 9935 | export const V2ThreadUnarchiveResponse__ThreadId = Schema.String; | 11858 | readonly _meta?: Schema.Json; |
| | 11859 | readonly content: ReadonlyArray<Schema.Json>; |
| | 11860 | readonly structuredContent?: Schema.Json; |
| | 11861 | }; |
| | 11862 | export const V2ThreadUnarchiveResponse__McpToolCallResult = Schema.Struct({ |
| | 11863 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 11864 | content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), |
| | 11865 | structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 11866 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__McpToolCallResult" }); |
| 9936 | | 11867 | |
| 9937 | export type V2ThreadUnarchiveResponse__ThreadSource = string; | 11868 | export type V2ThreadUnarchiveResponse__McpToolCallStatus = "inProgress" | "completed" | "failed"; |
| 9938 | export const V2ThreadUnarchiveResponse__ThreadSource = Schema.String; | 11869 | export const V2ThreadUnarchiveResponse__McpToolCallStatus = Schema.Literals([ |
| | 11870 | "inProgress", |
| | 11871 | "completed", |
| | 11872 | "failed", |
| | 11873 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__McpToolCallStatus" }); |
| 9939 | | 11874 | |
| 9940 | export type V2ThreadUnarchiveResponse__TurnStatus = | 11875 | export type V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem = |
| 9941 | | "completed" | 11876 | | { readonly text: string; readonly type: "inputText" } |
| | 11877 | | { readonly imageUrl: string; readonly type: "inputImage" } |
| | 11878 | | { readonly audioUrl: string; readonly type: "inputAudio" }; |
| | 11879 | export const V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem = Schema.Union( |
| | 11880 | [ |
| | 11881 | Schema.Struct({ |
| | 11882 | text: Schema.String, |
| | 11883 | type: Schema.Literal("inputText").annotate({ |
| | 11884 | title: "InputTextDynamicToolCallOutputContentItemType", |
| | 11885 | }), |
| | 11886 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), |
| | 11887 | Schema.Struct({ |
| | 11888 | imageUrl: Schema.String, |
| | 11889 | type: Schema.Literal("inputImage").annotate({ |
| | 11890 | title: "InputImageDynamicToolCallOutputContentItemType", |
| | 11891 | }), |
| | 11892 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), |
| | 11893 | Schema.Struct({ |
| | 11894 | audioUrl: Schema.String, |
| | 11895 | type: Schema.Literal("inputAudio").annotate({ |
| | 11896 | title: "InputAudioDynamicToolCallOutputContentItemType", |
| | 11897 | }), |
| | 11898 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), |
| | 11899 | ], |
| | 11900 | { mode: "oneOf" }, |
| | 11901 | ).annotate({ identifier: "V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem" }); |
| | 11902 | |
| | 11903 | export type V2ThreadUnarchiveResponse__DynamicToolCallStatus = |
| | 11904 | | "inProgress" |
| | 11905 | | "completed" |
| | 11906 | | "failed"; |
| | 11907 | export const V2ThreadUnarchiveResponse__DynamicToolCallStatus = Schema.Literals([ |
| | 11908 | "inProgress", |
| | 11909 | "completed", |
| | 11910 | "failed", |
| | 11911 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__DynamicToolCallStatus" }); |
| | 11912 | |
| | 11913 | export type V2ThreadUnarchiveResponse__CollabAgentStatus = |
| | 11914 | | "pendingInit" |
| | 11915 | | "running" |
| 9942 | | "interrupted" | 11916 | | "interrupted" |
| | 11917 | | "completed" |
| | 11918 | | "errored" |
| | 11919 | | "shutdown" |
| | 11920 | | "notFound"; |
| | 11921 | export const V2ThreadUnarchiveResponse__CollabAgentStatus = Schema.Literals([ |
| | 11922 | "pendingInit", |
| | 11923 | "running", |
| | 11924 | "interrupted", |
| | 11925 | "completed", |
| | 11926 | "errored", |
| | 11927 | "shutdown", |
| | 11928 | "notFound", |
| | 11929 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__CollabAgentStatus" }); |
| | 11930 | |
| | 11931 | export type V2ThreadUnarchiveResponse__ReasoningEffort = string; |
| | 11932 | export const V2ThreadUnarchiveResponse__ReasoningEffort = Schema.String.annotate({ |
| | 11933 | description: "A non-empty reasoning effort value advertised by the model.", |
| | 11934 | }).check( |
| | 11935 | Schema.isMinLength(1).annotate({ |
| | 11936 | expected: "a value with a length of at least 1", |
| | 11937 | identifier: "V2ThreadUnarchiveResponse__ReasoningEffort", |
| | 11938 | }), |
| | 11939 | ); |
| | 11940 | |
| | 11941 | export type V2ThreadUnarchiveResponse__CollabAgentToolCallStatus = |
| | 11942 | | "inProgress" |
| | 11943 | | "completed" |
| 9943 | | "failed" | 11944 | | "failed" |
| 9944 | | "inProgress"; | 11945 | | "interrupted"; |
| 9945 | export const V2ThreadUnarchiveResponse__TurnStatus = Schema.Literals([ | 11946 | export const V2ThreadUnarchiveResponse__CollabAgentToolCallStatus = Schema.Literals([ |
| | 11947 | "inProgress", |
| 9946 | "completed", | 11948 | "completed", |
| 9947 | "interrupted", | | |
| 9948 | "failed", | 11949 | "failed", |
| 9949 | "inProgress", | 11950 | "interrupted", |
| 9950 | ]); | 11951 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__CollabAgentToolCallStatus" }); |
| | 11952 | |
| | 11953 | export type V2ThreadUnarchiveResponse__CollabAgentTool = |
| | 11954 | | "spawnAgent" |
| | 11955 | | "sendInput" |
| | 11956 | | "resumeAgent" |
| | 11957 | | "wait" |
| | 11958 | | "closeAgent" |
| | 11959 | | "sendMessage" |
| | 11960 | | "followupTask" |
| | 11961 | | "interruptAgent" |
| | 11962 | | "listAgents"; |
| | 11963 | export const V2ThreadUnarchiveResponse__CollabAgentTool = Schema.Literals([ |
| | 11964 | "spawnAgent", |
| | 11965 | "sendInput", |
| | 11966 | "resumeAgent", |
| | 11967 | "wait", |
| | 11968 | "closeAgent", |
| | 11969 | "sendMessage", |
| | 11970 | "followupTask", |
| | 11971 | "interruptAgent", |
| | 11972 | "listAgents", |
| | 11973 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__CollabAgentTool" }); |
| | 11974 | |
| | 11975 | export type V2ThreadUnarchiveResponse__SubAgentActivityKind = |
| | 11976 | | "started" |
| | 11977 | | "interacted" |
| | 11978 | | "interrupted" |
| | 11979 | | "completed"; |
| | 11980 | export const V2ThreadUnarchiveResponse__SubAgentActivityKind = Schema.Literals([ |
| | 11981 | "started", |
| | 11982 | "interacted", |
| | 11983 | "interrupted", |
| | 11984 | "completed", |
| | 11985 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__SubAgentActivityKind" }); |
| 9951 | | 11986 | |
| 9952 | export type V2ThreadUnarchiveResponse__WebSearchAction = | 11987 | export type V2ThreadUnarchiveResponse__WebSearchAction = |
| 9953 | | { | 11988 | | { |
| ... | @@ -9979,7 +12014,36 @@ export const V2ThreadUnarchiveResponse__WebSearchAction = Schema.Union( | ... | @@ -9979,7 +12014,36 @@ export const V2ThreadUnarchiveResponse__WebSearchAction = Schema.Union( |
| 9979 | }).annotate({ title: "OtherWebSearchAction" }), | 12014 | }).annotate({ title: "OtherWebSearchAction" }), |
| 9980 | ], | 12015 | ], |
| 9981 | { mode: "oneOf" }, | 12016 | { mode: "oneOf" }, |
| 9982 | ); | 12017 | ).annotate({ identifier: "V2ThreadUnarchiveResponse__WebSearchAction" }); |
| | 12018 | |
| | 12019 | export type V2ThreadUnarchiveResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| | 12020 | export const V2ThreadUnarchiveResponse__TurnItemsView = Schema.Union( |
| | 12021 | [ |
| | 12022 | Schema.Literal("notLoaded").annotate({ |
| | 12023 | description: "`items` was not loaded for this turn. The field is intentionally empty.", |
| | 12024 | }), |
| | 12025 | Schema.Literal("summary").annotate({ |
| | 12026 | description: "`items` contains only a display summary for this turn.", |
| | 12027 | }), |
| | 12028 | Schema.Literal("full").annotate({ |
| | 12029 | description: |
| | 12030 | "`items` contains every ThreadItem available from persisted app-server history for this turn.", |
| | 12031 | }), |
| | 12032 | ], |
| | 12033 | { mode: "oneOf" }, |
| | 12034 | ).annotate({ identifier: "V2ThreadUnarchiveResponse__TurnItemsView" }); |
| | 12035 | |
| | 12036 | export type V2ThreadUnarchiveResponse__TurnStatus = |
| | 12037 | | "completed" |
| | 12038 | | "interrupted" |
| | 12039 | | "failed" |
| | 12040 | | "inProgress"; |
| | 12041 | export const V2ThreadUnarchiveResponse__TurnStatus = Schema.Literals([ |
| | 12042 | "completed", |
| | 12043 | "interrupted", |
| | 12044 | "failed", |
| | 12045 | "inProgress", |
| | 12046 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__TurnStatus" }); |
| 9983 | | 12047 | |
| 9984 | export type V2ThreadUnsubscribeResponse__ThreadUnsubscribeStatus = | 12048 | export type V2ThreadUnsubscribeResponse__ThreadUnsubscribeStatus = |
| 9985 | | "notLoaded" | 12049 | | "notLoaded" |
| ... | @@ -9989,31 +12053,110 @@ export const V2ThreadUnsubscribeResponse__ThreadUnsubscribeStatus = Schema.Liter | ... | @@ -9989,31 +12053,110 @@ export const V2ThreadUnsubscribeResponse__ThreadUnsubscribeStatus = Schema.Liter |
| 9989 | "notLoaded", | 12053 | "notLoaded", |
| 9990 | "notSubscribed", | 12054 | "notSubscribed", |
| 9991 | "unsubscribed", | 12055 | "unsubscribed", |
| 9992 | ]); | 12056 | ]).annotate({ identifier: "V2ThreadUnsubscribeResponse__ThreadUnsubscribeStatus" }); |
| | 12057 | |
| | 12058 | export type V2TurnCompletedNotification__NonSteerableTurnKind = "review" | "compact"; |
| | 12059 | export const V2TurnCompletedNotification__NonSteerableTurnKind = Schema.Literals([ |
| | 12060 | "review", |
| | 12061 | "compact", |
| | 12062 | ]).annotate({ identifier: "V2TurnCompletedNotification__NonSteerableTurnKind" }); |
| | 12063 | |
| | 12064 | export type V2TurnCompletedNotification__ByteRange = { |
| | 12065 | readonly end: number; |
| | 12066 | readonly start: number; |
| | 12067 | }; |
| | 12068 | export const V2TurnCompletedNotification__ByteRange = Schema.Struct({ |
| | 12069 | end: Schema.Number.annotate({ format: "uint" }) |
| | 12070 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 12071 | .check( |
| | 12072 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 12073 | ), |
| | 12074 | start: Schema.Number.annotate({ format: "uint" }) |
| | 12075 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 12076 | .check( |
| | 12077 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 12078 | ), |
| | 12079 | }).annotate({ identifier: "V2TurnCompletedNotification__ByteRange" }); |
| | 12080 | |
| | 12081 | export type V2TurnCompletedNotification__ImageDetail = "auto" | "low" | "high" | "original"; |
| | 12082 | export const V2TurnCompletedNotification__ImageDetail = Schema.Literals([ |
| | 12083 | "auto", |
| | 12084 | "low", |
| | 12085 | "high", |
| | 12086 | "original", |
| | 12087 | ]).annotate({ identifier: "V2TurnCompletedNotification__ImageDetail" }); |
| | 12088 | |
| | 12089 | export type V2TurnCompletedNotification__HookPromptFragment = { |
| | 12090 | readonly hookRunId: string; |
| | 12091 | readonly text: string; |
| | 12092 | }; |
| | 12093 | export const V2TurnCompletedNotification__HookPromptFragment = Schema.Struct({ |
| | 12094 | hookRunId: Schema.String, |
| | 12095 | text: Schema.String, |
| | 12096 | }).annotate({ identifier: "V2TurnCompletedNotification__HookPromptFragment" }); |
| | 12097 | |
| | 12098 | export type V2TurnCompletedNotification__MemoryCitationEntry = { |
| | 12099 | readonly lineEnd: number; |
| | 12100 | readonly lineStart: number; |
| | 12101 | readonly note: string; |
| | 12102 | readonly path: string; |
| | 12103 | }; |
| | 12104 | export const V2TurnCompletedNotification__MemoryCitationEntry = Schema.Struct({ |
| | 12105 | lineEnd: Schema.Number.annotate({ format: "uint32" }) |
| | 12106 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 12107 | .check( |
| | 12108 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 12109 | ), |
| | 12110 | lineStart: Schema.Number.annotate({ format: "uint32" }) |
| | 12111 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 12112 | .check( |
| | 12113 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 12114 | ), |
| | 12115 | note: Schema.String, |
| | 12116 | path: Schema.String, |
| | 12117 | }).annotate({ identifier: "V2TurnCompletedNotification__MemoryCitationEntry" }); |
| | 12118 | |
| | 12119 | export type V2TurnCompletedNotification__MessagePhase = "commentary" | "final_answer"; |
| | 12120 | export const V2TurnCompletedNotification__MessagePhase = Schema.Union( |
| | 12121 | [ |
| | 12122 | Schema.Literal("commentary").annotate({ |
| | 12123 | description: |
| | 12124 | "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.", |
| | 12125 | }), |
| | 12126 | Schema.Literal("final_answer").annotate({ |
| | 12127 | description: "The assistant's terminal answer text for the current turn.", |
| | 12128 | }), |
| | 12129 | ], |
| | 12130 | { mode: "oneOf" }, |
| | 12131 | ).annotate({ |
| | 12132 | description: |
| | 12133 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', |
| | 12134 | identifier: "V2TurnCompletedNotification__MessagePhase", |
| | 12135 | }); |
| 9993 | | 12136 | |
| 9994 | export type V2TurnCompletedNotification__AbsolutePathBuf = string; | 12137 | export type V2TurnCompletedNotification__AbsolutePathBuf = string; |
| 9995 | export const V2TurnCompletedNotification__AbsolutePathBuf = Schema.String.annotate({ | 12138 | export const V2TurnCompletedNotification__AbsolutePathBuf = Schema.String.annotate({ |
| 9996 | description: | 12139 | description: |
| 9997 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 12140 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 12141 | identifier: "V2TurnCompletedNotification__AbsolutePathBuf", |
| 9998 | }); | 12142 | }); |
| 9999 | | 12143 | |
| 10000 | export type V2TurnCompletedNotification__CollabAgentStatus = | 12144 | export type V2TurnCompletedNotification__LegacyAppPathString = string; |
| 10001 | | "pendingInit" | 12145 | export const V2TurnCompletedNotification__LegacyAppPathString = Schema.String.annotate({ |
| 10002 | | "running" | 12146 | identifier: "V2TurnCompletedNotification__LegacyAppPathString", |
| 10003 | | "interrupted" | 12147 | }); |
| 10004 | | "completed" | 12148 | |
| 10005 | | "errored" | 12149 | export type V2TurnCompletedNotification__CommandExecutionSource = |
| 10006 | | "shutdown" | 12150 | | "agent" |
| 10007 | | "notFound"; | 12151 | | "userShell" |
| 10008 | export const V2TurnCompletedNotification__CollabAgentStatus = Schema.Literals([ | 12152 | | "unifiedExecStartup" |
| 10009 | "pendingInit", | 12153 | | "unifiedExecInteraction"; |
| 10010 | "running", | 12154 | export const V2TurnCompletedNotification__CommandExecutionSource = Schema.Literals([ |
| 10011 | "interrupted", | 12155 | "agent", |
| 10012 | "completed", | 12156 | "userShell", |
| 10013 | "errored", | 12157 | "unifiedExecStartup", |
| 10014 | "shutdown", | 12158 | "unifiedExecInteraction", |
| 10015 | "notFound", | 12159 | ]).annotate({ identifier: "V2TurnCompletedNotification__CommandExecutionSource" }); |
| 10016 | ]); | | |
| 10017 | | 12160 | |
| 10018 | export type V2TurnCompletedNotification__CommandExecutionStatus = | 12161 | export type V2TurnCompletedNotification__CommandExecutionStatus = |
| 10019 | | "inProgress" | 12162 | | "inProgress" |
| ... | @@ -10025,65 +12168,39 @@ export const V2TurnCompletedNotification__CommandExecutionStatus = Schema.Litera | ... | @@ -10025,65 +12168,39 @@ export const V2TurnCompletedNotification__CommandExecutionStatus = Schema.Litera |
| 10025 | "completed", | 12168 | "completed", |
| 10026 | "failed", | 12169 | "failed", |
| 10027 | "declined", | 12170 | "declined", |
| 10028 | ]); | 12171 | ]).annotate({ identifier: "V2TurnCompletedNotification__CommandExecutionStatus" }); |
| 10029 | | 12172 | |
| 10030 | export type V2TurnCompletedNotification__DynamicToolCallOutputContentItem = | 12173 | export type V2TurnCompletedNotification__PatchChangeKind = |
| 10031 | | { readonly text: string; readonly type: "inputText" } | 12174 | | { readonly type: "add" } |
| 10032 | | { readonly imageUrl: string; readonly type: "inputImage" } | 12175 | | { readonly type: "delete" } |
| 10033 | | { readonly audioUrl: string; readonly type: "inputAudio" }; | 12176 | | { readonly move_path?: string | null; readonly type: "update" }; |
| 10034 | export const V2TurnCompletedNotification__DynamicToolCallOutputContentItem = Schema.Union( | 12177 | export const V2TurnCompletedNotification__PatchChangeKind = Schema.Union( |
| 10035 | [ | 12178 | [ |
| 10036 | Schema.Struct({ | 12179 | Schema.Struct({ |
| 10037 | text: Schema.String, | 12180 | type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }), |
| 10038 | type: Schema.Literal("inputText").annotate({ | 12181 | }).annotate({ title: "AddPatchChangeKind" }), |
| 10039 | title: "InputTextDynamicToolCallOutputContentItemType", | | |
| 10040 | }), | | |
| 10041 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), | | |
| 10042 | Schema.Struct({ | 12182 | Schema.Struct({ |
| 10043 | imageUrl: Schema.String, | 12183 | type: Schema.Literal("delete").annotate({ title: "DeletePatchChangeKindType" }), |
| 10044 | type: Schema.Literal("inputImage").annotate({ | 12184 | }).annotate({ title: "DeletePatchChangeKind" }), |
| 10045 | title: "InputImageDynamicToolCallOutputContentItemType", | | |
| 10046 | }), | | |
| 10047 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), | | |
| 10048 | Schema.Struct({ | 12185 | Schema.Struct({ |
| 10049 | audioUrl: Schema.String, | 12186 | move_path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 10050 | type: Schema.Literal("inputAudio").annotate({ | 12187 | type: Schema.Literal("update").annotate({ title: "UpdatePatchChangeKindType" }), |
| 10051 | title: "InputAudioDynamicToolCallOutputContentItemType", | 12188 | }).annotate({ title: "UpdatePatchChangeKind" }), |
| 10052 | }), | | |
| 10053 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), | | |
| 10054 | ], | 12189 | ], |
| 10055 | { mode: "oneOf" }, | 12190 | { mode: "oneOf" }, |
| 10056 | ); | 12191 | ).annotate({ identifier: "V2TurnCompletedNotification__PatchChangeKind" }); |
| 10057 | | 12192 | |
| 10058 | export type V2TurnCompletedNotification__DynamicToolCallStatus = | 12193 | export type V2TurnCompletedNotification__PatchApplyStatus = |
| 10059 | | "inProgress" | 12194 | | "inProgress" |
| 10060 | | "completed" | 12195 | | "completed" |
| 10061 | | "failed"; | 12196 | | "failed" |
| 10062 | export const V2TurnCompletedNotification__DynamicToolCallStatus = Schema.Literals([ | 12197 | | "declined"; |
| | 12198 | export const V2TurnCompletedNotification__PatchApplyStatus = Schema.Literals([ |
| 10063 | "inProgress", | 12199 | "inProgress", |
| 10064 | "completed", | 12200 | "completed", |
| 10065 | "failed", | 12201 | "failed", |
| 10066 | ]); | 12202 | "declined", |
| 10067 | | 12203 | ]).annotate({ identifier: "V2TurnCompletedNotification__PatchApplyStatus" }); |
| 10068 | export type V2TurnCompletedNotification__HookPromptFragment = { | | |
| 10069 | readonly hookRunId: string; | | |
| 10070 | readonly text: string; | | |
| 10071 | }; | | |
| 10072 | export const V2TurnCompletedNotification__HookPromptFragment = Schema.Struct({ | | |
| 10073 | hookRunId: Schema.String, | | |
| 10074 | text: Schema.String, | | |
| 10075 | }); | | |
| 10076 | | | |
| 10077 | export type V2TurnCompletedNotification__ImageDetail = "auto" | "low" | "high" | "original"; | | |
| 10078 | export const V2TurnCompletedNotification__ImageDetail = Schema.Literals([ | | |
| 10079 | "auto", | | |
| 10080 | "low", | | |
| 10081 | "high", | | |
| 10082 | "original", | | |
| 10083 | ]); | | |
| 10084 | | | |
| 10085 | export type V2TurnCompletedNotification__LegacyAppPathString = string; | | |
| 10086 | export const V2TurnCompletedNotification__LegacyAppPathString = Schema.String; | | |
| 10087 | | 12204 | |
| 10088 | export type V2TurnCompletedNotification__McpToolCallAppContext = { | 12205 | export type V2TurnCompletedNotification__McpToolCallAppContext = { |
| 10089 | readonly actionName?: string | null; | 12206 | readonly actionName?: string | null; |
| ... | @@ -10098,99 +12215,130 @@ export const V2TurnCompletedNotification__McpToolCallAppContext = Schema.Struct( | ... | @@ -10098,99 +12215,130 @@ export const V2TurnCompletedNotification__McpToolCallAppContext = Schema.Struct( |
| 10098 | connectorId: Schema.String, | 12215 | connectorId: Schema.String, |
| 10099 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12216 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 10100 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12217 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 10101 | }); | 12218 | }).annotate({ identifier: "V2TurnCompletedNotification__McpToolCallAppContext" }); |
| 10102 | | 12219 | |
| 10103 | export type V2TurnCompletedNotification__McpToolCallError = { readonly message: string }; | 12220 | export type V2TurnCompletedNotification__McpToolCallError = { readonly message: string }; |
| 10104 | export const V2TurnCompletedNotification__McpToolCallError = Schema.Struct({ | 12221 | export const V2TurnCompletedNotification__McpToolCallError = Schema.Struct({ |
| 10105 | message: Schema.String, | 12222 | message: Schema.String, |
| 10106 | }); | 12223 | }).annotate({ identifier: "V2TurnCompletedNotification__McpToolCallError" }); |
| 10107 | | 12224 | |
| 10108 | export type V2TurnCompletedNotification__McpToolCallResult = { | 12225 | export type V2TurnCompletedNotification__McpToolCallResult = { |
| 10109 | readonly _meta?: unknown; | 12226 | readonly _meta?: Schema.Json; |
| 10110 | readonly content: ReadonlyArray<unknown>; | 12227 | readonly content: ReadonlyArray<Schema.Json>; |
| 10111 | readonly structuredContent?: unknown; | 12228 | readonly structuredContent?: Schema.Json; |
| 10112 | }; | 12229 | }; |
| 10113 | export const V2TurnCompletedNotification__McpToolCallResult = Schema.Struct({ | 12230 | export const V2TurnCompletedNotification__McpToolCallResult = Schema.Struct({ |
| 10114 | _meta: Schema.optionalKey(Schema.Unknown), | 12231 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 10115 | content: Schema.Array(Schema.Unknown), | 12232 | content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), |
| 10116 | structuredContent: Schema.optionalKey(Schema.Unknown), | 12233 | structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 10117 | }); | 12234 | }).annotate({ identifier: "V2TurnCompletedNotification__McpToolCallResult" }); |
| 10118 | | 12235 | |
| 10119 | export type V2TurnCompletedNotification__McpToolCallStatus = "inProgress" | "completed" | "failed"; | 12236 | export type V2TurnCompletedNotification__McpToolCallStatus = "inProgress" | "completed" | "failed"; |
| 10120 | export const V2TurnCompletedNotification__McpToolCallStatus = Schema.Literals([ | 12237 | export const V2TurnCompletedNotification__McpToolCallStatus = Schema.Literals([ |
| 10121 | "inProgress", | 12238 | "inProgress", |
| 10122 | "completed", | 12239 | "completed", |
| 10123 | "failed", | 12240 | "failed", |
| 10124 | ]); | 12241 | ]).annotate({ identifier: "V2TurnCompletedNotification__McpToolCallStatus" }); |
| 10125 | | | |
| 10126 | export type V2TurnCompletedNotification__MemoryCitationEntry = { | | |
| 10127 | readonly lineEnd: number; | | |
| 10128 | readonly lineStart: number; | | |
| 10129 | readonly note: string; | | |
| 10130 | readonly path: string; | | |
| 10131 | }; | | |
| 10132 | export const V2TurnCompletedNotification__MemoryCitationEntry = Schema.Struct({ | | |
| 10133 | lineEnd: Schema.Number.annotate({ format: "uint32" }) | | |
| 10134 | .check(Schema.isInt()) | | |
| 10135 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 10136 | lineStart: Schema.Number.annotate({ format: "uint32" }) | | |
| 10137 | .check(Schema.isInt()) | | |
| 10138 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 10139 | note: Schema.String, | | |
| 10140 | path: Schema.String, | | |
| 10141 | }); | | |
| 10142 | | | |
| 10143 | export type V2TurnCompletedNotification__MessagePhase = "commentary" | "final_answer"; | | |
| 10144 | export const V2TurnCompletedNotification__MessagePhase = Schema.Literals([ | | |
| 10145 | "commentary", | | |
| 10146 | "final_answer", | | |
| 10147 | ]).annotate({ | | |
| 10148 | description: | | |
| 10149 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', | | |
| 10150 | }); | | |
| 10151 | | 12242 | |
| 10152 | export type V2TurnCompletedNotification__NonSteerableTurnKind = "review" | "compact"; | 12243 | export type V2TurnCompletedNotification__DynamicToolCallOutputContentItem = |
| 10153 | export const V2TurnCompletedNotification__NonSteerableTurnKind = Schema.Literals([ | 12244 | | { readonly text: string; readonly type: "inputText" } |
| 10154 | "review", | 12245 | | { readonly imageUrl: string; readonly type: "inputImage" } |
| 10155 | "compact", | 12246 | | { readonly audioUrl: string; readonly type: "inputAudio" }; |
| 10156 | ]); | 12247 | export const V2TurnCompletedNotification__DynamicToolCallOutputContentItem = Schema.Union( |
| | 12248 | [ |
| | 12249 | Schema.Struct({ |
| | 12250 | text: Schema.String, |
| | 12251 | type: Schema.Literal("inputText").annotate({ |
| | 12252 | title: "InputTextDynamicToolCallOutputContentItemType", |
| | 12253 | }), |
| | 12254 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), |
| | 12255 | Schema.Struct({ |
| | 12256 | imageUrl: Schema.String, |
| | 12257 | type: Schema.Literal("inputImage").annotate({ |
| | 12258 | title: "InputImageDynamicToolCallOutputContentItemType", |
| | 12259 | }), |
| | 12260 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), |
| | 12261 | Schema.Struct({ |
| | 12262 | audioUrl: Schema.String, |
| | 12263 | type: Schema.Literal("inputAudio").annotate({ |
| | 12264 | title: "InputAudioDynamicToolCallOutputContentItemType", |
| | 12265 | }), |
| | 12266 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), |
| | 12267 | ], |
| | 12268 | { mode: "oneOf" }, |
| | 12269 | ).annotate({ identifier: "V2TurnCompletedNotification__DynamicToolCallOutputContentItem" }); |
| 10157 | | 12270 | |
| 10158 | export type V2TurnCompletedNotification__PatchApplyStatus = | 12271 | export type V2TurnCompletedNotification__DynamicToolCallStatus = |
| 10159 | | "inProgress" | 12272 | | "inProgress" |
| 10160 | | "completed" | 12273 | | "completed" |
| 10161 | | "failed" | 12274 | | "failed"; |
| 10162 | | "declined"; | 12275 | export const V2TurnCompletedNotification__DynamicToolCallStatus = Schema.Literals([ |
| 10163 | export const V2TurnCompletedNotification__PatchApplyStatus = Schema.Literals([ | | |
| 10164 | "inProgress", | 12276 | "inProgress", |
| 10165 | "completed", | 12277 | "completed", |
| 10166 | "failed", | 12278 | "failed", |
| 10167 | "declined", | 12279 | ]).annotate({ identifier: "V2TurnCompletedNotification__DynamicToolCallStatus" }); |
| 10168 | ]); | | |
| 10169 | | 12280 | |
| 10170 | export type V2TurnCompletedNotification__PatchChangeKind = | 12281 | export type V2TurnCompletedNotification__CollabAgentStatus = |
| 10171 | | { readonly type: "add" } | 12282 | | "pendingInit" |
| 10172 | | { readonly type: "delete" } | 12283 | | "running" |
| 10173 | | { readonly move_path?: string | null; readonly type: "update" }; | 12284 | | "interrupted" |
| 10174 | export const V2TurnCompletedNotification__PatchChangeKind = Schema.Union( | 12285 | | "completed" |
| 10175 | [ | 12286 | | "errored" |
| 10176 | Schema.Struct({ | 12287 | | "shutdown" |
| 10177 | type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }), | 12288 | | "notFound"; |
| 10178 | }).annotate({ title: "AddPatchChangeKind" }), | 12289 | export const V2TurnCompletedNotification__CollabAgentStatus = Schema.Literals([ |
| 10179 | Schema.Struct({ | 12290 | "pendingInit", |
| 10180 | type: Schema.Literal("delete").annotate({ title: "DeletePatchChangeKindType" }), | 12291 | "running", |
| 10181 | }).annotate({ title: "DeletePatchChangeKind" }), | 12292 | "interrupted", |
| 10182 | Schema.Struct({ | 12293 | "completed", |
| 10183 | move_path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12294 | "errored", |
| 10184 | type: Schema.Literal("update").annotate({ title: "UpdatePatchChangeKindType" }), | 12295 | "shutdown", |
| 10185 | }).annotate({ title: "UpdatePatchChangeKind" }), | 12296 | "notFound", |
| 10186 | ], | 12297 | ]).annotate({ identifier: "V2TurnCompletedNotification__CollabAgentStatus" }); |
| 10187 | { mode: "oneOf" }, | | |
| 10188 | ); | | |
| 10189 | | 12298 | |
| 10190 | export type V2TurnCompletedNotification__ReasoningEffort = string; | 12299 | export type V2TurnCompletedNotification__ReasoningEffort = string; |
| 10191 | export const V2TurnCompletedNotification__ReasoningEffort = Schema.String.annotate({ | 12300 | export const V2TurnCompletedNotification__ReasoningEffort = Schema.String.annotate({ |
| 10192 | description: "A non-empty reasoning effort value advertised by the model.", | 12301 | description: "A non-empty reasoning effort value advertised by the model.", |
| 10193 | }).check(Schema.isMinLength(1)); | 12302 | }).check( |
| | 12303 | Schema.isMinLength(1).annotate({ |
| | 12304 | expected: "a value with a length of at least 1", |
| | 12305 | identifier: "V2TurnCompletedNotification__ReasoningEffort", |
| | 12306 | }), |
| | 12307 | ); |
| | 12308 | |
| | 12309 | export type V2TurnCompletedNotification__CollabAgentToolCallStatus = |
| | 12310 | | "inProgress" |
| | 12311 | | "completed" |
| | 12312 | | "failed" |
| | 12313 | | "interrupted"; |
| | 12314 | export const V2TurnCompletedNotification__CollabAgentToolCallStatus = Schema.Literals([ |
| | 12315 | "inProgress", |
| | 12316 | "completed", |
| | 12317 | "failed", |
| | 12318 | "interrupted", |
| | 12319 | ]).annotate({ identifier: "V2TurnCompletedNotification__CollabAgentToolCallStatus" }); |
| | 12320 | |
| | 12321 | export type V2TurnCompletedNotification__CollabAgentTool = |
| | 12322 | | "spawnAgent" |
| | 12323 | | "sendInput" |
| | 12324 | | "resumeAgent" |
| | 12325 | | "wait" |
| | 12326 | | "closeAgent" |
| | 12327 | | "sendMessage" |
| | 12328 | | "followupTask" |
| | 12329 | | "interruptAgent" |
| | 12330 | | "listAgents"; |
| | 12331 | export const V2TurnCompletedNotification__CollabAgentTool = Schema.Literals([ |
| | 12332 | "spawnAgent", |
| | 12333 | "sendInput", |
| | 12334 | "resumeAgent", |
| | 12335 | "wait", |
| | 12336 | "closeAgent", |
| | 12337 | "sendMessage", |
| | 12338 | "followupTask", |
| | 12339 | "interruptAgent", |
| | 12340 | "listAgents", |
| | 12341 | ]).annotate({ identifier: "V2TurnCompletedNotification__CollabAgentTool" }); |
| 10194 | | 12342 | |
| 10195 | export type V2TurnCompletedNotification__SubAgentActivityKind = | 12343 | export type V2TurnCompletedNotification__SubAgentActivityKind = |
| 10196 | | "started" | 12344 | | "started" |
| ... | @@ -10202,44 +12350,7 @@ export const V2TurnCompletedNotification__SubAgentActivityKind = Schema.Literals | ... | @@ -10202,44 +12350,7 @@ export const V2TurnCompletedNotification__SubAgentActivityKind = Schema.Literals |
| 10202 | "interacted", | 12350 | "interacted", |
| 10203 | "interrupted", | 12351 | "interrupted", |
| 10204 | "completed", | 12352 | "completed", |
| 10205 | ]); | 12353 | ]).annotate({ identifier: "V2TurnCompletedNotification__SubAgentActivityKind" }); |
| 10206 | | | |
| 10207 | export type V2TurnCompletedNotification__TextElement = { | | |
| 10208 | readonly byteRange: { readonly end: number; readonly start: number }; | | |
| 10209 | readonly placeholder?: string | null; | | |
| 10210 | }; | | |
| 10211 | export const V2TurnCompletedNotification__TextElement = Schema.Struct({ | | |
| 10212 | byteRange: Schema.Struct({ | | |
| 10213 | end: Schema.Number.annotate({ format: "uint" }) | | |
| 10214 | .check(Schema.isInt()) | | |
| 10215 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 10216 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 10217 | .check(Schema.isInt()) | | |
| 10218 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 10219 | }).annotate({ | | |
| 10220 | description: "Byte range in the parent `text` buffer that this element occupies.", | | |
| 10221 | }), | | |
| 10222 | placeholder: Schema.optionalKey( | | |
| 10223 | Schema.Union([ | | |
| 10224 | Schema.String.annotate({ | | |
| 10225 | description: "Optional human-readable placeholder for the element, displayed in the UI.", | | |
| 10226 | }), | | |
| 10227 | Schema.Null, | | |
| 10228 | ]), | | |
| 10229 | ), | | |
| 10230 | }); | | |
| 10231 | | | |
| 10232 | export type V2TurnCompletedNotification__TurnStatus = | | |
| 10233 | | "completed" | | |
| 10234 | | "interrupted" | | |
| 10235 | | "failed" | | |
| 10236 | | "inProgress"; | | |
| 10237 | export const V2TurnCompletedNotification__TurnStatus = Schema.Literals([ | | |
| 10238 | "completed", | | |
| 10239 | "interrupted", | | |
| 10240 | "failed", | | |
| 10241 | "inProgress", | | |
| 10242 | ]); | | |
| 10243 | | 12354 | |
| 10244 | export type V2TurnCompletedNotification__WebSearchAction = | 12355 | export type V2TurnCompletedNotification__WebSearchAction = |
| 10245 | | { | 12356 | | { |
| ... | @@ -10271,7 +12382,36 @@ export const V2TurnCompletedNotification__WebSearchAction = Schema.Union( | ... | @@ -10271,7 +12382,36 @@ export const V2TurnCompletedNotification__WebSearchAction = Schema.Union( |
| 10271 | }).annotate({ title: "OtherWebSearchAction" }), | 12382 | }).annotate({ title: "OtherWebSearchAction" }), |
| 10272 | ], | 12383 | ], |
| 10273 | { mode: "oneOf" }, | 12384 | { mode: "oneOf" }, |
| 10274 | ); | 12385 | ).annotate({ identifier: "V2TurnCompletedNotification__WebSearchAction" }); |
| | 12386 | |
| | 12387 | export type V2TurnCompletedNotification__TurnItemsView = "notLoaded" | "summary" | "full"; |
| | 12388 | export const V2TurnCompletedNotification__TurnItemsView = Schema.Union( |
| | 12389 | [ |
| | 12390 | Schema.Literal("notLoaded").annotate({ |
| | 12391 | description: "`items` was not loaded for this turn. The field is intentionally empty.", |
| | 12392 | }), |
| | 12393 | Schema.Literal("summary").annotate({ |
| | 12394 | description: "`items` contains only a display summary for this turn.", |
| | 12395 | }), |
| | 12396 | Schema.Literal("full").annotate({ |
| | 12397 | description: |
| | 12398 | "`items` contains every ThreadItem available from persisted app-server history for this turn.", |
| | 12399 | }), |
| | 12400 | ], |
| | 12401 | { mode: "oneOf" }, |
| | 12402 | ).annotate({ identifier: "V2TurnCompletedNotification__TurnItemsView" }); |
| | 12403 | |
| | 12404 | export type V2TurnCompletedNotification__TurnStatus = |
| | 12405 | | "completed" |
| | 12406 | | "interrupted" |
| | 12407 | | "failed" |
| | 12408 | | "inProgress"; |
| | 12409 | export const V2TurnCompletedNotification__TurnStatus = Schema.Literals([ |
| | 12410 | "completed", |
| | 12411 | "interrupted", |
| | 12412 | "failed", |
| | 12413 | "inProgress", |
| | 12414 | ]).annotate({ identifier: "V2TurnCompletedNotification__TurnStatus" }); |
| 10275 | | 12415 | |
| 10276 | export type V2TurnPlanUpdatedNotification__TurnPlanStepStatus = | 12416 | export type V2TurnPlanUpdatedNotification__TurnPlanStepStatus = |
| 10277 | | "pending" | 12417 | | "pending" |
| ... | @@ -10281,31 +12421,107 @@ export const V2TurnPlanUpdatedNotification__TurnPlanStepStatus = Schema.Literals | ... | @@ -10281,31 +12421,107 @@ export const V2TurnPlanUpdatedNotification__TurnPlanStepStatus = Schema.Literals |
| 10281 | "pending", | 12421 | "pending", |
| 10282 | "inProgress", | 12422 | "inProgress", |
| 10283 | "completed", | 12423 | "completed", |
| 10284 | ]); | 12424 | ]).annotate({ identifier: "V2TurnPlanUpdatedNotification__TurnPlanStepStatus" }); |
| | 12425 | |
| | 12426 | export type V2TurnStartedNotification__NonSteerableTurnKind = "review" | "compact"; |
| | 12427 | export const V2TurnStartedNotification__NonSteerableTurnKind = Schema.Literals([ |
| | 12428 | "review", |
| | 12429 | "compact", |
| | 12430 | ]).annotate({ identifier: "V2TurnStartedNotification__NonSteerableTurnKind" }); |
| | 12431 | |
| | 12432 | export type V2TurnStartedNotification__ByteRange = { readonly end: number; readonly start: number }; |
| | 12433 | export const V2TurnStartedNotification__ByteRange = Schema.Struct({ |
| | 12434 | end: Schema.Number.annotate({ format: "uint" }) |
| | 12435 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 12436 | .check( |
| | 12437 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 12438 | ), |
| | 12439 | start: Schema.Number.annotate({ format: "uint" }) |
| | 12440 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 12441 | .check( |
| | 12442 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 12443 | ), |
| | 12444 | }).annotate({ identifier: "V2TurnStartedNotification__ByteRange" }); |
| | 12445 | |
| | 12446 | export type V2TurnStartedNotification__ImageDetail = "auto" | "low" | "high" | "original"; |
| | 12447 | export const V2TurnStartedNotification__ImageDetail = Schema.Literals([ |
| | 12448 | "auto", |
| | 12449 | "low", |
| | 12450 | "high", |
| | 12451 | "original", |
| | 12452 | ]).annotate({ identifier: "V2TurnStartedNotification__ImageDetail" }); |
| | 12453 | |
| | 12454 | export type V2TurnStartedNotification__HookPromptFragment = { |
| | 12455 | readonly hookRunId: string; |
| | 12456 | readonly text: string; |
| | 12457 | }; |
| | 12458 | export const V2TurnStartedNotification__HookPromptFragment = Schema.Struct({ |
| | 12459 | hookRunId: Schema.String, |
| | 12460 | text: Schema.String, |
| | 12461 | }).annotate({ identifier: "V2TurnStartedNotification__HookPromptFragment" }); |
| | 12462 | |
| | 12463 | export type V2TurnStartedNotification__MemoryCitationEntry = { |
| | 12464 | readonly lineEnd: number; |
| | 12465 | readonly lineStart: number; |
| | 12466 | readonly note: string; |
| | 12467 | readonly path: string; |
| | 12468 | }; |
| | 12469 | export const V2TurnStartedNotification__MemoryCitationEntry = Schema.Struct({ |
| | 12470 | lineEnd: Schema.Number.annotate({ format: "uint32" }) |
| | 12471 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 12472 | .check( |
| | 12473 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 12474 | ), |
| | 12475 | lineStart: Schema.Number.annotate({ format: "uint32" }) |
| | 12476 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 12477 | .check( |
| | 12478 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 12479 | ), |
| | 12480 | note: Schema.String, |
| | 12481 | path: Schema.String, |
| | 12482 | }).annotate({ identifier: "V2TurnStartedNotification__MemoryCitationEntry" }); |
| | 12483 | |
| | 12484 | export type V2TurnStartedNotification__MessagePhase = "commentary" | "final_answer"; |
| | 12485 | export const V2TurnStartedNotification__MessagePhase = Schema.Union( |
| | 12486 | [ |
| | 12487 | Schema.Literal("commentary").annotate({ |
| | 12488 | description: |
| | 12489 | "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.", |
| | 12490 | }), |
| | 12491 | Schema.Literal("final_answer").annotate({ |
| | 12492 | description: "The assistant's terminal answer text for the current turn.", |
| | 12493 | }), |
| | 12494 | ], |
| | 12495 | { mode: "oneOf" }, |
| | 12496 | ).annotate({ |
| | 12497 | description: |
| | 12498 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', |
| | 12499 | identifier: "V2TurnStartedNotification__MessagePhase", |
| | 12500 | }); |
| 10285 | | 12501 | |
| 10286 | export type V2TurnStartedNotification__AbsolutePathBuf = string; | 12502 | export type V2TurnStartedNotification__AbsolutePathBuf = string; |
| 10287 | export const V2TurnStartedNotification__AbsolutePathBuf = Schema.String.annotate({ | 12503 | export const V2TurnStartedNotification__AbsolutePathBuf = Schema.String.annotate({ |
| 10288 | description: | 12504 | description: |
| 10289 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 12505 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 12506 | identifier: "V2TurnStartedNotification__AbsolutePathBuf", |
| 10290 | }); | 12507 | }); |
| 10291 | | 12508 | |
| 10292 | export type V2TurnStartedNotification__CollabAgentStatus = | 12509 | export type V2TurnStartedNotification__LegacyAppPathString = string; |
| 10293 | | "pendingInit" | 12510 | export const V2TurnStartedNotification__LegacyAppPathString = Schema.String.annotate({ |
| 10294 | | "running" | 12511 | identifier: "V2TurnStartedNotification__LegacyAppPathString", |
| 10295 | | "interrupted" | 12512 | }); |
| 10296 | | "completed" | 12513 | |
| 10297 | | "errored" | 12514 | export type V2TurnStartedNotification__CommandExecutionSource = |
| 10298 | | "shutdown" | 12515 | | "agent" |
| 10299 | | "notFound"; | 12516 | | "userShell" |
| 10300 | export const V2TurnStartedNotification__CollabAgentStatus = Schema.Literals([ | 12517 | | "unifiedExecStartup" |
| 10301 | "pendingInit", | 12518 | | "unifiedExecInteraction"; |
| 10302 | "running", | 12519 | export const V2TurnStartedNotification__CommandExecutionSource = Schema.Literals([ |
| 10303 | "interrupted", | 12520 | "agent", |
| 10304 | "completed", | 12521 | "userShell", |
| 10305 | "errored", | 12522 | "unifiedExecStartup", |
| 10306 | "shutdown", | 12523 | "unifiedExecInteraction", |
| 10307 | "notFound", | 12524 | ]).annotate({ identifier: "V2TurnStartedNotification__CommandExecutionSource" }); |
| 10308 | ]); | | |
| 10309 | | 12525 | |
| 10310 | export type V2TurnStartedNotification__CommandExecutionStatus = | 12526 | export type V2TurnStartedNotification__CommandExecutionStatus = |
| 10311 | | "inProgress" | 12527 | | "inProgress" |
| ... | @@ -10317,65 +12533,39 @@ export const V2TurnStartedNotification__CommandExecutionStatus = Schema.Literals | ... | @@ -10317,65 +12533,39 @@ export const V2TurnStartedNotification__CommandExecutionStatus = Schema.Literals |
| 10317 | "completed", | 12533 | "completed", |
| 10318 | "failed", | 12534 | "failed", |
| 10319 | "declined", | 12535 | "declined", |
| 10320 | ]); | 12536 | ]).annotate({ identifier: "V2TurnStartedNotification__CommandExecutionStatus" }); |
| 10321 | | 12537 | |
| 10322 | export type V2TurnStartedNotification__DynamicToolCallOutputContentItem = | 12538 | export type V2TurnStartedNotification__PatchChangeKind = |
| 10323 | | { readonly text: string; readonly type: "inputText" } | 12539 | | { readonly type: "add" } |
| 10324 | | { readonly imageUrl: string; readonly type: "inputImage" } | 12540 | | { readonly type: "delete" } |
| 10325 | | { readonly audioUrl: string; readonly type: "inputAudio" }; | 12541 | | { readonly move_path?: string | null; readonly type: "update" }; |
| 10326 | export const V2TurnStartedNotification__DynamicToolCallOutputContentItem = Schema.Union( | 12542 | export const V2TurnStartedNotification__PatchChangeKind = Schema.Union( |
| 10327 | [ | 12543 | [ |
| 10328 | Schema.Struct({ | 12544 | Schema.Struct({ |
| 10329 | text: Schema.String, | 12545 | type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }), |
| 10330 | type: Schema.Literal("inputText").annotate({ | 12546 | }).annotate({ title: "AddPatchChangeKind" }), |
| 10331 | title: "InputTextDynamicToolCallOutputContentItemType", | | |
| 10332 | }), | | |
| 10333 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), | | |
| 10334 | Schema.Struct({ | 12547 | Schema.Struct({ |
| 10335 | imageUrl: Schema.String, | 12548 | type: Schema.Literal("delete").annotate({ title: "DeletePatchChangeKindType" }), |
| 10336 | type: Schema.Literal("inputImage").annotate({ | 12549 | }).annotate({ title: "DeletePatchChangeKind" }), |
| 10337 | title: "InputImageDynamicToolCallOutputContentItemType", | | |
| 10338 | }), | | |
| 10339 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), | | |
| 10340 | Schema.Struct({ | 12550 | Schema.Struct({ |
| 10341 | audioUrl: Schema.String, | 12551 | move_path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 10342 | type: Schema.Literal("inputAudio").annotate({ | 12552 | type: Schema.Literal("update").annotate({ title: "UpdatePatchChangeKindType" }), |
| 10343 | title: "InputAudioDynamicToolCallOutputContentItemType", | 12553 | }).annotate({ title: "UpdatePatchChangeKind" }), |
| 10344 | }), | | |
| 10345 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), | | |
| 10346 | ], | 12554 | ], |
| 10347 | { mode: "oneOf" }, | 12555 | { mode: "oneOf" }, |
| 10348 | ); | 12556 | ).annotate({ identifier: "V2TurnStartedNotification__PatchChangeKind" }); |
| 10349 | | 12557 | |
| 10350 | export type V2TurnStartedNotification__DynamicToolCallStatus = | 12558 | export type V2TurnStartedNotification__PatchApplyStatus = |
| 10351 | | "inProgress" | 12559 | | "inProgress" |
| 10352 | | "completed" | 12560 | | "completed" |
| 10353 | | "failed"; | 12561 | | "failed" |
| 10354 | export const V2TurnStartedNotification__DynamicToolCallStatus = Schema.Literals([ | 12562 | | "declined"; |
| | 12563 | export const V2TurnStartedNotification__PatchApplyStatus = Schema.Literals([ |
| 10355 | "inProgress", | 12564 | "inProgress", |
| 10356 | "completed", | 12565 | "completed", |
| 10357 | "failed", | 12566 | "failed", |
| 10358 | ]); | 12567 | "declined", |
| 10359 | | 12568 | ]).annotate({ identifier: "V2TurnStartedNotification__PatchApplyStatus" }); |
| 10360 | export type V2TurnStartedNotification__HookPromptFragment = { | | |
| 10361 | readonly hookRunId: string; | | |
| 10362 | readonly text: string; | | |
| 10363 | }; | | |
| 10364 | export const V2TurnStartedNotification__HookPromptFragment = Schema.Struct({ | | |
| 10365 | hookRunId: Schema.String, | | |
| 10366 | text: Schema.String, | | |
| 10367 | }); | | |
| 10368 | | | |
| 10369 | export type V2TurnStartedNotification__ImageDetail = "auto" | "low" | "high" | "original"; | | |
| 10370 | export const V2TurnStartedNotification__ImageDetail = Schema.Literals([ | | |
| 10371 | "auto", | | |
| 10372 | "low", | | |
| 10373 | "high", | | |
| 10374 | "original", | | |
| 10375 | ]); | | |
| 10376 | | | |
| 10377 | export type V2TurnStartedNotification__LegacyAppPathString = string; | | |
| 10378 | export const V2TurnStartedNotification__LegacyAppPathString = Schema.String; | | |
| 10379 | | 12569 | |
| 10380 | export type V2TurnStartedNotification__McpToolCallAppContext = { | 12570 | export type V2TurnStartedNotification__McpToolCallAppContext = { |
| 10381 | readonly actionName?: string | null; | 12571 | readonly actionName?: string | null; |
| ... | @@ -10390,99 +12580,130 @@ export const V2TurnStartedNotification__McpToolCallAppContext = Schema.Struct({ | ... | @@ -10390,99 +12580,130 @@ export const V2TurnStartedNotification__McpToolCallAppContext = Schema.Struct({ |
| 10390 | connectorId: Schema.String, | 12580 | connectorId: Schema.String, |
| 10391 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12581 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 10392 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12582 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 10393 | }); | 12583 | }).annotate({ identifier: "V2TurnStartedNotification__McpToolCallAppContext" }); |
| 10394 | | 12584 | |
| 10395 | export type V2TurnStartedNotification__McpToolCallError = { readonly message: string }; | 12585 | export type V2TurnStartedNotification__McpToolCallError = { readonly message: string }; |
| 10396 | export const V2TurnStartedNotification__McpToolCallError = Schema.Struct({ | 12586 | export const V2TurnStartedNotification__McpToolCallError = Schema.Struct({ |
| 10397 | message: Schema.String, | 12587 | message: Schema.String, |
| 10398 | }); | 12588 | }).annotate({ identifier: "V2TurnStartedNotification__McpToolCallError" }); |
| 10399 | | 12589 | |
| 10400 | export type V2TurnStartedNotification__McpToolCallResult = { | 12590 | export type V2TurnStartedNotification__McpToolCallResult = { |
| 10401 | readonly _meta?: unknown; | 12591 | readonly _meta?: Schema.Json; |
| 10402 | readonly content: ReadonlyArray<unknown>; | 12592 | readonly content: ReadonlyArray<Schema.Json>; |
| 10403 | readonly structuredContent?: unknown; | 12593 | readonly structuredContent?: Schema.Json; |
| 10404 | }; | 12594 | }; |
| 10405 | export const V2TurnStartedNotification__McpToolCallResult = Schema.Struct({ | 12595 | export const V2TurnStartedNotification__McpToolCallResult = Schema.Struct({ |
| 10406 | _meta: Schema.optionalKey(Schema.Unknown), | 12596 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 10407 | content: Schema.Array(Schema.Unknown), | 12597 | content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), |
| 10408 | structuredContent: Schema.optionalKey(Schema.Unknown), | 12598 | structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 10409 | }); | 12599 | }).annotate({ identifier: "V2TurnStartedNotification__McpToolCallResult" }); |
| 10410 | | 12600 | |
| 10411 | export type V2TurnStartedNotification__McpToolCallStatus = "inProgress" | "completed" | "failed"; | 12601 | export type V2TurnStartedNotification__McpToolCallStatus = "inProgress" | "completed" | "failed"; |
| 10412 | export const V2TurnStartedNotification__McpToolCallStatus = Schema.Literals([ | 12602 | export const V2TurnStartedNotification__McpToolCallStatus = Schema.Literals([ |
| 10413 | "inProgress", | 12603 | "inProgress", |
| 10414 | "completed", | 12604 | "completed", |
| 10415 | "failed", | 12605 | "failed", |
| 10416 | ]); | 12606 | ]).annotate({ identifier: "V2TurnStartedNotification__McpToolCallStatus" }); |
| 10417 | | | |
| 10418 | export type V2TurnStartedNotification__MemoryCitationEntry = { | | |
| 10419 | readonly lineEnd: number; | | |
| 10420 | readonly lineStart: number; | | |
| 10421 | readonly note: string; | | |
| 10422 | readonly path: string; | | |
| 10423 | }; | | |
| 10424 | export const V2TurnStartedNotification__MemoryCitationEntry = Schema.Struct({ | | |
| 10425 | lineEnd: Schema.Number.annotate({ format: "uint32" }) | | |
| 10426 | .check(Schema.isInt()) | | |
| 10427 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 10428 | lineStart: Schema.Number.annotate({ format: "uint32" }) | | |
| 10429 | .check(Schema.isInt()) | | |
| 10430 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 10431 | note: Schema.String, | | |
| 10432 | path: Schema.String, | | |
| 10433 | }); | | |
| 10434 | | | |
| 10435 | export type V2TurnStartedNotification__MessagePhase = "commentary" | "final_answer"; | | |
| 10436 | export const V2TurnStartedNotification__MessagePhase = Schema.Literals([ | | |
| 10437 | "commentary", | | |
| 10438 | "final_answer", | | |
| 10439 | ]).annotate({ | | |
| 10440 | description: | | |
| 10441 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', | | |
| 10442 | }); | | |
| 10443 | | 12607 | |
| 10444 | export type V2TurnStartedNotification__NonSteerableTurnKind = "review" | "compact"; | 12608 | export type V2TurnStartedNotification__DynamicToolCallOutputContentItem = |
| 10445 | export const V2TurnStartedNotification__NonSteerableTurnKind = Schema.Literals([ | 12609 | | { readonly text: string; readonly type: "inputText" } |
| 10446 | "review", | 12610 | | { readonly imageUrl: string; readonly type: "inputImage" } |
| 10447 | "compact", | 12611 | | { readonly audioUrl: string; readonly type: "inputAudio" }; |
| 10448 | ]); | 12612 | export const V2TurnStartedNotification__DynamicToolCallOutputContentItem = Schema.Union( |
| | 12613 | [ |
| | 12614 | Schema.Struct({ |
| | 12615 | text: Schema.String, |
| | 12616 | type: Schema.Literal("inputText").annotate({ |
| | 12617 | title: "InputTextDynamicToolCallOutputContentItemType", |
| | 12618 | }), |
| | 12619 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), |
| | 12620 | Schema.Struct({ |
| | 12621 | imageUrl: Schema.String, |
| | 12622 | type: Schema.Literal("inputImage").annotate({ |
| | 12623 | title: "InputImageDynamicToolCallOutputContentItemType", |
| | 12624 | }), |
| | 12625 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), |
| | 12626 | Schema.Struct({ |
| | 12627 | audioUrl: Schema.String, |
| | 12628 | type: Schema.Literal("inputAudio").annotate({ |
| | 12629 | title: "InputAudioDynamicToolCallOutputContentItemType", |
| | 12630 | }), |
| | 12631 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), |
| | 12632 | ], |
| | 12633 | { mode: "oneOf" }, |
| | 12634 | ).annotate({ identifier: "V2TurnStartedNotification__DynamicToolCallOutputContentItem" }); |
| 10449 | | 12635 | |
| 10450 | export type V2TurnStartedNotification__PatchApplyStatus = | 12636 | export type V2TurnStartedNotification__DynamicToolCallStatus = |
| 10451 | | "inProgress" | 12637 | | "inProgress" |
| 10452 | | "completed" | 12638 | | "completed" |
| 10453 | | "failed" | 12639 | | "failed"; |
| 10454 | | "declined"; | 12640 | export const V2TurnStartedNotification__DynamicToolCallStatus = Schema.Literals([ |
| 10455 | export const V2TurnStartedNotification__PatchApplyStatus = Schema.Literals([ | | |
| 10456 | "inProgress", | 12641 | "inProgress", |
| 10457 | "completed", | 12642 | "completed", |
| 10458 | "failed", | 12643 | "failed", |
| 10459 | "declined", | 12644 | ]).annotate({ identifier: "V2TurnStartedNotification__DynamicToolCallStatus" }); |
| 10460 | ]); | | |
| 10461 | | 12645 | |
| 10462 | export type V2TurnStartedNotification__PatchChangeKind = | 12646 | export type V2TurnStartedNotification__CollabAgentStatus = |
| 10463 | | { readonly type: "add" } | 12647 | | "pendingInit" |
| 10464 | | { readonly type: "delete" } | 12648 | | "running" |
| 10465 | | { readonly move_path?: string | null; readonly type: "update" }; | 12649 | | "interrupted" |
| 10466 | export const V2TurnStartedNotification__PatchChangeKind = Schema.Union( | 12650 | | "completed" |
| 10467 | [ | 12651 | | "errored" |
| 10468 | Schema.Struct({ | 12652 | | "shutdown" |
| 10469 | type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }), | 12653 | | "notFound"; |
| 10470 | }).annotate({ title: "AddPatchChangeKind" }), | 12654 | export const V2TurnStartedNotification__CollabAgentStatus = Schema.Literals([ |
| 10471 | Schema.Struct({ | 12655 | "pendingInit", |
| 10472 | type: Schema.Literal("delete").annotate({ title: "DeletePatchChangeKindType" }), | 12656 | "running", |
| 10473 | }).annotate({ title: "DeletePatchChangeKind" }), | 12657 | "interrupted", |
| 10474 | Schema.Struct({ | 12658 | "completed", |
| 10475 | move_path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12659 | "errored", |
| 10476 | type: Schema.Literal("update").annotate({ title: "UpdatePatchChangeKindType" }), | 12660 | "shutdown", |
| 10477 | }).annotate({ title: "UpdatePatchChangeKind" }), | 12661 | "notFound", |
| 10478 | ], | 12662 | ]).annotate({ identifier: "V2TurnStartedNotification__CollabAgentStatus" }); |
| 10479 | { mode: "oneOf" }, | | |
| 10480 | ); | | |
| 10481 | | 12663 | |
| 10482 | export type V2TurnStartedNotification__ReasoningEffort = string; | 12664 | export type V2TurnStartedNotification__ReasoningEffort = string; |
| 10483 | export const V2TurnStartedNotification__ReasoningEffort = Schema.String.annotate({ | 12665 | export const V2TurnStartedNotification__ReasoningEffort = Schema.String.annotate({ |
| 10484 | description: "A non-empty reasoning effort value advertised by the model.", | 12666 | description: "A non-empty reasoning effort value advertised by the model.", |
| 10485 | }).check(Schema.isMinLength(1)); | 12667 | }).check( |
| | 12668 | Schema.isMinLength(1).annotate({ |
| | 12669 | expected: "a value with a length of at least 1", |
| | 12670 | identifier: "V2TurnStartedNotification__ReasoningEffort", |
| | 12671 | }), |
| | 12672 | ); |
| | 12673 | |
| | 12674 | export type V2TurnStartedNotification__CollabAgentToolCallStatus = |
| | 12675 | | "inProgress" |
| | 12676 | | "completed" |
| | 12677 | | "failed" |
| | 12678 | | "interrupted"; |
| | 12679 | export const V2TurnStartedNotification__CollabAgentToolCallStatus = Schema.Literals([ |
| | 12680 | "inProgress", |
| | 12681 | "completed", |
| | 12682 | "failed", |
| | 12683 | "interrupted", |
| | 12684 | ]).annotate({ identifier: "V2TurnStartedNotification__CollabAgentToolCallStatus" }); |
| | 12685 | |
| | 12686 | export type V2TurnStartedNotification__CollabAgentTool = |
| | 12687 | | "spawnAgent" |
| | 12688 | | "sendInput" |
| | 12689 | | "resumeAgent" |
| | 12690 | | "wait" |
| | 12691 | | "closeAgent" |
| | 12692 | | "sendMessage" |
| | 12693 | | "followupTask" |
| | 12694 | | "interruptAgent" |
| | 12695 | | "listAgents"; |
| | 12696 | export const V2TurnStartedNotification__CollabAgentTool = Schema.Literals([ |
| | 12697 | "spawnAgent", |
| | 12698 | "sendInput", |
| | 12699 | "resumeAgent", |
| | 12700 | "wait", |
| | 12701 | "closeAgent", |
| | 12702 | "sendMessage", |
| | 12703 | "followupTask", |
| | 12704 | "interruptAgent", |
| | 12705 | "listAgents", |
| | 12706 | ]).annotate({ identifier: "V2TurnStartedNotification__CollabAgentTool" }); |
| 10486 | | 12707 | |
| 10487 | export type V2TurnStartedNotification__SubAgentActivityKind = | 12708 | export type V2TurnStartedNotification__SubAgentActivityKind = |
| 10488 | | "started" | 12709 | | "started" |
| ... | @@ -10494,44 +12715,7 @@ export const V2TurnStartedNotification__SubAgentActivityKind = Schema.Literals([ | ... | @@ -10494,44 +12715,7 @@ export const V2TurnStartedNotification__SubAgentActivityKind = Schema.Literals([ |
| 10494 | "interacted", | 12715 | "interacted", |
| 10495 | "interrupted", | 12716 | "interrupted", |
| 10496 | "completed", | 12717 | "completed", |
| 10497 | ]); | 12718 | ]).annotate({ identifier: "V2TurnStartedNotification__SubAgentActivityKind" }); |
| 10498 | | | |
| 10499 | export type V2TurnStartedNotification__TextElement = { | | |
| 10500 | readonly byteRange: { readonly end: number; readonly start: number }; | | |
| 10501 | readonly placeholder?: string | null; | | |
| 10502 | }; | | |
| 10503 | export const V2TurnStartedNotification__TextElement = Schema.Struct({ | | |
| 10504 | byteRange: Schema.Struct({ | | |
| 10505 | end: Schema.Number.annotate({ format: "uint" }) | | |
| 10506 | .check(Schema.isInt()) | | |
| 10507 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 10508 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 10509 | .check(Schema.isInt()) | | |
| 10510 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 10511 | }).annotate({ | | |
| 10512 | description: "Byte range in the parent `text` buffer that this element occupies.", | | |
| 10513 | }), | | |
| 10514 | placeholder: Schema.optionalKey( | | |
| 10515 | Schema.Union([ | | |
| 10516 | Schema.String.annotate({ | | |
| 10517 | description: "Optional human-readable placeholder for the element, displayed in the UI.", | | |
| 10518 | }), | | |
| 10519 | Schema.Null, | | |
| 10520 | ]), | | |
| 10521 | ), | | |
| 10522 | }); | | |
| 10523 | | | |
| 10524 | export type V2TurnStartedNotification__TurnStatus = | | |
| 10525 | | "completed" | | |
| 10526 | | "interrupted" | | |
| 10527 | | "failed" | | |
| 10528 | | "inProgress"; | | |
| 10529 | export const V2TurnStartedNotification__TurnStatus = Schema.Literals([ | | |
| 10530 | "completed", | | |
| 10531 | "interrupted", | | |
| 10532 | "failed", | | |
| 10533 | "inProgress", | | |
| 10534 | ]); | | |
| 10535 | | 12719 | |
| 10536 | export type V2TurnStartedNotification__WebSearchAction = | 12720 | export type V2TurnStartedNotification__WebSearchAction = |
| 10537 | | { | 12721 | | { |
| ... | @@ -10563,29 +12747,36 @@ export const V2TurnStartedNotification__WebSearchAction = Schema.Union( | ... | @@ -10563,29 +12747,36 @@ export const V2TurnStartedNotification__WebSearchAction = Schema.Union( |
| 10563 | }).annotate({ title: "OtherWebSearchAction" }), | 12747 | }).annotate({ title: "OtherWebSearchAction" }), |
| 10564 | ], | 12748 | ], |
| 10565 | { mode: "oneOf" }, | 12749 | { mode: "oneOf" }, |
| 10566 | ); | 12750 | ).annotate({ identifier: "V2TurnStartedNotification__WebSearchAction" }); |
| 10567 | | | |
| 10568 | export type V2TurnStartParams__AbsolutePathBuf = string; | | |
| 10569 | export const V2TurnStartParams__AbsolutePathBuf = Schema.String.annotate({ | | |
| 10570 | description: | | |
| 10571 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | | |
| 10572 | }); | | |
| 10573 | | 12751 | |
| 10574 | export type V2TurnStartParams__AdditionalContextKind = "untrusted" | "application"; | 12752 | export type V2TurnStartedNotification__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 10575 | export const V2TurnStartParams__AdditionalContextKind = Schema.Literals([ | 12753 | export const V2TurnStartedNotification__TurnItemsView = Schema.Union( |
| 10576 | "untrusted", | 12754 | [ |
| 10577 | "application", | 12755 | Schema.Literal("notLoaded").annotate({ |
| 10578 | ]); | 12756 | description: "`items` was not loaded for this turn. The field is intentionally empty.", |
| | 12757 | }), |
| | 12758 | Schema.Literal("summary").annotate({ |
| | 12759 | description: "`items` contains only a display summary for this turn.", |
| | 12760 | }), |
| | 12761 | Schema.Literal("full").annotate({ |
| | 12762 | description: |
| | 12763 | "`items` contains every ThreadItem available from persisted app-server history for this turn.", |
| | 12764 | }), |
| | 12765 | ], |
| | 12766 | { mode: "oneOf" }, |
| | 12767 | ).annotate({ identifier: "V2TurnStartedNotification__TurnItemsView" }); |
| 10579 | | 12768 | |
| 10580 | export type V2TurnStartParams__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent"; | 12769 | export type V2TurnStartedNotification__TurnStatus = |
| 10581 | export const V2TurnStartParams__ApprovalsReviewer = Schema.Literals([ | 12770 | | "completed" |
| 10582 | "user", | 12771 | | "interrupted" |
| 10583 | "auto_review", | 12772 | | "failed" |
| 10584 | "guardian_subagent", | 12773 | | "inProgress"; |
| 10585 | ]).annotate({ | 12774 | export const V2TurnStartedNotification__TurnStatus = Schema.Literals([ |
| 10586 | description: | 12775 | "completed", |
| 10587 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", | 12776 | "interrupted", |
| 10588 | }); | 12777 | "failed", |
| | 12778 | "inProgress", |
| | 12779 | ]).annotate({ identifier: "V2TurnStartedNotification__TurnStatus" }); |
| 10589 | | 12780 | |
| 10590 | export type V2TurnStartParams__AskForApproval = | 12781 | export type V2TurnStartParams__AskForApproval = |
| 10591 | | "untrusted" | 12782 | | "untrusted" |
| ... | @@ -10614,26 +12805,69 @@ export const V2TurnStartParams__AskForApproval = Schema.Union( | ... | @@ -10614,26 +12805,69 @@ export const V2TurnStartParams__AskForApproval = Schema.Union( |
| 10614 | }).annotate({ title: "GranularAskForApproval" }), | 12805 | }).annotate({ title: "GranularAskForApproval" }), |
| 10615 | ], | 12806 | ], |
| 10616 | { mode: "oneOf" }, | 12807 | { mode: "oneOf" }, |
| 10617 | ); | 12808 | ).annotate({ identifier: "V2TurnStartParams__AskForApproval" }); |
| 10618 | | | |
| 10619 | export type V2TurnStartParams__ImageDetail = "auto" | "low" | "high" | "original"; | | |
| 10620 | export const V2TurnStartParams__ImageDetail = Schema.Literals(["auto", "low", "high", "original"]); | | |
| 10621 | | | |
| 10622 | export type V2TurnStartParams__LegacyAppPathString = string; | | |
| 10623 | export const V2TurnStartParams__LegacyAppPathString = Schema.String; | | |
| 10624 | | 12809 | |
| 10625 | export type V2TurnStartParams__ModeKind = "plan" | "default"; | 12810 | export type V2TurnStartParams__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent"; |
| 10626 | export const V2TurnStartParams__ModeKind = Schema.Literals(["plan", "default"]).annotate({ | 12811 | export const V2TurnStartParams__ApprovalsReviewer = Schema.Literals([ |
| 10627 | description: "Initial collaboration mode to use when the TUI starts.", | 12812 | "user", |
| | 12813 | "auto_review", |
| | 12814 | "guardian_subagent", |
| | 12815 | ]).annotate({ |
| | 12816 | description: |
| | 12817 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", |
| | 12818 | identifier: "V2TurnStartParams__ApprovalsReviewer", |
| 10628 | }); | 12819 | }); |
| 10629 | | 12820 | |
| 10630 | export type V2TurnStartParams__Personality = "none" | "friendly" | "pragmatic"; | | |
| 10631 | export const V2TurnStartParams__Personality = Schema.Literals(["none", "friendly", "pragmatic"]); | | |
| 10632 | | | |
| 10633 | export type V2TurnStartParams__ReasoningEffort = string; | 12821 | export type V2TurnStartParams__ReasoningEffort = string; |
| 10634 | export const V2TurnStartParams__ReasoningEffort = Schema.String.annotate({ | 12822 | export const V2TurnStartParams__ReasoningEffort = Schema.String.annotate({ |
| 10635 | description: "A non-empty reasoning effort value advertised by the model.", | 12823 | description: "A non-empty reasoning effort value advertised by the model.", |
| 10636 | }).check(Schema.isMinLength(1)); | 12824 | }).check( |
| | 12825 | Schema.isMinLength(1).annotate({ |
| | 12826 | expected: "a value with a length of at least 1", |
| | 12827 | identifier: "V2TurnStartParams__ReasoningEffort", |
| | 12828 | }), |
| | 12829 | ); |
| | 12830 | |
| | 12831 | export type V2TurnStartParams__ByteRange = { readonly end: number; readonly start: number }; |
| | 12832 | export const V2TurnStartParams__ByteRange = Schema.Struct({ |
| | 12833 | end: Schema.Number.annotate({ format: "uint" }) |
| | 12834 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 12835 | .check( |
| | 12836 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 12837 | ), |
| | 12838 | start: Schema.Number.annotate({ format: "uint" }) |
| | 12839 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 12840 | .check( |
| | 12841 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 12842 | ), |
| | 12843 | }).annotate({ identifier: "V2TurnStartParams__ByteRange" }); |
| | 12844 | |
| | 12845 | export type V2TurnStartParams__ImageDetail = "auto" | "low" | "high" | "original"; |
| | 12846 | export const V2TurnStartParams__ImageDetail = Schema.Literals([ |
| | 12847 | "auto", |
| | 12848 | "low", |
| | 12849 | "high", |
| | 12850 | "original", |
| | 12851 | ]).annotate({ identifier: "V2TurnStartParams__ImageDetail" }); |
| | 12852 | |
| | 12853 | export type V2TurnStartParams__Personality = "none" | "friendly" | "pragmatic"; |
| | 12854 | export const V2TurnStartParams__Personality = Schema.Literals([ |
| | 12855 | "none", |
| | 12856 | "friendly", |
| | 12857 | "pragmatic", |
| | 12858 | ]).annotate({ identifier: "V2TurnStartParams__Personality" }); |
| | 12859 | |
| | 12860 | export type V2TurnStartParams__NetworkAccess = "restricted" | "enabled"; |
| | 12861 | export const V2TurnStartParams__NetworkAccess = Schema.Literals(["restricted", "enabled"]).annotate( |
| | 12862 | { identifier: "V2TurnStartParams__NetworkAccess" }, |
| | 12863 | ); |
| | 12864 | |
| | 12865 | export type V2TurnStartParams__AbsolutePathBuf = string; |
| | 12866 | export const V2TurnStartParams__AbsolutePathBuf = Schema.String.annotate({ |
| | 12867 | description: |
| | 12868 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 12869 | identifier: "V2TurnStartParams__AbsolutePathBuf", |
| | 12870 | }); |
| 10637 | | 12871 | |
| 10638 | export type V2TurnStartParams__ReasoningSummary = "auto" | "concise" | "detailed" | "none"; | 12872 | export type V2TurnStartParams__ReasoningSummary = "auto" | "concise" | "detailed" | "none"; |
| 10639 | export const V2TurnStartParams__ReasoningSummary = Schema.Union( | 12873 | export const V2TurnStartParams__ReasoningSummary = Schema.Union( |
| ... | @@ -10645,56 +12879,125 @@ export const V2TurnStartParams__ReasoningSummary = Schema.Union( | ... | @@ -10645,56 +12879,125 @@ export const V2TurnStartParams__ReasoningSummary = Schema.Union( |
| 10645 | ).annotate({ | 12879 | ).annotate({ |
| 10646 | description: | 12880 | description: |
| 10647 | "A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries", | 12881 | "A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries", |
| | 12882 | identifier: "V2TurnStartParams__ReasoningSummary", |
| 10648 | }); | 12883 | }); |
| 10649 | | 12884 | |
| 10650 | export type V2TurnStartParams__TextElement = { | 12885 | export type V2TurnStartParams__AdditionalContextKind = "untrusted" | "application"; |
| 10651 | readonly byteRange: { readonly end: number; readonly start: number }; | 12886 | export const V2TurnStartParams__AdditionalContextKind = Schema.Literals([ |
| 10652 | readonly placeholder?: string | null; | 12887 | "untrusted", |
| | 12888 | "application", |
| | 12889 | ]).annotate({ identifier: "V2TurnStartParams__AdditionalContextKind" }); |
| | 12890 | |
| | 12891 | export type V2TurnStartParams__ModeKind = "plan" | "default"; |
| | 12892 | export const V2TurnStartParams__ModeKind = Schema.Literals(["plan", "default"]).annotate({ |
| | 12893 | description: "Initial collaboration mode to use when the TUI starts.", |
| | 12894 | identifier: "V2TurnStartParams__ModeKind", |
| | 12895 | }); |
| | 12896 | |
| | 12897 | export type V2TurnStartParams__LegacyAppPathString = string; |
| | 12898 | export const V2TurnStartParams__LegacyAppPathString = Schema.String.annotate({ |
| | 12899 | identifier: "V2TurnStartParams__LegacyAppPathString", |
| | 12900 | }); |
| | 12901 | |
| | 12902 | export type V2TurnStartResponse__NonSteerableTurnKind = "review" | "compact"; |
| | 12903 | export const V2TurnStartResponse__NonSteerableTurnKind = Schema.Literals([ |
| | 12904 | "review", |
| | 12905 | "compact", |
| | 12906 | ]).annotate({ identifier: "V2TurnStartResponse__NonSteerableTurnKind" }); |
| | 12907 | |
| | 12908 | export type V2TurnStartResponse__ByteRange = { readonly end: number; readonly start: number }; |
| | 12909 | export const V2TurnStartResponse__ByteRange = Schema.Struct({ |
| | 12910 | end: Schema.Number.annotate({ format: "uint" }) |
| | 12911 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 12912 | .check( |
| | 12913 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 12914 | ), |
| | 12915 | start: Schema.Number.annotate({ format: "uint" }) |
| | 12916 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 12917 | .check( |
| | 12918 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 12919 | ), |
| | 12920 | }).annotate({ identifier: "V2TurnStartResponse__ByteRange" }); |
| | 12921 | |
| | 12922 | export type V2TurnStartResponse__ImageDetail = "auto" | "low" | "high" | "original"; |
| | 12923 | export const V2TurnStartResponse__ImageDetail = Schema.Literals([ |
| | 12924 | "auto", |
| | 12925 | "low", |
| | 12926 | "high", |
| | 12927 | "original", |
| | 12928 | ]).annotate({ identifier: "V2TurnStartResponse__ImageDetail" }); |
| | 12929 | |
| | 12930 | export type V2TurnStartResponse__HookPromptFragment = { |
| | 12931 | readonly hookRunId: string; |
| | 12932 | readonly text: string; |
| 10653 | }; | 12933 | }; |
| 10654 | export const V2TurnStartParams__TextElement = Schema.Struct({ | 12934 | export const V2TurnStartResponse__HookPromptFragment = Schema.Struct({ |
| 10655 | byteRange: Schema.Struct({ | 12935 | hookRunId: Schema.String, |
| 10656 | end: Schema.Number.annotate({ format: "uint" }) | 12936 | text: Schema.String, |
| 10657 | .check(Schema.isInt()) | 12937 | }).annotate({ identifier: "V2TurnStartResponse__HookPromptFragment" }); |
| 10658 | .check(Schema.isGreaterThanOrEqualTo(0)), | 12938 | |
| 10659 | start: Schema.Number.annotate({ format: "uint" }) | 12939 | export type V2TurnStartResponse__MemoryCitationEntry = { |
| 10660 | .check(Schema.isInt()) | 12940 | readonly lineEnd: number; |
| 10661 | .check(Schema.isGreaterThanOrEqualTo(0)), | 12941 | readonly lineStart: number; |
| 10662 | }).annotate({ | 12942 | readonly note: string; |
| 10663 | description: "Byte range in the parent `text` buffer that this element occupies.", | 12943 | readonly path: string; |
| 10664 | }), | 12944 | }; |
| 10665 | placeholder: Schema.optionalKey( | 12945 | export const V2TurnStartResponse__MemoryCitationEntry = Schema.Struct({ |
| 10666 | Schema.Union([ | 12946 | lineEnd: Schema.Number.annotate({ format: "uint32" }) |
| 10667 | Schema.String.annotate({ | 12947 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 10668 | description: "Optional human-readable placeholder for the element, displayed in the UI.", | 12948 | .check( |
| 10669 | }), | 12949 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| 10670 | Schema.Null, | 12950 | ), |
| 10671 | ]), | 12951 | lineStart: Schema.Number.annotate({ format: "uint32" }) |
| 10672 | ), | 12952 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 12953 | .check( |
| | 12954 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 12955 | ), |
| | 12956 | note: Schema.String, |
| | 12957 | path: Schema.String, |
| | 12958 | }).annotate({ identifier: "V2TurnStartResponse__MemoryCitationEntry" }); |
| | 12959 | |
| | 12960 | export type V2TurnStartResponse__MessagePhase = "commentary" | "final_answer"; |
| | 12961 | export const V2TurnStartResponse__MessagePhase = Schema.Union( |
| | 12962 | [ |
| | 12963 | Schema.Literal("commentary").annotate({ |
| | 12964 | description: |
| | 12965 | "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.", |
| | 12966 | }), |
| | 12967 | Schema.Literal("final_answer").annotate({ |
| | 12968 | description: "The assistant's terminal answer text for the current turn.", |
| | 12969 | }), |
| | 12970 | ], |
| | 12971 | { mode: "oneOf" }, |
| | 12972 | ).annotate({ |
| | 12973 | description: |
| | 12974 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', |
| | 12975 | identifier: "V2TurnStartResponse__MessagePhase", |
| 10673 | }); | 12976 | }); |
| 10674 | | 12977 | |
| 10675 | export type V2TurnStartResponse__AbsolutePathBuf = string; | 12978 | export type V2TurnStartResponse__AbsolutePathBuf = string; |
| 10676 | export const V2TurnStartResponse__AbsolutePathBuf = Schema.String.annotate({ | 12979 | export const V2TurnStartResponse__AbsolutePathBuf = Schema.String.annotate({ |
| 10677 | description: | 12980 | description: |
| 10678 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 12981 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 12982 | identifier: "V2TurnStartResponse__AbsolutePathBuf", |
| 10679 | }); | 12983 | }); |
| 10680 | | 12984 | |
| 10681 | export type V2TurnStartResponse__CollabAgentStatus = | 12985 | export type V2TurnStartResponse__LegacyAppPathString = string; |
| 10682 | | "pendingInit" | 12986 | export const V2TurnStartResponse__LegacyAppPathString = Schema.String.annotate({ |
| 10683 | | "running" | 12987 | identifier: "V2TurnStartResponse__LegacyAppPathString", |
| 10684 | | "interrupted" | 12988 | }); |
| 10685 | | "completed" | 12989 | |
| 10686 | | "errored" | 12990 | export type V2TurnStartResponse__CommandExecutionSource = |
| 10687 | | "shutdown" | 12991 | | "agent" |
| 10688 | | "notFound"; | 12992 | | "userShell" |
| 10689 | export const V2TurnStartResponse__CollabAgentStatus = Schema.Literals([ | 12993 | | "unifiedExecStartup" |
| 10690 | "pendingInit", | 12994 | | "unifiedExecInteraction"; |
| 10691 | "running", | 12995 | export const V2TurnStartResponse__CommandExecutionSource = Schema.Literals([ |
| 10692 | "interrupted", | 12996 | "agent", |
| 10693 | "completed", | 12997 | "userShell", |
| 10694 | "errored", | 12998 | "unifiedExecStartup", |
| 10695 | "shutdown", | 12999 | "unifiedExecInteraction", |
| 10696 | "notFound", | 13000 | ]).annotate({ identifier: "V2TurnStartResponse__CommandExecutionSource" }); |
| 10697 | ]); | | |
| 10698 | | 13001 | |
| 10699 | export type V2TurnStartResponse__CommandExecutionStatus = | 13002 | export type V2TurnStartResponse__CommandExecutionStatus = |
| 10700 | | "inProgress" | 13003 | | "inProgress" |
| ... | @@ -10706,62 +13009,39 @@ export const V2TurnStartResponse__CommandExecutionStatus = Schema.Literals([ | ... | @@ -10706,62 +13009,39 @@ export const V2TurnStartResponse__CommandExecutionStatus = Schema.Literals([ |
| 10706 | "completed", | 13009 | "completed", |
| 10707 | "failed", | 13010 | "failed", |
| 10708 | "declined", | 13011 | "declined", |
| 10709 | ]); | 13012 | ]).annotate({ identifier: "V2TurnStartResponse__CommandExecutionStatus" }); |
| 10710 | | 13013 | |
| 10711 | export type V2TurnStartResponse__DynamicToolCallOutputContentItem = | 13014 | export type V2TurnStartResponse__PatchChangeKind = |
| 10712 | | { readonly text: string; readonly type: "inputText" } | 13015 | | { readonly type: "add" } |
| 10713 | | { readonly imageUrl: string; readonly type: "inputImage" } | 13016 | | { readonly type: "delete" } |
| 10714 | | { readonly audioUrl: string; readonly type: "inputAudio" }; | 13017 | | { readonly move_path?: string | null; readonly type: "update" }; |
| 10715 | export const V2TurnStartResponse__DynamicToolCallOutputContentItem = Schema.Union( | 13018 | export const V2TurnStartResponse__PatchChangeKind = Schema.Union( |
| 10716 | [ | 13019 | [ |
| 10717 | Schema.Struct({ | 13020 | Schema.Struct({ |
| 10718 | text: Schema.String, | 13021 | type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }), |
| 10719 | type: Schema.Literal("inputText").annotate({ | 13022 | }).annotate({ title: "AddPatchChangeKind" }), |
| 10720 | title: "InputTextDynamicToolCallOutputContentItemType", | | |
| 10721 | }), | | |
| 10722 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), | | |
| 10723 | Schema.Struct({ | 13023 | Schema.Struct({ |
| 10724 | imageUrl: Schema.String, | 13024 | type: Schema.Literal("delete").annotate({ title: "DeletePatchChangeKindType" }), |
| 10725 | type: Schema.Literal("inputImage").annotate({ | 13025 | }).annotate({ title: "DeletePatchChangeKind" }), |
| 10726 | title: "InputImageDynamicToolCallOutputContentItemType", | | |
| 10727 | }), | | |
| 10728 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), | | |
| 10729 | Schema.Struct({ | 13026 | Schema.Struct({ |
| 10730 | audioUrl: Schema.String, | 13027 | move_path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 10731 | type: Schema.Literal("inputAudio").annotate({ | 13028 | type: Schema.Literal("update").annotate({ title: "UpdatePatchChangeKindType" }), |
| 10732 | title: "InputAudioDynamicToolCallOutputContentItemType", | 13029 | }).annotate({ title: "UpdatePatchChangeKind" }), |
| 10733 | }), | | |
| 10734 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), | | |
| 10735 | ], | 13030 | ], |
| 10736 | { mode: "oneOf" }, | 13031 | { mode: "oneOf" }, |
| 10737 | ); | 13032 | ).annotate({ identifier: "V2TurnStartResponse__PatchChangeKind" }); |
| 10738 | | 13033 | |
| 10739 | export type V2TurnStartResponse__DynamicToolCallStatus = "inProgress" | "completed" | "failed"; | 13034 | export type V2TurnStartResponse__PatchApplyStatus = |
| 10740 | export const V2TurnStartResponse__DynamicToolCallStatus = Schema.Literals([ | 13035 | | "inProgress" |
| | 13036 | | "completed" |
| | 13037 | | "failed" |
| | 13038 | | "declined"; |
| | 13039 | export const V2TurnStartResponse__PatchApplyStatus = Schema.Literals([ |
| 10741 | "inProgress", | 13040 | "inProgress", |
| 10742 | "completed", | 13041 | "completed", |
| 10743 | "failed", | 13042 | "failed", |
| 10744 | ]); | 13043 | "declined", |
| 10745 | | 13044 | ]).annotate({ identifier: "V2TurnStartResponse__PatchApplyStatus" }); |
| 10746 | export type V2TurnStartResponse__HookPromptFragment = { | | |
| 10747 | readonly hookRunId: string; | | |
| 10748 | readonly text: string; | | |
| 10749 | }; | | |
| 10750 | export const V2TurnStartResponse__HookPromptFragment = Schema.Struct({ | | |
| 10751 | hookRunId: Schema.String, | | |
| 10752 | text: Schema.String, | | |
| 10753 | }); | | |
| 10754 | | | |
| 10755 | export type V2TurnStartResponse__ImageDetail = "auto" | "low" | "high" | "original"; | | |
| 10756 | export const V2TurnStartResponse__ImageDetail = Schema.Literals([ | | |
| 10757 | "auto", | | |
| 10758 | "low", | | |
| 10759 | "high", | | |
| 10760 | "original", | | |
| 10761 | ]); | | |
| 10762 | | | |
| 10763 | export type V2TurnStartResponse__LegacyAppPathString = string; | | |
| 10764 | export const V2TurnStartResponse__LegacyAppPathString = Schema.String; | | |
| 10765 | | 13045 | |
| 10766 | export type V2TurnStartResponse__McpToolCallAppContext = { | 13046 | export type V2TurnStartResponse__McpToolCallAppContext = { |
| 10767 | readonly actionName?: string | null; | 13047 | readonly actionName?: string | null; |
| ... | @@ -10776,94 +13056,127 @@ export const V2TurnStartResponse__McpToolCallAppContext = Schema.Struct({ | ... | @@ -10776,94 +13056,127 @@ export const V2TurnStartResponse__McpToolCallAppContext = Schema.Struct({ |
| 10776 | connectorId: Schema.String, | 13056 | connectorId: Schema.String, |
| 10777 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 13057 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 10778 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 13058 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 10779 | }); | 13059 | }).annotate({ identifier: "V2TurnStartResponse__McpToolCallAppContext" }); |
| 10780 | | 13060 | |
| 10781 | export type V2TurnStartResponse__McpToolCallError = { readonly message: string }; | 13061 | export type V2TurnStartResponse__McpToolCallError = { readonly message: string }; |
| 10782 | export const V2TurnStartResponse__McpToolCallError = Schema.Struct({ message: Schema.String }); | 13062 | export const V2TurnStartResponse__McpToolCallError = Schema.Struct({ |
| | 13063 | message: Schema.String, |
| | 13064 | }).annotate({ identifier: "V2TurnStartResponse__McpToolCallError" }); |
| 10783 | | 13065 | |
| 10784 | export type V2TurnStartResponse__McpToolCallResult = { | 13066 | export type V2TurnStartResponse__McpToolCallResult = { |
| 10785 | readonly _meta?: unknown; | 13067 | readonly _meta?: Schema.Json; |
| 10786 | readonly content: ReadonlyArray<unknown>; | 13068 | readonly content: ReadonlyArray<Schema.Json>; |
| 10787 | readonly structuredContent?: unknown; | 13069 | readonly structuredContent?: Schema.Json; |
| 10788 | }; | 13070 | }; |
| 10789 | export const V2TurnStartResponse__McpToolCallResult = Schema.Struct({ | 13071 | export const V2TurnStartResponse__McpToolCallResult = Schema.Struct({ |
| 10790 | _meta: Schema.optionalKey(Schema.Unknown), | 13072 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 10791 | content: Schema.Array(Schema.Unknown), | 13073 | content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), |
| 10792 | structuredContent: Schema.optionalKey(Schema.Unknown), | 13074 | structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 10793 | }); | 13075 | }).annotate({ identifier: "V2TurnStartResponse__McpToolCallResult" }); |
| 10794 | | 13076 | |
| 10795 | export type V2TurnStartResponse__McpToolCallStatus = "inProgress" | "completed" | "failed"; | 13077 | export type V2TurnStartResponse__McpToolCallStatus = "inProgress" | "completed" | "failed"; |
| 10796 | export const V2TurnStartResponse__McpToolCallStatus = Schema.Literals([ | 13078 | export const V2TurnStartResponse__McpToolCallStatus = Schema.Literals([ |
| 10797 | "inProgress", | 13079 | "inProgress", |
| 10798 | "completed", | 13080 | "completed", |
| 10799 | "failed", | 13081 | "failed", |
| 10800 | ]); | 13082 | ]).annotate({ identifier: "V2TurnStartResponse__McpToolCallStatus" }); |
| 10801 | | 13083 | |
| 10802 | export type V2TurnStartResponse__MemoryCitationEntry = { | 13084 | export type V2TurnStartResponse__DynamicToolCallOutputContentItem = |
| 10803 | readonly lineEnd: number; | 13085 | | { readonly text: string; readonly type: "inputText" } |
| 10804 | readonly lineStart: number; | 13086 | | { readonly imageUrl: string; readonly type: "inputImage" } |
| 10805 | readonly note: string; | 13087 | | { readonly audioUrl: string; readonly type: "inputAudio" }; |
| 10806 | readonly path: string; | 13088 | export const V2TurnStartResponse__DynamicToolCallOutputContentItem = Schema.Union( |
| 10807 | }; | | |
| 10808 | export const V2TurnStartResponse__MemoryCitationEntry = Schema.Struct({ | | |
| 10809 | lineEnd: Schema.Number.annotate({ format: "uint32" }) | | |
| 10810 | .check(Schema.isInt()) | | |
| 10811 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 10812 | lineStart: Schema.Number.annotate({ format: "uint32" }) | | |
| 10813 | .check(Schema.isInt()) | | |
| 10814 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 10815 | note: Schema.String, | | |
| 10816 | path: Schema.String, | | |
| 10817 | }); | | |
| 10818 | | | |
| 10819 | export type V2TurnStartResponse__MessagePhase = "commentary" | "final_answer"; | | |
| 10820 | export const V2TurnStartResponse__MessagePhase = Schema.Literals([ | | |
| 10821 | "commentary", | | |
| 10822 | "final_answer", | | |
| 10823 | ]).annotate({ | | |
| 10824 | description: | | |
| 10825 | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', | | |
| 10826 | }); | | |
| 10827 | | | |
| 10828 | export type V2TurnStartResponse__NonSteerableTurnKind = "review" | "compact"; | | |
| 10829 | export const V2TurnStartResponse__NonSteerableTurnKind = Schema.Literals(["review", "compact"]); | | |
| 10830 | | | |
| 10831 | export type V2TurnStartResponse__PatchApplyStatus = | | |
| 10832 | | "inProgress" | | |
| 10833 | | "completed" | | |
| 10834 | | "failed" | | |
| 10835 | | "declined"; | | |
| 10836 | export const V2TurnStartResponse__PatchApplyStatus = Schema.Literals([ | | |
| 10837 | "inProgress", | | |
| 10838 | "completed", | | |
| 10839 | "failed", | | |
| 10840 | "declined", | | |
| 10841 | ]); | | |
| 10842 | | | |
| 10843 | export type V2TurnStartResponse__PatchChangeKind = | | |
| 10844 | | { readonly type: "add" } | | |
| 10845 | | { readonly type: "delete" } | | |
| 10846 | | { readonly move_path?: string | null; readonly type: "update" }; | | |
| 10847 | export const V2TurnStartResponse__PatchChangeKind = Schema.Union( | | |
| 10848 | [ | 13089 | [ |
| 10849 | Schema.Struct({ | 13090 | Schema.Struct({ |
| 10850 | type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }), | 13091 | text: Schema.String, |
| 10851 | }).annotate({ title: "AddPatchChangeKind" }), | 13092 | type: Schema.Literal("inputText").annotate({ |
| | 13093 | title: "InputTextDynamicToolCallOutputContentItemType", |
| | 13094 | }), |
| | 13095 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), |
| 10852 | Schema.Struct({ | 13096 | Schema.Struct({ |
| 10853 | type: Schema.Literal("delete").annotate({ title: "DeletePatchChangeKindType" }), | 13097 | imageUrl: Schema.String, |
| 10854 | }).annotate({ title: "DeletePatchChangeKind" }), | 13098 | type: Schema.Literal("inputImage").annotate({ |
| | 13099 | title: "InputImageDynamicToolCallOutputContentItemType", |
| | 13100 | }), |
| | 13101 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), |
| 10855 | Schema.Struct({ | 13102 | Schema.Struct({ |
| 10856 | move_path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 13103 | audioUrl: Schema.String, |
| 10857 | type: Schema.Literal("update").annotate({ title: "UpdatePatchChangeKindType" }), | 13104 | type: Schema.Literal("inputAudio").annotate({ |
| 10858 | }).annotate({ title: "UpdatePatchChangeKind" }), | 13105 | title: "InputAudioDynamicToolCallOutputContentItemType", |
| | 13106 | }), |
| | 13107 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), |
| 10859 | ], | 13108 | ], |
| 10860 | { mode: "oneOf" }, | 13109 | { mode: "oneOf" }, |
| 10861 | ); | 13110 | ).annotate({ identifier: "V2TurnStartResponse__DynamicToolCallOutputContentItem" }); |
| | 13111 | |
| | 13112 | export type V2TurnStartResponse__DynamicToolCallStatus = "inProgress" | "completed" | "failed"; |
| | 13113 | export const V2TurnStartResponse__DynamicToolCallStatus = Schema.Literals([ |
| | 13114 | "inProgress", |
| | 13115 | "completed", |
| | 13116 | "failed", |
| | 13117 | ]).annotate({ identifier: "V2TurnStartResponse__DynamicToolCallStatus" }); |
| | 13118 | |
| | 13119 | export type V2TurnStartResponse__CollabAgentStatus = |
| | 13120 | | "pendingInit" |
| | 13121 | | "running" |
| | 13122 | | "interrupted" |
| | 13123 | | "completed" |
| | 13124 | | "errored" |
| | 13125 | | "shutdown" |
| | 13126 | | "notFound"; |
| | 13127 | export const V2TurnStartResponse__CollabAgentStatus = Schema.Literals([ |
| | 13128 | "pendingInit", |
| | 13129 | "running", |
| | 13130 | "interrupted", |
| | 13131 | "completed", |
| | 13132 | "errored", |
| | 13133 | "shutdown", |
| | 13134 | "notFound", |
| | 13135 | ]).annotate({ identifier: "V2TurnStartResponse__CollabAgentStatus" }); |
| 10862 | | 13136 | |
| 10863 | export type V2TurnStartResponse__ReasoningEffort = string; | 13137 | export type V2TurnStartResponse__ReasoningEffort = string; |
| 10864 | export const V2TurnStartResponse__ReasoningEffort = Schema.String.annotate({ | 13138 | export const V2TurnStartResponse__ReasoningEffort = Schema.String.annotate({ |
| 10865 | description: "A non-empty reasoning effort value advertised by the model.", | 13139 | description: "A non-empty reasoning effort value advertised by the model.", |
| 10866 | }).check(Schema.isMinLength(1)); | 13140 | }).check( |
| | 13141 | Schema.isMinLength(1).annotate({ |
| | 13142 | expected: "a value with a length of at least 1", |
| | 13143 | identifier: "V2TurnStartResponse__ReasoningEffort", |
| | 13144 | }), |
| | 13145 | ); |
| | 13146 | |
| | 13147 | export type V2TurnStartResponse__CollabAgentToolCallStatus = |
| | 13148 | | "inProgress" |
| | 13149 | | "completed" |
| | 13150 | | "failed" |
| | 13151 | | "interrupted"; |
| | 13152 | export const V2TurnStartResponse__CollabAgentToolCallStatus = Schema.Literals([ |
| | 13153 | "inProgress", |
| | 13154 | "completed", |
| | 13155 | "failed", |
| | 13156 | "interrupted", |
| | 13157 | ]).annotate({ identifier: "V2TurnStartResponse__CollabAgentToolCallStatus" }); |
| | 13158 | |
| | 13159 | export type V2TurnStartResponse__CollabAgentTool = |
| | 13160 | | "spawnAgent" |
| | 13161 | | "sendInput" |
| | 13162 | | "resumeAgent" |
| | 13163 | | "wait" |
| | 13164 | | "closeAgent" |
| | 13165 | | "sendMessage" |
| | 13166 | | "followupTask" |
| | 13167 | | "interruptAgent" |
| | 13168 | | "listAgents"; |
| | 13169 | export const V2TurnStartResponse__CollabAgentTool = Schema.Literals([ |
| | 13170 | "spawnAgent", |
| | 13171 | "sendInput", |
| | 13172 | "resumeAgent", |
| | 13173 | "wait", |
| | 13174 | "closeAgent", |
| | 13175 | "sendMessage", |
| | 13176 | "followupTask", |
| | 13177 | "interruptAgent", |
| | 13178 | "listAgents", |
| | 13179 | ]).annotate({ identifier: "V2TurnStartResponse__CollabAgentTool" }); |
| 10867 | | 13180 | |
| 10868 | export type V2TurnStartResponse__SubAgentActivityKind = | 13181 | export type V2TurnStartResponse__SubAgentActivityKind = |
| 10869 | | "started" | 13182 | | "started" |
| ... | @@ -10875,40 +13188,7 @@ export const V2TurnStartResponse__SubAgentActivityKind = Schema.Literals([ | ... | @@ -10875,40 +13188,7 @@ export const V2TurnStartResponse__SubAgentActivityKind = Schema.Literals([ |
| 10875 | "interacted", | 13188 | "interacted", |
| 10876 | "interrupted", | 13189 | "interrupted", |
| 10877 | "completed", | 13190 | "completed", |
| 10878 | ]); | 13191 | ]).annotate({ identifier: "V2TurnStartResponse__SubAgentActivityKind" }); |
| 10879 | | | |
| 10880 | export type V2TurnStartResponse__TextElement = { | | |
| 10881 | readonly byteRange: { readonly end: number; readonly start: number }; | | |
| 10882 | readonly placeholder?: string | null; | | |
| 10883 | }; | | |
| 10884 | export const V2TurnStartResponse__TextElement = Schema.Struct({ | | |
| 10885 | byteRange: Schema.Struct({ | | |
| 10886 | end: Schema.Number.annotate({ format: "uint" }) | | |
| 10887 | .check(Schema.isInt()) | | |
| 10888 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 10889 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 10890 | .check(Schema.isInt()) | | |
| 10891 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 10892 | }).annotate({ | | |
| 10893 | description: "Byte range in the parent `text` buffer that this element occupies.", | | |
| 10894 | }), | | |
| 10895 | placeholder: Schema.optionalKey( | | |
| 10896 | Schema.Union([ | | |
| 10897 | Schema.String.annotate({ | | |
| 10898 | description: "Optional human-readable placeholder for the element, displayed in the UI.", | | |
| 10899 | }), | | |
| 10900 | Schema.Null, | | |
| 10901 | ]), | | |
| 10902 | ), | | |
| 10903 | }); | | |
| 10904 | | | |
| 10905 | export type V2TurnStartResponse__TurnStatus = "completed" | "interrupted" | "failed" | "inProgress"; | | |
| 10906 | export const V2TurnStartResponse__TurnStatus = Schema.Literals([ | | |
| 10907 | "completed", | | |
| 10908 | "interrupted", | | |
| 10909 | "failed", | | |
| 10910 | "inProgress", | | |
| 10911 | ]); | | |
| 10912 | | 13192 | |
| 10913 | export type V2TurnStartResponse__WebSearchAction = | 13193 | export type V2TurnStartResponse__WebSearchAction = |
| 10914 | | { | 13194 | | { |
| ... | @@ -10940,41 +13220,60 @@ export const V2TurnStartResponse__WebSearchAction = Schema.Union( | ... | @@ -10940,41 +13220,60 @@ export const V2TurnStartResponse__WebSearchAction = Schema.Union( |
| 10940 | }).annotate({ title: "OtherWebSearchAction" }), | 13220 | }).annotate({ title: "OtherWebSearchAction" }), |
| 10941 | ], | 13221 | ], |
| 10942 | { mode: "oneOf" }, | 13222 | { mode: "oneOf" }, |
| 10943 | ); | 13223 | ).annotate({ identifier: "V2TurnStartResponse__WebSearchAction" }); |
| | 13224 | |
| | 13225 | export type V2TurnStartResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| | 13226 | export const V2TurnStartResponse__TurnItemsView = Schema.Union( |
| | 13227 | [ |
| | 13228 | Schema.Literal("notLoaded").annotate({ |
| | 13229 | description: "`items` was not loaded for this turn. The field is intentionally empty.", |
| | 13230 | }), |
| | 13231 | Schema.Literal("summary").annotate({ |
| | 13232 | description: "`items` contains only a display summary for this turn.", |
| | 13233 | }), |
| | 13234 | Schema.Literal("full").annotate({ |
| | 13235 | description: |
| | 13236 | "`items` contains every ThreadItem available from persisted app-server history for this turn.", |
| | 13237 | }), |
| | 13238 | ], |
| | 13239 | { mode: "oneOf" }, |
| | 13240 | ).annotate({ identifier: "V2TurnStartResponse__TurnItemsView" }); |
| | 13241 | |
| | 13242 | export type V2TurnStartResponse__TurnStatus = "completed" | "interrupted" | "failed" | "inProgress"; |
| | 13243 | export const V2TurnStartResponse__TurnStatus = Schema.Literals([ |
| | 13244 | "completed", |
| | 13245 | "interrupted", |
| | 13246 | "failed", |
| | 13247 | "inProgress", |
| | 13248 | ]).annotate({ identifier: "V2TurnStartResponse__TurnStatus" }); |
| | 13249 | |
| | 13250 | export type V2TurnSteerParams__ByteRange = { readonly end: number; readonly start: number }; |
| | 13251 | export const V2TurnSteerParams__ByteRange = Schema.Struct({ |
| | 13252 | end: Schema.Number.annotate({ format: "uint" }) |
| | 13253 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 13254 | .check( |
| | 13255 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 13256 | ), |
| | 13257 | start: Schema.Number.annotate({ format: "uint" }) |
| | 13258 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 13259 | .check( |
| | 13260 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 13261 | ), |
| | 13262 | }).annotate({ identifier: "V2TurnSteerParams__ByteRange" }); |
| | 13263 | |
| | 13264 | export type V2TurnSteerParams__ImageDetail = "auto" | "low" | "high" | "original"; |
| | 13265 | export const V2TurnSteerParams__ImageDetail = Schema.Literals([ |
| | 13266 | "auto", |
| | 13267 | "low", |
| | 13268 | "high", |
| | 13269 | "original", |
| | 13270 | ]).annotate({ identifier: "V2TurnSteerParams__ImageDetail" }); |
| 10944 | | 13271 | |
| 10945 | export type V2TurnSteerParams__AdditionalContextKind = "untrusted" | "application"; | 13272 | export type V2TurnSteerParams__AdditionalContextKind = "untrusted" | "application"; |
| 10946 | export const V2TurnSteerParams__AdditionalContextKind = Schema.Literals([ | 13273 | export const V2TurnSteerParams__AdditionalContextKind = Schema.Literals([ |
| 10947 | "untrusted", | 13274 | "untrusted", |
| 10948 | "application", | 13275 | "application", |
| 10949 | ]); | 13276 | ]).annotate({ identifier: "V2TurnSteerParams__AdditionalContextKind" }); |
| 10950 | | | |
| 10951 | export type V2TurnSteerParams__ImageDetail = "auto" | "low" | "high" | "original"; | | |
| 10952 | export const V2TurnSteerParams__ImageDetail = Schema.Literals(["auto", "low", "high", "original"]); | | |
| 10953 | | | |
| 10954 | export type V2TurnSteerParams__TextElement = { | | |
| 10955 | readonly byteRange: { readonly end: number; readonly start: number }; | | |
| 10956 | readonly placeholder?: string | null; | | |
| 10957 | }; | | |
| 10958 | export const V2TurnSteerParams__TextElement = Schema.Struct({ | | |
| 10959 | byteRange: Schema.Struct({ | | |
| 10960 | end: Schema.Number.annotate({ format: "uint" }) | | |
| 10961 | .check(Schema.isInt()) | | |
| 10962 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 10963 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 10964 | .check(Schema.isInt()) | | |
| 10965 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 10966 | }).annotate({ | | |
| 10967 | description: "Byte range in the parent `text` buffer that this element occupies.", | | |
| 10968 | }), | | |
| 10969 | placeholder: Schema.optionalKey( | | |
| 10970 | Schema.Union([ | | |
| 10971 | Schema.String.annotate({ | | |
| 10972 | description: "Optional human-readable placeholder for the element, displayed in the UI.", | | |
| 10973 | }), | | |
| 10974 | Schema.Null, | | |
| 10975 | ]), | | |
| 10976 | ), | | |
| 10977 | }); | | |
| 10978 | | 13277 | |
| 10979 | export type V2WindowsSandboxReadinessResponse__WindowsSandboxReadiness = | 13278 | export type V2WindowsSandboxReadinessResponse__WindowsSandboxReadiness = |
| 10980 | | "ready" | 13279 | | "ready" |
| ... | @@ -10984,7 +13283,7 @@ export const V2WindowsSandboxReadinessResponse__WindowsSandboxReadiness = Schema | ... | @@ -10984,7 +13283,7 @@ export const V2WindowsSandboxReadinessResponse__WindowsSandboxReadiness = Schema |
| 10984 | "ready", | 13283 | "ready", |
| 10985 | "notConfigured", | 13284 | "notConfigured", |
| 10986 | "updateRequired", | 13285 | "updateRequired", |
| 10987 | ]); | 13286 | ]).annotate({ identifier: "V2WindowsSandboxReadinessResponse__WindowsSandboxReadiness" }); |
| 10988 | | 13287 | |
| 10989 | export type V2WindowsSandboxSetupCompletedNotification__WindowsSandboxSetupMode = | 13288 | export type V2WindowsSandboxSetupCompletedNotification__WindowsSandboxSetupMode = |
| 10990 | | "elevated" | 13289 | | "elevated" |
| ... | @@ -10992,19 +13291,20 @@ export type V2WindowsSandboxSetupCompletedNotification__WindowsSandboxSetupMode | ... | @@ -10992,19 +13291,20 @@ export type V2WindowsSandboxSetupCompletedNotification__WindowsSandboxSetupMode |
| 10992 | export const V2WindowsSandboxSetupCompletedNotification__WindowsSandboxSetupMode = Schema.Literals([ | 13291 | export const V2WindowsSandboxSetupCompletedNotification__WindowsSandboxSetupMode = Schema.Literals([ |
| 10993 | "elevated", | 13292 | "elevated", |
| 10994 | "unelevated", | 13293 | "unelevated", |
| 10995 | ]); | 13294 | ]).annotate({ identifier: "V2WindowsSandboxSetupCompletedNotification__WindowsSandboxSetupMode" }); |
| 10996 | | 13295 | |
| 10997 | export type V2WindowsSandboxSetupStartParams__AbsolutePathBuf = string; | 13296 | export type V2WindowsSandboxSetupStartParams__AbsolutePathBuf = string; |
| 10998 | export const V2WindowsSandboxSetupStartParams__AbsolutePathBuf = Schema.String.annotate({ | 13297 | export const V2WindowsSandboxSetupStartParams__AbsolutePathBuf = Schema.String.annotate({ |
| 10999 | description: | 13298 | description: |
| 11000 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 13299 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 13300 | identifier: "V2WindowsSandboxSetupStartParams__AbsolutePathBuf", |
| 11001 | }); | 13301 | }); |
| 11002 | | 13302 | |
| 11003 | export type V2WindowsSandboxSetupStartParams__WindowsSandboxSetupMode = "elevated" | "unelevated"; | 13303 | export type V2WindowsSandboxSetupStartParams__WindowsSandboxSetupMode = "elevated" | "unelevated"; |
| 11004 | export const V2WindowsSandboxSetupStartParams__WindowsSandboxSetupMode = Schema.Literals([ | 13304 | export const V2WindowsSandboxSetupStartParams__WindowsSandboxSetupMode = Schema.Literals([ |
| 11005 | "elevated", | 13305 | "elevated", |
| 11006 | "unelevated", | 13306 | "unelevated", |
| 11007 | ]); | 13307 | ]).annotate({ identifier: "V2WindowsSandboxSetupStartParams__WindowsSandboxSetupMode" }); |
| 11008 | | 13308 | |
| 11009 | export type ApplyPatchApprovalResponse__NetworkPolicyAmendment = { | 13309 | export type ApplyPatchApprovalResponse__NetworkPolicyAmendment = { |
| 11010 | readonly action: ApplyPatchApprovalResponse__NetworkPolicyRuleAction; | 13310 | readonly action: ApplyPatchApprovalResponse__NetworkPolicyRuleAction; |
| ... | @@ -11013,19 +13313,323 @@ export type ApplyPatchApprovalResponse__NetworkPolicyAmendment = { | ... | @@ -11013,19 +13313,323 @@ export type ApplyPatchApprovalResponse__NetworkPolicyAmendment = { |
| 11013 | export const ApplyPatchApprovalResponse__NetworkPolicyAmendment = Schema.Struct({ | 13313 | export const ApplyPatchApprovalResponse__NetworkPolicyAmendment = Schema.Struct({ |
| 11014 | action: ApplyPatchApprovalResponse__NetworkPolicyRuleAction, | 13314 | action: ApplyPatchApprovalResponse__NetworkPolicyRuleAction, |
| 11015 | host: Schema.String, | 13315 | host: Schema.String, |
| | 13316 | }).annotate({ identifier: "ApplyPatchApprovalResponse__NetworkPolicyAmendment" }); |
| | 13317 | |
| | 13318 | export type ClientRequest__InitializeParams = { |
| | 13319 | readonly capabilities?: ClientRequest__InitializeCapabilities | null; |
| | 13320 | readonly clientInfo: ClientRequest__ClientInfo; |
| | 13321 | }; |
| | 13322 | export const ClientRequest__InitializeParams = Schema.Struct({ |
| | 13323 | capabilities: Schema.optionalKey( |
| | 13324 | Schema.Union([ClientRequest__InitializeCapabilities, Schema.Null]), |
| | 13325 | ), |
| | 13326 | clientInfo: ClientRequest__ClientInfo, |
| | 13327 | }).annotate({ identifier: "ClientRequest__InitializeParams" }); |
| | 13328 | |
| | 13329 | export type ClientRequest__ThreadResumeParams = { |
| | 13330 | readonly approvalPolicy?: ClientRequest__AskForApproval | null; |
| | 13331 | readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null; |
| | 13332 | readonly baseInstructions?: string | null; |
| | 13333 | readonly config?: { readonly [x: string]: Schema.Json } | null; |
| | 13334 | readonly cwd?: string | null; |
| | 13335 | readonly developerInstructions?: string | null; |
| | 13336 | readonly model?: string | null; |
| | 13337 | readonly modelProvider?: string | null; |
| | 13338 | readonly personality?: ClientRequest__Personality | null; |
| | 13339 | readonly sandbox?: ClientRequest__SandboxMode | null; |
| | 13340 | readonly serviceTier?: string | null; |
| | 13341 | readonly threadId: string; |
| | 13342 | }; |
| | 13343 | export const ClientRequest__ThreadResumeParams = Schema.Struct({ |
| | 13344 | approvalPolicy: Schema.optionalKey(Schema.Union([ClientRequest__AskForApproval, Schema.Null])), |
| | 13345 | approvalsReviewer: Schema.optionalKey( |
| | 13346 | Schema.Union([ClientRequest__ApprovalsReviewer, Schema.Null]).annotate({ |
| | 13347 | description: |
| | 13348 | "Override where approval requests are routed for review on this thread and subsequent turns.", |
| | 13349 | }), |
| | 13350 | ), |
| | 13351 | baseInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 13352 | config: Schema.optionalKey( |
| | 13353 | Schema.Union([ |
| | 13354 | Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })), |
| | 13355 | Schema.Null, |
| | 13356 | ]), |
| | 13357 | ), |
| | 13358 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 13359 | developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 13360 | model: Schema.optionalKey( |
| | 13361 | Schema.Union([ |
| | 13362 | Schema.String.annotate({ |
| | 13363 | description: "Configuration overrides for the resumed thread, if any.", |
| | 13364 | }), |
| | 13365 | Schema.Null, |
| | 13366 | ]), |
| | 13367 | ), |
| | 13368 | modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 13369 | personality: Schema.optionalKey(Schema.Union([ClientRequest__Personality, Schema.Null])), |
| | 13370 | sandbox: Schema.optionalKey(Schema.Union([ClientRequest__SandboxMode, Schema.Null])), |
| | 13371 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 13372 | threadId: Schema.String, |
| | 13373 | }).annotate({ |
| | 13374 | description: |
| | 13375 | "There are three ways to resume a thread: 1. By thread_id: load the thread from disk by thread_id and resume it. 2. By history: instantiate the thread from memory and resume it. 3. By path: load the thread from disk by path and resume it.\n\nFor non-running threads, the precedence is: history > non-empty path > thread_id. If using history or a non-empty path for a non-running thread, the thread_id param will be ignored.\n\nIf thread_id identifies a running thread, app-server rejoins that thread and treats a non-empty path as a consistency check against the active rollout path. Empty string path values are treated as absent.\n\nPrefer using thread_id whenever possible.", |
| | 13376 | identifier: "ClientRequest__ThreadResumeParams", |
| 11016 | }); | 13377 | }); |
| 11017 | | 13378 | |
| 11018 | export type ClientRequest__PluginInstallParams = { | 13379 | export type ClientRequest__ThreadStartParams = { |
| 11019 | readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null; | 13380 | readonly approvalPolicy?: ClientRequest__AskForApproval | null; |
| 11020 | readonly pluginName: string; | 13381 | readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null; |
| 11021 | readonly remoteMarketplaceName?: string | null; | 13382 | readonly baseInstructions?: string | null; |
| | 13383 | readonly config?: { readonly [x: string]: Schema.Json } | null; |
| | 13384 | readonly cwd?: string | null; |
| | 13385 | readonly developerInstructions?: string | null; |
| | 13386 | readonly ephemeral?: boolean | null; |
| | 13387 | readonly model?: string | null; |
| | 13388 | readonly modelProvider?: string | null; |
| | 13389 | readonly personality?: ClientRequest__Personality | null; |
| | 13390 | readonly sandbox?: ClientRequest__SandboxMode | null; |
| | 13391 | readonly serviceName?: string | null; |
| | 13392 | readonly serviceTier?: string | null; |
| | 13393 | readonly sessionStartSource?: ClientRequest__ThreadStartSource | null; |
| | 13394 | readonly threadSource?: ClientRequest__ThreadSource | null; |
| 11022 | }; | 13395 | }; |
| 11023 | export const ClientRequest__PluginInstallParams = Schema.Struct({ | 13396 | export const ClientRequest__ThreadStartParams = Schema.Struct({ |
| 11024 | marketplacePath: Schema.optionalKey(Schema.Union([ClientRequest__AbsolutePathBuf, Schema.Null])), | 13397 | approvalPolicy: Schema.optionalKey(Schema.Union([ClientRequest__AskForApproval, Schema.Null])), |
| 11025 | pluginName: Schema.String, | 13398 | approvalsReviewer: Schema.optionalKey( |
| 11026 | remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 13399 | Schema.Union([ClientRequest__ApprovalsReviewer, Schema.Null]).annotate({ |
| | 13400 | description: |
| | 13401 | "Override where approval requests are routed for review on this thread and subsequent turns.", |
| | 13402 | }), |
| | 13403 | ), |
| | 13404 | baseInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 13405 | config: Schema.optionalKey( |
| | 13406 | Schema.Union([ |
| | 13407 | Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })), |
| | 13408 | Schema.Null, |
| | 13409 | ]), |
| | 13410 | ), |
| | 13411 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 13412 | developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 13413 | ephemeral: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 13414 | model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 13415 | modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 13416 | personality: Schema.optionalKey(Schema.Union([ClientRequest__Personality, Schema.Null])), |
| | 13417 | sandbox: Schema.optionalKey(Schema.Union([ClientRequest__SandboxMode, Schema.Null])), |
| | 13418 | serviceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 13419 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 13420 | sessionStartSource: Schema.optionalKey( |
| | 13421 | Schema.Union([ClientRequest__ThreadStartSource, Schema.Null]), |
| | 13422 | ), |
| | 13423 | threadSource: Schema.optionalKey( |
| | 13424 | Schema.Union([ClientRequest__ThreadSource, Schema.Null]).annotate({ |
| | 13425 | description: "Optional client-supplied analytics source classification for this thread.", |
| | 13426 | }), |
| | 13427 | ), |
| | 13428 | }).annotate({ identifier: "ClientRequest__ThreadStartParams" }); |
| | 13429 | |
| | 13430 | export type ClientRequest__ThreadForkParams = { |
| | 13431 | readonly approvalPolicy?: ClientRequest__AskForApproval | null; |
| | 13432 | readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null; |
| | 13433 | readonly baseInstructions?: string | null; |
| | 13434 | readonly config?: { readonly [x: string]: Schema.Json } | null; |
| | 13435 | readonly cwd?: string | null; |
| | 13436 | readonly developerInstructions?: string | null; |
| | 13437 | readonly ephemeral?: boolean; |
| | 13438 | readonly lastTurnId?: string | null; |
| | 13439 | readonly model?: string | null; |
| | 13440 | readonly modelProvider?: string | null; |
| | 13441 | readonly sandbox?: ClientRequest__SandboxMode | null; |
| | 13442 | readonly serviceTier?: string | null; |
| | 13443 | readonly threadId: string; |
| | 13444 | readonly threadSource?: ClientRequest__ThreadSource | null; |
| | 13445 | }; |
| | 13446 | export const ClientRequest__ThreadForkParams = Schema.Struct({ |
| | 13447 | approvalPolicy: Schema.optionalKey(Schema.Union([ClientRequest__AskForApproval, Schema.Null])), |
| | 13448 | approvalsReviewer: Schema.optionalKey( |
| | 13449 | Schema.Union([ClientRequest__ApprovalsReviewer, Schema.Null]).annotate({ |
| | 13450 | description: |
| | 13451 | "Override where approval requests are routed for review on this thread and subsequent turns.", |
| | 13452 | }), |
| | 13453 | ), |
| | 13454 | baseInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 13455 | config: Schema.optionalKey( |
| | 13456 | Schema.Union([ |
| | 13457 | Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })), |
| | 13458 | Schema.Null, |
| | 13459 | ]), |
| | 13460 | ), |
| | 13461 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 13462 | developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 13463 | ephemeral: Schema.optionalKey(Schema.Boolean), |
| | 13464 | lastTurnId: Schema.optionalKey( |
| | 13465 | Schema.Union([ |
| | 13466 | Schema.String.annotate({ |
| | 13467 | description: |
| | 13468 | "Optional last turn id to fork through, inclusive.\n\nWhen specified, turns after `last_turn_id` are omitted from the fork. The referenced turn cannot be in progress.", |
| | 13469 | }), |
| | 13470 | Schema.Null, |
| | 13471 | ]), |
| | 13472 | ), |
| | 13473 | model: Schema.optionalKey( |
| | 13474 | Schema.Union([ |
| | 13475 | Schema.String.annotate({ |
| | 13476 | description: "Configuration overrides for the forked thread, if any.", |
| | 13477 | }), |
| | 13478 | Schema.Null, |
| | 13479 | ]), |
| | 13480 | ), |
| | 13481 | modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 13482 | sandbox: Schema.optionalKey(Schema.Union([ClientRequest__SandboxMode, Schema.Null])), |
| | 13483 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 13484 | threadId: Schema.String, |
| | 13485 | threadSource: Schema.optionalKey( |
| | 13486 | Schema.Union([ClientRequest__ThreadSource, Schema.Null]).annotate({ |
| | 13487 | description: |
| | 13488 | "Optional client-supplied analytics source classification for this forked thread.", |
| | 13489 | }), |
| | 13490 | ), |
| | 13491 | }).annotate({ |
| | 13492 | description: |
| | 13493 | "There are two ways to fork a thread: 1. By thread_id: load the thread from disk by thread_id and fork it into a new thread. 2. By path: load the thread from disk by path and fork it into a new thread.\n\nIf using a non-empty path, the thread_id param will be ignored. Empty string path values are treated as absent.\n\nPrefer using thread_id whenever possible.", |
| | 13494 | identifier: "ClientRequest__ThreadForkParams", |
| 11027 | }); | 13495 | }); |
| 11028 | | 13496 | |
| | 13497 | export type ClientRequest__ThreadGoalSetParams = { |
| | 13498 | readonly objective?: string | null; |
| | 13499 | readonly status?: ClientRequest__ThreadGoalStatus | null; |
| | 13500 | readonly threadId: string; |
| | 13501 | readonly tokenBudget?: number | null; |
| | 13502 | }; |
| | 13503 | export const ClientRequest__ThreadGoalSetParams = Schema.Struct({ |
| | 13504 | objective: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 13505 | status: Schema.optionalKey(Schema.Union([ClientRequest__ThreadGoalStatus, Schema.Null])), |
| | 13506 | threadId: Schema.String, |
| | 13507 | tokenBudget: Schema.optionalKey( |
| | 13508 | Schema.Union([ |
| | 13509 | Schema.Number.annotate({ format: "int64" }).check( |
| | 13510 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 13511 | ), |
| | 13512 | Schema.Null, |
| | 13513 | ]), |
| | 13514 | ), |
| | 13515 | }).annotate({ identifier: "ClientRequest__ThreadGoalSetParams" }); |
| | 13516 | |
| | 13517 | export type ClientRequest__ThreadMetadataUpdateParams = { |
| | 13518 | readonly gitInfo?: ClientRequest__ThreadMetadataGitInfoUpdateParams | null; |
| | 13519 | readonly threadId: string; |
| | 13520 | }; |
| | 13521 | export const ClientRequest__ThreadMetadataUpdateParams = Schema.Struct({ |
| | 13522 | gitInfo: Schema.optionalKey( |
| | 13523 | Schema.Union([ClientRequest__ThreadMetadataGitInfoUpdateParams, Schema.Null]).annotate({ |
| | 13524 | description: |
| | 13525 | "Patch the stored Git metadata for this thread. Omit a field to leave it unchanged, set it to `null` to clear it, or provide a string to replace the stored value.", |
| | 13526 | }), |
| | 13527 | ), |
| | 13528 | threadId: Schema.String, |
| | 13529 | }).annotate({ identifier: "ClientRequest__ThreadMetadataUpdateParams" }); |
| | 13530 | |
| | 13531 | export type ClientRequest__ThreadListParams = { |
| | 13532 | readonly archived?: boolean | null; |
| | 13533 | readonly cursor?: string | null; |
| | 13534 | readonly cwd?: ClientRequest__ThreadListCwdFilter | null; |
| | 13535 | readonly limit?: number | null; |
| | 13536 | readonly modelProviders?: ReadonlyArray<string> | null; |
| | 13537 | readonly searchTerm?: string | null; |
| | 13538 | readonly sortDirection?: ClientRequest__SortDirection | null; |
| | 13539 | readonly sortKey?: ClientRequest__ThreadSortKey | null; |
| | 13540 | readonly sourceKinds?: ReadonlyArray<ClientRequest__ThreadSourceKind> | null; |
| | 13541 | readonly useStateDbOnly?: boolean; |
| | 13542 | }; |
| | 13543 | export const ClientRequest__ThreadListParams = Schema.Struct({ |
| | 13544 | archived: Schema.optionalKey( |
| | 13545 | Schema.Union([ |
| | 13546 | Schema.Boolean.annotate({ |
| | 13547 | description: |
| | 13548 | "Optional archived filter; when set to true, only archived threads are returned. If false or null, only non-archived threads are returned.", |
| | 13549 | }), |
| | 13550 | Schema.Null, |
| | 13551 | ]), |
| | 13552 | ), |
| | 13553 | cursor: Schema.optionalKey( |
| | 13554 | Schema.Union([ |
| | 13555 | Schema.String.annotate({ |
| | 13556 | description: "Opaque pagination cursor returned by a previous call.", |
| | 13557 | }), |
| | 13558 | Schema.Null, |
| | 13559 | ]), |
| | 13560 | ), |
| | 13561 | cwd: Schema.optionalKey( |
| | 13562 | Schema.Union([ClientRequest__ThreadListCwdFilter, Schema.Null]).annotate({ |
| | 13563 | description: |
| | 13564 | "Optional cwd filter or filters; when set, only threads whose session cwd exactly matches one of these paths are returned.", |
| | 13565 | }), |
| | 13566 | ), |
| | 13567 | limit: Schema.optionalKey( |
| | 13568 | Schema.Union([ |
| | 13569 | Schema.Number.annotate({ |
| | 13570 | description: "Optional page size; defaults to a reasonable server-side value.", |
| | 13571 | format: "uint32", |
| | 13572 | }) |
| | 13573 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 13574 | .check( |
| | 13575 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 13576 | expected: "a value greater than or equal to 0", |
| | 13577 | }), |
| | 13578 | ), |
| | 13579 | Schema.Null, |
| | 13580 | ]), |
| | 13581 | ), |
| | 13582 | modelProviders: Schema.optionalKey( |
| | 13583 | Schema.Union([ |
| | 13584 | Schema.Array(Schema.String).annotate({ |
| | 13585 | description: |
| | 13586 | "Optional provider filter; when set, only sessions recorded under these providers are returned. When present but empty, includes all providers.", |
| | 13587 | }), |
| | 13588 | Schema.Null, |
| | 13589 | ]), |
| | 13590 | ), |
| | 13591 | searchTerm: Schema.optionalKey( |
| | 13592 | Schema.Union([ |
| | 13593 | Schema.String.annotate({ |
| | 13594 | description: "Optional substring filter for the extracted thread title.", |
| | 13595 | }), |
| | 13596 | Schema.Null, |
| | 13597 | ]), |
| | 13598 | ), |
| | 13599 | sortDirection: Schema.optionalKey( |
| | 13600 | Schema.Union([ClientRequest__SortDirection, Schema.Null]).annotate({ |
| | 13601 | description: "Optional sort direction; defaults to descending (newest first).", |
| | 13602 | }), |
| | 13603 | ), |
| | 13604 | sortKey: Schema.optionalKey( |
| | 13605 | Schema.Union([ClientRequest__ThreadSortKey, Schema.Null]).annotate({ |
| | 13606 | description: "Optional sort key; defaults to created_at.", |
| | 13607 | }), |
| | 13608 | ), |
| | 13609 | sourceKinds: Schema.optionalKey( |
| | 13610 | Schema.Union([ |
| | 13611 | Schema.Array(ClientRequest__ThreadSourceKind).annotate({ |
| | 13612 | description: |
| | 13613 | "Optional source filter; when set, only sessions from these source kinds are returned. When omitted or empty, defaults to interactive sources.", |
| | 13614 | }), |
| | 13615 | Schema.Null, |
| | 13616 | ]), |
| | 13617 | ), |
| | 13618 | useStateDbOnly: Schema.optionalKey( |
| | 13619 | Schema.Boolean.annotate({ |
| | 13620 | description: |
| | 13621 | "If true, return from the state DB without scanning JSONL rollouts to repair thread metadata. Omitted or false preserves scan-and-repair behavior.", |
| | 13622 | }), |
| | 13623 | ), |
| | 13624 | }).annotate({ identifier: "ClientRequest__ThreadListParams" }); |
| | 13625 | |
| | 13626 | export type ClientRequest__SkillsExtraRootsSetParams = { |
| | 13627 | readonly extraRoots: ReadonlyArray<ClientRequest__AbsolutePathBuf>; |
| | 13628 | }; |
| | 13629 | export const ClientRequest__SkillsExtraRootsSetParams = Schema.Struct({ |
| | 13630 | extraRoots: Schema.Array(ClientRequest__AbsolutePathBuf), |
| | 13631 | }).annotate({ identifier: "ClientRequest__SkillsExtraRootsSetParams" }); |
| | 13632 | |
| 11029 | export type ClientRequest__PluginInstalledParams = { | 13633 | export type ClientRequest__PluginInstalledParams = { |
| 11030 | readonly cwds?: ReadonlyArray<ClientRequest__AbsolutePathBuf> | null; | 13634 | readonly cwds?: ReadonlyArray<ClientRequest__AbsolutePathBuf> | null; |
| 11031 | readonly installSuggestionPluginNames?: ReadonlyArray<string> | null; | 13635 | readonly installSuggestionPluginNames?: ReadonlyArray<string> | null; |
| ... | @@ -11048,7 +13652,7 @@ export const ClientRequest__PluginInstalledParams = Schema.Struct({ | ... | @@ -11048,7 +13652,7 @@ export const ClientRequest__PluginInstalledParams = Schema.Struct({ |
| 11048 | Schema.Null, | 13652 | Schema.Null, |
| 11049 | ]), | 13653 | ]), |
| 11050 | ), | 13654 | ), |
| 11051 | }); | 13655 | }).annotate({ identifier: "ClientRequest__PluginInstalledParams" }); |
| 11052 | | 13656 | |
| 11053 | export type ClientRequest__PluginReadParams = { | 13657 | export type ClientRequest__PluginReadParams = { |
| 11054 | readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null; | 13658 | readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null; |
| ... | @@ -11059,50 +13663,142 @@ export const ClientRequest__PluginReadParams = Schema.Struct({ | ... | @@ -11059,50 +13663,142 @@ export const ClientRequest__PluginReadParams = Schema.Struct({ |
| 11059 | marketplacePath: Schema.optionalKey(Schema.Union([ClientRequest__AbsolutePathBuf, Schema.Null])), | 13663 | marketplacePath: Schema.optionalKey(Schema.Union([ClientRequest__AbsolutePathBuf, Schema.Null])), |
| 11060 | pluginName: Schema.String, | 13664 | pluginName: Schema.String, |
| 11061 | remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 13665 | remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 13666 | }).annotate({ identifier: "ClientRequest__PluginReadParams" }); |
| | 13667 | |
| | 13668 | export type ClientRequest__FsReadFileParams = { readonly path: ClientRequest__AbsolutePathBuf }; |
| | 13669 | export const ClientRequest__FsReadFileParams = Schema.Struct({ |
| | 13670 | path: Schema.suspend( |
| | 13671 | (): Schema.Codec<ClientRequest__AbsolutePathBuf> => ClientRequest__AbsolutePathBuf, |
| | 13672 | ).annotate({ description: "Absolute path to read." }), |
| | 13673 | }).annotate({ |
| | 13674 | description: "Read a file from the host filesystem.", |
| | 13675 | identifier: "ClientRequest__FsReadFileParams", |
| 11062 | }); | 13676 | }); |
| 11063 | | 13677 | |
| 11064 | export type ClientRequest__SandboxPolicy = | 13678 | export type ClientRequest__FsWriteFileParams = { |
| 11065 | | { readonly type: "dangerFullAccess" } | 13679 | readonly dataBase64: string; |
| 11066 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } | 13680 | readonly path: ClientRequest__AbsolutePathBuf; |
| 11067 | | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" } | 13681 | }; |
| 11068 | | { | 13682 | export const ClientRequest__FsWriteFileParams = Schema.Struct({ |
| 11069 | readonly excludeSlashTmp?: boolean; | 13683 | dataBase64: Schema.String.annotate({ description: "File contents encoded as base64." }), |
| 11070 | readonly excludeTmpdirEnvVar?: boolean; | 13684 | path: Schema.suspend( |
| 11071 | readonly networkAccess?: boolean; | 13685 | (): Schema.Codec<ClientRequest__AbsolutePathBuf> => ClientRequest__AbsolutePathBuf, |
| 11072 | readonly type: "workspaceWrite"; | 13686 | ).annotate({ description: "Absolute path to write." }), |
| 11073 | readonly writableRoots?: ReadonlyArray<ClientRequest__AbsolutePathBuf>; | 13687 | }).annotate({ |
| 11074 | }; | 13688 | description: "Write a file on the host filesystem.", |
| 11075 | export const ClientRequest__SandboxPolicy = Schema.Union( | 13689 | identifier: "ClientRequest__FsWriteFileParams", |
| 11076 | [ | 13690 | }); |
| 11077 | Schema.Struct({ | 13691 | |
| 11078 | type: Schema.Literal("dangerFullAccess").annotate({ | 13692 | export type ClientRequest__FsCreateDirectoryParams = { |
| 11079 | title: "DangerFullAccessSandboxPolicyType", | 13693 | readonly path: ClientRequest__AbsolutePathBuf; |
| | 13694 | readonly recursive?: boolean | null; |
| | 13695 | }; |
| | 13696 | export const ClientRequest__FsCreateDirectoryParams = Schema.Struct({ |
| | 13697 | path: Schema.suspend( |
| | 13698 | (): Schema.Codec<ClientRequest__AbsolutePathBuf> => ClientRequest__AbsolutePathBuf, |
| | 13699 | ).annotate({ description: "Absolute directory path to create." }), |
| | 13700 | recursive: Schema.optionalKey( |
| | 13701 | Schema.Union([ |
| | 13702 | Schema.Boolean.annotate({ |
| | 13703 | description: "Whether parent directories should also be created. Defaults to `true`.", |
| 11080 | }), | 13704 | }), |
| 11081 | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), | 13705 | Schema.Null, |
| 11082 | Schema.Struct({ | 13706 | ]), |
| 11083 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | 13707 | ), |
| 11084 | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), | 13708 | }).annotate({ |
| 11085 | }).annotate({ title: "ReadOnlySandboxPolicy" }), | 13709 | description: "Create a directory on the host filesystem.", |
| 11086 | Schema.Struct({ | 13710 | identifier: "ClientRequest__FsCreateDirectoryParams", |
| 11087 | networkAccess: Schema.optionalKey( | 13711 | }); |
| 11088 | Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }), | 13712 | |
| 11089 | ), | 13713 | export type ClientRequest__FsGetMetadataParams = { readonly path: ClientRequest__AbsolutePathBuf }; |
| 11090 | type: Schema.Literal("externalSandbox").annotate({ | 13714 | export const ClientRequest__FsGetMetadataParams = Schema.Struct({ |
| 11091 | title: "ExternalSandboxSandboxPolicyType", | 13715 | path: Schema.suspend( |
| | 13716 | (): Schema.Codec<ClientRequest__AbsolutePathBuf> => ClientRequest__AbsolutePathBuf, |
| | 13717 | ).annotate({ description: "Absolute path to inspect." }), |
| | 13718 | }).annotate({ |
| | 13719 | description: "Request metadata for an absolute path.", |
| | 13720 | identifier: "ClientRequest__FsGetMetadataParams", |
| | 13721 | }); |
| | 13722 | |
| | 13723 | export type ClientRequest__FsReadDirectoryParams = { |
| | 13724 | readonly path: ClientRequest__AbsolutePathBuf; |
| | 13725 | }; |
| | 13726 | export const ClientRequest__FsReadDirectoryParams = Schema.Struct({ |
| | 13727 | path: Schema.suspend( |
| | 13728 | (): Schema.Codec<ClientRequest__AbsolutePathBuf> => ClientRequest__AbsolutePathBuf, |
| | 13729 | ).annotate({ description: "Absolute directory path to read." }), |
| | 13730 | }).annotate({ |
| | 13731 | description: "List direct child names for a directory.", |
| | 13732 | identifier: "ClientRequest__FsReadDirectoryParams", |
| | 13733 | }); |
| | 13734 | |
| | 13735 | export type ClientRequest__FsRemoveParams = { |
| | 13736 | readonly force?: boolean | null; |
| | 13737 | readonly path: ClientRequest__AbsolutePathBuf; |
| | 13738 | readonly recursive?: boolean | null; |
| | 13739 | }; |
| | 13740 | export const ClientRequest__FsRemoveParams = Schema.Struct({ |
| | 13741 | force: Schema.optionalKey( |
| | 13742 | Schema.Union([ |
| | 13743 | Schema.Boolean.annotate({ |
| | 13744 | description: "Whether missing paths should be ignored. Defaults to `true`.", |
| 11092 | }), | 13745 | }), |
| 11093 | }).annotate({ title: "ExternalSandboxSandboxPolicy" }), | 13746 | Schema.Null, |
| 11094 | Schema.Struct({ | 13747 | ]), |
| 11095 | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | 13748 | ), |
| 11096 | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | 13749 | path: Schema.suspend( |
| 11097 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | 13750 | (): Schema.Codec<ClientRequest__AbsolutePathBuf> => ClientRequest__AbsolutePathBuf, |
| 11098 | type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }), | 13751 | ).annotate({ description: "Absolute path to remove." }), |
| 11099 | writableRoots: Schema.optionalKey( | 13752 | recursive: Schema.optionalKey( |
| 11100 | Schema.Array(ClientRequest__AbsolutePathBuf).annotate({ default: [] }), | 13753 | Schema.Union([ |
| 11101 | ), | 13754 | Schema.Boolean.annotate({ |
| 11102 | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), | 13755 | description: "Whether directory removal should recurse. Defaults to `true`.", |
| 11103 | ], | 13756 | }), |
| 11104 | { mode: "oneOf" }, | 13757 | Schema.Null, |
| 11105 | ); | 13758 | ]), |
| | 13759 | ), |
| | 13760 | }).annotate({ |
| | 13761 | description: "Remove a file or directory tree from the host filesystem.", |
| | 13762 | identifier: "ClientRequest__FsRemoveParams", |
| | 13763 | }); |
| | 13764 | |
| | 13765 | export type ClientRequest__FsCopyParams = { |
| | 13766 | readonly destinationPath: ClientRequest__AbsolutePathBuf; |
| | 13767 | readonly recursive?: boolean; |
| | 13768 | readonly sourcePath: ClientRequest__AbsolutePathBuf; |
| | 13769 | }; |
| | 13770 | export const ClientRequest__FsCopyParams = Schema.Struct({ |
| | 13771 | destinationPath: Schema.suspend( |
| | 13772 | (): Schema.Codec<ClientRequest__AbsolutePathBuf> => ClientRequest__AbsolutePathBuf, |
| | 13773 | ).annotate({ description: "Absolute destination path." }), |
| | 13774 | recursive: Schema.optionalKey( |
| | 13775 | Schema.Boolean.annotate({ |
| | 13776 | description: "Required for directory copies; ignored for file copies.", |
| | 13777 | }), |
| | 13778 | ), |
| | 13779 | sourcePath: Schema.suspend( |
| | 13780 | (): Schema.Codec<ClientRequest__AbsolutePathBuf> => ClientRequest__AbsolutePathBuf, |
| | 13781 | ).annotate({ description: "Absolute source path." }), |
| | 13782 | }).annotate({ |
| | 13783 | description: "Copy a file or directory tree on the host filesystem.", |
| | 13784 | identifier: "ClientRequest__FsCopyParams", |
| | 13785 | }); |
| | 13786 | |
| | 13787 | export type ClientRequest__FsWatchParams = { |
| | 13788 | readonly path: ClientRequest__AbsolutePathBuf; |
| | 13789 | readonly watchId: string; |
| | 13790 | }; |
| | 13791 | export const ClientRequest__FsWatchParams = Schema.Struct({ |
| | 13792 | path: Schema.suspend( |
| | 13793 | (): Schema.Codec<ClientRequest__AbsolutePathBuf> => ClientRequest__AbsolutePathBuf, |
| | 13794 | ).annotate({ description: "Absolute file or directory path to watch." }), |
| | 13795 | watchId: Schema.String.annotate({ |
| | 13796 | description: "Connection-scoped watch identifier used for `fs/unwatch` and `fs/changed`.", |
| | 13797 | }), |
| | 13798 | }).annotate({ |
| | 13799 | description: "Start filesystem watch notifications for an absolute path.", |
| | 13800 | identifier: "ClientRequest__FsWatchParams", |
| | 13801 | }); |
| 11106 | | 13802 | |
| 11107 | export type ClientRequest__SkillsConfigWriteParams = { | 13803 | export type ClientRequest__SkillsConfigWriteParams = { |
| 11108 | readonly enabled: boolean; | 13804 | readonly enabled: boolean; |
| ... | @@ -11119,53 +13815,86 @@ export const ClientRequest__SkillsConfigWriteParams = Schema.Struct({ | ... | @@ -11119,53 +13815,86 @@ export const ClientRequest__SkillsConfigWriteParams = Schema.Struct({ |
| 11119 | description: "Path-based selector.", | 13815 | description: "Path-based selector.", |
| 11120 | }), | 13816 | }), |
| 11121 | ), | 13817 | ), |
| 11122 | }); | 13818 | }).annotate({ identifier: "ClientRequest__SkillsConfigWriteParams" }); |
| 11123 | | 13819 | |
| 11124 | export type ClientRequest__SkillsExtraRootsSetParams = { | 13820 | export type ClientRequest__PluginInstallParams = { |
| 11125 | readonly extraRoots: ReadonlyArray<ClientRequest__AbsolutePathBuf>; | 13821 | readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null; |
| | 13822 | readonly pluginName: string; |
| | 13823 | readonly remoteMarketplaceName?: string | null; |
| 11126 | }; | 13824 | }; |
| 11127 | export const ClientRequest__SkillsExtraRootsSetParams = Schema.Struct({ | 13825 | export const ClientRequest__PluginInstallParams = Schema.Struct({ |
| 11128 | extraRoots: Schema.Array(ClientRequest__AbsolutePathBuf), | 13826 | marketplacePath: Schema.optionalKey(Schema.Union([ClientRequest__AbsolutePathBuf, Schema.Null])), |
| 11129 | }); | 13827 | pluginName: Schema.String, |
| | 13828 | remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 13829 | }).annotate({ identifier: "ClientRequest__PluginInstallParams" }); |
| 11130 | | 13830 | |
| 11131 | export type ClientRequest__SendAddCreditsNudgeEmailParams = { | 13831 | export type ClientRequest__PluginListParams = { |
| 11132 | readonly creditType: ClientRequest__AddCreditsNudgeCreditType; | 13832 | readonly cwds?: ReadonlyArray<ClientRequest__AbsolutePathBuf> | null; |
| | 13833 | readonly marketplaceKinds?: ReadonlyArray<ClientRequest__PluginListMarketplaceKind> | null; |
| 11133 | }; | 13834 | }; |
| 11134 | export const ClientRequest__SendAddCreditsNudgeEmailParams = Schema.Struct({ | 13835 | export const ClientRequest__PluginListParams = Schema.Struct({ |
| 11135 | creditType: ClientRequest__AddCreditsNudgeCreditType, | 13836 | cwds: Schema.optionalKey( |
| | 13837 | Schema.Union([ |
| | 13838 | Schema.Array(ClientRequest__AbsolutePathBuf).annotate({ |
| | 13839 | description: |
| | 13840 | "Optional working directories used to discover repo marketplaces. When omitted, only home-scoped marketplaces and the official curated marketplace are considered.", |
| | 13841 | }), |
| | 13842 | Schema.Null, |
| | 13843 | ]), |
| | 13844 | ), |
| | 13845 | marketplaceKinds: Schema.optionalKey( |
| | 13846 | Schema.Union([ |
| | 13847 | Schema.Array(ClientRequest__PluginListMarketplaceKind).annotate({ |
| | 13848 | description: |
| | 13849 | "Optional marketplace kind filter. When omitted, only local marketplaces are queried, plus the default remote catalog when enabled by feature flag.", |
| | 13850 | }), |
| | 13851 | Schema.Null, |
| | 13852 | ]), |
| | 13853 | ), |
| | 13854 | }).annotate({ identifier: "ClientRequest__PluginListParams" }); |
| | 13855 | |
| | 13856 | export type ClientRequest__PluginShareTarget = { |
| | 13857 | readonly principalId: string; |
| | 13858 | readonly principalType: ClientRequest__PluginSharePrincipalType; |
| | 13859 | readonly role: ClientRequest__PluginShareTargetRole; |
| | 13860 | }; |
| | 13861 | export const ClientRequest__PluginShareTarget = Schema.Struct({ |
| | 13862 | principalId: Schema.String, |
| | 13863 | principalType: ClientRequest__PluginSharePrincipalType, |
| | 13864 | role: ClientRequest__PluginShareTargetRole, |
| | 13865 | }).annotate({ identifier: "ClientRequest__PluginShareTarget" }); |
| | 13866 | |
| | 13867 | export type ClientRequest__Settings = { |
| | 13868 | readonly developer_instructions?: string | null; |
| | 13869 | readonly model: string; |
| | 13870 | readonly reasoning_effort?: ClientRequest__ReasoningEffort | null; |
| | 13871 | }; |
| | 13872 | export const ClientRequest__Settings = Schema.Struct({ |
| | 13873 | developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 13874 | model: Schema.String, |
| | 13875 | reasoning_effort: Schema.optionalKey(Schema.Union([ClientRequest__ReasoningEffort, Schema.Null])), |
| | 13876 | }).annotate({ |
| | 13877 | description: "Settings for a collaboration mode.", |
| | 13878 | identifier: "ClientRequest__Settings", |
| 11136 | }); | 13879 | }); |
| 11137 | | 13880 | |
| 11138 | export type ClientRequest__ContentItem = | 13881 | export type ClientRequest__TextElement = { |
| 11139 | | { readonly text: string; readonly type: "input_text" } | 13882 | readonly byteRange: ClientRequest__ByteRange; |
| 11140 | | { | 13883 | readonly placeholder?: string | null; |
| 11141 | readonly detail?: ClientRequest__ImageDetail | null; | 13884 | }; |
| 11142 | readonly image_url: string; | 13885 | export const ClientRequest__TextElement = Schema.Struct({ |
| 11143 | readonly type: "input_image"; | 13886 | byteRange: Schema.suspend( |
| 11144 | } | 13887 | (): Schema.Codec<ClientRequest__ByteRange> => ClientRequest__ByteRange, |
| 11145 | | { readonly audio_url: string; readonly type: "input_audio" } | 13888 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), |
| 11146 | | { readonly text: string; readonly type: "output_text" }; | 13889 | placeholder: Schema.optionalKey( |
| 11147 | export const ClientRequest__ContentItem = Schema.Union( | 13890 | Schema.Union([ |
| 11148 | [ | 13891 | Schema.String.annotate({ |
| 11149 | Schema.Struct({ | 13892 | description: "Optional human-readable placeholder for the element, displayed in the UI.", |
| 11150 | text: Schema.String, | 13893 | }), |
| 11151 | type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }), | 13894 | Schema.Null, |
| 11152 | }).annotate({ title: "InputTextContentItem" }), | 13895 | ]), |
| 11153 | Schema.Struct({ | 13896 | ), |
| 11154 | detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])), | 13897 | }).annotate({ identifier: "ClientRequest__TextElement" }); |
| 11155 | image_url: Schema.String, | | |
| 11156 | type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }), | | |
| 11157 | }).annotate({ title: "InputImageContentItem" }), | | |
| 11158 | Schema.Struct({ | | |
| 11159 | audio_url: Schema.String, | | |
| 11160 | type: Schema.Literal("input_audio").annotate({ title: "InputAudioContentItemType" }), | | |
| 11161 | }).annotate({ title: "InputAudioContentItem" }), | | |
| 11162 | Schema.Struct({ | | |
| 11163 | text: Schema.String, | | |
| 11164 | type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }), | | |
| 11165 | }).annotate({ title: "OutputTextContentItem" }), | | |
| 11166 | ], | | |
| 11167 | { mode: "oneOf" }, | | |
| 11168 | ); | | |
| 11169 | | 13898 | |
| 11170 | export type ClientRequest__FunctionCallOutputContentItem = | 13899 | export type ClientRequest__FunctionCallOutputContentItem = |
| 11171 | | { readonly text: string; readonly type: "input_text" } | 13900 | | { readonly text: string; readonly type: "input_text" } |
| ... | @@ -11208,18 +13937,149 @@ export const ClientRequest__FunctionCallOutputContentItem = Schema.Union( | ... | @@ -11208,18 +13937,149 @@ export const ClientRequest__FunctionCallOutputContentItem = Schema.Union( |
| 11208 | ).annotate({ | 13937 | ).annotate({ |
| 11209 | description: | 13938 | description: |
| 11210 | "Responses API compatible content items that can be returned by a tool call. This is a subset of ContentItem with the types we support as function call outputs.", | 13939 | "Responses API compatible content items that can be returned by a tool call. This is a subset of ContentItem with the types we support as function call outputs.", |
| | 13940 | identifier: "ClientRequest__FunctionCallOutputContentItem", |
| 11211 | }); | 13941 | }); |
| 11212 | | 13942 | |
| 11213 | export type ClientRequest__InitializeParams = { | 13943 | export type ClientRequest__ContentItem = |
| 11214 | readonly capabilities?: ClientRequest__InitializeCapabilities | null; | 13944 | | { readonly text: string; readonly type: "input_text" } |
| 11215 | readonly clientInfo: ClientRequest__ClientInfo; | 13945 | | { |
| | 13946 | readonly detail?: ClientRequest__ImageDetail | null; |
| | 13947 | readonly image_url: string; |
| | 13948 | readonly type: "input_image"; |
| | 13949 | } |
| | 13950 | | { readonly audio_url: string; readonly type: "input_audio" } |
| | 13951 | | { readonly text: string; readonly type: "output_text" }; |
| | 13952 | export const ClientRequest__ContentItem = Schema.Union( |
| | 13953 | [ |
| | 13954 | Schema.Struct({ |
| | 13955 | text: Schema.String, |
| | 13956 | type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }), |
| | 13957 | }).annotate({ title: "InputTextContentItem" }), |
| | 13958 | Schema.Struct({ |
| | 13959 | detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])), |
| | 13960 | image_url: Schema.String, |
| | 13961 | type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }), |
| | 13962 | }).annotate({ title: "InputImageContentItem" }), |
| | 13963 | Schema.Struct({ |
| | 13964 | audio_url: Schema.String, |
| | 13965 | type: Schema.Literal("input_audio").annotate({ title: "InputAudioContentItemType" }), |
| | 13966 | }).annotate({ title: "InputAudioContentItem" }), |
| | 13967 | Schema.Struct({ |
| | 13968 | text: Schema.String, |
| | 13969 | type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }), |
| | 13970 | }).annotate({ title: "OutputTextContentItem" }), |
| | 13971 | ], |
| | 13972 | { mode: "oneOf" }, |
| | 13973 | ).annotate({ identifier: "ClientRequest__ContentItem" }); |
| | 13974 | |
| | 13975 | export type ClientRequest__SandboxPolicy = |
| | 13976 | | { readonly type: "dangerFullAccess" } |
| | 13977 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } |
| | 13978 | | { readonly networkAccess?: ClientRequest__NetworkAccess; readonly type: "externalSandbox" } |
| | 13979 | | { |
| | 13980 | readonly excludeSlashTmp?: boolean; |
| | 13981 | readonly excludeTmpdirEnvVar?: boolean; |
| | 13982 | readonly networkAccess?: boolean; |
| | 13983 | readonly type: "workspaceWrite"; |
| | 13984 | readonly writableRoots?: ReadonlyArray<ClientRequest__AbsolutePathBuf>; |
| | 13985 | }; |
| | 13986 | export const ClientRequest__SandboxPolicy = Schema.Union( |
| | 13987 | [ |
| | 13988 | Schema.Struct({ |
| | 13989 | type: Schema.Literal("dangerFullAccess").annotate({ |
| | 13990 | title: "DangerFullAccessSandboxPolicyType", |
| | 13991 | }), |
| | 13992 | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), |
| | 13993 | Schema.Struct({ |
| | 13994 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| | 13995 | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), |
| | 13996 | }).annotate({ title: "ReadOnlySandboxPolicy" }), |
| | 13997 | Schema.Struct({ |
| | 13998 | networkAccess: Schema.optionalKey( |
| | 13999 | Schema.suspend( |
| | 14000 | (): Schema.Codec<ClientRequest__NetworkAccess> => ClientRequest__NetworkAccess, |
| | 14001 | ).annotate({ default: "restricted" }), |
| | 14002 | ), |
| | 14003 | type: Schema.Literal("externalSandbox").annotate({ |
| | 14004 | title: "ExternalSandboxSandboxPolicyType", |
| | 14005 | }), |
| | 14006 | }).annotate({ title: "ExternalSandboxSandboxPolicy" }), |
| | 14007 | Schema.Struct({ |
| | 14008 | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| | 14009 | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| | 14010 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| | 14011 | type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }), |
| | 14012 | writableRoots: Schema.optionalKey( |
| | 14013 | Schema.Array(ClientRequest__AbsolutePathBuf).annotate({ default: [] }), |
| | 14014 | ), |
| | 14015 | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), |
| | 14016 | ], |
| | 14017 | { mode: "oneOf" }, |
| | 14018 | ).annotate({ identifier: "ClientRequest__SandboxPolicy" }); |
| | 14019 | |
| | 14020 | export type ClientRequest__ReviewStartParams = { |
| | 14021 | readonly delivery?: ClientRequest__ReviewDelivery | null; |
| | 14022 | readonly target: ClientRequest__ReviewTarget; |
| | 14023 | readonly threadId: string; |
| 11216 | }; | 14024 | }; |
| 11217 | export const ClientRequest__InitializeParams = Schema.Struct({ | 14025 | export const ClientRequest__ReviewStartParams = Schema.Struct({ |
| 11218 | capabilities: Schema.optionalKey( | 14026 | delivery: Schema.optionalKey( |
| 11219 | Schema.Union([ClientRequest__InitializeCapabilities, Schema.Null]), | 14027 | Schema.Union([ClientRequest__ReviewDelivery, Schema.Null]).annotate({ |
| | 14028 | description: |
| | 14029 | "Where to run the review: inline (default) on the current thread or detached on a new thread (returned in `reviewThreadId`).", |
| | 14030 | }), |
| 11220 | ), | 14031 | ), |
| 11221 | clientInfo: ClientRequest__ClientInfo, | 14032 | target: ClientRequest__ReviewTarget, |
| 11222 | }); | 14033 | threadId: Schema.String, |
| | 14034 | }).annotate({ identifier: "ClientRequest__ReviewStartParams" }); |
| | 14035 | |
| | 14036 | export type ClientRequest__ListMcpServerStatusParams = { |
| | 14037 | readonly cursor?: string | null; |
| | 14038 | readonly detail?: ClientRequest__McpServerStatusDetail | null; |
| | 14039 | readonly limit?: number | null; |
| | 14040 | readonly threadId?: string | null; |
| | 14041 | }; |
| | 14042 | export const ClientRequest__ListMcpServerStatusParams = Schema.Struct({ |
| | 14043 | cursor: Schema.optionalKey( |
| | 14044 | Schema.Union([ |
| | 14045 | Schema.String.annotate({ |
| | 14046 | description: "Opaque pagination cursor returned by a previous call.", |
| | 14047 | }), |
| | 14048 | Schema.Null, |
| | 14049 | ]), |
| | 14050 | ), |
| | 14051 | detail: Schema.optionalKey( |
| | 14052 | Schema.Union([ClientRequest__McpServerStatusDetail, Schema.Null]).annotate({ |
| | 14053 | description: |
| | 14054 | "Controls how much MCP inventory data to fetch for each server. Defaults to `Full` when omitted.", |
| | 14055 | }), |
| | 14056 | ), |
| | 14057 | limit: Schema.optionalKey( |
| | 14058 | Schema.Union([ |
| | 14059 | Schema.Number.annotate({ |
| | 14060 | description: "Optional page size; defaults to a server-defined value.", |
| | 14061 | format: "uint32", |
| | 14062 | }) |
| | 14063 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 14064 | .check( |
| | 14065 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 14066 | expected: "a value greater than or equal to 0", |
| | 14067 | }), |
| | 14068 | ), |
| | 14069 | Schema.Null, |
| | 14070 | ]), |
| | 14071 | ), |
| | 14072 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 14073 | }).annotate({ identifier: "ClientRequest__ListMcpServerStatusParams" }); |
| | 14074 | |
| | 14075 | export type ClientRequest__WindowsSandboxSetupStartParams = { |
| | 14076 | readonly cwd?: ClientRequest__AbsolutePathBuf | null; |
| | 14077 | readonly mode: ClientRequest__WindowsSandboxSetupMode; |
| | 14078 | }; |
| | 14079 | export const ClientRequest__WindowsSandboxSetupStartParams = Schema.Struct({ |
| | 14080 | cwd: Schema.optionalKey(Schema.Union([ClientRequest__AbsolutePathBuf, Schema.Null])), |
| | 14081 | mode: ClientRequest__WindowsSandboxSetupMode, |
| | 14082 | }).annotate({ identifier: "ClientRequest__WindowsSandboxSetupStartParams" }); |
| 11223 | | 14083 | |
| 11224 | export type ClientRequest__LoginAccountParams = | 14084 | export type ClientRequest__LoginAccountParams = |
| 11225 | | { readonly apiKey: string; readonly type: "apiKey" } | 14085 | | { readonly apiKey: string; readonly type: "apiKey" } |
| ... | @@ -11291,60 +14151,70 @@ export const ClientRequest__LoginAccountParams = Schema.Union( | ... | @@ -11291,60 +14151,70 @@ export const ClientRequest__LoginAccountParams = Schema.Union( |
| 11291 | }), | 14151 | }), |
| 11292 | ], | 14152 | ], |
| 11293 | { mode: "oneOf" }, | 14153 | { mode: "oneOf" }, |
| 11294 | ); | 14154 | ).annotate({ identifier: "ClientRequest__LoginAccountParams" }); |
| 11295 | | 14155 | |
| 11296 | export type ClientRequest__ListMcpServerStatusParams = { | 14156 | export type ClientRequest__SendAddCreditsNudgeEmailParams = { |
| 11297 | readonly cursor?: string | null; | 14157 | readonly creditType: ClientRequest__AddCreditsNudgeCreditType; |
| 11298 | readonly detail?: ClientRequest__McpServerStatusDetail | null; | | |
| 11299 | readonly limit?: number | null; | | |
| 11300 | readonly threadId?: string | null; | | |
| 11301 | }; | 14158 | }; |
| 11302 | export const ClientRequest__ListMcpServerStatusParams = Schema.Struct({ | 14159 | export const ClientRequest__SendAddCreditsNudgeEmailParams = Schema.Struct({ |
| 11303 | cursor: Schema.optionalKey( | 14160 | creditType: ClientRequest__AddCreditsNudgeCreditType, |
| 11304 | Schema.Union([ | 14161 | }).annotate({ identifier: "ClientRequest__SendAddCreditsNudgeEmailParams" }); |
| 11305 | Schema.String.annotate({ | | |
| 11306 | description: "Opaque pagination cursor returned by a previous call.", | | |
| 11307 | }), | | |
| 11308 | Schema.Null, | | |
| 11309 | ]), | | |
| 11310 | ), | | |
| 11311 | detail: Schema.optionalKey( | | |
| 11312 | Schema.Union([ClientRequest__McpServerStatusDetail, Schema.Null]).annotate({ | | |
| 11313 | description: | | |
| 11314 | "Controls how much MCP inventory data to fetch for each server. Defaults to `Full` when omitted.", | | |
| 11315 | }), | | |
| 11316 | ), | | |
| 11317 | limit: Schema.optionalKey( | | |
| 11318 | Schema.Union([ | | |
| 11319 | Schema.Number.annotate({ | | |
| 11320 | description: "Optional page size; defaults to a server-defined value.", | | |
| 11321 | format: "uint32", | | |
| 11322 | }) | | |
| 11323 | .check(Schema.isInt()) | | |
| 11324 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 11325 | Schema.Null, | | |
| 11326 | ]), | | |
| 11327 | ), | | |
| 11328 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 11329 | }); | | |
| 11330 | | 14162 | |
| 11331 | export type ClientRequest__ConfigEdit = { | 14163 | export type ClientRequest__CommandExecResizeParams = { |
| 11332 | readonly keyPath: string; | 14164 | readonly processId: string; |
| 11333 | readonly mergeStrategy: ClientRequest__MergeStrategy; | 14165 | readonly size: ClientRequest__CommandExecTerminalSize; |
| 11334 | readonly value: unknown; | | |
| 11335 | }; | 14166 | }; |
| 11336 | export const ClientRequest__ConfigEdit = Schema.Struct({ | 14167 | export const ClientRequest__CommandExecResizeParams = Schema.Struct({ |
| 11337 | keyPath: Schema.String, | 14168 | processId: Schema.String.annotate({ |
| 11338 | mergeStrategy: ClientRequest__MergeStrategy, | 14169 | description: |
| 11339 | value: Schema.Unknown, | 14170 | "Client-supplied, connection-scoped `processId` from the original `command/exec` request.", |
| | 14171 | }), |
| | 14172 | size: Schema.suspend( |
| | 14173 | (): Schema.Codec<ClientRequest__CommandExecTerminalSize> => |
| | 14174 | ClientRequest__CommandExecTerminalSize, |
| | 14175 | ).annotate({ description: "New PTY size in character cells." }), |
| | 14176 | }).annotate({ |
| | 14177 | description: "Resize a running PTY-backed `command/exec` session.", |
| | 14178 | identifier: "ClientRequest__CommandExecResizeParams", |
| 11340 | }); | 14179 | }); |
| 11341 | | 14180 | |
| | 14181 | export type ClientRequest__MigrationDetails = { |
| | 14182 | readonly commands?: ReadonlyArray<ClientRequest__CommandMigration>; |
| | 14183 | readonly hooks?: ReadonlyArray<ClientRequest__HookMigration>; |
| | 14184 | readonly mcpServers?: ReadonlyArray<ClientRequest__McpServerMigration>; |
| | 14185 | readonly memory?: ReadonlyArray<string>; |
| | 14186 | readonly plugins?: ReadonlyArray<ClientRequest__PluginsMigration>; |
| | 14187 | readonly sessions?: ReadonlyArray<ClientRequest__SessionMigration>; |
| | 14188 | readonly skills?: ReadonlyArray<ClientRequest__SkillMigration>; |
| | 14189 | readonly subagents?: ReadonlyArray<ClientRequest__SubagentMigration>; |
| | 14190 | }; |
| | 14191 | export const ClientRequest__MigrationDetails = Schema.Struct({ |
| | 14192 | commands: Schema.optionalKey( |
| | 14193 | Schema.Array(ClientRequest__CommandMigration).annotate({ default: [] }), |
| | 14194 | ), |
| | 14195 | hooks: Schema.optionalKey(Schema.Array(ClientRequest__HookMigration).annotate({ default: [] })), |
| | 14196 | mcpServers: Schema.optionalKey( |
| | 14197 | Schema.Array(ClientRequest__McpServerMigration).annotate({ default: [] }), |
| | 14198 | ), |
| | 14199 | memory: Schema.optionalKey(Schema.Array(Schema.String)), |
| | 14200 | plugins: Schema.optionalKey( |
| | 14201 | Schema.Array(ClientRequest__PluginsMigration).annotate({ default: [] }), |
| | 14202 | ), |
| | 14203 | sessions: Schema.optionalKey( |
| | 14204 | Schema.Array(ClientRequest__SessionMigration).annotate({ default: [] }), |
| | 14205 | ), |
| | 14206 | skills: Schema.optionalKey(Schema.Array(ClientRequest__SkillMigration).annotate({ default: [] })), |
| | 14207 | subagents: Schema.optionalKey( |
| | 14208 | Schema.Array(ClientRequest__SubagentMigration).annotate({ default: [] }), |
| | 14209 | ), |
| | 14210 | }).annotate({ identifier: "ClientRequest__MigrationDetails" }); |
| | 14211 | |
| 11342 | export type ClientRequest__ConfigValueWriteParams = { | 14212 | export type ClientRequest__ConfigValueWriteParams = { |
| 11343 | readonly expectedVersion?: string | null; | 14213 | readonly expectedVersion?: string | null; |
| 11344 | readonly filePath?: string | null; | 14214 | readonly filePath?: string | null; |
| 11345 | readonly keyPath: string; | 14215 | readonly keyPath: string; |
| 11346 | readonly mergeStrategy: ClientRequest__MergeStrategy; | 14216 | readonly mergeStrategy: ClientRequest__MergeStrategy; |
| 11347 | readonly value: unknown; | 14217 | readonly value: Schema.Json; |
| 11348 | }; | 14218 | }; |
| 11349 | export const ClientRequest__ConfigValueWriteParams = Schema.Struct({ | 14219 | export const ClientRequest__ConfigValueWriteParams = Schema.Struct({ |
| 11350 | expectedVersion: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 14220 | expectedVersion: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -11359,494 +14229,61 @@ export const ClientRequest__ConfigValueWriteParams = Schema.Struct({ | ... | @@ -11359,494 +14229,61 @@ export const ClientRequest__ConfigValueWriteParams = Schema.Struct({ |
| 11359 | ), | 14229 | ), |
| 11360 | keyPath: Schema.String, | 14230 | keyPath: Schema.String, |
| 11361 | mergeStrategy: ClientRequest__MergeStrategy, | 14231 | mergeStrategy: ClientRequest__MergeStrategy, |
| 11362 | value: Schema.Unknown, | 14232 | value: Schema.Json.annotate({ expected: "JSON value" }), |
| 11363 | }); | 14233 | }).annotate({ identifier: "ClientRequest__ConfigValueWriteParams" }); |
| 11364 | | 14234 | |
| 11365 | export type ClientRequest__PluginListParams = { | 14235 | export type ClientRequest__ConfigEdit = { |
| 11366 | readonly cwds?: ReadonlyArray<ClientRequest__AbsolutePathBuf> | null; | 14236 | readonly keyPath: string; |
| 11367 | readonly marketplaceKinds?: ReadonlyArray<ClientRequest__PluginListMarketplaceKind> | null; | 14237 | readonly mergeStrategy: ClientRequest__MergeStrategy; |
| | 14238 | readonly value: Schema.Json; |
| 11368 | }; | 14239 | }; |
| 11369 | export const ClientRequest__PluginListParams = Schema.Struct({ | 14240 | export const ClientRequest__ConfigEdit = Schema.Struct({ |
| 11370 | cwds: Schema.optionalKey( | 14241 | keyPath: Schema.String, |
| 11371 | Schema.Union([ | 14242 | mergeStrategy: ClientRequest__MergeStrategy, |
| 11372 | Schema.Array(ClientRequest__AbsolutePathBuf).annotate({ | 14243 | value: Schema.Json.annotate({ expected: "JSON value" }), |
| 11373 | description: | 14244 | }).annotate({ identifier: "ClientRequest__ConfigEdit" }); |
| 11374 | "Optional working directories used to discover repo marketplaces. When omitted, only home-scoped marketplaces and the official curated marketplace are considered.", | | |
| 11375 | }), | | |
| 11376 | Schema.Null, | | |
| 11377 | ]), | | |
| 11378 | ), | | |
| 11379 | marketplaceKinds: Schema.optionalKey( | | |
| 11380 | Schema.Union([ | | |
| 11381 | Schema.Array(ClientRequest__PluginListMarketplaceKind).annotate({ | | |
| 11382 | description: | | |
| 11383 | "Optional marketplace kind filter. When omitted, only local marketplaces are queried, plus the default remote catalog when enabled by feature flag.", | | |
| 11384 | }), | | |
| 11385 | Schema.Null, | | |
| 11386 | ]), | | |
| 11387 | ), | | |
| 11388 | }); | | |
| 11389 | | 14245 | |
| 11390 | export type ClientRequest__PluginShareTarget = { | 14246 | export type CommandExecutionRequestApprovalParams__CommandAction = |
| 11391 | readonly principalId: string; | 14247 | | { |
| 11392 | readonly principalType: ClientRequest__PluginSharePrincipalType; | 14248 | readonly command: string; |
| 11393 | readonly role: ClientRequest__PluginShareTargetRole; | 14249 | readonly name: string; |
| 11394 | }; | 14250 | readonly path: CommandExecutionRequestApprovalParams__AbsolutePathBuf; |
| 11395 | export const ClientRequest__PluginShareTarget = Schema.Struct({ | 14251 | readonly type: "read"; |
| 11396 | principalId: Schema.String, | 14252 | } |
| 11397 | principalType: ClientRequest__PluginSharePrincipalType, | 14253 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| 11398 | role: ClientRequest__PluginShareTargetRole, | 14254 | | { |
| 11399 | }); | 14255 | readonly command: string; |
| 11400 | | 14256 | readonly path?: string | null; |
| 11401 | export type ClientRequest__Settings = { | 14257 | readonly query?: string | null; |
| 11402 | readonly developer_instructions?: string | null; | 14258 | readonly type: "search"; |
| 11403 | readonly model: string; | 14259 | } |
| 11404 | readonly reasoning_effort?: ClientRequest__ReasoningEffort | null; | 14260 | | { readonly command: string; readonly type: "unknown" }; |
| 11405 | }; | 14261 | export const CommandExecutionRequestApprovalParams__CommandAction = Schema.Union( |
| 11406 | export const ClientRequest__Settings = Schema.Struct({ | 14262 | [ |
| 11407 | developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 14263 | Schema.Struct({ |
| 11408 | model: Schema.String, | 14264 | command: Schema.String, |
| 11409 | reasoning_effort: Schema.optionalKey(Schema.Union([ClientRequest__ReasoningEffort, Schema.Null])), | 14265 | name: Schema.String, |
| 11410 | }).annotate({ description: "Settings for a collaboration mode." }); | 14266 | path: CommandExecutionRequestApprovalParams__AbsolutePathBuf, |
| 11411 | | 14267 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 11412 | export type ClientRequest__ReviewStartParams = { | 14268 | }).annotate({ title: "ReadCommandAction" }), |
| 11413 | readonly delivery?: ClientRequest__ReviewDelivery | null; | 14269 | Schema.Struct({ |
| 11414 | readonly target: ClientRequest__ReviewTarget; | 14270 | command: Schema.String, |
| 11415 | readonly threadId: string; | 14271 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 11416 | }; | 14272 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), |
| 11417 | export const ClientRequest__ReviewStartParams = Schema.Struct({ | 14273 | }).annotate({ title: "ListFilesCommandAction" }), |
| 11418 | delivery: Schema.optionalKey( | 14274 | Schema.Struct({ |
| 11419 | Schema.Union([ClientRequest__ReviewDelivery, Schema.Null]).annotate({ | 14275 | command: Schema.String, |
| 11420 | description: | 14276 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 11421 | "Where to run the review: inline (default) on the current thread or detached on a new thread (returned in `reviewThreadId`).", | 14277 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 11422 | }), | 14278 | type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }), |
| 11423 | ), | 14279 | }).annotate({ title: "SearchCommandAction" }), |
| 11424 | target: ClientRequest__ReviewTarget, | 14280 | Schema.Struct({ |
| 11425 | threadId: Schema.String, | 14281 | command: Schema.String, |
| 11426 | }); | 14282 | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), |
| 11427 | | 14283 | }).annotate({ title: "UnknownCommandAction" }), |
| 11428 | export type ClientRequest__ThreadResumeParams = { | 14284 | ], |
| 11429 | readonly approvalPolicy?: ClientRequest__AskForApproval | null; | 14285 | { mode: "oneOf" }, |
| 11430 | readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null; | 14286 | ).annotate({ identifier: "CommandExecutionRequestApprovalParams__CommandAction" }); |
| 11431 | readonly baseInstructions?: string | null; | | |
| 11432 | readonly config?: { readonly [x: string]: unknown } | null; | | |
| 11433 | readonly cwd?: string | null; | | |
| 11434 | readonly developerInstructions?: string | null; | | |
| 11435 | readonly model?: string | null; | | |
| 11436 | readonly modelProvider?: string | null; | | |
| 11437 | readonly personality?: ClientRequest__Personality | null; | | |
| 11438 | readonly sandbox?: ClientRequest__SandboxMode | null; | | |
| 11439 | readonly serviceTier?: string | null; | | |
| 11440 | readonly threadId: string; | | |
| 11441 | }; | | |
| 11442 | export const ClientRequest__ThreadResumeParams = Schema.Struct({ | | |
| 11443 | approvalPolicy: Schema.optionalKey(Schema.Union([ClientRequest__AskForApproval, Schema.Null])), | | |
| 11444 | approvalsReviewer: Schema.optionalKey( | | |
| 11445 | Schema.Union([ClientRequest__ApprovalsReviewer, Schema.Null]).annotate({ | | |
| 11446 | description: | | |
| 11447 | "Override where approval requests are routed for review on this thread and subsequent turns.", | | |
| 11448 | }), | | |
| 11449 | ), | | |
| 11450 | baseInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 11451 | config: Schema.optionalKey( | | |
| 11452 | Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]), | | |
| 11453 | ), | | |
| 11454 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 11455 | developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 11456 | model: Schema.optionalKey( | | |
| 11457 | Schema.Union([ | | |
| 11458 | Schema.String.annotate({ | | |
| 11459 | description: "Configuration overrides for the resumed thread, if any.", | | |
| 11460 | }), | | |
| 11461 | Schema.Null, | | |
| 11462 | ]), | | |
| 11463 | ), | | |
| 11464 | modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 11465 | personality: Schema.optionalKey(Schema.Union([ClientRequest__Personality, Schema.Null])), | | |
| 11466 | sandbox: Schema.optionalKey(Schema.Union([ClientRequest__SandboxMode, Schema.Null])), | | |
| 11467 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 11468 | threadId: Schema.String, | | |
| 11469 | }).annotate({ | | |
| 11470 | description: | | |
| 11471 | "There are three ways to resume a thread: 1. By thread_id: load the thread from disk by thread_id and resume it. 2. By history: instantiate the thread from memory and resume it. 3. By path: load the thread from disk by path and resume it.\n\nFor non-running threads, the precedence is: history > non-empty path > thread_id. If using history or a non-empty path for a non-running thread, the thread_id param will be ignored.\n\nIf thread_id identifies a running thread, app-server rejoins that thread and treats a non-empty path as a consistency check against the active rollout path. Empty string path values are treated as absent.\n\nPrefer using thread_id whenever possible.", | | |
| 11472 | }); | | |
| 11473 | | | |
| 11474 | export type ClientRequest__MigrationDetails = { | | |
| 11475 | readonly commands?: ReadonlyArray<ClientRequest__CommandMigration>; | | |
| 11476 | readonly hooks?: ReadonlyArray<ClientRequest__HookMigration>; | | |
| 11477 | readonly mcpServers?: ReadonlyArray<ClientRequest__McpServerMigration>; | | |
| 11478 | readonly memory?: ReadonlyArray<string>; | | |
| 11479 | readonly plugins?: ReadonlyArray<ClientRequest__PluginsMigration>; | | |
| 11480 | readonly sessions?: ReadonlyArray<ClientRequest__SessionMigration>; | | |
| 11481 | readonly skills?: ReadonlyArray<ClientRequest__SkillMigration>; | | |
| 11482 | readonly subagents?: ReadonlyArray<ClientRequest__SubagentMigration>; | | |
| 11483 | }; | | |
| 11484 | export const ClientRequest__MigrationDetails = Schema.Struct({ | | |
| 11485 | commands: Schema.optionalKey( | | |
| 11486 | Schema.Array(ClientRequest__CommandMigration).annotate({ default: [] }), | | |
| 11487 | ), | | |
| 11488 | hooks: Schema.optionalKey(Schema.Array(ClientRequest__HookMigration).annotate({ default: [] })), | | |
| 11489 | mcpServers: Schema.optionalKey( | | |
| 11490 | Schema.Array(ClientRequest__McpServerMigration).annotate({ default: [] }), | | |
| 11491 | ), | | |
| 11492 | memory: Schema.optionalKey(Schema.Array(Schema.String)), | | |
| 11493 | plugins: Schema.optionalKey( | | |
| 11494 | Schema.Array(ClientRequest__PluginsMigration).annotate({ default: [] }), | | |
| 11495 | ), | | |
| 11496 | sessions: Schema.optionalKey( | | |
| 11497 | Schema.Array(ClientRequest__SessionMigration).annotate({ default: [] }), | | |
| 11498 | ), | | |
| 11499 | skills: Schema.optionalKey(Schema.Array(ClientRequest__SkillMigration).annotate({ default: [] })), | | |
| 11500 | subagents: Schema.optionalKey( | | |
| 11501 | Schema.Array(ClientRequest__SubagentMigration).annotate({ default: [] }), | | |
| 11502 | ), | | |
| 11503 | }); | | |
| 11504 | | | |
| 11505 | export type ClientRequest__UserInput = | | |
| 11506 | | { | | |
| 11507 | readonly text: string; | | |
| 11508 | readonly text_elements?: ReadonlyArray<ClientRequest__TextElement>; | | |
| 11509 | readonly type: "text"; | | |
| 11510 | } | | |
| 11511 | | { | | |
| 11512 | readonly detail?: ClientRequest__ImageDetail | null; | | |
| 11513 | readonly type: "image"; | | |
| 11514 | readonly url: string; | | |
| 11515 | } | | |
| 11516 | | { | | |
| 11517 | readonly detail?: ClientRequest__ImageDetail | null; | | |
| 11518 | readonly path: string; | | |
| 11519 | readonly type: "localImage"; | | |
| 11520 | } | | |
| 11521 | | { readonly type: "audio"; readonly url: string } | | |
| 11522 | | { readonly path: string; readonly type: "localAudio" } | | |
| 11523 | | { readonly name: string; readonly path: string; readonly type: "skill" } | | |
| 11524 | | { readonly name: string; readonly path: string; readonly type: "mention" }; | | |
| 11525 | export const ClientRequest__UserInput = Schema.Union( | | |
| 11526 | [ | | |
| 11527 | Schema.Struct({ | | |
| 11528 | text: Schema.String, | | |
| 11529 | text_elements: Schema.optionalKey( | | |
| 11530 | Schema.Array(ClientRequest__TextElement).annotate({ | | |
| 11531 | description: "UI-defined spans within `text` used to render or persist special elements.", | | |
| 11532 | default: [], | | |
| 11533 | }), | | |
| 11534 | ), | | |
| 11535 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | | |
| 11536 | }).annotate({ title: "TextUserInput" }), | | |
| 11537 | Schema.Struct({ | | |
| 11538 | detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])), | | |
| 11539 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | | |
| 11540 | url: Schema.String, | | |
| 11541 | }).annotate({ title: "ImageUserInput" }), | | |
| 11542 | Schema.Struct({ | | |
| 11543 | detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])), | | |
| 11544 | path: Schema.String, | | |
| 11545 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), | | |
| 11546 | }).annotate({ title: "LocalImageUserInput" }), | | |
| 11547 | Schema.Struct({ | | |
| 11548 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), | | |
| 11549 | url: Schema.String, | | |
| 11550 | }).annotate({ title: "AudioUserInput" }), | | |
| 11551 | Schema.Struct({ | | |
| 11552 | path: Schema.String, | | |
| 11553 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), | | |
| 11554 | }).annotate({ title: "LocalAudioUserInput" }), | | |
| 11555 | Schema.Struct({ | | |
| 11556 | name: Schema.String, | | |
| 11557 | path: Schema.String, | | |
| 11558 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), | | |
| 11559 | }).annotate({ title: "SkillUserInput" }), | | |
| 11560 | Schema.Struct({ | | |
| 11561 | name: Schema.String, | | |
| 11562 | path: Schema.String, | | |
| 11563 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), | | |
| 11564 | }).annotate({ title: "MentionUserInput" }), | | |
| 11565 | ], | | |
| 11566 | { mode: "oneOf" }, | | |
| 11567 | ); | | |
| 11568 | | | |
| 11569 | export type ClientRequest__ThreadGoalSetParams = { | | |
| 11570 | readonly objective?: string | null; | | |
| 11571 | readonly status?: ClientRequest__ThreadGoalStatus | null; | | |
| 11572 | readonly threadId: string; | | |
| 11573 | readonly tokenBudget?: number | null; | | |
| 11574 | }; | | |
| 11575 | export const ClientRequest__ThreadGoalSetParams = Schema.Struct({ | | |
| 11576 | objective: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 11577 | status: Schema.optionalKey(Schema.Union([ClientRequest__ThreadGoalStatus, Schema.Null])), | | |
| 11578 | threadId: Schema.String, | | |
| 11579 | tokenBudget: Schema.optionalKey( | | |
| 11580 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), | | |
| 11581 | ), | | |
| 11582 | }); | | |
| 11583 | | | |
| 11584 | export type ClientRequest__ThreadMetadataUpdateParams = { | | |
| 11585 | readonly gitInfo?: ClientRequest__ThreadMetadataGitInfoUpdateParams | null; | | |
| 11586 | readonly threadId: string; | | |
| 11587 | }; | | |
| 11588 | export const ClientRequest__ThreadMetadataUpdateParams = Schema.Struct({ | | |
| 11589 | gitInfo: Schema.optionalKey( | | |
| 11590 | Schema.Union([ClientRequest__ThreadMetadataGitInfoUpdateParams, Schema.Null]).annotate({ | | |
| 11591 | description: | | |
| 11592 | "Patch the stored Git metadata for this thread. Omit a field to leave it unchanged, set it to `null` to clear it, or provide a string to replace the stored value.", | | |
| 11593 | }), | | |
| 11594 | ), | | |
| 11595 | threadId: Schema.String, | | |
| 11596 | }); | | |
| 11597 | | | |
| 11598 | export type ClientRequest__ThreadForkParams = { | | |
| 11599 | readonly approvalPolicy?: ClientRequest__AskForApproval | null; | | |
| 11600 | readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null; | | |
| 11601 | readonly baseInstructions?: string | null; | | |
| 11602 | readonly config?: { readonly [x: string]: unknown } | null; | | |
| 11603 | readonly cwd?: string | null; | | |
| 11604 | readonly developerInstructions?: string | null; | | |
| 11605 | readonly ephemeral?: boolean; | | |
| 11606 | readonly lastTurnId?: string | null; | | |
| 11607 | readonly model?: string | null; | | |
| 11608 | readonly modelProvider?: string | null; | | |
| 11609 | readonly sandbox?: ClientRequest__SandboxMode | null; | | |
| 11610 | readonly serviceTier?: string | null; | | |
| 11611 | readonly threadId: string; | | |
| 11612 | readonly threadSource?: ClientRequest__ThreadSource | null; | | |
| 11613 | }; | | |
| 11614 | export const ClientRequest__ThreadForkParams = Schema.Struct({ | | |
| 11615 | approvalPolicy: Schema.optionalKey(Schema.Union([ClientRequest__AskForApproval, Schema.Null])), | | |
| 11616 | approvalsReviewer: Schema.optionalKey( | | |
| 11617 | Schema.Union([ClientRequest__ApprovalsReviewer, Schema.Null]).annotate({ | | |
| 11618 | description: | | |
| 11619 | "Override where approval requests are routed for review on this thread and subsequent turns.", | | |
| 11620 | }), | | |
| 11621 | ), | | |
| 11622 | baseInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 11623 | config: Schema.optionalKey( | | |
| 11624 | Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]), | | |
| 11625 | ), | | |
| 11626 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 11627 | developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 11628 | ephemeral: Schema.optionalKey(Schema.Boolean), | | |
| 11629 | lastTurnId: Schema.optionalKey( | | |
| 11630 | Schema.Union([ | | |
| 11631 | Schema.String.annotate({ | | |
| 11632 | description: | | |
| 11633 | "Optional last turn id to fork through, inclusive.\n\nWhen specified, turns after `last_turn_id` are omitted from the fork. The referenced turn cannot be in progress.", | | |
| 11634 | }), | | |
| 11635 | Schema.Null, | | |
| 11636 | ]), | | |
| 11637 | ), | | |
| 11638 | model: Schema.optionalKey( | | |
| 11639 | Schema.Union([ | | |
| 11640 | Schema.String.annotate({ | | |
| 11641 | description: "Configuration overrides for the forked thread, if any.", | | |
| 11642 | }), | | |
| 11643 | Schema.Null, | | |
| 11644 | ]), | | |
| 11645 | ), | | |
| 11646 | modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 11647 | sandbox: Schema.optionalKey(Schema.Union([ClientRequest__SandboxMode, Schema.Null])), | | |
| 11648 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 11649 | threadId: Schema.String, | | |
| 11650 | threadSource: Schema.optionalKey( | | |
| 11651 | Schema.Union([ClientRequest__ThreadSource, Schema.Null]).annotate({ | | |
| 11652 | description: | | |
| 11653 | "Optional client-supplied analytics source classification for this forked thread.", | | |
| 11654 | }), | | |
| 11655 | ), | | |
| 11656 | }).annotate({ | | |
| 11657 | description: | | |
| 11658 | "There are two ways to fork a thread: 1. By thread_id: load the thread from disk by thread_id and fork it into a new thread. 2. By path: load the thread from disk by path and fork it into a new thread.\n\nIf using a non-empty path, the thread_id param will be ignored. Empty string path values are treated as absent.\n\nPrefer using thread_id whenever possible.", | | |
| 11659 | }); | | |
| 11660 | | | |
| 11661 | export type ClientRequest__ThreadListParams = { | | |
| 11662 | readonly archived?: boolean | null; | | |
| 11663 | readonly cursor?: string | null; | | |
| 11664 | readonly cwd?: ClientRequest__ThreadListCwdFilter | null; | | |
| 11665 | readonly limit?: number | null; | | |
| 11666 | readonly modelProviders?: ReadonlyArray<string> | null; | | |
| 11667 | readonly searchTerm?: string | null; | | |
| 11668 | readonly sortDirection?: ClientRequest__SortDirection | null; | | |
| 11669 | readonly sortKey?: ClientRequest__ThreadSortKey | null; | | |
| 11670 | readonly sourceKinds?: ReadonlyArray<ClientRequest__ThreadSourceKind> | null; | | |
| 11671 | readonly useStateDbOnly?: boolean; | | |
| 11672 | }; | | |
| 11673 | export const ClientRequest__ThreadListParams = Schema.Struct({ | | |
| 11674 | archived: Schema.optionalKey( | | |
| 11675 | Schema.Union([ | | |
| 11676 | Schema.Boolean.annotate({ | | |
| 11677 | description: | | |
| 11678 | "Optional archived filter; when set to true, only archived threads are returned. If false or null, only non-archived threads are returned.", | | |
| 11679 | }), | | |
| 11680 | Schema.Null, | | |
| 11681 | ]), | | |
| 11682 | ), | | |
| 11683 | cursor: Schema.optionalKey( | | |
| 11684 | Schema.Union([ | | |
| 11685 | Schema.String.annotate({ | | |
| 11686 | description: "Opaque pagination cursor returned by a previous call.", | | |
| 11687 | }), | | |
| 11688 | Schema.Null, | | |
| 11689 | ]), | | |
| 11690 | ), | | |
| 11691 | cwd: Schema.optionalKey( | | |
| 11692 | Schema.Union([ClientRequest__ThreadListCwdFilter, Schema.Null]).annotate({ | | |
| 11693 | description: | | |
| 11694 | "Optional cwd filter or filters; when set, only threads whose session cwd exactly matches one of these paths are returned.", | | |
| 11695 | }), | | |
| 11696 | ), | | |
| 11697 | limit: Schema.optionalKey( | | |
| 11698 | Schema.Union([ | | |
| 11699 | Schema.Number.annotate({ | | |
| 11700 | description: "Optional page size; defaults to a reasonable server-side value.", | | |
| 11701 | format: "uint32", | | |
| 11702 | }) | | |
| 11703 | .check(Schema.isInt()) | | |
| 11704 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 11705 | Schema.Null, | | |
| 11706 | ]), | | |
| 11707 | ), | | |
| 11708 | modelProviders: Schema.optionalKey( | | |
| 11709 | Schema.Union([ | | |
| 11710 | Schema.Array(Schema.String).annotate({ | | |
| 11711 | description: | | |
| 11712 | "Optional provider filter; when set, only sessions recorded under these providers are returned. When present but empty, includes all providers.", | | |
| 11713 | }), | | |
| 11714 | Schema.Null, | | |
| 11715 | ]), | | |
| 11716 | ), | | |
| 11717 | searchTerm: Schema.optionalKey( | | |
| 11718 | Schema.Union([ | | |
| 11719 | Schema.String.annotate({ | | |
| 11720 | description: "Optional substring filter for the extracted thread title.", | | |
| 11721 | }), | | |
| 11722 | Schema.Null, | | |
| 11723 | ]), | | |
| 11724 | ), | | |
| 11725 | sortDirection: Schema.optionalKey( | | |
| 11726 | Schema.Union([ClientRequest__SortDirection, Schema.Null]).annotate({ | | |
| 11727 | description: "Optional sort direction; defaults to descending (newest first).", | | |
| 11728 | }), | | |
| 11729 | ), | | |
| 11730 | sortKey: Schema.optionalKey( | | |
| 11731 | Schema.Union([ClientRequest__ThreadSortKey, Schema.Null]).annotate({ | | |
| 11732 | description: "Optional sort key; defaults to created_at.", | | |
| 11733 | }), | | |
| 11734 | ), | | |
| 11735 | sourceKinds: Schema.optionalKey( | | |
| 11736 | Schema.Union([ | | |
| 11737 | Schema.Array(ClientRequest__ThreadSourceKind).annotate({ | | |
| 11738 | description: | | |
| 11739 | "Optional source filter; when set, only sessions from these source kinds are returned. When omitted or empty, defaults to interactive sources.", | | |
| 11740 | }), | | |
| 11741 | Schema.Null, | | |
| 11742 | ]), | | |
| 11743 | ), | | |
| 11744 | useStateDbOnly: Schema.optionalKey( | | |
| 11745 | Schema.Boolean.annotate({ | | |
| 11746 | description: | | |
| 11747 | "If true, return from the state DB without scanning JSONL rollouts to repair thread metadata. Omitted or false preserves scan-and-repair behavior.", | | |
| 11748 | }), | | |
| 11749 | ), | | |
| 11750 | }); | | |
| 11751 | | | |
| 11752 | export type ClientRequest__ThreadStartParams = { | | |
| 11753 | readonly approvalPolicy?: ClientRequest__AskForApproval | null; | | |
| 11754 | readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null; | | |
| 11755 | readonly baseInstructions?: string | null; | | |
| 11756 | readonly config?: { readonly [x: string]: unknown } | null; | | |
| 11757 | readonly cwd?: string | null; | | |
| 11758 | readonly developerInstructions?: string | null; | | |
| 11759 | readonly ephemeral?: boolean | null; | | |
| 11760 | readonly model?: string | null; | | |
| 11761 | readonly modelProvider?: string | null; | | |
| 11762 | readonly personality?: ClientRequest__Personality | null; | | |
| 11763 | readonly sandbox?: ClientRequest__SandboxMode | null; | | |
| 11764 | readonly serviceName?: string | null; | | |
| 11765 | readonly serviceTier?: string | null; | | |
| 11766 | readonly sessionStartSource?: ClientRequest__ThreadStartSource | null; | | |
| 11767 | readonly threadSource?: ClientRequest__ThreadSource | null; | | |
| 11768 | }; | | |
| 11769 | export const ClientRequest__ThreadStartParams = Schema.Struct({ | | |
| 11770 | approvalPolicy: Schema.optionalKey(Schema.Union([ClientRequest__AskForApproval, Schema.Null])), | | |
| 11771 | approvalsReviewer: Schema.optionalKey( | | |
| 11772 | Schema.Union([ClientRequest__ApprovalsReviewer, Schema.Null]).annotate({ | | |
| 11773 | description: | | |
| 11774 | "Override where approval requests are routed for review on this thread and subsequent turns.", | | |
| 11775 | }), | | |
| 11776 | ), | | |
| 11777 | baseInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 11778 | config: Schema.optionalKey( | | |
| 11779 | Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]), | | |
| 11780 | ), | | |
| 11781 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 11782 | developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 11783 | ephemeral: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | | |
| 11784 | model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 11785 | modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 11786 | personality: Schema.optionalKey(Schema.Union([ClientRequest__Personality, Schema.Null])), | | |
| 11787 | sandbox: Schema.optionalKey(Schema.Union([ClientRequest__SandboxMode, Schema.Null])), | | |
| 11788 | serviceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 11789 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 11790 | sessionStartSource: Schema.optionalKey( | | |
| 11791 | Schema.Union([ClientRequest__ThreadStartSource, Schema.Null]), | | |
| 11792 | ), | | |
| 11793 | threadSource: Schema.optionalKey( | | |
| 11794 | Schema.Union([ClientRequest__ThreadSource, Schema.Null]).annotate({ | | |
| 11795 | description: "Optional client-supplied analytics source classification for this thread.", | | |
| 11796 | }), | | |
| 11797 | ), | | |
| 11798 | }); | | |
| 11799 | | | |
| 11800 | export type ClientRequest__WindowsSandboxSetupStartParams = { | | |
| 11801 | readonly cwd?: ClientRequest__AbsolutePathBuf | null; | | |
| 11802 | readonly mode: ClientRequest__WindowsSandboxSetupMode; | | |
| 11803 | }; | | |
| 11804 | export const ClientRequest__WindowsSandboxSetupStartParams = Schema.Struct({ | | |
| 11805 | cwd: Schema.optionalKey(Schema.Union([ClientRequest__AbsolutePathBuf, Schema.Null])), | | |
| 11806 | mode: ClientRequest__WindowsSandboxSetupMode, | | |
| 11807 | }); | | |
| 11808 | | | |
| 11809 | export type CommandExecutionRequestApprovalParams__CommandAction = | | |
| 11810 | | { | | |
| 11811 | readonly command: string; | | |
| 11812 | readonly name: string; | | |
| 11813 | readonly path: CommandExecutionRequestApprovalParams__AbsolutePathBuf; | | |
| 11814 | readonly type: "read"; | | |
| 11815 | } | | |
| 11816 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } | | |
| 11817 | | { | | |
| 11818 | readonly command: string; | | |
| 11819 | readonly path?: string | null; | | |
| 11820 | readonly query?: string | null; | | |
| 11821 | readonly type: "search"; | | |
| 11822 | } | | |
| 11823 | | { readonly command: string; readonly type: "unknown" }; | | |
| 11824 | export const CommandExecutionRequestApprovalParams__CommandAction = Schema.Union( | | |
| 11825 | [ | | |
| 11826 | Schema.Struct({ | | |
| 11827 | command: Schema.String, | | |
| 11828 | name: Schema.String, | | |
| 11829 | path: CommandExecutionRequestApprovalParams__AbsolutePathBuf, | | |
| 11830 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), | | |
| 11831 | }).annotate({ title: "ReadCommandAction" }), | | |
| 11832 | Schema.Struct({ | | |
| 11833 | command: Schema.String, | | |
| 11834 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 11835 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), | | |
| 11836 | }).annotate({ title: "ListFilesCommandAction" }), | | |
| 11837 | Schema.Struct({ | | |
| 11838 | command: Schema.String, | | |
| 11839 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 11840 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 11841 | type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }), | | |
| 11842 | }).annotate({ title: "SearchCommandAction" }), | | |
| 11843 | Schema.Struct({ | | |
| 11844 | command: Schema.String, | | |
| 11845 | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), | | |
| 11846 | }).annotate({ title: "UnknownCommandAction" }), | | |
| 11847 | ], | | |
| 11848 | { mode: "oneOf" }, | | |
| 11849 | ); | | |
| 11850 | | 14287 | |
| 11851 | export type CommandExecutionRequestApprovalParams__FileSystemSpecialPath = | 14288 | export type CommandExecutionRequestApprovalParams__FileSystemSpecialPath = |
| 11852 | | { readonly kind: "root" } | 14289 | | { readonly kind: "root" } |
| ... | @@ -11891,7 +14328,7 @@ export const CommandExecutionRequestApprovalParams__FileSystemSpecialPath = Sche | ... | @@ -11891,7 +14328,7 @@ export const CommandExecutionRequestApprovalParams__FileSystemSpecialPath = Sche |
| 11891 | }), | 14328 | }), |
| 11892 | ], | 14329 | ], |
| 11893 | { mode: "oneOf" }, | 14330 | { mode: "oneOf" }, |
| 11894 | ); | 14331 | ).annotate({ identifier: "CommandExecutionRequestApprovalParams__FileSystemSpecialPath" }); |
| 11895 | | 14332 | |
| 11896 | export type CommandExecutionRequestApprovalParams__NetworkApprovalContext = { | 14333 | export type CommandExecutionRequestApprovalParams__NetworkApprovalContext = { |
| 11897 | readonly host: string; | 14334 | readonly host: string; |
| ... | @@ -11900,7 +14337,7 @@ export type CommandExecutionRequestApprovalParams__NetworkApprovalContext = { | ... | @@ -11900,7 +14337,7 @@ export type CommandExecutionRequestApprovalParams__NetworkApprovalContext = { |
| 11900 | export const CommandExecutionRequestApprovalParams__NetworkApprovalContext = Schema.Struct({ | 14337 | export const CommandExecutionRequestApprovalParams__NetworkApprovalContext = Schema.Struct({ |
| 11901 | host: Schema.String, | 14338 | host: Schema.String, |
| 11902 | protocol: CommandExecutionRequestApprovalParams__NetworkApprovalProtocol, | 14339 | protocol: CommandExecutionRequestApprovalParams__NetworkApprovalProtocol, |
| 11903 | }); | 14340 | }).annotate({ identifier: "CommandExecutionRequestApprovalParams__NetworkApprovalContext" }); |
| 11904 | | 14341 | |
| 11905 | export type CommandExecutionRequestApprovalParams__NetworkPolicyAmendment = { | 14342 | export type CommandExecutionRequestApprovalParams__NetworkPolicyAmendment = { |
| 11906 | readonly action: CommandExecutionRequestApprovalParams__NetworkPolicyRuleAction; | 14343 | readonly action: CommandExecutionRequestApprovalParams__NetworkPolicyRuleAction; |
| ... | @@ -11909,7 +14346,7 @@ export type CommandExecutionRequestApprovalParams__NetworkPolicyAmendment = { | ... | @@ -11909,7 +14346,7 @@ export type CommandExecutionRequestApprovalParams__NetworkPolicyAmendment = { |
| 11909 | export const CommandExecutionRequestApprovalParams__NetworkPolicyAmendment = Schema.Struct({ | 14346 | export const CommandExecutionRequestApprovalParams__NetworkPolicyAmendment = Schema.Struct({ |
| 11910 | action: CommandExecutionRequestApprovalParams__NetworkPolicyRuleAction, | 14347 | action: CommandExecutionRequestApprovalParams__NetworkPolicyRuleAction, |
| 11911 | host: Schema.String, | 14348 | host: Schema.String, |
| 11912 | }); | 14349 | }).annotate({ identifier: "CommandExecutionRequestApprovalParams__NetworkPolicyAmendment" }); |
| 11913 | | 14350 | |
| 11914 | export type CommandExecutionRequestApprovalResponse__NetworkPolicyAmendment = { | 14351 | export type CommandExecutionRequestApprovalResponse__NetworkPolicyAmendment = { |
| 11915 | readonly action: CommandExecutionRequestApprovalResponse__NetworkPolicyRuleAction; | 14352 | readonly action: CommandExecutionRequestApprovalResponse__NetworkPolicyRuleAction; |
| ... | @@ -11918,7 +14355,7 @@ export type CommandExecutionRequestApprovalResponse__NetworkPolicyAmendment = { | ... | @@ -11918,7 +14355,7 @@ export type CommandExecutionRequestApprovalResponse__NetworkPolicyAmendment = { |
| 11918 | export const CommandExecutionRequestApprovalResponse__NetworkPolicyAmendment = Schema.Struct({ | 14355 | export const CommandExecutionRequestApprovalResponse__NetworkPolicyAmendment = Schema.Struct({ |
| 11919 | action: CommandExecutionRequestApprovalResponse__NetworkPolicyRuleAction, | 14356 | action: CommandExecutionRequestApprovalResponse__NetworkPolicyRuleAction, |
| 11920 | host: Schema.String, | 14357 | host: Schema.String, |
| 11921 | }); | 14358 | }).annotate({ identifier: "CommandExecutionRequestApprovalResponse__NetworkPolicyAmendment" }); |
| 11922 | | 14359 | |
| 11923 | export type ExecCommandApprovalResponse__NetworkPolicyAmendment = { | 14360 | export type ExecCommandApprovalResponse__NetworkPolicyAmendment = { |
| 11924 | readonly action: ExecCommandApprovalResponse__NetworkPolicyRuleAction; | 14361 | readonly action: ExecCommandApprovalResponse__NetworkPolicyRuleAction; |
| ... | @@ -11927,7 +14364,7 @@ export type ExecCommandApprovalResponse__NetworkPolicyAmendment = { | ... | @@ -11927,7 +14364,7 @@ export type ExecCommandApprovalResponse__NetworkPolicyAmendment = { |
| 11927 | export const ExecCommandApprovalResponse__NetworkPolicyAmendment = Schema.Struct({ | 14364 | export const ExecCommandApprovalResponse__NetworkPolicyAmendment = Schema.Struct({ |
| 11928 | action: ExecCommandApprovalResponse__NetworkPolicyRuleAction, | 14365 | action: ExecCommandApprovalResponse__NetworkPolicyRuleAction, |
| 11929 | host: Schema.String, | 14366 | host: Schema.String, |
| 11930 | }); | 14367 | }).annotate({ identifier: "ExecCommandApprovalResponse__NetworkPolicyAmendment" }); |
| 11931 | | 14368 | |
| 11932 | export type FuzzyFileSearchResponse__FuzzyFileSearchResult = { | 14369 | export type FuzzyFileSearchResponse__FuzzyFileSearchResult = { |
| 11933 | readonly file_name: string; | 14370 | readonly file_name: string; |
| ... | @@ -11943,8 +14380,12 @@ export const FuzzyFileSearchResponse__FuzzyFileSearchResult = Schema.Struct({ | ... | @@ -11943,8 +14380,12 @@ export const FuzzyFileSearchResponse__FuzzyFileSearchResult = Schema.Struct({ |
| 11943 | Schema.Union([ | 14380 | Schema.Union([ |
| 11944 | Schema.Array( | 14381 | Schema.Array( |
| 11945 | Schema.Number.annotate({ format: "uint32" }) | 14382 | Schema.Number.annotate({ format: "uint32" }) |
| 11946 | .check(Schema.isInt()) | 14383 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 11947 | .check(Schema.isGreaterThanOrEqualTo(0)), | 14384 | .check( |
| | 14385 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 14386 | expected: "a value greater than or equal to 0", |
| | 14387 | }), |
| | 14388 | ), |
| 11948 | ), | 14389 | ), |
| 11949 | Schema.Null, | 14390 | Schema.Null, |
| 11950 | ]), | 14391 | ]), |
| ... | @@ -11953,9 +14394,14 @@ export const FuzzyFileSearchResponse__FuzzyFileSearchResult = Schema.Struct({ | ... | @@ -11953,9 +14394,14 @@ export const FuzzyFileSearchResponse__FuzzyFileSearchResult = Schema.Struct({ |
| 11953 | path: Schema.String, | 14394 | path: Schema.String, |
| 11954 | root: Schema.String, | 14395 | root: Schema.String, |
| 11955 | score: Schema.Number.annotate({ format: "uint32" }) | 14396 | score: Schema.Number.annotate({ format: "uint32" }) |
| 11956 | .check(Schema.isInt()) | 14397 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 11957 | .check(Schema.isGreaterThanOrEqualTo(0)), | 14398 | .check( |
| 11958 | }).annotate({ description: "Superset of [`codex_file_search::FileMatch`]" }); | 14399 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 14400 | ), |
| | 14401 | }).annotate({ |
| | 14402 | description: "Superset of [`codex_file_search::FileMatch`]", |
| | 14403 | identifier: "FuzzyFileSearchResponse__FuzzyFileSearchResult", |
| | 14404 | }); |
| 11959 | | 14405 | |
| 11960 | export type FuzzyFileSearchSessionUpdatedNotification__FuzzyFileSearchResult = { | 14406 | export type FuzzyFileSearchSessionUpdatedNotification__FuzzyFileSearchResult = { |
| 11961 | readonly file_name: string; | 14407 | readonly file_name: string; |
| ... | @@ -11971,8 +14417,12 @@ export const FuzzyFileSearchSessionUpdatedNotification__FuzzyFileSearchResult = | ... | @@ -11971,8 +14417,12 @@ export const FuzzyFileSearchSessionUpdatedNotification__FuzzyFileSearchResult = |
| 11971 | Schema.Union([ | 14417 | Schema.Union([ |
| 11972 | Schema.Array( | 14418 | Schema.Array( |
| 11973 | Schema.Number.annotate({ format: "uint32" }) | 14419 | Schema.Number.annotate({ format: "uint32" }) |
| 11974 | .check(Schema.isInt()) | 14420 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 11975 | .check(Schema.isGreaterThanOrEqualTo(0)), | 14421 | .check( |
| | 14422 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 14423 | expected: "a value greater than or equal to 0", |
| | 14424 | }), |
| | 14425 | ), |
| 11976 | ), | 14426 | ), |
| 11977 | Schema.Null, | 14427 | Schema.Null, |
| 11978 | ]), | 14428 | ]), |
| ... | @@ -11981,96 +14431,85 @@ export const FuzzyFileSearchSessionUpdatedNotification__FuzzyFileSearchResult = | ... | @@ -11981,96 +14431,85 @@ export const FuzzyFileSearchSessionUpdatedNotification__FuzzyFileSearchResult = |
| 11981 | path: Schema.String, | 14431 | path: Schema.String, |
| 11982 | root: Schema.String, | 14432 | root: Schema.String, |
| 11983 | score: Schema.Number.annotate({ format: "uint32" }) | 14433 | score: Schema.Number.annotate({ format: "uint32" }) |
| 11984 | .check(Schema.isInt()) | 14434 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 11985 | .check(Schema.isGreaterThanOrEqualTo(0)), | 14435 | .check( |
| 11986 | }).annotate({ description: "Superset of [`codex_file_search::FileMatch`]" }); | 14436 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| 11987 | | 14437 | ), |
| 11988 | export type JSONRPCMessage__JSONRPCError = { | 14438 | }).annotate({ |
| 11989 | readonly error: JSONRPCMessage__JSONRPCErrorError; | 14439 | description: "Superset of [`codex_file_search::FileMatch`]", |
| 11990 | readonly id: JSONRPCMessage__RequestId; | 14440 | identifier: "FuzzyFileSearchSessionUpdatedNotification__FuzzyFileSearchResult", |
| 11991 | }; | 14441 | }); |
| 11992 | export const JSONRPCMessage__JSONRPCError = Schema.Struct({ | | |
| 11993 | error: JSONRPCMessage__JSONRPCErrorError, | | |
| 11994 | id: JSONRPCMessage__RequestId, | | |
| 11995 | }).annotate({ description: "A response to a request that indicates an error occurred." }); | | |
| 11996 | | 14442 | |
| 11997 | export type JSONRPCMessage__JSONRPCResponse = { | 14443 | export type JSONRPCMessage__JSONRPCResponse = { |
| 11998 | readonly id: JSONRPCMessage__RequestId; | 14444 | readonly id: JSONRPCMessage__RequestId; |
| 11999 | readonly result: unknown; | 14445 | readonly result: Schema.Json; |
| 12000 | }; | 14446 | }; |
| 12001 | export const JSONRPCMessage__JSONRPCResponse = Schema.Struct({ | 14447 | export const JSONRPCMessage__JSONRPCResponse = Schema.Struct({ |
| 12002 | id: JSONRPCMessage__RequestId, | 14448 | id: JSONRPCMessage__RequestId, |
| 12003 | result: Schema.Unknown, | 14449 | result: Schema.Json.annotate({ expected: "JSON value" }), |
| 12004 | }).annotate({ description: "A successful (non-error) response to a request." }); | 14450 | }).annotate({ |
| | 14451 | description: "A successful (non-error) response to a request.", |
| | 14452 | identifier: "JSONRPCMessage__JSONRPCResponse", |
| | 14453 | }); |
| 12005 | | 14454 | |
| 12006 | export type JSONRPCMessage__JSONRPCRequest = { | 14455 | export type JSONRPCMessage__JSONRPCRequest = { |
| 12007 | readonly id: JSONRPCMessage__RequestId; | 14456 | readonly id: JSONRPCMessage__RequestId; |
| 12008 | readonly method: string; | 14457 | readonly method: string; |
| 12009 | readonly params?: unknown; | 14458 | readonly params?: Schema.Json; |
| 12010 | readonly trace?: JSONRPCMessage__W3cTraceContext | null; | 14459 | readonly trace?: JSONRPCMessage__W3cTraceContext | null; |
| 12011 | }; | 14460 | }; |
| 12012 | export const JSONRPCMessage__JSONRPCRequest = Schema.Struct({ | 14461 | export const JSONRPCMessage__JSONRPCRequest = Schema.Struct({ |
| 12013 | id: JSONRPCMessage__RequestId, | 14462 | id: JSONRPCMessage__RequestId, |
| 12014 | method: Schema.String, | 14463 | method: Schema.String, |
| 12015 | params: Schema.optionalKey(Schema.Unknown), | 14464 | params: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 12016 | trace: Schema.optionalKey( | 14465 | trace: Schema.optionalKey( |
| 12017 | Schema.Union([JSONRPCMessage__W3cTraceContext, Schema.Null]).annotate({ | 14466 | Schema.Union([JSONRPCMessage__W3cTraceContext, Schema.Null]).annotate({ |
| 12018 | description: "Optional W3C Trace Context for distributed tracing.", | 14467 | description: "Optional W3C Trace Context for distributed tracing.", |
| 12019 | }), | 14468 | }), |
| 12020 | ), | 14469 | ), |
| 12021 | }).annotate({ description: "A request that expects a response." }); | 14470 | }).annotate({ |
| 12022 | | 14471 | description: "A request that expects a response.", |
| 12023 | export type McpServerElicitationRequestParams__McpElicitationBooleanSchema = { | 14472 | identifier: "JSONRPCMessage__JSONRPCRequest", |
| 12024 | readonly default?: boolean | null; | | |
| 12025 | readonly description?: string | null; | | |
| 12026 | readonly title?: string | null; | | |
| 12027 | readonly type: McpServerElicitationRequestParams__McpElicitationBooleanType; | | |
| 12028 | }; | | |
| 12029 | export const McpServerElicitationRequestParams__McpElicitationBooleanSchema = Schema.Struct({ | | |
| 12030 | default: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | | |
| 12031 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 12032 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 12033 | type: McpServerElicitationRequestParams__McpElicitationBooleanType, | | |
| 12034 | }); | 14473 | }); |
| 12035 | | 14474 | |
| 12036 | export type McpServerElicitationRequestParams__McpElicitationTitledEnumItems = { | 14475 | export type JSONRPCMessage__JSONRPCError = { |
| 12037 | readonly anyOf: ReadonlyArray<McpServerElicitationRequestParams__McpElicitationConstOption>; | 14476 | readonly error: JSONRPCMessage__JSONRPCErrorError; |
| | 14477 | readonly id: JSONRPCMessage__RequestId; |
| 12038 | }; | 14478 | }; |
| 12039 | export const McpServerElicitationRequestParams__McpElicitationTitledEnumItems = Schema.Struct({ | 14479 | export const JSONRPCMessage__JSONRPCError = Schema.Struct({ |
| 12040 | anyOf: Schema.Array(McpServerElicitationRequestParams__McpElicitationConstOption), | 14480 | error: JSONRPCMessage__JSONRPCErrorError, |
| | 14481 | id: JSONRPCMessage__RequestId, |
| | 14482 | }).annotate({ |
| | 14483 | description: "A response to a request that indicates an error occurred.", |
| | 14484 | identifier: "JSONRPCMessage__JSONRPCError", |
| 12041 | }); | 14485 | }); |
| 12042 | | 14486 | |
| 12043 | export type McpServerElicitationRequestParams__McpElicitationNumberSchema = { | 14487 | export type McpServerElicitationRequestParams__McpElicitationUntitledSingleSelectEnumSchema = { |
| 12044 | readonly default?: number | null; | 14488 | readonly default?: string | null; |
| 12045 | readonly description?: string | null; | 14489 | readonly description?: string | null; |
| 12046 | readonly maximum?: number | null; | 14490 | readonly enum: ReadonlyArray<string>; |
| 12047 | readonly minimum?: number | null; | | |
| 12048 | readonly title?: string | null; | 14491 | readonly title?: string | null; |
| 12049 | readonly type: McpServerElicitationRequestParams__McpElicitationNumberType; | 14492 | readonly type: McpServerElicitationRequestParams__McpElicitationStringType; |
| 12050 | }; | 14493 | }; |
| 12051 | export const McpServerElicitationRequestParams__McpElicitationNumberSchema = Schema.Struct({ | 14494 | export const McpServerElicitationRequestParams__McpElicitationUntitledSingleSelectEnumSchema = |
| 12052 | default: Schema.optionalKey( | 14495 | Schema.Struct({ |
| 12053 | Schema.Union([ | 14496 | default: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12054 | Schema.Number.annotate({ format: "double" }).check(Schema.isFinite()), | 14497 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12055 | Schema.Null, | 14498 | enum: Schema.Array(Schema.String), |
| 12056 | ]), | 14499 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12057 | ), | 14500 | type: McpServerElicitationRequestParams__McpElicitationStringType, |
| 12058 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 14501 | }).annotate({ |
| 12059 | maximum: Schema.optionalKey( | 14502 | identifier: "McpServerElicitationRequestParams__McpElicitationUntitledSingleSelectEnumSchema", |
| 12060 | Schema.Union([ | 14503 | }); |
| 12061 | Schema.Number.annotate({ format: "double" }).check(Schema.isFinite()), | 14504 | |
| 12062 | Schema.Null, | 14505 | export type McpServerElicitationRequestParams__McpElicitationUntitledEnumItems = { |
| 12063 | ]), | 14506 | readonly enum: ReadonlyArray<string>; |
| 12064 | ), | 14507 | readonly type: McpServerElicitationRequestParams__McpElicitationStringType; |
| 12065 | minimum: Schema.optionalKey( | 14508 | }; |
| 12066 | Schema.Union([ | 14509 | export const McpServerElicitationRequestParams__McpElicitationUntitledEnumItems = Schema.Struct({ |
| 12067 | Schema.Number.annotate({ format: "double" }).check(Schema.isFinite()), | 14510 | enum: Schema.Array(Schema.String), |
| 12068 | Schema.Null, | 14511 | type: McpServerElicitationRequestParams__McpElicitationStringType, |
| 12069 | ]), | 14512 | }).annotate({ identifier: "McpServerElicitationRequestParams__McpElicitationUntitledEnumItems" }); |
| 12070 | ), | | |
| 12071 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 12072 | type: McpServerElicitationRequestParams__McpElicitationNumberType, | | |
| 12073 | }); | | |
| 12074 | | 14513 | |
| 12075 | export type McpServerElicitationRequestParams__McpElicitationLegacyTitledEnumSchema = { | 14514 | export type McpServerElicitationRequestParams__McpElicitationLegacyTitledEnumSchema = { |
| 12076 | readonly default?: string | null; | 14515 | readonly default?: string | null; |
| ... | @@ -12088,8 +14527,35 @@ export const McpServerElicitationRequestParams__McpElicitationLegacyTitledEnumSc | ... | @@ -12088,8 +14527,35 @@ export const McpServerElicitationRequestParams__McpElicitationLegacyTitledEnumSc |
| 12088 | enumNames: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | 14527 | enumNames: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| 12089 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 14528 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12090 | type: McpServerElicitationRequestParams__McpElicitationStringType, | 14529 | type: McpServerElicitationRequestParams__McpElicitationStringType, |
| | 14530 | }).annotate({ |
| | 14531 | identifier: "McpServerElicitationRequestParams__McpElicitationLegacyTitledEnumSchema", |
| | 14532 | }); |
| | 14533 | |
| | 14534 | export type McpServerElicitationRequestParams__McpElicitationTitledSingleSelectEnumSchema = { |
| | 14535 | readonly default?: string | null; |
| | 14536 | readonly description?: string | null; |
| | 14537 | readonly oneOf: ReadonlyArray<McpServerElicitationRequestParams__McpElicitationConstOption>; |
| | 14538 | readonly title?: string | null; |
| | 14539 | readonly type: McpServerElicitationRequestParams__McpElicitationStringType; |
| | 14540 | }; |
| | 14541 | export const McpServerElicitationRequestParams__McpElicitationTitledSingleSelectEnumSchema = |
| | 14542 | Schema.Struct({ |
| | 14543 | default: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 14544 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 14545 | oneOf: Schema.Array(McpServerElicitationRequestParams__McpElicitationConstOption), |
| | 14546 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 14547 | type: McpServerElicitationRequestParams__McpElicitationStringType, |
| | 14548 | }).annotate({ |
| | 14549 | identifier: "McpServerElicitationRequestParams__McpElicitationTitledSingleSelectEnumSchema", |
| 12091 | }); | 14550 | }); |
| 12092 | | 14551 | |
| | 14552 | export type McpServerElicitationRequestParams__McpElicitationTitledEnumItems = { |
| | 14553 | readonly anyOf: ReadonlyArray<McpServerElicitationRequestParams__McpElicitationConstOption>; |
| | 14554 | }; |
| | 14555 | export const McpServerElicitationRequestParams__McpElicitationTitledEnumItems = Schema.Struct({ |
| | 14556 | anyOf: Schema.Array(McpServerElicitationRequestParams__McpElicitationConstOption), |
| | 14557 | }).annotate({ identifier: "McpServerElicitationRequestParams__McpElicitationTitledEnumItems" }); |
| | 14558 | |
| 12093 | export type McpServerElicitationRequestParams__McpElicitationStringSchema = { | 14559 | export type McpServerElicitationRequestParams__McpElicitationStringSchema = { |
| 12094 | readonly default?: string | null; | 14560 | readonly default?: string | null; |
| 12095 | readonly description?: string | null; | 14561 | readonly description?: string | null; |
| ... | @@ -12108,63 +14574,81 @@ export const McpServerElicitationRequestParams__McpElicitationStringSchema = Sch | ... | @@ -12108,63 +14574,81 @@ export const McpServerElicitationRequestParams__McpElicitationStringSchema = Sch |
| 12108 | maxLength: Schema.optionalKey( | 14574 | maxLength: Schema.optionalKey( |
| 12109 | Schema.Union([ | 14575 | Schema.Union([ |
| 12110 | Schema.Number.annotate({ format: "uint32" }) | 14576 | Schema.Number.annotate({ format: "uint32" }) |
| 12111 | .check(Schema.isInt()) | 14577 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 12112 | .check(Schema.isGreaterThanOrEqualTo(0)), | 14578 | .check( |
| | 14579 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 14580 | expected: "a value greater than or equal to 0", |
| | 14581 | }), |
| | 14582 | ), |
| 12113 | Schema.Null, | 14583 | Schema.Null, |
| 12114 | ]), | 14584 | ]), |
| 12115 | ), | 14585 | ), |
| 12116 | minLength: Schema.optionalKey( | 14586 | minLength: Schema.optionalKey( |
| 12117 | Schema.Union([ | 14587 | Schema.Union([ |
| 12118 | Schema.Number.annotate({ format: "uint32" }) | 14588 | Schema.Number.annotate({ format: "uint32" }) |
| 12119 | .check(Schema.isInt()) | 14589 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 12120 | .check(Schema.isGreaterThanOrEqualTo(0)), | 14590 | .check( |
| | 14591 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 14592 | expected: "a value greater than or equal to 0", |
| | 14593 | }), |
| | 14594 | ), |
| 12121 | Schema.Null, | 14595 | Schema.Null, |
| 12122 | ]), | 14596 | ]), |
| 12123 | ), | 14597 | ), |
| 12124 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 14598 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12125 | type: McpServerElicitationRequestParams__McpElicitationStringType, | 14599 | type: McpServerElicitationRequestParams__McpElicitationStringType, |
| 12126 | }); | 14600 | }).annotate({ identifier: "McpServerElicitationRequestParams__McpElicitationStringSchema" }); |
| 12127 | | 14601 | |
| 12128 | export type McpServerElicitationRequestParams__McpElicitationTitledSingleSelectEnumSchema = { | 14602 | export type McpServerElicitationRequestParams__McpElicitationNumberSchema = { |
| 12129 | readonly default?: string | null; | 14603 | readonly default?: number | null; |
| 12130 | readonly description?: string | null; | 14604 | readonly description?: string | null; |
| 12131 | readonly oneOf: ReadonlyArray<McpServerElicitationRequestParams__McpElicitationConstOption>; | 14605 | readonly maximum?: number | null; |
| | 14606 | readonly minimum?: number | null; |
| 12132 | readonly title?: string | null; | 14607 | readonly title?: string | null; |
| 12133 | readonly type: McpServerElicitationRequestParams__McpElicitationStringType; | 14608 | readonly type: McpServerElicitationRequestParams__McpElicitationNumberType; |
| 12134 | }; | | |
| 12135 | export const McpServerElicitationRequestParams__McpElicitationTitledSingleSelectEnumSchema = | | |
| 12136 | Schema.Struct({ | | |
| 12137 | default: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 12138 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 12139 | oneOf: Schema.Array(McpServerElicitationRequestParams__McpElicitationConstOption), | | |
| 12140 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 12141 | type: McpServerElicitationRequestParams__McpElicitationStringType, | | |
| 12142 | }); | | |
| 12143 | | | |
| 12144 | export type McpServerElicitationRequestParams__McpElicitationUntitledEnumItems = { | | |
| 12145 | readonly enum: ReadonlyArray<string>; | | |
| 12146 | readonly type: McpServerElicitationRequestParams__McpElicitationStringType; | | |
| 12147 | }; | 14609 | }; |
| 12148 | export const McpServerElicitationRequestParams__McpElicitationUntitledEnumItems = Schema.Struct({ | 14610 | export const McpServerElicitationRequestParams__McpElicitationNumberSchema = Schema.Struct({ |
| 12149 | enum: Schema.Array(Schema.String), | 14611 | default: Schema.optionalKey( |
| 12150 | type: McpServerElicitationRequestParams__McpElicitationStringType, | 14612 | Schema.Union([ |
| 12151 | }); | 14613 | Schema.Number.annotate({ format: "double" }).check( |
| | 14614 | Schema.isFinite().annotate({ expected: "a finite number" }), |
| | 14615 | ), |
| | 14616 | Schema.Null, |
| | 14617 | ]), |
| | 14618 | ), |
| | 14619 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 14620 | maximum: Schema.optionalKey( |
| | 14621 | Schema.Union([ |
| | 14622 | Schema.Number.annotate({ format: "double" }).check( |
| | 14623 | Schema.isFinite().annotate({ expected: "a finite number" }), |
| | 14624 | ), |
| | 14625 | Schema.Null, |
| | 14626 | ]), |
| | 14627 | ), |
| | 14628 | minimum: Schema.optionalKey( |
| | 14629 | Schema.Union([ |
| | 14630 | Schema.Number.annotate({ format: "double" }).check( |
| | 14631 | Schema.isFinite().annotate({ expected: "a finite number" }), |
| | 14632 | ), |
| | 14633 | Schema.Null, |
| | 14634 | ]), |
| | 14635 | ), |
| | 14636 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 14637 | type: McpServerElicitationRequestParams__McpElicitationNumberType, |
| | 14638 | }).annotate({ identifier: "McpServerElicitationRequestParams__McpElicitationNumberSchema" }); |
| 12152 | | 14639 | |
| 12153 | export type McpServerElicitationRequestParams__McpElicitationUntitledSingleSelectEnumSchema = { | 14640 | export type McpServerElicitationRequestParams__McpElicitationBooleanSchema = { |
| 12154 | readonly default?: string | null; | 14641 | readonly default?: boolean | null; |
| 12155 | readonly description?: string | null; | 14642 | readonly description?: string | null; |
| 12156 | readonly enum: ReadonlyArray<string>; | | |
| 12157 | readonly title?: string | null; | 14643 | readonly title?: string | null; |
| 12158 | readonly type: McpServerElicitationRequestParams__McpElicitationStringType; | 14644 | readonly type: McpServerElicitationRequestParams__McpElicitationBooleanType; |
| 12159 | }; | 14645 | }; |
| 12160 | export const McpServerElicitationRequestParams__McpElicitationUntitledSingleSelectEnumSchema = | 14646 | export const McpServerElicitationRequestParams__McpElicitationBooleanSchema = Schema.Struct({ |
| 12161 | Schema.Struct({ | 14647 | default: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 12162 | default: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 14648 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12163 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 14649 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12164 | enum: Schema.Array(Schema.String), | 14650 | type: McpServerElicitationRequestParams__McpElicitationBooleanType, |
| 12165 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 14651 | }).annotate({ identifier: "McpServerElicitationRequestParams__McpElicitationBooleanSchema" }); |
| 12166 | type: McpServerElicitationRequestParams__McpElicitationStringType, | | |
| 12167 | }); | | |
| 12168 | | 14652 | |
| 12169 | export type PermissionsRequestApprovalParams__FileSystemSpecialPath = | 14653 | export type PermissionsRequestApprovalParams__FileSystemSpecialPath = |
| 12170 | | { readonly kind: "root" } | 14654 | | { readonly kind: "root" } |
| ... | @@ -12209,7 +14693,7 @@ export const PermissionsRequestApprovalParams__FileSystemSpecialPath = Schema.Un | ... | @@ -12209,7 +14693,7 @@ export const PermissionsRequestApprovalParams__FileSystemSpecialPath = Schema.Un |
| 12209 | }), | 14693 | }), |
| 12210 | ], | 14694 | ], |
| 12211 | { mode: "oneOf" }, | 14695 | { mode: "oneOf" }, |
| 12212 | ); | 14696 | ).annotate({ identifier: "PermissionsRequestApprovalParams__FileSystemSpecialPath" }); |
| 12213 | | 14697 | |
| 12214 | export type PermissionsRequestApprovalResponse__FileSystemSpecialPath = | 14698 | export type PermissionsRequestApprovalResponse__FileSystemSpecialPath = |
| 12215 | | { readonly kind: "root" } | 14699 | | { readonly kind: "root" } |
| ... | @@ -12254,7 +14738,132 @@ export const PermissionsRequestApprovalResponse__FileSystemSpecialPath = Schema. | ... | @@ -12254,7 +14738,132 @@ export const PermissionsRequestApprovalResponse__FileSystemSpecialPath = Schema. |
| 12254 | }), | 14738 | }), |
| 12255 | ], | 14739 | ], |
| 12256 | { mode: "oneOf" }, | 14740 | { mode: "oneOf" }, |
| 12257 | ); | 14741 | ).annotate({ identifier: "PermissionsRequestApprovalResponse__FileSystemSpecialPath" }); |
| | 14742 | |
| | 14743 | export type ServerNotification__CodexErrorInfo = |
| | 14744 | | "contextWindowExceeded" |
| | 14745 | | "sessionBudgetExceeded" |
| | 14746 | | "usageLimitExceeded" |
| | 14747 | | "serverOverloaded" |
| | 14748 | | "cyberPolicy" |
| | 14749 | | "internalServerError" |
| | 14750 | | "unauthorized" |
| | 14751 | | "badRequest" |
| | 14752 | | "threadRollbackFailed" |
| | 14753 | | "sandboxError" |
| | 14754 | | "other" |
| | 14755 | | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } } |
| | 14756 | | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } } |
| | 14757 | | { readonly responseStreamDisconnected: { readonly httpStatusCode?: number | null } } |
| | 14758 | | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } } |
| | 14759 | | { |
| | 14760 | readonly activeTurnNotSteerable: { |
| | 14761 | readonly turnKind: ServerNotification__NonSteerableTurnKind; |
| | 14762 | }; |
| | 14763 | }; |
| | 14764 | export const ServerNotification__CodexErrorInfo = Schema.Union( |
| | 14765 | [ |
| | 14766 | Schema.Literals([ |
| | 14767 | "contextWindowExceeded", |
| | 14768 | "sessionBudgetExceeded", |
| | 14769 | "usageLimitExceeded", |
| | 14770 | "serverOverloaded", |
| | 14771 | "cyberPolicy", |
| | 14772 | "internalServerError", |
| | 14773 | "unauthorized", |
| | 14774 | "badRequest", |
| | 14775 | "threadRollbackFailed", |
| | 14776 | "sandboxError", |
| | 14777 | "other", |
| | 14778 | ]), |
| | 14779 | Schema.Struct({ |
| | 14780 | httpConnectionFailed: Schema.Struct({ |
| | 14781 | httpStatusCode: Schema.optionalKey( |
| | 14782 | Schema.Union([ |
| | 14783 | Schema.Number.annotate({ format: "uint16" }) |
| | 14784 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 14785 | .check( |
| | 14786 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 14787 | expected: "a value greater than or equal to 0", |
| | 14788 | }), |
| | 14789 | ), |
| | 14790 | Schema.Null, |
| | 14791 | ]), |
| | 14792 | ), |
| | 14793 | }), |
| | 14794 | }).annotate({ title: "HttpConnectionFailedCodexErrorInfo" }), |
| | 14795 | Schema.Struct({ |
| | 14796 | responseStreamConnectionFailed: Schema.Struct({ |
| | 14797 | httpStatusCode: Schema.optionalKey( |
| | 14798 | Schema.Union([ |
| | 14799 | Schema.Number.annotate({ format: "uint16" }) |
| | 14800 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 14801 | .check( |
| | 14802 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 14803 | expected: "a value greater than or equal to 0", |
| | 14804 | }), |
| | 14805 | ), |
| | 14806 | Schema.Null, |
| | 14807 | ]), |
| | 14808 | ), |
| | 14809 | }), |
| | 14810 | }).annotate({ |
| | 14811 | title: "ResponseStreamConnectionFailedCodexErrorInfo", |
| | 14812 | description: "Failed to connect to the response SSE stream.", |
| | 14813 | }), |
| | 14814 | Schema.Struct({ |
| | 14815 | responseStreamDisconnected: Schema.Struct({ |
| | 14816 | httpStatusCode: Schema.optionalKey( |
| | 14817 | Schema.Union([ |
| | 14818 | Schema.Number.annotate({ format: "uint16" }) |
| | 14819 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 14820 | .check( |
| | 14821 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 14822 | expected: "a value greater than or equal to 0", |
| | 14823 | }), |
| | 14824 | ), |
| | 14825 | Schema.Null, |
| | 14826 | ]), |
| | 14827 | ), |
| | 14828 | }), |
| | 14829 | }).annotate({ |
| | 14830 | title: "ResponseStreamDisconnectedCodexErrorInfo", |
| | 14831 | description: |
| | 14832 | "The response SSE stream disconnected in the middle of a turn before completion.", |
| | 14833 | }), |
| | 14834 | Schema.Struct({ |
| | 14835 | responseTooManyFailedAttempts: Schema.Struct({ |
| | 14836 | httpStatusCode: Schema.optionalKey( |
| | 14837 | Schema.Union([ |
| | 14838 | Schema.Number.annotate({ format: "uint16" }) |
| | 14839 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 14840 | .check( |
| | 14841 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 14842 | expected: "a value greater than or equal to 0", |
| | 14843 | }), |
| | 14844 | ), |
| | 14845 | Schema.Null, |
| | 14846 | ]), |
| | 14847 | ), |
| | 14848 | }), |
| | 14849 | }).annotate({ |
| | 14850 | title: "ResponseTooManyFailedAttemptsCodexErrorInfo", |
| | 14851 | description: "Reached the retry limit for responses.", |
| | 14852 | }), |
| | 14853 | Schema.Struct({ |
| | 14854 | activeTurnNotSteerable: Schema.Struct({ turnKind: ServerNotification__NonSteerableTurnKind }), |
| | 14855 | }).annotate({ |
| | 14856 | title: "ActiveTurnNotSteerableCodexErrorInfo", |
| | 14857 | description: |
| | 14858 | "Returned when `turn/start` or `turn/steer` is submitted while the current active turn cannot accept same-turn steering, for example `/review` or manual `/compact`.", |
| | 14859 | }), |
| | 14860 | ], |
| | 14861 | { mode: "oneOf" }, |
| | 14862 | ).annotate({ |
| | 14863 | description: |
| | 14864 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", |
| | 14865 | identifier: "ServerNotification__CodexErrorInfo", |
| | 14866 | }); |
| 12258 | | 14867 | |
| 12259 | export type ServerNotification__CommandAction = | 14868 | export type ServerNotification__CommandAction = |
| 12260 | | { | 14869 | | { |
| ... | @@ -12296,7 +14905,7 @@ export const ServerNotification__CommandAction = Schema.Union( | ... | @@ -12296,7 +14905,7 @@ export const ServerNotification__CommandAction = Schema.Union( |
| 12296 | }).annotate({ title: "UnknownCommandAction" }), | 14905 | }).annotate({ title: "UnknownCommandAction" }), |
| 12297 | ], | 14906 | ], |
| 12298 | { mode: "oneOf" }, | 14907 | { mode: "oneOf" }, |
| 12299 | ); | 14908 | ).annotate({ identifier: "ServerNotification__CommandAction" }); |
| 12300 | | 14909 | |
| 12301 | export type ServerNotification__FsChangedNotification = { | 14910 | export type ServerNotification__FsChangedNotification = { |
| 12302 | readonly changedPaths: ReadonlyArray<ServerNotification__AbsolutePathBuf>; | 14911 | readonly changedPaths: ReadonlyArray<ServerNotification__AbsolutePathBuf>; |
| ... | @@ -12309,177 +14918,97 @@ export const ServerNotification__FsChangedNotification = Schema.Struct({ | ... | @@ -12309,177 +14918,97 @@ export const ServerNotification__FsChangedNotification = Schema.Struct({ |
| 12309 | watchId: Schema.String.annotate({ | 14918 | watchId: Schema.String.annotate({ |
| 12310 | description: "Watch identifier previously provided to `fs/watch`.", | 14919 | description: "Watch identifier previously provided to `fs/watch`.", |
| 12311 | }), | 14920 | }), |
| 12312 | }).annotate({ description: "Filesystem watch notification emitted for `fs/watch` subscribers." }); | 14921 | }).annotate({ |
| | 14922 | description: "Filesystem watch notification emitted for `fs/watch` subscribers.", |
| | 14923 | identifier: "ServerNotification__FsChangedNotification", |
| | 14924 | }); |
| 12313 | | 14925 | |
| 12314 | export type ServerNotification__SandboxPolicy = | 14926 | export type ServerNotification__SubAgentSource = |
| 12315 | | { readonly type: "dangerFullAccess" } | 14927 | | "review" |
| 12316 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } | 14928 | | "compact" |
| 12317 | | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" } | 14929 | | "memory_consolidation" |
| 12318 | | { | 14930 | | { |
| 12319 | readonly excludeSlashTmp?: boolean; | 14931 | readonly thread_spawn: { |
| 12320 | readonly excludeTmpdirEnvVar?: boolean; | 14932 | readonly agent_nickname?: string | null; |
| 12321 | readonly networkAccess?: boolean; | 14933 | readonly agent_path?: ServerNotification__AgentPath | null; |
| 12322 | readonly type: "workspaceWrite"; | 14934 | readonly agent_role?: string | null; |
| 12323 | readonly writableRoots?: ReadonlyArray<ServerNotification__AbsolutePathBuf>; | 14935 | readonly depth: number; |
| 12324 | }; | 14936 | readonly parent_thread_id: ServerNotification__ThreadId; |
| 12325 | export const ServerNotification__SandboxPolicy = Schema.Union( | 14937 | }; |
| | 14938 | } |
| | 14939 | | { readonly other: string }; |
| | 14940 | export const ServerNotification__SubAgentSource = Schema.Union( |
| 12326 | [ | 14941 | [ |
| | 14942 | Schema.Literals(["review", "compact", "memory_consolidation"]), |
| 12327 | Schema.Struct({ | 14943 | Schema.Struct({ |
| 12328 | type: Schema.Literal("dangerFullAccess").annotate({ | 14944 | thread_spawn: Schema.Struct({ |
| 12329 | title: "DangerFullAccessSandboxPolicyType", | 14945 | agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 14946 | agent_path: Schema.optionalKey(Schema.Union([ServerNotification__AgentPath, Schema.Null])), |
| | 14947 | agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 14948 | depth: Schema.Number.annotate({ format: "int32" }).check( |
| | 14949 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 14950 | ), |
| | 14951 | parent_thread_id: ServerNotification__ThreadId, |
| 12330 | }), | 14952 | }), |
| 12331 | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), | 14953 | }).annotate({ title: "ThreadSpawnSubAgentSource" }), |
| | 14954 | Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }), |
| | 14955 | ], |
| | 14956 | { mode: "oneOf" }, |
| | 14957 | ).annotate({ identifier: "ServerNotification__SubAgentSource" }); |
| | 14958 | |
| | 14959 | export type ServerNotification__ThreadStatus = |
| | 14960 | | { readonly type: "notLoaded" } |
| | 14961 | | { readonly type: "idle" } |
| | 14962 | | { readonly type: "systemError" } |
| | 14963 | | { |
| | 14964 | readonly activeFlags: ReadonlyArray<ServerNotification__ThreadActiveFlag>; |
| | 14965 | readonly type: "active"; |
| | 14966 | }; |
| | 14967 | export const ServerNotification__ThreadStatus = Schema.Union( |
| | 14968 | [ |
| 12332 | Schema.Struct({ | 14969 | Schema.Struct({ |
| 12333 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | 14970 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), |
| 12334 | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), | 14971 | }).annotate({ title: "NotLoadedThreadStatus" }), |
| 12335 | }).annotate({ title: "ReadOnlySandboxPolicy" }), | | |
| 12336 | Schema.Struct({ | 14972 | Schema.Struct({ |
| 12337 | networkAccess: Schema.optionalKey( | 14973 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), |
| 12338 | Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }), | 14974 | }).annotate({ title: "IdleThreadStatus" }), |
| 12339 | ), | | |
| 12340 | type: Schema.Literal("externalSandbox").annotate({ | | |
| 12341 | title: "ExternalSandboxSandboxPolicyType", | | |
| 12342 | }), | | |
| 12343 | }).annotate({ title: "ExternalSandboxSandboxPolicy" }), | | |
| 12344 | Schema.Struct({ | 14975 | Schema.Struct({ |
| 12345 | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | 14976 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), |
| 12346 | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | 14977 | }).annotate({ title: "SystemErrorThreadStatus" }), |
| 12347 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | 14978 | Schema.Struct({ |
| 12348 | type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }), | 14979 | activeFlags: Schema.Array(ServerNotification__ThreadActiveFlag), |
| 12349 | writableRoots: Schema.optionalKey( | 14980 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), |
| 12350 | Schema.Array(ServerNotification__AbsolutePathBuf).annotate({ default: [] }), | 14981 | }).annotate({ title: "ActiveThreadStatus" }), |
| 12351 | ), | | |
| 12352 | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), | | |
| 12353 | ], | 14982 | ], |
| 12354 | { mode: "oneOf" }, | 14983 | { mode: "oneOf" }, |
| 12355 | ); | 14984 | ).annotate({ identifier: "ServerNotification__ThreadStatus" }); |
| 12356 | | | |
| 12357 | export type ServerNotification__AppMetadata = { | | |
| 12358 | readonly categories?: ReadonlyArray<string> | null; | | |
| 12359 | readonly developer?: string | null; | | |
| 12360 | readonly firstPartyRequiresInstall?: boolean | null; | | |
| 12361 | readonly firstPartyType?: string | null; | | |
| 12362 | readonly review?: ServerNotification__AppReview | null; | | |
| 12363 | readonly screenshots?: ReadonlyArray<ServerNotification__AppScreenshot> | null; | | |
| 12364 | readonly seoDescription?: string | null; | | |
| 12365 | readonly showInComposerWhenUnlinked?: boolean | null; | | |
| 12366 | readonly subCategories?: ReadonlyArray<string> | null; | | |
| 12367 | readonly version?: string | null; | | |
| 12368 | readonly versionId?: string | null; | | |
| 12369 | readonly versionNotes?: string | null; | | |
| 12370 | }; | | |
| 12371 | export const ServerNotification__AppMetadata = Schema.Struct({ | | |
| 12372 | categories: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 12373 | developer: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 12374 | firstPartyRequiresInstall: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | | |
| 12375 | firstPartyType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 12376 | review: Schema.optionalKey(Schema.Union([ServerNotification__AppReview, Schema.Null])), | | |
| 12377 | screenshots: Schema.optionalKey( | | |
| 12378 | Schema.Union([Schema.Array(ServerNotification__AppScreenshot), Schema.Null]), | | |
| 12379 | ), | | |
| 12380 | seoDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 12381 | showInComposerWhenUnlinked: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | | |
| 12382 | subCategories: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 12383 | version: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 12384 | versionId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 12385 | versionNotes: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 12386 | }); | | |
| 12387 | | | |
| 12388 | export type ServerNotification__CollabAgentState = { | | |
| 12389 | readonly message?: string | null; | | |
| 12390 | readonly status: ServerNotification__CollabAgentStatus; | | |
| 12391 | }; | | |
| 12392 | export const ServerNotification__CollabAgentState = Schema.Struct({ | | |
| 12393 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 12394 | status: ServerNotification__CollabAgentStatus, | | |
| 12395 | }); | | |
| 12396 | | | |
| 12397 | export type ServerNotification__ExternalAgentConfigImportItemTypeFailure = { | | |
| 12398 | readonly cwd?: string | null; | | |
| 12399 | readonly errorType?: string | null; | | |
| 12400 | readonly failureStage: string; | | |
| 12401 | readonly itemType: ServerNotification__ExternalAgentConfigMigrationItemType; | | |
| 12402 | readonly message: string; | | |
| 12403 | readonly source?: string | null; | | |
| 12404 | readonly subErrorType?: string | null; | | |
| 12405 | }; | | |
| 12406 | export const ServerNotification__ExternalAgentConfigImportItemTypeFailure = Schema.Struct({ | | |
| 12407 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 12408 | errorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 12409 | failureStage: Schema.String, | | |
| 12410 | itemType: ServerNotification__ExternalAgentConfigMigrationItemType, | | |
| 12411 | message: Schema.String, | | |
| 12412 | source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 12413 | subErrorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 12414 | }); | | |
| 12415 | | | |
| 12416 | export type ServerNotification__ExternalAgentConfigImportItemTypeSuccess = { | | |
| 12417 | readonly cwd?: string | null; | | |
| 12418 | readonly itemType: ServerNotification__ExternalAgentConfigMigrationItemType; | | |
| 12419 | readonly source?: string | null; | | |
| 12420 | readonly target?: string | null; | | |
| 12421 | }; | | |
| 12422 | export const ServerNotification__ExternalAgentConfigImportItemTypeSuccess = Schema.Struct({ | | |
| 12423 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 12424 | itemType: ServerNotification__ExternalAgentConfigMigrationItemType, | | |
| 12425 | source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 12426 | target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 12427 | }); | | |
| 12428 | | 14985 | |
| 12429 | export type ServerNotification__FuzzyFileSearchResult = { | 14986 | export type ServerNotification__TextElement = { |
| 12430 | readonly file_name: string; | 14987 | readonly byteRange: ServerNotification__ByteRange; |
| 12431 | readonly indices?: ReadonlyArray<number> | null; | 14988 | readonly placeholder?: string | null; |
| 12432 | readonly match_type: ServerNotification__FuzzyFileSearchMatchType; | | |
| 12433 | readonly path: string; | | |
| 12434 | readonly root: string; | | |
| 12435 | readonly score: number; | | |
| 12436 | }; | 14989 | }; |
| 12437 | export const ServerNotification__FuzzyFileSearchResult = Schema.Struct({ | 14990 | export const ServerNotification__TextElement = Schema.Struct({ |
| 12438 | file_name: Schema.String, | 14991 | byteRange: Schema.suspend( |
| 12439 | indices: Schema.optionalKey( | 14992 | (): Schema.Codec<ServerNotification__ByteRange> => ServerNotification__ByteRange, |
| | 14993 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), |
| | 14994 | placeholder: Schema.optionalKey( |
| 12440 | Schema.Union([ | 14995 | Schema.Union([ |
| 12441 | Schema.Array( | 14996 | Schema.String.annotate({ |
| 12442 | Schema.Number.annotate({ format: "uint32" }) | 14997 | description: "Optional human-readable placeholder for the element, displayed in the UI.", |
| 12443 | .check(Schema.isInt()) | 14998 | }), |
| 12444 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 12445 | ), | | |
| 12446 | Schema.Null, | 14999 | Schema.Null, |
| 12447 | ]), | 15000 | ]), |
| 12448 | ), | 15001 | ), |
| 12449 | match_type: ServerNotification__FuzzyFileSearchMatchType, | 15002 | }).annotate({ identifier: "ServerNotification__TextElement" }); |
| 12450 | path: Schema.String, | | |
| 12451 | root: Schema.String, | | |
| 12452 | score: Schema.Number.annotate({ format: "uint32" }) | | |
| 12453 | .check(Schema.isInt()) | | |
| 12454 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 12455 | }).annotate({ description: "Superset of [`codex_file_search::FileMatch`]" }); | | |
| 12456 | | | |
| 12457 | export type ServerNotification__GuardianApprovalReview = { | | |
| 12458 | readonly rationale?: string | null; | | |
| 12459 | readonly riskLevel?: ServerNotification__GuardianRiskLevel | null; | | |
| 12460 | readonly status: ServerNotification__GuardianApprovalReviewStatus; | | |
| 12461 | readonly userAuthorization?: ServerNotification__GuardianUserAuthorization | null; | | |
| 12462 | }; | | |
| 12463 | export const ServerNotification__GuardianApprovalReview = Schema.Struct({ | | |
| 12464 | rationale: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 12465 | riskLevel: Schema.optionalKey(Schema.Union([ServerNotification__GuardianRiskLevel, Schema.Null])), | | |
| 12466 | status: ServerNotification__GuardianApprovalReviewStatus, | | |
| 12467 | userAuthorization: Schema.optionalKey( | | |
| 12468 | Schema.Union([ServerNotification__GuardianUserAuthorization, Schema.Null]), | | |
| 12469 | ), | | |
| 12470 | }).annotate({ | | |
| 12471 | description: | | |
| 12472 | "[UNSTABLE] Temporary approval auto-review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.", | | |
| 12473 | }); | | |
| 12474 | | 15003 | |
| 12475 | export type ServerNotification__HookOutputEntry = { | 15004 | export type ServerNotification__MemoryCitation = { |
| 12476 | readonly kind: ServerNotification__HookOutputEntryKind; | 15005 | readonly entries: ReadonlyArray<ServerNotification__MemoryCitationEntry>; |
| 12477 | readonly text: string; | 15006 | readonly threadIds: ReadonlyArray<string>; |
| 12478 | }; | 15007 | }; |
| 12479 | export const ServerNotification__HookOutputEntry = Schema.Struct({ | 15008 | export const ServerNotification__MemoryCitation = Schema.Struct({ |
| 12480 | kind: ServerNotification__HookOutputEntryKind, | 15009 | entries: Schema.Array(ServerNotification__MemoryCitationEntry), |
| 12481 | text: Schema.String, | 15010 | threadIds: Schema.Array(Schema.String), |
| 12482 | }); | 15011 | }).annotate({ identifier: "ServerNotification__MemoryCitation" }); |
| 12483 | | 15012 | |
| 12484 | export type ServerNotification__FileSystemSpecialPath = | 15013 | export type ServerNotification__FileSystemSpecialPath = |
| 12485 | | { readonly kind: "root" } | 15014 | | { readonly kind: "root" } |
| ... | @@ -12524,225 +15053,228 @@ export const ServerNotification__FileSystemSpecialPath = Schema.Union( | ... | @@ -12524,225 +15053,228 @@ export const ServerNotification__FileSystemSpecialPath = Schema.Union( |
| 12524 | }), | 15053 | }), |
| 12525 | ], | 15054 | ], |
| 12526 | { mode: "oneOf" }, | 15055 | { mode: "oneOf" }, |
| 12527 | ); | 15056 | ).annotate({ identifier: "ServerNotification__FileSystemSpecialPath" }); |
| 12528 | | 15057 | |
| 12529 | export type ServerNotification__McpServerStatusUpdatedNotification = { | 15058 | export type ServerNotification__FileUpdateChange = { |
| 12530 | readonly error?: string | null; | 15059 | readonly diff: string; |
| 12531 | readonly failureReason?: ServerNotification__McpServerStartupFailureReason | null; | 15060 | readonly kind: ServerNotification__PatchChangeKind; |
| 12532 | readonly name: string; | 15061 | readonly path: string; |
| 12533 | readonly status: ServerNotification__McpServerStartupState; | | |
| 12534 | readonly threadId?: string | null; | | |
| 12535 | }; | 15062 | }; |
| 12536 | export const ServerNotification__McpServerStatusUpdatedNotification = Schema.Struct({ | 15063 | export const ServerNotification__FileUpdateChange = Schema.Struct({ |
| 12537 | error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 15064 | diff: Schema.String, |
| 12538 | failureReason: Schema.optionalKey( | 15065 | kind: ServerNotification__PatchChangeKind, |
| 12539 | Schema.Union([ServerNotification__McpServerStartupFailureReason, Schema.Null]), | 15066 | path: Schema.String, |
| 12540 | ), | 15067 | }).annotate({ identifier: "ServerNotification__FileUpdateChange" }); |
| 12541 | name: Schema.String, | | |
| 12542 | status: ServerNotification__McpServerStartupState, | | |
| 12543 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 12544 | }); | | |
| 12545 | | 15068 | |
| 12546 | export type ServerNotification__MemoryCitation = { | 15069 | export type ServerNotification__CollabAgentState = { |
| 12547 | readonly entries: ReadonlyArray<ServerNotification__MemoryCitationEntry>; | 15070 | readonly message?: string | null; |
| 12548 | readonly threadIds: ReadonlyArray<string>; | 15071 | readonly status: ServerNotification__CollabAgentStatus; |
| 12549 | }; | 15072 | }; |
| 12550 | export const ServerNotification__MemoryCitation = Schema.Struct({ | 15073 | export const ServerNotification__CollabAgentState = Schema.Struct({ |
| 12551 | entries: Schema.Array(ServerNotification__MemoryCitationEntry), | 15074 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12552 | threadIds: Schema.Array(Schema.String), | 15075 | status: ServerNotification__CollabAgentStatus, |
| 12553 | }); | 15076 | }).annotate({ identifier: "ServerNotification__CollabAgentState" }); |
| 12554 | | 15077 | |
| 12555 | export type ServerNotification__ModelReroutedNotification = { | 15078 | export type ServerNotification__Settings = { |
| 12556 | readonly fromModel: string; | 15079 | readonly developer_instructions?: string | null; |
| 12557 | readonly reason: ServerNotification__ModelRerouteReason; | 15080 | readonly model: string; |
| 12558 | readonly threadId: string; | 15081 | readonly reasoning_effort?: ServerNotification__ReasoningEffort | null; |
| 12559 | readonly toModel: string; | | |
| 12560 | readonly turnId: string; | | |
| 12561 | }; | 15082 | }; |
| 12562 | export const ServerNotification__ModelReroutedNotification = Schema.Struct({ | 15083 | export const ServerNotification__Settings = Schema.Struct({ |
| 12563 | fromModel: Schema.String, | 15084 | developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12564 | reason: ServerNotification__ModelRerouteReason, | 15085 | model: Schema.String, |
| 12565 | threadId: Schema.String, | 15086 | reasoning_effort: Schema.optionalKey( |
| 12566 | toModel: Schema.String, | 15087 | Schema.Union([ServerNotification__ReasoningEffort, Schema.Null]), |
| 12567 | turnId: Schema.String, | 15088 | ), |
| | 15089 | }).annotate({ |
| | 15090 | description: "Settings for a collaboration mode.", |
| | 15091 | identifier: "ServerNotification__Settings", |
| 12568 | }); | 15092 | }); |
| 12569 | | 15093 | |
| 12570 | export type ServerNotification__ModelVerificationNotification = { | 15094 | export type ServerNotification__ThreadGoal = { |
| | 15095 | readonly createdAt: number; |
| | 15096 | readonly objective: string; |
| | 15097 | readonly status: ServerNotification__ThreadGoalStatus; |
| 12571 | readonly threadId: string; | 15098 | readonly threadId: string; |
| 12572 | readonly turnId: string; | 15099 | readonly timeUsedSeconds: number; |
| 12573 | readonly verifications: ReadonlyArray<ServerNotification__ModelVerification>; | 15100 | readonly tokenBudget?: number | null; |
| | 15101 | readonly tokensUsed: number; |
| | 15102 | readonly updatedAt: number; |
| 12574 | }; | 15103 | }; |
| 12575 | export const ServerNotification__ModelVerificationNotification = Schema.Struct({ | 15104 | export const ServerNotification__ThreadGoal = Schema.Struct({ |
| | 15105 | createdAt: Schema.Number.annotate({ format: "int64" }).check( |
| | 15106 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 15107 | ), |
| | 15108 | objective: Schema.String, |
| | 15109 | status: ServerNotification__ThreadGoalStatus, |
| 12576 | threadId: Schema.String, | 15110 | threadId: Schema.String, |
| 12577 | turnId: Schema.String, | 15111 | timeUsedSeconds: Schema.Number.annotate({ format: "int64" }).check( |
| 12578 | verifications: Schema.Array(ServerNotification__ModelVerification), | 15112 | Schema.isInt().annotate({ expected: "an integer" }), |
| 12579 | }); | 15113 | ), |
| 12580 | | 15114 | tokenBudget: Schema.optionalKey( |
| 12581 | export type ServerNotification__CodexErrorInfo = | 15115 | Schema.Union([ |
| 12582 | | "contextWindowExceeded" | 15116 | Schema.Number.annotate({ format: "int64" }).check( |
| 12583 | | "sessionBudgetExceeded" | 15117 | Schema.isInt().annotate({ expected: "an integer" }), |
| 12584 | | "usageLimitExceeded" | 15118 | ), |
| 12585 | | "serverOverloaded" | 15119 | Schema.Null, |
| 12586 | | "cyberPolicy" | 15120 | ]), |
| 12587 | | "internalServerError" | 15121 | ), |
| 12588 | | "unauthorized" | 15122 | tokensUsed: Schema.Number.annotate({ format: "int64" }).check( |
| 12589 | | "badRequest" | 15123 | Schema.isInt().annotate({ expected: "an integer" }), |
| 12590 | | "threadRollbackFailed" | 15124 | ), |
| 12591 | | "sandboxError" | 15125 | updatedAt: Schema.Number.annotate({ format: "int64" }).check( |
| 12592 | | "other" | 15126 | Schema.isInt().annotate({ expected: "an integer" }), |
| 12593 | | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } } | 15127 | ), |
| 12594 | | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } } | 15128 | }).annotate({ identifier: "ServerNotification__ThreadGoal" }); |
| 12595 | | { readonly responseStreamDisconnected: { readonly httpStatusCode?: number | null } } | 15129 | |
| 12596 | | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } } | 15130 | export type ServerNotification__SandboxPolicy = |
| | 15131 | | { readonly type: "dangerFullAccess" } |
| | 15132 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } |
| | 15133 | | { readonly networkAccess?: ServerNotification__NetworkAccess; readonly type: "externalSandbox" } |
| 12597 | | { | 15134 | | { |
| 12598 | readonly activeTurnNotSteerable: { | 15135 | readonly excludeSlashTmp?: boolean; |
| 12599 | readonly turnKind: ServerNotification__NonSteerableTurnKind; | 15136 | readonly excludeTmpdirEnvVar?: boolean; |
| 12600 | }; | 15137 | readonly networkAccess?: boolean; |
| | 15138 | readonly type: "workspaceWrite"; |
| | 15139 | readonly writableRoots?: ReadonlyArray<ServerNotification__AbsolutePathBuf>; |
| 12601 | }; | 15140 | }; |
| 12602 | export const ServerNotification__CodexErrorInfo = Schema.Union( | 15141 | export const ServerNotification__SandboxPolicy = Schema.Union( |
| 12603 | [ | 15142 | [ |
| 12604 | Schema.Literals([ | | |
| 12605 | "contextWindowExceeded", | | |
| 12606 | "sessionBudgetExceeded", | | |
| 12607 | "usageLimitExceeded", | | |
| 12608 | "serverOverloaded", | | |
| 12609 | "cyberPolicy", | | |
| 12610 | "internalServerError", | | |
| 12611 | "unauthorized", | | |
| 12612 | "badRequest", | | |
| 12613 | "threadRollbackFailed", | | |
| 12614 | "sandboxError", | | |
| 12615 | "other", | | |
| 12616 | ]), | | |
| 12617 | Schema.Struct({ | | |
| 12618 | httpConnectionFailed: Schema.Struct({ | | |
| 12619 | httpStatusCode: Schema.optionalKey( | | |
| 12620 | Schema.Union([ | | |
| 12621 | Schema.Number.annotate({ format: "uint16" }) | | |
| 12622 | .check(Schema.isInt()) | | |
| 12623 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 12624 | Schema.Null, | | |
| 12625 | ]), | | |
| 12626 | ), | | |
| 12627 | }), | | |
| 12628 | }).annotate({ title: "HttpConnectionFailedCodexErrorInfo" }), | | |
| 12629 | Schema.Struct({ | 15143 | Schema.Struct({ |
| 12630 | responseStreamConnectionFailed: Schema.Struct({ | 15144 | type: Schema.Literal("dangerFullAccess").annotate({ |
| 12631 | httpStatusCode: Schema.optionalKey( | 15145 | title: "DangerFullAccessSandboxPolicyType", |
| 12632 | Schema.Union([ | | |
| 12633 | Schema.Number.annotate({ format: "uint16" }) | | |
| 12634 | .check(Schema.isInt()) | | |
| 12635 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 12636 | Schema.Null, | | |
| 12637 | ]), | | |
| 12638 | ), | | |
| 12639 | }), | 15146 | }), |
| 12640 | }).annotate({ | 15147 | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), |
| 12641 | title: "ResponseStreamConnectionFailedCodexErrorInfo", | | |
| 12642 | description: "Failed to connect to the response SSE stream.", | | |
| 12643 | }), | | |
| 12644 | Schema.Struct({ | 15148 | Schema.Struct({ |
| 12645 | responseStreamDisconnected: Schema.Struct({ | 15149 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 12646 | httpStatusCode: Schema.optionalKey( | 15150 | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), |
| 12647 | Schema.Union([ | 15151 | }).annotate({ title: "ReadOnlySandboxPolicy" }), |
| 12648 | Schema.Number.annotate({ format: "uint16" }) | | |
| 12649 | .check(Schema.isInt()) | | |
| 12650 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 12651 | Schema.Null, | | |
| 12652 | ]), | | |
| 12653 | ), | | |
| 12654 | }), | | |
| 12655 | }).annotate({ | | |
| 12656 | title: "ResponseStreamDisconnectedCodexErrorInfo", | | |
| 12657 | description: | | |
| 12658 | "The response SSE stream disconnected in the middle of a turn before completion.", | | |
| 12659 | }), | | |
| 12660 | Schema.Struct({ | 15152 | Schema.Struct({ |
| 12661 | responseTooManyFailedAttempts: Schema.Struct({ | 15153 | networkAccess: Schema.optionalKey( |
| 12662 | httpStatusCode: Schema.optionalKey( | 15154 | Schema.suspend( |
| 12663 | Schema.Union([ | 15155 | (): Schema.Codec<ServerNotification__NetworkAccess> => ServerNotification__NetworkAccess, |
| 12664 | Schema.Number.annotate({ format: "uint16" }) | 15156 | ).annotate({ default: "restricted" }), |
| 12665 | .check(Schema.isInt()) | 15157 | ), |
| 12666 | .check(Schema.isGreaterThanOrEqualTo(0)), | 15158 | type: Schema.Literal("externalSandbox").annotate({ |
| 12667 | Schema.Null, | 15159 | title: "ExternalSandboxSandboxPolicyType", |
| 12668 | ]), | | |
| 12669 | ), | | |
| 12670 | }), | 15160 | }), |
| 12671 | }).annotate({ | 15161 | }).annotate({ title: "ExternalSandboxSandboxPolicy" }), |
| 12672 | title: "ResponseTooManyFailedAttemptsCodexErrorInfo", | | |
| 12673 | description: "Reached the retry limit for responses.", | | |
| 12674 | }), | | |
| 12675 | Schema.Struct({ | 15162 | Schema.Struct({ |
| 12676 | activeTurnNotSteerable: Schema.Struct({ turnKind: ServerNotification__NonSteerableTurnKind }), | 15163 | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 12677 | }).annotate({ | 15164 | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 12678 | title: "ActiveTurnNotSteerableCodexErrorInfo", | 15165 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 12679 | description: | 15166 | type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }), |
| 12680 | "Returned when `turn/start` or `turn/steer` is submitted while the current active turn cannot accept same-turn steering, for example `/review` or manual `/compact`.", | 15167 | writableRoots: Schema.optionalKey( |
| 12681 | }), | 15168 | Schema.Array(ServerNotification__AbsolutePathBuf).annotate({ default: [] }), |
| | 15169 | ), |
| | 15170 | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), |
| 12682 | ], | 15171 | ], |
| 12683 | { mode: "oneOf" }, | 15172 | { mode: "oneOf" }, |
| 12684 | ).annotate({ | 15173 | ).annotate({ identifier: "ServerNotification__SandboxPolicy" }); |
| 12685 | description: | | |
| 12686 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", | | |
| 12687 | }); | | |
| 12688 | | 15174 | |
| 12689 | export type ServerNotification__FileUpdateChange = { | 15175 | export type ServerNotification__ThreadTokenUsage = { |
| 12690 | readonly diff: string; | 15176 | readonly last: ServerNotification__TokenUsageBreakdown; |
| 12691 | readonly kind: ServerNotification__PatchChangeKind; | 15177 | readonly modelContextWindow?: number | null; |
| 12692 | readonly path: string; | 15178 | readonly total: ServerNotification__TokenUsageBreakdown; |
| 12693 | }; | 15179 | }; |
| 12694 | export const ServerNotification__FileUpdateChange = Schema.Struct({ | 15180 | export const ServerNotification__ThreadTokenUsage = Schema.Struct({ |
| 12695 | diff: Schema.String, | 15181 | last: ServerNotification__TokenUsageBreakdown, |
| 12696 | kind: ServerNotification__PatchChangeKind, | 15182 | modelContextWindow: Schema.optionalKey( |
| 12697 | path: Schema.String, | 15183 | Schema.Union([ |
| 12698 | }); | 15184 | Schema.Number.annotate({ format: "int64" }).check( |
| | 15185 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 15186 | ), |
| | 15187 | Schema.Null, |
| | 15188 | ]), |
| | 15189 | ), |
| | 15190 | total: ServerNotification__TokenUsageBreakdown, |
| | 15191 | }).annotate({ identifier: "ServerNotification__ThreadTokenUsage" }); |
| 12699 | | 15192 | |
| 12700 | export type ServerNotification__AccountUpdatedNotification = { | 15193 | export type ServerNotification__HookOutputEntry = { |
| 12701 | readonly authMode?: ServerNotification__AuthMode | null; | 15194 | readonly kind: ServerNotification__HookOutputEntryKind; |
| 12702 | readonly planType?: ServerNotification__PlanType | null; | 15195 | readonly text: string; |
| 12703 | }; | 15196 | }; |
| 12704 | export const ServerNotification__AccountUpdatedNotification = Schema.Struct({ | 15197 | export const ServerNotification__HookOutputEntry = Schema.Struct({ |
| 12705 | authMode: Schema.optionalKey(Schema.Union([ServerNotification__AuthMode, Schema.Null])), | 15198 | kind: ServerNotification__HookOutputEntryKind, |
| 12706 | planType: Schema.optionalKey(Schema.Union([ServerNotification__PlanType, Schema.Null])), | 15199 | text: Schema.String, |
| 12707 | }); | 15200 | }).annotate({ identifier: "ServerNotification__HookOutputEntry" }); |
| 12708 | | 15201 | |
| 12709 | export type ServerNotification__ThreadRealtimeStartedNotification = { | 15202 | export type ServerNotification__TurnPlanStep = { |
| 12710 | readonly realtimeSessionId?: string | null; | 15203 | readonly status: ServerNotification__TurnPlanStepStatus; |
| 12711 | readonly threadId: string; | 15204 | readonly step: string; |
| 12712 | readonly version: ServerNotification__RealtimeConversationVersion; | | |
| 12713 | }; | 15205 | }; |
| 12714 | export const ServerNotification__ThreadRealtimeStartedNotification = Schema.Struct({ | 15206 | export const ServerNotification__TurnPlanStep = Schema.Struct({ |
| 12715 | realtimeSessionId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 15207 | status: ServerNotification__TurnPlanStepStatus, |
| 12716 | threadId: Schema.String, | 15208 | step: Schema.String, |
| 12717 | version: ServerNotification__RealtimeConversationVersion, | 15209 | }).annotate({ identifier: "ServerNotification__TurnPlanStep" }); |
| 12718 | }).annotate({ description: "EXPERIMENTAL - emitted when thread realtime startup is accepted." }); | | |
| 12719 | | 15210 | |
| 12720 | export type ServerNotification__Settings = { | 15211 | export type ServerNotification__GuardianApprovalReview = { |
| 12721 | readonly developer_instructions?: string | null; | 15212 | readonly rationale?: string | null; |
| 12722 | readonly model: string; | 15213 | readonly riskLevel?: ServerNotification__GuardianRiskLevel | null; |
| 12723 | readonly reasoning_effort?: ServerNotification__ReasoningEffort | null; | 15214 | readonly status: ServerNotification__GuardianApprovalReviewStatus; |
| | 15215 | readonly userAuthorization?: ServerNotification__GuardianUserAuthorization | null; |
| 12724 | }; | 15216 | }; |
| 12725 | export const ServerNotification__Settings = Schema.Struct({ | 15217 | export const ServerNotification__GuardianApprovalReview = Schema.Struct({ |
| 12726 | developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 15218 | rationale: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12727 | model: Schema.String, | 15219 | riskLevel: Schema.optionalKey(Schema.Union([ServerNotification__GuardianRiskLevel, Schema.Null])), |
| 12728 | reasoning_effort: Schema.optionalKey( | 15220 | status: ServerNotification__GuardianApprovalReviewStatus, |
| 12729 | Schema.Union([ServerNotification__ReasoningEffort, Schema.Null]), | 15221 | userAuthorization: Schema.optionalKey( |
| | 15222 | Schema.Union([ServerNotification__GuardianUserAuthorization, Schema.Null]), |
| 12730 | ), | 15223 | ), |
| 12731 | }).annotate({ description: "Settings for a collaboration mode." }); | 15224 | }).annotate({ |
| | 15225 | description: |
| | 15226 | "[UNSTABLE] Temporary approval auto-review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.", |
| | 15227 | identifier: "ServerNotification__GuardianApprovalReview", |
| | 15228 | }); |
| 12732 | | 15229 | |
| 12733 | export type ServerNotification__RemoteControlStatusChangedNotification = { | 15230 | export type ServerNotification__CommandExecOutputDeltaNotification = { |
| 12734 | readonly environmentId?: string | null; | 15231 | readonly capReached: boolean; |
| 12735 | readonly installationId: string; | 15232 | readonly deltaBase64: string; |
| 12736 | readonly serverName: string; | 15233 | readonly processId: string; |
| 12737 | readonly status: ServerNotification__RemoteControlConnectionStatus; | 15234 | readonly stream: ServerNotification__CommandExecOutputStream; |
| 12738 | }; | 15235 | }; |
| 12739 | export const ServerNotification__RemoteControlStatusChangedNotification = Schema.Struct({ | 15236 | export const ServerNotification__CommandExecOutputDeltaNotification = Schema.Struct({ |
| 12740 | environmentId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 15237 | capReached: Schema.Boolean.annotate({ |
| 12741 | installationId: Schema.String, | 15238 | description: |
| 12742 | serverName: Schema.String, | 15239 | "`true` on the final streamed chunk for a stream when `outputBytesCap` truncated later output on that stream.", |
| 12743 | status: ServerNotification__RemoteControlConnectionStatus, | 15240 | }), |
| | 15241 | deltaBase64: Schema.String.annotate({ description: "Base64-encoded output bytes." }), |
| | 15242 | processId: Schema.String.annotate({ |
| | 15243 | description: |
| | 15244 | "Client-supplied, connection-scoped `processId` from the original `command/exec` request.", |
| | 15245 | }), |
| | 15246 | stream: Schema.suspend( |
| | 15247 | (): Schema.Codec<ServerNotification__CommandExecOutputStream> => |
| | 15248 | ServerNotification__CommandExecOutputStream, |
| | 15249 | ).annotate({ description: "Output stream for this chunk." }), |
| 12744 | }).annotate({ | 15250 | }).annotate({ |
| 12745 | description: "Current remote-control connection status and remote identity exposed to clients.", | 15251 | description: |
| | 15252 | "Base64-encoded output chunk emitted for a streaming `command/exec` request.\n\nThese notifications are connection-scoped. If the originating connection closes, the server terminates the process.", |
| | 15253 | identifier: "ServerNotification__CommandExecOutputDeltaNotification", |
| | 15254 | }); |
| | 15255 | |
| | 15256 | export type ServerNotification__ProcessOutputDeltaNotification = { |
| | 15257 | readonly capReached: boolean; |
| | 15258 | readonly deltaBase64: string; |
| | 15259 | readonly processHandle: string; |
| | 15260 | readonly stream: ServerNotification__ProcessOutputStream; |
| | 15261 | }; |
| | 15262 | export const ServerNotification__ProcessOutputDeltaNotification = Schema.Struct({ |
| | 15263 | capReached: Schema.Boolean.annotate({ |
| | 15264 | description: |
| | 15265 | "True on the final streamed chunk for this stream when output was truncated by `outputBytesCap`.", |
| | 15266 | }), |
| | 15267 | deltaBase64: Schema.String.annotate({ description: "Base64-encoded output bytes." }), |
| | 15268 | processHandle: Schema.String.annotate({ |
| | 15269 | description: "Client-supplied, connection-scoped `processHandle` from `process/spawn`.", |
| | 15270 | }), |
| | 15271 | stream: Schema.suspend( |
| | 15272 | (): Schema.Codec<ServerNotification__ProcessOutputStream> => |
| | 15273 | ServerNotification__ProcessOutputStream, |
| | 15274 | ).annotate({ description: "Output stream this chunk belongs to." }), |
| | 15275 | }).annotate({ |
| | 15276 | description: "Base64-encoded output chunk emitted for a streaming `process/spawn` request.", |
| | 15277 | identifier: "ServerNotification__ProcessOutputDeltaNotification", |
| 12746 | }); | 15278 | }); |
| 12747 | | 15279 | |
| 12748 | export type ServerNotification__ServerRequestResolvedNotification = { | 15280 | export type ServerNotification__ServerRequestResolvedNotification = { |
| ... | @@ -12752,7 +15284,33 @@ export type ServerNotification__ServerRequestResolvedNotification = { | ... | @@ -12752,7 +15284,33 @@ export type ServerNotification__ServerRequestResolvedNotification = { |
| 12752 | export const ServerNotification__ServerRequestResolvedNotification = Schema.Struct({ | 15284 | export const ServerNotification__ServerRequestResolvedNotification = Schema.Struct({ |
| 12753 | requestId: ServerNotification__RequestId, | 15285 | requestId: ServerNotification__RequestId, |
| 12754 | threadId: Schema.String, | 15286 | threadId: Schema.String, |
| 12755 | }); | 15287 | }).annotate({ identifier: "ServerNotification__ServerRequestResolvedNotification" }); |
| | 15288 | |
| | 15289 | export type ServerNotification__McpServerStatusUpdatedNotification = { |
| | 15290 | readonly error?: string | null; |
| | 15291 | readonly failureReason?: ServerNotification__McpServerStartupFailureReason | null; |
| | 15292 | readonly name: string; |
| | 15293 | readonly status: ServerNotification__McpServerStartupState; |
| | 15294 | readonly threadId?: string | null; |
| | 15295 | }; |
| | 15296 | export const ServerNotification__McpServerStatusUpdatedNotification = Schema.Struct({ |
| | 15297 | error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 15298 | failureReason: Schema.optionalKey( |
| | 15299 | Schema.Union([ServerNotification__McpServerStartupFailureReason, Schema.Null]), |
| | 15300 | ), |
| | 15301 | name: Schema.String, |
| | 15302 | status: ServerNotification__McpServerStartupState, |
| | 15303 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 15304 | }).annotate({ identifier: "ServerNotification__McpServerStatusUpdatedNotification" }); |
| | 15305 | |
| | 15306 | export type ServerNotification__AccountUpdatedNotification = { |
| | 15307 | readonly authMode?: ServerNotification__AuthMode | null; |
| | 15308 | readonly planType?: ServerNotification__PlanType | null; |
| | 15309 | }; |
| | 15310 | export const ServerNotification__AccountUpdatedNotification = Schema.Struct({ |
| | 15311 | authMode: Schema.optionalKey(Schema.Union([ServerNotification__AuthMode, Schema.Null])), |
| | 15312 | planType: Schema.optionalKey(Schema.Union([ServerNotification__PlanType, Schema.Null])), |
| | 15313 | }).annotate({ identifier: "ServerNotification__AccountUpdatedNotification" }); |
| 12756 | | 15314 | |
| 12757 | export type ServerNotification__RateLimitSnapshot = { | 15315 | export type ServerNotification__RateLimitSnapshot = { |
| 12758 | readonly credits?: ServerNotification__CreditsSnapshot | null; | 15316 | readonly credits?: ServerNotification__CreditsSnapshot | null; |
| ... | @@ -12787,71 +15345,112 @@ export const ServerNotification__RateLimitSnapshot = Schema.Struct({ | ... | @@ -12787,71 +15345,112 @@ export const ServerNotification__RateLimitSnapshot = Schema.Struct({ |
| 12787 | Schema.Null, | 15345 | Schema.Null, |
| 12788 | ]), | 15346 | ]), |
| 12789 | ), | 15347 | ), |
| | 15348 | }).annotate({ identifier: "ServerNotification__RateLimitSnapshot" }); |
| | 15349 | |
| | 15350 | export type ServerNotification__AppMetadata = { |
| | 15351 | readonly categories?: ReadonlyArray<string> | null; |
| | 15352 | readonly developer?: string | null; |
| | 15353 | readonly firstPartyRequiresInstall?: boolean | null; |
| | 15354 | readonly firstPartyType?: string | null; |
| | 15355 | readonly review?: ServerNotification__AppReview | null; |
| | 15356 | readonly screenshots?: ReadonlyArray<ServerNotification__AppScreenshot> | null; |
| | 15357 | readonly seoDescription?: string | null; |
| | 15358 | readonly showInComposerWhenUnlinked?: boolean | null; |
| | 15359 | readonly subCategories?: ReadonlyArray<string> | null; |
| | 15360 | readonly version?: string | null; |
| | 15361 | readonly versionId?: string | null; |
| | 15362 | readonly versionNotes?: string | null; |
| | 15363 | }; |
| | 15364 | export const ServerNotification__AppMetadata = Schema.Struct({ |
| | 15365 | categories: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 15366 | developer: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 15367 | firstPartyRequiresInstall: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 15368 | firstPartyType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 15369 | review: Schema.optionalKey(Schema.Union([ServerNotification__AppReview, Schema.Null])), |
| | 15370 | screenshots: Schema.optionalKey( |
| | 15371 | Schema.Union([Schema.Array(ServerNotification__AppScreenshot), Schema.Null]), |
| | 15372 | ), |
| | 15373 | seoDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 15374 | showInComposerWhenUnlinked: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 15375 | subCategories: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 15376 | version: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 15377 | versionId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 15378 | versionNotes: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 15379 | }).annotate({ identifier: "ServerNotification__AppMetadata" }); |
| | 15380 | |
| | 15381 | export type ServerNotification__RemoteControlStatusChangedNotification = { |
| | 15382 | readonly environmentId?: string | null; |
| | 15383 | readonly installationId: string; |
| | 15384 | readonly serverName: string; |
| | 15385 | readonly status: ServerNotification__RemoteControlConnectionStatus; |
| | 15386 | }; |
| | 15387 | export const ServerNotification__RemoteControlStatusChangedNotification = Schema.Struct({ |
| | 15388 | environmentId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 15389 | installationId: Schema.String, |
| | 15390 | serverName: Schema.String, |
| | 15391 | status: ServerNotification__RemoteControlConnectionStatus, |
| | 15392 | }).annotate({ |
| | 15393 | description: "Current remote-control connection status and remote identity exposed to clients.", |
| | 15394 | identifier: "ServerNotification__RemoteControlStatusChangedNotification", |
| 12790 | }); | 15395 | }); |
| 12791 | | 15396 | |
| 12792 | export type ServerNotification__UserInput = | 15397 | export type ServerNotification__ExternalAgentConfigImportItemTypeFailure = { |
| 12793 | | { | 15398 | readonly cwd?: string | null; |
| 12794 | readonly text: string; | 15399 | readonly errorType?: string | null; |
| 12795 | readonly text_elements?: ReadonlyArray<ServerNotification__TextElement>; | 15400 | readonly failureStage: string; |
| 12796 | readonly type: "text"; | 15401 | readonly itemType: ServerNotification__ExternalAgentConfigMigrationItemType; |
| 12797 | } | 15402 | readonly message: string; |
| 12798 | | { | 15403 | readonly source?: string | null; |
| 12799 | readonly detail?: ServerNotification__ImageDetail | null; | 15404 | readonly subErrorType?: string | null; |
| 12800 | readonly type: "image"; | 15405 | }; |
| 12801 | readonly url: string; | 15406 | export const ServerNotification__ExternalAgentConfigImportItemTypeFailure = Schema.Struct({ |
| 12802 | } | 15407 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12803 | | { | 15408 | errorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12804 | readonly detail?: ServerNotification__ImageDetail | null; | 15409 | failureStage: Schema.String, |
| 12805 | readonly path: string; | 15410 | itemType: ServerNotification__ExternalAgentConfigMigrationItemType, |
| 12806 | readonly type: "localImage"; | 15411 | message: Schema.String, |
| 12807 | } | 15412 | source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12808 | | { readonly type: "audio"; readonly url: string } | 15413 | subErrorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12809 | | { readonly path: string; readonly type: "localAudio" } | 15414 | }).annotate({ identifier: "ServerNotification__ExternalAgentConfigImportItemTypeFailure" }); |
| 12810 | | { readonly name: string; readonly path: string; readonly type: "skill" } | 15415 | |
| 12811 | | { readonly name: string; readonly path: string; readonly type: "mention" }; | 15416 | export type ServerNotification__ExternalAgentConfigImportItemTypeSuccess = { |
| 12812 | export const ServerNotification__UserInput = Schema.Union( | 15417 | readonly cwd?: string | null; |
| 12813 | [ | 15418 | readonly itemType: ServerNotification__ExternalAgentConfigMigrationItemType; |
| 12814 | Schema.Struct({ | 15419 | readonly source?: string | null; |
| 12815 | text: Schema.String, | 15420 | readonly target?: string | null; |
| 12816 | text_elements: Schema.optionalKey( | 15421 | }; |
| 12817 | Schema.Array(ServerNotification__TextElement).annotate({ | 15422 | export const ServerNotification__ExternalAgentConfigImportItemTypeSuccess = Schema.Struct({ |
| 12818 | description: "UI-defined spans within `text` used to render or persist special elements.", | 15423 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12819 | default: [], | 15424 | itemType: ServerNotification__ExternalAgentConfigMigrationItemType, |
| 12820 | }), | 15425 | source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12821 | ), | 15426 | target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12822 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | 15427 | }).annotate({ identifier: "ServerNotification__ExternalAgentConfigImportItemTypeSuccess" }); |
| 12823 | }).annotate({ title: "TextUserInput" }), | 15428 | |
| 12824 | Schema.Struct({ | 15429 | export type ServerNotification__ModelReroutedNotification = { |
| 12825 | detail: Schema.optionalKey(Schema.Union([ServerNotification__ImageDetail, Schema.Null])), | 15430 | readonly fromModel: string; |
| 12826 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | 15431 | readonly reason: ServerNotification__ModelRerouteReason; |
| 12827 | url: Schema.String, | 15432 | readonly threadId: string; |
| 12828 | }).annotate({ title: "ImageUserInput" }), | 15433 | readonly toModel: string; |
| 12829 | Schema.Struct({ | 15434 | readonly turnId: string; |
| 12830 | detail: Schema.optionalKey(Schema.Union([ServerNotification__ImageDetail, Schema.Null])), | 15435 | }; |
| 12831 | path: Schema.String, | 15436 | export const ServerNotification__ModelReroutedNotification = Schema.Struct({ |
| 12832 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), | 15437 | fromModel: Schema.String, |
| 12833 | }).annotate({ title: "LocalImageUserInput" }), | 15438 | reason: ServerNotification__ModelRerouteReason, |
| 12834 | Schema.Struct({ | 15439 | threadId: Schema.String, |
| 12835 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), | 15440 | toModel: Schema.String, |
| 12836 | url: Schema.String, | 15441 | turnId: Schema.String, |
| 12837 | }).annotate({ title: "AudioUserInput" }), | 15442 | }).annotate({ identifier: "ServerNotification__ModelReroutedNotification" }); |
| 12838 | Schema.Struct({ | 15443 | |
| 12839 | path: Schema.String, | 15444 | export type ServerNotification__ModelVerificationNotification = { |
| 12840 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), | 15445 | readonly threadId: string; |
| 12841 | }).annotate({ title: "LocalAudioUserInput" }), | 15446 | readonly turnId: string; |
| 12842 | Schema.Struct({ | 15447 | readonly verifications: ReadonlyArray<ServerNotification__ModelVerification>; |
| 12843 | name: Schema.String, | 15448 | }; |
| 12844 | path: Schema.String, | 15449 | export const ServerNotification__ModelVerificationNotification = Schema.Struct({ |
| 12845 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), | 15450 | threadId: Schema.String, |
| 12846 | }).annotate({ title: "SkillUserInput" }), | 15451 | turnId: Schema.String, |
| 12847 | Schema.Struct({ | 15452 | verifications: Schema.Array(ServerNotification__ModelVerification), |
| 12848 | name: Schema.String, | 15453 | }).annotate({ identifier: "ServerNotification__ModelVerificationNotification" }); |
| 12849 | path: Schema.String, | | |
| 12850 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), | | |
| 12851 | }).annotate({ title: "MentionUserInput" }), | | |
| 12852 | ], | | |
| 12853 | { mode: "oneOf" }, | | |
| 12854 | ); | | |
| 12855 | | 15454 | |
| 12856 | export type ServerNotification__TextRange = { | 15455 | export type ServerNotification__TextRange = { |
| 12857 | readonly end: ServerNotification__TextPosition; | 15456 | readonly end: ServerNotification__TextPosition; |
| ... | @@ -12860,118 +15459,69 @@ export type ServerNotification__TextRange = { | ... | @@ -12860,118 +15459,69 @@ export type ServerNotification__TextRange = { |
| 12860 | export const ServerNotification__TextRange = Schema.Struct({ | 15459 | export const ServerNotification__TextRange = Schema.Struct({ |
| 12861 | end: ServerNotification__TextPosition, | 15460 | end: ServerNotification__TextPosition, |
| 12862 | start: ServerNotification__TextPosition, | 15461 | start: ServerNotification__TextPosition, |
| | 15462 | }).annotate({ identifier: "ServerNotification__TextRange" }); |
| | 15463 | |
| | 15464 | export type ServerNotification__FuzzyFileSearchResult = { |
| | 15465 | readonly file_name: string; |
| | 15466 | readonly indices?: ReadonlyArray<number> | null; |
| | 15467 | readonly match_type: ServerNotification__FuzzyFileSearchMatchType; |
| | 15468 | readonly path: string; |
| | 15469 | readonly root: string; |
| | 15470 | readonly score: number; |
| | 15471 | }; |
| | 15472 | export const ServerNotification__FuzzyFileSearchResult = Schema.Struct({ |
| | 15473 | file_name: Schema.String, |
| | 15474 | indices: Schema.optionalKey( |
| | 15475 | Schema.Union([ |
| | 15476 | Schema.Array( |
| | 15477 | Schema.Number.annotate({ format: "uint32" }) |
| | 15478 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 15479 | .check( |
| | 15480 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 15481 | expected: "a value greater than or equal to 0", |
| | 15482 | }), |
| | 15483 | ), |
| | 15484 | ), |
| | 15485 | Schema.Null, |
| | 15486 | ]), |
| | 15487 | ), |
| | 15488 | match_type: ServerNotification__FuzzyFileSearchMatchType, |
| | 15489 | path: Schema.String, |
| | 15490 | root: Schema.String, |
| | 15491 | score: Schema.Number.annotate({ format: "uint32" }) |
| | 15492 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 15493 | .check( |
| | 15494 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 15495 | ), |
| | 15496 | }).annotate({ |
| | 15497 | description: "Superset of [`codex_file_search::FileMatch`]", |
| | 15498 | identifier: "ServerNotification__FuzzyFileSearchResult", |
| 12863 | }); | 15499 | }); |
| 12864 | | 15500 | |
| 12865 | export type ServerNotification__ThreadStatus = | 15501 | export type ServerNotification__ThreadRealtimeStartedNotification = { |
| 12866 | | { readonly type: "notLoaded" } | 15502 | readonly realtimeSessionId?: string | null; |
| 12867 | | { readonly type: "idle" } | 15503 | readonly threadId: string; |
| 12868 | | { readonly type: "systemError" } | 15504 | readonly version: ServerNotification__RealtimeConversationVersion; |
| 12869 | | { | 15505 | }; |
| 12870 | readonly activeFlags: ReadonlyArray<ServerNotification__ThreadActiveFlag>; | 15506 | export const ServerNotification__ThreadRealtimeStartedNotification = Schema.Struct({ |
| 12871 | readonly type: "active"; | 15507 | realtimeSessionId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12872 | }; | 15508 | threadId: Schema.String, |
| 12873 | export const ServerNotification__ThreadStatus = Schema.Union( | 15509 | version: ServerNotification__RealtimeConversationVersion, |
| 12874 | [ | 15510 | }).annotate({ |
| 12875 | Schema.Struct({ | 15511 | description: "EXPERIMENTAL - emitted when thread realtime startup is accepted.", |
| 12876 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), | 15512 | identifier: "ServerNotification__ThreadRealtimeStartedNotification", |
| 12877 | }).annotate({ title: "NotLoadedThreadStatus" }), | 15513 | }); |
| 12878 | Schema.Struct({ | | |
| 12879 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), | | |
| 12880 | }).annotate({ title: "IdleThreadStatus" }), | | |
| 12881 | Schema.Struct({ | | |
| 12882 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), | | |
| 12883 | }).annotate({ title: "SystemErrorThreadStatus" }), | | |
| 12884 | Schema.Struct({ | | |
| 12885 | activeFlags: Schema.Array(ServerNotification__ThreadActiveFlag), | | |
| 12886 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), | | |
| 12887 | }).annotate({ title: "ActiveThreadStatus" }), | | |
| 12888 | ], | | |
| 12889 | { mode: "oneOf" }, | | |
| 12890 | ); | | |
| 12891 | | 15514 | |
| 12892 | export type ServerNotification__ThreadGoal = { | 15515 | export type ServerNotification__ThreadRealtimeOutputAudioDeltaNotification = { |
| 12893 | readonly createdAt: number; | 15516 | readonly audio: ServerNotification__ThreadRealtimeAudioChunk; |
| 12894 | readonly objective: string; | | |
| 12895 | readonly status: ServerNotification__ThreadGoalStatus; | | |
| 12896 | readonly threadId: string; | 15517 | readonly threadId: string; |
| 12897 | readonly timeUsedSeconds: number; | | |
| 12898 | readonly tokenBudget?: number | null; | | |
| 12899 | readonly tokensUsed: number; | | |
| 12900 | readonly updatedAt: number; | | |
| 12901 | }; | 15518 | }; |
| 12902 | export const ServerNotification__ThreadGoal = Schema.Struct({ | 15519 | export const ServerNotification__ThreadRealtimeOutputAudioDeltaNotification = Schema.Struct({ |
| 12903 | createdAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 15520 | audio: ServerNotification__ThreadRealtimeAudioChunk, |
| 12904 | objective: Schema.String, | | |
| 12905 | status: ServerNotification__ThreadGoalStatus, | | |
| 12906 | threadId: Schema.String, | 15521 | threadId: Schema.String, |
| 12907 | timeUsedSeconds: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 15522 | }).annotate({ |
| 12908 | tokenBudget: Schema.optionalKey( | 15523 | description: "EXPERIMENTAL - streamed output audio emitted by thread realtime.", |
| 12909 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), | 15524 | identifier: "ServerNotification__ThreadRealtimeOutputAudioDeltaNotification", |
| 12910 | ), | | |
| 12911 | tokensUsed: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | | |
| 12912 | updatedAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | | |
| 12913 | }); | | |
| 12914 | | | |
| 12915 | export type ServerNotification__SubAgentSource = | | |
| 12916 | | "review" | | |
| 12917 | | "compact" | | |
| 12918 | | "memory_consolidation" | | |
| 12919 | | { | | |
| 12920 | readonly thread_spawn: { | | |
| 12921 | readonly agent_nickname?: string | null; | | |
| 12922 | readonly agent_path?: ServerNotification__AgentPath | null; | | |
| 12923 | readonly agent_role?: string | null; | | |
| 12924 | readonly depth: number; | | |
| 12925 | readonly parent_thread_id: ServerNotification__ThreadId; | | |
| 12926 | }; | | |
| 12927 | } | | |
| 12928 | | { readonly other: string }; | | |
| 12929 | export const ServerNotification__SubAgentSource = Schema.Union( | | |
| 12930 | [ | | |
| 12931 | Schema.Literals(["review", "compact", "memory_consolidation"]), | | |
| 12932 | Schema.Struct({ | | |
| 12933 | thread_spawn: Schema.Struct({ | | |
| 12934 | agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 12935 | agent_path: Schema.optionalKey(Schema.Union([ServerNotification__AgentPath, Schema.Null])), | | |
| 12936 | agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 12937 | depth: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()), | | |
| 12938 | parent_thread_id: ServerNotification__ThreadId, | | |
| 12939 | }), | | |
| 12940 | }).annotate({ title: "ThreadSpawnSubAgentSource" }), | | |
| 12941 | Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }), | | |
| 12942 | ], | | |
| 12943 | { mode: "oneOf" }, | | |
| 12944 | ); | | |
| 12945 | | | |
| 12946 | export type ServerNotification__ThreadRealtimeOutputAudioDeltaNotification = { | | |
| 12947 | readonly audio: ServerNotification__ThreadRealtimeAudioChunk; | | |
| 12948 | readonly threadId: string; | | |
| 12949 | }; | | |
| 12950 | export const ServerNotification__ThreadRealtimeOutputAudioDeltaNotification = Schema.Struct({ | | |
| 12951 | audio: ServerNotification__ThreadRealtimeAudioChunk, | | |
| 12952 | threadId: Schema.String, | | |
| 12953 | }).annotate({ description: "EXPERIMENTAL - streamed output audio emitted by thread realtime." }); | | |
| 12954 | | | |
| 12955 | export type ServerNotification__ThreadTokenUsage = { | | |
| 12956 | readonly last: ServerNotification__TokenUsageBreakdown; | | |
| 12957 | readonly modelContextWindow?: number | null; | | |
| 12958 | readonly total: ServerNotification__TokenUsageBreakdown; | | |
| 12959 | }; | | |
| 12960 | export const ServerNotification__ThreadTokenUsage = Schema.Struct({ | | |
| 12961 | last: ServerNotification__TokenUsageBreakdown, | | |
| 12962 | modelContextWindow: Schema.optionalKey( | | |
| 12963 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), | | |
| 12964 | ), | | |
| 12965 | total: ServerNotification__TokenUsageBreakdown, | | |
| 12966 | }); | | |
| 12967 | | | |
| 12968 | export type ServerNotification__TurnPlanStep = { | | |
| 12969 | readonly status: ServerNotification__TurnPlanStepStatus; | | |
| 12970 | readonly step: string; | | |
| 12971 | }; | | |
| 12972 | export const ServerNotification__TurnPlanStep = Schema.Struct({ | | |
| 12973 | status: ServerNotification__TurnPlanStepStatus, | | |
| 12974 | step: Schema.String, | | |
| 12975 | }); | 15525 | }); |
| 12976 | | 15526 | |
| 12977 | export type ServerNotification__WindowsSandboxSetupCompletedNotification = { | 15527 | export type ServerNotification__WindowsSandboxSetupCompletedNotification = { |
| ... | @@ -12983,7 +15533,7 @@ export const ServerNotification__WindowsSandboxSetupCompletedNotification = Sche | ... | @@ -12983,7 +15533,7 @@ export const ServerNotification__WindowsSandboxSetupCompletedNotification = Sche |
| 12983 | error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 15533 | error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12984 | mode: ServerNotification__WindowsSandboxSetupMode, | 15534 | mode: ServerNotification__WindowsSandboxSetupMode, |
| 12985 | success: Schema.Boolean, | 15535 | success: Schema.Boolean, |
| 12986 | }); | 15536 | }).annotate({ identifier: "ServerNotification__WindowsSandboxSetupCompletedNotification" }); |
| 12987 | | 15537 | |
| 12988 | export type ServerRequest__CommandAction = | 15538 | export type ServerRequest__CommandAction = |
| 12989 | | { | 15539 | | { |
| ... | @@ -13025,24 +15575,7 @@ export const ServerRequest__CommandAction = Schema.Union( | ... | @@ -13025,24 +15575,7 @@ export const ServerRequest__CommandAction = Schema.Union( |
| 13025 | }).annotate({ title: "UnknownCommandAction" }), | 15575 | }).annotate({ title: "UnknownCommandAction" }), |
| 13026 | ], | 15576 | ], |
| 13027 | { mode: "oneOf" }, | 15577 | { mode: "oneOf" }, |
| 13028 | ); | 15578 | ).annotate({ identifier: "ServerRequest__CommandAction" }); |
| 13029 | | | |
| 13030 | export type ServerRequest__ChatgptAuthTokensRefreshParams = { | | |
| 13031 | readonly previousAccountId?: string | null; | | |
| 13032 | readonly reason: ServerRequest__ChatgptAuthTokensRefreshReason; | | |
| 13033 | }; | | |
| 13034 | export const ServerRequest__ChatgptAuthTokensRefreshParams = Schema.Struct({ | | |
| 13035 | previousAccountId: Schema.optionalKey( | | |
| 13036 | Schema.Union([ | | |
| 13037 | Schema.String.annotate({ | | |
| 13038 | description: | | |
| 13039 | "Workspace/account identifier that Codex was previously using.\n\nClients that manage multiple accounts/workspaces can use this as a hint to refresh the token for the correct workspace.\n\nThis may be `null` when the prior auth state did not include a workspace identifier (`chatgpt_account_id`).", | | |
| 13040 | }), | | |
| 13041 | Schema.Null, | | |
| 13042 | ]), | | |
| 13043 | ), | | |
| 13044 | reason: ServerRequest__ChatgptAuthTokensRefreshReason, | | |
| 13045 | }); | | |
| 13046 | | 15579 | |
| 13047 | export type ServerRequest__FileSystemSpecialPath = | 15580 | export type ServerRequest__FileSystemSpecialPath = |
| 13048 | | { readonly kind: "root" } | 15581 | | { readonly kind: "root" } |
| ... | @@ -13080,59 +15613,71 @@ export const ServerRequest__FileSystemSpecialPath = Schema.Union( | ... | @@ -13080,59 +15613,71 @@ export const ServerRequest__FileSystemSpecialPath = Schema.Union( |
| 13080 | }), | 15613 | }), |
| 13081 | ], | 15614 | ], |
| 13082 | { mode: "oneOf" }, | 15615 | { mode: "oneOf" }, |
| 13083 | ); | 15616 | ).annotate({ identifier: "ServerRequest__FileSystemSpecialPath" }); |
| 13084 | | 15617 | |
| 13085 | export type ServerRequest__McpElicitationBooleanSchema = { | 15618 | export type ServerRequest__NetworkApprovalContext = { |
| 13086 | readonly default?: boolean | null; | 15619 | readonly host: string; |
| 13087 | readonly description?: string | null; | 15620 | readonly protocol: ServerRequest__NetworkApprovalProtocol; |
| 13088 | readonly title?: string | null; | | |
| 13089 | readonly type: ServerRequest__McpElicitationBooleanType; | | |
| 13090 | }; | 15621 | }; |
| 13091 | export const ServerRequest__McpElicitationBooleanSchema = Schema.Struct({ | 15622 | export const ServerRequest__NetworkApprovalContext = Schema.Struct({ |
| 13092 | default: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 15623 | host: Schema.String, |
| 13093 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 15624 | protocol: ServerRequest__NetworkApprovalProtocol, |
| 13094 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 15625 | }).annotate({ identifier: "ServerRequest__NetworkApprovalContext" }); |
| 13095 | type: ServerRequest__McpElicitationBooleanType, | | |
| 13096 | }); | | |
| 13097 | | 15626 | |
| 13098 | export type ServerRequest__McpElicitationTitledEnumItems = { | 15627 | export type ServerRequest__NetworkPolicyAmendment = { |
| 13099 | readonly anyOf: ReadonlyArray<ServerRequest__McpElicitationConstOption>; | 15628 | readonly action: ServerRequest__NetworkPolicyRuleAction; |
| | 15629 | readonly host: string; |
| 13100 | }; | 15630 | }; |
| 13101 | export const ServerRequest__McpElicitationTitledEnumItems = Schema.Struct({ | 15631 | export const ServerRequest__NetworkPolicyAmendment = Schema.Struct({ |
| 13102 | anyOf: Schema.Array(ServerRequest__McpElicitationConstOption), | 15632 | action: ServerRequest__NetworkPolicyRuleAction, |
| | 15633 | host: Schema.String, |
| | 15634 | }).annotate({ identifier: "ServerRequest__NetworkPolicyAmendment" }); |
| | 15635 | |
| | 15636 | export type ServerRequest__ToolRequestUserInputQuestion = { |
| | 15637 | readonly header: string; |
| | 15638 | readonly id: string; |
| | 15639 | readonly isOther?: boolean; |
| | 15640 | readonly isSecret?: boolean; |
| | 15641 | readonly options?: ReadonlyArray<ServerRequest__ToolRequestUserInputOption> | null; |
| | 15642 | readonly question: string; |
| | 15643 | }; |
| | 15644 | export const ServerRequest__ToolRequestUserInputQuestion = Schema.Struct({ |
| | 15645 | header: Schema.String, |
| | 15646 | id: Schema.String, |
| | 15647 | isOther: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| | 15648 | isSecret: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| | 15649 | options: Schema.optionalKey( |
| | 15650 | Schema.Union([Schema.Array(ServerRequest__ToolRequestUserInputOption), Schema.Null]), |
| | 15651 | ), |
| | 15652 | question: Schema.String, |
| | 15653 | }).annotate({ |
| | 15654 | description: "EXPERIMENTAL. Represents one request_user_input question and its required options.", |
| | 15655 | identifier: "ServerRequest__ToolRequestUserInputQuestion", |
| 13103 | }); | 15656 | }); |
| 13104 | | 15657 | |
| 13105 | export type ServerRequest__McpElicitationNumberSchema = { | 15658 | export type ServerRequest__McpElicitationUntitledSingleSelectEnumSchema = { |
| 13106 | readonly default?: number | null; | 15659 | readonly default?: string | null; |
| 13107 | readonly description?: string | null; | 15660 | readonly description?: string | null; |
| 13108 | readonly maximum?: number | null; | 15661 | readonly enum: ReadonlyArray<string>; |
| 13109 | readonly minimum?: number | null; | | |
| 13110 | readonly title?: string | null; | 15662 | readonly title?: string | null; |
| 13111 | readonly type: ServerRequest__McpElicitationNumberType; | 15663 | readonly type: ServerRequest__McpElicitationStringType; |
| 13112 | }; | 15664 | }; |
| 13113 | export const ServerRequest__McpElicitationNumberSchema = Schema.Struct({ | 15665 | export const ServerRequest__McpElicitationUntitledSingleSelectEnumSchema = Schema.Struct({ |
| 13114 | default: Schema.optionalKey( | 15666 | default: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13115 | Schema.Union([ | | |
| 13116 | Schema.Number.annotate({ format: "double" }).check(Schema.isFinite()), | | |
| 13117 | Schema.Null, | | |
| 13118 | ]), | | |
| 13119 | ), | | |
| 13120 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 15667 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13121 | maximum: Schema.optionalKey( | 15668 | enum: Schema.Array(Schema.String), |
| 13122 | Schema.Union([ | | |
| 13123 | Schema.Number.annotate({ format: "double" }).check(Schema.isFinite()), | | |
| 13124 | Schema.Null, | | |
| 13125 | ]), | | |
| 13126 | ), | | |
| 13127 | minimum: Schema.optionalKey( | | |
| 13128 | Schema.Union([ | | |
| 13129 | Schema.Number.annotate({ format: "double" }).check(Schema.isFinite()), | | |
| 13130 | Schema.Null, | | |
| 13131 | ]), | | |
| 13132 | ), | | |
| 13133 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 15669 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13134 | type: ServerRequest__McpElicitationNumberType, | 15670 | type: ServerRequest__McpElicitationStringType, |
| 13135 | }); | 15671 | }).annotate({ identifier: "ServerRequest__McpElicitationUntitledSingleSelectEnumSchema" }); |
| | 15672 | |
| | 15673 | export type ServerRequest__McpElicitationUntitledEnumItems = { |
| | 15674 | readonly enum: ReadonlyArray<string>; |
| | 15675 | readonly type: ServerRequest__McpElicitationStringType; |
| | 15676 | }; |
| | 15677 | export const ServerRequest__McpElicitationUntitledEnumItems = Schema.Struct({ |
| | 15678 | enum: Schema.Array(Schema.String), |
| | 15679 | type: ServerRequest__McpElicitationStringType, |
| | 15680 | }).annotate({ identifier: "ServerRequest__McpElicitationUntitledEnumItems" }); |
| 13136 | | 15681 | |
| 13137 | export type ServerRequest__McpElicitationLegacyTitledEnumSchema = { | 15682 | export type ServerRequest__McpElicitationLegacyTitledEnumSchema = { |
| 13138 | readonly default?: string | null; | 15683 | readonly default?: string | null; |
| ... | @@ -13149,7 +15694,29 @@ export const ServerRequest__McpElicitationLegacyTitledEnumSchema = Schema.Struct | ... | @@ -13149,7 +15694,29 @@ export const ServerRequest__McpElicitationLegacyTitledEnumSchema = Schema.Struct |
| 13149 | enumNames: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | 15694 | enumNames: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| 13150 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 15695 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13151 | type: ServerRequest__McpElicitationStringType, | 15696 | type: ServerRequest__McpElicitationStringType, |
| 13152 | }); | 15697 | }).annotate({ identifier: "ServerRequest__McpElicitationLegacyTitledEnumSchema" }); |
| | 15698 | |
| | 15699 | export type ServerRequest__McpElicitationTitledSingleSelectEnumSchema = { |
| | 15700 | readonly default?: string | null; |
| | 15701 | readonly description?: string | null; |
| | 15702 | readonly oneOf: ReadonlyArray<ServerRequest__McpElicitationConstOption>; |
| | 15703 | readonly title?: string | null; |
| | 15704 | readonly type: ServerRequest__McpElicitationStringType; |
| | 15705 | }; |
| | 15706 | export const ServerRequest__McpElicitationTitledSingleSelectEnumSchema = Schema.Struct({ |
| | 15707 | default: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 15708 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 15709 | oneOf: Schema.Array(ServerRequest__McpElicitationConstOption), |
| | 15710 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 15711 | type: ServerRequest__McpElicitationStringType, |
| | 15712 | }).annotate({ identifier: "ServerRequest__McpElicitationTitledSingleSelectEnumSchema" }); |
| | 15713 | |
| | 15714 | export type ServerRequest__McpElicitationTitledEnumItems = { |
| | 15715 | readonly anyOf: ReadonlyArray<ServerRequest__McpElicitationConstOption>; |
| | 15716 | }; |
| | 15717 | export const ServerRequest__McpElicitationTitledEnumItems = Schema.Struct({ |
| | 15718 | anyOf: Schema.Array(ServerRequest__McpElicitationConstOption), |
| | 15719 | }).annotate({ identifier: "ServerRequest__McpElicitationTitledEnumItems" }); |
| 13153 | | 15720 | |
| 13154 | export type ServerRequest__McpElicitationStringSchema = { | 15721 | export type ServerRequest__McpElicitationStringSchema = { |
| 13155 | readonly default?: string | null; | 15722 | readonly default?: string | null; |
| ... | @@ -13169,79 +15736,98 @@ export const ServerRequest__McpElicitationStringSchema = Schema.Struct({ | ... | @@ -13169,79 +15736,98 @@ export const ServerRequest__McpElicitationStringSchema = Schema.Struct({ |
| 13169 | maxLength: Schema.optionalKey( | 15736 | maxLength: Schema.optionalKey( |
| 13170 | Schema.Union([ | 15737 | Schema.Union([ |
| 13171 | Schema.Number.annotate({ format: "uint32" }) | 15738 | Schema.Number.annotate({ format: "uint32" }) |
| 13172 | .check(Schema.isInt()) | 15739 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 13173 | .check(Schema.isGreaterThanOrEqualTo(0)), | 15740 | .check( |
| | 15741 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 15742 | expected: "a value greater than or equal to 0", |
| | 15743 | }), |
| | 15744 | ), |
| 13174 | Schema.Null, | 15745 | Schema.Null, |
| 13175 | ]), | 15746 | ]), |
| 13176 | ), | 15747 | ), |
| 13177 | minLength: Schema.optionalKey( | 15748 | minLength: Schema.optionalKey( |
| 13178 | Schema.Union([ | 15749 | Schema.Union([ |
| 13179 | Schema.Number.annotate({ format: "uint32" }) | 15750 | Schema.Number.annotate({ format: "uint32" }) |
| 13180 | .check(Schema.isInt()) | 15751 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 13181 | .check(Schema.isGreaterThanOrEqualTo(0)), | 15752 | .check( |
| | 15753 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 15754 | expected: "a value greater than or equal to 0", |
| | 15755 | }), |
| | 15756 | ), |
| 13182 | Schema.Null, | 15757 | Schema.Null, |
| 13183 | ]), | 15758 | ]), |
| 13184 | ), | 15759 | ), |
| 13185 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 15760 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13186 | type: ServerRequest__McpElicitationStringType, | 15761 | type: ServerRequest__McpElicitationStringType, |
| 13187 | }); | 15762 | }).annotate({ identifier: "ServerRequest__McpElicitationStringSchema" }); |
| 13188 | | 15763 | |
| 13189 | export type ServerRequest__McpElicitationTitledSingleSelectEnumSchema = { | 15764 | export type ServerRequest__McpElicitationNumberSchema = { |
| 13190 | readonly default?: string | null; | 15765 | readonly default?: number | null; |
| 13191 | readonly description?: string | null; | 15766 | readonly description?: string | null; |
| 13192 | readonly oneOf: ReadonlyArray<ServerRequest__McpElicitationConstOption>; | 15767 | readonly maximum?: number | null; |
| | 15768 | readonly minimum?: number | null; |
| 13193 | readonly title?: string | null; | 15769 | readonly title?: string | null; |
| 13194 | readonly type: ServerRequest__McpElicitationStringType; | 15770 | readonly type: ServerRequest__McpElicitationNumberType; |
| 13195 | }; | 15771 | }; |
| 13196 | export const ServerRequest__McpElicitationTitledSingleSelectEnumSchema = Schema.Struct({ | 15772 | export const ServerRequest__McpElicitationNumberSchema = Schema.Struct({ |
| 13197 | default: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 15773 | default: Schema.optionalKey( |
| | 15774 | Schema.Union([ |
| | 15775 | Schema.Number.annotate({ format: "double" }).check( |
| | 15776 | Schema.isFinite().annotate({ expected: "a finite number" }), |
| | 15777 | ), |
| | 15778 | Schema.Null, |
| | 15779 | ]), |
| | 15780 | ), |
| 13198 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 15781 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13199 | oneOf: Schema.Array(ServerRequest__McpElicitationConstOption), | 15782 | maximum: Schema.optionalKey( |
| | 15783 | Schema.Union([ |
| | 15784 | Schema.Number.annotate({ format: "double" }).check( |
| | 15785 | Schema.isFinite().annotate({ expected: "a finite number" }), |
| | 15786 | ), |
| | 15787 | Schema.Null, |
| | 15788 | ]), |
| | 15789 | ), |
| | 15790 | minimum: Schema.optionalKey( |
| | 15791 | Schema.Union([ |
| | 15792 | Schema.Number.annotate({ format: "double" }).check( |
| | 15793 | Schema.isFinite().annotate({ expected: "a finite number" }), |
| | 15794 | ), |
| | 15795 | Schema.Null, |
| | 15796 | ]), |
| | 15797 | ), |
| 13200 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 15798 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13201 | type: ServerRequest__McpElicitationStringType, | 15799 | type: ServerRequest__McpElicitationNumberType, |
| 13202 | }); | 15800 | }).annotate({ identifier: "ServerRequest__McpElicitationNumberSchema" }); |
| 13203 | | | |
| 13204 | export type ServerRequest__McpElicitationUntitledEnumItems = { | | |
| 13205 | readonly enum: ReadonlyArray<string>; | | |
| 13206 | readonly type: ServerRequest__McpElicitationStringType; | | |
| 13207 | }; | | |
| 13208 | export const ServerRequest__McpElicitationUntitledEnumItems = Schema.Struct({ | | |
| 13209 | enum: Schema.Array(Schema.String), | | |
| 13210 | type: ServerRequest__McpElicitationStringType, | | |
| 13211 | }); | | |
| 13212 | | 15801 | |
| 13213 | export type ServerRequest__McpElicitationUntitledSingleSelectEnumSchema = { | 15802 | export type ServerRequest__McpElicitationBooleanSchema = { |
| 13214 | readonly default?: string | null; | 15803 | readonly default?: boolean | null; |
| 13215 | readonly description?: string | null; | 15804 | readonly description?: string | null; |
| 13216 | readonly enum: ReadonlyArray<string>; | | |
| 13217 | readonly title?: string | null; | 15805 | readonly title?: string | null; |
| 13218 | readonly type: ServerRequest__McpElicitationStringType; | 15806 | readonly type: ServerRequest__McpElicitationBooleanType; |
| 13219 | }; | 15807 | }; |
| 13220 | export const ServerRequest__McpElicitationUntitledSingleSelectEnumSchema = Schema.Struct({ | 15808 | export const ServerRequest__McpElicitationBooleanSchema = Schema.Struct({ |
| 13221 | default: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 15809 | default: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 13222 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 15810 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13223 | enum: Schema.Array(Schema.String), | | |
| 13224 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 15811 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13225 | type: ServerRequest__McpElicitationStringType, | 15812 | type: ServerRequest__McpElicitationBooleanType, |
| 13226 | }); | 15813 | }).annotate({ identifier: "ServerRequest__McpElicitationBooleanSchema" }); |
| 13227 | | | |
| 13228 | export type ServerRequest__NetworkApprovalContext = { | | |
| 13229 | readonly host: string; | | |
| 13230 | readonly protocol: ServerRequest__NetworkApprovalProtocol; | | |
| 13231 | }; | | |
| 13232 | export const ServerRequest__NetworkApprovalContext = Schema.Struct({ | | |
| 13233 | host: Schema.String, | | |
| 13234 | protocol: ServerRequest__NetworkApprovalProtocol, | | |
| 13235 | }); | | |
| 13236 | | 15814 | |
| 13237 | export type ServerRequest__NetworkPolicyAmendment = { | 15815 | export type ServerRequest__ChatgptAuthTokensRefreshParams = { |
| 13238 | readonly action: ServerRequest__NetworkPolicyRuleAction; | 15816 | readonly previousAccountId?: string | null; |
| 13239 | readonly host: string; | 15817 | readonly reason: ServerRequest__ChatgptAuthTokensRefreshReason; |
| 13240 | }; | 15818 | }; |
| 13241 | export const ServerRequest__NetworkPolicyAmendment = Schema.Struct({ | 15819 | export const ServerRequest__ChatgptAuthTokensRefreshParams = Schema.Struct({ |
| 13242 | action: ServerRequest__NetworkPolicyRuleAction, | 15820 | previousAccountId: Schema.optionalKey( |
| 13243 | host: Schema.String, | 15821 | Schema.Union([ |
| 13244 | }); | 15822 | Schema.String.annotate({ |
| | 15823 | description: |
| | 15824 | "Workspace/account identifier that Codex was previously using.\n\nClients that manage multiple accounts/workspaces can use this as a hint to refresh the token for the correct workspace.\n\nThis may be `null` when the prior auth state did not include a workspace identifier (`chatgpt_account_id`).", |
| | 15825 | }), |
| | 15826 | Schema.Null, |
| | 15827 | ]), |
| | 15828 | ), |
| | 15829 | reason: ServerRequest__ChatgptAuthTokensRefreshReason, |
| | 15830 | }).annotate({ identifier: "ServerRequest__ChatgptAuthTokensRefreshParams" }); |
| 13245 | | 15831 | |
| 13246 | export type ServerRequest__ApplyPatchApprovalParams = { | 15832 | export type ServerRequest__ApplyPatchApprovalParams = { |
| 13247 | readonly callId: string; | 15833 | readonly callId: string; |
| ... | @@ -13274,7 +15860,7 @@ export const ServerRequest__ApplyPatchApprovalParams = Schema.Struct({ | ... | @@ -13274,7 +15860,7 @@ export const ServerRequest__ApplyPatchApprovalParams = Schema.Struct({ |
| 13274 | Schema.Null, | 15860 | Schema.Null, |
| 13275 | ]), | 15861 | ]), |
| 13276 | ), | 15862 | ), |
| 13277 | }); | 15863 | }).annotate({ identifier: "ServerRequest__ApplyPatchApprovalParams" }); |
| 13278 | | 15864 | |
| 13279 | export type ServerRequest__ExecCommandApprovalParams = { | 15865 | export type ServerRequest__ExecCommandApprovalParams = { |
| 13280 | readonly approvalId?: string | null; | 15866 | readonly approvalId?: string | null; |
| ... | @@ -13301,28 +15887,7 @@ export const ServerRequest__ExecCommandApprovalParams = Schema.Struct({ | ... | @@ -13301,28 +15887,7 @@ export const ServerRequest__ExecCommandApprovalParams = Schema.Struct({ |
| 13301 | cwd: Schema.String, | 15887 | cwd: Schema.String, |
| 13302 | parsedCmd: Schema.Array(ServerRequest__ParsedCommand), | 15888 | parsedCmd: Schema.Array(ServerRequest__ParsedCommand), |
| 13303 | reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 15889 | reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13304 | }); | 15890 | }).annotate({ identifier: "ServerRequest__ExecCommandApprovalParams" }); |
| 13305 | | | |
| 13306 | export type ServerRequest__ToolRequestUserInputQuestion = { | | |
| 13307 | readonly header: string; | | |
| 13308 | readonly id: string; | | |
| 13309 | readonly isOther?: boolean; | | |
| 13310 | readonly isSecret?: boolean; | | |
| 13311 | readonly options?: ReadonlyArray<ServerRequest__ToolRequestUserInputOption> | null; | | |
| 13312 | readonly question: string; | | |
| 13313 | }; | | |
| 13314 | export const ServerRequest__ToolRequestUserInputQuestion = Schema.Struct({ | | |
| 13315 | header: Schema.String, | | |
| 13316 | id: Schema.String, | | |
| 13317 | isOther: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 13318 | isSecret: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 13319 | options: Schema.optionalKey( | | |
| 13320 | Schema.Union([Schema.Array(ServerRequest__ToolRequestUserInputOption), Schema.Null]), | | |
| 13321 | ), | | |
| 13322 | question: Schema.String, | | |
| 13323 | }).annotate({ | | |
| 13324 | description: "EXPERIMENTAL. Represents one request_user_input question and its required options.", | | |
| 13325 | }); | | |
| 13326 | | 15891 | |
| 13327 | export type ToolRequestUserInputParams__ToolRequestUserInputQuestion = { | 15892 | export type ToolRequestUserInputParams__ToolRequestUserInputQuestion = { |
| 13328 | readonly header: string; | 15893 | readonly header: string; |
| ... | @@ -13346,6 +15911,7 @@ export const ToolRequestUserInputParams__ToolRequestUserInputQuestion = Schema.S | ... | @@ -13346,6 +15911,7 @@ export const ToolRequestUserInputParams__ToolRequestUserInputQuestion = Schema.S |
| 13346 | question: Schema.String, | 15911 | question: Schema.String, |
| 13347 | }).annotate({ | 15912 | }).annotate({ |
| 13348 | description: "EXPERIMENTAL. Represents one request_user_input question and its required options.", | 15913 | description: "EXPERIMENTAL. Represents one request_user_input question and its required options.", |
| | 15914 | identifier: "ToolRequestUserInputParams__ToolRequestUserInputQuestion", |
| 13349 | }); | 15915 | }); |
| 13350 | | 15916 | |
| 13351 | export type V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = { | 15917 | export type V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = { |
| ... | @@ -13389,7 +15955,7 @@ export const V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = Schema. | ... | @@ -13389,7 +15955,7 @@ export const V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = Schema. |
| 13389 | Schema.Null, | 15955 | Schema.Null, |
| 13390 | ]), | 15956 | ]), |
| 13391 | ), | 15957 | ), |
| 13392 | }); | 15958 | }).annotate({ identifier: "V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot" }); |
| 13393 | | 15959 | |
| 13394 | export type V2AppListUpdatedNotification__AppMetadata = { | 15960 | export type V2AppListUpdatedNotification__AppMetadata = { |
| 13395 | readonly categories?: ReadonlyArray<string> | null; | 15961 | readonly categories?: ReadonlyArray<string> | null; |
| ... | @@ -13420,7 +15986,7 @@ export const V2AppListUpdatedNotification__AppMetadata = Schema.Struct({ | ... | @@ -13420,7 +15986,7 @@ export const V2AppListUpdatedNotification__AppMetadata = Schema.Struct({ |
| 13420 | version: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 15986 | version: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13421 | versionId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 15987 | versionId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13422 | versionNotes: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 15988 | versionNotes: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13423 | }); | 15989 | }).annotate({ identifier: "V2AppListUpdatedNotification__AppMetadata" }); |
| 13424 | | 15990 | |
| 13425 | export type V2AppsListResponse__AppMetadata = { | 15991 | export type V2AppsListResponse__AppMetadata = { |
| 13426 | readonly categories?: ReadonlyArray<string> | null; | 15992 | readonly categories?: ReadonlyArray<string> | null; |
| ... | @@ -13451,7 +16017,7 @@ export const V2AppsListResponse__AppMetadata = Schema.Struct({ | ... | @@ -13451,7 +16017,7 @@ export const V2AppsListResponse__AppMetadata = Schema.Struct({ |
| 13451 | version: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16017 | version: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13452 | versionId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16018 | versionId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13453 | versionNotes: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16019 | versionNotes: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13454 | }); | 16020 | }).annotate({ identifier: "V2AppsListResponse__AppMetadata" }); |
| 13455 | | 16021 | |
| 13456 | export type V2AppsReadResponse__ConnectorMetadata = { | 16022 | export type V2AppsReadResponse__ConnectorMetadata = { |
| 13457 | readonly description?: string | null; | 16023 | readonly description?: string | null; |
| ... | @@ -13468,12 +16034,18 @@ export const V2AppsReadResponse__ConnectorMetadata = Schema.Struct({ | ... | @@ -13468,12 +16034,18 @@ export const V2AppsReadResponse__ConnectorMetadata = Schema.Struct({ |
| 13468 | toolSummaries: Schema.optionalKey( | 16034 | toolSummaries: Schema.optionalKey( |
| 13469 | Schema.Union([Schema.Array(V2AppsReadResponse__AppToolSummary), Schema.Null]), | 16035 | Schema.Union([Schema.Array(V2AppsReadResponse__AppToolSummary), Schema.Null]), |
| 13470 | ), | 16036 | ), |
| 13471 | }).annotate({ description: "EXPERIMENTAL - metadata returned by app/read." }); | 16037 | }).annotate({ |
| | 16038 | description: "EXPERIMENTAL - metadata returned by app/read.", |
| | 16039 | identifier: "V2AppsReadResponse__ConnectorMetadata", |
| | 16040 | }); |
| 13472 | | 16041 | |
| 13473 | export type V2CommandExecParams__SandboxPolicy = | 16042 | export type V2CommandExecParams__SandboxPolicy = |
| 13474 | | { readonly type: "dangerFullAccess" } | 16043 | | { readonly type: "dangerFullAccess" } |
| 13475 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } | 16044 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } |
| 13476 | | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" } | 16045 | | { |
| | 16046 | readonly networkAccess?: V2CommandExecParams__NetworkAccess; |
| | 16047 | readonly type: "externalSandbox"; |
| | 16048 | } |
| 13477 | | { | 16049 | | { |
| 13478 | readonly excludeSlashTmp?: boolean; | 16050 | readonly excludeSlashTmp?: boolean; |
| 13479 | readonly excludeTmpdirEnvVar?: boolean; | 16051 | readonly excludeTmpdirEnvVar?: boolean; |
| ... | @@ -13494,7 +16066,10 @@ export const V2CommandExecParams__SandboxPolicy = Schema.Union( | ... | @@ -13494,7 +16066,10 @@ export const V2CommandExecParams__SandboxPolicy = Schema.Union( |
| 13494 | }).annotate({ title: "ReadOnlySandboxPolicy" }), | 16066 | }).annotate({ title: "ReadOnlySandboxPolicy" }), |
| 13495 | Schema.Struct({ | 16067 | Schema.Struct({ |
| 13496 | networkAccess: Schema.optionalKey( | 16068 | networkAccess: Schema.optionalKey( |
| 13497 | Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }), | 16069 | Schema.suspend( |
| | 16070 | (): Schema.Codec<V2CommandExecParams__NetworkAccess> => |
| | 16071 | V2CommandExecParams__NetworkAccess, |
| | 16072 | ).annotate({ default: "restricted" }), |
| 13498 | ), | 16073 | ), |
| 13499 | type: Schema.Literal("externalSandbox").annotate({ | 16074 | type: Schema.Literal("externalSandbox").annotate({ |
| 13500 | title: "ExternalSandboxSandboxPolicyType", | 16075 | title: "ExternalSandboxSandboxPolicyType", |
| ... | @@ -13511,24 +16086,43 @@ export const V2CommandExecParams__SandboxPolicy = Schema.Union( | ... | @@ -13511,24 +16086,43 @@ export const V2CommandExecParams__SandboxPolicy = Schema.Union( |
| 13511 | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), | 16086 | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), |
| 13512 | ], | 16087 | ], |
| 13513 | { mode: "oneOf" }, | 16088 | { mode: "oneOf" }, |
| 13514 | ); | 16089 | ).annotate({ identifier: "V2CommandExecParams__SandboxPolicy" }); |
| 13515 | | 16090 | |
| 13516 | export type V2ConfigBatchWriteParams__ConfigEdit = { | 16091 | export type V2ConfigBatchWriteParams__ConfigEdit = { |
| 13517 | readonly keyPath: string; | 16092 | readonly keyPath: string; |
| 13518 | readonly mergeStrategy: V2ConfigBatchWriteParams__MergeStrategy; | 16093 | readonly mergeStrategy: V2ConfigBatchWriteParams__MergeStrategy; |
| 13519 | readonly value: unknown; | 16094 | readonly value: Schema.Json; |
| 13520 | }; | 16095 | }; |
| 13521 | export const V2ConfigBatchWriteParams__ConfigEdit = Schema.Struct({ | 16096 | export const V2ConfigBatchWriteParams__ConfigEdit = Schema.Struct({ |
| 13522 | keyPath: Schema.String, | 16097 | keyPath: Schema.String, |
| 13523 | mergeStrategy: V2ConfigBatchWriteParams__MergeStrategy, | 16098 | mergeStrategy: V2ConfigBatchWriteParams__MergeStrategy, |
| 13524 | value: Schema.Unknown, | 16099 | value: Schema.Json.annotate({ expected: "JSON value" }), |
| 13525 | }); | 16100 | }).annotate({ identifier: "V2ConfigBatchWriteParams__ConfigEdit" }); |
| | 16101 | |
| | 16102 | export type V2ConfigReadResponse__WebSearchToolConfig = { |
| | 16103 | readonly allowed_domains?: ReadonlyArray<string> | null; |
| | 16104 | readonly context_size?: V2ConfigReadResponse__WebSearchContextSize | null; |
| | 16105 | readonly location?: V2ConfigReadResponse__WebSearchLocation | null; |
| | 16106 | }; |
| | 16107 | export const V2ConfigReadResponse__WebSearchToolConfig = Schema.Struct({ |
| | 16108 | allowed_domains: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 16109 | context_size: Schema.optionalKey( |
| | 16110 | Schema.Union([V2ConfigReadResponse__WebSearchContextSize, Schema.Null]), |
| | 16111 | ), |
| | 16112 | location: Schema.optionalKey( |
| | 16113 | Schema.Union([V2ConfigReadResponse__WebSearchLocation, Schema.Null]), |
| | 16114 | ), |
| | 16115 | }).annotate({ identifier: "V2ConfigReadResponse__WebSearchToolConfig" }); |
| 13526 | | 16116 | |
| 13527 | export type V2ConfigReadResponse__ConfigLayerSource = | 16117 | export type V2ConfigReadResponse__ConfigLayerSource = |
| 13528 | | { readonly domain: string; readonly key: string; readonly type: "mdm" } | 16118 | | { readonly domain: string; readonly key: string; readonly type: "mdm" } |
| 13529 | | { readonly file: string; readonly type: "system" } | 16119 | | { readonly file: V2ConfigReadResponse__AbsolutePathBuf; readonly type: "system" } |
| 13530 | | { readonly id: string; readonly name: string; readonly type: "enterpriseManaged" } | 16120 | | { readonly id: string; readonly name: string; readonly type: "enterpriseManaged" } |
| 13531 | | { readonly file: string; readonly profile?: string | null; readonly type: "user" } | 16121 | | { |
| | 16122 | readonly file: V2ConfigReadResponse__AbsolutePathBuf; |
| | 16123 | readonly profile?: string | null; |
| | 16124 | readonly type: "user"; |
| | 16125 | } |
| 13532 | | { readonly dotCodexFolder: V2ConfigReadResponse__AbsolutePathBuf; readonly type: "project" } | 16126 | | { readonly dotCodexFolder: V2ConfigReadResponse__AbsolutePathBuf; readonly type: "project" } |
| 13533 | | { readonly type: "sessionFlags" } | 16127 | | { readonly type: "sessionFlags" } |
| 13534 | | { | 16128 | | { |
| ... | @@ -13547,9 +16141,12 @@ export const V2ConfigReadResponse__ConfigLayerSource = Schema.Union( | ... | @@ -13547,9 +16141,12 @@ export const V2ConfigReadResponse__ConfigLayerSource = Schema.Union( |
| 13547 | description: "Managed preferences layer delivered by MDM (macOS only).", | 16141 | description: "Managed preferences layer delivered by MDM (macOS only).", |
| 13548 | }), | 16142 | }), |
| 13549 | Schema.Struct({ | 16143 | Schema.Struct({ |
| 13550 | file: Schema.String.annotate({ | 16144 | file: Schema.suspend( |
| | 16145 | (): Schema.Codec<V2ConfigReadResponse__AbsolutePathBuf> => |
| | 16146 | V2ConfigReadResponse__AbsolutePathBuf, |
| | 16147 | ).annotate({ |
| 13551 | description: | 16148 | description: |
| 13552 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 16149 | "This is the path to the system config.toml file, though it is not guaranteed to exist.", |
| 13553 | }), | 16150 | }), |
| 13554 | type: Schema.Literal("system").annotate({ title: "SystemConfigLayerSourceType" }), | 16151 | type: Schema.Literal("system").annotate({ title: "SystemConfigLayerSourceType" }), |
| 13555 | }).annotate({ | 16152 | }).annotate({ |
| ... | @@ -13570,9 +16167,12 @@ export const V2ConfigReadResponse__ConfigLayerSource = Schema.Union( | ... | @@ -13570,9 +16167,12 @@ export const V2ConfigReadResponse__ConfigLayerSource = Schema.Union( |
| 13570 | description: "Enterprise-managed config layer delivered by the cloud config bundle.", | 16167 | description: "Enterprise-managed config layer delivered by the cloud config bundle.", |
| 13571 | }), | 16168 | }), |
| 13572 | Schema.Struct({ | 16169 | Schema.Struct({ |
| 13573 | file: Schema.String.annotate({ | 16170 | file: Schema.suspend( |
| | 16171 | (): Schema.Codec<V2ConfigReadResponse__AbsolutePathBuf> => |
| | 16172 | V2ConfigReadResponse__AbsolutePathBuf, |
| | 16173 | ).annotate({ |
| 13574 | description: | 16174 | description: |
| 13575 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 16175 | "This is the path to the user's config.toml file, though it is not guaranteed to exist.", |
| 13576 | }), | 16176 | }), |
| 13577 | profile: Schema.optionalKey( | 16177 | profile: Schema.optionalKey( |
| 13578 | Schema.Union([ | 16178 | Schema.Union([ |
| ... | @@ -13620,7 +16220,7 @@ export const V2ConfigReadResponse__ConfigLayerSource = Schema.Union( | ... | @@ -13620,7 +16220,7 @@ export const V2ConfigReadResponse__ConfigLayerSource = Schema.Union( |
| 13620 | }).annotate({ title: "LegacyManagedConfigTomlFromMdmConfigLayerSource" }), | 16220 | }).annotate({ title: "LegacyManagedConfigTomlFromMdmConfigLayerSource" }), |
| 13621 | ], | 16221 | ], |
| 13622 | { mode: "oneOf" }, | 16222 | { mode: "oneOf" }, |
| 13623 | ); | 16223 | ).annotate({ identifier: "V2ConfigReadResponse__ConfigLayerSource" }); |
| 13624 | | 16224 | |
| 13625 | export type V2ConfigReadResponse__AppsDefaultConfig = { | 16225 | export type V2ConfigReadResponse__AppsDefaultConfig = { |
| 13626 | readonly approvals_reviewer?: V2ConfigReadResponse__ApprovalsReviewer | null; | 16226 | readonly approvals_reviewer?: V2ConfigReadResponse__ApprovalsReviewer | null; |
| ... | @@ -13639,31 +16239,7 @@ export const V2ConfigReadResponse__AppsDefaultConfig = Schema.Struct({ | ... | @@ -13639,31 +16239,7 @@ export const V2ConfigReadResponse__AppsDefaultConfig = Schema.Struct({ |
| 13639 | destructive_enabled: Schema.optionalKey(Schema.Boolean.annotate({ default: true })), | 16239 | destructive_enabled: Schema.optionalKey(Schema.Boolean.annotate({ default: true })), |
| 13640 | enabled: Schema.optionalKey(Schema.Boolean.annotate({ default: true })), | 16240 | enabled: Schema.optionalKey(Schema.Boolean.annotate({ default: true })), |
| 13641 | open_world_enabled: Schema.optionalKey(Schema.Boolean.annotate({ default: true })), | 16241 | open_world_enabled: Schema.optionalKey(Schema.Boolean.annotate({ default: true })), |
| 13642 | }); | 16242 | }).annotate({ identifier: "V2ConfigReadResponse__AppsDefaultConfig" }); |
| 13643 | | | |
| 13644 | export type V2ConfigReadResponse__WebSearchToolConfig = { | | |
| 13645 | readonly allowed_domains?: ReadonlyArray<string> | null; | | |
| 13646 | readonly context_size?: V2ConfigReadResponse__WebSearchContextSize | null; | | |
| 13647 | readonly location?: V2ConfigReadResponse__WebSearchLocation | null; | | |
| 13648 | }; | | |
| 13649 | export const V2ConfigReadResponse__WebSearchToolConfig = Schema.Struct({ | | |
| 13650 | allowed_domains: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 13651 | context_size: Schema.optionalKey( | | |
| 13652 | Schema.Union([V2ConfigReadResponse__WebSearchContextSize, Schema.Null]), | | |
| 13653 | ), | | |
| 13654 | location: Schema.optionalKey( | | |
| 13655 | Schema.Union([V2ConfigReadResponse__WebSearchLocation, Schema.Null]), | | |
| 13656 | ), | | |
| 13657 | }); | | |
| 13658 | | | |
| 13659 | export type V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup = { | | |
| 13660 | readonly hooks: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookHandler>; | | |
| 13661 | readonly matcher?: string | null; | | |
| 13662 | }; | | |
| 13663 | export const V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup = Schema.Struct({ | | |
| 13664 | hooks: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookHandler), | | |
| 13665 | matcher: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 13666 | }); | | |
| 13667 | | 16243 | |
| 13668 | export type V2ConfigRequirementsReadResponse__NewThreadModelDefaults = { | 16244 | export type V2ConfigRequirementsReadResponse__NewThreadModelDefaults = { |
| 13669 | readonly model?: string | null; | 16245 | readonly model?: string | null; |
| ... | @@ -13676,7 +16252,16 @@ export const V2ConfigRequirementsReadResponse__NewThreadModelDefaults = Schema.S | ... | @@ -13676,7 +16252,16 @@ export const V2ConfigRequirementsReadResponse__NewThreadModelDefaults = Schema.S |
| 13676 | Schema.Union([V2ConfigRequirementsReadResponse__ReasoningEffort, Schema.Null]), | 16252 | Schema.Union([V2ConfigRequirementsReadResponse__ReasoningEffort, Schema.Null]), |
| 13677 | ), | 16253 | ), |
| 13678 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16254 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13679 | }); | 16255 | }).annotate({ identifier: "V2ConfigRequirementsReadResponse__NewThreadModelDefaults" }); |
| | 16256 | |
| | 16257 | export type V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup = { |
| | 16258 | readonly hooks: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookHandler>; |
| | 16259 | readonly matcher?: string | null; |
| | 16260 | }; |
| | 16261 | export const V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup = Schema.Struct({ |
| | 16262 | hooks: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookHandler), |
| | 16263 | matcher: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 16264 | }).annotate({ identifier: "V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup" }); |
| 13680 | | 16265 | |
| 13681 | export type V2ConfigWarningNotification__TextRange = { | 16266 | export type V2ConfigWarningNotification__TextRange = { |
| 13682 | readonly end: V2ConfigWarningNotification__TextPosition; | 16267 | readonly end: V2ConfigWarningNotification__TextPosition; |
| ... | @@ -13685,13 +16270,17 @@ export type V2ConfigWarningNotification__TextRange = { | ... | @@ -13685,13 +16270,17 @@ export type V2ConfigWarningNotification__TextRange = { |
| 13685 | export const V2ConfigWarningNotification__TextRange = Schema.Struct({ | 16270 | export const V2ConfigWarningNotification__TextRange = Schema.Struct({ |
| 13686 | end: V2ConfigWarningNotification__TextPosition, | 16271 | end: V2ConfigWarningNotification__TextPosition, |
| 13687 | start: V2ConfigWarningNotification__TextPosition, | 16272 | start: V2ConfigWarningNotification__TextPosition, |
| 13688 | }); | 16273 | }).annotate({ identifier: "V2ConfigWarningNotification__TextRange" }); |
| 13689 | | 16274 | |
| 13690 | export type V2ConfigWriteResponse__ConfigLayerSource = | 16275 | export type V2ConfigWriteResponse__ConfigLayerSource = |
| 13691 | | { readonly domain: string; readonly key: string; readonly type: "mdm" } | 16276 | | { readonly domain: string; readonly key: string; readonly type: "mdm" } |
| 13692 | | { readonly file: string; readonly type: "system" } | 16277 | | { readonly file: V2ConfigWriteResponse__AbsolutePathBuf; readonly type: "system" } |
| 13693 | | { readonly id: string; readonly name: string; readonly type: "enterpriseManaged" } | 16278 | | { readonly id: string; readonly name: string; readonly type: "enterpriseManaged" } |
| 13694 | | { readonly file: string; readonly profile?: string | null; readonly type: "user" } | 16279 | | { |
| | 16280 | readonly file: V2ConfigWriteResponse__AbsolutePathBuf; |
| | 16281 | readonly profile?: string | null; |
| | 16282 | readonly type: "user"; |
| | 16283 | } |
| 13695 | | { readonly dotCodexFolder: V2ConfigWriteResponse__AbsolutePathBuf; readonly type: "project" } | 16284 | | { readonly dotCodexFolder: V2ConfigWriteResponse__AbsolutePathBuf; readonly type: "project" } |
| 13696 | | { readonly type: "sessionFlags" } | 16285 | | { readonly type: "sessionFlags" } |
| 13697 | | { | 16286 | | { |
| ... | @@ -13710,9 +16299,12 @@ export const V2ConfigWriteResponse__ConfigLayerSource = Schema.Union( | ... | @@ -13710,9 +16299,12 @@ export const V2ConfigWriteResponse__ConfigLayerSource = Schema.Union( |
| 13710 | description: "Managed preferences layer delivered by MDM (macOS only).", | 16299 | description: "Managed preferences layer delivered by MDM (macOS only).", |
| 13711 | }), | 16300 | }), |
| 13712 | Schema.Struct({ | 16301 | Schema.Struct({ |
| 13713 | file: Schema.String.annotate({ | 16302 | file: Schema.suspend( |
| | 16303 | (): Schema.Codec<V2ConfigWriteResponse__AbsolutePathBuf> => |
| | 16304 | V2ConfigWriteResponse__AbsolutePathBuf, |
| | 16305 | ).annotate({ |
| 13714 | description: | 16306 | description: |
| 13715 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 16307 | "This is the path to the system config.toml file, though it is not guaranteed to exist.", |
| 13716 | }), | 16308 | }), |
| 13717 | type: Schema.Literal("system").annotate({ title: "SystemConfigLayerSourceType" }), | 16309 | type: Schema.Literal("system").annotate({ title: "SystemConfigLayerSourceType" }), |
| 13718 | }).annotate({ | 16310 | }).annotate({ |
| ... | @@ -13733,9 +16325,12 @@ export const V2ConfigWriteResponse__ConfigLayerSource = Schema.Union( | ... | @@ -13733,9 +16325,12 @@ export const V2ConfigWriteResponse__ConfigLayerSource = Schema.Union( |
| 13733 | description: "Enterprise-managed config layer delivered by the cloud config bundle.", | 16325 | description: "Enterprise-managed config layer delivered by the cloud config bundle.", |
| 13734 | }), | 16326 | }), |
| 13735 | Schema.Struct({ | 16327 | Schema.Struct({ |
| 13736 | file: Schema.String.annotate({ | 16328 | file: Schema.suspend( |
| | 16329 | (): Schema.Codec<V2ConfigWriteResponse__AbsolutePathBuf> => |
| | 16330 | V2ConfigWriteResponse__AbsolutePathBuf, |
| | 16331 | ).annotate({ |
| 13737 | description: | 16332 | description: |
| 13738 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 16333 | "This is the path to the user's config.toml file, though it is not guaranteed to exist.", |
| 13739 | }), | 16334 | }), |
| 13740 | profile: Schema.optionalKey( | 16335 | profile: Schema.optionalKey( |
| 13741 | Schema.Union([ | 16336 | Schema.Union([ |
| ... | @@ -13783,7 +16378,7 @@ export const V2ConfigWriteResponse__ConfigLayerSource = Schema.Union( | ... | @@ -13783,7 +16378,7 @@ export const V2ConfigWriteResponse__ConfigLayerSource = Schema.Union( |
| 13783 | }).annotate({ title: "LegacyManagedConfigTomlFromMdmConfigLayerSource" }), | 16378 | }).annotate({ title: "LegacyManagedConfigTomlFromMdmConfigLayerSource" }), |
| 13784 | ], | 16379 | ], |
| 13785 | { mode: "oneOf" }, | 16380 | { mode: "oneOf" }, |
| 13786 | ); | 16381 | ).annotate({ identifier: "V2ConfigWriteResponse__ConfigLayerSource" }); |
| 13787 | | 16382 | |
| 13788 | export type V2ErrorNotification__CodexErrorInfo = | 16383 | export type V2ErrorNotification__CodexErrorInfo = |
| 13789 | | "contextWindowExceeded" | 16384 | | "contextWindowExceeded" |
| ... | @@ -13826,8 +16421,12 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union( | ... | @@ -13826,8 +16421,12 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union( |
| 13826 | httpStatusCode: Schema.optionalKey( | 16421 | httpStatusCode: Schema.optionalKey( |
| 13827 | Schema.Union([ | 16422 | Schema.Union([ |
| 13828 | Schema.Number.annotate({ format: "uint16" }) | 16423 | Schema.Number.annotate({ format: "uint16" }) |
| 13829 | .check(Schema.isInt()) | 16424 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 13830 | .check(Schema.isGreaterThanOrEqualTo(0)), | 16425 | .check( |
| | 16426 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 16427 | expected: "a value greater than or equal to 0", |
| | 16428 | }), |
| | 16429 | ), |
| 13831 | Schema.Null, | 16430 | Schema.Null, |
| 13832 | ]), | 16431 | ]), |
| 13833 | ), | 16432 | ), |
| ... | @@ -13838,8 +16437,12 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union( | ... | @@ -13838,8 +16437,12 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union( |
| 13838 | httpStatusCode: Schema.optionalKey( | 16437 | httpStatusCode: Schema.optionalKey( |
| 13839 | Schema.Union([ | 16438 | Schema.Union([ |
| 13840 | Schema.Number.annotate({ format: "uint16" }) | 16439 | Schema.Number.annotate({ format: "uint16" }) |
| 13841 | .check(Schema.isInt()) | 16440 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 13842 | .check(Schema.isGreaterThanOrEqualTo(0)), | 16441 | .check( |
| | 16442 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 16443 | expected: "a value greater than or equal to 0", |
| | 16444 | }), |
| | 16445 | ), |
| 13843 | Schema.Null, | 16446 | Schema.Null, |
| 13844 | ]), | 16447 | ]), |
| 13845 | ), | 16448 | ), |
| ... | @@ -13853,8 +16456,12 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union( | ... | @@ -13853,8 +16456,12 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union( |
| 13853 | httpStatusCode: Schema.optionalKey( | 16456 | httpStatusCode: Schema.optionalKey( |
| 13854 | Schema.Union([ | 16457 | Schema.Union([ |
| 13855 | Schema.Number.annotate({ format: "uint16" }) | 16458 | Schema.Number.annotate({ format: "uint16" }) |
| 13856 | .check(Schema.isInt()) | 16459 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 13857 | .check(Schema.isGreaterThanOrEqualTo(0)), | 16460 | .check( |
| | 16461 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 16462 | expected: "a value greater than or equal to 0", |
| | 16463 | }), |
| | 16464 | ), |
| 13858 | Schema.Null, | 16465 | Schema.Null, |
| 13859 | ]), | 16466 | ]), |
| 13860 | ), | 16467 | ), |
| ... | @@ -13869,8 +16476,12 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union( | ... | @@ -13869,8 +16476,12 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union( |
| 13869 | httpStatusCode: Schema.optionalKey( | 16476 | httpStatusCode: Schema.optionalKey( |
| 13870 | Schema.Union([ | 16477 | Schema.Union([ |
| 13871 | Schema.Number.annotate({ format: "uint16" }) | 16478 | Schema.Number.annotate({ format: "uint16" }) |
| 13872 | .check(Schema.isInt()) | 16479 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 13873 | .check(Schema.isGreaterThanOrEqualTo(0)), | 16480 | .check( |
| | 16481 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 16482 | expected: "a value greater than or equal to 0", |
| | 16483 | }), |
| | 16484 | ), |
| 13874 | Schema.Null, | 16485 | Schema.Null, |
| 13875 | ]), | 16486 | ]), |
| 13876 | ), | 16487 | ), |
| ... | @@ -13893,8 +16504,61 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union( | ... | @@ -13893,8 +16504,61 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union( |
| 13893 | ).annotate({ | 16504 | ).annotate({ |
| 13894 | description: | 16505 | description: |
| 13895 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", | 16506 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", |
| | 16507 | identifier: "V2ErrorNotification__CodexErrorInfo", |
| 13896 | }); | 16508 | }); |
| 13897 | | 16509 | |
| | 16510 | export type V2ExperimentalFeatureListResponse__ExperimentalFeature = { |
| | 16511 | readonly announcement?: string | null; |
| | 16512 | readonly defaultEnabled: boolean; |
| | 16513 | readonly description?: string | null; |
| | 16514 | readonly displayName?: string | null; |
| | 16515 | readonly enabled: boolean; |
| | 16516 | readonly name: string; |
| | 16517 | readonly stage: V2ExperimentalFeatureListResponse__ExperimentalFeatureStage; |
| | 16518 | }; |
| | 16519 | export const V2ExperimentalFeatureListResponse__ExperimentalFeature = Schema.Struct({ |
| | 16520 | announcement: Schema.optionalKey( |
| | 16521 | Schema.Union([ |
| | 16522 | Schema.String.annotate({ |
| | 16523 | description: |
| | 16524 | "Announcement copy shown to users when the feature is introduced. Null when this feature is not in beta.", |
| | 16525 | }), |
| | 16526 | Schema.Null, |
| | 16527 | ]), |
| | 16528 | ), |
| | 16529 | defaultEnabled: Schema.Boolean.annotate({ |
| | 16530 | description: "Whether this feature is enabled by default.", |
| | 16531 | }), |
| | 16532 | description: Schema.optionalKey( |
| | 16533 | Schema.Union([ |
| | 16534 | Schema.String.annotate({ |
| | 16535 | description: |
| | 16536 | "Short summary describing what the feature does. Null when this feature is not in beta.", |
| | 16537 | }), |
| | 16538 | Schema.Null, |
| | 16539 | ]), |
| | 16540 | ), |
| | 16541 | displayName: Schema.optionalKey( |
| | 16542 | Schema.Union([ |
| | 16543 | Schema.String.annotate({ |
| | 16544 | description: |
| | 16545 | "User-facing display name shown in the experimental features UI. Null when this feature is not in beta.", |
| | 16546 | }), |
| | 16547 | Schema.Null, |
| | 16548 | ]), |
| | 16549 | ), |
| | 16550 | enabled: Schema.Boolean.annotate({ |
| | 16551 | description: "Whether this feature is currently enabled in the loaded config.", |
| | 16552 | }), |
| | 16553 | name: Schema.String.annotate({ |
| | 16554 | description: "Stable key used in config.toml and CLI flag toggles.", |
| | 16555 | }), |
| | 16556 | stage: Schema.suspend( |
| | 16557 | (): Schema.Codec<V2ExperimentalFeatureListResponse__ExperimentalFeatureStage> => |
| | 16558 | V2ExperimentalFeatureListResponse__ExperimentalFeatureStage, |
| | 16559 | ).annotate({ description: "Lifecycle stage of this feature flag." }), |
| | 16560 | }).annotate({ identifier: "V2ExperimentalFeatureListResponse__ExperimentalFeature" }); |
| | 16561 | |
| 13898 | export type V2ExternalAgentConfigDetectResponse__MigrationDetails = { | 16562 | export type V2ExternalAgentConfigDetectResponse__MigrationDetails = { |
| 13899 | readonly commands?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__CommandMigration>; | 16563 | readonly commands?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__CommandMigration>; |
| 13900 | readonly hooks?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__HookMigration>; | 16564 | readonly hooks?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__HookMigration>; |
| ... | @@ -13928,7 +16592,7 @@ export const V2ExternalAgentConfigDetectResponse__MigrationDetails = Schema.Stru | ... | @@ -13928,7 +16592,7 @@ export const V2ExternalAgentConfigDetectResponse__MigrationDetails = Schema.Stru |
| 13928 | subagents: Schema.optionalKey( | 16592 | subagents: Schema.optionalKey( |
| 13929 | Schema.Array(V2ExternalAgentConfigDetectResponse__SubagentMigration).annotate({ default: [] }), | 16593 | Schema.Array(V2ExternalAgentConfigDetectResponse__SubagentMigration).annotate({ default: [] }), |
| 13930 | ), | 16594 | ), |
| 13931 | }); | 16595 | }).annotate({ identifier: "V2ExternalAgentConfigDetectResponse__MigrationDetails" }); |
| 13932 | | 16596 | |
| 13933 | export type V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportItemTypeFailure = | 16597 | export type V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportItemTypeFailure = |
| 13934 | { | 16598 | { |
| ... | @@ -13950,6 +16614,9 @@ export const V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConf | ... | @@ -13950,6 +16614,9 @@ export const V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConf |
| 13950 | message: Schema.String, | 16614 | message: Schema.String, |
| 13951 | source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16615 | source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13952 | subErrorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16616 | subErrorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 16617 | }).annotate({ |
| | 16618 | identifier: |
| | 16619 | "V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportItemTypeFailure", |
| 13953 | }); | 16620 | }); |
| 13954 | | 16621 | |
| 13955 | export type V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportItemTypeSuccess = | 16622 | export type V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportItemTypeSuccess = |
| ... | @@ -13966,6 +16633,31 @@ export const V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConf | ... | @@ -13966,6 +16633,31 @@ export const V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConf |
| 13966 | V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigMigrationItemType, | 16633 | V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigMigrationItemType, |
| 13967 | source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16634 | source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13968 | target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16635 | target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 16636 | }).annotate({ |
| | 16637 | identifier: |
| | 16638 | "V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportItemTypeSuccess", |
| | 16639 | }); |
| | 16640 | |
| | 16641 | export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentImportedConnectorCandidate = |
| | 16642 | { |
| | 16643 | readonly name: string; |
| | 16644 | readonly sessionCount: number; |
| | 16645 | readonly source: V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentImportedConnectorSource; |
| | 16646 | }; |
| | 16647 | export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentImportedConnectorCandidate = |
| | 16648 | Schema.Struct({ |
| | 16649 | name: Schema.String, |
| | 16650 | sessionCount: Schema.Number.annotate({ format: "uint32" }) |
| | 16651 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 16652 | .check( |
| | 16653 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 16654 | expected: "a value greater than or equal to 0", |
| | 16655 | }), |
| | 16656 | ), |
| | 16657 | source: V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentImportedConnectorSource, |
| | 16658 | }).annotate({ |
| | 16659 | identifier: |
| | 16660 | "V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentImportedConnectorCandidate", |
| 13969 | }); | 16661 | }); |
| 13970 | | 16662 | |
| 13971 | export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeFailure = | 16663 | export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeFailure = |
| ... | @@ -13988,6 +16680,9 @@ export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConf | ... | @@ -13988,6 +16680,9 @@ export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConf |
| 13988 | message: Schema.String, | 16680 | message: Schema.String, |
| 13989 | source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16681 | source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13990 | subErrorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16682 | subErrorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 16683 | }).annotate({ |
| | 16684 | identifier: |
| | 16685 | "V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeFailure", |
| 13991 | }); | 16686 | }); |
| 13992 | | 16687 | |
| 13993 | export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeSuccess = | 16688 | export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeSuccess = |
| ... | @@ -14004,21 +16699,9 @@ export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConf | ... | @@ -14004,21 +16699,9 @@ export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConf |
| 14004 | V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigMigrationItemType, | 16699 | V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigMigrationItemType, |
| 14005 | source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16700 | source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 14006 | target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16701 | target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 14007 | }); | 16702 | }).annotate({ |
| 14008 | | 16703 | identifier: |
| 14009 | export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentImportedConnectorCandidate = | 16704 | "V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeSuccess", |
| 14010 | { | | |
| 14011 | readonly name: string; | | |
| 14012 | readonly sessionCount: number; | | |
| 14013 | readonly source: V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentImportedConnectorSource; | | |
| 14014 | }; | | |
| 14015 | export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentImportedConnectorCandidate = | | |
| 14016 | Schema.Struct({ | | |
| 14017 | name: Schema.String, | | |
| 14018 | sessionCount: Schema.Number.annotate({ format: "uint32" }) | | |
| 14019 | .check(Schema.isInt()) | | |
| 14020 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 14021 | source: V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentImportedConnectorSource, | | |
| 14022 | }); | 16705 | }); |
| 14023 | | 16706 | |
| 14024 | export type V2ExternalAgentConfigImportParams__MigrationDetails = { | 16707 | export type V2ExternalAgentConfigImportParams__MigrationDetails = { |
| ... | @@ -14054,7 +16737,7 @@ export const V2ExternalAgentConfigImportParams__MigrationDetails = Schema.Struct | ... | @@ -14054,7 +16737,7 @@ export const V2ExternalAgentConfigImportParams__MigrationDetails = Schema.Struct |
| 14054 | subagents: Schema.optionalKey( | 16737 | subagents: Schema.optionalKey( |
| 14055 | Schema.Array(V2ExternalAgentConfigImportParams__SubagentMigration).annotate({ default: [] }), | 16738 | Schema.Array(V2ExternalAgentConfigImportParams__SubagentMigration).annotate({ default: [] }), |
| 14056 | ), | 16739 | ), |
| 14057 | }); | 16740 | }).annotate({ identifier: "V2ExternalAgentConfigImportParams__MigrationDetails" }); |
| 14058 | | 16741 | |
| 14059 | export type V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportItemTypeFailure = | 16742 | export type V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportItemTypeFailure = |
| 14060 | { | 16743 | { |
| ... | @@ -14075,6 +16758,9 @@ export const V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfi | ... | @@ -14075,6 +16758,9 @@ export const V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfi |
| 14075 | message: Schema.String, | 16758 | message: Schema.String, |
| 14076 | source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16759 | source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 14077 | subErrorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16760 | subErrorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 16761 | }).annotate({ |
| | 16762 | identifier: |
| | 16763 | "V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportItemTypeFailure", |
| 14078 | }); | 16764 | }); |
| 14079 | | 16765 | |
| 14080 | export type V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportItemTypeSuccess = | 16766 | export type V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportItemTypeSuccess = |
| ... | @@ -14090,6 +16776,9 @@ export const V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfi | ... | @@ -14090,6 +16776,9 @@ export const V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfi |
| 14090 | itemType: V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigMigrationItemType, | 16776 | itemType: V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigMigrationItemType, |
| 14091 | source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16777 | source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 14092 | target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16778 | target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 16779 | }).annotate({ |
| | 16780 | identifier: |
| | 16781 | "V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportItemTypeSuccess", |
| 14093 | }); | 16782 | }); |
| 14094 | | 16783 | |
| 14095 | export type V2FileChangePatchUpdatedNotification__FileUpdateChange = { | 16784 | export type V2FileChangePatchUpdatedNotification__FileUpdateChange = { |
| ... | @@ -14101,7 +16790,7 @@ export const V2FileChangePatchUpdatedNotification__FileUpdateChange = Schema.Str | ... | @@ -14101,7 +16790,7 @@ export const V2FileChangePatchUpdatedNotification__FileUpdateChange = Schema.Str |
| 14101 | diff: Schema.String, | 16790 | diff: Schema.String, |
| 14102 | kind: V2FileChangePatchUpdatedNotification__PatchChangeKind, | 16791 | kind: V2FileChangePatchUpdatedNotification__PatchChangeKind, |
| 14103 | path: Schema.String, | 16792 | path: Schema.String, |
| 14104 | }); | 16793 | }).annotate({ identifier: "V2FileChangePatchUpdatedNotification__FileUpdateChange" }); |
| 14105 | | 16794 | |
| 14106 | export type V2GetAccountRateLimitsResponse__RateLimitResetCredit = { | 16795 | export type V2GetAccountRateLimitsResponse__RateLimitResetCredit = { |
| 14107 | readonly description?: string | null; | 16796 | readonly description?: string | null; |
| ... | @@ -14128,14 +16817,14 @@ export const V2GetAccountRateLimitsResponse__RateLimitResetCredit = Schema.Struc | ... | @@ -14128,14 +16817,14 @@ export const V2GetAccountRateLimitsResponse__RateLimitResetCredit = Schema.Struc |
| 14128 | description: | 16817 | description: |
| 14129 | "Unix timestamp in seconds when the credit expires, or `null` if it does not expire.", | 16818 | "Unix timestamp in seconds when the credit expires, or `null` if it does not expire.", |
| 14130 | format: "int64", | 16819 | format: "int64", |
| 14131 | }).check(Schema.isInt()), | 16820 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 14132 | Schema.Null, | 16821 | Schema.Null, |
| 14133 | ]), | 16822 | ]), |
| 14134 | ), | 16823 | ), |
| 14135 | grantedAt: Schema.Number.annotate({ | 16824 | grantedAt: Schema.Number.annotate({ |
| 14136 | description: "Unix timestamp in seconds when the credit was granted.", | 16825 | description: "Unix timestamp in seconds when the credit was granted.", |
| 14137 | format: "int64", | 16826 | format: "int64", |
| 14138 | }).check(Schema.isInt()), | 16827 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 14139 | id: Schema.String.annotate({ description: "Opaque backend identifier for this reset credit." }), | 16828 | id: Schema.String.annotate({ description: "Opaque backend identifier for this reset credit." }), |
| 14140 | resetType: V2GetAccountRateLimitsResponse__RateLimitResetType, | 16829 | resetType: V2GetAccountRateLimitsResponse__RateLimitResetType, |
| 14141 | status: V2GetAccountRateLimitsResponse__RateLimitResetCreditStatus, | 16830 | status: V2GetAccountRateLimitsResponse__RateLimitResetCreditStatus, |
| ... | @@ -14147,7 +16836,7 @@ export const V2GetAccountRateLimitsResponse__RateLimitResetCredit = Schema.Struc | ... | @@ -14147,7 +16836,7 @@ export const V2GetAccountRateLimitsResponse__RateLimitResetCredit = Schema.Struc |
| 14147 | Schema.Null, | 16836 | Schema.Null, |
| 14148 | ]), | 16837 | ]), |
| 14149 | ), | 16838 | ), |
| 14150 | }); | 16839 | }).annotate({ identifier: "V2GetAccountRateLimitsResponse__RateLimitResetCredit" }); |
| 14151 | | 16840 | |
| 14152 | export type V2GetAccountRateLimitsResponse__RateLimitSnapshot = { | 16841 | export type V2GetAccountRateLimitsResponse__RateLimitSnapshot = { |
| 14153 | readonly credits?: V2GetAccountRateLimitsResponse__CreditsSnapshot | null; | 16842 | readonly credits?: V2GetAccountRateLimitsResponse__CreditsSnapshot | null; |
| ... | @@ -14190,7 +16879,7 @@ export const V2GetAccountRateLimitsResponse__RateLimitSnapshot = Schema.Struct({ | ... | @@ -14190,7 +16879,7 @@ export const V2GetAccountRateLimitsResponse__RateLimitSnapshot = Schema.Struct({ |
| 14190 | Schema.Null, | 16879 | Schema.Null, |
| 14191 | ]), | 16880 | ]), |
| 14192 | ), | 16881 | ), |
| 14193 | }); | 16882 | }).annotate({ identifier: "V2GetAccountRateLimitsResponse__RateLimitSnapshot" }); |
| 14194 | | 16883 | |
| 14195 | export type V2GetAccountResponse__Account = | 16884 | export type V2GetAccountResponse__Account = |
| 14196 | | { readonly type: "apiKey" } | 16885 | | { readonly type: "apiKey" } |
| ... | @@ -14216,7 +16905,7 @@ export const V2GetAccountResponse__Account = Schema.Union( | ... | @@ -14216,7 +16905,7 @@ export const V2GetAccountResponse__Account = Schema.Union( |
| 14216 | }).annotate({ title: "AmazonBedrockAccount" }), | 16905 | }).annotate({ title: "AmazonBedrockAccount" }), |
| 14217 | ], | 16906 | ], |
| 14218 | { mode: "oneOf" }, | 16907 | { mode: "oneOf" }, |
| 14219 | ); | 16908 | ).annotate({ identifier: "V2GetAccountResponse__Account" }); |
| 14220 | | 16909 | |
| 14221 | export type V2GetWorkspaceMessagesResponse__WorkspaceMessage = { | 16910 | export type V2GetWorkspaceMessagesResponse__WorkspaceMessage = { |
| 14222 | readonly archivedAt?: number | null; | 16911 | readonly archivedAt?: number | null; |
| ... | @@ -14231,7 +16920,7 @@ export const V2GetWorkspaceMessagesResponse__WorkspaceMessage = Schema.Struct({ | ... | @@ -14231,7 +16920,7 @@ export const V2GetWorkspaceMessagesResponse__WorkspaceMessage = Schema.Struct({ |
| 14231 | Schema.Number.annotate({ | 16920 | Schema.Number.annotate({ |
| 14232 | description: "Unix timestamp (in seconds) when the message was archived.", | 16921 | description: "Unix timestamp (in seconds) when the message was archived.", |
| 14233 | format: "int64", | 16922 | format: "int64", |
| 14234 | }).check(Schema.isInt()), | 16923 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 14235 | Schema.Null, | 16924 | Schema.Null, |
| 14236 | ]), | 16925 | ]), |
| 14237 | ), | 16926 | ), |
| ... | @@ -14240,14 +16929,14 @@ export const V2GetWorkspaceMessagesResponse__WorkspaceMessage = Schema.Struct({ | ... | @@ -14240,14 +16929,14 @@ export const V2GetWorkspaceMessagesResponse__WorkspaceMessage = Schema.Struct({ |
| 14240 | Schema.Number.annotate({ | 16929 | Schema.Number.annotate({ |
| 14241 | description: "Unix timestamp (in seconds) when the message was created.", | 16930 | description: "Unix timestamp (in seconds) when the message was created.", |
| 14242 | format: "int64", | 16931 | format: "int64", |
| 14243 | }).check(Schema.isInt()), | 16932 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 14244 | Schema.Null, | 16933 | Schema.Null, |
| 14245 | ]), | 16934 | ]), |
| 14246 | ), | 16935 | ), |
| 14247 | messageBody: Schema.String, | 16936 | messageBody: Schema.String, |
| 14248 | messageId: Schema.String, | 16937 | messageId: Schema.String, |
| 14249 | messageType: V2GetWorkspaceMessagesResponse__WorkspaceMessageType, | 16938 | messageType: V2GetWorkspaceMessagesResponse__WorkspaceMessageType, |
| 14250 | }); | 16939 | }).annotate({ identifier: "V2GetWorkspaceMessagesResponse__WorkspaceMessage" }); |
| 14251 | | 16940 | |
| 14252 | export type V2HookCompletedNotification__HookOutputEntry = { | 16941 | export type V2HookCompletedNotification__HookOutputEntry = { |
| 14253 | readonly kind: V2HookCompletedNotification__HookOutputEntryKind; | 16942 | readonly kind: V2HookCompletedNotification__HookOutputEntryKind; |
| ... | @@ -14256,7 +16945,7 @@ export type V2HookCompletedNotification__HookOutputEntry = { | ... | @@ -14256,7 +16945,7 @@ export type V2HookCompletedNotification__HookOutputEntry = { |
| 14256 | export const V2HookCompletedNotification__HookOutputEntry = Schema.Struct({ | 16945 | export const V2HookCompletedNotification__HookOutputEntry = Schema.Struct({ |
| 14257 | kind: V2HookCompletedNotification__HookOutputEntryKind, | 16946 | kind: V2HookCompletedNotification__HookOutputEntryKind, |
| 14258 | text: Schema.String, | 16947 | text: Schema.String, |
| 14259 | }); | 16948 | }).annotate({ identifier: "V2HookCompletedNotification__HookOutputEntry" }); |
| 14260 | | 16949 | |
| 14261 | export type V2HooksListResponse__HookMetadata = { | 16950 | export type V2HooksListResponse__HookMetadata = { |
| 14262 | readonly command?: string | null; | 16951 | readonly command?: string | null; |
| ... | @@ -14278,7 +16967,9 @@ export type V2HooksListResponse__HookMetadata = { | ... | @@ -14278,7 +16967,9 @@ export type V2HooksListResponse__HookMetadata = { |
| 14278 | export const V2HooksListResponse__HookMetadata = Schema.Struct({ | 16967 | export const V2HooksListResponse__HookMetadata = Schema.Struct({ |
| 14279 | command: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16968 | command: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 14280 | currentHash: Schema.String, | 16969 | currentHash: Schema.String, |
| 14281 | displayOrder: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 16970 | displayOrder: Schema.Number.annotate({ format: "int64" }).check( |
| | 16971 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 16972 | ), |
| 14282 | enabled: Schema.Boolean, | 16973 | enabled: Schema.Boolean, |
| 14283 | eventName: V2HooksListResponse__HookEventName, | 16974 | eventName: V2HooksListResponse__HookEventName, |
| 14284 | handlerType: V2HooksListResponse__HookHandlerType, | 16975 | handlerType: V2HooksListResponse__HookHandlerType, |
| ... | @@ -14290,10 +16981,12 @@ export const V2HooksListResponse__HookMetadata = Schema.Struct({ | ... | @@ -14290,10 +16981,12 @@ export const V2HooksListResponse__HookMetadata = Schema.Struct({ |
| 14290 | sourcePath: V2HooksListResponse__AbsolutePathBuf, | 16981 | sourcePath: V2HooksListResponse__AbsolutePathBuf, |
| 14291 | statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16982 | statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 14292 | timeoutSec: Schema.Number.annotate({ format: "uint64" }) | 16983 | timeoutSec: Schema.Number.annotate({ format: "uint64" }) |
| 14293 | .check(Schema.isInt()) | 16984 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 14294 | .check(Schema.isGreaterThanOrEqualTo(0)), | 16985 | .check( |
| | 16986 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 16987 | ), |
| 14295 | trustStatus: V2HooksListResponse__HookTrustStatus, | 16988 | trustStatus: V2HooksListResponse__HookTrustStatus, |
| 14296 | }); | 16989 | }).annotate({ identifier: "V2HooksListResponse__HookMetadata" }); |
| 14297 | | 16990 | |
| 14298 | export type V2HookStartedNotification__HookOutputEntry = { | 16991 | export type V2HookStartedNotification__HookOutputEntry = { |
| 14299 | readonly kind: V2HookStartedNotification__HookOutputEntryKind; | 16992 | readonly kind: V2HookStartedNotification__HookOutputEntryKind; |
| ... | @@ -14302,7 +16995,35 @@ export type V2HookStartedNotification__HookOutputEntry = { | ... | @@ -14302,7 +16995,35 @@ export type V2HookStartedNotification__HookOutputEntry = { |
| 14302 | export const V2HookStartedNotification__HookOutputEntry = Schema.Struct({ | 16995 | export const V2HookStartedNotification__HookOutputEntry = Schema.Struct({ |
| 14303 | kind: V2HookStartedNotification__HookOutputEntryKind, | 16996 | kind: V2HookStartedNotification__HookOutputEntryKind, |
| 14304 | text: Schema.String, | 16997 | text: Schema.String, |
| 14305 | }); | 16998 | }).annotate({ identifier: "V2HookStartedNotification__HookOutputEntry" }); |
| | 16999 | |
| | 17000 | export type V2ItemCompletedNotification__TextElement = { |
| | 17001 | readonly byteRange: V2ItemCompletedNotification__ByteRange; |
| | 17002 | readonly placeholder?: string | null; |
| | 17003 | }; |
| | 17004 | export const V2ItemCompletedNotification__TextElement = Schema.Struct({ |
| | 17005 | byteRange: Schema.suspend( |
| | 17006 | (): Schema.Codec<V2ItemCompletedNotification__ByteRange> => |
| | 17007 | V2ItemCompletedNotification__ByteRange, |
| | 17008 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), |
| | 17009 | placeholder: Schema.optionalKey( |
| | 17010 | Schema.Union([ |
| | 17011 | Schema.String.annotate({ |
| | 17012 | description: "Optional human-readable placeholder for the element, displayed in the UI.", |
| | 17013 | }), |
| | 17014 | Schema.Null, |
| | 17015 | ]), |
| | 17016 | ), |
| | 17017 | }).annotate({ identifier: "V2ItemCompletedNotification__TextElement" }); |
| | 17018 | |
| | 17019 | export type V2ItemCompletedNotification__MemoryCitation = { |
| | 17020 | readonly entries: ReadonlyArray<V2ItemCompletedNotification__MemoryCitationEntry>; |
| | 17021 | readonly threadIds: ReadonlyArray<string>; |
| | 17022 | }; |
| | 17023 | export const V2ItemCompletedNotification__MemoryCitation = Schema.Struct({ |
| | 17024 | entries: Schema.Array(V2ItemCompletedNotification__MemoryCitationEntry), |
| | 17025 | threadIds: Schema.Array(Schema.String), |
| | 17026 | }).annotate({ identifier: "V2ItemCompletedNotification__MemoryCitation" }); |
| 14306 | | 17027 | |
| 14307 | export type V2ItemCompletedNotification__CommandAction = | 17028 | export type V2ItemCompletedNotification__CommandAction = |
| 14308 | | { | 17029 | | { |
| ... | @@ -14344,25 +17065,7 @@ export const V2ItemCompletedNotification__CommandAction = Schema.Union( | ... | @@ -14344,25 +17065,7 @@ export const V2ItemCompletedNotification__CommandAction = Schema.Union( |
| 14344 | }).annotate({ title: "UnknownCommandAction" }), | 17065 | }).annotate({ title: "UnknownCommandAction" }), |
| 14345 | ], | 17066 | ], |
| 14346 | { mode: "oneOf" }, | 17067 | { mode: "oneOf" }, |
| 14347 | ); | 17068 | ).annotate({ identifier: "V2ItemCompletedNotification__CommandAction" }); |
| 14348 | | | |
| 14349 | export type V2ItemCompletedNotification__CollabAgentState = { | | |
| 14350 | readonly message?: string | null; | | |
| 14351 | readonly status: V2ItemCompletedNotification__CollabAgentStatus; | | |
| 14352 | }; | | |
| 14353 | export const V2ItemCompletedNotification__CollabAgentState = Schema.Struct({ | | |
| 14354 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 14355 | status: V2ItemCompletedNotification__CollabAgentStatus, | | |
| 14356 | }); | | |
| 14357 | | | |
| 14358 | export type V2ItemCompletedNotification__MemoryCitation = { | | |
| 14359 | readonly entries: ReadonlyArray<V2ItemCompletedNotification__MemoryCitationEntry>; | | |
| 14360 | readonly threadIds: ReadonlyArray<string>; | | |
| 14361 | }; | | |
| 14362 | export const V2ItemCompletedNotification__MemoryCitation = Schema.Struct({ | | |
| 14363 | entries: Schema.Array(V2ItemCompletedNotification__MemoryCitationEntry), | | |
| 14364 | threadIds: Schema.Array(Schema.String), | | |
| 14365 | }); | | |
| 14366 | | 17069 | |
| 14367 | export type V2ItemCompletedNotification__FileUpdateChange = { | 17070 | export type V2ItemCompletedNotification__FileUpdateChange = { |
| 14368 | readonly diff: string; | 17071 | readonly diff: string; |
| ... | @@ -14373,102 +17076,16 @@ export const V2ItemCompletedNotification__FileUpdateChange = Schema.Struct({ | ... | @@ -14373,102 +17076,16 @@ export const V2ItemCompletedNotification__FileUpdateChange = Schema.Struct({ |
| 14373 | diff: Schema.String, | 17076 | diff: Schema.String, |
| 14374 | kind: V2ItemCompletedNotification__PatchChangeKind, | 17077 | kind: V2ItemCompletedNotification__PatchChangeKind, |
| 14375 | path: Schema.String, | 17078 | path: Schema.String, |
| 14376 | }); | 17079 | }).annotate({ identifier: "V2ItemCompletedNotification__FileUpdateChange" }); |
| 14377 | | | |
| 14378 | export type V2ItemCompletedNotification__UserInput = | | |
| 14379 | | { | | |
| 14380 | readonly text: string; | | |
| 14381 | readonly text_elements?: ReadonlyArray<V2ItemCompletedNotification__TextElement>; | | |
| 14382 | readonly type: "text"; | | |
| 14383 | } | | |
| 14384 | | { | | |
| 14385 | readonly detail?: V2ItemCompletedNotification__ImageDetail | null; | | |
| 14386 | readonly type: "image"; | | |
| 14387 | readonly url: string; | | |
| 14388 | } | | |
| 14389 | | { | | |
| 14390 | readonly detail?: V2ItemCompletedNotification__ImageDetail | null; | | |
| 14391 | readonly path: string; | | |
| 14392 | readonly type: "localImage"; | | |
| 14393 | } | | |
| 14394 | | { readonly type: "audio"; readonly url: string } | | |
| 14395 | | { readonly path: string; readonly type: "localAudio" } | | |
| 14396 | | { readonly name: string; readonly path: string; readonly type: "skill" } | | |
| 14397 | | { readonly name: string; readonly path: string; readonly type: "mention" }; | | |
| 14398 | export const V2ItemCompletedNotification__UserInput = Schema.Union( | | |
| 14399 | [ | | |
| 14400 | Schema.Struct({ | | |
| 14401 | text: Schema.String, | | |
| 14402 | text_elements: Schema.optionalKey( | | |
| 14403 | Schema.Array(V2ItemCompletedNotification__TextElement).annotate({ | | |
| 14404 | description: "UI-defined spans within `text` used to render or persist special elements.", | | |
| 14405 | default: [], | | |
| 14406 | }), | | |
| 14407 | ), | | |
| 14408 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | | |
| 14409 | }).annotate({ title: "TextUserInput" }), | | |
| 14410 | Schema.Struct({ | | |
| 14411 | detail: Schema.optionalKey( | | |
| 14412 | Schema.Union([V2ItemCompletedNotification__ImageDetail, Schema.Null]), | | |
| 14413 | ), | | |
| 14414 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | | |
| 14415 | url: Schema.String, | | |
| 14416 | }).annotate({ title: "ImageUserInput" }), | | |
| 14417 | Schema.Struct({ | | |
| 14418 | detail: Schema.optionalKey( | | |
| 14419 | Schema.Union([V2ItemCompletedNotification__ImageDetail, Schema.Null]), | | |
| 14420 | ), | | |
| 14421 | path: Schema.String, | | |
| 14422 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), | | |
| 14423 | }).annotate({ title: "LocalImageUserInput" }), | | |
| 14424 | Schema.Struct({ | | |
| 14425 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), | | |
| 14426 | url: Schema.String, | | |
| 14427 | }).annotate({ title: "AudioUserInput" }), | | |
| 14428 | Schema.Struct({ | | |
| 14429 | path: Schema.String, | | |
| 14430 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), | | |
| 14431 | }).annotate({ title: "LocalAudioUserInput" }), | | |
| 14432 | Schema.Struct({ | | |
| 14433 | name: Schema.String, | | |
| 14434 | path: Schema.String, | | |
| 14435 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), | | |
| 14436 | }).annotate({ title: "SkillUserInput" }), | | |
| 14437 | Schema.Struct({ | | |
| 14438 | name: Schema.String, | | |
| 14439 | path: Schema.String, | | |
| 14440 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), | | |
| 14441 | }).annotate({ title: "MentionUserInput" }), | | |
| 14442 | ], | | |
| 14443 | { mode: "oneOf" }, | | |
| 14444 | ); | | |
| 14445 | | 17080 | |
| 14446 | export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReview = { | 17081 | export type V2ItemCompletedNotification__CollabAgentState = { |
| 14447 | readonly rationale?: string | null; | 17082 | readonly message?: string | null; |
| 14448 | readonly riskLevel?: V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel | null; | 17083 | readonly status: V2ItemCompletedNotification__CollabAgentStatus; |
| 14449 | readonly status: V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewStatus; | | |
| 14450 | readonly userAuthorization?: V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuthorization | null; | | |
| 14451 | }; | 17084 | }; |
| 14452 | export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReview = | 17085 | export const V2ItemCompletedNotification__CollabAgentState = Schema.Struct({ |
| 14453 | Schema.Struct({ | 17086 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 14454 | rationale: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 17087 | status: V2ItemCompletedNotification__CollabAgentStatus, |
| 14455 | riskLevel: Schema.optionalKey( | 17088 | }).annotate({ identifier: "V2ItemCompletedNotification__CollabAgentState" }); |
| 14456 | Schema.Union([ | | |
| 14457 | V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel, | | |
| 14458 | Schema.Null, | | |
| 14459 | ]), | | |
| 14460 | ), | | |
| 14461 | status: V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewStatus, | | |
| 14462 | userAuthorization: Schema.optionalKey( | | |
| 14463 | Schema.Union([ | | |
| 14464 | V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuthorization, | | |
| 14465 | Schema.Null, | | |
| 14466 | ]), | | |
| 14467 | ), | | |
| 14468 | }).annotate({ | | |
| 14469 | description: | | |
| 14470 | "[UNSTABLE] Temporary approval auto-review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.", | | |
| 14471 | }); | | |
| 14472 | | 17089 | |
| 14473 | export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath = | 17090 | export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath = |
| 14474 | | { readonly kind: "root" } | 17091 | | { readonly kind: "root" } |
| ... | @@ -14520,33 +17137,36 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecia | ... | @@ -14520,33 +17137,36 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecia |
| 14520 | }), | 17137 | }), |
| 14521 | ], | 17138 | ], |
| 14522 | { mode: "oneOf" }, | 17139 | { mode: "oneOf" }, |
| 14523 | ); | 17140 | ).annotate({ |
| | 17141 | identifier: "V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath", |
| | 17142 | }); |
| 14524 | | 17143 | |
| 14525 | export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReview = { | 17144 | export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReview = { |
| 14526 | readonly rationale?: string | null; | 17145 | readonly rationale?: string | null; |
| 14527 | readonly riskLevel?: V2ItemGuardianApprovalReviewStartedNotification__GuardianRiskLevel | null; | 17146 | readonly riskLevel?: V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel | null; |
| 14528 | readonly status: V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewStatus; | 17147 | readonly status: V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewStatus; |
| 14529 | readonly userAuthorization?: V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthorization | null; | 17148 | readonly userAuthorization?: V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuthorization | null; |
| 14530 | }; | 17149 | }; |
| 14531 | export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReview = | 17150 | export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReview = |
| 14532 | Schema.Struct({ | 17151 | Schema.Struct({ |
| 14533 | rationale: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 17152 | rationale: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 14534 | riskLevel: Schema.optionalKey( | 17153 | riskLevel: Schema.optionalKey( |
| 14535 | Schema.Union([ | 17154 | Schema.Union([ |
| 14536 | V2ItemGuardianApprovalReviewStartedNotification__GuardianRiskLevel, | 17155 | V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel, |
| 14537 | Schema.Null, | 17156 | Schema.Null, |
| 14538 | ]), | 17157 | ]), |
| 14539 | ), | 17158 | ), |
| 14540 | status: V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewStatus, | 17159 | status: V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewStatus, |
| 14541 | userAuthorization: Schema.optionalKey( | 17160 | userAuthorization: Schema.optionalKey( |
| 14542 | Schema.Union([ | 17161 | Schema.Union([ |
| 14543 | V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthorization, | 17162 | V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuthorization, |
| 14544 | Schema.Null, | 17163 | Schema.Null, |
| 14545 | ]), | 17164 | ]), |
| 14546 | ), | 17165 | ), |
| 14547 | }).annotate({ | 17166 | }).annotate({ |
| 14548 | description: | 17167 | description: |
| 14549 | "[UNSTABLE] Temporary approval auto-review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.", | 17168 | "[UNSTABLE] Temporary approval auto-review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.", |
| | 17169 | identifier: "V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReview", |
| 14550 | }); | 17170 | }); |
| 14551 | | 17171 | |
| 14552 | export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath = | 17172 | export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath = |
| ... | @@ -14598,7 +17218,64 @@ export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialP | ... | @@ -14598,7 +17218,64 @@ export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialP |
| 14598 | }), | 17218 | }), |
| 14599 | ], | 17219 | ], |
| 14600 | { mode: "oneOf" }, | 17220 | { mode: "oneOf" }, |
| 14601 | ); | 17221 | ).annotate({ |
| | 17222 | identifier: "V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath", |
| | 17223 | }); |
| | 17224 | |
| | 17225 | export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReview = { |
| | 17226 | readonly rationale?: string | null; |
| | 17227 | readonly riskLevel?: V2ItemGuardianApprovalReviewStartedNotification__GuardianRiskLevel | null; |
| | 17228 | readonly status: V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewStatus; |
| | 17229 | readonly userAuthorization?: V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthorization | null; |
| | 17230 | }; |
| | 17231 | export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReview = |
| | 17232 | Schema.Struct({ |
| | 17233 | rationale: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 17234 | riskLevel: Schema.optionalKey( |
| | 17235 | Schema.Union([ |
| | 17236 | V2ItemGuardianApprovalReviewStartedNotification__GuardianRiskLevel, |
| | 17237 | Schema.Null, |
| | 17238 | ]), |
| | 17239 | ), |
| | 17240 | status: V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewStatus, |
| | 17241 | userAuthorization: Schema.optionalKey( |
| | 17242 | Schema.Union([ |
| | 17243 | V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthorization, |
| | 17244 | Schema.Null, |
| | 17245 | ]), |
| | 17246 | ), |
| | 17247 | }).annotate({ |
| | 17248 | description: |
| | 17249 | "[UNSTABLE] Temporary approval auto-review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.", |
| | 17250 | identifier: "V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReview", |
| | 17251 | }); |
| | 17252 | |
| | 17253 | export type V2ItemStartedNotification__TextElement = { |
| | 17254 | readonly byteRange: V2ItemStartedNotification__ByteRange; |
| | 17255 | readonly placeholder?: string | null; |
| | 17256 | }; |
| | 17257 | export const V2ItemStartedNotification__TextElement = Schema.Struct({ |
| | 17258 | byteRange: Schema.suspend( |
| | 17259 | (): Schema.Codec<V2ItemStartedNotification__ByteRange> => V2ItemStartedNotification__ByteRange, |
| | 17260 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), |
| | 17261 | placeholder: Schema.optionalKey( |
| | 17262 | Schema.Union([ |
| | 17263 | Schema.String.annotate({ |
| | 17264 | description: "Optional human-readable placeholder for the element, displayed in the UI.", |
| | 17265 | }), |
| | 17266 | Schema.Null, |
| | 17267 | ]), |
| | 17268 | ), |
| | 17269 | }).annotate({ identifier: "V2ItemStartedNotification__TextElement" }); |
| | 17270 | |
| | 17271 | export type V2ItemStartedNotification__MemoryCitation = { |
| | 17272 | readonly entries: ReadonlyArray<V2ItemStartedNotification__MemoryCitationEntry>; |
| | 17273 | readonly threadIds: ReadonlyArray<string>; |
| | 17274 | }; |
| | 17275 | export const V2ItemStartedNotification__MemoryCitation = Schema.Struct({ |
| | 17276 | entries: Schema.Array(V2ItemStartedNotification__MemoryCitationEntry), |
| | 17277 | threadIds: Schema.Array(Schema.String), |
| | 17278 | }).annotate({ identifier: "V2ItemStartedNotification__MemoryCitation" }); |
| 14602 | | 17279 | |
| 14603 | export type V2ItemStartedNotification__CommandAction = | 17280 | export type V2ItemStartedNotification__CommandAction = |
| 14604 | | { | 17281 | | { |
| ... | @@ -14640,25 +17317,7 @@ export const V2ItemStartedNotification__CommandAction = Schema.Union( | ... | @@ -14640,25 +17317,7 @@ export const V2ItemStartedNotification__CommandAction = Schema.Union( |
| 14640 | }).annotate({ title: "UnknownCommandAction" }), | 17317 | }).annotate({ title: "UnknownCommandAction" }), |
| 14641 | ], | 17318 | ], |
| 14642 | { mode: "oneOf" }, | 17319 | { mode: "oneOf" }, |
| 14643 | ); | 17320 | ).annotate({ identifier: "V2ItemStartedNotification__CommandAction" }); |
| 14644 | | | |
| 14645 | export type V2ItemStartedNotification__CollabAgentState = { | | |
| 14646 | readonly message?: string | null; | | |
| 14647 | readonly status: V2ItemStartedNotification__CollabAgentStatus; | | |
| 14648 | }; | | |
| 14649 | export const V2ItemStartedNotification__CollabAgentState = Schema.Struct({ | | |
| 14650 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 14651 | status: V2ItemStartedNotification__CollabAgentStatus, | | |
| 14652 | }); | | |
| 14653 | | | |
| 14654 | export type V2ItemStartedNotification__MemoryCitation = { | | |
| 14655 | readonly entries: ReadonlyArray<V2ItemStartedNotification__MemoryCitationEntry>; | | |
| 14656 | readonly threadIds: ReadonlyArray<string>; | | |
| 14657 | }; | | |
| 14658 | export const V2ItemStartedNotification__MemoryCitation = Schema.Struct({ | | |
| 14659 | entries: Schema.Array(V2ItemStartedNotification__MemoryCitationEntry), | | |
| 14660 | threadIds: Schema.Array(Schema.String), | | |
| 14661 | }); | | |
| 14662 | | 17321 | |
| 14663 | export type V2ItemStartedNotification__FileUpdateChange = { | 17322 | export type V2ItemStartedNotification__FileUpdateChange = { |
| 14664 | readonly diff: string; | 17323 | readonly diff: string; |
| ... | @@ -14669,75 +17328,16 @@ export const V2ItemStartedNotification__FileUpdateChange = Schema.Struct({ | ... | @@ -14669,75 +17328,16 @@ export const V2ItemStartedNotification__FileUpdateChange = Schema.Struct({ |
| 14669 | diff: Schema.String, | 17328 | diff: Schema.String, |
| 14670 | kind: V2ItemStartedNotification__PatchChangeKind, | 17329 | kind: V2ItemStartedNotification__PatchChangeKind, |
| 14671 | path: Schema.String, | 17330 | path: Schema.String, |
| 14672 | }); | 17331 | }).annotate({ identifier: "V2ItemStartedNotification__FileUpdateChange" }); |
| 14673 | | 17332 | |
| 14674 | export type V2ItemStartedNotification__UserInput = | 17333 | export type V2ItemStartedNotification__CollabAgentState = { |
| 14675 | | { | 17334 | readonly message?: string | null; |
| 14676 | readonly text: string; | 17335 | readonly status: V2ItemStartedNotification__CollabAgentStatus; |
| 14677 | readonly text_elements?: ReadonlyArray<V2ItemStartedNotification__TextElement>; | 17336 | }; |
| 14678 | readonly type: "text"; | 17337 | export const V2ItemStartedNotification__CollabAgentState = Schema.Struct({ |
| 14679 | } | 17338 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 14680 | | { | 17339 | status: V2ItemStartedNotification__CollabAgentStatus, |
| 14681 | readonly detail?: V2ItemStartedNotification__ImageDetail | null; | 17340 | }).annotate({ identifier: "V2ItemStartedNotification__CollabAgentState" }); |
| 14682 | readonly type: "image"; | | |
| 14683 | readonly url: string; | | |
| 14684 | } | | |
| 14685 | | { | | |
| 14686 | readonly detail?: V2ItemStartedNotification__ImageDetail | null; | | |
| 14687 | readonly path: string; | | |
| 14688 | readonly type: "localImage"; | | |
| 14689 | } | | |
| 14690 | | { readonly type: "audio"; readonly url: string } | | |
| 14691 | | { readonly path: string; readonly type: "localAudio" } | | |
| 14692 | | { readonly name: string; readonly path: string; readonly type: "skill" } | | |
| 14693 | | { readonly name: string; readonly path: string; readonly type: "mention" }; | | |
| 14694 | export const V2ItemStartedNotification__UserInput = Schema.Union( | | |
| 14695 | [ | | |
| 14696 | Schema.Struct({ | | |
| 14697 | text: Schema.String, | | |
| 14698 | text_elements: Schema.optionalKey( | | |
| 14699 | Schema.Array(V2ItemStartedNotification__TextElement).annotate({ | | |
| 14700 | description: "UI-defined spans within `text` used to render or persist special elements.", | | |
| 14701 | default: [], | | |
| 14702 | }), | | |
| 14703 | ), | | |
| 14704 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | | |
| 14705 | }).annotate({ title: "TextUserInput" }), | | |
| 14706 | Schema.Struct({ | | |
| 14707 | detail: Schema.optionalKey( | | |
| 14708 | Schema.Union([V2ItemStartedNotification__ImageDetail, Schema.Null]), | | |
| 14709 | ), | | |
| 14710 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | | |
| 14711 | url: Schema.String, | | |
| 14712 | }).annotate({ title: "ImageUserInput" }), | | |
| 14713 | Schema.Struct({ | | |
| 14714 | detail: Schema.optionalKey( | | |
| 14715 | Schema.Union([V2ItemStartedNotification__ImageDetail, Schema.Null]), | | |
| 14716 | ), | | |
| 14717 | path: Schema.String, | | |
| 14718 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), | | |
| 14719 | }).annotate({ title: "LocalImageUserInput" }), | | |
| 14720 | Schema.Struct({ | | |
| 14721 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), | | |
| 14722 | url: Schema.String, | | |
| 14723 | }).annotate({ title: "AudioUserInput" }), | | |
| 14724 | Schema.Struct({ | | |
| 14725 | path: Schema.String, | | |
| 14726 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), | | |
| 14727 | }).annotate({ title: "LocalAudioUserInput" }), | | |
| 14728 | Schema.Struct({ | | |
| 14729 | name: Schema.String, | | |
| 14730 | path: Schema.String, | | |
| 14731 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), | | |
| 14732 | }).annotate({ title: "SkillUserInput" }), | | |
| 14733 | Schema.Struct({ | | |
| 14734 | name: Schema.String, | | |
| 14735 | path: Schema.String, | | |
| 14736 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), | | |
| 14737 | }).annotate({ title: "MentionUserInput" }), | | |
| 14738 | ], | | |
| 14739 | { mode: "oneOf" }, | | |
| 14740 | ); | | |
| 14741 | | 17341 | |
| 14742 | export type V2ListMcpServerStatusResponse__McpServerStatus = { | 17342 | export type V2ListMcpServerStatusResponse__McpServerStatus = { |
| 14743 | readonly authStatus: V2ListMcpServerStatusResponse__McpAuthStatus; | 17343 | readonly authStatus: V2ListMcpServerStatusResponse__McpAuthStatus; |
| ... | @@ -14756,7 +17356,7 @@ export const V2ListMcpServerStatusResponse__McpServerStatus = Schema.Struct({ | ... | @@ -14756,7 +17356,7 @@ export const V2ListMcpServerStatusResponse__McpServerStatus = Schema.Struct({ |
| 14756 | Schema.Union([V2ListMcpServerStatusResponse__McpServerInfo, Schema.Null]), | 17356 | Schema.Union([V2ListMcpServerStatusResponse__McpServerInfo, Schema.Null]), |
| 14757 | ), | 17357 | ), |
| 14758 | tools: Schema.Record(Schema.String, V2ListMcpServerStatusResponse__Tool), | 17358 | tools: Schema.Record(Schema.String, V2ListMcpServerStatusResponse__Tool), |
| 14759 | }); | 17359 | }).annotate({ identifier: "V2ListMcpServerStatusResponse__McpServerStatus" }); |
| 14760 | | 17360 | |
| 14761 | export type V2ModelListResponse__ReasoningEffortOption = { | 17361 | export type V2ModelListResponse__ReasoningEffortOption = { |
| 14762 | readonly description: string; | 17362 | readonly description: string; |
| ... | @@ -14765,7 +17365,7 @@ export type V2ModelListResponse__ReasoningEffortOption = { | ... | @@ -14765,7 +17365,7 @@ export type V2ModelListResponse__ReasoningEffortOption = { |
| 14765 | export const V2ModelListResponse__ReasoningEffortOption = Schema.Struct({ | 17365 | export const V2ModelListResponse__ReasoningEffortOption = Schema.Struct({ |
| 14766 | description: Schema.String, | 17366 | description: Schema.String, |
| 14767 | reasoningEffort: V2ModelListResponse__ReasoningEffort, | 17367 | reasoningEffort: V2ModelListResponse__ReasoningEffort, |
| 14768 | }); | 17368 | }).annotate({ identifier: "V2ModelListResponse__ReasoningEffortOption" }); |
| 14769 | | 17369 | |
| 14770 | export type V2PluginInstalledResponse__MarketplaceLoadErrorInfo = { | 17370 | export type V2PluginInstalledResponse__MarketplaceLoadErrorInfo = { |
| 14771 | readonly marketplacePath: V2PluginInstalledResponse__AbsolutePathBuf; | 17371 | readonly marketplacePath: V2PluginInstalledResponse__AbsolutePathBuf; |
| ... | @@ -14774,7 +17374,7 @@ export type V2PluginInstalledResponse__MarketplaceLoadErrorInfo = { | ... | @@ -14774,7 +17374,7 @@ export type V2PluginInstalledResponse__MarketplaceLoadErrorInfo = { |
| 14774 | export const V2PluginInstalledResponse__MarketplaceLoadErrorInfo = Schema.Struct({ | 17374 | export const V2PluginInstalledResponse__MarketplaceLoadErrorInfo = Schema.Struct({ |
| 14775 | marketplacePath: V2PluginInstalledResponse__AbsolutePathBuf, | 17375 | marketplacePath: V2PluginInstalledResponse__AbsolutePathBuf, |
| 14776 | message: Schema.String, | 17376 | message: Schema.String, |
| 14777 | }); | 17377 | }).annotate({ identifier: "V2PluginInstalledResponse__MarketplaceLoadErrorInfo" }); |
| 14778 | | 17378 | |
| 14779 | export type V2PluginInstalledResponse__PluginInterface = { | 17379 | export type V2PluginInstalledResponse__PluginInterface = { |
| 14780 | readonly brandColor?: string | null; | 17380 | readonly brandColor?: string | null; |
| ... | @@ -14856,7 +17456,7 @@ export const V2PluginInstalledResponse__PluginInterface = Schema.Struct({ | ... | @@ -14856,7 +17456,7 @@ export const V2PluginInstalledResponse__PluginInterface = Schema.Struct({ |
| 14856 | shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 17456 | shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 14857 | termsOfServiceUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 17457 | termsOfServiceUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 14858 | websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 17458 | websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 14859 | }); | 17459 | }).annotate({ identifier: "V2PluginInstalledResponse__PluginInterface" }); |
| 14860 | | 17460 | |
| 14861 | export type V2PluginInstalledResponse__PluginSource = | 17461 | export type V2PluginInstalledResponse__PluginSource = |
| 14862 | | { readonly path: V2PluginInstalledResponse__AbsolutePathBuf; readonly type: "local" } | 17462 | | { readonly path: V2PluginInstalledResponse__AbsolutePathBuf; readonly type: "local" } |
| ... | @@ -14915,7 +17515,7 @@ export const V2PluginInstalledResponse__PluginSource = Schema.Union( | ... | @@ -14915,7 +17515,7 @@ export const V2PluginInstalledResponse__PluginSource = Schema.Union( |
| 14915 | }), | 17515 | }), |
| 14916 | ], | 17516 | ], |
| 14917 | { mode: "oneOf" }, | 17517 | { mode: "oneOf" }, |
| 14918 | ); | 17518 | ).annotate({ identifier: "V2PluginInstalledResponse__PluginSource" }); |
| 14919 | | 17519 | |
| 14920 | export type V2PluginInstalledResponse__PluginSharePrincipal = { | 17520 | export type V2PluginInstalledResponse__PluginSharePrincipal = { |
| 14921 | readonly name: string; | 17521 | readonly name: string; |
| ... | @@ -14928,7 +17528,7 @@ export const V2PluginInstalledResponse__PluginSharePrincipal = Schema.Struct({ | ... | @@ -14928,7 +17528,7 @@ export const V2PluginInstalledResponse__PluginSharePrincipal = Schema.Struct({ |
| 14928 | principalId: Schema.String, | 17528 | principalId: Schema.String, |
| 14929 | principalType: V2PluginInstalledResponse__PluginSharePrincipalType, | 17529 | principalType: V2PluginInstalledResponse__PluginSharePrincipalType, |
| 14930 | role: V2PluginInstalledResponse__PluginSharePrincipalRole, | 17530 | role: V2PluginInstalledResponse__PluginSharePrincipalRole, |
| 14931 | }); | 17531 | }).annotate({ identifier: "V2PluginInstalledResponse__PluginSharePrincipal" }); |
| 14932 | | 17532 | |
| 14933 | export type V2PluginListResponse__MarketplaceLoadErrorInfo = { | 17533 | export type V2PluginListResponse__MarketplaceLoadErrorInfo = { |
| 14934 | readonly marketplacePath: V2PluginListResponse__AbsolutePathBuf; | 17534 | readonly marketplacePath: V2PluginListResponse__AbsolutePathBuf; |
| ... | @@ -14937,7 +17537,7 @@ export type V2PluginListResponse__MarketplaceLoadErrorInfo = { | ... | @@ -14937,7 +17537,7 @@ export type V2PluginListResponse__MarketplaceLoadErrorInfo = { |
| 14937 | export const V2PluginListResponse__MarketplaceLoadErrorInfo = Schema.Struct({ | 17537 | export const V2PluginListResponse__MarketplaceLoadErrorInfo = Schema.Struct({ |
| 14938 | marketplacePath: V2PluginListResponse__AbsolutePathBuf, | 17538 | marketplacePath: V2PluginListResponse__AbsolutePathBuf, |
| 14939 | message: Schema.String, | 17539 | message: Schema.String, |
| 14940 | }); | 17540 | }).annotate({ identifier: "V2PluginListResponse__MarketplaceLoadErrorInfo" }); |
| 14941 | | 17541 | |
| 14942 | export type V2PluginListResponse__PluginInterface = { | 17542 | export type V2PluginListResponse__PluginInterface = { |
| 14943 | readonly brandColor?: string | null; | 17543 | readonly brandColor?: string | null; |
| ... | @@ -15019,7 +17619,7 @@ export const V2PluginListResponse__PluginInterface = Schema.Struct({ | ... | @@ -15019,7 +17619,7 @@ export const V2PluginListResponse__PluginInterface = Schema.Struct({ |
| 15019 | shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 17619 | shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15020 | termsOfServiceUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 17620 | termsOfServiceUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15021 | websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 17621 | websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15022 | }); | 17622 | }).annotate({ identifier: "V2PluginListResponse__PluginInterface" }); |
| 15023 | | 17623 | |
| 15024 | export type V2PluginListResponse__PluginSource = | 17624 | export type V2PluginListResponse__PluginSource = |
| 15025 | | { readonly path: V2PluginListResponse__AbsolutePathBuf; readonly type: "local" } | 17625 | | { readonly path: V2PluginListResponse__AbsolutePathBuf; readonly type: "local" } |
| ... | @@ -15078,7 +17678,7 @@ export const V2PluginListResponse__PluginSource = Schema.Union( | ... | @@ -15078,7 +17678,7 @@ export const V2PluginListResponse__PluginSource = Schema.Union( |
| 15078 | }), | 17678 | }), |
| 15079 | ], | 17679 | ], |
| 15080 | { mode: "oneOf" }, | 17680 | { mode: "oneOf" }, |
| 15081 | ); | 17681 | ).annotate({ identifier: "V2PluginListResponse__PluginSource" }); |
| 15082 | | 17682 | |
| 15083 | export type V2PluginListResponse__PluginSharePrincipal = { | 17683 | export type V2PluginListResponse__PluginSharePrincipal = { |
| 15084 | readonly name: string; | 17684 | readonly name: string; |
| ... | @@ -15091,7 +17691,58 @@ export const V2PluginListResponse__PluginSharePrincipal = Schema.Struct({ | ... | @@ -15091,7 +17691,58 @@ export const V2PluginListResponse__PluginSharePrincipal = Schema.Struct({ |
| 15091 | principalId: Schema.String, | 17691 | principalId: Schema.String, |
| 15092 | principalType: V2PluginListResponse__PluginSharePrincipalType, | 17692 | principalType: V2PluginListResponse__PluginSharePrincipalType, |
| 15093 | role: V2PluginListResponse__PluginSharePrincipalRole, | 17693 | role: V2PluginListResponse__PluginSharePrincipalRole, |
| 15094 | }); | 17694 | }).annotate({ identifier: "V2PluginListResponse__PluginSharePrincipal" }); |
| | 17695 | |
| | 17696 | export type V2PluginReadResponse__AppTemplateSummary = { |
| | 17697 | readonly canonicalConnectorId?: string | null; |
| | 17698 | readonly category?: string | null; |
| | 17699 | readonly description?: string | null; |
| | 17700 | readonly logoUrl?: string | null; |
| | 17701 | readonly logoUrlDark?: string | null; |
| | 17702 | readonly materializedAppIds: ReadonlyArray<string>; |
| | 17703 | readonly name: string; |
| | 17704 | readonly reason?: V2PluginReadResponse__AppTemplateUnavailableReason | null; |
| | 17705 | readonly templateId: string; |
| | 17706 | }; |
| | 17707 | export const V2PluginReadResponse__AppTemplateSummary = Schema.Struct({ |
| | 17708 | canonicalConnectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 17709 | category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 17710 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 17711 | logoUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 17712 | logoUrlDark: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 17713 | materializedAppIds: Schema.Array(Schema.String), |
| | 17714 | name: Schema.String, |
| | 17715 | reason: Schema.optionalKey( |
| | 17716 | Schema.Union([V2PluginReadResponse__AppTemplateUnavailableReason, Schema.Null]), |
| | 17717 | ), |
| | 17718 | templateId: Schema.String, |
| | 17719 | }).annotate({ identifier: "V2PluginReadResponse__AppTemplateSummary" }); |
| | 17720 | |
| | 17721 | export type V2PluginReadResponse__PluginHookSummary = { |
| | 17722 | readonly eventName: V2PluginReadResponse__HookEventName; |
| | 17723 | readonly key: string; |
| | 17724 | }; |
| | 17725 | export const V2PluginReadResponse__PluginHookSummary = Schema.Struct({ |
| | 17726 | eventName: V2PluginReadResponse__HookEventName, |
| | 17727 | key: Schema.String, |
| | 17728 | }).annotate({ identifier: "V2PluginReadResponse__PluginHookSummary" }); |
| | 17729 | |
| | 17730 | export type V2PluginReadResponse__SkillInterface = { |
| | 17731 | readonly brandColor?: string | null; |
| | 17732 | readonly defaultPrompt?: string | null; |
| | 17733 | readonly displayName?: string | null; |
| | 17734 | readonly iconLarge?: V2PluginReadResponse__AbsolutePathBuf | null; |
| | 17735 | readonly iconSmall?: V2PluginReadResponse__AbsolutePathBuf | null; |
| | 17736 | readonly shortDescription?: string | null; |
| | 17737 | }; |
| | 17738 | export const V2PluginReadResponse__SkillInterface = Schema.Struct({ |
| | 17739 | brandColor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 17740 | defaultPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 17741 | displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 17742 | iconLarge: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])), |
| | 17743 | iconSmall: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])), |
| | 17744 | shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 17745 | }).annotate({ identifier: "V2PluginReadResponse__SkillInterface" }); |
| 15095 | | 17746 | |
| 15096 | export type V2PluginReadResponse__PluginInterface = { | 17747 | export type V2PluginReadResponse__PluginInterface = { |
| 15097 | readonly brandColor?: string | null; | 17748 | readonly brandColor?: string | null; |
| ... | @@ -15173,7 +17824,7 @@ export const V2PluginReadResponse__PluginInterface = Schema.Struct({ | ... | @@ -15173,7 +17824,7 @@ export const V2PluginReadResponse__PluginInterface = Schema.Struct({ |
| 15173 | shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 17824 | shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15174 | termsOfServiceUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 17825 | termsOfServiceUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15175 | websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 17826 | websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15176 | }); | 17827 | }).annotate({ identifier: "V2PluginReadResponse__PluginInterface" }); |
| 15177 | | 17828 | |
| 15178 | export type V2PluginReadResponse__PluginSource = | 17829 | export type V2PluginReadResponse__PluginSource = |
| 15179 | | { readonly path: V2PluginReadResponse__AbsolutePathBuf; readonly type: "local" } | 17830 | | { readonly path: V2PluginReadResponse__AbsolutePathBuf; readonly type: "local" } |
| ... | @@ -15232,71 +17883,7 @@ export const V2PluginReadResponse__PluginSource = Schema.Union( | ... | @@ -15232,71 +17883,7 @@ export const V2PluginReadResponse__PluginSource = Schema.Union( |
| 15232 | }), | 17883 | }), |
| 15233 | ], | 17884 | ], |
| 15234 | { mode: "oneOf" }, | 17885 | { mode: "oneOf" }, |
| 15235 | ); | 17886 | ).annotate({ identifier: "V2PluginReadResponse__PluginSource" }); |
| 15236 | | | |
| 15237 | export type V2PluginReadResponse__SkillInterface = { | | |
| 15238 | readonly brandColor?: string | null; | | |
| 15239 | readonly defaultPrompt?: string | null; | | |
| 15240 | readonly displayName?: string | null; | | |
| 15241 | readonly iconLarge?: V2PluginReadResponse__AbsolutePathBuf | null; | | |
| 15242 | readonly iconSmall?: V2PluginReadResponse__AbsolutePathBuf | null; | | |
| 15243 | readonly shortDescription?: string | null; | | |
| 15244 | }; | | |
| 15245 | export const V2PluginReadResponse__SkillInterface = Schema.Struct({ | | |
| 15246 | brandColor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 15247 | defaultPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 15248 | displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 15249 | iconLarge: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])), | | |
| 15250 | iconSmall: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])), | | |
| 15251 | shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 15252 | }); | | |
| 15253 | | | |
| 15254 | export type V2PluginReadResponse__AppTemplateSummary = { | | |
| 15255 | readonly canonicalConnectorId?: string | null; | | |
| 15256 | readonly category?: string | null; | | |
| 15257 | readonly description?: string | null; | | |
| 15258 | readonly logoUrl?: string | null; | | |
| 15259 | readonly logoUrlDark?: string | null; | | |
| 15260 | readonly materializedAppIds: ReadonlyArray<string>; | | |
| 15261 | readonly name: string; | | |
| 15262 | readonly reason?: V2PluginReadResponse__AppTemplateUnavailableReason | null; | | |
| 15263 | readonly templateId: string; | | |
| 15264 | }; | | |
| 15265 | export const V2PluginReadResponse__AppTemplateSummary = Schema.Struct({ | | |
| 15266 | canonicalConnectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 15267 | category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 15268 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 15269 | logoUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 15270 | logoUrlDark: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 15271 | materializedAppIds: Schema.Array(Schema.String), | | |
| 15272 | name: Schema.String, | | |
| 15273 | reason: Schema.optionalKey( | | |
| 15274 | Schema.Union([V2PluginReadResponse__AppTemplateUnavailableReason, Schema.Null]), | | |
| 15275 | ), | | |
| 15276 | templateId: Schema.String, | | |
| 15277 | }); | | |
| 15278 | | | |
| 15279 | export type V2PluginReadResponse__PluginHookSummary = { | | |
| 15280 | readonly eventName: V2PluginReadResponse__HookEventName; | | |
| 15281 | readonly key: string; | | |
| 15282 | }; | | |
| 15283 | export const V2PluginReadResponse__PluginHookSummary = Schema.Struct({ | | |
| 15284 | eventName: V2PluginReadResponse__HookEventName, | | |
| 15285 | key: Schema.String, | | |
| 15286 | }); | | |
| 15287 | | | |
| 15288 | export type V2PluginReadResponse__PluginSharePrincipal = { | | |
| 15289 | readonly name: string; | | |
| 15290 | readonly principalId: string; | | |
| 15291 | readonly principalType: V2PluginReadResponse__PluginSharePrincipalType; | | |
| 15292 | readonly role: V2PluginReadResponse__PluginSharePrincipalRole; | | |
| 15293 | }; | | |
| 15294 | export const V2PluginReadResponse__PluginSharePrincipal = Schema.Struct({ | | |
| 15295 | name: Schema.String, | | |
| 15296 | principalId: Schema.String, | | |
| 15297 | principalType: V2PluginReadResponse__PluginSharePrincipalType, | | |
| 15298 | role: V2PluginReadResponse__PluginSharePrincipalRole, | | |
| 15299 | }); | | |
| 15300 | | 17887 | |
| 15301 | export type V2PluginReadResponse__ScheduledTaskSchedule = | 17888 | export type V2PluginReadResponse__ScheduledTaskSchedule = |
| 15302 | | { | 17889 | | { |
| ... | @@ -15318,8 +17905,12 @@ export const V2PluginReadResponse__ScheduledTaskSchedule = Schema.Union( | ... | @@ -15318,8 +17905,12 @@ export const V2PluginReadResponse__ScheduledTaskSchedule = Schema.Union( |
| 15318 | Schema.Union([Schema.Array(V2PluginReadResponse__ScheduledTaskWeekday), Schema.Null]), | 17905 | Schema.Union([Schema.Array(V2PluginReadResponse__ScheduledTaskWeekday), Schema.Null]), |
| 15319 | ), | 17906 | ), |
| 15320 | intervalHours: Schema.Number.annotate({ format: "uint32" }) | 17907 | intervalHours: Schema.Number.annotate({ format: "uint32" }) |
| 15321 | .check(Schema.isInt()) | 17908 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 15322 | .check(Schema.isGreaterThanOrEqualTo(0)), | 17909 | .check( |
| | 17910 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 17911 | expected: "a value greater than or equal to 0", |
| | 17912 | }), |
| | 17913 | ), |
| 15323 | type: Schema.Literal("hourly").annotate({ title: "HourlyScheduledTaskScheduleType" }), | 17914 | type: Schema.Literal("hourly").annotate({ title: "HourlyScheduledTaskScheduleType" }), |
| 15324 | }).annotate({ title: "HourlyScheduledTaskSchedule" }), | 17915 | }).annotate({ title: "HourlyScheduledTaskSchedule" }), |
| 15325 | Schema.Struct({ | 17916 | Schema.Struct({ |
| ... | @@ -15337,7 +17928,20 @@ export const V2PluginReadResponse__ScheduledTaskSchedule = Schema.Union( | ... | @@ -15337,7 +17928,20 @@ export const V2PluginReadResponse__ScheduledTaskSchedule = Schema.Union( |
| 15337 | }).annotate({ title: "WeeklyScheduledTaskSchedule" }), | 17928 | }).annotate({ title: "WeeklyScheduledTaskSchedule" }), |
| 15338 | ], | 17929 | ], |
| 15339 | { mode: "oneOf" }, | 17930 | { mode: "oneOf" }, |
| 15340 | ); | 17931 | ).annotate({ identifier: "V2PluginReadResponse__ScheduledTaskSchedule" }); |
| | 17932 | |
| | 17933 | export type V2PluginReadResponse__PluginSharePrincipal = { |
| | 17934 | readonly name: string; |
| | 17935 | readonly principalId: string; |
| | 17936 | readonly principalType: V2PluginReadResponse__PluginSharePrincipalType; |
| | 17937 | readonly role: V2PluginReadResponse__PluginSharePrincipalRole; |
| | 17938 | }; |
| | 17939 | export const V2PluginReadResponse__PluginSharePrincipal = Schema.Struct({ |
| | 17940 | name: Schema.String, |
| | 17941 | principalId: Schema.String, |
| | 17942 | principalType: V2PluginReadResponse__PluginSharePrincipalType, |
| | 17943 | role: V2PluginReadResponse__PluginSharePrincipalRole, |
| | 17944 | }).annotate({ identifier: "V2PluginReadResponse__PluginSharePrincipal" }); |
| 15341 | | 17945 | |
| 15342 | export type V2PluginShareListResponse__PluginInterface = { | 17946 | export type V2PluginShareListResponse__PluginInterface = { |
| 15343 | readonly brandColor?: string | null; | 17947 | readonly brandColor?: string | null; |
| ... | @@ -15419,7 +18023,7 @@ export const V2PluginShareListResponse__PluginInterface = Schema.Struct({ | ... | @@ -15419,7 +18023,7 @@ export const V2PluginShareListResponse__PluginInterface = Schema.Struct({ |
| 15419 | shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 18023 | shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15420 | termsOfServiceUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 18024 | termsOfServiceUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15421 | websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 18025 | websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15422 | }); | 18026 | }).annotate({ identifier: "V2PluginShareListResponse__PluginInterface" }); |
| 15423 | | 18027 | |
| 15424 | export type V2PluginShareListResponse__PluginSource = | 18028 | export type V2PluginShareListResponse__PluginSource = |
| 15425 | | { readonly path: V2PluginShareListResponse__AbsolutePathBuf; readonly type: "local" } | 18029 | | { readonly path: V2PluginShareListResponse__AbsolutePathBuf; readonly type: "local" } |
| ... | @@ -15478,7 +18082,7 @@ export const V2PluginShareListResponse__PluginSource = Schema.Union( | ... | @@ -15478,7 +18082,7 @@ export const V2PluginShareListResponse__PluginSource = Schema.Union( |
| 15478 | }), | 18082 | }), |
| 15479 | ], | 18083 | ], |
| 15480 | { mode: "oneOf" }, | 18084 | { mode: "oneOf" }, |
| 15481 | ); | 18085 | ).annotate({ identifier: "V2PluginShareListResponse__PluginSource" }); |
| 15482 | | 18086 | |
| 15483 | export type V2PluginShareListResponse__PluginSharePrincipal = { | 18087 | export type V2PluginShareListResponse__PluginSharePrincipal = { |
| 15484 | readonly name: string; | 18088 | readonly name: string; |
| ... | @@ -15491,7 +18095,7 @@ export const V2PluginShareListResponse__PluginSharePrincipal = Schema.Struct({ | ... | @@ -15491,7 +18095,7 @@ export const V2PluginShareListResponse__PluginSharePrincipal = Schema.Struct({ |
| 15491 | principalId: Schema.String, | 18095 | principalId: Schema.String, |
| 15492 | principalType: V2PluginShareListResponse__PluginSharePrincipalType, | 18096 | principalType: V2PluginShareListResponse__PluginSharePrincipalType, |
| 15493 | role: V2PluginShareListResponse__PluginSharePrincipalRole, | 18097 | role: V2PluginShareListResponse__PluginSharePrincipalRole, |
| 15494 | }); | 18098 | }).annotate({ identifier: "V2PluginShareListResponse__PluginSharePrincipal" }); |
| 15495 | | 18099 | |
| 15496 | export type V2PluginShareSaveParams__PluginShareTarget = { | 18100 | export type V2PluginShareSaveParams__PluginShareTarget = { |
| 15497 | readonly principalId: string; | 18101 | readonly principalId: string; |
| ... | @@ -15502,7 +18106,7 @@ export const V2PluginShareSaveParams__PluginShareTarget = Schema.Struct({ | ... | @@ -15502,7 +18106,7 @@ export const V2PluginShareSaveParams__PluginShareTarget = Schema.Struct({ |
| 15502 | principalId: Schema.String, | 18106 | principalId: Schema.String, |
| 15503 | principalType: V2PluginShareSaveParams__PluginSharePrincipalType, | 18107 | principalType: V2PluginShareSaveParams__PluginSharePrincipalType, |
| 15504 | role: V2PluginShareSaveParams__PluginShareTargetRole, | 18108 | role: V2PluginShareSaveParams__PluginShareTargetRole, |
| 15505 | }); | 18109 | }).annotate({ identifier: "V2PluginShareSaveParams__PluginShareTarget" }); |
| 15506 | | 18110 | |
| 15507 | export type V2PluginShareUpdateTargetsParams__PluginShareTarget = { | 18111 | export type V2PluginShareUpdateTargetsParams__PluginShareTarget = { |
| 15508 | readonly principalId: string; | 18112 | readonly principalId: string; |
| ... | @@ -15513,7 +18117,7 @@ export const V2PluginShareUpdateTargetsParams__PluginShareTarget = Schema.Struct | ... | @@ -15513,7 +18117,7 @@ export const V2PluginShareUpdateTargetsParams__PluginShareTarget = Schema.Struct |
| 15513 | principalId: Schema.String, | 18117 | principalId: Schema.String, |
| 15514 | principalType: V2PluginShareUpdateTargetsParams__PluginSharePrincipalType, | 18118 | principalType: V2PluginShareUpdateTargetsParams__PluginSharePrincipalType, |
| 15515 | role: V2PluginShareUpdateTargetsParams__PluginShareTargetRole, | 18119 | role: V2PluginShareUpdateTargetsParams__PluginShareTargetRole, |
| 15516 | }); | 18120 | }).annotate({ identifier: "V2PluginShareUpdateTargetsParams__PluginShareTarget" }); |
| 15517 | | 18121 | |
| 15518 | export type V2PluginShareUpdateTargetsResponse__PluginSharePrincipal = { | 18122 | export type V2PluginShareUpdateTargetsResponse__PluginSharePrincipal = { |
| 15519 | readonly name: string; | 18123 | readonly name: string; |
| ... | @@ -15526,7 +18130,7 @@ export const V2PluginShareUpdateTargetsResponse__PluginSharePrincipal = Schema.S | ... | @@ -15526,7 +18130,7 @@ export const V2PluginShareUpdateTargetsResponse__PluginSharePrincipal = Schema.S |
| 15526 | principalId: Schema.String, | 18130 | principalId: Schema.String, |
| 15527 | principalType: V2PluginShareUpdateTargetsResponse__PluginSharePrincipalType, | 18131 | principalType: V2PluginShareUpdateTargetsResponse__PluginSharePrincipalType, |
| 15528 | role: V2PluginShareUpdateTargetsResponse__PluginSharePrincipalRole, | 18132 | role: V2PluginShareUpdateTargetsResponse__PluginSharePrincipalRole, |
| 15529 | }); | 18133 | }).annotate({ identifier: "V2PluginShareUpdateTargetsResponse__PluginSharePrincipal" }); |
| 15530 | | 18134 | |
| 15531 | export type V2RawResponseItemCompletedNotification__ContentItem = | 18135 | export type V2RawResponseItemCompletedNotification__ContentItem = |
| 15532 | | { readonly text: string; readonly type: "input_text" } | 18136 | | { readonly text: string; readonly type: "input_text" } |
| ... | @@ -15560,7 +18164,7 @@ export const V2RawResponseItemCompletedNotification__ContentItem = Schema.Union( | ... | @@ -15560,7 +18164,7 @@ export const V2RawResponseItemCompletedNotification__ContentItem = Schema.Union( |
| 15560 | }).annotate({ title: "OutputTextContentItem" }), | 18164 | }).annotate({ title: "OutputTextContentItem" }), |
| 15561 | ], | 18165 | ], |
| 15562 | { mode: "oneOf" }, | 18166 | { mode: "oneOf" }, |
| 15563 | ); | 18167 | ).annotate({ identifier: "V2RawResponseItemCompletedNotification__ContentItem" }); |
| 15564 | | 18168 | |
| 15565 | export type V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem = | 18169 | export type V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem = |
| 15566 | | { readonly text: string; readonly type: "input_text" } | 18170 | | { readonly text: string; readonly type: "input_text" } |
| ... | @@ -15605,66 +18209,7 @@ export const V2RawResponseItemCompletedNotification__FunctionCallOutputContentIt | ... | @@ -15605,66 +18209,7 @@ export const V2RawResponseItemCompletedNotification__FunctionCallOutputContentIt |
| 15605 | ).annotate({ | 18209 | ).annotate({ |
| 15606 | description: | 18210 | description: |
| 15607 | "Responses API compatible content items that can be returned by a tool call. This is a subset of ContentItem with the types we support as function call outputs.", | 18211 | "Responses API compatible content items that can be returned by a tool call. This is a subset of ContentItem with the types we support as function call outputs.", |
| 15608 | }); | 18212 | identifier: "V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem", |
| 15609 | | | |
| 15610 | export type V2ReviewStartResponse__CommandAction = | | |
| 15611 | | { | | |
| 15612 | readonly command: string; | | |
| 15613 | readonly name: string; | | |
| 15614 | readonly path: V2ReviewStartResponse__AbsolutePathBuf; | | |
| 15615 | readonly type: "read"; | | |
| 15616 | } | | |
| 15617 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } | | |
| 15618 | | { | | |
| 15619 | readonly command: string; | | |
| 15620 | readonly path?: string | null; | | |
| 15621 | readonly query?: string | null; | | |
| 15622 | readonly type: "search"; | | |
| 15623 | } | | |
| 15624 | | { readonly command: string; readonly type: "unknown" }; | | |
| 15625 | export const V2ReviewStartResponse__CommandAction = Schema.Union( | | |
| 15626 | [ | | |
| 15627 | Schema.Struct({ | | |
| 15628 | command: Schema.String, | | |
| 15629 | name: Schema.String, | | |
| 15630 | path: V2ReviewStartResponse__AbsolutePathBuf, | | |
| 15631 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), | | |
| 15632 | }).annotate({ title: "ReadCommandAction" }), | | |
| 15633 | Schema.Struct({ | | |
| 15634 | command: Schema.String, | | |
| 15635 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 15636 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), | | |
| 15637 | }).annotate({ title: "ListFilesCommandAction" }), | | |
| 15638 | Schema.Struct({ | | |
| 15639 | command: Schema.String, | | |
| 15640 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 15641 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 15642 | type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }), | | |
| 15643 | }).annotate({ title: "SearchCommandAction" }), | | |
| 15644 | Schema.Struct({ | | |
| 15645 | command: Schema.String, | | |
| 15646 | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), | | |
| 15647 | }).annotate({ title: "UnknownCommandAction" }), | | |
| 15648 | ], | | |
| 15649 | { mode: "oneOf" }, | | |
| 15650 | ); | | |
| 15651 | | | |
| 15652 | export type V2ReviewStartResponse__CollabAgentState = { | | |
| 15653 | readonly message?: string | null; | | |
| 15654 | readonly status: V2ReviewStartResponse__CollabAgentStatus; | | |
| 15655 | }; | | |
| 15656 | export const V2ReviewStartResponse__CollabAgentState = Schema.Struct({ | | |
| 15657 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 15658 | status: V2ReviewStartResponse__CollabAgentStatus, | | |
| 15659 | }); | | |
| 15660 | | | |
| 15661 | export type V2ReviewStartResponse__MemoryCitation = { | | |
| 15662 | readonly entries: ReadonlyArray<V2ReviewStartResponse__MemoryCitationEntry>; | | |
| 15663 | readonly threadIds: ReadonlyArray<string>; | | |
| 15664 | }; | | |
| 15665 | export const V2ReviewStartResponse__MemoryCitation = Schema.Struct({ | | |
| 15666 | entries: Schema.Array(V2ReviewStartResponse__MemoryCitationEntry), | | |
| 15667 | threadIds: Schema.Array(Schema.String), | | |
| 15668 | }); | 18213 | }); |
| 15669 | | 18214 | |
| 15670 | export type V2ReviewStartResponse__CodexErrorInfo = | 18215 | export type V2ReviewStartResponse__CodexErrorInfo = |
| ... | @@ -15708,8 +18253,12 @@ export const V2ReviewStartResponse__CodexErrorInfo = Schema.Union( | ... | @@ -15708,8 +18253,12 @@ export const V2ReviewStartResponse__CodexErrorInfo = Schema.Union( |
| 15708 | httpStatusCode: Schema.optionalKey( | 18253 | httpStatusCode: Schema.optionalKey( |
| 15709 | Schema.Union([ | 18254 | Schema.Union([ |
| 15710 | Schema.Number.annotate({ format: "uint16" }) | 18255 | Schema.Number.annotate({ format: "uint16" }) |
| 15711 | .check(Schema.isInt()) | 18256 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 15712 | .check(Schema.isGreaterThanOrEqualTo(0)), | 18257 | .check( |
| | 18258 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 18259 | expected: "a value greater than or equal to 0", |
| | 18260 | }), |
| | 18261 | ), |
| 15713 | Schema.Null, | 18262 | Schema.Null, |
| 15714 | ]), | 18263 | ]), |
| 15715 | ), | 18264 | ), |
| ... | @@ -15720,8 +18269,12 @@ export const V2ReviewStartResponse__CodexErrorInfo = Schema.Union( | ... | @@ -15720,8 +18269,12 @@ export const V2ReviewStartResponse__CodexErrorInfo = Schema.Union( |
| 15720 | httpStatusCode: Schema.optionalKey( | 18269 | httpStatusCode: Schema.optionalKey( |
| 15721 | Schema.Union([ | 18270 | Schema.Union([ |
| 15722 | Schema.Number.annotate({ format: "uint16" }) | 18271 | Schema.Number.annotate({ format: "uint16" }) |
| 15723 | .check(Schema.isInt()) | 18272 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 15724 | .check(Schema.isGreaterThanOrEqualTo(0)), | 18273 | .check( |
| | 18274 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 18275 | expected: "a value greater than or equal to 0", |
| | 18276 | }), |
| | 18277 | ), |
| 15725 | Schema.Null, | 18278 | Schema.Null, |
| 15726 | ]), | 18279 | ]), |
| 15727 | ), | 18280 | ), |
| ... | @@ -15735,8 +18288,12 @@ export const V2ReviewStartResponse__CodexErrorInfo = Schema.Union( | ... | @@ -15735,8 +18288,12 @@ export const V2ReviewStartResponse__CodexErrorInfo = Schema.Union( |
| 15735 | httpStatusCode: Schema.optionalKey( | 18288 | httpStatusCode: Schema.optionalKey( |
| 15736 | Schema.Union([ | 18289 | Schema.Union([ |
| 15737 | Schema.Number.annotate({ format: "uint16" }) | 18290 | Schema.Number.annotate({ format: "uint16" }) |
| 15738 | .check(Schema.isInt()) | 18291 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 15739 | .check(Schema.isGreaterThanOrEqualTo(0)), | 18292 | .check( |
| | 18293 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 18294 | expected: "a value greater than or equal to 0", |
| | 18295 | }), |
| | 18296 | ), |
| 15740 | Schema.Null, | 18297 | Schema.Null, |
| 15741 | ]), | 18298 | ]), |
| 15742 | ), | 18299 | ), |
| ... | @@ -15751,8 +18308,12 @@ export const V2ReviewStartResponse__CodexErrorInfo = Schema.Union( | ... | @@ -15751,8 +18308,12 @@ export const V2ReviewStartResponse__CodexErrorInfo = Schema.Union( |
| 15751 | httpStatusCode: Schema.optionalKey( | 18308 | httpStatusCode: Schema.optionalKey( |
| 15752 | Schema.Union([ | 18309 | Schema.Union([ |
| 15753 | Schema.Number.annotate({ format: "uint16" }) | 18310 | Schema.Number.annotate({ format: "uint16" }) |
| 15754 | .check(Schema.isInt()) | 18311 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 15755 | .check(Schema.isGreaterThanOrEqualTo(0)), | 18312 | .check( |
| | 18313 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 18314 | expected: "a value greater than or equal to 0", |
| | 18315 | }), |
| | 18316 | ), |
| 15756 | Schema.Null, | 18317 | Schema.Null, |
| 15757 | ]), | 18318 | ]), |
| 15758 | ), | 18319 | ), |
| ... | @@ -15775,82 +18336,104 @@ export const V2ReviewStartResponse__CodexErrorInfo = Schema.Union( | ... | @@ -15775,82 +18336,104 @@ export const V2ReviewStartResponse__CodexErrorInfo = Schema.Union( |
| 15775 | ).annotate({ | 18336 | ).annotate({ |
| 15776 | description: | 18337 | description: |
| 15777 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", | 18338 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", |
| | 18339 | identifier: "V2ReviewStartResponse__CodexErrorInfo", |
| 15778 | }); | 18340 | }); |
| 15779 | | 18341 | |
| 15780 | export type V2ReviewStartResponse__FileUpdateChange = { | 18342 | export type V2ReviewStartResponse__TextElement = { |
| 15781 | readonly diff: string; | 18343 | readonly byteRange: V2ReviewStartResponse__ByteRange; |
| 15782 | readonly kind: V2ReviewStartResponse__PatchChangeKind; | 18344 | readonly placeholder?: string | null; |
| 15783 | readonly path: string; | | |
| 15784 | }; | 18345 | }; |
| 15785 | export const V2ReviewStartResponse__FileUpdateChange = Schema.Struct({ | 18346 | export const V2ReviewStartResponse__TextElement = Schema.Struct({ |
| 15786 | diff: Schema.String, | 18347 | byteRange: Schema.suspend( |
| 15787 | kind: V2ReviewStartResponse__PatchChangeKind, | 18348 | (): Schema.Codec<V2ReviewStartResponse__ByteRange> => V2ReviewStartResponse__ByteRange, |
| 15788 | path: Schema.String, | 18349 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), |
| 15789 | }); | 18350 | placeholder: Schema.optionalKey( |
| | 18351 | Schema.Union([ |
| | 18352 | Schema.String.annotate({ |
| | 18353 | description: "Optional human-readable placeholder for the element, displayed in the UI.", |
| | 18354 | }), |
| | 18355 | Schema.Null, |
| | 18356 | ]), |
| | 18357 | ), |
| | 18358 | }).annotate({ identifier: "V2ReviewStartResponse__TextElement" }); |
| 15790 | | 18359 | |
| 15791 | export type V2ReviewStartResponse__UserInput = | 18360 | export type V2ReviewStartResponse__MemoryCitation = { |
| 15792 | | { | 18361 | readonly entries: ReadonlyArray<V2ReviewStartResponse__MemoryCitationEntry>; |
| 15793 | readonly text: string; | 18362 | readonly threadIds: ReadonlyArray<string>; |
| 15794 | readonly text_elements?: ReadonlyArray<V2ReviewStartResponse__TextElement>; | 18363 | }; |
| 15795 | readonly type: "text"; | 18364 | export const V2ReviewStartResponse__MemoryCitation = Schema.Struct({ |
| 15796 | } | 18365 | entries: Schema.Array(V2ReviewStartResponse__MemoryCitationEntry), |
| | 18366 | threadIds: Schema.Array(Schema.String), |
| | 18367 | }).annotate({ identifier: "V2ReviewStartResponse__MemoryCitation" }); |
| | 18368 | |
| | 18369 | export type V2ReviewStartResponse__CommandAction = |
| 15797 | | { | 18370 | | { |
| 15798 | readonly detail?: V2ReviewStartResponse__ImageDetail | null; | 18371 | readonly command: string; |
| 15799 | readonly type: "image"; | 18372 | readonly name: string; |
| 15800 | readonly url: string; | 18373 | readonly path: V2ReviewStartResponse__AbsolutePathBuf; |
| | 18374 | readonly type: "read"; |
| 15801 | } | 18375 | } |
| | 18376 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| 15802 | | { | 18377 | | { |
| 15803 | readonly detail?: V2ReviewStartResponse__ImageDetail | null; | 18378 | readonly command: string; |
| 15804 | readonly path: string; | 18379 | readonly path?: string | null; |
| 15805 | readonly type: "localImage"; | 18380 | readonly query?: string | null; |
| | 18381 | readonly type: "search"; |
| 15806 | } | 18382 | } |
| 15807 | | { readonly type: "audio"; readonly url: string } | 18383 | | { readonly command: string; readonly type: "unknown" }; |
| 15808 | | { readonly path: string; readonly type: "localAudio" } | 18384 | export const V2ReviewStartResponse__CommandAction = Schema.Union( |
| 15809 | | { readonly name: string; readonly path: string; readonly type: "skill" } | | |
| 15810 | | { readonly name: string; readonly path: string; readonly type: "mention" }; | | |
| 15811 | export const V2ReviewStartResponse__UserInput = Schema.Union( | | |
| 15812 | [ | 18385 | [ |
| 15813 | Schema.Struct({ | 18386 | Schema.Struct({ |
| 15814 | text: Schema.String, | 18387 | command: Schema.String, |
| 15815 | text_elements: Schema.optionalKey( | 18388 | name: Schema.String, |
| 15816 | Schema.Array(V2ReviewStartResponse__TextElement).annotate({ | 18389 | path: V2ReviewStartResponse__AbsolutePathBuf, |
| 15817 | description: "UI-defined spans within `text` used to render or persist special elements.", | 18390 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 15818 | default: [], | 18391 | }).annotate({ title: "ReadCommandAction" }), |
| 15819 | }), | | |
| 15820 | ), | | |
| 15821 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | | |
| 15822 | }).annotate({ title: "TextUserInput" }), | | |
| 15823 | Schema.Struct({ | | |
| 15824 | detail: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__ImageDetail, Schema.Null])), | | |
| 15825 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | | |
| 15826 | url: Schema.String, | | |
| 15827 | }).annotate({ title: "ImageUserInput" }), | | |
| 15828 | Schema.Struct({ | | |
| 15829 | detail: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__ImageDetail, Schema.Null])), | | |
| 15830 | path: Schema.String, | | |
| 15831 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), | | |
| 15832 | }).annotate({ title: "LocalImageUserInput" }), | | |
| 15833 | Schema.Struct({ | | |
| 15834 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), | | |
| 15835 | url: Schema.String, | | |
| 15836 | }).annotate({ title: "AudioUserInput" }), | | |
| 15837 | Schema.Struct({ | 18392 | Schema.Struct({ |
| 15838 | path: Schema.String, | 18393 | command: Schema.String, |
| 15839 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), | 18394 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15840 | }).annotate({ title: "LocalAudioUserInput" }), | 18395 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), |
| | 18396 | }).annotate({ title: "ListFilesCommandAction" }), |
| 15841 | Schema.Struct({ | 18397 | Schema.Struct({ |
| 15842 | name: Schema.String, | 18398 | command: Schema.String, |
| 15843 | path: Schema.String, | 18399 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15844 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), | 18400 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15845 | }).annotate({ title: "SkillUserInput" }), | 18401 | type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }), |
| | 18402 | }).annotate({ title: "SearchCommandAction" }), |
| 15846 | Schema.Struct({ | 18403 | Schema.Struct({ |
| 15847 | name: Schema.String, | 18404 | command: Schema.String, |
| 15848 | path: Schema.String, | 18405 | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), |
| 15849 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), | 18406 | }).annotate({ title: "UnknownCommandAction" }), |
| 15850 | }).annotate({ title: "MentionUserInput" }), | | |
| 15851 | ], | 18407 | ], |
| 15852 | { mode: "oneOf" }, | 18408 | { mode: "oneOf" }, |
| 15853 | ); | 18409 | ).annotate({ identifier: "V2ReviewStartResponse__CommandAction" }); |
| | 18410 | |
| | 18411 | export type V2ReviewStartResponse__FileUpdateChange = { |
| | 18412 | readonly diff: string; |
| | 18413 | readonly kind: V2ReviewStartResponse__PatchChangeKind; |
| | 18414 | readonly path: string; |
| | 18415 | }; |
| | 18416 | export const V2ReviewStartResponse__FileUpdateChange = Schema.Struct({ |
| | 18417 | diff: Schema.String, |
| | 18418 | kind: V2ReviewStartResponse__PatchChangeKind, |
| | 18419 | path: Schema.String, |
| | 18420 | }).annotate({ identifier: "V2ReviewStartResponse__FileUpdateChange" }); |
| | 18421 | |
| | 18422 | export type V2ReviewStartResponse__CollabAgentState = { |
| | 18423 | readonly message?: string | null; |
| | 18424 | readonly status: V2ReviewStartResponse__CollabAgentStatus; |
| | 18425 | }; |
| | 18426 | export const V2ReviewStartResponse__CollabAgentState = Schema.Struct({ |
| | 18427 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 18428 | status: V2ReviewStartResponse__CollabAgentStatus, |
| | 18429 | }).annotate({ identifier: "V2ReviewStartResponse__CollabAgentState" }); |
| | 18430 | |
| | 18431 | export type V2SkillsListResponse__SkillDependencies = { |
| | 18432 | readonly tools: ReadonlyArray<V2SkillsListResponse__SkillToolDependency>; |
| | 18433 | }; |
| | 18434 | export const V2SkillsListResponse__SkillDependencies = Schema.Struct({ |
| | 18435 | tools: Schema.Array(V2SkillsListResponse__SkillToolDependency), |
| | 18436 | }).annotate({ identifier: "V2SkillsListResponse__SkillDependencies" }); |
| 15854 | | 18437 | |
| 15855 | export type V2SkillsListResponse__SkillInterface = { | 18438 | export type V2SkillsListResponse__SkillInterface = { |
| 15856 | readonly brandColor?: string | null; | 18439 | readonly brandColor?: string | null; |
| ... | @@ -15867,14 +18450,7 @@ export const V2SkillsListResponse__SkillInterface = Schema.Struct({ | ... | @@ -15867,14 +18450,7 @@ export const V2SkillsListResponse__SkillInterface = Schema.Struct({ |
| 15867 | iconLarge: Schema.optionalKey(Schema.Union([V2SkillsListResponse__AbsolutePathBuf, Schema.Null])), | 18450 | iconLarge: Schema.optionalKey(Schema.Union([V2SkillsListResponse__AbsolutePathBuf, Schema.Null])), |
| 15868 | iconSmall: Schema.optionalKey(Schema.Union([V2SkillsListResponse__AbsolutePathBuf, Schema.Null])), | 18451 | iconSmall: Schema.optionalKey(Schema.Union([V2SkillsListResponse__AbsolutePathBuf, Schema.Null])), |
| 15869 | shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 18452 | shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15870 | }); | 18453 | }).annotate({ identifier: "V2SkillsListResponse__SkillInterface" }); |
| 15871 | | | |
| 15872 | export type V2SkillsListResponse__SkillDependencies = { | | |
| 15873 | readonly tools: ReadonlyArray<V2SkillsListResponse__SkillToolDependency>; | | |
| 15874 | }; | | |
| 15875 | export const V2SkillsListResponse__SkillDependencies = Schema.Struct({ | | |
| 15876 | tools: Schema.Array(V2SkillsListResponse__SkillToolDependency), | | |
| 15877 | }); | | |
| 15878 | | 18454 | |
| 15879 | export type V2ThreadForkResponse__CommandAction = | 18455 | export type V2ThreadForkResponse__CommandAction = |
| 15880 | | { | 18456 | | { |
| ... | @@ -15916,25 +18492,118 @@ export const V2ThreadForkResponse__CommandAction = Schema.Union( | ... | @@ -15916,25 +18492,118 @@ export const V2ThreadForkResponse__CommandAction = Schema.Union( |
| 15916 | }).annotate({ title: "UnknownCommandAction" }), | 18492 | }).annotate({ title: "UnknownCommandAction" }), |
| 15917 | ], | 18493 | ], |
| 15918 | { mode: "oneOf" }, | 18494 | { mode: "oneOf" }, |
| 15919 | ); | 18495 | ).annotate({ identifier: "V2ThreadForkResponse__CommandAction" }); |
| 15920 | | 18496 | |
| 15921 | export type V2ThreadForkResponse__CollabAgentState = { | 18497 | export type V2ThreadForkResponse__SandboxPolicy = |
| 15922 | readonly message?: string | null; | 18498 | | { readonly type: "dangerFullAccess" } |
| 15923 | readonly status: V2ThreadForkResponse__CollabAgentStatus; | 18499 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } |
| 15924 | }; | 18500 | | { |
| 15925 | export const V2ThreadForkResponse__CollabAgentState = Schema.Struct({ | 18501 | readonly networkAccess?: V2ThreadForkResponse__NetworkAccess; |
| 15926 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 18502 | readonly type: "externalSandbox"; |
| 15927 | status: V2ThreadForkResponse__CollabAgentStatus, | 18503 | } |
| 15928 | }); | 18504 | | { |
| | 18505 | readonly excludeSlashTmp?: boolean; |
| | 18506 | readonly excludeTmpdirEnvVar?: boolean; |
| | 18507 | readonly networkAccess?: boolean; |
| | 18508 | readonly type: "workspaceWrite"; |
| | 18509 | readonly writableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>; |
| | 18510 | }; |
| | 18511 | export const V2ThreadForkResponse__SandboxPolicy = Schema.Union( |
| | 18512 | [ |
| | 18513 | Schema.Struct({ |
| | 18514 | type: Schema.Literal("dangerFullAccess").annotate({ |
| | 18515 | title: "DangerFullAccessSandboxPolicyType", |
| | 18516 | }), |
| | 18517 | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), |
| | 18518 | Schema.Struct({ |
| | 18519 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| | 18520 | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), |
| | 18521 | }).annotate({ title: "ReadOnlySandboxPolicy" }), |
| | 18522 | Schema.Struct({ |
| | 18523 | networkAccess: Schema.optionalKey( |
| | 18524 | Schema.suspend( |
| | 18525 | (): Schema.Codec<V2ThreadForkResponse__NetworkAccess> => |
| | 18526 | V2ThreadForkResponse__NetworkAccess, |
| | 18527 | ).annotate({ default: "restricted" }), |
| | 18528 | ), |
| | 18529 | type: Schema.Literal("externalSandbox").annotate({ |
| | 18530 | title: "ExternalSandboxSandboxPolicyType", |
| | 18531 | }), |
| | 18532 | }).annotate({ title: "ExternalSandboxSandboxPolicy" }), |
| | 18533 | Schema.Struct({ |
| | 18534 | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| | 18535 | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| | 18536 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| | 18537 | type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }), |
| | 18538 | writableRoots: Schema.optionalKey( |
| | 18539 | Schema.Array(V2ThreadForkResponse__AbsolutePathBuf).annotate({ default: [] }), |
| | 18540 | ), |
| | 18541 | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), |
| | 18542 | ], |
| | 18543 | { mode: "oneOf" }, |
| | 18544 | ).annotate({ identifier: "V2ThreadForkResponse__SandboxPolicy" }); |
| 15929 | | 18545 | |
| 15930 | export type V2ThreadForkResponse__MemoryCitation = { | 18546 | export type V2ThreadForkResponse__SubAgentSource = |
| 15931 | readonly entries: ReadonlyArray<V2ThreadForkResponse__MemoryCitationEntry>; | 18547 | | "review" |
| 15932 | readonly threadIds: ReadonlyArray<string>; | 18548 | | "compact" |
| 15933 | }; | 18549 | | "memory_consolidation" |
| 15934 | export const V2ThreadForkResponse__MemoryCitation = Schema.Struct({ | 18550 | | { |
| 15935 | entries: Schema.Array(V2ThreadForkResponse__MemoryCitationEntry), | 18551 | readonly thread_spawn: { |
| 15936 | threadIds: Schema.Array(Schema.String), | 18552 | readonly agent_nickname?: string | null; |
| 15937 | }); | 18553 | readonly agent_path?: V2ThreadForkResponse__AgentPath | null; |
| | 18554 | readonly agent_role?: string | null; |
| | 18555 | readonly depth: number; |
| | 18556 | readonly parent_thread_id: V2ThreadForkResponse__ThreadId; |
| | 18557 | }; |
| | 18558 | } |
| | 18559 | | { readonly other: string }; |
| | 18560 | export const V2ThreadForkResponse__SubAgentSource = Schema.Union( |
| | 18561 | [ |
| | 18562 | Schema.Literals(["review", "compact", "memory_consolidation"]), |
| | 18563 | Schema.Struct({ |
| | 18564 | thread_spawn: Schema.Struct({ |
| | 18565 | agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 18566 | agent_path: Schema.optionalKey( |
| | 18567 | Schema.Union([V2ThreadForkResponse__AgentPath, Schema.Null]), |
| | 18568 | ), |
| | 18569 | agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 18570 | depth: Schema.Number.annotate({ format: "int32" }).check( |
| | 18571 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 18572 | ), |
| | 18573 | parent_thread_id: V2ThreadForkResponse__ThreadId, |
| | 18574 | }), |
| | 18575 | }).annotate({ title: "ThreadSpawnSubAgentSource" }), |
| | 18576 | Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }), |
| | 18577 | ], |
| | 18578 | { mode: "oneOf" }, |
| | 18579 | ).annotate({ identifier: "V2ThreadForkResponse__SubAgentSource" }); |
| | 18580 | |
| | 18581 | export type V2ThreadForkResponse__ThreadStatus = |
| | 18582 | | { readonly type: "notLoaded" } |
| | 18583 | | { readonly type: "idle" } |
| | 18584 | | { readonly type: "systemError" } |
| | 18585 | | { |
| | 18586 | readonly activeFlags: ReadonlyArray<V2ThreadForkResponse__ThreadActiveFlag>; |
| | 18587 | readonly type: "active"; |
| | 18588 | }; |
| | 18589 | export const V2ThreadForkResponse__ThreadStatus = Schema.Union( |
| | 18590 | [ |
| | 18591 | Schema.Struct({ |
| | 18592 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), |
| | 18593 | }).annotate({ title: "NotLoadedThreadStatus" }), |
| | 18594 | Schema.Struct({ |
| | 18595 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), |
| | 18596 | }).annotate({ title: "IdleThreadStatus" }), |
| | 18597 | Schema.Struct({ |
| | 18598 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), |
| | 18599 | }).annotate({ title: "SystemErrorThreadStatus" }), |
| | 18600 | Schema.Struct({ |
| | 18601 | activeFlags: Schema.Array(V2ThreadForkResponse__ThreadActiveFlag), |
| | 18602 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), |
| | 18603 | }).annotate({ title: "ActiveThreadStatus" }), |
| | 18604 | ], |
| | 18605 | { mode: "oneOf" }, |
| | 18606 | ).annotate({ identifier: "V2ThreadForkResponse__ThreadStatus" }); |
| 15938 | | 18607 | |
| 15939 | export type V2ThreadForkResponse__CodexErrorInfo = | 18608 | export type V2ThreadForkResponse__CodexErrorInfo = |
| 15940 | | "contextWindowExceeded" | 18609 | | "contextWindowExceeded" |
| ... | @@ -15981,8 +18650,12 @@ export const V2ThreadForkResponse__CodexErrorInfo = Schema.Union( | ... | @@ -15981,8 +18650,12 @@ export const V2ThreadForkResponse__CodexErrorInfo = Schema.Union( |
| 15981 | httpStatusCode: Schema.optionalKey( | 18650 | httpStatusCode: Schema.optionalKey( |
| 15982 | Schema.Union([ | 18651 | Schema.Union([ |
| 15983 | Schema.Number.annotate({ format: "uint16" }) | 18652 | Schema.Number.annotate({ format: "uint16" }) |
| 15984 | .check(Schema.isInt()) | 18653 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 15985 | .check(Schema.isGreaterThanOrEqualTo(0)), | 18654 | .check( |
| | 18655 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 18656 | expected: "a value greater than or equal to 0", |
| | 18657 | }), |
| | 18658 | ), |
| 15986 | Schema.Null, | 18659 | Schema.Null, |
| 15987 | ]), | 18660 | ]), |
| 15988 | ), | 18661 | ), |
| ... | @@ -15993,8 +18666,12 @@ export const V2ThreadForkResponse__CodexErrorInfo = Schema.Union( | ... | @@ -15993,8 +18666,12 @@ export const V2ThreadForkResponse__CodexErrorInfo = Schema.Union( |
| 15993 | httpStatusCode: Schema.optionalKey( | 18666 | httpStatusCode: Schema.optionalKey( |
| 15994 | Schema.Union([ | 18667 | Schema.Union([ |
| 15995 | Schema.Number.annotate({ format: "uint16" }) | 18668 | Schema.Number.annotate({ format: "uint16" }) |
| 15996 | .check(Schema.isInt()) | 18669 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 15997 | .check(Schema.isGreaterThanOrEqualTo(0)), | 18670 | .check( |
| | 18671 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 18672 | expected: "a value greater than or equal to 0", |
| | 18673 | }), |
| | 18674 | ), |
| 15998 | Schema.Null, | 18675 | Schema.Null, |
| 15999 | ]), | 18676 | ]), |
| 16000 | ), | 18677 | ), |
| ... | @@ -16008,8 +18685,12 @@ export const V2ThreadForkResponse__CodexErrorInfo = Schema.Union( | ... | @@ -16008,8 +18685,12 @@ export const V2ThreadForkResponse__CodexErrorInfo = Schema.Union( |
| 16008 | httpStatusCode: Schema.optionalKey( | 18685 | httpStatusCode: Schema.optionalKey( |
| 16009 | Schema.Union([ | 18686 | Schema.Union([ |
| 16010 | Schema.Number.annotate({ format: "uint16" }) | 18687 | Schema.Number.annotate({ format: "uint16" }) |
| 16011 | .check(Schema.isInt()) | 18688 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 16012 | .check(Schema.isGreaterThanOrEqualTo(0)), | 18689 | .check( |
| | 18690 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 18691 | expected: "a value greater than or equal to 0", |
| | 18692 | }), |
| | 18693 | ), |
| 16013 | Schema.Null, | 18694 | Schema.Null, |
| 16014 | ]), | 18695 | ]), |
| 16015 | ), | 18696 | ), |
| ... | @@ -16024,8 +18705,12 @@ export const V2ThreadForkResponse__CodexErrorInfo = Schema.Union( | ... | @@ -16024,8 +18705,12 @@ export const V2ThreadForkResponse__CodexErrorInfo = Schema.Union( |
| 16024 | httpStatusCode: Schema.optionalKey( | 18705 | httpStatusCode: Schema.optionalKey( |
| 16025 | Schema.Union([ | 18706 | Schema.Union([ |
| 16026 | Schema.Number.annotate({ format: "uint16" }) | 18707 | Schema.Number.annotate({ format: "uint16" }) |
| 16027 | .check(Schema.isInt()) | 18708 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 16028 | .check(Schema.isGreaterThanOrEqualTo(0)), | 18709 | .check( |
| | 18710 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 18711 | expected: "a value greater than or equal to 0", |
| | 18712 | }), |
| | 18713 | ), |
| 16029 | Schema.Null, | 18714 | Schema.Null, |
| 16030 | ]), | 18715 | ]), |
| 16031 | ), | 18716 | ), |
| ... | @@ -16048,8 +18733,36 @@ export const V2ThreadForkResponse__CodexErrorInfo = Schema.Union( | ... | @@ -16048,8 +18733,36 @@ export const V2ThreadForkResponse__CodexErrorInfo = Schema.Union( |
| 16048 | ).annotate({ | 18733 | ).annotate({ |
| 16049 | description: | 18734 | description: |
| 16050 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", | 18735 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", |
| | 18736 | identifier: "V2ThreadForkResponse__CodexErrorInfo", |
| 16051 | }); | 18737 | }); |
| 16052 | | 18738 | |
| | 18739 | export type V2ThreadForkResponse__TextElement = { |
| | 18740 | readonly byteRange: V2ThreadForkResponse__ByteRange; |
| | 18741 | readonly placeholder?: string | null; |
| | 18742 | }; |
| | 18743 | export const V2ThreadForkResponse__TextElement = Schema.Struct({ |
| | 18744 | byteRange: Schema.suspend( |
| | 18745 | (): Schema.Codec<V2ThreadForkResponse__ByteRange> => V2ThreadForkResponse__ByteRange, |
| | 18746 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), |
| | 18747 | placeholder: Schema.optionalKey( |
| | 18748 | Schema.Union([ |
| | 18749 | Schema.String.annotate({ |
| | 18750 | description: "Optional human-readable placeholder for the element, displayed in the UI.", |
| | 18751 | }), |
| | 18752 | Schema.Null, |
| | 18753 | ]), |
| | 18754 | ), |
| | 18755 | }).annotate({ identifier: "V2ThreadForkResponse__TextElement" }); |
| | 18756 | |
| | 18757 | export type V2ThreadForkResponse__MemoryCitation = { |
| | 18758 | readonly entries: ReadonlyArray<V2ThreadForkResponse__MemoryCitationEntry>; |
| | 18759 | readonly threadIds: ReadonlyArray<string>; |
| | 18760 | }; |
| | 18761 | export const V2ThreadForkResponse__MemoryCitation = Schema.Struct({ |
| | 18762 | entries: Schema.Array(V2ThreadForkResponse__MemoryCitationEntry), |
| | 18763 | threadIds: Schema.Array(Schema.String), |
| | 18764 | }).annotate({ identifier: "V2ThreadForkResponse__MemoryCitation" }); |
| | 18765 | |
| 16053 | export type V2ThreadForkResponse__FileUpdateChange = { | 18766 | export type V2ThreadForkResponse__FileUpdateChange = { |
| 16054 | readonly diff: string; | 18767 | readonly diff: string; |
| 16055 | readonly kind: V2ThreadForkResponse__PatchChangeKind; | 18768 | readonly kind: V2ThreadForkResponse__PatchChangeKind; |
| ... | @@ -16059,104 +18772,16 @@ export const V2ThreadForkResponse__FileUpdateChange = Schema.Struct({ | ... | @@ -16059,104 +18772,16 @@ export const V2ThreadForkResponse__FileUpdateChange = Schema.Struct({ |
| 16059 | diff: Schema.String, | 18772 | diff: Schema.String, |
| 16060 | kind: V2ThreadForkResponse__PatchChangeKind, | 18773 | kind: V2ThreadForkResponse__PatchChangeKind, |
| 16061 | path: Schema.String, | 18774 | path: Schema.String, |
| 16062 | }); | 18775 | }).annotate({ identifier: "V2ThreadForkResponse__FileUpdateChange" }); |
| 16063 | | | |
| 16064 | export type V2ThreadForkResponse__UserInput = | | |
| 16065 | | { | | |
| 16066 | readonly text: string; | | |
| 16067 | readonly text_elements?: ReadonlyArray<V2ThreadForkResponse__TextElement>; | | |
| 16068 | readonly type: "text"; | | |
| 16069 | } | | |
| 16070 | | { | | |
| 16071 | readonly detail?: V2ThreadForkResponse__ImageDetail | null; | | |
| 16072 | readonly type: "image"; | | |
| 16073 | readonly url: string; | | |
| 16074 | } | | |
| 16075 | | { | | |
| 16076 | readonly detail?: V2ThreadForkResponse__ImageDetail | null; | | |
| 16077 | readonly path: string; | | |
| 16078 | readonly type: "localImage"; | | |
| 16079 | } | | |
| 16080 | | { readonly type: "audio"; readonly url: string } | | |
| 16081 | | { readonly path: string; readonly type: "localAudio" } | | |
| 16082 | | { readonly name: string; readonly path: string; readonly type: "skill" } | | |
| 16083 | | { readonly name: string; readonly path: string; readonly type: "mention" }; | | |
| 16084 | export const V2ThreadForkResponse__UserInput = Schema.Union( | | |
| 16085 | [ | | |
| 16086 | Schema.Struct({ | | |
| 16087 | text: Schema.String, | | |
| 16088 | text_elements: Schema.optionalKey( | | |
| 16089 | Schema.Array(V2ThreadForkResponse__TextElement).annotate({ | | |
| 16090 | description: "UI-defined spans within `text` used to render or persist special elements.", | | |
| 16091 | default: [], | | |
| 16092 | }), | | |
| 16093 | ), | | |
| 16094 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | | |
| 16095 | }).annotate({ title: "TextUserInput" }), | | |
| 16096 | Schema.Struct({ | | |
| 16097 | detail: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__ImageDetail, Schema.Null])), | | |
| 16098 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | | |
| 16099 | url: Schema.String, | | |
| 16100 | }).annotate({ title: "ImageUserInput" }), | | |
| 16101 | Schema.Struct({ | | |
| 16102 | detail: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__ImageDetail, Schema.Null])), | | |
| 16103 | path: Schema.String, | | |
| 16104 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), | | |
| 16105 | }).annotate({ title: "LocalImageUserInput" }), | | |
| 16106 | Schema.Struct({ | | |
| 16107 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), | | |
| 16108 | url: Schema.String, | | |
| 16109 | }).annotate({ title: "AudioUserInput" }), | | |
| 16110 | Schema.Struct({ | | |
| 16111 | path: Schema.String, | | |
| 16112 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), | | |
| 16113 | }).annotate({ title: "LocalAudioUserInput" }), | | |
| 16114 | Schema.Struct({ | | |
| 16115 | name: Schema.String, | | |
| 16116 | path: Schema.String, | | |
| 16117 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), | | |
| 16118 | }).annotate({ title: "SkillUserInput" }), | | |
| 16119 | Schema.Struct({ | | |
| 16120 | name: Schema.String, | | |
| 16121 | path: Schema.String, | | |
| 16122 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), | | |
| 16123 | }).annotate({ title: "MentionUserInput" }), | | |
| 16124 | ], | | |
| 16125 | { mode: "oneOf" }, | | |
| 16126 | ); | | |
| 16127 | | 18776 | |
| 16128 | export type V2ThreadForkResponse__SubAgentSource = | 18777 | export type V2ThreadForkResponse__CollabAgentState = { |
| 16129 | | "review" | 18778 | readonly message?: string | null; |
| 16130 | | "compact" | 18779 | readonly status: V2ThreadForkResponse__CollabAgentStatus; |
| 16131 | | "memory_consolidation" | 18780 | }; |
| 16132 | | { | 18781 | export const V2ThreadForkResponse__CollabAgentState = Schema.Struct({ |
| 16133 | readonly thread_spawn: { | 18782 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16134 | readonly agent_nickname?: string | null; | 18783 | status: V2ThreadForkResponse__CollabAgentStatus, |
| 16135 | readonly agent_path?: V2ThreadForkResponse__AgentPath | null; | 18784 | }).annotate({ identifier: "V2ThreadForkResponse__CollabAgentState" }); |
| 16136 | readonly agent_role?: string | null; | | |
| 16137 | readonly depth: number; | | |
| 16138 | readonly parent_thread_id: V2ThreadForkResponse__ThreadId; | | |
| 16139 | }; | | |
| 16140 | } | | |
| 16141 | | { readonly other: string }; | | |
| 16142 | export const V2ThreadForkResponse__SubAgentSource = Schema.Union( | | |
| 16143 | [ | | |
| 16144 | Schema.Literals(["review", "compact", "memory_consolidation"]), | | |
| 16145 | Schema.Struct({ | | |
| 16146 | thread_spawn: Schema.Struct({ | | |
| 16147 | agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 16148 | agent_path: Schema.optionalKey( | | |
| 16149 | Schema.Union([V2ThreadForkResponse__AgentPath, Schema.Null]), | | |
| 16150 | ), | | |
| 16151 | agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 16152 | depth: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()), | | |
| 16153 | parent_thread_id: V2ThreadForkResponse__ThreadId, | | |
| 16154 | }), | | |
| 16155 | }).annotate({ title: "ThreadSpawnSubAgentSource" }), | | |
| 16156 | Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }), | | |
| 16157 | ], | | |
| 16158 | { mode: "oneOf" }, | | |
| 16159 | ); | | |
| 16160 | | 18785 | |
| 16161 | export type V2ThreadGoalGetResponse__ThreadGoal = { | 18786 | export type V2ThreadGoalGetResponse__ThreadGoal = { |
| 16162 | readonly createdAt: number; | 18787 | readonly createdAt: number; |
| ... | @@ -16169,17 +18794,30 @@ export type V2ThreadGoalGetResponse__ThreadGoal = { | ... | @@ -16169,17 +18794,30 @@ export type V2ThreadGoalGetResponse__ThreadGoal = { |
| 16169 | readonly updatedAt: number; | 18794 | readonly updatedAt: number; |
| 16170 | }; | 18795 | }; |
| 16171 | export const V2ThreadGoalGetResponse__ThreadGoal = Schema.Struct({ | 18796 | export const V2ThreadGoalGetResponse__ThreadGoal = Schema.Struct({ |
| 16172 | createdAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 18797 | createdAt: Schema.Number.annotate({ format: "int64" }).check( |
| | 18798 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 18799 | ), |
| 16173 | objective: Schema.String, | 18800 | objective: Schema.String, |
| 16174 | status: V2ThreadGoalGetResponse__ThreadGoalStatus, | 18801 | status: V2ThreadGoalGetResponse__ThreadGoalStatus, |
| 16175 | threadId: Schema.String, | 18802 | threadId: Schema.String, |
| 16176 | timeUsedSeconds: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 18803 | timeUsedSeconds: Schema.Number.annotate({ format: "int64" }).check( |
| | 18804 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 18805 | ), |
| 16177 | tokenBudget: Schema.optionalKey( | 18806 | tokenBudget: Schema.optionalKey( |
| 16178 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), | 18807 | Schema.Union([ |
| | 18808 | Schema.Number.annotate({ format: "int64" }).check( |
| | 18809 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 18810 | ), |
| | 18811 | Schema.Null, |
| | 18812 | ]), |
| 16179 | ), | 18813 | ), |
| 16180 | tokensUsed: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 18814 | tokensUsed: Schema.Number.annotate({ format: "int64" }).check( |
| 16181 | updatedAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 18815 | Schema.isInt().annotate({ expected: "an integer" }), |
| 16182 | }); | 18816 | ), |
| | 18817 | updatedAt: Schema.Number.annotate({ format: "int64" }).check( |
| | 18818 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 18819 | ), |
| | 18820 | }).annotate({ identifier: "V2ThreadGoalGetResponse__ThreadGoal" }); |
| 16183 | | 18821 | |
| 16184 | export type V2ThreadGoalSetResponse__ThreadGoal = { | 18822 | export type V2ThreadGoalSetResponse__ThreadGoal = { |
| 16185 | readonly createdAt: number; | 18823 | readonly createdAt: number; |
| ... | @@ -16192,17 +18830,30 @@ export type V2ThreadGoalSetResponse__ThreadGoal = { | ... | @@ -16192,17 +18830,30 @@ export type V2ThreadGoalSetResponse__ThreadGoal = { |
| 16192 | readonly updatedAt: number; | 18830 | readonly updatedAt: number; |
| 16193 | }; | 18831 | }; |
| 16194 | export const V2ThreadGoalSetResponse__ThreadGoal = Schema.Struct({ | 18832 | export const V2ThreadGoalSetResponse__ThreadGoal = Schema.Struct({ |
| 16195 | createdAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 18833 | createdAt: Schema.Number.annotate({ format: "int64" }).check( |
| | 18834 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 18835 | ), |
| 16196 | objective: Schema.String, | 18836 | objective: Schema.String, |
| 16197 | status: V2ThreadGoalSetResponse__ThreadGoalStatus, | 18837 | status: V2ThreadGoalSetResponse__ThreadGoalStatus, |
| 16198 | threadId: Schema.String, | 18838 | threadId: Schema.String, |
| 16199 | timeUsedSeconds: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 18839 | timeUsedSeconds: Schema.Number.annotate({ format: "int64" }).check( |
| | 18840 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 18841 | ), |
| 16200 | tokenBudget: Schema.optionalKey( | 18842 | tokenBudget: Schema.optionalKey( |
| 16201 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), | 18843 | Schema.Union([ |
| | 18844 | Schema.Number.annotate({ format: "int64" }).check( |
| | 18845 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 18846 | ), |
| | 18847 | Schema.Null, |
| | 18848 | ]), |
| 16202 | ), | 18849 | ), |
| 16203 | tokensUsed: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 18850 | tokensUsed: Schema.Number.annotate({ format: "int64" }).check( |
| 16204 | updatedAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 18851 | Schema.isInt().annotate({ expected: "an integer" }), |
| 16205 | }); | 18852 | ), |
| | 18853 | updatedAt: Schema.Number.annotate({ format: "int64" }).check( |
| | 18854 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 18855 | ), |
| | 18856 | }).annotate({ identifier: "V2ThreadGoalSetResponse__ThreadGoal" }); |
| 16206 | | 18857 | |
| 16207 | export type V2ThreadGoalUpdatedNotification__ThreadGoal = { | 18858 | export type V2ThreadGoalUpdatedNotification__ThreadGoal = { |
| 16208 | readonly createdAt: number; | 18859 | readonly createdAt: number; |
| ... | @@ -16215,17 +18866,30 @@ export type V2ThreadGoalUpdatedNotification__ThreadGoal = { | ... | @@ -16215,17 +18866,30 @@ export type V2ThreadGoalUpdatedNotification__ThreadGoal = { |
| 16215 | readonly updatedAt: number; | 18866 | readonly updatedAt: number; |
| 16216 | }; | 18867 | }; |
| 16217 | export const V2ThreadGoalUpdatedNotification__ThreadGoal = Schema.Struct({ | 18868 | export const V2ThreadGoalUpdatedNotification__ThreadGoal = Schema.Struct({ |
| 16218 | createdAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 18869 | createdAt: Schema.Number.annotate({ format: "int64" }).check( |
| | 18870 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 18871 | ), |
| 16219 | objective: Schema.String, | 18872 | objective: Schema.String, |
| 16220 | status: V2ThreadGoalUpdatedNotification__ThreadGoalStatus, | 18873 | status: V2ThreadGoalUpdatedNotification__ThreadGoalStatus, |
| 16221 | threadId: Schema.String, | 18874 | threadId: Schema.String, |
| 16222 | timeUsedSeconds: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 18875 | timeUsedSeconds: Schema.Number.annotate({ format: "int64" }).check( |
| | 18876 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 18877 | ), |
| 16223 | tokenBudget: Schema.optionalKey( | 18878 | tokenBudget: Schema.optionalKey( |
| 16224 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), | 18879 | Schema.Union([ |
| | 18880 | Schema.Number.annotate({ format: "int64" }).check( |
| | 18881 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 18882 | ), |
| | 18883 | Schema.Null, |
| | 18884 | ]), |
| 16225 | ), | 18885 | ), |
| 16226 | tokensUsed: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 18886 | tokensUsed: Schema.Number.annotate({ format: "int64" }).check( |
| 16227 | updatedAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 18887 | Schema.isInt().annotate({ expected: "an integer" }), |
| 16228 | }); | 18888 | ), |
| | 18889 | updatedAt: Schema.Number.annotate({ format: "int64" }).check( |
| | 18890 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 18891 | ), |
| | 18892 | }).annotate({ identifier: "V2ThreadGoalUpdatedNotification__ThreadGoal" }); |
| 16229 | | 18893 | |
| 16230 | export type V2ThreadListResponse__CommandAction = | 18894 | export type V2ThreadListResponse__CommandAction = |
| 16231 | | { | 18895 | | { |
| ... | @@ -16267,25 +18931,69 @@ export const V2ThreadListResponse__CommandAction = Schema.Union( | ... | @@ -16267,25 +18931,69 @@ export const V2ThreadListResponse__CommandAction = Schema.Union( |
| 16267 | }).annotate({ title: "UnknownCommandAction" }), | 18931 | }).annotate({ title: "UnknownCommandAction" }), |
| 16268 | ], | 18932 | ], |
| 16269 | { mode: "oneOf" }, | 18933 | { mode: "oneOf" }, |
| 16270 | ); | 18934 | ).annotate({ identifier: "V2ThreadListResponse__CommandAction" }); |
| 16271 | | 18935 | |
| 16272 | export type V2ThreadListResponse__CollabAgentState = { | 18936 | export type V2ThreadListResponse__SubAgentSource = |
| 16273 | readonly message?: string | null; | 18937 | | "review" |
| 16274 | readonly status: V2ThreadListResponse__CollabAgentStatus; | 18938 | | "compact" |
| 16275 | }; | 18939 | | "memory_consolidation" |
| 16276 | export const V2ThreadListResponse__CollabAgentState = Schema.Struct({ | 18940 | | { |
| 16277 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 18941 | readonly thread_spawn: { |
| 16278 | status: V2ThreadListResponse__CollabAgentStatus, | 18942 | readonly agent_nickname?: string | null; |
| 16279 | }); | 18943 | readonly agent_path?: V2ThreadListResponse__AgentPath | null; |
| | 18944 | readonly agent_role?: string | null; |
| | 18945 | readonly depth: number; |
| | 18946 | readonly parent_thread_id: V2ThreadListResponse__ThreadId; |
| | 18947 | }; |
| | 18948 | } |
| | 18949 | | { readonly other: string }; |
| | 18950 | export const V2ThreadListResponse__SubAgentSource = Schema.Union( |
| | 18951 | [ |
| | 18952 | Schema.Literals(["review", "compact", "memory_consolidation"]), |
| | 18953 | Schema.Struct({ |
| | 18954 | thread_spawn: Schema.Struct({ |
| | 18955 | agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 18956 | agent_path: Schema.optionalKey( |
| | 18957 | Schema.Union([V2ThreadListResponse__AgentPath, Schema.Null]), |
| | 18958 | ), |
| | 18959 | agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 18960 | depth: Schema.Number.annotate({ format: "int32" }).check( |
| | 18961 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 18962 | ), |
| | 18963 | parent_thread_id: V2ThreadListResponse__ThreadId, |
| | 18964 | }), |
| | 18965 | }).annotate({ title: "ThreadSpawnSubAgentSource" }), |
| | 18966 | Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }), |
| | 18967 | ], |
| | 18968 | { mode: "oneOf" }, |
| | 18969 | ).annotate({ identifier: "V2ThreadListResponse__SubAgentSource" }); |
| 16280 | | 18970 | |
| 16281 | export type V2ThreadListResponse__MemoryCitation = { | 18971 | export type V2ThreadListResponse__ThreadStatus = |
| 16282 | readonly entries: ReadonlyArray<V2ThreadListResponse__MemoryCitationEntry>; | 18972 | | { readonly type: "notLoaded" } |
| 16283 | readonly threadIds: ReadonlyArray<string>; | 18973 | | { readonly type: "idle" } |
| 16284 | }; | 18974 | | { readonly type: "systemError" } |
| 16285 | export const V2ThreadListResponse__MemoryCitation = Schema.Struct({ | 18975 | | { |
| 16286 | entries: Schema.Array(V2ThreadListResponse__MemoryCitationEntry), | 18976 | readonly activeFlags: ReadonlyArray<V2ThreadListResponse__ThreadActiveFlag>; |
| 16287 | threadIds: Schema.Array(Schema.String), | 18977 | readonly type: "active"; |
| 16288 | }); | 18978 | }; |
| | 18979 | export const V2ThreadListResponse__ThreadStatus = Schema.Union( |
| | 18980 | [ |
| | 18981 | Schema.Struct({ |
| | 18982 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), |
| | 18983 | }).annotate({ title: "NotLoadedThreadStatus" }), |
| | 18984 | Schema.Struct({ |
| | 18985 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), |
| | 18986 | }).annotate({ title: "IdleThreadStatus" }), |
| | 18987 | Schema.Struct({ |
| | 18988 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), |
| | 18989 | }).annotate({ title: "SystemErrorThreadStatus" }), |
| | 18990 | Schema.Struct({ |
| | 18991 | activeFlags: Schema.Array(V2ThreadListResponse__ThreadActiveFlag), |
| | 18992 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), |
| | 18993 | }).annotate({ title: "ActiveThreadStatus" }), |
| | 18994 | ], |
| | 18995 | { mode: "oneOf" }, |
| | 18996 | ).annotate({ identifier: "V2ThreadListResponse__ThreadStatus" }); |
| 16289 | | 18997 | |
| 16290 | export type V2ThreadListResponse__CodexErrorInfo = | 18998 | export type V2ThreadListResponse__CodexErrorInfo = |
| 16291 | | "contextWindowExceeded" | 18999 | | "contextWindowExceeded" |
| ... | @@ -16328,8 +19036,12 @@ export const V2ThreadListResponse__CodexErrorInfo = Schema.Union( | ... | @@ -16328,8 +19036,12 @@ export const V2ThreadListResponse__CodexErrorInfo = Schema.Union( |
| 16328 | httpStatusCode: Schema.optionalKey( | 19036 | httpStatusCode: Schema.optionalKey( |
| 16329 | Schema.Union([ | 19037 | Schema.Union([ |
| 16330 | Schema.Number.annotate({ format: "uint16" }) | 19038 | Schema.Number.annotate({ format: "uint16" }) |
| 16331 | .check(Schema.isInt()) | 19039 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 16332 | .check(Schema.isGreaterThanOrEqualTo(0)), | 19040 | .check( |
| | 19041 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 19042 | expected: "a value greater than or equal to 0", |
| | 19043 | }), |
| | 19044 | ), |
| 16333 | Schema.Null, | 19045 | Schema.Null, |
| 16334 | ]), | 19046 | ]), |
| 16335 | ), | 19047 | ), |
| ... | @@ -16340,8 +19052,12 @@ export const V2ThreadListResponse__CodexErrorInfo = Schema.Union( | ... | @@ -16340,8 +19052,12 @@ export const V2ThreadListResponse__CodexErrorInfo = Schema.Union( |
| 16340 | httpStatusCode: Schema.optionalKey( | 19052 | httpStatusCode: Schema.optionalKey( |
| 16341 | Schema.Union([ | 19053 | Schema.Union([ |
| 16342 | Schema.Number.annotate({ format: "uint16" }) | 19054 | Schema.Number.annotate({ format: "uint16" }) |
| 16343 | .check(Schema.isInt()) | 19055 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 16344 | .check(Schema.isGreaterThanOrEqualTo(0)), | 19056 | .check( |
| | 19057 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 19058 | expected: "a value greater than or equal to 0", |
| | 19059 | }), |
| | 19060 | ), |
| 16345 | Schema.Null, | 19061 | Schema.Null, |
| 16346 | ]), | 19062 | ]), |
| 16347 | ), | 19063 | ), |
| ... | @@ -16355,8 +19071,12 @@ export const V2ThreadListResponse__CodexErrorInfo = Schema.Union( | ... | @@ -16355,8 +19071,12 @@ export const V2ThreadListResponse__CodexErrorInfo = Schema.Union( |
| 16355 | httpStatusCode: Schema.optionalKey( | 19071 | httpStatusCode: Schema.optionalKey( |
| 16356 | Schema.Union([ | 19072 | Schema.Union([ |
| 16357 | Schema.Number.annotate({ format: "uint16" }) | 19073 | Schema.Number.annotate({ format: "uint16" }) |
| 16358 | .check(Schema.isInt()) | 19074 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 16359 | .check(Schema.isGreaterThanOrEqualTo(0)), | 19075 | .check( |
| | 19076 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 19077 | expected: "a value greater than or equal to 0", |
| | 19078 | }), |
| | 19079 | ), |
| 16360 | Schema.Null, | 19080 | Schema.Null, |
| 16361 | ]), | 19081 | ]), |
| 16362 | ), | 19082 | ), |
| ... | @@ -16371,8 +19091,12 @@ export const V2ThreadListResponse__CodexErrorInfo = Schema.Union( | ... | @@ -16371,8 +19091,12 @@ export const V2ThreadListResponse__CodexErrorInfo = Schema.Union( |
| 16371 | httpStatusCode: Schema.optionalKey( | 19091 | httpStatusCode: Schema.optionalKey( |
| 16372 | Schema.Union([ | 19092 | Schema.Union([ |
| 16373 | Schema.Number.annotate({ format: "uint16" }) | 19093 | Schema.Number.annotate({ format: "uint16" }) |
| 16374 | .check(Schema.isInt()) | 19094 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 16375 | .check(Schema.isGreaterThanOrEqualTo(0)), | 19095 | .check( |
| | 19096 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 19097 | expected: "a value greater than or equal to 0", |
| | 19098 | }), |
| | 19099 | ), |
| 16376 | Schema.Null, | 19100 | Schema.Null, |
| 16377 | ]), | 19101 | ]), |
| 16378 | ), | 19102 | ), |
| ... | @@ -16395,8 +19119,36 @@ export const V2ThreadListResponse__CodexErrorInfo = Schema.Union( | ... | @@ -16395,8 +19119,36 @@ export const V2ThreadListResponse__CodexErrorInfo = Schema.Union( |
| 16395 | ).annotate({ | 19119 | ).annotate({ |
| 16396 | description: | 19120 | description: |
| 16397 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", | 19121 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", |
| | 19122 | identifier: "V2ThreadListResponse__CodexErrorInfo", |
| 16398 | }); | 19123 | }); |
| 16399 | | 19124 | |
| | 19125 | export type V2ThreadListResponse__TextElement = { |
| | 19126 | readonly byteRange: V2ThreadListResponse__ByteRange; |
| | 19127 | readonly placeholder?: string | null; |
| | 19128 | }; |
| | 19129 | export const V2ThreadListResponse__TextElement = Schema.Struct({ |
| | 19130 | byteRange: Schema.suspend( |
| | 19131 | (): Schema.Codec<V2ThreadListResponse__ByteRange> => V2ThreadListResponse__ByteRange, |
| | 19132 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), |
| | 19133 | placeholder: Schema.optionalKey( |
| | 19134 | Schema.Union([ |
| | 19135 | Schema.String.annotate({ |
| | 19136 | description: "Optional human-readable placeholder for the element, displayed in the UI.", |
| | 19137 | }), |
| | 19138 | Schema.Null, |
| | 19139 | ]), |
| | 19140 | ), |
| | 19141 | }).annotate({ identifier: "V2ThreadListResponse__TextElement" }); |
| | 19142 | |
| | 19143 | export type V2ThreadListResponse__MemoryCitation = { |
| | 19144 | readonly entries: ReadonlyArray<V2ThreadListResponse__MemoryCitationEntry>; |
| | 19145 | readonly threadIds: ReadonlyArray<string>; |
| | 19146 | }; |
| | 19147 | export const V2ThreadListResponse__MemoryCitation = Schema.Struct({ |
| | 19148 | entries: Schema.Array(V2ThreadListResponse__MemoryCitationEntry), |
| | 19149 | threadIds: Schema.Array(Schema.String), |
| | 19150 | }).annotate({ identifier: "V2ThreadListResponse__MemoryCitation" }); |
| | 19151 | |
| 16400 | export type V2ThreadListResponse__FileUpdateChange = { | 19152 | export type V2ThreadListResponse__FileUpdateChange = { |
| 16401 | readonly diff: string; | 19153 | readonly diff: string; |
| 16402 | readonly kind: V2ThreadListResponse__PatchChangeKind; | 19154 | readonly kind: V2ThreadListResponse__PatchChangeKind; |
| ... | @@ -16406,164 +19158,120 @@ export const V2ThreadListResponse__FileUpdateChange = Schema.Struct({ | ... | @@ -16406,164 +19158,120 @@ export const V2ThreadListResponse__FileUpdateChange = Schema.Struct({ |
| 16406 | diff: Schema.String, | 19158 | diff: Schema.String, |
| 16407 | kind: V2ThreadListResponse__PatchChangeKind, | 19159 | kind: V2ThreadListResponse__PatchChangeKind, |
| 16408 | path: Schema.String, | 19160 | path: Schema.String, |
| 16409 | }); | 19161 | }).annotate({ identifier: "V2ThreadListResponse__FileUpdateChange" }); |
| 16410 | | 19162 | |
| 16411 | export type V2ThreadListResponse__UserInput = | 19163 | export type V2ThreadListResponse__CollabAgentState = { |
| | 19164 | readonly message?: string | null; |
| | 19165 | readonly status: V2ThreadListResponse__CollabAgentStatus; |
| | 19166 | }; |
| | 19167 | export const V2ThreadListResponse__CollabAgentState = Schema.Struct({ |
| | 19168 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 19169 | status: V2ThreadListResponse__CollabAgentStatus, |
| | 19170 | }).annotate({ identifier: "V2ThreadListResponse__CollabAgentState" }); |
| | 19171 | |
| | 19172 | export type V2ThreadMetadataUpdateResponse__CommandAction = |
| 16412 | | { | 19173 | | { |
| 16413 | readonly text: string; | 19174 | readonly command: string; |
| 16414 | readonly text_elements?: ReadonlyArray<V2ThreadListResponse__TextElement>; | 19175 | readonly name: string; |
| 16415 | readonly type: "text"; | 19176 | readonly path: V2ThreadMetadataUpdateResponse__AbsolutePathBuf; |
| 16416 | } | 19177 | readonly type: "read"; |
| 16417 | | { | | |
| 16418 | readonly detail?: V2ThreadListResponse__ImageDetail | null; | | |
| 16419 | readonly type: "image"; | | |
| 16420 | readonly url: string; | | |
| 16421 | } | 19178 | } |
| | 19179 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| 16422 | | { | 19180 | | { |
| 16423 | readonly detail?: V2ThreadListResponse__ImageDetail | null; | 19181 | readonly command: string; |
| 16424 | readonly path: string; | 19182 | readonly path?: string | null; |
| 16425 | readonly type: "localImage"; | 19183 | readonly query?: string | null; |
| | 19184 | readonly type: "search"; |
| 16426 | } | 19185 | } |
| 16427 | | { readonly type: "audio"; readonly url: string } | 19186 | | { readonly command: string; readonly type: "unknown" }; |
| 16428 | | { readonly path: string; readonly type: "localAudio" } | 19187 | export const V2ThreadMetadataUpdateResponse__CommandAction = Schema.Union( |
| 16429 | | { readonly name: string; readonly path: string; readonly type: "skill" } | | |
| 16430 | | { readonly name: string; readonly path: string; readonly type: "mention" }; | | |
| 16431 | export const V2ThreadListResponse__UserInput = Schema.Union( | | |
| 16432 | [ | 19188 | [ |
| 16433 | Schema.Struct({ | 19189 | Schema.Struct({ |
| 16434 | text: Schema.String, | 19190 | command: Schema.String, |
| 16435 | text_elements: Schema.optionalKey( | 19191 | name: Schema.String, |
| 16436 | Schema.Array(V2ThreadListResponse__TextElement).annotate({ | 19192 | path: V2ThreadMetadataUpdateResponse__AbsolutePathBuf, |
| 16437 | description: "UI-defined spans within `text` used to render or persist special elements.", | 19193 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 16438 | default: [], | 19194 | }).annotate({ title: "ReadCommandAction" }), |
| 16439 | }), | | |
| 16440 | ), | | |
| 16441 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | | |
| 16442 | }).annotate({ title: "TextUserInput" }), | | |
| 16443 | Schema.Struct({ | | |
| 16444 | detail: Schema.optionalKey(Schema.Union([V2ThreadListResponse__ImageDetail, Schema.Null])), | | |
| 16445 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | | |
| 16446 | url: Schema.String, | | |
| 16447 | }).annotate({ title: "ImageUserInput" }), | | |
| 16448 | Schema.Struct({ | | |
| 16449 | detail: Schema.optionalKey(Schema.Union([V2ThreadListResponse__ImageDetail, Schema.Null])), | | |
| 16450 | path: Schema.String, | | |
| 16451 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), | | |
| 16452 | }).annotate({ title: "LocalImageUserInput" }), | | |
| 16453 | Schema.Struct({ | | |
| 16454 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), | | |
| 16455 | url: Schema.String, | | |
| 16456 | }).annotate({ title: "AudioUserInput" }), | | |
| 16457 | Schema.Struct({ | 19195 | Schema.Struct({ |
| 16458 | path: Schema.String, | 19196 | command: Schema.String, |
| 16459 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), | 19197 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16460 | }).annotate({ title: "LocalAudioUserInput" }), | 19198 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), |
| | 19199 | }).annotate({ title: "ListFilesCommandAction" }), |
| 16461 | Schema.Struct({ | 19200 | Schema.Struct({ |
| 16462 | name: Schema.String, | 19201 | command: Schema.String, |
| 16463 | path: Schema.String, | 19202 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16464 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), | 19203 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16465 | }).annotate({ title: "SkillUserInput" }), | 19204 | type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }), |
| | 19205 | }).annotate({ title: "SearchCommandAction" }), |
| 16466 | Schema.Struct({ | 19206 | Schema.Struct({ |
| 16467 | name: Schema.String, | 19207 | command: Schema.String, |
| 16468 | path: Schema.String, | 19208 | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), |
| 16469 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), | 19209 | }).annotate({ title: "UnknownCommandAction" }), |
| 16470 | }).annotate({ title: "MentionUserInput" }), | | |
| 16471 | ], | 19210 | ], |
| 16472 | { mode: "oneOf" }, | 19211 | { mode: "oneOf" }, |
| 16473 | ); | 19212 | ).annotate({ identifier: "V2ThreadMetadataUpdateResponse__CommandAction" }); |
| 16474 | | 19213 | |
| 16475 | export type V2ThreadListResponse__SubAgentSource = | 19214 | export type V2ThreadMetadataUpdateResponse__SubAgentSource = |
| 16476 | | "review" | 19215 | | "review" |
| 16477 | | "compact" | 19216 | | "compact" |
| 16478 | | "memory_consolidation" | 19217 | | "memory_consolidation" |
| 16479 | | { | 19218 | | { |
| 16480 | readonly thread_spawn: { | 19219 | readonly thread_spawn: { |
| 16481 | readonly agent_nickname?: string | null; | 19220 | readonly agent_nickname?: string | null; |
| 16482 | readonly agent_path?: V2ThreadListResponse__AgentPath | null; | 19221 | readonly agent_path?: V2ThreadMetadataUpdateResponse__AgentPath | null; |
| 16483 | readonly agent_role?: string | null; | 19222 | readonly agent_role?: string | null; |
| 16484 | readonly depth: number; | 19223 | readonly depth: number; |
| 16485 | readonly parent_thread_id: V2ThreadListResponse__ThreadId; | 19224 | readonly parent_thread_id: V2ThreadMetadataUpdateResponse__ThreadId; |
| 16486 | }; | 19225 | }; |
| 16487 | } | 19226 | } |
| 16488 | | { readonly other: string }; | 19227 | | { readonly other: string }; |
| 16489 | export const V2ThreadListResponse__SubAgentSource = Schema.Union( | 19228 | export const V2ThreadMetadataUpdateResponse__SubAgentSource = Schema.Union( |
| 16490 | [ | 19229 | [ |
| 16491 | Schema.Literals(["review", "compact", "memory_consolidation"]), | 19230 | Schema.Literals(["review", "compact", "memory_consolidation"]), |
| 16492 | Schema.Struct({ | 19231 | Schema.Struct({ |
| 16493 | thread_spawn: Schema.Struct({ | 19232 | thread_spawn: Schema.Struct({ |
| 16494 | agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 19233 | agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16495 | agent_path: Schema.optionalKey( | 19234 | agent_path: Schema.optionalKey( |
| 16496 | Schema.Union([V2ThreadListResponse__AgentPath, Schema.Null]), | 19235 | Schema.Union([V2ThreadMetadataUpdateResponse__AgentPath, Schema.Null]), |
| 16497 | ), | 19236 | ), |
| 16498 | agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 19237 | agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16499 | depth: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()), | 19238 | depth: Schema.Number.annotate({ format: "int32" }).check( |
| 16500 | parent_thread_id: V2ThreadListResponse__ThreadId, | 19239 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 19240 | ), |
| | 19241 | parent_thread_id: V2ThreadMetadataUpdateResponse__ThreadId, |
| 16501 | }), | 19242 | }), |
| 16502 | }).annotate({ title: "ThreadSpawnSubAgentSource" }), | 19243 | }).annotate({ title: "ThreadSpawnSubAgentSource" }), |
| 16503 | Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }), | 19244 | Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }), |
| 16504 | ], | 19245 | ], |
| 16505 | { mode: "oneOf" }, | 19246 | { mode: "oneOf" }, |
| 16506 | ); | 19247 | ).annotate({ identifier: "V2ThreadMetadataUpdateResponse__SubAgentSource" }); |
| 16507 | | 19248 | |
| 16508 | export type V2ThreadMetadataUpdateResponse__CommandAction = | 19249 | export type V2ThreadMetadataUpdateResponse__ThreadStatus = |
| 16509 | | { | 19250 | | { readonly type: "notLoaded" } |
| 16510 | readonly command: string; | 19251 | | { readonly type: "idle" } |
| 16511 | readonly name: string; | 19252 | | { readonly type: "systemError" } |
| 16512 | readonly path: V2ThreadMetadataUpdateResponse__AbsolutePathBuf; | | |
| 16513 | readonly type: "read"; | | |
| 16514 | } | | |
| 16515 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } | | |
| 16516 | | { | 19253 | | { |
| 16517 | readonly command: string; | 19254 | readonly activeFlags: ReadonlyArray<V2ThreadMetadataUpdateResponse__ThreadActiveFlag>; |
| 16518 | readonly path?: string | null; | 19255 | readonly type: "active"; |
| 16519 | readonly query?: string | null; | 19256 | }; |
| 16520 | readonly type: "search"; | 19257 | export const V2ThreadMetadataUpdateResponse__ThreadStatus = Schema.Union( |
| 16521 | } | | |
| 16522 | | { readonly command: string; readonly type: "unknown" }; | | |
| 16523 | export const V2ThreadMetadataUpdateResponse__CommandAction = Schema.Union( | | |
| 16524 | [ | 19258 | [ |
| 16525 | Schema.Struct({ | 19259 | Schema.Struct({ |
| 16526 | command: Schema.String, | 19260 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), |
| 16527 | name: Schema.String, | 19261 | }).annotate({ title: "NotLoadedThreadStatus" }), |
| 16528 | path: V2ThreadMetadataUpdateResponse__AbsolutePathBuf, | | |
| 16529 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), | | |
| 16530 | }).annotate({ title: "ReadCommandAction" }), | | |
| 16531 | Schema.Struct({ | 19262 | Schema.Struct({ |
| 16532 | command: Schema.String, | 19263 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), |
| 16533 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 19264 | }).annotate({ title: "IdleThreadStatus" }), |
| 16534 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), | | |
| 16535 | }).annotate({ title: "ListFilesCommandAction" }), | | |
| 16536 | Schema.Struct({ | 19265 | Schema.Struct({ |
| 16537 | command: Schema.String, | 19266 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), |
| 16538 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 19267 | }).annotate({ title: "SystemErrorThreadStatus" }), |
| 16539 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 16540 | type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }), | | |
| 16541 | }).annotate({ title: "SearchCommandAction" }), | | |
| 16542 | Schema.Struct({ | 19268 | Schema.Struct({ |
| 16543 | command: Schema.String, | 19269 | activeFlags: Schema.Array(V2ThreadMetadataUpdateResponse__ThreadActiveFlag), |
| 16544 | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), | 19270 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), |
| 16545 | }).annotate({ title: "UnknownCommandAction" }), | 19271 | }).annotate({ title: "ActiveThreadStatus" }), |
| 16546 | ], | 19272 | ], |
| 16547 | { mode: "oneOf" }, | 19273 | { mode: "oneOf" }, |
| 16548 | ); | 19274 | ).annotate({ identifier: "V2ThreadMetadataUpdateResponse__ThreadStatus" }); |
| 16549 | | | |
| 16550 | export type V2ThreadMetadataUpdateResponse__CollabAgentState = { | | |
| 16551 | readonly message?: string | null; | | |
| 16552 | readonly status: V2ThreadMetadataUpdateResponse__CollabAgentStatus; | | |
| 16553 | }; | | |
| 16554 | export const V2ThreadMetadataUpdateResponse__CollabAgentState = Schema.Struct({ | | |
| 16555 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 16556 | status: V2ThreadMetadataUpdateResponse__CollabAgentStatus, | | |
| 16557 | }); | | |
| 16558 | | | |
| 16559 | export type V2ThreadMetadataUpdateResponse__MemoryCitation = { | | |
| 16560 | readonly entries: ReadonlyArray<V2ThreadMetadataUpdateResponse__MemoryCitationEntry>; | | |
| 16561 | readonly threadIds: ReadonlyArray<string>; | | |
| 16562 | }; | | |
| 16563 | export const V2ThreadMetadataUpdateResponse__MemoryCitation = Schema.Struct({ | | |
| 16564 | entries: Schema.Array(V2ThreadMetadataUpdateResponse__MemoryCitationEntry), | | |
| 16565 | threadIds: Schema.Array(Schema.String), | | |
| 16566 | }); | | |
| 16567 | | 19275 | |
| 16568 | export type V2ThreadMetadataUpdateResponse__CodexErrorInfo = | 19276 | export type V2ThreadMetadataUpdateResponse__CodexErrorInfo = |
| 16569 | | "contextWindowExceeded" | 19277 | | "contextWindowExceeded" |
| ... | @@ -16606,8 +19314,12 @@ export const V2ThreadMetadataUpdateResponse__CodexErrorInfo = Schema.Union( | ... | @@ -16606,8 +19314,12 @@ export const V2ThreadMetadataUpdateResponse__CodexErrorInfo = Schema.Union( |
| 16606 | httpStatusCode: Schema.optionalKey( | 19314 | httpStatusCode: Schema.optionalKey( |
| 16607 | Schema.Union([ | 19315 | Schema.Union([ |
| 16608 | Schema.Number.annotate({ format: "uint16" }) | 19316 | Schema.Number.annotate({ format: "uint16" }) |
| 16609 | .check(Schema.isInt()) | 19317 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 16610 | .check(Schema.isGreaterThanOrEqualTo(0)), | 19318 | .check( |
| | 19319 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 19320 | expected: "a value greater than or equal to 0", |
| | 19321 | }), |
| | 19322 | ), |
| 16611 | Schema.Null, | 19323 | Schema.Null, |
| 16612 | ]), | 19324 | ]), |
| 16613 | ), | 19325 | ), |
| ... | @@ -16618,8 +19330,12 @@ export const V2ThreadMetadataUpdateResponse__CodexErrorInfo = Schema.Union( | ... | @@ -16618,8 +19330,12 @@ export const V2ThreadMetadataUpdateResponse__CodexErrorInfo = Schema.Union( |
| 16618 | httpStatusCode: Schema.optionalKey( | 19330 | httpStatusCode: Schema.optionalKey( |
| 16619 | Schema.Union([ | 19331 | Schema.Union([ |
| 16620 | Schema.Number.annotate({ format: "uint16" }) | 19332 | Schema.Number.annotate({ format: "uint16" }) |
| 16621 | .check(Schema.isInt()) | 19333 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 16622 | .check(Schema.isGreaterThanOrEqualTo(0)), | 19334 | .check( |
| | 19335 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 19336 | expected: "a value greater than or equal to 0", |
| | 19337 | }), |
| | 19338 | ), |
| 16623 | Schema.Null, | 19339 | Schema.Null, |
| 16624 | ]), | 19340 | ]), |
| 16625 | ), | 19341 | ), |
| ... | @@ -16633,8 +19349,12 @@ export const V2ThreadMetadataUpdateResponse__CodexErrorInfo = Schema.Union( | ... | @@ -16633,8 +19349,12 @@ export const V2ThreadMetadataUpdateResponse__CodexErrorInfo = Schema.Union( |
| 16633 | httpStatusCode: Schema.optionalKey( | 19349 | httpStatusCode: Schema.optionalKey( |
| 16634 | Schema.Union([ | 19350 | Schema.Union([ |
| 16635 | Schema.Number.annotate({ format: "uint16" }) | 19351 | Schema.Number.annotate({ format: "uint16" }) |
| 16636 | .check(Schema.isInt()) | 19352 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 16637 | .check(Schema.isGreaterThanOrEqualTo(0)), | 19353 | .check( |
| | 19354 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 19355 | expected: "a value greater than or equal to 0", |
| | 19356 | }), |
| | 19357 | ), |
| 16638 | Schema.Null, | 19358 | Schema.Null, |
| 16639 | ]), | 19359 | ]), |
| 16640 | ), | 19360 | ), |
| ... | @@ -16649,8 +19369,12 @@ export const V2ThreadMetadataUpdateResponse__CodexErrorInfo = Schema.Union( | ... | @@ -16649,8 +19369,12 @@ export const V2ThreadMetadataUpdateResponse__CodexErrorInfo = Schema.Union( |
| 16649 | httpStatusCode: Schema.optionalKey( | 19369 | httpStatusCode: Schema.optionalKey( |
| 16650 | Schema.Union([ | 19370 | Schema.Union([ |
| 16651 | Schema.Number.annotate({ format: "uint16" }) | 19371 | Schema.Number.annotate({ format: "uint16" }) |
| 16652 | .check(Schema.isInt()) | 19372 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 16653 | .check(Schema.isGreaterThanOrEqualTo(0)), | 19373 | .check( |
| | 19374 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 19375 | expected: "a value greater than or equal to 0", |
| | 19376 | }), |
| | 19377 | ), |
| 16654 | Schema.Null, | 19378 | Schema.Null, |
| 16655 | ]), | 19379 | ]), |
| 16656 | ), | 19380 | ), |
| ... | @@ -16673,8 +19397,37 @@ export const V2ThreadMetadataUpdateResponse__CodexErrorInfo = Schema.Union( | ... | @@ -16673,8 +19397,37 @@ export const V2ThreadMetadataUpdateResponse__CodexErrorInfo = Schema.Union( |
| 16673 | ).annotate({ | 19397 | ).annotate({ |
| 16674 | description: | 19398 | description: |
| 16675 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", | 19399 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", |
| | 19400 | identifier: "V2ThreadMetadataUpdateResponse__CodexErrorInfo", |
| 16676 | }); | 19401 | }); |
| 16677 | | 19402 | |
| | 19403 | export type V2ThreadMetadataUpdateResponse__TextElement = { |
| | 19404 | readonly byteRange: V2ThreadMetadataUpdateResponse__ByteRange; |
| | 19405 | readonly placeholder?: string | null; |
| | 19406 | }; |
| | 19407 | export const V2ThreadMetadataUpdateResponse__TextElement = Schema.Struct({ |
| | 19408 | byteRange: Schema.suspend( |
| | 19409 | (): Schema.Codec<V2ThreadMetadataUpdateResponse__ByteRange> => |
| | 19410 | V2ThreadMetadataUpdateResponse__ByteRange, |
| | 19411 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), |
| | 19412 | placeholder: Schema.optionalKey( |
| | 19413 | Schema.Union([ |
| | 19414 | Schema.String.annotate({ |
| | 19415 | description: "Optional human-readable placeholder for the element, displayed in the UI.", |
| | 19416 | }), |
| | 19417 | Schema.Null, |
| | 19418 | ]), |
| | 19419 | ), |
| | 19420 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__TextElement" }); |
| | 19421 | |
| | 19422 | export type V2ThreadMetadataUpdateResponse__MemoryCitation = { |
| | 19423 | readonly entries: ReadonlyArray<V2ThreadMetadataUpdateResponse__MemoryCitationEntry>; |
| | 19424 | readonly threadIds: ReadonlyArray<string>; |
| | 19425 | }; |
| | 19426 | export const V2ThreadMetadataUpdateResponse__MemoryCitation = Schema.Struct({ |
| | 19427 | entries: Schema.Array(V2ThreadMetadataUpdateResponse__MemoryCitationEntry), |
| | 19428 | threadIds: Schema.Array(Schema.String), |
| | 19429 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__MemoryCitation" }); |
| | 19430 | |
| 16678 | export type V2ThreadMetadataUpdateResponse__FileUpdateChange = { | 19431 | export type V2ThreadMetadataUpdateResponse__FileUpdateChange = { |
| 16679 | readonly diff: string; | 19432 | readonly diff: string; |
| 16680 | readonly kind: V2ThreadMetadataUpdateResponse__PatchChangeKind; | 19433 | readonly kind: V2ThreadMetadataUpdateResponse__PatchChangeKind; |
| ... | @@ -16684,168 +19437,120 @@ export const V2ThreadMetadataUpdateResponse__FileUpdateChange = Schema.Struct({ | ... | @@ -16684,168 +19437,120 @@ export const V2ThreadMetadataUpdateResponse__FileUpdateChange = Schema.Struct({ |
| 16684 | diff: Schema.String, | 19437 | diff: Schema.String, |
| 16685 | kind: V2ThreadMetadataUpdateResponse__PatchChangeKind, | 19438 | kind: V2ThreadMetadataUpdateResponse__PatchChangeKind, |
| 16686 | path: Schema.String, | 19439 | path: Schema.String, |
| 16687 | }); | 19440 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__FileUpdateChange" }); |
| 16688 | | 19441 | |
| 16689 | export type V2ThreadMetadataUpdateResponse__UserInput = | 19442 | export type V2ThreadMetadataUpdateResponse__CollabAgentState = { |
| 16690 | | { | 19443 | readonly message?: string | null; |
| 16691 | readonly text: string; | 19444 | readonly status: V2ThreadMetadataUpdateResponse__CollabAgentStatus; |
| 16692 | readonly text_elements?: ReadonlyArray<V2ThreadMetadataUpdateResponse__TextElement>; | 19445 | }; |
| 16693 | readonly type: "text"; | 19446 | export const V2ThreadMetadataUpdateResponse__CollabAgentState = Schema.Struct({ |
| 16694 | } | 19447 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 19448 | status: V2ThreadMetadataUpdateResponse__CollabAgentStatus, |
| | 19449 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__CollabAgentState" }); |
| | 19450 | |
| | 19451 | export type V2ThreadReadResponse__CommandAction = |
| 16695 | | { | 19452 | | { |
| 16696 | readonly detail?: V2ThreadMetadataUpdateResponse__ImageDetail | null; | 19453 | readonly command: string; |
| 16697 | readonly type: "image"; | 19454 | readonly name: string; |
| 16698 | readonly url: string; | 19455 | readonly path: V2ThreadReadResponse__AbsolutePathBuf; |
| | 19456 | readonly type: "read"; |
| 16699 | } | 19457 | } |
| | 19458 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| 16700 | | { | 19459 | | { |
| 16701 | readonly detail?: V2ThreadMetadataUpdateResponse__ImageDetail | null; | 19460 | readonly command: string; |
| 16702 | readonly path: string; | 19461 | readonly path?: string | null; |
| 16703 | readonly type: "localImage"; | 19462 | readonly query?: string | null; |
| | 19463 | readonly type: "search"; |
| 16704 | } | 19464 | } |
| 16705 | | { readonly type: "audio"; readonly url: string } | 19465 | | { readonly command: string; readonly type: "unknown" }; |
| 16706 | | { readonly path: string; readonly type: "localAudio" } | 19466 | export const V2ThreadReadResponse__CommandAction = Schema.Union( |
| 16707 | | { readonly name: string; readonly path: string; readonly type: "skill" } | | |
| 16708 | | { readonly name: string; readonly path: string; readonly type: "mention" }; | | |
| 16709 | export const V2ThreadMetadataUpdateResponse__UserInput = Schema.Union( | | |
| 16710 | [ | 19467 | [ |
| 16711 | Schema.Struct({ | 19468 | Schema.Struct({ |
| 16712 | text: Schema.String, | 19469 | command: Schema.String, |
| 16713 | text_elements: Schema.optionalKey( | 19470 | name: Schema.String, |
| 16714 | Schema.Array(V2ThreadMetadataUpdateResponse__TextElement).annotate({ | 19471 | path: V2ThreadReadResponse__AbsolutePathBuf, |
| 16715 | description: "UI-defined spans within `text` used to render or persist special elements.", | 19472 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 16716 | default: [], | 19473 | }).annotate({ title: "ReadCommandAction" }), |
| 16717 | }), | | |
| 16718 | ), | | |
| 16719 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | | |
| 16720 | }).annotate({ title: "TextUserInput" }), | | |
| 16721 | Schema.Struct({ | | |
| 16722 | detail: Schema.optionalKey( | | |
| 16723 | Schema.Union([V2ThreadMetadataUpdateResponse__ImageDetail, Schema.Null]), | | |
| 16724 | ), | | |
| 16725 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | | |
| 16726 | url: Schema.String, | | |
| 16727 | }).annotate({ title: "ImageUserInput" }), | | |
| 16728 | Schema.Struct({ | | |
| 16729 | detail: Schema.optionalKey( | | |
| 16730 | Schema.Union([V2ThreadMetadataUpdateResponse__ImageDetail, Schema.Null]), | | |
| 16731 | ), | | |
| 16732 | path: Schema.String, | | |
| 16733 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), | | |
| 16734 | }).annotate({ title: "LocalImageUserInput" }), | | |
| 16735 | Schema.Struct({ | | |
| 16736 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), | | |
| 16737 | url: Schema.String, | | |
| 16738 | }).annotate({ title: "AudioUserInput" }), | | |
| 16739 | Schema.Struct({ | 19474 | Schema.Struct({ |
| 16740 | path: Schema.String, | 19475 | command: Schema.String, |
| 16741 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), | 19476 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16742 | }).annotate({ title: "LocalAudioUserInput" }), | 19477 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), |
| | 19478 | }).annotate({ title: "ListFilesCommandAction" }), |
| 16743 | Schema.Struct({ | 19479 | Schema.Struct({ |
| 16744 | name: Schema.String, | 19480 | command: Schema.String, |
| 16745 | path: Schema.String, | 19481 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16746 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), | 19482 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16747 | }).annotate({ title: "SkillUserInput" }), | 19483 | type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }), |
| | 19484 | }).annotate({ title: "SearchCommandAction" }), |
| 16748 | Schema.Struct({ | 19485 | Schema.Struct({ |
| 16749 | name: Schema.String, | 19486 | command: Schema.String, |
| 16750 | path: Schema.String, | 19487 | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), |
| 16751 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), | 19488 | }).annotate({ title: "UnknownCommandAction" }), |
| 16752 | }).annotate({ title: "MentionUserInput" }), | | |
| 16753 | ], | 19489 | ], |
| 16754 | { mode: "oneOf" }, | 19490 | { mode: "oneOf" }, |
| 16755 | ); | 19491 | ).annotate({ identifier: "V2ThreadReadResponse__CommandAction" }); |
| 16756 | | 19492 | |
| 16757 | export type V2ThreadMetadataUpdateResponse__SubAgentSource = | 19493 | export type V2ThreadReadResponse__SubAgentSource = |
| 16758 | | "review" | 19494 | | "review" |
| 16759 | | "compact" | 19495 | | "compact" |
| 16760 | | "memory_consolidation" | 19496 | | "memory_consolidation" |
| 16761 | | { | 19497 | | { |
| 16762 | readonly thread_spawn: { | 19498 | readonly thread_spawn: { |
| 16763 | readonly agent_nickname?: string | null; | 19499 | readonly agent_nickname?: string | null; |
| 16764 | readonly agent_path?: V2ThreadMetadataUpdateResponse__AgentPath | null; | 19500 | readonly agent_path?: V2ThreadReadResponse__AgentPath | null; |
| 16765 | readonly agent_role?: string | null; | 19501 | readonly agent_role?: string | null; |
| 16766 | readonly depth: number; | 19502 | readonly depth: number; |
| 16767 | readonly parent_thread_id: V2ThreadMetadataUpdateResponse__ThreadId; | 19503 | readonly parent_thread_id: V2ThreadReadResponse__ThreadId; |
| 16768 | }; | 19504 | }; |
| 16769 | } | 19505 | } |
| 16770 | | { readonly other: string }; | 19506 | | { readonly other: string }; |
| 16771 | export const V2ThreadMetadataUpdateResponse__SubAgentSource = Schema.Union( | 19507 | export const V2ThreadReadResponse__SubAgentSource = Schema.Union( |
| 16772 | [ | 19508 | [ |
| 16773 | Schema.Literals(["review", "compact", "memory_consolidation"]), | 19509 | Schema.Literals(["review", "compact", "memory_consolidation"]), |
| 16774 | Schema.Struct({ | 19510 | Schema.Struct({ |
| 16775 | thread_spawn: Schema.Struct({ | 19511 | thread_spawn: Schema.Struct({ |
| 16776 | agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 19512 | agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16777 | agent_path: Schema.optionalKey( | 19513 | agent_path: Schema.optionalKey( |
| 16778 | Schema.Union([V2ThreadMetadataUpdateResponse__AgentPath, Schema.Null]), | 19514 | Schema.Union([V2ThreadReadResponse__AgentPath, Schema.Null]), |
| 16779 | ), | 19515 | ), |
| 16780 | agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 19516 | agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16781 | depth: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()), | 19517 | depth: Schema.Number.annotate({ format: "int32" }).check( |
| 16782 | parent_thread_id: V2ThreadMetadataUpdateResponse__ThreadId, | 19518 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 19519 | ), |
| | 19520 | parent_thread_id: V2ThreadReadResponse__ThreadId, |
| 16783 | }), | 19521 | }), |
| 16784 | }).annotate({ title: "ThreadSpawnSubAgentSource" }), | 19522 | }).annotate({ title: "ThreadSpawnSubAgentSource" }), |
| 16785 | Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }), | 19523 | Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }), |
| 16786 | ], | 19524 | ], |
| 16787 | { mode: "oneOf" }, | 19525 | { mode: "oneOf" }, |
| 16788 | ); | 19526 | ).annotate({ identifier: "V2ThreadReadResponse__SubAgentSource" }); |
| 16789 | | 19527 | |
| 16790 | export type V2ThreadReadResponse__CommandAction = | 19528 | export type V2ThreadReadResponse__ThreadStatus = |
| 16791 | | { | 19529 | | { readonly type: "notLoaded" } |
| 16792 | readonly command: string; | 19530 | | { readonly type: "idle" } |
| 16793 | readonly name: string; | 19531 | | { readonly type: "systemError" } |
| 16794 | readonly path: V2ThreadReadResponse__AbsolutePathBuf; | | |
| 16795 | readonly type: "read"; | | |
| 16796 | } | | |
| 16797 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } | | |
| 16798 | | { | 19532 | | { |
| 16799 | readonly command: string; | 19533 | readonly activeFlags: ReadonlyArray<V2ThreadReadResponse__ThreadActiveFlag>; |
| 16800 | readonly path?: string | null; | 19534 | readonly type: "active"; |
| 16801 | readonly query?: string | null; | 19535 | }; |
| 16802 | readonly type: "search"; | 19536 | export const V2ThreadReadResponse__ThreadStatus = Schema.Union( |
| 16803 | } | | |
| 16804 | | { readonly command: string; readonly type: "unknown" }; | | |
| 16805 | export const V2ThreadReadResponse__CommandAction = Schema.Union( | | |
| 16806 | [ | 19537 | [ |
| 16807 | Schema.Struct({ | 19538 | Schema.Struct({ |
| 16808 | command: Schema.String, | 19539 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), |
| 16809 | name: Schema.String, | 19540 | }).annotate({ title: "NotLoadedThreadStatus" }), |
| 16810 | path: V2ThreadReadResponse__AbsolutePathBuf, | | |
| 16811 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), | | |
| 16812 | }).annotate({ title: "ReadCommandAction" }), | | |
| 16813 | Schema.Struct({ | 19541 | Schema.Struct({ |
| 16814 | command: Schema.String, | 19542 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), |
| 16815 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 19543 | }).annotate({ title: "IdleThreadStatus" }), |
| 16816 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), | | |
| 16817 | }).annotate({ title: "ListFilesCommandAction" }), | | |
| 16818 | Schema.Struct({ | 19544 | Schema.Struct({ |
| 16819 | command: Schema.String, | 19545 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), |
| 16820 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 19546 | }).annotate({ title: "SystemErrorThreadStatus" }), |
| 16821 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 16822 | type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }), | | |
| 16823 | }).annotate({ title: "SearchCommandAction" }), | | |
| 16824 | Schema.Struct({ | 19547 | Schema.Struct({ |
| 16825 | command: Schema.String, | 19548 | activeFlags: Schema.Array(V2ThreadReadResponse__ThreadActiveFlag), |
| 16826 | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), | 19549 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), |
| 16827 | }).annotate({ title: "UnknownCommandAction" }), | 19550 | }).annotate({ title: "ActiveThreadStatus" }), |
| 16828 | ], | 19551 | ], |
| 16829 | { mode: "oneOf" }, | 19552 | { mode: "oneOf" }, |
| 16830 | ); | 19553 | ).annotate({ identifier: "V2ThreadReadResponse__ThreadStatus" }); |
| 16831 | | | |
| 16832 | export type V2ThreadReadResponse__CollabAgentState = { | | |
| 16833 | readonly message?: string | null; | | |
| 16834 | readonly status: V2ThreadReadResponse__CollabAgentStatus; | | |
| 16835 | }; | | |
| 16836 | export const V2ThreadReadResponse__CollabAgentState = Schema.Struct({ | | |
| 16837 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 16838 | status: V2ThreadReadResponse__CollabAgentStatus, | | |
| 16839 | }); | | |
| 16840 | | | |
| 16841 | export type V2ThreadReadResponse__MemoryCitation = { | | |
| 16842 | readonly entries: ReadonlyArray<V2ThreadReadResponse__MemoryCitationEntry>; | | |
| 16843 | readonly threadIds: ReadonlyArray<string>; | | |
| 16844 | }; | | |
| 16845 | export const V2ThreadReadResponse__MemoryCitation = Schema.Struct({ | | |
| 16846 | entries: Schema.Array(V2ThreadReadResponse__MemoryCitationEntry), | | |
| 16847 | threadIds: Schema.Array(Schema.String), | | |
| 16848 | }); | | |
| 16849 | | 19554 | |
| 16850 | export type V2ThreadReadResponse__CodexErrorInfo = | 19555 | export type V2ThreadReadResponse__CodexErrorInfo = |
| 16851 | | "contextWindowExceeded" | 19556 | | "contextWindowExceeded" |
| ... | @@ -16892,8 +19597,12 @@ export const V2ThreadReadResponse__CodexErrorInfo = Schema.Union( | ... | @@ -16892,8 +19597,12 @@ export const V2ThreadReadResponse__CodexErrorInfo = Schema.Union( |
| 16892 | httpStatusCode: Schema.optionalKey( | 19597 | httpStatusCode: Schema.optionalKey( |
| 16893 | Schema.Union([ | 19598 | Schema.Union([ |
| 16894 | Schema.Number.annotate({ format: "uint16" }) | 19599 | Schema.Number.annotate({ format: "uint16" }) |
| 16895 | .check(Schema.isInt()) | 19600 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 16896 | .check(Schema.isGreaterThanOrEqualTo(0)), | 19601 | .check( |
| | 19602 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 19603 | expected: "a value greater than or equal to 0", |
| | 19604 | }), |
| | 19605 | ), |
| 16897 | Schema.Null, | 19606 | Schema.Null, |
| 16898 | ]), | 19607 | ]), |
| 16899 | ), | 19608 | ), |
| ... | @@ -16904,8 +19613,12 @@ export const V2ThreadReadResponse__CodexErrorInfo = Schema.Union( | ... | @@ -16904,8 +19613,12 @@ export const V2ThreadReadResponse__CodexErrorInfo = Schema.Union( |
| 16904 | httpStatusCode: Schema.optionalKey( | 19613 | httpStatusCode: Schema.optionalKey( |
| 16905 | Schema.Union([ | 19614 | Schema.Union([ |
| 16906 | Schema.Number.annotate({ format: "uint16" }) | 19615 | Schema.Number.annotate({ format: "uint16" }) |
| 16907 | .check(Schema.isInt()) | 19616 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 16908 | .check(Schema.isGreaterThanOrEqualTo(0)), | 19617 | .check( |
| | 19618 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 19619 | expected: "a value greater than or equal to 0", |
| | 19620 | }), |
| | 19621 | ), |
| 16909 | Schema.Null, | 19622 | Schema.Null, |
| 16910 | ]), | 19623 | ]), |
| 16911 | ), | 19624 | ), |
| ... | @@ -16919,8 +19632,12 @@ export const V2ThreadReadResponse__CodexErrorInfo = Schema.Union( | ... | @@ -16919,8 +19632,12 @@ export const V2ThreadReadResponse__CodexErrorInfo = Schema.Union( |
| 16919 | httpStatusCode: Schema.optionalKey( | 19632 | httpStatusCode: Schema.optionalKey( |
| 16920 | Schema.Union([ | 19633 | Schema.Union([ |
| 16921 | Schema.Number.annotate({ format: "uint16" }) | 19634 | Schema.Number.annotate({ format: "uint16" }) |
| 16922 | .check(Schema.isInt()) | 19635 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 16923 | .check(Schema.isGreaterThanOrEqualTo(0)), | 19636 | .check( |
| | 19637 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 19638 | expected: "a value greater than or equal to 0", |
| | 19639 | }), |
| | 19640 | ), |
| 16924 | Schema.Null, | 19641 | Schema.Null, |
| 16925 | ]), | 19642 | ]), |
| 16926 | ), | 19643 | ), |
| ... | @@ -16935,8 +19652,12 @@ export const V2ThreadReadResponse__CodexErrorInfo = Schema.Union( | ... | @@ -16935,8 +19652,12 @@ export const V2ThreadReadResponse__CodexErrorInfo = Schema.Union( |
| 16935 | httpStatusCode: Schema.optionalKey( | 19652 | httpStatusCode: Schema.optionalKey( |
| 16936 | Schema.Union([ | 19653 | Schema.Union([ |
| 16937 | Schema.Number.annotate({ format: "uint16" }) | 19654 | Schema.Number.annotate({ format: "uint16" }) |
| 16938 | .check(Schema.isInt()) | 19655 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 16939 | .check(Schema.isGreaterThanOrEqualTo(0)), | 19656 | .check( |
| | 19657 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 19658 | expected: "a value greater than or equal to 0", |
| | 19659 | }), |
| | 19660 | ), |
| 16940 | Schema.Null, | 19661 | Schema.Null, |
| 16941 | ]), | 19662 | ]), |
| 16942 | ), | 19663 | ), |
| ... | @@ -16959,8 +19680,36 @@ export const V2ThreadReadResponse__CodexErrorInfo = Schema.Union( | ... | @@ -16959,8 +19680,36 @@ export const V2ThreadReadResponse__CodexErrorInfo = Schema.Union( |
| 16959 | ).annotate({ | 19680 | ).annotate({ |
| 16960 | description: | 19681 | description: |
| 16961 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", | 19682 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", |
| | 19683 | identifier: "V2ThreadReadResponse__CodexErrorInfo", |
| 16962 | }); | 19684 | }); |
| 16963 | | 19685 | |
| | 19686 | export type V2ThreadReadResponse__TextElement = { |
| | 19687 | readonly byteRange: V2ThreadReadResponse__ByteRange; |
| | 19688 | readonly placeholder?: string | null; |
| | 19689 | }; |
| | 19690 | export const V2ThreadReadResponse__TextElement = Schema.Struct({ |
| | 19691 | byteRange: Schema.suspend( |
| | 19692 | (): Schema.Codec<V2ThreadReadResponse__ByteRange> => V2ThreadReadResponse__ByteRange, |
| | 19693 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), |
| | 19694 | placeholder: Schema.optionalKey( |
| | 19695 | Schema.Union([ |
| | 19696 | Schema.String.annotate({ |
| | 19697 | description: "Optional human-readable placeholder for the element, displayed in the UI.", |
| | 19698 | }), |
| | 19699 | Schema.Null, |
| | 19700 | ]), |
| | 19701 | ), |
| | 19702 | }).annotate({ identifier: "V2ThreadReadResponse__TextElement" }); |
| | 19703 | |
| | 19704 | export type V2ThreadReadResponse__MemoryCitation = { |
| | 19705 | readonly entries: ReadonlyArray<V2ThreadReadResponse__MemoryCitationEntry>; |
| | 19706 | readonly threadIds: ReadonlyArray<string>; |
| | 19707 | }; |
| | 19708 | export const V2ThreadReadResponse__MemoryCitation = Schema.Struct({ |
| | 19709 | entries: Schema.Array(V2ThreadReadResponse__MemoryCitationEntry), |
| | 19710 | threadIds: Schema.Array(Schema.String), |
| | 19711 | }).annotate({ identifier: "V2ThreadReadResponse__MemoryCitation" }); |
| | 19712 | |
| 16964 | export type V2ThreadReadResponse__FileUpdateChange = { | 19713 | export type V2ThreadReadResponse__FileUpdateChange = { |
| 16965 | readonly diff: string; | 19714 | readonly diff: string; |
| 16966 | readonly kind: V2ThreadReadResponse__PatchChangeKind; | 19715 | readonly kind: V2ThreadReadResponse__PatchChangeKind; |
| ... | @@ -16970,104 +19719,60 @@ export const V2ThreadReadResponse__FileUpdateChange = Schema.Struct({ | ... | @@ -16970,104 +19719,60 @@ export const V2ThreadReadResponse__FileUpdateChange = Schema.Struct({ |
| 16970 | diff: Schema.String, | 19719 | diff: Schema.String, |
| 16971 | kind: V2ThreadReadResponse__PatchChangeKind, | 19720 | kind: V2ThreadReadResponse__PatchChangeKind, |
| 16972 | path: Schema.String, | 19721 | path: Schema.String, |
| 16973 | }); | 19722 | }).annotate({ identifier: "V2ThreadReadResponse__FileUpdateChange" }); |
| 16974 | | 19723 | |
| 16975 | export type V2ThreadReadResponse__UserInput = | 19724 | export type V2ThreadReadResponse__CollabAgentState = { |
| 16976 | | { | 19725 | readonly message?: string | null; |
| 16977 | readonly text: string; | 19726 | readonly status: V2ThreadReadResponse__CollabAgentStatus; |
| 16978 | readonly text_elements?: ReadonlyArray<V2ThreadReadResponse__TextElement>; | 19727 | }; |
| 16979 | readonly type: "text"; | 19728 | export const V2ThreadReadResponse__CollabAgentState = Schema.Struct({ |
| 16980 | } | 19729 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16981 | | { | 19730 | status: V2ThreadReadResponse__CollabAgentStatus, |
| 16982 | readonly detail?: V2ThreadReadResponse__ImageDetail | null; | 19731 | }).annotate({ identifier: "V2ThreadReadResponse__CollabAgentState" }); |
| 16983 | readonly type: "image"; | 19732 | |
| 16984 | readonly url: string; | 19733 | export type V2ThreadResumeParams__FunctionCallOutputContentItem = |
| 16985 | } | 19734 | | { readonly text: string; readonly type: "input_text" } |
| 16986 | | { | 19735 | | { |
| 16987 | readonly detail?: V2ThreadReadResponse__ImageDetail | null; | 19736 | readonly detail?: V2ThreadResumeParams__ImageDetail | null; |
| 16988 | readonly path: string; | 19737 | readonly image_url: string; |
| 16989 | readonly type: "localImage"; | 19738 | readonly type: "input_image"; |
| 16990 | } | 19739 | } |
| 16991 | | { readonly type: "audio"; readonly url: string } | 19740 | | { readonly audio_url: string; readonly type: "input_audio" } |
| 16992 | | { readonly path: string; readonly type: "localAudio" } | 19741 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; |
| 16993 | | { readonly name: string; readonly path: string; readonly type: "skill" } | 19742 | export const V2ThreadResumeParams__FunctionCallOutputContentItem = Schema.Union( |
| 16994 | | { readonly name: string; readonly path: string; readonly type: "mention" }; | | |
| 16995 | export const V2ThreadReadResponse__UserInput = Schema.Union( | | |
| 16996 | [ | 19743 | [ |
| 16997 | Schema.Struct({ | 19744 | Schema.Struct({ |
| 16998 | text: Schema.String, | 19745 | text: Schema.String, |
| 16999 | text_elements: Schema.optionalKey( | 19746 | type: Schema.Literal("input_text").annotate({ |
| 17000 | Schema.Array(V2ThreadReadResponse__TextElement).annotate({ | 19747 | title: "InputTextFunctionCallOutputContentItemType", |
| 17001 | description: "UI-defined spans within `text` used to render or persist special elements.", | 19748 | }), |
| 17002 | default: [], | 19749 | }).annotate({ title: "InputTextFunctionCallOutputContentItem" }), |
| 17003 | }), | | |
| 17004 | ), | | |
| 17005 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | | |
| 17006 | }).annotate({ title: "TextUserInput" }), | | |
| 17007 | Schema.Struct({ | | |
| 17008 | detail: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__ImageDetail, Schema.Null])), | | |
| 17009 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | | |
| 17010 | url: Schema.String, | | |
| 17011 | }).annotate({ title: "ImageUserInput" }), | | |
| 17012 | Schema.Struct({ | | |
| 17013 | detail: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__ImageDetail, Schema.Null])), | | |
| 17014 | path: Schema.String, | | |
| 17015 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), | | |
| 17016 | }).annotate({ title: "LocalImageUserInput" }), | | |
| 17017 | Schema.Struct({ | | |
| 17018 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), | | |
| 17019 | url: Schema.String, | | |
| 17020 | }).annotate({ title: "AudioUserInput" }), | | |
| 17021 | Schema.Struct({ | | |
| 17022 | path: Schema.String, | | |
| 17023 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), | | |
| 17024 | }).annotate({ title: "LocalAudioUserInput" }), | | |
| 17025 | Schema.Struct({ | 19750 | Schema.Struct({ |
| 17026 | name: Schema.String, | 19751 | detail: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__ImageDetail, Schema.Null])), |
| 17027 | path: Schema.String, | 19752 | image_url: Schema.String, |
| 17028 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), | 19753 | type: Schema.Literal("input_image").annotate({ |
| 17029 | }).annotate({ title: "SkillUserInput" }), | 19754 | title: "InputImageFunctionCallOutputContentItemType", |
| | 19755 | }), |
| | 19756 | }).annotate({ title: "InputImageFunctionCallOutputContentItem" }), |
| 17030 | Schema.Struct({ | 19757 | Schema.Struct({ |
| 17031 | name: Schema.String, | 19758 | audio_url: Schema.String, |
| 17032 | path: Schema.String, | 19759 | type: Schema.Literal("input_audio").annotate({ |
| 17033 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), | 19760 | title: "InputAudioFunctionCallOutputContentItemType", |
| 17034 | }).annotate({ title: "MentionUserInput" }), | 19761 | }), |
| 17035 | ], | 19762 | }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }), |
| 17036 | { mode: "oneOf" }, | | |
| 17037 | ); | | |
| 17038 | | | |
| 17039 | export type V2ThreadReadResponse__SubAgentSource = | | |
| 17040 | | "review" | | |
| 17041 | | "compact" | | |
| 17042 | | "memory_consolidation" | | |
| 17043 | | { | | |
| 17044 | readonly thread_spawn: { | | |
| 17045 | readonly agent_nickname?: string | null; | | |
| 17046 | readonly agent_path?: V2ThreadReadResponse__AgentPath | null; | | |
| 17047 | readonly agent_role?: string | null; | | |
| 17048 | readonly depth: number; | | |
| 17049 | readonly parent_thread_id: V2ThreadReadResponse__ThreadId; | | |
| 17050 | }; | | |
| 17051 | } | | |
| 17052 | | { readonly other: string }; | | |
| 17053 | export const V2ThreadReadResponse__SubAgentSource = Schema.Union( | | |
| 17054 | [ | | |
| 17055 | Schema.Literals(["review", "compact", "memory_consolidation"]), | | |
| 17056 | Schema.Struct({ | 19763 | Schema.Struct({ |
| 17057 | thread_spawn: Schema.Struct({ | 19764 | encrypted_content: Schema.String, |
| 17058 | agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 19765 | type: Schema.Literal("encrypted_content").annotate({ |
| 17059 | agent_path: Schema.optionalKey( | 19766 | title: "EncryptedContentFunctionCallOutputContentItemType", |
| 17060 | Schema.Union([V2ThreadReadResponse__AgentPath, Schema.Null]), | | |
| 17061 | ), | | |
| 17062 | agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 17063 | depth: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()), | | |
| 17064 | parent_thread_id: V2ThreadReadResponse__ThreadId, | | |
| 17065 | }), | 19767 | }), |
| 17066 | }).annotate({ title: "ThreadSpawnSubAgentSource" }), | 19768 | }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }), |
| 17067 | Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }), | | |
| 17068 | ], | 19769 | ], |
| 17069 | { mode: "oneOf" }, | 19770 | { mode: "oneOf" }, |
| 17070 | ); | 19771 | ).annotate({ |
| | 19772 | description: |
| | 19773 | "Responses API compatible content items that can be returned by a tool call. This is a subset of ContentItem with the types we support as function call outputs.", |
| | 19774 | identifier: "V2ThreadResumeParams__FunctionCallOutputContentItem", |
| | 19775 | }); |
| 17071 | | 19776 | |
| 17072 | export type V2ThreadResumeParams__ContentItem = | 19777 | export type V2ThreadResumeParams__ContentItem = |
| 17073 | | { readonly text: string; readonly type: "input_text" } | 19778 | | { readonly text: string; readonly type: "input_text" } |
| ... | @@ -17099,52 +19804,9 @@ export const V2ThreadResumeParams__ContentItem = Schema.Union( | ... | @@ -17099,52 +19804,9 @@ export const V2ThreadResumeParams__ContentItem = Schema.Union( |
| 17099 | }).annotate({ title: "OutputTextContentItem" }), | 19804 | }).annotate({ title: "OutputTextContentItem" }), |
| 17100 | ], | 19805 | ], |
| 17101 | { mode: "oneOf" }, | 19806 | { mode: "oneOf" }, |
| 17102 | ); | 19807 | ).annotate({ identifier: "V2ThreadResumeParams__ContentItem" }); |
| 17103 | | 19808 | |
| 17104 | export type V2ThreadResumeParams__FunctionCallOutputContentItem = | 19809 | export type V2ThreadResumeResponse__CommandAction = |
| 17105 | | { readonly text: string; readonly type: "input_text" } | | |
| 17106 | | { | | |
| 17107 | readonly detail?: V2ThreadResumeParams__ImageDetail | null; | | |
| 17108 | readonly image_url: string; | | |
| 17109 | readonly type: "input_image"; | | |
| 17110 | } | | |
| 17111 | | { readonly audio_url: string; readonly type: "input_audio" } | | |
| 17112 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; | | |
| 17113 | export const V2ThreadResumeParams__FunctionCallOutputContentItem = Schema.Union( | | |
| 17114 | [ | | |
| 17115 | Schema.Struct({ | | |
| 17116 | text: Schema.String, | | |
| 17117 | type: Schema.Literal("input_text").annotate({ | | |
| 17118 | title: "InputTextFunctionCallOutputContentItemType", | | |
| 17119 | }), | | |
| 17120 | }).annotate({ title: "InputTextFunctionCallOutputContentItem" }), | | |
| 17121 | Schema.Struct({ | | |
| 17122 | detail: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__ImageDetail, Schema.Null])), | | |
| 17123 | image_url: Schema.String, | | |
| 17124 | type: Schema.Literal("input_image").annotate({ | | |
| 17125 | title: "InputImageFunctionCallOutputContentItemType", | | |
| 17126 | }), | | |
| 17127 | }).annotate({ title: "InputImageFunctionCallOutputContentItem" }), | | |
| 17128 | Schema.Struct({ | | |
| 17129 | audio_url: Schema.String, | | |
| 17130 | type: Schema.Literal("input_audio").annotate({ | | |
| 17131 | title: "InputAudioFunctionCallOutputContentItemType", | | |
| 17132 | }), | | |
| 17133 | }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }), | | |
| 17134 | Schema.Struct({ | | |
| 17135 | encrypted_content: Schema.String, | | |
| 17136 | type: Schema.Literal("encrypted_content").annotate({ | | |
| 17137 | title: "EncryptedContentFunctionCallOutputContentItemType", | | |
| 17138 | }), | | |
| 17139 | }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }), | | |
| 17140 | ], | | |
| 17141 | { mode: "oneOf" }, | | |
| 17142 | ).annotate({ | | |
| 17143 | description: | | |
| 17144 | "Responses API compatible content items that can be returned by a tool call. This is a subset of ContentItem with the types we support as function call outputs.", | | |
| 17145 | }); | | |
| 17146 | | | |
| 17147 | export type V2ThreadResumeResponse__CommandAction = | | |
| 17148 | | { | 19810 | | { |
| 17149 | readonly command: string; | 19811 | readonly command: string; |
| 17150 | readonly name: string; | 19812 | readonly name: string; |
| ... | @@ -17184,25 +19846,118 @@ export const V2ThreadResumeResponse__CommandAction = Schema.Union( | ... | @@ -17184,25 +19846,118 @@ export const V2ThreadResumeResponse__CommandAction = Schema.Union( |
| 17184 | }).annotate({ title: "UnknownCommandAction" }), | 19846 | }).annotate({ title: "UnknownCommandAction" }), |
| 17185 | ], | 19847 | ], |
| 17186 | { mode: "oneOf" }, | 19848 | { mode: "oneOf" }, |
| 17187 | ); | 19849 | ).annotate({ identifier: "V2ThreadResumeResponse__CommandAction" }); |
| 17188 | | 19850 | |
| 17189 | export type V2ThreadResumeResponse__CollabAgentState = { | 19851 | export type V2ThreadResumeResponse__SandboxPolicy = |
| 17190 | readonly message?: string | null; | 19852 | | { readonly type: "dangerFullAccess" } |
| 17191 | readonly status: V2ThreadResumeResponse__CollabAgentStatus; | 19853 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } |
| 17192 | }; | 19854 | | { |
| 17193 | export const V2ThreadResumeResponse__CollabAgentState = Schema.Struct({ | 19855 | readonly networkAccess?: V2ThreadResumeResponse__NetworkAccess; |
| 17194 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 19856 | readonly type: "externalSandbox"; |
| 17195 | status: V2ThreadResumeResponse__CollabAgentStatus, | 19857 | } |
| 17196 | }); | 19858 | | { |
| | 19859 | readonly excludeSlashTmp?: boolean; |
| | 19860 | readonly excludeTmpdirEnvVar?: boolean; |
| | 19861 | readonly networkAccess?: boolean; |
| | 19862 | readonly type: "workspaceWrite"; |
| | 19863 | readonly writableRoots?: ReadonlyArray<V2ThreadResumeResponse__AbsolutePathBuf>; |
| | 19864 | }; |
| | 19865 | export const V2ThreadResumeResponse__SandboxPolicy = Schema.Union( |
| | 19866 | [ |
| | 19867 | Schema.Struct({ |
| | 19868 | type: Schema.Literal("dangerFullAccess").annotate({ |
| | 19869 | title: "DangerFullAccessSandboxPolicyType", |
| | 19870 | }), |
| | 19871 | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), |
| | 19872 | Schema.Struct({ |
| | 19873 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| | 19874 | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), |
| | 19875 | }).annotate({ title: "ReadOnlySandboxPolicy" }), |
| | 19876 | Schema.Struct({ |
| | 19877 | networkAccess: Schema.optionalKey( |
| | 19878 | Schema.suspend( |
| | 19879 | (): Schema.Codec<V2ThreadResumeResponse__NetworkAccess> => |
| | 19880 | V2ThreadResumeResponse__NetworkAccess, |
| | 19881 | ).annotate({ default: "restricted" }), |
| | 19882 | ), |
| | 19883 | type: Schema.Literal("externalSandbox").annotate({ |
| | 19884 | title: "ExternalSandboxSandboxPolicyType", |
| | 19885 | }), |
| | 19886 | }).annotate({ title: "ExternalSandboxSandboxPolicy" }), |
| | 19887 | Schema.Struct({ |
| | 19888 | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| | 19889 | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| | 19890 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| | 19891 | type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }), |
| | 19892 | writableRoots: Schema.optionalKey( |
| | 19893 | Schema.Array(V2ThreadResumeResponse__AbsolutePathBuf).annotate({ default: [] }), |
| | 19894 | ), |
| | 19895 | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), |
| | 19896 | ], |
| | 19897 | { mode: "oneOf" }, |
| | 19898 | ).annotate({ identifier: "V2ThreadResumeResponse__SandboxPolicy" }); |
| 17197 | | 19899 | |
| 17198 | export type V2ThreadResumeResponse__MemoryCitation = { | 19900 | export type V2ThreadResumeResponse__SubAgentSource = |
| 17199 | readonly entries: ReadonlyArray<V2ThreadResumeResponse__MemoryCitationEntry>; | 19901 | | "review" |
| 17200 | readonly threadIds: ReadonlyArray<string>; | 19902 | | "compact" |
| 17201 | }; | 19903 | | "memory_consolidation" |
| 17202 | export const V2ThreadResumeResponse__MemoryCitation = Schema.Struct({ | 19904 | | { |
| 17203 | entries: Schema.Array(V2ThreadResumeResponse__MemoryCitationEntry), | 19905 | readonly thread_spawn: { |
| 17204 | threadIds: Schema.Array(Schema.String), | 19906 | readonly agent_nickname?: string | null; |
| 17205 | }); | 19907 | readonly agent_path?: V2ThreadResumeResponse__AgentPath | null; |
| | 19908 | readonly agent_role?: string | null; |
| | 19909 | readonly depth: number; |
| | 19910 | readonly parent_thread_id: V2ThreadResumeResponse__ThreadId; |
| | 19911 | }; |
| | 19912 | } |
| | 19913 | | { readonly other: string }; |
| | 19914 | export const V2ThreadResumeResponse__SubAgentSource = Schema.Union( |
| | 19915 | [ |
| | 19916 | Schema.Literals(["review", "compact", "memory_consolidation"]), |
| | 19917 | Schema.Struct({ |
| | 19918 | thread_spawn: Schema.Struct({ |
| | 19919 | agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 19920 | agent_path: Schema.optionalKey( |
| | 19921 | Schema.Union([V2ThreadResumeResponse__AgentPath, Schema.Null]), |
| | 19922 | ), |
| | 19923 | agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 19924 | depth: Schema.Number.annotate({ format: "int32" }).check( |
| | 19925 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 19926 | ), |
| | 19927 | parent_thread_id: V2ThreadResumeResponse__ThreadId, |
| | 19928 | }), |
| | 19929 | }).annotate({ title: "ThreadSpawnSubAgentSource" }), |
| | 19930 | Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }), |
| | 19931 | ], |
| | 19932 | { mode: "oneOf" }, |
| | 19933 | ).annotate({ identifier: "V2ThreadResumeResponse__SubAgentSource" }); |
| | 19934 | |
| | 19935 | export type V2ThreadResumeResponse__ThreadStatus = |
| | 19936 | | { readonly type: "notLoaded" } |
| | 19937 | | { readonly type: "idle" } |
| | 19938 | | { readonly type: "systemError" } |
| | 19939 | | { |
| | 19940 | readonly activeFlags: ReadonlyArray<V2ThreadResumeResponse__ThreadActiveFlag>; |
| | 19941 | readonly type: "active"; |
| | 19942 | }; |
| | 19943 | export const V2ThreadResumeResponse__ThreadStatus = Schema.Union( |
| | 19944 | [ |
| | 19945 | Schema.Struct({ |
| | 19946 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), |
| | 19947 | }).annotate({ title: "NotLoadedThreadStatus" }), |
| | 19948 | Schema.Struct({ |
| | 19949 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), |
| | 19950 | }).annotate({ title: "IdleThreadStatus" }), |
| | 19951 | Schema.Struct({ |
| | 19952 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), |
| | 19953 | }).annotate({ title: "SystemErrorThreadStatus" }), |
| | 19954 | Schema.Struct({ |
| | 19955 | activeFlags: Schema.Array(V2ThreadResumeResponse__ThreadActiveFlag), |
| | 19956 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), |
| | 19957 | }).annotate({ title: "ActiveThreadStatus" }), |
| | 19958 | ], |
| | 19959 | { mode: "oneOf" }, |
| | 19960 | ).annotate({ identifier: "V2ThreadResumeResponse__ThreadStatus" }); |
| 17206 | | 19961 | |
| 17207 | export type V2ThreadResumeResponse__CodexErrorInfo = | 19962 | export type V2ThreadResumeResponse__CodexErrorInfo = |
| 17208 | | "contextWindowExceeded" | 19963 | | "contextWindowExceeded" |
| ... | @@ -17249,8 +20004,12 @@ export const V2ThreadResumeResponse__CodexErrorInfo = Schema.Union( | ... | @@ -17249,8 +20004,12 @@ export const V2ThreadResumeResponse__CodexErrorInfo = Schema.Union( |
| 17249 | httpStatusCode: Schema.optionalKey( | 20004 | httpStatusCode: Schema.optionalKey( |
| 17250 | Schema.Union([ | 20005 | Schema.Union([ |
| 17251 | Schema.Number.annotate({ format: "uint16" }) | 20006 | Schema.Number.annotate({ format: "uint16" }) |
| 17252 | .check(Schema.isInt()) | 20007 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 17253 | .check(Schema.isGreaterThanOrEqualTo(0)), | 20008 | .check( |
| | 20009 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 20010 | expected: "a value greater than or equal to 0", |
| | 20011 | }), |
| | 20012 | ), |
| 17254 | Schema.Null, | 20013 | Schema.Null, |
| 17255 | ]), | 20014 | ]), |
| 17256 | ), | 20015 | ), |
| ... | @@ -17261,8 +20020,12 @@ export const V2ThreadResumeResponse__CodexErrorInfo = Schema.Union( | ... | @@ -17261,8 +20020,12 @@ export const V2ThreadResumeResponse__CodexErrorInfo = Schema.Union( |
| 17261 | httpStatusCode: Schema.optionalKey( | 20020 | httpStatusCode: Schema.optionalKey( |
| 17262 | Schema.Union([ | 20021 | Schema.Union([ |
| 17263 | Schema.Number.annotate({ format: "uint16" }) | 20022 | Schema.Number.annotate({ format: "uint16" }) |
| 17264 | .check(Schema.isInt()) | 20023 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 17265 | .check(Schema.isGreaterThanOrEqualTo(0)), | 20024 | .check( |
| | 20025 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 20026 | expected: "a value greater than or equal to 0", |
| | 20027 | }), |
| | 20028 | ), |
| 17266 | Schema.Null, | 20029 | Schema.Null, |
| 17267 | ]), | 20030 | ]), |
| 17268 | ), | 20031 | ), |
| ... | @@ -17276,8 +20039,12 @@ export const V2ThreadResumeResponse__CodexErrorInfo = Schema.Union( | ... | @@ -17276,8 +20039,12 @@ export const V2ThreadResumeResponse__CodexErrorInfo = Schema.Union( |
| 17276 | httpStatusCode: Schema.optionalKey( | 20039 | httpStatusCode: Schema.optionalKey( |
| 17277 | Schema.Union([ | 20040 | Schema.Union([ |
| 17278 | Schema.Number.annotate({ format: "uint16" }) | 20041 | Schema.Number.annotate({ format: "uint16" }) |
| 17279 | .check(Schema.isInt()) | 20042 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 17280 | .check(Schema.isGreaterThanOrEqualTo(0)), | 20043 | .check( |
| | 20044 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 20045 | expected: "a value greater than or equal to 0", |
| | 20046 | }), |
| | 20047 | ), |
| 17281 | Schema.Null, | 20048 | Schema.Null, |
| 17282 | ]), | 20049 | ]), |
| 17283 | ), | 20050 | ), |
| ... | @@ -17292,8 +20059,12 @@ export const V2ThreadResumeResponse__CodexErrorInfo = Schema.Union( | ... | @@ -17292,8 +20059,12 @@ export const V2ThreadResumeResponse__CodexErrorInfo = Schema.Union( |
| 17292 | httpStatusCode: Schema.optionalKey( | 20059 | httpStatusCode: Schema.optionalKey( |
| 17293 | Schema.Union([ | 20060 | Schema.Union([ |
| 17294 | Schema.Number.annotate({ format: "uint16" }) | 20061 | Schema.Number.annotate({ format: "uint16" }) |
| 17295 | .check(Schema.isInt()) | 20062 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 17296 | .check(Schema.isGreaterThanOrEqualTo(0)), | 20063 | .check( |
| | 20064 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 20065 | expected: "a value greater than or equal to 0", |
| | 20066 | }), |
| | 20067 | ), |
| 17297 | Schema.Null, | 20068 | Schema.Null, |
| 17298 | ]), | 20069 | ]), |
| 17299 | ), | 20070 | ), |
| ... | @@ -17316,8 +20087,36 @@ export const V2ThreadResumeResponse__CodexErrorInfo = Schema.Union( | ... | @@ -17316,8 +20087,36 @@ export const V2ThreadResumeResponse__CodexErrorInfo = Schema.Union( |
| 17316 | ).annotate({ | 20087 | ).annotate({ |
| 17317 | description: | 20088 | description: |
| 17318 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", | 20089 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", |
| | 20090 | identifier: "V2ThreadResumeResponse__CodexErrorInfo", |
| 17319 | }); | 20091 | }); |
| 17320 | | 20092 | |
| | 20093 | export type V2ThreadResumeResponse__TextElement = { |
| | 20094 | readonly byteRange: V2ThreadResumeResponse__ByteRange; |
| | 20095 | readonly placeholder?: string | null; |
| | 20096 | }; |
| | 20097 | export const V2ThreadResumeResponse__TextElement = Schema.Struct({ |
| | 20098 | byteRange: Schema.suspend( |
| | 20099 | (): Schema.Codec<V2ThreadResumeResponse__ByteRange> => V2ThreadResumeResponse__ByteRange, |
| | 20100 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), |
| | 20101 | placeholder: Schema.optionalKey( |
| | 20102 | Schema.Union([ |
| | 20103 | Schema.String.annotate({ |
| | 20104 | description: "Optional human-readable placeholder for the element, displayed in the UI.", |
| | 20105 | }), |
| | 20106 | Schema.Null, |
| | 20107 | ]), |
| | 20108 | ), |
| | 20109 | }).annotate({ identifier: "V2ThreadResumeResponse__TextElement" }); |
| | 20110 | |
| | 20111 | export type V2ThreadResumeResponse__MemoryCitation = { |
| | 20112 | readonly entries: ReadonlyArray<V2ThreadResumeResponse__MemoryCitationEntry>; |
| | 20113 | readonly threadIds: ReadonlyArray<string>; |
| | 20114 | }; |
| | 20115 | export const V2ThreadResumeResponse__MemoryCitation = Schema.Struct({ |
| | 20116 | entries: Schema.Array(V2ThreadResumeResponse__MemoryCitationEntry), |
| | 20117 | threadIds: Schema.Array(Schema.String), |
| | 20118 | }).annotate({ identifier: "V2ThreadResumeResponse__MemoryCitation" }); |
| | 20119 | |
| 17321 | export type V2ThreadResumeResponse__FileUpdateChange = { | 20120 | export type V2ThreadResumeResponse__FileUpdateChange = { |
| 17322 | readonly diff: string; | 20121 | readonly diff: string; |
| 17323 | readonly kind: V2ThreadResumeResponse__PatchChangeKind; | 20122 | readonly kind: V2ThreadResumeResponse__PatchChangeKind; |
| ... | @@ -17327,164 +20126,120 @@ export const V2ThreadResumeResponse__FileUpdateChange = Schema.Struct({ | ... | @@ -17327,164 +20126,120 @@ export const V2ThreadResumeResponse__FileUpdateChange = Schema.Struct({ |
| 17327 | diff: Schema.String, | 20126 | diff: Schema.String, |
| 17328 | kind: V2ThreadResumeResponse__PatchChangeKind, | 20127 | kind: V2ThreadResumeResponse__PatchChangeKind, |
| 17329 | path: Schema.String, | 20128 | path: Schema.String, |
| 17330 | }); | 20129 | }).annotate({ identifier: "V2ThreadResumeResponse__FileUpdateChange" }); |
| 17331 | | 20130 | |
| 17332 | export type V2ThreadResumeResponse__UserInput = | 20131 | export type V2ThreadResumeResponse__CollabAgentState = { |
| 17333 | | { | 20132 | readonly message?: string | null; |
| 17334 | readonly text: string; | 20133 | readonly status: V2ThreadResumeResponse__CollabAgentStatus; |
| 17335 | readonly text_elements?: ReadonlyArray<V2ThreadResumeResponse__TextElement>; | 20134 | }; |
| 17336 | readonly type: "text"; | 20135 | export const V2ThreadResumeResponse__CollabAgentState = Schema.Struct({ |
| 17337 | } | 20136 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 20137 | status: V2ThreadResumeResponse__CollabAgentStatus, |
| | 20138 | }).annotate({ identifier: "V2ThreadResumeResponse__CollabAgentState" }); |
| | 20139 | |
| | 20140 | export type V2ThreadRollbackResponse__CommandAction = |
| 17338 | | { | 20141 | | { |
| 17339 | readonly detail?: V2ThreadResumeResponse__ImageDetail | null; | 20142 | readonly command: string; |
| 17340 | readonly type: "image"; | 20143 | readonly name: string; |
| 17341 | readonly url: string; | 20144 | readonly path: V2ThreadRollbackResponse__AbsolutePathBuf; |
| | 20145 | readonly type: "read"; |
| 17342 | } | 20146 | } |
| | 20147 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| 17343 | | { | 20148 | | { |
| 17344 | readonly detail?: V2ThreadResumeResponse__ImageDetail | null; | 20149 | readonly command: string; |
| 17345 | readonly path: string; | 20150 | readonly path?: string | null; |
| 17346 | readonly type: "localImage"; | 20151 | readonly query?: string | null; |
| | 20152 | readonly type: "search"; |
| 17347 | } | 20153 | } |
| 17348 | | { readonly type: "audio"; readonly url: string } | 20154 | | { readonly command: string; readonly type: "unknown" }; |
| 17349 | | { readonly path: string; readonly type: "localAudio" } | 20155 | export const V2ThreadRollbackResponse__CommandAction = Schema.Union( |
| 17350 | | { readonly name: string; readonly path: string; readonly type: "skill" } | | |
| 17351 | | { readonly name: string; readonly path: string; readonly type: "mention" }; | | |
| 17352 | export const V2ThreadResumeResponse__UserInput = Schema.Union( | | |
| 17353 | [ | 20156 | [ |
| 17354 | Schema.Struct({ | 20157 | Schema.Struct({ |
| 17355 | text: Schema.String, | 20158 | command: Schema.String, |
| 17356 | text_elements: Schema.optionalKey( | 20159 | name: Schema.String, |
| 17357 | Schema.Array(V2ThreadResumeResponse__TextElement).annotate({ | 20160 | path: V2ThreadRollbackResponse__AbsolutePathBuf, |
| 17358 | description: "UI-defined spans within `text` used to render or persist special elements.", | 20161 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 17359 | default: [], | 20162 | }).annotate({ title: "ReadCommandAction" }), |
| 17360 | }), | | |
| 17361 | ), | | |
| 17362 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | | |
| 17363 | }).annotate({ title: "TextUserInput" }), | | |
| 17364 | Schema.Struct({ | | |
| 17365 | detail: Schema.optionalKey(Schema.Union([V2ThreadResumeResponse__ImageDetail, Schema.Null])), | | |
| 17366 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | | |
| 17367 | url: Schema.String, | | |
| 17368 | }).annotate({ title: "ImageUserInput" }), | | |
| 17369 | Schema.Struct({ | | |
| 17370 | detail: Schema.optionalKey(Schema.Union([V2ThreadResumeResponse__ImageDetail, Schema.Null])), | | |
| 17371 | path: Schema.String, | | |
| 17372 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), | | |
| 17373 | }).annotate({ title: "LocalImageUserInput" }), | | |
| 17374 | Schema.Struct({ | | |
| 17375 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), | | |
| 17376 | url: Schema.String, | | |
| 17377 | }).annotate({ title: "AudioUserInput" }), | | |
| 17378 | Schema.Struct({ | 20163 | Schema.Struct({ |
| 17379 | path: Schema.String, | 20164 | command: Schema.String, |
| 17380 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), | 20165 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 17381 | }).annotate({ title: "LocalAudioUserInput" }), | 20166 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), |
| | 20167 | }).annotate({ title: "ListFilesCommandAction" }), |
| 17382 | Schema.Struct({ | 20168 | Schema.Struct({ |
| 17383 | name: Schema.String, | 20169 | command: Schema.String, |
| 17384 | path: Schema.String, | 20170 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 17385 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), | 20171 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 17386 | }).annotate({ title: "SkillUserInput" }), | 20172 | type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }), |
| | 20173 | }).annotate({ title: "SearchCommandAction" }), |
| 17387 | Schema.Struct({ | 20174 | Schema.Struct({ |
| 17388 | name: Schema.String, | 20175 | command: Schema.String, |
| 17389 | path: Schema.String, | 20176 | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), |
| 17390 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), | 20177 | }).annotate({ title: "UnknownCommandAction" }), |
| 17391 | }).annotate({ title: "MentionUserInput" }), | | |
| 17392 | ], | 20178 | ], |
| 17393 | { mode: "oneOf" }, | 20179 | { mode: "oneOf" }, |
| 17394 | ); | 20180 | ).annotate({ identifier: "V2ThreadRollbackResponse__CommandAction" }); |
| 17395 | | 20181 | |
| 17396 | export type V2ThreadResumeResponse__SubAgentSource = | 20182 | export type V2ThreadRollbackResponse__SubAgentSource = |
| 17397 | | "review" | 20183 | | "review" |
| 17398 | | "compact" | 20184 | | "compact" |
| 17399 | | "memory_consolidation" | 20185 | | "memory_consolidation" |
| 17400 | | { | 20186 | | { |
| 17401 | readonly thread_spawn: { | 20187 | readonly thread_spawn: { |
| 17402 | readonly agent_nickname?: string | null; | 20188 | readonly agent_nickname?: string | null; |
| 17403 | readonly agent_path?: V2ThreadResumeResponse__AgentPath | null; | 20189 | readonly agent_path?: V2ThreadRollbackResponse__AgentPath | null; |
| 17404 | readonly agent_role?: string | null; | 20190 | readonly agent_role?: string | null; |
| 17405 | readonly depth: number; | 20191 | readonly depth: number; |
| 17406 | readonly parent_thread_id: V2ThreadResumeResponse__ThreadId; | 20192 | readonly parent_thread_id: V2ThreadRollbackResponse__ThreadId; |
| 17407 | }; | 20193 | }; |
| 17408 | } | 20194 | } |
| 17409 | | { readonly other: string }; | 20195 | | { readonly other: string }; |
| 17410 | export const V2ThreadResumeResponse__SubAgentSource = Schema.Union( | 20196 | export const V2ThreadRollbackResponse__SubAgentSource = Schema.Union( |
| 17411 | [ | 20197 | [ |
| 17412 | Schema.Literals(["review", "compact", "memory_consolidation"]), | 20198 | Schema.Literals(["review", "compact", "memory_consolidation"]), |
| 17413 | Schema.Struct({ | 20199 | Schema.Struct({ |
| 17414 | thread_spawn: Schema.Struct({ | 20200 | thread_spawn: Schema.Struct({ |
| 17415 | agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 20201 | agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 17416 | agent_path: Schema.optionalKey( | 20202 | agent_path: Schema.optionalKey( |
| 17417 | Schema.Union([V2ThreadResumeResponse__AgentPath, Schema.Null]), | 20203 | Schema.Union([V2ThreadRollbackResponse__AgentPath, Schema.Null]), |
| 17418 | ), | 20204 | ), |
| 17419 | agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 20205 | agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 17420 | depth: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()), | 20206 | depth: Schema.Number.annotate({ format: "int32" }).check( |
| 17421 | parent_thread_id: V2ThreadResumeResponse__ThreadId, | 20207 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 20208 | ), |
| | 20209 | parent_thread_id: V2ThreadRollbackResponse__ThreadId, |
| 17422 | }), | 20210 | }), |
| 17423 | }).annotate({ title: "ThreadSpawnSubAgentSource" }), | 20211 | }).annotate({ title: "ThreadSpawnSubAgentSource" }), |
| 17424 | Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }), | 20212 | Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }), |
| 17425 | ], | 20213 | ], |
| 17426 | { mode: "oneOf" }, | 20214 | { mode: "oneOf" }, |
| 17427 | ); | 20215 | ).annotate({ identifier: "V2ThreadRollbackResponse__SubAgentSource" }); |
| 17428 | | 20216 | |
| 17429 | export type V2ThreadRollbackResponse__CommandAction = | 20217 | export type V2ThreadRollbackResponse__ThreadStatus = |
| 17430 | | { | 20218 | | { readonly type: "notLoaded" } |
| 17431 | readonly command: string; | 20219 | | { readonly type: "idle" } |
| 17432 | readonly name: string; | 20220 | | { readonly type: "systemError" } |
| 17433 | readonly path: V2ThreadRollbackResponse__AbsolutePathBuf; | | |
| 17434 | readonly type: "read"; | | |
| 17435 | } | | |
| 17436 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } | | |
| 17437 | | { | 20221 | | { |
| 17438 | readonly command: string; | 20222 | readonly activeFlags: ReadonlyArray<V2ThreadRollbackResponse__ThreadActiveFlag>; |
| 17439 | readonly path?: string | null; | 20223 | readonly type: "active"; |
| 17440 | readonly query?: string | null; | 20224 | }; |
| 17441 | readonly type: "search"; | 20225 | export const V2ThreadRollbackResponse__ThreadStatus = Schema.Union( |
| 17442 | } | | |
| 17443 | | { readonly command: string; readonly type: "unknown" }; | | |
| 17444 | export const V2ThreadRollbackResponse__CommandAction = Schema.Union( | | |
| 17445 | [ | 20226 | [ |
| 17446 | Schema.Struct({ | 20227 | Schema.Struct({ |
| 17447 | command: Schema.String, | 20228 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), |
| 17448 | name: Schema.String, | 20229 | }).annotate({ title: "NotLoadedThreadStatus" }), |
| 17449 | path: V2ThreadRollbackResponse__AbsolutePathBuf, | | |
| 17450 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), | | |
| 17451 | }).annotate({ title: "ReadCommandAction" }), | | |
| 17452 | Schema.Struct({ | 20230 | Schema.Struct({ |
| 17453 | command: Schema.String, | 20231 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), |
| 17454 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 20232 | }).annotate({ title: "IdleThreadStatus" }), |
| 17455 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), | | |
| 17456 | }).annotate({ title: "ListFilesCommandAction" }), | | |
| 17457 | Schema.Struct({ | 20233 | Schema.Struct({ |
| 17458 | command: Schema.String, | 20234 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), |
| 17459 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 20235 | }).annotate({ title: "SystemErrorThreadStatus" }), |
| 17460 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 17461 | type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }), | | |
| 17462 | }).annotate({ title: "SearchCommandAction" }), | | |
| 17463 | Schema.Struct({ | 20236 | Schema.Struct({ |
| 17464 | command: Schema.String, | 20237 | activeFlags: Schema.Array(V2ThreadRollbackResponse__ThreadActiveFlag), |
| 17465 | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), | 20238 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), |
| 17466 | }).annotate({ title: "UnknownCommandAction" }), | 20239 | }).annotate({ title: "ActiveThreadStatus" }), |
| 17467 | ], | 20240 | ], |
| 17468 | { mode: "oneOf" }, | 20241 | { mode: "oneOf" }, |
| 17469 | ); | 20242 | ).annotate({ identifier: "V2ThreadRollbackResponse__ThreadStatus" }); |
| 17470 | | | |
| 17471 | export type V2ThreadRollbackResponse__CollabAgentState = { | | |
| 17472 | readonly message?: string | null; | | |
| 17473 | readonly status: V2ThreadRollbackResponse__CollabAgentStatus; | | |
| 17474 | }; | | |
| 17475 | export const V2ThreadRollbackResponse__CollabAgentState = Schema.Struct({ | | |
| 17476 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 17477 | status: V2ThreadRollbackResponse__CollabAgentStatus, | | |
| 17478 | }); | | |
| 17479 | | | |
| 17480 | export type V2ThreadRollbackResponse__MemoryCitation = { | | |
| 17481 | readonly entries: ReadonlyArray<V2ThreadRollbackResponse__MemoryCitationEntry>; | | |
| 17482 | readonly threadIds: ReadonlyArray<string>; | | |
| 17483 | }; | | |
| 17484 | export const V2ThreadRollbackResponse__MemoryCitation = Schema.Struct({ | | |
| 17485 | entries: Schema.Array(V2ThreadRollbackResponse__MemoryCitationEntry), | | |
| 17486 | threadIds: Schema.Array(Schema.String), | | |
| 17487 | }); | | |
| 17488 | | 20243 | |
| 17489 | export type V2ThreadRollbackResponse__CodexErrorInfo = | 20244 | export type V2ThreadRollbackResponse__CodexErrorInfo = |
| 17490 | | "contextWindowExceeded" | 20245 | | "contextWindowExceeded" |
| ... | @@ -17531,8 +20286,12 @@ export const V2ThreadRollbackResponse__CodexErrorInfo = Schema.Union( | ... | @@ -17531,8 +20286,12 @@ export const V2ThreadRollbackResponse__CodexErrorInfo = Schema.Union( |
| 17531 | httpStatusCode: Schema.optionalKey( | 20286 | httpStatusCode: Schema.optionalKey( |
| 17532 | Schema.Union([ | 20287 | Schema.Union([ |
| 17533 | Schema.Number.annotate({ format: "uint16" }) | 20288 | Schema.Number.annotate({ format: "uint16" }) |
| 17534 | .check(Schema.isInt()) | 20289 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 17535 | .check(Schema.isGreaterThanOrEqualTo(0)), | 20290 | .check( |
| | 20291 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 20292 | expected: "a value greater than or equal to 0", |
| | 20293 | }), |
| | 20294 | ), |
| 17536 | Schema.Null, | 20295 | Schema.Null, |
| 17537 | ]), | 20296 | ]), |
| 17538 | ), | 20297 | ), |
| ... | @@ -17543,8 +20302,12 @@ export const V2ThreadRollbackResponse__CodexErrorInfo = Schema.Union( | ... | @@ -17543,8 +20302,12 @@ export const V2ThreadRollbackResponse__CodexErrorInfo = Schema.Union( |
| 17543 | httpStatusCode: Schema.optionalKey( | 20302 | httpStatusCode: Schema.optionalKey( |
| 17544 | Schema.Union([ | 20303 | Schema.Union([ |
| 17545 | Schema.Number.annotate({ format: "uint16" }) | 20304 | Schema.Number.annotate({ format: "uint16" }) |
| 17546 | .check(Schema.isInt()) | 20305 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 17547 | .check(Schema.isGreaterThanOrEqualTo(0)), | 20306 | .check( |
| | 20307 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 20308 | expected: "a value greater than or equal to 0", |
| | 20309 | }), |
| | 20310 | ), |
| 17548 | Schema.Null, | 20311 | Schema.Null, |
| 17549 | ]), | 20312 | ]), |
| 17550 | ), | 20313 | ), |
| ... | @@ -17558,8 +20321,12 @@ export const V2ThreadRollbackResponse__CodexErrorInfo = Schema.Union( | ... | @@ -17558,8 +20321,12 @@ export const V2ThreadRollbackResponse__CodexErrorInfo = Schema.Union( |
| 17558 | httpStatusCode: Schema.optionalKey( | 20321 | httpStatusCode: Schema.optionalKey( |
| 17559 | Schema.Union([ | 20322 | Schema.Union([ |
| 17560 | Schema.Number.annotate({ format: "uint16" }) | 20323 | Schema.Number.annotate({ format: "uint16" }) |
| 17561 | .check(Schema.isInt()) | 20324 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 17562 | .check(Schema.isGreaterThanOrEqualTo(0)), | 20325 | .check( |
| | 20326 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 20327 | expected: "a value greater than or equal to 0", |
| | 20328 | }), |
| | 20329 | ), |
| 17563 | Schema.Null, | 20330 | Schema.Null, |
| 17564 | ]), | 20331 | ]), |
| 17565 | ), | 20332 | ), |
| ... | @@ -17574,8 +20341,12 @@ export const V2ThreadRollbackResponse__CodexErrorInfo = Schema.Union( | ... | @@ -17574,8 +20341,12 @@ export const V2ThreadRollbackResponse__CodexErrorInfo = Schema.Union( |
| 17574 | httpStatusCode: Schema.optionalKey( | 20341 | httpStatusCode: Schema.optionalKey( |
| 17575 | Schema.Union([ | 20342 | Schema.Union([ |
| 17576 | Schema.Number.annotate({ format: "uint16" }) | 20343 | Schema.Number.annotate({ format: "uint16" }) |
| 17577 | .check(Schema.isInt()) | 20344 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 17578 | .check(Schema.isGreaterThanOrEqualTo(0)), | 20345 | .check( |
| | 20346 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 20347 | expected: "a value greater than or equal to 0", |
| | 20348 | }), |
| | 20349 | ), |
| 17579 | Schema.Null, | 20350 | Schema.Null, |
| 17580 | ]), | 20351 | ]), |
| 17581 | ), | 20352 | ), |
| ... | @@ -17598,8 +20369,36 @@ export const V2ThreadRollbackResponse__CodexErrorInfo = Schema.Union( | ... | @@ -17598,8 +20369,36 @@ export const V2ThreadRollbackResponse__CodexErrorInfo = Schema.Union( |
| 17598 | ).annotate({ | 20369 | ).annotate({ |
| 17599 | description: | 20370 | description: |
| 17600 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", | 20371 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", |
| | 20372 | identifier: "V2ThreadRollbackResponse__CodexErrorInfo", |
| 17601 | }); | 20373 | }); |
| 17602 | | 20374 | |
| | 20375 | export type V2ThreadRollbackResponse__TextElement = { |
| | 20376 | readonly byteRange: V2ThreadRollbackResponse__ByteRange; |
| | 20377 | readonly placeholder?: string | null; |
| | 20378 | }; |
| | 20379 | export const V2ThreadRollbackResponse__TextElement = Schema.Struct({ |
| | 20380 | byteRange: Schema.suspend( |
| | 20381 | (): Schema.Codec<V2ThreadRollbackResponse__ByteRange> => V2ThreadRollbackResponse__ByteRange, |
| | 20382 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), |
| | 20383 | placeholder: Schema.optionalKey( |
| | 20384 | Schema.Union([ |
| | 20385 | Schema.String.annotate({ |
| | 20386 | description: "Optional human-readable placeholder for the element, displayed in the UI.", |
| | 20387 | }), |
| | 20388 | Schema.Null, |
| | 20389 | ]), |
| | 20390 | ), |
| | 20391 | }).annotate({ identifier: "V2ThreadRollbackResponse__TextElement" }); |
| | 20392 | |
| | 20393 | export type V2ThreadRollbackResponse__MemoryCitation = { |
| | 20394 | readonly entries: ReadonlyArray<V2ThreadRollbackResponse__MemoryCitationEntry>; |
| | 20395 | readonly threadIds: ReadonlyArray<string>; |
| | 20396 | }; |
| | 20397 | export const V2ThreadRollbackResponse__MemoryCitation = Schema.Struct({ |
| | 20398 | entries: Schema.Array(V2ThreadRollbackResponse__MemoryCitationEntry), |
| | 20399 | threadIds: Schema.Array(Schema.String), |
| | 20400 | }).annotate({ identifier: "V2ThreadRollbackResponse__MemoryCitation" }); |
| | 20401 | |
| 17603 | export type V2ThreadRollbackResponse__FileUpdateChange = { | 20402 | export type V2ThreadRollbackResponse__FileUpdateChange = { |
| 17604 | readonly diff: string; | 20403 | readonly diff: string; |
| 17605 | readonly kind: V2ThreadRollbackResponse__PatchChangeKind; | 20404 | readonly kind: V2ThreadRollbackResponse__PatchChangeKind; |
| ... | @@ -17609,113 +20408,40 @@ export const V2ThreadRollbackResponse__FileUpdateChange = Schema.Struct({ | ... | @@ -17609,113 +20408,40 @@ export const V2ThreadRollbackResponse__FileUpdateChange = Schema.Struct({ |
| 17609 | diff: Schema.String, | 20408 | diff: Schema.String, |
| 17610 | kind: V2ThreadRollbackResponse__PatchChangeKind, | 20409 | kind: V2ThreadRollbackResponse__PatchChangeKind, |
| 17611 | path: Schema.String, | 20410 | path: Schema.String, |
| 17612 | }); | 20411 | }).annotate({ identifier: "V2ThreadRollbackResponse__FileUpdateChange" }); |
| 17613 | | 20412 | |
| 17614 | export type V2ThreadRollbackResponse__UserInput = | 20413 | export type V2ThreadRollbackResponse__CollabAgentState = { |
| 17615 | | { | 20414 | readonly message?: string | null; |
| 17616 | readonly text: string; | 20415 | readonly status: V2ThreadRollbackResponse__CollabAgentStatus; |
| 17617 | readonly text_elements?: ReadonlyArray<V2ThreadRollbackResponse__TextElement>; | 20416 | }; |
| 17618 | readonly type: "text"; | 20417 | export const V2ThreadRollbackResponse__CollabAgentState = Schema.Struct({ |
| 17619 | } | 20418 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 17620 | | { | 20419 | status: V2ThreadRollbackResponse__CollabAgentStatus, |
| 17621 | readonly detail?: V2ThreadRollbackResponse__ImageDetail | null; | 20420 | }).annotate({ identifier: "V2ThreadRollbackResponse__CollabAgentState" }); |
| 17622 | readonly type: "image"; | | |
| 17623 | readonly url: string; | | |
| 17624 | } | | |
| 17625 | | { | | |
| 17626 | readonly detail?: V2ThreadRollbackResponse__ImageDetail | null; | | |
| 17627 | readonly path: string; | | |
| 17628 | readonly type: "localImage"; | | |
| 17629 | } | | |
| 17630 | | { readonly type: "audio"; readonly url: string } | | |
| 17631 | | { readonly path: string; readonly type: "localAudio" } | | |
| 17632 | | { readonly name: string; readonly path: string; readonly type: "skill" } | | |
| 17633 | | { readonly name: string; readonly path: string; readonly type: "mention" }; | | |
| 17634 | export const V2ThreadRollbackResponse__UserInput = Schema.Union( | | |
| 17635 | [ | | |
| 17636 | Schema.Struct({ | | |
| 17637 | text: Schema.String, | | |
| 17638 | text_elements: Schema.optionalKey( | | |
| 17639 | Schema.Array(V2ThreadRollbackResponse__TextElement).annotate({ | | |
| 17640 | description: "UI-defined spans within `text` used to render or persist special elements.", | | |
| 17641 | default: [], | | |
| 17642 | }), | | |
| 17643 | ), | | |
| 17644 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | | |
| 17645 | }).annotate({ title: "TextUserInput" }), | | |
| 17646 | Schema.Struct({ | | |
| 17647 | detail: Schema.optionalKey( | | |
| 17648 | Schema.Union([V2ThreadRollbackResponse__ImageDetail, Schema.Null]), | | |
| 17649 | ), | | |
| 17650 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | | |
| 17651 | url: Schema.String, | | |
| 17652 | }).annotate({ title: "ImageUserInput" }), | | |
| 17653 | Schema.Struct({ | | |
| 17654 | detail: Schema.optionalKey( | | |
| 17655 | Schema.Union([V2ThreadRollbackResponse__ImageDetail, Schema.Null]), | | |
| 17656 | ), | | |
| 17657 | path: Schema.String, | | |
| 17658 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), | | |
| 17659 | }).annotate({ title: "LocalImageUserInput" }), | | |
| 17660 | Schema.Struct({ | | |
| 17661 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), | | |
| 17662 | url: Schema.String, | | |
| 17663 | }).annotate({ title: "AudioUserInput" }), | | |
| 17664 | Schema.Struct({ | | |
| 17665 | path: Schema.String, | | |
| 17666 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), | | |
| 17667 | }).annotate({ title: "LocalAudioUserInput" }), | | |
| 17668 | Schema.Struct({ | | |
| 17669 | name: Schema.String, | | |
| 17670 | path: Schema.String, | | |
| 17671 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), | | |
| 17672 | }).annotate({ title: "SkillUserInput" }), | | |
| 17673 | Schema.Struct({ | | |
| 17674 | name: Schema.String, | | |
| 17675 | path: Schema.String, | | |
| 17676 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), | | |
| 17677 | }).annotate({ title: "MentionUserInput" }), | | |
| 17678 | ], | | |
| 17679 | { mode: "oneOf" }, | | |
| 17680 | ); | | |
| 17681 | | 20421 | |
| 17682 | export type V2ThreadRollbackResponse__SubAgentSource = | 20422 | export type V2ThreadSettingsUpdatedNotification__Settings = { |
| 17683 | | "review" | 20423 | readonly developer_instructions?: string | null; |
| 17684 | | "compact" | 20424 | readonly model: string; |
| 17685 | | "memory_consolidation" | 20425 | readonly reasoning_effort?: V2ThreadSettingsUpdatedNotification__ReasoningEffort | null; |
| 17686 | | { | 20426 | }; |
| 17687 | readonly thread_spawn: { | 20427 | export const V2ThreadSettingsUpdatedNotification__Settings = Schema.Struct({ |
| 17688 | readonly agent_nickname?: string | null; | 20428 | developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 17689 | readonly agent_path?: V2ThreadRollbackResponse__AgentPath | null; | 20429 | model: Schema.String, |
| 17690 | readonly agent_role?: string | null; | 20430 | reasoning_effort: Schema.optionalKey( |
| 17691 | readonly depth: number; | 20431 | Schema.Union([V2ThreadSettingsUpdatedNotification__ReasoningEffort, Schema.Null]), |
| 17692 | readonly parent_thread_id: V2ThreadRollbackResponse__ThreadId; | 20432 | ), |
| 17693 | }; | 20433 | }).annotate({ |
| 17694 | } | 20434 | description: "Settings for a collaboration mode.", |
| 17695 | | { readonly other: string }; | 20435 | identifier: "V2ThreadSettingsUpdatedNotification__Settings", |
| 17696 | export const V2ThreadRollbackResponse__SubAgentSource = Schema.Union( | 20436 | }); |
| 17697 | [ | | |
| 17698 | Schema.Literals(["review", "compact", "memory_consolidation"]), | | |
| 17699 | Schema.Struct({ | | |
| 17700 | thread_spawn: Schema.Struct({ | | |
| 17701 | agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 17702 | agent_path: Schema.optionalKey( | | |
| 17703 | Schema.Union([V2ThreadRollbackResponse__AgentPath, Schema.Null]), | | |
| 17704 | ), | | |
| 17705 | agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 17706 | depth: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()), | | |
| 17707 | parent_thread_id: V2ThreadRollbackResponse__ThreadId, | | |
| 17708 | }), | | |
| 17709 | }).annotate({ title: "ThreadSpawnSubAgentSource" }), | | |
| 17710 | Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }), | | |
| 17711 | ], | | |
| 17712 | { mode: "oneOf" }, | | |
| 17713 | ); | | |
| 17714 | | 20437 | |
| 17715 | export type V2ThreadSettingsUpdatedNotification__SandboxPolicy = | 20438 | export type V2ThreadSettingsUpdatedNotification__SandboxPolicy = |
| 17716 | | { readonly type: "dangerFullAccess" } | 20439 | | { readonly type: "dangerFullAccess" } |
| 17717 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } | 20440 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } |
| 17718 | | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" } | 20441 | | { |
| | 20442 | readonly networkAccess?: V2ThreadSettingsUpdatedNotification__NetworkAccess; |
| | 20443 | readonly type: "externalSandbox"; |
| | 20444 | } |
| 17719 | | { | 20445 | | { |
| 17720 | readonly excludeSlashTmp?: boolean; | 20446 | readonly excludeSlashTmp?: boolean; |
| 17721 | readonly excludeTmpdirEnvVar?: boolean; | 20447 | readonly excludeTmpdirEnvVar?: boolean; |
| ... | @@ -17736,7 +20462,10 @@ export const V2ThreadSettingsUpdatedNotification__SandboxPolicy = Schema.Union( | ... | @@ -17736,7 +20462,10 @@ export const V2ThreadSettingsUpdatedNotification__SandboxPolicy = Schema.Union( |
| 17736 | }).annotate({ title: "ReadOnlySandboxPolicy" }), | 20462 | }).annotate({ title: "ReadOnlySandboxPolicy" }), |
| 17737 | Schema.Struct({ | 20463 | Schema.Struct({ |
| 17738 | networkAccess: Schema.optionalKey( | 20464 | networkAccess: Schema.optionalKey( |
| 17739 | Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }), | 20465 | Schema.suspend( |
| | 20466 | (): Schema.Codec<V2ThreadSettingsUpdatedNotification__NetworkAccess> => |
| | 20467 | V2ThreadSettingsUpdatedNotification__NetworkAccess, |
| | 20468 | ).annotate({ default: "restricted" }), |
| 17740 | ), | 20469 | ), |
| 17741 | type: Schema.Literal("externalSandbox").annotate({ | 20470 | type: Schema.Literal("externalSandbox").annotate({ |
| 17742 | title: "ExternalSandboxSandboxPolicyType", | 20471 | title: "ExternalSandboxSandboxPolicyType", |
| ... | @@ -17755,20 +20484,7 @@ export const V2ThreadSettingsUpdatedNotification__SandboxPolicy = Schema.Union( | ... | @@ -17755,20 +20484,7 @@ export const V2ThreadSettingsUpdatedNotification__SandboxPolicy = Schema.Union( |
| 17755 | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), | 20484 | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), |
| 17756 | ], | 20485 | ], |
| 17757 | { mode: "oneOf" }, | 20486 | { mode: "oneOf" }, |
| 17758 | ); | 20487 | ).annotate({ identifier: "V2ThreadSettingsUpdatedNotification__SandboxPolicy" }); |
| 17759 | | | |
| 17760 | export type V2ThreadSettingsUpdatedNotification__Settings = { | | |
| 17761 | readonly developer_instructions?: string | null; | | |
| 17762 | readonly model: string; | | |
| 17763 | readonly reasoning_effort?: V2ThreadSettingsUpdatedNotification__ReasoningEffort | null; | | |
| 17764 | }; | | |
| 17765 | export const V2ThreadSettingsUpdatedNotification__Settings = Schema.Struct({ | | |
| 17766 | developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 17767 | model: Schema.String, | | |
| 17768 | reasoning_effort: Schema.optionalKey( | | |
| 17769 | Schema.Union([V2ThreadSettingsUpdatedNotification__ReasoningEffort, Schema.Null]), | | |
| 17770 | ), | | |
| 17771 | }).annotate({ description: "Settings for a collaboration mode." }); | | |
| 17772 | | 20488 | |
| 17773 | export type V2ThreadStartedNotification__CommandAction = | 20489 | export type V2ThreadStartedNotification__CommandAction = |
| 17774 | | { | 20490 | | { |
| ... | @@ -17810,25 +20526,69 @@ export const V2ThreadStartedNotification__CommandAction = Schema.Union( | ... | @@ -17810,25 +20526,69 @@ export const V2ThreadStartedNotification__CommandAction = Schema.Union( |
| 17810 | }).annotate({ title: "UnknownCommandAction" }), | 20526 | }).annotate({ title: "UnknownCommandAction" }), |
| 17811 | ], | 20527 | ], |
| 17812 | { mode: "oneOf" }, | 20528 | { mode: "oneOf" }, |
| 17813 | ); | 20529 | ).annotate({ identifier: "V2ThreadStartedNotification__CommandAction" }); |
| 17814 | | | |
| 17815 | export type V2ThreadStartedNotification__CollabAgentState = { | | |
| 17816 | readonly message?: string | null; | | |
| 17817 | readonly status: V2ThreadStartedNotification__CollabAgentStatus; | | |
| 17818 | }; | | |
| 17819 | export const V2ThreadStartedNotification__CollabAgentState = Schema.Struct({ | | |
| 17820 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 17821 | status: V2ThreadStartedNotification__CollabAgentStatus, | | |
| 17822 | }); | | |
| 17823 | | 20530 | |
| 17824 | export type V2ThreadStartedNotification__MemoryCitation = { | 20531 | export type V2ThreadStartedNotification__SubAgentSource = |
| 17825 | readonly entries: ReadonlyArray<V2ThreadStartedNotification__MemoryCitationEntry>; | 20532 | | "review" |
| 17826 | readonly threadIds: ReadonlyArray<string>; | 20533 | | "compact" |
| 17827 | }; | 20534 | | "memory_consolidation" |
| 17828 | export const V2ThreadStartedNotification__MemoryCitation = Schema.Struct({ | 20535 | | { |
| 17829 | entries: Schema.Array(V2ThreadStartedNotification__MemoryCitationEntry), | 20536 | readonly thread_spawn: { |
| 17830 | threadIds: Schema.Array(Schema.String), | 20537 | readonly agent_nickname?: string | null; |
| 17831 | }); | 20538 | readonly agent_path?: V2ThreadStartedNotification__AgentPath | null; |
| | 20539 | readonly agent_role?: string | null; |
| | 20540 | readonly depth: number; |
| | 20541 | readonly parent_thread_id: V2ThreadStartedNotification__ThreadId; |
| | 20542 | }; |
| | 20543 | } |
| | 20544 | | { readonly other: string }; |
| | 20545 | export const V2ThreadStartedNotification__SubAgentSource = Schema.Union( |
| | 20546 | [ |
| | 20547 | Schema.Literals(["review", "compact", "memory_consolidation"]), |
| | 20548 | Schema.Struct({ |
| | 20549 | thread_spawn: Schema.Struct({ |
| | 20550 | agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 20551 | agent_path: Schema.optionalKey( |
| | 20552 | Schema.Union([V2ThreadStartedNotification__AgentPath, Schema.Null]), |
| | 20553 | ), |
| | 20554 | agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 20555 | depth: Schema.Number.annotate({ format: "int32" }).check( |
| | 20556 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 20557 | ), |
| | 20558 | parent_thread_id: V2ThreadStartedNotification__ThreadId, |
| | 20559 | }), |
| | 20560 | }).annotate({ title: "ThreadSpawnSubAgentSource" }), |
| | 20561 | Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }), |
| | 20562 | ], |
| | 20563 | { mode: "oneOf" }, |
| | 20564 | ).annotate({ identifier: "V2ThreadStartedNotification__SubAgentSource" }); |
| | 20565 | |
| | 20566 | export type V2ThreadStartedNotification__ThreadStatus = |
| | 20567 | | { readonly type: "notLoaded" } |
| | 20568 | | { readonly type: "idle" } |
| | 20569 | | { readonly type: "systemError" } |
| | 20570 | | { |
| | 20571 | readonly activeFlags: ReadonlyArray<V2ThreadStartedNotification__ThreadActiveFlag>; |
| | 20572 | readonly type: "active"; |
| | 20573 | }; |
| | 20574 | export const V2ThreadStartedNotification__ThreadStatus = Schema.Union( |
| | 20575 | [ |
| | 20576 | Schema.Struct({ |
| | 20577 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), |
| | 20578 | }).annotate({ title: "NotLoadedThreadStatus" }), |
| | 20579 | Schema.Struct({ |
| | 20580 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), |
| | 20581 | }).annotate({ title: "IdleThreadStatus" }), |
| | 20582 | Schema.Struct({ |
| | 20583 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), |
| | 20584 | }).annotate({ title: "SystemErrorThreadStatus" }), |
| | 20585 | Schema.Struct({ |
| | 20586 | activeFlags: Schema.Array(V2ThreadStartedNotification__ThreadActiveFlag), |
| | 20587 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), |
| | 20588 | }).annotate({ title: "ActiveThreadStatus" }), |
| | 20589 | ], |
| | 20590 | { mode: "oneOf" }, |
| | 20591 | ).annotate({ identifier: "V2ThreadStartedNotification__ThreadStatus" }); |
| 17832 | | 20592 | |
| 17833 | export type V2ThreadStartedNotification__CodexErrorInfo = | 20593 | export type V2ThreadStartedNotification__CodexErrorInfo = |
| 17834 | | "contextWindowExceeded" | 20594 | | "contextWindowExceeded" |
| ... | @@ -17871,8 +20631,12 @@ export const V2ThreadStartedNotification__CodexErrorInfo = Schema.Union( | ... | @@ -17871,8 +20631,12 @@ export const V2ThreadStartedNotification__CodexErrorInfo = Schema.Union( |
| 17871 | httpStatusCode: Schema.optionalKey( | 20631 | httpStatusCode: Schema.optionalKey( |
| 17872 | Schema.Union([ | 20632 | Schema.Union([ |
| 17873 | Schema.Number.annotate({ format: "uint16" }) | 20633 | Schema.Number.annotate({ format: "uint16" }) |
| 17874 | .check(Schema.isInt()) | 20634 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 17875 | .check(Schema.isGreaterThanOrEqualTo(0)), | 20635 | .check( |
| | 20636 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 20637 | expected: "a value greater than or equal to 0", |
| | 20638 | }), |
| | 20639 | ), |
| 17876 | Schema.Null, | 20640 | Schema.Null, |
| 17877 | ]), | 20641 | ]), |
| 17878 | ), | 20642 | ), |
| ... | @@ -17883,8 +20647,12 @@ export const V2ThreadStartedNotification__CodexErrorInfo = Schema.Union( | ... | @@ -17883,8 +20647,12 @@ export const V2ThreadStartedNotification__CodexErrorInfo = Schema.Union( |
| 17883 | httpStatusCode: Schema.optionalKey( | 20647 | httpStatusCode: Schema.optionalKey( |
| 17884 | Schema.Union([ | 20648 | Schema.Union([ |
| 17885 | Schema.Number.annotate({ format: "uint16" }) | 20649 | Schema.Number.annotate({ format: "uint16" }) |
| 17886 | .check(Schema.isInt()) | 20650 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 17887 | .check(Schema.isGreaterThanOrEqualTo(0)), | 20651 | .check( |
| | 20652 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 20653 | expected: "a value greater than or equal to 0", |
| | 20654 | }), |
| | 20655 | ), |
| 17888 | Schema.Null, | 20656 | Schema.Null, |
| 17889 | ]), | 20657 | ]), |
| 17890 | ), | 20658 | ), |
| ... | @@ -17898,8 +20666,12 @@ export const V2ThreadStartedNotification__CodexErrorInfo = Schema.Union( | ... | @@ -17898,8 +20666,12 @@ export const V2ThreadStartedNotification__CodexErrorInfo = Schema.Union( |
| 17898 | httpStatusCode: Schema.optionalKey( | 20666 | httpStatusCode: Schema.optionalKey( |
| 17899 | Schema.Union([ | 20667 | Schema.Union([ |
| 17900 | Schema.Number.annotate({ format: "uint16" }) | 20668 | Schema.Number.annotate({ format: "uint16" }) |
| 17901 | .check(Schema.isInt()) | 20669 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 17902 | .check(Schema.isGreaterThanOrEqualTo(0)), | 20670 | .check( |
| | 20671 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 20672 | expected: "a value greater than or equal to 0", |
| | 20673 | }), |
| | 20674 | ), |
| 17903 | Schema.Null, | 20675 | Schema.Null, |
| 17904 | ]), | 20676 | ]), |
| 17905 | ), | 20677 | ), |
| ... | @@ -17914,8 +20686,12 @@ export const V2ThreadStartedNotification__CodexErrorInfo = Schema.Union( | ... | @@ -17914,8 +20686,12 @@ export const V2ThreadStartedNotification__CodexErrorInfo = Schema.Union( |
| 17914 | httpStatusCode: Schema.optionalKey( | 20686 | httpStatusCode: Schema.optionalKey( |
| 17915 | Schema.Union([ | 20687 | Schema.Union([ |
| 17916 | Schema.Number.annotate({ format: "uint16" }) | 20688 | Schema.Number.annotate({ format: "uint16" }) |
| 17917 | .check(Schema.isInt()) | 20689 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 17918 | .check(Schema.isGreaterThanOrEqualTo(0)), | 20690 | .check( |
| | 20691 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 20692 | expected: "a value greater than or equal to 0", |
| | 20693 | }), |
| | 20694 | ), |
| 17919 | Schema.Null, | 20695 | Schema.Null, |
| 17920 | ]), | 20696 | ]), |
| 17921 | ), | 20697 | ), |
| ... | @@ -17938,8 +20714,37 @@ export const V2ThreadStartedNotification__CodexErrorInfo = Schema.Union( | ... | @@ -17938,8 +20714,37 @@ export const V2ThreadStartedNotification__CodexErrorInfo = Schema.Union( |
| 17938 | ).annotate({ | 20714 | ).annotate({ |
| 17939 | description: | 20715 | description: |
| 17940 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", | 20716 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", |
| | 20717 | identifier: "V2ThreadStartedNotification__CodexErrorInfo", |
| 17941 | }); | 20718 | }); |
| 17942 | | 20719 | |
| | 20720 | export type V2ThreadStartedNotification__TextElement = { |
| | 20721 | readonly byteRange: V2ThreadStartedNotification__ByteRange; |
| | 20722 | readonly placeholder?: string | null; |
| | 20723 | }; |
| | 20724 | export const V2ThreadStartedNotification__TextElement = Schema.Struct({ |
| | 20725 | byteRange: Schema.suspend( |
| | 20726 | (): Schema.Codec<V2ThreadStartedNotification__ByteRange> => |
| | 20727 | V2ThreadStartedNotification__ByteRange, |
| | 20728 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), |
| | 20729 | placeholder: Schema.optionalKey( |
| | 20730 | Schema.Union([ |
| | 20731 | Schema.String.annotate({ |
| | 20732 | description: "Optional human-readable placeholder for the element, displayed in the UI.", |
| | 20733 | }), |
| | 20734 | Schema.Null, |
| | 20735 | ]), |
| | 20736 | ), |
| | 20737 | }).annotate({ identifier: "V2ThreadStartedNotification__TextElement" }); |
| | 20738 | |
| | 20739 | export type V2ThreadStartedNotification__MemoryCitation = { |
| | 20740 | readonly entries: ReadonlyArray<V2ThreadStartedNotification__MemoryCitationEntry>; |
| | 20741 | readonly threadIds: ReadonlyArray<string>; |
| | 20742 | }; |
| | 20743 | export const V2ThreadStartedNotification__MemoryCitation = Schema.Struct({ |
| | 20744 | entries: Schema.Array(V2ThreadStartedNotification__MemoryCitationEntry), |
| | 20745 | threadIds: Schema.Array(Schema.String), |
| | 20746 | }).annotate({ identifier: "V2ThreadStartedNotification__MemoryCitation" }); |
| | 20747 | |
| 17943 | export type V2ThreadStartedNotification__FileUpdateChange = { | 20748 | export type V2ThreadStartedNotification__FileUpdateChange = { |
| 17944 | readonly diff: string; | 20749 | readonly diff: string; |
| 17945 | readonly kind: V2ThreadStartedNotification__PatchChangeKind; | 20750 | readonly kind: V2ThreadStartedNotification__PatchChangeKind; |
| ... | @@ -17949,168 +20754,169 @@ export const V2ThreadStartedNotification__FileUpdateChange = Schema.Struct({ | ... | @@ -17949,168 +20754,169 @@ export const V2ThreadStartedNotification__FileUpdateChange = Schema.Struct({ |
| 17949 | diff: Schema.String, | 20754 | diff: Schema.String, |
| 17950 | kind: V2ThreadStartedNotification__PatchChangeKind, | 20755 | kind: V2ThreadStartedNotification__PatchChangeKind, |
| 17951 | path: Schema.String, | 20756 | path: Schema.String, |
| 17952 | }); | 20757 | }).annotate({ identifier: "V2ThreadStartedNotification__FileUpdateChange" }); |
| 17953 | | 20758 | |
| 17954 | export type V2ThreadStartedNotification__UserInput = | 20759 | export type V2ThreadStartedNotification__CollabAgentState = { |
| 17955 | | { | 20760 | readonly message?: string | null; |
| 17956 | readonly text: string; | 20761 | readonly status: V2ThreadStartedNotification__CollabAgentStatus; |
| 17957 | readonly text_elements?: ReadonlyArray<V2ThreadStartedNotification__TextElement>; | 20762 | }; |
| 17958 | readonly type: "text"; | 20763 | export const V2ThreadStartedNotification__CollabAgentState = Schema.Struct({ |
| 17959 | } | 20764 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 20765 | status: V2ThreadStartedNotification__CollabAgentStatus, |
| | 20766 | }).annotate({ identifier: "V2ThreadStartedNotification__CollabAgentState" }); |
| | 20767 | |
| | 20768 | export type V2ThreadStartResponse__CommandAction = |
| 17960 | | { | 20769 | | { |
| 17961 | readonly detail?: V2ThreadStartedNotification__ImageDetail | null; | 20770 | readonly command: string; |
| 17962 | readonly type: "image"; | 20771 | readonly name: string; |
| 17963 | readonly url: string; | 20772 | readonly path: V2ThreadStartResponse__AbsolutePathBuf; |
| | 20773 | readonly type: "read"; |
| 17964 | } | 20774 | } |
| | 20775 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| 17965 | | { | 20776 | | { |
| 17966 | readonly detail?: V2ThreadStartedNotification__ImageDetail | null; | 20777 | readonly command: string; |
| 17967 | readonly path: string; | 20778 | readonly path?: string | null; |
| 17968 | readonly type: "localImage"; | 20779 | readonly query?: string | null; |
| | 20780 | readonly type: "search"; |
| 17969 | } | 20781 | } |
| 17970 | | { readonly type: "audio"; readonly url: string } | 20782 | | { readonly command: string; readonly type: "unknown" }; |
| 17971 | | { readonly path: string; readonly type: "localAudio" } | 20783 | export const V2ThreadStartResponse__CommandAction = Schema.Union( |
| 17972 | | { readonly name: string; readonly path: string; readonly type: "skill" } | | |
| 17973 | | { readonly name: string; readonly path: string; readonly type: "mention" }; | | |
| 17974 | export const V2ThreadStartedNotification__UserInput = Schema.Union( | | |
| 17975 | [ | 20784 | [ |
| 17976 | Schema.Struct({ | 20785 | Schema.Struct({ |
| 17977 | text: Schema.String, | 20786 | command: Schema.String, |
| 17978 | text_elements: Schema.optionalKey( | 20787 | name: Schema.String, |
| 17979 | Schema.Array(V2ThreadStartedNotification__TextElement).annotate({ | 20788 | path: V2ThreadStartResponse__AbsolutePathBuf, |
| 17980 | description: "UI-defined spans within `text` used to render or persist special elements.", | 20789 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 17981 | default: [], | 20790 | }).annotate({ title: "ReadCommandAction" }), |
| 17982 | }), | | |
| 17983 | ), | | |
| 17984 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | | |
| 17985 | }).annotate({ title: "TextUserInput" }), | | |
| 17986 | Schema.Struct({ | 20791 | Schema.Struct({ |
| 17987 | detail: Schema.optionalKey( | 20792 | command: Schema.String, |
| 17988 | Schema.Union([V2ThreadStartedNotification__ImageDetail, Schema.Null]), | 20793 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 17989 | ), | 20794 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), |
| 17990 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | 20795 | }).annotate({ title: "ListFilesCommandAction" }), |
| 17991 | url: Schema.String, | | |
| 17992 | }).annotate({ title: "ImageUserInput" }), | | |
| 17993 | Schema.Struct({ | 20796 | Schema.Struct({ |
| 17994 | detail: Schema.optionalKey( | 20797 | command: Schema.String, |
| 17995 | Schema.Union([V2ThreadStartedNotification__ImageDetail, Schema.Null]), | 20798 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 17996 | ), | 20799 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 17997 | path: Schema.String, | 20800 | type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }), |
| 17998 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), | 20801 | }).annotate({ title: "SearchCommandAction" }), |
| 17999 | }).annotate({ title: "LocalImageUserInput" }), | | |
| 18000 | Schema.Struct({ | 20802 | Schema.Struct({ |
| 18001 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), | 20803 | command: Schema.String, |
| 18002 | url: Schema.String, | 20804 | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), |
| 18003 | }).annotate({ title: "AudioUserInput" }), | 20805 | }).annotate({ title: "UnknownCommandAction" }), |
| | 20806 | ], |
| | 20807 | { mode: "oneOf" }, |
| | 20808 | ).annotate({ identifier: "V2ThreadStartResponse__CommandAction" }); |
| | 20809 | |
| | 20810 | export type V2ThreadStartResponse__SandboxPolicy = |
| | 20811 | | { readonly type: "dangerFullAccess" } |
| | 20812 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } |
| | 20813 | | { |
| | 20814 | readonly networkAccess?: V2ThreadStartResponse__NetworkAccess; |
| | 20815 | readonly type: "externalSandbox"; |
| | 20816 | } |
| | 20817 | | { |
| | 20818 | readonly excludeSlashTmp?: boolean; |
| | 20819 | readonly excludeTmpdirEnvVar?: boolean; |
| | 20820 | readonly networkAccess?: boolean; |
| | 20821 | readonly type: "workspaceWrite"; |
| | 20822 | readonly writableRoots?: ReadonlyArray<V2ThreadStartResponse__AbsolutePathBuf>; |
| | 20823 | }; |
| | 20824 | export const V2ThreadStartResponse__SandboxPolicy = Schema.Union( |
| | 20825 | [ |
| 18004 | Schema.Struct({ | 20826 | Schema.Struct({ |
| 18005 | path: Schema.String, | 20827 | type: Schema.Literal("dangerFullAccess").annotate({ |
| 18006 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), | 20828 | title: "DangerFullAccessSandboxPolicyType", |
| 18007 | }).annotate({ title: "LocalAudioUserInput" }), | 20829 | }), |
| | 20830 | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), |
| 18008 | Schema.Struct({ | 20831 | Schema.Struct({ |
| 18009 | name: Schema.String, | 20832 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 18010 | path: Schema.String, | 20833 | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), |
| 18011 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), | 20834 | }).annotate({ title: "ReadOnlySandboxPolicy" }), |
| 18012 | }).annotate({ title: "SkillUserInput" }), | | |
| 18013 | Schema.Struct({ | 20835 | Schema.Struct({ |
| 18014 | name: Schema.String, | 20836 | networkAccess: Schema.optionalKey( |
| 18015 | path: Schema.String, | 20837 | Schema.suspend( |
| 18016 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), | 20838 | (): Schema.Codec<V2ThreadStartResponse__NetworkAccess> => |
| 18017 | }).annotate({ title: "MentionUserInput" }), | 20839 | V2ThreadStartResponse__NetworkAccess, |
| | 20840 | ).annotate({ default: "restricted" }), |
| | 20841 | ), |
| | 20842 | type: Schema.Literal("externalSandbox").annotate({ |
| | 20843 | title: "ExternalSandboxSandboxPolicyType", |
| | 20844 | }), |
| | 20845 | }).annotate({ title: "ExternalSandboxSandboxPolicy" }), |
| | 20846 | Schema.Struct({ |
| | 20847 | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| | 20848 | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| | 20849 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| | 20850 | type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }), |
| | 20851 | writableRoots: Schema.optionalKey( |
| | 20852 | Schema.Array(V2ThreadStartResponse__AbsolutePathBuf).annotate({ default: [] }), |
| | 20853 | ), |
| | 20854 | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), |
| 18018 | ], | 20855 | ], |
| 18019 | { mode: "oneOf" }, | 20856 | { mode: "oneOf" }, |
| 18020 | ); | 20857 | ).annotate({ identifier: "V2ThreadStartResponse__SandboxPolicy" }); |
| 18021 | | 20858 | |
| 18022 | export type V2ThreadStartedNotification__SubAgentSource = | 20859 | export type V2ThreadStartResponse__SubAgentSource = |
| 18023 | | "review" | 20860 | | "review" |
| 18024 | | "compact" | 20861 | | "compact" |
| 18025 | | "memory_consolidation" | 20862 | | "memory_consolidation" |
| 18026 | | { | 20863 | | { |
| 18027 | readonly thread_spawn: { | 20864 | readonly thread_spawn: { |
| 18028 | readonly agent_nickname?: string | null; | 20865 | readonly agent_nickname?: string | null; |
| 18029 | readonly agent_path?: V2ThreadStartedNotification__AgentPath | null; | 20866 | readonly agent_path?: V2ThreadStartResponse__AgentPath | null; |
| 18030 | readonly agent_role?: string | null; | 20867 | readonly agent_role?: string | null; |
| 18031 | readonly depth: number; | 20868 | readonly depth: number; |
| 18032 | readonly parent_thread_id: V2ThreadStartedNotification__ThreadId; | 20869 | readonly parent_thread_id: V2ThreadStartResponse__ThreadId; |
| 18033 | }; | 20870 | }; |
| 18034 | } | 20871 | } |
| 18035 | | { readonly other: string }; | 20872 | | { readonly other: string }; |
| 18036 | export const V2ThreadStartedNotification__SubAgentSource = Schema.Union( | 20873 | export const V2ThreadStartResponse__SubAgentSource = Schema.Union( |
| 18037 | [ | 20874 | [ |
| 18038 | Schema.Literals(["review", "compact", "memory_consolidation"]), | 20875 | Schema.Literals(["review", "compact", "memory_consolidation"]), |
| 18039 | Schema.Struct({ | 20876 | Schema.Struct({ |
| 18040 | thread_spawn: Schema.Struct({ | 20877 | thread_spawn: Schema.Struct({ |
| 18041 | agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 20878 | agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 18042 | agent_path: Schema.optionalKey( | 20879 | agent_path: Schema.optionalKey( |
| 18043 | Schema.Union([V2ThreadStartedNotification__AgentPath, Schema.Null]), | 20880 | Schema.Union([V2ThreadStartResponse__AgentPath, Schema.Null]), |
| 18044 | ), | 20881 | ), |
| 18045 | agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 20882 | agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 18046 | depth: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()), | 20883 | depth: Schema.Number.annotate({ format: "int32" }).check( |
| 18047 | parent_thread_id: V2ThreadStartedNotification__ThreadId, | 20884 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 20885 | ), |
| | 20886 | parent_thread_id: V2ThreadStartResponse__ThreadId, |
| 18048 | }), | 20887 | }), |
| 18049 | }).annotate({ title: "ThreadSpawnSubAgentSource" }), | 20888 | }).annotate({ title: "ThreadSpawnSubAgentSource" }), |
| 18050 | Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }), | 20889 | Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }), |
| 18051 | ], | 20890 | ], |
| 18052 | { mode: "oneOf" }, | 20891 | { mode: "oneOf" }, |
| 18053 | ); | 20892 | ).annotate({ identifier: "V2ThreadStartResponse__SubAgentSource" }); |
| 18054 | | 20893 | |
| 18055 | export type V2ThreadStartResponse__CommandAction = | 20894 | export type V2ThreadStartResponse__ThreadStatus = |
| 18056 | | { | 20895 | | { readonly type: "notLoaded" } |
| 18057 | readonly command: string; | 20896 | | { readonly type: "idle" } |
| 18058 | readonly name: string; | 20897 | | { readonly type: "systemError" } |
| 18059 | readonly path: V2ThreadStartResponse__AbsolutePathBuf; | | |
| 18060 | readonly type: "read"; | | |
| 18061 | } | | |
| 18062 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } | | |
| 18063 | | { | 20898 | | { |
| 18064 | readonly command: string; | 20899 | readonly activeFlags: ReadonlyArray<V2ThreadStartResponse__ThreadActiveFlag>; |
| 18065 | readonly path?: string | null; | 20900 | readonly type: "active"; |
| 18066 | readonly query?: string | null; | 20901 | }; |
| 18067 | readonly type: "search"; | 20902 | export const V2ThreadStartResponse__ThreadStatus = Schema.Union( |
| 18068 | } | | |
| 18069 | | { readonly command: string; readonly type: "unknown" }; | | |
| 18070 | export const V2ThreadStartResponse__CommandAction = Schema.Union( | | |
| 18071 | [ | 20903 | [ |
| 18072 | Schema.Struct({ | 20904 | Schema.Struct({ |
| 18073 | command: Schema.String, | 20905 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), |
| 18074 | name: Schema.String, | 20906 | }).annotate({ title: "NotLoadedThreadStatus" }), |
| 18075 | path: V2ThreadStartResponse__AbsolutePathBuf, | | |
| 18076 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), | | |
| 18077 | }).annotate({ title: "ReadCommandAction" }), | | |
| 18078 | Schema.Struct({ | 20907 | Schema.Struct({ |
| 18079 | command: Schema.String, | 20908 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), |
| 18080 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 20909 | }).annotate({ title: "IdleThreadStatus" }), |
| 18081 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), | | |
| 18082 | }).annotate({ title: "ListFilesCommandAction" }), | | |
| 18083 | Schema.Struct({ | 20910 | Schema.Struct({ |
| 18084 | command: Schema.String, | 20911 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), |
| 18085 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 20912 | }).annotate({ title: "SystemErrorThreadStatus" }), |
| 18086 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 18087 | type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }), | | |
| 18088 | }).annotate({ title: "SearchCommandAction" }), | | |
| 18089 | Schema.Struct({ | 20913 | Schema.Struct({ |
| 18090 | command: Schema.String, | 20914 | activeFlags: Schema.Array(V2ThreadStartResponse__ThreadActiveFlag), |
| 18091 | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), | 20915 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), |
| 18092 | }).annotate({ title: "UnknownCommandAction" }), | 20916 | }).annotate({ title: "ActiveThreadStatus" }), |
| 18093 | ], | 20917 | ], |
| 18094 | { mode: "oneOf" }, | 20918 | { mode: "oneOf" }, |
| 18095 | ); | 20919 | ).annotate({ identifier: "V2ThreadStartResponse__ThreadStatus" }); |
| 18096 | | | |
| 18097 | export type V2ThreadStartResponse__CollabAgentState = { | | |
| 18098 | readonly message?: string | null; | | |
| 18099 | readonly status: V2ThreadStartResponse__CollabAgentStatus; | | |
| 18100 | }; | | |
| 18101 | export const V2ThreadStartResponse__CollabAgentState = Schema.Struct({ | | |
| 18102 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 18103 | status: V2ThreadStartResponse__CollabAgentStatus, | | |
| 18104 | }); | | |
| 18105 | | | |
| 18106 | export type V2ThreadStartResponse__MemoryCitation = { | | |
| 18107 | readonly entries: ReadonlyArray<V2ThreadStartResponse__MemoryCitationEntry>; | | |
| 18108 | readonly threadIds: ReadonlyArray<string>; | | |
| 18109 | }; | | |
| 18110 | export const V2ThreadStartResponse__MemoryCitation = Schema.Struct({ | | |
| 18111 | entries: Schema.Array(V2ThreadStartResponse__MemoryCitationEntry), | | |
| 18112 | threadIds: Schema.Array(Schema.String), | | |
| 18113 | }); | | |
| 18114 | | 20920 | |
| 18115 | export type V2ThreadStartResponse__CodexErrorInfo = | 20921 | export type V2ThreadStartResponse__CodexErrorInfo = |
| 18116 | | "contextWindowExceeded" | 20922 | | "contextWindowExceeded" |
| ... | @@ -18153,8 +20959,12 @@ export const V2ThreadStartResponse__CodexErrorInfo = Schema.Union( | ... | @@ -18153,8 +20959,12 @@ export const V2ThreadStartResponse__CodexErrorInfo = Schema.Union( |
| 18153 | httpStatusCode: Schema.optionalKey( | 20959 | httpStatusCode: Schema.optionalKey( |
| 18154 | Schema.Union([ | 20960 | Schema.Union([ |
| 18155 | Schema.Number.annotate({ format: "uint16" }) | 20961 | Schema.Number.annotate({ format: "uint16" }) |
| 18156 | .check(Schema.isInt()) | 20962 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 18157 | .check(Schema.isGreaterThanOrEqualTo(0)), | 20963 | .check( |
| | 20964 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 20965 | expected: "a value greater than or equal to 0", |
| | 20966 | }), |
| | 20967 | ), |
| 18158 | Schema.Null, | 20968 | Schema.Null, |
| 18159 | ]), | 20969 | ]), |
| 18160 | ), | 20970 | ), |
| ... | @@ -18165,8 +20975,12 @@ export const V2ThreadStartResponse__CodexErrorInfo = Schema.Union( | ... | @@ -18165,8 +20975,12 @@ export const V2ThreadStartResponse__CodexErrorInfo = Schema.Union( |
| 18165 | httpStatusCode: Schema.optionalKey( | 20975 | httpStatusCode: Schema.optionalKey( |
| 18166 | Schema.Union([ | 20976 | Schema.Union([ |
| 18167 | Schema.Number.annotate({ format: "uint16" }) | 20977 | Schema.Number.annotate({ format: "uint16" }) |
| 18168 | .check(Schema.isInt()) | 20978 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 18169 | .check(Schema.isGreaterThanOrEqualTo(0)), | 20979 | .check( |
| | 20980 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 20981 | expected: "a value greater than or equal to 0", |
| | 20982 | }), |
| | 20983 | ), |
| 18170 | Schema.Null, | 20984 | Schema.Null, |
| 18171 | ]), | 20985 | ]), |
| 18172 | ), | 20986 | ), |
| ... | @@ -18180,8 +20994,12 @@ export const V2ThreadStartResponse__CodexErrorInfo = Schema.Union( | ... | @@ -18180,8 +20994,12 @@ export const V2ThreadStartResponse__CodexErrorInfo = Schema.Union( |
| 18180 | httpStatusCode: Schema.optionalKey( | 20994 | httpStatusCode: Schema.optionalKey( |
| 18181 | Schema.Union([ | 20995 | Schema.Union([ |
| 18182 | Schema.Number.annotate({ format: "uint16" }) | 20996 | Schema.Number.annotate({ format: "uint16" }) |
| 18183 | .check(Schema.isInt()) | 20997 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 18184 | .check(Schema.isGreaterThanOrEqualTo(0)), | 20998 | .check( |
| | 20999 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 21000 | expected: "a value greater than or equal to 0", |
| | 21001 | }), |
| | 21002 | ), |
| 18185 | Schema.Null, | 21003 | Schema.Null, |
| 18186 | ]), | 21004 | ]), |
| 18187 | ), | 21005 | ), |
| ... | @@ -18196,8 +21014,12 @@ export const V2ThreadStartResponse__CodexErrorInfo = Schema.Union( | ... | @@ -18196,8 +21014,12 @@ export const V2ThreadStartResponse__CodexErrorInfo = Schema.Union( |
| 18196 | httpStatusCode: Schema.optionalKey( | 21014 | httpStatusCode: Schema.optionalKey( |
| 18197 | Schema.Union([ | 21015 | Schema.Union([ |
| 18198 | Schema.Number.annotate({ format: "uint16" }) | 21016 | Schema.Number.annotate({ format: "uint16" }) |
| 18199 | .check(Schema.isInt()) | 21017 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 18200 | .check(Schema.isGreaterThanOrEqualTo(0)), | 21018 | .check( |
| | 21019 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 21020 | expected: "a value greater than or equal to 0", |
| | 21021 | }), |
| | 21022 | ), |
| 18201 | Schema.Null, | 21023 | Schema.Null, |
| 18202 | ]), | 21024 | ]), |
| 18203 | ), | 21025 | ), |
| ... | @@ -18220,8 +21042,36 @@ export const V2ThreadStartResponse__CodexErrorInfo = Schema.Union( | ... | @@ -18220,8 +21042,36 @@ export const V2ThreadStartResponse__CodexErrorInfo = Schema.Union( |
| 18220 | ).annotate({ | 21042 | ).annotate({ |
| 18221 | description: | 21043 | description: |
| 18222 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", | 21044 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", |
| | 21045 | identifier: "V2ThreadStartResponse__CodexErrorInfo", |
| 18223 | }); | 21046 | }); |
| 18224 | | 21047 | |
| | 21048 | export type V2ThreadStartResponse__TextElement = { |
| | 21049 | readonly byteRange: V2ThreadStartResponse__ByteRange; |
| | 21050 | readonly placeholder?: string | null; |
| | 21051 | }; |
| | 21052 | export const V2ThreadStartResponse__TextElement = Schema.Struct({ |
| | 21053 | byteRange: Schema.suspend( |
| | 21054 | (): Schema.Codec<V2ThreadStartResponse__ByteRange> => V2ThreadStartResponse__ByteRange, |
| | 21055 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), |
| | 21056 | placeholder: Schema.optionalKey( |
| | 21057 | Schema.Union([ |
| | 21058 | Schema.String.annotate({ |
| | 21059 | description: "Optional human-readable placeholder for the element, displayed in the UI.", |
| | 21060 | }), |
| | 21061 | Schema.Null, |
| | 21062 | ]), |
| | 21063 | ), |
| | 21064 | }).annotate({ identifier: "V2ThreadStartResponse__TextElement" }); |
| | 21065 | |
| | 21066 | export type V2ThreadStartResponse__MemoryCitation = { |
| | 21067 | readonly entries: ReadonlyArray<V2ThreadStartResponse__MemoryCitationEntry>; |
| | 21068 | readonly threadIds: ReadonlyArray<string>; |
| | 21069 | }; |
| | 21070 | export const V2ThreadStartResponse__MemoryCitation = Schema.Struct({ |
| | 21071 | entries: Schema.Array(V2ThreadStartResponse__MemoryCitationEntry), |
| | 21072 | threadIds: Schema.Array(Schema.String), |
| | 21073 | }).annotate({ identifier: "V2ThreadStartResponse__MemoryCitation" }); |
| | 21074 | |
| 18225 | export type V2ThreadStartResponse__FileUpdateChange = { | 21075 | export type V2ThreadStartResponse__FileUpdateChange = { |
| 18226 | readonly diff: string; | 21076 | readonly diff: string; |
| 18227 | readonly kind: V2ThreadStartResponse__PatchChangeKind; | 21077 | readonly kind: V2ThreadStartResponse__PatchChangeKind; |
| ... | @@ -18231,104 +21081,16 @@ export const V2ThreadStartResponse__FileUpdateChange = Schema.Struct({ | ... | @@ -18231,104 +21081,16 @@ export const V2ThreadStartResponse__FileUpdateChange = Schema.Struct({ |
| 18231 | diff: Schema.String, | 21081 | diff: Schema.String, |
| 18232 | kind: V2ThreadStartResponse__PatchChangeKind, | 21082 | kind: V2ThreadStartResponse__PatchChangeKind, |
| 18233 | path: Schema.String, | 21083 | path: Schema.String, |
| 18234 | }); | 21084 | }).annotate({ identifier: "V2ThreadStartResponse__FileUpdateChange" }); |
| 18235 | | | |
| 18236 | export type V2ThreadStartResponse__UserInput = | | |
| 18237 | | { | | |
| 18238 | readonly text: string; | | |
| 18239 | readonly text_elements?: ReadonlyArray<V2ThreadStartResponse__TextElement>; | | |
| 18240 | readonly type: "text"; | | |
| 18241 | } | | |
| 18242 | | { | | |
| 18243 | readonly detail?: V2ThreadStartResponse__ImageDetail | null; | | |
| 18244 | readonly type: "image"; | | |
| 18245 | readonly url: string; | | |
| 18246 | } | | |
| 18247 | | { | | |
| 18248 | readonly detail?: V2ThreadStartResponse__ImageDetail | null; | | |
| 18249 | readonly path: string; | | |
| 18250 | readonly type: "localImage"; | | |
| 18251 | } | | |
| 18252 | | { readonly type: "audio"; readonly url: string } | | |
| 18253 | | { readonly path: string; readonly type: "localAudio" } | | |
| 18254 | | { readonly name: string; readonly path: string; readonly type: "skill" } | | |
| 18255 | | { readonly name: string; readonly path: string; readonly type: "mention" }; | | |
| 18256 | export const V2ThreadStartResponse__UserInput = Schema.Union( | | |
| 18257 | [ | | |
| 18258 | Schema.Struct({ | | |
| 18259 | text: Schema.String, | | |
| 18260 | text_elements: Schema.optionalKey( | | |
| 18261 | Schema.Array(V2ThreadStartResponse__TextElement).annotate({ | | |
| 18262 | description: "UI-defined spans within `text` used to render or persist special elements.", | | |
| 18263 | default: [], | | |
| 18264 | }), | | |
| 18265 | ), | | |
| 18266 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | | |
| 18267 | }).annotate({ title: "TextUserInput" }), | | |
| 18268 | Schema.Struct({ | | |
| 18269 | detail: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__ImageDetail, Schema.Null])), | | |
| 18270 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | | |
| 18271 | url: Schema.String, | | |
| 18272 | }).annotate({ title: "ImageUserInput" }), | | |
| 18273 | Schema.Struct({ | | |
| 18274 | detail: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__ImageDetail, Schema.Null])), | | |
| 18275 | path: Schema.String, | | |
| 18276 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), | | |
| 18277 | }).annotate({ title: "LocalImageUserInput" }), | | |
| 18278 | Schema.Struct({ | | |
| 18279 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), | | |
| 18280 | url: Schema.String, | | |
| 18281 | }).annotate({ title: "AudioUserInput" }), | | |
| 18282 | Schema.Struct({ | | |
| 18283 | path: Schema.String, | | |
| 18284 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), | | |
| 18285 | }).annotate({ title: "LocalAudioUserInput" }), | | |
| 18286 | Schema.Struct({ | | |
| 18287 | name: Schema.String, | | |
| 18288 | path: Schema.String, | | |
| 18289 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), | | |
| 18290 | }).annotate({ title: "SkillUserInput" }), | | |
| 18291 | Schema.Struct({ | | |
| 18292 | name: Schema.String, | | |
| 18293 | path: Schema.String, | | |
| 18294 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), | | |
| 18295 | }).annotate({ title: "MentionUserInput" }), | | |
| 18296 | ], | | |
| 18297 | { mode: "oneOf" }, | | |
| 18298 | ); | | |
| 18299 | | 21085 | |
| 18300 | export type V2ThreadStartResponse__SubAgentSource = | 21086 | export type V2ThreadStartResponse__CollabAgentState = { |
| 18301 | | "review" | 21087 | readonly message?: string | null; |
| 18302 | | "compact" | 21088 | readonly status: V2ThreadStartResponse__CollabAgentStatus; |
| 18303 | | "memory_consolidation" | 21089 | }; |
| 18304 | | { | 21090 | export const V2ThreadStartResponse__CollabAgentState = Schema.Struct({ |
| 18305 | readonly thread_spawn: { | 21091 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 18306 | readonly agent_nickname?: string | null; | 21092 | status: V2ThreadStartResponse__CollabAgentStatus, |
| 18307 | readonly agent_path?: V2ThreadStartResponse__AgentPath | null; | 21093 | }).annotate({ identifier: "V2ThreadStartResponse__CollabAgentState" }); |
| 18308 | readonly agent_role?: string | null; | | |
| 18309 | readonly depth: number; | | |
| 18310 | readonly parent_thread_id: V2ThreadStartResponse__ThreadId; | | |
| 18311 | }; | | |
| 18312 | } | | |
| 18313 | | { readonly other: string }; | | |
| 18314 | export const V2ThreadStartResponse__SubAgentSource = Schema.Union( | | |
| 18315 | [ | | |
| 18316 | Schema.Literals(["review", "compact", "memory_consolidation"]), | | |
| 18317 | Schema.Struct({ | | |
| 18318 | thread_spawn: Schema.Struct({ | | |
| 18319 | agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 18320 | agent_path: Schema.optionalKey( | | |
| 18321 | Schema.Union([V2ThreadStartResponse__AgentPath, Schema.Null]), | | |
| 18322 | ), | | |
| 18323 | agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 18324 | depth: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()), | | |
| 18325 | parent_thread_id: V2ThreadStartResponse__ThreadId, | | |
| 18326 | }), | | |
| 18327 | }).annotate({ title: "ThreadSpawnSubAgentSource" }), | | |
| 18328 | Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }), | | |
| 18329 | ], | | |
| 18330 | { mode: "oneOf" }, | | |
| 18331 | ); | | |
| 18332 | | 21094 | |
| 18333 | export type V2ThreadStatusChangedNotification__ThreadStatus = | 21095 | export type V2ThreadStatusChangedNotification__ThreadStatus = |
| 18334 | | { readonly type: "notLoaded" } | 21096 | | { readonly type: "notLoaded" } |
| ... | @@ -18355,7 +21117,7 @@ export const V2ThreadStatusChangedNotification__ThreadStatus = Schema.Union( | ... | @@ -18355,7 +21117,7 @@ export const V2ThreadStatusChangedNotification__ThreadStatus = Schema.Union( |
| 18355 | }).annotate({ title: "ActiveThreadStatus" }), | 21117 | }).annotate({ title: "ActiveThreadStatus" }), |
| 18356 | ], | 21118 | ], |
| 18357 | { mode: "oneOf" }, | 21119 | { mode: "oneOf" }, |
| 18358 | ); | 21120 | ).annotate({ identifier: "V2ThreadStatusChangedNotification__ThreadStatus" }); |
| 18359 | | 21121 | |
| 18360 | export type V2ThreadTokenUsageUpdatedNotification__ThreadTokenUsage = { | 21122 | export type V2ThreadTokenUsageUpdatedNotification__ThreadTokenUsage = { |
| 18361 | readonly last: V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown; | 21123 | readonly last: V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown; |
| ... | @@ -18365,10 +21127,15 @@ export type V2ThreadTokenUsageUpdatedNotification__ThreadTokenUsage = { | ... | @@ -18365,10 +21127,15 @@ export type V2ThreadTokenUsageUpdatedNotification__ThreadTokenUsage = { |
| 18365 | export const V2ThreadTokenUsageUpdatedNotification__ThreadTokenUsage = Schema.Struct({ | 21127 | export const V2ThreadTokenUsageUpdatedNotification__ThreadTokenUsage = Schema.Struct({ |
| 18366 | last: V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown, | 21128 | last: V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown, |
| 18367 | modelContextWindow: Schema.optionalKey( | 21129 | modelContextWindow: Schema.optionalKey( |
| 18368 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), | 21130 | Schema.Union([ |
| | 21131 | Schema.Number.annotate({ format: "int64" }).check( |
| | 21132 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 21133 | ), |
| | 21134 | Schema.Null, |
| | 21135 | ]), |
| 18369 | ), | 21136 | ), |
| 18370 | total: V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown, | 21137 | total: V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown, |
| 18371 | }); | 21138 | }).annotate({ identifier: "V2ThreadTokenUsageUpdatedNotification__ThreadTokenUsage" }); |
| 18372 | | 21139 | |
| 18373 | export type V2ThreadUnarchiveResponse__CommandAction = | 21140 | export type V2ThreadUnarchiveResponse__CommandAction = |
| 18374 | | { | 21141 | | { |
| ... | @@ -18410,25 +21177,69 @@ export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union( | ... | @@ -18410,25 +21177,69 @@ export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union( |
| 18410 | }).annotate({ title: "UnknownCommandAction" }), | 21177 | }).annotate({ title: "UnknownCommandAction" }), |
| 18411 | ], | 21178 | ], |
| 18412 | { mode: "oneOf" }, | 21179 | { mode: "oneOf" }, |
| 18413 | ); | 21180 | ).annotate({ identifier: "V2ThreadUnarchiveResponse__CommandAction" }); |
| 18414 | | 21181 | |
| 18415 | export type V2ThreadUnarchiveResponse__CollabAgentState = { | 21182 | export type V2ThreadUnarchiveResponse__SubAgentSource = |
| 18416 | readonly message?: string | null; | 21183 | | "review" |
| 18417 | readonly status: V2ThreadUnarchiveResponse__CollabAgentStatus; | 21184 | | "compact" |
| 18418 | }; | 21185 | | "memory_consolidation" |
| 18419 | export const V2ThreadUnarchiveResponse__CollabAgentState = Schema.Struct({ | 21186 | | { |
| 18420 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 21187 | readonly thread_spawn: { |
| 18421 | status: V2ThreadUnarchiveResponse__CollabAgentStatus, | 21188 | readonly agent_nickname?: string | null; |
| 18422 | }); | 21189 | readonly agent_path?: V2ThreadUnarchiveResponse__AgentPath | null; |
| | 21190 | readonly agent_role?: string | null; |
| | 21191 | readonly depth: number; |
| | 21192 | readonly parent_thread_id: V2ThreadUnarchiveResponse__ThreadId; |
| | 21193 | }; |
| | 21194 | } |
| | 21195 | | { readonly other: string }; |
| | 21196 | export const V2ThreadUnarchiveResponse__SubAgentSource = Schema.Union( |
| | 21197 | [ |
| | 21198 | Schema.Literals(["review", "compact", "memory_consolidation"]), |
| | 21199 | Schema.Struct({ |
| | 21200 | thread_spawn: Schema.Struct({ |
| | 21201 | agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 21202 | agent_path: Schema.optionalKey( |
| | 21203 | Schema.Union([V2ThreadUnarchiveResponse__AgentPath, Schema.Null]), |
| | 21204 | ), |
| | 21205 | agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 21206 | depth: Schema.Number.annotate({ format: "int32" }).check( |
| | 21207 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 21208 | ), |
| | 21209 | parent_thread_id: V2ThreadUnarchiveResponse__ThreadId, |
| | 21210 | }), |
| | 21211 | }).annotate({ title: "ThreadSpawnSubAgentSource" }), |
| | 21212 | Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }), |
| | 21213 | ], |
| | 21214 | { mode: "oneOf" }, |
| | 21215 | ).annotate({ identifier: "V2ThreadUnarchiveResponse__SubAgentSource" }); |
| 18423 | | 21216 | |
| 18424 | export type V2ThreadUnarchiveResponse__MemoryCitation = { | 21217 | export type V2ThreadUnarchiveResponse__ThreadStatus = |
| 18425 | readonly entries: ReadonlyArray<V2ThreadUnarchiveResponse__MemoryCitationEntry>; | 21218 | | { readonly type: "notLoaded" } |
| 18426 | readonly threadIds: ReadonlyArray<string>; | 21219 | | { readonly type: "idle" } |
| 18427 | }; | 21220 | | { readonly type: "systemError" } |
| 18428 | export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({ | 21221 | | { |
| 18429 | entries: Schema.Array(V2ThreadUnarchiveResponse__MemoryCitationEntry), | 21222 | readonly activeFlags: ReadonlyArray<V2ThreadUnarchiveResponse__ThreadActiveFlag>; |
| 18430 | threadIds: Schema.Array(Schema.String), | 21223 | readonly type: "active"; |
| 18431 | }); | 21224 | }; |
| | 21225 | export const V2ThreadUnarchiveResponse__ThreadStatus = Schema.Union( |
| | 21226 | [ |
| | 21227 | Schema.Struct({ |
| | 21228 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), |
| | 21229 | }).annotate({ title: "NotLoadedThreadStatus" }), |
| | 21230 | Schema.Struct({ |
| | 21231 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), |
| | 21232 | }).annotate({ title: "IdleThreadStatus" }), |
| | 21233 | Schema.Struct({ |
| | 21234 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), |
| | 21235 | }).annotate({ title: "SystemErrorThreadStatus" }), |
| | 21236 | Schema.Struct({ |
| | 21237 | activeFlags: Schema.Array(V2ThreadUnarchiveResponse__ThreadActiveFlag), |
| | 21238 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), |
| | 21239 | }).annotate({ title: "ActiveThreadStatus" }), |
| | 21240 | ], |
| | 21241 | { mode: "oneOf" }, |
| | 21242 | ).annotate({ identifier: "V2ThreadUnarchiveResponse__ThreadStatus" }); |
| 18432 | | 21243 | |
| 18433 | export type V2ThreadUnarchiveResponse__CodexErrorInfo = | 21244 | export type V2ThreadUnarchiveResponse__CodexErrorInfo = |
| 18434 | | "contextWindowExceeded" | 21245 | | "contextWindowExceeded" |
| ... | @@ -18471,8 +21282,12 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union( | ... | @@ -18471,8 +21282,12 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union( |
| 18471 | httpStatusCode: Schema.optionalKey( | 21282 | httpStatusCode: Schema.optionalKey( |
| 18472 | Schema.Union([ | 21283 | Schema.Union([ |
| 18473 | Schema.Number.annotate({ format: "uint16" }) | 21284 | Schema.Number.annotate({ format: "uint16" }) |
| 18474 | .check(Schema.isInt()) | 21285 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 18475 | .check(Schema.isGreaterThanOrEqualTo(0)), | 21286 | .check( |
| | 21287 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 21288 | expected: "a value greater than or equal to 0", |
| | 21289 | }), |
| | 21290 | ), |
| 18476 | Schema.Null, | 21291 | Schema.Null, |
| 18477 | ]), | 21292 | ]), |
| 18478 | ), | 21293 | ), |
| ... | @@ -18483,8 +21298,12 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union( | ... | @@ -18483,8 +21298,12 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union( |
| 18483 | httpStatusCode: Schema.optionalKey( | 21298 | httpStatusCode: Schema.optionalKey( |
| 18484 | Schema.Union([ | 21299 | Schema.Union([ |
| 18485 | Schema.Number.annotate({ format: "uint16" }) | 21300 | Schema.Number.annotate({ format: "uint16" }) |
| 18486 | .check(Schema.isInt()) | 21301 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 18487 | .check(Schema.isGreaterThanOrEqualTo(0)), | 21302 | .check( |
| | 21303 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 21304 | expected: "a value greater than or equal to 0", |
| | 21305 | }), |
| | 21306 | ), |
| 18488 | Schema.Null, | 21307 | Schema.Null, |
| 18489 | ]), | 21308 | ]), |
| 18490 | ), | 21309 | ), |
| ... | @@ -18498,8 +21317,12 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union( | ... | @@ -18498,8 +21317,12 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union( |
| 18498 | httpStatusCode: Schema.optionalKey( | 21317 | httpStatusCode: Schema.optionalKey( |
| 18499 | Schema.Union([ | 21318 | Schema.Union([ |
| 18500 | Schema.Number.annotate({ format: "uint16" }) | 21319 | Schema.Number.annotate({ format: "uint16" }) |
| 18501 | .check(Schema.isInt()) | 21320 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 18502 | .check(Schema.isGreaterThanOrEqualTo(0)), | 21321 | .check( |
| | 21322 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 21323 | expected: "a value greater than or equal to 0", |
| | 21324 | }), |
| | 21325 | ), |
| 18503 | Schema.Null, | 21326 | Schema.Null, |
| 18504 | ]), | 21327 | ]), |
| 18505 | ), | 21328 | ), |
| ... | @@ -18514,8 +21337,12 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union( | ... | @@ -18514,8 +21337,12 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union( |
| 18514 | httpStatusCode: Schema.optionalKey( | 21337 | httpStatusCode: Schema.optionalKey( |
| 18515 | Schema.Union([ | 21338 | Schema.Union([ |
| 18516 | Schema.Number.annotate({ format: "uint16" }) | 21339 | Schema.Number.annotate({ format: "uint16" }) |
| 18517 | .check(Schema.isInt()) | 21340 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 18518 | .check(Schema.isGreaterThanOrEqualTo(0)), | 21341 | .check( |
| | 21342 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 21343 | expected: "a value greater than or equal to 0", |
| | 21344 | }), |
| | 21345 | ), |
| 18519 | Schema.Null, | 21346 | Schema.Null, |
| 18520 | ]), | 21347 | ]), |
| 18521 | ), | 21348 | ), |
| ... | @@ -18538,119 +21365,214 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union( | ... | @@ -18538,119 +21365,214 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union( |
| 18538 | ).annotate({ | 21365 | ).annotate({ |
| 18539 | description: | 21366 | description: |
| 18540 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", | 21367 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", |
| | 21368 | identifier: "V2ThreadUnarchiveResponse__CodexErrorInfo", |
| 18541 | }); | 21369 | }); |
| 18542 | | 21370 | |
| 18543 | export type V2ThreadUnarchiveResponse__FileUpdateChange = { | 21371 | export type V2ThreadUnarchiveResponse__TextElement = { |
| 18544 | readonly diff: string; | 21372 | readonly byteRange: V2ThreadUnarchiveResponse__ByteRange; |
| 18545 | readonly kind: V2ThreadUnarchiveResponse__PatchChangeKind; | 21373 | readonly placeholder?: string | null; |
| 18546 | readonly path: string; | | |
| 18547 | }; | 21374 | }; |
| 18548 | export const V2ThreadUnarchiveResponse__FileUpdateChange = Schema.Struct({ | 21375 | export const V2ThreadUnarchiveResponse__TextElement = Schema.Struct({ |
| 18549 | diff: Schema.String, | 21376 | byteRange: Schema.suspend( |
| 18550 | kind: V2ThreadUnarchiveResponse__PatchChangeKind, | 21377 | (): Schema.Codec<V2ThreadUnarchiveResponse__ByteRange> => V2ThreadUnarchiveResponse__ByteRange, |
| 18551 | path: Schema.String, | 21378 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), |
| 18552 | }); | 21379 | placeholder: Schema.optionalKey( |
| 18553 | | 21380 | Schema.Union([ |
| 18554 | export type V2ThreadUnarchiveResponse__UserInput = | 21381 | Schema.String.annotate({ |
| 18555 | | { | 21382 | description: "Optional human-readable placeholder for the element, displayed in the UI.", |
| 18556 | readonly text: string; | 21383 | }), |
| 18557 | readonly text_elements?: ReadonlyArray<V2ThreadUnarchiveResponse__TextElement>; | 21384 | Schema.Null, |
| 18558 | readonly type: "text"; | 21385 | ]), |
| 18559 | } | 21386 | ), |
| 18560 | | { | 21387 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__TextElement" }); |
| 18561 | readonly detail?: V2ThreadUnarchiveResponse__ImageDetail | null; | 21388 | |
| 18562 | readonly type: "image"; | 21389 | export type V2ThreadUnarchiveResponse__MemoryCitation = { |
| 18563 | readonly url: string; | 21390 | readonly entries: ReadonlyArray<V2ThreadUnarchiveResponse__MemoryCitationEntry>; |
| 18564 | } | 21391 | readonly threadIds: ReadonlyArray<string>; |
| | 21392 | }; |
| | 21393 | export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({ |
| | 21394 | entries: Schema.Array(V2ThreadUnarchiveResponse__MemoryCitationEntry), |
| | 21395 | threadIds: Schema.Array(Schema.String), |
| | 21396 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__MemoryCitation" }); |
| | 21397 | |
| | 21398 | export type V2ThreadUnarchiveResponse__FileUpdateChange = { |
| | 21399 | readonly diff: string; |
| | 21400 | readonly kind: V2ThreadUnarchiveResponse__PatchChangeKind; |
| | 21401 | readonly path: string; |
| | 21402 | }; |
| | 21403 | export const V2ThreadUnarchiveResponse__FileUpdateChange = Schema.Struct({ |
| | 21404 | diff: Schema.String, |
| | 21405 | kind: V2ThreadUnarchiveResponse__PatchChangeKind, |
| | 21406 | path: Schema.String, |
| | 21407 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__FileUpdateChange" }); |
| | 21408 | |
| | 21409 | export type V2ThreadUnarchiveResponse__CollabAgentState = { |
| | 21410 | readonly message?: string | null; |
| | 21411 | readonly status: V2ThreadUnarchiveResponse__CollabAgentStatus; |
| | 21412 | }; |
| | 21413 | export const V2ThreadUnarchiveResponse__CollabAgentState = Schema.Struct({ |
| | 21414 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 21415 | status: V2ThreadUnarchiveResponse__CollabAgentStatus, |
| | 21416 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__CollabAgentState" }); |
| | 21417 | |
| | 21418 | export type V2TurnCompletedNotification__CodexErrorInfo = |
| | 21419 | | "contextWindowExceeded" |
| | 21420 | | "sessionBudgetExceeded" |
| | 21421 | | "usageLimitExceeded" |
| | 21422 | | "serverOverloaded" |
| | 21423 | | "cyberPolicy" |
| | 21424 | | "internalServerError" |
| | 21425 | | "unauthorized" |
| | 21426 | | "badRequest" |
| | 21427 | | "threadRollbackFailed" |
| | 21428 | | "sandboxError" |
| | 21429 | | "rateLimitExceeded" |
| | 21430 | | "misalignmentPolicyViolation" |
| | 21431 | | "other" |
| | 21432 | | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } } |
| | 21433 | | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } } |
| | 21434 | | { readonly responseStreamDisconnected: { readonly httpStatusCode?: number | null } } |
| | 21435 | | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } } |
| 18565 | | { | 21436 | | { |
| 18566 | readonly detail?: V2ThreadUnarchiveResponse__ImageDetail | null; | 21437 | readonly activeTurnNotSteerable: { |
| 18567 | readonly path: string; | 21438 | readonly turnKind: V2TurnCompletedNotification__NonSteerableTurnKind; |
| 18568 | readonly type: "localImage"; | 21439 | }; |
| 18569 | } | 21440 | }; |
| 18570 | | { readonly type: "audio"; readonly url: string } | 21441 | export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( |
| 18571 | | { readonly path: string; readonly type: "localAudio" } | | |
| 18572 | | { readonly name: string; readonly path: string; readonly type: "skill" } | | |
| 18573 | | { readonly name: string; readonly path: string; readonly type: "mention" }; | | |
| 18574 | export const V2ThreadUnarchiveResponse__UserInput = Schema.Union( | | |
| 18575 | [ | 21442 | [ |
| | 21443 | Schema.Literals([ |
| | 21444 | "contextWindowExceeded", |
| | 21445 | "sessionBudgetExceeded", |
| | 21446 | "usageLimitExceeded", |
| | 21447 | "serverOverloaded", |
| | 21448 | "cyberPolicy", |
| | 21449 | "internalServerError", |
| | 21450 | "unauthorized", |
| | 21451 | "badRequest", |
| | 21452 | "threadRollbackFailed", |
| | 21453 | "sandboxError", |
| | 21454 | "rateLimitExceeded", |
| | 21455 | "misalignmentPolicyViolation", |
| | 21456 | "other", |
| | 21457 | ]), |
| 18576 | Schema.Struct({ | 21458 | Schema.Struct({ |
| 18577 | text: Schema.String, | 21459 | httpConnectionFailed: Schema.Struct({ |
| 18578 | text_elements: Schema.optionalKey( | 21460 | httpStatusCode: Schema.optionalKey( |
| 18579 | Schema.Array(V2ThreadUnarchiveResponse__TextElement).annotate({ | 21461 | Schema.Union([ |
| 18580 | description: "UI-defined spans within `text` used to render or persist special elements.", | 21462 | Schema.Number.annotate({ format: "uint16" }) |
| 18581 | default: [], | 21463 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 18582 | }), | 21464 | .check( |
| 18583 | ), | 21465 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| 18584 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | 21466 | expected: "a value greater than or equal to 0", |
| 18585 | }).annotate({ title: "TextUserInput" }), | 21467 | }), |
| 18586 | Schema.Struct({ | 21468 | ), |
| 18587 | detail: Schema.optionalKey( | 21469 | Schema.Null, |
| 18588 | Schema.Union([V2ThreadUnarchiveResponse__ImageDetail, Schema.Null]), | 21470 | ]), |
| 18589 | ), | 21471 | ), |
| 18590 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | 21472 | }), |
| 18591 | url: Schema.String, | 21473 | }).annotate({ title: "HttpConnectionFailedCodexErrorInfo" }), |
| 18592 | }).annotate({ title: "ImageUserInput" }), | | |
| 18593 | Schema.Struct({ | | |
| 18594 | detail: Schema.optionalKey( | | |
| 18595 | Schema.Union([V2ThreadUnarchiveResponse__ImageDetail, Schema.Null]), | | |
| 18596 | ), | | |
| 18597 | path: Schema.String, | | |
| 18598 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), | | |
| 18599 | }).annotate({ title: "LocalImageUserInput" }), | | |
| 18600 | Schema.Struct({ | 21474 | Schema.Struct({ |
| 18601 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), | 21475 | responseStreamConnectionFailed: Schema.Struct({ |
| 18602 | url: Schema.String, | 21476 | httpStatusCode: Schema.optionalKey( |
| 18603 | }).annotate({ title: "AudioUserInput" }), | 21477 | Schema.Union([ |
| | 21478 | Schema.Number.annotate({ format: "uint16" }) |
| | 21479 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 21480 | .check( |
| | 21481 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 21482 | expected: "a value greater than or equal to 0", |
| | 21483 | }), |
| | 21484 | ), |
| | 21485 | Schema.Null, |
| | 21486 | ]), |
| | 21487 | ), |
| | 21488 | }), |
| | 21489 | }).annotate({ |
| | 21490 | title: "ResponseStreamConnectionFailedCodexErrorInfo", |
| | 21491 | description: "Failed to connect to the response SSE stream.", |
| | 21492 | }), |
| 18604 | Schema.Struct({ | 21493 | Schema.Struct({ |
| 18605 | path: Schema.String, | 21494 | responseStreamDisconnected: Schema.Struct({ |
| 18606 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), | 21495 | httpStatusCode: Schema.optionalKey( |
| 18607 | }).annotate({ title: "LocalAudioUserInput" }), | 21496 | Schema.Union([ |
| | 21497 | Schema.Number.annotate({ format: "uint16" }) |
| | 21498 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 21499 | .check( |
| | 21500 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 21501 | expected: "a value greater than or equal to 0", |
| | 21502 | }), |
| | 21503 | ), |
| | 21504 | Schema.Null, |
| | 21505 | ]), |
| | 21506 | ), |
| | 21507 | }), |
| | 21508 | }).annotate({ |
| | 21509 | title: "ResponseStreamDisconnectedCodexErrorInfo", |
| | 21510 | description: |
| | 21511 | "The response SSE stream disconnected in the middle of a turn before completion.", |
| | 21512 | }), |
| 18608 | Schema.Struct({ | 21513 | Schema.Struct({ |
| 18609 | name: Schema.String, | 21514 | responseTooManyFailedAttempts: Schema.Struct({ |
| 18610 | path: Schema.String, | 21515 | httpStatusCode: Schema.optionalKey( |
| 18611 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), | 21516 | Schema.Union([ |
| 18612 | }).annotate({ title: "SkillUserInput" }), | 21517 | Schema.Number.annotate({ format: "uint16" }) |
| | 21518 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 21519 | .check( |
| | 21520 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 21521 | expected: "a value greater than or equal to 0", |
| | 21522 | }), |
| | 21523 | ), |
| | 21524 | Schema.Null, |
| | 21525 | ]), |
| | 21526 | ), |
| | 21527 | }), |
| | 21528 | }).annotate({ |
| | 21529 | title: "ResponseTooManyFailedAttemptsCodexErrorInfo", |
| | 21530 | description: "Reached the retry limit for responses.", |
| | 21531 | }), |
| 18613 | Schema.Struct({ | 21532 | Schema.Struct({ |
| 18614 | name: Schema.String, | 21533 | activeTurnNotSteerable: Schema.Struct({ |
| 18615 | path: Schema.String, | 21534 | turnKind: V2TurnCompletedNotification__NonSteerableTurnKind, |
| 18616 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), | 21535 | }), |
| 18617 | }).annotate({ title: "MentionUserInput" }), | 21536 | }).annotate({ |
| | 21537 | title: "ActiveTurnNotSteerableCodexErrorInfo", |
| | 21538 | description: |
| | 21539 | "Returned when `turn/start` or `turn/steer` is submitted while the current active turn cannot accept same-turn steering, for example `/review` or manual `/compact`.", |
| | 21540 | }), |
| 18618 | ], | 21541 | ], |
| 18619 | { mode: "oneOf" }, | 21542 | { mode: "oneOf" }, |
| 18620 | ); | 21543 | ).annotate({ |
| | 21544 | description: |
| | 21545 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", |
| | 21546 | identifier: "V2TurnCompletedNotification__CodexErrorInfo", |
| | 21547 | }); |
| 18621 | | 21548 | |
| 18622 | export type V2ThreadUnarchiveResponse__SubAgentSource = | 21549 | export type V2TurnCompletedNotification__TextElement = { |
| 18623 | | "review" | 21550 | readonly byteRange: V2TurnCompletedNotification__ByteRange; |
| 18624 | | "compact" | 21551 | readonly placeholder?: string | null; |
| 18625 | | "memory_consolidation" | 21552 | }; |
| 18626 | | { | 21553 | export const V2TurnCompletedNotification__TextElement = Schema.Struct({ |
| 18627 | readonly thread_spawn: { | 21554 | byteRange: Schema.suspend( |
| 18628 | readonly agent_nickname?: string | null; | 21555 | (): Schema.Codec<V2TurnCompletedNotification__ByteRange> => |
| 18629 | readonly agent_path?: V2ThreadUnarchiveResponse__AgentPath | null; | 21556 | V2TurnCompletedNotification__ByteRange, |
| 18630 | readonly agent_role?: string | null; | 21557 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), |
| 18631 | readonly depth: number; | 21558 | placeholder: Schema.optionalKey( |
| 18632 | readonly parent_thread_id: V2ThreadUnarchiveResponse__ThreadId; | 21559 | Schema.Union([ |
| 18633 | }; | 21560 | Schema.String.annotate({ |
| 18634 | } | 21561 | description: "Optional human-readable placeholder for the element, displayed in the UI.", |
| 18635 | | { readonly other: string }; | | |
| 18636 | export const V2ThreadUnarchiveResponse__SubAgentSource = Schema.Union( | | |
| 18637 | [ | | |
| 18638 | Schema.Literals(["review", "compact", "memory_consolidation"]), | | |
| 18639 | Schema.Struct({ | | |
| 18640 | thread_spawn: Schema.Struct({ | | |
| 18641 | agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 18642 | agent_path: Schema.optionalKey( | | |
| 18643 | Schema.Union([V2ThreadUnarchiveResponse__AgentPath, Schema.Null]), | | |
| 18644 | ), | | |
| 18645 | agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 18646 | depth: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()), | | |
| 18647 | parent_thread_id: V2ThreadUnarchiveResponse__ThreadId, | | |
| 18648 | }), | 21562 | }), |
| 18649 | }).annotate({ title: "ThreadSpawnSubAgentSource" }), | 21563 | Schema.Null, |
| 18650 | Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }), | 21564 | ]), |
| 18651 | ], | 21565 | ), |
| 18652 | { mode: "oneOf" }, | 21566 | }).annotate({ identifier: "V2TurnCompletedNotification__TextElement" }); |
| 18653 | ); | 21567 | |
| | 21568 | export type V2TurnCompletedNotification__MemoryCitation = { |
| | 21569 | readonly entries: ReadonlyArray<V2TurnCompletedNotification__MemoryCitationEntry>; |
| | 21570 | readonly threadIds: ReadonlyArray<string>; |
| | 21571 | }; |
| | 21572 | export const V2TurnCompletedNotification__MemoryCitation = Schema.Struct({ |
| | 21573 | entries: Schema.Array(V2TurnCompletedNotification__MemoryCitationEntry), |
| | 21574 | threadIds: Schema.Array(Schema.String), |
| | 21575 | }).annotate({ identifier: "V2TurnCompletedNotification__MemoryCitation" }); |
| 18654 | | 21576 | |
| 18655 | export type V2TurnCompletedNotification__CommandAction = | 21577 | export type V2TurnCompletedNotification__CommandAction = |
| 18656 | | { | 21578 | | { |
| ... | @@ -18692,7 +21614,18 @@ export const V2TurnCompletedNotification__CommandAction = Schema.Union( | ... | @@ -18692,7 +21614,18 @@ export const V2TurnCompletedNotification__CommandAction = Schema.Union( |
| 18692 | }).annotate({ title: "UnknownCommandAction" }), | 21614 | }).annotate({ title: "UnknownCommandAction" }), |
| 18693 | ], | 21615 | ], |
| 18694 | { mode: "oneOf" }, | 21616 | { mode: "oneOf" }, |
| 18695 | ); | 21617 | ).annotate({ identifier: "V2TurnCompletedNotification__CommandAction" }); |
| | 21618 | |
| | 21619 | export type V2TurnCompletedNotification__FileUpdateChange = { |
| | 21620 | readonly diff: string; |
| | 21621 | readonly kind: V2TurnCompletedNotification__PatchChangeKind; |
| | 21622 | readonly path: string; |
| | 21623 | }; |
| | 21624 | export const V2TurnCompletedNotification__FileUpdateChange = Schema.Struct({ |
| | 21625 | diff: Schema.String, |
| | 21626 | kind: V2TurnCompletedNotification__PatchChangeKind, |
| | 21627 | path: Schema.String, |
| | 21628 | }).annotate({ identifier: "V2TurnCompletedNotification__FileUpdateChange" }); |
| 18696 | | 21629 | |
| 18697 | export type V2TurnCompletedNotification__CollabAgentState = { | 21630 | export type V2TurnCompletedNotification__CollabAgentState = { |
| 18698 | readonly message?: string | null; | 21631 | readonly message?: string | null; |
| ... | @@ -18701,18 +21634,18 @@ export type V2TurnCompletedNotification__CollabAgentState = { | ... | @@ -18701,18 +21634,18 @@ export type V2TurnCompletedNotification__CollabAgentState = { |
| 18701 | export const V2TurnCompletedNotification__CollabAgentState = Schema.Struct({ | 21634 | export const V2TurnCompletedNotification__CollabAgentState = Schema.Struct({ |
| 18702 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 21635 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 18703 | status: V2TurnCompletedNotification__CollabAgentStatus, | 21636 | status: V2TurnCompletedNotification__CollabAgentStatus, |
| 18704 | }); | 21637 | }).annotate({ identifier: "V2TurnCompletedNotification__CollabAgentState" }); |
| 18705 | | 21638 | |
| 18706 | export type V2TurnCompletedNotification__MemoryCitation = { | 21639 | export type V2TurnPlanUpdatedNotification__TurnPlanStep = { |
| 18707 | readonly entries: ReadonlyArray<V2TurnCompletedNotification__MemoryCitationEntry>; | 21640 | readonly status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus; |
| 18708 | readonly threadIds: ReadonlyArray<string>; | 21641 | readonly step: string; |
| 18709 | }; | 21642 | }; |
| 18710 | export const V2TurnCompletedNotification__MemoryCitation = Schema.Struct({ | 21643 | export const V2TurnPlanUpdatedNotification__TurnPlanStep = Schema.Struct({ |
| 18711 | entries: Schema.Array(V2TurnCompletedNotification__MemoryCitationEntry), | 21644 | status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus, |
| 18712 | threadIds: Schema.Array(Schema.String), | 21645 | step: Schema.String, |
| 18713 | }); | 21646 | }).annotate({ identifier: "V2TurnPlanUpdatedNotification__TurnPlanStep" }); |
| 18714 | | 21647 | |
| 18715 | export type V2TurnCompletedNotification__CodexErrorInfo = | 21648 | export type V2TurnStartedNotification__CodexErrorInfo = |
| 18716 | | "contextWindowExceeded" | 21649 | | "contextWindowExceeded" |
| 18717 | | "sessionBudgetExceeded" | 21650 | | "sessionBudgetExceeded" |
| 18718 | | "usageLimitExceeded" | 21651 | | "usageLimitExceeded" |
| ... | @@ -18723,8 +21656,6 @@ export type V2TurnCompletedNotification__CodexErrorInfo = | ... | @@ -18723,8 +21656,6 @@ export type V2TurnCompletedNotification__CodexErrorInfo = |
| 18723 | | "badRequest" | 21656 | | "badRequest" |
| 18724 | | "threadRollbackFailed" | 21657 | | "threadRollbackFailed" |
| 18725 | | "sandboxError" | 21658 | | "sandboxError" |
| 18726 | | "rateLimitExceeded" | | |
| 18727 | | "misalignmentPolicyViolation" | | |
| 18728 | | "other" | 21659 | | "other" |
| 18729 | | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } } | 21660 | | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } } |
| 18730 | | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } } | 21661 | | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } } |
| ... | @@ -18732,10 +21663,10 @@ export type V2TurnCompletedNotification__CodexErrorInfo = | ... | @@ -18732,10 +21663,10 @@ export type V2TurnCompletedNotification__CodexErrorInfo = |
| 18732 | | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } } | 21663 | | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } } |
| 18733 | | { | 21664 | | { |
| 18734 | readonly activeTurnNotSteerable: { | 21665 | readonly activeTurnNotSteerable: { |
| 18735 | readonly turnKind: V2TurnCompletedNotification__NonSteerableTurnKind; | 21666 | readonly turnKind: V2TurnStartedNotification__NonSteerableTurnKind; |
| 18736 | }; | 21667 | }; |
| 18737 | }; | 21668 | }; |
| 18738 | export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( | 21669 | export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union( |
| 18739 | [ | 21670 | [ |
| 18740 | Schema.Literals([ | 21671 | Schema.Literals([ |
| 18741 | "contextWindowExceeded", | 21672 | "contextWindowExceeded", |
| ... | @@ -18748,8 +21679,6 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( | ... | @@ -18748,8 +21679,6 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( |
| 18748 | "badRequest", | 21679 | "badRequest", |
| 18749 | "threadRollbackFailed", | 21680 | "threadRollbackFailed", |
| 18750 | "sandboxError", | 21681 | "sandboxError", |
| 18751 | "rateLimitExceeded", | | |
| 18752 | "misalignmentPolicyViolation", | | |
| 18753 | "other", | 21682 | "other", |
| 18754 | ]), | 21683 | ]), |
| 18755 | Schema.Struct({ | 21684 | Schema.Struct({ |
| ... | @@ -18757,8 +21686,12 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( | ... | @@ -18757,8 +21686,12 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( |
| 18757 | httpStatusCode: Schema.optionalKey( | 21686 | httpStatusCode: Schema.optionalKey( |
| 18758 | Schema.Union([ | 21687 | Schema.Union([ |
| 18759 | Schema.Number.annotate({ format: "uint16" }) | 21688 | Schema.Number.annotate({ format: "uint16" }) |
| 18760 | .check(Schema.isInt()) | 21689 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 18761 | .check(Schema.isGreaterThanOrEqualTo(0)), | 21690 | .check( |
| | 21691 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 21692 | expected: "a value greater than or equal to 0", |
| | 21693 | }), |
| | 21694 | ), |
| 18762 | Schema.Null, | 21695 | Schema.Null, |
| 18763 | ]), | 21696 | ]), |
| 18764 | ), | 21697 | ), |
| ... | @@ -18769,8 +21702,12 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( | ... | @@ -18769,8 +21702,12 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( |
| 18769 | httpStatusCode: Schema.optionalKey( | 21702 | httpStatusCode: Schema.optionalKey( |
| 18770 | Schema.Union([ | 21703 | Schema.Union([ |
| 18771 | Schema.Number.annotate({ format: "uint16" }) | 21704 | Schema.Number.annotate({ format: "uint16" }) |
| 18772 | .check(Schema.isInt()) | 21705 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 18773 | .check(Schema.isGreaterThanOrEqualTo(0)), | 21706 | .check( |
| | 21707 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 21708 | expected: "a value greater than or equal to 0", |
| | 21709 | }), |
| | 21710 | ), |
| 18774 | Schema.Null, | 21711 | Schema.Null, |
| 18775 | ]), | 21712 | ]), |
| 18776 | ), | 21713 | ), |
| ... | @@ -18784,8 +21721,12 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( | ... | @@ -18784,8 +21721,12 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( |
| 18784 | httpStatusCode: Schema.optionalKey( | 21721 | httpStatusCode: Schema.optionalKey( |
| 18785 | Schema.Union([ | 21722 | Schema.Union([ |
| 18786 | Schema.Number.annotate({ format: "uint16" }) | 21723 | Schema.Number.annotate({ format: "uint16" }) |
| 18787 | .check(Schema.isInt()) | 21724 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 18788 | .check(Schema.isGreaterThanOrEqualTo(0)), | 21725 | .check( |
| | 21726 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 21727 | expected: "a value greater than or equal to 0", |
| | 21728 | }), |
| | 21729 | ), |
| 18789 | Schema.Null, | 21730 | Schema.Null, |
| 18790 | ]), | 21731 | ]), |
| 18791 | ), | 21732 | ), |
| ... | @@ -18800,8 +21741,12 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( | ... | @@ -18800,8 +21741,12 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( |
| 18800 | httpStatusCode: Schema.optionalKey( | 21741 | httpStatusCode: Schema.optionalKey( |
| 18801 | Schema.Union([ | 21742 | Schema.Union([ |
| 18802 | Schema.Number.annotate({ format: "uint16" }) | 21743 | Schema.Number.annotate({ format: "uint16" }) |
| 18803 | .check(Schema.isInt()) | 21744 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 18804 | .check(Schema.isGreaterThanOrEqualTo(0)), | 21745 | .check( |
| | 21746 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 21747 | expected: "a value greater than or equal to 0", |
| | 21748 | }), |
| | 21749 | ), |
| 18805 | Schema.Null, | 21750 | Schema.Null, |
| 18806 | ]), | 21751 | ]), |
| 18807 | ), | 21752 | ), |
| ... | @@ -18812,7 +21757,7 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( | ... | @@ -18812,7 +21757,7 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( |
| 18812 | }), | 21757 | }), |
| 18813 | Schema.Struct({ | 21758 | Schema.Struct({ |
| 18814 | activeTurnNotSteerable: Schema.Struct({ | 21759 | activeTurnNotSteerable: Schema.Struct({ |
| 18815 | turnKind: V2TurnCompletedNotification__NonSteerableTurnKind, | 21760 | turnKind: V2TurnStartedNotification__NonSteerableTurnKind, |
| 18816 | }), | 21761 | }), |
| 18817 | }).annotate({ | 21762 | }).annotate({ |
| 18818 | title: "ActiveTurnNotSteerableCodexErrorInfo", | 21763 | title: "ActiveTurnNotSteerableCodexErrorInfo", |
| ... | @@ -18824,95 +21769,35 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( | ... | @@ -18824,95 +21769,35 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( |
| 18824 | ).annotate({ | 21769 | ).annotate({ |
| 18825 | description: | 21770 | description: |
| 18826 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", | 21771 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", |
| | 21772 | identifier: "V2TurnStartedNotification__CodexErrorInfo", |
| 18827 | }); | 21773 | }); |
| 18828 | | 21774 | |
| 18829 | export type V2TurnCompletedNotification__FileUpdateChange = { | 21775 | export type V2TurnStartedNotification__TextElement = { |
| 18830 | readonly diff: string; | 21776 | readonly byteRange: V2TurnStartedNotification__ByteRange; |
| 18831 | readonly kind: V2TurnCompletedNotification__PatchChangeKind; | 21777 | readonly placeholder?: string | null; |
| 18832 | readonly path: string; | | |
| 18833 | }; | 21778 | }; |
| 18834 | export const V2TurnCompletedNotification__FileUpdateChange = Schema.Struct({ | 21779 | export const V2TurnStartedNotification__TextElement = Schema.Struct({ |
| 18835 | diff: Schema.String, | 21780 | byteRange: Schema.suspend( |
| 18836 | kind: V2TurnCompletedNotification__PatchChangeKind, | 21781 | (): Schema.Codec<V2TurnStartedNotification__ByteRange> => V2TurnStartedNotification__ByteRange, |
| 18837 | path: Schema.String, | 21782 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), |
| 18838 | }); | 21783 | placeholder: Schema.optionalKey( |
| 18839 | | 21784 | Schema.Union([ |
| 18840 | export type V2TurnCompletedNotification__UserInput = | 21785 | Schema.String.annotate({ |
| 18841 | | { | 21786 | description: "Optional human-readable placeholder for the element, displayed in the UI.", |
| 18842 | readonly text: string; | 21787 | }), |
| 18843 | readonly text_elements?: ReadonlyArray<V2TurnCompletedNotification__TextElement>; | 21788 | Schema.Null, |
| 18844 | readonly type: "text"; | 21789 | ]), |
| 18845 | } | 21790 | ), |
| 18846 | | { | 21791 | }).annotate({ identifier: "V2TurnStartedNotification__TextElement" }); |
| 18847 | readonly detail?: V2TurnCompletedNotification__ImageDetail | null; | | |
| 18848 | readonly type: "image"; | | |
| 18849 | readonly url: string; | | |
| 18850 | } | | |
| 18851 | | { | | |
| 18852 | readonly detail?: V2TurnCompletedNotification__ImageDetail | null; | | |
| 18853 | readonly path: string; | | |
| 18854 | readonly type: "localImage"; | | |
| 18855 | } | | |
| 18856 | | { readonly type: "audio"; readonly url: string } | | |
| 18857 | | { readonly path: string; readonly type: "localAudio" } | | |
| 18858 | | { readonly name: string; readonly path: string; readonly type: "skill" } | | |
| 18859 | | { readonly name: string; readonly path: string; readonly type: "mention" }; | | |
| 18860 | export const V2TurnCompletedNotification__UserInput = Schema.Union( | | |
| 18861 | [ | | |
| 18862 | Schema.Struct({ | | |
| 18863 | text: Schema.String, | | |
| 18864 | text_elements: Schema.optionalKey( | | |
| 18865 | Schema.Array(V2TurnCompletedNotification__TextElement).annotate({ | | |
| 18866 | description: "UI-defined spans within `text` used to render or persist special elements.", | | |
| 18867 | default: [], | | |
| 18868 | }), | | |
| 18869 | ), | | |
| 18870 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | | |
| 18871 | }).annotate({ title: "TextUserInput" }), | | |
| 18872 | Schema.Struct({ | | |
| 18873 | detail: Schema.optionalKey( | | |
| 18874 | Schema.Union([V2TurnCompletedNotification__ImageDetail, Schema.Null]), | | |
| 18875 | ), | | |
| 18876 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | | |
| 18877 | url: Schema.String, | | |
| 18878 | }).annotate({ title: "ImageUserInput" }), | | |
| 18879 | Schema.Struct({ | | |
| 18880 | detail: Schema.optionalKey( | | |
| 18881 | Schema.Union([V2TurnCompletedNotification__ImageDetail, Schema.Null]), | | |
| 18882 | ), | | |
| 18883 | path: Schema.String, | | |
| 18884 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), | | |
| 18885 | }).annotate({ title: "LocalImageUserInput" }), | | |
| 18886 | Schema.Struct({ | | |
| 18887 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), | | |
| 18888 | url: Schema.String, | | |
| 18889 | }).annotate({ title: "AudioUserInput" }), | | |
| 18890 | Schema.Struct({ | | |
| 18891 | path: Schema.String, | | |
| 18892 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), | | |
| 18893 | }).annotate({ title: "LocalAudioUserInput" }), | | |
| 18894 | Schema.Struct({ | | |
| 18895 | name: Schema.String, | | |
| 18896 | path: Schema.String, | | |
| 18897 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), | | |
| 18898 | }).annotate({ title: "SkillUserInput" }), | | |
| 18899 | Schema.Struct({ | | |
| 18900 | name: Schema.String, | | |
| 18901 | path: Schema.String, | | |
| 18902 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), | | |
| 18903 | }).annotate({ title: "MentionUserInput" }), | | |
| 18904 | ], | | |
| 18905 | { mode: "oneOf" }, | | |
| 18906 | ); | | |
| 18907 | | 21792 | |
| 18908 | export type V2TurnPlanUpdatedNotification__TurnPlanStep = { | 21793 | export type V2TurnStartedNotification__MemoryCitation = { |
| 18909 | readonly status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus; | 21794 | readonly entries: ReadonlyArray<V2TurnStartedNotification__MemoryCitationEntry>; |
| 18910 | readonly step: string; | 21795 | readonly threadIds: ReadonlyArray<string>; |
| 18911 | }; | 21796 | }; |
| 18912 | export const V2TurnPlanUpdatedNotification__TurnPlanStep = Schema.Struct({ | 21797 | export const V2TurnStartedNotification__MemoryCitation = Schema.Struct({ |
| 18913 | status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus, | 21798 | entries: Schema.Array(V2TurnStartedNotification__MemoryCitationEntry), |
| 18914 | step: Schema.String, | 21799 | threadIds: Schema.Array(Schema.String), |
| 18915 | }); | 21800 | }).annotate({ identifier: "V2TurnStartedNotification__MemoryCitation" }); |
| 18916 | | 21801 | |
| 18917 | export type V2TurnStartedNotification__CommandAction = | 21802 | export type V2TurnStartedNotification__CommandAction = |
| 18918 | | { | 21803 | | { |
| ... | @@ -18954,7 +21839,18 @@ export const V2TurnStartedNotification__CommandAction = Schema.Union( | ... | @@ -18954,7 +21839,18 @@ export const V2TurnStartedNotification__CommandAction = Schema.Union( |
| 18954 | }).annotate({ title: "UnknownCommandAction" }), | 21839 | }).annotate({ title: "UnknownCommandAction" }), |
| 18955 | ], | 21840 | ], |
| 18956 | { mode: "oneOf" }, | 21841 | { mode: "oneOf" }, |
| 18957 | ); | 21842 | ).annotate({ identifier: "V2TurnStartedNotification__CommandAction" }); |
| | 21843 | |
| | 21844 | export type V2TurnStartedNotification__FileUpdateChange = { |
| | 21845 | readonly diff: string; |
| | 21846 | readonly kind: V2TurnStartedNotification__PatchChangeKind; |
| | 21847 | readonly path: string; |
| | 21848 | }; |
| | 21849 | export const V2TurnStartedNotification__FileUpdateChange = Schema.Struct({ |
| | 21850 | diff: Schema.String, |
| | 21851 | kind: V2TurnStartedNotification__PatchChangeKind, |
| | 21852 | path: Schema.String, |
| | 21853 | }).annotate({ identifier: "V2TurnStartedNotification__FileUpdateChange" }); |
| 18958 | | 21854 | |
| 18959 | export type V2TurnStartedNotification__CollabAgentState = { | 21855 | export type V2TurnStartedNotification__CollabAgentState = { |
| 18960 | readonly message?: string | null; | 21856 | readonly message?: string | null; |
| ... | @@ -18963,18 +21859,88 @@ export type V2TurnStartedNotification__CollabAgentState = { | ... | @@ -18963,18 +21859,88 @@ export type V2TurnStartedNotification__CollabAgentState = { |
| 18963 | export const V2TurnStartedNotification__CollabAgentState = Schema.Struct({ | 21859 | export const V2TurnStartedNotification__CollabAgentState = Schema.Struct({ |
| 18964 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 21860 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 18965 | status: V2TurnStartedNotification__CollabAgentStatus, | 21861 | status: V2TurnStartedNotification__CollabAgentStatus, |
| 18966 | }); | 21862 | }).annotate({ identifier: "V2TurnStartedNotification__CollabAgentState" }); |
| 18967 | | 21863 | |
| 18968 | export type V2TurnStartedNotification__MemoryCitation = { | 21864 | export type V2TurnStartParams__Settings = { |
| 18969 | readonly entries: ReadonlyArray<V2TurnStartedNotification__MemoryCitationEntry>; | 21865 | readonly developer_instructions?: string | null; |
| 18970 | readonly threadIds: ReadonlyArray<string>; | 21866 | readonly model: string; |
| | 21867 | readonly reasoning_effort?: V2TurnStartParams__ReasoningEffort | null; |
| 18971 | }; | 21868 | }; |
| 18972 | export const V2TurnStartedNotification__MemoryCitation = Schema.Struct({ | 21869 | export const V2TurnStartParams__Settings = Schema.Struct({ |
| 18973 | entries: Schema.Array(V2TurnStartedNotification__MemoryCitationEntry), | 21870 | developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 18974 | threadIds: Schema.Array(Schema.String), | 21871 | model: Schema.String, |
| | 21872 | reasoning_effort: Schema.optionalKey( |
| | 21873 | Schema.Union([V2TurnStartParams__ReasoningEffort, Schema.Null]), |
| | 21874 | ), |
| | 21875 | }).annotate({ |
| | 21876 | description: "Settings for a collaboration mode.", |
| | 21877 | identifier: "V2TurnStartParams__Settings", |
| 18975 | }); | 21878 | }); |
| 18976 | | 21879 | |
| 18977 | export type V2TurnStartedNotification__CodexErrorInfo = | 21880 | export type V2TurnStartParams__TextElement = { |
| | 21881 | readonly byteRange: V2TurnStartParams__ByteRange; |
| | 21882 | readonly placeholder?: string | null; |
| | 21883 | }; |
| | 21884 | export const V2TurnStartParams__TextElement = Schema.Struct({ |
| | 21885 | byteRange: Schema.suspend( |
| | 21886 | (): Schema.Codec<V2TurnStartParams__ByteRange> => V2TurnStartParams__ByteRange, |
| | 21887 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), |
| | 21888 | placeholder: Schema.optionalKey( |
| | 21889 | Schema.Union([ |
| | 21890 | Schema.String.annotate({ |
| | 21891 | description: "Optional human-readable placeholder for the element, displayed in the UI.", |
| | 21892 | }), |
| | 21893 | Schema.Null, |
| | 21894 | ]), |
| | 21895 | ), |
| | 21896 | }).annotate({ identifier: "V2TurnStartParams__TextElement" }); |
| | 21897 | |
| | 21898 | export type V2TurnStartParams__SandboxPolicy = |
| | 21899 | | { readonly type: "dangerFullAccess" } |
| | 21900 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } |
| | 21901 | | { readonly networkAccess?: V2TurnStartParams__NetworkAccess; readonly type: "externalSandbox" } |
| | 21902 | | { |
| | 21903 | readonly excludeSlashTmp?: boolean; |
| | 21904 | readonly excludeTmpdirEnvVar?: boolean; |
| | 21905 | readonly networkAccess?: boolean; |
| | 21906 | readonly type: "workspaceWrite"; |
| | 21907 | readonly writableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>; |
| | 21908 | }; |
| | 21909 | export const V2TurnStartParams__SandboxPolicy = Schema.Union( |
| | 21910 | [ |
| | 21911 | Schema.Struct({ |
| | 21912 | type: Schema.Literal("dangerFullAccess").annotate({ |
| | 21913 | title: "DangerFullAccessSandboxPolicyType", |
| | 21914 | }), |
| | 21915 | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), |
| | 21916 | Schema.Struct({ |
| | 21917 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| | 21918 | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), |
| | 21919 | }).annotate({ title: "ReadOnlySandboxPolicy" }), |
| | 21920 | Schema.Struct({ |
| | 21921 | networkAccess: Schema.optionalKey( |
| | 21922 | Schema.suspend( |
| | 21923 | (): Schema.Codec<V2TurnStartParams__NetworkAccess> => V2TurnStartParams__NetworkAccess, |
| | 21924 | ).annotate({ default: "restricted" }), |
| | 21925 | ), |
| | 21926 | type: Schema.Literal("externalSandbox").annotate({ |
| | 21927 | title: "ExternalSandboxSandboxPolicyType", |
| | 21928 | }), |
| | 21929 | }).annotate({ title: "ExternalSandboxSandboxPolicy" }), |
| | 21930 | Schema.Struct({ |
| | 21931 | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| | 21932 | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| | 21933 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| | 21934 | type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }), |
| | 21935 | writableRoots: Schema.optionalKey( |
| | 21936 | Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }), |
| | 21937 | ), |
| | 21938 | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), |
| | 21939 | ], |
| | 21940 | { mode: "oneOf" }, |
| | 21941 | ).annotate({ identifier: "V2TurnStartParams__SandboxPolicy" }); |
| | 21942 | |
| | 21943 | export type V2TurnStartResponse__CodexErrorInfo = |
| 18978 | | "contextWindowExceeded" | 21944 | | "contextWindowExceeded" |
| 18979 | | "sessionBudgetExceeded" | 21945 | | "sessionBudgetExceeded" |
| 18980 | | "usageLimitExceeded" | 21946 | | "usageLimitExceeded" |
| ... | @@ -18992,10 +21958,10 @@ export type V2TurnStartedNotification__CodexErrorInfo = | ... | @@ -18992,10 +21958,10 @@ export type V2TurnStartedNotification__CodexErrorInfo = |
| 18992 | | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } } | 21958 | | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } } |
| 18993 | | { | 21959 | | { |
| 18994 | readonly activeTurnNotSteerable: { | 21960 | readonly activeTurnNotSteerable: { |
| 18995 | readonly turnKind: V2TurnStartedNotification__NonSteerableTurnKind; | 21961 | readonly turnKind: V2TurnStartResponse__NonSteerableTurnKind; |
| 18996 | }; | 21962 | }; |
| 18997 | }; | 21963 | }; |
| 18998 | export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union( | 21964 | export const V2TurnStartResponse__CodexErrorInfo = Schema.Union( |
| 18999 | [ | 21965 | [ |
| 19000 | Schema.Literals([ | 21966 | Schema.Literals([ |
| 19001 | "contextWindowExceeded", | 21967 | "contextWindowExceeded", |
| ... | @@ -19015,8 +21981,12 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union( | ... | @@ -19015,8 +21981,12 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union( |
| 19015 | httpStatusCode: Schema.optionalKey( | 21981 | httpStatusCode: Schema.optionalKey( |
| 19016 | Schema.Union([ | 21982 | Schema.Union([ |
| 19017 | Schema.Number.annotate({ format: "uint16" }) | 21983 | Schema.Number.annotate({ format: "uint16" }) |
| 19018 | .check(Schema.isInt()) | 21984 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 19019 | .check(Schema.isGreaterThanOrEqualTo(0)), | 21985 | .check( |
| | 21986 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 21987 | expected: "a value greater than or equal to 0", |
| | 21988 | }), |
| | 21989 | ), |
| 19020 | Schema.Null, | 21990 | Schema.Null, |
| 19021 | ]), | 21991 | ]), |
| 19022 | ), | 21992 | ), |
| ... | @@ -19027,8 +21997,12 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union( | ... | @@ -19027,8 +21997,12 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union( |
| 19027 | httpStatusCode: Schema.optionalKey( | 21997 | httpStatusCode: Schema.optionalKey( |
| 19028 | Schema.Union([ | 21998 | Schema.Union([ |
| 19029 | Schema.Number.annotate({ format: "uint16" }) | 21999 | Schema.Number.annotate({ format: "uint16" }) |
| 19030 | .check(Schema.isInt()) | 22000 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 19031 | .check(Schema.isGreaterThanOrEqualTo(0)), | 22001 | .check( |
| | 22002 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 22003 | expected: "a value greater than or equal to 0", |
| | 22004 | }), |
| | 22005 | ), |
| 19032 | Schema.Null, | 22006 | Schema.Null, |
| 19033 | ]), | 22007 | ]), |
| 19034 | ), | 22008 | ), |
| ... | @@ -19042,8 +22016,12 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union( | ... | @@ -19042,8 +22016,12 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union( |
| 19042 | httpStatusCode: Schema.optionalKey( | 22016 | httpStatusCode: Schema.optionalKey( |
| 19043 | Schema.Union([ | 22017 | Schema.Union([ |
| 19044 | Schema.Number.annotate({ format: "uint16" }) | 22018 | Schema.Number.annotate({ format: "uint16" }) |
| 19045 | .check(Schema.isInt()) | 22019 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 19046 | .check(Schema.isGreaterThanOrEqualTo(0)), | 22020 | .check( |
| | 22021 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 22022 | expected: "a value greater than or equal to 0", |
| | 22023 | }), |
| | 22024 | ), |
| 19047 | Schema.Null, | 22025 | Schema.Null, |
| 19048 | ]), | 22026 | ]), |
| 19049 | ), | 22027 | ), |
| ... | @@ -19058,8 +22036,12 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union( | ... | @@ -19058,8 +22036,12 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union( |
| 19058 | httpStatusCode: Schema.optionalKey( | 22036 | httpStatusCode: Schema.optionalKey( |
| 19059 | Schema.Union([ | 22037 | Schema.Union([ |
| 19060 | Schema.Number.annotate({ format: "uint16" }) | 22038 | Schema.Number.annotate({ format: "uint16" }) |
| 19061 | .check(Schema.isInt()) | 22039 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 19062 | .check(Schema.isGreaterThanOrEqualTo(0)), | 22040 | .check( |
| | 22041 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 22042 | expected: "a value greater than or equal to 0", |
| | 22043 | }), |
| | 22044 | ), |
| 19063 | Schema.Null, | 22045 | Schema.Null, |
| 19064 | ]), | 22046 | ]), |
| 19065 | ), | 22047 | ), |
| ... | @@ -19070,7 +22052,7 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union( | ... | @@ -19070,7 +22052,7 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union( |
| 19070 | }), | 22052 | }), |
| 19071 | Schema.Struct({ | 22053 | Schema.Struct({ |
| 19072 | activeTurnNotSteerable: Schema.Struct({ | 22054 | activeTurnNotSteerable: Schema.Struct({ |
| 19073 | turnKind: V2TurnStartedNotification__NonSteerableTurnKind, | 22055 | turnKind: V2TurnStartResponse__NonSteerableTurnKind, |
| 19074 | }), | 22056 | }), |
| 19075 | }).annotate({ | 22057 | }).annotate({ |
| 19076 | title: "ActiveTurnNotSteerableCodexErrorInfo", | 22058 | title: "ActiveTurnNotSteerableCodexErrorInfo", |
| ... | @@ -19082,220 +22064,49 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union( | ... | @@ -19082,220 +22064,49 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union( |
| 19082 | ).annotate({ | 22064 | ).annotate({ |
| 19083 | description: | 22065 | description: |
| 19084 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", | 22066 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", |
| | 22067 | identifier: "V2TurnStartResponse__CodexErrorInfo", |
| 19085 | }); | 22068 | }); |
| 19086 | | 22069 | |
| 19087 | export type V2TurnStartedNotification__FileUpdateChange = { | 22070 | export type V2TurnStartResponse__TextElement = { |
| 19088 | readonly diff: string; | 22071 | readonly byteRange: V2TurnStartResponse__ByteRange; |
| 19089 | readonly kind: V2TurnStartedNotification__PatchChangeKind; | 22072 | readonly placeholder?: string | null; |
| 19090 | readonly path: string; | | |
| 19091 | }; | 22073 | }; |
| 19092 | export const V2TurnStartedNotification__FileUpdateChange = Schema.Struct({ | 22074 | export const V2TurnStartResponse__TextElement = Schema.Struct({ |
| 19093 | diff: Schema.String, | 22075 | byteRange: Schema.suspend( |
| 19094 | kind: V2TurnStartedNotification__PatchChangeKind, | 22076 | (): Schema.Codec<V2TurnStartResponse__ByteRange> => V2TurnStartResponse__ByteRange, |
| 19095 | path: Schema.String, | 22077 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), |
| 19096 | }); | 22078 | placeholder: Schema.optionalKey( |
| | 22079 | Schema.Union([ |
| | 22080 | Schema.String.annotate({ |
| | 22081 | description: "Optional human-readable placeholder for the element, displayed in the UI.", |
| | 22082 | }), |
| | 22083 | Schema.Null, |
| | 22084 | ]), |
| | 22085 | ), |
| | 22086 | }).annotate({ identifier: "V2TurnStartResponse__TextElement" }); |
| 19097 | | 22087 | |
| 19098 | export type V2TurnStartedNotification__UserInput = | 22088 | export type V2TurnStartResponse__MemoryCitation = { |
| | 22089 | readonly entries: ReadonlyArray<V2TurnStartResponse__MemoryCitationEntry>; |
| | 22090 | readonly threadIds: ReadonlyArray<string>; |
| | 22091 | }; |
| | 22092 | export const V2TurnStartResponse__MemoryCitation = Schema.Struct({ |
| | 22093 | entries: Schema.Array(V2TurnStartResponse__MemoryCitationEntry), |
| | 22094 | threadIds: Schema.Array(Schema.String), |
| | 22095 | }).annotate({ identifier: "V2TurnStartResponse__MemoryCitation" }); |
| | 22096 | |
| | 22097 | export type V2TurnStartResponse__CommandAction = |
| 19099 | | { | 22098 | | { |
| 19100 | readonly text: string; | 22099 | readonly command: string; |
| 19101 | readonly text_elements?: ReadonlyArray<V2TurnStartedNotification__TextElement>; | 22100 | readonly name: string; |
| 19102 | readonly type: "text"; | 22101 | readonly path: V2TurnStartResponse__AbsolutePathBuf; |
| | 22102 | readonly type: "read"; |
| 19103 | } | 22103 | } |
| | 22104 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| 19104 | | { | 22105 | | { |
| 19105 | readonly detail?: V2TurnStartedNotification__ImageDetail | null; | 22106 | readonly command: string; |
| 19106 | readonly type: "image"; | 22107 | readonly path?: string | null; |
| 19107 | readonly url: string; | 22108 | readonly query?: string | null; |
| 19108 | } | 22109 | readonly type: "search"; |
| 19109 | | { | | |
| 19110 | readonly detail?: V2TurnStartedNotification__ImageDetail | null; | | |
| 19111 | readonly path: string; | | |
| 19112 | readonly type: "localImage"; | | |
| 19113 | } | | |
| 19114 | | { readonly type: "audio"; readonly url: string } | | |
| 19115 | | { readonly path: string; readonly type: "localAudio" } | | |
| 19116 | | { readonly name: string; readonly path: string; readonly type: "skill" } | | |
| 19117 | | { readonly name: string; readonly path: string; readonly type: "mention" }; | | |
| 19118 | export const V2TurnStartedNotification__UserInput = Schema.Union( | | |
| 19119 | [ | | |
| 19120 | Schema.Struct({ | | |
| 19121 | text: Schema.String, | | |
| 19122 | text_elements: Schema.optionalKey( | | |
| 19123 | Schema.Array(V2TurnStartedNotification__TextElement).annotate({ | | |
| 19124 | description: "UI-defined spans within `text` used to render or persist special elements.", | | |
| 19125 | default: [], | | |
| 19126 | }), | | |
| 19127 | ), | | |
| 19128 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | | |
| 19129 | }).annotate({ title: "TextUserInput" }), | | |
| 19130 | Schema.Struct({ | | |
| 19131 | detail: Schema.optionalKey( | | |
| 19132 | Schema.Union([V2TurnStartedNotification__ImageDetail, Schema.Null]), | | |
| 19133 | ), | | |
| 19134 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | | |
| 19135 | url: Schema.String, | | |
| 19136 | }).annotate({ title: "ImageUserInput" }), | | |
| 19137 | Schema.Struct({ | | |
| 19138 | detail: Schema.optionalKey( | | |
| 19139 | Schema.Union([V2TurnStartedNotification__ImageDetail, Schema.Null]), | | |
| 19140 | ), | | |
| 19141 | path: Schema.String, | | |
| 19142 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), | | |
| 19143 | }).annotate({ title: "LocalImageUserInput" }), | | |
| 19144 | Schema.Struct({ | | |
| 19145 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), | | |
| 19146 | url: Schema.String, | | |
| 19147 | }).annotate({ title: "AudioUserInput" }), | | |
| 19148 | Schema.Struct({ | | |
| 19149 | path: Schema.String, | | |
| 19150 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), | | |
| 19151 | }).annotate({ title: "LocalAudioUserInput" }), | | |
| 19152 | Schema.Struct({ | | |
| 19153 | name: Schema.String, | | |
| 19154 | path: Schema.String, | | |
| 19155 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), | | |
| 19156 | }).annotate({ title: "SkillUserInput" }), | | |
| 19157 | Schema.Struct({ | | |
| 19158 | name: Schema.String, | | |
| 19159 | path: Schema.String, | | |
| 19160 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), | | |
| 19161 | }).annotate({ title: "MentionUserInput" }), | | |
| 19162 | ], | | |
| 19163 | { mode: "oneOf" }, | | |
| 19164 | ); | | |
| 19165 | | | |
| 19166 | export type V2TurnStartParams__SandboxPolicy = | | |
| 19167 | | { readonly type: "dangerFullAccess" } | | |
| 19168 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } | | |
| 19169 | | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" } | | |
| 19170 | | { | | |
| 19171 | readonly excludeSlashTmp?: boolean; | | |
| 19172 | readonly excludeTmpdirEnvVar?: boolean; | | |
| 19173 | readonly networkAccess?: boolean; | | |
| 19174 | readonly type: "workspaceWrite"; | | |
| 19175 | readonly writableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>; | | |
| 19176 | }; | | |
| 19177 | export const V2TurnStartParams__SandboxPolicy = Schema.Union( | | |
| 19178 | [ | | |
| 19179 | Schema.Struct({ | | |
| 19180 | type: Schema.Literal("dangerFullAccess").annotate({ | | |
| 19181 | title: "DangerFullAccessSandboxPolicyType", | | |
| 19182 | }), | | |
| 19183 | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), | | |
| 19184 | Schema.Struct({ | | |
| 19185 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 19186 | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), | | |
| 19187 | }).annotate({ title: "ReadOnlySandboxPolicy" }), | | |
| 19188 | Schema.Struct({ | | |
| 19189 | networkAccess: Schema.optionalKey( | | |
| 19190 | Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }), | | |
| 19191 | ), | | |
| 19192 | type: Schema.Literal("externalSandbox").annotate({ | | |
| 19193 | title: "ExternalSandboxSandboxPolicyType", | | |
| 19194 | }), | | |
| 19195 | }).annotate({ title: "ExternalSandboxSandboxPolicy" }), | | |
| 19196 | Schema.Struct({ | | |
| 19197 | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 19198 | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 19199 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 19200 | type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }), | | |
| 19201 | writableRoots: Schema.optionalKey( | | |
| 19202 | Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }), | | |
| 19203 | ), | | |
| 19204 | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), | | |
| 19205 | ], | | |
| 19206 | { mode: "oneOf" }, | | |
| 19207 | ); | | |
| 19208 | | | |
| 19209 | export type V2TurnStartParams__Settings = { | | |
| 19210 | readonly developer_instructions?: string | null; | | |
| 19211 | readonly model: string; | | |
| 19212 | readonly reasoning_effort?: V2TurnStartParams__ReasoningEffort | null; | | |
| 19213 | }; | | |
| 19214 | export const V2TurnStartParams__Settings = Schema.Struct({ | | |
| 19215 | developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 19216 | model: Schema.String, | | |
| 19217 | reasoning_effort: Schema.optionalKey( | | |
| 19218 | Schema.Union([V2TurnStartParams__ReasoningEffort, Schema.Null]), | | |
| 19219 | ), | | |
| 19220 | }).annotate({ description: "Settings for a collaboration mode." }); | | |
| 19221 | | | |
| 19222 | export type V2TurnStartParams__UserInput = | | |
| 19223 | | { | | |
| 19224 | readonly text: string; | | |
| 19225 | readonly text_elements?: ReadonlyArray<V2TurnStartParams__TextElement>; | | |
| 19226 | readonly type: "text"; | | |
| 19227 | } | | |
| 19228 | | { | | |
| 19229 | readonly detail?: V2TurnStartParams__ImageDetail | null; | | |
| 19230 | readonly type: "image"; | | |
| 19231 | readonly url: string; | | |
| 19232 | } | | |
| 19233 | | { | | |
| 19234 | readonly detail?: V2TurnStartParams__ImageDetail | null; | | |
| 19235 | readonly path: string; | | |
| 19236 | readonly type: "localImage"; | | |
| 19237 | } | | |
| 19238 | | { readonly type: "audio"; readonly url: string } | | |
| 19239 | | { readonly path: string; readonly type: "localAudio" } | | |
| 19240 | | { readonly name: string; readonly path: string; readonly type: "skill" } | | |
| 19241 | | { readonly name: string; readonly path: string; readonly type: "mention" }; | | |
| 19242 | export const V2TurnStartParams__UserInput = Schema.Union( | | |
| 19243 | [ | | |
| 19244 | Schema.Struct({ | | |
| 19245 | text: Schema.String, | | |
| 19246 | text_elements: Schema.optionalKey( | | |
| 19247 | Schema.Array(V2TurnStartParams__TextElement).annotate({ | | |
| 19248 | description: "UI-defined spans within `text` used to render or persist special elements.", | | |
| 19249 | default: [], | | |
| 19250 | }), | | |
| 19251 | ), | | |
| 19252 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | | |
| 19253 | }).annotate({ title: "TextUserInput" }), | | |
| 19254 | Schema.Struct({ | | |
| 19255 | detail: Schema.optionalKey(Schema.Union([V2TurnStartParams__ImageDetail, Schema.Null])), | | |
| 19256 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | | |
| 19257 | url: Schema.String, | | |
| 19258 | }).annotate({ title: "ImageUserInput" }), | | |
| 19259 | Schema.Struct({ | | |
| 19260 | detail: Schema.optionalKey(Schema.Union([V2TurnStartParams__ImageDetail, Schema.Null])), | | |
| 19261 | path: Schema.String, | | |
| 19262 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), | | |
| 19263 | }).annotate({ title: "LocalImageUserInput" }), | | |
| 19264 | Schema.Struct({ | | |
| 19265 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), | | |
| 19266 | url: Schema.String, | | |
| 19267 | }).annotate({ title: "AudioUserInput" }), | | |
| 19268 | Schema.Struct({ | | |
| 19269 | path: Schema.String, | | |
| 19270 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), | | |
| 19271 | }).annotate({ title: "LocalAudioUserInput" }), | | |
| 19272 | Schema.Struct({ | | |
| 19273 | name: Schema.String, | | |
| 19274 | path: Schema.String, | | |
| 19275 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), | | |
| 19276 | }).annotate({ title: "SkillUserInput" }), | | |
| 19277 | Schema.Struct({ | | |
| 19278 | name: Schema.String, | | |
| 19279 | path: Schema.String, | | |
| 19280 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), | | |
| 19281 | }).annotate({ title: "MentionUserInput" }), | | |
| 19282 | ], | | |
| 19283 | { mode: "oneOf" }, | | |
| 19284 | ); | | |
| 19285 | | | |
| 19286 | export type V2TurnStartResponse__CommandAction = | | |
| 19287 | | { | | |
| 19288 | readonly command: string; | | |
| 19289 | readonly name: string; | | |
| 19290 | readonly path: V2TurnStartResponse__AbsolutePathBuf; | | |
| 19291 | readonly type: "read"; | | |
| 19292 | } | | |
| 19293 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } | | |
| 19294 | | { | | |
| 19295 | readonly command: string; | | |
| 19296 | readonly path?: string | null; | | |
| 19297 | readonly query?: string | null; | | |
| 19298 | readonly type: "search"; | | |
| 19299 | } | 22110 | } |
| 19300 | | { readonly command: string; readonly type: "unknown" }; | 22111 | | { readonly command: string; readonly type: "unknown" }; |
| 19301 | export const V2TurnStartResponse__CommandAction = Schema.Union( | 22112 | export const V2TurnStartResponse__CommandAction = Schema.Union( |
| ... | @@ -19323,7 +22134,18 @@ export const V2TurnStartResponse__CommandAction = Schema.Union( | ... | @@ -19323,7 +22134,18 @@ export const V2TurnStartResponse__CommandAction = Schema.Union( |
| 19323 | }).annotate({ title: "UnknownCommandAction" }), | 22134 | }).annotate({ title: "UnknownCommandAction" }), |
| 19324 | ], | 22135 | ], |
| 19325 | { mode: "oneOf" }, | 22136 | { mode: "oneOf" }, |
| 19326 | ); | 22137 | ).annotate({ identifier: "V2TurnStartResponse__CommandAction" }); |
| | 22138 | |
| | 22139 | export type V2TurnStartResponse__FileUpdateChange = { |
| | 22140 | readonly diff: string; |
| | 22141 | readonly kind: V2TurnStartResponse__PatchChangeKind; |
| | 22142 | readonly path: string; |
| | 22143 | }; |
| | 22144 | export const V2TurnStartResponse__FileUpdateChange = Schema.Struct({ |
| | 22145 | diff: Schema.String, |
| | 22146 | kind: V2TurnStartResponse__PatchChangeKind, |
| | 22147 | path: Schema.String, |
| | 22148 | }).annotate({ identifier: "V2TurnStartResponse__FileUpdateChange" }); |
| 19327 | | 22149 | |
| 19328 | export type V2TurnStartResponse__CollabAgentState = { | 22150 | export type V2TurnStartResponse__CollabAgentState = { |
| 19329 | readonly message?: string | null; | 22151 | readonly message?: string | null; |
| ... | @@ -19332,215 +22154,128 @@ export type V2TurnStartResponse__CollabAgentState = { | ... | @@ -19332,215 +22154,128 @@ export type V2TurnStartResponse__CollabAgentState = { |
| 19332 | export const V2TurnStartResponse__CollabAgentState = Schema.Struct({ | 22154 | export const V2TurnStartResponse__CollabAgentState = Schema.Struct({ |
| 19333 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 22155 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 19334 | status: V2TurnStartResponse__CollabAgentStatus, | 22156 | status: V2TurnStartResponse__CollabAgentStatus, |
| 19335 | }); | 22157 | }).annotate({ identifier: "V2TurnStartResponse__CollabAgentState" }); |
| 19336 | | 22158 | |
| 19337 | export type V2TurnStartResponse__MemoryCitation = { | 22159 | export type V2TurnSteerParams__TextElement = { |
| 19338 | readonly entries: ReadonlyArray<V2TurnStartResponse__MemoryCitationEntry>; | 22160 | readonly byteRange: V2TurnSteerParams__ByteRange; |
| 19339 | readonly threadIds: ReadonlyArray<string>; | 22161 | readonly placeholder?: string | null; |
| 19340 | }; | 22162 | }; |
| 19341 | export const V2TurnStartResponse__MemoryCitation = Schema.Struct({ | 22163 | export const V2TurnSteerParams__TextElement = Schema.Struct({ |
| 19342 | entries: Schema.Array(V2TurnStartResponse__MemoryCitationEntry), | 22164 | byteRange: Schema.suspend( |
| 19343 | threadIds: Schema.Array(Schema.String), | 22165 | (): Schema.Codec<V2TurnSteerParams__ByteRange> => V2TurnSteerParams__ByteRange, |
| 19344 | }); | 22166 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), |
| | 22167 | placeholder: Schema.optionalKey( |
| | 22168 | Schema.Union([ |
| | 22169 | Schema.String.annotate({ |
| | 22170 | description: "Optional human-readable placeholder for the element, displayed in the UI.", |
| | 22171 | }), |
| | 22172 | Schema.Null, |
| | 22173 | ]), |
| | 22174 | ), |
| | 22175 | }).annotate({ identifier: "V2TurnSteerParams__TextElement" }); |
| 19345 | | 22176 | |
| 19346 | export type V2TurnStartResponse__CodexErrorInfo = | 22177 | export type ApplyPatchApprovalResponse__ReviewDecision = |
| 19347 | | "contextWindowExceeded" | 22178 | | "approved" |
| 19348 | | "sessionBudgetExceeded" | | |
| 19349 | | "usageLimitExceeded" | | |
| 19350 | | "serverOverloaded" | | |
| 19351 | | "cyberPolicy" | | |
| 19352 | | "internalServerError" | | |
| 19353 | | "unauthorized" | | |
| 19354 | | "badRequest" | | |
| 19355 | | "threadRollbackFailed" | | |
| 19356 | | "sandboxError" | | |
| 19357 | | "other" | | |
| 19358 | | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } } | | |
| 19359 | | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } } | | |
| 19360 | | { readonly responseStreamDisconnected: { readonly httpStatusCode?: number | null } } | | |
| 19361 | | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } } | | |
| 19362 | | { | 22179 | | { |
| 19363 | readonly activeTurnNotSteerable: { | 22180 | readonly approved_execpolicy_amendment: { |
| 19364 | readonly turnKind: V2TurnStartResponse__NonSteerableTurnKind; | 22181 | readonly proposed_execpolicy_amendment: ReadonlyArray<string>; |
| 19365 | }; | 22182 | }; |
| 19366 | }; | 22183 | } |
| 19367 | export const V2TurnStartResponse__CodexErrorInfo = Schema.Union( | 22184 | | "approved_for_session" |
| | 22185 | | { |
| | 22186 | readonly network_policy_amendment: { |
| | 22187 | readonly network_policy_amendment: ApplyPatchApprovalResponse__NetworkPolicyAmendment; |
| | 22188 | }; |
| | 22189 | } |
| | 22190 | | "denied" |
| | 22191 | | "timed_out" |
| | 22192 | | "abort"; |
| | 22193 | export const ApplyPatchApprovalResponse__ReviewDecision = Schema.Union( |
| 19368 | [ | 22194 | [ |
| 19369 | Schema.Literals([ | 22195 | Schema.Literal("approved").annotate({ |
| 19370 | "contextWindowExceeded", | 22196 | description: "User has approved this command and the agent should execute it.", |
| 19371 | "sessionBudgetExceeded", | | |
| 19372 | "usageLimitExceeded", | | |
| 19373 | "serverOverloaded", | | |
| 19374 | "cyberPolicy", | | |
| 19375 | "internalServerError", | | |
| 19376 | "unauthorized", | | |
| 19377 | "badRequest", | | |
| 19378 | "threadRollbackFailed", | | |
| 19379 | "sandboxError", | | |
| 19380 | "other", | | |
| 19381 | ]), | | |
| 19382 | Schema.Struct({ | | |
| 19383 | httpConnectionFailed: Schema.Struct({ | | |
| 19384 | httpStatusCode: Schema.optionalKey( | | |
| 19385 | Schema.Union([ | | |
| 19386 | Schema.Number.annotate({ format: "uint16" }) | | |
| 19387 | .check(Schema.isInt()) | | |
| 19388 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 19389 | Schema.Null, | | |
| 19390 | ]), | | |
| 19391 | ), | | |
| 19392 | }), | | |
| 19393 | }).annotate({ title: "HttpConnectionFailedCodexErrorInfo" }), | | |
| 19394 | Schema.Struct({ | | |
| 19395 | responseStreamConnectionFailed: Schema.Struct({ | | |
| 19396 | httpStatusCode: Schema.optionalKey( | | |
| 19397 | Schema.Union([ | | |
| 19398 | Schema.Number.annotate({ format: "uint16" }) | | |
| 19399 | .check(Schema.isInt()) | | |
| 19400 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 19401 | Schema.Null, | | |
| 19402 | ]), | | |
| 19403 | ), | | |
| 19404 | }), | | |
| 19405 | }).annotate({ | | |
| 19406 | title: "ResponseStreamConnectionFailedCodexErrorInfo", | | |
| 19407 | description: "Failed to connect to the response SSE stream.", | | |
| 19408 | }), | 22197 | }), |
| 19409 | Schema.Struct({ | 22198 | Schema.Struct({ |
| 19410 | responseStreamDisconnected: Schema.Struct({ | 22199 | approved_execpolicy_amendment: Schema.Struct({ |
| 19411 | httpStatusCode: Schema.optionalKey( | 22200 | proposed_execpolicy_amendment: Schema.Array(Schema.String), |
| 19412 | Schema.Union([ | | |
| 19413 | Schema.Number.annotate({ format: "uint16" }) | | |
| 19414 | .check(Schema.isInt()) | | |
| 19415 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 19416 | Schema.Null, | | |
| 19417 | ]), | | |
| 19418 | ), | | |
| 19419 | }), | 22201 | }), |
| 19420 | }).annotate({ | 22202 | }).annotate({ |
| 19421 | title: "ResponseStreamDisconnectedCodexErrorInfo", | 22203 | title: "ApprovedExecpolicyAmendmentReviewDecision", |
| 19422 | description: | 22204 | description: |
| 19423 | "The response SSE stream disconnected in the middle of a turn before completion.", | 22205 | "User has approved this command and wants to apply the proposed execpolicy amendment so future matching commands are permitted.", |
| 19424 | }), | 22206 | }), |
| 19425 | Schema.Struct({ | 22207 | Schema.Literal("approved_for_session").annotate({ |
| 19426 | responseTooManyFailedAttempts: Schema.Struct({ | 22208 | description: |
| 19427 | httpStatusCode: Schema.optionalKey( | 22209 | "User has approved this request and wants future prompts in the same session-scoped approval cache to be automatically approved for the remainder of the session.", |
| 19428 | Schema.Union([ | | |
| 19429 | Schema.Number.annotate({ format: "uint16" }) | | |
| 19430 | .check(Schema.isInt()) | | |
| 19431 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 19432 | Schema.Null, | | |
| 19433 | ]), | | |
| 19434 | ), | | |
| 19435 | }), | | |
| 19436 | }).annotate({ | | |
| 19437 | title: "ResponseTooManyFailedAttemptsCodexErrorInfo", | | |
| 19438 | description: "Reached the retry limit for responses.", | | |
| 19439 | }), | 22210 | }), |
| 19440 | Schema.Struct({ | 22211 | Schema.Struct({ |
| 19441 | activeTurnNotSteerable: Schema.Struct({ | 22212 | network_policy_amendment: Schema.Struct({ |
| 19442 | turnKind: V2TurnStartResponse__NonSteerableTurnKind, | 22213 | network_policy_amendment: ApplyPatchApprovalResponse__NetworkPolicyAmendment, |
| 19443 | }), | 22214 | }), |
| 19444 | }).annotate({ | 22215 | }).annotate({ |
| 19445 | title: "ActiveTurnNotSteerableCodexErrorInfo", | 22216 | title: "NetworkPolicyAmendmentReviewDecision", |
| 19446 | description: | 22217 | description: |
| 19447 | "Returned when `turn/start` or `turn/steer` is submitted while the current active turn cannot accept same-turn steering, for example `/review` or manual `/compact`.", | 22218 | "User chose to persist a network policy rule (allow/deny) for future requests to the same host.", |
| | 22219 | }), |
| | 22220 | Schema.Literal("denied").annotate({ |
| | 22221 | description: |
| | 22222 | "User has denied this command and the agent should not execute it, but it should continue the session and try something else.", |
| | 22223 | }), |
| | 22224 | Schema.Literal("timed_out").annotate({ |
| | 22225 | description: "Automatic approval review timed out before reaching a decision.", |
| | 22226 | }), |
| | 22227 | Schema.Literal("abort").annotate({ |
| | 22228 | description: |
| | 22229 | "User has denied this command and the agent should not do anything until the user's next command.", |
| 19448 | }), | 22230 | }), |
| 19449 | ], | 22231 | ], |
| 19450 | { mode: "oneOf" }, | 22232 | { mode: "oneOf" }, |
| 19451 | ).annotate({ | 22233 | ).annotate({ |
| 19452 | description: | 22234 | description: "User's decision in response to an ExecApprovalRequest.", |
| 19453 | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", | 22235 | identifier: "ApplyPatchApprovalResponse__ReviewDecision", |
| 19454 | }); | 22236 | }); |
| 19455 | | 22237 | |
| 19456 | export type V2TurnStartResponse__FileUpdateChange = { | 22238 | export type ClientRequest__PluginShareSaveParams = { |
| 19457 | readonly diff: string; | 22239 | readonly discoverability?: ClientRequest__PluginShareDiscoverability | null; |
| 19458 | readonly kind: V2TurnStartResponse__PatchChangeKind; | 22240 | readonly pluginPath: ClientRequest__AbsolutePathBuf; |
| 19459 | readonly path: string; | 22241 | readonly remotePluginId?: string | null; |
| | 22242 | readonly shareTargets?: ReadonlyArray<ClientRequest__PluginShareTarget> | null; |
| 19460 | }; | 22243 | }; |
| 19461 | export const V2TurnStartResponse__FileUpdateChange = Schema.Struct({ | 22244 | export const ClientRequest__PluginShareSaveParams = Schema.Struct({ |
| 19462 | diff: Schema.String, | 22245 | discoverability: Schema.optionalKey( |
| 19463 | kind: V2TurnStartResponse__PatchChangeKind, | 22246 | Schema.Union([ClientRequest__PluginShareDiscoverability, Schema.Null]), |
| 19464 | path: Schema.String, | 22247 | ), |
| 19465 | }); | 22248 | pluginPath: ClientRequest__AbsolutePathBuf, |
| | 22249 | remotePluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 22250 | shareTargets: Schema.optionalKey( |
| | 22251 | Schema.Union([Schema.Array(ClientRequest__PluginShareTarget), Schema.Null]), |
| | 22252 | ), |
| | 22253 | }).annotate({ identifier: "ClientRequest__PluginShareSaveParams" }); |
| 19466 | | 22254 | |
| 19467 | export type V2TurnStartResponse__UserInput = | 22255 | export type ClientRequest__PluginShareUpdateTargetsParams = { |
| 19468 | | { | 22256 | readonly discoverability: ClientRequest__PluginShareUpdateDiscoverability; |
| 19469 | readonly text: string; | 22257 | readonly remotePluginId: string; |
| 19470 | readonly text_elements?: ReadonlyArray<V2TurnStartResponse__TextElement>; | 22258 | readonly shareTargets: ReadonlyArray<ClientRequest__PluginShareTarget>; |
| 19471 | readonly type: "text"; | 22259 | }; |
| 19472 | } | 22260 | export const ClientRequest__PluginShareUpdateTargetsParams = Schema.Struct({ |
| 19473 | | { | 22261 | discoverability: ClientRequest__PluginShareUpdateDiscoverability, |
| 19474 | readonly detail?: V2TurnStartResponse__ImageDetail | null; | 22262 | remotePluginId: Schema.String, |
| 19475 | readonly type: "image"; | 22263 | shareTargets: Schema.Array(ClientRequest__PluginShareTarget), |
| 19476 | readonly url: string; | 22264 | }).annotate({ identifier: "ClientRequest__PluginShareUpdateTargetsParams" }); |
| 19477 | } | | |
| 19478 | | { | | |
| 19479 | readonly detail?: V2TurnStartResponse__ImageDetail | null; | | |
| 19480 | readonly path: string; | | |
| 19481 | readonly type: "localImage"; | | |
| 19482 | } | | |
| 19483 | | { readonly type: "audio"; readonly url: string } | | |
| 19484 | | { readonly path: string; readonly type: "localAudio" } | | |
| 19485 | | { readonly name: string; readonly path: string; readonly type: "skill" } | | |
| 19486 | | { readonly name: string; readonly path: string; readonly type: "mention" }; | | |
| 19487 | export const V2TurnStartResponse__UserInput = Schema.Union( | | |
| 19488 | [ | | |
| 19489 | Schema.Struct({ | | |
| 19490 | text: Schema.String, | | |
| 19491 | text_elements: Schema.optionalKey( | | |
| 19492 | Schema.Array(V2TurnStartResponse__TextElement).annotate({ | | |
| 19493 | description: "UI-defined spans within `text` used to render or persist special elements.", | | |
| 19494 | default: [], | | |
| 19495 | }), | | |
| 19496 | ), | | |
| 19497 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | | |
| 19498 | }).annotate({ title: "TextUserInput" }), | | |
| 19499 | Schema.Struct({ | | |
| 19500 | detail: Schema.optionalKey(Schema.Union([V2TurnStartResponse__ImageDetail, Schema.Null])), | | |
| 19501 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | | |
| 19502 | url: Schema.String, | | |
| 19503 | }).annotate({ title: "ImageUserInput" }), | | |
| 19504 | Schema.Struct({ | | |
| 19505 | detail: Schema.optionalKey(Schema.Union([V2TurnStartResponse__ImageDetail, Schema.Null])), | | |
| 19506 | path: Schema.String, | | |
| 19507 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), | | |
| 19508 | }).annotate({ title: "LocalImageUserInput" }), | | |
| 19509 | Schema.Struct({ | | |
| 19510 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), | | |
| 19511 | url: Schema.String, | | |
| 19512 | }).annotate({ title: "AudioUserInput" }), | | |
| 19513 | Schema.Struct({ | | |
| 19514 | path: Schema.String, | | |
| 19515 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), | | |
| 19516 | }).annotate({ title: "LocalAudioUserInput" }), | | |
| 19517 | Schema.Struct({ | | |
| 19518 | name: Schema.String, | | |
| 19519 | path: Schema.String, | | |
| 19520 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), | | |
| 19521 | }).annotate({ title: "SkillUserInput" }), | | |
| 19522 | Schema.Struct({ | | |
| 19523 | name: Schema.String, | | |
| 19524 | path: Schema.String, | | |
| 19525 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), | | |
| 19526 | }).annotate({ title: "MentionUserInput" }), | | |
| 19527 | ], | | |
| 19528 | { mode: "oneOf" }, | | |
| 19529 | ); | | |
| 19530 | | 22265 | |
| 19531 | export type V2TurnSteerParams__UserInput = | 22266 | export type ClientRequest__UserInput = |
| 19532 | | { | 22267 | | { |
| 19533 | readonly text: string; | 22268 | readonly text: string; |
| 19534 | readonly text_elements?: ReadonlyArray<V2TurnSteerParams__TextElement>; | 22269 | readonly text_elements?: ReadonlyArray<ClientRequest__TextElement>; |
| 19535 | readonly type: "text"; | 22270 | readonly type: "text"; |
| 19536 | } | 22271 | } |
| 19537 | | { | 22272 | | { |
| 19538 | readonly detail?: V2TurnSteerParams__ImageDetail | null; | 22273 | readonly detail?: ClientRequest__ImageDetail | null; |
| 19539 | readonly type: "image"; | 22274 | readonly type: "image"; |
| 19540 | readonly url: string; | 22275 | readonly url: string; |
| 19541 | } | 22276 | } |
| 19542 | | { | 22277 | | { |
| 19543 | readonly detail?: V2TurnSteerParams__ImageDetail | null; | 22278 | readonly detail?: ClientRequest__ImageDetail | null; |
| 19544 | readonly path: string; | 22279 | readonly path: string; |
| 19545 | readonly type: "localImage"; | 22280 | readonly type: "localImage"; |
| 19546 | } | 22281 | } |
| ... | @@ -19548,12 +22283,12 @@ export type V2TurnSteerParams__UserInput = | ... | @@ -19548,12 +22283,12 @@ export type V2TurnSteerParams__UserInput = |
| 19548 | | { readonly path: string; readonly type: "localAudio" } | 22283 | | { readonly path: string; readonly type: "localAudio" } |
| 19549 | | { readonly name: string; readonly path: string; readonly type: "skill" } | 22284 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| 19550 | | { readonly name: string; readonly path: string; readonly type: "mention" }; | 22285 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| 19551 | export const V2TurnSteerParams__UserInput = Schema.Union( | 22286 | export const ClientRequest__UserInput = Schema.Union( |
| 19552 | [ | 22287 | [ |
| 19553 | Schema.Struct({ | 22288 | Schema.Struct({ |
| 19554 | text: Schema.String, | 22289 | text: Schema.String, |
| 19555 | text_elements: Schema.optionalKey( | 22290 | text_elements: Schema.optionalKey( |
| 19556 | Schema.Array(V2TurnSteerParams__TextElement).annotate({ | 22291 | Schema.Array(ClientRequest__TextElement).annotate({ |
| 19557 | description: "UI-defined spans within `text` used to render or persist special elements.", | 22292 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| 19558 | default: [], | 22293 | default: [], |
| 19559 | }), | 22294 | }), |
| ... | @@ -19561,12 +22296,12 @@ export const V2TurnSteerParams__UserInput = Schema.Union( | ... | @@ -19561,12 +22296,12 @@ export const V2TurnSteerParams__UserInput = Schema.Union( |
| 19561 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | 22296 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 19562 | }).annotate({ title: "TextUserInput" }), | 22297 | }).annotate({ title: "TextUserInput" }), |
| 19563 | Schema.Struct({ | 22298 | Schema.Struct({ |
| 19564 | detail: Schema.optionalKey(Schema.Union([V2TurnSteerParams__ImageDetail, Schema.Null])), | 22299 | detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])), |
| 19565 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | 22300 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| 19566 | url: Schema.String, | 22301 | url: Schema.String, |
| 19567 | }).annotate({ title: "ImageUserInput" }), | 22302 | }).annotate({ title: "ImageUserInput" }), |
| 19568 | Schema.Struct({ | 22303 | Schema.Struct({ |
| 19569 | detail: Schema.optionalKey(Schema.Union([V2TurnSteerParams__ImageDetail, Schema.Null])), | 22304 | detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])), |
| 19570 | path: Schema.String, | 22305 | path: Schema.String, |
| 19571 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), | 22306 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| 19572 | }).annotate({ title: "LocalImageUserInput" }), | 22307 | }).annotate({ title: "LocalImageUserInput" }), |
| ... | @@ -19590,65 +22325,15 @@ export const V2TurnSteerParams__UserInput = Schema.Union( | ... | @@ -19590,65 +22325,15 @@ export const V2TurnSteerParams__UserInput = Schema.Union( |
| 19590 | }).annotate({ title: "MentionUserInput" }), | 22325 | }).annotate({ title: "MentionUserInput" }), |
| 19591 | ], | 22326 | ], |
| 19592 | { mode: "oneOf" }, | 22327 | { mode: "oneOf" }, |
| 19593 | ); | 22328 | ).annotate({ identifier: "ClientRequest__UserInput" }); |
| 19594 | | 22329 | |
| 19595 | export type ApplyPatchApprovalResponse__ReviewDecision = | 22330 | export type ClientRequest__FunctionCallOutputBody = |
| 19596 | | "approved" | 22331 | | string |
| 19597 | | { | 22332 | | ReadonlyArray<ClientRequest__FunctionCallOutputContentItem>; |
| 19598 | readonly approved_execpolicy_amendment: { | 22333 | export const ClientRequest__FunctionCallOutputBody = Schema.Union([ |
| 19599 | readonly proposed_execpolicy_amendment: ReadonlyArray<string>; | 22334 | Schema.String, |
| 19600 | }; | 22335 | Schema.Array(ClientRequest__FunctionCallOutputContentItem), |
| 19601 | } | 22336 | ]).annotate({ identifier: "ClientRequest__FunctionCallOutputBody" }); |
| 19602 | | "approved_for_session" | | |
| 19603 | | { | | |
| 19604 | readonly network_policy_amendment: { | | |
| 19605 | readonly network_policy_amendment: ApplyPatchApprovalResponse__NetworkPolicyAmendment; | | |
| 19606 | }; | | |
| 19607 | } | | |
| 19608 | | "denied" | | |
| 19609 | | "timed_out" | | |
| 19610 | | "abort"; | | |
| 19611 | export const ApplyPatchApprovalResponse__ReviewDecision = Schema.Union( | | |
| 19612 | [ | | |
| 19613 | Schema.Literal("approved").annotate({ | | |
| 19614 | description: "User has approved this command and the agent should execute it.", | | |
| 19615 | }), | | |
| 19616 | Schema.Struct({ | | |
| 19617 | approved_execpolicy_amendment: Schema.Struct({ | | |
| 19618 | proposed_execpolicy_amendment: Schema.Array(Schema.String), | | |
| 19619 | }), | | |
| 19620 | }).annotate({ | | |
| 19621 | title: "ApprovedExecpolicyAmendmentReviewDecision", | | |
| 19622 | description: | | |
| 19623 | "User has approved this command and wants to apply the proposed execpolicy amendment so future matching commands are permitted.", | | |
| 19624 | }), | | |
| 19625 | Schema.Literal("approved_for_session").annotate({ | | |
| 19626 | description: | | |
| 19627 | "User has approved this request and wants future prompts in the same session-scoped approval cache to be automatically approved for the remainder of the session.", | | |
| 19628 | }), | | |
| 19629 | Schema.Struct({ | | |
| 19630 | network_policy_amendment: Schema.Struct({ | | |
| 19631 | network_policy_amendment: ApplyPatchApprovalResponse__NetworkPolicyAmendment, | | |
| 19632 | }), | | |
| 19633 | }).annotate({ | | |
| 19634 | title: "NetworkPolicyAmendmentReviewDecision", | | |
| 19635 | description: | | |
| 19636 | "User chose to persist a network policy rule (allow/deny) for future requests to the same host.", | | |
| 19637 | }), | | |
| 19638 | Schema.Literal("denied").annotate({ | | |
| 19639 | description: | | |
| 19640 | "User has denied this command and the agent should not execute it, but it should continue the session and try something else.", | | |
| 19641 | }), | | |
| 19642 | Schema.Literal("timed_out").annotate({ | | |
| 19643 | description: "Automatic approval review timed out before reaching a decision.", | | |
| 19644 | }), | | |
| 19645 | Schema.Literal("abort").annotate({ | | |
| 19646 | description: | | |
| 19647 | "User has denied this command and the agent should not do anything until the user's next command.", | | |
| 19648 | }), | | |
| 19649 | ], | | |
| 19650 | { mode: "oneOf" }, | | |
| 19651 | ).annotate({ description: "User's decision in response to an ExecApprovalRequest." }); | | |
| 19652 | | 22337 | |
| 19653 | export type ClientRequest__CommandExecParams = { | 22338 | export type ClientRequest__CommandExecParams = { |
| 19654 | readonly command: ReadonlyArray<string>; | 22339 | readonly command: ReadonlyArray<string>; |
| ... | @@ -19705,8 +22390,12 @@ export const ClientRequest__CommandExecParams = Schema.Struct({ | ... | @@ -19705,8 +22390,12 @@ export const ClientRequest__CommandExecParams = Schema.Struct({ |
| 19705 | "Optional per-stream stdout/stderr capture cap in bytes.\n\nWhen omitted, the server default applies. Cannot be combined with `disableOutputCap`.", | 22390 | "Optional per-stream stdout/stderr capture cap in bytes.\n\nWhen omitted, the server default applies. Cannot be combined with `disableOutputCap`.", |
| 19706 | format: "uint", | 22391 | format: "uint", |
| 19707 | }) | 22392 | }) |
| 19708 | .check(Schema.isInt()) | 22393 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 19709 | .check(Schema.isGreaterThanOrEqualTo(0)), | 22394 | .check( |
| | 22395 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 22396 | expected: "a value greater than or equal to 0", |
| | 22397 | }), |
| | 22398 | ), |
| 19710 | Schema.Null, | 22399 | Schema.Null, |
| 19711 | ]), | 22400 | ]), |
| 19712 | ), | 22401 | ), |
| ... | @@ -19748,7 +22437,7 @@ export const ClientRequest__CommandExecParams = Schema.Struct({ | ... | @@ -19748,7 +22437,7 @@ export const ClientRequest__CommandExecParams = Schema.Struct({ |
| 19748 | description: | 22437 | description: |
| 19749 | "Optional timeout in milliseconds.\n\nWhen omitted, the server default applies. Cannot be combined with `disableTimeout`.", | 22438 | "Optional timeout in milliseconds.\n\nWhen omitted, the server default applies. Cannot be combined with `disableTimeout`.", |
| 19750 | format: "int64", | 22439 | format: "int64", |
| 19751 | }).check(Schema.isInt()), | 22440 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 19752 | Schema.Null, | 22441 | Schema.Null, |
| 19753 | ]), | 22442 | ]), |
| 19754 | ), | 22443 | ), |
| ... | @@ -19760,68 +22449,7 @@ export const ClientRequest__CommandExecParams = Schema.Struct({ | ... | @@ -19760,68 +22449,7 @@ export const ClientRequest__CommandExecParams = Schema.Struct({ |
| 19760 | }).annotate({ | 22449 | }).annotate({ |
| 19761 | description: | 22450 | description: |
| 19762 | "Run a standalone command (argv vector) in the server sandbox without creating a thread or turn.\n\nThe final `command/exec` response is deferred until the process exits and is sent only after all `command/exec/outputDelta` notifications for that connection have been emitted.", | 22451 | "Run a standalone command (argv vector) in the server sandbox without creating a thread or turn.\n\nThe final `command/exec` response is deferred until the process exits and is sent only after all `command/exec/outputDelta` notifications for that connection have been emitted.", |
| 19763 | }); | 22452 | identifier: "ClientRequest__CommandExecParams", |
| 19764 | | | |
| 19765 | export type ClientRequest__FunctionCallOutputBody = | | |
| 19766 | | string | | |
| 19767 | | ReadonlyArray<ClientRequest__FunctionCallOutputContentItem>; | | |
| 19768 | export const ClientRequest__FunctionCallOutputBody = Schema.Union([ | | |
| 19769 | Schema.String, | | |
| 19770 | Schema.Array(ClientRequest__FunctionCallOutputContentItem), | | |
| 19771 | ]); | | |
| 19772 | | | |
| 19773 | export type ClientRequest__ConfigBatchWriteParams = { | | |
| 19774 | readonly edits: ReadonlyArray<ClientRequest__ConfigEdit>; | | |
| 19775 | readonly expectedVersion?: string | null; | | |
| 19776 | readonly filePath?: string | null; | | |
| 19777 | readonly reloadUserConfig?: boolean; | | |
| 19778 | }; | | |
| 19779 | export const ClientRequest__ConfigBatchWriteParams = Schema.Struct({ | | |
| 19780 | edits: Schema.Array(ClientRequest__ConfigEdit), | | |
| 19781 | expectedVersion: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 19782 | filePath: Schema.optionalKey( | | |
| 19783 | Schema.Union([ | | |
| 19784 | Schema.String.annotate({ | | |
| 19785 | description: | | |
| 19786 | "Path to the config file to write; defaults to the user's `config.toml` when omitted.", | | |
| 19787 | }), | | |
| 19788 | Schema.Null, | | |
| 19789 | ]), | | |
| 19790 | ), | | |
| 19791 | reloadUserConfig: Schema.optionalKey( | | |
| 19792 | Schema.Boolean.annotate({ | | |
| 19793 | description: | | |
| 19794 | "When true, hot-reload the updated user config into all loaded threads after writing.", | | |
| 19795 | }), | | |
| 19796 | ), | | |
| 19797 | }); | | |
| 19798 | | | |
| 19799 | export type ClientRequest__PluginShareSaveParams = { | | |
| 19800 | readonly discoverability?: ClientRequest__PluginShareDiscoverability | null; | | |
| 19801 | readonly pluginPath: ClientRequest__AbsolutePathBuf; | | |
| 19802 | readonly remotePluginId?: string | null; | | |
| 19803 | readonly shareTargets?: ReadonlyArray<ClientRequest__PluginShareTarget> | null; | | |
| 19804 | }; | | |
| 19805 | export const ClientRequest__PluginShareSaveParams = Schema.Struct({ | | |
| 19806 | discoverability: Schema.optionalKey( | | |
| 19807 | Schema.Union([ClientRequest__PluginShareDiscoverability, Schema.Null]), | | |
| 19808 | ), | | |
| 19809 | pluginPath: ClientRequest__AbsolutePathBuf, | | |
| 19810 | remotePluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 19811 | shareTargets: Schema.optionalKey( | | |
| 19812 | Schema.Union([Schema.Array(ClientRequest__PluginShareTarget), Schema.Null]), | | |
| 19813 | ), | | |
| 19814 | }); | | |
| 19815 | | | |
| 19816 | export type ClientRequest__PluginShareUpdateTargetsParams = { | | |
| 19817 | readonly discoverability: ClientRequest__PluginShareUpdateDiscoverability; | | |
| 19818 | readonly remotePluginId: string; | | |
| 19819 | readonly shareTargets: ReadonlyArray<ClientRequest__PluginShareTarget>; | | |
| 19820 | }; | | |
| 19821 | export const ClientRequest__PluginShareUpdateTargetsParams = Schema.Struct({ | | |
| 19822 | discoverability: ClientRequest__PluginShareUpdateDiscoverability, | | |
| 19823 | remotePluginId: Schema.String, | | |
| 19824 | shareTargets: Schema.Array(ClientRequest__PluginShareTarget), | | |
| 19825 | }); | 22453 | }); |
| 19826 | | 22454 | |
| 19827 | export type ClientRequest__ExternalAgentConfigMigrationItem = { | 22455 | export type ClientRequest__ExternalAgentConfigMigrationItem = { |
| ... | @@ -19843,105 +22471,33 @@ export const ClientRequest__ExternalAgentConfigMigrationItem = Schema.Struct({ | ... | @@ -19843,105 +22471,33 @@ export const ClientRequest__ExternalAgentConfigMigrationItem = Schema.Struct({ |
| 19843 | description: Schema.String, | 22471 | description: Schema.String, |
| 19844 | details: Schema.optionalKey(Schema.Union([ClientRequest__MigrationDetails, Schema.Null])), | 22472 | details: Schema.optionalKey(Schema.Union([ClientRequest__MigrationDetails, Schema.Null])), |
| 19845 | itemType: ClientRequest__ExternalAgentConfigMigrationItemType, | 22473 | itemType: ClientRequest__ExternalAgentConfigMigrationItemType, |
| 19846 | }); | 22474 | }).annotate({ identifier: "ClientRequest__ExternalAgentConfigMigrationItem" }); |
| 19847 | | 22475 | |
| 19848 | export type ClientRequest__TurnStartParams = { | 22476 | export type ClientRequest__ConfigBatchWriteParams = { |
| 19849 | readonly approvalPolicy?: ClientRequest__AskForApproval | null; | 22477 | readonly edits: ReadonlyArray<ClientRequest__ConfigEdit>; |
| 19850 | readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null; | 22478 | readonly expectedVersion?: string | null; |
| 19851 | readonly clientUserMessageId?: string | null; | 22479 | readonly filePath?: string | null; |
| 19852 | readonly cwd?: string | null; | 22480 | readonly reloadUserConfig?: boolean; |
| 19853 | readonly effort?: ClientRequest__ReasoningEffort | null; | | |
| 19854 | readonly input: ReadonlyArray<ClientRequest__UserInput>; | | |
| 19855 | readonly model?: string | null; | | |
| 19856 | readonly outputSchema?: unknown; | | |
| 19857 | readonly personality?: ClientRequest__Personality | null; | | |
| 19858 | readonly sandboxPolicy?: ClientRequest__SandboxPolicy | null; | | |
| 19859 | readonly serviceTier?: string | null; | | |
| 19860 | readonly summary?: ClientRequest__ReasoningSummary | null; | | |
| 19861 | readonly threadId: string; | | |
| 19862 | }; | 22481 | }; |
| 19863 | export const ClientRequest__TurnStartParams = Schema.Struct({ | 22482 | export const ClientRequest__ConfigBatchWriteParams = Schema.Struct({ |
| 19864 | approvalPolicy: Schema.optionalKey( | 22483 | edits: Schema.Array(ClientRequest__ConfigEdit), |
| 19865 | Schema.Union([ClientRequest__AskForApproval, Schema.Null]).annotate({ | 22484 | expectedVersion: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 19866 | description: "Override the approval policy for this turn and subsequent turns.", | 22485 | filePath: Schema.optionalKey( |
| 19867 | }), | | |
| 19868 | ), | | |
| 19869 | approvalsReviewer: Schema.optionalKey( | | |
| 19870 | Schema.Union([ClientRequest__ApprovalsReviewer, Schema.Null]).annotate({ | | |
| 19871 | description: | | |
| 19872 | "Override where approval requests are routed for review on this turn and subsequent turns.", | | |
| 19873 | }), | | |
| 19874 | ), | | |
| 19875 | clientUserMessageId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 19876 | cwd: Schema.optionalKey( | | |
| 19877 | Schema.Union([ | | |
| 19878 | Schema.String.annotate({ | | |
| 19879 | description: "Override the working directory for this turn and subsequent turns.", | | |
| 19880 | }), | | |
| 19881 | Schema.Null, | | |
| 19882 | ]), | | |
| 19883 | ), | | |
| 19884 | effort: Schema.optionalKey( | | |
| 19885 | Schema.Union([ClientRequest__ReasoningEffort, Schema.Null]).annotate({ | | |
| 19886 | description: "Override the reasoning effort for this turn and subsequent turns.", | | |
| 19887 | }), | | |
| 19888 | ), | | |
| 19889 | input: Schema.Array(ClientRequest__UserInput), | | |
| 19890 | model: Schema.optionalKey( | | |
| 19891 | Schema.Union([ | 22486 | Schema.Union([ |
| 19892 | Schema.String.annotate({ | 22487 | Schema.String.annotate({ |
| 19893 | description: "Override the model for this turn and subsequent turns.", | 22488 | description: |
| | 22489 | "Path to the config file to write; defaults to the user's `config.toml` when omitted.", |
| 19894 | }), | 22490 | }), |
| 19895 | Schema.Null, | 22491 | Schema.Null, |
| 19896 | ]), | 22492 | ]), |
| 19897 | ), | 22493 | ), |
| 19898 | outputSchema: Schema.optionalKey( | 22494 | reloadUserConfig: Schema.optionalKey( |
| 19899 | Schema.Unknown.annotate({ | 22495 | Schema.Boolean.annotate({ |
| 19900 | description: | 22496 | description: |
| 19901 | "Optional JSON Schema used to constrain the final assistant message for this turn.", | 22497 | "When true, hot-reload the updated user config into all loaded threads after writing.", |
| 19902 | }), | | |
| 19903 | ), | | |
| 19904 | personality: Schema.optionalKey( | | |
| 19905 | Schema.Union([ClientRequest__Personality, Schema.Null]).annotate({ | | |
| 19906 | description: "Override the personality for this turn and subsequent turns.", | | |
| 19907 | }), | | |
| 19908 | ), | | |
| 19909 | sandboxPolicy: Schema.optionalKey( | | |
| 19910 | Schema.Union([ClientRequest__SandboxPolicy, Schema.Null]).annotate({ | | |
| 19911 | description: "Override the sandbox policy for this turn and subsequent turns.", | | |
| 19912 | }), | | |
| 19913 | ), | | |
| 19914 | serviceTier: Schema.optionalKey( | | |
| 19915 | Schema.Union([ | | |
| 19916 | Schema.String.annotate({ | | |
| 19917 | description: "Override the service tier for this turn and subsequent turns.", | | |
| 19918 | }), | | |
| 19919 | Schema.Null, | | |
| 19920 | ]), | | |
| 19921 | ), | | |
| 19922 | summary: Schema.optionalKey( | | |
| 19923 | Schema.Union([ClientRequest__ReasoningSummary, Schema.Null]).annotate({ | | |
| 19924 | description: "Override the reasoning summary for this turn and subsequent turns.", | | |
| 19925 | }), | 22498 | }), |
| 19926 | ), | 22499 | ), |
| 19927 | threadId: Schema.String, | 22500 | }).annotate({ identifier: "ClientRequest__ConfigBatchWriteParams" }); |
| 19928 | }); | | |
| 19929 | | | |
| 19930 | export type ClientRequest__TurnSteerParams = { | | |
| 19931 | readonly clientUserMessageId?: string | null; | | |
| 19932 | readonly expectedTurnId: string; | | |
| 19933 | readonly input: ReadonlyArray<ClientRequest__UserInput>; | | |
| 19934 | readonly threadId: string; | | |
| 19935 | }; | | |
| 19936 | export const ClientRequest__TurnSteerParams = Schema.Struct({ | | |
| 19937 | clientUserMessageId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 19938 | expectedTurnId: Schema.String.annotate({ | | |
| 19939 | description: | | |
| 19940 | "Required active turn id precondition. The request fails when it does not match the currently active turn.", | | |
| 19941 | }), | | |
| 19942 | input: Schema.Array(ClientRequest__UserInput), | | |
| 19943 | threadId: Schema.String, | | |
| 19944 | }); | | |
| 19945 | | 22501 | |
| 19946 | export type CommandExecutionRequestApprovalParams__FileSystemPath = | 22502 | export type CommandExecutionRequestApprovalParams__FileSystemPath = |
| 19947 | | { | 22503 | | { |
| ... | @@ -19969,7 +22525,7 @@ export const CommandExecutionRequestApprovalParams__FileSystemPath = Schema.Unio | ... | @@ -19969,7 +22525,7 @@ export const CommandExecutionRequestApprovalParams__FileSystemPath = Schema.Unio |
| 19969 | }).annotate({ title: "SpecialFileSystemPath" }), | 22525 | }).annotate({ title: "SpecialFileSystemPath" }), |
| 19970 | ], | 22526 | ], |
| 19971 | { mode: "oneOf" }, | 22527 | { mode: "oneOf" }, |
| 19972 | ); | 22528 | ).annotate({ identifier: "CommandExecutionRequestApprovalParams__FileSystemPath" }); |
| 19973 | | 22529 | |
| 19974 | export type CommandExecutionRequestApprovalResponse__CommandExecutionApprovalDecision = | 22530 | export type CommandExecutionRequestApprovalResponse__CommandExecutionApprovalDecision = |
| 19975 | | "accept" | 22531 | | "accept" |
| ... | @@ -20019,7 +22575,9 @@ export const CommandExecutionRequestApprovalResponse__CommandExecutionApprovalDe | ... | @@ -20019,7 +22575,9 @@ export const CommandExecutionRequestApprovalResponse__CommandExecutionApprovalDe |
| 20019 | }), | 22575 | }), |
| 20020 | ], | 22576 | ], |
| 20021 | { mode: "oneOf" }, | 22577 | { mode: "oneOf" }, |
| 20022 | ); | 22578 | ).annotate({ |
| | 22579 | identifier: "CommandExecutionRequestApprovalResponse__CommandExecutionApprovalDecision", |
| | 22580 | }); |
| 20023 | | 22581 | |
| 20024 | export type ExecCommandApprovalResponse__ReviewDecision = | 22582 | export type ExecCommandApprovalResponse__ReviewDecision = |
| 20025 | | "approved" | 22583 | | "approved" |
| ... | @@ -20077,86 +22635,111 @@ export const ExecCommandApprovalResponse__ReviewDecision = Schema.Union( | ... | @@ -20077,86 +22635,111 @@ export const ExecCommandApprovalResponse__ReviewDecision = Schema.Union( |
| 20077 | }), | 22635 | }), |
| 20078 | ], | 22636 | ], |
| 20079 | { mode: "oneOf" }, | 22637 | { mode: "oneOf" }, |
| 20080 | ).annotate({ description: "User's decision in response to an ExecApprovalRequest." }); | 22638 | ).annotate({ |
| | 22639 | description: "User's decision in response to an ExecApprovalRequest.", |
| | 22640 | identifier: "ExecCommandApprovalResponse__ReviewDecision", |
| | 22641 | }); |
| 20081 | | 22642 | |
| 20082 | export type McpServerElicitationRequestParams__McpElicitationTitledMultiSelectEnumSchema = { | 22643 | export type McpServerElicitationRequestParams__McpElicitationUntitledMultiSelectEnumSchema = { |
| 20083 | readonly default?: ReadonlyArray<string> | null; | 22644 | readonly default?: ReadonlyArray<string> | null; |
| 20084 | readonly description?: string | null; | 22645 | readonly description?: string | null; |
| 20085 | readonly items: McpServerElicitationRequestParams__McpElicitationTitledEnumItems; | 22646 | readonly items: McpServerElicitationRequestParams__McpElicitationUntitledEnumItems; |
| 20086 | readonly maxItems?: number | null; | 22647 | readonly maxItems?: number | null; |
| 20087 | readonly minItems?: number | null; | 22648 | readonly minItems?: number | null; |
| 20088 | readonly title?: string | null; | 22649 | readonly title?: string | null; |
| 20089 | readonly type: McpServerElicitationRequestParams__McpElicitationArrayType; | 22650 | readonly type: McpServerElicitationRequestParams__McpElicitationArrayType; |
| 20090 | }; | 22651 | }; |
| 20091 | export const McpServerElicitationRequestParams__McpElicitationTitledMultiSelectEnumSchema = | 22652 | export const McpServerElicitationRequestParams__McpElicitationUntitledMultiSelectEnumSchema = |
| 20092 | Schema.Struct({ | 22653 | Schema.Struct({ |
| 20093 | default: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | 22654 | default: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| 20094 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 22655 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 20095 | items: McpServerElicitationRequestParams__McpElicitationTitledEnumItems, | 22656 | items: McpServerElicitationRequestParams__McpElicitationUntitledEnumItems, |
| 20096 | maxItems: Schema.optionalKey( | 22657 | maxItems: Schema.optionalKey( |
| 20097 | Schema.Union([ | 22658 | Schema.Union([ |
| 20098 | Schema.Number.annotate({ format: "uint64" }) | 22659 | Schema.Number.annotate({ format: "uint64" }) |
| 20099 | .check(Schema.isInt()) | 22660 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 20100 | .check(Schema.isGreaterThanOrEqualTo(0)), | 22661 | .check( |
| | 22662 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 22663 | expected: "a value greater than or equal to 0", |
| | 22664 | }), |
| | 22665 | ), |
| 20101 | Schema.Null, | 22666 | Schema.Null, |
| 20102 | ]), | 22667 | ]), |
| 20103 | ), | 22668 | ), |
| 20104 | minItems: Schema.optionalKey( | 22669 | minItems: Schema.optionalKey( |
| 20105 | Schema.Union([ | 22670 | Schema.Union([ |
| 20106 | Schema.Number.annotate({ format: "uint64" }) | 22671 | Schema.Number.annotate({ format: "uint64" }) |
| 20107 | .check(Schema.isInt()) | 22672 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 20108 | .check(Schema.isGreaterThanOrEqualTo(0)), | 22673 | .check( |
| | 22674 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 22675 | expected: "a value greater than or equal to 0", |
| | 22676 | }), |
| | 22677 | ), |
| 20109 | Schema.Null, | 22678 | Schema.Null, |
| 20110 | ]), | 22679 | ]), |
| 20111 | ), | 22680 | ), |
| 20112 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 22681 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 20113 | type: McpServerElicitationRequestParams__McpElicitationArrayType, | 22682 | type: McpServerElicitationRequestParams__McpElicitationArrayType, |
| | 22683 | }).annotate({ |
| | 22684 | identifier: "McpServerElicitationRequestParams__McpElicitationUntitledMultiSelectEnumSchema", |
| 20114 | }); | 22685 | }); |
| 20115 | | 22686 | |
| 20116 | export type McpServerElicitationRequestParams__McpElicitationUntitledMultiSelectEnumSchema = { | 22687 | export type McpServerElicitationRequestParams__McpElicitationSingleSelectEnumSchema = |
| | 22688 | | McpServerElicitationRequestParams__McpElicitationUntitledSingleSelectEnumSchema |
| | 22689 | | McpServerElicitationRequestParams__McpElicitationTitledSingleSelectEnumSchema; |
| | 22690 | export const McpServerElicitationRequestParams__McpElicitationSingleSelectEnumSchema = Schema.Union( |
| | 22691 | [ |
| | 22692 | McpServerElicitationRequestParams__McpElicitationUntitledSingleSelectEnumSchema, |
| | 22693 | McpServerElicitationRequestParams__McpElicitationTitledSingleSelectEnumSchema, |
| | 22694 | ], |
| | 22695 | ).annotate({ |
| | 22696 | identifier: "McpServerElicitationRequestParams__McpElicitationSingleSelectEnumSchema", |
| | 22697 | }); |
| | 22698 | |
| | 22699 | export type McpServerElicitationRequestParams__McpElicitationTitledMultiSelectEnumSchema = { |
| 20117 | readonly default?: ReadonlyArray<string> | null; | 22700 | readonly default?: ReadonlyArray<string> | null; |
| 20118 | readonly description?: string | null; | 22701 | readonly description?: string | null; |
| 20119 | readonly items: McpServerElicitationRequestParams__McpElicitationUntitledEnumItems; | 22702 | readonly items: McpServerElicitationRequestParams__McpElicitationTitledEnumItems; |
| 20120 | readonly maxItems?: number | null; | 22703 | readonly maxItems?: number | null; |
| 20121 | readonly minItems?: number | null; | 22704 | readonly minItems?: number | null; |
| 20122 | readonly title?: string | null; | 22705 | readonly title?: string | null; |
| 20123 | readonly type: McpServerElicitationRequestParams__McpElicitationArrayType; | 22706 | readonly type: McpServerElicitationRequestParams__McpElicitationArrayType; |
| 20124 | }; | 22707 | }; |
| 20125 | export const McpServerElicitationRequestParams__McpElicitationUntitledMultiSelectEnumSchema = | 22708 | export const McpServerElicitationRequestParams__McpElicitationTitledMultiSelectEnumSchema = |
| 20126 | Schema.Struct({ | 22709 | Schema.Struct({ |
| 20127 | default: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | 22710 | default: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| 20128 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 22711 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 20129 | items: McpServerElicitationRequestParams__McpElicitationUntitledEnumItems, | 22712 | items: McpServerElicitationRequestParams__McpElicitationTitledEnumItems, |
| 20130 | maxItems: Schema.optionalKey( | 22713 | maxItems: Schema.optionalKey( |
| 20131 | Schema.Union([ | 22714 | Schema.Union([ |
| 20132 | Schema.Number.annotate({ format: "uint64" }) | 22715 | Schema.Number.annotate({ format: "uint64" }) |
| 20133 | .check(Schema.isInt()) | 22716 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 20134 | .check(Schema.isGreaterThanOrEqualTo(0)), | 22717 | .check( |
| | 22718 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 22719 | expected: "a value greater than or equal to 0", |
| | 22720 | }), |
| | 22721 | ), |
| 20135 | Schema.Null, | 22722 | Schema.Null, |
| 20136 | ]), | 22723 | ]), |
| 20137 | ), | 22724 | ), |
| 20138 | minItems: Schema.optionalKey( | 22725 | minItems: Schema.optionalKey( |
| 20139 | Schema.Union([ | 22726 | Schema.Union([ |
| 20140 | Schema.Number.annotate({ format: "uint64" }) | 22727 | Schema.Number.annotate({ format: "uint64" }) |
| 20141 | .check(Schema.isInt()) | 22728 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 20142 | .check(Schema.isGreaterThanOrEqualTo(0)), | 22729 | .check( |
| | 22730 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 22731 | expected: "a value greater than or equal to 0", |
| | 22732 | }), |
| | 22733 | ), |
| 20143 | Schema.Null, | 22734 | Schema.Null, |
| 20144 | ]), | 22735 | ]), |
| 20145 | ), | 22736 | ), |
| 20146 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 22737 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 20147 | type: McpServerElicitationRequestParams__McpElicitationArrayType, | 22738 | type: McpServerElicitationRequestParams__McpElicitationArrayType, |
| | 22739 | }).annotate({ |
| | 22740 | identifier: "McpServerElicitationRequestParams__McpElicitationTitledMultiSelectEnumSchema", |
| 20148 | }); | 22741 | }); |
| 20149 | | 22742 | |
| 20150 | export type McpServerElicitationRequestParams__McpElicitationSingleSelectEnumSchema = | | |
| 20151 | | McpServerElicitationRequestParams__McpElicitationUntitledSingleSelectEnumSchema | | |
| 20152 | | McpServerElicitationRequestParams__McpElicitationTitledSingleSelectEnumSchema; | | |
| 20153 | export const McpServerElicitationRequestParams__McpElicitationSingleSelectEnumSchema = Schema.Union( | | |
| 20154 | [ | | |
| 20155 | McpServerElicitationRequestParams__McpElicitationUntitledSingleSelectEnumSchema, | | |
| 20156 | McpServerElicitationRequestParams__McpElicitationTitledSingleSelectEnumSchema, | | |
| 20157 | ], | | |
| 20158 | ); | | |
| 20159 | | | |
| 20160 | export type PermissionsRequestApprovalParams__FileSystemPath = | 22743 | export type PermissionsRequestApprovalParams__FileSystemPath = |
| 20161 | | { readonly path: PermissionsRequestApprovalParams__LegacyAppPathString; readonly type: "path" } | 22744 | | { readonly path: PermissionsRequestApprovalParams__LegacyAppPathString; readonly type: "path" } |
| 20162 | | { readonly pattern: string; readonly type: "glob_pattern" } | 22745 | | { readonly pattern: string; readonly type: "glob_pattern" } |
| ... | @@ -20180,7 +22763,7 @@ export const PermissionsRequestApprovalParams__FileSystemPath = Schema.Union( | ... | @@ -20180,7 +22763,7 @@ export const PermissionsRequestApprovalParams__FileSystemPath = Schema.Union( |
| 20180 | }).annotate({ title: "SpecialFileSystemPath" }), | 22763 | }).annotate({ title: "SpecialFileSystemPath" }), |
| 20181 | ], | 22764 | ], |
| 20182 | { mode: "oneOf" }, | 22765 | { mode: "oneOf" }, |
| 20183 | ); | 22766 | ).annotate({ identifier: "PermissionsRequestApprovalParams__FileSystemPath" }); |
| 20184 | | 22767 | |
| 20185 | export type PermissionsRequestApprovalResponse__FileSystemPath = | 22768 | export type PermissionsRequestApprovalResponse__FileSystemPath = |
| 20186 | | { | 22769 | | { |
| ... | @@ -20208,7 +22791,260 @@ export const PermissionsRequestApprovalResponse__FileSystemPath = Schema.Union( | ... | @@ -20208,7 +22791,260 @@ export const PermissionsRequestApprovalResponse__FileSystemPath = Schema.Union( |
| 20208 | }).annotate({ title: "SpecialFileSystemPath" }), | 22791 | }).annotate({ title: "SpecialFileSystemPath" }), |
| 20209 | ], | 22792 | ], |
| 20210 | { mode: "oneOf" }, | 22793 | { mode: "oneOf" }, |
| 20211 | ); | 22794 | ).annotate({ identifier: "PermissionsRequestApprovalResponse__FileSystemPath" }); |
| | 22795 | |
| | 22796 | export type ServerNotification__TurnError = { |
| | 22797 | readonly additionalDetails?: string | null; |
| | 22798 | readonly codexErrorInfo?: ServerNotification__CodexErrorInfo | null; |
| | 22799 | readonly message: string; |
| | 22800 | }; |
| | 22801 | export const ServerNotification__TurnError = Schema.Struct({ |
| | 22802 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 22803 | codexErrorInfo: Schema.optionalKey( |
| | 22804 | Schema.Union([ServerNotification__CodexErrorInfo, Schema.Null]), |
| | 22805 | ), |
| | 22806 | message: Schema.String, |
| | 22807 | }).annotate({ identifier: "ServerNotification__TurnError" }); |
| | 22808 | |
| | 22809 | export type ServerNotification__SessionSource = |
| | 22810 | | "cli" |
| | 22811 | | "vscode" |
| | 22812 | | "exec" |
| | 22813 | | "appServer" |
| | 22814 | | "unknown" |
| | 22815 | | { readonly custom: string } |
| | 22816 | | { readonly subAgent: ServerNotification__SubAgentSource }; |
| | 22817 | export const ServerNotification__SessionSource = Schema.Union( |
| | 22818 | [ |
| | 22819 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), |
| | 22820 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), |
| | 22821 | Schema.Struct({ subAgent: ServerNotification__SubAgentSource }).annotate({ |
| | 22822 | title: "SubAgentSessionSource", |
| | 22823 | }), |
| | 22824 | ], |
| | 22825 | { mode: "oneOf" }, |
| | 22826 | ).annotate({ identifier: "ServerNotification__SessionSource" }); |
| | 22827 | |
| | 22828 | export type ServerNotification__ThreadStatusChangedNotification = { |
| | 22829 | readonly status: ServerNotification__ThreadStatus; |
| | 22830 | readonly threadId: string; |
| | 22831 | }; |
| | 22832 | export const ServerNotification__ThreadStatusChangedNotification = Schema.Struct({ |
| | 22833 | status: ServerNotification__ThreadStatus, |
| | 22834 | threadId: Schema.String, |
| | 22835 | }).annotate({ identifier: "ServerNotification__ThreadStatusChangedNotification" }); |
| | 22836 | |
| | 22837 | export type ServerNotification__UserInput = |
| | 22838 | | { |
| | 22839 | readonly text: string; |
| | 22840 | readonly text_elements?: ReadonlyArray<ServerNotification__TextElement>; |
| | 22841 | readonly type: "text"; |
| | 22842 | } |
| | 22843 | | { |
| | 22844 | readonly detail?: ServerNotification__ImageDetail | null; |
| | 22845 | readonly type: "image"; |
| | 22846 | readonly url: string; |
| | 22847 | } |
| | 22848 | | { |
| | 22849 | readonly detail?: ServerNotification__ImageDetail | null; |
| | 22850 | readonly path: string; |
| | 22851 | readonly type: "localImage"; |
| | 22852 | } |
| | 22853 | | { readonly type: "audio"; readonly url: string } |
| | 22854 | | { readonly path: string; readonly type: "localAudio" } |
| | 22855 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| | 22856 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| | 22857 | export const ServerNotification__UserInput = Schema.Union( |
| | 22858 | [ |
| | 22859 | Schema.Struct({ |
| | 22860 | text: Schema.String, |
| | 22861 | text_elements: Schema.optionalKey( |
| | 22862 | Schema.Array(ServerNotification__TextElement).annotate({ |
| | 22863 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| | 22864 | default: [], |
| | 22865 | }), |
| | 22866 | ), |
| | 22867 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| | 22868 | }).annotate({ title: "TextUserInput" }), |
| | 22869 | Schema.Struct({ |
| | 22870 | detail: Schema.optionalKey(Schema.Union([ServerNotification__ImageDetail, Schema.Null])), |
| | 22871 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 22872 | url: Schema.String, |
| | 22873 | }).annotate({ title: "ImageUserInput" }), |
| | 22874 | Schema.Struct({ |
| | 22875 | detail: Schema.optionalKey(Schema.Union([ServerNotification__ImageDetail, Schema.Null])), |
| | 22876 | path: Schema.String, |
| | 22877 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| | 22878 | }).annotate({ title: "LocalImageUserInput" }), |
| | 22879 | Schema.Struct({ |
| | 22880 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), |
| | 22881 | url: Schema.String, |
| | 22882 | }).annotate({ title: "AudioUserInput" }), |
| | 22883 | Schema.Struct({ |
| | 22884 | path: Schema.String, |
| | 22885 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), |
| | 22886 | }).annotate({ title: "LocalAudioUserInput" }), |
| | 22887 | Schema.Struct({ |
| | 22888 | name: Schema.String, |
| | 22889 | path: Schema.String, |
| | 22890 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), |
| | 22891 | }).annotate({ title: "SkillUserInput" }), |
| | 22892 | Schema.Struct({ |
| | 22893 | name: Schema.String, |
| | 22894 | path: Schema.String, |
| | 22895 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), |
| | 22896 | }).annotate({ title: "MentionUserInput" }), |
| | 22897 | ], |
| | 22898 | { mode: "oneOf" }, |
| | 22899 | ).annotate({ identifier: "ServerNotification__UserInput" }); |
| | 22900 | |
| | 22901 | export type ServerNotification__FileSystemPath = |
| | 22902 | | { readonly path: ServerNotification__LegacyAppPathString; readonly type: "path" } |
| | 22903 | | { readonly pattern: string; readonly type: "glob_pattern" } |
| | 22904 | | { readonly type: "special"; readonly value: ServerNotification__FileSystemSpecialPath }; |
| | 22905 | export const ServerNotification__FileSystemPath = Schema.Union( |
| | 22906 | [ |
| | 22907 | Schema.Struct({ |
| | 22908 | path: ServerNotification__LegacyAppPathString, |
| | 22909 | type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }), |
| | 22910 | }).annotate({ title: "PathFileSystemPath" }), |
| | 22911 | Schema.Struct({ |
| | 22912 | pattern: Schema.String, |
| | 22913 | type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }), |
| | 22914 | }).annotate({ title: "GlobPatternFileSystemPath" }), |
| | 22915 | Schema.Struct({ |
| | 22916 | type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }), |
| | 22917 | value: ServerNotification__FileSystemSpecialPath, |
| | 22918 | }).annotate({ title: "SpecialFileSystemPath" }), |
| | 22919 | ], |
| | 22920 | { mode: "oneOf" }, |
| | 22921 | ).annotate({ identifier: "ServerNotification__FileSystemPath" }); |
| | 22922 | |
| | 22923 | export type ServerNotification__FileChangePatchUpdatedNotification = { |
| | 22924 | readonly changes: ReadonlyArray<ServerNotification__FileUpdateChange>; |
| | 22925 | readonly itemId: string; |
| | 22926 | readonly threadId: string; |
| | 22927 | readonly turnId: string; |
| | 22928 | }; |
| | 22929 | export const ServerNotification__FileChangePatchUpdatedNotification = Schema.Struct({ |
| | 22930 | changes: Schema.Array(ServerNotification__FileUpdateChange), |
| | 22931 | itemId: Schema.String, |
| | 22932 | threadId: Schema.String, |
| | 22933 | turnId: Schema.String, |
| | 22934 | }).annotate({ identifier: "ServerNotification__FileChangePatchUpdatedNotification" }); |
| | 22935 | |
| | 22936 | export type ServerNotification__CollaborationMode = { |
| | 22937 | readonly mode: ServerNotification__ModeKind; |
| | 22938 | readonly settings: ServerNotification__Settings; |
| | 22939 | }; |
| | 22940 | export const ServerNotification__CollaborationMode = Schema.Struct({ |
| | 22941 | mode: ServerNotification__ModeKind, |
| | 22942 | settings: ServerNotification__Settings, |
| | 22943 | }).annotate({ |
| | 22944 | description: "Collaboration mode for a Codex session.", |
| | 22945 | identifier: "ServerNotification__CollaborationMode", |
| | 22946 | }); |
| | 22947 | |
| | 22948 | export type ServerNotification__ThreadGoalUpdatedNotification = { |
| | 22949 | readonly goal: ServerNotification__ThreadGoal; |
| | 22950 | readonly threadId: string; |
| | 22951 | readonly turnId?: string | null; |
| | 22952 | }; |
| | 22953 | export const ServerNotification__ThreadGoalUpdatedNotification = Schema.Struct({ |
| | 22954 | goal: ServerNotification__ThreadGoal, |
| | 22955 | threadId: Schema.String, |
| | 22956 | turnId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 22957 | }).annotate({ identifier: "ServerNotification__ThreadGoalUpdatedNotification" }); |
| | 22958 | |
| | 22959 | export type ServerNotification__ThreadTokenUsageUpdatedNotification = { |
| | 22960 | readonly threadId: string; |
| | 22961 | readonly tokenUsage: ServerNotification__ThreadTokenUsage; |
| | 22962 | readonly turnId: string; |
| | 22963 | }; |
| | 22964 | export const ServerNotification__ThreadTokenUsageUpdatedNotification = Schema.Struct({ |
| | 22965 | threadId: Schema.String, |
| | 22966 | tokenUsage: ServerNotification__ThreadTokenUsage, |
| | 22967 | turnId: Schema.String, |
| | 22968 | }).annotate({ identifier: "ServerNotification__ThreadTokenUsageUpdatedNotification" }); |
| | 22969 | |
| | 22970 | export type ServerNotification__HookRunSummary = { |
| | 22971 | readonly completedAt?: number | null; |
| | 22972 | readonly displayOrder: number; |
| | 22973 | readonly durationMs?: number | null; |
| | 22974 | readonly entries: ReadonlyArray<ServerNotification__HookOutputEntry>; |
| | 22975 | readonly eventName: ServerNotification__HookEventName; |
| | 22976 | readonly executionMode: ServerNotification__HookExecutionMode; |
| | 22977 | readonly handlerType: ServerNotification__HookHandlerType; |
| | 22978 | readonly id: string; |
| | 22979 | readonly scope: ServerNotification__HookScope; |
| | 22980 | readonly source?: ServerNotification__HookSource; |
| | 22981 | readonly sourcePath: ServerNotification__AbsolutePathBuf; |
| | 22982 | readonly startedAt: number; |
| | 22983 | readonly status: ServerNotification__HookRunStatus; |
| | 22984 | readonly statusMessage?: string | null; |
| | 22985 | }; |
| | 22986 | export const ServerNotification__HookRunSummary = Schema.Struct({ |
| | 22987 | completedAt: Schema.optionalKey( |
| | 22988 | Schema.Union([ |
| | 22989 | Schema.Number.annotate({ format: "int64" }).check( |
| | 22990 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 22991 | ), |
| | 22992 | Schema.Null, |
| | 22993 | ]), |
| | 22994 | ), |
| | 22995 | displayOrder: Schema.Number.annotate({ format: "int64" }).check( |
| | 22996 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 22997 | ), |
| | 22998 | durationMs: Schema.optionalKey( |
| | 22999 | Schema.Union([ |
| | 23000 | Schema.Number.annotate({ format: "int64" }).check( |
| | 23001 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 23002 | ), |
| | 23003 | Schema.Null, |
| | 23004 | ]), |
| | 23005 | ), |
| | 23006 | entries: Schema.Array(ServerNotification__HookOutputEntry), |
| | 23007 | eventName: ServerNotification__HookEventName, |
| | 23008 | executionMode: ServerNotification__HookExecutionMode, |
| | 23009 | handlerType: ServerNotification__HookHandlerType, |
| | 23010 | id: Schema.String, |
| | 23011 | scope: ServerNotification__HookScope, |
| | 23012 | source: Schema.optionalKey( |
| | 23013 | Schema.suspend( |
| | 23014 | (): Schema.Codec<ServerNotification__HookSource> => ServerNotification__HookSource, |
| | 23015 | ).annotate({ default: "unknown" }), |
| | 23016 | ), |
| | 23017 | sourcePath: ServerNotification__AbsolutePathBuf, |
| | 23018 | startedAt: Schema.Number.annotate({ format: "int64" }).check( |
| | 23019 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 23020 | ), |
| | 23021 | status: ServerNotification__HookRunStatus, |
| | 23022 | statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 23023 | }).annotate({ identifier: "ServerNotification__HookRunSummary" }); |
| | 23024 | |
| | 23025 | export type ServerNotification__TurnPlanUpdatedNotification = { |
| | 23026 | readonly explanation?: string | null; |
| | 23027 | readonly plan: ReadonlyArray<ServerNotification__TurnPlanStep>; |
| | 23028 | readonly threadId: string; |
| | 23029 | readonly turnId: string; |
| | 23030 | }; |
| | 23031 | export const ServerNotification__TurnPlanUpdatedNotification = Schema.Struct({ |
| | 23032 | explanation: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 23033 | plan: Schema.Array(ServerNotification__TurnPlanStep), |
| | 23034 | threadId: Schema.String, |
| | 23035 | turnId: Schema.String, |
| | 23036 | }).annotate({ identifier: "ServerNotification__TurnPlanUpdatedNotification" }); |
| | 23037 | |
| | 23038 | export type ServerNotification__AccountRateLimitsUpdatedNotification = { |
| | 23039 | readonly rateLimits: ServerNotification__RateLimitSnapshot; |
| | 23040 | }; |
| | 23041 | export const ServerNotification__AccountRateLimitsUpdatedNotification = Schema.Struct({ |
| | 23042 | rateLimits: ServerNotification__RateLimitSnapshot, |
| | 23043 | }).annotate({ |
| | 23044 | description: |
| | 23045 | "Sparse rolling rate-limit update.\n\nClients should merge available values into the most recent `account/rateLimits/read` response or refetch that snapshot. Nullable account metadata may be unavailable in a rolling update and does not clear a previously observed value.", |
| | 23046 | identifier: "ServerNotification__AccountRateLimitsUpdatedNotification", |
| | 23047 | }); |
| 20212 | | 23048 | |
| 20213 | export type ServerNotification__AppInfo = { | 23049 | export type ServerNotification__AppInfo = { |
| 20214 | readonly appMetadata?: ServerNotification__AppMetadata | null; | 23050 | readonly appMetadata?: ServerNotification__AppMetadata | null; |
| ... | @@ -20255,7 +23091,10 @@ export const ServerNotification__AppInfo = Schema.Struct({ | ... | @@ -20255,7 +23091,10 @@ export const ServerNotification__AppInfo = Schema.Struct({ |
| 20255 | logoUrlDark: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 23091 | logoUrlDark: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 20256 | name: Schema.String, | 23092 | name: Schema.String, |
| 20257 | pluginDisplayNames: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), | 23093 | pluginDisplayNames: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| 20258 | }).annotate({ description: "EXPERIMENTAL - app metadata returned by app-list APIs." }); | 23094 | }).annotate({ |
| | 23095 | description: "EXPERIMENTAL - app metadata returned by app-list APIs.", |
| | 23096 | identifier: "ServerNotification__AppInfo", |
| | 23097 | }); |
| 20259 | | 23098 | |
| 20260 | export type ServerNotification__ExternalAgentConfigImportTypeResult = { | 23099 | export type ServerNotification__ExternalAgentConfigImportTypeResult = { |
| 20261 | readonly failures: ReadonlyArray<ServerNotification__ExternalAgentConfigImportItemTypeFailure>; | 23100 | readonly failures: ReadonlyArray<ServerNotification__ExternalAgentConfigImportItemTypeFailure>; |
| ... | @@ -20266,7 +23105,36 @@ export const ServerNotification__ExternalAgentConfigImportTypeResult = Schema.St | ... | @@ -20266,7 +23105,36 @@ export const ServerNotification__ExternalAgentConfigImportTypeResult = Schema.St |
| 20266 | failures: Schema.Array(ServerNotification__ExternalAgentConfigImportItemTypeFailure), | 23105 | failures: Schema.Array(ServerNotification__ExternalAgentConfigImportItemTypeFailure), |
| 20267 | itemType: ServerNotification__ExternalAgentConfigMigrationItemType, | 23106 | itemType: ServerNotification__ExternalAgentConfigMigrationItemType, |
| 20268 | successes: Schema.Array(ServerNotification__ExternalAgentConfigImportItemTypeSuccess), | 23107 | successes: Schema.Array(ServerNotification__ExternalAgentConfigImportItemTypeSuccess), |
| 20269 | }); | 23108 | }).annotate({ identifier: "ServerNotification__ExternalAgentConfigImportTypeResult" }); |
| | 23109 | |
| | 23110 | export type ServerNotification__ConfigWarningNotification = { |
| | 23111 | readonly details?: string | null; |
| | 23112 | readonly path?: string | null; |
| | 23113 | readonly range?: ServerNotification__TextRange | null; |
| | 23114 | readonly summary: string; |
| | 23115 | }; |
| | 23116 | export const ServerNotification__ConfigWarningNotification = Schema.Struct({ |
| | 23117 | details: Schema.optionalKey( |
| | 23118 | Schema.Union([ |
| | 23119 | Schema.String.annotate({ description: "Optional extra guidance or error details." }), |
| | 23120 | Schema.Null, |
| | 23121 | ]), |
| | 23122 | ), |
| | 23123 | path: Schema.optionalKey( |
| | 23124 | Schema.Union([ |
| | 23125 | Schema.String.annotate({ |
| | 23126 | description: "Optional path to the config file that triggered the warning.", |
| | 23127 | }), |
| | 23128 | Schema.Null, |
| | 23129 | ]), |
| | 23130 | ), |
| | 23131 | range: Schema.optionalKey( |
| | 23132 | Schema.Union([ServerNotification__TextRange, Schema.Null]).annotate({ |
| | 23133 | description: "Optional range for the error location inside the config file.", |
| | 23134 | }), |
| | 23135 | ), |
| | 23136 | summary: Schema.String.annotate({ description: "Concise summary of the warning." }), |
| | 23137 | }).annotate({ identifier: "ServerNotification__ConfigWarningNotification" }); |
| 20270 | | 23138 | |
| 20271 | export type ServerNotification__FuzzyFileSearchSessionUpdatedNotification = { | 23139 | export type ServerNotification__FuzzyFileSearchSessionUpdatedNotification = { |
| 20272 | readonly files: ReadonlyArray<ServerNotification__FuzzyFileSearchResult>; | 23140 | readonly files: ReadonlyArray<ServerNotification__FuzzyFileSearchResult>; |
| ... | @@ -20277,78 +23145,16 @@ export const ServerNotification__FuzzyFileSearchSessionUpdatedNotification = Sch | ... | @@ -20277,78 +23145,16 @@ export const ServerNotification__FuzzyFileSearchSessionUpdatedNotification = Sch |
| 20277 | files: Schema.Array(ServerNotification__FuzzyFileSearchResult), | 23145 | files: Schema.Array(ServerNotification__FuzzyFileSearchResult), |
| 20278 | query: Schema.String, | 23146 | query: Schema.String, |
| 20279 | sessionId: Schema.String, | 23147 | sessionId: Schema.String, |
| 20280 | }); | 23148 | }).annotate({ identifier: "ServerNotification__FuzzyFileSearchSessionUpdatedNotification" }); |
| 20281 | | | |
| 20282 | export type ServerNotification__HookRunSummary = { | | |
| 20283 | readonly completedAt?: number | null; | | |
| 20284 | readonly displayOrder: number; | | |
| 20285 | readonly durationMs?: number | null; | | |
| 20286 | readonly entries: ReadonlyArray<ServerNotification__HookOutputEntry>; | | |
| 20287 | readonly eventName: ServerNotification__HookEventName; | | |
| 20288 | readonly executionMode: ServerNotification__HookExecutionMode; | | |
| 20289 | readonly handlerType: ServerNotification__HookHandlerType; | | |
| 20290 | readonly id: string; | | |
| 20291 | readonly scope: ServerNotification__HookScope; | | |
| 20292 | readonly source?: | | |
| 20293 | | "system" | | |
| 20294 | | "user" | | |
| 20295 | | "project" | | |
| 20296 | | "mdm" | | |
| 20297 | | "sessionFlags" | | |
| 20298 | | "plugin" | | |
| 20299 | | "cloudRequirements" | | |
| 20300 | | "cloudManagedConfig" | | |
| 20301 | | "legacyManagedConfigFile" | | |
| 20302 | | "legacyManagedConfigMdm" | | |
| 20303 | | "unknown"; | | |
| 20304 | readonly sourcePath: ServerNotification__AbsolutePathBuf; | | |
| 20305 | readonly startedAt: number; | | |
| 20306 | readonly status: ServerNotification__HookRunStatus; | | |
| 20307 | readonly statusMessage?: string | null; | | |
| 20308 | }; | | |
| 20309 | export const ServerNotification__HookRunSummary = Schema.Struct({ | | |
| 20310 | completedAt: Schema.optionalKey( | | |
| 20311 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), | | |
| 20312 | ), | | |
| 20313 | displayOrder: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | | |
| 20314 | durationMs: Schema.optionalKey( | | |
| 20315 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), | | |
| 20316 | ), | | |
| 20317 | entries: Schema.Array(ServerNotification__HookOutputEntry), | | |
| 20318 | eventName: ServerNotification__HookEventName, | | |
| 20319 | executionMode: ServerNotification__HookExecutionMode, | | |
| 20320 | handlerType: ServerNotification__HookHandlerType, | | |
| 20321 | id: Schema.String, | | |
| 20322 | scope: ServerNotification__HookScope, | | |
| 20323 | source: Schema.optionalKey( | | |
| 20324 | Schema.Literals([ | | |
| 20325 | "system", | | |
| 20326 | "user", | | |
| 20327 | "project", | | |
| 20328 | "mdm", | | |
| 20329 | "sessionFlags", | | |
| 20330 | "plugin", | | |
| 20331 | "cloudRequirements", | | |
| 20332 | "cloudManagedConfig", | | |
| 20333 | "legacyManagedConfigFile", | | |
| 20334 | "legacyManagedConfigMdm", | | |
| 20335 | "unknown", | | |
| 20336 | ]).annotate({ default: "unknown" }), | | |
| 20337 | ), | | |
| 20338 | sourcePath: ServerNotification__AbsolutePathBuf, | | |
| 20339 | startedAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | | |
| 20340 | status: ServerNotification__HookRunStatus, | | |
| 20341 | statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 20342 | }); | | |
| 20343 | | 23149 | |
| 20344 | export type ServerNotification__FileSystemPath = | 23150 | export type ServerRequest__FileSystemPath = |
| 20345 | | { readonly path: ServerNotification__LegacyAppPathString; readonly type: "path" } | 23151 | | { readonly path: ServerRequest__LegacyAppPathString; readonly type: "path" } |
| 20346 | | { readonly pattern: string; readonly type: "glob_pattern" } | 23152 | | { readonly pattern: string; readonly type: "glob_pattern" } |
| 20347 | | { readonly type: "special"; readonly value: ServerNotification__FileSystemSpecialPath }; | 23153 | | { readonly type: "special"; readonly value: ServerRequest__FileSystemSpecialPath }; |
| 20348 | export const ServerNotification__FileSystemPath = Schema.Union( | 23154 | export const ServerRequest__FileSystemPath = Schema.Union( |
| 20349 | [ | 23155 | [ |
| 20350 | Schema.Struct({ | 23156 | Schema.Struct({ |
| 20351 | path: ServerNotification__LegacyAppPathString, | 23157 | path: ServerRequest__LegacyAppPathString, |
| 20352 | type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }), | 23158 | type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }), |
| 20353 | }).annotate({ title: "PathFileSystemPath" }), | 23159 | }).annotate({ title: "PathFileSystemPath" }), |
| 20354 | Schema.Struct({ | 23160 | Schema.Struct({ |
| ... | @@ -20357,601 +23163,129 @@ export const ServerNotification__FileSystemPath = Schema.Union( | ... | @@ -20357,601 +23163,129 @@ export const ServerNotification__FileSystemPath = Schema.Union( |
| 20357 | }).annotate({ title: "GlobPatternFileSystemPath" }), | 23163 | }).annotate({ title: "GlobPatternFileSystemPath" }), |
| 20358 | Schema.Struct({ | 23164 | Schema.Struct({ |
| 20359 | type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }), | 23165 | type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }), |
| 20360 | value: ServerNotification__FileSystemSpecialPath, | 23166 | value: ServerRequest__FileSystemSpecialPath, |
| 20361 | }).annotate({ title: "SpecialFileSystemPath" }), | 23167 | }).annotate({ title: "SpecialFileSystemPath" }), |
| 20362 | ], | 23168 | ], |
| 20363 | { mode: "oneOf" }, | 23169 | { mode: "oneOf" }, |
| 20364 | ); | 23170 | ).annotate({ identifier: "ServerRequest__FileSystemPath" }); |
| 20365 | | | |
| 20366 | export type ServerNotification__TurnError = { | | |
| 20367 | readonly additionalDetails?: string | null; | | |
| 20368 | readonly codexErrorInfo?: ServerNotification__CodexErrorInfo | null; | | |
| 20369 | readonly message: string; | | |
| 20370 | }; | | |
| 20371 | export const ServerNotification__TurnError = Schema.Struct({ | | |
| 20372 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 20373 | codexErrorInfo: Schema.optionalKey( | | |
| 20374 | Schema.Union([ServerNotification__CodexErrorInfo, Schema.Null]), | | |
| 20375 | ), | | |
| 20376 | message: Schema.String, | | |
| 20377 | }); | | |
| 20378 | | 23171 | |
| 20379 | export type ServerNotification__FileChangePatchUpdatedNotification = { | 23172 | export type ServerRequest__CommandExecutionRequestApprovalParams = { |
| 20380 | readonly changes: ReadonlyArray<ServerNotification__FileUpdateChange>; | 23173 | readonly approvalId?: string | null; |
| | 23174 | readonly command?: string | null; |
| | 23175 | readonly commandActions?: ReadonlyArray<ServerRequest__CommandAction> | null; |
| | 23176 | readonly cwd?: ServerRequest__LegacyAppPathString | null; |
| | 23177 | readonly environmentId?: string | null; |
| 20381 | readonly itemId: string; | 23178 | readonly itemId: string; |
| | 23179 | readonly networkApprovalContext?: ServerRequest__NetworkApprovalContext | null; |
| | 23180 | readonly proposedExecpolicyAmendment?: ReadonlyArray<string> | null; |
| | 23181 | readonly proposedNetworkPolicyAmendments?: ReadonlyArray<ServerRequest__NetworkPolicyAmendment> | null; |
| | 23182 | readonly reason?: string | null; |
| | 23183 | readonly startedAtMs: number; |
| 20382 | readonly threadId: string; | 23184 | readonly threadId: string; |
| 20383 | readonly turnId: string; | 23185 | readonly turnId: string; |
| 20384 | }; | 23186 | }; |
| 20385 | export const ServerNotification__FileChangePatchUpdatedNotification = Schema.Struct({ | 23187 | export const ServerRequest__CommandExecutionRequestApprovalParams = Schema.Struct({ |
| 20386 | changes: Schema.Array(ServerNotification__FileUpdateChange), | 23188 | approvalId: Schema.optionalKey( |
| 20387 | itemId: Schema.String, | 23189 | Schema.Union([ |
| 20388 | threadId: Schema.String, | 23190 | Schema.String.annotate({ |
| 20389 | turnId: Schema.String, | | |
| 20390 | }); | | |
| 20391 | | | |
| 20392 | export type ServerNotification__CollaborationMode = { | | |
| 20393 | readonly mode: ServerNotification__ModeKind; | | |
| 20394 | readonly settings: ServerNotification__Settings; | | |
| 20395 | }; | | |
| 20396 | export const ServerNotification__CollaborationMode = Schema.Struct({ | | |
| 20397 | mode: ServerNotification__ModeKind, | | |
| 20398 | settings: ServerNotification__Settings, | | |
| 20399 | }).annotate({ description: "Collaboration mode for a Codex session." }); | | |
| 20400 | | | |
| 20401 | export type ServerNotification__AccountRateLimitsUpdatedNotification = { | | |
| 20402 | readonly rateLimits: ServerNotification__RateLimitSnapshot; | | |
| 20403 | }; | | |
| 20404 | export const ServerNotification__AccountRateLimitsUpdatedNotification = Schema.Struct({ | | |
| 20405 | rateLimits: ServerNotification__RateLimitSnapshot, | | |
| 20406 | }).annotate({ | | |
| 20407 | description: | | |
| 20408 | "Sparse rolling rate-limit update.\n\nClients should merge available values into the most recent `account/rateLimits/read` response or refetch that snapshot. Nullable account metadata may be unavailable in a rolling update and does not clear a previously observed value.", | | |
| 20409 | }); | | |
| 20410 | | | |
| 20411 | export type ServerNotification__ThreadItem = | | |
| 20412 | | { | | |
| 20413 | readonly clientId?: string | null; | | |
| 20414 | readonly content: ReadonlyArray<ServerNotification__UserInput>; | | |
| 20415 | readonly id: string; | | |
| 20416 | readonly type: "userMessage"; | | |
| 20417 | } | | |
| 20418 | | { | | |
| 20419 | readonly fragments: ReadonlyArray<ServerNotification__HookPromptFragment>; | | |
| 20420 | readonly id: string; | | |
| 20421 | readonly type: "hookPrompt"; | | |
| 20422 | } | | |
| 20423 | | { | | |
| 20424 | readonly id: string; | | |
| 20425 | readonly memoryCitation?: ServerNotification__MemoryCitation | null; | | |
| 20426 | readonly phase?: ServerNotification__MessagePhase | null; | | |
| 20427 | readonly text: string; | | |
| 20428 | readonly delivery?: "async" | null; | | |
| 20429 | readonly questions?: ReadonlyArray<{ | | |
| 20430 | readonly title: string; | | |
| 20431 | readonly options?: ReadonlyArray<string> | null; | | |
| 20432 | }> | null; | | |
| 20433 | readonly type: "agentMessage"; | | |
| 20434 | } | | |
| 20435 | | { readonly id: string; readonly text: string; readonly type: "plan" } | | |
| 20436 | | { | | |
| 20437 | readonly content?: ReadonlyArray<string>; | | |
| 20438 | readonly id: string; | | |
| 20439 | readonly summary?: ReadonlyArray<string>; | | |
| 20440 | readonly type: "reasoning"; | | |
| 20441 | } | | |
| 20442 | | { | | |
| 20443 | readonly aggregatedOutput?: string | null; | | |
| 20444 | readonly command: string; | | |
| 20445 | readonly commandActions: ReadonlyArray<ServerNotification__CommandAction>; | | |
| 20446 | readonly cwd: string; | | |
| 20447 | readonly durationMs?: number | null; | | |
| 20448 | readonly exitCode?: number | null; | | |
| 20449 | readonly id: string; | | |
| 20450 | readonly processId?: string | null; | | |
| 20451 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; | | |
| 20452 | readonly status: ServerNotification__CommandExecutionStatus; | | |
| 20453 | readonly type: "commandExecution"; | | |
| 20454 | } | | |
| 20455 | | { | | |
| 20456 | readonly changes: ReadonlyArray<ServerNotification__FileUpdateChange>; | | |
| 20457 | readonly id: string; | | |
| 20458 | readonly status: ServerNotification__PatchApplyStatus; | | |
| 20459 | readonly type: "fileChange"; | | |
| 20460 | } | | |
| 20461 | | { | | |
| 20462 | readonly appContext?: ServerNotification__McpToolCallAppContext | null; | | |
| 20463 | readonly arguments: unknown; | | |
| 20464 | readonly durationMs?: number | null; | | |
| 20465 | readonly error?: ServerNotification__McpToolCallError | null; | | |
| 20466 | readonly id: string; | | |
| 20467 | readonly mcpAppResourceUri?: string | null; | | |
| 20468 | readonly pluginId?: string | null; | | |
| 20469 | readonly result?: ServerNotification__McpToolCallResult | null; | | |
| 20470 | readonly server: string; | | |
| 20471 | readonly status: ServerNotification__McpToolCallStatus; | | |
| 20472 | readonly tool: string; | | |
| 20473 | readonly type: "mcpToolCall"; | | |
| 20474 | } | | |
| 20475 | | { | | |
| 20476 | readonly arguments: unknown; | | |
| 20477 | readonly contentItems?: ReadonlyArray<ServerNotification__DynamicToolCallOutputContentItem> | null; | | |
| 20478 | readonly durationMs?: number | null; | | |
| 20479 | readonly id: string; | | |
| 20480 | readonly namespace?: string | null; | | |
| 20481 | readonly status: ServerNotification__DynamicToolCallStatus; | | |
| 20482 | readonly success?: boolean | null; | | |
| 20483 | readonly tool: string; | | |
| 20484 | readonly type: "dynamicToolCall"; | | |
| 20485 | } | | |
| 20486 | | { | | |
| 20487 | readonly agentsStates: { readonly [x: string]: ServerNotification__CollabAgentState }; | | |
| 20488 | readonly id: string; | | |
| 20489 | readonly model?: string | null; | | |
| 20490 | readonly prompt?: string | null; | | |
| 20491 | readonly reasoningEffort?: ServerNotification__ReasoningEffort | null; | | |
| 20492 | readonly receiverThreadIds: ReadonlyArray<string>; | | |
| 20493 | readonly senderThreadId: string; | | |
| 20494 | readonly status: "inProgress" | "completed" | "failed" | "interrupted"; | | |
| 20495 | readonly tool: | | |
| 20496 | | "spawnAgent" | | |
| 20497 | | "sendInput" | | |
| 20498 | | "resumeAgent" | | |
| 20499 | | "wait" | | |
| 20500 | | "closeAgent" | | |
| 20501 | | "sendMessage" | | |
| 20502 | | "followupTask" | | |
| 20503 | | "interruptAgent" | | |
| 20504 | | "listAgents"; | | |
| 20505 | readonly type: "collabAgentToolCall"; | | |
| 20506 | } | | |
| 20507 | | { | | |
| 20508 | readonly agentPath: string; | | |
| 20509 | readonly agentThreadId: string; | | |
| 20510 | readonly id: string; | | |
| 20511 | readonly kind: ServerNotification__SubAgentActivityKind; | | |
| 20512 | readonly type: "subAgentActivity"; | | |
| 20513 | } | | |
| 20514 | | { | | |
| 20515 | readonly action?: ServerNotification__WebSearchAction | null; | | |
| 20516 | readonly id: string; | | |
| 20517 | readonly query: string; | | |
| 20518 | readonly results?: ReadonlyArray<unknown> | null; | | |
| 20519 | readonly type: "webSearch"; | | |
| 20520 | } | | |
| 20521 | | { | | |
| 20522 | readonly id: string; | | |
| 20523 | readonly path: ServerNotification__LegacyAppPathString; | | |
| 20524 | readonly type: "imageView"; | | |
| 20525 | } | | |
| 20526 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | | |
| 20527 | | { | | |
| 20528 | readonly id: string; | | |
| 20529 | readonly result: string; | | |
| 20530 | readonly revisedPrompt?: string | null; | | |
| 20531 | readonly savedPath?: ServerNotification__AbsolutePathBuf | null; | | |
| 20532 | readonly status: string; | | |
| 20533 | readonly type: "imageGeneration"; | | |
| 20534 | } | | |
| 20535 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | | |
| 20536 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } | | |
| 20537 | | { readonly id: string; readonly type: "contextCompaction" }; | | |
| 20538 | export const ServerNotification__ThreadItem = Schema.Union( | | |
| 20539 | [ | | |
| 20540 | Schema.Struct({ | | |
| 20541 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 20542 | content: Schema.Array(ServerNotification__UserInput), | | |
| 20543 | id: Schema.String, | | |
| 20544 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), | | |
| 20545 | }).annotate({ title: "UserMessageThreadItem" }), | | |
| 20546 | Schema.Struct({ | | |
| 20547 | fragments: Schema.Array(ServerNotification__HookPromptFragment), | | |
| 20548 | id: Schema.String, | | |
| 20549 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | | |
| 20550 | }).annotate({ title: "HookPromptThreadItem" }), | | |
| 20551 | Schema.Struct({ | | |
| 20552 | id: Schema.String, | | |
| 20553 | memoryCitation: Schema.optionalKey( | | |
| 20554 | Schema.Union([ServerNotification__MemoryCitation, Schema.Null]), | | |
| 20555 | ), | | |
| 20556 | phase: Schema.optionalKey(Schema.Union([ServerNotification__MessagePhase, Schema.Null])), | | |
| 20557 | text: Schema.String, | | |
| 20558 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | | |
| 20559 | questions: Schema.optionalKey( | | |
| 20560 | Schema.Union([ | | |
| 20561 | Schema.Array( | | |
| 20562 | Schema.Struct({ | | |
| 20563 | title: Schema.String, | | |
| 20564 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 20565 | }), | | |
| 20566 | ), | | |
| 20567 | Schema.Null, | | |
| 20568 | ]), | | |
| 20569 | ), | | |
| 20570 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), | | |
| 20571 | }).annotate({ title: "AgentMessageThreadItem" }), | | |
| 20572 | Schema.Struct({ | | |
| 20573 | id: Schema.String, | | |
| 20574 | text: Schema.String, | | |
| 20575 | type: Schema.Literal("plan").annotate({ title: "PlanThreadItemType" }), | | |
| 20576 | }).annotate({ | | |
| 20577 | title: "PlanThreadItem", | | |
| 20578 | description: | | |
| 20579 | "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.", | | |
| 20580 | }), | | |
| 20581 | Schema.Struct({ | | |
| 20582 | content: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), | | |
| 20583 | id: Schema.String, | | |
| 20584 | summary: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), | | |
| 20585 | type: Schema.Literal("reasoning").annotate({ title: "ReasoningThreadItemType" }), | | |
| 20586 | }).annotate({ title: "ReasoningThreadItem" }), | | |
| 20587 | Schema.Struct({ | | |
| 20588 | aggregatedOutput: Schema.optionalKey( | | |
| 20589 | Schema.Union([ | | |
| 20590 | Schema.String.annotate({ | | |
| 20591 | description: "The command's output, aggregated from stdout and stderr.", | | |
| 20592 | }), | | |
| 20593 | Schema.Null, | | |
| 20594 | ]), | | |
| 20595 | ), | | |
| 20596 | command: Schema.String.annotate({ description: "The command to be executed." }), | | |
| 20597 | commandActions: Schema.Array(ServerNotification__CommandAction).annotate({ | | |
| 20598 | description: | | |
| 20599 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", | | |
| 20600 | }), | | |
| 20601 | cwd: Schema.String.annotate({ description: "The command's working directory." }), | | |
| 20602 | durationMs: Schema.optionalKey( | | |
| 20603 | Schema.Union([ | | |
| 20604 | Schema.Number.annotate({ | | |
| 20605 | description: "The duration of the command execution in milliseconds.", | | |
| 20606 | format: "int64", | | |
| 20607 | }).check(Schema.isInt()), | | |
| 20608 | Schema.Null, | | |
| 20609 | ]), | | |
| 20610 | ), | | |
| 20611 | exitCode: Schema.optionalKey( | | |
| 20612 | Schema.Union([ | | |
| 20613 | Schema.Number.annotate({ | | |
| 20614 | description: "The command's exit code.", | | |
| 20615 | format: "int32", | | |
| 20616 | }).check(Schema.isInt()), | | |
| 20617 | Schema.Null, | | |
| 20618 | ]), | | |
| 20619 | ), | | |
| 20620 | id: Schema.String, | | |
| 20621 | processId: Schema.optionalKey( | | |
| 20622 | Schema.Union([ | | |
| 20623 | Schema.String.annotate({ | | |
| 20624 | description: "Identifier for the underlying PTY process (when available).", | | |
| 20625 | }), | | |
| 20626 | Schema.Null, | | |
| 20627 | ]), | | |
| 20628 | ), | | |
| 20629 | source: Schema.optionalKey( | | |
| 20630 | Schema.Literals([ | | |
| 20631 | "agent", | | |
| 20632 | "userShell", | | |
| 20633 | "unifiedExecStartup", | | |
| 20634 | "unifiedExecInteraction", | | |
| 20635 | ]).annotate({ default: "agent" }), | | |
| 20636 | ), | | |
| 20637 | status: ServerNotification__CommandExecutionStatus, | | |
| 20638 | type: Schema.Literal("commandExecution").annotate({ | | |
| 20639 | title: "CommandExecutionThreadItemType", | | |
| 20640 | }), | | |
| 20641 | }).annotate({ title: "CommandExecutionThreadItem" }), | | |
| 20642 | Schema.Struct({ | | |
| 20643 | changes: Schema.Array(ServerNotification__FileUpdateChange), | | |
| 20644 | id: Schema.String, | | |
| 20645 | status: ServerNotification__PatchApplyStatus, | | |
| 20646 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), | | |
| 20647 | }).annotate({ title: "FileChangeThreadItem" }), | | |
| 20648 | Schema.Struct({ | | |
| 20649 | appContext: Schema.optionalKey( | | |
| 20650 | Schema.Union([ServerNotification__McpToolCallAppContext, Schema.Null]), | | |
| 20651 | ), | | |
| 20652 | arguments: Schema.Unknown, | | |
| 20653 | durationMs: Schema.optionalKey( | | |
| 20654 | Schema.Union([ | | |
| 20655 | Schema.Number.annotate({ | | |
| 20656 | description: "The duration of the MCP tool call in milliseconds.", | | |
| 20657 | format: "int64", | | |
| 20658 | }).check(Schema.isInt()), | | |
| 20659 | Schema.Null, | | |
| 20660 | ]), | | |
| 20661 | ), | | |
| 20662 | error: Schema.optionalKey(Schema.Union([ServerNotification__McpToolCallError, Schema.Null])), | | |
| 20663 | id: Schema.String, | | |
| 20664 | mcpAppResourceUri: Schema.optionalKey( | | |
| 20665 | Schema.Union([ | | |
| 20666 | Schema.String.annotate({ | | |
| 20667 | description: "Deprecated: use `appContext.resourceUri` instead.", | | |
| 20668 | }), | | |
| 20669 | Schema.Null, | | |
| 20670 | ]), | | |
| 20671 | ), | | |
| 20672 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 20673 | result: Schema.optionalKey( | | |
| 20674 | Schema.Union([ServerNotification__McpToolCallResult, Schema.Null]), | | |
| 20675 | ), | | |
| 20676 | server: Schema.String, | | |
| 20677 | status: ServerNotification__McpToolCallStatus, | | |
| 20678 | tool: Schema.String, | | |
| 20679 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), | | |
| 20680 | }).annotate({ title: "McpToolCallThreadItem" }), | | |
| 20681 | Schema.Struct({ | | |
| 20682 | arguments: Schema.Unknown, | | |
| 20683 | contentItems: Schema.optionalKey( | | |
| 20684 | Schema.Union([ | | |
| 20685 | Schema.Array(ServerNotification__DynamicToolCallOutputContentItem), | | |
| 20686 | Schema.Null, | | |
| 20687 | ]), | | |
| 20688 | ), | | |
| 20689 | durationMs: Schema.optionalKey( | | |
| 20690 | Schema.Union([ | | |
| 20691 | Schema.Number.annotate({ | | |
| 20692 | description: "The duration of the dynamic tool call in milliseconds.", | | |
| 20693 | format: "int64", | | |
| 20694 | }).check(Schema.isInt()), | | |
| 20695 | Schema.Null, | | |
| 20696 | ]), | | |
| 20697 | ), | | |
| 20698 | id: Schema.String, | | |
| 20699 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 20700 | status: ServerNotification__DynamicToolCallStatus, | | |
| 20701 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | | |
| 20702 | tool: Schema.String, | | |
| 20703 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), | | |
| 20704 | }).annotate({ title: "DynamicToolCallThreadItem" }), | | |
| 20705 | Schema.Struct({ | | |
| 20706 | agentsStates: Schema.Record(Schema.String, ServerNotification__CollabAgentState).annotate({ | | |
| 20707 | description: "Last known status of the target agents, when available.", | | |
| 20708 | }), | | |
| 20709 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), | | |
| 20710 | model: Schema.optionalKey( | | |
| 20711 | Schema.Union([ | | |
| 20712 | Schema.String.annotate({ | | |
| 20713 | description: "Model requested for the spawned agent, when applicable.", | | |
| 20714 | }), | | |
| 20715 | Schema.Null, | | |
| 20716 | ]), | | |
| 20717 | ), | | |
| 20718 | prompt: Schema.optionalKey( | | |
| 20719 | Schema.Union([ | | |
| 20720 | Schema.String.annotate({ | | |
| 20721 | description: "Prompt text sent as part of the collab tool call, when available.", | | |
| 20722 | }), | | |
| 20723 | Schema.Null, | | |
| 20724 | ]), | | |
| 20725 | ), | | |
| 20726 | reasoningEffort: Schema.optionalKey( | | |
| 20727 | Schema.Union([ServerNotification__ReasoningEffort, Schema.Null]).annotate({ | | |
| 20728 | description: "Reasoning effort requested for the spawned agent, when applicable.", | | |
| 20729 | }), | | |
| 20730 | ), | | |
| 20731 | receiverThreadIds: Schema.Array(Schema.String).annotate({ | | |
| 20732 | description: | 23191 | description: |
| 20733 | "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.", | 23192 | "Unique identifier for this specific approval callback.\n\nFor regular shell/unified_exec approvals, this is null.\n\nFor zsh-exec-bridge subcommand approvals, multiple callbacks can belong to one parent `itemId`, so `approvalId` is a distinct opaque callback id (a UUID) used to disambiguate routing.", |
| 20734 | }), | | |
| 20735 | senderThreadId: Schema.String.annotate({ | | |
| 20736 | description: "Thread ID of the agent issuing the collab request.", | | |
| 20737 | }), | | |
| 20738 | status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({ | | |
| 20739 | description: "Current status of the collab tool call.", | | |
| 20740 | }), | | |
| 20741 | tool: Schema.Literals([ | | |
| 20742 | "spawnAgent", | | |
| 20743 | "sendInput", | | |
| 20744 | "resumeAgent", | | |
| 20745 | "wait", | | |
| 20746 | "closeAgent", | | |
| 20747 | "sendMessage", | | |
| 20748 | "followupTask", | | |
| 20749 | "interruptAgent", | | |
| 20750 | "listAgents", | | |
| 20751 | ]).annotate({ description: "Name of the collab tool that was invoked." }), | | |
| 20752 | type: Schema.Literal("collabAgentToolCall").annotate({ | | |
| 20753 | title: "CollabAgentToolCallThreadItemType", | | |
| 20754 | }), | 23193 | }), |
| 20755 | }).annotate({ title: "CollabAgentToolCallThreadItem" }), | 23194 | Schema.Null, |
| 20756 | Schema.Struct({ | 23195 | ]), |
| 20757 | agentPath: Schema.String, | 23196 | ), |
| 20758 | agentThreadId: Schema.String, | 23197 | command: Schema.optionalKey( |
| 20759 | id: Schema.String, | 23198 | Schema.Union([ |
| 20760 | kind: ServerNotification__SubAgentActivityKind, | 23199 | Schema.String.annotate({ description: "The command to be executed." }), |
| 20761 | type: Schema.Literal("subAgentActivity").annotate({ | 23200 | Schema.Null, |
| 20762 | title: "SubAgentActivityThreadItemType", | 23201 | ]), |
| | 23202 | ), |
| | 23203 | commandActions: Schema.optionalKey( |
| | 23204 | Schema.Union([ |
| | 23205 | Schema.Array(ServerRequest__CommandAction).annotate({ |
| | 23206 | description: "Best-effort parsed command actions for friendly display.", |
| 20763 | }), | 23207 | }), |
| 20764 | }).annotate({ title: "SubAgentActivityThreadItem" }), | 23208 | Schema.Null, |
| 20765 | Schema.Struct({ | 23209 | ]), |
| 20766 | action: Schema.optionalKey(Schema.Union([ServerNotification__WebSearchAction, Schema.Null])), | 23210 | ), |
| 20767 | id: Schema.String, | 23211 | cwd: Schema.optionalKey( |
| 20768 | query: Schema.String, | 23212 | Schema.Union([ServerRequest__LegacyAppPathString, Schema.Null]).annotate({ |
| 20769 | results: Schema.optionalKey( | 23213 | description: "The command's working directory.", |
| 20770 | Schema.Union([ | | |
| 20771 | Schema.Array(Schema.Unknown).annotate({ | | |
| 20772 | description: | | |
| 20773 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", | | |
| 20774 | }), | | |
| 20775 | Schema.Null, | | |
| 20776 | ]), | | |
| 20777 | ), | | |
| 20778 | type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }), | | |
| 20779 | }).annotate({ title: "WebSearchThreadItem" }), | | |
| 20780 | Schema.Struct({ | | |
| 20781 | id: Schema.String, | | |
| 20782 | path: ServerNotification__LegacyAppPathString, | | |
| 20783 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), | | |
| 20784 | }).annotate({ title: "ImageViewThreadItem" }), | | |
| 20785 | Schema.Struct({ | | |
| 20786 | durationMs: Schema.Number.annotate({ format: "uint64" }) | | |
| 20787 | .check(Schema.isInt()) | | |
| 20788 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 20789 | id: Schema.String, | | |
| 20790 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), | | |
| 20791 | }).annotate({ | | |
| 20792 | title: "SleepThreadItem", | | |
| 20793 | description: "Display item emitted by the interruptible `clock.sleep` tool.", | | |
| 20794 | }), | 23214 | }), |
| 20795 | Schema.Struct({ | 23215 | ), |
| 20796 | id: Schema.String, | 23216 | environmentId: Schema.optionalKey( |
| 20797 | result: Schema.String, | 23217 | Schema.Union([ |
| 20798 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 23218 | Schema.String.annotate({ description: "Environment in which the command will run." }), |
| 20799 | savedPath: Schema.optionalKey( | 23219 | Schema.Null, |
| 20800 | Schema.Union([ServerNotification__AbsolutePathBuf, Schema.Null]), | 23220 | ]), |
| 20801 | ), | 23221 | ), |
| 20802 | status: Schema.String, | 23222 | itemId: Schema.String, |
| 20803 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 23223 | networkApprovalContext: Schema.optionalKey( |
| 20804 | }).annotate({ title: "ImageGenerationThreadItem" }), | 23224 | Schema.Union([ServerRequest__NetworkApprovalContext, Schema.Null]).annotate({ |
| 20805 | Schema.Struct({ | 23225 | description: "Optional context for a managed-network approval prompt.", |
| 20806 | id: Schema.String, | 23226 | }), |
| 20807 | review: Schema.String, | 23227 | ), |
| 20808 | type: Schema.Literal("enteredReviewMode").annotate({ | 23228 | proposedExecpolicyAmendment: Schema.optionalKey( |
| 20809 | title: "EnteredReviewModeThreadItemType", | 23229 | Schema.Union([ |
| 20810 | }), | 23230 | Schema.Array(Schema.String).annotate({ |
| 20811 | }).annotate({ title: "EnteredReviewModeThreadItem" }), | 23231 | description: |
| 20812 | Schema.Struct({ | 23232 | "Optional proposed execpolicy amendment to allow similar commands without prompting.", |
| 20813 | id: Schema.String, | | |
| 20814 | review: Schema.String, | | |
| 20815 | type: Schema.Literal("exitedReviewMode").annotate({ | | |
| 20816 | title: "ExitedReviewModeThreadItemType", | | |
| 20817 | }), | | |
| 20818 | }).annotate({ title: "ExitedReviewModeThreadItem" }), | | |
| 20819 | Schema.Struct({ | | |
| 20820 | id: Schema.String, | | |
| 20821 | type: Schema.Literal("contextCompaction").annotate({ | | |
| 20822 | title: "ContextCompactionThreadItemType", | | |
| 20823 | }), | 23233 | }), |
| 20824 | }).annotate({ title: "ContextCompactionThreadItem" }), | 23234 | Schema.Null, |
| 20825 | ], | 23235 | ]), |
| 20826 | { mode: "oneOf" }, | 23236 | ), |
| 20827 | ); | 23237 | proposedNetworkPolicyAmendments: Schema.optionalKey( |
| 20828 | | | |
| 20829 | export type ServerNotification__ConfigWarningNotification = { | | |
| 20830 | readonly details?: string | null; | | |
| 20831 | readonly path?: string | null; | | |
| 20832 | readonly range?: ServerNotification__TextRange | null; | | |
| 20833 | readonly summary: string; | | |
| 20834 | }; | | |
| 20835 | export const ServerNotification__ConfigWarningNotification = Schema.Struct({ | | |
| 20836 | details: Schema.optionalKey( | | |
| 20837 | Schema.Union([ | 23238 | Schema.Union([ |
| 20838 | Schema.String.annotate({ description: "Optional extra guidance or error details." }), | 23239 | Schema.Array(ServerRequest__NetworkPolicyAmendment).annotate({ |
| | 23240 | description: |
| | 23241 | "Optional proposed network policy amendments (allow/deny host) for future requests.", |
| | 23242 | }), |
| 20839 | Schema.Null, | 23243 | Schema.Null, |
| 20840 | ]), | 23244 | ]), |
| 20841 | ), | 23245 | ), |
| 20842 | path: Schema.optionalKey( | 23246 | reason: Schema.optionalKey( |
| 20843 | Schema.Union([ | 23247 | Schema.Union([ |
| 20844 | Schema.String.annotate({ | 23248 | Schema.String.annotate({ |
| 20845 | description: "Optional path to the config file that triggered the warning.", | 23249 | description: "Optional explanatory reason (e.g. request for network access).", |
| 20846 | }), | 23250 | }), |
| 20847 | Schema.Null, | 23251 | Schema.Null, |
| 20848 | ]), | 23252 | ]), |
| 20849 | ), | 23253 | ), |
| 20850 | range: Schema.optionalKey( | 23254 | startedAtMs: Schema.Number.annotate({ |
| 20851 | Schema.Union([ServerNotification__TextRange, Schema.Null]).annotate({ | 23255 | description: "Unix timestamp (in milliseconds) when this approval request started.", |
| 20852 | description: "Optional range for the error location inside the config file.", | 23256 | format: "int64", |
| 20853 | }), | 23257 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 20854 | ), | | |
| 20855 | summary: Schema.String.annotate({ description: "Concise summary of the warning." }), | | |
| 20856 | }); | | |
| 20857 | | | |
| 20858 | export type ServerNotification__ThreadStatusChangedNotification = { | | |
| 20859 | readonly status: ServerNotification__ThreadStatus; | | |
| 20860 | readonly threadId: string; | | |
| 20861 | }; | | |
| 20862 | export const ServerNotification__ThreadStatusChangedNotification = Schema.Struct({ | | |
| 20863 | status: ServerNotification__ThreadStatus, | | |
| 20864 | threadId: Schema.String, | 23258 | threadId: Schema.String, |
| 20865 | }); | | |
| 20866 | | | |
| 20867 | export type ServerNotification__ThreadGoalUpdatedNotification = { | | |
| 20868 | readonly goal: ServerNotification__ThreadGoal; | | |
| 20869 | readonly threadId: string; | | |
| 20870 | readonly turnId?: string | null; | | |
| 20871 | }; | | |
| 20872 | export const ServerNotification__ThreadGoalUpdatedNotification = Schema.Struct({ | | |
| 20873 | goal: ServerNotification__ThreadGoal, | | |
| 20874 | threadId: Schema.String, | | |
| 20875 | turnId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 20876 | }); | | |
| 20877 | | | |
| 20878 | export type ServerNotification__ThreadTokenUsageUpdatedNotification = { | | |
| 20879 | readonly threadId: string; | | |
| 20880 | readonly tokenUsage: ServerNotification__ThreadTokenUsage; | | |
| 20881 | readonly turnId: string; | | |
| 20882 | }; | | |
| 20883 | export const ServerNotification__ThreadTokenUsageUpdatedNotification = Schema.Struct({ | | |
| 20884 | threadId: Schema.String, | | |
| 20885 | tokenUsage: ServerNotification__ThreadTokenUsage, | | |
| 20886 | turnId: Schema.String, | 23259 | turnId: Schema.String, |
| 20887 | }); | 23260 | }).annotate({ identifier: "ServerRequest__CommandExecutionRequestApprovalParams" }); |
| 20888 | | 23261 | |
| 20889 | export type ServerNotification__TurnPlanUpdatedNotification = { | 23262 | export type ServerRequest__ToolRequestUserInputParams = { |
| 20890 | readonly explanation?: string | null; | 23263 | readonly autoResolutionMs?: number | null; |
| 20891 | readonly plan: ReadonlyArray<ServerNotification__TurnPlanStep>; | 23264 | readonly itemId: string; |
| | 23265 | readonly questions: ReadonlyArray<ServerRequest__ToolRequestUserInputQuestion>; |
| 20892 | readonly threadId: string; | 23266 | readonly threadId: string; |
| 20893 | readonly turnId: string; | 23267 | readonly turnId: string; |
| 20894 | }; | 23268 | }; |
| 20895 | export const ServerNotification__TurnPlanUpdatedNotification = Schema.Struct({ | 23269 | export const ServerRequest__ToolRequestUserInputParams = Schema.Struct({ |
| 20896 | explanation: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 23270 | autoResolutionMs: Schema.optionalKey( |
| 20897 | plan: Schema.Array(ServerNotification__TurnPlanStep), | | |
| 20898 | threadId: Schema.String, | | |
| 20899 | turnId: Schema.String, | | |
| 20900 | }); | | |
| 20901 | | | |
| 20902 | export type ServerRequest__FileSystemPath = | | |
| 20903 | | { readonly path: ServerRequest__LegacyAppPathString; readonly type: "path" } | | |
| 20904 | | { readonly pattern: string; readonly type: "glob_pattern" } | | |
| 20905 | | { readonly type: "special"; readonly value: ServerRequest__FileSystemSpecialPath }; | | |
| 20906 | export const ServerRequest__FileSystemPath = Schema.Union( | | |
| 20907 | [ | | |
| 20908 | Schema.Struct({ | | |
| 20909 | path: ServerRequest__LegacyAppPathString, | | |
| 20910 | type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }), | | |
| 20911 | }).annotate({ title: "PathFileSystemPath" }), | | |
| 20912 | Schema.Struct({ | | |
| 20913 | pattern: Schema.String, | | |
| 20914 | type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }), | | |
| 20915 | }).annotate({ title: "GlobPatternFileSystemPath" }), | | |
| 20916 | Schema.Struct({ | | |
| 20917 | type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }), | | |
| 20918 | value: ServerRequest__FileSystemSpecialPath, | | |
| 20919 | }).annotate({ title: "SpecialFileSystemPath" }), | | |
| 20920 | ], | | |
| 20921 | { mode: "oneOf" }, | | |
| 20922 | ); | | |
| 20923 | | | |
| 20924 | export type ServerRequest__McpElicitationTitledMultiSelectEnumSchema = { | | |
| 20925 | readonly default?: ReadonlyArray<string> | null; | | |
| 20926 | readonly description?: string | null; | | |
| 20927 | readonly items: ServerRequest__McpElicitationTitledEnumItems; | | |
| 20928 | readonly maxItems?: number | null; | | |
| 20929 | readonly minItems?: number | null; | | |
| 20930 | readonly title?: string | null; | | |
| 20931 | readonly type: ServerRequest__McpElicitationArrayType; | | |
| 20932 | }; | | |
| 20933 | export const ServerRequest__McpElicitationTitledMultiSelectEnumSchema = Schema.Struct({ | | |
| 20934 | default: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 20935 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 20936 | items: ServerRequest__McpElicitationTitledEnumItems, | | |
| 20937 | maxItems: Schema.optionalKey( | | |
| 20938 | Schema.Union([ | | |
| 20939 | Schema.Number.annotate({ format: "uint64" }) | | |
| 20940 | .check(Schema.isInt()) | | |
| 20941 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 20942 | Schema.Null, | | |
| 20943 | ]), | | |
| 20944 | ), | | |
| 20945 | minItems: Schema.optionalKey( | | |
| 20946 | Schema.Union([ | 23271 | Schema.Union([ |
| 20947 | Schema.Number.annotate({ format: "uint64" }) | 23272 | Schema.Number.annotate({ format: "uint64" }) |
| 20948 | .check(Schema.isInt()) | 23273 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 20949 | .check(Schema.isGreaterThanOrEqualTo(0)), | 23274 | .check( |
| | 23275 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 23276 | expected: "a value greater than or equal to 0", |
| | 23277 | }), |
| | 23278 | ), |
| 20950 | Schema.Null, | 23279 | Schema.Null, |
| 20951 | ]), | 23280 | ]), |
| 20952 | ), | 23281 | ), |
| 20953 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 23282 | itemId: Schema.String, |
| 20954 | type: ServerRequest__McpElicitationArrayType, | 23283 | questions: Schema.Array(ServerRequest__ToolRequestUserInputQuestion), |
| | 23284 | threadId: Schema.String, |
| | 23285 | turnId: Schema.String, |
| | 23286 | }).annotate({ |
| | 23287 | description: "EXPERIMENTAL. Params sent with a request_user_input event.", |
| | 23288 | identifier: "ServerRequest__ToolRequestUserInputParams", |
| 20955 | }); | 23289 | }); |
| 20956 | | 23290 | |
| 20957 | export type ServerRequest__McpElicitationUntitledMultiSelectEnumSchema = { | 23291 | export type ServerRequest__McpElicitationUntitledMultiSelectEnumSchema = { |
| ... | @@ -20970,22 +23304,30 @@ export const ServerRequest__McpElicitationUntitledMultiSelectEnumSchema = Schema | ... | @@ -20970,22 +23304,30 @@ export const ServerRequest__McpElicitationUntitledMultiSelectEnumSchema = Schema |
| 20970 | maxItems: Schema.optionalKey( | 23304 | maxItems: Schema.optionalKey( |
| 20971 | Schema.Union([ | 23305 | Schema.Union([ |
| 20972 | Schema.Number.annotate({ format: "uint64" }) | 23306 | Schema.Number.annotate({ format: "uint64" }) |
| 20973 | .check(Schema.isInt()) | 23307 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 20974 | .check(Schema.isGreaterThanOrEqualTo(0)), | 23308 | .check( |
| | 23309 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 23310 | expected: "a value greater than or equal to 0", |
| | 23311 | }), |
| | 23312 | ), |
| 20975 | Schema.Null, | 23313 | Schema.Null, |
| 20976 | ]), | 23314 | ]), |
| 20977 | ), | 23315 | ), |
| 20978 | minItems: Schema.optionalKey( | 23316 | minItems: Schema.optionalKey( |
| 20979 | Schema.Union([ | 23317 | Schema.Union([ |
| 20980 | Schema.Number.annotate({ format: "uint64" }) | 23318 | Schema.Number.annotate({ format: "uint64" }) |
| 20981 | .check(Schema.isInt()) | 23319 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 20982 | .check(Schema.isGreaterThanOrEqualTo(0)), | 23320 | .check( |
| | 23321 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 23322 | expected: "a value greater than or equal to 0", |
| | 23323 | }), |
| | 23324 | ), |
| 20983 | Schema.Null, | 23325 | Schema.Null, |
| 20984 | ]), | 23326 | ]), |
| 20985 | ), | 23327 | ), |
| 20986 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 23328 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 20987 | type: ServerRequest__McpElicitationArrayType, | 23329 | type: ServerRequest__McpElicitationArrayType, |
| 20988 | }); | 23330 | }).annotate({ identifier: "ServerRequest__McpElicitationUntitledMultiSelectEnumSchema" }); |
| 20989 | | 23331 | |
| 20990 | export type ServerRequest__McpElicitationSingleSelectEnumSchema = | 23332 | export type ServerRequest__McpElicitationSingleSelectEnumSchema = |
| 20991 | | ServerRequest__McpElicitationUntitledSingleSelectEnumSchema | 23333 | | ServerRequest__McpElicitationUntitledSingleSelectEnumSchema |
| ... | @@ -20993,119 +23335,48 @@ export type ServerRequest__McpElicitationSingleSelectEnumSchema = | ... | @@ -20993,119 +23335,48 @@ export type ServerRequest__McpElicitationSingleSelectEnumSchema = |
| 20993 | export const ServerRequest__McpElicitationSingleSelectEnumSchema = Schema.Union([ | 23335 | export const ServerRequest__McpElicitationSingleSelectEnumSchema = Schema.Union([ |
| 20994 | ServerRequest__McpElicitationUntitledSingleSelectEnumSchema, | 23336 | ServerRequest__McpElicitationUntitledSingleSelectEnumSchema, |
| 20995 | ServerRequest__McpElicitationTitledSingleSelectEnumSchema, | 23337 | ServerRequest__McpElicitationTitledSingleSelectEnumSchema, |
| 20996 | ]); | 23338 | ]).annotate({ identifier: "ServerRequest__McpElicitationSingleSelectEnumSchema" }); |
| 20997 | | 23339 | |
| 20998 | export type ServerRequest__CommandExecutionRequestApprovalParams = { | 23340 | export type ServerRequest__McpElicitationTitledMultiSelectEnumSchema = { |
| 20999 | readonly approvalId?: string | null; | 23341 | readonly default?: ReadonlyArray<string> | null; |
| 21000 | readonly command?: string | null; | 23342 | readonly description?: string | null; |
| 21001 | readonly commandActions?: ReadonlyArray<ServerRequest__CommandAction> | null; | 23343 | readonly items: ServerRequest__McpElicitationTitledEnumItems; |
| 21002 | readonly cwd?: ServerRequest__LegacyAppPathString | null; | 23344 | readonly maxItems?: number | null; |
| 21003 | readonly environmentId?: string | null; | 23345 | readonly minItems?: number | null; |
| 21004 | readonly itemId: string; | 23346 | readonly title?: string | null; |
| 21005 | readonly networkApprovalContext?: ServerRequest__NetworkApprovalContext | null; | 23347 | readonly type: ServerRequest__McpElicitationArrayType; |
| 21006 | readonly proposedExecpolicyAmendment?: ReadonlyArray<string> | null; | | |
| 21007 | readonly proposedNetworkPolicyAmendments?: ReadonlyArray<ServerRequest__NetworkPolicyAmendment> | null; | | |
| 21008 | readonly reason?: string | null; | | |
| 21009 | readonly startedAtMs: number; | | |
| 21010 | readonly threadId: string; | | |
| 21011 | readonly turnId: string; | | |
| 21012 | }; | 23348 | }; |
| 21013 | export const ServerRequest__CommandExecutionRequestApprovalParams = Schema.Struct({ | 23349 | export const ServerRequest__McpElicitationTitledMultiSelectEnumSchema = Schema.Struct({ |
| 21014 | approvalId: Schema.optionalKey( | 23350 | default: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| 21015 | Schema.Union([ | 23351 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 21016 | Schema.String.annotate({ | 23352 | items: ServerRequest__McpElicitationTitledEnumItems, |
| 21017 | description: | 23353 | maxItems: Schema.optionalKey( |
| 21018 | "Unique identifier for this specific approval callback.\n\nFor regular shell/unified_exec approvals, this is null.\n\nFor zsh-exec-bridge subcommand approvals, multiple callbacks can belong to one parent `itemId`, so `approvalId` is a distinct opaque callback id (a UUID) used to disambiguate routing.", | | |
| 21019 | }), | | |
| 21020 | Schema.Null, | | |
| 21021 | ]), | | |
| 21022 | ), | | |
| 21023 | command: Schema.optionalKey( | | |
| 21024 | Schema.Union([ | | |
| 21025 | Schema.String.annotate({ description: "The command to be executed." }), | | |
| 21026 | Schema.Null, | | |
| 21027 | ]), | | |
| 21028 | ), | | |
| 21029 | commandActions: Schema.optionalKey( | | |
| 21030 | Schema.Union([ | | |
| 21031 | Schema.Array(ServerRequest__CommandAction).annotate({ | | |
| 21032 | description: "Best-effort parsed command actions for friendly display.", | | |
| 21033 | }), | | |
| 21034 | Schema.Null, | | |
| 21035 | ]), | | |
| 21036 | ), | | |
| 21037 | cwd: Schema.optionalKey( | | |
| 21038 | Schema.Union([ServerRequest__LegacyAppPathString, Schema.Null]).annotate({ | | |
| 21039 | description: "The command's working directory.", | | |
| 21040 | }), | | |
| 21041 | ), | | |
| 21042 | environmentId: Schema.optionalKey( | | |
| 21043 | Schema.Union([ | | |
| 21044 | Schema.String.annotate({ description: "Environment in which the command will run." }), | | |
| 21045 | Schema.Null, | | |
| 21046 | ]), | | |
| 21047 | ), | | |
| 21048 | itemId: Schema.String, | | |
| 21049 | networkApprovalContext: Schema.optionalKey( | | |
| 21050 | Schema.Union([ServerRequest__NetworkApprovalContext, Schema.Null]).annotate({ | | |
| 21051 | description: "Optional context for a managed-network approval prompt.", | | |
| 21052 | }), | | |
| 21053 | ), | | |
| 21054 | proposedExecpolicyAmendment: Schema.optionalKey( | | |
| 21055 | Schema.Union([ | | |
| 21056 | Schema.Array(Schema.String).annotate({ | | |
| 21057 | description: | | |
| 21058 | "Optional proposed execpolicy amendment to allow similar commands without prompting.", | | |
| 21059 | }), | | |
| 21060 | Schema.Null, | | |
| 21061 | ]), | | |
| 21062 | ), | | |
| 21063 | proposedNetworkPolicyAmendments: Schema.optionalKey( | | |
| 21064 | Schema.Union([ | | |
| 21065 | Schema.Array(ServerRequest__NetworkPolicyAmendment).annotate({ | | |
| 21066 | description: | | |
| 21067 | "Optional proposed network policy amendments (allow/deny host) for future requests.", | | |
| 21068 | }), | | |
| 21069 | Schema.Null, | | |
| 21070 | ]), | | |
| 21071 | ), | | |
| 21072 | reason: Schema.optionalKey( | | |
| 21073 | Schema.Union([ | 23354 | Schema.Union([ |
| 21074 | Schema.String.annotate({ | 23355 | Schema.Number.annotate({ format: "uint64" }) |
| 21075 | description: "Optional explanatory reason (e.g. request for network access).", | 23356 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 21076 | }), | 23357 | .check( |
| | 23358 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 23359 | expected: "a value greater than or equal to 0", |
| | 23360 | }), |
| | 23361 | ), |
| 21077 | Schema.Null, | 23362 | Schema.Null, |
| 21078 | ]), | 23363 | ]), |
| 21079 | ), | 23364 | ), |
| 21080 | startedAtMs: Schema.Number.annotate({ | 23365 | minItems: Schema.optionalKey( |
| 21081 | description: "Unix timestamp (in milliseconds) when this approval request started.", | | |
| 21082 | format: "int64", | | |
| 21083 | }).check(Schema.isInt()), | | |
| 21084 | threadId: Schema.String, | | |
| 21085 | turnId: Schema.String, | | |
| 21086 | }); | | |
| 21087 | | | |
| 21088 | export type ServerRequest__ToolRequestUserInputParams = { | | |
| 21089 | readonly autoResolutionMs?: number | null; | | |
| 21090 | readonly itemId: string; | | |
| 21091 | readonly questions: ReadonlyArray<ServerRequest__ToolRequestUserInputQuestion>; | | |
| 21092 | readonly threadId: string; | | |
| 21093 | readonly turnId: string; | | |
| 21094 | }; | | |
| 21095 | export const ServerRequest__ToolRequestUserInputParams = Schema.Struct({ | | |
| 21096 | autoResolutionMs: Schema.optionalKey( | | |
| 21097 | Schema.Union([ | 23366 | Schema.Union([ |
| 21098 | Schema.Number.annotate({ format: "uint64" }) | 23367 | Schema.Number.annotate({ format: "uint64" }) |
| 21099 | .check(Schema.isInt()) | 23368 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 21100 | .check(Schema.isGreaterThanOrEqualTo(0)), | 23369 | .check( |
| | 23370 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 23371 | expected: "a value greater than or equal to 0", |
| | 23372 | }), |
| | 23373 | ), |
| 21101 | Schema.Null, | 23374 | Schema.Null, |
| 21102 | ]), | 23375 | ]), |
| 21103 | ), | 23376 | ), |
| 21104 | itemId: Schema.String, | 23377 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 21105 | questions: Schema.Array(ServerRequest__ToolRequestUserInputQuestion), | 23378 | type: ServerRequest__McpElicitationArrayType, |
| 21106 | threadId: Schema.String, | 23379 | }).annotate({ identifier: "ServerRequest__McpElicitationTitledMultiSelectEnumSchema" }); |
| 21107 | turnId: Schema.String, | | |
| 21108 | }).annotate({ description: "EXPERIMENTAL. Params sent with a request_user_input event." }); | | |
| 21109 | | 23380 | |
| 21110 | export type V2AppListUpdatedNotification__AppInfo = { | 23381 | export type V2AppListUpdatedNotification__AppInfo = { |
| 21111 | readonly appMetadata?: V2AppListUpdatedNotification__AppMetadata | null; | 23382 | readonly appMetadata?: V2AppListUpdatedNotification__AppMetadata | null; |
| ... | @@ -21156,7 +23427,10 @@ export const V2AppListUpdatedNotification__AppInfo = Schema.Struct({ | ... | @@ -21156,7 +23427,10 @@ export const V2AppListUpdatedNotification__AppInfo = Schema.Struct({ |
| 21156 | logoUrlDark: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 23427 | logoUrlDark: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 21157 | name: Schema.String, | 23428 | name: Schema.String, |
| 21158 | pluginDisplayNames: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), | 23429 | pluginDisplayNames: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| 21159 | }).annotate({ description: "EXPERIMENTAL - app metadata returned by app-list APIs." }); | 23430 | }).annotate({ |
| | 23431 | description: "EXPERIMENTAL - app metadata returned by app-list APIs.", |
| | 23432 | identifier: "V2AppListUpdatedNotification__AppInfo", |
| | 23433 | }); |
| 21160 | | 23434 | |
| 21161 | export type V2AppsListResponse__AppInfo = { | 23435 | export type V2AppsListResponse__AppInfo = { |
| 21162 | readonly appMetadata?: V2AppsListResponse__AppMetadata | null; | 23436 | readonly appMetadata?: V2AppsListResponse__AppMetadata | null; |
| ... | @@ -21203,20 +23477,32 @@ export const V2AppsListResponse__AppInfo = Schema.Struct({ | ... | @@ -21203,20 +23477,32 @@ export const V2AppsListResponse__AppInfo = Schema.Struct({ |
| 21203 | logoUrlDark: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 23477 | logoUrlDark: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 21204 | name: Schema.String, | 23478 | name: Schema.String, |
| 21205 | pluginDisplayNames: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), | 23479 | pluginDisplayNames: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| 21206 | }).annotate({ description: "EXPERIMENTAL - app metadata returned by app-list APIs." }); | 23480 | }).annotate({ |
| | 23481 | description: "EXPERIMENTAL - app metadata returned by app-list APIs.", |
| | 23482 | identifier: "V2AppsListResponse__AppInfo", |
| | 23483 | }); |
| | 23484 | |
| | 23485 | export type V2ConfigReadResponse__ToolsV2 = { |
| | 23486 | readonly web_search?: V2ConfigReadResponse__WebSearchToolConfig | null; |
| | 23487 | }; |
| | 23488 | export const V2ConfigReadResponse__ToolsV2 = Schema.Struct({ |
| | 23489 | web_search: Schema.optionalKey( |
| | 23490 | Schema.Union([V2ConfigReadResponse__WebSearchToolConfig, Schema.Null]), |
| | 23491 | ), |
| | 23492 | }).annotate({ identifier: "V2ConfigReadResponse__ToolsV2" }); |
| 21207 | | 23493 | |
| 21208 | export type V2ConfigReadResponse__ConfigLayer = { | 23494 | export type V2ConfigReadResponse__ConfigLayer = { |
| 21209 | readonly config: unknown; | 23495 | readonly config: Schema.Json; |
| 21210 | readonly disabledReason?: string | null; | 23496 | readonly disabledReason?: string | null; |
| 21211 | readonly name: V2ConfigReadResponse__ConfigLayerSource; | 23497 | readonly name: V2ConfigReadResponse__ConfigLayerSource; |
| 21212 | readonly version: string; | 23498 | readonly version: string; |
| 21213 | }; | 23499 | }; |
| 21214 | export const V2ConfigReadResponse__ConfigLayer = Schema.Struct({ | 23500 | export const V2ConfigReadResponse__ConfigLayer = Schema.Struct({ |
| 21215 | config: Schema.Unknown, | 23501 | config: Schema.Json.annotate({ expected: "JSON value" }), |
| 21216 | disabledReason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 23502 | disabledReason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 21217 | name: V2ConfigReadResponse__ConfigLayerSource, | 23503 | name: V2ConfigReadResponse__ConfigLayerSource, |
| 21218 | version: Schema.String, | 23504 | version: Schema.String, |
| 21219 | }); | 23505 | }).annotate({ identifier: "V2ConfigReadResponse__ConfigLayer" }); |
| 21220 | | 23506 | |
| 21221 | export type V2ConfigReadResponse__ConfigLayerMetadata = { | 23507 | export type V2ConfigReadResponse__ConfigLayerMetadata = { |
| 21222 | readonly name: V2ConfigReadResponse__ConfigLayerSource; | 23508 | readonly name: V2ConfigReadResponse__ConfigLayerSource; |
| ... | @@ -21225,16 +23511,7 @@ export type V2ConfigReadResponse__ConfigLayerMetadata = { | ... | @@ -21225,16 +23511,7 @@ export type V2ConfigReadResponse__ConfigLayerMetadata = { |
| 21225 | export const V2ConfigReadResponse__ConfigLayerMetadata = Schema.Struct({ | 23511 | export const V2ConfigReadResponse__ConfigLayerMetadata = Schema.Struct({ |
| 21226 | name: V2ConfigReadResponse__ConfigLayerSource, | 23512 | name: V2ConfigReadResponse__ConfigLayerSource, |
| 21227 | version: Schema.String, | 23513 | version: Schema.String, |
| 21228 | }); | 23514 | }).annotate({ identifier: "V2ConfigReadResponse__ConfigLayerMetadata" }); |
| 21229 | | | |
| 21230 | export type V2ConfigReadResponse__ToolsV2 = { | | |
| 21231 | readonly web_search?: V2ConfigReadResponse__WebSearchToolConfig | null; | | |
| 21232 | }; | | |
| 21233 | export const V2ConfigReadResponse__ToolsV2 = Schema.Struct({ | | |
| 21234 | web_search: Schema.optionalKey( | | |
| 21235 | Schema.Union([V2ConfigReadResponse__WebSearchToolConfig, Schema.Null]), | | |
| 21236 | ), | | |
| 21237 | }); | | |
| 21238 | | 23515 | |
| 21239 | export type V2ConfigRequirementsReadResponse__ModelsRequirements = { | 23516 | export type V2ConfigRequirementsReadResponse__ModelsRequirements = { |
| 21240 | readonly newThread?: V2ConfigRequirementsReadResponse__NewThreadModelDefaults | null; | 23517 | readonly newThread?: V2ConfigRequirementsReadResponse__NewThreadModelDefaults | null; |
| ... | @@ -21243,7 +23520,7 @@ export const V2ConfigRequirementsReadResponse__ModelsRequirements = Schema.Struc | ... | @@ -21243,7 +23520,7 @@ export const V2ConfigRequirementsReadResponse__ModelsRequirements = Schema.Struc |
| 21243 | newThread: Schema.optionalKey( | 23520 | newThread: Schema.optionalKey( |
| 21244 | Schema.Union([V2ConfigRequirementsReadResponse__NewThreadModelDefaults, Schema.Null]), | 23521 | Schema.Union([V2ConfigRequirementsReadResponse__NewThreadModelDefaults, Schema.Null]), |
| 21245 | ), | 23522 | ), |
| 21246 | }); | 23523 | }).annotate({ identifier: "V2ConfigRequirementsReadResponse__ModelsRequirements" }); |
| 21247 | | 23524 | |
| 21248 | export type V2ConfigWriteResponse__ConfigLayerMetadata = { | 23525 | export type V2ConfigWriteResponse__ConfigLayerMetadata = { |
| 21249 | readonly name: V2ConfigWriteResponse__ConfigLayerSource; | 23526 | readonly name: V2ConfigWriteResponse__ConfigLayerSource; |
| ... | @@ -21252,7 +23529,7 @@ export type V2ConfigWriteResponse__ConfigLayerMetadata = { | ... | @@ -21252,7 +23529,7 @@ export type V2ConfigWriteResponse__ConfigLayerMetadata = { |
| 21252 | export const V2ConfigWriteResponse__ConfigLayerMetadata = Schema.Struct({ | 23529 | export const V2ConfigWriteResponse__ConfigLayerMetadata = Schema.Struct({ |
| 21253 | name: V2ConfigWriteResponse__ConfigLayerSource, | 23530 | name: V2ConfigWriteResponse__ConfigLayerSource, |
| 21254 | version: Schema.String, | 23531 | version: Schema.String, |
| 21255 | }); | 23532 | }).annotate({ identifier: "V2ConfigWriteResponse__ConfigLayerMetadata" }); |
| 21256 | | 23533 | |
| 21257 | export type V2ErrorNotification__TurnError = { | 23534 | export type V2ErrorNotification__TurnError = { |
| 21258 | readonly additionalDetails?: string | null; | 23535 | readonly additionalDetails?: string | null; |
| ... | @@ -21265,7 +23542,7 @@ export const V2ErrorNotification__TurnError = Schema.Struct({ | ... | @@ -21265,7 +23542,7 @@ export const V2ErrorNotification__TurnError = Schema.Struct({ |
| 21265 | Schema.Union([V2ErrorNotification__CodexErrorInfo, Schema.Null]), | 23542 | Schema.Union([V2ErrorNotification__CodexErrorInfo, Schema.Null]), |
| 21266 | ), | 23543 | ), |
| 21267 | message: Schema.String, | 23544 | message: Schema.String, |
| 21268 | }); | 23545 | }).annotate({ identifier: "V2ErrorNotification__TurnError" }); |
| 21269 | | 23546 | |
| 21270 | export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem = { | 23547 | export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem = { |
| 21271 | readonly cwd?: string | null; | 23548 | readonly cwd?: string | null; |
| ... | @@ -21288,6 +23565,8 @@ export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationIt | ... | @@ -21288,6 +23565,8 @@ export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationIt |
| 21288 | Schema.Union([V2ExternalAgentConfigDetectResponse__MigrationDetails, Schema.Null]), | 23565 | Schema.Union([V2ExternalAgentConfigDetectResponse__MigrationDetails, Schema.Null]), |
| 21289 | ), | 23566 | ), |
| 21290 | itemType: V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType, | 23567 | itemType: V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType, |
| | 23568 | }).annotate({ |
| | 23569 | identifier: "V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem", |
| 21291 | }); | 23570 | }); |
| 21292 | | 23571 | |
| 21293 | export type V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportTypeResult = | 23572 | export type V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportTypeResult = |
| ... | @@ -21306,6 +23585,9 @@ export const V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConf | ... | @@ -21306,6 +23585,9 @@ export const V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConf |
| 21306 | successes: Schema.Array( | 23585 | successes: Schema.Array( |
| 21307 | V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportItemTypeSuccess, | 23586 | V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportItemTypeSuccess, |
| 21308 | ), | 23587 | ), |
| | 23588 | }).annotate({ |
| | 23589 | identifier: |
| | 23590 | "V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportTypeResult", |
| 21309 | }); | 23591 | }); |
| 21310 | | 23592 | |
| 21311 | export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportHistory = { | 23593 | export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportHistory = { |
| ... | @@ -21316,7 +23598,9 @@ export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfi | ... | @@ -21316,7 +23598,9 @@ export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfi |
| 21316 | }; | 23598 | }; |
| 21317 | export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportHistory = | 23599 | export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportHistory = |
| 21318 | Schema.Struct({ | 23600 | Schema.Struct({ |
| 21319 | completedAtMs: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 23601 | completedAtMs: Schema.Number.annotate({ format: "int64" }).check( |
| | 23602 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 23603 | ), |
| 21320 | failures: Schema.Array( | 23604 | failures: Schema.Array( |
| 21321 | V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeFailure, | 23605 | V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeFailure, |
| 21322 | ), | 23606 | ), |
| ... | @@ -21324,6 +23608,9 @@ export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConf | ... | @@ -21324,6 +23608,9 @@ export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConf |
| 21324 | successes: Schema.Array( | 23608 | successes: Schema.Array( |
| 21325 | V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeSuccess, | 23609 | V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeSuccess, |
| 21326 | ), | 23610 | ), |
| | 23611 | }).annotate({ |
| | 23612 | identifier: |
| | 23613 | "V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportHistory", |
| 21327 | }); | 23614 | }); |
| 21328 | | 23615 | |
| 21329 | export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem = { | 23616 | export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem = { |
| ... | @@ -21347,7 +23634,7 @@ export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem | ... | @@ -21347,7 +23634,7 @@ export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem |
| 21347 | Schema.Union([V2ExternalAgentConfigImportParams__MigrationDetails, Schema.Null]), | 23634 | Schema.Union([V2ExternalAgentConfigImportParams__MigrationDetails, Schema.Null]), |
| 21348 | ), | 23635 | ), |
| 21349 | itemType: V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType, | 23636 | itemType: V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType, |
| 21350 | }); | 23637 | }).annotate({ identifier: "V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem" }); |
| 21351 | | 23638 | |
| 21352 | export type V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportTypeResult = { | 23639 | export type V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportTypeResult = { |
| 21353 | readonly failures: ReadonlyArray<V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportItemTypeFailure>; | 23640 | readonly failures: ReadonlyArray<V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportItemTypeFailure>; |
| ... | @@ -21363,6 +23650,9 @@ export const V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfi | ... | @@ -21363,6 +23650,9 @@ export const V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfi |
| 21363 | successes: Schema.Array( | 23650 | successes: Schema.Array( |
| 21364 | V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportItemTypeSuccess, | 23651 | V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportItemTypeSuccess, |
| 21365 | ), | 23652 | ), |
| | 23653 | }).annotate({ |
| | 23654 | identifier: |
| | 23655 | "V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportTypeResult", |
| 21366 | }); | 23656 | }); |
| 21367 | | 23657 | |
| 21368 | export type V2GetAccountRateLimitsResponse__RateLimitResetCreditsSummary = { | 23658 | export type V2GetAccountRateLimitsResponse__RateLimitResetCreditsSummary = { |
| ... | @@ -21370,7 +23660,9 @@ export type V2GetAccountRateLimitsResponse__RateLimitResetCreditsSummary = { | ... | @@ -21370,7 +23660,9 @@ export type V2GetAccountRateLimitsResponse__RateLimitResetCreditsSummary = { |
| 21370 | readonly credits?: ReadonlyArray<V2GetAccountRateLimitsResponse__RateLimitResetCredit> | null; | 23660 | readonly credits?: ReadonlyArray<V2GetAccountRateLimitsResponse__RateLimitResetCredit> | null; |
| 21371 | }; | 23661 | }; |
| 21372 | export const V2GetAccountRateLimitsResponse__RateLimitResetCreditsSummary = Schema.Struct({ | 23662 | export const V2GetAccountRateLimitsResponse__RateLimitResetCreditsSummary = Schema.Struct({ |
| 21373 | availableCount: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 23663 | availableCount: Schema.Number.annotate({ format: "int64" }).check( |
| | 23664 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 23665 | ), |
| 21374 | credits: Schema.optionalKey( | 23666 | credits: Schema.optionalKey( |
| 21375 | Schema.Union([ | 23667 | Schema.Union([ |
| 21376 | Schema.Array(V2GetAccountRateLimitsResponse__RateLimitResetCredit).annotate({ | 23668 | Schema.Array(V2GetAccountRateLimitsResponse__RateLimitResetCredit).annotate({ |
| ... | @@ -21380,7 +23672,7 @@ export const V2GetAccountRateLimitsResponse__RateLimitResetCreditsSummary = Sche | ... | @@ -21380,7 +23672,7 @@ export const V2GetAccountRateLimitsResponse__RateLimitResetCreditsSummary = Sche |
| 21380 | Schema.Null, | 23672 | Schema.Null, |
| 21381 | ]), | 23673 | ]), |
| 21382 | ), | 23674 | ), |
| 21383 | }); | 23675 | }).annotate({ identifier: "V2GetAccountRateLimitsResponse__RateLimitResetCreditsSummary" }); |
| 21384 | | 23676 | |
| 21385 | export type V2HookCompletedNotification__HookRunSummary = { | 23677 | export type V2HookCompletedNotification__HookRunSummary = { |
| 21386 | readonly completedAt?: number | null; | 23678 | readonly completedAt?: number | null; |
| ... | @@ -21392,18 +23684,7 @@ export type V2HookCompletedNotification__HookRunSummary = { | ... | @@ -21392,18 +23684,7 @@ export type V2HookCompletedNotification__HookRunSummary = { |
| 21392 | readonly handlerType: V2HookCompletedNotification__HookHandlerType; | 23684 | readonly handlerType: V2HookCompletedNotification__HookHandlerType; |
| 21393 | readonly id: string; | 23685 | readonly id: string; |
| 21394 | readonly scope: V2HookCompletedNotification__HookScope; | 23686 | readonly scope: V2HookCompletedNotification__HookScope; |
| 21395 | readonly source?: | 23687 | readonly source?: V2HookCompletedNotification__HookSource; |
| 21396 | | "system" | | |
| 21397 | | "user" | | |
| 21398 | | "project" | | |
| 21399 | | "mdm" | | |
| 21400 | | "sessionFlags" | | |
| 21401 | | "plugin" | | |
| 21402 | | "cloudRequirements" | | |
| 21403 | | "cloudManagedConfig" | | |
| 21404 | | "legacyManagedConfigFile" | | |
| 21405 | | "legacyManagedConfigMdm" | | |
| 21406 | | "unknown"; | | |
| 21407 | readonly sourcePath: V2HookCompletedNotification__AbsolutePathBuf; | 23688 | readonly sourcePath: V2HookCompletedNotification__AbsolutePathBuf; |
| 21408 | readonly startedAt: number; | 23689 | readonly startedAt: number; |
| 21409 | readonly status: V2HookCompletedNotification__HookRunStatus; | 23690 | readonly status: V2HookCompletedNotification__HookRunStatus; |
| ... | @@ -21411,11 +23692,23 @@ export type V2HookCompletedNotification__HookRunSummary = { | ... | @@ -21411,11 +23692,23 @@ export type V2HookCompletedNotification__HookRunSummary = { |
| 21411 | }; | 23692 | }; |
| 21412 | export const V2HookCompletedNotification__HookRunSummary = Schema.Struct({ | 23693 | export const V2HookCompletedNotification__HookRunSummary = Schema.Struct({ |
| 21413 | completedAt: Schema.optionalKey( | 23694 | completedAt: Schema.optionalKey( |
| 21414 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), | 23695 | Schema.Union([ |
| | 23696 | Schema.Number.annotate({ format: "int64" }).check( |
| | 23697 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 23698 | ), |
| | 23699 | Schema.Null, |
| | 23700 | ]), |
| | 23701 | ), |
| | 23702 | displayOrder: Schema.Number.annotate({ format: "int64" }).check( |
| | 23703 | Schema.isInt().annotate({ expected: "an integer" }), |
| 21415 | ), | 23704 | ), |
| 21416 | displayOrder: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | | |
| 21417 | durationMs: Schema.optionalKey( | 23705 | durationMs: Schema.optionalKey( |
| 21418 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), | 23706 | Schema.Union([ |
| | 23707 | Schema.Number.annotate({ format: "int64" }).check( |
| | 23708 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 23709 | ), |
| | 23710 | Schema.Null, |
| | 23711 | ]), |
| 21419 | ), | 23712 | ), |
| 21420 | entries: Schema.Array(V2HookCompletedNotification__HookOutputEntry), | 23713 | entries: Schema.Array(V2HookCompletedNotification__HookOutputEntry), |
| 21421 | eventName: V2HookCompletedNotification__HookEventName, | 23714 | eventName: V2HookCompletedNotification__HookEventName, |
| ... | @@ -21424,25 +23717,18 @@ export const V2HookCompletedNotification__HookRunSummary = Schema.Struct({ | ... | @@ -21424,25 +23717,18 @@ export const V2HookCompletedNotification__HookRunSummary = Schema.Struct({ |
| 21424 | id: Schema.String, | 23717 | id: Schema.String, |
| 21425 | scope: V2HookCompletedNotification__HookScope, | 23718 | scope: V2HookCompletedNotification__HookScope, |
| 21426 | source: Schema.optionalKey( | 23719 | source: Schema.optionalKey( |
| 21427 | Schema.Literals([ | 23720 | Schema.suspend( |
| 21428 | "system", | 23721 | (): Schema.Codec<V2HookCompletedNotification__HookSource> => |
| 21429 | "user", | 23722 | V2HookCompletedNotification__HookSource, |
| 21430 | "project", | 23723 | ).annotate({ default: "unknown" }), |
| 21431 | "mdm", | | |
| 21432 | "sessionFlags", | | |
| 21433 | "plugin", | | |
| 21434 | "cloudRequirements", | | |
| 21435 | "cloudManagedConfig", | | |
| 21436 | "legacyManagedConfigFile", | | |
| 21437 | "legacyManagedConfigMdm", | | |
| 21438 | "unknown", | | |
| 21439 | ]).annotate({ default: "unknown" }), | | |
| 21440 | ), | 23724 | ), |
| 21441 | sourcePath: V2HookCompletedNotification__AbsolutePathBuf, | 23725 | sourcePath: V2HookCompletedNotification__AbsolutePathBuf, |
| 21442 | startedAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 23726 | startedAt: Schema.Number.annotate({ format: "int64" }).check( |
| | 23727 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 23728 | ), |
| 21443 | status: V2HookCompletedNotification__HookRunStatus, | 23729 | status: V2HookCompletedNotification__HookRunStatus, |
| 21444 | statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 23730 | statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 21445 | }); | 23731 | }).annotate({ identifier: "V2HookCompletedNotification__HookRunSummary" }); |
| 21446 | | 23732 | |
| 21447 | export type V2HooksListResponse__HooksListEntry = { | 23733 | export type V2HooksListResponse__HooksListEntry = { |
| 21448 | readonly cwd: string; | 23734 | readonly cwd: string; |
| ... | @@ -21455,7 +23741,7 @@ export const V2HooksListResponse__HooksListEntry = Schema.Struct({ | ... | @@ -21455,7 +23741,7 @@ export const V2HooksListResponse__HooksListEntry = Schema.Struct({ |
| 21455 | errors: Schema.Array(V2HooksListResponse__HookErrorInfo), | 23741 | errors: Schema.Array(V2HooksListResponse__HookErrorInfo), |
| 21456 | hooks: Schema.Array(V2HooksListResponse__HookMetadata), | 23742 | hooks: Schema.Array(V2HooksListResponse__HookMetadata), |
| 21457 | warnings: Schema.Array(Schema.String), | 23743 | warnings: Schema.Array(Schema.String), |
| 21458 | }); | 23744 | }).annotate({ identifier: "V2HooksListResponse__HooksListEntry" }); |
| 21459 | | 23745 | |
| 21460 | export type V2HookStartedNotification__HookRunSummary = { | 23746 | export type V2HookStartedNotification__HookRunSummary = { |
| 21461 | readonly completedAt?: number | null; | 23747 | readonly completedAt?: number | null; |
| ... | @@ -21467,18 +23753,7 @@ export type V2HookStartedNotification__HookRunSummary = { | ... | @@ -21467,18 +23753,7 @@ export type V2HookStartedNotification__HookRunSummary = { |
| 21467 | readonly handlerType: V2HookStartedNotification__HookHandlerType; | 23753 | readonly handlerType: V2HookStartedNotification__HookHandlerType; |
| 21468 | readonly id: string; | 23754 | readonly id: string; |
| 21469 | readonly scope: V2HookStartedNotification__HookScope; | 23755 | readonly scope: V2HookStartedNotification__HookScope; |
| 21470 | readonly source?: | 23756 | readonly source?: V2HookStartedNotification__HookSource; |
| 21471 | | "system" | | |
| 21472 | | "user" | | |
| 21473 | | "project" | | |
| 21474 | | "mdm" | | |
| 21475 | | "sessionFlags" | | |
| 21476 | | "plugin" | | |
| 21477 | | "cloudRequirements" | | |
| 21478 | | "cloudManagedConfig" | | |
| 21479 | | "legacyManagedConfigFile" | | |
| 21480 | | "legacyManagedConfigMdm" | | |
| 21481 | | "unknown"; | | |
| 21482 | readonly sourcePath: V2HookStartedNotification__AbsolutePathBuf; | 23757 | readonly sourcePath: V2HookStartedNotification__AbsolutePathBuf; |
| 21483 | readonly startedAt: number; | 23758 | readonly startedAt: number; |
| 21484 | readonly status: V2HookStartedNotification__HookRunStatus; | 23759 | readonly status: V2HookStartedNotification__HookRunStatus; |
| ... | @@ -21486,11 +23761,23 @@ export type V2HookStartedNotification__HookRunSummary = { | ... | @@ -21486,11 +23761,23 @@ export type V2HookStartedNotification__HookRunSummary = { |
| 21486 | }; | 23761 | }; |
| 21487 | export const V2HookStartedNotification__HookRunSummary = Schema.Struct({ | 23762 | export const V2HookStartedNotification__HookRunSummary = Schema.Struct({ |
| 21488 | completedAt: Schema.optionalKey( | 23763 | completedAt: Schema.optionalKey( |
| 21489 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), | 23764 | Schema.Union([ |
| | 23765 | Schema.Number.annotate({ format: "int64" }).check( |
| | 23766 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 23767 | ), |
| | 23768 | Schema.Null, |
| | 23769 | ]), |
| | 23770 | ), |
| | 23771 | displayOrder: Schema.Number.annotate({ format: "int64" }).check( |
| | 23772 | Schema.isInt().annotate({ expected: "an integer" }), |
| 21490 | ), | 23773 | ), |
| 21491 | displayOrder: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | | |
| 21492 | durationMs: Schema.optionalKey( | 23774 | durationMs: Schema.optionalKey( |
| 21493 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), | 23775 | Schema.Union([ |
| | 23776 | Schema.Number.annotate({ format: "int64" }).check( |
| | 23777 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 23778 | ), |
| | 23779 | Schema.Null, |
| | 23780 | ]), |
| 21494 | ), | 23781 | ), |
| 21495 | entries: Schema.Array(V2HookStartedNotification__HookOutputEntry), | 23782 | entries: Schema.Array(V2HookStartedNotification__HookOutputEntry), |
| 21496 | eventName: V2HookStartedNotification__HookEventName, | 23783 | eventName: V2HookStartedNotification__HookEventName, |
| ... | @@ -21499,1775 +23786,2114 @@ export const V2HookStartedNotification__HookRunSummary = Schema.Struct({ | ... | @@ -21499,1775 +23786,2114 @@ export const V2HookStartedNotification__HookRunSummary = Schema.Struct({ |
| 21499 | id: Schema.String, | 23786 | id: Schema.String, |
| 21500 | scope: V2HookStartedNotification__HookScope, | 23787 | scope: V2HookStartedNotification__HookScope, |
| 21501 | source: Schema.optionalKey( | 23788 | source: Schema.optionalKey( |
| 21502 | Schema.Literals([ | 23789 | Schema.suspend( |
| 21503 | "system", | 23790 | (): Schema.Codec<V2HookStartedNotification__HookSource> => |
| 21504 | "user", | 23791 | V2HookStartedNotification__HookSource, |
| 21505 | "project", | 23792 | ).annotate({ default: "unknown" }), |
| 21506 | "mdm", | | |
| 21507 | "sessionFlags", | | |
| 21508 | "plugin", | | |
| 21509 | "cloudRequirements", | | |
| 21510 | "cloudManagedConfig", | | |
| 21511 | "legacyManagedConfigFile", | | |
| 21512 | "legacyManagedConfigMdm", | | |
| 21513 | "unknown", | | |
| 21514 | ]).annotate({ default: "unknown" }), | | |
| 21515 | ), | 23793 | ), |
| 21516 | sourcePath: V2HookStartedNotification__AbsolutePathBuf, | 23794 | sourcePath: V2HookStartedNotification__AbsolutePathBuf, |
| 21517 | startedAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 23795 | startedAt: Schema.Number.annotate({ format: "int64" }).check( |
| | 23796 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 23797 | ), |
| 21518 | status: V2HookStartedNotification__HookRunStatus, | 23798 | status: V2HookStartedNotification__HookRunStatus, |
| 21519 | statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 23799 | statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 21520 | }); | 23800 | }).annotate({ identifier: "V2HookStartedNotification__HookRunSummary" }); |
| 21521 | | 23801 | |
| 21522 | export type V2ItemCompletedNotification__ThreadItem = | 23802 | export type V2ItemCompletedNotification__UserInput = |
| 21523 | | { | | |
| 21524 | readonly clientId?: string | null; | | |
| 21525 | readonly content: ReadonlyArray<V2ItemCompletedNotification__UserInput>; | | |
| 21526 | readonly id: string; | | |
| 21527 | readonly type: "userMessage"; | | |
| 21528 | } | | |
| 21529 | | { | | |
| 21530 | readonly fragments: ReadonlyArray<V2ItemCompletedNotification__HookPromptFragment>; | | |
| 21531 | readonly id: string; | | |
| 21532 | readonly type: "hookPrompt"; | | |
| 21533 | } | | |
| 21534 | | { | 23803 | | { |
| 21535 | readonly id: string; | | |
| 21536 | readonly memoryCitation?: V2ItemCompletedNotification__MemoryCitation | null; | | |
| 21537 | readonly phase?: V2ItemCompletedNotification__MessagePhase | null; | | |
| 21538 | readonly text: string; | 23804 | readonly text: string; |
| 21539 | readonly delivery?: "async" | null; | 23805 | readonly text_elements?: ReadonlyArray<V2ItemCompletedNotification__TextElement>; |
| 21540 | readonly questions?: ReadonlyArray<{ | 23806 | readonly type: "text"; |
| 21541 | readonly title: string; | | |
| 21542 | readonly options?: ReadonlyArray<string> | null; | | |
| 21543 | }> | null; | | |
| 21544 | readonly type: "agentMessage"; | | |
| 21545 | } | | |
| 21546 | | { readonly id: string; readonly text: string; readonly type: "plan" } | | |
| 21547 | | { | | |
| 21548 | readonly content?: ReadonlyArray<string>; | | |
| 21549 | readonly id: string; | | |
| 21550 | readonly summary?: ReadonlyArray<string>; | | |
| 21551 | readonly type: "reasoning"; | | |
| 21552 | } | 23807 | } |
| 21553 | | { | 23808 | | { |
| 21554 | readonly aggregatedOutput?: string | null; | 23809 | readonly detail?: V2ItemCompletedNotification__ImageDetail | null; |
| 21555 | readonly command: string; | 23810 | readonly type: "image"; |
| 21556 | readonly commandActions: ReadonlyArray<V2ItemCompletedNotification__CommandAction>; | 23811 | readonly url: string; |
| 21557 | readonly cwd: string; | | |
| 21558 | readonly durationMs?: number | null; | | |
| 21559 | readonly exitCode?: number | null; | | |
| 21560 | readonly id: string; | | |
| 21561 | readonly processId?: string | null; | | |
| 21562 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; | | |
| 21563 | readonly status: V2ItemCompletedNotification__CommandExecutionStatus; | | |
| 21564 | readonly type: "commandExecution"; | | |
| 21565 | } | 23812 | } |
| 21566 | | { | 23813 | | { |
| 21567 | readonly changes: ReadonlyArray<V2ItemCompletedNotification__FileUpdateChange>; | 23814 | readonly detail?: V2ItemCompletedNotification__ImageDetail | null; |
| 21568 | readonly id: string; | 23815 | readonly path: string; |
| 21569 | readonly status: V2ItemCompletedNotification__PatchApplyStatus; | 23816 | readonly type: "localImage"; |
| 21570 | readonly type: "fileChange"; | | |
| 21571 | } | 23817 | } |
| | 23818 | | { readonly type: "audio"; readonly url: string } |
| | 23819 | | { readonly path: string; readonly type: "localAudio" } |
| | 23820 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| | 23821 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| | 23822 | export const V2ItemCompletedNotification__UserInput = Schema.Union( |
| | 23823 | [ |
| | 23824 | Schema.Struct({ |
| | 23825 | text: Schema.String, |
| | 23826 | text_elements: Schema.optionalKey( |
| | 23827 | Schema.Array(V2ItemCompletedNotification__TextElement).annotate({ |
| | 23828 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| | 23829 | default: [], |
| | 23830 | }), |
| | 23831 | ), |
| | 23832 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| | 23833 | }).annotate({ title: "TextUserInput" }), |
| | 23834 | Schema.Struct({ |
| | 23835 | detail: Schema.optionalKey( |
| | 23836 | Schema.Union([V2ItemCompletedNotification__ImageDetail, Schema.Null]), |
| | 23837 | ), |
| | 23838 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 23839 | url: Schema.String, |
| | 23840 | }).annotate({ title: "ImageUserInput" }), |
| | 23841 | Schema.Struct({ |
| | 23842 | detail: Schema.optionalKey( |
| | 23843 | Schema.Union([V2ItemCompletedNotification__ImageDetail, Schema.Null]), |
| | 23844 | ), |
| | 23845 | path: Schema.String, |
| | 23846 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| | 23847 | }).annotate({ title: "LocalImageUserInput" }), |
| | 23848 | Schema.Struct({ |
| | 23849 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), |
| | 23850 | url: Schema.String, |
| | 23851 | }).annotate({ title: "AudioUserInput" }), |
| | 23852 | Schema.Struct({ |
| | 23853 | path: Schema.String, |
| | 23854 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), |
| | 23855 | }).annotate({ title: "LocalAudioUserInput" }), |
| | 23856 | Schema.Struct({ |
| | 23857 | name: Schema.String, |
| | 23858 | path: Schema.String, |
| | 23859 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), |
| | 23860 | }).annotate({ title: "SkillUserInput" }), |
| | 23861 | Schema.Struct({ |
| | 23862 | name: Schema.String, |
| | 23863 | path: Schema.String, |
| | 23864 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), |
| | 23865 | }).annotate({ title: "MentionUserInput" }), |
| | 23866 | ], |
| | 23867 | { mode: "oneOf" }, |
| | 23868 | ).annotate({ identifier: "V2ItemCompletedNotification__UserInput" }); |
| | 23869 | |
| | 23870 | export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath = |
| 21572 | | { | 23871 | | { |
| 21573 | readonly appContext?: V2ItemCompletedNotification__McpToolCallAppContext | null; | 23872 | readonly path: V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString; |
| 21574 | readonly arguments: unknown; | 23873 | readonly type: "path"; |
| 21575 | readonly durationMs?: number | null; | | |
| 21576 | readonly error?: V2ItemCompletedNotification__McpToolCallError | null; | | |
| 21577 | readonly id: string; | | |
| 21578 | readonly mcpAppResourceUri?: string | null; | | |
| 21579 | readonly pluginId?: string | null; | | |
| 21580 | readonly result?: V2ItemCompletedNotification__McpToolCallResult | null; | | |
| 21581 | readonly server: string; | | |
| 21582 | readonly status: V2ItemCompletedNotification__McpToolCallStatus; | | |
| 21583 | readonly tool: string; | | |
| 21584 | readonly type: "mcpToolCall"; | | |
| 21585 | } | 23874 | } |
| | 23875 | | { readonly pattern: string; readonly type: "glob_pattern" } |
| 21586 | | { | 23876 | | { |
| 21587 | readonly arguments: unknown; | 23877 | readonly type: "special"; |
| 21588 | readonly contentItems?: ReadonlyArray<V2ItemCompletedNotification__DynamicToolCallOutputContentItem> | null; | 23878 | readonly value: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath; |
| 21589 | readonly durationMs?: number | null; | 23879 | }; |
| 21590 | readonly id: string; | 23880 | export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath = Schema.Union( |
| 21591 | readonly namespace?: string | null; | 23881 | [ |
| 21592 | readonly status: V2ItemCompletedNotification__DynamicToolCallStatus; | 23882 | Schema.Struct({ |
| 21593 | readonly success?: boolean | null; | 23883 | path: V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString, |
| 21594 | readonly tool: string; | 23884 | type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }), |
| 21595 | readonly type: "dynamicToolCall"; | 23885 | }).annotate({ title: "PathFileSystemPath" }), |
| 21596 | } | 23886 | Schema.Struct({ |
| | 23887 | pattern: Schema.String, |
| | 23888 | type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }), |
| | 23889 | }).annotate({ title: "GlobPatternFileSystemPath" }), |
| | 23890 | Schema.Struct({ |
| | 23891 | type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }), |
| | 23892 | value: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath, |
| | 23893 | }).annotate({ title: "SpecialFileSystemPath" }), |
| | 23894 | ], |
| | 23895 | { mode: "oneOf" }, |
| | 23896 | ).annotate({ identifier: "V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath" }); |
| | 23897 | |
| | 23898 | export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath = |
| 21597 | | { | 23899 | | { |
| 21598 | readonly agentsStates: { | 23900 | readonly path: V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString; |
| 21599 | readonly [x: string]: V2ItemCompletedNotification__CollabAgentState; | 23901 | readonly type: "path"; |
| 21600 | }; | | |
| 21601 | readonly id: string; | | |
| 21602 | readonly model?: string | null; | | |
| 21603 | readonly prompt?: string | null; | | |
| 21604 | readonly reasoningEffort?: V2ItemCompletedNotification__ReasoningEffort | null; | | |
| 21605 | readonly receiverThreadIds: ReadonlyArray<string>; | | |
| 21606 | readonly senderThreadId: string; | | |
| 21607 | readonly status: "inProgress" | "completed" | "failed" | "interrupted"; | | |
| 21608 | readonly tool: | | |
| 21609 | | "spawnAgent" | | |
| 21610 | | "sendInput" | | |
| 21611 | | "resumeAgent" | | |
| 21612 | | "wait" | | |
| 21613 | | "closeAgent" | | |
| 21614 | | "sendMessage" | | |
| 21615 | | "followupTask" | | |
| 21616 | | "interruptAgent" | | |
| 21617 | | "listAgents"; | | |
| 21618 | readonly type: "collabAgentToolCall"; | | |
| 21619 | } | 23902 | } |
| | 23903 | | { readonly pattern: string; readonly type: "glob_pattern" } |
| 21620 | | { | 23904 | | { |
| 21621 | readonly agentPath: string; | 23905 | readonly type: "special"; |
| 21622 | readonly agentThreadId: string; | 23906 | readonly value: V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath; |
| 21623 | readonly id: string; | 23907 | }; |
| 21624 | readonly kind: V2ItemCompletedNotification__SubAgentActivityKind; | 23908 | export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath = Schema.Union( |
| 21625 | readonly type: "subAgentActivity"; | 23909 | [ |
| 21626 | } | 23910 | Schema.Struct({ |
| | 23911 | path: V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString, |
| | 23912 | type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }), |
| | 23913 | }).annotate({ title: "PathFileSystemPath" }), |
| | 23914 | Schema.Struct({ |
| | 23915 | pattern: Schema.String, |
| | 23916 | type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }), |
| | 23917 | }).annotate({ title: "GlobPatternFileSystemPath" }), |
| | 23918 | Schema.Struct({ |
| | 23919 | type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }), |
| | 23920 | value: V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath, |
| | 23921 | }).annotate({ title: "SpecialFileSystemPath" }), |
| | 23922 | ], |
| | 23923 | { mode: "oneOf" }, |
| | 23924 | ).annotate({ identifier: "V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath" }); |
| | 23925 | |
| | 23926 | export type V2ItemStartedNotification__UserInput = |
| 21627 | | { | 23927 | | { |
| 21628 | readonly action?: V2ItemCompletedNotification__WebSearchAction | null; | 23928 | readonly text: string; |
| 21629 | readonly id: string; | 23929 | readonly text_elements?: ReadonlyArray<V2ItemStartedNotification__TextElement>; |
| 21630 | readonly query: string; | 23930 | readonly type: "text"; |
| 21631 | readonly results?: ReadonlyArray<unknown> | null; | | |
| 21632 | readonly type: "webSearch"; | | |
| 21633 | } | 23931 | } |
| 21634 | | { | 23932 | | { |
| 21635 | readonly id: string; | 23933 | readonly detail?: V2ItemStartedNotification__ImageDetail | null; |
| 21636 | readonly path: V2ItemCompletedNotification__LegacyAppPathString; | 23934 | readonly type: "image"; |
| 21637 | readonly type: "imageView"; | 23935 | readonly url: string; |
| 21638 | } | 23936 | } |
| 21639 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | | |
| 21640 | | { | 23937 | | { |
| 21641 | readonly id: string; | 23938 | readonly detail?: V2ItemStartedNotification__ImageDetail | null; |
| 21642 | readonly result: string; | 23939 | readonly path: string; |
| 21643 | readonly revisedPrompt?: string | null; | 23940 | readonly type: "localImage"; |
| 21644 | readonly savedPath?: V2ItemCompletedNotification__AbsolutePathBuf | null; | | |
| 21645 | readonly status: string; | | |
| 21646 | readonly type: "imageGeneration"; | | |
| 21647 | } | 23941 | } |
| 21648 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 23942 | | { readonly type: "audio"; readonly url: string } |
| 21649 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } | 23943 | | { readonly path: string; readonly type: "localAudio" } |
| 21650 | | { readonly id: string; readonly type: "contextCompaction" }; | 23944 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| 21651 | export const V2ItemCompletedNotification__ThreadItem = Schema.Union( | 23945 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| | 23946 | export const V2ItemStartedNotification__UserInput = Schema.Union( |
| 21652 | [ | 23947 | [ |
| 21653 | Schema.Struct({ | 23948 | Schema.Struct({ |
| 21654 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 21655 | content: Schema.Array(V2ItemCompletedNotification__UserInput), | | |
| 21656 | id: Schema.String, | | |
| 21657 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), | | |
| 21658 | }).annotate({ title: "UserMessageThreadItem" }), | | |
| 21659 | Schema.Struct({ | | |
| 21660 | fragments: Schema.Array(V2ItemCompletedNotification__HookPromptFragment), | | |
| 21661 | id: Schema.String, | | |
| 21662 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | | |
| 21663 | }).annotate({ title: "HookPromptThreadItem" }), | | |
| 21664 | Schema.Struct({ | | |
| 21665 | id: Schema.String, | | |
| 21666 | memoryCitation: Schema.optionalKey( | | |
| 21667 | Schema.Union([V2ItemCompletedNotification__MemoryCitation, Schema.Null]), | | |
| 21668 | ), | | |
| 21669 | phase: Schema.optionalKey( | | |
| 21670 | Schema.Union([V2ItemCompletedNotification__MessagePhase, Schema.Null]), | | |
| 21671 | ), | | |
| 21672 | text: Schema.String, | 23949 | text: Schema.String, |
| 21673 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | 23950 | text_elements: Schema.optionalKey( |
| 21674 | questions: Schema.optionalKey( | 23951 | Schema.Array(V2ItemStartedNotification__TextElement).annotate({ |
| 21675 | Schema.Union([ | 23952 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| 21676 | Schema.Array( | 23953 | default: [], |
| 21677 | Schema.Struct({ | 23954 | }), |
| 21678 | title: Schema.String, | | |
| 21679 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 21680 | }), | | |
| 21681 | ), | | |
| 21682 | Schema.Null, | | |
| 21683 | ]), | | |
| 21684 | ), | 23955 | ), |
| 21685 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), | 23956 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 21686 | }).annotate({ title: "AgentMessageThreadItem" }), | 23957 | }).annotate({ title: "TextUserInput" }), |
| 21687 | Schema.Struct({ | | |
| 21688 | id: Schema.String, | | |
| 21689 | text: Schema.String, | | |
| 21690 | type: Schema.Literal("plan").annotate({ title: "PlanThreadItemType" }), | | |
| 21691 | }).annotate({ | | |
| 21692 | title: "PlanThreadItem", | | |
| 21693 | description: | | |
| 21694 | "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.", | | |
| 21695 | }), | | |
| 21696 | Schema.Struct({ | | |
| 21697 | content: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), | | |
| 21698 | id: Schema.String, | | |
| 21699 | summary: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), | | |
| 21700 | type: Schema.Literal("reasoning").annotate({ title: "ReasoningThreadItemType" }), | | |
| 21701 | }).annotate({ title: "ReasoningThreadItem" }), | | |
| 21702 | Schema.Struct({ | 23958 | Schema.Struct({ |
| 21703 | aggregatedOutput: Schema.optionalKey( | 23959 | detail: Schema.optionalKey( |
| 21704 | Schema.Union([ | 23960 | Schema.Union([V2ItemStartedNotification__ImageDetail, Schema.Null]), |
| 21705 | Schema.String.annotate({ | | |
| 21706 | description: "The command's output, aggregated from stdout and stderr.", | | |
| 21707 | }), | | |
| 21708 | Schema.Null, | | |
| 21709 | ]), | | |
| 21710 | ), | | |
| 21711 | command: Schema.String.annotate({ description: "The command to be executed." }), | | |
| 21712 | commandActions: Schema.Array(V2ItemCompletedNotification__CommandAction).annotate({ | | |
| 21713 | description: | | |
| 21714 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", | | |
| 21715 | }), | | |
| 21716 | cwd: Schema.String.annotate({ description: "The command's working directory." }), | | |
| 21717 | durationMs: Schema.optionalKey( | | |
| 21718 | Schema.Union([ | | |
| 21719 | Schema.Number.annotate({ | | |
| 21720 | description: "The duration of the command execution in milliseconds.", | | |
| 21721 | format: "int64", | | |
| 21722 | }).check(Schema.isInt()), | | |
| 21723 | Schema.Null, | | |
| 21724 | ]), | | |
| 21725 | ), | | |
| 21726 | exitCode: Schema.optionalKey( | | |
| 21727 | Schema.Union([ | | |
| 21728 | Schema.Number.annotate({ | | |
| 21729 | description: "The command's exit code.", | | |
| 21730 | format: "int32", | | |
| 21731 | }).check(Schema.isInt()), | | |
| 21732 | Schema.Null, | | |
| 21733 | ]), | | |
| 21734 | ), | | |
| 21735 | id: Schema.String, | | |
| 21736 | processId: Schema.optionalKey( | | |
| 21737 | Schema.Union([ | | |
| 21738 | Schema.String.annotate({ | | |
| 21739 | description: "Identifier for the underlying PTY process (when available).", | | |
| 21740 | }), | | |
| 21741 | Schema.Null, | | |
| 21742 | ]), | | |
| 21743 | ), | 23961 | ), |
| 21744 | source: Schema.optionalKey( | 23962 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| 21745 | Schema.Literals([ | 23963 | url: Schema.String, |
| 21746 | "agent", | 23964 | }).annotate({ title: "ImageUserInput" }), |
| 21747 | "userShell", | 23965 | Schema.Struct({ |
| 21748 | "unifiedExecStartup", | 23966 | detail: Schema.optionalKey( |
| 21749 | "unifiedExecInteraction", | 23967 | Schema.Union([V2ItemStartedNotification__ImageDetail, Schema.Null]), |
| 21750 | ]).annotate({ default: "agent" }), | | |
| 21751 | ), | 23968 | ), |
| 21752 | status: V2ItemCompletedNotification__CommandExecutionStatus, | 23969 | path: Schema.String, |
| 21753 | type: Schema.Literal("commandExecution").annotate({ | 23970 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| 21754 | title: "CommandExecutionThreadItemType", | 23971 | }).annotate({ title: "LocalImageUserInput" }), |
| 21755 | }), | | |
| 21756 | }).annotate({ title: "CommandExecutionThreadItem" }), | | |
| 21757 | Schema.Struct({ | 23972 | Schema.Struct({ |
| 21758 | changes: Schema.Array(V2ItemCompletedNotification__FileUpdateChange), | 23973 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), |
| 21759 | id: Schema.String, | 23974 | url: Schema.String, |
| 21760 | status: V2ItemCompletedNotification__PatchApplyStatus, | 23975 | }).annotate({ title: "AudioUserInput" }), |
| 21761 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), | | |
| 21762 | }).annotate({ title: "FileChangeThreadItem" }), | | |
| 21763 | Schema.Struct({ | 23976 | Schema.Struct({ |
| 21764 | appContext: Schema.optionalKey( | 23977 | path: Schema.String, |
| 21765 | Schema.Union([V2ItemCompletedNotification__McpToolCallAppContext, Schema.Null]), | 23978 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), |
| 21766 | ), | 23979 | }).annotate({ title: "LocalAudioUserInput" }), |
| 21767 | arguments: Schema.Unknown, | | |
| 21768 | durationMs: Schema.optionalKey( | | |
| 21769 | Schema.Union([ | | |
| 21770 | Schema.Number.annotate({ | | |
| 21771 | description: "The duration of the MCP tool call in milliseconds.", | | |
| 21772 | format: "int64", | | |
| 21773 | }).check(Schema.isInt()), | | |
| 21774 | Schema.Null, | | |
| 21775 | ]), | | |
| 21776 | ), | | |
| 21777 | error: Schema.optionalKey( | | |
| 21778 | Schema.Union([V2ItemCompletedNotification__McpToolCallError, Schema.Null]), | | |
| 21779 | ), | | |
| 21780 | id: Schema.String, | | |
| 21781 | mcpAppResourceUri: Schema.optionalKey( | | |
| 21782 | Schema.Union([ | | |
| 21783 | Schema.String.annotate({ | | |
| 21784 | description: "Deprecated: use `appContext.resourceUri` instead.", | | |
| 21785 | }), | | |
| 21786 | Schema.Null, | | |
| 21787 | ]), | | |
| 21788 | ), | | |
| 21789 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 21790 | result: Schema.optionalKey( | | |
| 21791 | Schema.Union([V2ItemCompletedNotification__McpToolCallResult, Schema.Null]), | | |
| 21792 | ), | | |
| 21793 | server: Schema.String, | | |
| 21794 | status: V2ItemCompletedNotification__McpToolCallStatus, | | |
| 21795 | tool: Schema.String, | | |
| 21796 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), | | |
| 21797 | }).annotate({ title: "McpToolCallThreadItem" }), | | |
| 21798 | Schema.Struct({ | 23980 | Schema.Struct({ |
| 21799 | arguments: Schema.Unknown, | 23981 | name: Schema.String, |
| 21800 | contentItems: Schema.optionalKey( | 23982 | path: Schema.String, |
| 21801 | Schema.Union([ | 23983 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), |
| 21802 | Schema.Array(V2ItemCompletedNotification__DynamicToolCallOutputContentItem), | 23984 | }).annotate({ title: "SkillUserInput" }), |
| 21803 | Schema.Null, | | |
| 21804 | ]), | | |
| 21805 | ), | | |
| 21806 | durationMs: Schema.optionalKey( | | |
| 21807 | Schema.Union([ | | |
| 21808 | Schema.Number.annotate({ | | |
| 21809 | description: "The duration of the dynamic tool call in milliseconds.", | | |
| 21810 | format: "int64", | | |
| 21811 | }).check(Schema.isInt()), | | |
| 21812 | Schema.Null, | | |
| 21813 | ]), | | |
| 21814 | ), | | |
| 21815 | id: Schema.String, | | |
| 21816 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 21817 | status: V2ItemCompletedNotification__DynamicToolCallStatus, | | |
| 21818 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | | |
| 21819 | tool: Schema.String, | | |
| 21820 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), | | |
| 21821 | }).annotate({ title: "DynamicToolCallThreadItem" }), | | |
| 21822 | Schema.Struct({ | 23985 | Schema.Struct({ |
| 21823 | agentsStates: Schema.Record( | 23986 | name: Schema.String, |
| 21824 | Schema.String, | 23987 | path: Schema.String, |
| 21825 | V2ItemCompletedNotification__CollabAgentState, | 23988 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), |
| 21826 | ).annotate({ description: "Last known status of the target agents, when available." }), | 23989 | }).annotate({ title: "MentionUserInput" }), |
| 21827 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), | 23990 | ], |
| 21828 | model: Schema.optionalKey( | 23991 | { mode: "oneOf" }, |
| 21829 | Schema.Union([ | 23992 | ).annotate({ identifier: "V2ItemStartedNotification__UserInput" }); |
| 21830 | Schema.String.annotate({ | 23993 | |
| 21831 | description: "Model requested for the spawned agent, when applicable.", | 23994 | export type V2ModelListResponse__Model = { |
| 21832 | }), | 23995 | readonly additionalSpeedTiers?: ReadonlyArray<string>; |
| 21833 | Schema.Null, | 23996 | readonly availabilityNux?: V2ModelListResponse__ModelAvailabilityNux | null; |
| 21834 | ]), | 23997 | readonly defaultReasoningEffort: V2ModelListResponse__ReasoningEffort; |
| 21835 | ), | 23998 | readonly defaultServiceTier?: string | null; |
| 21836 | prompt: Schema.optionalKey( | 23999 | readonly description: string; |
| 21837 | Schema.Union([ | 24000 | readonly displayName: string; |
| 21838 | Schema.String.annotate({ | 24001 | readonly hidden: boolean; |
| 21839 | description: "Prompt text sent as part of the collab tool call, when available.", | 24002 | readonly id: string; |
| 21840 | }), | 24003 | readonly inputModalities?: ReadonlyArray<V2ModelListResponse__InputModality>; |
| 21841 | Schema.Null, | 24004 | readonly isDefault: boolean; |
| 21842 | ]), | 24005 | readonly model: string; |
| 21843 | ), | 24006 | readonly serviceTiers?: ReadonlyArray<V2ModelListResponse__ModelServiceTier>; |
| 21844 | reasoningEffort: Schema.optionalKey( | 24007 | readonly supportedReasoningEfforts: ReadonlyArray<V2ModelListResponse__ReasoningEffortOption>; |
| 21845 | Schema.Union([V2ItemCompletedNotification__ReasoningEffort, Schema.Null]).annotate({ | 24008 | readonly supportsPersonality?: boolean; |
| 21846 | description: "Reasoning effort requested for the spawned agent, when applicable.", | 24009 | readonly upgrade?: string | null; |
| 21847 | }), | 24010 | readonly upgradeInfo?: V2ModelListResponse__ModelUpgradeInfo | null; |
| 21848 | ), | 24011 | }; |
| 21849 | receiverThreadIds: Schema.Array(Schema.String).annotate({ | 24012 | export const V2ModelListResponse__Model = Schema.Struct({ |
| 21850 | description: | 24013 | additionalSpeedTiers: Schema.optionalKey( |
| 21851 | "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.", | 24014 | Schema.Array(Schema.String).annotate({ |
| | 24015 | description: "Deprecated: use `serviceTiers` instead.", |
| | 24016 | default: [], |
| | 24017 | }), |
| | 24018 | ), |
| | 24019 | availabilityNux: Schema.optionalKey( |
| | 24020 | Schema.Union([V2ModelListResponse__ModelAvailabilityNux, Schema.Null]), |
| | 24021 | ), |
| | 24022 | defaultReasoningEffort: V2ModelListResponse__ReasoningEffort, |
| | 24023 | defaultServiceTier: Schema.optionalKey( |
| | 24024 | Schema.Union([ |
| | 24025 | Schema.String.annotate({ |
| | 24026 | description: "Catalog default service tier id for this model, when one is configured.", |
| 21852 | }), | 24027 | }), |
| 21853 | senderThreadId: Schema.String.annotate({ | 24028 | Schema.Null, |
| 21854 | description: "Thread ID of the agent issuing the collab request.", | 24029 | ]), |
| | 24030 | ), |
| | 24031 | description: Schema.String, |
| | 24032 | displayName: Schema.String, |
| | 24033 | hidden: Schema.Boolean, |
| | 24034 | id: Schema.String, |
| | 24035 | inputModalities: Schema.optionalKey( |
| | 24036 | Schema.Array(V2ModelListResponse__InputModality).annotate({ default: ["text", "image"] }), |
| | 24037 | ), |
| | 24038 | isDefault: Schema.Boolean, |
| | 24039 | model: Schema.String, |
| | 24040 | serviceTiers: Schema.optionalKey( |
| | 24041 | Schema.Array(V2ModelListResponse__ModelServiceTier).annotate({ default: [] }), |
| | 24042 | ), |
| | 24043 | supportedReasoningEfforts: Schema.Array(V2ModelListResponse__ReasoningEffortOption), |
| | 24044 | supportsPersonality: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| | 24045 | upgrade: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 24046 | upgradeInfo: Schema.optionalKey( |
| | 24047 | Schema.Union([V2ModelListResponse__ModelUpgradeInfo, Schema.Null]), |
| | 24048 | ), |
| | 24049 | }).annotate({ identifier: "V2ModelListResponse__Model" }); |
| | 24050 | |
| | 24051 | export type V2PluginInstalledResponse__PluginShareContext = { |
| | 24052 | readonly creatorAccountUserId?: string | null; |
| | 24053 | readonly creatorName?: string | null; |
| | 24054 | readonly discoverability?: V2PluginInstalledResponse__PluginShareDiscoverability | null; |
| | 24055 | readonly remotePluginId: string; |
| | 24056 | readonly remoteVersion?: string | null; |
| | 24057 | readonly sharePrincipals?: ReadonlyArray<V2PluginInstalledResponse__PluginSharePrincipal> | null; |
| | 24058 | readonly shareUrl?: string | null; |
| | 24059 | }; |
| | 24060 | export const V2PluginInstalledResponse__PluginShareContext = Schema.Struct({ |
| | 24061 | creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 24062 | creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 24063 | discoverability: Schema.optionalKey( |
| | 24064 | Schema.Union([V2PluginInstalledResponse__PluginShareDiscoverability, Schema.Null]), |
| | 24065 | ), |
| | 24066 | remotePluginId: Schema.String, |
| | 24067 | remoteVersion: Schema.optionalKey( |
| | 24068 | Schema.Union([ |
| | 24069 | Schema.String.annotate({ |
| | 24070 | description: "Version of the remote shared plugin release when available.", |
| 21855 | }), | 24071 | }), |
| 21856 | status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({ | 24072 | Schema.Null, |
| 21857 | description: "Current status of the collab tool call.", | 24073 | ]), |
| 21858 | }), | 24074 | ), |
| 21859 | tool: Schema.Literals([ | 24075 | sharePrincipals: Schema.optionalKey( |
| 21860 | "spawnAgent", | 24076 | Schema.Union([Schema.Array(V2PluginInstalledResponse__PluginSharePrincipal), Schema.Null]), |
| 21861 | "sendInput", | 24077 | ), |
| 21862 | "resumeAgent", | 24078 | shareUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 21863 | "wait", | 24079 | }).annotate({ identifier: "V2PluginInstalledResponse__PluginShareContext" }); |
| 21864 | "closeAgent", | 24080 | |
| 21865 | "sendMessage", | 24081 | export type V2PluginListResponse__PluginShareContext = { |
| 21866 | "followupTask", | 24082 | readonly creatorAccountUserId?: string | null; |
| 21867 | "interruptAgent", | 24083 | readonly creatorName?: string | null; |
| 21868 | "listAgents", | 24084 | readonly discoverability?: V2PluginListResponse__PluginShareDiscoverability | null; |
| 21869 | ]).annotate({ description: "Name of the collab tool that was invoked." }), | 24085 | readonly remotePluginId: string; |
| 21870 | type: Schema.Literal("collabAgentToolCall").annotate({ | 24086 | readonly remoteVersion?: string | null; |
| 21871 | title: "CollabAgentToolCallThreadItemType", | 24087 | readonly sharePrincipals?: ReadonlyArray<V2PluginListResponse__PluginSharePrincipal> | null; |
| | 24088 | readonly shareUrl?: string | null; |
| | 24089 | }; |
| | 24090 | export const V2PluginListResponse__PluginShareContext = Schema.Struct({ |
| | 24091 | creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 24092 | creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 24093 | discoverability: Schema.optionalKey( |
| | 24094 | Schema.Union([V2PluginListResponse__PluginShareDiscoverability, Schema.Null]), |
| | 24095 | ), |
| | 24096 | remotePluginId: Schema.String, |
| | 24097 | remoteVersion: Schema.optionalKey( |
| | 24098 | Schema.Union([ |
| | 24099 | Schema.String.annotate({ |
| | 24100 | description: "Version of the remote shared plugin release when available.", |
| 21872 | }), | 24101 | }), |
| 21873 | }).annotate({ title: "CollabAgentToolCallThreadItem" }), | 24102 | Schema.Null, |
| 21874 | Schema.Struct({ | 24103 | ]), |
| 21875 | agentPath: Schema.String, | 24104 | ), |
| 21876 | agentThreadId: Schema.String, | 24105 | sharePrincipals: Schema.optionalKey( |
| 21877 | id: Schema.String, | 24106 | Schema.Union([Schema.Array(V2PluginListResponse__PluginSharePrincipal), Schema.Null]), |
| 21878 | kind: V2ItemCompletedNotification__SubAgentActivityKind, | 24107 | ), |
| 21879 | type: Schema.Literal("subAgentActivity").annotate({ | 24108 | shareUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 21880 | title: "SubAgentActivityThreadItemType", | 24109 | }).annotate({ identifier: "V2PluginListResponse__PluginShareContext" }); |
| | 24110 | |
| | 24111 | export type V2PluginReadResponse__SkillSummary = { |
| | 24112 | readonly description: string; |
| | 24113 | readonly enabled: boolean; |
| | 24114 | readonly interface?: V2PluginReadResponse__SkillInterface | null; |
| | 24115 | readonly name: string; |
| | 24116 | readonly path?: V2PluginReadResponse__AbsolutePathBuf | null; |
| | 24117 | readonly shortDescription?: string | null; |
| | 24118 | }; |
| | 24119 | export const V2PluginReadResponse__SkillSummary = Schema.Struct({ |
| | 24120 | description: Schema.String, |
| | 24121 | enabled: Schema.Boolean, |
| | 24122 | interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__SkillInterface, Schema.Null])), |
| | 24123 | name: Schema.String, |
| | 24124 | path: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])), |
| | 24125 | shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 24126 | }).annotate({ identifier: "V2PluginReadResponse__SkillSummary" }); |
| | 24127 | |
| | 24128 | export type V2PluginReadResponse__ScheduledTaskSummary = { |
| | 24129 | readonly key: string; |
| | 24130 | readonly name: string; |
| | 24131 | readonly prompt: string; |
| | 24132 | readonly schedule: V2PluginReadResponse__ScheduledTaskSchedule; |
| | 24133 | }; |
| | 24134 | export const V2PluginReadResponse__ScheduledTaskSummary = Schema.Struct({ |
| | 24135 | key: Schema.String, |
| | 24136 | name: Schema.String, |
| | 24137 | prompt: Schema.String, |
| | 24138 | schedule: V2PluginReadResponse__ScheduledTaskSchedule, |
| | 24139 | }).annotate({ identifier: "V2PluginReadResponse__ScheduledTaskSummary" }); |
| | 24140 | |
| | 24141 | export type V2PluginReadResponse__PluginShareContext = { |
| | 24142 | readonly creatorAccountUserId?: string | null; |
| | 24143 | readonly creatorName?: string | null; |
| | 24144 | readonly discoverability?: V2PluginReadResponse__PluginShareDiscoverability | null; |
| | 24145 | readonly remotePluginId: string; |
| | 24146 | readonly remoteVersion?: string | null; |
| | 24147 | readonly sharePrincipals?: ReadonlyArray<V2PluginReadResponse__PluginSharePrincipal> | null; |
| | 24148 | readonly shareUrl?: string | null; |
| | 24149 | }; |
| | 24150 | export const V2PluginReadResponse__PluginShareContext = Schema.Struct({ |
| | 24151 | creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 24152 | creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 24153 | discoverability: Schema.optionalKey( |
| | 24154 | Schema.Union([V2PluginReadResponse__PluginShareDiscoverability, Schema.Null]), |
| | 24155 | ), |
| | 24156 | remotePluginId: Schema.String, |
| | 24157 | remoteVersion: Schema.optionalKey( |
| | 24158 | Schema.Union([ |
| | 24159 | Schema.String.annotate({ |
| | 24160 | description: "Version of the remote shared plugin release when available.", |
| 21881 | }), | 24161 | }), |
| 21882 | }).annotate({ title: "SubAgentActivityThreadItem" }), | 24162 | Schema.Null, |
| | 24163 | ]), |
| | 24164 | ), |
| | 24165 | sharePrincipals: Schema.optionalKey( |
| | 24166 | Schema.Union([Schema.Array(V2PluginReadResponse__PluginSharePrincipal), Schema.Null]), |
| | 24167 | ), |
| | 24168 | shareUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 24169 | }).annotate({ identifier: "V2PluginReadResponse__PluginShareContext" }); |
| | 24170 | |
| | 24171 | export type V2PluginShareListResponse__PluginShareContext = { |
| | 24172 | readonly creatorAccountUserId?: string | null; |
| | 24173 | readonly creatorName?: string | null; |
| | 24174 | readonly discoverability?: V2PluginShareListResponse__PluginShareDiscoverability | null; |
| | 24175 | readonly remotePluginId: string; |
| | 24176 | readonly remoteVersion?: string | null; |
| | 24177 | readonly sharePrincipals?: ReadonlyArray<V2PluginShareListResponse__PluginSharePrincipal> | null; |
| | 24178 | readonly shareUrl?: string | null; |
| | 24179 | }; |
| | 24180 | export const V2PluginShareListResponse__PluginShareContext = Schema.Struct({ |
| | 24181 | creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 24182 | creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 24183 | discoverability: Schema.optionalKey( |
| | 24184 | Schema.Union([V2PluginShareListResponse__PluginShareDiscoverability, Schema.Null]), |
| | 24185 | ), |
| | 24186 | remotePluginId: Schema.String, |
| | 24187 | remoteVersion: Schema.optionalKey( |
| | 24188 | Schema.Union([ |
| | 24189 | Schema.String.annotate({ |
| | 24190 | description: "Version of the remote shared plugin release when available.", |
| | 24191 | }), |
| | 24192 | Schema.Null, |
| | 24193 | ]), |
| | 24194 | ), |
| | 24195 | sharePrincipals: Schema.optionalKey( |
| | 24196 | Schema.Union([Schema.Array(V2PluginShareListResponse__PluginSharePrincipal), Schema.Null]), |
| | 24197 | ), |
| | 24198 | shareUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 24199 | }).annotate({ identifier: "V2PluginShareListResponse__PluginShareContext" }); |
| | 24200 | |
| | 24201 | export type V2RawResponseItemCompletedNotification__FunctionCallOutputBody = |
| | 24202 | | string |
| | 24203 | | ReadonlyArray<V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem>; |
| | 24204 | export const V2RawResponseItemCompletedNotification__FunctionCallOutputBody = Schema.Union([ |
| | 24205 | Schema.String, |
| | 24206 | Schema.Array(V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem), |
| | 24207 | ]).annotate({ identifier: "V2RawResponseItemCompletedNotification__FunctionCallOutputBody" }); |
| | 24208 | |
| | 24209 | export type V2ReviewStartResponse__TurnError = { |
| | 24210 | readonly additionalDetails?: string | null; |
| | 24211 | readonly codexErrorInfo?: V2ReviewStartResponse__CodexErrorInfo | null; |
| | 24212 | readonly message: string; |
| | 24213 | }; |
| | 24214 | export const V2ReviewStartResponse__TurnError = Schema.Struct({ |
| | 24215 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 24216 | codexErrorInfo: Schema.optionalKey( |
| | 24217 | Schema.Union([V2ReviewStartResponse__CodexErrorInfo, Schema.Null]), |
| | 24218 | ), |
| | 24219 | message: Schema.String, |
| | 24220 | }).annotate({ identifier: "V2ReviewStartResponse__TurnError" }); |
| | 24221 | |
| | 24222 | export type V2ReviewStartResponse__UserInput = |
| | 24223 | | { |
| | 24224 | readonly text: string; |
| | 24225 | readonly text_elements?: ReadonlyArray<V2ReviewStartResponse__TextElement>; |
| | 24226 | readonly type: "text"; |
| | 24227 | } |
| | 24228 | | { |
| | 24229 | readonly detail?: V2ReviewStartResponse__ImageDetail | null; |
| | 24230 | readonly type: "image"; |
| | 24231 | readonly url: string; |
| | 24232 | } |
| | 24233 | | { |
| | 24234 | readonly detail?: V2ReviewStartResponse__ImageDetail | null; |
| | 24235 | readonly path: string; |
| | 24236 | readonly type: "localImage"; |
| | 24237 | } |
| | 24238 | | { readonly type: "audio"; readonly url: string } |
| | 24239 | | { readonly path: string; readonly type: "localAudio" } |
| | 24240 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| | 24241 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| | 24242 | export const V2ReviewStartResponse__UserInput = Schema.Union( |
| | 24243 | [ |
| 21883 | Schema.Struct({ | 24244 | Schema.Struct({ |
| 21884 | action: Schema.optionalKey( | 24245 | text: Schema.String, |
| 21885 | Schema.Union([V2ItemCompletedNotification__WebSearchAction, Schema.Null]), | 24246 | text_elements: Schema.optionalKey( |
| 21886 | ), | 24247 | Schema.Array(V2ReviewStartResponse__TextElement).annotate({ |
| 21887 | id: Schema.String, | 24248 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| 21888 | query: Schema.String, | 24249 | default: [], |
| 21889 | results: Schema.optionalKey( | 24250 | }), |
| 21890 | Schema.Union([ | | |
| 21891 | Schema.Array(Schema.Unknown).annotate({ | | |
| 21892 | description: | | |
| 21893 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", | | |
| 21894 | }), | | |
| 21895 | Schema.Null, | | |
| 21896 | ]), | | |
| 21897 | ), | 24251 | ), |
| 21898 | type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }), | 24252 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 21899 | }).annotate({ title: "WebSearchThreadItem" }), | 24253 | }).annotate({ title: "TextUserInput" }), |
| 21900 | Schema.Struct({ | 24254 | Schema.Struct({ |
| 21901 | id: Schema.String, | 24255 | detail: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__ImageDetail, Schema.Null])), |
| 21902 | path: V2ItemCompletedNotification__LegacyAppPathString, | 24256 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| 21903 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), | 24257 | url: Schema.String, |
| 21904 | }).annotate({ title: "ImageViewThreadItem" }), | 24258 | }).annotate({ title: "ImageUserInput" }), |
| 21905 | Schema.Struct({ | 24259 | Schema.Struct({ |
| 21906 | durationMs: Schema.Number.annotate({ format: "uint64" }) | 24260 | detail: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__ImageDetail, Schema.Null])), |
| 21907 | .check(Schema.isInt()) | 24261 | path: Schema.String, |
| 21908 | .check(Schema.isGreaterThanOrEqualTo(0)), | 24262 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| 21909 | id: Schema.String, | 24263 | }).annotate({ title: "LocalImageUserInput" }), |
| 21910 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), | | |
| 21911 | }).annotate({ | | |
| 21912 | title: "SleepThreadItem", | | |
| 21913 | description: "Display item emitted by the interruptible `clock.sleep` tool.", | | |
| 21914 | }), | | |
| 21915 | Schema.Struct({ | 24264 | Schema.Struct({ |
| 21916 | id: Schema.String, | 24265 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), |
| 21917 | result: Schema.String, | 24266 | url: Schema.String, |
| 21918 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 24267 | }).annotate({ title: "AudioUserInput" }), |
| 21919 | savedPath: Schema.optionalKey( | | |
| 21920 | Schema.Union([V2ItemCompletedNotification__AbsolutePathBuf, Schema.Null]), | | |
| 21921 | ), | | |
| 21922 | status: Schema.String, | | |
| 21923 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | | |
| 21924 | }).annotate({ title: "ImageGenerationThreadItem" }), | | |
| 21925 | Schema.Struct({ | 24268 | Schema.Struct({ |
| 21926 | id: Schema.String, | 24269 | path: Schema.String, |
| 21927 | review: Schema.String, | 24270 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), |
| 21928 | type: Schema.Literal("enteredReviewMode").annotate({ | 24271 | }).annotate({ title: "LocalAudioUserInput" }), |
| 21929 | title: "EnteredReviewModeThreadItemType", | | |
| 21930 | }), | | |
| 21931 | }).annotate({ title: "EnteredReviewModeThreadItem" }), | | |
| 21932 | Schema.Struct({ | 24272 | Schema.Struct({ |
| 21933 | id: Schema.String, | 24273 | name: Schema.String, |
| 21934 | review: Schema.String, | 24274 | path: Schema.String, |
| 21935 | type: Schema.Literal("exitedReviewMode").annotate({ | 24275 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), |
| 21936 | title: "ExitedReviewModeThreadItemType", | 24276 | }).annotate({ title: "SkillUserInput" }), |
| 21937 | }), | | |
| 21938 | }).annotate({ title: "ExitedReviewModeThreadItem" }), | | |
| 21939 | Schema.Struct({ | 24277 | Schema.Struct({ |
| 21940 | id: Schema.String, | 24278 | name: Schema.String, |
| 21941 | type: Schema.Literal("contextCompaction").annotate({ | 24279 | path: Schema.String, |
| 21942 | title: "ContextCompactionThreadItemType", | 24280 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), |
| | 24281 | }).annotate({ title: "MentionUserInput" }), |
| | 24282 | ], |
| | 24283 | { mode: "oneOf" }, |
| | 24284 | ).annotate({ identifier: "V2ReviewStartResponse__UserInput" }); |
| | 24285 | |
| | 24286 | export type V2SkillsListResponse__SkillMetadata = { |
| | 24287 | readonly dependencies?: V2SkillsListResponse__SkillDependencies | null; |
| | 24288 | readonly description: string; |
| | 24289 | readonly enabled: boolean; |
| | 24290 | readonly interface?: V2SkillsListResponse__SkillInterface | null; |
| | 24291 | readonly name: string; |
| | 24292 | readonly path: V2SkillsListResponse__AbsolutePathBuf; |
| | 24293 | readonly scope: V2SkillsListResponse__SkillScope; |
| | 24294 | readonly shortDescription?: string | null; |
| | 24295 | }; |
| | 24296 | export const V2SkillsListResponse__SkillMetadata = Schema.Struct({ |
| | 24297 | dependencies: Schema.optionalKey( |
| | 24298 | Schema.Union([V2SkillsListResponse__SkillDependencies, Schema.Null]), |
| | 24299 | ), |
| | 24300 | description: Schema.String, |
| | 24301 | enabled: Schema.Boolean, |
| | 24302 | interface: Schema.optionalKey(Schema.Union([V2SkillsListResponse__SkillInterface, Schema.Null])), |
| | 24303 | name: Schema.String, |
| | 24304 | path: V2SkillsListResponse__AbsolutePathBuf, |
| | 24305 | scope: V2SkillsListResponse__SkillScope, |
| | 24306 | shortDescription: Schema.optionalKey( |
| | 24307 | Schema.Union([ |
| | 24308 | Schema.String.annotate({ |
| | 24309 | description: |
| | 24310 | "Legacy short_description from SKILL.md. Prefer SKILL.json interface.short_description.", |
| 21943 | }), | 24311 | }), |
| 21944 | }).annotate({ title: "ContextCompactionThreadItem" }), | 24312 | Schema.Null, |
| | 24313 | ]), |
| | 24314 | ), |
| | 24315 | }).annotate({ identifier: "V2SkillsListResponse__SkillMetadata" }); |
| | 24316 | |
| | 24317 | export type V2ThreadForkResponse__SessionSource = |
| | 24318 | | "cli" |
| | 24319 | | "vscode" |
| | 24320 | | "exec" |
| | 24321 | | "appServer" |
| | 24322 | | "unknown" |
| | 24323 | | { readonly custom: string } |
| | 24324 | | { readonly subAgent: V2ThreadForkResponse__SubAgentSource }; |
| | 24325 | export const V2ThreadForkResponse__SessionSource = Schema.Union( |
| | 24326 | [ |
| | 24327 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), |
| | 24328 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), |
| | 24329 | Schema.Struct({ subAgent: V2ThreadForkResponse__SubAgentSource }).annotate({ |
| | 24330 | title: "SubAgentSessionSource", |
| | 24331 | }), |
| 21945 | ], | 24332 | ], |
| 21946 | { mode: "oneOf" }, | 24333 | { mode: "oneOf" }, |
| 21947 | ); | 24334 | ).annotate({ identifier: "V2ThreadForkResponse__SessionSource" }); |
| 21948 | | 24335 | |
| 21949 | export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath = | 24336 | export type V2ThreadForkResponse__TurnError = { |
| | 24337 | readonly additionalDetails?: string | null; |
| | 24338 | readonly codexErrorInfo?: V2ThreadForkResponse__CodexErrorInfo | null; |
| | 24339 | readonly message: string; |
| | 24340 | }; |
| | 24341 | export const V2ThreadForkResponse__TurnError = Schema.Struct({ |
| | 24342 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 24343 | codexErrorInfo: Schema.optionalKey( |
| | 24344 | Schema.Union([V2ThreadForkResponse__CodexErrorInfo, Schema.Null]), |
| | 24345 | ), |
| | 24346 | message: Schema.String, |
| | 24347 | }).annotate({ identifier: "V2ThreadForkResponse__TurnError" }); |
| | 24348 | |
| | 24349 | export type V2ThreadForkResponse__UserInput = |
| 21950 | | { | 24350 | | { |
| 21951 | readonly path: V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString; | 24351 | readonly text: string; |
| 21952 | readonly type: "path"; | 24352 | readonly text_elements?: ReadonlyArray<V2ThreadForkResponse__TextElement>; |
| | 24353 | readonly type: "text"; |
| 21953 | } | 24354 | } |
| 21954 | | { readonly pattern: string; readonly type: "glob_pattern" } | | |
| 21955 | | { | 24355 | | { |
| 21956 | readonly type: "special"; | 24356 | readonly detail?: V2ThreadForkResponse__ImageDetail | null; |
| 21957 | readonly value: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath; | 24357 | readonly type: "image"; |
| 21958 | }; | 24358 | readonly url: string; |
| 21959 | export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath = Schema.Union( | 24359 | } |
| | 24360 | | { |
| | 24361 | readonly detail?: V2ThreadForkResponse__ImageDetail | null; |
| | 24362 | readonly path: string; |
| | 24363 | readonly type: "localImage"; |
| | 24364 | } |
| | 24365 | | { readonly type: "audio"; readonly url: string } |
| | 24366 | | { readonly path: string; readonly type: "localAudio" } |
| | 24367 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| | 24368 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| | 24369 | export const V2ThreadForkResponse__UserInput = Schema.Union( |
| 21960 | [ | 24370 | [ |
| 21961 | Schema.Struct({ | 24371 | Schema.Struct({ |
| 21962 | path: V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString, | 24372 | text: Schema.String, |
| 21963 | type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }), | 24373 | text_elements: Schema.optionalKey( |
| 21964 | }).annotate({ title: "PathFileSystemPath" }), | 24374 | Schema.Array(V2ThreadForkResponse__TextElement).annotate({ |
| | 24375 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| | 24376 | default: [], |
| | 24377 | }), |
| | 24378 | ), |
| | 24379 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| | 24380 | }).annotate({ title: "TextUserInput" }), |
| 21965 | Schema.Struct({ | 24381 | Schema.Struct({ |
| 21966 | pattern: Schema.String, | 24382 | detail: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__ImageDetail, Schema.Null])), |
| 21967 | type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }), | 24383 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| 21968 | }).annotate({ title: "GlobPatternFileSystemPath" }), | 24384 | url: Schema.String, |
| | 24385 | }).annotate({ title: "ImageUserInput" }), |
| 21969 | Schema.Struct({ | 24386 | Schema.Struct({ |
| 21970 | type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }), | 24387 | detail: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__ImageDetail, Schema.Null])), |
| 21971 | value: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath, | 24388 | path: Schema.String, |
| 21972 | }).annotate({ title: "SpecialFileSystemPath" }), | 24389 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| | 24390 | }).annotate({ title: "LocalImageUserInput" }), |
| | 24391 | Schema.Struct({ |
| | 24392 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), |
| | 24393 | url: Schema.String, |
| | 24394 | }).annotate({ title: "AudioUserInput" }), |
| | 24395 | Schema.Struct({ |
| | 24396 | path: Schema.String, |
| | 24397 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), |
| | 24398 | }).annotate({ title: "LocalAudioUserInput" }), |
| | 24399 | Schema.Struct({ |
| | 24400 | name: Schema.String, |
| | 24401 | path: Schema.String, |
| | 24402 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), |
| | 24403 | }).annotate({ title: "SkillUserInput" }), |
| | 24404 | Schema.Struct({ |
| | 24405 | name: Schema.String, |
| | 24406 | path: Schema.String, |
| | 24407 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), |
| | 24408 | }).annotate({ title: "MentionUserInput" }), |
| 21973 | ], | 24409 | ], |
| 21974 | { mode: "oneOf" }, | 24410 | { mode: "oneOf" }, |
| 21975 | ); | 24411 | ).annotate({ identifier: "V2ThreadForkResponse__UserInput" }); |
| 21976 | | 24412 | |
| 21977 | export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath = | 24413 | export type V2ThreadListResponse__SessionSource = |
| 21978 | | { | 24414 | | "cli" |
| 21979 | readonly path: V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString; | 24415 | | "vscode" |
| 21980 | readonly type: "path"; | 24416 | | "exec" |
| 21981 | } | 24417 | | "appServer" |
| 21982 | | { readonly pattern: string; readonly type: "glob_pattern" } | 24418 | | "unknown" |
| 21983 | | { | 24419 | | { readonly custom: string } |
| 21984 | readonly type: "special"; | 24420 | | { readonly subAgent: V2ThreadListResponse__SubAgentSource }; |
| 21985 | readonly value: V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath; | 24421 | export const V2ThreadListResponse__SessionSource = Schema.Union( |
| 21986 | }; | | |
| 21987 | export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath = Schema.Union( | | |
| 21988 | [ | 24422 | [ |
| 21989 | Schema.Struct({ | 24423 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), |
| 21990 | path: V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString, | 24424 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), |
| 21991 | type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }), | 24425 | Schema.Struct({ subAgent: V2ThreadListResponse__SubAgentSource }).annotate({ |
| 21992 | }).annotate({ title: "PathFileSystemPath" }), | 24426 | title: "SubAgentSessionSource", |
| 21993 | Schema.Struct({ | 24427 | }), |
| 21994 | pattern: Schema.String, | | |
| 21995 | type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }), | | |
| 21996 | }).annotate({ title: "GlobPatternFileSystemPath" }), | | |
| 21997 | Schema.Struct({ | | |
| 21998 | type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }), | | |
| 21999 | value: V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath, | | |
| 22000 | }).annotate({ title: "SpecialFileSystemPath" }), | | |
| 22001 | ], | 24428 | ], |
| 22002 | { mode: "oneOf" }, | 24429 | { mode: "oneOf" }, |
| 22003 | ); | 24430 | ).annotate({ identifier: "V2ThreadListResponse__SessionSource" }); |
| 22004 | | 24431 | |
| 22005 | export type V2ItemStartedNotification__ThreadItem = | 24432 | export type V2ThreadListResponse__TurnError = { |
| 22006 | | { | 24433 | readonly additionalDetails?: string | null; |
| 22007 | readonly clientId?: string | null; | 24434 | readonly codexErrorInfo?: V2ThreadListResponse__CodexErrorInfo | null; |
| 22008 | readonly content: ReadonlyArray<V2ItemStartedNotification__UserInput>; | 24435 | readonly message: string; |
| 22009 | readonly id: string; | 24436 | }; |
| 22010 | readonly type: "userMessage"; | 24437 | export const V2ThreadListResponse__TurnError = Schema.Struct({ |
| 22011 | } | 24438 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 22012 | | { | 24439 | codexErrorInfo: Schema.optionalKey( |
| 22013 | readonly fragments: ReadonlyArray<V2ItemStartedNotification__HookPromptFragment>; | 24440 | Schema.Union([V2ThreadListResponse__CodexErrorInfo, Schema.Null]), |
| 22014 | readonly id: string; | 24441 | ), |
| 22015 | readonly type: "hookPrompt"; | 24442 | message: Schema.String, |
| 22016 | } | 24443 | }).annotate({ identifier: "V2ThreadListResponse__TurnError" }); |
| | 24444 | |
| | 24445 | export type V2ThreadListResponse__UserInput = |
| 22017 | | { | 24446 | | { |
| 22018 | readonly id: string; | | |
| 22019 | readonly memoryCitation?: V2ItemStartedNotification__MemoryCitation | null; | | |
| 22020 | readonly phase?: V2ItemStartedNotification__MessagePhase | null; | | |
| 22021 | readonly text: string; | 24447 | readonly text: string; |
| 22022 | readonly delivery?: "async" | null; | 24448 | readonly text_elements?: ReadonlyArray<V2ThreadListResponse__TextElement>; |
| 22023 | readonly questions?: ReadonlyArray<{ | 24449 | readonly type: "text"; |
| 22024 | readonly title: string; | | |
| 22025 | readonly options?: ReadonlyArray<string> | null; | | |
| 22026 | }> | null; | | |
| 22027 | readonly type: "agentMessage"; | | |
| 22028 | } | | |
| 22029 | | { readonly id: string; readonly text: string; readonly type: "plan" } | | |
| 22030 | | { | | |
| 22031 | readonly content?: ReadonlyArray<string>; | | |
| 22032 | readonly id: string; | | |
| 22033 | readonly summary?: ReadonlyArray<string>; | | |
| 22034 | readonly type: "reasoning"; | | |
| 22035 | } | | |
| 22036 | | { | | |
| 22037 | readonly aggregatedOutput?: string | null; | | |
| 22038 | readonly command: string; | | |
| 22039 | readonly commandActions: ReadonlyArray<V2ItemStartedNotification__CommandAction>; | | |
| 22040 | readonly cwd: string; | | |
| 22041 | readonly durationMs?: number | null; | | |
| 22042 | readonly exitCode?: number | null; | | |
| 22043 | readonly id: string; | | |
| 22044 | readonly processId?: string | null; | | |
| 22045 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; | | |
| 22046 | readonly status: V2ItemStartedNotification__CommandExecutionStatus; | | |
| 22047 | readonly type: "commandExecution"; | | |
| 22048 | } | 24450 | } |
| 22049 | | { | 24451 | | { |
| 22050 | readonly changes: ReadonlyArray<V2ItemStartedNotification__FileUpdateChange>; | 24452 | readonly detail?: V2ThreadListResponse__ImageDetail | null; |
| 22051 | readonly id: string; | 24453 | readonly type: "image"; |
| 22052 | readonly status: V2ItemStartedNotification__PatchApplyStatus; | 24454 | readonly url: string; |
| 22053 | readonly type: "fileChange"; | | |
| 22054 | } | 24455 | } |
| 22055 | | { | 24456 | | { |
| 22056 | readonly appContext?: V2ItemStartedNotification__McpToolCallAppContext | null; | 24457 | readonly detail?: V2ThreadListResponse__ImageDetail | null; |
| 22057 | readonly arguments: unknown; | 24458 | readonly path: string; |
| 22058 | readonly durationMs?: number | null; | 24459 | readonly type: "localImage"; |
| 22059 | readonly error?: V2ItemStartedNotification__McpToolCallError | null; | | |
| 22060 | readonly id: string; | | |
| 22061 | readonly mcpAppResourceUri?: string | null; | | |
| 22062 | readonly pluginId?: string | null; | | |
| 22063 | readonly result?: V2ItemStartedNotification__McpToolCallResult | null; | | |
| 22064 | readonly server: string; | | |
| 22065 | readonly status: V2ItemStartedNotification__McpToolCallStatus; | | |
| 22066 | readonly tool: string; | | |
| 22067 | readonly type: "mcpToolCall"; | | |
| 22068 | } | 24460 | } |
| | 24461 | | { readonly type: "audio"; readonly url: string } |
| | 24462 | | { readonly path: string; readonly type: "localAudio" } |
| | 24463 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| | 24464 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| | 24465 | export const V2ThreadListResponse__UserInput = Schema.Union( |
| | 24466 | [ |
| | 24467 | Schema.Struct({ |
| | 24468 | text: Schema.String, |
| | 24469 | text_elements: Schema.optionalKey( |
| | 24470 | Schema.Array(V2ThreadListResponse__TextElement).annotate({ |
| | 24471 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| | 24472 | default: [], |
| | 24473 | }), |
| | 24474 | ), |
| | 24475 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| | 24476 | }).annotate({ title: "TextUserInput" }), |
| | 24477 | Schema.Struct({ |
| | 24478 | detail: Schema.optionalKey(Schema.Union([V2ThreadListResponse__ImageDetail, Schema.Null])), |
| | 24479 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 24480 | url: Schema.String, |
| | 24481 | }).annotate({ title: "ImageUserInput" }), |
| | 24482 | Schema.Struct({ |
| | 24483 | detail: Schema.optionalKey(Schema.Union([V2ThreadListResponse__ImageDetail, Schema.Null])), |
| | 24484 | path: Schema.String, |
| | 24485 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| | 24486 | }).annotate({ title: "LocalImageUserInput" }), |
| | 24487 | Schema.Struct({ |
| | 24488 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), |
| | 24489 | url: Schema.String, |
| | 24490 | }).annotate({ title: "AudioUserInput" }), |
| | 24491 | Schema.Struct({ |
| | 24492 | path: Schema.String, |
| | 24493 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), |
| | 24494 | }).annotate({ title: "LocalAudioUserInput" }), |
| | 24495 | Schema.Struct({ |
| | 24496 | name: Schema.String, |
| | 24497 | path: Schema.String, |
| | 24498 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), |
| | 24499 | }).annotate({ title: "SkillUserInput" }), |
| | 24500 | Schema.Struct({ |
| | 24501 | name: Schema.String, |
| | 24502 | path: Schema.String, |
| | 24503 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), |
| | 24504 | }).annotate({ title: "MentionUserInput" }), |
| | 24505 | ], |
| | 24506 | { mode: "oneOf" }, |
| | 24507 | ).annotate({ identifier: "V2ThreadListResponse__UserInput" }); |
| | 24508 | |
| | 24509 | export type V2ThreadMetadataUpdateResponse__SessionSource = |
| | 24510 | | "cli" |
| | 24511 | | "vscode" |
| | 24512 | | "exec" |
| | 24513 | | "appServer" |
| | 24514 | | "unknown" |
| | 24515 | | { readonly custom: string } |
| | 24516 | | { readonly subAgent: V2ThreadMetadataUpdateResponse__SubAgentSource }; |
| | 24517 | export const V2ThreadMetadataUpdateResponse__SessionSource = Schema.Union( |
| | 24518 | [ |
| | 24519 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), |
| | 24520 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), |
| | 24521 | Schema.Struct({ subAgent: V2ThreadMetadataUpdateResponse__SubAgentSource }).annotate({ |
| | 24522 | title: "SubAgentSessionSource", |
| | 24523 | }), |
| | 24524 | ], |
| | 24525 | { mode: "oneOf" }, |
| | 24526 | ).annotate({ identifier: "V2ThreadMetadataUpdateResponse__SessionSource" }); |
| | 24527 | |
| | 24528 | export type V2ThreadMetadataUpdateResponse__TurnError = { |
| | 24529 | readonly additionalDetails?: string | null; |
| | 24530 | readonly codexErrorInfo?: V2ThreadMetadataUpdateResponse__CodexErrorInfo | null; |
| | 24531 | readonly message: string; |
| | 24532 | }; |
| | 24533 | export const V2ThreadMetadataUpdateResponse__TurnError = Schema.Struct({ |
| | 24534 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 24535 | codexErrorInfo: Schema.optionalKey( |
| | 24536 | Schema.Union([V2ThreadMetadataUpdateResponse__CodexErrorInfo, Schema.Null]), |
| | 24537 | ), |
| | 24538 | message: Schema.String, |
| | 24539 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__TurnError" }); |
| | 24540 | |
| | 24541 | export type V2ThreadMetadataUpdateResponse__UserInput = |
| 22069 | | { | 24542 | | { |
| 22070 | readonly arguments: unknown; | 24543 | readonly text: string; |
| 22071 | readonly contentItems?: ReadonlyArray<V2ItemStartedNotification__DynamicToolCallOutputContentItem> | null; | 24544 | readonly text_elements?: ReadonlyArray<V2ThreadMetadataUpdateResponse__TextElement>; |
| 22072 | readonly durationMs?: number | null; | 24545 | readonly type: "text"; |
| 22073 | readonly id: string; | | |
| 22074 | readonly namespace?: string | null; | | |
| 22075 | readonly status: V2ItemStartedNotification__DynamicToolCallStatus; | | |
| 22076 | readonly success?: boolean | null; | | |
| 22077 | readonly tool: string; | | |
| 22078 | readonly type: "dynamicToolCall"; | | |
| 22079 | } | 24546 | } |
| 22080 | | { | 24547 | | { |
| 22081 | readonly agentsStates: { readonly [x: string]: V2ItemStartedNotification__CollabAgentState }; | 24548 | readonly detail?: V2ThreadMetadataUpdateResponse__ImageDetail | null; |
| 22082 | readonly id: string; | 24549 | readonly type: "image"; |
| 22083 | readonly model?: string | null; | 24550 | readonly url: string; |
| 22084 | readonly prompt?: string | null; | | |
| 22085 | readonly reasoningEffort?: V2ItemStartedNotification__ReasoningEffort | null; | | |
| 22086 | readonly receiverThreadIds: ReadonlyArray<string>; | | |
| 22087 | readonly senderThreadId: string; | | |
| 22088 | readonly status: "inProgress" | "completed" | "failed" | "interrupted"; | | |
| 22089 | readonly tool: | | |
| 22090 | | "spawnAgent" | | |
| 22091 | | "sendInput" | | |
| 22092 | | "resumeAgent" | | |
| 22093 | | "wait" | | |
| 22094 | | "closeAgent" | | |
| 22095 | | "sendMessage" | | |
| 22096 | | "followupTask" | | |
| 22097 | | "interruptAgent" | | |
| 22098 | | "listAgents"; | | |
| 22099 | readonly type: "collabAgentToolCall"; | | |
| 22100 | } | 24551 | } |
| 22101 | | { | 24552 | | { |
| 22102 | readonly agentPath: string; | 24553 | readonly detail?: V2ThreadMetadataUpdateResponse__ImageDetail | null; |
| 22103 | readonly agentThreadId: string; | 24554 | readonly path: string; |
| 22104 | readonly id: string; | 24555 | readonly type: "localImage"; |
| 22105 | readonly kind: V2ItemStartedNotification__SubAgentActivityKind; | | |
| 22106 | readonly type: "subAgentActivity"; | | |
| 22107 | } | 24556 | } |
| | 24557 | | { readonly type: "audio"; readonly url: string } |
| | 24558 | | { readonly path: string; readonly type: "localAudio" } |
| | 24559 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| | 24560 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| | 24561 | export const V2ThreadMetadataUpdateResponse__UserInput = Schema.Union( |
| | 24562 | [ |
| | 24563 | Schema.Struct({ |
| | 24564 | text: Schema.String, |
| | 24565 | text_elements: Schema.optionalKey( |
| | 24566 | Schema.Array(V2ThreadMetadataUpdateResponse__TextElement).annotate({ |
| | 24567 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| | 24568 | default: [], |
| | 24569 | }), |
| | 24570 | ), |
| | 24571 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| | 24572 | }).annotate({ title: "TextUserInput" }), |
| | 24573 | Schema.Struct({ |
| | 24574 | detail: Schema.optionalKey( |
| | 24575 | Schema.Union([V2ThreadMetadataUpdateResponse__ImageDetail, Schema.Null]), |
| | 24576 | ), |
| | 24577 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 24578 | url: Schema.String, |
| | 24579 | }).annotate({ title: "ImageUserInput" }), |
| | 24580 | Schema.Struct({ |
| | 24581 | detail: Schema.optionalKey( |
| | 24582 | Schema.Union([V2ThreadMetadataUpdateResponse__ImageDetail, Schema.Null]), |
| | 24583 | ), |
| | 24584 | path: Schema.String, |
| | 24585 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| | 24586 | }).annotate({ title: "LocalImageUserInput" }), |
| | 24587 | Schema.Struct({ |
| | 24588 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), |
| | 24589 | url: Schema.String, |
| | 24590 | }).annotate({ title: "AudioUserInput" }), |
| | 24591 | Schema.Struct({ |
| | 24592 | path: Schema.String, |
| | 24593 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), |
| | 24594 | }).annotate({ title: "LocalAudioUserInput" }), |
| | 24595 | Schema.Struct({ |
| | 24596 | name: Schema.String, |
| | 24597 | path: Schema.String, |
| | 24598 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), |
| | 24599 | }).annotate({ title: "SkillUserInput" }), |
| | 24600 | Schema.Struct({ |
| | 24601 | name: Schema.String, |
| | 24602 | path: Schema.String, |
| | 24603 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), |
| | 24604 | }).annotate({ title: "MentionUserInput" }), |
| | 24605 | ], |
| | 24606 | { mode: "oneOf" }, |
| | 24607 | ).annotate({ identifier: "V2ThreadMetadataUpdateResponse__UserInput" }); |
| | 24608 | |
| | 24609 | export type V2ThreadReadResponse__SessionSource = |
| | 24610 | | "cli" |
| | 24611 | | "vscode" |
| | 24612 | | "exec" |
| | 24613 | | "appServer" |
| | 24614 | | "unknown" |
| | 24615 | | { readonly custom: string } |
| | 24616 | | { readonly subAgent: V2ThreadReadResponse__SubAgentSource }; |
| | 24617 | export const V2ThreadReadResponse__SessionSource = Schema.Union( |
| | 24618 | [ |
| | 24619 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), |
| | 24620 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), |
| | 24621 | Schema.Struct({ subAgent: V2ThreadReadResponse__SubAgentSource }).annotate({ |
| | 24622 | title: "SubAgentSessionSource", |
| | 24623 | }), |
| | 24624 | ], |
| | 24625 | { mode: "oneOf" }, |
| | 24626 | ).annotate({ identifier: "V2ThreadReadResponse__SessionSource" }); |
| | 24627 | |
| | 24628 | export type V2ThreadReadResponse__TurnError = { |
| | 24629 | readonly additionalDetails?: string | null; |
| | 24630 | readonly codexErrorInfo?: V2ThreadReadResponse__CodexErrorInfo | null; |
| | 24631 | readonly message: string; |
| | 24632 | }; |
| | 24633 | export const V2ThreadReadResponse__TurnError = Schema.Struct({ |
| | 24634 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 24635 | codexErrorInfo: Schema.optionalKey( |
| | 24636 | Schema.Union([V2ThreadReadResponse__CodexErrorInfo, Schema.Null]), |
| | 24637 | ), |
| | 24638 | message: Schema.String, |
| | 24639 | }).annotate({ identifier: "V2ThreadReadResponse__TurnError" }); |
| | 24640 | |
| | 24641 | export type V2ThreadReadResponse__UserInput = |
| 22108 | | { | 24642 | | { |
| 22109 | readonly action?: V2ItemStartedNotification__WebSearchAction | null; | 24643 | readonly text: string; |
| 22110 | readonly id: string; | 24644 | readonly text_elements?: ReadonlyArray<V2ThreadReadResponse__TextElement>; |
| 22111 | readonly query: string; | 24645 | readonly type: "text"; |
| 22112 | readonly results?: ReadonlyArray<unknown> | null; | | |
| 22113 | readonly type: "webSearch"; | | |
| 22114 | } | 24646 | } |
| 22115 | | { | 24647 | | { |
| 22116 | readonly id: string; | 24648 | readonly detail?: V2ThreadReadResponse__ImageDetail | null; |
| 22117 | readonly path: V2ItemStartedNotification__LegacyAppPathString; | 24649 | readonly type: "image"; |
| 22118 | readonly type: "imageView"; | 24650 | readonly url: string; |
| 22119 | } | 24651 | } |
| 22120 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | | |
| 22121 | | { | 24652 | | { |
| 22122 | readonly id: string; | 24653 | readonly detail?: V2ThreadReadResponse__ImageDetail | null; |
| 22123 | readonly result: string; | 24654 | readonly path: string; |
| 22124 | readonly revisedPrompt?: string | null; | 24655 | readonly type: "localImage"; |
| 22125 | readonly savedPath?: V2ItemStartedNotification__AbsolutePathBuf | null; | | |
| 22126 | readonly status: string; | | |
| 22127 | readonly type: "imageGeneration"; | | |
| 22128 | } | 24656 | } |
| 22129 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 24657 | | { readonly type: "audio"; readonly url: string } |
| 22130 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } | 24658 | | { readonly path: string; readonly type: "localAudio" } |
| 22131 | | { readonly id: string; readonly type: "contextCompaction" }; | 24659 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| 22132 | export const V2ItemStartedNotification__ThreadItem = Schema.Union( | 24660 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| | 24661 | export const V2ThreadReadResponse__UserInput = Schema.Union( |
| 22133 | [ | 24662 | [ |
| 22134 | Schema.Struct({ | 24663 | Schema.Struct({ |
| 22135 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 22136 | content: Schema.Array(V2ItemStartedNotification__UserInput), | | |
| 22137 | id: Schema.String, | | |
| 22138 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), | | |
| 22139 | }).annotate({ title: "UserMessageThreadItem" }), | | |
| 22140 | Schema.Struct({ | | |
| 22141 | fragments: Schema.Array(V2ItemStartedNotification__HookPromptFragment), | | |
| 22142 | id: Schema.String, | | |
| 22143 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | | |
| 22144 | }).annotate({ title: "HookPromptThreadItem" }), | | |
| 22145 | Schema.Struct({ | | |
| 22146 | id: Schema.String, | | |
| 22147 | memoryCitation: Schema.optionalKey( | | |
| 22148 | Schema.Union([V2ItemStartedNotification__MemoryCitation, Schema.Null]), | | |
| 22149 | ), | | |
| 22150 | phase: Schema.optionalKey( | | |
| 22151 | Schema.Union([V2ItemStartedNotification__MessagePhase, Schema.Null]), | | |
| 22152 | ), | | |
| 22153 | text: Schema.String, | 24664 | text: Schema.String, |
| 22154 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | 24665 | text_elements: Schema.optionalKey( |
| 22155 | questions: Schema.optionalKey( | 24666 | Schema.Array(V2ThreadReadResponse__TextElement).annotate({ |
| 22156 | Schema.Union([ | 24667 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| 22157 | Schema.Array( | 24668 | default: [], |
| 22158 | Schema.Struct({ | 24669 | }), |
| 22159 | title: Schema.String, | | |
| 22160 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 22161 | }), | | |
| 22162 | ), | | |
| 22163 | Schema.Null, | | |
| 22164 | ]), | | |
| 22165 | ), | 24670 | ), |
| 22166 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), | 24671 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 22167 | }).annotate({ title: "AgentMessageThreadItem" }), | 24672 | }).annotate({ title: "TextUserInput" }), |
| 22168 | Schema.Struct({ | 24673 | Schema.Struct({ |
| 22169 | id: Schema.String, | 24674 | detail: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__ImageDetail, Schema.Null])), |
| 22170 | text: Schema.String, | 24675 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| 22171 | type: Schema.Literal("plan").annotate({ title: "PlanThreadItemType" }), | 24676 | url: Schema.String, |
| 22172 | }).annotate({ | 24677 | }).annotate({ title: "ImageUserInput" }), |
| 22173 | title: "PlanThreadItem", | | |
| 22174 | description: | | |
| 22175 | "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.", | | |
| 22176 | }), | | |
| 22177 | Schema.Struct({ | 24678 | Schema.Struct({ |
| 22178 | content: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), | 24679 | detail: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__ImageDetail, Schema.Null])), |
| 22179 | id: Schema.String, | 24680 | path: Schema.String, |
| 22180 | summary: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), | 24681 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| 22181 | type: Schema.Literal("reasoning").annotate({ title: "ReasoningThreadItemType" }), | 24682 | }).annotate({ title: "LocalImageUserInput" }), |
| 22182 | }).annotate({ title: "ReasoningThreadItem" }), | | |
| 22183 | Schema.Struct({ | 24683 | Schema.Struct({ |
| 22184 | aggregatedOutput: Schema.optionalKey( | 24684 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), |
| 22185 | Schema.Union([ | 24685 | url: Schema.String, |
| 22186 | Schema.String.annotate({ | 24686 | }).annotate({ title: "AudioUserInput" }), |
| 22187 | description: "The command's output, aggregated from stdout and stderr.", | | |
| 22188 | }), | | |
| 22189 | Schema.Null, | | |
| 22190 | ]), | | |
| 22191 | ), | | |
| 22192 | command: Schema.String.annotate({ description: "The command to be executed." }), | | |
| 22193 | commandActions: Schema.Array(V2ItemStartedNotification__CommandAction).annotate({ | | |
| 22194 | description: | | |
| 22195 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", | | |
| 22196 | }), | | |
| 22197 | cwd: Schema.String.annotate({ description: "The command's working directory." }), | | |
| 22198 | durationMs: Schema.optionalKey( | | |
| 22199 | Schema.Union([ | | |
| 22200 | Schema.Number.annotate({ | | |
| 22201 | description: "The duration of the command execution in milliseconds.", | | |
| 22202 | format: "int64", | | |
| 22203 | }).check(Schema.isInt()), | | |
| 22204 | Schema.Null, | | |
| 22205 | ]), | | |
| 22206 | ), | | |
| 22207 | exitCode: Schema.optionalKey( | | |
| 22208 | Schema.Union([ | | |
| 22209 | Schema.Number.annotate({ | | |
| 22210 | description: "The command's exit code.", | | |
| 22211 | format: "int32", | | |
| 22212 | }).check(Schema.isInt()), | | |
| 22213 | Schema.Null, | | |
| 22214 | ]), | | |
| 22215 | ), | | |
| 22216 | id: Schema.String, | | |
| 22217 | processId: Schema.optionalKey( | | |
| 22218 | Schema.Union([ | | |
| 22219 | Schema.String.annotate({ | | |
| 22220 | description: "Identifier for the underlying PTY process (when available).", | | |
| 22221 | }), | | |
| 22222 | Schema.Null, | | |
| 22223 | ]), | | |
| 22224 | ), | | |
| 22225 | source: Schema.optionalKey( | | |
| 22226 | Schema.Literals([ | | |
| 22227 | "agent", | | |
| 22228 | "userShell", | | |
| 22229 | "unifiedExecStartup", | | |
| 22230 | "unifiedExecInteraction", | | |
| 22231 | ]).annotate({ default: "agent" }), | | |
| 22232 | ), | | |
| 22233 | status: V2ItemStartedNotification__CommandExecutionStatus, | | |
| 22234 | type: Schema.Literal("commandExecution").annotate({ | | |
| 22235 | title: "CommandExecutionThreadItemType", | | |
| 22236 | }), | | |
| 22237 | }).annotate({ title: "CommandExecutionThreadItem" }), | | |
| 22238 | Schema.Struct({ | 24687 | Schema.Struct({ |
| 22239 | changes: Schema.Array(V2ItemStartedNotification__FileUpdateChange), | 24688 | path: Schema.String, |
| 22240 | id: Schema.String, | 24689 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), |
| 22241 | status: V2ItemStartedNotification__PatchApplyStatus, | 24690 | }).annotate({ title: "LocalAudioUserInput" }), |
| 22242 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), | | |
| 22243 | }).annotate({ title: "FileChangeThreadItem" }), | | |
| 22244 | Schema.Struct({ | 24691 | Schema.Struct({ |
| 22245 | appContext: Schema.optionalKey( | 24692 | name: Schema.String, |
| 22246 | Schema.Union([V2ItemStartedNotification__McpToolCallAppContext, Schema.Null]), | 24693 | path: Schema.String, |
| 22247 | ), | 24694 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), |
| 22248 | arguments: Schema.Unknown, | 24695 | }).annotate({ title: "SkillUserInput" }), |
| 22249 | durationMs: Schema.optionalKey( | | |
| 22250 | Schema.Union([ | | |
| 22251 | Schema.Number.annotate({ | | |
| 22252 | description: "The duration of the MCP tool call in milliseconds.", | | |
| 22253 | format: "int64", | | |
| 22254 | }).check(Schema.isInt()), | | |
| 22255 | Schema.Null, | | |
| 22256 | ]), | | |
| 22257 | ), | | |
| 22258 | error: Schema.optionalKey( | | |
| 22259 | Schema.Union([V2ItemStartedNotification__McpToolCallError, Schema.Null]), | | |
| 22260 | ), | | |
| 22261 | id: Schema.String, | | |
| 22262 | mcpAppResourceUri: Schema.optionalKey( | | |
| 22263 | Schema.Union([ | | |
| 22264 | Schema.String.annotate({ | | |
| 22265 | description: "Deprecated: use `appContext.resourceUri` instead.", | | |
| 22266 | }), | | |
| 22267 | Schema.Null, | | |
| 22268 | ]), | | |
| 22269 | ), | | |
| 22270 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 22271 | result: Schema.optionalKey( | | |
| 22272 | Schema.Union([V2ItemStartedNotification__McpToolCallResult, Schema.Null]), | | |
| 22273 | ), | | |
| 22274 | server: Schema.String, | | |
| 22275 | status: V2ItemStartedNotification__McpToolCallStatus, | | |
| 22276 | tool: Schema.String, | | |
| 22277 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), | | |
| 22278 | }).annotate({ title: "McpToolCallThreadItem" }), | | |
| 22279 | Schema.Struct({ | 24696 | Schema.Struct({ |
| 22280 | arguments: Schema.Unknown, | 24697 | name: Schema.String, |
| 22281 | contentItems: Schema.optionalKey( | 24698 | path: Schema.String, |
| 22282 | Schema.Union([ | 24699 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), |
| 22283 | Schema.Array(V2ItemStartedNotification__DynamicToolCallOutputContentItem), | 24700 | }).annotate({ title: "MentionUserInput" }), |
| 22284 | Schema.Null, | 24701 | ], |
| 22285 | ]), | 24702 | { mode: "oneOf" }, |
| 22286 | ), | 24703 | ).annotate({ identifier: "V2ThreadReadResponse__UserInput" }); |
| 22287 | durationMs: Schema.optionalKey( | 24704 | |
| 22288 | Schema.Union([ | 24705 | export type V2ThreadResumeParams__FunctionCallOutputBody = |
| 22289 | Schema.Number.annotate({ | 24706 | | string |
| 22290 | description: "The duration of the dynamic tool call in milliseconds.", | 24707 | | ReadonlyArray<V2ThreadResumeParams__FunctionCallOutputContentItem>; |
| 22291 | format: "int64", | 24708 | export const V2ThreadResumeParams__FunctionCallOutputBody = Schema.Union([ |
| 22292 | }).check(Schema.isInt()), | 24709 | Schema.String, |
| 22293 | Schema.Null, | 24710 | Schema.Array(V2ThreadResumeParams__FunctionCallOutputContentItem), |
| 22294 | ]), | 24711 | ]).annotate({ identifier: "V2ThreadResumeParams__FunctionCallOutputBody" }); |
| 22295 | ), | 24712 | |
| 22296 | id: Schema.String, | 24713 | export type V2ThreadResumeResponse__SessionSource = |
| 22297 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 24714 | | "cli" |
| 22298 | status: V2ItemStartedNotification__DynamicToolCallStatus, | 24715 | | "vscode" |
| 22299 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 24716 | | "exec" |
| 22300 | tool: Schema.String, | 24717 | | "appServer" |
| 22301 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), | 24718 | | "unknown" |
| 22302 | }).annotate({ title: "DynamicToolCallThreadItem" }), | 24719 | | { readonly custom: string } |
| | 24720 | | { readonly subAgent: V2ThreadResumeResponse__SubAgentSource }; |
| | 24721 | export const V2ThreadResumeResponse__SessionSource = Schema.Union( |
| | 24722 | [ |
| | 24723 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), |
| | 24724 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), |
| | 24725 | Schema.Struct({ subAgent: V2ThreadResumeResponse__SubAgentSource }).annotate({ |
| | 24726 | title: "SubAgentSessionSource", |
| | 24727 | }), |
| | 24728 | ], |
| | 24729 | { mode: "oneOf" }, |
| | 24730 | ).annotate({ identifier: "V2ThreadResumeResponse__SessionSource" }); |
| | 24731 | |
| | 24732 | export type V2ThreadResumeResponse__TurnError = { |
| | 24733 | readonly additionalDetails?: string | null; |
| | 24734 | readonly codexErrorInfo?: V2ThreadResumeResponse__CodexErrorInfo | null; |
| | 24735 | readonly message: string; |
| | 24736 | }; |
| | 24737 | export const V2ThreadResumeResponse__TurnError = Schema.Struct({ |
| | 24738 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 24739 | codexErrorInfo: Schema.optionalKey( |
| | 24740 | Schema.Union([V2ThreadResumeResponse__CodexErrorInfo, Schema.Null]), |
| | 24741 | ), |
| | 24742 | message: Schema.String, |
| | 24743 | }).annotate({ identifier: "V2ThreadResumeResponse__TurnError" }); |
| | 24744 | |
| | 24745 | export type V2ThreadResumeResponse__UserInput = |
| | 24746 | | { |
| | 24747 | readonly text: string; |
| | 24748 | readonly text_elements?: ReadonlyArray<V2ThreadResumeResponse__TextElement>; |
| | 24749 | readonly type: "text"; |
| | 24750 | } |
| | 24751 | | { |
| | 24752 | readonly detail?: V2ThreadResumeResponse__ImageDetail | null; |
| | 24753 | readonly type: "image"; |
| | 24754 | readonly url: string; |
| | 24755 | } |
| | 24756 | | { |
| | 24757 | readonly detail?: V2ThreadResumeResponse__ImageDetail | null; |
| | 24758 | readonly path: string; |
| | 24759 | readonly type: "localImage"; |
| | 24760 | } |
| | 24761 | | { readonly type: "audio"; readonly url: string } |
| | 24762 | | { readonly path: string; readonly type: "localAudio" } |
| | 24763 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| | 24764 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| | 24765 | export const V2ThreadResumeResponse__UserInput = Schema.Union( |
| | 24766 | [ |
| 22303 | Schema.Struct({ | 24767 | Schema.Struct({ |
| 22304 | agentsStates: Schema.Record( | 24768 | text: Schema.String, |
| 22305 | Schema.String, | 24769 | text_elements: Schema.optionalKey( |
| 22306 | V2ItemStartedNotification__CollabAgentState, | 24770 | Schema.Array(V2ThreadResumeResponse__TextElement).annotate({ |
| 22307 | ).annotate({ description: "Last known status of the target agents, when available." }), | 24771 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| 22308 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), | 24772 | default: [], |
| 22309 | model: Schema.optionalKey( | | |
| 22310 | Schema.Union([ | | |
| 22311 | Schema.String.annotate({ | | |
| 22312 | description: "Model requested for the spawned agent, when applicable.", | | |
| 22313 | }), | | |
| 22314 | Schema.Null, | | |
| 22315 | ]), | | |
| 22316 | ), | | |
| 22317 | prompt: Schema.optionalKey( | | |
| 22318 | Schema.Union([ | | |
| 22319 | Schema.String.annotate({ | | |
| 22320 | description: "Prompt text sent as part of the collab tool call, when available.", | | |
| 22321 | }), | | |
| 22322 | Schema.Null, | | |
| 22323 | ]), | | |
| 22324 | ), | | |
| 22325 | reasoningEffort: Schema.optionalKey( | | |
| 22326 | Schema.Union([V2ItemStartedNotification__ReasoningEffort, Schema.Null]).annotate({ | | |
| 22327 | description: "Reasoning effort requested for the spawned agent, when applicable.", | | |
| 22328 | }), | 24773 | }), |
| 22329 | ), | 24774 | ), |
| 22330 | receiverThreadIds: Schema.Array(Schema.String).annotate({ | 24775 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 22331 | description: | 24776 | }).annotate({ title: "TextUserInput" }), |
| 22332 | "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.", | | |
| 22333 | }), | | |
| 22334 | senderThreadId: Schema.String.annotate({ | | |
| 22335 | description: "Thread ID of the agent issuing the collab request.", | | |
| 22336 | }), | | |
| 22337 | status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({ | | |
| 22338 | description: "Current status of the collab tool call.", | | |
| 22339 | }), | | |
| 22340 | tool: Schema.Literals([ | | |
| 22341 | "spawnAgent", | | |
| 22342 | "sendInput", | | |
| 22343 | "resumeAgent", | | |
| 22344 | "wait", | | |
| 22345 | "closeAgent", | | |
| 22346 | "sendMessage", | | |
| 22347 | "followupTask", | | |
| 22348 | "interruptAgent", | | |
| 22349 | "listAgents", | | |
| 22350 | ]).annotate({ description: "Name of the collab tool that was invoked." }), | | |
| 22351 | type: Schema.Literal("collabAgentToolCall").annotate({ | | |
| 22352 | title: "CollabAgentToolCallThreadItemType", | | |
| 22353 | }), | | |
| 22354 | }).annotate({ title: "CollabAgentToolCallThreadItem" }), | | |
| 22355 | Schema.Struct({ | 24777 | Schema.Struct({ |
| 22356 | agentPath: Schema.String, | 24778 | detail: Schema.optionalKey(Schema.Union([V2ThreadResumeResponse__ImageDetail, Schema.Null])), |
| 22357 | agentThreadId: Schema.String, | 24779 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| 22358 | id: Schema.String, | 24780 | url: Schema.String, |
| 22359 | kind: V2ItemStartedNotification__SubAgentActivityKind, | 24781 | }).annotate({ title: "ImageUserInput" }), |
| 22360 | type: Schema.Literal("subAgentActivity").annotate({ | | |
| 22361 | title: "SubAgentActivityThreadItemType", | | |
| 22362 | }), | | |
| 22363 | }).annotate({ title: "SubAgentActivityThreadItem" }), | | |
| 22364 | Schema.Struct({ | 24782 | Schema.Struct({ |
| 22365 | action: Schema.optionalKey( | 24783 | detail: Schema.optionalKey(Schema.Union([V2ThreadResumeResponse__ImageDetail, Schema.Null])), |
| 22366 | Schema.Union([V2ItemStartedNotification__WebSearchAction, Schema.Null]), | 24784 | path: Schema.String, |
| 22367 | ), | 24785 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| 22368 | id: Schema.String, | 24786 | }).annotate({ title: "LocalImageUserInput" }), |
| 22369 | query: Schema.String, | | |
| 22370 | results: Schema.optionalKey( | | |
| 22371 | Schema.Union([ | | |
| 22372 | Schema.Array(Schema.Unknown).annotate({ | | |
| 22373 | description: | | |
| 22374 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", | | |
| 22375 | }), | | |
| 22376 | Schema.Null, | | |
| 22377 | ]), | | |
| 22378 | ), | | |
| 22379 | type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }), | | |
| 22380 | }).annotate({ title: "WebSearchThreadItem" }), | | |
| 22381 | Schema.Struct({ | 24787 | Schema.Struct({ |
| 22382 | id: Schema.String, | 24788 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), |
| 22383 | path: V2ItemStartedNotification__LegacyAppPathString, | 24789 | url: Schema.String, |
| 22384 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), | 24790 | }).annotate({ title: "AudioUserInput" }), |
| 22385 | }).annotate({ title: "ImageViewThreadItem" }), | | |
| 22386 | Schema.Struct({ | 24791 | Schema.Struct({ |
| 22387 | durationMs: Schema.Number.annotate({ format: "uint64" }) | 24792 | path: Schema.String, |
| 22388 | .check(Schema.isInt()) | 24793 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), |
| 22389 | .check(Schema.isGreaterThanOrEqualTo(0)), | 24794 | }).annotate({ title: "LocalAudioUserInput" }), |
| 22390 | id: Schema.String, | 24795 | Schema.Struct({ |
| 22391 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), | 24796 | name: Schema.String, |
| 22392 | }).annotate({ | 24797 | path: Schema.String, |
| 22393 | title: "SleepThreadItem", | 24798 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), |
| 22394 | description: "Display item emitted by the interruptible `clock.sleep` tool.", | 24799 | }).annotate({ title: "SkillUserInput" }), |
| | 24800 | Schema.Struct({ |
| | 24801 | name: Schema.String, |
| | 24802 | path: Schema.String, |
| | 24803 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), |
| | 24804 | }).annotate({ title: "MentionUserInput" }), |
| | 24805 | ], |
| | 24806 | { mode: "oneOf" }, |
| | 24807 | ).annotate({ identifier: "V2ThreadResumeResponse__UserInput" }); |
| | 24808 | |
| | 24809 | export type V2ThreadRollbackResponse__SessionSource = |
| | 24810 | | "cli" |
| | 24811 | | "vscode" |
| | 24812 | | "exec" |
| | 24813 | | "appServer" |
| | 24814 | | "unknown" |
| | 24815 | | { readonly custom: string } |
| | 24816 | | { readonly subAgent: V2ThreadRollbackResponse__SubAgentSource }; |
| | 24817 | export const V2ThreadRollbackResponse__SessionSource = Schema.Union( |
| | 24818 | [ |
| | 24819 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), |
| | 24820 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), |
| | 24821 | Schema.Struct({ subAgent: V2ThreadRollbackResponse__SubAgentSource }).annotate({ |
| | 24822 | title: "SubAgentSessionSource", |
| 22395 | }), | 24823 | }), |
| | 24824 | ], |
| | 24825 | { mode: "oneOf" }, |
| | 24826 | ).annotate({ identifier: "V2ThreadRollbackResponse__SessionSource" }); |
| | 24827 | |
| | 24828 | export type V2ThreadRollbackResponse__TurnError = { |
| | 24829 | readonly additionalDetails?: string | null; |
| | 24830 | readonly codexErrorInfo?: V2ThreadRollbackResponse__CodexErrorInfo | null; |
| | 24831 | readonly message: string; |
| | 24832 | }; |
| | 24833 | export const V2ThreadRollbackResponse__TurnError = Schema.Struct({ |
| | 24834 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 24835 | codexErrorInfo: Schema.optionalKey( |
| | 24836 | Schema.Union([V2ThreadRollbackResponse__CodexErrorInfo, Schema.Null]), |
| | 24837 | ), |
| | 24838 | message: Schema.String, |
| | 24839 | }).annotate({ identifier: "V2ThreadRollbackResponse__TurnError" }); |
| | 24840 | |
| | 24841 | export type V2ThreadRollbackResponse__UserInput = |
| | 24842 | | { |
| | 24843 | readonly text: string; |
| | 24844 | readonly text_elements?: ReadonlyArray<V2ThreadRollbackResponse__TextElement>; |
| | 24845 | readonly type: "text"; |
| | 24846 | } |
| | 24847 | | { |
| | 24848 | readonly detail?: V2ThreadRollbackResponse__ImageDetail | null; |
| | 24849 | readonly type: "image"; |
| | 24850 | readonly url: string; |
| | 24851 | } |
| | 24852 | | { |
| | 24853 | readonly detail?: V2ThreadRollbackResponse__ImageDetail | null; |
| | 24854 | readonly path: string; |
| | 24855 | readonly type: "localImage"; |
| | 24856 | } |
| | 24857 | | { readonly type: "audio"; readonly url: string } |
| | 24858 | | { readonly path: string; readonly type: "localAudio" } |
| | 24859 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| | 24860 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| | 24861 | export const V2ThreadRollbackResponse__UserInput = Schema.Union( |
| | 24862 | [ |
| 22396 | Schema.Struct({ | 24863 | Schema.Struct({ |
| 22397 | id: Schema.String, | 24864 | text: Schema.String, |
| 22398 | result: Schema.String, | 24865 | text_elements: Schema.optionalKey( |
| 22399 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 24866 | Schema.Array(V2ThreadRollbackResponse__TextElement).annotate({ |
| 22400 | savedPath: Schema.optionalKey( | 24867 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| 22401 | Schema.Union([V2ItemStartedNotification__AbsolutePathBuf, Schema.Null]), | 24868 | default: [], |
| | 24869 | }), |
| 22402 | ), | 24870 | ), |
| 22403 | status: Schema.String, | 24871 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 22404 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 24872 | }).annotate({ title: "TextUserInput" }), |
| 22405 | }).annotate({ title: "ImageGenerationThreadItem" }), | | |
| 22406 | Schema.Struct({ | 24873 | Schema.Struct({ |
| 22407 | id: Schema.String, | 24874 | detail: Schema.optionalKey( |
| 22408 | review: Schema.String, | 24875 | Schema.Union([V2ThreadRollbackResponse__ImageDetail, Schema.Null]), |
| 22409 | type: Schema.Literal("enteredReviewMode").annotate({ | 24876 | ), |
| 22410 | title: "EnteredReviewModeThreadItemType", | 24877 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| 22411 | }), | 24878 | url: Schema.String, |
| 22412 | }).annotate({ title: "EnteredReviewModeThreadItem" }), | 24879 | }).annotate({ title: "ImageUserInput" }), |
| 22413 | Schema.Struct({ | 24880 | Schema.Struct({ |
| 22414 | id: Schema.String, | 24881 | detail: Schema.optionalKey( |
| 22415 | review: Schema.String, | 24882 | Schema.Union([V2ThreadRollbackResponse__ImageDetail, Schema.Null]), |
| 22416 | type: Schema.Literal("exitedReviewMode").annotate({ | 24883 | ), |
| 22417 | title: "ExitedReviewModeThreadItemType", | 24884 | path: Schema.String, |
| 22418 | }), | 24885 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| 22419 | }).annotate({ title: "ExitedReviewModeThreadItem" }), | 24886 | }).annotate({ title: "LocalImageUserInput" }), |
| 22420 | Schema.Struct({ | 24887 | Schema.Struct({ |
| 22421 | id: Schema.String, | 24888 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), |
| 22422 | type: Schema.Literal("contextCompaction").annotate({ | 24889 | url: Schema.String, |
| 22423 | title: "ContextCompactionThreadItemType", | 24890 | }).annotate({ title: "AudioUserInput" }), |
| 22424 | }), | 24891 | Schema.Struct({ |
| 22425 | }).annotate({ title: "ContextCompactionThreadItem" }), | 24892 | path: Schema.String, |
| | 24893 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), |
| | 24894 | }).annotate({ title: "LocalAudioUserInput" }), |
| | 24895 | Schema.Struct({ |
| | 24896 | name: Schema.String, |
| | 24897 | path: Schema.String, |
| | 24898 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), |
| | 24899 | }).annotate({ title: "SkillUserInput" }), |
| | 24900 | Schema.Struct({ |
| | 24901 | name: Schema.String, |
| | 24902 | path: Schema.String, |
| | 24903 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), |
| | 24904 | }).annotate({ title: "MentionUserInput" }), |
| 22426 | ], | 24905 | ], |
| 22427 | { mode: "oneOf" }, | 24906 | { mode: "oneOf" }, |
| 22428 | ); | 24907 | ).annotate({ identifier: "V2ThreadRollbackResponse__UserInput" }); |
| 22429 | | 24908 | |
| 22430 | export type V2ModelListResponse__Model = { | 24909 | export type V2ThreadSettingsUpdatedNotification__CollaborationMode = { |
| 22431 | readonly additionalSpeedTiers?: ReadonlyArray<string>; | 24910 | readonly mode: V2ThreadSettingsUpdatedNotification__ModeKind; |
| 22432 | readonly availabilityNux?: V2ModelListResponse__ModelAvailabilityNux | null; | 24911 | readonly settings: V2ThreadSettingsUpdatedNotification__Settings; |
| 22433 | readonly defaultReasoningEffort: V2ModelListResponse__ReasoningEffort; | | |
| 22434 | readonly defaultServiceTier?: string | null; | | |
| 22435 | readonly description: string; | | |
| 22436 | readonly displayName: string; | | |
| 22437 | readonly hidden: boolean; | | |
| 22438 | readonly id: string; | | |
| 22439 | readonly inputModalities?: ReadonlyArray<V2ModelListResponse__InputModality>; | | |
| 22440 | readonly isDefault: boolean; | | |
| 22441 | readonly model: string; | | |
| 22442 | readonly serviceTiers?: ReadonlyArray<V2ModelListResponse__ModelServiceTier>; | | |
| 22443 | readonly supportedReasoningEfforts: ReadonlyArray<V2ModelListResponse__ReasoningEffortOption>; | | |
| 22444 | readonly supportsPersonality?: boolean; | | |
| 22445 | readonly upgrade?: string | null; | | |
| 22446 | readonly upgradeInfo?: V2ModelListResponse__ModelUpgradeInfo | null; | | |
| 22447 | }; | 24912 | }; |
| 22448 | export const V2ModelListResponse__Model = Schema.Struct({ | 24913 | export const V2ThreadSettingsUpdatedNotification__CollaborationMode = Schema.Struct({ |
| 22449 | additionalSpeedTiers: Schema.optionalKey( | 24914 | mode: V2ThreadSettingsUpdatedNotification__ModeKind, |
| 22450 | Schema.Array(Schema.String).annotate({ | 24915 | settings: V2ThreadSettingsUpdatedNotification__Settings, |
| 22451 | description: "Deprecated: use `serviceTiers` instead.", | 24916 | }).annotate({ |
| 22452 | default: [], | 24917 | description: "Collaboration mode for a Codex session.", |
| 22453 | }), | 24918 | identifier: "V2ThreadSettingsUpdatedNotification__CollaborationMode", |
| 22454 | ), | | |
| 22455 | availabilityNux: Schema.optionalKey( | | |
| 22456 | Schema.Union([V2ModelListResponse__ModelAvailabilityNux, Schema.Null]), | | |
| 22457 | ), | | |
| 22458 | defaultReasoningEffort: V2ModelListResponse__ReasoningEffort, | | |
| 22459 | defaultServiceTier: Schema.optionalKey( | | |
| 22460 | Schema.Union([ | | |
| 22461 | Schema.String.annotate({ | | |
| 22462 | description: "Catalog default service tier id for this model, when one is configured.", | | |
| 22463 | }), | | |
| 22464 | Schema.Null, | | |
| 22465 | ]), | | |
| 22466 | ), | | |
| 22467 | description: Schema.String, | | |
| 22468 | displayName: Schema.String, | | |
| 22469 | hidden: Schema.Boolean, | | |
| 22470 | id: Schema.String, | | |
| 22471 | inputModalities: Schema.optionalKey( | | |
| 22472 | Schema.Array(V2ModelListResponse__InputModality).annotate({ default: ["text", "image"] }), | | |
| 22473 | ), | | |
| 22474 | isDefault: Schema.Boolean, | | |
| 22475 | model: Schema.String, | | |
| 22476 | serviceTiers: Schema.optionalKey( | | |
| 22477 | Schema.Array(V2ModelListResponse__ModelServiceTier).annotate({ default: [] }), | | |
| 22478 | ), | | |
| 22479 | supportedReasoningEfforts: Schema.Array(V2ModelListResponse__ReasoningEffortOption), | | |
| 22480 | supportsPersonality: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 22481 | upgrade: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 22482 | upgradeInfo: Schema.optionalKey( | | |
| 22483 | Schema.Union([V2ModelListResponse__ModelUpgradeInfo, Schema.Null]), | | |
| 22484 | ), | | |
| 22485 | }); | 24919 | }); |
| 22486 | | 24920 | |
| 22487 | export type V2PluginInstalledResponse__PluginShareContext = { | 24921 | export type V2ThreadStartedNotification__SessionSource = |
| 22488 | readonly creatorAccountUserId?: string | null; | 24922 | | "cli" |
| 22489 | readonly creatorName?: string | null; | 24923 | | "vscode" |
| 22490 | readonly discoverability?: V2PluginInstalledResponse__PluginShareDiscoverability | null; | 24924 | | "exec" |
| 22491 | readonly remotePluginId: string; | 24925 | | "appServer" |
| 22492 | readonly remoteVersion?: string | null; | 24926 | | "unknown" |
| 22493 | readonly sharePrincipals?: ReadonlyArray<V2PluginInstalledResponse__PluginSharePrincipal> | null; | 24927 | | { readonly custom: string } |
| 22494 | readonly shareUrl?: string | null; | 24928 | | { readonly subAgent: V2ThreadStartedNotification__SubAgentSource }; |
| | 24929 | export const V2ThreadStartedNotification__SessionSource = Schema.Union( |
| | 24930 | [ |
| | 24931 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), |
| | 24932 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), |
| | 24933 | Schema.Struct({ subAgent: V2ThreadStartedNotification__SubAgentSource }).annotate({ |
| | 24934 | title: "SubAgentSessionSource", |
| | 24935 | }), |
| | 24936 | ], |
| | 24937 | { mode: "oneOf" }, |
| | 24938 | ).annotate({ identifier: "V2ThreadStartedNotification__SessionSource" }); |
| | 24939 | |
| | 24940 | export type V2ThreadStartedNotification__TurnError = { |
| | 24941 | readonly additionalDetails?: string | null; |
| | 24942 | readonly codexErrorInfo?: V2ThreadStartedNotification__CodexErrorInfo | null; |
| | 24943 | readonly message: string; |
| 22495 | }; | 24944 | }; |
| 22496 | export const V2PluginInstalledResponse__PluginShareContext = Schema.Struct({ | 24945 | export const V2ThreadStartedNotification__TurnError = Schema.Struct({ |
| 22497 | creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 24946 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 22498 | creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 24947 | codexErrorInfo: Schema.optionalKey( |
| 22499 | discoverability: Schema.optionalKey( | 24948 | Schema.Union([V2ThreadStartedNotification__CodexErrorInfo, Schema.Null]), |
| 22500 | Schema.Union([V2PluginInstalledResponse__PluginShareDiscoverability, Schema.Null]), | | |
| 22501 | ), | | |
| 22502 | remotePluginId: Schema.String, | | |
| 22503 | remoteVersion: Schema.optionalKey( | | |
| 22504 | Schema.Union([ | | |
| 22505 | Schema.String.annotate({ | | |
| 22506 | description: "Version of the remote shared plugin release when available.", | | |
| 22507 | }), | | |
| 22508 | Schema.Null, | | |
| 22509 | ]), | | |
| 22510 | ), | | |
| 22511 | sharePrincipals: Schema.optionalKey( | | |
| 22512 | Schema.Union([Schema.Array(V2PluginInstalledResponse__PluginSharePrincipal), Schema.Null]), | | |
| 22513 | ), | | |
| 22514 | shareUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 22515 | }); | | |
| 22516 | | | |
| 22517 | export type V2PluginListResponse__PluginShareContext = { | | |
| 22518 | readonly creatorAccountUserId?: string | null; | | |
| 22519 | readonly creatorName?: string | null; | | |
| 22520 | readonly discoverability?: V2PluginListResponse__PluginShareDiscoverability | null; | | |
| 22521 | readonly remotePluginId: string; | | |
| 22522 | readonly remoteVersion?: string | null; | | |
| 22523 | readonly sharePrincipals?: ReadonlyArray<V2PluginListResponse__PluginSharePrincipal> | null; | | |
| 22524 | readonly shareUrl?: string | null; | | |
| 22525 | }; | | |
| 22526 | export const V2PluginListResponse__PluginShareContext = Schema.Struct({ | | |
| 22527 | creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 22528 | creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 22529 | discoverability: Schema.optionalKey( | | |
| 22530 | Schema.Union([V2PluginListResponse__PluginShareDiscoverability, Schema.Null]), | | |
| 22531 | ), | | |
| 22532 | remotePluginId: Schema.String, | | |
| 22533 | remoteVersion: Schema.optionalKey( | | |
| 22534 | Schema.Union([ | | |
| 22535 | Schema.String.annotate({ | | |
| 22536 | description: "Version of the remote shared plugin release when available.", | | |
| 22537 | }), | | |
| 22538 | Schema.Null, | | |
| 22539 | ]), | | |
| 22540 | ), | | |
| 22541 | sharePrincipals: Schema.optionalKey( | | |
| 22542 | Schema.Union([Schema.Array(V2PluginListResponse__PluginSharePrincipal), Schema.Null]), | | |
| 22543 | ), | | |
| 22544 | shareUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 22545 | }); | | |
| 22546 | | | |
| 22547 | export type V2PluginReadResponse__SkillSummary = { | | |
| 22548 | readonly description: string; | | |
| 22549 | readonly enabled: boolean; | | |
| 22550 | readonly interface?: V2PluginReadResponse__SkillInterface | null; | | |
| 22551 | readonly name: string; | | |
| 22552 | readonly path?: V2PluginReadResponse__AbsolutePathBuf | null; | | |
| 22553 | readonly shortDescription?: string | null; | | |
| 22554 | }; | | |
| 22555 | export const V2PluginReadResponse__SkillSummary = Schema.Struct({ | | |
| 22556 | description: Schema.String, | | |
| 22557 | enabled: Schema.Boolean, | | |
| 22558 | interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__SkillInterface, Schema.Null])), | | |
| 22559 | name: Schema.String, | | |
| 22560 | path: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])), | | |
| 22561 | shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 22562 | }); | | |
| 22563 | | | |
| 22564 | export type V2PluginReadResponse__PluginShareContext = { | | |
| 22565 | readonly creatorAccountUserId?: string | null; | | |
| 22566 | readonly creatorName?: string | null; | | |
| 22567 | readonly discoverability?: V2PluginReadResponse__PluginShareDiscoverability | null; | | |
| 22568 | readonly remotePluginId: string; | | |
| 22569 | readonly remoteVersion?: string | null; | | |
| 22570 | readonly sharePrincipals?: ReadonlyArray<V2PluginReadResponse__PluginSharePrincipal> | null; | | |
| 22571 | readonly shareUrl?: string | null; | | |
| 22572 | }; | | |
| 22573 | export const V2PluginReadResponse__PluginShareContext = Schema.Struct({ | | |
| 22574 | creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 22575 | creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 22576 | discoverability: Schema.optionalKey( | | |
| 22577 | Schema.Union([V2PluginReadResponse__PluginShareDiscoverability, Schema.Null]), | | |
| 22578 | ), | | |
| 22579 | remotePluginId: Schema.String, | | |
| 22580 | remoteVersion: Schema.optionalKey( | | |
| 22581 | Schema.Union([ | | |
| 22582 | Schema.String.annotate({ | | |
| 22583 | description: "Version of the remote shared plugin release when available.", | | |
| 22584 | }), | | |
| 22585 | Schema.Null, | | |
| 22586 | ]), | | |
| 22587 | ), | | |
| 22588 | sharePrincipals: Schema.optionalKey( | | |
| 22589 | Schema.Union([Schema.Array(V2PluginReadResponse__PluginSharePrincipal), Schema.Null]), | | |
| 22590 | ), | 24949 | ), |
| 22591 | shareUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 24950 | message: Schema.String, |
| 22592 | }); | 24951 | }).annotate({ identifier: "V2ThreadStartedNotification__TurnError" }); |
| 22593 | | | |
| 22594 | export type V2PluginReadResponse__ScheduledTaskSummary = { | | |
| 22595 | readonly key: string; | | |
| 22596 | readonly name: string; | | |
| 22597 | readonly prompt: string; | | |
| 22598 | readonly schedule: V2PluginReadResponse__ScheduledTaskSchedule; | | |
| 22599 | }; | | |
| 22600 | export const V2PluginReadResponse__ScheduledTaskSummary = Schema.Struct({ | | |
| 22601 | key: Schema.String, | | |
| 22602 | name: Schema.String, | | |
| 22603 | prompt: Schema.String, | | |
| 22604 | schedule: V2PluginReadResponse__ScheduledTaskSchedule, | | |
| 22605 | }); | | |
| 22606 | | 24952 | |
| 22607 | export type V2PluginShareListResponse__PluginShareContext = { | 24953 | export type V2ThreadStartedNotification__UserInput = |
| 22608 | readonly creatorAccountUserId?: string | null; | 24954 | | { |
| 22609 | readonly creatorName?: string | null; | 24955 | readonly text: string; |
| 22610 | readonly discoverability?: V2PluginShareListResponse__PluginShareDiscoverability | null; | 24956 | readonly text_elements?: ReadonlyArray<V2ThreadStartedNotification__TextElement>; |
| 22611 | readonly remotePluginId: string; | 24957 | readonly type: "text"; |
| 22612 | readonly remoteVersion?: string | null; | 24958 | } |
| 22613 | readonly sharePrincipals?: ReadonlyArray<V2PluginShareListResponse__PluginSharePrincipal> | null; | 24959 | | { |
| 22614 | readonly shareUrl?: string | null; | 24960 | readonly detail?: V2ThreadStartedNotification__ImageDetail | null; |
| 22615 | }; | 24961 | readonly type: "image"; |
| 22616 | export const V2PluginShareListResponse__PluginShareContext = Schema.Struct({ | 24962 | readonly url: string; |
| 22617 | creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 24963 | } |
| 22618 | creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 24964 | | { |
| 22619 | discoverability: Schema.optionalKey( | 24965 | readonly detail?: V2ThreadStartedNotification__ImageDetail | null; |
| 22620 | Schema.Union([V2PluginShareListResponse__PluginShareDiscoverability, Schema.Null]), | 24966 | readonly path: string; |
| 22621 | ), | 24967 | readonly type: "localImage"; |
| 22622 | remotePluginId: Schema.String, | 24968 | } |
| 22623 | remoteVersion: Schema.optionalKey( | 24969 | | { readonly type: "audio"; readonly url: string } |
| 22624 | Schema.Union([ | 24970 | | { readonly path: string; readonly type: "localAudio" } |
| 22625 | Schema.String.annotate({ | 24971 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| 22626 | description: "Version of the remote shared plugin release when available.", | 24972 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| 22627 | }), | 24973 | export const V2ThreadStartedNotification__UserInput = Schema.Union( |
| 22628 | Schema.Null, | 24974 | [ |
| 22629 | ]), | 24975 | Schema.Struct({ |
| 22630 | ), | 24976 | text: Schema.String, |
| 22631 | sharePrincipals: Schema.optionalKey( | 24977 | text_elements: Schema.optionalKey( |
| 22632 | Schema.Union([Schema.Array(V2PluginShareListResponse__PluginSharePrincipal), Schema.Null]), | 24978 | Schema.Array(V2ThreadStartedNotification__TextElement).annotate({ |
| 22633 | ), | 24979 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| 22634 | shareUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 24980 | default: [], |
| 22635 | }); | 24981 | }), |
| | 24982 | ), |
| | 24983 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| | 24984 | }).annotate({ title: "TextUserInput" }), |
| | 24985 | Schema.Struct({ |
| | 24986 | detail: Schema.optionalKey( |
| | 24987 | Schema.Union([V2ThreadStartedNotification__ImageDetail, Schema.Null]), |
| | 24988 | ), |
| | 24989 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 24990 | url: Schema.String, |
| | 24991 | }).annotate({ title: "ImageUserInput" }), |
| | 24992 | Schema.Struct({ |
| | 24993 | detail: Schema.optionalKey( |
| | 24994 | Schema.Union([V2ThreadStartedNotification__ImageDetail, Schema.Null]), |
| | 24995 | ), |
| | 24996 | path: Schema.String, |
| | 24997 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| | 24998 | }).annotate({ title: "LocalImageUserInput" }), |
| | 24999 | Schema.Struct({ |
| | 25000 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), |
| | 25001 | url: Schema.String, |
| | 25002 | }).annotate({ title: "AudioUserInput" }), |
| | 25003 | Schema.Struct({ |
| | 25004 | path: Schema.String, |
| | 25005 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), |
| | 25006 | }).annotate({ title: "LocalAudioUserInput" }), |
| | 25007 | Schema.Struct({ |
| | 25008 | name: Schema.String, |
| | 25009 | path: Schema.String, |
| | 25010 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), |
| | 25011 | }).annotate({ title: "SkillUserInput" }), |
| | 25012 | Schema.Struct({ |
| | 25013 | name: Schema.String, |
| | 25014 | path: Schema.String, |
| | 25015 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), |
| | 25016 | }).annotate({ title: "MentionUserInput" }), |
| | 25017 | ], |
| | 25018 | { mode: "oneOf" }, |
| | 25019 | ).annotate({ identifier: "V2ThreadStartedNotification__UserInput" }); |
| 22636 | | 25020 | |
| 22637 | export type V2RawResponseItemCompletedNotification__FunctionCallOutputBody = | 25021 | export type V2ThreadStartResponse__SessionSource = |
| 22638 | | string | 25022 | | "cli" |
| 22639 | | ReadonlyArray<V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem>; | 25023 | | "vscode" |
| 22640 | export const V2RawResponseItemCompletedNotification__FunctionCallOutputBody = Schema.Union([ | 25024 | | "exec" |
| 22641 | Schema.String, | 25025 | | "appServer" |
| 22642 | Schema.Array(V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem), | 25026 | | "unknown" |
| 22643 | ]); | 25027 | | { readonly custom: string } |
| | 25028 | | { readonly subAgent: V2ThreadStartResponse__SubAgentSource }; |
| | 25029 | export const V2ThreadStartResponse__SessionSource = Schema.Union( |
| | 25030 | [ |
| | 25031 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), |
| | 25032 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), |
| | 25033 | Schema.Struct({ subAgent: V2ThreadStartResponse__SubAgentSource }).annotate({ |
| | 25034 | title: "SubAgentSessionSource", |
| | 25035 | }), |
| | 25036 | ], |
| | 25037 | { mode: "oneOf" }, |
| | 25038 | ).annotate({ identifier: "V2ThreadStartResponse__SessionSource" }); |
| 22644 | | 25039 | |
| 22645 | export type V2ReviewStartResponse__TurnError = { | 25040 | export type V2ThreadStartResponse__TurnError = { |
| 22646 | readonly additionalDetails?: string | null; | 25041 | readonly additionalDetails?: string | null; |
| 22647 | readonly codexErrorInfo?: V2ReviewStartResponse__CodexErrorInfo | null; | 25042 | readonly codexErrorInfo?: V2ThreadStartResponse__CodexErrorInfo | null; |
| 22648 | readonly message: string; | 25043 | readonly message: string; |
| 22649 | }; | 25044 | }; |
| 22650 | export const V2ReviewStartResponse__TurnError = Schema.Struct({ | 25045 | export const V2ThreadStartResponse__TurnError = Schema.Struct({ |
| 22651 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 25046 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 22652 | codexErrorInfo: Schema.optionalKey( | 25047 | codexErrorInfo: Schema.optionalKey( |
| 22653 | Schema.Union([V2ReviewStartResponse__CodexErrorInfo, Schema.Null]), | 25048 | Schema.Union([V2ThreadStartResponse__CodexErrorInfo, Schema.Null]), |
| 22654 | ), | 25049 | ), |
| 22655 | message: Schema.String, | 25050 | message: Schema.String, |
| 22656 | }); | 25051 | }).annotate({ identifier: "V2ThreadStartResponse__TurnError" }); |
| 22657 | | 25052 | |
| 22658 | export type V2ReviewStartResponse__ThreadItem = | 25053 | export type V2ThreadStartResponse__UserInput = |
| 22659 | | { | | |
| 22660 | readonly clientId?: string | null; | | |
| 22661 | readonly content: ReadonlyArray<V2ReviewStartResponse__UserInput>; | | |
| 22662 | readonly id: string; | | |
| 22663 | readonly type: "userMessage"; | | |
| 22664 | } | | |
| 22665 | | { | | |
| 22666 | readonly fragments: ReadonlyArray<V2ReviewStartResponse__HookPromptFragment>; | | |
| 22667 | readonly id: string; | | |
| 22668 | readonly type: "hookPrompt"; | | |
| 22669 | } | | |
| 22670 | | { | 25054 | | { |
| 22671 | readonly id: string; | | |
| 22672 | readonly memoryCitation?: V2ReviewStartResponse__MemoryCitation | null; | | |
| 22673 | readonly phase?: V2ReviewStartResponse__MessagePhase | null; | | |
| 22674 | readonly text: string; | 25055 | readonly text: string; |
| 22675 | readonly delivery?: "async" | null; | 25056 | readonly text_elements?: ReadonlyArray<V2ThreadStartResponse__TextElement>; |
| 22676 | readonly questions?: ReadonlyArray<{ | 25057 | readonly type: "text"; |
| 22677 | readonly title: string; | | |
| 22678 | readonly options?: ReadonlyArray<string> | null; | | |
| 22679 | }> | null; | | |
| 22680 | readonly type: "agentMessage"; | | |
| 22681 | } | | |
| 22682 | | { readonly id: string; readonly text: string; readonly type: "plan" } | | |
| 22683 | | { | | |
| 22684 | readonly content?: ReadonlyArray<string>; | | |
| 22685 | readonly id: string; | | |
| 22686 | readonly summary?: ReadonlyArray<string>; | | |
| 22687 | readonly type: "reasoning"; | | |
| 22688 | } | | |
| 22689 | | { | | |
| 22690 | readonly aggregatedOutput?: string | null; | | |
| 22691 | readonly command: string; | | |
| 22692 | readonly commandActions: ReadonlyArray<V2ReviewStartResponse__CommandAction>; | | |
| 22693 | readonly cwd: string; | | |
| 22694 | readonly durationMs?: number | null; | | |
| 22695 | readonly exitCode?: number | null; | | |
| 22696 | readonly id: string; | | |
| 22697 | readonly processId?: string | null; | | |
| 22698 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; | | |
| 22699 | readonly status: V2ReviewStartResponse__CommandExecutionStatus; | | |
| 22700 | readonly type: "commandExecution"; | | |
| 22701 | } | | |
| 22702 | | { | | |
| 22703 | readonly changes: ReadonlyArray<V2ReviewStartResponse__FileUpdateChange>; | | |
| 22704 | readonly id: string; | | |
| 22705 | readonly status: V2ReviewStartResponse__PatchApplyStatus; | | |
| 22706 | readonly type: "fileChange"; | | |
| 22707 | } | | |
| 22708 | | { | | |
| 22709 | readonly appContext?: V2ReviewStartResponse__McpToolCallAppContext | null; | | |
| 22710 | readonly arguments: unknown; | | |
| 22711 | readonly durationMs?: number | null; | | |
| 22712 | readonly error?: V2ReviewStartResponse__McpToolCallError | null; | | |
| 22713 | readonly id: string; | | |
| 22714 | readonly mcpAppResourceUri?: string | null; | | |
| 22715 | readonly pluginId?: string | null; | | |
| 22716 | readonly result?: V2ReviewStartResponse__McpToolCallResult | null; | | |
| 22717 | readonly server: string; | | |
| 22718 | readonly status: V2ReviewStartResponse__McpToolCallStatus; | | |
| 22719 | readonly tool: string; | | |
| 22720 | readonly type: "mcpToolCall"; | | |
| 22721 | } | | |
| 22722 | | { | | |
| 22723 | readonly arguments: unknown; | | |
| 22724 | readonly contentItems?: ReadonlyArray<V2ReviewStartResponse__DynamicToolCallOutputContentItem> | null; | | |
| 22725 | readonly durationMs?: number | null; | | |
| 22726 | readonly id: string; | | |
| 22727 | readonly namespace?: string | null; | | |
| 22728 | readonly status: V2ReviewStartResponse__DynamicToolCallStatus; | | |
| 22729 | readonly success?: boolean | null; | | |
| 22730 | readonly tool: string; | | |
| 22731 | readonly type: "dynamicToolCall"; | | |
| 22732 | } | 25058 | } |
| 22733 | | { | 25059 | | { |
| 22734 | readonly agentsStates: { readonly [x: string]: V2ReviewStartResponse__CollabAgentState }; | 25060 | readonly detail?: V2ThreadStartResponse__ImageDetail | null; |
| 22735 | readonly id: string; | 25061 | readonly type: "image"; |
| 22736 | readonly model?: string | null; | 25062 | readonly url: string; |
| 22737 | readonly prompt?: string | null; | | |
| 22738 | readonly reasoningEffort?: V2ReviewStartResponse__ReasoningEffort | null; | | |
| 22739 | readonly receiverThreadIds: ReadonlyArray<string>; | | |
| 22740 | readonly senderThreadId: string; | | |
| 22741 | readonly status: "inProgress" | "completed" | "failed" | "interrupted"; | | |
| 22742 | readonly tool: | | |
| 22743 | | "spawnAgent" | | |
| 22744 | | "sendInput" | | |
| 22745 | | "resumeAgent" | | |
| 22746 | | "wait" | | |
| 22747 | | "closeAgent" | | |
| 22748 | | "sendMessage" | | |
| 22749 | | "followupTask" | | |
| 22750 | | "interruptAgent" | | |
| 22751 | | "listAgents"; | | |
| 22752 | readonly type: "collabAgentToolCall"; | | |
| 22753 | } | 25063 | } |
| 22754 | | { | 25064 | | { |
| 22755 | readonly agentPath: string; | 25065 | readonly detail?: V2ThreadStartResponse__ImageDetail | null; |
| 22756 | readonly agentThreadId: string; | 25066 | readonly path: string; |
| 22757 | readonly id: string; | 25067 | readonly type: "localImage"; |
| 22758 | readonly kind: V2ReviewStartResponse__SubAgentActivityKind; | | |
| 22759 | readonly type: "subAgentActivity"; | | |
| 22760 | } | 25068 | } |
| | 25069 | | { readonly type: "audio"; readonly url: string } |
| | 25070 | | { readonly path: string; readonly type: "localAudio" } |
| | 25071 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| | 25072 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| | 25073 | export const V2ThreadStartResponse__UserInput = Schema.Union( |
| | 25074 | [ |
| | 25075 | Schema.Struct({ |
| | 25076 | text: Schema.String, |
| | 25077 | text_elements: Schema.optionalKey( |
| | 25078 | Schema.Array(V2ThreadStartResponse__TextElement).annotate({ |
| | 25079 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| | 25080 | default: [], |
| | 25081 | }), |
| | 25082 | ), |
| | 25083 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| | 25084 | }).annotate({ title: "TextUserInput" }), |
| | 25085 | Schema.Struct({ |
| | 25086 | detail: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__ImageDetail, Schema.Null])), |
| | 25087 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 25088 | url: Schema.String, |
| | 25089 | }).annotate({ title: "ImageUserInput" }), |
| | 25090 | Schema.Struct({ |
| | 25091 | detail: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__ImageDetail, Schema.Null])), |
| | 25092 | path: Schema.String, |
| | 25093 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| | 25094 | }).annotate({ title: "LocalImageUserInput" }), |
| | 25095 | Schema.Struct({ |
| | 25096 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), |
| | 25097 | url: Schema.String, |
| | 25098 | }).annotate({ title: "AudioUserInput" }), |
| | 25099 | Schema.Struct({ |
| | 25100 | path: Schema.String, |
| | 25101 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), |
| | 25102 | }).annotate({ title: "LocalAudioUserInput" }), |
| | 25103 | Schema.Struct({ |
| | 25104 | name: Schema.String, |
| | 25105 | path: Schema.String, |
| | 25106 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), |
| | 25107 | }).annotate({ title: "SkillUserInput" }), |
| | 25108 | Schema.Struct({ |
| | 25109 | name: Schema.String, |
| | 25110 | path: Schema.String, |
| | 25111 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), |
| | 25112 | }).annotate({ title: "MentionUserInput" }), |
| | 25113 | ], |
| | 25114 | { mode: "oneOf" }, |
| | 25115 | ).annotate({ identifier: "V2ThreadStartResponse__UserInput" }); |
| | 25116 | |
| | 25117 | export type V2ThreadUnarchiveResponse__SessionSource = |
| | 25118 | | "cli" |
| | 25119 | | "vscode" |
| | 25120 | | "exec" |
| | 25121 | | "appServer" |
| | 25122 | | "unknown" |
| | 25123 | | { readonly custom: string } |
| | 25124 | | { readonly subAgent: V2ThreadUnarchiveResponse__SubAgentSource }; |
| | 25125 | export const V2ThreadUnarchiveResponse__SessionSource = Schema.Union( |
| | 25126 | [ |
| | 25127 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), |
| | 25128 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), |
| | 25129 | Schema.Struct({ subAgent: V2ThreadUnarchiveResponse__SubAgentSource }).annotate({ |
| | 25130 | title: "SubAgentSessionSource", |
| | 25131 | }), |
| | 25132 | ], |
| | 25133 | { mode: "oneOf" }, |
| | 25134 | ).annotate({ identifier: "V2ThreadUnarchiveResponse__SessionSource" }); |
| | 25135 | |
| | 25136 | export type V2ThreadUnarchiveResponse__TurnError = { |
| | 25137 | readonly additionalDetails?: string | null; |
| | 25138 | readonly codexErrorInfo?: V2ThreadUnarchiveResponse__CodexErrorInfo | null; |
| | 25139 | readonly message: string; |
| | 25140 | }; |
| | 25141 | export const V2ThreadUnarchiveResponse__TurnError = Schema.Struct({ |
| | 25142 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 25143 | codexErrorInfo: Schema.optionalKey( |
| | 25144 | Schema.Union([V2ThreadUnarchiveResponse__CodexErrorInfo, Schema.Null]), |
| | 25145 | ), |
| | 25146 | message: Schema.String, |
| | 25147 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__TurnError" }); |
| | 25148 | |
| | 25149 | export type V2ThreadUnarchiveResponse__UserInput = |
| 22761 | | { | 25150 | | { |
| 22762 | readonly action?: V2ReviewStartResponse__WebSearchAction | null; | 25151 | readonly text: string; |
| 22763 | readonly id: string; | 25152 | readonly text_elements?: ReadonlyArray<V2ThreadUnarchiveResponse__TextElement>; |
| 22764 | readonly query: string; | 25153 | readonly type: "text"; |
| 22765 | readonly results?: ReadonlyArray<unknown> | null; | | |
| 22766 | readonly type: "webSearch"; | | |
| 22767 | } | 25154 | } |
| 22768 | | { | 25155 | | { |
| 22769 | readonly id: string; | 25156 | readonly detail?: V2ThreadUnarchiveResponse__ImageDetail | null; |
| 22770 | readonly path: V2ReviewStartResponse__LegacyAppPathString; | 25157 | readonly type: "image"; |
| 22771 | readonly type: "imageView"; | 25158 | readonly url: string; |
| 22772 | } | 25159 | } |
| 22773 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | | |
| 22774 | | { | 25160 | | { |
| 22775 | readonly id: string; | 25161 | readonly detail?: V2ThreadUnarchiveResponse__ImageDetail | null; |
| 22776 | readonly result: string; | 25162 | readonly path: string; |
| 22777 | readonly revisedPrompt?: string | null; | 25163 | readonly type: "localImage"; |
| 22778 | readonly savedPath?: V2ReviewStartResponse__AbsolutePathBuf | null; | | |
| 22779 | readonly status: string; | | |
| 22780 | readonly type: "imageGeneration"; | | |
| 22781 | } | 25164 | } |
| 22782 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 25165 | | { readonly type: "audio"; readonly url: string } |
| 22783 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } | 25166 | | { readonly path: string; readonly type: "localAudio" } |
| 22784 | | { readonly id: string; readonly type: "contextCompaction" }; | 25167 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| 22785 | export const V2ReviewStartResponse__ThreadItem = Schema.Union( | 25168 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| | 25169 | export const V2ThreadUnarchiveResponse__UserInput = Schema.Union( |
| 22786 | [ | 25170 | [ |
| 22787 | Schema.Struct({ | 25171 | Schema.Struct({ |
| 22788 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 25172 | text: Schema.String, |
| 22789 | content: Schema.Array(V2ReviewStartResponse__UserInput), | 25173 | text_elements: Schema.optionalKey( |
| 22790 | id: Schema.String, | 25174 | Schema.Array(V2ThreadUnarchiveResponse__TextElement).annotate({ |
| 22791 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), | 25175 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| 22792 | }).annotate({ title: "UserMessageThreadItem" }), | 25176 | default: [], |
| 22793 | Schema.Struct({ | 25177 | }), |
| 22794 | fragments: Schema.Array(V2ReviewStartResponse__HookPromptFragment), | 25178 | ), |
| 22795 | id: Schema.String, | 25179 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 22796 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | 25180 | }).annotate({ title: "TextUserInput" }), |
| 22797 | }).annotate({ title: "HookPromptThreadItem" }), | | |
| 22798 | Schema.Struct({ | 25181 | Schema.Struct({ |
| 22799 | id: Schema.String, | 25182 | detail: Schema.optionalKey( |
| 22800 | memoryCitation: Schema.optionalKey( | 25183 | Schema.Union([V2ThreadUnarchiveResponse__ImageDetail, Schema.Null]), |
| 22801 | Schema.Union([V2ReviewStartResponse__MemoryCitation, Schema.Null]), | | |
| 22802 | ), | 25184 | ), |
| 22803 | phase: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__MessagePhase, Schema.Null])), | 25185 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| 22804 | text: Schema.String, | 25186 | url: Schema.String, |
| 22805 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | 25187 | }).annotate({ title: "ImageUserInput" }), |
| 22806 | questions: Schema.optionalKey( | 25188 | Schema.Struct({ |
| 22807 | Schema.Union([ | 25189 | detail: Schema.optionalKey( |
| 22808 | Schema.Array( | 25190 | Schema.Union([V2ThreadUnarchiveResponse__ImageDetail, Schema.Null]), |
| 22809 | Schema.Struct({ | | |
| 22810 | title: Schema.String, | | |
| 22811 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 22812 | }), | | |
| 22813 | ), | | |
| 22814 | Schema.Null, | | |
| 22815 | ]), | | |
| 22816 | ), | 25191 | ), |
| 22817 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), | 25192 | path: Schema.String, |
| 22818 | }).annotate({ title: "AgentMessageThreadItem" }), | 25193 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| | 25194 | }).annotate({ title: "LocalImageUserInput" }), |
| 22819 | Schema.Struct({ | 25195 | Schema.Struct({ |
| 22820 | id: Schema.String, | 25196 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), |
| 22821 | text: Schema.String, | 25197 | url: Schema.String, |
| 22822 | type: Schema.Literal("plan").annotate({ title: "PlanThreadItemType" }), | 25198 | }).annotate({ title: "AudioUserInput" }), |
| 22823 | }).annotate({ | | |
| 22824 | title: "PlanThreadItem", | | |
| 22825 | description: | | |
| 22826 | "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.", | | |
| 22827 | }), | | |
| 22828 | Schema.Struct({ | 25199 | Schema.Struct({ |
| 22829 | content: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), | 25200 | path: Schema.String, |
| 22830 | id: Schema.String, | 25201 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), |
| 22831 | summary: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), | 25202 | }).annotate({ title: "LocalAudioUserInput" }), |
| 22832 | type: Schema.Literal("reasoning").annotate({ title: "ReasoningThreadItemType" }), | | |
| 22833 | }).annotate({ title: "ReasoningThreadItem" }), | | |
| 22834 | Schema.Struct({ | 25203 | Schema.Struct({ |
| 22835 | aggregatedOutput: Schema.optionalKey( | 25204 | name: Schema.String, |
| 22836 | Schema.Union([ | 25205 | path: Schema.String, |
| 22837 | Schema.String.annotate({ | 25206 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), |
| 22838 | description: "The command's output, aggregated from stdout and stderr.", | 25207 | }).annotate({ title: "SkillUserInput" }), |
| 22839 | }), | | |
| 22840 | Schema.Null, | | |
| 22841 | ]), | | |
| 22842 | ), | | |
| 22843 | command: Schema.String.annotate({ description: "The command to be executed." }), | | |
| 22844 | commandActions: Schema.Array(V2ReviewStartResponse__CommandAction).annotate({ | | |
| 22845 | description: | | |
| 22846 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", | | |
| 22847 | }), | | |
| 22848 | cwd: Schema.String.annotate({ description: "The command's working directory." }), | | |
| 22849 | durationMs: Schema.optionalKey( | | |
| 22850 | Schema.Union([ | | |
| 22851 | Schema.Number.annotate({ | | |
| 22852 | description: "The duration of the command execution in milliseconds.", | | |
| 22853 | format: "int64", | | |
| 22854 | }).check(Schema.isInt()), | | |
| 22855 | Schema.Null, | | |
| 22856 | ]), | | |
| 22857 | ), | | |
| 22858 | exitCode: Schema.optionalKey( | | |
| 22859 | Schema.Union([ | | |
| 22860 | Schema.Number.annotate({ | | |
| 22861 | description: "The command's exit code.", | | |
| 22862 | format: "int32", | | |
| 22863 | }).check(Schema.isInt()), | | |
| 22864 | Schema.Null, | | |
| 22865 | ]), | | |
| 22866 | ), | | |
| 22867 | id: Schema.String, | | |
| 22868 | processId: Schema.optionalKey( | | |
| 22869 | Schema.Union([ | | |
| 22870 | Schema.String.annotate({ | | |
| 22871 | description: "Identifier for the underlying PTY process (when available).", | | |
| 22872 | }), | | |
| 22873 | Schema.Null, | | |
| 22874 | ]), | | |
| 22875 | ), | | |
| 22876 | source: Schema.optionalKey( | | |
| 22877 | Schema.Literals([ | | |
| 22878 | "agent", | | |
| 22879 | "userShell", | | |
| 22880 | "unifiedExecStartup", | | |
| 22881 | "unifiedExecInteraction", | | |
| 22882 | ]).annotate({ default: "agent" }), | | |
| 22883 | ), | | |
| 22884 | status: V2ReviewStartResponse__CommandExecutionStatus, | | |
| 22885 | type: Schema.Literal("commandExecution").annotate({ | | |
| 22886 | title: "CommandExecutionThreadItemType", | | |
| 22887 | }), | | |
| 22888 | }).annotate({ title: "CommandExecutionThreadItem" }), | | |
| 22889 | Schema.Struct({ | | |
| 22890 | changes: Schema.Array(V2ReviewStartResponse__FileUpdateChange), | | |
| 22891 | id: Schema.String, | | |
| 22892 | status: V2ReviewStartResponse__PatchApplyStatus, | | |
| 22893 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), | | |
| 22894 | }).annotate({ title: "FileChangeThreadItem" }), | | |
| 22895 | Schema.Struct({ | | |
| 22896 | appContext: Schema.optionalKey( | | |
| 22897 | Schema.Union([V2ReviewStartResponse__McpToolCallAppContext, Schema.Null]), | | |
| 22898 | ), | | |
| 22899 | arguments: Schema.Unknown, | | |
| 22900 | durationMs: Schema.optionalKey( | | |
| 22901 | Schema.Union([ | | |
| 22902 | Schema.Number.annotate({ | | |
| 22903 | description: "The duration of the MCP tool call in milliseconds.", | | |
| 22904 | format: "int64", | | |
| 22905 | }).check(Schema.isInt()), | | |
| 22906 | Schema.Null, | | |
| 22907 | ]), | | |
| 22908 | ), | | |
| 22909 | error: Schema.optionalKey( | | |
| 22910 | Schema.Union([V2ReviewStartResponse__McpToolCallError, Schema.Null]), | | |
| 22911 | ), | | |
| 22912 | id: Schema.String, | | |
| 22913 | mcpAppResourceUri: Schema.optionalKey( | | |
| 22914 | Schema.Union([ | | |
| 22915 | Schema.String.annotate({ | | |
| 22916 | description: "Deprecated: use `appContext.resourceUri` instead.", | | |
| 22917 | }), | | |
| 22918 | Schema.Null, | | |
| 22919 | ]), | | |
| 22920 | ), | | |
| 22921 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 22922 | result: Schema.optionalKey( | | |
| 22923 | Schema.Union([V2ReviewStartResponse__McpToolCallResult, Schema.Null]), | | |
| 22924 | ), | | |
| 22925 | server: Schema.String, | | |
| 22926 | status: V2ReviewStartResponse__McpToolCallStatus, | | |
| 22927 | tool: Schema.String, | | |
| 22928 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), | | |
| 22929 | }).annotate({ title: "McpToolCallThreadItem" }), | | |
| 22930 | Schema.Struct({ | 25208 | Schema.Struct({ |
| 22931 | arguments: Schema.Unknown, | 25209 | name: Schema.String, |
| 22932 | contentItems: Schema.optionalKey( | 25210 | path: Schema.String, |
| 22933 | Schema.Union([ | 25211 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), |
| 22934 | Schema.Array(V2ReviewStartResponse__DynamicToolCallOutputContentItem), | 25212 | }).annotate({ title: "MentionUserInput" }), |
| 22935 | Schema.Null, | 25213 | ], |
| 22936 | ]), | 25214 | { mode: "oneOf" }, |
| 22937 | ), | 25215 | ).annotate({ identifier: "V2ThreadUnarchiveResponse__UserInput" }); |
| 22938 | durationMs: Schema.optionalKey( | 25216 | |
| 22939 | Schema.Union([ | 25217 | export type V2TurnCompletedNotification__TurnError = { |
| 22940 | Schema.Number.annotate({ | 25218 | readonly additionalDetails?: string | null; |
| 22941 | description: "The duration of the dynamic tool call in milliseconds.", | 25219 | readonly codexErrorInfo?: V2TurnCompletedNotification__CodexErrorInfo | null; |
| 22942 | format: "int64", | 25220 | readonly message: string; |
| 22943 | }).check(Schema.isInt()), | 25221 | }; |
| 22944 | Schema.Null, | 25222 | export const V2TurnCompletedNotification__TurnError = Schema.Struct({ |
| 22945 | ]), | 25223 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 22946 | ), | 25224 | codexErrorInfo: Schema.optionalKey( |
| 22947 | id: Schema.String, | 25225 | Schema.Union([V2TurnCompletedNotification__CodexErrorInfo, Schema.Null]), |
| 22948 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 25226 | ), |
| 22949 | status: V2ReviewStartResponse__DynamicToolCallStatus, | 25227 | message: Schema.String, |
| 22950 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 25228 | }).annotate({ identifier: "V2TurnCompletedNotification__TurnError" }); |
| 22951 | tool: Schema.String, | 25229 | |
| 22952 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), | 25230 | export type V2TurnCompletedNotification__UserInput = |
| 22953 | }).annotate({ title: "DynamicToolCallThreadItem" }), | 25231 | | { |
| | 25232 | readonly text: string; |
| | 25233 | readonly text_elements?: ReadonlyArray<V2TurnCompletedNotification__TextElement>; |
| | 25234 | readonly type: "text"; |
| | 25235 | } |
| | 25236 | | { |
| | 25237 | readonly detail?: V2TurnCompletedNotification__ImageDetail | null; |
| | 25238 | readonly type: "image"; |
| | 25239 | readonly url: string; |
| | 25240 | } |
| | 25241 | | { |
| | 25242 | readonly detail?: V2TurnCompletedNotification__ImageDetail | null; |
| | 25243 | readonly path: string; |
| | 25244 | readonly type: "localImage"; |
| | 25245 | } |
| | 25246 | | { readonly type: "audio"; readonly url: string } |
| | 25247 | | { readonly path: string; readonly type: "localAudio" } |
| | 25248 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| | 25249 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| | 25250 | export const V2TurnCompletedNotification__UserInput = Schema.Union( |
| | 25251 | [ |
| 22954 | Schema.Struct({ | 25252 | Schema.Struct({ |
| 22955 | agentsStates: Schema.Record(Schema.String, V2ReviewStartResponse__CollabAgentState).annotate({ | 25253 | text: Schema.String, |
| 22956 | description: "Last known status of the target agents, when available.", | 25254 | text_elements: Schema.optionalKey( |
| 22957 | }), | 25255 | Schema.Array(V2TurnCompletedNotification__TextElement).annotate({ |
| 22958 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), | 25256 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| 22959 | model: Schema.optionalKey( | 25257 | default: [], |
| 22960 | Schema.Union([ | | |
| 22961 | Schema.String.annotate({ | | |
| 22962 | description: "Model requested for the spawned agent, when applicable.", | | |
| 22963 | }), | | |
| 22964 | Schema.Null, | | |
| 22965 | ]), | | |
| 22966 | ), | | |
| 22967 | prompt: Schema.optionalKey( | | |
| 22968 | Schema.Union([ | | |
| 22969 | Schema.String.annotate({ | | |
| 22970 | description: "Prompt text sent as part of the collab tool call, when available.", | | |
| 22971 | }), | | |
| 22972 | Schema.Null, | | |
| 22973 | ]), | | |
| 22974 | ), | | |
| 22975 | reasoningEffort: Schema.optionalKey( | | |
| 22976 | Schema.Union([V2ReviewStartResponse__ReasoningEffort, Schema.Null]).annotate({ | | |
| 22977 | description: "Reasoning effort requested for the spawned agent, when applicable.", | | |
| 22978 | }), | 25258 | }), |
| 22979 | ), | 25259 | ), |
| 22980 | receiverThreadIds: Schema.Array(Schema.String).annotate({ | 25260 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 22981 | description: | 25261 | }).annotate({ title: "TextUserInput" }), |
| 22982 | "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.", | | |
| 22983 | }), | | |
| 22984 | senderThreadId: Schema.String.annotate({ | | |
| 22985 | description: "Thread ID of the agent issuing the collab request.", | | |
| 22986 | }), | | |
| 22987 | status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({ | | |
| 22988 | description: "Current status of the collab tool call.", | | |
| 22989 | }), | | |
| 22990 | tool: Schema.Literals([ | | |
| 22991 | "spawnAgent", | | |
| 22992 | "sendInput", | | |
| 22993 | "resumeAgent", | | |
| 22994 | "wait", | | |
| 22995 | "closeAgent", | | |
| 22996 | "sendMessage", | | |
| 22997 | "followupTask", | | |
| 22998 | "interruptAgent", | | |
| 22999 | "listAgents", | | |
| 23000 | ]).annotate({ description: "Name of the collab tool that was invoked." }), | | |
| 23001 | type: Schema.Literal("collabAgentToolCall").annotate({ | | |
| 23002 | title: "CollabAgentToolCallThreadItemType", | | |
| 23003 | }), | | |
| 23004 | }).annotate({ title: "CollabAgentToolCallThreadItem" }), | | |
| 23005 | Schema.Struct({ | | |
| 23006 | agentPath: Schema.String, | | |
| 23007 | agentThreadId: Schema.String, | | |
| 23008 | id: Schema.String, | | |
| 23009 | kind: V2ReviewStartResponse__SubAgentActivityKind, | | |
| 23010 | type: Schema.Literal("subAgentActivity").annotate({ | | |
| 23011 | title: "SubAgentActivityThreadItemType", | | |
| 23012 | }), | | |
| 23013 | }).annotate({ title: "SubAgentActivityThreadItem" }), | | |
| 23014 | Schema.Struct({ | 25262 | Schema.Struct({ |
| 23015 | action: Schema.optionalKey( | 25263 | detail: Schema.optionalKey( |
| 23016 | Schema.Union([V2ReviewStartResponse__WebSearchAction, Schema.Null]), | 25264 | Schema.Union([V2TurnCompletedNotification__ImageDetail, Schema.Null]), |
| 23017 | ), | | |
| 23018 | id: Schema.String, | | |
| 23019 | query: Schema.String, | | |
| 23020 | results: Schema.optionalKey( | | |
| 23021 | Schema.Union([ | | |
| 23022 | Schema.Array(Schema.Unknown).annotate({ | | |
| 23023 | description: | | |
| 23024 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", | | |
| 23025 | }), | | |
| 23026 | Schema.Null, | | |
| 23027 | ]), | | |
| 23028 | ), | 25265 | ), |
| 23029 | type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }), | 25266 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| 23030 | }).annotate({ title: "WebSearchThreadItem" }), | 25267 | url: Schema.String, |
| 23031 | Schema.Struct({ | 25268 | }).annotate({ title: "ImageUserInput" }), |
| 23032 | id: Schema.String, | | |
| 23033 | path: V2ReviewStartResponse__LegacyAppPathString, | | |
| 23034 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), | | |
| 23035 | }).annotate({ title: "ImageViewThreadItem" }), | | |
| 23036 | Schema.Struct({ | | |
| 23037 | durationMs: Schema.Number.annotate({ format: "uint64" }) | | |
| 23038 | .check(Schema.isInt()) | | |
| 23039 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 23040 | id: Schema.String, | | |
| 23041 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), | | |
| 23042 | }).annotate({ | | |
| 23043 | title: "SleepThreadItem", | | |
| 23044 | description: "Display item emitted by the interruptible `clock.sleep` tool.", | | |
| 23045 | }), | | |
| 23046 | Schema.Struct({ | 25269 | Schema.Struct({ |
| 23047 | id: Schema.String, | 25270 | detail: Schema.optionalKey( |
| 23048 | result: Schema.String, | 25271 | Schema.Union([V2TurnCompletedNotification__ImageDetail, Schema.Null]), |
| 23049 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 23050 | savedPath: Schema.optionalKey( | | |
| 23051 | Schema.Union([V2ReviewStartResponse__AbsolutePathBuf, Schema.Null]), | | |
| 23052 | ), | 25272 | ), |
| 23053 | status: Schema.String, | 25273 | path: Schema.String, |
| 23054 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 25274 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| 23055 | }).annotate({ title: "ImageGenerationThreadItem" }), | 25275 | }).annotate({ title: "LocalImageUserInput" }), |
| 23056 | Schema.Struct({ | 25276 | Schema.Struct({ |
| 23057 | id: Schema.String, | 25277 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), |
| 23058 | review: Schema.String, | 25278 | url: Schema.String, |
| 23059 | type: Schema.Literal("enteredReviewMode").annotate({ | 25279 | }).annotate({ title: "AudioUserInput" }), |
| 23060 | title: "EnteredReviewModeThreadItemType", | | |
| 23061 | }), | | |
| 23062 | }).annotate({ title: "EnteredReviewModeThreadItem" }), | | |
| 23063 | Schema.Struct({ | 25280 | Schema.Struct({ |
| 23064 | id: Schema.String, | 25281 | path: Schema.String, |
| 23065 | review: Schema.String, | 25282 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), |
| 23066 | type: Schema.Literal("exitedReviewMode").annotate({ | 25283 | }).annotate({ title: "LocalAudioUserInput" }), |
| 23067 | title: "ExitedReviewModeThreadItemType", | | |
| 23068 | }), | | |
| 23069 | }).annotate({ title: "ExitedReviewModeThreadItem" }), | | |
| 23070 | Schema.Struct({ | 25284 | Schema.Struct({ |
| 23071 | id: Schema.String, | 25285 | name: Schema.String, |
| 23072 | type: Schema.Literal("contextCompaction").annotate({ | 25286 | path: Schema.String, |
| 23073 | title: "ContextCompactionThreadItemType", | 25287 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), |
| 23074 | }), | 25288 | }).annotate({ title: "SkillUserInput" }), |
| 23075 | }).annotate({ title: "ContextCompactionThreadItem" }), | 25289 | Schema.Struct({ |
| | 25290 | name: Schema.String, |
| | 25291 | path: Schema.String, |
| | 25292 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), |
| | 25293 | }).annotate({ title: "MentionUserInput" }), |
| 23076 | ], | 25294 | ], |
| 23077 | { mode: "oneOf" }, | 25295 | { mode: "oneOf" }, |
| 23078 | ); | 25296 | ).annotate({ identifier: "V2TurnCompletedNotification__UserInput" }); |
| 23079 | | | |
| 23080 | export type V2SkillsListResponse__SkillMetadata = { | | |
| 23081 | readonly dependencies?: V2SkillsListResponse__SkillDependencies | null; | | |
| 23082 | readonly description: string; | | |
| 23083 | readonly enabled: boolean; | | |
| 23084 | readonly interface?: V2SkillsListResponse__SkillInterface | null; | | |
| 23085 | readonly name: string; | | |
| 23086 | readonly path: V2SkillsListResponse__AbsolutePathBuf; | | |
| 23087 | readonly scope: V2SkillsListResponse__SkillScope; | | |
| 23088 | readonly shortDescription?: string | null; | | |
| 23089 | }; | | |
| 23090 | export const V2SkillsListResponse__SkillMetadata = Schema.Struct({ | | |
| 23091 | dependencies: Schema.optionalKey( | | |
| 23092 | Schema.Union([V2SkillsListResponse__SkillDependencies, Schema.Null]), | | |
| 23093 | ), | | |
| 23094 | description: Schema.String, | | |
| 23095 | enabled: Schema.Boolean, | | |
| 23096 | interface: Schema.optionalKey(Schema.Union([V2SkillsListResponse__SkillInterface, Schema.Null])), | | |
| 23097 | name: Schema.String, | | |
| 23098 | path: V2SkillsListResponse__AbsolutePathBuf, | | |
| 23099 | scope: V2SkillsListResponse__SkillScope, | | |
| 23100 | shortDescription: Schema.optionalKey( | | |
| 23101 | Schema.Union([ | | |
| 23102 | Schema.String.annotate({ | | |
| 23103 | description: | | |
| 23104 | "Legacy short_description from SKILL.md. Prefer SKILL.json interface.short_description.", | | |
| 23105 | }), | | |
| 23106 | Schema.Null, | | |
| 23107 | ]), | | |
| 23108 | ), | | |
| 23109 | }); | | |
| 23110 | | 25297 | |
| 23111 | export type V2ThreadForkResponse__TurnError = { | 25298 | export type V2TurnStartedNotification__TurnError = { |
| 23112 | readonly additionalDetails?: string | null; | 25299 | readonly additionalDetails?: string | null; |
| 23113 | readonly codexErrorInfo?: V2ThreadForkResponse__CodexErrorInfo | null; | 25300 | readonly codexErrorInfo?: V2TurnStartedNotification__CodexErrorInfo | null; |
| 23114 | readonly message: string; | 25301 | readonly message: string; |
| 23115 | }; | 25302 | }; |
| 23116 | export const V2ThreadForkResponse__TurnError = Schema.Struct({ | 25303 | export const V2TurnStartedNotification__TurnError = Schema.Struct({ |
| 23117 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 25304 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 23118 | codexErrorInfo: Schema.optionalKey( | 25305 | codexErrorInfo: Schema.optionalKey( |
| 23119 | Schema.Union([V2ThreadForkResponse__CodexErrorInfo, Schema.Null]), | 25306 | Schema.Union([V2TurnStartedNotification__CodexErrorInfo, Schema.Null]), |
| 23120 | ), | 25307 | ), |
| 23121 | message: Schema.String, | 25308 | message: Schema.String, |
| 23122 | }); | 25309 | }).annotate({ identifier: "V2TurnStartedNotification__TurnError" }); |
| 23123 | | 25310 | |
| 23124 | export type V2ThreadForkResponse__ThreadItem = | 25311 | export type V2TurnStartedNotification__UserInput = |
| 23125 | | { | | |
| 23126 | readonly clientId?: string | null; | | |
| 23127 | readonly content: ReadonlyArray<V2ThreadForkResponse__UserInput>; | | |
| 23128 | readonly id: string; | | |
| 23129 | readonly type: "userMessage"; | | |
| 23130 | } | | |
| 23131 | | { | | |
| 23132 | readonly fragments: ReadonlyArray<V2ThreadForkResponse__HookPromptFragment>; | | |
| 23133 | readonly id: string; | | |
| 23134 | readonly type: "hookPrompt"; | | |
| 23135 | } | | |
| 23136 | | { | 25312 | | { |
| 23137 | readonly id: string; | | |
| 23138 | readonly memoryCitation?: V2ThreadForkResponse__MemoryCitation | null; | | |
| 23139 | readonly phase?: V2ThreadForkResponse__MessagePhase | null; | | |
| 23140 | readonly text: string; | 25313 | readonly text: string; |
| 23141 | readonly delivery?: "async" | null; | 25314 | readonly text_elements?: ReadonlyArray<V2TurnStartedNotification__TextElement>; |
| 23142 | readonly questions?: ReadonlyArray<{ | 25315 | readonly type: "text"; |
| 23143 | readonly title: string; | | |
| 23144 | readonly options?: ReadonlyArray<string> | null; | | |
| 23145 | }> | null; | | |
| 23146 | readonly type: "agentMessage"; | | |
| 23147 | } | | |
| 23148 | | { readonly id: string; readonly text: string; readonly type: "plan" } | | |
| 23149 | | { | | |
| 23150 | readonly content?: ReadonlyArray<string>; | | |
| 23151 | readonly id: string; | | |
| 23152 | readonly summary?: ReadonlyArray<string>; | | |
| 23153 | readonly type: "reasoning"; | | |
| 23154 | } | | |
| 23155 | | { | | |
| 23156 | readonly aggregatedOutput?: string | null; | | |
| 23157 | readonly command: string; | | |
| 23158 | readonly commandActions: ReadonlyArray<V2ThreadForkResponse__CommandAction>; | | |
| 23159 | readonly cwd: string; | | |
| 23160 | readonly durationMs?: number | null; | | |
| 23161 | readonly exitCode?: number | null; | | |
| 23162 | readonly id: string; | | |
| 23163 | readonly processId?: string | null; | | |
| 23164 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; | | |
| 23165 | readonly status: V2ThreadForkResponse__CommandExecutionStatus; | | |
| 23166 | readonly type: "commandExecution"; | | |
| 23167 | } | | |
| 23168 | | { | | |
| 23169 | readonly changes: ReadonlyArray<V2ThreadForkResponse__FileUpdateChange>; | | |
| 23170 | readonly id: string; | | |
| 23171 | readonly status: V2ThreadForkResponse__PatchApplyStatus; | | |
| 23172 | readonly type: "fileChange"; | | |
| 23173 | } | | |
| 23174 | | { | | |
| 23175 | readonly appContext?: V2ThreadForkResponse__McpToolCallAppContext | null; | | |
| 23176 | readonly arguments: unknown; | | |
| 23177 | readonly durationMs?: number | null; | | |
| 23178 | readonly error?: V2ThreadForkResponse__McpToolCallError | null; | | |
| 23179 | readonly id: string; | | |
| 23180 | readonly mcpAppResourceUri?: string | null; | | |
| 23181 | readonly pluginId?: string | null; | | |
| 23182 | readonly result?: V2ThreadForkResponse__McpToolCallResult | null; | | |
| 23183 | readonly server: string; | | |
| 23184 | readonly status: V2ThreadForkResponse__McpToolCallStatus; | | |
| 23185 | readonly tool: string; | | |
| 23186 | readonly type: "mcpToolCall"; | | |
| 23187 | } | | |
| 23188 | | { | | |
| 23189 | readonly arguments: unknown; | | |
| 23190 | readonly contentItems?: ReadonlyArray<V2ThreadForkResponse__DynamicToolCallOutputContentItem> | null; | | |
| 23191 | readonly durationMs?: number | null; | | |
| 23192 | readonly id: string; | | |
| 23193 | readonly namespace?: string | null; | | |
| 23194 | readonly status: V2ThreadForkResponse__DynamicToolCallStatus; | | |
| 23195 | readonly success?: boolean | null; | | |
| 23196 | readonly tool: string; | | |
| 23197 | readonly type: "dynamicToolCall"; | | |
| 23198 | } | 25316 | } |
| 23199 | | { | 25317 | | { |
| 23200 | readonly agentsStates: { readonly [x: string]: V2ThreadForkResponse__CollabAgentState }; | 25318 | readonly detail?: V2TurnStartedNotification__ImageDetail | null; |
| 23201 | readonly id: string; | 25319 | readonly type: "image"; |
| 23202 | readonly model?: string | null; | 25320 | readonly url: string; |
| 23203 | readonly prompt?: string | null; | | |
| 23204 | readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null; | | |
| 23205 | readonly receiverThreadIds: ReadonlyArray<string>; | | |
| 23206 | readonly senderThreadId: string; | | |
| 23207 | readonly status: "inProgress" | "completed" | "failed" | "interrupted"; | | |
| 23208 | readonly tool: | | |
| 23209 | | "spawnAgent" | | |
| 23210 | | "sendInput" | | |
| 23211 | | "resumeAgent" | | |
| 23212 | | "wait" | | |
| 23213 | | "closeAgent" | | |
| 23214 | | "sendMessage" | | |
| 23215 | | "followupTask" | | |
| 23216 | | "interruptAgent" | | |
| 23217 | | "listAgents"; | | |
| 23218 | readonly type: "collabAgentToolCall"; | | |
| 23219 | } | 25321 | } |
| 23220 | | { | 25322 | | { |
| 23221 | readonly agentPath: string; | 25323 | readonly detail?: V2TurnStartedNotification__ImageDetail | null; |
| 23222 | readonly agentThreadId: string; | 25324 | readonly path: string; |
| 23223 | readonly id: string; | 25325 | readonly type: "localImage"; |
| 23224 | readonly kind: V2ThreadForkResponse__SubAgentActivityKind; | | |
| 23225 | readonly type: "subAgentActivity"; | | |
| 23226 | } | 25326 | } |
| | 25327 | | { readonly type: "audio"; readonly url: string } |
| | 25328 | | { readonly path: string; readonly type: "localAudio" } |
| | 25329 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| | 25330 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| | 25331 | export const V2TurnStartedNotification__UserInput = Schema.Union( |
| | 25332 | [ |
| | 25333 | Schema.Struct({ |
| | 25334 | text: Schema.String, |
| | 25335 | text_elements: Schema.optionalKey( |
| | 25336 | Schema.Array(V2TurnStartedNotification__TextElement).annotate({ |
| | 25337 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| | 25338 | default: [], |
| | 25339 | }), |
| | 25340 | ), |
| | 25341 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| | 25342 | }).annotate({ title: "TextUserInput" }), |
| | 25343 | Schema.Struct({ |
| | 25344 | detail: Schema.optionalKey( |
| | 25345 | Schema.Union([V2TurnStartedNotification__ImageDetail, Schema.Null]), |
| | 25346 | ), |
| | 25347 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 25348 | url: Schema.String, |
| | 25349 | }).annotate({ title: "ImageUserInput" }), |
| | 25350 | Schema.Struct({ |
| | 25351 | detail: Schema.optionalKey( |
| | 25352 | Schema.Union([V2TurnStartedNotification__ImageDetail, Schema.Null]), |
| | 25353 | ), |
| | 25354 | path: Schema.String, |
| | 25355 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| | 25356 | }).annotate({ title: "LocalImageUserInput" }), |
| | 25357 | Schema.Struct({ |
| | 25358 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), |
| | 25359 | url: Schema.String, |
| | 25360 | }).annotate({ title: "AudioUserInput" }), |
| | 25361 | Schema.Struct({ |
| | 25362 | path: Schema.String, |
| | 25363 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), |
| | 25364 | }).annotate({ title: "LocalAudioUserInput" }), |
| | 25365 | Schema.Struct({ |
| | 25366 | name: Schema.String, |
| | 25367 | path: Schema.String, |
| | 25368 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), |
| | 25369 | }).annotate({ title: "SkillUserInput" }), |
| | 25370 | Schema.Struct({ |
| | 25371 | name: Schema.String, |
| | 25372 | path: Schema.String, |
| | 25373 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), |
| | 25374 | }).annotate({ title: "MentionUserInput" }), |
| | 25375 | ], |
| | 25376 | { mode: "oneOf" }, |
| | 25377 | ).annotate({ identifier: "V2TurnStartedNotification__UserInput" }); |
| | 25378 | |
| | 25379 | export type V2TurnStartParams__UserInput = |
| 23227 | | { | 25380 | | { |
| 23228 | readonly action?: V2ThreadForkResponse__WebSearchAction | null; | 25381 | readonly text: string; |
| 23229 | readonly id: string; | 25382 | readonly text_elements?: ReadonlyArray<V2TurnStartParams__TextElement>; |
| 23230 | readonly query: string; | 25383 | readonly type: "text"; |
| 23231 | readonly results?: ReadonlyArray<unknown> | null; | | |
| 23232 | readonly type: "webSearch"; | | |
| 23233 | } | 25384 | } |
| 23234 | | { | 25385 | | { |
| 23235 | readonly id: string; | 25386 | readonly detail?: V2TurnStartParams__ImageDetail | null; |
| 23236 | readonly path: V2ThreadForkResponse__LegacyAppPathString; | 25387 | readonly type: "image"; |
| 23237 | readonly type: "imageView"; | 25388 | readonly url: string; |
| 23238 | } | 25389 | } |
| 23239 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | | |
| 23240 | | { | 25390 | | { |
| 23241 | readonly id: string; | 25391 | readonly detail?: V2TurnStartParams__ImageDetail | null; |
| 23242 | readonly result: string; | 25392 | readonly path: string; |
| 23243 | readonly revisedPrompt?: string | null; | 25393 | readonly type: "localImage"; |
| 23244 | readonly savedPath?: V2ThreadForkResponse__AbsolutePathBuf | null; | | |
| 23245 | readonly status: string; | | |
| 23246 | readonly type: "imageGeneration"; | | |
| 23247 | } | 25394 | } |
| 23248 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 25395 | | { readonly type: "audio"; readonly url: string } |
| 23249 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } | 25396 | | { readonly path: string; readonly type: "localAudio" } |
| 23250 | | { readonly id: string; readonly type: "contextCompaction" }; | 25397 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| 23251 | export const V2ThreadForkResponse__ThreadItem = Schema.Union( | 25398 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| | 25399 | export const V2TurnStartParams__UserInput = Schema.Union( |
| 23252 | [ | 25400 | [ |
| 23253 | Schema.Struct({ | 25401 | Schema.Struct({ |
| 23254 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 25402 | text: Schema.String, |
| 23255 | content: Schema.Array(V2ThreadForkResponse__UserInput), | 25403 | text_elements: Schema.optionalKey( |
| 23256 | id: Schema.String, | 25404 | Schema.Array(V2TurnStartParams__TextElement).annotate({ |
| 23257 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), | 25405 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| 23258 | }).annotate({ title: "UserMessageThreadItem" }), | 25406 | default: [], |
| | 25407 | }), |
| | 25408 | ), |
| | 25409 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| | 25410 | }).annotate({ title: "TextUserInput" }), |
| 23259 | Schema.Struct({ | 25411 | Schema.Struct({ |
| 23260 | fragments: Schema.Array(V2ThreadForkResponse__HookPromptFragment), | 25412 | detail: Schema.optionalKey(Schema.Union([V2TurnStartParams__ImageDetail, Schema.Null])), |
| 23261 | id: Schema.String, | 25413 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| 23262 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | 25414 | url: Schema.String, |
| 23263 | }).annotate({ title: "HookPromptThreadItem" }), | 25415 | }).annotate({ title: "ImageUserInput" }), |
| 23264 | Schema.Struct({ | 25416 | Schema.Struct({ |
| 23265 | id: Schema.String, | 25417 | detail: Schema.optionalKey(Schema.Union([V2TurnStartParams__ImageDetail, Schema.Null])), |
| 23266 | memoryCitation: Schema.optionalKey( | 25418 | path: Schema.String, |
| 23267 | Schema.Union([V2ThreadForkResponse__MemoryCitation, Schema.Null]), | 25419 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| 23268 | ), | 25420 | }).annotate({ title: "LocalImageUserInput" }), |
| 23269 | phase: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__MessagePhase, Schema.Null])), | 25421 | Schema.Struct({ |
| 23270 | text: Schema.String, | 25422 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), |
| | 25423 | url: Schema.String, |
| | 25424 | }).annotate({ title: "AudioUserInput" }), |
| | 25425 | Schema.Struct({ |
| | 25426 | path: Schema.String, |
| | 25427 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), |
| | 25428 | }).annotate({ title: "LocalAudioUserInput" }), |
| | 25429 | Schema.Struct({ |
| | 25430 | name: Schema.String, |
| | 25431 | path: Schema.String, |
| | 25432 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), |
| | 25433 | }).annotate({ title: "SkillUserInput" }), |
| | 25434 | Schema.Struct({ |
| | 25435 | name: Schema.String, |
| | 25436 | path: Schema.String, |
| | 25437 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), |
| | 25438 | }).annotate({ title: "MentionUserInput" }), |
| | 25439 | ], |
| | 25440 | { mode: "oneOf" }, |
| | 25441 | ).annotate({ identifier: "V2TurnStartParams__UserInput" }); |
| | 25442 | |
| | 25443 | export type V2TurnStartResponse__TurnError = { |
| | 25444 | readonly additionalDetails?: string | null; |
| | 25445 | readonly codexErrorInfo?: V2TurnStartResponse__CodexErrorInfo | null; |
| | 25446 | readonly message: string; |
| | 25447 | }; |
| | 25448 | export const V2TurnStartResponse__TurnError = Schema.Struct({ |
| | 25449 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 25450 | codexErrorInfo: Schema.optionalKey( |
| | 25451 | Schema.Union([V2TurnStartResponse__CodexErrorInfo, Schema.Null]), |
| | 25452 | ), |
| | 25453 | message: Schema.String, |
| | 25454 | }).annotate({ identifier: "V2TurnStartResponse__TurnError" }); |
| | 25455 | |
| | 25456 | export type V2TurnStartResponse__UserInput = |
| | 25457 | | { |
| | 25458 | readonly text: string; |
| | 25459 | readonly text_elements?: ReadonlyArray<V2TurnStartResponse__TextElement>; |
| | 25460 | readonly type: "text"; |
| | 25461 | } |
| | 25462 | | { |
| | 25463 | readonly detail?: V2TurnStartResponse__ImageDetail | null; |
| | 25464 | readonly type: "image"; |
| | 25465 | readonly url: string; |
| | 25466 | } |
| | 25467 | | { |
| | 25468 | readonly detail?: V2TurnStartResponse__ImageDetail | null; |
| | 25469 | readonly path: string; |
| | 25470 | readonly type: "localImage"; |
| | 25471 | } |
| | 25472 | | { readonly type: "audio"; readonly url: string } |
| | 25473 | | { readonly path: string; readonly type: "localAudio" } |
| | 25474 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| | 25475 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| | 25476 | export const V2TurnStartResponse__UserInput = Schema.Union( |
| | 25477 | [ |
| | 25478 | Schema.Struct({ |
| | 25479 | text: Schema.String, |
| | 25480 | text_elements: Schema.optionalKey( |
| | 25481 | Schema.Array(V2TurnStartResponse__TextElement).annotate({ |
| | 25482 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| | 25483 | default: [], |
| | 25484 | }), |
| | 25485 | ), |
| | 25486 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| | 25487 | }).annotate({ title: "TextUserInput" }), |
| | 25488 | Schema.Struct({ |
| | 25489 | detail: Schema.optionalKey(Schema.Union([V2TurnStartResponse__ImageDetail, Schema.Null])), |
| | 25490 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 25491 | url: Schema.String, |
| | 25492 | }).annotate({ title: "ImageUserInput" }), |
| | 25493 | Schema.Struct({ |
| | 25494 | detail: Schema.optionalKey(Schema.Union([V2TurnStartResponse__ImageDetail, Schema.Null])), |
| | 25495 | path: Schema.String, |
| | 25496 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| | 25497 | }).annotate({ title: "LocalImageUserInput" }), |
| | 25498 | Schema.Struct({ |
| | 25499 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), |
| | 25500 | url: Schema.String, |
| | 25501 | }).annotate({ title: "AudioUserInput" }), |
| | 25502 | Schema.Struct({ |
| | 25503 | path: Schema.String, |
| | 25504 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), |
| | 25505 | }).annotate({ title: "LocalAudioUserInput" }), |
| | 25506 | Schema.Struct({ |
| | 25507 | name: Schema.String, |
| | 25508 | path: Schema.String, |
| | 25509 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), |
| | 25510 | }).annotate({ title: "SkillUserInput" }), |
| | 25511 | Schema.Struct({ |
| | 25512 | name: Schema.String, |
| | 25513 | path: Schema.String, |
| | 25514 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), |
| | 25515 | }).annotate({ title: "MentionUserInput" }), |
| | 25516 | ], |
| | 25517 | { mode: "oneOf" }, |
| | 25518 | ).annotate({ identifier: "V2TurnStartResponse__UserInput" }); |
| | 25519 | |
| | 25520 | export type V2TurnSteerParams__UserInput = |
| | 25521 | | { |
| | 25522 | readonly text: string; |
| | 25523 | readonly text_elements?: ReadonlyArray<V2TurnSteerParams__TextElement>; |
| | 25524 | readonly type: "text"; |
| | 25525 | } |
| | 25526 | | { |
| | 25527 | readonly detail?: V2TurnSteerParams__ImageDetail | null; |
| | 25528 | readonly type: "image"; |
| | 25529 | readonly url: string; |
| | 25530 | } |
| | 25531 | | { |
| | 25532 | readonly detail?: V2TurnSteerParams__ImageDetail | null; |
| | 25533 | readonly path: string; |
| | 25534 | readonly type: "localImage"; |
| | 25535 | } |
| | 25536 | | { readonly type: "audio"; readonly url: string } |
| | 25537 | | { readonly path: string; readonly type: "localAudio" } |
| | 25538 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| | 25539 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| | 25540 | export const V2TurnSteerParams__UserInput = Schema.Union( |
| | 25541 | [ |
| | 25542 | Schema.Struct({ |
| | 25543 | text: Schema.String, |
| | 25544 | text_elements: Schema.optionalKey( |
| | 25545 | Schema.Array(V2TurnSteerParams__TextElement).annotate({ |
| | 25546 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| | 25547 | default: [], |
| | 25548 | }), |
| | 25549 | ), |
| | 25550 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| | 25551 | }).annotate({ title: "TextUserInput" }), |
| | 25552 | Schema.Struct({ |
| | 25553 | detail: Schema.optionalKey(Schema.Union([V2TurnSteerParams__ImageDetail, Schema.Null])), |
| | 25554 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 25555 | url: Schema.String, |
| | 25556 | }).annotate({ title: "ImageUserInput" }), |
| | 25557 | Schema.Struct({ |
| | 25558 | detail: Schema.optionalKey(Schema.Union([V2TurnSteerParams__ImageDetail, Schema.Null])), |
| | 25559 | path: Schema.String, |
| | 25560 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| | 25561 | }).annotate({ title: "LocalImageUserInput" }), |
| | 25562 | Schema.Struct({ |
| | 25563 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), |
| | 25564 | url: Schema.String, |
| | 25565 | }).annotate({ title: "AudioUserInput" }), |
| | 25566 | Schema.Struct({ |
| | 25567 | path: Schema.String, |
| | 25568 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), |
| | 25569 | }).annotate({ title: "LocalAudioUserInput" }), |
| | 25570 | Schema.Struct({ |
| | 25571 | name: Schema.String, |
| | 25572 | path: Schema.String, |
| | 25573 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), |
| | 25574 | }).annotate({ title: "SkillUserInput" }), |
| | 25575 | Schema.Struct({ |
| | 25576 | name: Schema.String, |
| | 25577 | path: Schema.String, |
| | 25578 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), |
| | 25579 | }).annotate({ title: "MentionUserInput" }), |
| | 25580 | ], |
| | 25581 | { mode: "oneOf" }, |
| | 25582 | ).annotate({ identifier: "V2TurnSteerParams__UserInput" }); |
| | 25583 | |
| | 25584 | export type ClientRequest__TurnStartParams = { |
| | 25585 | readonly approvalPolicy?: ClientRequest__AskForApproval | null; |
| | 25586 | readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null; |
| | 25587 | readonly clientUserMessageId?: string | null; |
| | 25588 | readonly cwd?: string | null; |
| | 25589 | readonly effort?: ClientRequest__ReasoningEffort | null; |
| | 25590 | readonly input: ReadonlyArray<ClientRequest__UserInput>; |
| | 25591 | readonly model?: string | null; |
| | 25592 | readonly outputSchema?: Schema.Json; |
| | 25593 | readonly personality?: ClientRequest__Personality | null; |
| | 25594 | readonly sandboxPolicy?: ClientRequest__SandboxPolicy | null; |
| | 25595 | readonly serviceTier?: string | null; |
| | 25596 | readonly summary?: ClientRequest__ReasoningSummary | null; |
| | 25597 | readonly threadId: string; |
| | 25598 | }; |
| | 25599 | export const ClientRequest__TurnStartParams = Schema.Struct({ |
| | 25600 | approvalPolicy: Schema.optionalKey( |
| | 25601 | Schema.Union([ClientRequest__AskForApproval, Schema.Null]).annotate({ |
| | 25602 | description: "Override the approval policy for this turn and subsequent turns.", |
| | 25603 | }), |
| | 25604 | ), |
| | 25605 | approvalsReviewer: Schema.optionalKey( |
| | 25606 | Schema.Union([ClientRequest__ApprovalsReviewer, Schema.Null]).annotate({ |
| | 25607 | description: |
| | 25608 | "Override where approval requests are routed for review on this turn and subsequent turns.", |
| | 25609 | }), |
| | 25610 | ), |
| | 25611 | clientUserMessageId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 25612 | cwd: Schema.optionalKey( |
| | 25613 | Schema.Union([ |
| | 25614 | Schema.String.annotate({ |
| | 25615 | description: "Override the working directory for this turn and subsequent turns.", |
| | 25616 | }), |
| | 25617 | Schema.Null, |
| | 25618 | ]), |
| | 25619 | ), |
| | 25620 | effort: Schema.optionalKey( |
| | 25621 | Schema.Union([ClientRequest__ReasoningEffort, Schema.Null]).annotate({ |
| | 25622 | description: "Override the reasoning effort for this turn and subsequent turns.", |
| | 25623 | }), |
| | 25624 | ), |
| | 25625 | input: Schema.Array(ClientRequest__UserInput), |
| | 25626 | model: Schema.optionalKey( |
| | 25627 | Schema.Union([ |
| | 25628 | Schema.String.annotate({ |
| | 25629 | description: "Override the model for this turn and subsequent turns.", |
| | 25630 | }), |
| | 25631 | Schema.Null, |
| | 25632 | ]), |
| | 25633 | ), |
| | 25634 | outputSchema: Schema.optionalKey( |
| | 25635 | Schema.Json.annotate({ |
| | 25636 | expected: "JSON value", |
| | 25637 | description: |
| | 25638 | "Optional JSON Schema used to constrain the final assistant message for this turn.", |
| | 25639 | }), |
| | 25640 | ), |
| | 25641 | personality: Schema.optionalKey( |
| | 25642 | Schema.Union([ClientRequest__Personality, Schema.Null]).annotate({ |
| | 25643 | description: "Override the personality for this turn and subsequent turns.", |
| | 25644 | }), |
| | 25645 | ), |
| | 25646 | sandboxPolicy: Schema.optionalKey( |
| | 25647 | Schema.Union([ClientRequest__SandboxPolicy, Schema.Null]).annotate({ |
| | 25648 | description: "Override the sandbox policy for this turn and subsequent turns.", |
| | 25649 | }), |
| | 25650 | ), |
| | 25651 | serviceTier: Schema.optionalKey( |
| | 25652 | Schema.Union([ |
| | 25653 | Schema.String.annotate({ |
| | 25654 | description: "Override the service tier for this turn and subsequent turns.", |
| | 25655 | }), |
| | 25656 | Schema.Null, |
| | 25657 | ]), |
| | 25658 | ), |
| | 25659 | summary: Schema.optionalKey( |
| | 25660 | Schema.Union([ClientRequest__ReasoningSummary, Schema.Null]).annotate({ |
| | 25661 | description: "Override the reasoning summary for this turn and subsequent turns.", |
| | 25662 | }), |
| | 25663 | ), |
| | 25664 | threadId: Schema.String, |
| | 25665 | }).annotate({ identifier: "ClientRequest__TurnStartParams" }); |
| | 25666 | |
| | 25667 | export type ClientRequest__TurnSteerParams = { |
| | 25668 | readonly clientUserMessageId?: string | null; |
| | 25669 | readonly expectedTurnId: string; |
| | 25670 | readonly input: ReadonlyArray<ClientRequest__UserInput>; |
| | 25671 | readonly threadId: string; |
| | 25672 | }; |
| | 25673 | export const ClientRequest__TurnSteerParams = Schema.Struct({ |
| | 25674 | clientUserMessageId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 25675 | expectedTurnId: Schema.String.annotate({ |
| | 25676 | description: |
| | 25677 | "Required active turn id precondition. The request fails when it does not match the currently active turn.", |
| | 25678 | }), |
| | 25679 | input: Schema.Array(ClientRequest__UserInput), |
| | 25680 | threadId: Schema.String, |
| | 25681 | }).annotate({ identifier: "ClientRequest__TurnSteerParams" }); |
| | 25682 | |
| | 25683 | export type ClientRequest__ExternalAgentConfigImportParams = { |
| | 25684 | readonly migrationItems: ReadonlyArray<ClientRequest__ExternalAgentConfigMigrationItem>; |
| | 25685 | readonly migrationSource?: string | null; |
| | 25686 | readonly source?: string | null; |
| | 25687 | }; |
| | 25688 | export const ClientRequest__ExternalAgentConfigImportParams = Schema.Struct({ |
| | 25689 | migrationItems: Schema.Array(ClientRequest__ExternalAgentConfigMigrationItem), |
| | 25690 | migrationSource: Schema.optionalKey( |
| | 25691 | Schema.Union([ |
| | 25692 | Schema.String.annotate({ |
| | 25693 | description: |
| | 25694 | "Migration-source selector used to produce the migration items. Pass the same value to detection and import; missing or unrecognized values use the default source.", |
| | 25695 | }), |
| | 25696 | Schema.Null, |
| | 25697 | ]), |
| | 25698 | ), |
| | 25699 | source: Schema.optionalKey( |
| | 25700 | Schema.Union([ |
| | 25701 | Schema.String.annotate({ |
| | 25702 | description: "Optional identifier for the product that initiated the import.", |
| | 25703 | }), |
| | 25704 | Schema.Null, |
| | 25705 | ]), |
| | 25706 | ), |
| | 25707 | }).annotate({ identifier: "ClientRequest__ExternalAgentConfigImportParams" }); |
| | 25708 | |
| | 25709 | export type CommandExecutionRequestApprovalParams__FileSystemSandboxEntry = { |
| | 25710 | readonly access: CommandExecutionRequestApprovalParams__FileSystemAccessMode; |
| | 25711 | readonly path: CommandExecutionRequestApprovalParams__FileSystemPath; |
| | 25712 | }; |
| | 25713 | export const CommandExecutionRequestApprovalParams__FileSystemSandboxEntry = Schema.Struct({ |
| | 25714 | access: CommandExecutionRequestApprovalParams__FileSystemAccessMode, |
| | 25715 | path: CommandExecutionRequestApprovalParams__FileSystemPath, |
| | 25716 | }).annotate({ identifier: "CommandExecutionRequestApprovalParams__FileSystemSandboxEntry" }); |
| | 25717 | |
| | 25718 | export type McpServerElicitationRequestParams__McpElicitationMultiSelectEnumSchema = |
| | 25719 | | McpServerElicitationRequestParams__McpElicitationUntitledMultiSelectEnumSchema |
| | 25720 | | McpServerElicitationRequestParams__McpElicitationTitledMultiSelectEnumSchema; |
| | 25721 | export const McpServerElicitationRequestParams__McpElicitationMultiSelectEnumSchema = Schema.Union([ |
| | 25722 | McpServerElicitationRequestParams__McpElicitationUntitledMultiSelectEnumSchema, |
| | 25723 | McpServerElicitationRequestParams__McpElicitationTitledMultiSelectEnumSchema, |
| | 25724 | ]).annotate({ |
| | 25725 | identifier: "McpServerElicitationRequestParams__McpElicitationMultiSelectEnumSchema", |
| | 25726 | }); |
| | 25727 | |
| | 25728 | export type PermissionsRequestApprovalParams__FileSystemSandboxEntry = { |
| | 25729 | readonly access: PermissionsRequestApprovalParams__FileSystemAccessMode; |
| | 25730 | readonly path: PermissionsRequestApprovalParams__FileSystemPath; |
| | 25731 | }; |
| | 25732 | export const PermissionsRequestApprovalParams__FileSystemSandboxEntry = Schema.Struct({ |
| | 25733 | access: PermissionsRequestApprovalParams__FileSystemAccessMode, |
| | 25734 | path: PermissionsRequestApprovalParams__FileSystemPath, |
| | 25735 | }).annotate({ identifier: "PermissionsRequestApprovalParams__FileSystemSandboxEntry" }); |
| | 25736 | |
| | 25737 | export type PermissionsRequestApprovalResponse__FileSystemSandboxEntry = { |
| | 25738 | readonly access: PermissionsRequestApprovalResponse__FileSystemAccessMode; |
| | 25739 | readonly path: PermissionsRequestApprovalResponse__FileSystemPath; |
| | 25740 | }; |
| | 25741 | export const PermissionsRequestApprovalResponse__FileSystemSandboxEntry = Schema.Struct({ |
| | 25742 | access: PermissionsRequestApprovalResponse__FileSystemAccessMode, |
| | 25743 | path: PermissionsRequestApprovalResponse__FileSystemPath, |
| | 25744 | }).annotate({ identifier: "PermissionsRequestApprovalResponse__FileSystemSandboxEntry" }); |
| | 25745 | |
| | 25746 | export type ServerNotification__ErrorNotification = { |
| | 25747 | readonly error: ServerNotification__TurnError; |
| | 25748 | readonly threadId: string; |
| | 25749 | readonly turnId: string; |
| | 25750 | readonly willRetry: boolean; |
| | 25751 | }; |
| | 25752 | export const ServerNotification__ErrorNotification = Schema.Struct({ |
| | 25753 | error: ServerNotification__TurnError, |
| | 25754 | threadId: Schema.String, |
| | 25755 | turnId: Schema.String, |
| | 25756 | willRetry: Schema.Boolean, |
| | 25757 | }).annotate({ identifier: "ServerNotification__ErrorNotification" }); |
| | 25758 | |
| | 25759 | export type ServerNotification__ThreadItem = |
| | 25760 | | { |
| | 25761 | readonly clientId?: string | null; |
| | 25762 | readonly content: ReadonlyArray<ServerNotification__UserInput>; |
| | 25763 | readonly id: string; |
| | 25764 | readonly type: "userMessage"; |
| | 25765 | } |
| | 25766 | | { |
| | 25767 | readonly fragments: ReadonlyArray<ServerNotification__HookPromptFragment>; |
| | 25768 | readonly id: string; |
| | 25769 | readonly type: "hookPrompt"; |
| | 25770 | } |
| | 25771 | | { |
| | 25772 | readonly id: string; |
| | 25773 | readonly memoryCitation?: ServerNotification__MemoryCitation | null; |
| | 25774 | readonly phase?: ServerNotification__MessagePhase | null; |
| | 25775 | readonly text: string; |
| | 25776 | readonly delivery?: "async" | null; |
| | 25777 | readonly questions?: ReadonlyArray<{ |
| | 25778 | readonly title: string; |
| | 25779 | readonly options?: ReadonlyArray<string> | null; |
| | 25780 | }> | null; |
| | 25781 | readonly type: "agentMessage"; |
| | 25782 | } |
| | 25783 | | { readonly id: string; readonly text: string; readonly type: "plan" } |
| | 25784 | | { |
| | 25785 | readonly content?: ReadonlyArray<string>; |
| | 25786 | readonly id: string; |
| | 25787 | readonly summary?: ReadonlyArray<string>; |
| | 25788 | readonly type: "reasoning"; |
| | 25789 | } |
| | 25790 | | { |
| | 25791 | readonly aggregatedOutput?: string | null; |
| | 25792 | readonly command: string; |
| | 25793 | readonly commandActions: ReadonlyArray<ServerNotification__CommandAction>; |
| | 25794 | readonly cwd: ServerNotification__LegacyAppPathString; |
| | 25795 | readonly durationMs?: number | null; |
| | 25796 | readonly exitCode?: number | null; |
| | 25797 | readonly id: string; |
| | 25798 | readonly processId?: string | null; |
| | 25799 | readonly source?: ServerNotification__CommandExecutionSource; |
| | 25800 | readonly status: ServerNotification__CommandExecutionStatus; |
| | 25801 | readonly type: "commandExecution"; |
| | 25802 | } |
| | 25803 | | { |
| | 25804 | readonly changes: ReadonlyArray<ServerNotification__FileUpdateChange>; |
| | 25805 | readonly id: string; |
| | 25806 | readonly status: ServerNotification__PatchApplyStatus; |
| | 25807 | readonly type: "fileChange"; |
| | 25808 | } |
| | 25809 | | { |
| | 25810 | readonly appContext?: ServerNotification__McpToolCallAppContext | null; |
| | 25811 | readonly arguments: Schema.Json; |
| | 25812 | readonly durationMs?: number | null; |
| | 25813 | readonly error?: ServerNotification__McpToolCallError | null; |
| | 25814 | readonly id: string; |
| | 25815 | readonly mcpAppResourceUri?: string | null; |
| | 25816 | readonly pluginId?: string | null; |
| | 25817 | readonly result?: ServerNotification__McpToolCallResult | null; |
| | 25818 | readonly server: string; |
| | 25819 | readonly status: ServerNotification__McpToolCallStatus; |
| | 25820 | readonly tool: string; |
| | 25821 | readonly type: "mcpToolCall"; |
| | 25822 | } |
| | 25823 | | { |
| | 25824 | readonly arguments: Schema.Json; |
| | 25825 | readonly contentItems?: ReadonlyArray<ServerNotification__DynamicToolCallOutputContentItem> | null; |
| | 25826 | readonly durationMs?: number | null; |
| | 25827 | readonly id: string; |
| | 25828 | readonly namespace?: string | null; |
| | 25829 | readonly status: ServerNotification__DynamicToolCallStatus; |
| | 25830 | readonly success?: boolean | null; |
| | 25831 | readonly tool: string; |
| | 25832 | readonly type: "dynamicToolCall"; |
| | 25833 | } |
| | 25834 | | { |
| | 25835 | readonly agentsStates: { readonly [x: string]: ServerNotification__CollabAgentState }; |
| | 25836 | readonly id: string; |
| | 25837 | readonly model?: string | null; |
| | 25838 | readonly prompt?: string | null; |
| | 25839 | readonly reasoningEffort?: ServerNotification__ReasoningEffort | null; |
| | 25840 | readonly receiverThreadIds: ReadonlyArray<string>; |
| | 25841 | readonly senderThreadId: string; |
| | 25842 | readonly status: ServerNotification__CollabAgentToolCallStatus; |
| | 25843 | readonly tool: ServerNotification__CollabAgentTool; |
| | 25844 | readonly type: "collabAgentToolCall"; |
| | 25845 | } |
| | 25846 | | { |
| | 25847 | readonly agentPath: string; |
| | 25848 | readonly agentThreadId: string; |
| | 25849 | readonly id: string; |
| | 25850 | readonly kind: ServerNotification__SubAgentActivityKind; |
| | 25851 | readonly type: "subAgentActivity"; |
| | 25852 | } |
| | 25853 | | { |
| | 25854 | readonly action?: ServerNotification__WebSearchAction | null; |
| | 25855 | readonly id: string; |
| | 25856 | readonly query: string; |
| | 25857 | readonly results?: ReadonlyArray<Schema.Json> | null; |
| | 25858 | readonly type: "webSearch"; |
| | 25859 | } |
| | 25860 | | { |
| | 25861 | readonly id: string; |
| | 25862 | readonly path: ServerNotification__LegacyAppPathString; |
| | 25863 | readonly type: "imageView"; |
| | 25864 | } |
| | 25865 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| | 25866 | | { |
| | 25867 | readonly id: string; |
| | 25868 | readonly result: string; |
| | 25869 | readonly revisedPrompt?: string | null; |
| | 25870 | readonly savedPath?: ServerNotification__AbsolutePathBuf | null; |
| | 25871 | readonly status: string; |
| | 25872 | readonly type: "imageGeneration"; |
| | 25873 | } |
| | 25874 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| | 25875 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| | 25876 | | { readonly id: string; readonly type: "contextCompaction" }; |
| | 25877 | export const ServerNotification__ThreadItem = Schema.Union( |
| | 25878 | [ |
| | 25879 | Schema.Struct({ |
| | 25880 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 25881 | content: Schema.Array(ServerNotification__UserInput), |
| | 25882 | id: Schema.String, |
| | 25883 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| | 25884 | }).annotate({ title: "UserMessageThreadItem" }), |
| | 25885 | Schema.Struct({ |
| | 25886 | fragments: Schema.Array(ServerNotification__HookPromptFragment), |
| | 25887 | id: Schema.String, |
| | 25888 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| | 25889 | }).annotate({ title: "HookPromptThreadItem" }), |
| | 25890 | Schema.Struct({ |
| | 25891 | id: Schema.String, |
| | 25892 | memoryCitation: Schema.optionalKey( |
| | 25893 | Schema.Union([ServerNotification__MemoryCitation, Schema.Null]), |
| | 25894 | ), |
| | 25895 | phase: Schema.optionalKey(Schema.Union([ServerNotification__MessagePhase, Schema.Null])), |
| | 25896 | text: Schema.String, |
| 23271 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | 25897 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), |
| 23272 | questions: Schema.optionalKey( | 25898 | questions: Schema.optionalKey( |
| 23273 | Schema.Union([ | 25899 | Schema.Union([ |
| ... | @@ -23307,17 +25933,20 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( | ... | @@ -23307,17 +25933,20 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 23307 | ]), | 25933 | ]), |
| 23308 | ), | 25934 | ), |
| 23309 | command: Schema.String.annotate({ description: "The command to be executed." }), | 25935 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 23310 | commandActions: Schema.Array(V2ThreadForkResponse__CommandAction).annotate({ | 25936 | commandActions: Schema.Array(ServerNotification__CommandAction).annotate({ |
| 23311 | description: | 25937 | description: |
| 23312 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", | 25938 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 23313 | }), | 25939 | }), |
| 23314 | cwd: Schema.String.annotate({ description: "The command's working directory." }), | 25940 | cwd: Schema.suspend( |
| | 25941 | (): Schema.Codec<ServerNotification__LegacyAppPathString> => |
| | 25942 | ServerNotification__LegacyAppPathString, |
| | 25943 | ).annotate({ description: "The command's working directory." }), |
| 23315 | durationMs: Schema.optionalKey( | 25944 | durationMs: Schema.optionalKey( |
| 23316 | Schema.Union([ | 25945 | Schema.Union([ |
| 23317 | Schema.Number.annotate({ | 25946 | Schema.Number.annotate({ |
| 23318 | description: "The duration of the command execution in milliseconds.", | 25947 | description: "The duration of the command execution in milliseconds.", |
| 23319 | format: "int64", | 25948 | format: "int64", |
| 23320 | }).check(Schema.isInt()), | 25949 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 23321 | Schema.Null, | 25950 | Schema.Null, |
| 23322 | ]), | 25951 | ]), |
| 23323 | ), | 25952 | ), |
| ... | @@ -23326,7 +25955,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( | ... | @@ -23326,7 +25955,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 23326 | Schema.Number.annotate({ | 25955 | Schema.Number.annotate({ |
| 23327 | description: "The command's exit code.", | 25956 | description: "The command's exit code.", |
| 23328 | format: "int32", | 25957 | format: "int32", |
| 23329 | }).check(Schema.isInt()), | 25958 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 23330 | Schema.Null, | 25959 | Schema.Null, |
| 23331 | ]), | 25960 | ]), |
| 23332 | ), | 25961 | ), |
| ... | @@ -23340,41 +25969,37 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( | ... | @@ -23340,41 +25969,37 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 23340 | ]), | 25969 | ]), |
| 23341 | ), | 25970 | ), |
| 23342 | source: Schema.optionalKey( | 25971 | source: Schema.optionalKey( |
| 23343 | Schema.Literals([ | 25972 | Schema.suspend( |
| 23344 | "agent", | 25973 | (): Schema.Codec<ServerNotification__CommandExecutionSource> => |
| 23345 | "userShell", | 25974 | ServerNotification__CommandExecutionSource, |
| 23346 | "unifiedExecStartup", | 25975 | ).annotate({ default: "agent" }), |
| 23347 | "unifiedExecInteraction", | | |
| 23348 | ]).annotate({ default: "agent" }), | | |
| 23349 | ), | 25976 | ), |
| 23350 | status: V2ThreadForkResponse__CommandExecutionStatus, | 25977 | status: ServerNotification__CommandExecutionStatus, |
| 23351 | type: Schema.Literal("commandExecution").annotate({ | 25978 | type: Schema.Literal("commandExecution").annotate({ |
| 23352 | title: "CommandExecutionThreadItemType", | 25979 | title: "CommandExecutionThreadItemType", |
| 23353 | }), | 25980 | }), |
| 23354 | }).annotate({ title: "CommandExecutionThreadItem" }), | 25981 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 23355 | Schema.Struct({ | 25982 | Schema.Struct({ |
| 23356 | changes: Schema.Array(V2ThreadForkResponse__FileUpdateChange), | 25983 | changes: Schema.Array(ServerNotification__FileUpdateChange), |
| 23357 | id: Schema.String, | 25984 | id: Schema.String, |
| 23358 | status: V2ThreadForkResponse__PatchApplyStatus, | 25985 | status: ServerNotification__PatchApplyStatus, |
| 23359 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), | 25986 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 23360 | }).annotate({ title: "FileChangeThreadItem" }), | 25987 | }).annotate({ title: "FileChangeThreadItem" }), |
| 23361 | Schema.Struct({ | 25988 | Schema.Struct({ |
| 23362 | appContext: Schema.optionalKey( | 25989 | appContext: Schema.optionalKey( |
| 23363 | Schema.Union([V2ThreadForkResponse__McpToolCallAppContext, Schema.Null]), | 25990 | Schema.Union([ServerNotification__McpToolCallAppContext, Schema.Null]), |
| 23364 | ), | 25991 | ), |
| 23365 | arguments: Schema.Unknown, | 25992 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 23366 | durationMs: Schema.optionalKey( | 25993 | durationMs: Schema.optionalKey( |
| 23367 | Schema.Union([ | 25994 | Schema.Union([ |
| 23368 | Schema.Number.annotate({ | 25995 | Schema.Number.annotate({ |
| 23369 | description: "The duration of the MCP tool call in milliseconds.", | 25996 | description: "The duration of the MCP tool call in milliseconds.", |
| 23370 | format: "int64", | 25997 | format: "int64", |
| 23371 | }).check(Schema.isInt()), | 25998 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 23372 | Schema.Null, | 25999 | Schema.Null, |
| 23373 | ]), | 26000 | ]), |
| 23374 | ), | 26001 | ), |
| 23375 | error: Schema.optionalKey( | 26002 | error: Schema.optionalKey(Schema.Union([ServerNotification__McpToolCallError, Schema.Null])), |
| 23376 | Schema.Union([V2ThreadForkResponse__McpToolCallError, Schema.Null]), | | |
| 23377 | ), | | |
| 23378 | id: Schema.String, | 26003 | id: Schema.String, |
| 23379 | mcpAppResourceUri: Schema.optionalKey( | 26004 | mcpAppResourceUri: Schema.optionalKey( |
| 23380 | Schema.Union([ | 26005 | Schema.Union([ |
| ... | @@ -23386,18 +26011,18 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( | ... | @@ -23386,18 +26011,18 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 23386 | ), | 26011 | ), |
| 23387 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 26012 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 23388 | result: Schema.optionalKey( | 26013 | result: Schema.optionalKey( |
| 23389 | Schema.Union([V2ThreadForkResponse__McpToolCallResult, Schema.Null]), | 26014 | Schema.Union([ServerNotification__McpToolCallResult, Schema.Null]), |
| 23390 | ), | 26015 | ), |
| 23391 | server: Schema.String, | 26016 | server: Schema.String, |
| 23392 | status: V2ThreadForkResponse__McpToolCallStatus, | 26017 | status: ServerNotification__McpToolCallStatus, |
| 23393 | tool: Schema.String, | 26018 | tool: Schema.String, |
| 23394 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), | 26019 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 23395 | }).annotate({ title: "McpToolCallThreadItem" }), | 26020 | }).annotate({ title: "McpToolCallThreadItem" }), |
| 23396 | Schema.Struct({ | 26021 | Schema.Struct({ |
| 23397 | arguments: Schema.Unknown, | 26022 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 23398 | contentItems: Schema.optionalKey( | 26023 | contentItems: Schema.optionalKey( |
| 23399 | Schema.Union([ | 26024 | Schema.Union([ |
| 23400 | Schema.Array(V2ThreadForkResponse__DynamicToolCallOutputContentItem), | 26025 | Schema.Array(ServerNotification__DynamicToolCallOutputContentItem), |
| 23401 | Schema.Null, | 26026 | Schema.Null, |
| 23402 | ]), | 26027 | ]), |
| 23403 | ), | 26028 | ), |
| ... | @@ -23406,19 +26031,19 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( | ... | @@ -23406,19 +26031,19 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 23406 | Schema.Number.annotate({ | 26031 | Schema.Number.annotate({ |
| 23407 | description: "The duration of the dynamic tool call in milliseconds.", | 26032 | description: "The duration of the dynamic tool call in milliseconds.", |
| 23408 | format: "int64", | 26033 | format: "int64", |
| 23409 | }).check(Schema.isInt()), | 26034 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 23410 | Schema.Null, | 26035 | Schema.Null, |
| 23411 | ]), | 26036 | ]), |
| 23412 | ), | 26037 | ), |
| 23413 | id: Schema.String, | 26038 | id: Schema.String, |
| 23414 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 26039 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 23415 | status: V2ThreadForkResponse__DynamicToolCallStatus, | 26040 | status: ServerNotification__DynamicToolCallStatus, |
| 23416 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 26041 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 23417 | tool: Schema.String, | 26042 | tool: Schema.String, |
| 23418 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), | 26043 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 23419 | }).annotate({ title: "DynamicToolCallThreadItem" }), | 26044 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 23420 | Schema.Struct({ | 26045 | Schema.Struct({ |
| 23421 | agentsStates: Schema.Record(Schema.String, V2ThreadForkResponse__CollabAgentState).annotate({ | 26046 | agentsStates: Schema.Record(Schema.String, ServerNotification__CollabAgentState).annotate({ |
| 23422 | description: "Last known status of the target agents, when available.", | 26047 | description: "Last known status of the target agents, when available.", |
| 23423 | }), | 26048 | }), |
| 23424 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), | 26049 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| ... | @@ -23439,7 +26064,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( | ... | @@ -23439,7 +26064,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 23439 | ]), | 26064 | ]), |
| 23440 | ), | 26065 | ), |
| 23441 | reasoningEffort: Schema.optionalKey( | 26066 | reasoningEffort: Schema.optionalKey( |
| 23442 | Schema.Union([V2ThreadForkResponse__ReasoningEffort, Schema.Null]).annotate({ | 26067 | Schema.Union([ServerNotification__ReasoningEffort, Schema.Null]).annotate({ |
| 23443 | description: "Reasoning effort requested for the spawned agent, when applicable.", | 26068 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 23444 | }), | 26069 | }), |
| 23445 | ), | 26070 | ), |
| ... | @@ -23450,20 +26075,14 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( | ... | @@ -23450,20 +26075,14 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 23450 | senderThreadId: Schema.String.annotate({ | 26075 | senderThreadId: Schema.String.annotate({ |
| 23451 | description: "Thread ID of the agent issuing the collab request.", | 26076 | description: "Thread ID of the agent issuing the collab request.", |
| 23452 | }), | 26077 | }), |
| 23453 | status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({ | 26078 | status: Schema.suspend( |
| 23454 | description: "Current status of the collab tool call.", | 26079 | (): Schema.Codec<ServerNotification__CollabAgentToolCallStatus> => |
| 23455 | }), | 26080 | ServerNotification__CollabAgentToolCallStatus, |
| 23456 | tool: Schema.Literals([ | 26081 | ).annotate({ description: "Current status of the collab tool call." }), |
| 23457 | "spawnAgent", | 26082 | tool: Schema.suspend( |
| 23458 | "sendInput", | 26083 | (): Schema.Codec<ServerNotification__CollabAgentTool> => |
| 23459 | "resumeAgent", | 26084 | ServerNotification__CollabAgentTool, |
| 23460 | "wait", | 26085 | ).annotate({ description: "Name of the collab tool that was invoked." }), |
| 23461 | "closeAgent", | | |
| 23462 | "sendMessage", | | |
| 23463 | "followupTask", | | |
| 23464 | "interruptAgent", | | |
| 23465 | "listAgents", | | |
| 23466 | ]).annotate({ description: "Name of the collab tool that was invoked." }), | | |
| 23467 | type: Schema.Literal("collabAgentToolCall").annotate({ | 26086 | type: Schema.Literal("collabAgentToolCall").annotate({ |
| 23468 | title: "CollabAgentToolCallThreadItemType", | 26087 | title: "CollabAgentToolCallThreadItemType", |
| 23469 | }), | 26088 | }), |
| ... | @@ -23472,20 +26091,18 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( | ... | @@ -23472,20 +26091,18 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 23472 | agentPath: Schema.String, | 26091 | agentPath: Schema.String, |
| 23473 | agentThreadId: Schema.String, | 26092 | agentThreadId: Schema.String, |
| 23474 | id: Schema.String, | 26093 | id: Schema.String, |
| 23475 | kind: V2ThreadForkResponse__SubAgentActivityKind, | 26094 | kind: ServerNotification__SubAgentActivityKind, |
| 23476 | type: Schema.Literal("subAgentActivity").annotate({ | 26095 | type: Schema.Literal("subAgentActivity").annotate({ |
| 23477 | title: "SubAgentActivityThreadItemType", | 26096 | title: "SubAgentActivityThreadItemType", |
| 23478 | }), | 26097 | }), |
| 23479 | }).annotate({ title: "SubAgentActivityThreadItem" }), | 26098 | }).annotate({ title: "SubAgentActivityThreadItem" }), |
| 23480 | Schema.Struct({ | 26099 | Schema.Struct({ |
| 23481 | action: Schema.optionalKey( | 26100 | action: Schema.optionalKey(Schema.Union([ServerNotification__WebSearchAction, Schema.Null])), |
| 23482 | Schema.Union([V2ThreadForkResponse__WebSearchAction, Schema.Null]), | | |
| 23483 | ), | | |
| 23484 | id: Schema.String, | 26101 | id: Schema.String, |
| 23485 | query: Schema.String, | 26102 | query: Schema.String, |
| 23486 | results: Schema.optionalKey( | 26103 | results: Schema.optionalKey( |
| 23487 | Schema.Union([ | 26104 | Schema.Union([ |
| 23488 | Schema.Array(Schema.Unknown).annotate({ | 26105 | Schema.Array(Schema.Json.annotate({ expected: "JSON value" })).annotate({ |
| 23489 | description: | 26106 | description: |
| 23490 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", | 26107 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", |
| 23491 | }), | 26108 | }), |
| ... | @@ -23496,13 +26113,17 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( | ... | @@ -23496,13 +26113,17 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 23496 | }).annotate({ title: "WebSearchThreadItem" }), | 26113 | }).annotate({ title: "WebSearchThreadItem" }), |
| 23497 | Schema.Struct({ | 26114 | Schema.Struct({ |
| 23498 | id: Schema.String, | 26115 | id: Schema.String, |
| 23499 | path: V2ThreadForkResponse__LegacyAppPathString, | 26116 | path: ServerNotification__LegacyAppPathString, |
| 23500 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), | 26117 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 23501 | }).annotate({ title: "ImageViewThreadItem" }), | 26118 | }).annotate({ title: "ImageViewThreadItem" }), |
| 23502 | Schema.Struct({ | 26119 | Schema.Struct({ |
| 23503 | durationMs: Schema.Number.annotate({ format: "uint64" }) | 26120 | durationMs: Schema.Number.annotate({ format: "uint64" }) |
| 23504 | .check(Schema.isInt()) | 26121 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 23505 | .check(Schema.isGreaterThanOrEqualTo(0)), | 26122 | .check( |
| | 26123 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 26124 | expected: "a value greater than or equal to 0", |
| | 26125 | }), |
| | 26126 | ), |
| 23506 | id: Schema.String, | 26127 | id: Schema.String, |
| 23507 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), | 26128 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), |
| 23508 | }).annotate({ | 26129 | }).annotate({ |
| ... | @@ -23514,7 +26135,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( | ... | @@ -23514,7 +26135,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 23514 | result: Schema.String, | 26135 | result: Schema.String, |
| 23515 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 26136 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 23516 | savedPath: Schema.optionalKey( | 26137 | savedPath: Schema.optionalKey( |
| 23517 | Schema.Union([V2ThreadForkResponse__AbsolutePathBuf, Schema.Null]), | 26138 | Schema.Union([ServerNotification__AbsolutePathBuf, Schema.Null]), |
| 23518 | ), | 26139 | ), |
| 23519 | status: Schema.String, | 26140 | status: Schema.String, |
| 23520 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 26141 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| ... | @@ -23541,37 +26162,294 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( | ... | @@ -23541,37 +26162,294 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 23541 | }).annotate({ title: "ContextCompactionThreadItem" }), | 26162 | }).annotate({ title: "ContextCompactionThreadItem" }), |
| 23542 | ], | 26163 | ], |
| 23543 | { mode: "oneOf" }, | 26164 | { mode: "oneOf" }, |
| 23544 | ); | 26165 | ).annotate({ identifier: "ServerNotification__ThreadItem" }); |
| 23545 | | 26166 | |
| 23546 | export type V2ThreadListResponse__TurnError = { | 26167 | export type ServerNotification__FileSystemSandboxEntry = { |
| 23547 | readonly additionalDetails?: string | null; | 26168 | readonly access: ServerNotification__FileSystemAccessMode; |
| 23548 | readonly codexErrorInfo?: V2ThreadListResponse__CodexErrorInfo | null; | 26169 | readonly path: ServerNotification__FileSystemPath; |
| 23549 | readonly message: string; | | |
| 23550 | }; | 26170 | }; |
| 23551 | export const V2ThreadListResponse__TurnError = Schema.Struct({ | 26171 | export const ServerNotification__FileSystemSandboxEntry = Schema.Struct({ |
| 23552 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 26172 | access: ServerNotification__FileSystemAccessMode, |
| 23553 | codexErrorInfo: Schema.optionalKey( | 26173 | path: ServerNotification__FileSystemPath, |
| 23554 | Schema.Union([V2ThreadListResponse__CodexErrorInfo, Schema.Null]), | 26174 | }).annotate({ identifier: "ServerNotification__FileSystemSandboxEntry" }); |
| 23555 | ), | 26175 | |
| 23556 | message: Schema.String, | 26176 | export type ServerNotification__ThreadSettings = { |
| 23557 | }); | 26177 | readonly activePermissionProfile?: ServerNotification__ActivePermissionProfile | null; |
| 23558 | | 26178 | readonly approvalPolicy: ServerNotification__AskForApproval; |
| 23559 | export type V2ThreadListResponse__ThreadItem = | 26179 | readonly approvalsReviewer: ServerNotification__ApprovalsReviewer; |
| | 26180 | readonly collaborationMode: ServerNotification__CollaborationMode; |
| | 26181 | readonly cwd: ServerNotification__AbsolutePathBuf; |
| | 26182 | readonly effort?: ServerNotification__ReasoningEffort | null; |
| | 26183 | readonly model: string; |
| | 26184 | readonly modelProvider: string; |
| | 26185 | readonly personality?: ServerNotification__Personality | null; |
| | 26186 | readonly sandboxPolicy: ServerNotification__SandboxPolicy; |
| | 26187 | readonly serviceTier?: string | null; |
| | 26188 | readonly summary?: ServerNotification__ReasoningSummary | null; |
| | 26189 | }; |
| | 26190 | export const ServerNotification__ThreadSettings = Schema.Struct({ |
| | 26191 | activePermissionProfile: Schema.optionalKey( |
| | 26192 | Schema.Union([ServerNotification__ActivePermissionProfile, Schema.Null]), |
| | 26193 | ), |
| | 26194 | approvalPolicy: ServerNotification__AskForApproval, |
| | 26195 | approvalsReviewer: ServerNotification__ApprovalsReviewer, |
| | 26196 | collaborationMode: ServerNotification__CollaborationMode, |
| | 26197 | cwd: ServerNotification__AbsolutePathBuf, |
| | 26198 | effort: Schema.optionalKey(Schema.Union([ServerNotification__ReasoningEffort, Schema.Null])), |
| | 26199 | model: Schema.String, |
| | 26200 | modelProvider: Schema.String, |
| | 26201 | personality: Schema.optionalKey(Schema.Union([ServerNotification__Personality, Schema.Null])), |
| | 26202 | sandboxPolicy: ServerNotification__SandboxPolicy, |
| | 26203 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 26204 | summary: Schema.optionalKey(Schema.Union([ServerNotification__ReasoningSummary, Schema.Null])), |
| | 26205 | }).annotate({ identifier: "ServerNotification__ThreadSettings" }); |
| | 26206 | |
| | 26207 | export type ServerNotification__HookStartedNotification = { |
| | 26208 | readonly run: ServerNotification__HookRunSummary; |
| | 26209 | readonly threadId: string; |
| | 26210 | readonly turnId?: string | null; |
| | 26211 | }; |
| | 26212 | export const ServerNotification__HookStartedNotification = Schema.Struct({ |
| | 26213 | run: ServerNotification__HookRunSummary, |
| | 26214 | threadId: Schema.String, |
| | 26215 | turnId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 26216 | }).annotate({ identifier: "ServerNotification__HookStartedNotification" }); |
| | 26217 | |
| | 26218 | export type ServerNotification__HookCompletedNotification = { |
| | 26219 | readonly run: ServerNotification__HookRunSummary; |
| | 26220 | readonly threadId: string; |
| | 26221 | readonly turnId?: string | null; |
| | 26222 | }; |
| | 26223 | export const ServerNotification__HookCompletedNotification = Schema.Struct({ |
| | 26224 | run: ServerNotification__HookRunSummary, |
| | 26225 | threadId: Schema.String, |
| | 26226 | turnId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 26227 | }).annotate({ identifier: "ServerNotification__HookCompletedNotification" }); |
| | 26228 | |
| | 26229 | export type ServerNotification__AppListUpdatedNotification = { |
| | 26230 | readonly data: ReadonlyArray<ServerNotification__AppInfo>; |
| | 26231 | }; |
| | 26232 | export const ServerNotification__AppListUpdatedNotification = Schema.Struct({ |
| | 26233 | data: Schema.Array(ServerNotification__AppInfo), |
| | 26234 | }).annotate({ |
| | 26235 | description: "EXPERIMENTAL - notification emitted when the app list changes.", |
| | 26236 | identifier: "ServerNotification__AppListUpdatedNotification", |
| | 26237 | }); |
| | 26238 | |
| | 26239 | export type ServerNotification__ExternalAgentConfigImportProgressNotification = { |
| | 26240 | readonly importId: string; |
| | 26241 | readonly itemTypeResults: ReadonlyArray<ServerNotification__ExternalAgentConfigImportTypeResult>; |
| | 26242 | }; |
| | 26243 | export const ServerNotification__ExternalAgentConfigImportProgressNotification = Schema.Struct({ |
| | 26244 | importId: Schema.String, |
| | 26245 | itemTypeResults: Schema.Array(ServerNotification__ExternalAgentConfigImportTypeResult), |
| | 26246 | }).annotate({ identifier: "ServerNotification__ExternalAgentConfigImportProgressNotification" }); |
| | 26247 | |
| | 26248 | export type ServerNotification__ExternalAgentConfigImportCompletedNotification = { |
| | 26249 | readonly importId: string; |
| | 26250 | readonly itemTypeResults: ReadonlyArray<ServerNotification__ExternalAgentConfigImportTypeResult>; |
| | 26251 | }; |
| | 26252 | export const ServerNotification__ExternalAgentConfigImportCompletedNotification = Schema.Struct({ |
| | 26253 | importId: Schema.String, |
| | 26254 | itemTypeResults: Schema.Array(ServerNotification__ExternalAgentConfigImportTypeResult), |
| | 26255 | }).annotate({ identifier: "ServerNotification__ExternalAgentConfigImportCompletedNotification" }); |
| | 26256 | |
| | 26257 | export type ServerRequest__FileSystemSandboxEntry = { |
| | 26258 | readonly access: ServerRequest__FileSystemAccessMode; |
| | 26259 | readonly path: ServerRequest__FileSystemPath; |
| | 26260 | }; |
| | 26261 | export const ServerRequest__FileSystemSandboxEntry = Schema.Struct({ |
| | 26262 | access: ServerRequest__FileSystemAccessMode, |
| | 26263 | path: ServerRequest__FileSystemPath, |
| | 26264 | }).annotate({ identifier: "ServerRequest__FileSystemSandboxEntry" }); |
| | 26265 | |
| | 26266 | export type ServerRequest__McpElicitationMultiSelectEnumSchema = |
| | 26267 | | ServerRequest__McpElicitationUntitledMultiSelectEnumSchema |
| | 26268 | | ServerRequest__McpElicitationTitledMultiSelectEnumSchema; |
| | 26269 | export const ServerRequest__McpElicitationMultiSelectEnumSchema = Schema.Union([ |
| | 26270 | ServerRequest__McpElicitationUntitledMultiSelectEnumSchema, |
| | 26271 | ServerRequest__McpElicitationTitledMultiSelectEnumSchema, |
| | 26272 | ]).annotate({ identifier: "ServerRequest__McpElicitationMultiSelectEnumSchema" }); |
| | 26273 | |
| | 26274 | export type V2ConfigReadResponse__Config = { |
| | 26275 | readonly analytics?: V2ConfigReadResponse__AnalyticsConfig | null; |
| | 26276 | readonly approval_policy?: V2ConfigReadResponse__AskForApproval | null; |
| | 26277 | readonly approvals_reviewer?: V2ConfigReadResponse__ApprovalsReviewer | null; |
| | 26278 | readonly compact_prompt?: string | null; |
| | 26279 | readonly desktop?: { readonly [x: string]: Schema.Json } | null; |
| | 26280 | readonly developer_instructions?: string | null; |
| | 26281 | readonly forced_chatgpt_workspace_id?: V2ConfigReadResponse__ForcedChatgptWorkspaceIds | null; |
| | 26282 | readonly forced_login_method?: V2ConfigReadResponse__ForcedLoginMethod | null; |
| | 26283 | readonly instructions?: string | null; |
| | 26284 | readonly model?: string | null; |
| | 26285 | readonly model_auto_compact_token_limit?: number | null; |
| | 26286 | readonly model_auto_compact_token_limit_scope?: V2ConfigReadResponse__AutoCompactTokenLimitScope | null; |
| | 26287 | readonly model_context_window?: number | null; |
| | 26288 | readonly model_provider?: string | null; |
| | 26289 | readonly model_reasoning_effort?: V2ConfigReadResponse__ReasoningEffort | null; |
| | 26290 | readonly model_reasoning_summary?: V2ConfigReadResponse__ReasoningSummary | null; |
| | 26291 | readonly model_verbosity?: V2ConfigReadResponse__Verbosity | null; |
| | 26292 | readonly review_model?: string | null; |
| | 26293 | readonly sandbox_mode?: V2ConfigReadResponse__SandboxMode | null; |
| | 26294 | readonly sandbox_workspace_write?: V2ConfigReadResponse__SandboxWorkspaceWrite | null; |
| | 26295 | readonly service_tier?: string | null; |
| | 26296 | readonly tools?: V2ConfigReadResponse__ToolsV2 | null; |
| | 26297 | readonly web_search?: V2ConfigReadResponse__WebSearchMode | null; |
| | 26298 | } & { readonly [x: string]: Schema.Json }; |
| | 26299 | export const V2ConfigReadResponse__Config = Schema.StructWithRest( |
| | 26300 | Schema.Struct({ |
| | 26301 | analytics: Schema.optionalKey( |
| | 26302 | Schema.Union([V2ConfigReadResponse__AnalyticsConfig, Schema.Null]), |
| | 26303 | ), |
| | 26304 | approval_policy: Schema.optionalKey( |
| | 26305 | Schema.Union([V2ConfigReadResponse__AskForApproval, Schema.Null]), |
| | 26306 | ), |
| | 26307 | approvals_reviewer: Schema.optionalKey( |
| | 26308 | Schema.Union([V2ConfigReadResponse__ApprovalsReviewer, Schema.Null]).annotate({ |
| | 26309 | description: |
| | 26310 | "[UNSTABLE] Optional default for where approval requests are routed for review.", |
| | 26311 | }), |
| | 26312 | ), |
| | 26313 | compact_prompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 26314 | desktop: Schema.optionalKey( |
| | 26315 | Schema.Union([ |
| | 26316 | Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })), |
| | 26317 | Schema.Null, |
| | 26318 | ]), |
| | 26319 | ), |
| | 26320 | developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 26321 | forced_chatgpt_workspace_id: Schema.optionalKey( |
| | 26322 | Schema.Union([V2ConfigReadResponse__ForcedChatgptWorkspaceIds, Schema.Null]), |
| | 26323 | ), |
| | 26324 | forced_login_method: Schema.optionalKey( |
| | 26325 | Schema.Union([V2ConfigReadResponse__ForcedLoginMethod, Schema.Null]), |
| | 26326 | ), |
| | 26327 | instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 26328 | model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 26329 | model_auto_compact_token_limit: Schema.optionalKey( |
| | 26330 | Schema.Union([ |
| | 26331 | Schema.Number.annotate({ format: "int64" }).check( |
| | 26332 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 26333 | ), |
| | 26334 | Schema.Null, |
| | 26335 | ]), |
| | 26336 | ), |
| | 26337 | model_auto_compact_token_limit_scope: Schema.optionalKey( |
| | 26338 | Schema.Union([V2ConfigReadResponse__AutoCompactTokenLimitScope, Schema.Null]), |
| | 26339 | ), |
| | 26340 | model_context_window: Schema.optionalKey( |
| | 26341 | Schema.Union([ |
| | 26342 | Schema.Number.annotate({ format: "int64" }).check( |
| | 26343 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 26344 | ), |
| | 26345 | Schema.Null, |
| | 26346 | ]), |
| | 26347 | ), |
| | 26348 | model_provider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 26349 | model_reasoning_effort: Schema.optionalKey( |
| | 26350 | Schema.Union([V2ConfigReadResponse__ReasoningEffort, Schema.Null]), |
| | 26351 | ), |
| | 26352 | model_reasoning_summary: Schema.optionalKey( |
| | 26353 | Schema.Union([V2ConfigReadResponse__ReasoningSummary, Schema.Null]), |
| | 26354 | ), |
| | 26355 | model_verbosity: Schema.optionalKey( |
| | 26356 | Schema.Union([V2ConfigReadResponse__Verbosity, Schema.Null]), |
| | 26357 | ), |
| | 26358 | review_model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 26359 | sandbox_mode: Schema.optionalKey( |
| | 26360 | Schema.Union([V2ConfigReadResponse__SandboxMode, Schema.Null]), |
| | 26361 | ), |
| | 26362 | sandbox_workspace_write: Schema.optionalKey( |
| | 26363 | Schema.Union([V2ConfigReadResponse__SandboxWorkspaceWrite, Schema.Null]), |
| | 26364 | ), |
| | 26365 | service_tier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 26366 | tools: Schema.optionalKey(Schema.Union([V2ConfigReadResponse__ToolsV2, Schema.Null])), |
| | 26367 | web_search: Schema.optionalKey( |
| | 26368 | Schema.Union([V2ConfigReadResponse__WebSearchMode, Schema.Null]), |
| | 26369 | ), |
| | 26370 | }), |
| | 26371 | [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))], |
| | 26372 | ).annotate({ identifier: "V2ConfigReadResponse__Config" }); |
| | 26373 | |
| | 26374 | export type V2ConfigRequirementsReadResponse__ConfigRequirements = { |
| | 26375 | readonly allowAppshots?: boolean | null; |
| | 26376 | readonly allowManagedHooksOnly?: boolean | null; |
| | 26377 | readonly allowRemoteControl?: boolean | null; |
| | 26378 | readonly allowedApprovalPolicies?: ReadonlyArray<V2ConfigRequirementsReadResponse__AskForApproval> | null; |
| | 26379 | readonly allowedPermissionProfiles?: { readonly [x: string]: boolean } | null; |
| | 26380 | readonly allowedSandboxModes?: ReadonlyArray<V2ConfigRequirementsReadResponse__SandboxMode> | null; |
| | 26381 | readonly allowedWebSearchModes?: ReadonlyArray<V2ConfigRequirementsReadResponse__WebSearchMode> | null; |
| | 26382 | readonly allowedWindowsSandboxImplementations?: ReadonlyArray<V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode> | null; |
| | 26383 | readonly computerUse?: V2ConfigRequirementsReadResponse__ComputerUseRequirements | null; |
| | 26384 | readonly defaultPermissions?: string | null; |
| | 26385 | readonly enforceResidency?: V2ConfigRequirementsReadResponse__ResidencyRequirement | null; |
| | 26386 | readonly featureRequirements?: { readonly [x: string]: boolean } | null; |
| | 26387 | readonly models?: V2ConfigRequirementsReadResponse__ModelsRequirements | null; |
| | 26388 | }; |
| | 26389 | export const V2ConfigRequirementsReadResponse__ConfigRequirements = Schema.Struct({ |
| | 26390 | allowAppshots: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 26391 | allowManagedHooksOnly: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 26392 | allowRemoteControl: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 26393 | allowedApprovalPolicies: Schema.optionalKey( |
| | 26394 | Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__AskForApproval), Schema.Null]), |
| | 26395 | ), |
| | 26396 | allowedPermissionProfiles: Schema.optionalKey( |
| | 26397 | Schema.Union([Schema.Record(Schema.String, Schema.Boolean), Schema.Null]), |
| | 26398 | ), |
| | 26399 | allowedSandboxModes: Schema.optionalKey( |
| | 26400 | Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__SandboxMode), Schema.Null]), |
| | 26401 | ), |
| | 26402 | allowedWebSearchModes: Schema.optionalKey( |
| | 26403 | Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__WebSearchMode), Schema.Null]), |
| | 26404 | ), |
| | 26405 | allowedWindowsSandboxImplementations: Schema.optionalKey( |
| | 26406 | Schema.Union([ |
| | 26407 | Schema.Array(V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode), |
| | 26408 | Schema.Null, |
| | 26409 | ]), |
| | 26410 | ), |
| | 26411 | computerUse: Schema.optionalKey( |
| | 26412 | Schema.Union([V2ConfigRequirementsReadResponse__ComputerUseRequirements, Schema.Null]), |
| | 26413 | ), |
| | 26414 | defaultPermissions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 26415 | enforceResidency: Schema.optionalKey( |
| | 26416 | Schema.Union([V2ConfigRequirementsReadResponse__ResidencyRequirement, Schema.Null]), |
| | 26417 | ), |
| | 26418 | featureRequirements: Schema.optionalKey( |
| | 26419 | Schema.Union([Schema.Record(Schema.String, Schema.Boolean), Schema.Null]), |
| | 26420 | ), |
| | 26421 | models: Schema.optionalKey( |
| | 26422 | Schema.Union([V2ConfigRequirementsReadResponse__ModelsRequirements, Schema.Null]), |
| | 26423 | ), |
| | 26424 | }).annotate({ identifier: "V2ConfigRequirementsReadResponse__ConfigRequirements" }); |
| | 26425 | |
| | 26426 | export type V2ConfigWriteResponse__OverriddenMetadata = { |
| | 26427 | readonly effectiveValue: Schema.Json; |
| | 26428 | readonly message: string; |
| | 26429 | readonly overridingLayer: V2ConfigWriteResponse__ConfigLayerMetadata; |
| | 26430 | }; |
| | 26431 | export const V2ConfigWriteResponse__OverriddenMetadata = Schema.Struct({ |
| | 26432 | effectiveValue: Schema.Json.annotate({ expected: "JSON value" }), |
| | 26433 | message: Schema.String, |
| | 26434 | overridingLayer: V2ConfigWriteResponse__ConfigLayerMetadata, |
| | 26435 | }).annotate({ identifier: "V2ConfigWriteResponse__OverriddenMetadata" }); |
| | 26436 | |
| | 26437 | export type V2ItemCompletedNotification__ThreadItem = |
| 23560 | | { | 26438 | | { |
| 23561 | readonly clientId?: string | null; | 26439 | readonly clientId?: string | null; |
| 23562 | readonly content: ReadonlyArray<V2ThreadListResponse__UserInput>; | 26440 | readonly content: ReadonlyArray<V2ItemCompletedNotification__UserInput>; |
| 23563 | readonly id: string; | 26441 | readonly id: string; |
| 23564 | readonly type: "userMessage"; | 26442 | readonly type: "userMessage"; |
| 23565 | } | 26443 | } |
| 23566 | | { | 26444 | | { |
| 23567 | readonly fragments: ReadonlyArray<V2ThreadListResponse__HookPromptFragment>; | 26445 | readonly fragments: ReadonlyArray<V2ItemCompletedNotification__HookPromptFragment>; |
| 23568 | readonly id: string; | 26446 | readonly id: string; |
| 23569 | readonly type: "hookPrompt"; | 26447 | readonly type: "hookPrompt"; |
| 23570 | } | 26448 | } |
| 23571 | | { | 26449 | | { |
| 23572 | readonly id: string; | 26450 | readonly id: string; |
| 23573 | readonly memoryCitation?: V2ThreadListResponse__MemoryCitation | null; | 26451 | readonly memoryCitation?: V2ItemCompletedNotification__MemoryCitation | null; |
| 23574 | readonly phase?: V2ThreadListResponse__MessagePhase | null; | 26452 | readonly phase?: V2ItemCompletedNotification__MessagePhase | null; |
| 23575 | readonly text: string; | 26453 | readonly text: string; |
| 23576 | readonly delivery?: "async" | null; | 26454 | readonly delivery?: "async" | null; |
| 23577 | readonly questions?: ReadonlyArray<{ | 26455 | readonly questions?: ReadonlyArray<{ |
| ... | @@ -23590,85 +26468,78 @@ export type V2ThreadListResponse__ThreadItem = | ... | @@ -23590,85 +26468,78 @@ export type V2ThreadListResponse__ThreadItem = |
| 23590 | | { | 26468 | | { |
| 23591 | readonly aggregatedOutput?: string | null; | 26469 | readonly aggregatedOutput?: string | null; |
| 23592 | readonly command: string; | 26470 | readonly command: string; |
| 23593 | readonly commandActions: ReadonlyArray<V2ThreadListResponse__CommandAction>; | 26471 | readonly commandActions: ReadonlyArray<V2ItemCompletedNotification__CommandAction>; |
| 23594 | readonly cwd: string; | 26472 | readonly cwd: V2ItemCompletedNotification__LegacyAppPathString; |
| 23595 | readonly durationMs?: number | null; | 26473 | readonly durationMs?: number | null; |
| 23596 | readonly exitCode?: number | null; | 26474 | readonly exitCode?: number | null; |
| 23597 | readonly id: string; | 26475 | readonly id: string; |
| 23598 | readonly processId?: string | null; | 26476 | readonly processId?: string | null; |
| 23599 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; | 26477 | readonly source?: V2ItemCompletedNotification__CommandExecutionSource; |
| 23600 | readonly status: V2ThreadListResponse__CommandExecutionStatus; | 26478 | readonly status: V2ItemCompletedNotification__CommandExecutionStatus; |
| 23601 | readonly type: "commandExecution"; | 26479 | readonly type: "commandExecution"; |
| 23602 | } | 26480 | } |
| 23603 | | { | 26481 | | { |
| 23604 | readonly changes: ReadonlyArray<V2ThreadListResponse__FileUpdateChange>; | 26482 | readonly changes: ReadonlyArray<V2ItemCompletedNotification__FileUpdateChange>; |
| 23605 | readonly id: string; | 26483 | readonly id: string; |
| 23606 | readonly status: V2ThreadListResponse__PatchApplyStatus; | 26484 | readonly status: V2ItemCompletedNotification__PatchApplyStatus; |
| 23607 | readonly type: "fileChange"; | 26485 | readonly type: "fileChange"; |
| 23608 | } | 26486 | } |
| 23609 | | { | 26487 | | { |
| 23610 | readonly appContext?: V2ThreadListResponse__McpToolCallAppContext | null; | 26488 | readonly appContext?: V2ItemCompletedNotification__McpToolCallAppContext | null; |
| 23611 | readonly arguments: unknown; | 26489 | readonly arguments: Schema.Json; |
| 23612 | readonly durationMs?: number | null; | 26490 | readonly durationMs?: number | null; |
| 23613 | readonly error?: V2ThreadListResponse__McpToolCallError | null; | 26491 | readonly error?: V2ItemCompletedNotification__McpToolCallError | null; |
| 23614 | readonly id: string; | 26492 | readonly id: string; |
| 23615 | readonly mcpAppResourceUri?: string | null; | 26493 | readonly mcpAppResourceUri?: string | null; |
| 23616 | readonly pluginId?: string | null; | 26494 | readonly pluginId?: string | null; |
| 23617 | readonly result?: V2ThreadListResponse__McpToolCallResult | null; | 26495 | readonly result?: V2ItemCompletedNotification__McpToolCallResult | null; |
| 23618 | readonly server: string; | 26496 | readonly server: string; |
| 23619 | readonly status: V2ThreadListResponse__McpToolCallStatus; | 26497 | readonly status: V2ItemCompletedNotification__McpToolCallStatus; |
| 23620 | readonly tool: string; | 26498 | readonly tool: string; |
| 23621 | readonly type: "mcpToolCall"; | 26499 | readonly type: "mcpToolCall"; |
| 23622 | } | 26500 | } |
| 23623 | | { | 26501 | | { |
| 23624 | readonly arguments: unknown; | 26502 | readonly arguments: Schema.Json; |
| 23625 | readonly contentItems?: ReadonlyArray<V2ThreadListResponse__DynamicToolCallOutputContentItem> | null; | 26503 | readonly contentItems?: ReadonlyArray<V2ItemCompletedNotification__DynamicToolCallOutputContentItem> | null; |
| 23626 | readonly durationMs?: number | null; | 26504 | readonly durationMs?: number | null; |
| 23627 | readonly id: string; | 26505 | readonly id: string; |
| 23628 | readonly namespace?: string | null; | 26506 | readonly namespace?: string | null; |
| 23629 | readonly status: V2ThreadListResponse__DynamicToolCallStatus; | 26507 | readonly status: V2ItemCompletedNotification__DynamicToolCallStatus; |
| 23630 | readonly success?: boolean | null; | 26508 | readonly success?: boolean | null; |
| 23631 | readonly tool: string; | 26509 | readonly tool: string; |
| 23632 | readonly type: "dynamicToolCall"; | 26510 | readonly type: "dynamicToolCall"; |
| 23633 | } | 26511 | } |
| 23634 | | { | 26512 | | { |
| 23635 | readonly agentsStates: { readonly [x: string]: V2ThreadListResponse__CollabAgentState }; | 26513 | readonly agentsStates: { |
| | 26514 | readonly [x: string]: V2ItemCompletedNotification__CollabAgentState; |
| | 26515 | }; |
| 23636 | readonly id: string; | 26516 | readonly id: string; |
| 23637 | readonly model?: string | null; | 26517 | readonly model?: string | null; |
| 23638 | readonly prompt?: string | null; | 26518 | readonly prompt?: string | null; |
| 23639 | readonly reasoningEffort?: V2ThreadListResponse__ReasoningEffort | null; | 26519 | readonly reasoningEffort?: V2ItemCompletedNotification__ReasoningEffort | null; |
| 23640 | readonly receiverThreadIds: ReadonlyArray<string>; | 26520 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 23641 | readonly senderThreadId: string; | 26521 | readonly senderThreadId: string; |
| 23642 | readonly status: "inProgress" | "completed" | "failed" | "interrupted"; | 26522 | readonly status: V2ItemCompletedNotification__CollabAgentToolCallStatus; |
| 23643 | readonly tool: | 26523 | readonly tool: V2ItemCompletedNotification__CollabAgentTool; |
| 23644 | | "spawnAgent" | | |
| 23645 | | "sendInput" | | |
| 23646 | | "resumeAgent" | | |
| 23647 | | "wait" | | |
| 23648 | | "closeAgent" | | |
| 23649 | | "sendMessage" | | |
| 23650 | | "followupTask" | | |
| 23651 | | "interruptAgent" | | |
| 23652 | | "listAgents"; | | |
| 23653 | readonly type: "collabAgentToolCall"; | 26524 | readonly type: "collabAgentToolCall"; |
| 23654 | } | 26525 | } |
| 23655 | | { | 26526 | | { |
| 23656 | readonly agentPath: string; | 26527 | readonly agentPath: string; |
| 23657 | readonly agentThreadId: string; | 26528 | readonly agentThreadId: string; |
| 23658 | readonly id: string; | 26529 | readonly id: string; |
| 23659 | readonly kind: V2ThreadListResponse__SubAgentActivityKind; | 26530 | readonly kind: V2ItemCompletedNotification__SubAgentActivityKind; |
| 23660 | readonly type: "subAgentActivity"; | 26531 | readonly type: "subAgentActivity"; |
| 23661 | } | 26532 | } |
| 23662 | | { | 26533 | | { |
| 23663 | readonly action?: V2ThreadListResponse__WebSearchAction | null; | 26534 | readonly action?: V2ItemCompletedNotification__WebSearchAction | null; |
| 23664 | readonly id: string; | 26535 | readonly id: string; |
| 23665 | readonly query: string; | 26536 | readonly query: string; |
| 23666 | readonly results?: ReadonlyArray<unknown> | null; | 26537 | readonly results?: ReadonlyArray<Schema.Json> | null; |
| 23667 | readonly type: "webSearch"; | 26538 | readonly type: "webSearch"; |
| 23668 | } | 26539 | } |
| 23669 | | { | 26540 | | { |
| 23670 | readonly id: string; | 26541 | readonly id: string; |
| 23671 | readonly path: V2ThreadListResponse__LegacyAppPathString; | 26542 | readonly path: V2ItemCompletedNotification__LegacyAppPathString; |
| 23672 | readonly type: "imageView"; | 26543 | readonly type: "imageView"; |
| 23673 | } | 26544 | } |
| 23674 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | 26545 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| ... | @@ -23676,32 +26547,34 @@ export type V2ThreadListResponse__ThreadItem = | ... | @@ -23676,32 +26547,34 @@ export type V2ThreadListResponse__ThreadItem = |
| 23676 | readonly id: string; | 26547 | readonly id: string; |
| 23677 | readonly result: string; | 26548 | readonly result: string; |
| 23678 | readonly revisedPrompt?: string | null; | 26549 | readonly revisedPrompt?: string | null; |
| 23679 | readonly savedPath?: V2ThreadListResponse__AbsolutePathBuf | null; | 26550 | readonly savedPath?: V2ItemCompletedNotification__AbsolutePathBuf | null; |
| 23680 | readonly status: string; | 26551 | readonly status: string; |
| 23681 | readonly type: "imageGeneration"; | 26552 | readonly type: "imageGeneration"; |
| 23682 | } | 26553 | } |
| 23683 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 26554 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 23684 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } | 26555 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 23685 | | { readonly id: string; readonly type: "contextCompaction" }; | 26556 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 23686 | export const V2ThreadListResponse__ThreadItem = Schema.Union( | 26557 | export const V2ItemCompletedNotification__ThreadItem = Schema.Union( |
| 23687 | [ | 26558 | [ |
| 23688 | Schema.Struct({ | 26559 | Schema.Struct({ |
| 23689 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 26560 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 23690 | content: Schema.Array(V2ThreadListResponse__UserInput), | 26561 | content: Schema.Array(V2ItemCompletedNotification__UserInput), |
| 23691 | id: Schema.String, | 26562 | id: Schema.String, |
| 23692 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), | 26563 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 23693 | }).annotate({ title: "UserMessageThreadItem" }), | 26564 | }).annotate({ title: "UserMessageThreadItem" }), |
| 23694 | Schema.Struct({ | 26565 | Schema.Struct({ |
| 23695 | fragments: Schema.Array(V2ThreadListResponse__HookPromptFragment), | 26566 | fragments: Schema.Array(V2ItemCompletedNotification__HookPromptFragment), |
| 23696 | id: Schema.String, | 26567 | id: Schema.String, |
| 23697 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | 26568 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 23698 | }).annotate({ title: "HookPromptThreadItem" }), | 26569 | }).annotate({ title: "HookPromptThreadItem" }), |
| 23699 | Schema.Struct({ | 26570 | Schema.Struct({ |
| 23700 | id: Schema.String, | 26571 | id: Schema.String, |
| 23701 | memoryCitation: Schema.optionalKey( | 26572 | memoryCitation: Schema.optionalKey( |
| 23702 | Schema.Union([V2ThreadListResponse__MemoryCitation, Schema.Null]), | 26573 | Schema.Union([V2ItemCompletedNotification__MemoryCitation, Schema.Null]), |
| | 26574 | ), |
| | 26575 | phase: Schema.optionalKey( |
| | 26576 | Schema.Union([V2ItemCompletedNotification__MessagePhase, Schema.Null]), |
| 23703 | ), | 26577 | ), |
| 23704 | phase: Schema.optionalKey(Schema.Union([V2ThreadListResponse__MessagePhase, Schema.Null])), | | |
| 23705 | text: Schema.String, | 26578 | text: Schema.String, |
| 23706 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | 26579 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), |
| 23707 | questions: Schema.optionalKey( | 26580 | questions: Schema.optionalKey( |
| ... | @@ -23742,17 +26615,20 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( | ... | @@ -23742,17 +26615,20 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 23742 | ]), | 26615 | ]), |
| 23743 | ), | 26616 | ), |
| 23744 | command: Schema.String.annotate({ description: "The command to be executed." }), | 26617 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 23745 | commandActions: Schema.Array(V2ThreadListResponse__CommandAction).annotate({ | 26618 | commandActions: Schema.Array(V2ItemCompletedNotification__CommandAction).annotate({ |
| 23746 | description: | 26619 | description: |
| 23747 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", | 26620 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 23748 | }), | 26621 | }), |
| 23749 | cwd: Schema.String.annotate({ description: "The command's working directory." }), | 26622 | cwd: Schema.suspend( |
| | 26623 | (): Schema.Codec<V2ItemCompletedNotification__LegacyAppPathString> => |
| | 26624 | V2ItemCompletedNotification__LegacyAppPathString, |
| | 26625 | ).annotate({ description: "The command's working directory." }), |
| 23750 | durationMs: Schema.optionalKey( | 26626 | durationMs: Schema.optionalKey( |
| 23751 | Schema.Union([ | 26627 | Schema.Union([ |
| 23752 | Schema.Number.annotate({ | 26628 | Schema.Number.annotate({ |
| 23753 | description: "The duration of the command execution in milliseconds.", | 26629 | description: "The duration of the command execution in milliseconds.", |
| 23754 | format: "int64", | 26630 | format: "int64", |
| 23755 | }).check(Schema.isInt()), | 26631 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 23756 | Schema.Null, | 26632 | Schema.Null, |
| 23757 | ]), | 26633 | ]), |
| 23758 | ), | 26634 | ), |
| ... | @@ -23761,7 +26637,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( | ... | @@ -23761,7 +26637,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 23761 | Schema.Number.annotate({ | 26637 | Schema.Number.annotate({ |
| 23762 | description: "The command's exit code.", | 26638 | description: "The command's exit code.", |
| 23763 | format: "int32", | 26639 | format: "int32", |
| 23764 | }).check(Schema.isInt()), | 26640 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 23765 | Schema.Null, | 26641 | Schema.Null, |
| 23766 | ]), | 26642 | ]), |
| 23767 | ), | 26643 | ), |
| ... | @@ -23775,40 +26651,38 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( | ... | @@ -23775,40 +26651,38 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 23775 | ]), | 26651 | ]), |
| 23776 | ), | 26652 | ), |
| 23777 | source: Schema.optionalKey( | 26653 | source: Schema.optionalKey( |
| 23778 | Schema.Literals([ | 26654 | Schema.suspend( |
| 23779 | "agent", | 26655 | (): Schema.Codec<V2ItemCompletedNotification__CommandExecutionSource> => |
| 23780 | "userShell", | 26656 | V2ItemCompletedNotification__CommandExecutionSource, |
| 23781 | "unifiedExecStartup", | 26657 | ).annotate({ default: "agent" }), |
| 23782 | "unifiedExecInteraction", | | |
| 23783 | ]).annotate({ default: "agent" }), | | |
| 23784 | ), | 26658 | ), |
| 23785 | status: V2ThreadListResponse__CommandExecutionStatus, | 26659 | status: V2ItemCompletedNotification__CommandExecutionStatus, |
| 23786 | type: Schema.Literal("commandExecution").annotate({ | 26660 | type: Schema.Literal("commandExecution").annotate({ |
| 23787 | title: "CommandExecutionThreadItemType", | 26661 | title: "CommandExecutionThreadItemType", |
| 23788 | }), | 26662 | }), |
| 23789 | }).annotate({ title: "CommandExecutionThreadItem" }), | 26663 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 23790 | Schema.Struct({ | 26664 | Schema.Struct({ |
| 23791 | changes: Schema.Array(V2ThreadListResponse__FileUpdateChange), | 26665 | changes: Schema.Array(V2ItemCompletedNotification__FileUpdateChange), |
| 23792 | id: Schema.String, | 26666 | id: Schema.String, |
| 23793 | status: V2ThreadListResponse__PatchApplyStatus, | 26667 | status: V2ItemCompletedNotification__PatchApplyStatus, |
| 23794 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), | 26668 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 23795 | }).annotate({ title: "FileChangeThreadItem" }), | 26669 | }).annotate({ title: "FileChangeThreadItem" }), |
| 23796 | Schema.Struct({ | 26670 | Schema.Struct({ |
| 23797 | appContext: Schema.optionalKey( | 26671 | appContext: Schema.optionalKey( |
| 23798 | Schema.Union([V2ThreadListResponse__McpToolCallAppContext, Schema.Null]), | 26672 | Schema.Union([V2ItemCompletedNotification__McpToolCallAppContext, Schema.Null]), |
| 23799 | ), | 26673 | ), |
| 23800 | arguments: Schema.Unknown, | 26674 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 23801 | durationMs: Schema.optionalKey( | 26675 | durationMs: Schema.optionalKey( |
| 23802 | Schema.Union([ | 26676 | Schema.Union([ |
| 23803 | Schema.Number.annotate({ | 26677 | Schema.Number.annotate({ |
| 23804 | description: "The duration of the MCP tool call in milliseconds.", | 26678 | description: "The duration of the MCP tool call in milliseconds.", |
| 23805 | format: "int64", | 26679 | format: "int64", |
| 23806 | }).check(Schema.isInt()), | 26680 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 23807 | Schema.Null, | 26681 | Schema.Null, |
| 23808 | ]), | 26682 | ]), |
| 23809 | ), | 26683 | ), |
| 23810 | error: Schema.optionalKey( | 26684 | error: Schema.optionalKey( |
| 23811 | Schema.Union([V2ThreadListResponse__McpToolCallError, Schema.Null]), | 26685 | Schema.Union([V2ItemCompletedNotification__McpToolCallError, Schema.Null]), |
| 23812 | ), | 26686 | ), |
| 23813 | id: Schema.String, | 26687 | id: Schema.String, |
| 23814 | mcpAppResourceUri: Schema.optionalKey( | 26688 | mcpAppResourceUri: Schema.optionalKey( |
| ... | @@ -23821,18 +26695,18 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( | ... | @@ -23821,18 +26695,18 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 23821 | ), | 26695 | ), |
| 23822 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 26696 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 23823 | result: Schema.optionalKey( | 26697 | result: Schema.optionalKey( |
| 23824 | Schema.Union([V2ThreadListResponse__McpToolCallResult, Schema.Null]), | 26698 | Schema.Union([V2ItemCompletedNotification__McpToolCallResult, Schema.Null]), |
| 23825 | ), | 26699 | ), |
| 23826 | server: Schema.String, | 26700 | server: Schema.String, |
| 23827 | status: V2ThreadListResponse__McpToolCallStatus, | 26701 | status: V2ItemCompletedNotification__McpToolCallStatus, |
| 23828 | tool: Schema.String, | 26702 | tool: Schema.String, |
| 23829 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), | 26703 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 23830 | }).annotate({ title: "McpToolCallThreadItem" }), | 26704 | }).annotate({ title: "McpToolCallThreadItem" }), |
| 23831 | Schema.Struct({ | 26705 | Schema.Struct({ |
| 23832 | arguments: Schema.Unknown, | 26706 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 23833 | contentItems: Schema.optionalKey( | 26707 | contentItems: Schema.optionalKey( |
| 23834 | Schema.Union([ | 26708 | Schema.Union([ |
| 23835 | Schema.Array(V2ThreadListResponse__DynamicToolCallOutputContentItem), | 26709 | Schema.Array(V2ItemCompletedNotification__DynamicToolCallOutputContentItem), |
| 23836 | Schema.Null, | 26710 | Schema.Null, |
| 23837 | ]), | 26711 | ]), |
| 23838 | ), | 26712 | ), |
| ... | @@ -23841,21 +26715,22 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( | ... | @@ -23841,21 +26715,22 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 23841 | Schema.Number.annotate({ | 26715 | Schema.Number.annotate({ |
| 23842 | description: "The duration of the dynamic tool call in milliseconds.", | 26716 | description: "The duration of the dynamic tool call in milliseconds.", |
| 23843 | format: "int64", | 26717 | format: "int64", |
| 23844 | }).check(Schema.isInt()), | 26718 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 23845 | Schema.Null, | 26719 | Schema.Null, |
| 23846 | ]), | 26720 | ]), |
| 23847 | ), | 26721 | ), |
| 23848 | id: Schema.String, | 26722 | id: Schema.String, |
| 23849 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 26723 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 23850 | status: V2ThreadListResponse__DynamicToolCallStatus, | 26724 | status: V2ItemCompletedNotification__DynamicToolCallStatus, |
| 23851 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 26725 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 23852 | tool: Schema.String, | 26726 | tool: Schema.String, |
| 23853 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), | 26727 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 23854 | }).annotate({ title: "DynamicToolCallThreadItem" }), | 26728 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 23855 | Schema.Struct({ | 26729 | Schema.Struct({ |
| 23856 | agentsStates: Schema.Record(Schema.String, V2ThreadListResponse__CollabAgentState).annotate({ | 26730 | agentsStates: Schema.Record( |
| 23857 | description: "Last known status of the target agents, when available.", | 26731 | Schema.String, |
| 23858 | }), | 26732 | V2ItemCompletedNotification__CollabAgentState, |
| | 26733 | ).annotate({ description: "Last known status of the target agents, when available." }), |
| 23859 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), | 26734 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 23860 | model: Schema.optionalKey( | 26735 | model: Schema.optionalKey( |
| 23861 | Schema.Union([ | 26736 | Schema.Union([ |
| ... | @@ -23874,7 +26749,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( | ... | @@ -23874,7 +26749,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 23874 | ]), | 26749 | ]), |
| 23875 | ), | 26750 | ), |
| 23876 | reasoningEffort: Schema.optionalKey( | 26751 | reasoningEffort: Schema.optionalKey( |
| 23877 | Schema.Union([V2ThreadListResponse__ReasoningEffort, Schema.Null]).annotate({ | 26752 | Schema.Union([V2ItemCompletedNotification__ReasoningEffort, Schema.Null]).annotate({ |
| 23878 | description: "Reasoning effort requested for the spawned agent, when applicable.", | 26753 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 23879 | }), | 26754 | }), |
| 23880 | ), | 26755 | ), |
| ... | @@ -23885,20 +26760,14 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( | ... | @@ -23885,20 +26760,14 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 23885 | senderThreadId: Schema.String.annotate({ | 26760 | senderThreadId: Schema.String.annotate({ |
| 23886 | description: "Thread ID of the agent issuing the collab request.", | 26761 | description: "Thread ID of the agent issuing the collab request.", |
| 23887 | }), | 26762 | }), |
| 23888 | status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({ | 26763 | status: Schema.suspend( |
| 23889 | description: "Current status of the collab tool call.", | 26764 | (): Schema.Codec<V2ItemCompletedNotification__CollabAgentToolCallStatus> => |
| 23890 | }), | 26765 | V2ItemCompletedNotification__CollabAgentToolCallStatus, |
| 23891 | tool: Schema.Literals([ | 26766 | ).annotate({ description: "Current status of the collab tool call." }), |
| 23892 | "spawnAgent", | 26767 | tool: Schema.suspend( |
| 23893 | "sendInput", | 26768 | (): Schema.Codec<V2ItemCompletedNotification__CollabAgentTool> => |
| 23894 | "resumeAgent", | 26769 | V2ItemCompletedNotification__CollabAgentTool, |
| 23895 | "wait", | 26770 | ).annotate({ description: "Name of the collab tool that was invoked." }), |
| 23896 | "closeAgent", | | |
| 23897 | "sendMessage", | | |
| 23898 | "followupTask", | | |
| 23899 | "interruptAgent", | | |
| 23900 | "listAgents", | | |
| 23901 | ]).annotate({ description: "Name of the collab tool that was invoked." }), | | |
| 23902 | type: Schema.Literal("collabAgentToolCall").annotate({ | 26771 | type: Schema.Literal("collabAgentToolCall").annotate({ |
| 23903 | title: "CollabAgentToolCallThreadItemType", | 26772 | title: "CollabAgentToolCallThreadItemType", |
| 23904 | }), | 26773 | }), |
| ... | @@ -23907,20 +26776,20 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( | ... | @@ -23907,20 +26776,20 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 23907 | agentPath: Schema.String, | 26776 | agentPath: Schema.String, |
| 23908 | agentThreadId: Schema.String, | 26777 | agentThreadId: Schema.String, |
| 23909 | id: Schema.String, | 26778 | id: Schema.String, |
| 23910 | kind: V2ThreadListResponse__SubAgentActivityKind, | 26779 | kind: V2ItemCompletedNotification__SubAgentActivityKind, |
| 23911 | type: Schema.Literal("subAgentActivity").annotate({ | 26780 | type: Schema.Literal("subAgentActivity").annotate({ |
| 23912 | title: "SubAgentActivityThreadItemType", | 26781 | title: "SubAgentActivityThreadItemType", |
| 23913 | }), | 26782 | }), |
| 23914 | }).annotate({ title: "SubAgentActivityThreadItem" }), | 26783 | }).annotate({ title: "SubAgentActivityThreadItem" }), |
| 23915 | Schema.Struct({ | 26784 | Schema.Struct({ |
| 23916 | action: Schema.optionalKey( | 26785 | action: Schema.optionalKey( |
| 23917 | Schema.Union([V2ThreadListResponse__WebSearchAction, Schema.Null]), | 26786 | Schema.Union([V2ItemCompletedNotification__WebSearchAction, Schema.Null]), |
| 23918 | ), | 26787 | ), |
| 23919 | id: Schema.String, | 26788 | id: Schema.String, |
| 23920 | query: Schema.String, | 26789 | query: Schema.String, |
| 23921 | results: Schema.optionalKey( | 26790 | results: Schema.optionalKey( |
| 23922 | Schema.Union([ | 26791 | Schema.Union([ |
| 23923 | Schema.Array(Schema.Unknown).annotate({ | 26792 | Schema.Array(Schema.Json.annotate({ expected: "JSON value" })).annotate({ |
| 23924 | description: | 26793 | description: |
| 23925 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", | 26794 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", |
| 23926 | }), | 26795 | }), |
| ... | @@ -23931,13 +26800,17 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( | ... | @@ -23931,13 +26800,17 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 23931 | }).annotate({ title: "WebSearchThreadItem" }), | 26800 | }).annotate({ title: "WebSearchThreadItem" }), |
| 23932 | Schema.Struct({ | 26801 | Schema.Struct({ |
| 23933 | id: Schema.String, | 26802 | id: Schema.String, |
| 23934 | path: V2ThreadListResponse__LegacyAppPathString, | 26803 | path: V2ItemCompletedNotification__LegacyAppPathString, |
| 23935 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), | 26804 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 23936 | }).annotate({ title: "ImageViewThreadItem" }), | 26805 | }).annotate({ title: "ImageViewThreadItem" }), |
| 23937 | Schema.Struct({ | 26806 | Schema.Struct({ |
| 23938 | durationMs: Schema.Number.annotate({ format: "uint64" }) | 26807 | durationMs: Schema.Number.annotate({ format: "uint64" }) |
| 23939 | .check(Schema.isInt()) | 26808 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 23940 | .check(Schema.isGreaterThanOrEqualTo(0)), | 26809 | .check( |
| | 26810 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 26811 | expected: "a value greater than or equal to 0", |
| | 26812 | }), |
| | 26813 | ), |
| 23941 | id: Schema.String, | 26814 | id: Schema.String, |
| 23942 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), | 26815 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), |
| 23943 | }).annotate({ | 26816 | }).annotate({ |
| ... | @@ -23949,7 +26822,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( | ... | @@ -23949,7 +26822,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 23949 | result: Schema.String, | 26822 | result: Schema.String, |
| 23950 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 26823 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 23951 | savedPath: Schema.optionalKey( | 26824 | savedPath: Schema.optionalKey( |
| 23952 | Schema.Union([V2ThreadListResponse__AbsolutePathBuf, Schema.Null]), | 26825 | Schema.Union([V2ItemCompletedNotification__AbsolutePathBuf, Schema.Null]), |
| 23953 | ), | 26826 | ), |
| 23954 | status: Schema.String, | 26827 | status: Schema.String, |
| 23955 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 26828 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| ... | @@ -23976,37 +26849,48 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( | ... | @@ -23976,37 +26849,48 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 23976 | }).annotate({ title: "ContextCompactionThreadItem" }), | 26849 | }).annotate({ title: "ContextCompactionThreadItem" }), |
| 23977 | ], | 26850 | ], |
| 23978 | { mode: "oneOf" }, | 26851 | { mode: "oneOf" }, |
| 23979 | ); | 26852 | ).annotate({ identifier: "V2ItemCompletedNotification__ThreadItem" }); |
| 23980 | | 26853 | |
| 23981 | export type V2ThreadMetadataUpdateResponse__TurnError = { | 26854 | export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry = { |
| 23982 | readonly additionalDetails?: string | null; | 26855 | readonly access: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode; |
| 23983 | readonly codexErrorInfo?: V2ThreadMetadataUpdateResponse__CodexErrorInfo | null; | 26856 | readonly path: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath; |
| 23984 | readonly message: string; | | |
| 23985 | }; | 26857 | }; |
| 23986 | export const V2ThreadMetadataUpdateResponse__TurnError = Schema.Struct({ | 26858 | export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry = |
| 23987 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 26859 | Schema.Struct({ |
| 23988 | codexErrorInfo: Schema.optionalKey( | 26860 | access: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode, |
| 23989 | Schema.Union([V2ThreadMetadataUpdateResponse__CodexErrorInfo, Schema.Null]), | 26861 | path: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath, |
| 23990 | ), | 26862 | }).annotate({ |
| 23991 | message: Schema.String, | 26863 | identifier: "V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry", |
| 23992 | }); | 26864 | }); |
| 23993 | | 26865 | |
| 23994 | export type V2ThreadMetadataUpdateResponse__ThreadItem = | 26866 | export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry = { |
| | 26867 | readonly access: V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode; |
| | 26868 | readonly path: V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath; |
| | 26869 | }; |
| | 26870 | export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry = |
| | 26871 | Schema.Struct({ |
| | 26872 | access: V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode, |
| | 26873 | path: V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath, |
| | 26874 | }).annotate({ |
| | 26875 | identifier: "V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry", |
| | 26876 | }); |
| | 26877 | |
| | 26878 | export type V2ItemStartedNotification__ThreadItem = |
| 23995 | | { | 26879 | | { |
| 23996 | readonly clientId?: string | null; | 26880 | readonly clientId?: string | null; |
| 23997 | readonly content: ReadonlyArray<V2ThreadMetadataUpdateResponse__UserInput>; | 26881 | readonly content: ReadonlyArray<V2ItemStartedNotification__UserInput>; |
| 23998 | readonly id: string; | 26882 | readonly id: string; |
| 23999 | readonly type: "userMessage"; | 26883 | readonly type: "userMessage"; |
| 24000 | } | 26884 | } |
| 24001 | | { | 26885 | | { |
| 24002 | readonly fragments: ReadonlyArray<V2ThreadMetadataUpdateResponse__HookPromptFragment>; | 26886 | readonly fragments: ReadonlyArray<V2ItemStartedNotification__HookPromptFragment>; |
| 24003 | readonly id: string; | 26887 | readonly id: string; |
| 24004 | readonly type: "hookPrompt"; | 26888 | readonly type: "hookPrompt"; |
| 24005 | } | 26889 | } |
| 24006 | | { | 26890 | | { |
| 24007 | readonly id: string; | 26891 | readonly id: string; |
| 24008 | readonly memoryCitation?: V2ThreadMetadataUpdateResponse__MemoryCitation | null; | 26892 | readonly memoryCitation?: V2ItemStartedNotification__MemoryCitation | null; |
| 24009 | readonly phase?: V2ThreadMetadataUpdateResponse__MessagePhase | null; | 26893 | readonly phase?: V2ItemStartedNotification__MessagePhase | null; |
| 24010 | readonly text: string; | 26894 | readonly text: string; |
| 24011 | readonly delivery?: "async" | null; | 26895 | readonly delivery?: "async" | null; |
| 24012 | readonly questions?: ReadonlyArray<{ | 26896 | readonly questions?: ReadonlyArray<{ |
| ... | @@ -24025,87 +26909,76 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem = | ... | @@ -24025,87 +26909,76 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem = |
| 24025 | | { | 26909 | | { |
| 24026 | readonly aggregatedOutput?: string | null; | 26910 | readonly aggregatedOutput?: string | null; |
| 24027 | readonly command: string; | 26911 | readonly command: string; |
| 24028 | readonly commandActions: ReadonlyArray<V2ThreadMetadataUpdateResponse__CommandAction>; | 26912 | readonly commandActions: ReadonlyArray<V2ItemStartedNotification__CommandAction>; |
| 24029 | readonly cwd: string; | 26913 | readonly cwd: V2ItemStartedNotification__LegacyAppPathString; |
| 24030 | readonly durationMs?: number | null; | 26914 | readonly durationMs?: number | null; |
| 24031 | readonly exitCode?: number | null; | 26915 | readonly exitCode?: number | null; |
| 24032 | readonly id: string; | 26916 | readonly id: string; |
| 24033 | readonly processId?: string | null; | 26917 | readonly processId?: string | null; |
| 24034 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; | 26918 | readonly source?: V2ItemStartedNotification__CommandExecutionSource; |
| 24035 | readonly status: V2ThreadMetadataUpdateResponse__CommandExecutionStatus; | 26919 | readonly status: V2ItemStartedNotification__CommandExecutionStatus; |
| 24036 | readonly type: "commandExecution"; | 26920 | readonly type: "commandExecution"; |
| 24037 | } | 26921 | } |
| 24038 | | { | 26922 | | { |
| 24039 | readonly changes: ReadonlyArray<V2ThreadMetadataUpdateResponse__FileUpdateChange>; | 26923 | readonly changes: ReadonlyArray<V2ItemStartedNotification__FileUpdateChange>; |
| 24040 | readonly id: string; | 26924 | readonly id: string; |
| 24041 | readonly status: V2ThreadMetadataUpdateResponse__PatchApplyStatus; | 26925 | readonly status: V2ItemStartedNotification__PatchApplyStatus; |
| 24042 | readonly type: "fileChange"; | 26926 | readonly type: "fileChange"; |
| 24043 | } | 26927 | } |
| 24044 | | { | 26928 | | { |
| 24045 | readonly appContext?: V2ThreadMetadataUpdateResponse__McpToolCallAppContext | null; | 26929 | readonly appContext?: V2ItemStartedNotification__McpToolCallAppContext | null; |
| 24046 | readonly arguments: unknown; | 26930 | readonly arguments: Schema.Json; |
| 24047 | readonly durationMs?: number | null; | 26931 | readonly durationMs?: number | null; |
| 24048 | readonly error?: V2ThreadMetadataUpdateResponse__McpToolCallError | null; | 26932 | readonly error?: V2ItemStartedNotification__McpToolCallError | null; |
| 24049 | readonly id: string; | 26933 | readonly id: string; |
| 24050 | readonly mcpAppResourceUri?: string | null; | 26934 | readonly mcpAppResourceUri?: string | null; |
| 24051 | readonly pluginId?: string | null; | 26935 | readonly pluginId?: string | null; |
| 24052 | readonly result?: V2ThreadMetadataUpdateResponse__McpToolCallResult | null; | 26936 | readonly result?: V2ItemStartedNotification__McpToolCallResult | null; |
| 24053 | readonly server: string; | 26937 | readonly server: string; |
| 24054 | readonly status: V2ThreadMetadataUpdateResponse__McpToolCallStatus; | 26938 | readonly status: V2ItemStartedNotification__McpToolCallStatus; |
| 24055 | readonly tool: string; | 26939 | readonly tool: string; |
| 24056 | readonly type: "mcpToolCall"; | 26940 | readonly type: "mcpToolCall"; |
| 24057 | } | 26941 | } |
| 24058 | | { | 26942 | | { |
| 24059 | readonly arguments: unknown; | 26943 | readonly arguments: Schema.Json; |
| 24060 | readonly contentItems?: ReadonlyArray<V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem> | null; | 26944 | readonly contentItems?: ReadonlyArray<V2ItemStartedNotification__DynamicToolCallOutputContentItem> | null; |
| 24061 | readonly durationMs?: number | null; | 26945 | readonly durationMs?: number | null; |
| 24062 | readonly id: string; | 26946 | readonly id: string; |
| 24063 | readonly namespace?: string | null; | 26947 | readonly namespace?: string | null; |
| 24064 | readonly status: V2ThreadMetadataUpdateResponse__DynamicToolCallStatus; | 26948 | readonly status: V2ItemStartedNotification__DynamicToolCallStatus; |
| 24065 | readonly success?: boolean | null; | 26949 | readonly success?: boolean | null; |
| 24066 | readonly tool: string; | 26950 | readonly tool: string; |
| 24067 | readonly type: "dynamicToolCall"; | 26951 | readonly type: "dynamicToolCall"; |
| 24068 | } | 26952 | } |
| 24069 | | { | 26953 | | { |
| 24070 | readonly agentsStates: { | 26954 | readonly agentsStates: { readonly [x: string]: V2ItemStartedNotification__CollabAgentState }; |
| 24071 | readonly [x: string]: V2ThreadMetadataUpdateResponse__CollabAgentState; | | |
| 24072 | }; | | |
| 24073 | readonly id: string; | 26955 | readonly id: string; |
| 24074 | readonly model?: string | null; | 26956 | readonly model?: string | null; |
| 24075 | readonly prompt?: string | null; | 26957 | readonly prompt?: string | null; |
| 24076 | readonly reasoningEffort?: V2ThreadMetadataUpdateResponse__ReasoningEffort | null; | 26958 | readonly reasoningEffort?: V2ItemStartedNotification__ReasoningEffort | null; |
| 24077 | readonly receiverThreadIds: ReadonlyArray<string>; | 26959 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 24078 | readonly senderThreadId: string; | 26960 | readonly senderThreadId: string; |
| 24079 | readonly status: "inProgress" | "completed" | "failed" | "interrupted"; | 26961 | readonly status: V2ItemStartedNotification__CollabAgentToolCallStatus; |
| 24080 | readonly tool: | 26962 | readonly tool: V2ItemStartedNotification__CollabAgentTool; |
| 24081 | | "spawnAgent" | | |
| 24082 | | "sendInput" | | |
| 24083 | | "resumeAgent" | | |
| 24084 | | "wait" | | |
| 24085 | | "closeAgent" | | |
| 24086 | | "sendMessage" | | |
| 24087 | | "followupTask" | | |
| 24088 | | "interruptAgent" | | |
| 24089 | | "listAgents"; | | |
| 24090 | readonly type: "collabAgentToolCall"; | 26963 | readonly type: "collabAgentToolCall"; |
| 24091 | } | 26964 | } |
| 24092 | | { | 26965 | | { |
| 24093 | readonly agentPath: string; | 26966 | readonly agentPath: string; |
| 24094 | readonly agentThreadId: string; | 26967 | readonly agentThreadId: string; |
| 24095 | readonly id: string; | 26968 | readonly id: string; |
| 24096 | readonly kind: V2ThreadMetadataUpdateResponse__SubAgentActivityKind; | 26969 | readonly kind: V2ItemStartedNotification__SubAgentActivityKind; |
| 24097 | readonly type: "subAgentActivity"; | 26970 | readonly type: "subAgentActivity"; |
| 24098 | } | 26971 | } |
| 24099 | | { | 26972 | | { |
| 24100 | readonly action?: V2ThreadMetadataUpdateResponse__WebSearchAction | null; | 26973 | readonly action?: V2ItemStartedNotification__WebSearchAction | null; |
| 24101 | readonly id: string; | 26974 | readonly id: string; |
| 24102 | readonly query: string; | 26975 | readonly query: string; |
| 24103 | readonly results?: ReadonlyArray<unknown> | null; | 26976 | readonly results?: ReadonlyArray<Schema.Json> | null; |
| 24104 | readonly type: "webSearch"; | 26977 | readonly type: "webSearch"; |
| 24105 | } | 26978 | } |
| 24106 | | { | 26979 | | { |
| 24107 | readonly id: string; | 26980 | readonly id: string; |
| 24108 | readonly path: V2ThreadMetadataUpdateResponse__LegacyAppPathString; | 26981 | readonly path: V2ItemStartedNotification__LegacyAppPathString; |
| 24109 | readonly type: "imageView"; | 26982 | readonly type: "imageView"; |
| 24110 | } | 26983 | } |
| 24111 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | 26984 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| ... | @@ -24113,33 +26986,33 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem = | ... | @@ -24113,33 +26986,33 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem = |
| 24113 | readonly id: string; | 26986 | readonly id: string; |
| 24114 | readonly result: string; | 26987 | readonly result: string; |
| 24115 | readonly revisedPrompt?: string | null; | 26988 | readonly revisedPrompt?: string | null; |
| 24116 | readonly savedPath?: V2ThreadMetadataUpdateResponse__AbsolutePathBuf | null; | 26989 | readonly savedPath?: V2ItemStartedNotification__AbsolutePathBuf | null; |
| 24117 | readonly status: string; | 26990 | readonly status: string; |
| 24118 | readonly type: "imageGeneration"; | 26991 | readonly type: "imageGeneration"; |
| 24119 | } | 26992 | } |
| 24120 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 26993 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 24121 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } | 26994 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 24122 | | { readonly id: string; readonly type: "contextCompaction" }; | 26995 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 24123 | export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( | 26996 | export const V2ItemStartedNotification__ThreadItem = Schema.Union( |
| 24124 | [ | 26997 | [ |
| 24125 | Schema.Struct({ | 26998 | Schema.Struct({ |
| 24126 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 26999 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24127 | content: Schema.Array(V2ThreadMetadataUpdateResponse__UserInput), | 27000 | content: Schema.Array(V2ItemStartedNotification__UserInput), |
| 24128 | id: Schema.String, | 27001 | id: Schema.String, |
| 24129 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), | 27002 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 24130 | }).annotate({ title: "UserMessageThreadItem" }), | 27003 | }).annotate({ title: "UserMessageThreadItem" }), |
| 24131 | Schema.Struct({ | 27004 | Schema.Struct({ |
| 24132 | fragments: Schema.Array(V2ThreadMetadataUpdateResponse__HookPromptFragment), | 27005 | fragments: Schema.Array(V2ItemStartedNotification__HookPromptFragment), |
| 24133 | id: Schema.String, | 27006 | id: Schema.String, |
| 24134 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | 27007 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 24135 | }).annotate({ title: "HookPromptThreadItem" }), | 27008 | }).annotate({ title: "HookPromptThreadItem" }), |
| 24136 | Schema.Struct({ | 27009 | Schema.Struct({ |
| 24137 | id: Schema.String, | 27010 | id: Schema.String, |
| 24138 | memoryCitation: Schema.optionalKey( | 27011 | memoryCitation: Schema.optionalKey( |
| 24139 | Schema.Union([V2ThreadMetadataUpdateResponse__MemoryCitation, Schema.Null]), | 27012 | Schema.Union([V2ItemStartedNotification__MemoryCitation, Schema.Null]), |
| 24140 | ), | 27013 | ), |
| 24141 | phase: Schema.optionalKey( | 27014 | phase: Schema.optionalKey( |
| 24142 | Schema.Union([V2ThreadMetadataUpdateResponse__MessagePhase, Schema.Null]), | 27015 | Schema.Union([V2ItemStartedNotification__MessagePhase, Schema.Null]), |
| 24143 | ), | 27016 | ), |
| 24144 | text: Schema.String, | 27017 | text: Schema.String, |
| 24145 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | 27018 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), |
| ... | @@ -24181,17 +27054,20 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( | ... | @@ -24181,17 +27054,20 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 24181 | ]), | 27054 | ]), |
| 24182 | ), | 27055 | ), |
| 24183 | command: Schema.String.annotate({ description: "The command to be executed." }), | 27056 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 24184 | commandActions: Schema.Array(V2ThreadMetadataUpdateResponse__CommandAction).annotate({ | 27057 | commandActions: Schema.Array(V2ItemStartedNotification__CommandAction).annotate({ |
| 24185 | description: | 27058 | description: |
| 24186 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", | 27059 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 24187 | }), | 27060 | }), |
| 24188 | cwd: Schema.String.annotate({ description: "The command's working directory." }), | 27061 | cwd: Schema.suspend( |
| | 27062 | (): Schema.Codec<V2ItemStartedNotification__LegacyAppPathString> => |
| | 27063 | V2ItemStartedNotification__LegacyAppPathString, |
| | 27064 | ).annotate({ description: "The command's working directory." }), |
| 24189 | durationMs: Schema.optionalKey( | 27065 | durationMs: Schema.optionalKey( |
| 24190 | Schema.Union([ | 27066 | Schema.Union([ |
| 24191 | Schema.Number.annotate({ | 27067 | Schema.Number.annotate({ |
| 24192 | description: "The duration of the command execution in milliseconds.", | 27068 | description: "The duration of the command execution in milliseconds.", |
| 24193 | format: "int64", | 27069 | format: "int64", |
| 24194 | }).check(Schema.isInt()), | 27070 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 24195 | Schema.Null, | 27071 | Schema.Null, |
| 24196 | ]), | 27072 | ]), |
| 24197 | ), | 27073 | ), |
| ... | @@ -24200,7 +27076,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( | ... | @@ -24200,7 +27076,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 24200 | Schema.Number.annotate({ | 27076 | Schema.Number.annotate({ |
| 24201 | description: "The command's exit code.", | 27077 | description: "The command's exit code.", |
| 24202 | format: "int32", | 27078 | format: "int32", |
| 24203 | }).check(Schema.isInt()), | 27079 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 24204 | Schema.Null, | 27080 | Schema.Null, |
| 24205 | ]), | 27081 | ]), |
| 24206 | ), | 27082 | ), |
| ... | @@ -24214,40 +27090,38 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( | ... | @@ -24214,40 +27090,38 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 24214 | ]), | 27090 | ]), |
| 24215 | ), | 27091 | ), |
| 24216 | source: Schema.optionalKey( | 27092 | source: Schema.optionalKey( |
| 24217 | Schema.Literals([ | 27093 | Schema.suspend( |
| 24218 | "agent", | 27094 | (): Schema.Codec<V2ItemStartedNotification__CommandExecutionSource> => |
| 24219 | "userShell", | 27095 | V2ItemStartedNotification__CommandExecutionSource, |
| 24220 | "unifiedExecStartup", | 27096 | ).annotate({ default: "agent" }), |
| 24221 | "unifiedExecInteraction", | | |
| 24222 | ]).annotate({ default: "agent" }), | | |
| 24223 | ), | 27097 | ), |
| 24224 | status: V2ThreadMetadataUpdateResponse__CommandExecutionStatus, | 27098 | status: V2ItemStartedNotification__CommandExecutionStatus, |
| 24225 | type: Schema.Literal("commandExecution").annotate({ | 27099 | type: Schema.Literal("commandExecution").annotate({ |
| 24226 | title: "CommandExecutionThreadItemType", | 27100 | title: "CommandExecutionThreadItemType", |
| 24227 | }), | 27101 | }), |
| 24228 | }).annotate({ title: "CommandExecutionThreadItem" }), | 27102 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 24229 | Schema.Struct({ | 27103 | Schema.Struct({ |
| 24230 | changes: Schema.Array(V2ThreadMetadataUpdateResponse__FileUpdateChange), | 27104 | changes: Schema.Array(V2ItemStartedNotification__FileUpdateChange), |
| 24231 | id: Schema.String, | 27105 | id: Schema.String, |
| 24232 | status: V2ThreadMetadataUpdateResponse__PatchApplyStatus, | 27106 | status: V2ItemStartedNotification__PatchApplyStatus, |
| 24233 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), | 27107 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 24234 | }).annotate({ title: "FileChangeThreadItem" }), | 27108 | }).annotate({ title: "FileChangeThreadItem" }), |
| 24235 | Schema.Struct({ | 27109 | Schema.Struct({ |
| 24236 | appContext: Schema.optionalKey( | 27110 | appContext: Schema.optionalKey( |
| 24237 | Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallAppContext, Schema.Null]), | 27111 | Schema.Union([V2ItemStartedNotification__McpToolCallAppContext, Schema.Null]), |
| 24238 | ), | 27112 | ), |
| 24239 | arguments: Schema.Unknown, | 27113 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 24240 | durationMs: Schema.optionalKey( | 27114 | durationMs: Schema.optionalKey( |
| 24241 | Schema.Union([ | 27115 | Schema.Union([ |
| 24242 | Schema.Number.annotate({ | 27116 | Schema.Number.annotate({ |
| 24243 | description: "The duration of the MCP tool call in milliseconds.", | 27117 | description: "The duration of the MCP tool call in milliseconds.", |
| 24244 | format: "int64", | 27118 | format: "int64", |
| 24245 | }).check(Schema.isInt()), | 27119 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 24246 | Schema.Null, | 27120 | Schema.Null, |
| 24247 | ]), | 27121 | ]), |
| 24248 | ), | 27122 | ), |
| 24249 | error: Schema.optionalKey( | 27123 | error: Schema.optionalKey( |
| 24250 | Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallError, Schema.Null]), | 27124 | Schema.Union([V2ItemStartedNotification__McpToolCallError, Schema.Null]), |
| 24251 | ), | 27125 | ), |
| 24252 | id: Schema.String, | 27126 | id: Schema.String, |
| 24253 | mcpAppResourceUri: Schema.optionalKey( | 27127 | mcpAppResourceUri: Schema.optionalKey( |
| ... | @@ -24260,18 +27134,18 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( | ... | @@ -24260,18 +27134,18 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 24260 | ), | 27134 | ), |
| 24261 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 27135 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24262 | result: Schema.optionalKey( | 27136 | result: Schema.optionalKey( |
| 24263 | Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallResult, Schema.Null]), | 27137 | Schema.Union([V2ItemStartedNotification__McpToolCallResult, Schema.Null]), |
| 24264 | ), | 27138 | ), |
| 24265 | server: Schema.String, | 27139 | server: Schema.String, |
| 24266 | status: V2ThreadMetadataUpdateResponse__McpToolCallStatus, | 27140 | status: V2ItemStartedNotification__McpToolCallStatus, |
| 24267 | tool: Schema.String, | 27141 | tool: Schema.String, |
| 24268 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), | 27142 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 24269 | }).annotate({ title: "McpToolCallThreadItem" }), | 27143 | }).annotate({ title: "McpToolCallThreadItem" }), |
| 24270 | Schema.Struct({ | 27144 | Schema.Struct({ |
| 24271 | arguments: Schema.Unknown, | 27145 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 24272 | contentItems: Schema.optionalKey( | 27146 | contentItems: Schema.optionalKey( |
| 24273 | Schema.Union([ | 27147 | Schema.Union([ |
| 24274 | Schema.Array(V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem), | 27148 | Schema.Array(V2ItemStartedNotification__DynamicToolCallOutputContentItem), |
| 24275 | Schema.Null, | 27149 | Schema.Null, |
| 24276 | ]), | 27150 | ]), |
| 24277 | ), | 27151 | ), |
| ... | @@ -24280,13 +27154,13 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( | ... | @@ -24280,13 +27154,13 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 24280 | Schema.Number.annotate({ | 27154 | Schema.Number.annotate({ |
| 24281 | description: "The duration of the dynamic tool call in milliseconds.", | 27155 | description: "The duration of the dynamic tool call in milliseconds.", |
| 24282 | format: "int64", | 27156 | format: "int64", |
| 24283 | }).check(Schema.isInt()), | 27157 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 24284 | Schema.Null, | 27158 | Schema.Null, |
| 24285 | ]), | 27159 | ]), |
| 24286 | ), | 27160 | ), |
| 24287 | id: Schema.String, | 27161 | id: Schema.String, |
| 24288 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 27162 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24289 | status: V2ThreadMetadataUpdateResponse__DynamicToolCallStatus, | 27163 | status: V2ItemStartedNotification__DynamicToolCallStatus, |
| 24290 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 27164 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 24291 | tool: Schema.String, | 27165 | tool: Schema.String, |
| 24292 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), | 27166 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| ... | @@ -24294,7 +27168,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( | ... | @@ -24294,7 +27168,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 24294 | Schema.Struct({ | 27168 | Schema.Struct({ |
| 24295 | agentsStates: Schema.Record( | 27169 | agentsStates: Schema.Record( |
| 24296 | Schema.String, | 27170 | Schema.String, |
| 24297 | V2ThreadMetadataUpdateResponse__CollabAgentState, | 27171 | V2ItemStartedNotification__CollabAgentState, |
| 24298 | ).annotate({ description: "Last known status of the target agents, when available." }), | 27172 | ).annotate({ description: "Last known status of the target agents, when available." }), |
| 24299 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), | 27173 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 24300 | model: Schema.optionalKey( | 27174 | model: Schema.optionalKey( |
| ... | @@ -24314,7 +27188,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( | ... | @@ -24314,7 +27188,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 24314 | ]), | 27188 | ]), |
| 24315 | ), | 27189 | ), |
| 24316 | reasoningEffort: Schema.optionalKey( | 27190 | reasoningEffort: Schema.optionalKey( |
| 24317 | Schema.Union([V2ThreadMetadataUpdateResponse__ReasoningEffort, Schema.Null]).annotate({ | 27191 | Schema.Union([V2ItemStartedNotification__ReasoningEffort, Schema.Null]).annotate({ |
| 24318 | description: "Reasoning effort requested for the spawned agent, when applicable.", | 27192 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 24319 | }), | 27193 | }), |
| 24320 | ), | 27194 | ), |
| ... | @@ -24325,20 +27199,14 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( | ... | @@ -24325,20 +27199,14 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 24325 | senderThreadId: Schema.String.annotate({ | 27199 | senderThreadId: Schema.String.annotate({ |
| 24326 | description: "Thread ID of the agent issuing the collab request.", | 27200 | description: "Thread ID of the agent issuing the collab request.", |
| 24327 | }), | 27201 | }), |
| 24328 | status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({ | 27202 | status: Schema.suspend( |
| 24329 | description: "Current status of the collab tool call.", | 27203 | (): Schema.Codec<V2ItemStartedNotification__CollabAgentToolCallStatus> => |
| 24330 | }), | 27204 | V2ItemStartedNotification__CollabAgentToolCallStatus, |
| 24331 | tool: Schema.Literals([ | 27205 | ).annotate({ description: "Current status of the collab tool call." }), |
| 24332 | "spawnAgent", | 27206 | tool: Schema.suspend( |
| 24333 | "sendInput", | 27207 | (): Schema.Codec<V2ItemStartedNotification__CollabAgentTool> => |
| 24334 | "resumeAgent", | 27208 | V2ItemStartedNotification__CollabAgentTool, |
| 24335 | "wait", | 27209 | ).annotate({ description: "Name of the collab tool that was invoked." }), |
| 24336 | "closeAgent", | | |
| 24337 | "sendMessage", | | |
| 24338 | "followupTask", | | |
| 24339 | "interruptAgent", | | |
| 24340 | "listAgents", | | |
| 24341 | ]).annotate({ description: "Name of the collab tool that was invoked." }), | | |
| 24342 | type: Schema.Literal("collabAgentToolCall").annotate({ | 27210 | type: Schema.Literal("collabAgentToolCall").annotate({ |
| 24343 | title: "CollabAgentToolCallThreadItemType", | 27211 | title: "CollabAgentToolCallThreadItemType", |
| 24344 | }), | 27212 | }), |
| ... | @@ -24347,20 +27215,20 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( | ... | @@ -24347,20 +27215,20 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 24347 | agentPath: Schema.String, | 27215 | agentPath: Schema.String, |
| 24348 | agentThreadId: Schema.String, | 27216 | agentThreadId: Schema.String, |
| 24349 | id: Schema.String, | 27217 | id: Schema.String, |
| 24350 | kind: V2ThreadMetadataUpdateResponse__SubAgentActivityKind, | 27218 | kind: V2ItemStartedNotification__SubAgentActivityKind, |
| 24351 | type: Schema.Literal("subAgentActivity").annotate({ | 27219 | type: Schema.Literal("subAgentActivity").annotate({ |
| 24352 | title: "SubAgentActivityThreadItemType", | 27220 | title: "SubAgentActivityThreadItemType", |
| 24353 | }), | 27221 | }), |
| 24354 | }).annotate({ title: "SubAgentActivityThreadItem" }), | 27222 | }).annotate({ title: "SubAgentActivityThreadItem" }), |
| 24355 | Schema.Struct({ | 27223 | Schema.Struct({ |
| 24356 | action: Schema.optionalKey( | 27224 | action: Schema.optionalKey( |
| 24357 | Schema.Union([V2ThreadMetadataUpdateResponse__WebSearchAction, Schema.Null]), | 27225 | Schema.Union([V2ItemStartedNotification__WebSearchAction, Schema.Null]), |
| 24358 | ), | 27226 | ), |
| 24359 | id: Schema.String, | 27227 | id: Schema.String, |
| 24360 | query: Schema.String, | 27228 | query: Schema.String, |
| 24361 | results: Schema.optionalKey( | 27229 | results: Schema.optionalKey( |
| 24362 | Schema.Union([ | 27230 | Schema.Union([ |
| 24363 | Schema.Array(Schema.Unknown).annotate({ | 27231 | Schema.Array(Schema.Json.annotate({ expected: "JSON value" })).annotate({ |
| 24364 | description: | 27232 | description: |
| 24365 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", | 27233 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", |
| 24366 | }), | 27234 | }), |
| ... | @@ -24371,13 +27239,17 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( | ... | @@ -24371,13 +27239,17 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 24371 | }).annotate({ title: "WebSearchThreadItem" }), | 27239 | }).annotate({ title: "WebSearchThreadItem" }), |
| 24372 | Schema.Struct({ | 27240 | Schema.Struct({ |
| 24373 | id: Schema.String, | 27241 | id: Schema.String, |
| 24374 | path: V2ThreadMetadataUpdateResponse__LegacyAppPathString, | 27242 | path: V2ItemStartedNotification__LegacyAppPathString, |
| 24375 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), | 27243 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 24376 | }).annotate({ title: "ImageViewThreadItem" }), | 27244 | }).annotate({ title: "ImageViewThreadItem" }), |
| 24377 | Schema.Struct({ | 27245 | Schema.Struct({ |
| 24378 | durationMs: Schema.Number.annotate({ format: "uint64" }) | 27246 | durationMs: Schema.Number.annotate({ format: "uint64" }) |
| 24379 | .check(Schema.isInt()) | 27247 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 24380 | .check(Schema.isGreaterThanOrEqualTo(0)), | 27248 | .check( |
| | 27249 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 27250 | expected: "a value greater than or equal to 0", |
| | 27251 | }), |
| | 27252 | ), |
| 24381 | id: Schema.String, | 27253 | id: Schema.String, |
| 24382 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), | 27254 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), |
| 24383 | }).annotate({ | 27255 | }).annotate({ |
| ... | @@ -24389,7 +27261,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( | ... | @@ -24389,7 +27261,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 24389 | result: Schema.String, | 27261 | result: Schema.String, |
| 24390 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 27262 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24391 | savedPath: Schema.optionalKey( | 27263 | savedPath: Schema.optionalKey( |
| 24392 | Schema.Union([V2ThreadMetadataUpdateResponse__AbsolutePathBuf, Schema.Null]), | 27264 | Schema.Union([V2ItemStartedNotification__AbsolutePathBuf, Schema.Null]), |
| 24393 | ), | 27265 | ), |
| 24394 | status: Schema.String, | 27266 | status: Schema.String, |
| 24395 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 27267 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| ... | @@ -24416,480 +27288,657 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( | ... | @@ -24416,480 +27288,657 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 24416 | }).annotate({ title: "ContextCompactionThreadItem" }), | 27288 | }).annotate({ title: "ContextCompactionThreadItem" }), |
| 24417 | ], | 27289 | ], |
| 24418 | { mode: "oneOf" }, | 27290 | { mode: "oneOf" }, |
| 24419 | ); | 27291 | ).annotate({ identifier: "V2ItemStartedNotification__ThreadItem" }); |
| 24420 | | 27292 | |
| 24421 | export type V2ThreadReadResponse__TurnError = { | 27293 | export type V2PluginInstalledResponse__PluginSummary = { |
| 24422 | readonly additionalDetails?: string | null; | 27294 | readonly authPolicy: V2PluginInstalledResponse__PluginAuthPolicy; |
| 24423 | readonly codexErrorInfo?: V2ThreadReadResponse__CodexErrorInfo | null; | 27295 | readonly availability?: V2PluginInstalledResponse__PluginAvailability; |
| 24424 | readonly message: string; | 27296 | readonly enabled: boolean; |
| | 27297 | readonly id: string; |
| | 27298 | readonly installPolicy: V2PluginInstalledResponse__PluginInstallPolicy; |
| | 27299 | readonly installPolicySource?: V2PluginInstalledResponse__PluginInstallPolicySource | null; |
| | 27300 | readonly installed: boolean; |
| | 27301 | readonly interface?: V2PluginInstalledResponse__PluginInterface | null; |
| | 27302 | readonly keywords?: ReadonlyArray<string>; |
| | 27303 | readonly localVersion?: string | null; |
| | 27304 | readonly mustShowInstallationInterstitial?: boolean | null; |
| | 27305 | readonly name: string; |
| | 27306 | readonly remotePluginId?: string | null; |
| | 27307 | readonly shareContext?: V2PluginInstalledResponse__PluginShareContext | null; |
| | 27308 | readonly source: V2PluginInstalledResponse__PluginSource; |
| | 27309 | readonly version?: string | null; |
| 24425 | }; | 27310 | }; |
| 24426 | export const V2ThreadReadResponse__TurnError = Schema.Struct({ | 27311 | export const V2PluginInstalledResponse__PluginSummary = Schema.Struct({ |
| 24427 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 27312 | authPolicy: V2PluginInstalledResponse__PluginAuthPolicy, |
| 24428 | codexErrorInfo: Schema.optionalKey( | 27313 | availability: Schema.optionalKey( |
| 24429 | Schema.Union([V2ThreadReadResponse__CodexErrorInfo, Schema.Null]), | 27314 | Schema.suspend( |
| | 27315 | (): Schema.Codec<V2PluginInstalledResponse__PluginAvailability> => |
| | 27316 | V2PluginInstalledResponse__PluginAvailability, |
| | 27317 | ).annotate({ |
| | 27318 | description: "Availability state for installing and using the plugin.", |
| | 27319 | default: "AVAILABLE", |
| | 27320 | }), |
| 24430 | ), | 27321 | ), |
| 24431 | message: Schema.String, | 27322 | enabled: Schema.Boolean, |
| 24432 | }); | 27323 | id: Schema.String, |
| 24433 | | 27324 | installPolicy: V2PluginInstalledResponse__PluginInstallPolicy, |
| 24434 | export type V2ThreadReadResponse__ThreadItem = | 27325 | installPolicySource: Schema.optionalKey( |
| 24435 | | { | 27326 | Schema.Union([V2PluginInstalledResponse__PluginInstallPolicySource, Schema.Null]), |
| 24436 | readonly clientId?: string | null; | 27327 | ), |
| 24437 | readonly content: ReadonlyArray<V2ThreadReadResponse__UserInput>; | 27328 | installed: Schema.Boolean, |
| 24438 | readonly id: string; | 27329 | interface: Schema.optionalKey( |
| 24439 | readonly type: "userMessage"; | 27330 | Schema.Union([V2PluginInstalledResponse__PluginInterface, Schema.Null]), |
| 24440 | } | 27331 | ), |
| 24441 | | { | 27332 | keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| 24442 | readonly fragments: ReadonlyArray<V2ThreadReadResponse__HookPromptFragment>; | 27333 | localVersion: Schema.optionalKey( |
| 24443 | readonly id: string; | 27334 | Schema.Union([ |
| 24444 | readonly type: "hookPrompt"; | 27335 | Schema.String.annotate({ |
| 24445 | } | 27336 | description: "Version of the locally materialized plugin package when available.", |
| 24446 | | { | 27337 | }), |
| 24447 | readonly id: string; | 27338 | Schema.Null, |
| 24448 | readonly memoryCitation?: V2ThreadReadResponse__MemoryCitation | null; | 27339 | ]), |
| 24449 | readonly phase?: V2ThreadReadResponse__MessagePhase | null; | 27340 | ), |
| 24450 | readonly text: string; | 27341 | mustShowInstallationInterstitial: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 24451 | readonly delivery?: "async" | null; | 27342 | name: Schema.String, |
| 24452 | readonly questions?: ReadonlyArray<{ | 27343 | remotePluginId: Schema.optionalKey( |
| 24453 | readonly title: string; | 27344 | Schema.Union([ |
| 24454 | readonly options?: ReadonlyArray<string> | null; | 27345 | Schema.String.annotate({ description: "Backend remote plugin identifier when available." }), |
| 24455 | }> | null; | 27346 | Schema.Null, |
| 24456 | readonly type: "agentMessage"; | 27347 | ]), |
| | 27348 | ), |
| | 27349 | shareContext: Schema.optionalKey( |
| | 27350 | Schema.Union([V2PluginInstalledResponse__PluginShareContext, Schema.Null]).annotate({ |
| | 27351 | description: "Remote sharing context associated with this plugin when available.", |
| | 27352 | }), |
| | 27353 | ), |
| | 27354 | source: V2PluginInstalledResponse__PluginSource, |
| | 27355 | version: Schema.optionalKey( |
| | 27356 | Schema.Union([ |
| | 27357 | Schema.String.annotate({ |
| | 27358 | description: "Version advertised by the remote marketplace backend when available.", |
| | 27359 | }), |
| | 27360 | Schema.Null, |
| | 27361 | ]), |
| | 27362 | ), |
| | 27363 | }).annotate({ identifier: "V2PluginInstalledResponse__PluginSummary" }); |
| | 27364 | |
| | 27365 | export type V2PluginListResponse__PluginSummary = { |
| | 27366 | readonly authPolicy: V2PluginListResponse__PluginAuthPolicy; |
| | 27367 | readonly availability?: V2PluginListResponse__PluginAvailability; |
| | 27368 | readonly enabled: boolean; |
| | 27369 | readonly id: string; |
| | 27370 | readonly installPolicy: V2PluginListResponse__PluginInstallPolicy; |
| | 27371 | readonly installPolicySource?: V2PluginListResponse__PluginInstallPolicySource | null; |
| | 27372 | readonly installed: boolean; |
| | 27373 | readonly interface?: V2PluginListResponse__PluginInterface | null; |
| | 27374 | readonly keywords?: ReadonlyArray<string>; |
| | 27375 | readonly localVersion?: string | null; |
| | 27376 | readonly mustShowInstallationInterstitial?: boolean | null; |
| | 27377 | readonly name: string; |
| | 27378 | readonly remotePluginId?: string | null; |
| | 27379 | readonly shareContext?: V2PluginListResponse__PluginShareContext | null; |
| | 27380 | readonly source: V2PluginListResponse__PluginSource; |
| | 27381 | readonly version?: string | null; |
| | 27382 | }; |
| | 27383 | export const V2PluginListResponse__PluginSummary = Schema.Struct({ |
| | 27384 | authPolicy: V2PluginListResponse__PluginAuthPolicy, |
| | 27385 | availability: Schema.optionalKey( |
| | 27386 | Schema.suspend( |
| | 27387 | (): Schema.Codec<V2PluginListResponse__PluginAvailability> => |
| | 27388 | V2PluginListResponse__PluginAvailability, |
| | 27389 | ).annotate({ |
| | 27390 | description: "Availability state for installing and using the plugin.", |
| | 27391 | default: "AVAILABLE", |
| | 27392 | }), |
| | 27393 | ), |
| | 27394 | enabled: Schema.Boolean, |
| | 27395 | id: Schema.String, |
| | 27396 | installPolicy: V2PluginListResponse__PluginInstallPolicy, |
| | 27397 | installPolicySource: Schema.optionalKey( |
| | 27398 | Schema.Union([V2PluginListResponse__PluginInstallPolicySource, Schema.Null]), |
| | 27399 | ), |
| | 27400 | installed: Schema.Boolean, |
| | 27401 | interface: Schema.optionalKey(Schema.Union([V2PluginListResponse__PluginInterface, Schema.Null])), |
| | 27402 | keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| | 27403 | localVersion: Schema.optionalKey( |
| | 27404 | Schema.Union([ |
| | 27405 | Schema.String.annotate({ |
| | 27406 | description: "Version of the locally materialized plugin package when available.", |
| | 27407 | }), |
| | 27408 | Schema.Null, |
| | 27409 | ]), |
| | 27410 | ), |
| | 27411 | mustShowInstallationInterstitial: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 27412 | name: Schema.String, |
| | 27413 | remotePluginId: Schema.optionalKey( |
| | 27414 | Schema.Union([ |
| | 27415 | Schema.String.annotate({ description: "Backend remote plugin identifier when available." }), |
| | 27416 | Schema.Null, |
| | 27417 | ]), |
| | 27418 | ), |
| | 27419 | shareContext: Schema.optionalKey( |
| | 27420 | Schema.Union([V2PluginListResponse__PluginShareContext, Schema.Null]).annotate({ |
| | 27421 | description: "Remote sharing context associated with this plugin when available.", |
| | 27422 | }), |
| | 27423 | ), |
| | 27424 | source: V2PluginListResponse__PluginSource, |
| | 27425 | version: Schema.optionalKey( |
| | 27426 | Schema.Union([ |
| | 27427 | Schema.String.annotate({ |
| | 27428 | description: "Version advertised by the remote marketplace backend when available.", |
| | 27429 | }), |
| | 27430 | Schema.Null, |
| | 27431 | ]), |
| | 27432 | ), |
| | 27433 | }).annotate({ identifier: "V2PluginListResponse__PluginSummary" }); |
| | 27434 | |
| | 27435 | export type V2PluginReadResponse__PluginSummary = { |
| | 27436 | readonly authPolicy: V2PluginReadResponse__PluginAuthPolicy; |
| | 27437 | readonly availability?: V2PluginReadResponse__PluginAvailability; |
| | 27438 | readonly enabled: boolean; |
| | 27439 | readonly id: string; |
| | 27440 | readonly installPolicy: V2PluginReadResponse__PluginInstallPolicy; |
| | 27441 | readonly installPolicySource?: V2PluginReadResponse__PluginInstallPolicySource | null; |
| | 27442 | readonly installed: boolean; |
| | 27443 | readonly interface?: V2PluginReadResponse__PluginInterface | null; |
| | 27444 | readonly keywords?: ReadonlyArray<string>; |
| | 27445 | readonly localVersion?: string | null; |
| | 27446 | readonly mustShowInstallationInterstitial?: boolean | null; |
| | 27447 | readonly name: string; |
| | 27448 | readonly remotePluginId?: string | null; |
| | 27449 | readonly shareContext?: V2PluginReadResponse__PluginShareContext | null; |
| | 27450 | readonly source: V2PluginReadResponse__PluginSource; |
| | 27451 | readonly version?: string | null; |
| | 27452 | }; |
| | 27453 | export const V2PluginReadResponse__PluginSummary = Schema.Struct({ |
| | 27454 | authPolicy: V2PluginReadResponse__PluginAuthPolicy, |
| | 27455 | availability: Schema.optionalKey( |
| | 27456 | Schema.suspend( |
| | 27457 | (): Schema.Codec<V2PluginReadResponse__PluginAvailability> => |
| | 27458 | V2PluginReadResponse__PluginAvailability, |
| | 27459 | ).annotate({ |
| | 27460 | description: "Availability state for installing and using the plugin.", |
| | 27461 | default: "AVAILABLE", |
| | 27462 | }), |
| | 27463 | ), |
| | 27464 | enabled: Schema.Boolean, |
| | 27465 | id: Schema.String, |
| | 27466 | installPolicy: V2PluginReadResponse__PluginInstallPolicy, |
| | 27467 | installPolicySource: Schema.optionalKey( |
| | 27468 | Schema.Union([V2PluginReadResponse__PluginInstallPolicySource, Schema.Null]), |
| | 27469 | ), |
| | 27470 | installed: Schema.Boolean, |
| | 27471 | interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__PluginInterface, Schema.Null])), |
| | 27472 | keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| | 27473 | localVersion: Schema.optionalKey( |
| | 27474 | Schema.Union([ |
| | 27475 | Schema.String.annotate({ |
| | 27476 | description: "Version of the locally materialized plugin package when available.", |
| | 27477 | }), |
| | 27478 | Schema.Null, |
| | 27479 | ]), |
| | 27480 | ), |
| | 27481 | mustShowInstallationInterstitial: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 27482 | name: Schema.String, |
| | 27483 | remotePluginId: Schema.optionalKey( |
| | 27484 | Schema.Union([ |
| | 27485 | Schema.String.annotate({ description: "Backend remote plugin identifier when available." }), |
| | 27486 | Schema.Null, |
| | 27487 | ]), |
| | 27488 | ), |
| | 27489 | shareContext: Schema.optionalKey( |
| | 27490 | Schema.Union([V2PluginReadResponse__PluginShareContext, Schema.Null]).annotate({ |
| | 27491 | description: "Remote sharing context associated with this plugin when available.", |
| | 27492 | }), |
| | 27493 | ), |
| | 27494 | source: V2PluginReadResponse__PluginSource, |
| | 27495 | version: Schema.optionalKey( |
| | 27496 | Schema.Union([ |
| | 27497 | Schema.String.annotate({ |
| | 27498 | description: "Version advertised by the remote marketplace backend when available.", |
| | 27499 | }), |
| | 27500 | Schema.Null, |
| | 27501 | ]), |
| | 27502 | ), |
| | 27503 | }).annotate({ identifier: "V2PluginReadResponse__PluginSummary" }); |
| | 27504 | |
| | 27505 | export type V2PluginShareListResponse__PluginSummary = { |
| | 27506 | readonly authPolicy: V2PluginShareListResponse__PluginAuthPolicy; |
| | 27507 | readonly availability?: V2PluginShareListResponse__PluginAvailability; |
| | 27508 | readonly enabled: boolean; |
| | 27509 | readonly id: string; |
| | 27510 | readonly installPolicy: V2PluginShareListResponse__PluginInstallPolicy; |
| | 27511 | readonly installPolicySource?: V2PluginShareListResponse__PluginInstallPolicySource | null; |
| | 27512 | readonly installed: boolean; |
| | 27513 | readonly interface?: V2PluginShareListResponse__PluginInterface | null; |
| | 27514 | readonly keywords?: ReadonlyArray<string>; |
| | 27515 | readonly localVersion?: string | null; |
| | 27516 | readonly mustShowInstallationInterstitial?: boolean | null; |
| | 27517 | readonly name: string; |
| | 27518 | readonly remotePluginId?: string | null; |
| | 27519 | readonly shareContext?: V2PluginShareListResponse__PluginShareContext | null; |
| | 27520 | readonly source: V2PluginShareListResponse__PluginSource; |
| | 27521 | readonly version?: string | null; |
| | 27522 | }; |
| | 27523 | export const V2PluginShareListResponse__PluginSummary = Schema.Struct({ |
| | 27524 | authPolicy: V2PluginShareListResponse__PluginAuthPolicy, |
| | 27525 | availability: Schema.optionalKey( |
| | 27526 | Schema.suspend( |
| | 27527 | (): Schema.Codec<V2PluginShareListResponse__PluginAvailability> => |
| | 27528 | V2PluginShareListResponse__PluginAvailability, |
| | 27529 | ).annotate({ |
| | 27530 | description: "Availability state for installing and using the plugin.", |
| | 27531 | default: "AVAILABLE", |
| | 27532 | }), |
| | 27533 | ), |
| | 27534 | enabled: Schema.Boolean, |
| | 27535 | id: Schema.String, |
| | 27536 | installPolicy: V2PluginShareListResponse__PluginInstallPolicy, |
| | 27537 | installPolicySource: Schema.optionalKey( |
| | 27538 | Schema.Union([V2PluginShareListResponse__PluginInstallPolicySource, Schema.Null]), |
| | 27539 | ), |
| | 27540 | installed: Schema.Boolean, |
| | 27541 | interface: Schema.optionalKey( |
| | 27542 | Schema.Union([V2PluginShareListResponse__PluginInterface, Schema.Null]), |
| | 27543 | ), |
| | 27544 | keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| | 27545 | localVersion: Schema.optionalKey( |
| | 27546 | Schema.Union([ |
| | 27547 | Schema.String.annotate({ |
| | 27548 | description: "Version of the locally materialized plugin package when available.", |
| | 27549 | }), |
| | 27550 | Schema.Null, |
| | 27551 | ]), |
| | 27552 | ), |
| | 27553 | mustShowInstallationInterstitial: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 27554 | name: Schema.String, |
| | 27555 | remotePluginId: Schema.optionalKey( |
| | 27556 | Schema.Union([ |
| | 27557 | Schema.String.annotate({ description: "Backend remote plugin identifier when available." }), |
| | 27558 | Schema.Null, |
| | 27559 | ]), |
| | 27560 | ), |
| | 27561 | shareContext: Schema.optionalKey( |
| | 27562 | Schema.Union([V2PluginShareListResponse__PluginShareContext, Schema.Null]).annotate({ |
| | 27563 | description: "Remote sharing context associated with this plugin when available.", |
| | 27564 | }), |
| | 27565 | ), |
| | 27566 | source: V2PluginShareListResponse__PluginSource, |
| | 27567 | version: Schema.optionalKey( |
| | 27568 | Schema.Union([ |
| | 27569 | Schema.String.annotate({ |
| | 27570 | description: "Version advertised by the remote marketplace backend when available.", |
| | 27571 | }), |
| | 27572 | Schema.Null, |
| | 27573 | ]), |
| | 27574 | ), |
| | 27575 | }).annotate({ identifier: "V2PluginShareListResponse__PluginSummary" }); |
| | 27576 | |
| | 27577 | export type V2RawResponseItemCompletedNotification__ResponseItem = |
| | 27578 | | { |
| | 27579 | readonly content: ReadonlyArray<V2RawResponseItemCompletedNotification__ContentItem>; |
| | 27580 | readonly id?: string | null; |
| | 27581 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; |
| | 27582 | readonly phase?: V2RawResponseItemCompletedNotification__MessagePhase | null; |
| | 27583 | readonly role: string; |
| | 27584 | readonly type: "message"; |
| 24457 | } | 27585 | } |
| 24458 | | { readonly id: string; readonly text: string; readonly type: "plan" } | | |
| 24459 | | { | 27586 | | { |
| 24460 | readonly content?: ReadonlyArray<string>; | 27587 | readonly author: string; |
| 24461 | readonly id: string; | 27588 | readonly content: ReadonlyArray<V2RawResponseItemCompletedNotification__AgentMessageInputContent>; |
| 24462 | readonly summary?: ReadonlyArray<string>; | 27589 | readonly id?: string | null; |
| | 27590 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; |
| | 27591 | readonly recipient: string; |
| | 27592 | readonly type: "agent_message"; |
| | 27593 | } |
| | 27594 | | { |
| | 27595 | readonly content?: ReadonlyArray<V2RawResponseItemCompletedNotification__ReasoningItemContent> | null; |
| | 27596 | readonly encrypted_content?: string | null; |
| | 27597 | readonly id?: string | null; |
| | 27598 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; |
| | 27599 | readonly summary: ReadonlyArray<V2RawResponseItemCompletedNotification__ReasoningItemReasoningSummary>; |
| 24463 | readonly type: "reasoning"; | 27600 | readonly type: "reasoning"; |
| 24464 | } | 27601 | } |
| 24465 | | { | 27602 | | { |
| 24466 | readonly aggregatedOutput?: string | null; | 27603 | readonly action: V2RawResponseItemCompletedNotification__LocalShellAction; |
| 24467 | readonly command: string; | 27604 | readonly call_id?: string | null; |
| 24468 | readonly commandActions: ReadonlyArray<V2ThreadReadResponse__CommandAction>; | 27605 | readonly id?: string | null; |
| 24469 | readonly cwd: string; | 27606 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; |
| 24470 | readonly durationMs?: number | null; | 27607 | readonly status: V2RawResponseItemCompletedNotification__LocalShellStatus; |
| 24471 | readonly exitCode?: number | null; | 27608 | readonly type: "local_shell_call"; |
| 24472 | readonly id: string; | | |
| 24473 | readonly processId?: string | null; | | |
| 24474 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; | | |
| 24475 | readonly status: V2ThreadReadResponse__CommandExecutionStatus; | | |
| 24476 | readonly type: "commandExecution"; | | |
| 24477 | } | 27609 | } |
| 24478 | | { | 27610 | | { |
| 24479 | readonly changes: ReadonlyArray<V2ThreadReadResponse__FileUpdateChange>; | 27611 | readonly arguments: string; |
| 24480 | readonly id: string; | 27612 | readonly call_id: string; |
| 24481 | readonly status: V2ThreadReadResponse__PatchApplyStatus; | 27613 | readonly id?: string | null; |
| 24482 | readonly type: "fileChange"; | 27614 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; |
| | 27615 | readonly name: string; |
| | 27616 | readonly namespace?: string | null; |
| | 27617 | readonly type: "function_call"; |
| 24483 | } | 27618 | } |
| 24484 | | { | 27619 | | { |
| 24485 | readonly appContext?: V2ThreadReadResponse__McpToolCallAppContext | null; | 27620 | readonly arguments: Schema.Json; |
| 24486 | readonly arguments: unknown; | 27621 | readonly call_id?: string | null; |
| 24487 | readonly durationMs?: number | null; | 27622 | readonly execution: string; |
| 24488 | readonly error?: V2ThreadReadResponse__McpToolCallError | null; | 27623 | readonly id?: string | null; |
| 24489 | readonly id: string; | 27624 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; |
| 24490 | readonly mcpAppResourceUri?: string | null; | 27625 | readonly status?: string | null; |
| 24491 | readonly pluginId?: string | null; | 27626 | readonly type: "tool_search_call"; |
| 24492 | readonly result?: V2ThreadReadResponse__McpToolCallResult | null; | | |
| 24493 | readonly server: string; | | |
| 24494 | readonly status: V2ThreadReadResponse__McpToolCallStatus; | | |
| 24495 | readonly tool: string; | | |
| 24496 | readonly type: "mcpToolCall"; | | |
| 24497 | } | 27627 | } |
| 24498 | | { | 27628 | | { |
| 24499 | readonly arguments: unknown; | 27629 | readonly call_id: string; |
| 24500 | readonly contentItems?: ReadonlyArray<V2ThreadReadResponse__DynamicToolCallOutputContentItem> | null; | 27630 | readonly id?: string | null; |
| 24501 | readonly durationMs?: number | null; | 27631 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; |
| 24502 | readonly id: string; | 27632 | readonly output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody; |
| 24503 | readonly namespace?: string | null; | 27633 | readonly type: "function_call_output"; |
| 24504 | readonly status: V2ThreadReadResponse__DynamicToolCallStatus; | | |
| 24505 | readonly success?: boolean | null; | | |
| 24506 | readonly tool: string; | | |
| 24507 | readonly type: "dynamicToolCall"; | | |
| 24508 | } | 27634 | } |
| 24509 | | { | 27635 | | { |
| 24510 | readonly agentsStates: { readonly [x: string]: V2ThreadReadResponse__CollabAgentState }; | 27636 | readonly call_id: string; |
| 24511 | readonly id: string; | 27637 | readonly id?: string | null; |
| 24512 | readonly model?: string | null; | 27638 | readonly input: string; |
| 24513 | readonly prompt?: string | null; | 27639 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; |
| 24514 | readonly reasoningEffort?: V2ThreadReadResponse__ReasoningEffort | null; | 27640 | readonly name: string; |
| 24515 | readonly receiverThreadIds: ReadonlyArray<string>; | 27641 | readonly namespace?: string | null; |
| 24516 | readonly senderThreadId: string; | 27642 | readonly status?: string | null; |
| 24517 | readonly status: "inProgress" | "completed" | "failed" | "interrupted"; | 27643 | readonly type: "custom_tool_call"; |
| 24518 | readonly tool: | | |
| 24519 | | "spawnAgent" | | |
| 24520 | | "sendInput" | | |
| 24521 | | "resumeAgent" | | |
| 24522 | | "wait" | | |
| 24523 | | "closeAgent" | | |
| 24524 | | "sendMessage" | | |
| 24525 | | "followupTask" | | |
| 24526 | | "interruptAgent" | | |
| 24527 | | "listAgents"; | | |
| 24528 | readonly type: "collabAgentToolCall"; | | |
| 24529 | } | 27644 | } |
| 24530 | | { | 27645 | | { |
| 24531 | readonly agentPath: string; | 27646 | readonly call_id: string; |
| 24532 | readonly agentThreadId: string; | 27647 | readonly id?: string | null; |
| 24533 | readonly id: string; | 27648 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; |
| 24534 | readonly kind: V2ThreadReadResponse__SubAgentActivityKind; | 27649 | readonly name?: string | null; |
| 24535 | readonly type: "subAgentActivity"; | 27650 | readonly output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody; |
| | 27651 | readonly type: "custom_tool_call_output"; |
| 24536 | } | 27652 | } |
| 24537 | | { | 27653 | | { |
| 24538 | readonly action?: V2ThreadReadResponse__WebSearchAction | null; | 27654 | readonly call_id?: string | null; |
| 24539 | readonly id: string; | 27655 | readonly execution: string; |
| 24540 | readonly query: string; | 27656 | readonly id?: string | null; |
| 24541 | readonly results?: ReadonlyArray<unknown> | null; | 27657 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; |
| 24542 | readonly type: "webSearch"; | 27658 | readonly status: string; |
| | 27659 | readonly tools: ReadonlyArray<Schema.Json>; |
| | 27660 | readonly type: "tool_search_output"; |
| 24543 | } | 27661 | } |
| 24544 | | { | 27662 | | { |
| 24545 | readonly id: string; | 27663 | readonly action?: V2RawResponseItemCompletedNotification__ResponsesApiWebSearchAction | null; |
| 24546 | readonly path: V2ThreadReadResponse__LegacyAppPathString; | 27664 | readonly id?: string | null; |
| 24547 | readonly type: "imageView"; | 27665 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; |
| | 27666 | readonly status?: string | null; |
| | 27667 | readonly type: "web_search_call"; |
| 24548 | } | 27668 | } |
| 24549 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | | |
| 24550 | | { | 27669 | | { |
| 24551 | readonly id: string; | 27670 | readonly id?: string | null; |
| | 27671 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; |
| 24552 | readonly result: string; | 27672 | readonly result: string; |
| 24553 | readonly revisedPrompt?: string | null; | 27673 | readonly revised_prompt?: string | null; |
| 24554 | readonly savedPath?: V2ThreadReadResponse__AbsolutePathBuf | null; | | |
| 24555 | readonly status: string; | 27674 | readonly status: string; |
| 24556 | readonly type: "imageGeneration"; | 27675 | readonly type: "image_generation_call"; |
| 24557 | } | 27676 | } |
| 24558 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 27677 | | { |
| 24559 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } | 27678 | readonly encrypted_content: string; |
| 24560 | | { readonly id: string; readonly type: "contextCompaction" }; | 27679 | readonly id?: string | null; |
| 24561 | export const V2ThreadReadResponse__ThreadItem = Schema.Union( | 27680 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; |
| | 27681 | readonly type: "compaction"; |
| | 27682 | } |
| | 27683 | | { readonly type: "compaction_trigger" } |
| | 27684 | | { |
| | 27685 | readonly encrypted_content?: string | null; |
| | 27686 | readonly id?: string | null; |
| | 27687 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; |
| | 27688 | readonly type: "context_compaction"; |
| | 27689 | } |
| | 27690 | | { readonly type: "other" }; |
| | 27691 | export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union( |
| 24562 | [ | 27692 | [ |
| 24563 | Schema.Struct({ | 27693 | Schema.Struct({ |
| 24564 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 27694 | content: Schema.Array(V2RawResponseItemCompletedNotification__ContentItem), |
| 24565 | content: Schema.Array(V2ThreadReadResponse__UserInput), | 27695 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24566 | id: Schema.String, | 27696 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| 24567 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), | | |
| 24568 | }).annotate({ title: "UserMessageThreadItem" }), | | |
| 24569 | Schema.Struct({ | | |
| 24570 | fragments: Schema.Array(V2ThreadReadResponse__HookPromptFragment), | | |
| 24571 | id: Schema.String, | | |
| 24572 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | | |
| 24573 | }).annotate({ title: "HookPromptThreadItem" }), | | |
| 24574 | Schema.Struct({ | | |
| 24575 | id: Schema.String, | | |
| 24576 | memoryCitation: Schema.optionalKey( | | |
| 24577 | Schema.Union([V2ThreadReadResponse__MemoryCitation, Schema.Null]), | | |
| 24578 | ), | | |
| 24579 | phase: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__MessagePhase, Schema.Null])), | | |
| 24580 | text: Schema.String, | | |
| 24581 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | | |
| 24582 | questions: Schema.optionalKey( | | |
| 24583 | Schema.Union([ | 27697 | Schema.Union([ |
| 24584 | Schema.Array( | 27698 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, |
| 24585 | Schema.Struct({ | | |
| 24586 | title: Schema.String, | | |
| 24587 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 24588 | }), | | |
| 24589 | ), | | |
| 24590 | Schema.Null, | 27699 | Schema.Null, |
| 24591 | ]), | 27700 | ]), |
| 24592 | ), | 27701 | ), |
| 24593 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), | 27702 | phase: Schema.optionalKey( |
| 24594 | }).annotate({ title: "AgentMessageThreadItem" }), | 27703 | Schema.Union([V2RawResponseItemCompletedNotification__MessagePhase, Schema.Null]), |
| 24595 | Schema.Struct({ | 27704 | ), |
| 24596 | id: Schema.String, | 27705 | role: Schema.String, |
| 24597 | text: Schema.String, | 27706 | type: Schema.Literal("message").annotate({ title: "MessageResponseItemType" }), |
| 24598 | type: Schema.Literal("plan").annotate({ title: "PlanThreadItemType" }), | 27707 | }).annotate({ title: "MessageResponseItem" }), |
| 24599 | }).annotate({ | | |
| 24600 | title: "PlanThreadItem", | | |
| 24601 | description: | | |
| 24602 | "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.", | | |
| 24603 | }), | | |
| 24604 | Schema.Struct({ | 27708 | Schema.Struct({ |
| 24605 | content: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), | 27709 | author: Schema.String, |
| 24606 | id: Schema.String, | 27710 | content: Schema.Array(V2RawResponseItemCompletedNotification__AgentMessageInputContent), |
| 24607 | summary: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), | 27711 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24608 | type: Schema.Literal("reasoning").annotate({ title: "ReasoningThreadItemType" }), | 27712 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| 24609 | }).annotate({ title: "ReasoningThreadItem" }), | 27713 | Schema.Union([ |
| | 27714 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, |
| | 27715 | Schema.Null, |
| | 27716 | ]), |
| | 27717 | ), |
| | 27718 | recipient: Schema.String, |
| | 27719 | type: Schema.Literal("agent_message").annotate({ title: "AgentMessageResponseItemType" }), |
| | 27720 | }).annotate({ title: "AgentMessageResponseItem" }), |
| 24610 | Schema.Struct({ | 27721 | Schema.Struct({ |
| 24611 | aggregatedOutput: Schema.optionalKey( | 27722 | content: Schema.optionalKey( |
| 24612 | Schema.Union([ | 27723 | Schema.Union([ |
| 24613 | Schema.String.annotate({ | 27724 | Schema.Array(V2RawResponseItemCompletedNotification__ReasoningItemContent), |
| 24614 | description: "The command's output, aggregated from stdout and stderr.", | | |
| 24615 | }), | | |
| 24616 | Schema.Null, | 27725 | Schema.Null, |
| 24617 | ]), | 27726 | ]), |
| 24618 | ), | 27727 | ), |
| 24619 | command: Schema.String.annotate({ description: "The command to be executed." }), | 27728 | encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24620 | commandActions: Schema.Array(V2ThreadReadResponse__CommandAction).annotate({ | 27729 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24621 | description: | 27730 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| 24622 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", | | |
| 24623 | }), | | |
| 24624 | cwd: Schema.String.annotate({ description: "The command's working directory." }), | | |
| 24625 | durationMs: Schema.optionalKey( | | |
| 24626 | Schema.Union([ | 27731 | Schema.Union([ |
| 24627 | Schema.Number.annotate({ | 27732 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, |
| 24628 | description: "The duration of the command execution in milliseconds.", | | |
| 24629 | format: "int64", | | |
| 24630 | }).check(Schema.isInt()), | | |
| 24631 | Schema.Null, | 27733 | Schema.Null, |
| 24632 | ]), | 27734 | ]), |
| 24633 | ), | 27735 | ), |
| 24634 | exitCode: Schema.optionalKey( | 27736 | summary: Schema.Array(V2RawResponseItemCompletedNotification__ReasoningItemReasoningSummary), |
| | 27737 | type: Schema.Literal("reasoning").annotate({ title: "ReasoningResponseItemType" }), |
| | 27738 | }).annotate({ title: "ReasoningResponseItem" }), |
| | 27739 | Schema.Struct({ |
| | 27740 | action: V2RawResponseItemCompletedNotification__LocalShellAction, |
| | 27741 | call_id: Schema.optionalKey( |
| 24635 | Schema.Union([ | 27742 | Schema.Union([ |
| 24636 | Schema.Number.annotate({ | 27743 | Schema.String.annotate({ description: "Set when using the Responses API." }), |
| 24637 | description: "The command's exit code.", | | |
| 24638 | format: "int32", | | |
| 24639 | }).check(Schema.isInt()), | | |
| 24640 | Schema.Null, | 27744 | Schema.Null, |
| 24641 | ]), | 27745 | ]), |
| 24642 | ), | 27746 | ), |
| 24643 | id: Schema.String, | 27747 | id: Schema.optionalKey( |
| 24644 | processId: Schema.optionalKey( | | |
| 24645 | Schema.Union([ | 27748 | Schema.Union([ |
| 24646 | Schema.String.annotate({ | 27749 | Schema.String.annotate({ |
| 24647 | description: "Identifier for the underlying PTY process (when available).", | 27750 | description: "Legacy id field retained for compatibility with older payloads.", |
| 24648 | }), | 27751 | }), |
| 24649 | Schema.Null, | 27752 | Schema.Null, |
| 24650 | ]), | 27753 | ]), |
| 24651 | ), | 27754 | ), |
| 24652 | source: Schema.optionalKey( | 27755 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| 24653 | Schema.Literals([ | 27756 | Schema.Union([ |
| 24654 | "agent", | 27757 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, |
| 24655 | "userShell", | 27758 | Schema.Null, |
| 24656 | "unifiedExecStartup", | 27759 | ]), |
| 24657 | "unifiedExecInteraction", | | |
| 24658 | ]).annotate({ default: "agent" }), | | |
| 24659 | ), | 27760 | ), |
| 24660 | status: V2ThreadReadResponse__CommandExecutionStatus, | 27761 | status: V2RawResponseItemCompletedNotification__LocalShellStatus, |
| 24661 | type: Schema.Literal("commandExecution").annotate({ | 27762 | type: Schema.Literal("local_shell_call").annotate({ |
| 24662 | title: "CommandExecutionThreadItemType", | 27763 | title: "LocalShellCallResponseItemType", |
| 24663 | }), | 27764 | }), |
| 24664 | }).annotate({ title: "CommandExecutionThreadItem" }), | 27765 | }).annotate({ title: "LocalShellCallResponseItem" }), |
| 24665 | Schema.Struct({ | 27766 | Schema.Struct({ |
| 24666 | changes: Schema.Array(V2ThreadReadResponse__FileUpdateChange), | 27767 | arguments: Schema.String, |
| 24667 | id: Schema.String, | 27768 | call_id: Schema.String, |
| 24668 | status: V2ThreadReadResponse__PatchApplyStatus, | 27769 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24669 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), | 27770 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| 24670 | }).annotate({ title: "FileChangeThreadItem" }), | | |
| 24671 | Schema.Struct({ | | |
| 24672 | appContext: Schema.optionalKey( | | |
| 24673 | Schema.Union([V2ThreadReadResponse__McpToolCallAppContext, Schema.Null]), | | |
| 24674 | ), | | |
| 24675 | arguments: Schema.Unknown, | | |
| 24676 | durationMs: Schema.optionalKey( | | |
| 24677 | Schema.Union([ | 27771 | Schema.Union([ |
| 24678 | Schema.Number.annotate({ | 27772 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, |
| 24679 | description: "The duration of the MCP tool call in milliseconds.", | | |
| 24680 | format: "int64", | | |
| 24681 | }).check(Schema.isInt()), | | |
| 24682 | Schema.Null, | 27773 | Schema.Null, |
| 24683 | ]), | 27774 | ]), |
| 24684 | ), | 27775 | ), |
| 24685 | error: Schema.optionalKey( | 27776 | name: Schema.String, |
| 24686 | Schema.Union([V2ThreadReadResponse__McpToolCallError, Schema.Null]), | 27777 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24687 | ), | 27778 | type: Schema.Literal("function_call").annotate({ title: "FunctionCallResponseItemType" }), |
| 24688 | id: Schema.String, | 27779 | }).annotate({ title: "FunctionCallResponseItem" }), |
| 24689 | mcpAppResourceUri: Schema.optionalKey( | 27780 | Schema.Struct({ |
| | 27781 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| | 27782 | call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 27783 | execution: Schema.String, |
| | 27784 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 27785 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| 24690 | Schema.Union([ | 27786 | Schema.Union([ |
| 24691 | Schema.String.annotate({ | 27787 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, |
| 24692 | description: "Deprecated: use `appContext.resourceUri` instead.", | | |
| 24693 | }), | | |
| 24694 | Schema.Null, | 27788 | Schema.Null, |
| 24695 | ]), | 27789 | ]), |
| 24696 | ), | 27790 | ), |
| 24697 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 27791 | status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24698 | result: Schema.optionalKey( | 27792 | type: Schema.Literal("tool_search_call").annotate({ |
| 24699 | Schema.Union([V2ThreadReadResponse__McpToolCallResult, Schema.Null]), | 27793 | title: "ToolSearchCallResponseItemType", |
| 24700 | ), | 27794 | }), |
| 24701 | server: Schema.String, | 27795 | }).annotate({ title: "ToolSearchCallResponseItem" }), |
| 24702 | status: V2ThreadReadResponse__McpToolCallStatus, | | |
| 24703 | tool: Schema.String, | | |
| 24704 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), | | |
| 24705 | }).annotate({ title: "McpToolCallThreadItem" }), | | |
| 24706 | Schema.Struct({ | 27796 | Schema.Struct({ |
| 24707 | arguments: Schema.Unknown, | 27797 | call_id: Schema.String, |
| 24708 | contentItems: Schema.optionalKey( | 27798 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 27799 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| 24709 | Schema.Union([ | 27800 | Schema.Union([ |
| 24710 | Schema.Array(V2ThreadReadResponse__DynamicToolCallOutputContentItem), | 27801 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, |
| 24711 | Schema.Null, | 27802 | Schema.Null, |
| 24712 | ]), | 27803 | ]), |
| 24713 | ), | 27804 | ), |
| 24714 | durationMs: Schema.optionalKey( | 27805 | output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody, |
| | 27806 | type: Schema.Literal("function_call_output").annotate({ |
| | 27807 | title: "FunctionCallOutputResponseItemType", |
| | 27808 | }), |
| | 27809 | }).annotate({ title: "FunctionCallOutputResponseItem" }), |
| | 27810 | Schema.Struct({ |
| | 27811 | call_id: Schema.String, |
| | 27812 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 27813 | input: Schema.String, |
| | 27814 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| 24715 | Schema.Union([ | 27815 | Schema.Union([ |
| 24716 | Schema.Number.annotate({ | 27816 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, |
| 24717 | description: "The duration of the dynamic tool call in milliseconds.", | | |
| 24718 | format: "int64", | | |
| 24719 | }).check(Schema.isInt()), | | |
| 24720 | Schema.Null, | 27817 | Schema.Null, |
| 24721 | ]), | 27818 | ]), |
| 24722 | ), | 27819 | ), |
| 24723 | id: Schema.String, | 27820 | name: Schema.String, |
| 24724 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 27821 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24725 | status: V2ThreadReadResponse__DynamicToolCallStatus, | 27822 | status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24726 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 27823 | type: Schema.Literal("custom_tool_call").annotate({ |
| 24727 | tool: Schema.String, | 27824 | title: "CustomToolCallResponseItemType", |
| 24728 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), | | |
| 24729 | }).annotate({ title: "DynamicToolCallThreadItem" }), | | |
| 24730 | Schema.Struct({ | | |
| 24731 | agentsStates: Schema.Record(Schema.String, V2ThreadReadResponse__CollabAgentState).annotate({ | | |
| 24732 | description: "Last known status of the target agents, when available.", | | |
| 24733 | }), | 27825 | }), |
| 24734 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), | 27826 | }).annotate({ title: "CustomToolCallResponseItem" }), |
| 24735 | model: Schema.optionalKey( | 27827 | Schema.Struct({ |
| | 27828 | call_id: Schema.String, |
| | 27829 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 27830 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| 24736 | Schema.Union([ | 27831 | Schema.Union([ |
| 24737 | Schema.String.annotate({ | 27832 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, |
| 24738 | description: "Model requested for the spawned agent, when applicable.", | | |
| 24739 | }), | | |
| 24740 | Schema.Null, | 27833 | Schema.Null, |
| 24741 | ]), | 27834 | ]), |
| 24742 | ), | 27835 | ), |
| 24743 | prompt: Schema.optionalKey( | 27836 | name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 27837 | output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody, |
| | 27838 | type: Schema.Literal("custom_tool_call_output").annotate({ |
| | 27839 | title: "CustomToolCallOutputResponseItemType", |
| | 27840 | }), |
| | 27841 | }).annotate({ title: "CustomToolCallOutputResponseItem" }), |
| | 27842 | Schema.Struct({ |
| | 27843 | call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 27844 | execution: Schema.String, |
| | 27845 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 27846 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| 24744 | Schema.Union([ | 27847 | Schema.Union([ |
| 24745 | Schema.String.annotate({ | 27848 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, |
| 24746 | description: "Prompt text sent as part of the collab tool call, when available.", | | |
| 24747 | }), | | |
| 24748 | Schema.Null, | 27849 | Schema.Null, |
| 24749 | ]), | 27850 | ]), |
| 24750 | ), | 27851 | ), |
| 24751 | reasoningEffort: Schema.optionalKey( | 27852 | status: Schema.String, |
| 24752 | Schema.Union([V2ThreadReadResponse__ReasoningEffort, Schema.Null]).annotate({ | 27853 | tools: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), |
| 24753 | description: "Reasoning effort requested for the spawned agent, when applicable.", | 27854 | type: Schema.Literal("tool_search_output").annotate({ |
| 24754 | }), | 27855 | title: "ToolSearchOutputResponseItemType", |
| 24755 | ), | | |
| 24756 | receiverThreadIds: Schema.Array(Schema.String).annotate({ | | |
| 24757 | description: | | |
| 24758 | "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.", | | |
| 24759 | }), | | |
| 24760 | senderThreadId: Schema.String.annotate({ | | |
| 24761 | description: "Thread ID of the agent issuing the collab request.", | | |
| 24762 | }), | | |
| 24763 | status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({ | | |
| 24764 | description: "Current status of the collab tool call.", | | |
| 24765 | }), | | |
| 24766 | tool: Schema.Literals([ | | |
| 24767 | "spawnAgent", | | |
| 24768 | "sendInput", | | |
| 24769 | "resumeAgent", | | |
| 24770 | "wait", | | |
| 24771 | "closeAgent", | | |
| 24772 | "sendMessage", | | |
| 24773 | "followupTask", | | |
| 24774 | "interruptAgent", | | |
| 24775 | "listAgents", | | |
| 24776 | ]).annotate({ description: "Name of the collab tool that was invoked." }), | | |
| 24777 | type: Schema.Literal("collabAgentToolCall").annotate({ | | |
| 24778 | title: "CollabAgentToolCallThreadItemType", | | |
| 24779 | }), | | |
| 24780 | }).annotate({ title: "CollabAgentToolCallThreadItem" }), | | |
| 24781 | Schema.Struct({ | | |
| 24782 | agentPath: Schema.String, | | |
| 24783 | agentThreadId: Schema.String, | | |
| 24784 | id: Schema.String, | | |
| 24785 | kind: V2ThreadReadResponse__SubAgentActivityKind, | | |
| 24786 | type: Schema.Literal("subAgentActivity").annotate({ | | |
| 24787 | title: "SubAgentActivityThreadItemType", | | |
| 24788 | }), | 27856 | }), |
| 24789 | }).annotate({ title: "SubAgentActivityThreadItem" }), | 27857 | }).annotate({ title: "ToolSearchOutputResponseItem" }), |
| 24790 | Schema.Struct({ | 27858 | Schema.Struct({ |
| 24791 | action: Schema.optionalKey( | 27859 | action: Schema.optionalKey( |
| 24792 | Schema.Union([V2ThreadReadResponse__WebSearchAction, Schema.Null]), | 27860 | Schema.Union([ |
| | 27861 | V2RawResponseItemCompletedNotification__ResponsesApiWebSearchAction, |
| | 27862 | Schema.Null, |
| | 27863 | ]), |
| 24793 | ), | 27864 | ), |
| 24794 | id: Schema.String, | 27865 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24795 | query: Schema.String, | 27866 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| 24796 | results: Schema.optionalKey( | | |
| 24797 | Schema.Union([ | 27867 | Schema.Union([ |
| 24798 | Schema.Array(Schema.Unknown).annotate({ | 27868 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, |
| 24799 | description: | | |
| 24800 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", | | |
| 24801 | }), | | |
| 24802 | Schema.Null, | 27869 | Schema.Null, |
| 24803 | ]), | 27870 | ]), |
| 24804 | ), | 27871 | ), |
| 24805 | type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }), | 27872 | status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24806 | }).annotate({ title: "WebSearchThreadItem" }), | 27873 | type: Schema.Literal("web_search_call").annotate({ title: "WebSearchCallResponseItemType" }), |
| 24807 | Schema.Struct({ | 27874 | }).annotate({ title: "WebSearchCallResponseItem" }), |
| 24808 | id: Schema.String, | | |
| 24809 | path: V2ThreadReadResponse__LegacyAppPathString, | | |
| 24810 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), | | |
| 24811 | }).annotate({ title: "ImageViewThreadItem" }), | | |
| 24812 | Schema.Struct({ | | |
| 24813 | durationMs: Schema.Number.annotate({ format: "uint64" }) | | |
| 24814 | .check(Schema.isInt()) | | |
| 24815 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 24816 | id: Schema.String, | | |
| 24817 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), | | |
| 24818 | }).annotate({ | | |
| 24819 | title: "SleepThreadItem", | | |
| 24820 | description: "Display item emitted by the interruptible `clock.sleep` tool.", | | |
| 24821 | }), | | |
| 24822 | Schema.Struct({ | 27875 | Schema.Struct({ |
| 24823 | id: Schema.String, | 27876 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24824 | result: Schema.String, | 27877 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| 24825 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 27878 | Schema.Union([ |
| 24826 | savedPath: Schema.optionalKey( | 27879 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, |
| 24827 | Schema.Union([V2ThreadReadResponse__AbsolutePathBuf, Schema.Null]), | 27880 | Schema.Null, |
| | 27881 | ]), |
| 24828 | ), | 27882 | ), |
| | 27883 | result: Schema.String, |
| | 27884 | revised_prompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24829 | status: Schema.String, | 27885 | status: Schema.String, |
| 24830 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 27886 | type: Schema.Literal("image_generation_call").annotate({ |
| 24831 | }).annotate({ title: "ImageGenerationThreadItem" }), | 27887 | title: "ImageGenerationCallResponseItemType", |
| 24832 | Schema.Struct({ | | |
| 24833 | id: Schema.String, | | |
| 24834 | review: Schema.String, | | |
| 24835 | type: Schema.Literal("enteredReviewMode").annotate({ | | |
| 24836 | title: "EnteredReviewModeThreadItemType", | | |
| 24837 | }), | 27888 | }), |
| 24838 | }).annotate({ title: "EnteredReviewModeThreadItem" }), | 27889 | }).annotate({ title: "ImageGenerationCallResponseItem" }), |
| 24839 | Schema.Struct({ | 27890 | Schema.Struct({ |
| 24840 | id: Schema.String, | 27891 | encrypted_content: Schema.String, |
| 24841 | review: Schema.String, | 27892 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24842 | type: Schema.Literal("exitedReviewMode").annotate({ | 27893 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| 24843 | title: "ExitedReviewModeThreadItemType", | 27894 | Schema.Union([ |
| | 27895 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, |
| | 27896 | Schema.Null, |
| | 27897 | ]), |
| | 27898 | ), |
| | 27899 | type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }), |
| | 27900 | }).annotate({ title: "CompactionResponseItem" }), |
| | 27901 | Schema.Struct({ |
| | 27902 | type: Schema.Literal("compaction_trigger").annotate({ |
| | 27903 | title: "CompactionTriggerResponseItemType", |
| 24844 | }), | 27904 | }), |
| 24845 | }).annotate({ title: "ExitedReviewModeThreadItem" }), | 27905 | }).annotate({ title: "CompactionTriggerResponseItem" }), |
| 24846 | Schema.Struct({ | 27906 | Schema.Struct({ |
| 24847 | id: Schema.String, | 27907 | encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24848 | type: Schema.Literal("contextCompaction").annotate({ | 27908 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24849 | title: "ContextCompactionThreadItemType", | 27909 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| | 27910 | Schema.Union([ |
| | 27911 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, |
| | 27912 | Schema.Null, |
| | 27913 | ]), |
| | 27914 | ), |
| | 27915 | type: Schema.Literal("context_compaction").annotate({ |
| | 27916 | title: "ContextCompactionResponseItemType", |
| 24850 | }), | 27917 | }), |
| 24851 | }).annotate({ title: "ContextCompactionThreadItem" }), | 27918 | }).annotate({ title: "ContextCompactionResponseItem" }), |
| | 27919 | Schema.Struct({ |
| | 27920 | type: Schema.Literal("other").annotate({ title: "OtherResponseItemType" }), |
| | 27921 | }).annotate({ title: "OtherResponseItem" }), |
| 24852 | ], | 27922 | ], |
| 24853 | { mode: "oneOf" }, | 27923 | { mode: "oneOf" }, |
| 24854 | ); | 27924 | ).annotate({ identifier: "V2RawResponseItemCompletedNotification__ResponseItem" }); |
| 24855 | | 27925 | |
| 24856 | export type V2ThreadResumeParams__FunctionCallOutputBody = | 27926 | export type V2ReviewStartResponse__ThreadItem = |
| 24857 | | string | | |
| 24858 | | ReadonlyArray<V2ThreadResumeParams__FunctionCallOutputContentItem>; | | |
| 24859 | export const V2ThreadResumeParams__FunctionCallOutputBody = Schema.Union([ | | |
| 24860 | Schema.String, | | |
| 24861 | Schema.Array(V2ThreadResumeParams__FunctionCallOutputContentItem), | | |
| 24862 | ]); | | |
| 24863 | | | |
| 24864 | export type V2ThreadResumeResponse__TurnError = { | | |
| 24865 | readonly additionalDetails?: string | null; | | |
| 24866 | readonly codexErrorInfo?: V2ThreadResumeResponse__CodexErrorInfo | null; | | |
| 24867 | readonly message: string; | | |
| 24868 | }; | | |
| 24869 | export const V2ThreadResumeResponse__TurnError = Schema.Struct({ | | |
| 24870 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 24871 | codexErrorInfo: Schema.optionalKey( | | |
| 24872 | Schema.Union([V2ThreadResumeResponse__CodexErrorInfo, Schema.Null]), | | |
| 24873 | ), | | |
| 24874 | message: Schema.String, | | |
| 24875 | }); | | |
| 24876 | | | |
| 24877 | export type V2ThreadResumeResponse__ThreadItem = | | |
| 24878 | | { | 27927 | | { |
| 24879 | readonly clientId?: string | null; | 27928 | readonly clientId?: string | null; |
| 24880 | readonly content: ReadonlyArray<V2ThreadResumeResponse__UserInput>; | 27929 | readonly content: ReadonlyArray<V2ReviewStartResponse__UserInput>; |
| 24881 | readonly id: string; | 27930 | readonly id: string; |
| 24882 | readonly type: "userMessage"; | 27931 | readonly type: "userMessage"; |
| 24883 | } | 27932 | } |
| 24884 | | { | 27933 | | { |
| 24885 | readonly fragments: ReadonlyArray<V2ThreadResumeResponse__HookPromptFragment>; | 27934 | readonly fragments: ReadonlyArray<V2ReviewStartResponse__HookPromptFragment>; |
| 24886 | readonly id: string; | 27935 | readonly id: string; |
| 24887 | readonly type: "hookPrompt"; | 27936 | readonly type: "hookPrompt"; |
| 24888 | } | 27937 | } |
| 24889 | | { | 27938 | | { |
| 24890 | readonly id: string; | 27939 | readonly id: string; |
| 24891 | readonly memoryCitation?: V2ThreadResumeResponse__MemoryCitation | null; | 27940 | readonly memoryCitation?: V2ReviewStartResponse__MemoryCitation | null; |
| 24892 | readonly phase?: V2ThreadResumeResponse__MessagePhase | null; | 27941 | readonly phase?: V2ReviewStartResponse__MessagePhase | null; |
| 24893 | readonly text: string; | 27942 | readonly text: string; |
| 24894 | readonly delivery?: "async" | null; | 27943 | readonly delivery?: "async" | null; |
| 24895 | readonly questions?: ReadonlyArray<{ | 27944 | readonly questions?: ReadonlyArray<{ |
| ... | @@ -24908,85 +27957,76 @@ export type V2ThreadResumeResponse__ThreadItem = | ... | @@ -24908,85 +27957,76 @@ export type V2ThreadResumeResponse__ThreadItem = |
| 24908 | | { | 27957 | | { |
| 24909 | readonly aggregatedOutput?: string | null; | 27958 | readonly aggregatedOutput?: string | null; |
| 24910 | readonly command: string; | 27959 | readonly command: string; |
| 24911 | readonly commandActions: ReadonlyArray<V2ThreadResumeResponse__CommandAction>; | 27960 | readonly commandActions: ReadonlyArray<V2ReviewStartResponse__CommandAction>; |
| 24912 | readonly cwd: string; | 27961 | readonly cwd: V2ReviewStartResponse__LegacyAppPathString; |
| 24913 | readonly durationMs?: number | null; | 27962 | readonly durationMs?: number | null; |
| 24914 | readonly exitCode?: number | null; | 27963 | readonly exitCode?: number | null; |
| 24915 | readonly id: string; | 27964 | readonly id: string; |
| 24916 | readonly processId?: string | null; | 27965 | readonly processId?: string | null; |
| 24917 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; | 27966 | readonly source?: V2ReviewStartResponse__CommandExecutionSource; |
| 24918 | readonly status: V2ThreadResumeResponse__CommandExecutionStatus; | 27967 | readonly status: V2ReviewStartResponse__CommandExecutionStatus; |
| 24919 | readonly type: "commandExecution"; | 27968 | readonly type: "commandExecution"; |
| 24920 | } | 27969 | } |
| 24921 | | { | 27970 | | { |
| 24922 | readonly changes: ReadonlyArray<V2ThreadResumeResponse__FileUpdateChange>; | 27971 | readonly changes: ReadonlyArray<V2ReviewStartResponse__FileUpdateChange>; |
| 24923 | readonly id: string; | 27972 | readonly id: string; |
| 24924 | readonly status: V2ThreadResumeResponse__PatchApplyStatus; | 27973 | readonly status: V2ReviewStartResponse__PatchApplyStatus; |
| 24925 | readonly type: "fileChange"; | 27974 | readonly type: "fileChange"; |
| 24926 | } | 27975 | } |
| 24927 | | { | 27976 | | { |
| 24928 | readonly appContext?: V2ThreadResumeResponse__McpToolCallAppContext | null; | 27977 | readonly appContext?: V2ReviewStartResponse__McpToolCallAppContext | null; |
| 24929 | readonly arguments: unknown; | 27978 | readonly arguments: Schema.Json; |
| 24930 | readonly durationMs?: number | null; | 27979 | readonly durationMs?: number | null; |
| 24931 | readonly error?: V2ThreadResumeResponse__McpToolCallError | null; | 27980 | readonly error?: V2ReviewStartResponse__McpToolCallError | null; |
| 24932 | readonly id: string; | 27981 | readonly id: string; |
| 24933 | readonly mcpAppResourceUri?: string | null; | 27982 | readonly mcpAppResourceUri?: string | null; |
| 24934 | readonly pluginId?: string | null; | 27983 | readonly pluginId?: string | null; |
| 24935 | readonly result?: V2ThreadResumeResponse__McpToolCallResult | null; | 27984 | readonly result?: V2ReviewStartResponse__McpToolCallResult | null; |
| 24936 | readonly server: string; | 27985 | readonly server: string; |
| 24937 | readonly status: V2ThreadResumeResponse__McpToolCallStatus; | 27986 | readonly status: V2ReviewStartResponse__McpToolCallStatus; |
| 24938 | readonly tool: string; | 27987 | readonly tool: string; |
| 24939 | readonly type: "mcpToolCall"; | 27988 | readonly type: "mcpToolCall"; |
| 24940 | } | 27989 | } |
| 24941 | | { | 27990 | | { |
| 24942 | readonly arguments: unknown; | 27991 | readonly arguments: Schema.Json; |
| 24943 | readonly contentItems?: ReadonlyArray<V2ThreadResumeResponse__DynamicToolCallOutputContentItem> | null; | 27992 | readonly contentItems?: ReadonlyArray<V2ReviewStartResponse__DynamicToolCallOutputContentItem> | null; |
| 24944 | readonly durationMs?: number | null; | 27993 | readonly durationMs?: number | null; |
| 24945 | readonly id: string; | 27994 | readonly id: string; |
| 24946 | readonly namespace?: string | null; | 27995 | readonly namespace?: string | null; |
| 24947 | readonly status: V2ThreadResumeResponse__DynamicToolCallStatus; | 27996 | readonly status: V2ReviewStartResponse__DynamicToolCallStatus; |
| 24948 | readonly success?: boolean | null; | 27997 | readonly success?: boolean | null; |
| 24949 | readonly tool: string; | 27998 | readonly tool: string; |
| 24950 | readonly type: "dynamicToolCall"; | 27999 | readonly type: "dynamicToolCall"; |
| 24951 | } | 28000 | } |
| 24952 | | { | 28001 | | { |
| 24953 | readonly agentsStates: { readonly [x: string]: V2ThreadResumeResponse__CollabAgentState }; | 28002 | readonly agentsStates: { readonly [x: string]: V2ReviewStartResponse__CollabAgentState }; |
| 24954 | readonly id: string; | 28003 | readonly id: string; |
| 24955 | readonly model?: string | null; | 28004 | readonly model?: string | null; |
| 24956 | readonly prompt?: string | null; | 28005 | readonly prompt?: string | null; |
| 24957 | readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null; | 28006 | readonly reasoningEffort?: V2ReviewStartResponse__ReasoningEffort | null; |
| 24958 | readonly receiverThreadIds: ReadonlyArray<string>; | 28007 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 24959 | readonly senderThreadId: string; | 28008 | readonly senderThreadId: string; |
| 24960 | readonly status: "inProgress" | "completed" | "failed" | "interrupted"; | 28009 | readonly status: V2ReviewStartResponse__CollabAgentToolCallStatus; |
| 24961 | readonly tool: | 28010 | readonly tool: V2ReviewStartResponse__CollabAgentTool; |
| 24962 | | "spawnAgent" | | |
| 24963 | | "sendInput" | | |
| 24964 | | "resumeAgent" | | |
| 24965 | | "wait" | | |
| 24966 | | "closeAgent" | | |
| 24967 | | "sendMessage" | | |
| 24968 | | "followupTask" | | |
| 24969 | | "interruptAgent" | | |
| 24970 | | "listAgents"; | | |
| 24971 | readonly type: "collabAgentToolCall"; | 28011 | readonly type: "collabAgentToolCall"; |
| 24972 | } | 28012 | } |
| 24973 | | { | 28013 | | { |
| 24974 | readonly agentPath: string; | 28014 | readonly agentPath: string; |
| 24975 | readonly agentThreadId: string; | 28015 | readonly agentThreadId: string; |
| 24976 | readonly id: string; | 28016 | readonly id: string; |
| 24977 | readonly kind: V2ThreadResumeResponse__SubAgentActivityKind; | 28017 | readonly kind: V2ReviewStartResponse__SubAgentActivityKind; |
| 24978 | readonly type: "subAgentActivity"; | 28018 | readonly type: "subAgentActivity"; |
| 24979 | } | 28019 | } |
| 24980 | | { | 28020 | | { |
| 24981 | readonly action?: V2ThreadResumeResponse__WebSearchAction | null; | 28021 | readonly action?: V2ReviewStartResponse__WebSearchAction | null; |
| 24982 | readonly id: string; | 28022 | readonly id: string; |
| 24983 | readonly query: string; | 28023 | readonly query: string; |
| 24984 | readonly results?: ReadonlyArray<unknown> | null; | 28024 | readonly results?: ReadonlyArray<Schema.Json> | null; |
| 24985 | readonly type: "webSearch"; | 28025 | readonly type: "webSearch"; |
| 24986 | } | 28026 | } |
| 24987 | | { | 28027 | | { |
| 24988 | readonly id: string; | 28028 | readonly id: string; |
| 24989 | readonly path: V2ThreadResumeResponse__LegacyAppPathString; | 28029 | readonly path: V2ReviewStartResponse__LegacyAppPathString; |
| 24990 | readonly type: "imageView"; | 28030 | readonly type: "imageView"; |
| 24991 | } | 28031 | } |
| 24992 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | 28032 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| ... | @@ -24994,32 +28034,32 @@ export type V2ThreadResumeResponse__ThreadItem = | ... | @@ -24994,32 +28034,32 @@ export type V2ThreadResumeResponse__ThreadItem = |
| 24994 | readonly id: string; | 28034 | readonly id: string; |
| 24995 | readonly result: string; | 28035 | readonly result: string; |
| 24996 | readonly revisedPrompt?: string | null; | 28036 | readonly revisedPrompt?: string | null; |
| 24997 | readonly savedPath?: V2ThreadResumeResponse__AbsolutePathBuf | null; | 28037 | readonly savedPath?: V2ReviewStartResponse__AbsolutePathBuf | null; |
| 24998 | readonly status: string; | 28038 | readonly status: string; |
| 24999 | readonly type: "imageGeneration"; | 28039 | readonly type: "imageGeneration"; |
| 25000 | } | 28040 | } |
| 25001 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 28041 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 25002 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } | 28042 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 25003 | | { readonly id: string; readonly type: "contextCompaction" }; | 28043 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 25004 | export const V2ThreadResumeResponse__ThreadItem = Schema.Union( | 28044 | export const V2ReviewStartResponse__ThreadItem = Schema.Union( |
| 25005 | [ | 28045 | [ |
| 25006 | Schema.Struct({ | 28046 | Schema.Struct({ |
| 25007 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 28047 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 25008 | content: Schema.Array(V2ThreadResumeResponse__UserInput), | 28048 | content: Schema.Array(V2ReviewStartResponse__UserInput), |
| 25009 | id: Schema.String, | 28049 | id: Schema.String, |
| 25010 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), | 28050 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 25011 | }).annotate({ title: "UserMessageThreadItem" }), | 28051 | }).annotate({ title: "UserMessageThreadItem" }), |
| 25012 | Schema.Struct({ | 28052 | Schema.Struct({ |
| 25013 | fragments: Schema.Array(V2ThreadResumeResponse__HookPromptFragment), | 28053 | fragments: Schema.Array(V2ReviewStartResponse__HookPromptFragment), |
| 25014 | id: Schema.String, | 28054 | id: Schema.String, |
| 25015 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | 28055 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 25016 | }).annotate({ title: "HookPromptThreadItem" }), | 28056 | }).annotate({ title: "HookPromptThreadItem" }), |
| 25017 | Schema.Struct({ | 28057 | Schema.Struct({ |
| 25018 | id: Schema.String, | 28058 | id: Schema.String, |
| 25019 | memoryCitation: Schema.optionalKey( | 28059 | memoryCitation: Schema.optionalKey( |
| 25020 | Schema.Union([V2ThreadResumeResponse__MemoryCitation, Schema.Null]), | 28060 | Schema.Union([V2ReviewStartResponse__MemoryCitation, Schema.Null]), |
| 25021 | ), | 28061 | ), |
| 25022 | phase: Schema.optionalKey(Schema.Union([V2ThreadResumeResponse__MessagePhase, Schema.Null])), | 28062 | phase: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__MessagePhase, Schema.Null])), |
| 25023 | text: Schema.String, | 28063 | text: Schema.String, |
| 25024 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | 28064 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), |
| 25025 | questions: Schema.optionalKey( | 28065 | questions: Schema.optionalKey( |
| ... | @@ -25060,17 +28100,20 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( | ... | @@ -25060,17 +28100,20 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 25060 | ]), | 28100 | ]), |
| 25061 | ), | 28101 | ), |
| 25062 | command: Schema.String.annotate({ description: "The command to be executed." }), | 28102 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 25063 | commandActions: Schema.Array(V2ThreadResumeResponse__CommandAction).annotate({ | 28103 | commandActions: Schema.Array(V2ReviewStartResponse__CommandAction).annotate({ |
| 25064 | description: | 28104 | description: |
| 25065 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", | 28105 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 25066 | }), | 28106 | }), |
| 25067 | cwd: Schema.String.annotate({ description: "The command's working directory." }), | 28107 | cwd: Schema.suspend( |
| | 28108 | (): Schema.Codec<V2ReviewStartResponse__LegacyAppPathString> => |
| | 28109 | V2ReviewStartResponse__LegacyAppPathString, |
| | 28110 | ).annotate({ description: "The command's working directory." }), |
| 25068 | durationMs: Schema.optionalKey( | 28111 | durationMs: Schema.optionalKey( |
| 25069 | Schema.Union([ | 28112 | Schema.Union([ |
| 25070 | Schema.Number.annotate({ | 28113 | Schema.Number.annotate({ |
| 25071 | description: "The duration of the command execution in milliseconds.", | 28114 | description: "The duration of the command execution in milliseconds.", |
| 25072 | format: "int64", | 28115 | format: "int64", |
| 25073 | }).check(Schema.isInt()), | 28116 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 25074 | Schema.Null, | 28117 | Schema.Null, |
| 25075 | ]), | 28118 | ]), |
| 25076 | ), | 28119 | ), |
| ... | @@ -25079,7 +28122,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( | ... | @@ -25079,7 +28122,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 25079 | Schema.Number.annotate({ | 28122 | Schema.Number.annotate({ |
| 25080 | description: "The command's exit code.", | 28123 | description: "The command's exit code.", |
| 25081 | format: "int32", | 28124 | format: "int32", |
| 25082 | }).check(Schema.isInt()), | 28125 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 25083 | Schema.Null, | 28126 | Schema.Null, |
| 25084 | ]), | 28127 | ]), |
| 25085 | ), | 28128 | ), |
| ... | @@ -25093,40 +28136,38 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( | ... | @@ -25093,40 +28136,38 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 25093 | ]), | 28136 | ]), |
| 25094 | ), | 28137 | ), |
| 25095 | source: Schema.optionalKey( | 28138 | source: Schema.optionalKey( |
| 25096 | Schema.Literals([ | 28139 | Schema.suspend( |
| 25097 | "agent", | 28140 | (): Schema.Codec<V2ReviewStartResponse__CommandExecutionSource> => |
| 25098 | "userShell", | 28141 | V2ReviewStartResponse__CommandExecutionSource, |
| 25099 | "unifiedExecStartup", | 28142 | ).annotate({ default: "agent" }), |
| 25100 | "unifiedExecInteraction", | | |
| 25101 | ]).annotate({ default: "agent" }), | | |
| 25102 | ), | 28143 | ), |
| 25103 | status: V2ThreadResumeResponse__CommandExecutionStatus, | 28144 | status: V2ReviewStartResponse__CommandExecutionStatus, |
| 25104 | type: Schema.Literal("commandExecution").annotate({ | 28145 | type: Schema.Literal("commandExecution").annotate({ |
| 25105 | title: "CommandExecutionThreadItemType", | 28146 | title: "CommandExecutionThreadItemType", |
| 25106 | }), | 28147 | }), |
| 25107 | }).annotate({ title: "CommandExecutionThreadItem" }), | 28148 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 25108 | Schema.Struct({ | 28149 | Schema.Struct({ |
| 25109 | changes: Schema.Array(V2ThreadResumeResponse__FileUpdateChange), | 28150 | changes: Schema.Array(V2ReviewStartResponse__FileUpdateChange), |
| 25110 | id: Schema.String, | 28151 | id: Schema.String, |
| 25111 | status: V2ThreadResumeResponse__PatchApplyStatus, | 28152 | status: V2ReviewStartResponse__PatchApplyStatus, |
| 25112 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), | 28153 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 25113 | }).annotate({ title: "FileChangeThreadItem" }), | 28154 | }).annotate({ title: "FileChangeThreadItem" }), |
| 25114 | Schema.Struct({ | 28155 | Schema.Struct({ |
| 25115 | appContext: Schema.optionalKey( | 28156 | appContext: Schema.optionalKey( |
| 25116 | Schema.Union([V2ThreadResumeResponse__McpToolCallAppContext, Schema.Null]), | 28157 | Schema.Union([V2ReviewStartResponse__McpToolCallAppContext, Schema.Null]), |
| 25117 | ), | 28158 | ), |
| 25118 | arguments: Schema.Unknown, | 28159 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 25119 | durationMs: Schema.optionalKey( | 28160 | durationMs: Schema.optionalKey( |
| 25120 | Schema.Union([ | 28161 | Schema.Union([ |
| 25121 | Schema.Number.annotate({ | 28162 | Schema.Number.annotate({ |
| 25122 | description: "The duration of the MCP tool call in milliseconds.", | 28163 | description: "The duration of the MCP tool call in milliseconds.", |
| 25123 | format: "int64", | 28164 | format: "int64", |
| 25124 | }).check(Schema.isInt()), | 28165 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 25125 | Schema.Null, | 28166 | Schema.Null, |
| 25126 | ]), | 28167 | ]), |
| 25127 | ), | 28168 | ), |
| 25128 | error: Schema.optionalKey( | 28169 | error: Schema.optionalKey( |
| 25129 | Schema.Union([V2ThreadResumeResponse__McpToolCallError, Schema.Null]), | 28170 | Schema.Union([V2ReviewStartResponse__McpToolCallError, Schema.Null]), |
| 25130 | ), | 28171 | ), |
| 25131 | id: Schema.String, | 28172 | id: Schema.String, |
| 25132 | mcpAppResourceUri: Schema.optionalKey( | 28173 | mcpAppResourceUri: Schema.optionalKey( |
| ... | @@ -25139,18 +28180,18 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( | ... | @@ -25139,18 +28180,18 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 25139 | ), | 28180 | ), |
| 25140 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 28181 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 25141 | result: Schema.optionalKey( | 28182 | result: Schema.optionalKey( |
| 25142 | Schema.Union([V2ThreadResumeResponse__McpToolCallResult, Schema.Null]), | 28183 | Schema.Union([V2ReviewStartResponse__McpToolCallResult, Schema.Null]), |
| 25143 | ), | 28184 | ), |
| 25144 | server: Schema.String, | 28185 | server: Schema.String, |
| 25145 | status: V2ThreadResumeResponse__McpToolCallStatus, | 28186 | status: V2ReviewStartResponse__McpToolCallStatus, |
| 25146 | tool: Schema.String, | 28187 | tool: Schema.String, |
| 25147 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), | 28188 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 25148 | }).annotate({ title: "McpToolCallThreadItem" }), | 28189 | }).annotate({ title: "McpToolCallThreadItem" }), |
| 25149 | Schema.Struct({ | 28190 | Schema.Struct({ |
| 25150 | arguments: Schema.Unknown, | 28191 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 25151 | contentItems: Schema.optionalKey( | 28192 | contentItems: Schema.optionalKey( |
| 25152 | Schema.Union([ | 28193 | Schema.Union([ |
| 25153 | Schema.Array(V2ThreadResumeResponse__DynamicToolCallOutputContentItem), | 28194 | Schema.Array(V2ReviewStartResponse__DynamicToolCallOutputContentItem), |
| 25154 | Schema.Null, | 28195 | Schema.Null, |
| 25155 | ]), | 28196 | ]), |
| 25156 | ), | 28197 | ), |
| ... | @@ -25159,21 +28200,21 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( | ... | @@ -25159,21 +28200,21 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 25159 | Schema.Number.annotate({ | 28200 | Schema.Number.annotate({ |
| 25160 | description: "The duration of the dynamic tool call in milliseconds.", | 28201 | description: "The duration of the dynamic tool call in milliseconds.", |
| 25161 | format: "int64", | 28202 | format: "int64", |
| 25162 | }).check(Schema.isInt()), | 28203 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 25163 | Schema.Null, | 28204 | Schema.Null, |
| 25164 | ]), | 28205 | ]), |
| 25165 | ), | 28206 | ), |
| 25166 | id: Schema.String, | 28207 | id: Schema.String, |
| 25167 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 28208 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 25168 | status: V2ThreadResumeResponse__DynamicToolCallStatus, | 28209 | status: V2ReviewStartResponse__DynamicToolCallStatus, |
| 25169 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 28210 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 25170 | tool: Schema.String, | 28211 | tool: Schema.String, |
| 25171 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), | 28212 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 25172 | }).annotate({ title: "DynamicToolCallThreadItem" }), | 28213 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 25173 | Schema.Struct({ | 28214 | Schema.Struct({ |
| 25174 | agentsStates: Schema.Record(Schema.String, V2ThreadResumeResponse__CollabAgentState).annotate( | 28215 | agentsStates: Schema.Record(Schema.String, V2ReviewStartResponse__CollabAgentState).annotate({ |
| 25175 | { description: "Last known status of the target agents, when available." }, | 28216 | description: "Last known status of the target agents, when available.", |
| 25176 | ), | 28217 | }), |
| 25177 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), | 28218 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 25178 | model: Schema.optionalKey( | 28219 | model: Schema.optionalKey( |
| 25179 | Schema.Union([ | 28220 | Schema.Union([ |
| ... | @@ -25192,7 +28233,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( | ... | @@ -25192,7 +28233,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 25192 | ]), | 28233 | ]), |
| 25193 | ), | 28234 | ), |
| 25194 | reasoningEffort: Schema.optionalKey( | 28235 | reasoningEffort: Schema.optionalKey( |
| 25195 | Schema.Union([V2ThreadResumeResponse__ReasoningEffort, Schema.Null]).annotate({ | 28236 | Schema.Union([V2ReviewStartResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 25196 | description: "Reasoning effort requested for the spawned agent, when applicable.", | 28237 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 25197 | }), | 28238 | }), |
| 25198 | ), | 28239 | ), |
| ... | @@ -25203,20 +28244,14 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( | ... | @@ -25203,20 +28244,14 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 25203 | senderThreadId: Schema.String.annotate({ | 28244 | senderThreadId: Schema.String.annotate({ |
| 25204 | description: "Thread ID of the agent issuing the collab request.", | 28245 | description: "Thread ID of the agent issuing the collab request.", |
| 25205 | }), | 28246 | }), |
| 25206 | status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({ | 28247 | status: Schema.suspend( |
| 25207 | description: "Current status of the collab tool call.", | 28248 | (): Schema.Codec<V2ReviewStartResponse__CollabAgentToolCallStatus> => |
| 25208 | }), | 28249 | V2ReviewStartResponse__CollabAgentToolCallStatus, |
| 25209 | tool: Schema.Literals([ | 28250 | ).annotate({ description: "Current status of the collab tool call." }), |
| 25210 | "spawnAgent", | 28251 | tool: Schema.suspend( |
| 25211 | "sendInput", | 28252 | (): Schema.Codec<V2ReviewStartResponse__CollabAgentTool> => |
| 25212 | "resumeAgent", | 28253 | V2ReviewStartResponse__CollabAgentTool, |
| 25213 | "wait", | 28254 | ).annotate({ description: "Name of the collab tool that was invoked." }), |
| 25214 | "closeAgent", | | |
| 25215 | "sendMessage", | | |
| 25216 | "followupTask", | | |
| 25217 | "interruptAgent", | | |
| 25218 | "listAgents", | | |
| 25219 | ]).annotate({ description: "Name of the collab tool that was invoked." }), | | |
| 25220 | type: Schema.Literal("collabAgentToolCall").annotate({ | 28255 | type: Schema.Literal("collabAgentToolCall").annotate({ |
| 25221 | title: "CollabAgentToolCallThreadItemType", | 28256 | title: "CollabAgentToolCallThreadItemType", |
| 25222 | }), | 28257 | }), |
| ... | @@ -25225,20 +28260,20 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( | ... | @@ -25225,20 +28260,20 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 25225 | agentPath: Schema.String, | 28260 | agentPath: Schema.String, |
| 25226 | agentThreadId: Schema.String, | 28261 | agentThreadId: Schema.String, |
| 25227 | id: Schema.String, | 28262 | id: Schema.String, |
| 25228 | kind: V2ThreadResumeResponse__SubAgentActivityKind, | 28263 | kind: V2ReviewStartResponse__SubAgentActivityKind, |
| 25229 | type: Schema.Literal("subAgentActivity").annotate({ | 28264 | type: Schema.Literal("subAgentActivity").annotate({ |
| 25230 | title: "SubAgentActivityThreadItemType", | 28265 | title: "SubAgentActivityThreadItemType", |
| 25231 | }), | 28266 | }), |
| 25232 | }).annotate({ title: "SubAgentActivityThreadItem" }), | 28267 | }).annotate({ title: "SubAgentActivityThreadItem" }), |
| 25233 | Schema.Struct({ | 28268 | Schema.Struct({ |
| 25234 | action: Schema.optionalKey( | 28269 | action: Schema.optionalKey( |
| 25235 | Schema.Union([V2ThreadResumeResponse__WebSearchAction, Schema.Null]), | 28270 | Schema.Union([V2ReviewStartResponse__WebSearchAction, Schema.Null]), |
| 25236 | ), | 28271 | ), |
| 25237 | id: Schema.String, | 28272 | id: Schema.String, |
| 25238 | query: Schema.String, | 28273 | query: Schema.String, |
| 25239 | results: Schema.optionalKey( | 28274 | results: Schema.optionalKey( |
| 25240 | Schema.Union([ | 28275 | Schema.Union([ |
| 25241 | Schema.Array(Schema.Unknown).annotate({ | 28276 | Schema.Array(Schema.Json.annotate({ expected: "JSON value" })).annotate({ |
| 25242 | description: | 28277 | description: |
| 25243 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", | 28278 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", |
| 25244 | }), | 28279 | }), |
| ... | @@ -25249,13 +28284,17 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( | ... | @@ -25249,13 +28284,17 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 25249 | }).annotate({ title: "WebSearchThreadItem" }), | 28284 | }).annotate({ title: "WebSearchThreadItem" }), |
| 25250 | Schema.Struct({ | 28285 | Schema.Struct({ |
| 25251 | id: Schema.String, | 28286 | id: Schema.String, |
| 25252 | path: V2ThreadResumeResponse__LegacyAppPathString, | 28287 | path: V2ReviewStartResponse__LegacyAppPathString, |
| 25253 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), | 28288 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 25254 | }).annotate({ title: "ImageViewThreadItem" }), | 28289 | }).annotate({ title: "ImageViewThreadItem" }), |
| 25255 | Schema.Struct({ | 28290 | Schema.Struct({ |
| 25256 | durationMs: Schema.Number.annotate({ format: "uint64" }) | 28291 | durationMs: Schema.Number.annotate({ format: "uint64" }) |
| 25257 | .check(Schema.isInt()) | 28292 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 25258 | .check(Schema.isGreaterThanOrEqualTo(0)), | 28293 | .check( |
| | 28294 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 28295 | expected: "a value greater than or equal to 0", |
| | 28296 | }), |
| | 28297 | ), |
| 25259 | id: Schema.String, | 28298 | id: Schema.String, |
| 25260 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), | 28299 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), |
| 25261 | }).annotate({ | 28300 | }).annotate({ |
| ... | @@ -25267,7 +28306,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( | ... | @@ -25267,7 +28306,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 25267 | result: Schema.String, | 28306 | result: Schema.String, |
| 25268 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 28307 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 25269 | savedPath: Schema.optionalKey( | 28308 | savedPath: Schema.optionalKey( |
| 25270 | Schema.Union([V2ThreadResumeResponse__AbsolutePathBuf, Schema.Null]), | 28309 | Schema.Union([V2ReviewStartResponse__AbsolutePathBuf, Schema.Null]), |
| 25271 | ), | 28310 | ), |
| 25272 | status: Schema.String, | 28311 | status: Schema.String, |
| 25273 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 28312 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| ... | @@ -25294,37 +28333,35 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( | ... | @@ -25294,37 +28333,35 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 25294 | }).annotate({ title: "ContextCompactionThreadItem" }), | 28333 | }).annotate({ title: "ContextCompactionThreadItem" }), |
| 25295 | ], | 28334 | ], |
| 25296 | { mode: "oneOf" }, | 28335 | { mode: "oneOf" }, |
| 25297 | ); | 28336 | ).annotate({ identifier: "V2ReviewStartResponse__ThreadItem" }); |
| 25298 | | 28337 | |
| 25299 | export type V2ThreadRollbackResponse__TurnError = { | 28338 | export type V2SkillsListResponse__SkillsListEntry = { |
| 25300 | readonly additionalDetails?: string | null; | 28339 | readonly cwd: string; |
| 25301 | readonly codexErrorInfo?: V2ThreadRollbackResponse__CodexErrorInfo | null; | 28340 | readonly errors: ReadonlyArray<V2SkillsListResponse__SkillErrorInfo>; |
| 25302 | readonly message: string; | 28341 | readonly skills: ReadonlyArray<V2SkillsListResponse__SkillMetadata>; |
| 25303 | }; | 28342 | }; |
| 25304 | export const V2ThreadRollbackResponse__TurnError = Schema.Struct({ | 28343 | export const V2SkillsListResponse__SkillsListEntry = Schema.Struct({ |
| 25305 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 28344 | cwd: Schema.String, |
| 25306 | codexErrorInfo: Schema.optionalKey( | 28345 | errors: Schema.Array(V2SkillsListResponse__SkillErrorInfo), |
| 25307 | Schema.Union([V2ThreadRollbackResponse__CodexErrorInfo, Schema.Null]), | 28346 | skills: Schema.Array(V2SkillsListResponse__SkillMetadata), |
| 25308 | ), | 28347 | }).annotate({ identifier: "V2SkillsListResponse__SkillsListEntry" }); |
| 25309 | message: Schema.String, | | |
| 25310 | }); | | |
| 25311 | | 28348 | |
| 25312 | export type V2ThreadRollbackResponse__ThreadItem = | 28349 | export type V2ThreadForkResponse__ThreadItem = |
| 25313 | | { | 28350 | | { |
| 25314 | readonly clientId?: string | null; | 28351 | readonly clientId?: string | null; |
| 25315 | readonly content: ReadonlyArray<V2ThreadRollbackResponse__UserInput>; | 28352 | readonly content: ReadonlyArray<V2ThreadForkResponse__UserInput>; |
| 25316 | readonly id: string; | 28353 | readonly id: string; |
| 25317 | readonly type: "userMessage"; | 28354 | readonly type: "userMessage"; |
| 25318 | } | 28355 | } |
| 25319 | | { | 28356 | | { |
| 25320 | readonly fragments: ReadonlyArray<V2ThreadRollbackResponse__HookPromptFragment>; | 28357 | readonly fragments: ReadonlyArray<V2ThreadForkResponse__HookPromptFragment>; |
| 25321 | readonly id: string; | 28358 | readonly id: string; |
| 25322 | readonly type: "hookPrompt"; | 28359 | readonly type: "hookPrompt"; |
| 25323 | } | 28360 | } |
| 25324 | | { | 28361 | | { |
| 25325 | readonly id: string; | 28362 | readonly id: string; |
| 25326 | readonly memoryCitation?: V2ThreadRollbackResponse__MemoryCitation | null; | 28363 | readonly memoryCitation?: V2ThreadForkResponse__MemoryCitation | null; |
| 25327 | readonly phase?: V2ThreadRollbackResponse__MessagePhase | null; | 28364 | readonly phase?: V2ThreadForkResponse__MessagePhase | null; |
| 25328 | readonly text: string; | 28365 | readonly text: string; |
| 25329 | readonly delivery?: "async" | null; | 28366 | readonly delivery?: "async" | null; |
| 25330 | readonly questions?: ReadonlyArray<{ | 28367 | readonly questions?: ReadonlyArray<{ |
| ... | @@ -25343,85 +28380,76 @@ export type V2ThreadRollbackResponse__ThreadItem = | ... | @@ -25343,85 +28380,76 @@ export type V2ThreadRollbackResponse__ThreadItem = |
| 25343 | | { | 28380 | | { |
| 25344 | readonly aggregatedOutput?: string | null; | 28381 | readonly aggregatedOutput?: string | null; |
| 25345 | readonly command: string; | 28382 | readonly command: string; |
| 25346 | readonly commandActions: ReadonlyArray<V2ThreadRollbackResponse__CommandAction>; | 28383 | readonly commandActions: ReadonlyArray<V2ThreadForkResponse__CommandAction>; |
| 25347 | readonly cwd: string; | 28384 | readonly cwd: V2ThreadForkResponse__LegacyAppPathString; |
| 25348 | readonly durationMs?: number | null; | 28385 | readonly durationMs?: number | null; |
| 25349 | readonly exitCode?: number | null; | 28386 | readonly exitCode?: number | null; |
| 25350 | readonly id: string; | 28387 | readonly id: string; |
| 25351 | readonly processId?: string | null; | 28388 | readonly processId?: string | null; |
| 25352 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; | 28389 | readonly source?: V2ThreadForkResponse__CommandExecutionSource; |
| 25353 | readonly status: V2ThreadRollbackResponse__CommandExecutionStatus; | 28390 | readonly status: V2ThreadForkResponse__CommandExecutionStatus; |
| 25354 | readonly type: "commandExecution"; | 28391 | readonly type: "commandExecution"; |
| 25355 | } | 28392 | } |
| 25356 | | { | 28393 | | { |
| 25357 | readonly changes: ReadonlyArray<V2ThreadRollbackResponse__FileUpdateChange>; | 28394 | readonly changes: ReadonlyArray<V2ThreadForkResponse__FileUpdateChange>; |
| 25358 | readonly id: string; | 28395 | readonly id: string; |
| 25359 | readonly status: V2ThreadRollbackResponse__PatchApplyStatus; | 28396 | readonly status: V2ThreadForkResponse__PatchApplyStatus; |
| 25360 | readonly type: "fileChange"; | 28397 | readonly type: "fileChange"; |
| 25361 | } | 28398 | } |
| 25362 | | { | 28399 | | { |
| 25363 | readonly appContext?: V2ThreadRollbackResponse__McpToolCallAppContext | null; | 28400 | readonly appContext?: V2ThreadForkResponse__McpToolCallAppContext | null; |
| 25364 | readonly arguments: unknown; | 28401 | readonly arguments: Schema.Json; |
| 25365 | readonly durationMs?: number | null; | 28402 | readonly durationMs?: number | null; |
| 25366 | readonly error?: V2ThreadRollbackResponse__McpToolCallError | null; | 28403 | readonly error?: V2ThreadForkResponse__McpToolCallError | null; |
| 25367 | readonly id: string; | 28404 | readonly id: string; |
| 25368 | readonly mcpAppResourceUri?: string | null; | 28405 | readonly mcpAppResourceUri?: string | null; |
| 25369 | readonly pluginId?: string | null; | 28406 | readonly pluginId?: string | null; |
| 25370 | readonly result?: V2ThreadRollbackResponse__McpToolCallResult | null; | 28407 | readonly result?: V2ThreadForkResponse__McpToolCallResult | null; |
| 25371 | readonly server: string; | 28408 | readonly server: string; |
| 25372 | readonly status: V2ThreadRollbackResponse__McpToolCallStatus; | 28409 | readonly status: V2ThreadForkResponse__McpToolCallStatus; |
| 25373 | readonly tool: string; | 28410 | readonly tool: string; |
| 25374 | readonly type: "mcpToolCall"; | 28411 | readonly type: "mcpToolCall"; |
| 25375 | } | 28412 | } |
| 25376 | | { | 28413 | | { |
| 25377 | readonly arguments: unknown; | 28414 | readonly arguments: Schema.Json; |
| 25378 | readonly contentItems?: ReadonlyArray<V2ThreadRollbackResponse__DynamicToolCallOutputContentItem> | null; | 28415 | readonly contentItems?: ReadonlyArray<V2ThreadForkResponse__DynamicToolCallOutputContentItem> | null; |
| 25379 | readonly durationMs?: number | null; | 28416 | readonly durationMs?: number | null; |
| 25380 | readonly id: string; | 28417 | readonly id: string; |
| 25381 | readonly namespace?: string | null; | 28418 | readonly namespace?: string | null; |
| 25382 | readonly status: V2ThreadRollbackResponse__DynamicToolCallStatus; | 28419 | readonly status: V2ThreadForkResponse__DynamicToolCallStatus; |
| 25383 | readonly success?: boolean | null; | 28420 | readonly success?: boolean | null; |
| 25384 | readonly tool: string; | 28421 | readonly tool: string; |
| 25385 | readonly type: "dynamicToolCall"; | 28422 | readonly type: "dynamicToolCall"; |
| 25386 | } | 28423 | } |
| 25387 | | { | 28424 | | { |
| 25388 | readonly agentsStates: { readonly [x: string]: V2ThreadRollbackResponse__CollabAgentState }; | 28425 | readonly agentsStates: { readonly [x: string]: V2ThreadForkResponse__CollabAgentState }; |
| 25389 | readonly id: string; | 28426 | readonly id: string; |
| 25390 | readonly model?: string | null; | 28427 | readonly model?: string | null; |
| 25391 | readonly prompt?: string | null; | 28428 | readonly prompt?: string | null; |
| 25392 | readonly reasoningEffort?: V2ThreadRollbackResponse__ReasoningEffort | null; | 28429 | readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null; |
| 25393 | readonly receiverThreadIds: ReadonlyArray<string>; | 28430 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 25394 | readonly senderThreadId: string; | 28431 | readonly senderThreadId: string; |
| 25395 | readonly status: "inProgress" | "completed" | "failed" | "interrupted"; | 28432 | readonly status: V2ThreadForkResponse__CollabAgentToolCallStatus; |
| 25396 | readonly tool: | 28433 | readonly tool: V2ThreadForkResponse__CollabAgentTool; |
| 25397 | | "spawnAgent" | | |
| 25398 | | "sendInput" | | |
| 25399 | | "resumeAgent" | | |
| 25400 | | "wait" | | |
| 25401 | | "closeAgent" | | |
| 25402 | | "sendMessage" | | |
| 25403 | | "followupTask" | | |
| 25404 | | "interruptAgent" | | |
| 25405 | | "listAgents"; | | |
| 25406 | readonly type: "collabAgentToolCall"; | 28434 | readonly type: "collabAgentToolCall"; |
| 25407 | } | 28435 | } |
| 25408 | | { | 28436 | | { |
| 25409 | readonly agentPath: string; | 28437 | readonly agentPath: string; |
| 25410 | readonly agentThreadId: string; | 28438 | readonly agentThreadId: string; |
| 25411 | readonly id: string; | 28439 | readonly id: string; |
| 25412 | readonly kind: V2ThreadRollbackResponse__SubAgentActivityKind; | 28440 | readonly kind: V2ThreadForkResponse__SubAgentActivityKind; |
| 25413 | readonly type: "subAgentActivity"; | 28441 | readonly type: "subAgentActivity"; |
| 25414 | } | 28442 | } |
| 25415 | | { | 28443 | | { |
| 25416 | readonly action?: V2ThreadRollbackResponse__WebSearchAction | null; | 28444 | readonly action?: V2ThreadForkResponse__WebSearchAction | null; |
| 25417 | readonly id: string; | 28445 | readonly id: string; |
| 25418 | readonly query: string; | 28446 | readonly query: string; |
| 25419 | readonly results?: ReadonlyArray<unknown> | null; | 28447 | readonly results?: ReadonlyArray<Schema.Json> | null; |
| 25420 | readonly type: "webSearch"; | 28448 | readonly type: "webSearch"; |
| 25421 | } | 28449 | } |
| 25422 | | { | 28450 | | { |
| 25423 | readonly id: string; | 28451 | readonly id: string; |
| 25424 | readonly path: V2ThreadRollbackResponse__LegacyAppPathString; | 28452 | readonly path: V2ThreadForkResponse__LegacyAppPathString; |
| 25425 | readonly type: "imageView"; | 28453 | readonly type: "imageView"; |
| 25426 | } | 28454 | } |
| 25427 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | 28455 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| ... | @@ -25429,34 +28457,32 @@ export type V2ThreadRollbackResponse__ThreadItem = | ... | @@ -25429,34 +28457,32 @@ export type V2ThreadRollbackResponse__ThreadItem = |
| 25429 | readonly id: string; | 28457 | readonly id: string; |
| 25430 | readonly result: string; | 28458 | readonly result: string; |
| 25431 | readonly revisedPrompt?: string | null; | 28459 | readonly revisedPrompt?: string | null; |
| 25432 | readonly savedPath?: V2ThreadRollbackResponse__AbsolutePathBuf | null; | 28460 | readonly savedPath?: V2ThreadForkResponse__AbsolutePathBuf | null; |
| 25433 | readonly status: string; | 28461 | readonly status: string; |
| 25434 | readonly type: "imageGeneration"; | 28462 | readonly type: "imageGeneration"; |
| 25435 | } | 28463 | } |
| 25436 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 28464 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 25437 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } | 28465 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 25438 | | { readonly id: string; readonly type: "contextCompaction" }; | 28466 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 25439 | export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( | 28467 | export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 25440 | [ | 28468 | [ |
| 25441 | Schema.Struct({ | 28469 | Schema.Struct({ |
| 25442 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 28470 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 25443 | content: Schema.Array(V2ThreadRollbackResponse__UserInput), | 28471 | content: Schema.Array(V2ThreadForkResponse__UserInput), |
| 25444 | id: Schema.String, | 28472 | id: Schema.String, |
| 25445 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), | 28473 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 25446 | }).annotate({ title: "UserMessageThreadItem" }), | 28474 | }).annotate({ title: "UserMessageThreadItem" }), |
| 25447 | Schema.Struct({ | 28475 | Schema.Struct({ |
| 25448 | fragments: Schema.Array(V2ThreadRollbackResponse__HookPromptFragment), | 28476 | fragments: Schema.Array(V2ThreadForkResponse__HookPromptFragment), |
| 25449 | id: Schema.String, | 28477 | id: Schema.String, |
| 25450 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | 28478 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 25451 | }).annotate({ title: "HookPromptThreadItem" }), | 28479 | }).annotate({ title: "HookPromptThreadItem" }), |
| 25452 | Schema.Struct({ | 28480 | Schema.Struct({ |
| 25453 | id: Schema.String, | 28481 | id: Schema.String, |
| 25454 | memoryCitation: Schema.optionalKey( | 28482 | memoryCitation: Schema.optionalKey( |
| 25455 | Schema.Union([V2ThreadRollbackResponse__MemoryCitation, Schema.Null]), | 28483 | Schema.Union([V2ThreadForkResponse__MemoryCitation, Schema.Null]), |
| 25456 | ), | | |
| 25457 | phase: Schema.optionalKey( | | |
| 25458 | Schema.Union([V2ThreadRollbackResponse__MessagePhase, Schema.Null]), | | |
| 25459 | ), | 28484 | ), |
| | 28485 | phase: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__MessagePhase, Schema.Null])), |
| 25460 | text: Schema.String, | 28486 | text: Schema.String, |
| 25461 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | 28487 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), |
| 25462 | questions: Schema.optionalKey( | 28488 | questions: Schema.optionalKey( |
| ... | @@ -25497,17 +28523,20 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( | ... | @@ -25497,17 +28523,20 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 25497 | ]), | 28523 | ]), |
| 25498 | ), | 28524 | ), |
| 25499 | command: Schema.String.annotate({ description: "The command to be executed." }), | 28525 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 25500 | commandActions: Schema.Array(V2ThreadRollbackResponse__CommandAction).annotate({ | 28526 | commandActions: Schema.Array(V2ThreadForkResponse__CommandAction).annotate({ |
| 25501 | description: | 28527 | description: |
| 25502 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", | 28528 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 25503 | }), | 28529 | }), |
| 25504 | cwd: Schema.String.annotate({ description: "The command's working directory." }), | 28530 | cwd: Schema.suspend( |
| | 28531 | (): Schema.Codec<V2ThreadForkResponse__LegacyAppPathString> => |
| | 28532 | V2ThreadForkResponse__LegacyAppPathString, |
| | 28533 | ).annotate({ description: "The command's working directory." }), |
| 25505 | durationMs: Schema.optionalKey( | 28534 | durationMs: Schema.optionalKey( |
| 25506 | Schema.Union([ | 28535 | Schema.Union([ |
| 25507 | Schema.Number.annotate({ | 28536 | Schema.Number.annotate({ |
| 25508 | description: "The duration of the command execution in milliseconds.", | 28537 | description: "The duration of the command execution in milliseconds.", |
| 25509 | format: "int64", | 28538 | format: "int64", |
| 25510 | }).check(Schema.isInt()), | 28539 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 25511 | Schema.Null, | 28540 | Schema.Null, |
| 25512 | ]), | 28541 | ]), |
| 25513 | ), | 28542 | ), |
| ... | @@ -25516,7 +28545,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( | ... | @@ -25516,7 +28545,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 25516 | Schema.Number.annotate({ | 28545 | Schema.Number.annotate({ |
| 25517 | description: "The command's exit code.", | 28546 | description: "The command's exit code.", |
| 25518 | format: "int32", | 28547 | format: "int32", |
| 25519 | }).check(Schema.isInt()), | 28548 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 25520 | Schema.Null, | 28549 | Schema.Null, |
| 25521 | ]), | 28550 | ]), |
| 25522 | ), | 28551 | ), |
| ... | @@ -25530,40 +28559,38 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( | ... | @@ -25530,40 +28559,38 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 25530 | ]), | 28559 | ]), |
| 25531 | ), | 28560 | ), |
| 25532 | source: Schema.optionalKey( | 28561 | source: Schema.optionalKey( |
| 25533 | Schema.Literals([ | 28562 | Schema.suspend( |
| 25534 | "agent", | 28563 | (): Schema.Codec<V2ThreadForkResponse__CommandExecutionSource> => |
| 25535 | "userShell", | 28564 | V2ThreadForkResponse__CommandExecutionSource, |
| 25536 | "unifiedExecStartup", | 28565 | ).annotate({ default: "agent" }), |
| 25537 | "unifiedExecInteraction", | | |
| 25538 | ]).annotate({ default: "agent" }), | | |
| 25539 | ), | 28566 | ), |
| 25540 | status: V2ThreadRollbackResponse__CommandExecutionStatus, | 28567 | status: V2ThreadForkResponse__CommandExecutionStatus, |
| 25541 | type: Schema.Literal("commandExecution").annotate({ | 28568 | type: Schema.Literal("commandExecution").annotate({ |
| 25542 | title: "CommandExecutionThreadItemType", | 28569 | title: "CommandExecutionThreadItemType", |
| 25543 | }), | 28570 | }), |
| 25544 | }).annotate({ title: "CommandExecutionThreadItem" }), | 28571 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 25545 | Schema.Struct({ | 28572 | Schema.Struct({ |
| 25546 | changes: Schema.Array(V2ThreadRollbackResponse__FileUpdateChange), | 28573 | changes: Schema.Array(V2ThreadForkResponse__FileUpdateChange), |
| 25547 | id: Schema.String, | 28574 | id: Schema.String, |
| 25548 | status: V2ThreadRollbackResponse__PatchApplyStatus, | 28575 | status: V2ThreadForkResponse__PatchApplyStatus, |
| 25549 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), | 28576 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 25550 | }).annotate({ title: "FileChangeThreadItem" }), | 28577 | }).annotate({ title: "FileChangeThreadItem" }), |
| 25551 | Schema.Struct({ | 28578 | Schema.Struct({ |
| 25552 | appContext: Schema.optionalKey( | 28579 | appContext: Schema.optionalKey( |
| 25553 | Schema.Union([V2ThreadRollbackResponse__McpToolCallAppContext, Schema.Null]), | 28580 | Schema.Union([V2ThreadForkResponse__McpToolCallAppContext, Schema.Null]), |
| 25554 | ), | 28581 | ), |
| 25555 | arguments: Schema.Unknown, | 28582 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 25556 | durationMs: Schema.optionalKey( | 28583 | durationMs: Schema.optionalKey( |
| 25557 | Schema.Union([ | 28584 | Schema.Union([ |
| 25558 | Schema.Number.annotate({ | 28585 | Schema.Number.annotate({ |
| 25559 | description: "The duration of the MCP tool call in milliseconds.", | 28586 | description: "The duration of the MCP tool call in milliseconds.", |
| 25560 | format: "int64", | 28587 | format: "int64", |
| 25561 | }).check(Schema.isInt()), | 28588 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 25562 | Schema.Null, | 28589 | Schema.Null, |
| 25563 | ]), | 28590 | ]), |
| 25564 | ), | 28591 | ), |
| 25565 | error: Schema.optionalKey( | 28592 | error: Schema.optionalKey( |
| 25566 | Schema.Union([V2ThreadRollbackResponse__McpToolCallError, Schema.Null]), | 28593 | Schema.Union([V2ThreadForkResponse__McpToolCallError, Schema.Null]), |
| 25567 | ), | 28594 | ), |
| 25568 | id: Schema.String, | 28595 | id: Schema.String, |
| 25569 | mcpAppResourceUri: Schema.optionalKey( | 28596 | mcpAppResourceUri: Schema.optionalKey( |
| ... | @@ -25576,18 +28603,18 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( | ... | @@ -25576,18 +28603,18 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 25576 | ), | 28603 | ), |
| 25577 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 28604 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 25578 | result: Schema.optionalKey( | 28605 | result: Schema.optionalKey( |
| 25579 | Schema.Union([V2ThreadRollbackResponse__McpToolCallResult, Schema.Null]), | 28606 | Schema.Union([V2ThreadForkResponse__McpToolCallResult, Schema.Null]), |
| 25580 | ), | 28607 | ), |
| 25581 | server: Schema.String, | 28608 | server: Schema.String, |
| 25582 | status: V2ThreadRollbackResponse__McpToolCallStatus, | 28609 | status: V2ThreadForkResponse__McpToolCallStatus, |
| 25583 | tool: Schema.String, | 28610 | tool: Schema.String, |
| 25584 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), | 28611 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 25585 | }).annotate({ title: "McpToolCallThreadItem" }), | 28612 | }).annotate({ title: "McpToolCallThreadItem" }), |
| 25586 | Schema.Struct({ | 28613 | Schema.Struct({ |
| 25587 | arguments: Schema.Unknown, | 28614 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 25588 | contentItems: Schema.optionalKey( | 28615 | contentItems: Schema.optionalKey( |
| 25589 | Schema.Union([ | 28616 | Schema.Union([ |
| 25590 | Schema.Array(V2ThreadRollbackResponse__DynamicToolCallOutputContentItem), | 28617 | Schema.Array(V2ThreadForkResponse__DynamicToolCallOutputContentItem), |
| 25591 | Schema.Null, | 28618 | Schema.Null, |
| 25592 | ]), | 28619 | ]), |
| 25593 | ), | 28620 | ), |
| ... | @@ -25596,22 +28623,21 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( | ... | @@ -25596,22 +28623,21 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 25596 | Schema.Number.annotate({ | 28623 | Schema.Number.annotate({ |
| 25597 | description: "The duration of the dynamic tool call in milliseconds.", | 28624 | description: "The duration of the dynamic tool call in milliseconds.", |
| 25598 | format: "int64", | 28625 | format: "int64", |
| 25599 | }).check(Schema.isInt()), | 28626 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 25600 | Schema.Null, | 28627 | Schema.Null, |
| 25601 | ]), | 28628 | ]), |
| 25602 | ), | 28629 | ), |
| 25603 | id: Schema.String, | 28630 | id: Schema.String, |
| 25604 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 28631 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 25605 | status: V2ThreadRollbackResponse__DynamicToolCallStatus, | 28632 | status: V2ThreadForkResponse__DynamicToolCallStatus, |
| 25606 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 28633 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 25607 | tool: Schema.String, | 28634 | tool: Schema.String, |
| 25608 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), | 28635 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 25609 | }).annotate({ title: "DynamicToolCallThreadItem" }), | 28636 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 25610 | Schema.Struct({ | 28637 | Schema.Struct({ |
| 25611 | agentsStates: Schema.Record( | 28638 | agentsStates: Schema.Record(Schema.String, V2ThreadForkResponse__CollabAgentState).annotate({ |
| 25612 | Schema.String, | 28639 | description: "Last known status of the target agents, when available.", |
| 25613 | V2ThreadRollbackResponse__CollabAgentState, | 28640 | }), |
| 25614 | ).annotate({ description: "Last known status of the target agents, when available." }), | | |
| 25615 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), | 28641 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 25616 | model: Schema.optionalKey( | 28642 | model: Schema.optionalKey( |
| 25617 | Schema.Union([ | 28643 | Schema.Union([ |
| ... | @@ -25630,7 +28656,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( | ... | @@ -25630,7 +28656,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 25630 | ]), | 28656 | ]), |
| 25631 | ), | 28657 | ), |
| 25632 | reasoningEffort: Schema.optionalKey( | 28658 | reasoningEffort: Schema.optionalKey( |
| 25633 | Schema.Union([V2ThreadRollbackResponse__ReasoningEffort, Schema.Null]).annotate({ | 28659 | Schema.Union([V2ThreadForkResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 25634 | description: "Reasoning effort requested for the spawned agent, when applicable.", | 28660 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 25635 | }), | 28661 | }), |
| 25636 | ), | 28662 | ), |
| ... | @@ -25641,20 +28667,14 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( | ... | @@ -25641,20 +28667,14 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 25641 | senderThreadId: Schema.String.annotate({ | 28667 | senderThreadId: Schema.String.annotate({ |
| 25642 | description: "Thread ID of the agent issuing the collab request.", | 28668 | description: "Thread ID of the agent issuing the collab request.", |
| 25643 | }), | 28669 | }), |
| 25644 | status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({ | 28670 | status: Schema.suspend( |
| 25645 | description: "Current status of the collab tool call.", | 28671 | (): Schema.Codec<V2ThreadForkResponse__CollabAgentToolCallStatus> => |
| 25646 | }), | 28672 | V2ThreadForkResponse__CollabAgentToolCallStatus, |
| 25647 | tool: Schema.Literals([ | 28673 | ).annotate({ description: "Current status of the collab tool call." }), |
| 25648 | "spawnAgent", | 28674 | tool: Schema.suspend( |
| 25649 | "sendInput", | 28675 | (): Schema.Codec<V2ThreadForkResponse__CollabAgentTool> => |
| 25650 | "resumeAgent", | 28676 | V2ThreadForkResponse__CollabAgentTool, |
| 25651 | "wait", | 28677 | ).annotate({ description: "Name of the collab tool that was invoked." }), |
| 25652 | "closeAgent", | | |
| 25653 | "sendMessage", | | |
| 25654 | "followupTask", | | |
| 25655 | "interruptAgent", | | |
| 25656 | "listAgents", | | |
| 25657 | ]).annotate({ description: "Name of the collab tool that was invoked." }), | | |
| 25658 | type: Schema.Literal("collabAgentToolCall").annotate({ | 28678 | type: Schema.Literal("collabAgentToolCall").annotate({ |
| 25659 | title: "CollabAgentToolCallThreadItemType", | 28679 | title: "CollabAgentToolCallThreadItemType", |
| 25660 | }), | 28680 | }), |
| ... | @@ -25663,20 +28683,20 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( | ... | @@ -25663,20 +28683,20 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 25663 | agentPath: Schema.String, | 28683 | agentPath: Schema.String, |
| 25664 | agentThreadId: Schema.String, | 28684 | agentThreadId: Schema.String, |
| 25665 | id: Schema.String, | 28685 | id: Schema.String, |
| 25666 | kind: V2ThreadRollbackResponse__SubAgentActivityKind, | 28686 | kind: V2ThreadForkResponse__SubAgentActivityKind, |
| 25667 | type: Schema.Literal("subAgentActivity").annotate({ | 28687 | type: Schema.Literal("subAgentActivity").annotate({ |
| 25668 | title: "SubAgentActivityThreadItemType", | 28688 | title: "SubAgentActivityThreadItemType", |
| 25669 | }), | 28689 | }), |
| 25670 | }).annotate({ title: "SubAgentActivityThreadItem" }), | 28690 | }).annotate({ title: "SubAgentActivityThreadItem" }), |
| 25671 | Schema.Struct({ | 28691 | Schema.Struct({ |
| 25672 | action: Schema.optionalKey( | 28692 | action: Schema.optionalKey( |
| 25673 | Schema.Union([V2ThreadRollbackResponse__WebSearchAction, Schema.Null]), | 28693 | Schema.Union([V2ThreadForkResponse__WebSearchAction, Schema.Null]), |
| 25674 | ), | 28694 | ), |
| 25675 | id: Schema.String, | 28695 | id: Schema.String, |
| 25676 | query: Schema.String, | 28696 | query: Schema.String, |
| 25677 | results: Schema.optionalKey( | 28697 | results: Schema.optionalKey( |
| 25678 | Schema.Union([ | 28698 | Schema.Union([ |
| 25679 | Schema.Array(Schema.Unknown).annotate({ | 28699 | Schema.Array(Schema.Json.annotate({ expected: "JSON value" })).annotate({ |
| 25680 | description: | 28700 | description: |
| 25681 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", | 28701 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", |
| 25682 | }), | 28702 | }), |
| ... | @@ -25687,13 +28707,17 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( | ... | @@ -25687,13 +28707,17 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 25687 | }).annotate({ title: "WebSearchThreadItem" }), | 28707 | }).annotate({ title: "WebSearchThreadItem" }), |
| 25688 | Schema.Struct({ | 28708 | Schema.Struct({ |
| 25689 | id: Schema.String, | 28709 | id: Schema.String, |
| 25690 | path: V2ThreadRollbackResponse__LegacyAppPathString, | 28710 | path: V2ThreadForkResponse__LegacyAppPathString, |
| 25691 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), | 28711 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 25692 | }).annotate({ title: "ImageViewThreadItem" }), | 28712 | }).annotate({ title: "ImageViewThreadItem" }), |
| 25693 | Schema.Struct({ | 28713 | Schema.Struct({ |
| 25694 | durationMs: Schema.Number.annotate({ format: "uint64" }) | 28714 | durationMs: Schema.Number.annotate({ format: "uint64" }) |
| 25695 | .check(Schema.isInt()) | 28715 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 25696 | .check(Schema.isGreaterThanOrEqualTo(0)), | 28716 | .check( |
| | 28717 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 28718 | expected: "a value greater than or equal to 0", |
| | 28719 | }), |
| | 28720 | ), |
| 25697 | id: Schema.String, | 28721 | id: Schema.String, |
| 25698 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), | 28722 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), |
| 25699 | }).annotate({ | 28723 | }).annotate({ |
| ... | @@ -25705,7 +28729,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( | ... | @@ -25705,7 +28729,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 25705 | result: Schema.String, | 28729 | result: Schema.String, |
| 25706 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 28730 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 25707 | savedPath: Schema.optionalKey( | 28731 | savedPath: Schema.optionalKey( |
| 25708 | Schema.Union([V2ThreadRollbackResponse__AbsolutePathBuf, Schema.Null]), | 28732 | Schema.Union([V2ThreadForkResponse__AbsolutePathBuf, Schema.Null]), |
| 25709 | ), | 28733 | ), |
| 25710 | status: Schema.String, | 28734 | status: Schema.String, |
| 25711 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 28735 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| ... | @@ -25732,46 +28756,24 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( | ... | @@ -25732,46 +28756,24 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 25732 | }).annotate({ title: "ContextCompactionThreadItem" }), | 28756 | }).annotate({ title: "ContextCompactionThreadItem" }), |
| 25733 | ], | 28757 | ], |
| 25734 | { mode: "oneOf" }, | 28758 | { mode: "oneOf" }, |
| 25735 | ); | 28759 | ).annotate({ identifier: "V2ThreadForkResponse__ThreadItem" }); |
| 25736 | | | |
| 25737 | export type V2ThreadSettingsUpdatedNotification__CollaborationMode = { | | |
| 25738 | readonly mode: V2ThreadSettingsUpdatedNotification__ModeKind; | | |
| 25739 | readonly settings: V2ThreadSettingsUpdatedNotification__Settings; | | |
| 25740 | }; | | |
| 25741 | export const V2ThreadSettingsUpdatedNotification__CollaborationMode = Schema.Struct({ | | |
| 25742 | mode: V2ThreadSettingsUpdatedNotification__ModeKind, | | |
| 25743 | settings: V2ThreadSettingsUpdatedNotification__Settings, | | |
| 25744 | }).annotate({ description: "Collaboration mode for a Codex session." }); | | |
| 25745 | | 28760 | |
| 25746 | export type V2ThreadStartedNotification__TurnError = { | 28761 | export type V2ThreadListResponse__ThreadItem = |
| 25747 | readonly additionalDetails?: string | null; | | |
| 25748 | readonly codexErrorInfo?: V2ThreadStartedNotification__CodexErrorInfo | null; | | |
| 25749 | readonly message: string; | | |
| 25750 | }; | | |
| 25751 | export const V2ThreadStartedNotification__TurnError = Schema.Struct({ | | |
| 25752 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 25753 | codexErrorInfo: Schema.optionalKey( | | |
| 25754 | Schema.Union([V2ThreadStartedNotification__CodexErrorInfo, Schema.Null]), | | |
| 25755 | ), | | |
| 25756 | message: Schema.String, | | |
| 25757 | }); | | |
| 25758 | | | |
| 25759 | export type V2ThreadStartedNotification__ThreadItem = | | |
| 25760 | | { | 28762 | | { |
| 25761 | readonly clientId?: string | null; | 28763 | readonly clientId?: string | null; |
| 25762 | readonly content: ReadonlyArray<V2ThreadStartedNotification__UserInput>; | 28764 | readonly content: ReadonlyArray<V2ThreadListResponse__UserInput>; |
| 25763 | readonly id: string; | 28765 | readonly id: string; |
| 25764 | readonly type: "userMessage"; | 28766 | readonly type: "userMessage"; |
| 25765 | } | 28767 | } |
| 25766 | | { | 28768 | | { |
| 25767 | readonly fragments: ReadonlyArray<V2ThreadStartedNotification__HookPromptFragment>; | 28769 | readonly fragments: ReadonlyArray<V2ThreadListResponse__HookPromptFragment>; |
| 25768 | readonly id: string; | 28770 | readonly id: string; |
| 25769 | readonly type: "hookPrompt"; | 28771 | readonly type: "hookPrompt"; |
| 25770 | } | 28772 | } |
| 25771 | | { | 28773 | | { |
| 25772 | readonly id: string; | 28774 | readonly id: string; |
| 25773 | readonly memoryCitation?: V2ThreadStartedNotification__MemoryCitation | null; | 28775 | readonly memoryCitation?: V2ThreadListResponse__MemoryCitation | null; |
| 25774 | readonly phase?: V2ThreadStartedNotification__MessagePhase | null; | 28776 | readonly phase?: V2ThreadListResponse__MessagePhase | null; |
| 25775 | readonly text: string; | 28777 | readonly text: string; |
| 25776 | readonly delivery?: "async" | null; | 28778 | readonly delivery?: "async" | null; |
| 25777 | readonly questions?: ReadonlyArray<{ | 28779 | readonly questions?: ReadonlyArray<{ |
| ... | @@ -25790,87 +28792,76 @@ export type V2ThreadStartedNotification__ThreadItem = | ... | @@ -25790,87 +28792,76 @@ export type V2ThreadStartedNotification__ThreadItem = |
| 25790 | | { | 28792 | | { |
| 25791 | readonly aggregatedOutput?: string | null; | 28793 | readonly aggregatedOutput?: string | null; |
| 25792 | readonly command: string; | 28794 | readonly command: string; |
| 25793 | readonly commandActions: ReadonlyArray<V2ThreadStartedNotification__CommandAction>; | 28795 | readonly commandActions: ReadonlyArray<V2ThreadListResponse__CommandAction>; |
| 25794 | readonly cwd: string; | 28796 | readonly cwd: V2ThreadListResponse__LegacyAppPathString; |
| 25795 | readonly durationMs?: number | null; | 28797 | readonly durationMs?: number | null; |
| 25796 | readonly exitCode?: number | null; | 28798 | readonly exitCode?: number | null; |
| 25797 | readonly id: string; | 28799 | readonly id: string; |
| 25798 | readonly processId?: string | null; | 28800 | readonly processId?: string | null; |
| 25799 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; | 28801 | readonly source?: V2ThreadListResponse__CommandExecutionSource; |
| 25800 | readonly status: V2ThreadStartedNotification__CommandExecutionStatus; | 28802 | readonly status: V2ThreadListResponse__CommandExecutionStatus; |
| 25801 | readonly type: "commandExecution"; | 28803 | readonly type: "commandExecution"; |
| 25802 | } | 28804 | } |
| 25803 | | { | 28805 | | { |
| 25804 | readonly changes: ReadonlyArray<V2ThreadStartedNotification__FileUpdateChange>; | 28806 | readonly changes: ReadonlyArray<V2ThreadListResponse__FileUpdateChange>; |
| 25805 | readonly id: string; | 28807 | readonly id: string; |
| 25806 | readonly status: V2ThreadStartedNotification__PatchApplyStatus; | 28808 | readonly status: V2ThreadListResponse__PatchApplyStatus; |
| 25807 | readonly type: "fileChange"; | 28809 | readonly type: "fileChange"; |
| 25808 | } | 28810 | } |
| 25809 | | { | 28811 | | { |
| 25810 | readonly appContext?: V2ThreadStartedNotification__McpToolCallAppContext | null; | 28812 | readonly appContext?: V2ThreadListResponse__McpToolCallAppContext | null; |
| 25811 | readonly arguments: unknown; | 28813 | readonly arguments: Schema.Json; |
| 25812 | readonly durationMs?: number | null; | 28814 | readonly durationMs?: number | null; |
| 25813 | readonly error?: V2ThreadStartedNotification__McpToolCallError | null; | 28815 | readonly error?: V2ThreadListResponse__McpToolCallError | null; |
| 25814 | readonly id: string; | 28816 | readonly id: string; |
| 25815 | readonly mcpAppResourceUri?: string | null; | 28817 | readonly mcpAppResourceUri?: string | null; |
| 25816 | readonly pluginId?: string | null; | 28818 | readonly pluginId?: string | null; |
| 25817 | readonly result?: V2ThreadStartedNotification__McpToolCallResult | null; | 28819 | readonly result?: V2ThreadListResponse__McpToolCallResult | null; |
| 25818 | readonly server: string; | 28820 | readonly server: string; |
| 25819 | readonly status: V2ThreadStartedNotification__McpToolCallStatus; | 28821 | readonly status: V2ThreadListResponse__McpToolCallStatus; |
| 25820 | readonly tool: string; | 28822 | readonly tool: string; |
| 25821 | readonly type: "mcpToolCall"; | 28823 | readonly type: "mcpToolCall"; |
| 25822 | } | 28824 | } |
| 25823 | | { | 28825 | | { |
| 25824 | readonly arguments: unknown; | 28826 | readonly arguments: Schema.Json; |
| 25825 | readonly contentItems?: ReadonlyArray<V2ThreadStartedNotification__DynamicToolCallOutputContentItem> | null; | 28827 | readonly contentItems?: ReadonlyArray<V2ThreadListResponse__DynamicToolCallOutputContentItem> | null; |
| 25826 | readonly durationMs?: number | null; | 28828 | readonly durationMs?: number | null; |
| 25827 | readonly id: string; | 28829 | readonly id: string; |
| 25828 | readonly namespace?: string | null; | 28830 | readonly namespace?: string | null; |
| 25829 | readonly status: V2ThreadStartedNotification__DynamicToolCallStatus; | 28831 | readonly status: V2ThreadListResponse__DynamicToolCallStatus; |
| 25830 | readonly success?: boolean | null; | 28832 | readonly success?: boolean | null; |
| 25831 | readonly tool: string; | 28833 | readonly tool: string; |
| 25832 | readonly type: "dynamicToolCall"; | 28834 | readonly type: "dynamicToolCall"; |
| 25833 | } | 28835 | } |
| 25834 | | { | 28836 | | { |
| 25835 | readonly agentsStates: { | 28837 | readonly agentsStates: { readonly [x: string]: V2ThreadListResponse__CollabAgentState }; |
| 25836 | readonly [x: string]: V2ThreadStartedNotification__CollabAgentState; | | |
| 25837 | }; | | |
| 25838 | readonly id: string; | 28838 | readonly id: string; |
| 25839 | readonly model?: string | null; | 28839 | readonly model?: string | null; |
| 25840 | readonly prompt?: string | null; | 28840 | readonly prompt?: string | null; |
| 25841 | readonly reasoningEffort?: V2ThreadStartedNotification__ReasoningEffort | null; | 28841 | readonly reasoningEffort?: V2ThreadListResponse__ReasoningEffort | null; |
| 25842 | readonly receiverThreadIds: ReadonlyArray<string>; | 28842 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 25843 | readonly senderThreadId: string; | 28843 | readonly senderThreadId: string; |
| 25844 | readonly status: "inProgress" | "completed" | "failed" | "interrupted"; | 28844 | readonly status: V2ThreadListResponse__CollabAgentToolCallStatus; |
| 25845 | readonly tool: | 28845 | readonly tool: V2ThreadListResponse__CollabAgentTool; |
| 25846 | | "spawnAgent" | | |
| 25847 | | "sendInput" | | |
| 25848 | | "resumeAgent" | | |
| 25849 | | "wait" | | |
| 25850 | | "closeAgent" | | |
| 25851 | | "sendMessage" | | |
| 25852 | | "followupTask" | | |
| 25853 | | "interruptAgent" | | |
| 25854 | | "listAgents"; | | |
| 25855 | readonly type: "collabAgentToolCall"; | 28846 | readonly type: "collabAgentToolCall"; |
| 25856 | } | 28847 | } |
| 25857 | | { | 28848 | | { |
| 25858 | readonly agentPath: string; | 28849 | readonly agentPath: string; |
| 25859 | readonly agentThreadId: string; | 28850 | readonly agentThreadId: string; |
| 25860 | readonly id: string; | 28851 | readonly id: string; |
| 25861 | readonly kind: V2ThreadStartedNotification__SubAgentActivityKind; | 28852 | readonly kind: V2ThreadListResponse__SubAgentActivityKind; |
| 25862 | readonly type: "subAgentActivity"; | 28853 | readonly type: "subAgentActivity"; |
| 25863 | } | 28854 | } |
| 25864 | | { | 28855 | | { |
| 25865 | readonly action?: V2ThreadStartedNotification__WebSearchAction | null; | 28856 | readonly action?: V2ThreadListResponse__WebSearchAction | null; |
| 25866 | readonly id: string; | 28857 | readonly id: string; |
| 25867 | readonly query: string; | 28858 | readonly query: string; |
| 25868 | readonly results?: ReadonlyArray<unknown> | null; | 28859 | readonly results?: ReadonlyArray<Schema.Json> | null; |
| 25869 | readonly type: "webSearch"; | 28860 | readonly type: "webSearch"; |
| 25870 | } | 28861 | } |
| 25871 | | { | 28862 | | { |
| 25872 | readonly id: string; | 28863 | readonly id: string; |
| 25873 | readonly path: V2ThreadStartedNotification__LegacyAppPathString; | 28864 | readonly path: V2ThreadListResponse__LegacyAppPathString; |
| 25874 | readonly type: "imageView"; | 28865 | readonly type: "imageView"; |
| 25875 | } | 28866 | } |
| 25876 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | 28867 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| ... | @@ -25878,34 +28869,32 @@ export type V2ThreadStartedNotification__ThreadItem = | ... | @@ -25878,34 +28869,32 @@ export type V2ThreadStartedNotification__ThreadItem = |
| 25878 | readonly id: string; | 28869 | readonly id: string; |
| 25879 | readonly result: string; | 28870 | readonly result: string; |
| 25880 | readonly revisedPrompt?: string | null; | 28871 | readonly revisedPrompt?: string | null; |
| 25881 | readonly savedPath?: V2ThreadStartedNotification__AbsolutePathBuf | null; | 28872 | readonly savedPath?: V2ThreadListResponse__AbsolutePathBuf | null; |
| 25882 | readonly status: string; | 28873 | readonly status: string; |
| 25883 | readonly type: "imageGeneration"; | 28874 | readonly type: "imageGeneration"; |
| 25884 | } | 28875 | } |
| 25885 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 28876 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 25886 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } | 28877 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 25887 | | { readonly id: string; readonly type: "contextCompaction" }; | 28878 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 25888 | export const V2ThreadStartedNotification__ThreadItem = Schema.Union( | 28879 | export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 25889 | [ | 28880 | [ |
| 25890 | Schema.Struct({ | 28881 | Schema.Struct({ |
| 25891 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 28882 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 25892 | content: Schema.Array(V2ThreadStartedNotification__UserInput), | 28883 | content: Schema.Array(V2ThreadListResponse__UserInput), |
| 25893 | id: Schema.String, | 28884 | id: Schema.String, |
| 25894 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), | 28885 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 25895 | }).annotate({ title: "UserMessageThreadItem" }), | 28886 | }).annotate({ title: "UserMessageThreadItem" }), |
| 25896 | Schema.Struct({ | 28887 | Schema.Struct({ |
| 25897 | fragments: Schema.Array(V2ThreadStartedNotification__HookPromptFragment), | 28888 | fragments: Schema.Array(V2ThreadListResponse__HookPromptFragment), |
| 25898 | id: Schema.String, | 28889 | id: Schema.String, |
| 25899 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | 28890 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 25900 | }).annotate({ title: "HookPromptThreadItem" }), | 28891 | }).annotate({ title: "HookPromptThreadItem" }), |
| 25901 | Schema.Struct({ | 28892 | Schema.Struct({ |
| 25902 | id: Schema.String, | 28893 | id: Schema.String, |
| 25903 | memoryCitation: Schema.optionalKey( | 28894 | memoryCitation: Schema.optionalKey( |
| 25904 | Schema.Union([V2ThreadStartedNotification__MemoryCitation, Schema.Null]), | 28895 | Schema.Union([V2ThreadListResponse__MemoryCitation, Schema.Null]), |
| 25905 | ), | | |
| 25906 | phase: Schema.optionalKey( | | |
| 25907 | Schema.Union([V2ThreadStartedNotification__MessagePhase, Schema.Null]), | | |
| 25908 | ), | 28896 | ), |
| | 28897 | phase: Schema.optionalKey(Schema.Union([V2ThreadListResponse__MessagePhase, Schema.Null])), |
| 25909 | text: Schema.String, | 28898 | text: Schema.String, |
| 25910 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | 28899 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), |
| 25911 | questions: Schema.optionalKey( | 28900 | questions: Schema.optionalKey( |
| ... | @@ -25946,17 +28935,20 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( | ... | @@ -25946,17 +28935,20 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 25946 | ]), | 28935 | ]), |
| 25947 | ), | 28936 | ), |
| 25948 | command: Schema.String.annotate({ description: "The command to be executed." }), | 28937 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 25949 | commandActions: Schema.Array(V2ThreadStartedNotification__CommandAction).annotate({ | 28938 | commandActions: Schema.Array(V2ThreadListResponse__CommandAction).annotate({ |
| 25950 | description: | 28939 | description: |
| 25951 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", | 28940 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 25952 | }), | 28941 | }), |
| 25953 | cwd: Schema.String.annotate({ description: "The command's working directory." }), | 28942 | cwd: Schema.suspend( |
| | 28943 | (): Schema.Codec<V2ThreadListResponse__LegacyAppPathString> => |
| | 28944 | V2ThreadListResponse__LegacyAppPathString, |
| | 28945 | ).annotate({ description: "The command's working directory." }), |
| 25954 | durationMs: Schema.optionalKey( | 28946 | durationMs: Schema.optionalKey( |
| 25955 | Schema.Union([ | 28947 | Schema.Union([ |
| 25956 | Schema.Number.annotate({ | 28948 | Schema.Number.annotate({ |
| 25957 | description: "The duration of the command execution in milliseconds.", | 28949 | description: "The duration of the command execution in milliseconds.", |
| 25958 | format: "int64", | 28950 | format: "int64", |
| 25959 | }).check(Schema.isInt()), | 28951 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 25960 | Schema.Null, | 28952 | Schema.Null, |
| 25961 | ]), | 28953 | ]), |
| 25962 | ), | 28954 | ), |
| ... | @@ -25965,7 +28957,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( | ... | @@ -25965,7 +28957,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 25965 | Schema.Number.annotate({ | 28957 | Schema.Number.annotate({ |
| 25966 | description: "The command's exit code.", | 28958 | description: "The command's exit code.", |
| 25967 | format: "int32", | 28959 | format: "int32", |
| 25968 | }).check(Schema.isInt()), | 28960 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 25969 | Schema.Null, | 28961 | Schema.Null, |
| 25970 | ]), | 28962 | ]), |
| 25971 | ), | 28963 | ), |
| ... | @@ -25979,40 +28971,38 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( | ... | @@ -25979,40 +28971,38 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 25979 | ]), | 28971 | ]), |
| 25980 | ), | 28972 | ), |
| 25981 | source: Schema.optionalKey( | 28973 | source: Schema.optionalKey( |
| 25982 | Schema.Literals([ | 28974 | Schema.suspend( |
| 25983 | "agent", | 28975 | (): Schema.Codec<V2ThreadListResponse__CommandExecutionSource> => |
| 25984 | "userShell", | 28976 | V2ThreadListResponse__CommandExecutionSource, |
| 25985 | "unifiedExecStartup", | 28977 | ).annotate({ default: "agent" }), |
| 25986 | "unifiedExecInteraction", | | |
| 25987 | ]).annotate({ default: "agent" }), | | |
| 25988 | ), | 28978 | ), |
| 25989 | status: V2ThreadStartedNotification__CommandExecutionStatus, | 28979 | status: V2ThreadListResponse__CommandExecutionStatus, |
| 25990 | type: Schema.Literal("commandExecution").annotate({ | 28980 | type: Schema.Literal("commandExecution").annotate({ |
| 25991 | title: "CommandExecutionThreadItemType", | 28981 | title: "CommandExecutionThreadItemType", |
| 25992 | }), | 28982 | }), |
| 25993 | }).annotate({ title: "CommandExecutionThreadItem" }), | 28983 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 25994 | Schema.Struct({ | 28984 | Schema.Struct({ |
| 25995 | changes: Schema.Array(V2ThreadStartedNotification__FileUpdateChange), | 28985 | changes: Schema.Array(V2ThreadListResponse__FileUpdateChange), |
| 25996 | id: Schema.String, | 28986 | id: Schema.String, |
| 25997 | status: V2ThreadStartedNotification__PatchApplyStatus, | 28987 | status: V2ThreadListResponse__PatchApplyStatus, |
| 25998 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), | 28988 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 25999 | }).annotate({ title: "FileChangeThreadItem" }), | 28989 | }).annotate({ title: "FileChangeThreadItem" }), |
| 26000 | Schema.Struct({ | 28990 | Schema.Struct({ |
| 26001 | appContext: Schema.optionalKey( | 28991 | appContext: Schema.optionalKey( |
| 26002 | Schema.Union([V2ThreadStartedNotification__McpToolCallAppContext, Schema.Null]), | 28992 | Schema.Union([V2ThreadListResponse__McpToolCallAppContext, Schema.Null]), |
| 26003 | ), | 28993 | ), |
| 26004 | arguments: Schema.Unknown, | 28994 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 26005 | durationMs: Schema.optionalKey( | 28995 | durationMs: Schema.optionalKey( |
| 26006 | Schema.Union([ | 28996 | Schema.Union([ |
| 26007 | Schema.Number.annotate({ | 28997 | Schema.Number.annotate({ |
| 26008 | description: "The duration of the MCP tool call in milliseconds.", | 28998 | description: "The duration of the MCP tool call in milliseconds.", |
| 26009 | format: "int64", | 28999 | format: "int64", |
| 26010 | }).check(Schema.isInt()), | 29000 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 26011 | Schema.Null, | 29001 | Schema.Null, |
| 26012 | ]), | 29002 | ]), |
| 26013 | ), | 29003 | ), |
| 26014 | error: Schema.optionalKey( | 29004 | error: Schema.optionalKey( |
| 26015 | Schema.Union([V2ThreadStartedNotification__McpToolCallError, Schema.Null]), | 29005 | Schema.Union([V2ThreadListResponse__McpToolCallError, Schema.Null]), |
| 26016 | ), | 29006 | ), |
| 26017 | id: Schema.String, | 29007 | id: Schema.String, |
| 26018 | mcpAppResourceUri: Schema.optionalKey( | 29008 | mcpAppResourceUri: Schema.optionalKey( |
| ... | @@ -26025,18 +29015,18 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( | ... | @@ -26025,18 +29015,18 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 26025 | ), | 29015 | ), |
| 26026 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 29016 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 26027 | result: Schema.optionalKey( | 29017 | result: Schema.optionalKey( |
| 26028 | Schema.Union([V2ThreadStartedNotification__McpToolCallResult, Schema.Null]), | 29018 | Schema.Union([V2ThreadListResponse__McpToolCallResult, Schema.Null]), |
| 26029 | ), | 29019 | ), |
| 26030 | server: Schema.String, | 29020 | server: Schema.String, |
| 26031 | status: V2ThreadStartedNotification__McpToolCallStatus, | 29021 | status: V2ThreadListResponse__McpToolCallStatus, |
| 26032 | tool: Schema.String, | 29022 | tool: Schema.String, |
| 26033 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), | 29023 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 26034 | }).annotate({ title: "McpToolCallThreadItem" }), | 29024 | }).annotate({ title: "McpToolCallThreadItem" }), |
| 26035 | Schema.Struct({ | 29025 | Schema.Struct({ |
| 26036 | arguments: Schema.Unknown, | 29026 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 26037 | contentItems: Schema.optionalKey( | 29027 | contentItems: Schema.optionalKey( |
| 26038 | Schema.Union([ | 29028 | Schema.Union([ |
| 26039 | Schema.Array(V2ThreadStartedNotification__DynamicToolCallOutputContentItem), | 29029 | Schema.Array(V2ThreadListResponse__DynamicToolCallOutputContentItem), |
| 26040 | Schema.Null, | 29030 | Schema.Null, |
| 26041 | ]), | 29031 | ]), |
| 26042 | ), | 29032 | ), |
| ... | @@ -26045,22 +29035,21 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( | ... | @@ -26045,22 +29035,21 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 26045 | Schema.Number.annotate({ | 29035 | Schema.Number.annotate({ |
| 26046 | description: "The duration of the dynamic tool call in milliseconds.", | 29036 | description: "The duration of the dynamic tool call in milliseconds.", |
| 26047 | format: "int64", | 29037 | format: "int64", |
| 26048 | }).check(Schema.isInt()), | 29038 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 26049 | Schema.Null, | 29039 | Schema.Null, |
| 26050 | ]), | 29040 | ]), |
| 26051 | ), | 29041 | ), |
| 26052 | id: Schema.String, | 29042 | id: Schema.String, |
| 26053 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 29043 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 26054 | status: V2ThreadStartedNotification__DynamicToolCallStatus, | 29044 | status: V2ThreadListResponse__DynamicToolCallStatus, |
| 26055 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 29045 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 26056 | tool: Schema.String, | 29046 | tool: Schema.String, |
| 26057 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), | 29047 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 26058 | }).annotate({ title: "DynamicToolCallThreadItem" }), | 29048 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 26059 | Schema.Struct({ | 29049 | Schema.Struct({ |
| 26060 | agentsStates: Schema.Record( | 29050 | agentsStates: Schema.Record(Schema.String, V2ThreadListResponse__CollabAgentState).annotate({ |
| 26061 | Schema.String, | 29051 | description: "Last known status of the target agents, when available.", |
| 26062 | V2ThreadStartedNotification__CollabAgentState, | 29052 | }), |
| 26063 | ).annotate({ description: "Last known status of the target agents, when available." }), | | |
| 26064 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), | 29053 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 26065 | model: Schema.optionalKey( | 29054 | model: Schema.optionalKey( |
| 26066 | Schema.Union([ | 29055 | Schema.Union([ |
| ... | @@ -26079,7 +29068,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( | ... | @@ -26079,7 +29068,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 26079 | ]), | 29068 | ]), |
| 26080 | ), | 29069 | ), |
| 26081 | reasoningEffort: Schema.optionalKey( | 29070 | reasoningEffort: Schema.optionalKey( |
| 26082 | Schema.Union([V2ThreadStartedNotification__ReasoningEffort, Schema.Null]).annotate({ | 29071 | Schema.Union([V2ThreadListResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 26083 | description: "Reasoning effort requested for the spawned agent, when applicable.", | 29072 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 26084 | }), | 29073 | }), |
| 26085 | ), | 29074 | ), |
| ... | @@ -26090,20 +29079,14 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( | ... | @@ -26090,20 +29079,14 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 26090 | senderThreadId: Schema.String.annotate({ | 29079 | senderThreadId: Schema.String.annotate({ |
| 26091 | description: "Thread ID of the agent issuing the collab request.", | 29080 | description: "Thread ID of the agent issuing the collab request.", |
| 26092 | }), | 29081 | }), |
| 26093 | status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({ | 29082 | status: Schema.suspend( |
| 26094 | description: "Current status of the collab tool call.", | 29083 | (): Schema.Codec<V2ThreadListResponse__CollabAgentToolCallStatus> => |
| 26095 | }), | 29084 | V2ThreadListResponse__CollabAgentToolCallStatus, |
| 26096 | tool: Schema.Literals([ | 29085 | ).annotate({ description: "Current status of the collab tool call." }), |
| 26097 | "spawnAgent", | 29086 | tool: Schema.suspend( |
| 26098 | "sendInput", | 29087 | (): Schema.Codec<V2ThreadListResponse__CollabAgentTool> => |
| 26099 | "resumeAgent", | 29088 | V2ThreadListResponse__CollabAgentTool, |
| 26100 | "wait", | 29089 | ).annotate({ description: "Name of the collab tool that was invoked." }), |
| 26101 | "closeAgent", | | |
| 26102 | "sendMessage", | | |
| 26103 | "followupTask", | | |
| 26104 | "interruptAgent", | | |
| 26105 | "listAgents", | | |
| 26106 | ]).annotate({ description: "Name of the collab tool that was invoked." }), | | |
| 26107 | type: Schema.Literal("collabAgentToolCall").annotate({ | 29090 | type: Schema.Literal("collabAgentToolCall").annotate({ |
| 26108 | title: "CollabAgentToolCallThreadItemType", | 29091 | title: "CollabAgentToolCallThreadItemType", |
| 26109 | }), | 29092 | }), |
| ... | @@ -26112,20 +29095,20 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( | ... | @@ -26112,20 +29095,20 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 26112 | agentPath: Schema.String, | 29095 | agentPath: Schema.String, |
| 26113 | agentThreadId: Schema.String, | 29096 | agentThreadId: Schema.String, |
| 26114 | id: Schema.String, | 29097 | id: Schema.String, |
| 26115 | kind: V2ThreadStartedNotification__SubAgentActivityKind, | 29098 | kind: V2ThreadListResponse__SubAgentActivityKind, |
| 26116 | type: Schema.Literal("subAgentActivity").annotate({ | 29099 | type: Schema.Literal("subAgentActivity").annotate({ |
| 26117 | title: "SubAgentActivityThreadItemType", | 29100 | title: "SubAgentActivityThreadItemType", |
| 26118 | }), | 29101 | }), |
| 26119 | }).annotate({ title: "SubAgentActivityThreadItem" }), | 29102 | }).annotate({ title: "SubAgentActivityThreadItem" }), |
| 26120 | Schema.Struct({ | 29103 | Schema.Struct({ |
| 26121 | action: Schema.optionalKey( | 29104 | action: Schema.optionalKey( |
| 26122 | Schema.Union([V2ThreadStartedNotification__WebSearchAction, Schema.Null]), | 29105 | Schema.Union([V2ThreadListResponse__WebSearchAction, Schema.Null]), |
| 26123 | ), | 29106 | ), |
| 26124 | id: Schema.String, | 29107 | id: Schema.String, |
| 26125 | query: Schema.String, | 29108 | query: Schema.String, |
| 26126 | results: Schema.optionalKey( | 29109 | results: Schema.optionalKey( |
| 26127 | Schema.Union([ | 29110 | Schema.Union([ |
| 26128 | Schema.Array(Schema.Unknown).annotate({ | 29111 | Schema.Array(Schema.Json.annotate({ expected: "JSON value" })).annotate({ |
| 26129 | description: | 29112 | description: |
| 26130 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", | 29113 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", |
| 26131 | }), | 29114 | }), |
| ... | @@ -26136,13 +29119,17 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( | ... | @@ -26136,13 +29119,17 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 26136 | }).annotate({ title: "WebSearchThreadItem" }), | 29119 | }).annotate({ title: "WebSearchThreadItem" }), |
| 26137 | Schema.Struct({ | 29120 | Schema.Struct({ |
| 26138 | id: Schema.String, | 29121 | id: Schema.String, |
| 26139 | path: V2ThreadStartedNotification__LegacyAppPathString, | 29122 | path: V2ThreadListResponse__LegacyAppPathString, |
| 26140 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), | 29123 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 26141 | }).annotate({ title: "ImageViewThreadItem" }), | 29124 | }).annotate({ title: "ImageViewThreadItem" }), |
| 26142 | Schema.Struct({ | 29125 | Schema.Struct({ |
| 26143 | durationMs: Schema.Number.annotate({ format: "uint64" }) | 29126 | durationMs: Schema.Number.annotate({ format: "uint64" }) |
| 26144 | .check(Schema.isInt()) | 29127 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 26145 | .check(Schema.isGreaterThanOrEqualTo(0)), | 29128 | .check( |
| | 29129 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 29130 | expected: "a value greater than or equal to 0", |
| | 29131 | }), |
| | 29132 | ), |
| 26146 | id: Schema.String, | 29133 | id: Schema.String, |
| 26147 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), | 29134 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), |
| 26148 | }).annotate({ | 29135 | }).annotate({ |
| ... | @@ -26154,7 +29141,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( | ... | @@ -26154,7 +29141,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 26154 | result: Schema.String, | 29141 | result: Schema.String, |
| 26155 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 29142 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 26156 | savedPath: Schema.optionalKey( | 29143 | savedPath: Schema.optionalKey( |
| 26157 | Schema.Union([V2ThreadStartedNotification__AbsolutePathBuf, Schema.Null]), | 29144 | Schema.Union([V2ThreadListResponse__AbsolutePathBuf, Schema.Null]), |
| 26158 | ), | 29145 | ), |
| 26159 | status: Schema.String, | 29146 | status: Schema.String, |
| 26160 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 29147 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| ... | @@ -26181,37 +29168,24 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( | ... | @@ -26181,37 +29168,24 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 26181 | }).annotate({ title: "ContextCompactionThreadItem" }), | 29168 | }).annotate({ title: "ContextCompactionThreadItem" }), |
| 26182 | ], | 29169 | ], |
| 26183 | { mode: "oneOf" }, | 29170 | { mode: "oneOf" }, |
| 26184 | ); | 29171 | ).annotate({ identifier: "V2ThreadListResponse__ThreadItem" }); |
| 26185 | | 29172 | |
| 26186 | export type V2ThreadStartResponse__TurnError = { | 29173 | export type V2ThreadMetadataUpdateResponse__ThreadItem = |
| 26187 | readonly additionalDetails?: string | null; | | |
| 26188 | readonly codexErrorInfo?: V2ThreadStartResponse__CodexErrorInfo | null; | | |
| 26189 | readonly message: string; | | |
| 26190 | }; | | |
| 26191 | export const V2ThreadStartResponse__TurnError = Schema.Struct({ | | |
| 26192 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 26193 | codexErrorInfo: Schema.optionalKey( | | |
| 26194 | Schema.Union([V2ThreadStartResponse__CodexErrorInfo, Schema.Null]), | | |
| 26195 | ), | | |
| 26196 | message: Schema.String, | | |
| 26197 | }); | | |
| 26198 | | | |
| 26199 | export type V2ThreadStartResponse__ThreadItem = | | |
| 26200 | | { | 29174 | | { |
| 26201 | readonly clientId?: string | null; | 29175 | readonly clientId?: string | null; |
| 26202 | readonly content: ReadonlyArray<V2ThreadStartResponse__UserInput>; | 29176 | readonly content: ReadonlyArray<V2ThreadMetadataUpdateResponse__UserInput>; |
| 26203 | readonly id: string; | 29177 | readonly id: string; |
| 26204 | readonly type: "userMessage"; | 29178 | readonly type: "userMessage"; |
| 26205 | } | 29179 | } |
| 26206 | | { | 29180 | | { |
| 26207 | readonly fragments: ReadonlyArray<V2ThreadStartResponse__HookPromptFragment>; | 29181 | readonly fragments: ReadonlyArray<V2ThreadMetadataUpdateResponse__HookPromptFragment>; |
| 26208 | readonly id: string; | 29182 | readonly id: string; |
| 26209 | readonly type: "hookPrompt"; | 29183 | readonly type: "hookPrompt"; |
| 26210 | } | 29184 | } |
| 26211 | | { | 29185 | | { |
| 26212 | readonly id: string; | 29186 | readonly id: string; |
| 26213 | readonly memoryCitation?: V2ThreadStartResponse__MemoryCitation | null; | 29187 | readonly memoryCitation?: V2ThreadMetadataUpdateResponse__MemoryCitation | null; |
| 26214 | readonly phase?: V2ThreadStartResponse__MessagePhase | null; | 29188 | readonly phase?: V2ThreadMetadataUpdateResponse__MessagePhase | null; |
| 26215 | readonly text: string; | 29189 | readonly text: string; |
| 26216 | readonly delivery?: "async" | null; | 29190 | readonly delivery?: "async" | null; |
| 26217 | readonly questions?: ReadonlyArray<{ | 29191 | readonly questions?: ReadonlyArray<{ |
| ... | @@ -26230,85 +29204,78 @@ export type V2ThreadStartResponse__ThreadItem = | ... | @@ -26230,85 +29204,78 @@ export type V2ThreadStartResponse__ThreadItem = |
| 26230 | | { | 29204 | | { |
| 26231 | readonly aggregatedOutput?: string | null; | 29205 | readonly aggregatedOutput?: string | null; |
| 26232 | readonly command: string; | 29206 | readonly command: string; |
| 26233 | readonly commandActions: ReadonlyArray<V2ThreadStartResponse__CommandAction>; | 29207 | readonly commandActions: ReadonlyArray<V2ThreadMetadataUpdateResponse__CommandAction>; |
| 26234 | readonly cwd: string; | 29208 | readonly cwd: V2ThreadMetadataUpdateResponse__LegacyAppPathString; |
| 26235 | readonly durationMs?: number | null; | 29209 | readonly durationMs?: number | null; |
| 26236 | readonly exitCode?: number | null; | 29210 | readonly exitCode?: number | null; |
| 26237 | readonly id: string; | 29211 | readonly id: string; |
| 26238 | readonly processId?: string | null; | 29212 | readonly processId?: string | null; |
| 26239 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; | 29213 | readonly source?: V2ThreadMetadataUpdateResponse__CommandExecutionSource; |
| 26240 | readonly status: V2ThreadStartResponse__CommandExecutionStatus; | 29214 | readonly status: V2ThreadMetadataUpdateResponse__CommandExecutionStatus; |
| 26241 | readonly type: "commandExecution"; | 29215 | readonly type: "commandExecution"; |
| 26242 | } | 29216 | } |
| 26243 | | { | 29217 | | { |
| 26244 | readonly changes: ReadonlyArray<V2ThreadStartResponse__FileUpdateChange>; | 29218 | readonly changes: ReadonlyArray<V2ThreadMetadataUpdateResponse__FileUpdateChange>; |
| 26245 | readonly id: string; | 29219 | readonly id: string; |
| 26246 | readonly status: V2ThreadStartResponse__PatchApplyStatus; | 29220 | readonly status: V2ThreadMetadataUpdateResponse__PatchApplyStatus; |
| 26247 | readonly type: "fileChange"; | 29221 | readonly type: "fileChange"; |
| 26248 | } | 29222 | } |
| 26249 | | { | 29223 | | { |
| 26250 | readonly appContext?: V2ThreadStartResponse__McpToolCallAppContext | null; | 29224 | readonly appContext?: V2ThreadMetadataUpdateResponse__McpToolCallAppContext | null; |
| 26251 | readonly arguments: unknown; | 29225 | readonly arguments: Schema.Json; |
| 26252 | readonly durationMs?: number | null; | 29226 | readonly durationMs?: number | null; |
| 26253 | readonly error?: V2ThreadStartResponse__McpToolCallError | null; | 29227 | readonly error?: V2ThreadMetadataUpdateResponse__McpToolCallError | null; |
| 26254 | readonly id: string; | 29228 | readonly id: string; |
| 26255 | readonly mcpAppResourceUri?: string | null; | 29229 | readonly mcpAppResourceUri?: string | null; |
| 26256 | readonly pluginId?: string | null; | 29230 | readonly pluginId?: string | null; |
| 26257 | readonly result?: V2ThreadStartResponse__McpToolCallResult | null; | 29231 | readonly result?: V2ThreadMetadataUpdateResponse__McpToolCallResult | null; |
| 26258 | readonly server: string; | 29232 | readonly server: string; |
| 26259 | readonly status: V2ThreadStartResponse__McpToolCallStatus; | 29233 | readonly status: V2ThreadMetadataUpdateResponse__McpToolCallStatus; |
| 26260 | readonly tool: string; | 29234 | readonly tool: string; |
| 26261 | readonly type: "mcpToolCall"; | 29235 | readonly type: "mcpToolCall"; |
| 26262 | } | 29236 | } |
| 26263 | | { | 29237 | | { |
| 26264 | readonly arguments: unknown; | 29238 | readonly arguments: Schema.Json; |
| 26265 | readonly contentItems?: ReadonlyArray<V2ThreadStartResponse__DynamicToolCallOutputContentItem> | null; | 29239 | readonly contentItems?: ReadonlyArray<V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem> | null; |
| 26266 | readonly durationMs?: number | null; | 29240 | readonly durationMs?: number | null; |
| 26267 | readonly id: string; | 29241 | readonly id: string; |
| 26268 | readonly namespace?: string | null; | 29242 | readonly namespace?: string | null; |
| 26269 | readonly status: V2ThreadStartResponse__DynamicToolCallStatus; | 29243 | readonly status: V2ThreadMetadataUpdateResponse__DynamicToolCallStatus; |
| 26270 | readonly success?: boolean | null; | 29244 | readonly success?: boolean | null; |
| 26271 | readonly tool: string; | 29245 | readonly tool: string; |
| 26272 | readonly type: "dynamicToolCall"; | 29246 | readonly type: "dynamicToolCall"; |
| 26273 | } | 29247 | } |
| 26274 | | { | 29248 | | { |
| 26275 | readonly agentsStates: { readonly [x: string]: V2ThreadStartResponse__CollabAgentState }; | 29249 | readonly agentsStates: { |
| | 29250 | readonly [x: string]: V2ThreadMetadataUpdateResponse__CollabAgentState; |
| | 29251 | }; |
| 26276 | readonly id: string; | 29252 | readonly id: string; |
| 26277 | readonly model?: string | null; | 29253 | readonly model?: string | null; |
| 26278 | readonly prompt?: string | null; | 29254 | readonly prompt?: string | null; |
| 26279 | readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null; | 29255 | readonly reasoningEffort?: V2ThreadMetadataUpdateResponse__ReasoningEffort | null; |
| 26280 | readonly receiverThreadIds: ReadonlyArray<string>; | 29256 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 26281 | readonly senderThreadId: string; | 29257 | readonly senderThreadId: string; |
| 26282 | readonly status: "inProgress" | "completed" | "failed" | "interrupted"; | 29258 | readonly status: V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus; |
| 26283 | readonly tool: | 29259 | readonly tool: V2ThreadMetadataUpdateResponse__CollabAgentTool; |
| 26284 | | "spawnAgent" | | |
| 26285 | | "sendInput" | | |
| 26286 | | "resumeAgent" | | |
| 26287 | | "wait" | | |
| 26288 | | "closeAgent" | | |
| 26289 | | "sendMessage" | | |
| 26290 | | "followupTask" | | |
| 26291 | | "interruptAgent" | | |
| 26292 | | "listAgents"; | | |
| 26293 | readonly type: "collabAgentToolCall"; | 29260 | readonly type: "collabAgentToolCall"; |
| 26294 | } | 29261 | } |
| 26295 | | { | 29262 | | { |
| 26296 | readonly agentPath: string; | 29263 | readonly agentPath: string; |
| 26297 | readonly agentThreadId: string; | 29264 | readonly agentThreadId: string; |
| 26298 | readonly id: string; | 29265 | readonly id: string; |
| 26299 | readonly kind: V2ThreadStartResponse__SubAgentActivityKind; | 29266 | readonly kind: V2ThreadMetadataUpdateResponse__SubAgentActivityKind; |
| 26300 | readonly type: "subAgentActivity"; | 29267 | readonly type: "subAgentActivity"; |
| 26301 | } | 29268 | } |
| 26302 | | { | 29269 | | { |
| 26303 | readonly action?: V2ThreadStartResponse__WebSearchAction | null; | 29270 | readonly action?: V2ThreadMetadataUpdateResponse__WebSearchAction | null; |
| 26304 | readonly id: string; | 29271 | readonly id: string; |
| 26305 | readonly query: string; | 29272 | readonly query: string; |
| 26306 | readonly results?: ReadonlyArray<unknown> | null; | 29273 | readonly results?: ReadonlyArray<Schema.Json> | null; |
| 26307 | readonly type: "webSearch"; | 29274 | readonly type: "webSearch"; |
| 26308 | } | 29275 | } |
| 26309 | | { | 29276 | | { |
| 26310 | readonly id: string; | 29277 | readonly id: string; |
| 26311 | readonly path: V2ThreadStartResponse__LegacyAppPathString; | 29278 | readonly path: V2ThreadMetadataUpdateResponse__LegacyAppPathString; |
| 26312 | readonly type: "imageView"; | 29279 | readonly type: "imageView"; |
| 26313 | } | 29280 | } |
| 26314 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | 29281 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| ... | @@ -26316,32 +29283,34 @@ export type V2ThreadStartResponse__ThreadItem = | ... | @@ -26316,32 +29283,34 @@ export type V2ThreadStartResponse__ThreadItem = |
| 26316 | readonly id: string; | 29283 | readonly id: string; |
| 26317 | readonly result: string; | 29284 | readonly result: string; |
| 26318 | readonly revisedPrompt?: string | null; | 29285 | readonly revisedPrompt?: string | null; |
| 26319 | readonly savedPath?: V2ThreadStartResponse__AbsolutePathBuf | null; | 29286 | readonly savedPath?: V2ThreadMetadataUpdateResponse__AbsolutePathBuf | null; |
| 26320 | readonly status: string; | 29287 | readonly status: string; |
| 26321 | readonly type: "imageGeneration"; | 29288 | readonly type: "imageGeneration"; |
| 26322 | } | 29289 | } |
| 26323 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 29290 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 26324 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } | 29291 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 26325 | | { readonly id: string; readonly type: "contextCompaction" }; | 29292 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 26326 | export const V2ThreadStartResponse__ThreadItem = Schema.Union( | 29293 | export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 26327 | [ | 29294 | [ |
| 26328 | Schema.Struct({ | 29295 | Schema.Struct({ |
| 26329 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 29296 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 26330 | content: Schema.Array(V2ThreadStartResponse__UserInput), | 29297 | content: Schema.Array(V2ThreadMetadataUpdateResponse__UserInput), |
| 26331 | id: Schema.String, | 29298 | id: Schema.String, |
| 26332 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), | 29299 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 26333 | }).annotate({ title: "UserMessageThreadItem" }), | 29300 | }).annotate({ title: "UserMessageThreadItem" }), |
| 26334 | Schema.Struct({ | 29301 | Schema.Struct({ |
| 26335 | fragments: Schema.Array(V2ThreadStartResponse__HookPromptFragment), | 29302 | fragments: Schema.Array(V2ThreadMetadataUpdateResponse__HookPromptFragment), |
| 26336 | id: Schema.String, | 29303 | id: Schema.String, |
| 26337 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | 29304 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 26338 | }).annotate({ title: "HookPromptThreadItem" }), | 29305 | }).annotate({ title: "HookPromptThreadItem" }), |
| 26339 | Schema.Struct({ | 29306 | Schema.Struct({ |
| 26340 | id: Schema.String, | 29307 | id: Schema.String, |
| 26341 | memoryCitation: Schema.optionalKey( | 29308 | memoryCitation: Schema.optionalKey( |
| 26342 | Schema.Union([V2ThreadStartResponse__MemoryCitation, Schema.Null]), | 29309 | Schema.Union([V2ThreadMetadataUpdateResponse__MemoryCitation, Schema.Null]), |
| | 29310 | ), |
| | 29311 | phase: Schema.optionalKey( |
| | 29312 | Schema.Union([V2ThreadMetadataUpdateResponse__MessagePhase, Schema.Null]), |
| 26343 | ), | 29313 | ), |
| 26344 | phase: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__MessagePhase, Schema.Null])), | | |
| 26345 | text: Schema.String, | 29314 | text: Schema.String, |
| 26346 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | 29315 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), |
| 26347 | questions: Schema.optionalKey( | 29316 | questions: Schema.optionalKey( |
| ... | @@ -26382,17 +29351,20 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( | ... | @@ -26382,17 +29351,20 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 26382 | ]), | 29351 | ]), |
| 26383 | ), | 29352 | ), |
| 26384 | command: Schema.String.annotate({ description: "The command to be executed." }), | 29353 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 26385 | commandActions: Schema.Array(V2ThreadStartResponse__CommandAction).annotate({ | 29354 | commandActions: Schema.Array(V2ThreadMetadataUpdateResponse__CommandAction).annotate({ |
| 26386 | description: | 29355 | description: |
| 26387 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", | 29356 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 26388 | }), | 29357 | }), |
| 26389 | cwd: Schema.String.annotate({ description: "The command's working directory." }), | 29358 | cwd: Schema.suspend( |
| | 29359 | (): Schema.Codec<V2ThreadMetadataUpdateResponse__LegacyAppPathString> => |
| | 29360 | V2ThreadMetadataUpdateResponse__LegacyAppPathString, |
| | 29361 | ).annotate({ description: "The command's working directory." }), |
| 26390 | durationMs: Schema.optionalKey( | 29362 | durationMs: Schema.optionalKey( |
| 26391 | Schema.Union([ | 29363 | Schema.Union([ |
| 26392 | Schema.Number.annotate({ | 29364 | Schema.Number.annotate({ |
| 26393 | description: "The duration of the command execution in milliseconds.", | 29365 | description: "The duration of the command execution in milliseconds.", |
| 26394 | format: "int64", | 29366 | format: "int64", |
| 26395 | }).check(Schema.isInt()), | 29367 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 26396 | Schema.Null, | 29368 | Schema.Null, |
| 26397 | ]), | 29369 | ]), |
| 26398 | ), | 29370 | ), |
| ... | @@ -26401,7 +29373,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( | ... | @@ -26401,7 +29373,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 26401 | Schema.Number.annotate({ | 29373 | Schema.Number.annotate({ |
| 26402 | description: "The command's exit code.", | 29374 | description: "The command's exit code.", |
| 26403 | format: "int32", | 29375 | format: "int32", |
| 26404 | }).check(Schema.isInt()), | 29376 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 26405 | Schema.Null, | 29377 | Schema.Null, |
| 26406 | ]), | 29378 | ]), |
| 26407 | ), | 29379 | ), |
| ... | @@ -26415,40 +29387,38 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( | ... | @@ -26415,40 +29387,38 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 26415 | ]), | 29387 | ]), |
| 26416 | ), | 29388 | ), |
| 26417 | source: Schema.optionalKey( | 29389 | source: Schema.optionalKey( |
| 26418 | Schema.Literals([ | 29390 | Schema.suspend( |
| 26419 | "agent", | 29391 | (): Schema.Codec<V2ThreadMetadataUpdateResponse__CommandExecutionSource> => |
| 26420 | "userShell", | 29392 | V2ThreadMetadataUpdateResponse__CommandExecutionSource, |
| 26421 | "unifiedExecStartup", | 29393 | ).annotate({ default: "agent" }), |
| 26422 | "unifiedExecInteraction", | | |
| 26423 | ]).annotate({ default: "agent" }), | | |
| 26424 | ), | 29394 | ), |
| 26425 | status: V2ThreadStartResponse__CommandExecutionStatus, | 29395 | status: V2ThreadMetadataUpdateResponse__CommandExecutionStatus, |
| 26426 | type: Schema.Literal("commandExecution").annotate({ | 29396 | type: Schema.Literal("commandExecution").annotate({ |
| 26427 | title: "CommandExecutionThreadItemType", | 29397 | title: "CommandExecutionThreadItemType", |
| 26428 | }), | 29398 | }), |
| 26429 | }).annotate({ title: "CommandExecutionThreadItem" }), | 29399 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 26430 | Schema.Struct({ | 29400 | Schema.Struct({ |
| 26431 | changes: Schema.Array(V2ThreadStartResponse__FileUpdateChange), | 29401 | changes: Schema.Array(V2ThreadMetadataUpdateResponse__FileUpdateChange), |
| 26432 | id: Schema.String, | 29402 | id: Schema.String, |
| 26433 | status: V2ThreadStartResponse__PatchApplyStatus, | 29403 | status: V2ThreadMetadataUpdateResponse__PatchApplyStatus, |
| 26434 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), | 29404 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 26435 | }).annotate({ title: "FileChangeThreadItem" }), | 29405 | }).annotate({ title: "FileChangeThreadItem" }), |
| 26436 | Schema.Struct({ | 29406 | Schema.Struct({ |
| 26437 | appContext: Schema.optionalKey( | 29407 | appContext: Schema.optionalKey( |
| 26438 | Schema.Union([V2ThreadStartResponse__McpToolCallAppContext, Schema.Null]), | 29408 | Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallAppContext, Schema.Null]), |
| 26439 | ), | 29409 | ), |
| 26440 | arguments: Schema.Unknown, | 29410 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 26441 | durationMs: Schema.optionalKey( | 29411 | durationMs: Schema.optionalKey( |
| 26442 | Schema.Union([ | 29412 | Schema.Union([ |
| 26443 | Schema.Number.annotate({ | 29413 | Schema.Number.annotate({ |
| 26444 | description: "The duration of the MCP tool call in milliseconds.", | 29414 | description: "The duration of the MCP tool call in milliseconds.", |
| 26445 | format: "int64", | 29415 | format: "int64", |
| 26446 | }).check(Schema.isInt()), | 29416 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 26447 | Schema.Null, | 29417 | Schema.Null, |
| 26448 | ]), | 29418 | ]), |
| 26449 | ), | 29419 | ), |
| 26450 | error: Schema.optionalKey( | 29420 | error: Schema.optionalKey( |
| 26451 | Schema.Union([V2ThreadStartResponse__McpToolCallError, Schema.Null]), | 29421 | Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallError, Schema.Null]), |
| 26452 | ), | 29422 | ), |
| 26453 | id: Schema.String, | 29423 | id: Schema.String, |
| 26454 | mcpAppResourceUri: Schema.optionalKey( | 29424 | mcpAppResourceUri: Schema.optionalKey( |
| ... | @@ -26461,18 +29431,18 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( | ... | @@ -26461,18 +29431,18 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 26461 | ), | 29431 | ), |
| 26462 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 29432 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 26463 | result: Schema.optionalKey( | 29433 | result: Schema.optionalKey( |
| 26464 | Schema.Union([V2ThreadStartResponse__McpToolCallResult, Schema.Null]), | 29434 | Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallResult, Schema.Null]), |
| 26465 | ), | 29435 | ), |
| 26466 | server: Schema.String, | 29436 | server: Schema.String, |
| 26467 | status: V2ThreadStartResponse__McpToolCallStatus, | 29437 | status: V2ThreadMetadataUpdateResponse__McpToolCallStatus, |
| 26468 | tool: Schema.String, | 29438 | tool: Schema.String, |
| 26469 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), | 29439 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 26470 | }).annotate({ title: "McpToolCallThreadItem" }), | 29440 | }).annotate({ title: "McpToolCallThreadItem" }), |
| 26471 | Schema.Struct({ | 29441 | Schema.Struct({ |
| 26472 | arguments: Schema.Unknown, | 29442 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 26473 | contentItems: Schema.optionalKey( | 29443 | contentItems: Schema.optionalKey( |
| 26474 | Schema.Union([ | 29444 | Schema.Union([ |
| 26475 | Schema.Array(V2ThreadStartResponse__DynamicToolCallOutputContentItem), | 29445 | Schema.Array(V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem), |
| 26476 | Schema.Null, | 29446 | Schema.Null, |
| 26477 | ]), | 29447 | ]), |
| 26478 | ), | 29448 | ), |
| ... | @@ -26481,21 +29451,22 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( | ... | @@ -26481,21 +29451,22 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 26481 | Schema.Number.annotate({ | 29451 | Schema.Number.annotate({ |
| 26482 | description: "The duration of the dynamic tool call in milliseconds.", | 29452 | description: "The duration of the dynamic tool call in milliseconds.", |
| 26483 | format: "int64", | 29453 | format: "int64", |
| 26484 | }).check(Schema.isInt()), | 29454 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 26485 | Schema.Null, | 29455 | Schema.Null, |
| 26486 | ]), | 29456 | ]), |
| 26487 | ), | 29457 | ), |
| 26488 | id: Schema.String, | 29458 | id: Schema.String, |
| 26489 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 29459 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 26490 | status: V2ThreadStartResponse__DynamicToolCallStatus, | 29460 | status: V2ThreadMetadataUpdateResponse__DynamicToolCallStatus, |
| 26491 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 29461 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 26492 | tool: Schema.String, | 29462 | tool: Schema.String, |
| 26493 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), | 29463 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 26494 | }).annotate({ title: "DynamicToolCallThreadItem" }), | 29464 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 26495 | Schema.Struct({ | 29465 | Schema.Struct({ |
| 26496 | agentsStates: Schema.Record(Schema.String, V2ThreadStartResponse__CollabAgentState).annotate({ | 29466 | agentsStates: Schema.Record( |
| 26497 | description: "Last known status of the target agents, when available.", | 29467 | Schema.String, |
| 26498 | }), | 29468 | V2ThreadMetadataUpdateResponse__CollabAgentState, |
| | 29469 | ).annotate({ description: "Last known status of the target agents, when available." }), |
| 26499 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), | 29470 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 26500 | model: Schema.optionalKey( | 29471 | model: Schema.optionalKey( |
| 26501 | Schema.Union([ | 29472 | Schema.Union([ |
| ... | @@ -26514,7 +29485,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( | ... | @@ -26514,7 +29485,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 26514 | ]), | 29485 | ]), |
| 26515 | ), | 29486 | ), |
| 26516 | reasoningEffort: Schema.optionalKey( | 29487 | reasoningEffort: Schema.optionalKey( |
| 26517 | Schema.Union([V2ThreadStartResponse__ReasoningEffort, Schema.Null]).annotate({ | 29488 | Schema.Union([V2ThreadMetadataUpdateResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 26518 | description: "Reasoning effort requested for the spawned agent, when applicable.", | 29489 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 26519 | }), | 29490 | }), |
| 26520 | ), | 29491 | ), |
| ... | @@ -26525,20 +29496,14 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( | ... | @@ -26525,20 +29496,14 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 26525 | senderThreadId: Schema.String.annotate({ | 29496 | senderThreadId: Schema.String.annotate({ |
| 26526 | description: "Thread ID of the agent issuing the collab request.", | 29497 | description: "Thread ID of the agent issuing the collab request.", |
| 26527 | }), | 29498 | }), |
| 26528 | status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({ | 29499 | status: Schema.suspend( |
| 26529 | description: "Current status of the collab tool call.", | 29500 | (): Schema.Codec<V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus> => |
| 26530 | }), | 29501 | V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus, |
| 26531 | tool: Schema.Literals([ | 29502 | ).annotate({ description: "Current status of the collab tool call." }), |
| 26532 | "spawnAgent", | 29503 | tool: Schema.suspend( |
| 26533 | "sendInput", | 29504 | (): Schema.Codec<V2ThreadMetadataUpdateResponse__CollabAgentTool> => |
| 26534 | "resumeAgent", | 29505 | V2ThreadMetadataUpdateResponse__CollabAgentTool, |
| 26535 | "wait", | 29506 | ).annotate({ description: "Name of the collab tool that was invoked." }), |
| 26536 | "closeAgent", | | |
| 26537 | "sendMessage", | | |
| 26538 | "followupTask", | | |
| 26539 | "interruptAgent", | | |
| 26540 | "listAgents", | | |
| 26541 | ]).annotate({ description: "Name of the collab tool that was invoked." }), | | |
| 26542 | type: Schema.Literal("collabAgentToolCall").annotate({ | 29507 | type: Schema.Literal("collabAgentToolCall").annotate({ |
| 26543 | title: "CollabAgentToolCallThreadItemType", | 29508 | title: "CollabAgentToolCallThreadItemType", |
| 26544 | }), | 29509 | }), |
| ... | @@ -26547,20 +29512,20 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( | ... | @@ -26547,20 +29512,20 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 26547 | agentPath: Schema.String, | 29512 | agentPath: Schema.String, |
| 26548 | agentThreadId: Schema.String, | 29513 | agentThreadId: Schema.String, |
| 26549 | id: Schema.String, | 29514 | id: Schema.String, |
| 26550 | kind: V2ThreadStartResponse__SubAgentActivityKind, | 29515 | kind: V2ThreadMetadataUpdateResponse__SubAgentActivityKind, |
| 26551 | type: Schema.Literal("subAgentActivity").annotate({ | 29516 | type: Schema.Literal("subAgentActivity").annotate({ |
| 26552 | title: "SubAgentActivityThreadItemType", | 29517 | title: "SubAgentActivityThreadItemType", |
| 26553 | }), | 29518 | }), |
| 26554 | }).annotate({ title: "SubAgentActivityThreadItem" }), | 29519 | }).annotate({ title: "SubAgentActivityThreadItem" }), |
| 26555 | Schema.Struct({ | 29520 | Schema.Struct({ |
| 26556 | action: Schema.optionalKey( | 29521 | action: Schema.optionalKey( |
| 26557 | Schema.Union([V2ThreadStartResponse__WebSearchAction, Schema.Null]), | 29522 | Schema.Union([V2ThreadMetadataUpdateResponse__WebSearchAction, Schema.Null]), |
| 26558 | ), | 29523 | ), |
| 26559 | id: Schema.String, | 29524 | id: Schema.String, |
| 26560 | query: Schema.String, | 29525 | query: Schema.String, |
| 26561 | results: Schema.optionalKey( | 29526 | results: Schema.optionalKey( |
| 26562 | Schema.Union([ | 29527 | Schema.Union([ |
| 26563 | Schema.Array(Schema.Unknown).annotate({ | 29528 | Schema.Array(Schema.Json.annotate({ expected: "JSON value" })).annotate({ |
| 26564 | description: | 29529 | description: |
| 26565 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", | 29530 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", |
| 26566 | }), | 29531 | }), |
| ... | @@ -26571,13 +29536,17 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( | ... | @@ -26571,13 +29536,17 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 26571 | }).annotate({ title: "WebSearchThreadItem" }), | 29536 | }).annotate({ title: "WebSearchThreadItem" }), |
| 26572 | Schema.Struct({ | 29537 | Schema.Struct({ |
| 26573 | id: Schema.String, | 29538 | id: Schema.String, |
| 26574 | path: V2ThreadStartResponse__LegacyAppPathString, | 29539 | path: V2ThreadMetadataUpdateResponse__LegacyAppPathString, |
| 26575 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), | 29540 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 26576 | }).annotate({ title: "ImageViewThreadItem" }), | 29541 | }).annotate({ title: "ImageViewThreadItem" }), |
| 26577 | Schema.Struct({ | 29542 | Schema.Struct({ |
| 26578 | durationMs: Schema.Number.annotate({ format: "uint64" }) | 29543 | durationMs: Schema.Number.annotate({ format: "uint64" }) |
| 26579 | .check(Schema.isInt()) | 29544 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 26580 | .check(Schema.isGreaterThanOrEqualTo(0)), | 29545 | .check( |
| | 29546 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 29547 | expected: "a value greater than or equal to 0", |
| | 29548 | }), |
| | 29549 | ), |
| 26581 | id: Schema.String, | 29550 | id: Schema.String, |
| 26582 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), | 29551 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), |
| 26583 | }).annotate({ | 29552 | }).annotate({ |
| ... | @@ -26589,7 +29558,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( | ... | @@ -26589,7 +29558,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 26589 | result: Schema.String, | 29558 | result: Schema.String, |
| 26590 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 29559 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 26591 | savedPath: Schema.optionalKey( | 29560 | savedPath: Schema.optionalKey( |
| 26592 | Schema.Union([V2ThreadStartResponse__AbsolutePathBuf, Schema.Null]), | 29561 | Schema.Union([V2ThreadMetadataUpdateResponse__AbsolutePathBuf, Schema.Null]), |
| 26593 | ), | 29562 | ), |
| 26594 | status: Schema.String, | 29563 | status: Schema.String, |
| 26595 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 29564 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| ... | @@ -26616,37 +29585,24 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( | ... | @@ -26616,37 +29585,24 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 26616 | }).annotate({ title: "ContextCompactionThreadItem" }), | 29585 | }).annotate({ title: "ContextCompactionThreadItem" }), |
| 26617 | ], | 29586 | ], |
| 26618 | { mode: "oneOf" }, | 29587 | { mode: "oneOf" }, |
| 26619 | ); | 29588 | ).annotate({ identifier: "V2ThreadMetadataUpdateResponse__ThreadItem" }); |
| 26620 | | | |
| 26621 | export type V2ThreadUnarchiveResponse__TurnError = { | | |
| 26622 | readonly additionalDetails?: string | null; | | |
| 26623 | readonly codexErrorInfo?: V2ThreadUnarchiveResponse__CodexErrorInfo | null; | | |
| 26624 | readonly message: string; | | |
| 26625 | }; | | |
| 26626 | export const V2ThreadUnarchiveResponse__TurnError = Schema.Struct({ | | |
| 26627 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 26628 | codexErrorInfo: Schema.optionalKey( | | |
| 26629 | Schema.Union([V2ThreadUnarchiveResponse__CodexErrorInfo, Schema.Null]), | | |
| 26630 | ), | | |
| 26631 | message: Schema.String, | | |
| 26632 | }); | | |
| 26633 | | 29589 | |
| 26634 | export type V2ThreadUnarchiveResponse__ThreadItem = | 29590 | export type V2ThreadReadResponse__ThreadItem = |
| 26635 | | { | 29591 | | { |
| 26636 | readonly clientId?: string | null; | 29592 | readonly clientId?: string | null; |
| 26637 | readonly content: ReadonlyArray<V2ThreadUnarchiveResponse__UserInput>; | 29593 | readonly content: ReadonlyArray<V2ThreadReadResponse__UserInput>; |
| 26638 | readonly id: string; | 29594 | readonly id: string; |
| 26639 | readonly type: "userMessage"; | 29595 | readonly type: "userMessage"; |
| 26640 | } | 29596 | } |
| 26641 | | { | 29597 | | { |
| 26642 | readonly fragments: ReadonlyArray<V2ThreadUnarchiveResponse__HookPromptFragment>; | 29598 | readonly fragments: ReadonlyArray<V2ThreadReadResponse__HookPromptFragment>; |
| 26643 | readonly id: string; | 29599 | readonly id: string; |
| 26644 | readonly type: "hookPrompt"; | 29600 | readonly type: "hookPrompt"; |
| 26645 | } | 29601 | } |
| 26646 | | { | 29602 | | { |
| 26647 | readonly id: string; | 29603 | readonly id: string; |
| 26648 | readonly memoryCitation?: V2ThreadUnarchiveResponse__MemoryCitation | null; | 29604 | readonly memoryCitation?: V2ThreadReadResponse__MemoryCitation | null; |
| 26649 | readonly phase?: V2ThreadUnarchiveResponse__MessagePhase | null; | 29605 | readonly phase?: V2ThreadReadResponse__MessagePhase | null; |
| 26650 | readonly text: string; | 29606 | readonly text: string; |
| 26651 | readonly delivery?: "async" | null; | 29607 | readonly delivery?: "async" | null; |
| 26652 | readonly questions?: ReadonlyArray<{ | 29608 | readonly questions?: ReadonlyArray<{ |
| ... | @@ -26665,85 +29621,76 @@ export type V2ThreadUnarchiveResponse__ThreadItem = | ... | @@ -26665,85 +29621,76 @@ export type V2ThreadUnarchiveResponse__ThreadItem = |
| 26665 | | { | 29621 | | { |
| 26666 | readonly aggregatedOutput?: string | null; | 29622 | readonly aggregatedOutput?: string | null; |
| 26667 | readonly command: string; | 29623 | readonly command: string; |
| 26668 | readonly commandActions: ReadonlyArray<V2ThreadUnarchiveResponse__CommandAction>; | 29624 | readonly commandActions: ReadonlyArray<V2ThreadReadResponse__CommandAction>; |
| 26669 | readonly cwd: string; | 29625 | readonly cwd: V2ThreadReadResponse__LegacyAppPathString; |
| 26670 | readonly durationMs?: number | null; | 29626 | readonly durationMs?: number | null; |
| 26671 | readonly exitCode?: number | null; | 29627 | readonly exitCode?: number | null; |
| 26672 | readonly id: string; | 29628 | readonly id: string; |
| 26673 | readonly processId?: string | null; | 29629 | readonly processId?: string | null; |
| 26674 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; | 29630 | readonly source?: V2ThreadReadResponse__CommandExecutionSource; |
| 26675 | readonly status: V2ThreadUnarchiveResponse__CommandExecutionStatus; | 29631 | readonly status: V2ThreadReadResponse__CommandExecutionStatus; |
| 26676 | readonly type: "commandExecution"; | 29632 | readonly type: "commandExecution"; |
| 26677 | } | 29633 | } |
| 26678 | | { | 29634 | | { |
| 26679 | readonly changes: ReadonlyArray<V2ThreadUnarchiveResponse__FileUpdateChange>; | 29635 | readonly changes: ReadonlyArray<V2ThreadReadResponse__FileUpdateChange>; |
| 26680 | readonly id: string; | 29636 | readonly id: string; |
| 26681 | readonly status: V2ThreadUnarchiveResponse__PatchApplyStatus; | 29637 | readonly status: V2ThreadReadResponse__PatchApplyStatus; |
| 26682 | readonly type: "fileChange"; | 29638 | readonly type: "fileChange"; |
| 26683 | } | 29639 | } |
| 26684 | | { | 29640 | | { |
| 26685 | readonly appContext?: V2ThreadUnarchiveResponse__McpToolCallAppContext | null; | 29641 | readonly appContext?: V2ThreadReadResponse__McpToolCallAppContext | null; |
| 26686 | readonly arguments: unknown; | 29642 | readonly arguments: Schema.Json; |
| 26687 | readonly durationMs?: number | null; | 29643 | readonly durationMs?: number | null; |
| 26688 | readonly error?: V2ThreadUnarchiveResponse__McpToolCallError | null; | 29644 | readonly error?: V2ThreadReadResponse__McpToolCallError | null; |
| 26689 | readonly id: string; | 29645 | readonly id: string; |
| 26690 | readonly mcpAppResourceUri?: string | null; | 29646 | readonly mcpAppResourceUri?: string | null; |
| 26691 | readonly pluginId?: string | null; | 29647 | readonly pluginId?: string | null; |
| 26692 | readonly result?: V2ThreadUnarchiveResponse__McpToolCallResult | null; | 29648 | readonly result?: V2ThreadReadResponse__McpToolCallResult | null; |
| 26693 | readonly server: string; | 29649 | readonly server: string; |
| 26694 | readonly status: V2ThreadUnarchiveResponse__McpToolCallStatus; | 29650 | readonly status: V2ThreadReadResponse__McpToolCallStatus; |
| 26695 | readonly tool: string; | 29651 | readonly tool: string; |
| 26696 | readonly type: "mcpToolCall"; | 29652 | readonly type: "mcpToolCall"; |
| 26697 | } | 29653 | } |
| 26698 | | { | 29654 | | { |
| 26699 | readonly arguments: unknown; | 29655 | readonly arguments: Schema.Json; |
| 26700 | readonly contentItems?: ReadonlyArray<V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem> | null; | 29656 | readonly contentItems?: ReadonlyArray<V2ThreadReadResponse__DynamicToolCallOutputContentItem> | null; |
| 26701 | readonly durationMs?: number | null; | 29657 | readonly durationMs?: number | null; |
| 26702 | readonly id: string; | 29658 | readonly id: string; |
| 26703 | readonly namespace?: string | null; | 29659 | readonly namespace?: string | null; |
| 26704 | readonly status: V2ThreadUnarchiveResponse__DynamicToolCallStatus; | 29660 | readonly status: V2ThreadReadResponse__DynamicToolCallStatus; |
| 26705 | readonly success?: boolean | null; | 29661 | readonly success?: boolean | null; |
| 26706 | readonly tool: string; | 29662 | readonly tool: string; |
| 26707 | readonly type: "dynamicToolCall"; | 29663 | readonly type: "dynamicToolCall"; |
| 26708 | } | 29664 | } |
| 26709 | | { | 29665 | | { |
| 26710 | readonly agentsStates: { readonly [x: string]: V2ThreadUnarchiveResponse__CollabAgentState }; | 29666 | readonly agentsStates: { readonly [x: string]: V2ThreadReadResponse__CollabAgentState }; |
| 26711 | readonly id: string; | 29667 | readonly id: string; |
| 26712 | readonly model?: string | null; | 29668 | readonly model?: string | null; |
| 26713 | readonly prompt?: string | null; | 29669 | readonly prompt?: string | null; |
| 26714 | readonly reasoningEffort?: V2ThreadUnarchiveResponse__ReasoningEffort | null; | 29670 | readonly reasoningEffort?: V2ThreadReadResponse__ReasoningEffort | null; |
| 26715 | readonly receiverThreadIds: ReadonlyArray<string>; | 29671 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 26716 | readonly senderThreadId: string; | 29672 | readonly senderThreadId: string; |
| 26717 | readonly status: "inProgress" | "completed" | "failed" | "interrupted"; | 29673 | readonly status: V2ThreadReadResponse__CollabAgentToolCallStatus; |
| 26718 | readonly tool: | 29674 | readonly tool: V2ThreadReadResponse__CollabAgentTool; |
| 26719 | | "spawnAgent" | | |
| 26720 | | "sendInput" | | |
| 26721 | | "resumeAgent" | | |
| 26722 | | "wait" | | |
| 26723 | | "closeAgent" | | |
| 26724 | | "sendMessage" | | |
| 26725 | | "followupTask" | | |
| 26726 | | "interruptAgent" | | |
| 26727 | | "listAgents"; | | |
| 26728 | readonly type: "collabAgentToolCall"; | 29675 | readonly type: "collabAgentToolCall"; |
| 26729 | } | 29676 | } |
| 26730 | | { | 29677 | | { |
| 26731 | readonly agentPath: string; | 29678 | readonly agentPath: string; |
| 26732 | readonly agentThreadId: string; | 29679 | readonly agentThreadId: string; |
| 26733 | readonly id: string; | 29680 | readonly id: string; |
| 26734 | readonly kind: V2ThreadUnarchiveResponse__SubAgentActivityKind; | 29681 | readonly kind: V2ThreadReadResponse__SubAgentActivityKind; |
| 26735 | readonly type: "subAgentActivity"; | 29682 | readonly type: "subAgentActivity"; |
| 26736 | } | 29683 | } |
| 26737 | | { | 29684 | | { |
| 26738 | readonly action?: V2ThreadUnarchiveResponse__WebSearchAction | null; | 29685 | readonly action?: V2ThreadReadResponse__WebSearchAction | null; |
| 26739 | readonly id: string; | 29686 | readonly id: string; |
| 26740 | readonly query: string; | 29687 | readonly query: string; |
| 26741 | readonly results?: ReadonlyArray<unknown> | null; | 29688 | readonly results?: ReadonlyArray<Schema.Json> | null; |
| 26742 | readonly type: "webSearch"; | 29689 | readonly type: "webSearch"; |
| 26743 | } | 29690 | } |
| 26744 | | { | 29691 | | { |
| 26745 | readonly id: string; | 29692 | readonly id: string; |
| 26746 | readonly path: V2ThreadUnarchiveResponse__LegacyAppPathString; | 29693 | readonly path: V2ThreadReadResponse__LegacyAppPathString; |
| 26747 | readonly type: "imageView"; | 29694 | readonly type: "imageView"; |
| 26748 | } | 29695 | } |
| 26749 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | 29696 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| ... | @@ -26751,34 +29698,32 @@ export type V2ThreadUnarchiveResponse__ThreadItem = | ... | @@ -26751,34 +29698,32 @@ export type V2ThreadUnarchiveResponse__ThreadItem = |
| 26751 | readonly id: string; | 29698 | readonly id: string; |
| 26752 | readonly result: string; | 29699 | readonly result: string; |
| 26753 | readonly revisedPrompt?: string | null; | 29700 | readonly revisedPrompt?: string | null; |
| 26754 | readonly savedPath?: V2ThreadUnarchiveResponse__AbsolutePathBuf | null; | 29701 | readonly savedPath?: V2ThreadReadResponse__AbsolutePathBuf | null; |
| 26755 | readonly status: string; | 29702 | readonly status: string; |
| 26756 | readonly type: "imageGeneration"; | 29703 | readonly type: "imageGeneration"; |
| 26757 | } | 29704 | } |
| 26758 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 29705 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 26759 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } | 29706 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 26760 | | { readonly id: string; readonly type: "contextCompaction" }; | 29707 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 26761 | export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( | 29708 | export const V2ThreadReadResponse__ThreadItem = Schema.Union( |
| 26762 | [ | 29709 | [ |
| 26763 | Schema.Struct({ | 29710 | Schema.Struct({ |
| 26764 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 29711 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 26765 | content: Schema.Array(V2ThreadUnarchiveResponse__UserInput), | 29712 | content: Schema.Array(V2ThreadReadResponse__UserInput), |
| 26766 | id: Schema.String, | 29713 | id: Schema.String, |
| 26767 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), | 29714 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 26768 | }).annotate({ title: "UserMessageThreadItem" }), | 29715 | }).annotate({ title: "UserMessageThreadItem" }), |
| 26769 | Schema.Struct({ | 29716 | Schema.Struct({ |
| 26770 | fragments: Schema.Array(V2ThreadUnarchiveResponse__HookPromptFragment), | 29717 | fragments: Schema.Array(V2ThreadReadResponse__HookPromptFragment), |
| 26771 | id: Schema.String, | 29718 | id: Schema.String, |
| 26772 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | 29719 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 26773 | }).annotate({ title: "HookPromptThreadItem" }), | 29720 | }).annotate({ title: "HookPromptThreadItem" }), |
| 26774 | Schema.Struct({ | 29721 | Schema.Struct({ |
| 26775 | id: Schema.String, | 29722 | id: Schema.String, |
| 26776 | memoryCitation: Schema.optionalKey( | 29723 | memoryCitation: Schema.optionalKey( |
| 26777 | Schema.Union([V2ThreadUnarchiveResponse__MemoryCitation, Schema.Null]), | 29724 | Schema.Union([V2ThreadReadResponse__MemoryCitation, Schema.Null]), |
| 26778 | ), | | |
| 26779 | phase: Schema.optionalKey( | | |
| 26780 | Schema.Union([V2ThreadUnarchiveResponse__MessagePhase, Schema.Null]), | | |
| 26781 | ), | 29725 | ), |
| | 29726 | phase: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__MessagePhase, Schema.Null])), |
| 26782 | text: Schema.String, | 29727 | text: Schema.String, |
| 26783 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | 29728 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), |
| 26784 | questions: Schema.optionalKey( | 29729 | questions: Schema.optionalKey( |
| ... | @@ -26819,17 +29764,20 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( | ... | @@ -26819,17 +29764,20 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 26819 | ]), | 29764 | ]), |
| 26820 | ), | 29765 | ), |
| 26821 | command: Schema.String.annotate({ description: "The command to be executed." }), | 29766 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 26822 | commandActions: Schema.Array(V2ThreadUnarchiveResponse__CommandAction).annotate({ | 29767 | commandActions: Schema.Array(V2ThreadReadResponse__CommandAction).annotate({ |
| 26823 | description: | 29768 | description: |
| 26824 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", | 29769 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 26825 | }), | 29770 | }), |
| 26826 | cwd: Schema.String.annotate({ description: "The command's working directory." }), | 29771 | cwd: Schema.suspend( |
| | 29772 | (): Schema.Codec<V2ThreadReadResponse__LegacyAppPathString> => |
| | 29773 | V2ThreadReadResponse__LegacyAppPathString, |
| | 29774 | ).annotate({ description: "The command's working directory." }), |
| 26827 | durationMs: Schema.optionalKey( | 29775 | durationMs: Schema.optionalKey( |
| 26828 | Schema.Union([ | 29776 | Schema.Union([ |
| 26829 | Schema.Number.annotate({ | 29777 | Schema.Number.annotate({ |
| 26830 | description: "The duration of the command execution in milliseconds.", | 29778 | description: "The duration of the command execution in milliseconds.", |
| 26831 | format: "int64", | 29779 | format: "int64", |
| 26832 | }).check(Schema.isInt()), | 29780 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 26833 | Schema.Null, | 29781 | Schema.Null, |
| 26834 | ]), | 29782 | ]), |
| 26835 | ), | 29783 | ), |
| ... | @@ -26838,7 +29786,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( | ... | @@ -26838,7 +29786,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 26838 | Schema.Number.annotate({ | 29786 | Schema.Number.annotate({ |
| 26839 | description: "The command's exit code.", | 29787 | description: "The command's exit code.", |
| 26840 | format: "int32", | 29788 | format: "int32", |
| 26841 | }).check(Schema.isInt()), | 29789 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 26842 | Schema.Null, | 29790 | Schema.Null, |
| 26843 | ]), | 29791 | ]), |
| 26844 | ), | 29792 | ), |
| ... | @@ -26852,40 +29800,38 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( | ... | @@ -26852,40 +29800,38 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 26852 | ]), | 29800 | ]), |
| 26853 | ), | 29801 | ), |
| 26854 | source: Schema.optionalKey( | 29802 | source: Schema.optionalKey( |
| 26855 | Schema.Literals([ | 29803 | Schema.suspend( |
| 26856 | "agent", | 29804 | (): Schema.Codec<V2ThreadReadResponse__CommandExecutionSource> => |
| 26857 | "userShell", | 29805 | V2ThreadReadResponse__CommandExecutionSource, |
| 26858 | "unifiedExecStartup", | 29806 | ).annotate({ default: "agent" }), |
| 26859 | "unifiedExecInteraction", | | |
| 26860 | ]).annotate({ default: "agent" }), | | |
| 26861 | ), | 29807 | ), |
| 26862 | status: V2ThreadUnarchiveResponse__CommandExecutionStatus, | 29808 | status: V2ThreadReadResponse__CommandExecutionStatus, |
| 26863 | type: Schema.Literal("commandExecution").annotate({ | 29809 | type: Schema.Literal("commandExecution").annotate({ |
| 26864 | title: "CommandExecutionThreadItemType", | 29810 | title: "CommandExecutionThreadItemType", |
| 26865 | }), | 29811 | }), |
| 26866 | }).annotate({ title: "CommandExecutionThreadItem" }), | 29812 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 26867 | Schema.Struct({ | 29813 | Schema.Struct({ |
| 26868 | changes: Schema.Array(V2ThreadUnarchiveResponse__FileUpdateChange), | 29814 | changes: Schema.Array(V2ThreadReadResponse__FileUpdateChange), |
| 26869 | id: Schema.String, | 29815 | id: Schema.String, |
| 26870 | status: V2ThreadUnarchiveResponse__PatchApplyStatus, | 29816 | status: V2ThreadReadResponse__PatchApplyStatus, |
| 26871 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), | 29817 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 26872 | }).annotate({ title: "FileChangeThreadItem" }), | 29818 | }).annotate({ title: "FileChangeThreadItem" }), |
| 26873 | Schema.Struct({ | 29819 | Schema.Struct({ |
| 26874 | appContext: Schema.optionalKey( | 29820 | appContext: Schema.optionalKey( |
| 26875 | Schema.Union([V2ThreadUnarchiveResponse__McpToolCallAppContext, Schema.Null]), | 29821 | Schema.Union([V2ThreadReadResponse__McpToolCallAppContext, Schema.Null]), |
| 26876 | ), | 29822 | ), |
| 26877 | arguments: Schema.Unknown, | 29823 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 26878 | durationMs: Schema.optionalKey( | 29824 | durationMs: Schema.optionalKey( |
| 26879 | Schema.Union([ | 29825 | Schema.Union([ |
| 26880 | Schema.Number.annotate({ | 29826 | Schema.Number.annotate({ |
| 26881 | description: "The duration of the MCP tool call in milliseconds.", | 29827 | description: "The duration of the MCP tool call in milliseconds.", |
| 26882 | format: "int64", | 29828 | format: "int64", |
| 26883 | }).check(Schema.isInt()), | 29829 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 26884 | Schema.Null, | 29830 | Schema.Null, |
| 26885 | ]), | 29831 | ]), |
| 26886 | ), | 29832 | ), |
| 26887 | error: Schema.optionalKey( | 29833 | error: Schema.optionalKey( |
| 26888 | Schema.Union([V2ThreadUnarchiveResponse__McpToolCallError, Schema.Null]), | 29834 | Schema.Union([V2ThreadReadResponse__McpToolCallError, Schema.Null]), |
| 26889 | ), | 29835 | ), |
| 26890 | id: Schema.String, | 29836 | id: Schema.String, |
| 26891 | mcpAppResourceUri: Schema.optionalKey( | 29837 | mcpAppResourceUri: Schema.optionalKey( |
| ... | @@ -26898,18 +29844,18 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( | ... | @@ -26898,18 +29844,18 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 26898 | ), | 29844 | ), |
| 26899 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 29845 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 26900 | result: Schema.optionalKey( | 29846 | result: Schema.optionalKey( |
| 26901 | Schema.Union([V2ThreadUnarchiveResponse__McpToolCallResult, Schema.Null]), | 29847 | Schema.Union([V2ThreadReadResponse__McpToolCallResult, Schema.Null]), |
| 26902 | ), | 29848 | ), |
| 26903 | server: Schema.String, | 29849 | server: Schema.String, |
| 26904 | status: V2ThreadUnarchiveResponse__McpToolCallStatus, | 29850 | status: V2ThreadReadResponse__McpToolCallStatus, |
| 26905 | tool: Schema.String, | 29851 | tool: Schema.String, |
| 26906 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), | 29852 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 26907 | }).annotate({ title: "McpToolCallThreadItem" }), | 29853 | }).annotate({ title: "McpToolCallThreadItem" }), |
| 26908 | Schema.Struct({ | 29854 | Schema.Struct({ |
| 26909 | arguments: Schema.Unknown, | 29855 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 26910 | contentItems: Schema.optionalKey( | 29856 | contentItems: Schema.optionalKey( |
| 26911 | Schema.Union([ | 29857 | Schema.Union([ |
| 26912 | Schema.Array(V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem), | 29858 | Schema.Array(V2ThreadReadResponse__DynamicToolCallOutputContentItem), |
| 26913 | Schema.Null, | 29859 | Schema.Null, |
| 26914 | ]), | 29860 | ]), |
| 26915 | ), | 29861 | ), |
| ... | @@ -26918,22 +29864,21 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( | ... | @@ -26918,22 +29864,21 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 26918 | Schema.Number.annotate({ | 29864 | Schema.Number.annotate({ |
| 26919 | description: "The duration of the dynamic tool call in milliseconds.", | 29865 | description: "The duration of the dynamic tool call in milliseconds.", |
| 26920 | format: "int64", | 29866 | format: "int64", |
| 26921 | }).check(Schema.isInt()), | 29867 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 26922 | Schema.Null, | 29868 | Schema.Null, |
| 26923 | ]), | 29869 | ]), |
| 26924 | ), | 29870 | ), |
| 26925 | id: Schema.String, | 29871 | id: Schema.String, |
| 26926 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 29872 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 26927 | status: V2ThreadUnarchiveResponse__DynamicToolCallStatus, | 29873 | status: V2ThreadReadResponse__DynamicToolCallStatus, |
| 26928 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 29874 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 26929 | tool: Schema.String, | 29875 | tool: Schema.String, |
| 26930 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), | 29876 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 26931 | }).annotate({ title: "DynamicToolCallThreadItem" }), | 29877 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 26932 | Schema.Struct({ | 29878 | Schema.Struct({ |
| 26933 | agentsStates: Schema.Record( | 29879 | agentsStates: Schema.Record(Schema.String, V2ThreadReadResponse__CollabAgentState).annotate({ |
| 26934 | Schema.String, | 29880 | description: "Last known status of the target agents, when available.", |
| 26935 | V2ThreadUnarchiveResponse__CollabAgentState, | 29881 | }), |
| 26936 | ).annotate({ description: "Last known status of the target agents, when available." }), | | |
| 26937 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), | 29882 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 26938 | model: Schema.optionalKey( | 29883 | model: Schema.optionalKey( |
| 26939 | Schema.Union([ | 29884 | Schema.Union([ |
| ... | @@ -26952,7 +29897,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( | ... | @@ -26952,7 +29897,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 26952 | ]), | 29897 | ]), |
| 26953 | ), | 29898 | ), |
| 26954 | reasoningEffort: Schema.optionalKey( | 29899 | reasoningEffort: Schema.optionalKey( |
| 26955 | Schema.Union([V2ThreadUnarchiveResponse__ReasoningEffort, Schema.Null]).annotate({ | 29900 | Schema.Union([V2ThreadReadResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 26956 | description: "Reasoning effort requested for the spawned agent, when applicable.", | 29901 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 26957 | }), | 29902 | }), |
| 26958 | ), | 29903 | ), |
| ... | @@ -26963,20 +29908,14 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( | ... | @@ -26963,20 +29908,14 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 26963 | senderThreadId: Schema.String.annotate({ | 29908 | senderThreadId: Schema.String.annotate({ |
| 26964 | description: "Thread ID of the agent issuing the collab request.", | 29909 | description: "Thread ID of the agent issuing the collab request.", |
| 26965 | }), | 29910 | }), |
| 26966 | status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({ | 29911 | status: Schema.suspend( |
| 26967 | description: "Current status of the collab tool call.", | 29912 | (): Schema.Codec<V2ThreadReadResponse__CollabAgentToolCallStatus> => |
| 26968 | }), | 29913 | V2ThreadReadResponse__CollabAgentToolCallStatus, |
| 26969 | tool: Schema.Literals([ | 29914 | ).annotate({ description: "Current status of the collab tool call." }), |
| 26970 | "spawnAgent", | 29915 | tool: Schema.suspend( |
| 26971 | "sendInput", | 29916 | (): Schema.Codec<V2ThreadReadResponse__CollabAgentTool> => |
| 26972 | "resumeAgent", | 29917 | V2ThreadReadResponse__CollabAgentTool, |
| 26973 | "wait", | 29918 | ).annotate({ description: "Name of the collab tool that was invoked." }), |
| 26974 | "closeAgent", | | |
| 26975 | "sendMessage", | | |
| 26976 | "followupTask", | | |
| 26977 | "interruptAgent", | | |
| 26978 | "listAgents", | | |
| 26979 | ]).annotate({ description: "Name of the collab tool that was invoked." }), | | |
| 26980 | type: Schema.Literal("collabAgentToolCall").annotate({ | 29919 | type: Schema.Literal("collabAgentToolCall").annotate({ |
| 26981 | title: "CollabAgentToolCallThreadItemType", | 29920 | title: "CollabAgentToolCallThreadItemType", |
| 26982 | }), | 29921 | }), |
| ... | @@ -26985,20 +29924,20 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( | ... | @@ -26985,20 +29924,20 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 26985 | agentPath: Schema.String, | 29924 | agentPath: Schema.String, |
| 26986 | agentThreadId: Schema.String, | 29925 | agentThreadId: Schema.String, |
| 26987 | id: Schema.String, | 29926 | id: Schema.String, |
| 26988 | kind: V2ThreadUnarchiveResponse__SubAgentActivityKind, | 29927 | kind: V2ThreadReadResponse__SubAgentActivityKind, |
| 26989 | type: Schema.Literal("subAgentActivity").annotate({ | 29928 | type: Schema.Literal("subAgentActivity").annotate({ |
| 26990 | title: "SubAgentActivityThreadItemType", | 29929 | title: "SubAgentActivityThreadItemType", |
| 26991 | }), | 29930 | }), |
| 26992 | }).annotate({ title: "SubAgentActivityThreadItem" }), | 29931 | }).annotate({ title: "SubAgentActivityThreadItem" }), |
| 26993 | Schema.Struct({ | 29932 | Schema.Struct({ |
| 26994 | action: Schema.optionalKey( | 29933 | action: Schema.optionalKey( |
| 26995 | Schema.Union([V2ThreadUnarchiveResponse__WebSearchAction, Schema.Null]), | 29934 | Schema.Union([V2ThreadReadResponse__WebSearchAction, Schema.Null]), |
| 26996 | ), | 29935 | ), |
| 26997 | id: Schema.String, | 29936 | id: Schema.String, |
| 26998 | query: Schema.String, | 29937 | query: Schema.String, |
| 26999 | results: Schema.optionalKey( | 29938 | results: Schema.optionalKey( |
| 27000 | Schema.Union([ | 29939 | Schema.Union([ |
| 27001 | Schema.Array(Schema.Unknown).annotate({ | 29940 | Schema.Array(Schema.Json.annotate({ expected: "JSON value" })).annotate({ |
| 27002 | description: | 29941 | description: |
| 27003 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", | 29942 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", |
| 27004 | }), | 29943 | }), |
| ... | @@ -27009,13 +29948,17 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( | ... | @@ -27009,13 +29948,17 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 27009 | }).annotate({ title: "WebSearchThreadItem" }), | 29948 | }).annotate({ title: "WebSearchThreadItem" }), |
| 27010 | Schema.Struct({ | 29949 | Schema.Struct({ |
| 27011 | id: Schema.String, | 29950 | id: Schema.String, |
| 27012 | path: V2ThreadUnarchiveResponse__LegacyAppPathString, | 29951 | path: V2ThreadReadResponse__LegacyAppPathString, |
| 27013 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), | 29952 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 27014 | }).annotate({ title: "ImageViewThreadItem" }), | 29953 | }).annotate({ title: "ImageViewThreadItem" }), |
| 27015 | Schema.Struct({ | 29954 | Schema.Struct({ |
| 27016 | durationMs: Schema.Number.annotate({ format: "uint64" }) | 29955 | durationMs: Schema.Number.annotate({ format: "uint64" }) |
| 27017 | .check(Schema.isInt()) | 29956 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 27018 | .check(Schema.isGreaterThanOrEqualTo(0)), | 29957 | .check( |
| | 29958 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 29959 | expected: "a value greater than or equal to 0", |
| | 29960 | }), |
| | 29961 | ), |
| 27019 | id: Schema.String, | 29962 | id: Schema.String, |
| 27020 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), | 29963 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), |
| 27021 | }).annotate({ | 29964 | }).annotate({ |
| ... | @@ -27027,7 +29970,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( | ... | @@ -27027,7 +29970,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 27027 | result: Schema.String, | 29970 | result: Schema.String, |
| 27028 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 29971 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 27029 | savedPath: Schema.optionalKey( | 29972 | savedPath: Schema.optionalKey( |
| 27030 | Schema.Union([V2ThreadUnarchiveResponse__AbsolutePathBuf, Schema.Null]), | 29973 | Schema.Union([V2ThreadReadResponse__AbsolutePathBuf, Schema.Null]), |
| 27031 | ), | 29974 | ), |
| 27032 | status: Schema.String, | 29975 | status: Schema.String, |
| 27033 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 29976 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| ... | @@ -27054,37 +29997,24 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( | ... | @@ -27054,37 +29997,24 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 27054 | }).annotate({ title: "ContextCompactionThreadItem" }), | 29997 | }).annotate({ title: "ContextCompactionThreadItem" }), |
| 27055 | ], | 29998 | ], |
| 27056 | { mode: "oneOf" }, | 29999 | { mode: "oneOf" }, |
| 27057 | ); | 30000 | ).annotate({ identifier: "V2ThreadReadResponse__ThreadItem" }); |
| 27058 | | 30001 | |
| 27059 | export type V2TurnCompletedNotification__TurnError = { | 30002 | export type V2ThreadResumeResponse__ThreadItem = |
| 27060 | readonly additionalDetails?: string | null; | | |
| 27061 | readonly codexErrorInfo?: V2TurnCompletedNotification__CodexErrorInfo | null; | | |
| 27062 | readonly message: string; | | |
| 27063 | }; | | |
| 27064 | export const V2TurnCompletedNotification__TurnError = Schema.Struct({ | | |
| 27065 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 27066 | codexErrorInfo: Schema.optionalKey( | | |
| 27067 | Schema.Union([V2TurnCompletedNotification__CodexErrorInfo, Schema.Null]), | | |
| 27068 | ), | | |
| 27069 | message: Schema.String, | | |
| 27070 | }); | | |
| 27071 | | | |
| 27072 | export type V2TurnCompletedNotification__ThreadItem = | | |
| 27073 | | { | 30003 | | { |
| 27074 | readonly clientId?: string | null; | 30004 | readonly clientId?: string | null; |
| 27075 | readonly content: ReadonlyArray<V2TurnCompletedNotification__UserInput>; | 30005 | readonly content: ReadonlyArray<V2ThreadResumeResponse__UserInput>; |
| 27076 | readonly id: string; | 30006 | readonly id: string; |
| 27077 | readonly type: "userMessage"; | 30007 | readonly type: "userMessage"; |
| 27078 | } | 30008 | } |
| 27079 | | { | 30009 | | { |
| 27080 | readonly fragments: ReadonlyArray<V2TurnCompletedNotification__HookPromptFragment>; | 30010 | readonly fragments: ReadonlyArray<V2ThreadResumeResponse__HookPromptFragment>; |
| 27081 | readonly id: string; | 30011 | readonly id: string; |
| 27082 | readonly type: "hookPrompt"; | 30012 | readonly type: "hookPrompt"; |
| 27083 | } | 30013 | } |
| 27084 | | { | 30014 | | { |
| 27085 | readonly id: string; | 30015 | readonly id: string; |
| 27086 | readonly memoryCitation?: V2TurnCompletedNotification__MemoryCitation | null; | 30016 | readonly memoryCitation?: V2ThreadResumeResponse__MemoryCitation | null; |
| 27087 | readonly phase?: V2TurnCompletedNotification__MessagePhase | null; | 30017 | readonly phase?: V2ThreadResumeResponse__MessagePhase | null; |
| 27088 | readonly text: string; | 30018 | readonly text: string; |
| 27089 | readonly delivery?: "async" | null; | 30019 | readonly delivery?: "async" | null; |
| 27090 | readonly questions?: ReadonlyArray<{ | 30020 | readonly questions?: ReadonlyArray<{ |
| ... | @@ -27103,87 +30033,76 @@ export type V2TurnCompletedNotification__ThreadItem = | ... | @@ -27103,87 +30033,76 @@ export type V2TurnCompletedNotification__ThreadItem = |
| 27103 | | { | 30033 | | { |
| 27104 | readonly aggregatedOutput?: string | null; | 30034 | readonly aggregatedOutput?: string | null; |
| 27105 | readonly command: string; | 30035 | readonly command: string; |
| 27106 | readonly commandActions: ReadonlyArray<V2TurnCompletedNotification__CommandAction>; | 30036 | readonly commandActions: ReadonlyArray<V2ThreadResumeResponse__CommandAction>; |
| 27107 | readonly cwd: string; | 30037 | readonly cwd: V2ThreadResumeResponse__LegacyAppPathString; |
| 27108 | readonly durationMs?: number | null; | 30038 | readonly durationMs?: number | null; |
| 27109 | readonly exitCode?: number | null; | 30039 | readonly exitCode?: number | null; |
| 27110 | readonly id: string; | 30040 | readonly id: string; |
| 27111 | readonly processId?: string | null; | 30041 | readonly processId?: string | null; |
| 27112 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; | 30042 | readonly source?: V2ThreadResumeResponse__CommandExecutionSource; |
| 27113 | readonly status: V2TurnCompletedNotification__CommandExecutionStatus; | 30043 | readonly status: V2ThreadResumeResponse__CommandExecutionStatus; |
| 27114 | readonly type: "commandExecution"; | 30044 | readonly type: "commandExecution"; |
| 27115 | } | 30045 | } |
| 27116 | | { | 30046 | | { |
| 27117 | readonly changes: ReadonlyArray<V2TurnCompletedNotification__FileUpdateChange>; | 30047 | readonly changes: ReadonlyArray<V2ThreadResumeResponse__FileUpdateChange>; |
| 27118 | readonly id: string; | 30048 | readonly id: string; |
| 27119 | readonly status: V2TurnCompletedNotification__PatchApplyStatus; | 30049 | readonly status: V2ThreadResumeResponse__PatchApplyStatus; |
| 27120 | readonly type: "fileChange"; | 30050 | readonly type: "fileChange"; |
| 27121 | } | 30051 | } |
| 27122 | | { | 30052 | | { |
| 27123 | readonly appContext?: V2TurnCompletedNotification__McpToolCallAppContext | null; | 30053 | readonly appContext?: V2ThreadResumeResponse__McpToolCallAppContext | null; |
| 27124 | readonly arguments: unknown; | 30054 | readonly arguments: Schema.Json; |
| 27125 | readonly durationMs?: number | null; | 30055 | readonly durationMs?: number | null; |
| 27126 | readonly error?: V2TurnCompletedNotification__McpToolCallError | null; | 30056 | readonly error?: V2ThreadResumeResponse__McpToolCallError | null; |
| 27127 | readonly id: string; | 30057 | readonly id: string; |
| 27128 | readonly mcpAppResourceUri?: string | null; | 30058 | readonly mcpAppResourceUri?: string | null; |
| 27129 | readonly pluginId?: string | null; | 30059 | readonly pluginId?: string | null; |
| 27130 | readonly result?: V2TurnCompletedNotification__McpToolCallResult | null; | 30060 | readonly result?: V2ThreadResumeResponse__McpToolCallResult | null; |
| 27131 | readonly server: string; | 30061 | readonly server: string; |
| 27132 | readonly status: V2TurnCompletedNotification__McpToolCallStatus; | 30062 | readonly status: V2ThreadResumeResponse__McpToolCallStatus; |
| 27133 | readonly tool: string; | 30063 | readonly tool: string; |
| 27134 | readonly type: "mcpToolCall"; | 30064 | readonly type: "mcpToolCall"; |
| 27135 | } | 30065 | } |
| 27136 | | { | 30066 | | { |
| 27137 | readonly arguments: unknown; | 30067 | readonly arguments: Schema.Json; |
| 27138 | readonly contentItems?: ReadonlyArray<V2TurnCompletedNotification__DynamicToolCallOutputContentItem> | null; | 30068 | readonly contentItems?: ReadonlyArray<V2ThreadResumeResponse__DynamicToolCallOutputContentItem> | null; |
| 27139 | readonly durationMs?: number | null; | 30069 | readonly durationMs?: number | null; |
| 27140 | readonly id: string; | 30070 | readonly id: string; |
| 27141 | readonly namespace?: string | null; | 30071 | readonly namespace?: string | null; |
| 27142 | readonly status: V2TurnCompletedNotification__DynamicToolCallStatus; | 30072 | readonly status: V2ThreadResumeResponse__DynamicToolCallStatus; |
| 27143 | readonly success?: boolean | null; | 30073 | readonly success?: boolean | null; |
| 27144 | readonly tool: string; | 30074 | readonly tool: string; |
| 27145 | readonly type: "dynamicToolCall"; | 30075 | readonly type: "dynamicToolCall"; |
| 27146 | } | 30076 | } |
| 27147 | | { | 30077 | | { |
| 27148 | readonly agentsStates: { | 30078 | readonly agentsStates: { readonly [x: string]: V2ThreadResumeResponse__CollabAgentState }; |
| 27149 | readonly [x: string]: V2TurnCompletedNotification__CollabAgentState; | | |
| 27150 | }; | | |
| 27151 | readonly id: string; | 30079 | readonly id: string; |
| 27152 | readonly model?: string | null; | 30080 | readonly model?: string | null; |
| 27153 | readonly prompt?: string | null; | 30081 | readonly prompt?: string | null; |
| 27154 | readonly reasoningEffort?: V2TurnCompletedNotification__ReasoningEffort | null; | 30082 | readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null; |
| 27155 | readonly receiverThreadIds: ReadonlyArray<string>; | 30083 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 27156 | readonly senderThreadId: string; | 30084 | readonly senderThreadId: string; |
| 27157 | readonly status: "inProgress" | "completed" | "failed" | "interrupted"; | 30085 | readonly status: V2ThreadResumeResponse__CollabAgentToolCallStatus; |
| 27158 | readonly tool: | 30086 | readonly tool: V2ThreadResumeResponse__CollabAgentTool; |
| 27159 | | "spawnAgent" | | |
| 27160 | | "sendInput" | | |
| 27161 | | "resumeAgent" | | |
| 27162 | | "wait" | | |
| 27163 | | "closeAgent" | | |
| 27164 | | "sendMessage" | | |
| 27165 | | "followupTask" | | |
| 27166 | | "interruptAgent" | | |
| 27167 | | "listAgents"; | | |
| 27168 | readonly type: "collabAgentToolCall"; | 30087 | readonly type: "collabAgentToolCall"; |
| 27169 | } | 30088 | } |
| 27170 | | { | 30089 | | { |
| 27171 | readonly agentPath: string; | 30090 | readonly agentPath: string; |
| 27172 | readonly agentThreadId: string; | 30091 | readonly agentThreadId: string; |
| 27173 | readonly id: string; | 30092 | readonly id: string; |
| 27174 | readonly kind: V2TurnCompletedNotification__SubAgentActivityKind; | 30093 | readonly kind: V2ThreadResumeResponse__SubAgentActivityKind; |
| 27175 | readonly type: "subAgentActivity"; | 30094 | readonly type: "subAgentActivity"; |
| 27176 | } | 30095 | } |
| 27177 | | { | 30096 | | { |
| 27178 | readonly action?: V2TurnCompletedNotification__WebSearchAction | null; | 30097 | readonly action?: V2ThreadResumeResponse__WebSearchAction | null; |
| 27179 | readonly id: string; | 30098 | readonly id: string; |
| 27180 | readonly query: string; | 30099 | readonly query: string; |
| 27181 | readonly results?: ReadonlyArray<unknown> | null; | 30100 | readonly results?: ReadonlyArray<Schema.Json> | null; |
| 27182 | readonly type: "webSearch"; | 30101 | readonly type: "webSearch"; |
| 27183 | } | 30102 | } |
| 27184 | | { | 30103 | | { |
| 27185 | readonly id: string; | 30104 | readonly id: string; |
| 27186 | readonly path: V2TurnCompletedNotification__LegacyAppPathString; | 30105 | readonly path: V2ThreadResumeResponse__LegacyAppPathString; |
| 27187 | readonly type: "imageView"; | 30106 | readonly type: "imageView"; |
| 27188 | } | 30107 | } |
| 27189 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | 30108 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| ... | @@ -27191,34 +30110,32 @@ export type V2TurnCompletedNotification__ThreadItem = | ... | @@ -27191,34 +30110,32 @@ export type V2TurnCompletedNotification__ThreadItem = |
| 27191 | readonly id: string; | 30110 | readonly id: string; |
| 27192 | readonly result: string; | 30111 | readonly result: string; |
| 27193 | readonly revisedPrompt?: string | null; | 30112 | readonly revisedPrompt?: string | null; |
| 27194 | readonly savedPath?: V2TurnCompletedNotification__AbsolutePathBuf | null; | 30113 | readonly savedPath?: V2ThreadResumeResponse__AbsolutePathBuf | null; |
| 27195 | readonly status: string; | 30114 | readonly status: string; |
| 27196 | readonly type: "imageGeneration"; | 30115 | readonly type: "imageGeneration"; |
| 27197 | } | 30116 | } |
| 27198 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 30117 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 27199 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } | 30118 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 27200 | | { readonly id: string; readonly type: "contextCompaction" }; | 30119 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 27201 | export const V2TurnCompletedNotification__ThreadItem = Schema.Union( | 30120 | export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 27202 | [ | 30121 | [ |
| 27203 | Schema.Struct({ | 30122 | Schema.Struct({ |
| 27204 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 30123 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 27205 | content: Schema.Array(V2TurnCompletedNotification__UserInput), | 30124 | content: Schema.Array(V2ThreadResumeResponse__UserInput), |
| 27206 | id: Schema.String, | 30125 | id: Schema.String, |
| 27207 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), | 30126 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 27208 | }).annotate({ title: "UserMessageThreadItem" }), | 30127 | }).annotate({ title: "UserMessageThreadItem" }), |
| 27209 | Schema.Struct({ | 30128 | Schema.Struct({ |
| 27210 | fragments: Schema.Array(V2TurnCompletedNotification__HookPromptFragment), | 30129 | fragments: Schema.Array(V2ThreadResumeResponse__HookPromptFragment), |
| 27211 | id: Schema.String, | 30130 | id: Schema.String, |
| 27212 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | 30131 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 27213 | }).annotate({ title: "HookPromptThreadItem" }), | 30132 | }).annotate({ title: "HookPromptThreadItem" }), |
| 27214 | Schema.Struct({ | 30133 | Schema.Struct({ |
| 27215 | id: Schema.String, | 30134 | id: Schema.String, |
| 27216 | memoryCitation: Schema.optionalKey( | 30135 | memoryCitation: Schema.optionalKey( |
| 27217 | Schema.Union([V2TurnCompletedNotification__MemoryCitation, Schema.Null]), | 30136 | Schema.Union([V2ThreadResumeResponse__MemoryCitation, Schema.Null]), |
| 27218 | ), | | |
| 27219 | phase: Schema.optionalKey( | | |
| 27220 | Schema.Union([V2TurnCompletedNotification__MessagePhase, Schema.Null]), | | |
| 27221 | ), | 30137 | ), |
| | 30138 | phase: Schema.optionalKey(Schema.Union([V2ThreadResumeResponse__MessagePhase, Schema.Null])), |
| 27222 | text: Schema.String, | 30139 | text: Schema.String, |
| 27223 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | 30140 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), |
| 27224 | questions: Schema.optionalKey( | 30141 | questions: Schema.optionalKey( |
| ... | @@ -27259,17 +30176,20 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( | ... | @@ -27259,17 +30176,20 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( |
| 27259 | ]), | 30176 | ]), |
| 27260 | ), | 30177 | ), |
| 27261 | command: Schema.String.annotate({ description: "The command to be executed." }), | 30178 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 27262 | commandActions: Schema.Array(V2TurnCompletedNotification__CommandAction).annotate({ | 30179 | commandActions: Schema.Array(V2ThreadResumeResponse__CommandAction).annotate({ |
| 27263 | description: | 30180 | description: |
| 27264 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", | 30181 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 27265 | }), | 30182 | }), |
| 27266 | cwd: Schema.String.annotate({ description: "The command's working directory." }), | 30183 | cwd: Schema.suspend( |
| | 30184 | (): Schema.Codec<V2ThreadResumeResponse__LegacyAppPathString> => |
| | 30185 | V2ThreadResumeResponse__LegacyAppPathString, |
| | 30186 | ).annotate({ description: "The command's working directory." }), |
| 27267 | durationMs: Schema.optionalKey( | 30187 | durationMs: Schema.optionalKey( |
| 27268 | Schema.Union([ | 30188 | Schema.Union([ |
| 27269 | Schema.Number.annotate({ | 30189 | Schema.Number.annotate({ |
| 27270 | description: "The duration of the command execution in milliseconds.", | 30190 | description: "The duration of the command execution in milliseconds.", |
| 27271 | format: "int64", | 30191 | format: "int64", |
| 27272 | }).check(Schema.isInt()), | 30192 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 27273 | Schema.Null, | 30193 | Schema.Null, |
| 27274 | ]), | 30194 | ]), |
| 27275 | ), | 30195 | ), |
| ... | @@ -27278,7 +30198,7 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( | ... | @@ -27278,7 +30198,7 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( |
| 27278 | Schema.Number.annotate({ | 30198 | Schema.Number.annotate({ |
| 27279 | description: "The command's exit code.", | 30199 | description: "The command's exit code.", |
| 27280 | format: "int32", | 30200 | format: "int32", |
| 27281 | }).check(Schema.isInt()), | 30201 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 27282 | Schema.Null, | 30202 | Schema.Null, |
| 27283 | ]), | 30203 | ]), |
| 27284 | ), | 30204 | ), |
| ... | @@ -27292,40 +30212,38 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( | ... | @@ -27292,40 +30212,38 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( |
| 27292 | ]), | 30212 | ]), |
| 27293 | ), | 30213 | ), |
| 27294 | source: Schema.optionalKey( | 30214 | source: Schema.optionalKey( |
| 27295 | Schema.Literals([ | 30215 | Schema.suspend( |
| 27296 | "agent", | 30216 | (): Schema.Codec<V2ThreadResumeResponse__CommandExecutionSource> => |
| 27297 | "userShell", | 30217 | V2ThreadResumeResponse__CommandExecutionSource, |
| 27298 | "unifiedExecStartup", | 30218 | ).annotate({ default: "agent" }), |
| 27299 | "unifiedExecInteraction", | | |
| 27300 | ]).annotate({ default: "agent" }), | | |
| 27301 | ), | 30219 | ), |
| 27302 | status: V2TurnCompletedNotification__CommandExecutionStatus, | 30220 | status: V2ThreadResumeResponse__CommandExecutionStatus, |
| 27303 | type: Schema.Literal("commandExecution").annotate({ | 30221 | type: Schema.Literal("commandExecution").annotate({ |
| 27304 | title: "CommandExecutionThreadItemType", | 30222 | title: "CommandExecutionThreadItemType", |
| 27305 | }), | 30223 | }), |
| 27306 | }).annotate({ title: "CommandExecutionThreadItem" }), | 30224 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 27307 | Schema.Struct({ | 30225 | Schema.Struct({ |
| 27308 | changes: Schema.Array(V2TurnCompletedNotification__FileUpdateChange), | 30226 | changes: Schema.Array(V2ThreadResumeResponse__FileUpdateChange), |
| 27309 | id: Schema.String, | 30227 | id: Schema.String, |
| 27310 | status: V2TurnCompletedNotification__PatchApplyStatus, | 30228 | status: V2ThreadResumeResponse__PatchApplyStatus, |
| 27311 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), | 30229 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 27312 | }).annotate({ title: "FileChangeThreadItem" }), | 30230 | }).annotate({ title: "FileChangeThreadItem" }), |
| 27313 | Schema.Struct({ | 30231 | Schema.Struct({ |
| 27314 | appContext: Schema.optionalKey( | 30232 | appContext: Schema.optionalKey( |
| 27315 | Schema.Union([V2TurnCompletedNotification__McpToolCallAppContext, Schema.Null]), | 30233 | Schema.Union([V2ThreadResumeResponse__McpToolCallAppContext, Schema.Null]), |
| 27316 | ), | 30234 | ), |
| 27317 | arguments: Schema.Unknown, | 30235 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 27318 | durationMs: Schema.optionalKey( | 30236 | durationMs: Schema.optionalKey( |
| 27319 | Schema.Union([ | 30237 | Schema.Union([ |
| 27320 | Schema.Number.annotate({ | 30238 | Schema.Number.annotate({ |
| 27321 | description: "The duration of the MCP tool call in milliseconds.", | 30239 | description: "The duration of the MCP tool call in milliseconds.", |
| 27322 | format: "int64", | 30240 | format: "int64", |
| 27323 | }).check(Schema.isInt()), | 30241 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 27324 | Schema.Null, | 30242 | Schema.Null, |
| 27325 | ]), | 30243 | ]), |
| 27326 | ), | 30244 | ), |
| 27327 | error: Schema.optionalKey( | 30245 | error: Schema.optionalKey( |
| 27328 | Schema.Union([V2TurnCompletedNotification__McpToolCallError, Schema.Null]), | 30246 | Schema.Union([V2ThreadResumeResponse__McpToolCallError, Schema.Null]), |
| 27329 | ), | 30247 | ), |
| 27330 | id: Schema.String, | 30248 | id: Schema.String, |
| 27331 | mcpAppResourceUri: Schema.optionalKey( | 30249 | mcpAppResourceUri: Schema.optionalKey( |
| ... | @@ -27338,18 +30256,18 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( | ... | @@ -27338,18 +30256,18 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( |
| 27338 | ), | 30256 | ), |
| 27339 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 30257 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 27340 | result: Schema.optionalKey( | 30258 | result: Schema.optionalKey( |
| 27341 | Schema.Union([V2TurnCompletedNotification__McpToolCallResult, Schema.Null]), | 30259 | Schema.Union([V2ThreadResumeResponse__McpToolCallResult, Schema.Null]), |
| 27342 | ), | 30260 | ), |
| 27343 | server: Schema.String, | 30261 | server: Schema.String, |
| 27344 | status: V2TurnCompletedNotification__McpToolCallStatus, | 30262 | status: V2ThreadResumeResponse__McpToolCallStatus, |
| 27345 | tool: Schema.String, | 30263 | tool: Schema.String, |
| 27346 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), | 30264 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 27347 | }).annotate({ title: "McpToolCallThreadItem" }), | 30265 | }).annotate({ title: "McpToolCallThreadItem" }), |
| 27348 | Schema.Struct({ | 30266 | Schema.Struct({ |
| 27349 | arguments: Schema.Unknown, | 30267 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 27350 | contentItems: Schema.optionalKey( | 30268 | contentItems: Schema.optionalKey( |
| 27351 | Schema.Union([ | 30269 | Schema.Union([ |
| 27352 | Schema.Array(V2TurnCompletedNotification__DynamicToolCallOutputContentItem), | 30270 | Schema.Array(V2ThreadResumeResponse__DynamicToolCallOutputContentItem), |
| 27353 | Schema.Null, | 30271 | Schema.Null, |
| 27354 | ]), | 30272 | ]), |
| 27355 | ), | 30273 | ), |
| ... | @@ -27358,22 +30276,21 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( | ... | @@ -27358,22 +30276,21 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( |
| 27358 | Schema.Number.annotate({ | 30276 | Schema.Number.annotate({ |
| 27359 | description: "The duration of the dynamic tool call in milliseconds.", | 30277 | description: "The duration of the dynamic tool call in milliseconds.", |
| 27360 | format: "int64", | 30278 | format: "int64", |
| 27361 | }).check(Schema.isInt()), | 30279 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 27362 | Schema.Null, | 30280 | Schema.Null, |
| 27363 | ]), | 30281 | ]), |
| 27364 | ), | 30282 | ), |
| 27365 | id: Schema.String, | 30283 | id: Schema.String, |
| 27366 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 30284 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 27367 | status: V2TurnCompletedNotification__DynamicToolCallStatus, | 30285 | status: V2ThreadResumeResponse__DynamicToolCallStatus, |
| 27368 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 30286 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 27369 | tool: Schema.String, | 30287 | tool: Schema.String, |
| 27370 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), | 30288 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 27371 | }).annotate({ title: "DynamicToolCallThreadItem" }), | 30289 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 27372 | Schema.Struct({ | 30290 | Schema.Struct({ |
| 27373 | agentsStates: Schema.Record( | 30291 | agentsStates: Schema.Record(Schema.String, V2ThreadResumeResponse__CollabAgentState).annotate( |
| 27374 | Schema.String, | 30292 | { description: "Last known status of the target agents, when available." }, |
| 27375 | V2TurnCompletedNotification__CollabAgentState, | 30293 | ), |
| 27376 | ).annotate({ description: "Last known status of the target agents, when available." }), | | |
| 27377 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), | 30294 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 27378 | model: Schema.optionalKey( | 30295 | model: Schema.optionalKey( |
| 27379 | Schema.Union([ | 30296 | Schema.Union([ |
| ... | @@ -27392,7 +30309,7 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( | ... | @@ -27392,7 +30309,7 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( |
| 27392 | ]), | 30309 | ]), |
| 27393 | ), | 30310 | ), |
| 27394 | reasoningEffort: Schema.optionalKey( | 30311 | reasoningEffort: Schema.optionalKey( |
| 27395 | Schema.Union([V2TurnCompletedNotification__ReasoningEffort, Schema.Null]).annotate({ | 30312 | Schema.Union([V2ThreadResumeResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 27396 | description: "Reasoning effort requested for the spawned agent, when applicable.", | 30313 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 27397 | }), | 30314 | }), |
| 27398 | ), | 30315 | ), |
| ... | @@ -27403,20 +30320,14 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( | ... | @@ -27403,20 +30320,14 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( |
| 27403 | senderThreadId: Schema.String.annotate({ | 30320 | senderThreadId: Schema.String.annotate({ |
| 27404 | description: "Thread ID of the agent issuing the collab request.", | 30321 | description: "Thread ID of the agent issuing the collab request.", |
| 27405 | }), | 30322 | }), |
| 27406 | status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({ | 30323 | status: Schema.suspend( |
| 27407 | description: "Current status of the collab tool call.", | 30324 | (): Schema.Codec<V2ThreadResumeResponse__CollabAgentToolCallStatus> => |
| 27408 | }), | 30325 | V2ThreadResumeResponse__CollabAgentToolCallStatus, |
| 27409 | tool: Schema.Literals([ | 30326 | ).annotate({ description: "Current status of the collab tool call." }), |
| 27410 | "spawnAgent", | 30327 | tool: Schema.suspend( |
| 27411 | "sendInput", | 30328 | (): Schema.Codec<V2ThreadResumeResponse__CollabAgentTool> => |
| 27412 | "resumeAgent", | 30329 | V2ThreadResumeResponse__CollabAgentTool, |
| 27413 | "wait", | 30330 | ).annotate({ description: "Name of the collab tool that was invoked." }), |
| 27414 | "closeAgent", | | |
| 27415 | "sendMessage", | | |
| 27416 | "followupTask", | | |
| 27417 | "interruptAgent", | | |
| 27418 | "listAgents", | | |
| 27419 | ]).annotate({ description: "Name of the collab tool that was invoked." }), | | |
| 27420 | type: Schema.Literal("collabAgentToolCall").annotate({ | 30331 | type: Schema.Literal("collabAgentToolCall").annotate({ |
| 27421 | title: "CollabAgentToolCallThreadItemType", | 30332 | title: "CollabAgentToolCallThreadItemType", |
| 27422 | }), | 30333 | }), |
| ... | @@ -27425,20 +30336,20 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( | ... | @@ -27425,20 +30336,20 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( |
| 27425 | agentPath: Schema.String, | 30336 | agentPath: Schema.String, |
| 27426 | agentThreadId: Schema.String, | 30337 | agentThreadId: Schema.String, |
| 27427 | id: Schema.String, | 30338 | id: Schema.String, |
| 27428 | kind: V2TurnCompletedNotification__SubAgentActivityKind, | 30339 | kind: V2ThreadResumeResponse__SubAgentActivityKind, |
| 27429 | type: Schema.Literal("subAgentActivity").annotate({ | 30340 | type: Schema.Literal("subAgentActivity").annotate({ |
| 27430 | title: "SubAgentActivityThreadItemType", | 30341 | title: "SubAgentActivityThreadItemType", |
| 27431 | }), | 30342 | }), |
| 27432 | }).annotate({ title: "SubAgentActivityThreadItem" }), | 30343 | }).annotate({ title: "SubAgentActivityThreadItem" }), |
| 27433 | Schema.Struct({ | 30344 | Schema.Struct({ |
| 27434 | action: Schema.optionalKey( | 30345 | action: Schema.optionalKey( |
| 27435 | Schema.Union([V2TurnCompletedNotification__WebSearchAction, Schema.Null]), | 30346 | Schema.Union([V2ThreadResumeResponse__WebSearchAction, Schema.Null]), |
| 27436 | ), | 30347 | ), |
| 27437 | id: Schema.String, | 30348 | id: Schema.String, |
| 27438 | query: Schema.String, | 30349 | query: Schema.String, |
| 27439 | results: Schema.optionalKey( | 30350 | results: Schema.optionalKey( |
| 27440 | Schema.Union([ | 30351 | Schema.Union([ |
| 27441 | Schema.Array(Schema.Unknown).annotate({ | 30352 | Schema.Array(Schema.Json.annotate({ expected: "JSON value" })).annotate({ |
| 27442 | description: | 30353 | description: |
| 27443 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", | 30354 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", |
| 27444 | }), | 30355 | }), |
| ... | @@ -27449,13 +30360,17 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( | ... | @@ -27449,13 +30360,17 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( |
| 27449 | }).annotate({ title: "WebSearchThreadItem" }), | 30360 | }).annotate({ title: "WebSearchThreadItem" }), |
| 27450 | Schema.Struct({ | 30361 | Schema.Struct({ |
| 27451 | id: Schema.String, | 30362 | id: Schema.String, |
| 27452 | path: V2TurnCompletedNotification__LegacyAppPathString, | 30363 | path: V2ThreadResumeResponse__LegacyAppPathString, |
| 27453 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), | 30364 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 27454 | }).annotate({ title: "ImageViewThreadItem" }), | 30365 | }).annotate({ title: "ImageViewThreadItem" }), |
| 27455 | Schema.Struct({ | 30366 | Schema.Struct({ |
| 27456 | durationMs: Schema.Number.annotate({ format: "uint64" }) | 30367 | durationMs: Schema.Number.annotate({ format: "uint64" }) |
| 27457 | .check(Schema.isInt()) | 30368 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 27458 | .check(Schema.isGreaterThanOrEqualTo(0)), | 30369 | .check( |
| | 30370 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 30371 | expected: "a value greater than or equal to 0", |
| | 30372 | }), |
| | 30373 | ), |
| 27459 | id: Schema.String, | 30374 | id: Schema.String, |
| 27460 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), | 30375 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), |
| 27461 | }).annotate({ | 30376 | }).annotate({ |
| ... | @@ -27467,7 +30382,7 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( | ... | @@ -27467,7 +30382,7 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( |
| 27467 | result: Schema.String, | 30382 | result: Schema.String, |
| 27468 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 30383 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 27469 | savedPath: Schema.optionalKey( | 30384 | savedPath: Schema.optionalKey( |
| 27470 | Schema.Union([V2TurnCompletedNotification__AbsolutePathBuf, Schema.Null]), | 30385 | Schema.Union([V2ThreadResumeResponse__AbsolutePathBuf, Schema.Null]), |
| 27471 | ), | 30386 | ), |
| 27472 | status: Schema.String, | 30387 | status: Schema.String, |
| 27473 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 30388 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| ... | @@ -27494,37 +30409,24 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( | ... | @@ -27494,37 +30409,24 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( |
| 27494 | }).annotate({ title: "ContextCompactionThreadItem" }), | 30409 | }).annotate({ title: "ContextCompactionThreadItem" }), |
| 27495 | ], | 30410 | ], |
| 27496 | { mode: "oneOf" }, | 30411 | { mode: "oneOf" }, |
| 27497 | ); | 30412 | ).annotate({ identifier: "V2ThreadResumeResponse__ThreadItem" }); |
| 27498 | | 30413 | |
| 27499 | export type V2TurnStartedNotification__TurnError = { | 30414 | export type V2ThreadRollbackResponse__ThreadItem = |
| 27500 | readonly additionalDetails?: string | null; | | |
| 27501 | readonly codexErrorInfo?: V2TurnStartedNotification__CodexErrorInfo | null; | | |
| 27502 | readonly message: string; | | |
| 27503 | }; | | |
| 27504 | export const V2TurnStartedNotification__TurnError = Schema.Struct({ | | |
| 27505 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 27506 | codexErrorInfo: Schema.optionalKey( | | |
| 27507 | Schema.Union([V2TurnStartedNotification__CodexErrorInfo, Schema.Null]), | | |
| 27508 | ), | | |
| 27509 | message: Schema.String, | | |
| 27510 | }); | | |
| 27511 | | | |
| 27512 | export type V2TurnStartedNotification__ThreadItem = | | |
| 27513 | | { | 30415 | | { |
| 27514 | readonly clientId?: string | null; | 30416 | readonly clientId?: string | null; |
| 27515 | readonly content: ReadonlyArray<V2TurnStartedNotification__UserInput>; | 30417 | readonly content: ReadonlyArray<V2ThreadRollbackResponse__UserInput>; |
| 27516 | readonly id: string; | 30418 | readonly id: string; |
| 27517 | readonly type: "userMessage"; | 30419 | readonly type: "userMessage"; |
| 27518 | } | 30420 | } |
| 27519 | | { | 30421 | | { |
| 27520 | readonly fragments: ReadonlyArray<V2TurnStartedNotification__HookPromptFragment>; | 30422 | readonly fragments: ReadonlyArray<V2ThreadRollbackResponse__HookPromptFragment>; |
| 27521 | readonly id: string; | 30423 | readonly id: string; |
| 27522 | readonly type: "hookPrompt"; | 30424 | readonly type: "hookPrompt"; |
| 27523 | } | 30425 | } |
| 27524 | | { | 30426 | | { |
| 27525 | readonly id: string; | 30427 | readonly id: string; |
| 27526 | readonly memoryCitation?: V2TurnStartedNotification__MemoryCitation | null; | 30428 | readonly memoryCitation?: V2ThreadRollbackResponse__MemoryCitation | null; |
| 27527 | readonly phase?: V2TurnStartedNotification__MessagePhase | null; | 30429 | readonly phase?: V2ThreadRollbackResponse__MessagePhase | null; |
| 27528 | readonly text: string; | 30430 | readonly text: string; |
| 27529 | readonly delivery?: "async" | null; | 30431 | readonly delivery?: "async" | null; |
| 27530 | readonly questions?: ReadonlyArray<{ | 30432 | readonly questions?: ReadonlyArray<{ |
| ... | @@ -27543,85 +30445,76 @@ export type V2TurnStartedNotification__ThreadItem = | ... | @@ -27543,85 +30445,76 @@ export type V2TurnStartedNotification__ThreadItem = |
| 27543 | | { | 30445 | | { |
| 27544 | readonly aggregatedOutput?: string | null; | 30446 | readonly aggregatedOutput?: string | null; |
| 27545 | readonly command: string; | 30447 | readonly command: string; |
| 27546 | readonly commandActions: ReadonlyArray<V2TurnStartedNotification__CommandAction>; | 30448 | readonly commandActions: ReadonlyArray<V2ThreadRollbackResponse__CommandAction>; |
| 27547 | readonly cwd: string; | 30449 | readonly cwd: V2ThreadRollbackResponse__LegacyAppPathString; |
| 27548 | readonly durationMs?: number | null; | 30450 | readonly durationMs?: number | null; |
| 27549 | readonly exitCode?: number | null; | 30451 | readonly exitCode?: number | null; |
| 27550 | readonly id: string; | 30452 | readonly id: string; |
| 27551 | readonly processId?: string | null; | 30453 | readonly processId?: string | null; |
| 27552 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; | 30454 | readonly source?: V2ThreadRollbackResponse__CommandExecutionSource; |
| 27553 | readonly status: V2TurnStartedNotification__CommandExecutionStatus; | 30455 | readonly status: V2ThreadRollbackResponse__CommandExecutionStatus; |
| 27554 | readonly type: "commandExecution"; | 30456 | readonly type: "commandExecution"; |
| 27555 | } | 30457 | } |
| 27556 | | { | 30458 | | { |
| 27557 | readonly changes: ReadonlyArray<V2TurnStartedNotification__FileUpdateChange>; | 30459 | readonly changes: ReadonlyArray<V2ThreadRollbackResponse__FileUpdateChange>; |
| 27558 | readonly id: string; | 30460 | readonly id: string; |
| 27559 | readonly status: V2TurnStartedNotification__PatchApplyStatus; | 30461 | readonly status: V2ThreadRollbackResponse__PatchApplyStatus; |
| 27560 | readonly type: "fileChange"; | 30462 | readonly type: "fileChange"; |
| 27561 | } | 30463 | } |
| 27562 | | { | 30464 | | { |
| 27563 | readonly appContext?: V2TurnStartedNotification__McpToolCallAppContext | null; | 30465 | readonly appContext?: V2ThreadRollbackResponse__McpToolCallAppContext | null; |
| 27564 | readonly arguments: unknown; | 30466 | readonly arguments: Schema.Json; |
| 27565 | readonly durationMs?: number | null; | 30467 | readonly durationMs?: number | null; |
| 27566 | readonly error?: V2TurnStartedNotification__McpToolCallError | null; | 30468 | readonly error?: V2ThreadRollbackResponse__McpToolCallError | null; |
| 27567 | readonly id: string; | 30469 | readonly id: string; |
| 27568 | readonly mcpAppResourceUri?: string | null; | 30470 | readonly mcpAppResourceUri?: string | null; |
| 27569 | readonly pluginId?: string | null; | 30471 | readonly pluginId?: string | null; |
| 27570 | readonly result?: V2TurnStartedNotification__McpToolCallResult | null; | 30472 | readonly result?: V2ThreadRollbackResponse__McpToolCallResult | null; |
| 27571 | readonly server: string; | 30473 | readonly server: string; |
| 27572 | readonly status: V2TurnStartedNotification__McpToolCallStatus; | 30474 | readonly status: V2ThreadRollbackResponse__McpToolCallStatus; |
| 27573 | readonly tool: string; | 30475 | readonly tool: string; |
| 27574 | readonly type: "mcpToolCall"; | 30476 | readonly type: "mcpToolCall"; |
| 27575 | } | 30477 | } |
| 27576 | | { | 30478 | | { |
| 27577 | readonly arguments: unknown; | 30479 | readonly arguments: Schema.Json; |
| 27578 | readonly contentItems?: ReadonlyArray<V2TurnStartedNotification__DynamicToolCallOutputContentItem> | null; | 30480 | readonly contentItems?: ReadonlyArray<V2ThreadRollbackResponse__DynamicToolCallOutputContentItem> | null; |
| 27579 | readonly durationMs?: number | null; | 30481 | readonly durationMs?: number | null; |
| 27580 | readonly id: string; | 30482 | readonly id: string; |
| 27581 | readonly namespace?: string | null; | 30483 | readonly namespace?: string | null; |
| 27582 | readonly status: V2TurnStartedNotification__DynamicToolCallStatus; | 30484 | readonly status: V2ThreadRollbackResponse__DynamicToolCallStatus; |
| 27583 | readonly success?: boolean | null; | 30485 | readonly success?: boolean | null; |
| 27584 | readonly tool: string; | 30486 | readonly tool: string; |
| 27585 | readonly type: "dynamicToolCall"; | 30487 | readonly type: "dynamicToolCall"; |
| 27586 | } | 30488 | } |
| 27587 | | { | 30489 | | { |
| 27588 | readonly agentsStates: { readonly [x: string]: V2TurnStartedNotification__CollabAgentState }; | 30490 | readonly agentsStates: { readonly [x: string]: V2ThreadRollbackResponse__CollabAgentState }; |
| 27589 | readonly id: string; | 30491 | readonly id: string; |
| 27590 | readonly model?: string | null; | 30492 | readonly model?: string | null; |
| 27591 | readonly prompt?: string | null; | 30493 | readonly prompt?: string | null; |
| 27592 | readonly reasoningEffort?: V2TurnStartedNotification__ReasoningEffort | null; | 30494 | readonly reasoningEffort?: V2ThreadRollbackResponse__ReasoningEffort | null; |
| 27593 | readonly receiverThreadIds: ReadonlyArray<string>; | 30495 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 27594 | readonly senderThreadId: string; | 30496 | readonly senderThreadId: string; |
| 27595 | readonly status: "inProgress" | "completed" | "failed" | "interrupted"; | 30497 | readonly status: V2ThreadRollbackResponse__CollabAgentToolCallStatus; |
| 27596 | readonly tool: | 30498 | readonly tool: V2ThreadRollbackResponse__CollabAgentTool; |
| 27597 | | "spawnAgent" | | |
| 27598 | | "sendInput" | | |
| 27599 | | "resumeAgent" | | |
| 27600 | | "wait" | | |
| 27601 | | "closeAgent" | | |
| 27602 | | "sendMessage" | | |
| 27603 | | "followupTask" | | |
| 27604 | | "interruptAgent" | | |
| 27605 | | "listAgents"; | | |
| 27606 | readonly type: "collabAgentToolCall"; | 30499 | readonly type: "collabAgentToolCall"; |
| 27607 | } | 30500 | } |
| 27608 | | { | 30501 | | { |
| 27609 | readonly agentPath: string; | 30502 | readonly agentPath: string; |
| 27610 | readonly agentThreadId: string; | 30503 | readonly agentThreadId: string; |
| 27611 | readonly id: string; | 30504 | readonly id: string; |
| 27612 | readonly kind: V2TurnStartedNotification__SubAgentActivityKind; | 30505 | readonly kind: V2ThreadRollbackResponse__SubAgentActivityKind; |
| 27613 | readonly type: "subAgentActivity"; | 30506 | readonly type: "subAgentActivity"; |
| 27614 | } | 30507 | } |
| 27615 | | { | 30508 | | { |
| 27616 | readonly action?: V2TurnStartedNotification__WebSearchAction | null; | 30509 | readonly action?: V2ThreadRollbackResponse__WebSearchAction | null; |
| 27617 | readonly id: string; | 30510 | readonly id: string; |
| 27618 | readonly query: string; | 30511 | readonly query: string; |
| 27619 | readonly results?: ReadonlyArray<unknown> | null; | 30512 | readonly results?: ReadonlyArray<Schema.Json> | null; |
| 27620 | readonly type: "webSearch"; | 30513 | readonly type: "webSearch"; |
| 27621 | } | 30514 | } |
| 27622 | | { | 30515 | | { |
| 27623 | readonly id: string; | 30516 | readonly id: string; |
| 27624 | readonly path: V2TurnStartedNotification__LegacyAppPathString; | 30517 | readonly path: V2ThreadRollbackResponse__LegacyAppPathString; |
| 27625 | readonly type: "imageView"; | 30518 | readonly type: "imageView"; |
| 27626 | } | 30519 | } |
| 27627 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | 30520 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| ... | @@ -27629,33 +30522,33 @@ export type V2TurnStartedNotification__ThreadItem = | ... | @@ -27629,33 +30522,33 @@ export type V2TurnStartedNotification__ThreadItem = |
| 27629 | readonly id: string; | 30522 | readonly id: string; |
| 27630 | readonly result: string; | 30523 | readonly result: string; |
| 27631 | readonly revisedPrompt?: string | null; | 30524 | readonly revisedPrompt?: string | null; |
| 27632 | readonly savedPath?: V2TurnStartedNotification__AbsolutePathBuf | null; | 30525 | readonly savedPath?: V2ThreadRollbackResponse__AbsolutePathBuf | null; |
| 27633 | readonly status: string; | 30526 | readonly status: string; |
| 27634 | readonly type: "imageGeneration"; | 30527 | readonly type: "imageGeneration"; |
| 27635 | } | 30528 | } |
| 27636 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 30529 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 27637 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } | 30530 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 27638 | | { readonly id: string; readonly type: "contextCompaction" }; | 30531 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 27639 | export const V2TurnStartedNotification__ThreadItem = Schema.Union( | 30532 | export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 27640 | [ | 30533 | [ |
| 27641 | Schema.Struct({ | 30534 | Schema.Struct({ |
| 27642 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 30535 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 27643 | content: Schema.Array(V2TurnStartedNotification__UserInput), | 30536 | content: Schema.Array(V2ThreadRollbackResponse__UserInput), |
| 27644 | id: Schema.String, | 30537 | id: Schema.String, |
| 27645 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), | 30538 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 27646 | }).annotate({ title: "UserMessageThreadItem" }), | 30539 | }).annotate({ title: "UserMessageThreadItem" }), |
| 27647 | Schema.Struct({ | 30540 | Schema.Struct({ |
| 27648 | fragments: Schema.Array(V2TurnStartedNotification__HookPromptFragment), | 30541 | fragments: Schema.Array(V2ThreadRollbackResponse__HookPromptFragment), |
| 27649 | id: Schema.String, | 30542 | id: Schema.String, |
| 27650 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | 30543 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 27651 | }).annotate({ title: "HookPromptThreadItem" }), | 30544 | }).annotate({ title: "HookPromptThreadItem" }), |
| 27652 | Schema.Struct({ | 30545 | Schema.Struct({ |
| 27653 | id: Schema.String, | 30546 | id: Schema.String, |
| 27654 | memoryCitation: Schema.optionalKey( | 30547 | memoryCitation: Schema.optionalKey( |
| 27655 | Schema.Union([V2TurnStartedNotification__MemoryCitation, Schema.Null]), | 30548 | Schema.Union([V2ThreadRollbackResponse__MemoryCitation, Schema.Null]), |
| 27656 | ), | 30549 | ), |
| 27657 | phase: Schema.optionalKey( | 30550 | phase: Schema.optionalKey( |
| 27658 | Schema.Union([V2TurnStartedNotification__MessagePhase, Schema.Null]), | 30551 | Schema.Union([V2ThreadRollbackResponse__MessagePhase, Schema.Null]), |
| 27659 | ), | 30552 | ), |
| 27660 | text: Schema.String, | 30553 | text: Schema.String, |
| 27661 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | 30554 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), |
| ... | @@ -27697,17 +30590,20 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( | ... | @@ -27697,17 +30590,20 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( |
| 27697 | ]), | 30590 | ]), |
| 27698 | ), | 30591 | ), |
| 27699 | command: Schema.String.annotate({ description: "The command to be executed." }), | 30592 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 27700 | commandActions: Schema.Array(V2TurnStartedNotification__CommandAction).annotate({ | 30593 | commandActions: Schema.Array(V2ThreadRollbackResponse__CommandAction).annotate({ |
| 27701 | description: | 30594 | description: |
| 27702 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", | 30595 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 27703 | }), | 30596 | }), |
| 27704 | cwd: Schema.String.annotate({ description: "The command's working directory." }), | 30597 | cwd: Schema.suspend( |
| | 30598 | (): Schema.Codec<V2ThreadRollbackResponse__LegacyAppPathString> => |
| | 30599 | V2ThreadRollbackResponse__LegacyAppPathString, |
| | 30600 | ).annotate({ description: "The command's working directory." }), |
| 27705 | durationMs: Schema.optionalKey( | 30601 | durationMs: Schema.optionalKey( |
| 27706 | Schema.Union([ | 30602 | Schema.Union([ |
| 27707 | Schema.Number.annotate({ | 30603 | Schema.Number.annotate({ |
| 27708 | description: "The duration of the command execution in milliseconds.", | 30604 | description: "The duration of the command execution in milliseconds.", |
| 27709 | format: "int64", | 30605 | format: "int64", |
| 27710 | }).check(Schema.isInt()), | 30606 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 27711 | Schema.Null, | 30607 | Schema.Null, |
| 27712 | ]), | 30608 | ]), |
| 27713 | ), | 30609 | ), |
| ... | @@ -27716,7 +30612,7 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( | ... | @@ -27716,7 +30612,7 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( |
| 27716 | Schema.Number.annotate({ | 30612 | Schema.Number.annotate({ |
| 27717 | description: "The command's exit code.", | 30613 | description: "The command's exit code.", |
| 27718 | format: "int32", | 30614 | format: "int32", |
| 27719 | }).check(Schema.isInt()), | 30615 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 27720 | Schema.Null, | 30616 | Schema.Null, |
| 27721 | ]), | 30617 | ]), |
| 27722 | ), | 30618 | ), |
| ... | @@ -27730,40 +30626,38 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( | ... | @@ -27730,40 +30626,38 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( |
| 27730 | ]), | 30626 | ]), |
| 27731 | ), | 30627 | ), |
| 27732 | source: Schema.optionalKey( | 30628 | source: Schema.optionalKey( |
| 27733 | Schema.Literals([ | 30629 | Schema.suspend( |
| 27734 | "agent", | 30630 | (): Schema.Codec<V2ThreadRollbackResponse__CommandExecutionSource> => |
| 27735 | "userShell", | 30631 | V2ThreadRollbackResponse__CommandExecutionSource, |
| 27736 | "unifiedExecStartup", | 30632 | ).annotate({ default: "agent" }), |
| 27737 | "unifiedExecInteraction", | | |
| 27738 | ]).annotate({ default: "agent" }), | | |
| 27739 | ), | 30633 | ), |
| 27740 | status: V2TurnStartedNotification__CommandExecutionStatus, | 30634 | status: V2ThreadRollbackResponse__CommandExecutionStatus, |
| 27741 | type: Schema.Literal("commandExecution").annotate({ | 30635 | type: Schema.Literal("commandExecution").annotate({ |
| 27742 | title: "CommandExecutionThreadItemType", | 30636 | title: "CommandExecutionThreadItemType", |
| 27743 | }), | 30637 | }), |
| 27744 | }).annotate({ title: "CommandExecutionThreadItem" }), | 30638 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 27745 | Schema.Struct({ | 30639 | Schema.Struct({ |
| 27746 | changes: Schema.Array(V2TurnStartedNotification__FileUpdateChange), | 30640 | changes: Schema.Array(V2ThreadRollbackResponse__FileUpdateChange), |
| 27747 | id: Schema.String, | 30641 | id: Schema.String, |
| 27748 | status: V2TurnStartedNotification__PatchApplyStatus, | 30642 | status: V2ThreadRollbackResponse__PatchApplyStatus, |
| 27749 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), | 30643 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 27750 | }).annotate({ title: "FileChangeThreadItem" }), | 30644 | }).annotate({ title: "FileChangeThreadItem" }), |
| 27751 | Schema.Struct({ | 30645 | Schema.Struct({ |
| 27752 | appContext: Schema.optionalKey( | 30646 | appContext: Schema.optionalKey( |
| 27753 | Schema.Union([V2TurnStartedNotification__McpToolCallAppContext, Schema.Null]), | 30647 | Schema.Union([V2ThreadRollbackResponse__McpToolCallAppContext, Schema.Null]), |
| 27754 | ), | 30648 | ), |
| 27755 | arguments: Schema.Unknown, | 30649 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 27756 | durationMs: Schema.optionalKey( | 30650 | durationMs: Schema.optionalKey( |
| 27757 | Schema.Union([ | 30651 | Schema.Union([ |
| 27758 | Schema.Number.annotate({ | 30652 | Schema.Number.annotate({ |
| 27759 | description: "The duration of the MCP tool call in milliseconds.", | 30653 | description: "The duration of the MCP tool call in milliseconds.", |
| 27760 | format: "int64", | 30654 | format: "int64", |
| 27761 | }).check(Schema.isInt()), | 30655 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 27762 | Schema.Null, | 30656 | Schema.Null, |
| 27763 | ]), | 30657 | ]), |
| 27764 | ), | 30658 | ), |
| 27765 | error: Schema.optionalKey( | 30659 | error: Schema.optionalKey( |
| 27766 | Schema.Union([V2TurnStartedNotification__McpToolCallError, Schema.Null]), | 30660 | Schema.Union([V2ThreadRollbackResponse__McpToolCallError, Schema.Null]), |
| 27767 | ), | 30661 | ), |
| 27768 | id: Schema.String, | 30662 | id: Schema.String, |
| 27769 | mcpAppResourceUri: Schema.optionalKey( | 30663 | mcpAppResourceUri: Schema.optionalKey( |
| ... | @@ -27776,18 +30670,18 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( | ... | @@ -27776,18 +30670,18 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( |
| 27776 | ), | 30670 | ), |
| 27777 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 30671 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 27778 | result: Schema.optionalKey( | 30672 | result: Schema.optionalKey( |
| 27779 | Schema.Union([V2TurnStartedNotification__McpToolCallResult, Schema.Null]), | 30673 | Schema.Union([V2ThreadRollbackResponse__McpToolCallResult, Schema.Null]), |
| 27780 | ), | 30674 | ), |
| 27781 | server: Schema.String, | 30675 | server: Schema.String, |
| 27782 | status: V2TurnStartedNotification__McpToolCallStatus, | 30676 | status: V2ThreadRollbackResponse__McpToolCallStatus, |
| 27783 | tool: Schema.String, | 30677 | tool: Schema.String, |
| 27784 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), | 30678 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 27785 | }).annotate({ title: "McpToolCallThreadItem" }), | 30679 | }).annotate({ title: "McpToolCallThreadItem" }), |
| 27786 | Schema.Struct({ | 30680 | Schema.Struct({ |
| 27787 | arguments: Schema.Unknown, | 30681 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 27788 | contentItems: Schema.optionalKey( | 30682 | contentItems: Schema.optionalKey( |
| 27789 | Schema.Union([ | 30683 | Schema.Union([ |
| 27790 | Schema.Array(V2TurnStartedNotification__DynamicToolCallOutputContentItem), | 30684 | Schema.Array(V2ThreadRollbackResponse__DynamicToolCallOutputContentItem), |
| 27791 | Schema.Null, | 30685 | Schema.Null, |
| 27792 | ]), | 30686 | ]), |
| 27793 | ), | 30687 | ), |
| ... | @@ -27796,13 +30690,13 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( | ... | @@ -27796,13 +30690,13 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( |
| 27796 | Schema.Number.annotate({ | 30690 | Schema.Number.annotate({ |
| 27797 | description: "The duration of the dynamic tool call in milliseconds.", | 30691 | description: "The duration of the dynamic tool call in milliseconds.", |
| 27798 | format: "int64", | 30692 | format: "int64", |
| 27799 | }).check(Schema.isInt()), | 30693 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 27800 | Schema.Null, | 30694 | Schema.Null, |
| 27801 | ]), | 30695 | ]), |
| 27802 | ), | 30696 | ), |
| 27803 | id: Schema.String, | 30697 | id: Schema.String, |
| 27804 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 30698 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 27805 | status: V2TurnStartedNotification__DynamicToolCallStatus, | 30699 | status: V2ThreadRollbackResponse__DynamicToolCallStatus, |
| 27806 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 30700 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 27807 | tool: Schema.String, | 30701 | tool: Schema.String, |
| 27808 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), | 30702 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| ... | @@ -27810,7 +30704,7 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( | ... | @@ -27810,7 +30704,7 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( |
| 27810 | Schema.Struct({ | 30704 | Schema.Struct({ |
| 27811 | agentsStates: Schema.Record( | 30705 | agentsStates: Schema.Record( |
| 27812 | Schema.String, | 30706 | Schema.String, |
| 27813 | V2TurnStartedNotification__CollabAgentState, | 30707 | V2ThreadRollbackResponse__CollabAgentState, |
| 27814 | ).annotate({ description: "Last known status of the target agents, when available." }), | 30708 | ).annotate({ description: "Last known status of the target agents, when available." }), |
| 27815 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), | 30709 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 27816 | model: Schema.optionalKey( | 30710 | model: Schema.optionalKey( |
| ... | @@ -27830,7 +30724,7 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( | ... | @@ -27830,7 +30724,7 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( |
| 27830 | ]), | 30724 | ]), |
| 27831 | ), | 30725 | ), |
| 27832 | reasoningEffort: Schema.optionalKey( | 30726 | reasoningEffort: Schema.optionalKey( |
| 27833 | Schema.Union([V2TurnStartedNotification__ReasoningEffort, Schema.Null]).annotate({ | 30727 | Schema.Union([V2ThreadRollbackResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 27834 | description: "Reasoning effort requested for the spawned agent, when applicable.", | 30728 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 27835 | }), | 30729 | }), |
| 27836 | ), | 30730 | ), |
| ... | @@ -27841,20 +30735,14 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( | ... | @@ -27841,20 +30735,14 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( |
| 27841 | senderThreadId: Schema.String.annotate({ | 30735 | senderThreadId: Schema.String.annotate({ |
| 27842 | description: "Thread ID of the agent issuing the collab request.", | 30736 | description: "Thread ID of the agent issuing the collab request.", |
| 27843 | }), | 30737 | }), |
| 27844 | status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({ | 30738 | status: Schema.suspend( |
| 27845 | description: "Current status of the collab tool call.", | 30739 | (): Schema.Codec<V2ThreadRollbackResponse__CollabAgentToolCallStatus> => |
| 27846 | }), | 30740 | V2ThreadRollbackResponse__CollabAgentToolCallStatus, |
| 27847 | tool: Schema.Literals([ | 30741 | ).annotate({ description: "Current status of the collab tool call." }), |
| 27848 | "spawnAgent", | 30742 | tool: Schema.suspend( |
| 27849 | "sendInput", | 30743 | (): Schema.Codec<V2ThreadRollbackResponse__CollabAgentTool> => |
| 27850 | "resumeAgent", | 30744 | V2ThreadRollbackResponse__CollabAgentTool, |
| 27851 | "wait", | 30745 | ).annotate({ description: "Name of the collab tool that was invoked." }), |
| 27852 | "closeAgent", | | |
| 27853 | "sendMessage", | | |
| 27854 | "followupTask", | | |
| 27855 | "interruptAgent", | | |
| 27856 | "listAgents", | | |
| 27857 | ]).annotate({ description: "Name of the collab tool that was invoked." }), | | |
| 27858 | type: Schema.Literal("collabAgentToolCall").annotate({ | 30746 | type: Schema.Literal("collabAgentToolCall").annotate({ |
| 27859 | title: "CollabAgentToolCallThreadItemType", | 30747 | title: "CollabAgentToolCallThreadItemType", |
| 27860 | }), | 30748 | }), |
| ... | @@ -27863,20 +30751,20 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( | ... | @@ -27863,20 +30751,20 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( |
| 27863 | agentPath: Schema.String, | 30751 | agentPath: Schema.String, |
| 27864 | agentThreadId: Schema.String, | 30752 | agentThreadId: Schema.String, |
| 27865 | id: Schema.String, | 30753 | id: Schema.String, |
| 27866 | kind: V2TurnStartedNotification__SubAgentActivityKind, | 30754 | kind: V2ThreadRollbackResponse__SubAgentActivityKind, |
| 27867 | type: Schema.Literal("subAgentActivity").annotate({ | 30755 | type: Schema.Literal("subAgentActivity").annotate({ |
| 27868 | title: "SubAgentActivityThreadItemType", | 30756 | title: "SubAgentActivityThreadItemType", |
| 27869 | }), | 30757 | }), |
| 27870 | }).annotate({ title: "SubAgentActivityThreadItem" }), | 30758 | }).annotate({ title: "SubAgentActivityThreadItem" }), |
| 27871 | Schema.Struct({ | 30759 | Schema.Struct({ |
| 27872 | action: Schema.optionalKey( | 30760 | action: Schema.optionalKey( |
| 27873 | Schema.Union([V2TurnStartedNotification__WebSearchAction, Schema.Null]), | 30761 | Schema.Union([V2ThreadRollbackResponse__WebSearchAction, Schema.Null]), |
| 27874 | ), | 30762 | ), |
| 27875 | id: Schema.String, | 30763 | id: Schema.String, |
| 27876 | query: Schema.String, | 30764 | query: Schema.String, |
| 27877 | results: Schema.optionalKey( | 30765 | results: Schema.optionalKey( |
| 27878 | Schema.Union([ | 30766 | Schema.Union([ |
| 27879 | Schema.Array(Schema.Unknown).annotate({ | 30767 | Schema.Array(Schema.Json.annotate({ expected: "JSON value" })).annotate({ |
| 27880 | description: | 30768 | description: |
| 27881 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", | 30769 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", |
| 27882 | }), | 30770 | }), |
| ... | @@ -27887,13 +30775,17 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( | ... | @@ -27887,13 +30775,17 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( |
| 27887 | }).annotate({ title: "WebSearchThreadItem" }), | 30775 | }).annotate({ title: "WebSearchThreadItem" }), |
| 27888 | Schema.Struct({ | 30776 | Schema.Struct({ |
| 27889 | id: Schema.String, | 30777 | id: Schema.String, |
| 27890 | path: V2TurnStartedNotification__LegacyAppPathString, | 30778 | path: V2ThreadRollbackResponse__LegacyAppPathString, |
| 27891 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), | 30779 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 27892 | }).annotate({ title: "ImageViewThreadItem" }), | 30780 | }).annotate({ title: "ImageViewThreadItem" }), |
| 27893 | Schema.Struct({ | 30781 | Schema.Struct({ |
| 27894 | durationMs: Schema.Number.annotate({ format: "uint64" }) | 30782 | durationMs: Schema.Number.annotate({ format: "uint64" }) |
| 27895 | .check(Schema.isInt()) | 30783 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 27896 | .check(Schema.isGreaterThanOrEqualTo(0)), | 30784 | .check( |
| | 30785 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 30786 | expected: "a value greater than or equal to 0", |
| | 30787 | }), |
| | 30788 | ), |
| 27897 | id: Schema.String, | 30789 | id: Schema.String, |
| 27898 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), | 30790 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), |
| 27899 | }).annotate({ | 30791 | }).annotate({ |
| ... | @@ -27905,7 +30797,7 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( | ... | @@ -27905,7 +30797,7 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( |
| 27905 | result: Schema.String, | 30797 | result: Schema.String, |
| 27906 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 30798 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 27907 | savedPath: Schema.optionalKey( | 30799 | savedPath: Schema.optionalKey( |
| 27908 | Schema.Union([V2TurnStartedNotification__AbsolutePathBuf, Schema.Null]), | 30800 | Schema.Union([V2ThreadRollbackResponse__AbsolutePathBuf, Schema.Null]), |
| 27909 | ), | 30801 | ), |
| 27910 | status: Schema.String, | 30802 | status: Schema.String, |
| 27911 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 30803 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| ... | @@ -27932,37 +30824,61 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( | ... | @@ -27932,37 +30824,61 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( |
| 27932 | }).annotate({ title: "ContextCompactionThreadItem" }), | 30824 | }).annotate({ title: "ContextCompactionThreadItem" }), |
| 27933 | ], | 30825 | ], |
| 27934 | { mode: "oneOf" }, | 30826 | { mode: "oneOf" }, |
| 27935 | ); | 30827 | ).annotate({ identifier: "V2ThreadRollbackResponse__ThreadItem" }); |
| 27936 | | 30828 | |
| 27937 | export type V2TurnStartResponse__TurnError = { | 30829 | export type V2ThreadSettingsUpdatedNotification__ThreadSettings = { |
| 27938 | readonly additionalDetails?: string | null; | 30830 | readonly activePermissionProfile?: V2ThreadSettingsUpdatedNotification__ActivePermissionProfile | null; |
| 27939 | readonly codexErrorInfo?: V2TurnStartResponse__CodexErrorInfo | null; | 30831 | readonly approvalPolicy: V2ThreadSettingsUpdatedNotification__AskForApproval; |
| 27940 | readonly message: string; | 30832 | readonly approvalsReviewer: V2ThreadSettingsUpdatedNotification__ApprovalsReviewer; |
| | 30833 | readonly collaborationMode: V2ThreadSettingsUpdatedNotification__CollaborationMode; |
| | 30834 | readonly cwd: V2ThreadSettingsUpdatedNotification__AbsolutePathBuf; |
| | 30835 | readonly effort?: V2ThreadSettingsUpdatedNotification__ReasoningEffort | null; |
| | 30836 | readonly model: string; |
| | 30837 | readonly modelProvider: string; |
| | 30838 | readonly personality?: V2ThreadSettingsUpdatedNotification__Personality | null; |
| | 30839 | readonly sandboxPolicy: V2ThreadSettingsUpdatedNotification__SandboxPolicy; |
| | 30840 | readonly serviceTier?: string | null; |
| | 30841 | readonly summary?: V2ThreadSettingsUpdatedNotification__ReasoningSummary | null; |
| 27941 | }; | 30842 | }; |
| 27942 | export const V2TurnStartResponse__TurnError = Schema.Struct({ | 30843 | export const V2ThreadSettingsUpdatedNotification__ThreadSettings = Schema.Struct({ |
| 27943 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 30844 | activePermissionProfile: Schema.optionalKey( |
| 27944 | codexErrorInfo: Schema.optionalKey( | 30845 | Schema.Union([V2ThreadSettingsUpdatedNotification__ActivePermissionProfile, Schema.Null]), |
| 27945 | Schema.Union([V2TurnStartResponse__CodexErrorInfo, Schema.Null]), | | |
| 27946 | ), | 30846 | ), |
| 27947 | message: Schema.String, | 30847 | approvalPolicy: V2ThreadSettingsUpdatedNotification__AskForApproval, |
| 27948 | }); | 30848 | approvalsReviewer: V2ThreadSettingsUpdatedNotification__ApprovalsReviewer, |
| | 30849 | collaborationMode: V2ThreadSettingsUpdatedNotification__CollaborationMode, |
| | 30850 | cwd: V2ThreadSettingsUpdatedNotification__AbsolutePathBuf, |
| | 30851 | effort: Schema.optionalKey( |
| | 30852 | Schema.Union([V2ThreadSettingsUpdatedNotification__ReasoningEffort, Schema.Null]), |
| | 30853 | ), |
| | 30854 | model: Schema.String, |
| | 30855 | modelProvider: Schema.String, |
| | 30856 | personality: Schema.optionalKey( |
| | 30857 | Schema.Union([V2ThreadSettingsUpdatedNotification__Personality, Schema.Null]), |
| | 30858 | ), |
| | 30859 | sandboxPolicy: V2ThreadSettingsUpdatedNotification__SandboxPolicy, |
| | 30860 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 30861 | summary: Schema.optionalKey( |
| | 30862 | Schema.Union([V2ThreadSettingsUpdatedNotification__ReasoningSummary, Schema.Null]), |
| | 30863 | ), |
| | 30864 | }).annotate({ identifier: "V2ThreadSettingsUpdatedNotification__ThreadSettings" }); |
| 27949 | | 30865 | |
| 27950 | export type V2TurnStartResponse__ThreadItem = | 30866 | export type V2ThreadStartedNotification__ThreadItem = |
| 27951 | | { | 30867 | | { |
| 27952 | readonly clientId?: string | null; | 30868 | readonly clientId?: string | null; |
| 27953 | readonly content: ReadonlyArray<V2TurnStartResponse__UserInput>; | 30869 | readonly content: ReadonlyArray<V2ThreadStartedNotification__UserInput>; |
| 27954 | readonly id: string; | 30870 | readonly id: string; |
| 27955 | readonly type: "userMessage"; | 30871 | readonly type: "userMessage"; |
| 27956 | } | 30872 | } |
| 27957 | | { | 30873 | | { |
| 27958 | readonly fragments: ReadonlyArray<V2TurnStartResponse__HookPromptFragment>; | 30874 | readonly fragments: ReadonlyArray<V2ThreadStartedNotification__HookPromptFragment>; |
| 27959 | readonly id: string; | 30875 | readonly id: string; |
| 27960 | readonly type: "hookPrompt"; | 30876 | readonly type: "hookPrompt"; |
| 27961 | } | 30877 | } |
| 27962 | | { | 30878 | | { |
| 27963 | readonly id: string; | 30879 | readonly id: string; |
| 27964 | readonly memoryCitation?: V2TurnStartResponse__MemoryCitation | null; | 30880 | readonly memoryCitation?: V2ThreadStartedNotification__MemoryCitation | null; |
| 27965 | readonly phase?: V2TurnStartResponse__MessagePhase | null; | 30881 | readonly phase?: V2ThreadStartedNotification__MessagePhase | null; |
| 27966 | readonly text: string; | 30882 | readonly text: string; |
| 27967 | readonly delivery?: "async" | null; | 30883 | readonly delivery?: "async" | null; |
| 27968 | readonly questions?: ReadonlyArray<{ | 30884 | readonly questions?: ReadonlyArray<{ |
| ... | @@ -27981,85 +30897,78 @@ export type V2TurnStartResponse__ThreadItem = | ... | @@ -27981,85 +30897,78 @@ export type V2TurnStartResponse__ThreadItem = |
| 27981 | | { | 30897 | | { |
| 27982 | readonly aggregatedOutput?: string | null; | 30898 | readonly aggregatedOutput?: string | null; |
| 27983 | readonly command: string; | 30899 | readonly command: string; |
| 27984 | readonly commandActions: ReadonlyArray<V2TurnStartResponse__CommandAction>; | 30900 | readonly commandActions: ReadonlyArray<V2ThreadStartedNotification__CommandAction>; |
| 27985 | readonly cwd: string; | 30901 | readonly cwd: V2ThreadStartedNotification__LegacyAppPathString; |
| 27986 | readonly durationMs?: number | null; | 30902 | readonly durationMs?: number | null; |
| 27987 | readonly exitCode?: number | null; | 30903 | readonly exitCode?: number | null; |
| 27988 | readonly id: string; | 30904 | readonly id: string; |
| 27989 | readonly processId?: string | null; | 30905 | readonly processId?: string | null; |
| 27990 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; | 30906 | readonly source?: V2ThreadStartedNotification__CommandExecutionSource; |
| 27991 | readonly status: V2TurnStartResponse__CommandExecutionStatus; | 30907 | readonly status: V2ThreadStartedNotification__CommandExecutionStatus; |
| 27992 | readonly type: "commandExecution"; | 30908 | readonly type: "commandExecution"; |
| 27993 | } | 30909 | } |
| 27994 | | { | 30910 | | { |
| 27995 | readonly changes: ReadonlyArray<V2TurnStartResponse__FileUpdateChange>; | 30911 | readonly changes: ReadonlyArray<V2ThreadStartedNotification__FileUpdateChange>; |
| 27996 | readonly id: string; | 30912 | readonly id: string; |
| 27997 | readonly status: V2TurnStartResponse__PatchApplyStatus; | 30913 | readonly status: V2ThreadStartedNotification__PatchApplyStatus; |
| 27998 | readonly type: "fileChange"; | 30914 | readonly type: "fileChange"; |
| 27999 | } | 30915 | } |
| 28000 | | { | 30916 | | { |
| 28001 | readonly appContext?: V2TurnStartResponse__McpToolCallAppContext | null; | 30917 | readonly appContext?: V2ThreadStartedNotification__McpToolCallAppContext | null; |
| 28002 | readonly arguments: unknown; | 30918 | readonly arguments: Schema.Json; |
| 28003 | readonly durationMs?: number | null; | 30919 | readonly durationMs?: number | null; |
| 28004 | readonly error?: V2TurnStartResponse__McpToolCallError | null; | 30920 | readonly error?: V2ThreadStartedNotification__McpToolCallError | null; |
| 28005 | readonly id: string; | 30921 | readonly id: string; |
| 28006 | readonly mcpAppResourceUri?: string | null; | 30922 | readonly mcpAppResourceUri?: string | null; |
| 28007 | readonly pluginId?: string | null; | 30923 | readonly pluginId?: string | null; |
| 28008 | readonly result?: V2TurnStartResponse__McpToolCallResult | null; | 30924 | readonly result?: V2ThreadStartedNotification__McpToolCallResult | null; |
| 28009 | readonly server: string; | 30925 | readonly server: string; |
| 28010 | readonly status: V2TurnStartResponse__McpToolCallStatus; | 30926 | readonly status: V2ThreadStartedNotification__McpToolCallStatus; |
| 28011 | readonly tool: string; | 30927 | readonly tool: string; |
| 28012 | readonly type: "mcpToolCall"; | 30928 | readonly type: "mcpToolCall"; |
| 28013 | } | 30929 | } |
| 28014 | | { | 30930 | | { |
| 28015 | readonly arguments: unknown; | 30931 | readonly arguments: Schema.Json; |
| 28016 | readonly contentItems?: ReadonlyArray<V2TurnStartResponse__DynamicToolCallOutputContentItem> | null; | 30932 | readonly contentItems?: ReadonlyArray<V2ThreadStartedNotification__DynamicToolCallOutputContentItem> | null; |
| 28017 | readonly durationMs?: number | null; | 30933 | readonly durationMs?: number | null; |
| 28018 | readonly id: string; | 30934 | readonly id: string; |
| 28019 | readonly namespace?: string | null; | 30935 | readonly namespace?: string | null; |
| 28020 | readonly status: V2TurnStartResponse__DynamicToolCallStatus; | 30936 | readonly status: V2ThreadStartedNotification__DynamicToolCallStatus; |
| 28021 | readonly success?: boolean | null; | 30937 | readonly success?: boolean | null; |
| 28022 | readonly tool: string; | 30938 | readonly tool: string; |
| 28023 | readonly type: "dynamicToolCall"; | 30939 | readonly type: "dynamicToolCall"; |
| 28024 | } | 30940 | } |
| 28025 | | { | 30941 | | { |
| 28026 | readonly agentsStates: { readonly [x: string]: V2TurnStartResponse__CollabAgentState }; | 30942 | readonly agentsStates: { |
| | 30943 | readonly [x: string]: V2ThreadStartedNotification__CollabAgentState; |
| | 30944 | }; |
| 28027 | readonly id: string; | 30945 | readonly id: string; |
| 28028 | readonly model?: string | null; | 30946 | readonly model?: string | null; |
| 28029 | readonly prompt?: string | null; | 30947 | readonly prompt?: string | null; |
| 28030 | readonly reasoningEffort?: V2TurnStartResponse__ReasoningEffort | null; | 30948 | readonly reasoningEffort?: V2ThreadStartedNotification__ReasoningEffort | null; |
| 28031 | readonly receiverThreadIds: ReadonlyArray<string>; | 30949 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 28032 | readonly senderThreadId: string; | 30950 | readonly senderThreadId: string; |
| 28033 | readonly status: "inProgress" | "completed" | "failed" | "interrupted"; | 30951 | readonly status: V2ThreadStartedNotification__CollabAgentToolCallStatus; |
| 28034 | readonly tool: | 30952 | readonly tool: V2ThreadStartedNotification__CollabAgentTool; |
| 28035 | | "spawnAgent" | | |
| 28036 | | "sendInput" | | |
| 28037 | | "resumeAgent" | | |
| 28038 | | "wait" | | |
| 28039 | | "closeAgent" | | |
| 28040 | | "sendMessage" | | |
| 28041 | | "followupTask" | | |
| 28042 | | "interruptAgent" | | |
| 28043 | | "listAgents"; | | |
| 28044 | readonly type: "collabAgentToolCall"; | 30953 | readonly type: "collabAgentToolCall"; |
| 28045 | } | 30954 | } |
| 28046 | | { | 30955 | | { |
| 28047 | readonly agentPath: string; | 30956 | readonly agentPath: string; |
| 28048 | readonly agentThreadId: string; | 30957 | readonly agentThreadId: string; |
| 28049 | readonly id: string; | 30958 | readonly id: string; |
| 28050 | readonly kind: V2TurnStartResponse__SubAgentActivityKind; | 30959 | readonly kind: V2ThreadStartedNotification__SubAgentActivityKind; |
| 28051 | readonly type: "subAgentActivity"; | 30960 | readonly type: "subAgentActivity"; |
| 28052 | } | 30961 | } |
| 28053 | | { | 30962 | | { |
| 28054 | readonly action?: V2TurnStartResponse__WebSearchAction | null; | 30963 | readonly action?: V2ThreadStartedNotification__WebSearchAction | null; |
| 28055 | readonly id: string; | 30964 | readonly id: string; |
| 28056 | readonly query: string; | 30965 | readonly query: string; |
| 28057 | readonly results?: ReadonlyArray<unknown> | null; | 30966 | readonly results?: ReadonlyArray<Schema.Json> | null; |
| 28058 | readonly type: "webSearch"; | 30967 | readonly type: "webSearch"; |
| 28059 | } | 30968 | } |
| 28060 | | { | 30969 | | { |
| 28061 | readonly id: string; | 30970 | readonly id: string; |
| 28062 | readonly path: V2TurnStartResponse__LegacyAppPathString; | 30971 | readonly path: V2ThreadStartedNotification__LegacyAppPathString; |
| 28063 | readonly type: "imageView"; | 30972 | readonly type: "imageView"; |
| 28064 | } | 30973 | } |
| 28065 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | 30974 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| ... | @@ -28067,32 +30976,34 @@ export type V2TurnStartResponse__ThreadItem = | ... | @@ -28067,32 +30976,34 @@ export type V2TurnStartResponse__ThreadItem = |
| 28067 | readonly id: string; | 30976 | readonly id: string; |
| 28068 | readonly result: string; | 30977 | readonly result: string; |
| 28069 | readonly revisedPrompt?: string | null; | 30978 | readonly revisedPrompt?: string | null; |
| 28070 | readonly savedPath?: V2TurnStartResponse__AbsolutePathBuf | null; | 30979 | readonly savedPath?: V2ThreadStartedNotification__AbsolutePathBuf | null; |
| 28071 | readonly status: string; | 30980 | readonly status: string; |
| 28072 | readonly type: "imageGeneration"; | 30981 | readonly type: "imageGeneration"; |
| 28073 | } | 30982 | } |
| 28074 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 30983 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 28075 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } | 30984 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 28076 | | { readonly id: string; readonly type: "contextCompaction" }; | 30985 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 28077 | export const V2TurnStartResponse__ThreadItem = Schema.Union( | 30986 | export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 28078 | [ | 30987 | [ |
| 28079 | Schema.Struct({ | 30988 | Schema.Struct({ |
| 28080 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 30989 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 28081 | content: Schema.Array(V2TurnStartResponse__UserInput), | 30990 | content: Schema.Array(V2ThreadStartedNotification__UserInput), |
| 28082 | id: Schema.String, | 30991 | id: Schema.String, |
| 28083 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), | 30992 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 28084 | }).annotate({ title: "UserMessageThreadItem" }), | 30993 | }).annotate({ title: "UserMessageThreadItem" }), |
| 28085 | Schema.Struct({ | 30994 | Schema.Struct({ |
| 28086 | fragments: Schema.Array(V2TurnStartResponse__HookPromptFragment), | 30995 | fragments: Schema.Array(V2ThreadStartedNotification__HookPromptFragment), |
| 28087 | id: Schema.String, | 30996 | id: Schema.String, |
| 28088 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | 30997 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 28089 | }).annotate({ title: "HookPromptThreadItem" }), | 30998 | }).annotate({ title: "HookPromptThreadItem" }), |
| 28090 | Schema.Struct({ | 30999 | Schema.Struct({ |
| 28091 | id: Schema.String, | 31000 | id: Schema.String, |
| 28092 | memoryCitation: Schema.optionalKey( | 31001 | memoryCitation: Schema.optionalKey( |
| 28093 | Schema.Union([V2TurnStartResponse__MemoryCitation, Schema.Null]), | 31002 | Schema.Union([V2ThreadStartedNotification__MemoryCitation, Schema.Null]), |
| | 31003 | ), |
| | 31004 | phase: Schema.optionalKey( |
| | 31005 | Schema.Union([V2ThreadStartedNotification__MessagePhase, Schema.Null]), |
| 28094 | ), | 31006 | ), |
| 28095 | phase: Schema.optionalKey(Schema.Union([V2TurnStartResponse__MessagePhase, Schema.Null])), | | |
| 28096 | text: Schema.String, | 31007 | text: Schema.String, |
| 28097 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | 31008 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), |
| 28098 | questions: Schema.optionalKey( | 31009 | questions: Schema.optionalKey( |
| ... | @@ -28133,17 +31044,20 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( | ... | @@ -28133,17 +31044,20 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( |
| 28133 | ]), | 31044 | ]), |
| 28134 | ), | 31045 | ), |
| 28135 | command: Schema.String.annotate({ description: "The command to be executed." }), | 31046 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 28136 | commandActions: Schema.Array(V2TurnStartResponse__CommandAction).annotate({ | 31047 | commandActions: Schema.Array(V2ThreadStartedNotification__CommandAction).annotate({ |
| 28137 | description: | 31048 | description: |
| 28138 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", | 31049 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 28139 | }), | 31050 | }), |
| 28140 | cwd: Schema.String.annotate({ description: "The command's working directory." }), | 31051 | cwd: Schema.suspend( |
| | 31052 | (): Schema.Codec<V2ThreadStartedNotification__LegacyAppPathString> => |
| | 31053 | V2ThreadStartedNotification__LegacyAppPathString, |
| | 31054 | ).annotate({ description: "The command's working directory." }), |
| 28141 | durationMs: Schema.optionalKey( | 31055 | durationMs: Schema.optionalKey( |
| 28142 | Schema.Union([ | 31056 | Schema.Union([ |
| 28143 | Schema.Number.annotate({ | 31057 | Schema.Number.annotate({ |
| 28144 | description: "The duration of the command execution in milliseconds.", | 31058 | description: "The duration of the command execution in milliseconds.", |
| 28145 | format: "int64", | 31059 | format: "int64", |
| 28146 | }).check(Schema.isInt()), | 31060 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 28147 | Schema.Null, | 31061 | Schema.Null, |
| 28148 | ]), | 31062 | ]), |
| 28149 | ), | 31063 | ), |
| ... | @@ -28152,7 +31066,7 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( | ... | @@ -28152,7 +31066,7 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( |
| 28152 | Schema.Number.annotate({ | 31066 | Schema.Number.annotate({ |
| 28153 | description: "The command's exit code.", | 31067 | description: "The command's exit code.", |
| 28154 | format: "int32", | 31068 | format: "int32", |
| 28155 | }).check(Schema.isInt()), | 31069 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 28156 | Schema.Null, | 31070 | Schema.Null, |
| 28157 | ]), | 31071 | ]), |
| 28158 | ), | 31072 | ), |
| ... | @@ -28166,39 +31080,39 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( | ... | @@ -28166,39 +31080,39 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( |
| 28166 | ]), | 31080 | ]), |
| 28167 | ), | 31081 | ), |
| 28168 | source: Schema.optionalKey( | 31082 | source: Schema.optionalKey( |
| 28169 | Schema.Literals([ | 31083 | Schema.suspend( |
| 28170 | "agent", | 31084 | (): Schema.Codec<V2ThreadStartedNotification__CommandExecutionSource> => |
| 28171 | "userShell", | 31085 | V2ThreadStartedNotification__CommandExecutionSource, |
| 28172 | "unifiedExecStartup", | 31086 | ).annotate({ default: "agent" }), |
| 28173 | "unifiedExecInteraction", | | |
| 28174 | ]).annotate({ default: "agent" }), | | |
| 28175 | ), | 31087 | ), |
| 28176 | status: V2TurnStartResponse__CommandExecutionStatus, | 31088 | status: V2ThreadStartedNotification__CommandExecutionStatus, |
| 28177 | type: Schema.Literal("commandExecution").annotate({ | 31089 | type: Schema.Literal("commandExecution").annotate({ |
| 28178 | title: "CommandExecutionThreadItemType", | 31090 | title: "CommandExecutionThreadItemType", |
| 28179 | }), | 31091 | }), |
| 28180 | }).annotate({ title: "CommandExecutionThreadItem" }), | 31092 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 28181 | Schema.Struct({ | 31093 | Schema.Struct({ |
| 28182 | changes: Schema.Array(V2TurnStartResponse__FileUpdateChange), | 31094 | changes: Schema.Array(V2ThreadStartedNotification__FileUpdateChange), |
| 28183 | id: Schema.String, | 31095 | id: Schema.String, |
| 28184 | status: V2TurnStartResponse__PatchApplyStatus, | 31096 | status: V2ThreadStartedNotification__PatchApplyStatus, |
| 28185 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), | 31097 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 28186 | }).annotate({ title: "FileChangeThreadItem" }), | 31098 | }).annotate({ title: "FileChangeThreadItem" }), |
| 28187 | Schema.Struct({ | 31099 | Schema.Struct({ |
| 28188 | appContext: Schema.optionalKey( | 31100 | appContext: Schema.optionalKey( |
| 28189 | Schema.Union([V2TurnStartResponse__McpToolCallAppContext, Schema.Null]), | 31101 | Schema.Union([V2ThreadStartedNotification__McpToolCallAppContext, Schema.Null]), |
| 28190 | ), | 31102 | ), |
| 28191 | arguments: Schema.Unknown, | 31103 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 28192 | durationMs: Schema.optionalKey( | 31104 | durationMs: Schema.optionalKey( |
| 28193 | Schema.Union([ | 31105 | Schema.Union([ |
| 28194 | Schema.Number.annotate({ | 31106 | Schema.Number.annotate({ |
| 28195 | description: "The duration of the MCP tool call in milliseconds.", | 31107 | description: "The duration of the MCP tool call in milliseconds.", |
| 28196 | format: "int64", | 31108 | format: "int64", |
| 28197 | }).check(Schema.isInt()), | 31109 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 28198 | Schema.Null, | 31110 | Schema.Null, |
| 28199 | ]), | 31111 | ]), |
| 28200 | ), | 31112 | ), |
| 28201 | error: Schema.optionalKey(Schema.Union([V2TurnStartResponse__McpToolCallError, Schema.Null])), | 31113 | error: Schema.optionalKey( |
| | 31114 | Schema.Union([V2ThreadStartedNotification__McpToolCallError, Schema.Null]), |
| | 31115 | ), |
| 28202 | id: Schema.String, | 31116 | id: Schema.String, |
| 28203 | mcpAppResourceUri: Schema.optionalKey( | 31117 | mcpAppResourceUri: Schema.optionalKey( |
| 28204 | Schema.Union([ | 31118 | Schema.Union([ |
| ... | @@ -28210,18 +31124,18 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( | ... | @@ -28210,18 +31124,18 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( |
| 28210 | ), | 31124 | ), |
| 28211 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 31125 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 28212 | result: Schema.optionalKey( | 31126 | result: Schema.optionalKey( |
| 28213 | Schema.Union([V2TurnStartResponse__McpToolCallResult, Schema.Null]), | 31127 | Schema.Union([V2ThreadStartedNotification__McpToolCallResult, Schema.Null]), |
| 28214 | ), | 31128 | ), |
| 28215 | server: Schema.String, | 31129 | server: Schema.String, |
| 28216 | status: V2TurnStartResponse__McpToolCallStatus, | 31130 | status: V2ThreadStartedNotification__McpToolCallStatus, |
| 28217 | tool: Schema.String, | 31131 | tool: Schema.String, |
| 28218 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), | 31132 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 28219 | }).annotate({ title: "McpToolCallThreadItem" }), | 31133 | }).annotate({ title: "McpToolCallThreadItem" }), |
| 28220 | Schema.Struct({ | 31134 | Schema.Struct({ |
| 28221 | arguments: Schema.Unknown, | 31135 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 28222 | contentItems: Schema.optionalKey( | 31136 | contentItems: Schema.optionalKey( |
| 28223 | Schema.Union([ | 31137 | Schema.Union([ |
| 28224 | Schema.Array(V2TurnStartResponse__DynamicToolCallOutputContentItem), | 31138 | Schema.Array(V2ThreadStartedNotification__DynamicToolCallOutputContentItem), |
| 28225 | Schema.Null, | 31139 | Schema.Null, |
| 28226 | ]), | 31140 | ]), |
| 28227 | ), | 31141 | ), |
| ... | @@ -28230,21 +31144,22 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( | ... | @@ -28230,21 +31144,22 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( |
| 28230 | Schema.Number.annotate({ | 31144 | Schema.Number.annotate({ |
| 28231 | description: "The duration of the dynamic tool call in milliseconds.", | 31145 | description: "The duration of the dynamic tool call in milliseconds.", |
| 28232 | format: "int64", | 31146 | format: "int64", |
| 28233 | }).check(Schema.isInt()), | 31147 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 28234 | Schema.Null, | 31148 | Schema.Null, |
| 28235 | ]), | 31149 | ]), |
| 28236 | ), | 31150 | ), |
| 28237 | id: Schema.String, | 31151 | id: Schema.String, |
| 28238 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 31152 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 28239 | status: V2TurnStartResponse__DynamicToolCallStatus, | 31153 | status: V2ThreadStartedNotification__DynamicToolCallStatus, |
| 28240 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 31154 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 28241 | tool: Schema.String, | 31155 | tool: Schema.String, |
| 28242 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), | 31156 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 28243 | }).annotate({ title: "DynamicToolCallThreadItem" }), | 31157 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 28244 | Schema.Struct({ | 31158 | Schema.Struct({ |
| 28245 | agentsStates: Schema.Record(Schema.String, V2TurnStartResponse__CollabAgentState).annotate({ | 31159 | agentsStates: Schema.Record( |
| 28246 | description: "Last known status of the target agents, when available.", | 31160 | Schema.String, |
| 28247 | }), | 31161 | V2ThreadStartedNotification__CollabAgentState, |
| | 31162 | ).annotate({ description: "Last known status of the target agents, when available." }), |
| 28248 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), | 31163 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 28249 | model: Schema.optionalKey( | 31164 | model: Schema.optionalKey( |
| 28250 | Schema.Union([ | 31165 | Schema.Union([ |
| ... | @@ -28263,7 +31178,7 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( | ... | @@ -28263,7 +31178,7 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( |
| 28263 | ]), | 31178 | ]), |
| 28264 | ), | 31179 | ), |
| 28265 | reasoningEffort: Schema.optionalKey( | 31180 | reasoningEffort: Schema.optionalKey( |
| 28266 | Schema.Union([V2TurnStartResponse__ReasoningEffort, Schema.Null]).annotate({ | 31181 | Schema.Union([V2ThreadStartedNotification__ReasoningEffort, Schema.Null]).annotate({ |
| 28267 | description: "Reasoning effort requested for the spawned agent, when applicable.", | 31182 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 28268 | }), | 31183 | }), |
| 28269 | ), | 31184 | ), |
| ... | @@ -28274,20 +31189,14 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( | ... | @@ -28274,20 +31189,14 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( |
| 28274 | senderThreadId: Schema.String.annotate({ | 31189 | senderThreadId: Schema.String.annotate({ |
| 28275 | description: "Thread ID of the agent issuing the collab request.", | 31190 | description: "Thread ID of the agent issuing the collab request.", |
| 28276 | }), | 31191 | }), |
| 28277 | status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({ | 31192 | status: Schema.suspend( |
| 28278 | description: "Current status of the collab tool call.", | 31193 | (): Schema.Codec<V2ThreadStartedNotification__CollabAgentToolCallStatus> => |
| 28279 | }), | 31194 | V2ThreadStartedNotification__CollabAgentToolCallStatus, |
| 28280 | tool: Schema.Literals([ | 31195 | ).annotate({ description: "Current status of the collab tool call." }), |
| 28281 | "spawnAgent", | 31196 | tool: Schema.suspend( |
| 28282 | "sendInput", | 31197 | (): Schema.Codec<V2ThreadStartedNotification__CollabAgentTool> => |
| 28283 | "resumeAgent", | 31198 | V2ThreadStartedNotification__CollabAgentTool, |
| 28284 | "wait", | 31199 | ).annotate({ description: "Name of the collab tool that was invoked." }), |
| 28285 | "closeAgent", | | |
| 28286 | "sendMessage", | | |
| 28287 | "followupTask", | | |
| 28288 | "interruptAgent", | | |
| 28289 | "listAgents", | | |
| 28290 | ]).annotate({ description: "Name of the collab tool that was invoked." }), | | |
| 28291 | type: Schema.Literal("collabAgentToolCall").annotate({ | 31200 | type: Schema.Literal("collabAgentToolCall").annotate({ |
| 28292 | title: "CollabAgentToolCallThreadItemType", | 31201 | title: "CollabAgentToolCallThreadItemType", |
| 28293 | }), | 31202 | }), |
| ... | @@ -28296,18 +31205,20 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( | ... | @@ -28296,18 +31205,20 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( |
| 28296 | agentPath: Schema.String, | 31205 | agentPath: Schema.String, |
| 28297 | agentThreadId: Schema.String, | 31206 | agentThreadId: Schema.String, |
| 28298 | id: Schema.String, | 31207 | id: Schema.String, |
| 28299 | kind: V2TurnStartResponse__SubAgentActivityKind, | 31208 | kind: V2ThreadStartedNotification__SubAgentActivityKind, |
| 28300 | type: Schema.Literal("subAgentActivity").annotate({ | 31209 | type: Schema.Literal("subAgentActivity").annotate({ |
| 28301 | title: "SubAgentActivityThreadItemType", | 31210 | title: "SubAgentActivityThreadItemType", |
| 28302 | }), | 31211 | }), |
| 28303 | }).annotate({ title: "SubAgentActivityThreadItem" }), | 31212 | }).annotate({ title: "SubAgentActivityThreadItem" }), |
| 28304 | Schema.Struct({ | 31213 | Schema.Struct({ |
| 28305 | action: Schema.optionalKey(Schema.Union([V2TurnStartResponse__WebSearchAction, Schema.Null])), | 31214 | action: Schema.optionalKey( |
| | 31215 | Schema.Union([V2ThreadStartedNotification__WebSearchAction, Schema.Null]), |
| | 31216 | ), |
| 28306 | id: Schema.String, | 31217 | id: Schema.String, |
| 28307 | query: Schema.String, | 31218 | query: Schema.String, |
| 28308 | results: Schema.optionalKey( | 31219 | results: Schema.optionalKey( |
| 28309 | Schema.Union([ | 31220 | Schema.Union([ |
| 28310 | Schema.Array(Schema.Unknown).annotate({ | 31221 | Schema.Array(Schema.Json.annotate({ expected: "JSON value" })).annotate({ |
| 28311 | description: | 31222 | description: |
| 28312 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", | 31223 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", |
| 28313 | }), | 31224 | }), |
| ... | @@ -28318,13 +31229,17 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( | ... | @@ -28318,13 +31229,17 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( |
| 28318 | }).annotate({ title: "WebSearchThreadItem" }), | 31229 | }).annotate({ title: "WebSearchThreadItem" }), |
| 28319 | Schema.Struct({ | 31230 | Schema.Struct({ |
| 28320 | id: Schema.String, | 31231 | id: Schema.String, |
| 28321 | path: V2TurnStartResponse__LegacyAppPathString, | 31232 | path: V2ThreadStartedNotification__LegacyAppPathString, |
| 28322 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), | 31233 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 28323 | }).annotate({ title: "ImageViewThreadItem" }), | 31234 | }).annotate({ title: "ImageViewThreadItem" }), |
| 28324 | Schema.Struct({ | 31235 | Schema.Struct({ |
| 28325 | durationMs: Schema.Number.annotate({ format: "uint64" }) | 31236 | durationMs: Schema.Number.annotate({ format: "uint64" }) |
| 28326 | .check(Schema.isInt()) | 31237 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 28327 | .check(Schema.isGreaterThanOrEqualTo(0)), | 31238 | .check( |
| | 31239 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 31240 | expected: "a value greater than or equal to 0", |
| | 31241 | }), |
| | 31242 | ), |
| 28328 | id: Schema.String, | 31243 | id: Schema.String, |
| 28329 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), | 31244 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), |
| 28330 | }).annotate({ | 31245 | }).annotate({ |
| ... | @@ -28336,7 +31251,7 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( | ... | @@ -28336,7 +31251,7 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( |
| 28336 | result: Schema.String, | 31251 | result: Schema.String, |
| 28337 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 31252 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 28338 | savedPath: Schema.optionalKey( | 31253 | savedPath: Schema.optionalKey( |
| 28339 | Schema.Union([V2TurnStartResponse__AbsolutePathBuf, Schema.Null]), | 31254 | Schema.Union([V2ThreadStartedNotification__AbsolutePathBuf, Schema.Null]), |
| 28340 | ), | 31255 | ), |
| 28341 | status: Schema.String, | 31256 | status: Schema.String, |
| 28342 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 31257 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| ... | @@ -28363,1073 +31278,2583 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( | ... | @@ -28363,1073 +31278,2583 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( |
| 28363 | }).annotate({ title: "ContextCompactionThreadItem" }), | 31278 | }).annotate({ title: "ContextCompactionThreadItem" }), |
| 28364 | ], | 31279 | ], |
| 28365 | { mode: "oneOf" }, | 31280 | { mode: "oneOf" }, |
| 28366 | ); | 31281 | ).annotate({ identifier: "V2ThreadStartedNotification__ThreadItem" }); |
| 28367 | | 31282 | |
| 28368 | export type ClientRequest__ExternalAgentConfigImportParams = { | 31283 | export type V2ThreadStartResponse__ThreadItem = |
| 28369 | readonly migrationItems: ReadonlyArray<ClientRequest__ExternalAgentConfigMigrationItem>; | 31284 | | { |
| 28370 | readonly migrationSource?: string | null; | 31285 | readonly clientId?: string | null; |
| 28371 | readonly source?: string | null; | 31286 | readonly content: ReadonlyArray<V2ThreadStartResponse__UserInput>; |
| 28372 | }; | 31287 | readonly id: string; |
| 28373 | export const ClientRequest__ExternalAgentConfigImportParams = Schema.Struct({ | 31288 | readonly type: "userMessage"; |
| 28374 | migrationItems: Schema.Array(ClientRequest__ExternalAgentConfigMigrationItem), | 31289 | } |
| 28375 | migrationSource: Schema.optionalKey( | 31290 | | { |
| 28376 | Schema.Union([ | 31291 | readonly fragments: ReadonlyArray<V2ThreadStartResponse__HookPromptFragment>; |
| 28377 | Schema.String.annotate({ | 31292 | readonly id: string; |
| | 31293 | readonly type: "hookPrompt"; |
| | 31294 | } |
| | 31295 | | { |
| | 31296 | readonly id: string; |
| | 31297 | readonly memoryCitation?: V2ThreadStartResponse__MemoryCitation | null; |
| | 31298 | readonly phase?: V2ThreadStartResponse__MessagePhase | null; |
| | 31299 | readonly text: string; |
| | 31300 | readonly delivery?: "async" | null; |
| | 31301 | readonly questions?: ReadonlyArray<{ |
| | 31302 | readonly title: string; |
| | 31303 | readonly options?: ReadonlyArray<string> | null; |
| | 31304 | }> | null; |
| | 31305 | readonly type: "agentMessage"; |
| | 31306 | } |
| | 31307 | | { readonly id: string; readonly text: string; readonly type: "plan" } |
| | 31308 | | { |
| | 31309 | readonly content?: ReadonlyArray<string>; |
| | 31310 | readonly id: string; |
| | 31311 | readonly summary?: ReadonlyArray<string>; |
| | 31312 | readonly type: "reasoning"; |
| | 31313 | } |
| | 31314 | | { |
| | 31315 | readonly aggregatedOutput?: string | null; |
| | 31316 | readonly command: string; |
| | 31317 | readonly commandActions: ReadonlyArray<V2ThreadStartResponse__CommandAction>; |
| | 31318 | readonly cwd: V2ThreadStartResponse__LegacyAppPathString; |
| | 31319 | readonly durationMs?: number | null; |
| | 31320 | readonly exitCode?: number | null; |
| | 31321 | readonly id: string; |
| | 31322 | readonly processId?: string | null; |
| | 31323 | readonly source?: V2ThreadStartResponse__CommandExecutionSource; |
| | 31324 | readonly status: V2ThreadStartResponse__CommandExecutionStatus; |
| | 31325 | readonly type: "commandExecution"; |
| | 31326 | } |
| | 31327 | | { |
| | 31328 | readonly changes: ReadonlyArray<V2ThreadStartResponse__FileUpdateChange>; |
| | 31329 | readonly id: string; |
| | 31330 | readonly status: V2ThreadStartResponse__PatchApplyStatus; |
| | 31331 | readonly type: "fileChange"; |
| | 31332 | } |
| | 31333 | | { |
| | 31334 | readonly appContext?: V2ThreadStartResponse__McpToolCallAppContext | null; |
| | 31335 | readonly arguments: Schema.Json; |
| | 31336 | readonly durationMs?: number | null; |
| | 31337 | readonly error?: V2ThreadStartResponse__McpToolCallError | null; |
| | 31338 | readonly id: string; |
| | 31339 | readonly mcpAppResourceUri?: string | null; |
| | 31340 | readonly pluginId?: string | null; |
| | 31341 | readonly result?: V2ThreadStartResponse__McpToolCallResult | null; |
| | 31342 | readonly server: string; |
| | 31343 | readonly status: V2ThreadStartResponse__McpToolCallStatus; |
| | 31344 | readonly tool: string; |
| | 31345 | readonly type: "mcpToolCall"; |
| | 31346 | } |
| | 31347 | | { |
| | 31348 | readonly arguments: Schema.Json; |
| | 31349 | readonly contentItems?: ReadonlyArray<V2ThreadStartResponse__DynamicToolCallOutputContentItem> | null; |
| | 31350 | readonly durationMs?: number | null; |
| | 31351 | readonly id: string; |
| | 31352 | readonly namespace?: string | null; |
| | 31353 | readonly status: V2ThreadStartResponse__DynamicToolCallStatus; |
| | 31354 | readonly success?: boolean | null; |
| | 31355 | readonly tool: string; |
| | 31356 | readonly type: "dynamicToolCall"; |
| | 31357 | } |
| | 31358 | | { |
| | 31359 | readonly agentsStates: { readonly [x: string]: V2ThreadStartResponse__CollabAgentState }; |
| | 31360 | readonly id: string; |
| | 31361 | readonly model?: string | null; |
| | 31362 | readonly prompt?: string | null; |
| | 31363 | readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null; |
| | 31364 | readonly receiverThreadIds: ReadonlyArray<string>; |
| | 31365 | readonly senderThreadId: string; |
| | 31366 | readonly status: V2ThreadStartResponse__CollabAgentToolCallStatus; |
| | 31367 | readonly tool: V2ThreadStartResponse__CollabAgentTool; |
| | 31368 | readonly type: "collabAgentToolCall"; |
| | 31369 | } |
| | 31370 | | { |
| | 31371 | readonly agentPath: string; |
| | 31372 | readonly agentThreadId: string; |
| | 31373 | readonly id: string; |
| | 31374 | readonly kind: V2ThreadStartResponse__SubAgentActivityKind; |
| | 31375 | readonly type: "subAgentActivity"; |
| | 31376 | } |
| | 31377 | | { |
| | 31378 | readonly action?: V2ThreadStartResponse__WebSearchAction | null; |
| | 31379 | readonly id: string; |
| | 31380 | readonly query: string; |
| | 31381 | readonly results?: ReadonlyArray<Schema.Json> | null; |
| | 31382 | readonly type: "webSearch"; |
| | 31383 | } |
| | 31384 | | { |
| | 31385 | readonly id: string; |
| | 31386 | readonly path: V2ThreadStartResponse__LegacyAppPathString; |
| | 31387 | readonly type: "imageView"; |
| | 31388 | } |
| | 31389 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| | 31390 | | { |
| | 31391 | readonly id: string; |
| | 31392 | readonly result: string; |
| | 31393 | readonly revisedPrompt?: string | null; |
| | 31394 | readonly savedPath?: V2ThreadStartResponse__AbsolutePathBuf | null; |
| | 31395 | readonly status: string; |
| | 31396 | readonly type: "imageGeneration"; |
| | 31397 | } |
| | 31398 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| | 31399 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| | 31400 | | { readonly id: string; readonly type: "contextCompaction" }; |
| | 31401 | export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| | 31402 | [ |
| | 31403 | Schema.Struct({ |
| | 31404 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 31405 | content: Schema.Array(V2ThreadStartResponse__UserInput), |
| | 31406 | id: Schema.String, |
| | 31407 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| | 31408 | }).annotate({ title: "UserMessageThreadItem" }), |
| | 31409 | Schema.Struct({ |
| | 31410 | fragments: Schema.Array(V2ThreadStartResponse__HookPromptFragment), |
| | 31411 | id: Schema.String, |
| | 31412 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| | 31413 | }).annotate({ title: "HookPromptThreadItem" }), |
| | 31414 | Schema.Struct({ |
| | 31415 | id: Schema.String, |
| | 31416 | memoryCitation: Schema.optionalKey( |
| | 31417 | Schema.Union([V2ThreadStartResponse__MemoryCitation, Schema.Null]), |
| | 31418 | ), |
| | 31419 | phase: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__MessagePhase, Schema.Null])), |
| | 31420 | text: Schema.String, |
| | 31421 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), |
| | 31422 | questions: Schema.optionalKey( |
| | 31423 | Schema.Union([ |
| | 31424 | Schema.Array( |
| | 31425 | Schema.Struct({ |
| | 31426 | title: Schema.String, |
| | 31427 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 31428 | }), |
| | 31429 | ), |
| | 31430 | Schema.Null, |
| | 31431 | ]), |
| | 31432 | ), |
| | 31433 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| | 31434 | }).annotate({ title: "AgentMessageThreadItem" }), |
| | 31435 | Schema.Struct({ |
| | 31436 | id: Schema.String, |
| | 31437 | text: Schema.String, |
| | 31438 | type: Schema.Literal("plan").annotate({ title: "PlanThreadItemType" }), |
| | 31439 | }).annotate({ |
| | 31440 | title: "PlanThreadItem", |
| | 31441 | description: |
| | 31442 | "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.", |
| | 31443 | }), |
| | 31444 | Schema.Struct({ |
| | 31445 | content: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| | 31446 | id: Schema.String, |
| | 31447 | summary: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| | 31448 | type: Schema.Literal("reasoning").annotate({ title: "ReasoningThreadItemType" }), |
| | 31449 | }).annotate({ title: "ReasoningThreadItem" }), |
| | 31450 | Schema.Struct({ |
| | 31451 | aggregatedOutput: Schema.optionalKey( |
| | 31452 | Schema.Union([ |
| | 31453 | Schema.String.annotate({ |
| | 31454 | description: "The command's output, aggregated from stdout and stderr.", |
| | 31455 | }), |
| | 31456 | Schema.Null, |
| | 31457 | ]), |
| | 31458 | ), |
| | 31459 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| | 31460 | commandActions: Schema.Array(V2ThreadStartResponse__CommandAction).annotate({ |
| 28378 | description: | 31461 | description: |
| 28379 | "Migration-source selector used to produce the migration items. Pass the same value to detection and import; missing or unrecognized values use the default source.", | 31462 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 28380 | }), | 31463 | }), |
| 28381 | Schema.Null, | 31464 | cwd: Schema.suspend( |
| 28382 | ]), | 31465 | (): Schema.Codec<V2ThreadStartResponse__LegacyAppPathString> => |
| 28383 | ), | 31466 | V2ThreadStartResponse__LegacyAppPathString, |
| 28384 | source: Schema.optionalKey( | 31467 | ).annotate({ description: "The command's working directory." }), |
| 28385 | Schema.Union([ | 31468 | durationMs: Schema.optionalKey( |
| 28386 | Schema.String.annotate({ | 31469 | Schema.Union([ |
| 28387 | description: "Optional identifier for the product that initiated the import.", | 31470 | Schema.Number.annotate({ |
| | 31471 | description: "The duration of the command execution in milliseconds.", |
| | 31472 | format: "int64", |
| | 31473 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 31474 | Schema.Null, |
| | 31475 | ]), |
| | 31476 | ), |
| | 31477 | exitCode: Schema.optionalKey( |
| | 31478 | Schema.Union([ |
| | 31479 | Schema.Number.annotate({ |
| | 31480 | description: "The command's exit code.", |
| | 31481 | format: "int32", |
| | 31482 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 31483 | Schema.Null, |
| | 31484 | ]), |
| | 31485 | ), |
| | 31486 | id: Schema.String, |
| | 31487 | processId: Schema.optionalKey( |
| | 31488 | Schema.Union([ |
| | 31489 | Schema.String.annotate({ |
| | 31490 | description: "Identifier for the underlying PTY process (when available).", |
| | 31491 | }), |
| | 31492 | Schema.Null, |
| | 31493 | ]), |
| | 31494 | ), |
| | 31495 | source: Schema.optionalKey( |
| | 31496 | Schema.suspend( |
| | 31497 | (): Schema.Codec<V2ThreadStartResponse__CommandExecutionSource> => |
| | 31498 | V2ThreadStartResponse__CommandExecutionSource, |
| | 31499 | ).annotate({ default: "agent" }), |
| | 31500 | ), |
| | 31501 | status: V2ThreadStartResponse__CommandExecutionStatus, |
| | 31502 | type: Schema.Literal("commandExecution").annotate({ |
| | 31503 | title: "CommandExecutionThreadItemType", |
| 28388 | }), | 31504 | }), |
| 28389 | Schema.Null, | 31505 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 28390 | ]), | 31506 | Schema.Struct({ |
| 28391 | ), | 31507 | changes: Schema.Array(V2ThreadStartResponse__FileUpdateChange), |
| 28392 | }); | 31508 | id: Schema.String, |
| 28393 | | 31509 | status: V2ThreadStartResponse__PatchApplyStatus, |
| 28394 | export type CommandExecutionRequestApprovalParams__FileSystemSandboxEntry = { | 31510 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 28395 | readonly access: CommandExecutionRequestApprovalParams__FileSystemAccessMode; | 31511 | }).annotate({ title: "FileChangeThreadItem" }), |
| 28396 | readonly path: CommandExecutionRequestApprovalParams__FileSystemPath; | 31512 | Schema.Struct({ |
| 28397 | }; | 31513 | appContext: Schema.optionalKey( |
| 28398 | export const CommandExecutionRequestApprovalParams__FileSystemSandboxEntry = Schema.Struct({ | 31514 | Schema.Union([V2ThreadStartResponse__McpToolCallAppContext, Schema.Null]), |
| 28399 | access: CommandExecutionRequestApprovalParams__FileSystemAccessMode, | 31515 | ), |
| 28400 | path: CommandExecutionRequestApprovalParams__FileSystemPath, | 31516 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 28401 | }); | 31517 | durationMs: Schema.optionalKey( |
| 28402 | | 31518 | Schema.Union([ |
| 28403 | export type McpServerElicitationRequestParams__McpElicitationMultiSelectEnumSchema = | 31519 | Schema.Number.annotate({ |
| 28404 | | McpServerElicitationRequestParams__McpElicitationUntitledMultiSelectEnumSchema | 31520 | description: "The duration of the MCP tool call in milliseconds.", |
| 28405 | | McpServerElicitationRequestParams__McpElicitationTitledMultiSelectEnumSchema; | 31521 | format: "int64", |
| 28406 | export const McpServerElicitationRequestParams__McpElicitationMultiSelectEnumSchema = Schema.Union([ | 31522 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 28407 | McpServerElicitationRequestParams__McpElicitationUntitledMultiSelectEnumSchema, | 31523 | Schema.Null, |
| 28408 | McpServerElicitationRequestParams__McpElicitationTitledMultiSelectEnumSchema, | 31524 | ]), |
| 28409 | ]); | 31525 | ), |
| 28410 | | 31526 | error: Schema.optionalKey( |
| 28411 | export type PermissionsRequestApprovalParams__FileSystemSandboxEntry = { | 31527 | Schema.Union([V2ThreadStartResponse__McpToolCallError, Schema.Null]), |
| 28412 | readonly access: PermissionsRequestApprovalParams__FileSystemAccessMode; | 31528 | ), |
| 28413 | readonly path: PermissionsRequestApprovalParams__FileSystemPath; | 31529 | id: Schema.String, |
| 28414 | }; | 31530 | mcpAppResourceUri: Schema.optionalKey( |
| 28415 | export const PermissionsRequestApprovalParams__FileSystemSandboxEntry = Schema.Struct({ | 31531 | Schema.Union([ |
| 28416 | access: PermissionsRequestApprovalParams__FileSystemAccessMode, | 31532 | Schema.String.annotate({ |
| 28417 | path: PermissionsRequestApprovalParams__FileSystemPath, | 31533 | description: "Deprecated: use `appContext.resourceUri` instead.", |
| 28418 | }); | 31534 | }), |
| 28419 | | 31535 | Schema.Null, |
| 28420 | export type PermissionsRequestApprovalResponse__FileSystemSandboxEntry = { | 31536 | ]), |
| 28421 | readonly access: PermissionsRequestApprovalResponse__FileSystemAccessMode; | 31537 | ), |
| 28422 | readonly path: PermissionsRequestApprovalResponse__FileSystemPath; | 31538 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 28423 | }; | 31539 | result: Schema.optionalKey( |
| 28424 | export const PermissionsRequestApprovalResponse__FileSystemSandboxEntry = Schema.Struct({ | 31540 | Schema.Union([V2ThreadStartResponse__McpToolCallResult, Schema.Null]), |
| 28425 | access: PermissionsRequestApprovalResponse__FileSystemAccessMode, | 31541 | ), |
| 28426 | path: PermissionsRequestApprovalResponse__FileSystemPath, | 31542 | server: Schema.String, |
| 28427 | }); | 31543 | status: V2ThreadStartResponse__McpToolCallStatus, |
| 28428 | | 31544 | tool: Schema.String, |
| 28429 | export type ServerNotification__AppListUpdatedNotification = { | 31545 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 28430 | readonly data: ReadonlyArray<ServerNotification__AppInfo>; | 31546 | }).annotate({ title: "McpToolCallThreadItem" }), |
| 28431 | }; | 31547 | Schema.Struct({ |
| 28432 | export const ServerNotification__AppListUpdatedNotification = Schema.Struct({ | 31548 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 28433 | data: Schema.Array(ServerNotification__AppInfo), | 31549 | contentItems: Schema.optionalKey( |
| 28434 | }).annotate({ description: "EXPERIMENTAL - notification emitted when the app list changes." }); | 31550 | Schema.Union([ |
| 28435 | | 31551 | Schema.Array(V2ThreadStartResponse__DynamicToolCallOutputContentItem), |
| 28436 | export type ServerNotification__ExternalAgentConfigImportCompletedNotification = { | 31552 | Schema.Null, |
| 28437 | readonly importId: string; | 31553 | ]), |
| 28438 | readonly itemTypeResults: ReadonlyArray<ServerNotification__ExternalAgentConfigImportTypeResult>; | 31554 | ), |
| 28439 | }; | 31555 | durationMs: Schema.optionalKey( |
| 28440 | export const ServerNotification__ExternalAgentConfigImportCompletedNotification = Schema.Struct({ | 31556 | Schema.Union([ |
| 28441 | importId: Schema.String, | 31557 | Schema.Number.annotate({ |
| 28442 | itemTypeResults: Schema.Array(ServerNotification__ExternalAgentConfigImportTypeResult), | 31558 | description: "The duration of the dynamic tool call in milliseconds.", |
| 28443 | }); | 31559 | format: "int64", |
| 28444 | | 31560 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 28445 | export type ServerNotification__ExternalAgentConfigImportProgressNotification = { | 31561 | Schema.Null, |
| 28446 | readonly importId: string; | 31562 | ]), |
| 28447 | readonly itemTypeResults: ReadonlyArray<ServerNotification__ExternalAgentConfigImportTypeResult>; | 31563 | ), |
| 28448 | }; | 31564 | id: Schema.String, |
| 28449 | export const ServerNotification__ExternalAgentConfigImportProgressNotification = Schema.Struct({ | 31565 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 28450 | importId: Schema.String, | 31566 | status: V2ThreadStartResponse__DynamicToolCallStatus, |
| 28451 | itemTypeResults: Schema.Array(ServerNotification__ExternalAgentConfigImportTypeResult), | 31567 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 28452 | }); | 31568 | tool: Schema.String, |
| 28453 | | 31569 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 28454 | export type ServerNotification__HookCompletedNotification = { | 31570 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 28455 | readonly run: ServerNotification__HookRunSummary; | 31571 | Schema.Struct({ |
| 28456 | readonly threadId: string; | 31572 | agentsStates: Schema.Record(Schema.String, V2ThreadStartResponse__CollabAgentState).annotate({ |
| 28457 | readonly turnId?: string | null; | 31573 | description: "Last known status of the target agents, when available.", |
| 28458 | }; | 31574 | }), |
| 28459 | export const ServerNotification__HookCompletedNotification = Schema.Struct({ | 31575 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 28460 | run: ServerNotification__HookRunSummary, | 31576 | model: Schema.optionalKey( |
| 28461 | threadId: Schema.String, | 31577 | Schema.Union([ |
| 28462 | turnId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 31578 | Schema.String.annotate({ |
| 28463 | }); | 31579 | description: "Model requested for the spawned agent, when applicable.", |
| | 31580 | }), |
| | 31581 | Schema.Null, |
| | 31582 | ]), |
| | 31583 | ), |
| | 31584 | prompt: Schema.optionalKey( |
| | 31585 | Schema.Union([ |
| | 31586 | Schema.String.annotate({ |
| | 31587 | description: "Prompt text sent as part of the collab tool call, when available.", |
| | 31588 | }), |
| | 31589 | Schema.Null, |
| | 31590 | ]), |
| | 31591 | ), |
| | 31592 | reasoningEffort: Schema.optionalKey( |
| | 31593 | Schema.Union([V2ThreadStartResponse__ReasoningEffort, Schema.Null]).annotate({ |
| | 31594 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| | 31595 | }), |
| | 31596 | ), |
| | 31597 | receiverThreadIds: Schema.Array(Schema.String).annotate({ |
| | 31598 | description: |
| | 31599 | "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.", |
| | 31600 | }), |
| | 31601 | senderThreadId: Schema.String.annotate({ |
| | 31602 | description: "Thread ID of the agent issuing the collab request.", |
| | 31603 | }), |
| | 31604 | status: Schema.suspend( |
| | 31605 | (): Schema.Codec<V2ThreadStartResponse__CollabAgentToolCallStatus> => |
| | 31606 | V2ThreadStartResponse__CollabAgentToolCallStatus, |
| | 31607 | ).annotate({ description: "Current status of the collab tool call." }), |
| | 31608 | tool: Schema.suspend( |
| | 31609 | (): Schema.Codec<V2ThreadStartResponse__CollabAgentTool> => |
| | 31610 | V2ThreadStartResponse__CollabAgentTool, |
| | 31611 | ).annotate({ description: "Name of the collab tool that was invoked." }), |
| | 31612 | type: Schema.Literal("collabAgentToolCall").annotate({ |
| | 31613 | title: "CollabAgentToolCallThreadItemType", |
| | 31614 | }), |
| | 31615 | }).annotate({ title: "CollabAgentToolCallThreadItem" }), |
| | 31616 | Schema.Struct({ |
| | 31617 | agentPath: Schema.String, |
| | 31618 | agentThreadId: Schema.String, |
| | 31619 | id: Schema.String, |
| | 31620 | kind: V2ThreadStartResponse__SubAgentActivityKind, |
| | 31621 | type: Schema.Literal("subAgentActivity").annotate({ |
| | 31622 | title: "SubAgentActivityThreadItemType", |
| | 31623 | }), |
| | 31624 | }).annotate({ title: "SubAgentActivityThreadItem" }), |
| | 31625 | Schema.Struct({ |
| | 31626 | action: Schema.optionalKey( |
| | 31627 | Schema.Union([V2ThreadStartResponse__WebSearchAction, Schema.Null]), |
| | 31628 | ), |
| | 31629 | id: Schema.String, |
| | 31630 | query: Schema.String, |
| | 31631 | results: Schema.optionalKey( |
| | 31632 | Schema.Union([ |
| | 31633 | Schema.Array(Schema.Json.annotate({ expected: "JSON value" })).annotate({ |
| | 31634 | description: |
| | 31635 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", |
| | 31636 | }), |
| | 31637 | Schema.Null, |
| | 31638 | ]), |
| | 31639 | ), |
| | 31640 | type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }), |
| | 31641 | }).annotate({ title: "WebSearchThreadItem" }), |
| | 31642 | Schema.Struct({ |
| | 31643 | id: Schema.String, |
| | 31644 | path: V2ThreadStartResponse__LegacyAppPathString, |
| | 31645 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| | 31646 | }).annotate({ title: "ImageViewThreadItem" }), |
| | 31647 | Schema.Struct({ |
| | 31648 | durationMs: Schema.Number.annotate({ format: "uint64" }) |
| | 31649 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 31650 | .check( |
| | 31651 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 31652 | expected: "a value greater than or equal to 0", |
| | 31653 | }), |
| | 31654 | ), |
| | 31655 | id: Schema.String, |
| | 31656 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), |
| | 31657 | }).annotate({ |
| | 31658 | title: "SleepThreadItem", |
| | 31659 | description: "Display item emitted by the interruptible `clock.sleep` tool.", |
| | 31660 | }), |
| | 31661 | Schema.Struct({ |
| | 31662 | id: Schema.String, |
| | 31663 | result: Schema.String, |
| | 31664 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 31665 | savedPath: Schema.optionalKey( |
| | 31666 | Schema.Union([V2ThreadStartResponse__AbsolutePathBuf, Schema.Null]), |
| | 31667 | ), |
| | 31668 | status: Schema.String, |
| | 31669 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| | 31670 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| | 31671 | Schema.Struct({ |
| | 31672 | id: Schema.String, |
| | 31673 | review: Schema.String, |
| | 31674 | type: Schema.Literal("enteredReviewMode").annotate({ |
| | 31675 | title: "EnteredReviewModeThreadItemType", |
| | 31676 | }), |
| | 31677 | }).annotate({ title: "EnteredReviewModeThreadItem" }), |
| | 31678 | Schema.Struct({ |
| | 31679 | id: Schema.String, |
| | 31680 | review: Schema.String, |
| | 31681 | type: Schema.Literal("exitedReviewMode").annotate({ |
| | 31682 | title: "ExitedReviewModeThreadItemType", |
| | 31683 | }), |
| | 31684 | }).annotate({ title: "ExitedReviewModeThreadItem" }), |
| | 31685 | Schema.Struct({ |
| | 31686 | id: Schema.String, |
| | 31687 | type: Schema.Literal("contextCompaction").annotate({ |
| | 31688 | title: "ContextCompactionThreadItemType", |
| | 31689 | }), |
| | 31690 | }).annotate({ title: "ContextCompactionThreadItem" }), |
| | 31691 | ], |
| | 31692 | { mode: "oneOf" }, |
| | 31693 | ).annotate({ identifier: "V2ThreadStartResponse__ThreadItem" }); |
| 28464 | | 31694 | |
| 28465 | export type ServerNotification__HookStartedNotification = { | 31695 | export type V2ThreadUnarchiveResponse__ThreadItem = |
| 28466 | readonly run: ServerNotification__HookRunSummary; | 31696 | | { |
| 28467 | readonly threadId: string; | 31697 | readonly clientId?: string | null; |
| 28468 | readonly turnId?: string | null; | 31698 | readonly content: ReadonlyArray<V2ThreadUnarchiveResponse__UserInput>; |
| 28469 | }; | 31699 | readonly id: string; |
| 28470 | export const ServerNotification__HookStartedNotification = Schema.Struct({ | 31700 | readonly type: "userMessage"; |
| 28471 | run: ServerNotification__HookRunSummary, | 31701 | } |
| 28472 | threadId: Schema.String, | 31702 | | { |
| 28473 | turnId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 31703 | readonly fragments: ReadonlyArray<V2ThreadUnarchiveResponse__HookPromptFragment>; |
| 28474 | }); | 31704 | readonly id: string; |
| 28475 | | 31705 | readonly type: "hookPrompt"; |
| 28476 | export type ServerNotification__FileSystemSandboxEntry = { | 31706 | } |
| 28477 | readonly access: ServerNotification__FileSystemAccessMode; | 31707 | | { |
| 28478 | readonly path: ServerNotification__FileSystemPath; | 31708 | readonly id: string; |
| 28479 | }; | 31709 | readonly memoryCitation?: V2ThreadUnarchiveResponse__MemoryCitation | null; |
| 28480 | export const ServerNotification__FileSystemSandboxEntry = Schema.Struct({ | 31710 | readonly phase?: V2ThreadUnarchiveResponse__MessagePhase | null; |
| 28481 | access: ServerNotification__FileSystemAccessMode, | 31711 | readonly text: string; |
| 28482 | path: ServerNotification__FileSystemPath, | 31712 | readonly delivery?: "async" | null; |
| 28483 | }); | 31713 | readonly questions?: ReadonlyArray<{ |
| 28484 | | 31714 | readonly title: string; |
| 28485 | export type ServerNotification__ErrorNotification = { | 31715 | readonly options?: ReadonlyArray<string> | null; |
| 28486 | readonly error: ServerNotification__TurnError; | 31716 | }> | null; |
| 28487 | readonly threadId: string; | 31717 | readonly type: "agentMessage"; |
| 28488 | readonly turnId: string; | 31718 | } |
| 28489 | readonly willRetry: boolean; | 31719 | | { readonly id: string; readonly text: string; readonly type: "plan" } |
| 28490 | }; | 31720 | | { |
| 28491 | export const ServerNotification__ErrorNotification = Schema.Struct({ | 31721 | readonly content?: ReadonlyArray<string>; |
| 28492 | error: ServerNotification__TurnError, | 31722 | readonly id: string; |
| 28493 | threadId: Schema.String, | 31723 | readonly summary?: ReadonlyArray<string>; |
| 28494 | turnId: Schema.String, | 31724 | readonly type: "reasoning"; |
| 28495 | willRetry: Schema.Boolean, | 31725 | } |
| 28496 | }); | 31726 | | { |
| 28497 | | 31727 | readonly aggregatedOutput?: string | null; |
| 28498 | export type ServerNotification__ThreadSettings = { | 31728 | readonly command: string; |
| 28499 | readonly activePermissionProfile?: ServerNotification__ActivePermissionProfile | null; | 31729 | readonly commandActions: ReadonlyArray<V2ThreadUnarchiveResponse__CommandAction>; |
| 28500 | readonly approvalPolicy: ServerNotification__AskForApproval; | 31730 | readonly cwd: V2ThreadUnarchiveResponse__LegacyAppPathString; |
| 28501 | readonly approvalsReviewer: ServerNotification__ApprovalsReviewer; | 31731 | readonly durationMs?: number | null; |
| 28502 | readonly collaborationMode: ServerNotification__CollaborationMode; | 31732 | readonly exitCode?: number | null; |
| 28503 | readonly cwd: ServerNotification__AbsolutePathBuf; | 31733 | readonly id: string; |
| 28504 | readonly effort?: ServerNotification__ReasoningEffort | null; | 31734 | readonly processId?: string | null; |
| 28505 | readonly model: string; | 31735 | readonly source?: V2ThreadUnarchiveResponse__CommandExecutionSource; |
| 28506 | readonly modelProvider: string; | 31736 | readonly status: V2ThreadUnarchiveResponse__CommandExecutionStatus; |
| 28507 | readonly personality?: ServerNotification__Personality | null; | 31737 | readonly type: "commandExecution"; |
| 28508 | readonly sandboxPolicy: ServerNotification__SandboxPolicy; | 31738 | } |
| 28509 | readonly serviceTier?: string | null; | 31739 | | { |
| 28510 | readonly summary?: ServerNotification__ReasoningSummary | null; | 31740 | readonly changes: ReadonlyArray<V2ThreadUnarchiveResponse__FileUpdateChange>; |
| 28511 | }; | 31741 | readonly id: string; |
| 28512 | export const ServerNotification__ThreadSettings = Schema.Struct({ | 31742 | readonly status: V2ThreadUnarchiveResponse__PatchApplyStatus; |
| 28513 | activePermissionProfile: Schema.optionalKey( | 31743 | readonly type: "fileChange"; |
| 28514 | Schema.Union([ServerNotification__ActivePermissionProfile, Schema.Null]), | 31744 | } |
| 28515 | ), | 31745 | | { |
| 28516 | approvalPolicy: ServerNotification__AskForApproval, | 31746 | readonly appContext?: V2ThreadUnarchiveResponse__McpToolCallAppContext | null; |
| 28517 | approvalsReviewer: ServerNotification__ApprovalsReviewer, | 31747 | readonly arguments: Schema.Json; |
| 28518 | collaborationMode: ServerNotification__CollaborationMode, | 31748 | readonly durationMs?: number | null; |
| 28519 | cwd: ServerNotification__AbsolutePathBuf, | 31749 | readonly error?: V2ThreadUnarchiveResponse__McpToolCallError | null; |
| 28520 | effort: Schema.optionalKey(Schema.Union([ServerNotification__ReasoningEffort, Schema.Null])), | 31750 | readonly id: string; |
| 28521 | model: Schema.String, | 31751 | readonly mcpAppResourceUri?: string | null; |
| 28522 | modelProvider: Schema.String, | 31752 | readonly pluginId?: string | null; |
| 28523 | personality: Schema.optionalKey(Schema.Union([ServerNotification__Personality, Schema.Null])), | 31753 | readonly result?: V2ThreadUnarchiveResponse__McpToolCallResult | null; |
| 28524 | sandboxPolicy: ServerNotification__SandboxPolicy, | 31754 | readonly server: string; |
| 28525 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 31755 | readonly status: V2ThreadUnarchiveResponse__McpToolCallStatus; |
| 28526 | summary: Schema.optionalKey(Schema.Union([ServerNotification__ReasoningSummary, Schema.Null])), | 31756 | readonly tool: string; |
| 28527 | }); | 31757 | readonly type: "mcpToolCall"; |
| 28528 | | 31758 | } |
| 28529 | export type ServerNotification__ItemCompletedNotification = { | 31759 | | { |
| 28530 | readonly completedAtMs: number; | 31760 | readonly arguments: Schema.Json; |
| 28531 | readonly item: ServerNotification__ThreadItem; | 31761 | readonly contentItems?: ReadonlyArray<V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem> | null; |
| 28532 | readonly threadId: string; | 31762 | readonly durationMs?: number | null; |
| 28533 | readonly turnId: string; | 31763 | readonly id: string; |
| 28534 | }; | 31764 | readonly namespace?: string | null; |
| 28535 | export const ServerNotification__ItemCompletedNotification = Schema.Struct({ | 31765 | readonly status: V2ThreadUnarchiveResponse__DynamicToolCallStatus; |
| 28536 | completedAtMs: Schema.Number.annotate({ | 31766 | readonly success?: boolean | null; |
| 28537 | description: "Unix timestamp (in milliseconds) when this item lifecycle completed.", | 31767 | readonly tool: string; |
| 28538 | format: "int64", | 31768 | readonly type: "dynamicToolCall"; |
| 28539 | }).check(Schema.isInt()), | 31769 | } |
| 28540 | item: ServerNotification__ThreadItem, | 31770 | | { |
| 28541 | threadId: Schema.String, | 31771 | readonly agentsStates: { readonly [x: string]: V2ThreadUnarchiveResponse__CollabAgentState }; |
| 28542 | turnId: Schema.String, | 31772 | readonly id: string; |
| 28543 | }); | 31773 | readonly model?: string | null; |
| 28544 | | 31774 | readonly prompt?: string | null; |
| 28545 | export type ServerNotification__ItemStartedNotification = { | 31775 | readonly reasoningEffort?: V2ThreadUnarchiveResponse__ReasoningEffort | null; |
| 28546 | readonly item: ServerNotification__ThreadItem; | 31776 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 28547 | readonly startedAtMs: number; | 31777 | readonly senderThreadId: string; |
| 28548 | readonly threadId: string; | 31778 | readonly status: V2ThreadUnarchiveResponse__CollabAgentToolCallStatus; |
| 28549 | readonly turnId: string; | 31779 | readonly tool: V2ThreadUnarchiveResponse__CollabAgentTool; |
| 28550 | }; | 31780 | readonly type: "collabAgentToolCall"; |
| 28551 | export const ServerNotification__ItemStartedNotification = Schema.Struct({ | 31781 | } |
| 28552 | item: ServerNotification__ThreadItem, | 31782 | | { |
| 28553 | startedAtMs: Schema.Number.annotate({ | 31783 | readonly agentPath: string; |
| 28554 | description: "Unix timestamp (in milliseconds) when this item lifecycle started.", | 31784 | readonly agentThreadId: string; |
| 28555 | format: "int64", | 31785 | readonly id: string; |
| 28556 | }).check(Schema.isInt()), | 31786 | readonly kind: V2ThreadUnarchiveResponse__SubAgentActivityKind; |
| 28557 | threadId: Schema.String, | 31787 | readonly type: "subAgentActivity"; |
| 28558 | turnId: Schema.String, | 31788 | } |
| 28559 | }); | 31789 | | { |
| 28560 | | 31790 | readonly action?: V2ThreadUnarchiveResponse__WebSearchAction | null; |
| 28561 | export type ServerNotification__Turn = { | 31791 | readonly id: string; |
| 28562 | readonly completedAt?: number | null; | 31792 | readonly query: string; |
| 28563 | readonly durationMs?: number | null; | 31793 | readonly results?: ReadonlyArray<Schema.Json> | null; |
| 28564 | readonly error?: ServerNotification__TurnError | null; | 31794 | readonly type: "webSearch"; |
| 28565 | readonly id: string; | 31795 | } |
| 28566 | readonly items: ReadonlyArray<ServerNotification__ThreadItem>; | 31796 | | { |
| 28567 | readonly itemsView?: "notLoaded" | "summary" | "full"; | 31797 | readonly id: string; |
| 28568 | readonly startedAt?: number | null; | 31798 | readonly path: V2ThreadUnarchiveResponse__LegacyAppPathString; |
| 28569 | readonly status: ServerNotification__TurnStatus; | 31799 | readonly type: "imageView"; |
| 28570 | }; | 31800 | } |
| 28571 | export const ServerNotification__Turn = Schema.Struct({ | 31801 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| 28572 | completedAt: Schema.optionalKey( | 31802 | | { |
| 28573 | Schema.Union([ | 31803 | readonly id: string; |
| 28574 | Schema.Number.annotate({ | 31804 | readonly result: string; |
| 28575 | description: "Unix timestamp (in seconds) when the turn completed.", | 31805 | readonly revisedPrompt?: string | null; |
| 28576 | format: "int64", | 31806 | readonly savedPath?: V2ThreadUnarchiveResponse__AbsolutePathBuf | null; |
| 28577 | }).check(Schema.isInt()), | 31807 | readonly status: string; |
| 28578 | Schema.Null, | 31808 | readonly type: "imageGeneration"; |
| 28579 | ]), | 31809 | } |
| 28580 | ), | 31810 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 28581 | durationMs: Schema.optionalKey( | 31811 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 28582 | Schema.Union([ | 31812 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 28583 | Schema.Number.annotate({ | 31813 | export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 28584 | description: "Duration between turn start and completion in milliseconds, if known.", | 31814 | [ |
| 28585 | format: "int64", | 31815 | Schema.Struct({ |
| 28586 | }).check(Schema.isInt()), | 31816 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 28587 | Schema.Null, | 31817 | content: Schema.Array(V2ThreadUnarchiveResponse__UserInput), |
| 28588 | ]), | 31818 | id: Schema.String, |
| 28589 | ), | 31819 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 28590 | error: Schema.optionalKey( | 31820 | }).annotate({ title: "UserMessageThreadItem" }), |
| 28591 | Schema.Union([ServerNotification__TurnError, Schema.Null]).annotate({ | 31821 | Schema.Struct({ |
| 28592 | description: "Only populated when the Turn's status is failed.", | 31822 | fragments: Schema.Array(V2ThreadUnarchiveResponse__HookPromptFragment), |
| | 31823 | id: Schema.String, |
| | 31824 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| | 31825 | }).annotate({ title: "HookPromptThreadItem" }), |
| | 31826 | Schema.Struct({ |
| | 31827 | id: Schema.String, |
| | 31828 | memoryCitation: Schema.optionalKey( |
| | 31829 | Schema.Union([V2ThreadUnarchiveResponse__MemoryCitation, Schema.Null]), |
| | 31830 | ), |
| | 31831 | phase: Schema.optionalKey( |
| | 31832 | Schema.Union([V2ThreadUnarchiveResponse__MessagePhase, Schema.Null]), |
| | 31833 | ), |
| | 31834 | text: Schema.String, |
| | 31835 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), |
| | 31836 | questions: Schema.optionalKey( |
| | 31837 | Schema.Union([ |
| | 31838 | Schema.Array( |
| | 31839 | Schema.Struct({ |
| | 31840 | title: Schema.String, |
| | 31841 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 31842 | }), |
| | 31843 | ), |
| | 31844 | Schema.Null, |
| | 31845 | ]), |
| | 31846 | ), |
| | 31847 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| | 31848 | }).annotate({ title: "AgentMessageThreadItem" }), |
| | 31849 | Schema.Struct({ |
| | 31850 | id: Schema.String, |
| | 31851 | text: Schema.String, |
| | 31852 | type: Schema.Literal("plan").annotate({ title: "PlanThreadItemType" }), |
| | 31853 | }).annotate({ |
| | 31854 | title: "PlanThreadItem", |
| | 31855 | description: |
| | 31856 | "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.", |
| 28593 | }), | 31857 | }), |
| 28594 | ), | 31858 | Schema.Struct({ |
| 28595 | id: Schema.String.annotate({ | 31859 | content: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| 28596 | description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.", | 31860 | id: Schema.String, |
| 28597 | }), | 31861 | summary: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| 28598 | items: Schema.Array(ServerNotification__ThreadItem).annotate({ | 31862 | type: Schema.Literal("reasoning").annotate({ title: "ReasoningThreadItemType" }), |
| 28599 | description: "Thread items currently included in this turn payload.", | 31863 | }).annotate({ title: "ReasoningThreadItem" }), |
| 28600 | }), | 31864 | Schema.Struct({ |
| 28601 | itemsView: Schema.optionalKey( | 31865 | aggregatedOutput: Schema.optionalKey( |
| 28602 | Schema.Literals(["notLoaded", "summary", "full"]).annotate({ | 31866 | Schema.Union([ |
| 28603 | description: "Describes how much of `items` has been loaded for this turn.", | 31867 | Schema.String.annotate({ |
| 28604 | default: "full", | 31868 | description: "The command's output, aggregated from stdout and stderr.", |
| | 31869 | }), |
| | 31870 | Schema.Null, |
| | 31871 | ]), |
| | 31872 | ), |
| | 31873 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| | 31874 | commandActions: Schema.Array(V2ThreadUnarchiveResponse__CommandAction).annotate({ |
| | 31875 | description: |
| | 31876 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| | 31877 | }), |
| | 31878 | cwd: Schema.suspend( |
| | 31879 | (): Schema.Codec<V2ThreadUnarchiveResponse__LegacyAppPathString> => |
| | 31880 | V2ThreadUnarchiveResponse__LegacyAppPathString, |
| | 31881 | ).annotate({ description: "The command's working directory." }), |
| | 31882 | durationMs: Schema.optionalKey( |
| | 31883 | Schema.Union([ |
| | 31884 | Schema.Number.annotate({ |
| | 31885 | description: "The duration of the command execution in milliseconds.", |
| | 31886 | format: "int64", |
| | 31887 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 31888 | Schema.Null, |
| | 31889 | ]), |
| | 31890 | ), |
| | 31891 | exitCode: Schema.optionalKey( |
| | 31892 | Schema.Union([ |
| | 31893 | Schema.Number.annotate({ |
| | 31894 | description: "The command's exit code.", |
| | 31895 | format: "int32", |
| | 31896 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 31897 | Schema.Null, |
| | 31898 | ]), |
| | 31899 | ), |
| | 31900 | id: Schema.String, |
| | 31901 | processId: Schema.optionalKey( |
| | 31902 | Schema.Union([ |
| | 31903 | Schema.String.annotate({ |
| | 31904 | description: "Identifier for the underlying PTY process (when available).", |
| | 31905 | }), |
| | 31906 | Schema.Null, |
| | 31907 | ]), |
| | 31908 | ), |
| | 31909 | source: Schema.optionalKey( |
| | 31910 | Schema.suspend( |
| | 31911 | (): Schema.Codec<V2ThreadUnarchiveResponse__CommandExecutionSource> => |
| | 31912 | V2ThreadUnarchiveResponse__CommandExecutionSource, |
| | 31913 | ).annotate({ default: "agent" }), |
| | 31914 | ), |
| | 31915 | status: V2ThreadUnarchiveResponse__CommandExecutionStatus, |
| | 31916 | type: Schema.Literal("commandExecution").annotate({ |
| | 31917 | title: "CommandExecutionThreadItemType", |
| | 31918 | }), |
| | 31919 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| | 31920 | Schema.Struct({ |
| | 31921 | changes: Schema.Array(V2ThreadUnarchiveResponse__FileUpdateChange), |
| | 31922 | id: Schema.String, |
| | 31923 | status: V2ThreadUnarchiveResponse__PatchApplyStatus, |
| | 31924 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| | 31925 | }).annotate({ title: "FileChangeThreadItem" }), |
| | 31926 | Schema.Struct({ |
| | 31927 | appContext: Schema.optionalKey( |
| | 31928 | Schema.Union([V2ThreadUnarchiveResponse__McpToolCallAppContext, Schema.Null]), |
| | 31929 | ), |
| | 31930 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| | 31931 | durationMs: Schema.optionalKey( |
| | 31932 | Schema.Union([ |
| | 31933 | Schema.Number.annotate({ |
| | 31934 | description: "The duration of the MCP tool call in milliseconds.", |
| | 31935 | format: "int64", |
| | 31936 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 31937 | Schema.Null, |
| | 31938 | ]), |
| | 31939 | ), |
| | 31940 | error: Schema.optionalKey( |
| | 31941 | Schema.Union([V2ThreadUnarchiveResponse__McpToolCallError, Schema.Null]), |
| | 31942 | ), |
| | 31943 | id: Schema.String, |
| | 31944 | mcpAppResourceUri: Schema.optionalKey( |
| | 31945 | Schema.Union([ |
| | 31946 | Schema.String.annotate({ |
| | 31947 | description: "Deprecated: use `appContext.resourceUri` instead.", |
| | 31948 | }), |
| | 31949 | Schema.Null, |
| | 31950 | ]), |
| | 31951 | ), |
| | 31952 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 31953 | result: Schema.optionalKey( |
| | 31954 | Schema.Union([V2ThreadUnarchiveResponse__McpToolCallResult, Schema.Null]), |
| | 31955 | ), |
| | 31956 | server: Schema.String, |
| | 31957 | status: V2ThreadUnarchiveResponse__McpToolCallStatus, |
| | 31958 | tool: Schema.String, |
| | 31959 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| | 31960 | }).annotate({ title: "McpToolCallThreadItem" }), |
| | 31961 | Schema.Struct({ |
| | 31962 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| | 31963 | contentItems: Schema.optionalKey( |
| | 31964 | Schema.Union([ |
| | 31965 | Schema.Array(V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem), |
| | 31966 | Schema.Null, |
| | 31967 | ]), |
| | 31968 | ), |
| | 31969 | durationMs: Schema.optionalKey( |
| | 31970 | Schema.Union([ |
| | 31971 | Schema.Number.annotate({ |
| | 31972 | description: "The duration of the dynamic tool call in milliseconds.", |
| | 31973 | format: "int64", |
| | 31974 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 31975 | Schema.Null, |
| | 31976 | ]), |
| | 31977 | ), |
| | 31978 | id: Schema.String, |
| | 31979 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 31980 | status: V2ThreadUnarchiveResponse__DynamicToolCallStatus, |
| | 31981 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 31982 | tool: Schema.String, |
| | 31983 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| | 31984 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| | 31985 | Schema.Struct({ |
| | 31986 | agentsStates: Schema.Record( |
| | 31987 | Schema.String, |
| | 31988 | V2ThreadUnarchiveResponse__CollabAgentState, |
| | 31989 | ).annotate({ description: "Last known status of the target agents, when available." }), |
| | 31990 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| | 31991 | model: Schema.optionalKey( |
| | 31992 | Schema.Union([ |
| | 31993 | Schema.String.annotate({ |
| | 31994 | description: "Model requested for the spawned agent, when applicable.", |
| | 31995 | }), |
| | 31996 | Schema.Null, |
| | 31997 | ]), |
| | 31998 | ), |
| | 31999 | prompt: Schema.optionalKey( |
| | 32000 | Schema.Union([ |
| | 32001 | Schema.String.annotate({ |
| | 32002 | description: "Prompt text sent as part of the collab tool call, when available.", |
| | 32003 | }), |
| | 32004 | Schema.Null, |
| | 32005 | ]), |
| | 32006 | ), |
| | 32007 | reasoningEffort: Schema.optionalKey( |
| | 32008 | Schema.Union([V2ThreadUnarchiveResponse__ReasoningEffort, Schema.Null]).annotate({ |
| | 32009 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| | 32010 | }), |
| | 32011 | ), |
| | 32012 | receiverThreadIds: Schema.Array(Schema.String).annotate({ |
| | 32013 | description: |
| | 32014 | "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.", |
| | 32015 | }), |
| | 32016 | senderThreadId: Schema.String.annotate({ |
| | 32017 | description: "Thread ID of the agent issuing the collab request.", |
| | 32018 | }), |
| | 32019 | status: Schema.suspend( |
| | 32020 | (): Schema.Codec<V2ThreadUnarchiveResponse__CollabAgentToolCallStatus> => |
| | 32021 | V2ThreadUnarchiveResponse__CollabAgentToolCallStatus, |
| | 32022 | ).annotate({ description: "Current status of the collab tool call." }), |
| | 32023 | tool: Schema.suspend( |
| | 32024 | (): Schema.Codec<V2ThreadUnarchiveResponse__CollabAgentTool> => |
| | 32025 | V2ThreadUnarchiveResponse__CollabAgentTool, |
| | 32026 | ).annotate({ description: "Name of the collab tool that was invoked." }), |
| | 32027 | type: Schema.Literal("collabAgentToolCall").annotate({ |
| | 32028 | title: "CollabAgentToolCallThreadItemType", |
| | 32029 | }), |
| | 32030 | }).annotate({ title: "CollabAgentToolCallThreadItem" }), |
| | 32031 | Schema.Struct({ |
| | 32032 | agentPath: Schema.String, |
| | 32033 | agentThreadId: Schema.String, |
| | 32034 | id: Schema.String, |
| | 32035 | kind: V2ThreadUnarchiveResponse__SubAgentActivityKind, |
| | 32036 | type: Schema.Literal("subAgentActivity").annotate({ |
| | 32037 | title: "SubAgentActivityThreadItemType", |
| | 32038 | }), |
| | 32039 | }).annotate({ title: "SubAgentActivityThreadItem" }), |
| | 32040 | Schema.Struct({ |
| | 32041 | action: Schema.optionalKey( |
| | 32042 | Schema.Union([V2ThreadUnarchiveResponse__WebSearchAction, Schema.Null]), |
| | 32043 | ), |
| | 32044 | id: Schema.String, |
| | 32045 | query: Schema.String, |
| | 32046 | results: Schema.optionalKey( |
| | 32047 | Schema.Union([ |
| | 32048 | Schema.Array(Schema.Json.annotate({ expected: "JSON value" })).annotate({ |
| | 32049 | description: |
| | 32050 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", |
| | 32051 | }), |
| | 32052 | Schema.Null, |
| | 32053 | ]), |
| | 32054 | ), |
| | 32055 | type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }), |
| | 32056 | }).annotate({ title: "WebSearchThreadItem" }), |
| | 32057 | Schema.Struct({ |
| | 32058 | id: Schema.String, |
| | 32059 | path: V2ThreadUnarchiveResponse__LegacyAppPathString, |
| | 32060 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| | 32061 | }).annotate({ title: "ImageViewThreadItem" }), |
| | 32062 | Schema.Struct({ |
| | 32063 | durationMs: Schema.Number.annotate({ format: "uint64" }) |
| | 32064 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 32065 | .check( |
| | 32066 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 32067 | expected: "a value greater than or equal to 0", |
| | 32068 | }), |
| | 32069 | ), |
| | 32070 | id: Schema.String, |
| | 32071 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), |
| | 32072 | }).annotate({ |
| | 32073 | title: "SleepThreadItem", |
| | 32074 | description: "Display item emitted by the interruptible `clock.sleep` tool.", |
| 28605 | }), | 32075 | }), |
| 28606 | ), | 32076 | Schema.Struct({ |
| 28607 | startedAt: Schema.optionalKey( | 32077 | id: Schema.String, |
| 28608 | Schema.Union([ | 32078 | result: Schema.String, |
| 28609 | Schema.Number.annotate({ | 32079 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 28610 | description: "Unix timestamp (in seconds) when the turn started.", | 32080 | savedPath: Schema.optionalKey( |
| 28611 | format: "int64", | 32081 | Schema.Union([V2ThreadUnarchiveResponse__AbsolutePathBuf, Schema.Null]), |
| 28612 | }).check(Schema.isInt()), | 32082 | ), |
| 28613 | Schema.Null, | 32083 | status: Schema.String, |
| 28614 | ]), | 32084 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 28615 | ), | 32085 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| 28616 | status: ServerNotification__TurnStatus, | 32086 | Schema.Struct({ |
| 28617 | }); | 32087 | id: Schema.String, |
| 28618 | | 32088 | review: Schema.String, |
| 28619 | export type ServerRequest__FileSystemSandboxEntry = { | 32089 | type: Schema.Literal("enteredReviewMode").annotate({ |
| 28620 | readonly access: ServerRequest__FileSystemAccessMode; | 32090 | title: "EnteredReviewModeThreadItemType", |
| 28621 | readonly path: ServerRequest__FileSystemPath; | 32091 | }), |
| 28622 | }; | 32092 | }).annotate({ title: "EnteredReviewModeThreadItem" }), |
| 28623 | export const ServerRequest__FileSystemSandboxEntry = Schema.Struct({ | 32093 | Schema.Struct({ |
| 28624 | access: ServerRequest__FileSystemAccessMode, | 32094 | id: Schema.String, |
| 28625 | path: ServerRequest__FileSystemPath, | 32095 | review: Schema.String, |
| 28626 | }); | 32096 | type: Schema.Literal("exitedReviewMode").annotate({ |
| 28627 | | 32097 | title: "ExitedReviewModeThreadItemType", |
| 28628 | export type ServerRequest__McpElicitationMultiSelectEnumSchema = | 32098 | }), |
| 28629 | | ServerRequest__McpElicitationUntitledMultiSelectEnumSchema | 32099 | }).annotate({ title: "ExitedReviewModeThreadItem" }), |
| 28630 | | ServerRequest__McpElicitationTitledMultiSelectEnumSchema; | 32100 | Schema.Struct({ |
| 28631 | export const ServerRequest__McpElicitationMultiSelectEnumSchema = Schema.Union([ | 32101 | id: Schema.String, |
| 28632 | ServerRequest__McpElicitationUntitledMultiSelectEnumSchema, | 32102 | type: Schema.Literal("contextCompaction").annotate({ |
| 28633 | ServerRequest__McpElicitationTitledMultiSelectEnumSchema, | 32103 | title: "ContextCompactionThreadItemType", |
| 28634 | ]); | 32104 | }), |
| | 32105 | }).annotate({ title: "ContextCompactionThreadItem" }), |
| | 32106 | ], |
| | 32107 | { mode: "oneOf" }, |
| | 32108 | ).annotate({ identifier: "V2ThreadUnarchiveResponse__ThreadItem" }); |
| 28635 | | 32109 | |
| 28636 | export type V2ConfigReadResponse__Config = { | 32110 | export type V2TurnCompletedNotification__ThreadItem = |
| 28637 | readonly analytics?: V2ConfigReadResponse__AnalyticsConfig | null; | 32111 | | { |
| 28638 | readonly approval_policy?: V2ConfigReadResponse__AskForApproval | null; | 32112 | readonly clientId?: string | null; |
| 28639 | readonly approvals_reviewer?: V2ConfigReadResponse__ApprovalsReviewer | null; | 32113 | readonly content: ReadonlyArray<V2TurnCompletedNotification__UserInput>; |
| 28640 | readonly compact_prompt?: string | null; | 32114 | readonly id: string; |
| 28641 | readonly desktop?: { readonly [x: string]: unknown } | null; | 32115 | readonly type: "userMessage"; |
| 28642 | readonly developer_instructions?: string | null; | 32116 | } |
| 28643 | readonly forced_chatgpt_workspace_id?: V2ConfigReadResponse__ForcedChatgptWorkspaceIds | null; | 32117 | | { |
| 28644 | readonly forced_login_method?: V2ConfigReadResponse__ForcedLoginMethod | null; | 32118 | readonly fragments: ReadonlyArray<V2TurnCompletedNotification__HookPromptFragment>; |
| 28645 | readonly instructions?: string | null; | 32119 | readonly id: string; |
| 28646 | readonly model?: string | null; | 32120 | readonly type: "hookPrompt"; |
| 28647 | readonly model_auto_compact_token_limit?: number | null; | 32121 | } |
| 28648 | readonly model_auto_compact_token_limit_scope?: V2ConfigReadResponse__AutoCompactTokenLimitScope | null; | 32122 | | { |
| 28649 | readonly model_context_window?: number | null; | 32123 | readonly id: string; |
| 28650 | readonly model_provider?: string | null; | 32124 | readonly memoryCitation?: V2TurnCompletedNotification__MemoryCitation | null; |
| 28651 | readonly model_reasoning_effort?: V2ConfigReadResponse__ReasoningEffort | null; | 32125 | readonly phase?: V2TurnCompletedNotification__MessagePhase | null; |
| 28652 | readonly model_reasoning_summary?: V2ConfigReadResponse__ReasoningSummary | null; | 32126 | readonly text: string; |
| 28653 | readonly model_verbosity?: V2ConfigReadResponse__Verbosity | null; | 32127 | readonly delivery?: "async" | null; |
| 28654 | readonly review_model?: string | null; | 32128 | readonly questions?: ReadonlyArray<{ |
| 28655 | readonly sandbox_mode?: V2ConfigReadResponse__SandboxMode | null; | 32129 | readonly title: string; |
| 28656 | readonly sandbox_workspace_write?: V2ConfigReadResponse__SandboxWorkspaceWrite | null; | 32130 | readonly options?: ReadonlyArray<string> | null; |
| 28657 | readonly service_tier?: string | null; | 32131 | }> | null; |
| 28658 | readonly tools?: V2ConfigReadResponse__ToolsV2 | null; | 32132 | readonly type: "agentMessage"; |
| 28659 | readonly web_search?: V2ConfigReadResponse__WebSearchMode | null; | 32133 | } |
| 28660 | readonly [x: string]: unknown; | 32134 | | { readonly id: string; readonly text: string; readonly type: "plan" } |
| 28661 | }; | 32135 | | { |
| 28662 | export const V2ConfigReadResponse__Config = Schema.StructWithRest( | 32136 | readonly content?: ReadonlyArray<string>; |
| 28663 | Schema.Struct({ | 32137 | readonly id: string; |
| 28664 | analytics: Schema.optionalKey( | 32138 | readonly summary?: ReadonlyArray<string>; |
| 28665 | Schema.Union([V2ConfigReadResponse__AnalyticsConfig, Schema.Null]), | 32139 | readonly type: "reasoning"; |
| 28666 | ), | 32140 | } |
| 28667 | approval_policy: Schema.optionalKey( | 32141 | | { |
| 28668 | Schema.Union([V2ConfigReadResponse__AskForApproval, Schema.Null]), | 32142 | readonly aggregatedOutput?: string | null; |
| 28669 | ), | 32143 | readonly command: string; |
| 28670 | approvals_reviewer: Schema.optionalKey( | 32144 | readonly commandActions: ReadonlyArray<V2TurnCompletedNotification__CommandAction>; |
| 28671 | Schema.Union([V2ConfigReadResponse__ApprovalsReviewer, Schema.Null]).annotate({ | 32145 | readonly cwd: V2TurnCompletedNotification__LegacyAppPathString; |
| | 32146 | readonly durationMs?: number | null; |
| | 32147 | readonly exitCode?: number | null; |
| | 32148 | readonly id: string; |
| | 32149 | readonly processId?: string | null; |
| | 32150 | readonly source?: V2TurnCompletedNotification__CommandExecutionSource; |
| | 32151 | readonly status: V2TurnCompletedNotification__CommandExecutionStatus; |
| | 32152 | readonly type: "commandExecution"; |
| | 32153 | } |
| | 32154 | | { |
| | 32155 | readonly changes: ReadonlyArray<V2TurnCompletedNotification__FileUpdateChange>; |
| | 32156 | readonly id: string; |
| | 32157 | readonly status: V2TurnCompletedNotification__PatchApplyStatus; |
| | 32158 | readonly type: "fileChange"; |
| | 32159 | } |
| | 32160 | | { |
| | 32161 | readonly appContext?: V2TurnCompletedNotification__McpToolCallAppContext | null; |
| | 32162 | readonly arguments: Schema.Json; |
| | 32163 | readonly durationMs?: number | null; |
| | 32164 | readonly error?: V2TurnCompletedNotification__McpToolCallError | null; |
| | 32165 | readonly id: string; |
| | 32166 | readonly mcpAppResourceUri?: string | null; |
| | 32167 | readonly pluginId?: string | null; |
| | 32168 | readonly result?: V2TurnCompletedNotification__McpToolCallResult | null; |
| | 32169 | readonly server: string; |
| | 32170 | readonly status: V2TurnCompletedNotification__McpToolCallStatus; |
| | 32171 | readonly tool: string; |
| | 32172 | readonly type: "mcpToolCall"; |
| | 32173 | } |
| | 32174 | | { |
| | 32175 | readonly arguments: Schema.Json; |
| | 32176 | readonly contentItems?: ReadonlyArray<V2TurnCompletedNotification__DynamicToolCallOutputContentItem> | null; |
| | 32177 | readonly durationMs?: number | null; |
| | 32178 | readonly id: string; |
| | 32179 | readonly namespace?: string | null; |
| | 32180 | readonly status: V2TurnCompletedNotification__DynamicToolCallStatus; |
| | 32181 | readonly success?: boolean | null; |
| | 32182 | readonly tool: string; |
| | 32183 | readonly type: "dynamicToolCall"; |
| | 32184 | } |
| | 32185 | | { |
| | 32186 | readonly agentsStates: { |
| | 32187 | readonly [x: string]: V2TurnCompletedNotification__CollabAgentState; |
| | 32188 | }; |
| | 32189 | readonly id: string; |
| | 32190 | readonly model?: string | null; |
| | 32191 | readonly prompt?: string | null; |
| | 32192 | readonly reasoningEffort?: V2TurnCompletedNotification__ReasoningEffort | null; |
| | 32193 | readonly receiverThreadIds: ReadonlyArray<string>; |
| | 32194 | readonly senderThreadId: string; |
| | 32195 | readonly status: V2TurnCompletedNotification__CollabAgentToolCallStatus; |
| | 32196 | readonly tool: V2TurnCompletedNotification__CollabAgentTool; |
| | 32197 | readonly type: "collabAgentToolCall"; |
| | 32198 | } |
| | 32199 | | { |
| | 32200 | readonly agentPath: string; |
| | 32201 | readonly agentThreadId: string; |
| | 32202 | readonly id: string; |
| | 32203 | readonly kind: V2TurnCompletedNotification__SubAgentActivityKind; |
| | 32204 | readonly type: "subAgentActivity"; |
| | 32205 | } |
| | 32206 | | { |
| | 32207 | readonly action?: V2TurnCompletedNotification__WebSearchAction | null; |
| | 32208 | readonly id: string; |
| | 32209 | readonly query: string; |
| | 32210 | readonly results?: ReadonlyArray<Schema.Json> | null; |
| | 32211 | readonly type: "webSearch"; |
| | 32212 | } |
| | 32213 | | { |
| | 32214 | readonly id: string; |
| | 32215 | readonly path: V2TurnCompletedNotification__LegacyAppPathString; |
| | 32216 | readonly type: "imageView"; |
| | 32217 | } |
| | 32218 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| | 32219 | | { |
| | 32220 | readonly id: string; |
| | 32221 | readonly result: string; |
| | 32222 | readonly revisedPrompt?: string | null; |
| | 32223 | readonly savedPath?: V2TurnCompletedNotification__AbsolutePathBuf | null; |
| | 32224 | readonly status: string; |
| | 32225 | readonly type: "imageGeneration"; |
| | 32226 | } |
| | 32227 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| | 32228 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| | 32229 | | { readonly id: string; readonly type: "contextCompaction" }; |
| | 32230 | export const V2TurnCompletedNotification__ThreadItem = Schema.Union( |
| | 32231 | [ |
| | 32232 | Schema.Struct({ |
| | 32233 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 32234 | content: Schema.Array(V2TurnCompletedNotification__UserInput), |
| | 32235 | id: Schema.String, |
| | 32236 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| | 32237 | }).annotate({ title: "UserMessageThreadItem" }), |
| | 32238 | Schema.Struct({ |
| | 32239 | fragments: Schema.Array(V2TurnCompletedNotification__HookPromptFragment), |
| | 32240 | id: Schema.String, |
| | 32241 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| | 32242 | }).annotate({ title: "HookPromptThreadItem" }), |
| | 32243 | Schema.Struct({ |
| | 32244 | id: Schema.String, |
| | 32245 | memoryCitation: Schema.optionalKey( |
| | 32246 | Schema.Union([V2TurnCompletedNotification__MemoryCitation, Schema.Null]), |
| | 32247 | ), |
| | 32248 | phase: Schema.optionalKey( |
| | 32249 | Schema.Union([V2TurnCompletedNotification__MessagePhase, Schema.Null]), |
| | 32250 | ), |
| | 32251 | text: Schema.String, |
| | 32252 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), |
| | 32253 | questions: Schema.optionalKey( |
| | 32254 | Schema.Union([ |
| | 32255 | Schema.Array( |
| | 32256 | Schema.Struct({ |
| | 32257 | title: Schema.String, |
| | 32258 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 32259 | }), |
| | 32260 | ), |
| | 32261 | Schema.Null, |
| | 32262 | ]), |
| | 32263 | ), |
| | 32264 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| | 32265 | }).annotate({ title: "AgentMessageThreadItem" }), |
| | 32266 | Schema.Struct({ |
| | 32267 | id: Schema.String, |
| | 32268 | text: Schema.String, |
| | 32269 | type: Schema.Literal("plan").annotate({ title: "PlanThreadItemType" }), |
| | 32270 | }).annotate({ |
| | 32271 | title: "PlanThreadItem", |
| | 32272 | description: |
| | 32273 | "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.", |
| | 32274 | }), |
| | 32275 | Schema.Struct({ |
| | 32276 | content: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| | 32277 | id: Schema.String, |
| | 32278 | summary: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| | 32279 | type: Schema.Literal("reasoning").annotate({ title: "ReasoningThreadItemType" }), |
| | 32280 | }).annotate({ title: "ReasoningThreadItem" }), |
| | 32281 | Schema.Struct({ |
| | 32282 | aggregatedOutput: Schema.optionalKey( |
| | 32283 | Schema.Union([ |
| | 32284 | Schema.String.annotate({ |
| | 32285 | description: "The command's output, aggregated from stdout and stderr.", |
| | 32286 | }), |
| | 32287 | Schema.Null, |
| | 32288 | ]), |
| | 32289 | ), |
| | 32290 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| | 32291 | commandActions: Schema.Array(V2TurnCompletedNotification__CommandAction).annotate({ |
| | 32292 | description: |
| | 32293 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| | 32294 | }), |
| | 32295 | cwd: Schema.suspend( |
| | 32296 | (): Schema.Codec<V2TurnCompletedNotification__LegacyAppPathString> => |
| | 32297 | V2TurnCompletedNotification__LegacyAppPathString, |
| | 32298 | ).annotate({ description: "The command's working directory." }), |
| | 32299 | durationMs: Schema.optionalKey( |
| | 32300 | Schema.Union([ |
| | 32301 | Schema.Number.annotate({ |
| | 32302 | description: "The duration of the command execution in milliseconds.", |
| | 32303 | format: "int64", |
| | 32304 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 32305 | Schema.Null, |
| | 32306 | ]), |
| | 32307 | ), |
| | 32308 | exitCode: Schema.optionalKey( |
| | 32309 | Schema.Union([ |
| | 32310 | Schema.Number.annotate({ |
| | 32311 | description: "The command's exit code.", |
| | 32312 | format: "int32", |
| | 32313 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 32314 | Schema.Null, |
| | 32315 | ]), |
| | 32316 | ), |
| | 32317 | id: Schema.String, |
| | 32318 | processId: Schema.optionalKey( |
| | 32319 | Schema.Union([ |
| | 32320 | Schema.String.annotate({ |
| | 32321 | description: "Identifier for the underlying PTY process (when available).", |
| | 32322 | }), |
| | 32323 | Schema.Null, |
| | 32324 | ]), |
| | 32325 | ), |
| | 32326 | source: Schema.optionalKey( |
| | 32327 | Schema.suspend( |
| | 32328 | (): Schema.Codec<V2TurnCompletedNotification__CommandExecutionSource> => |
| | 32329 | V2TurnCompletedNotification__CommandExecutionSource, |
| | 32330 | ).annotate({ default: "agent" }), |
| | 32331 | ), |
| | 32332 | status: V2TurnCompletedNotification__CommandExecutionStatus, |
| | 32333 | type: Schema.Literal("commandExecution").annotate({ |
| | 32334 | title: "CommandExecutionThreadItemType", |
| | 32335 | }), |
| | 32336 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| | 32337 | Schema.Struct({ |
| | 32338 | changes: Schema.Array(V2TurnCompletedNotification__FileUpdateChange), |
| | 32339 | id: Schema.String, |
| | 32340 | status: V2TurnCompletedNotification__PatchApplyStatus, |
| | 32341 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| | 32342 | }).annotate({ title: "FileChangeThreadItem" }), |
| | 32343 | Schema.Struct({ |
| | 32344 | appContext: Schema.optionalKey( |
| | 32345 | Schema.Union([V2TurnCompletedNotification__McpToolCallAppContext, Schema.Null]), |
| | 32346 | ), |
| | 32347 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| | 32348 | durationMs: Schema.optionalKey( |
| | 32349 | Schema.Union([ |
| | 32350 | Schema.Number.annotate({ |
| | 32351 | description: "The duration of the MCP tool call in milliseconds.", |
| | 32352 | format: "int64", |
| | 32353 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 32354 | Schema.Null, |
| | 32355 | ]), |
| | 32356 | ), |
| | 32357 | error: Schema.optionalKey( |
| | 32358 | Schema.Union([V2TurnCompletedNotification__McpToolCallError, Schema.Null]), |
| | 32359 | ), |
| | 32360 | id: Schema.String, |
| | 32361 | mcpAppResourceUri: Schema.optionalKey( |
| | 32362 | Schema.Union([ |
| | 32363 | Schema.String.annotate({ |
| | 32364 | description: "Deprecated: use `appContext.resourceUri` instead.", |
| | 32365 | }), |
| | 32366 | Schema.Null, |
| | 32367 | ]), |
| | 32368 | ), |
| | 32369 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 32370 | result: Schema.optionalKey( |
| | 32371 | Schema.Union([V2TurnCompletedNotification__McpToolCallResult, Schema.Null]), |
| | 32372 | ), |
| | 32373 | server: Schema.String, |
| | 32374 | status: V2TurnCompletedNotification__McpToolCallStatus, |
| | 32375 | tool: Schema.String, |
| | 32376 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| | 32377 | }).annotate({ title: "McpToolCallThreadItem" }), |
| | 32378 | Schema.Struct({ |
| | 32379 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| | 32380 | contentItems: Schema.optionalKey( |
| | 32381 | Schema.Union([ |
| | 32382 | Schema.Array(V2TurnCompletedNotification__DynamicToolCallOutputContentItem), |
| | 32383 | Schema.Null, |
| | 32384 | ]), |
| | 32385 | ), |
| | 32386 | durationMs: Schema.optionalKey( |
| | 32387 | Schema.Union([ |
| | 32388 | Schema.Number.annotate({ |
| | 32389 | description: "The duration of the dynamic tool call in milliseconds.", |
| | 32390 | format: "int64", |
| | 32391 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 32392 | Schema.Null, |
| | 32393 | ]), |
| | 32394 | ), |
| | 32395 | id: Schema.String, |
| | 32396 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 32397 | status: V2TurnCompletedNotification__DynamicToolCallStatus, |
| | 32398 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 32399 | tool: Schema.String, |
| | 32400 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| | 32401 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| | 32402 | Schema.Struct({ |
| | 32403 | agentsStates: Schema.Record( |
| | 32404 | Schema.String, |
| | 32405 | V2TurnCompletedNotification__CollabAgentState, |
| | 32406 | ).annotate({ description: "Last known status of the target agents, when available." }), |
| | 32407 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| | 32408 | model: Schema.optionalKey( |
| | 32409 | Schema.Union([ |
| | 32410 | Schema.String.annotate({ |
| | 32411 | description: "Model requested for the spawned agent, when applicable.", |
| | 32412 | }), |
| | 32413 | Schema.Null, |
| | 32414 | ]), |
| | 32415 | ), |
| | 32416 | prompt: Schema.optionalKey( |
| | 32417 | Schema.Union([ |
| | 32418 | Schema.String.annotate({ |
| | 32419 | description: "Prompt text sent as part of the collab tool call, when available.", |
| | 32420 | }), |
| | 32421 | Schema.Null, |
| | 32422 | ]), |
| | 32423 | ), |
| | 32424 | reasoningEffort: Schema.optionalKey( |
| | 32425 | Schema.Union([V2TurnCompletedNotification__ReasoningEffort, Schema.Null]).annotate({ |
| | 32426 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| | 32427 | }), |
| | 32428 | ), |
| | 32429 | receiverThreadIds: Schema.Array(Schema.String).annotate({ |
| 28672 | description: | 32430 | description: |
| 28673 | "[UNSTABLE] Optional default for where approval requests are routed for review.", | 32431 | "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.", |
| 28674 | }), | 32432 | }), |
| 28675 | ), | 32433 | senderThreadId: Schema.String.annotate({ |
| 28676 | compact_prompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 32434 | description: "Thread ID of the agent issuing the collab request.", |
| 28677 | desktop: Schema.optionalKey( | 32435 | }), |
| 28678 | Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]), | 32436 | status: Schema.suspend( |
| 28679 | ), | 32437 | (): Schema.Codec<V2TurnCompletedNotification__CollabAgentToolCallStatus> => |
| 28680 | developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 32438 | V2TurnCompletedNotification__CollabAgentToolCallStatus, |
| 28681 | forced_chatgpt_workspace_id: Schema.optionalKey( | 32439 | ).annotate({ description: "Current status of the collab tool call." }), |
| 28682 | Schema.Union([V2ConfigReadResponse__ForcedChatgptWorkspaceIds, Schema.Null]), | 32440 | tool: Schema.suspend( |
| 28683 | ), | 32441 | (): Schema.Codec<V2TurnCompletedNotification__CollabAgentTool> => |
| 28684 | forced_login_method: Schema.optionalKey( | 32442 | V2TurnCompletedNotification__CollabAgentTool, |
| 28685 | Schema.Union([V2ConfigReadResponse__ForcedLoginMethod, Schema.Null]), | 32443 | ).annotate({ description: "Name of the collab tool that was invoked." }), |
| 28686 | ), | 32444 | type: Schema.Literal("collabAgentToolCall").annotate({ |
| 28687 | instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 32445 | title: "CollabAgentToolCallThreadItemType", |
| 28688 | model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 32446 | }), |
| 28689 | model_auto_compact_token_limit: Schema.optionalKey( | 32447 | }).annotate({ title: "CollabAgentToolCallThreadItem" }), |
| 28690 | Schema.Union([ | 32448 | Schema.Struct({ |
| 28691 | Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 32449 | agentPath: Schema.String, |
| 28692 | Schema.Null, | 32450 | agentThreadId: Schema.String, |
| 28693 | ]), | 32451 | id: Schema.String, |
| 28694 | ), | 32452 | kind: V2TurnCompletedNotification__SubAgentActivityKind, |
| 28695 | model_auto_compact_token_limit_scope: Schema.optionalKey( | 32453 | type: Schema.Literal("subAgentActivity").annotate({ |
| 28696 | Schema.Union([V2ConfigReadResponse__AutoCompactTokenLimitScope, Schema.Null]), | 32454 | title: "SubAgentActivityThreadItemType", |
| 28697 | ), | 32455 | }), |
| 28698 | model_context_window: Schema.optionalKey( | 32456 | }).annotate({ title: "SubAgentActivityThreadItem" }), |
| 28699 | Schema.Union([ | 32457 | Schema.Struct({ |
| 28700 | Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 32458 | action: Schema.optionalKey( |
| 28701 | Schema.Null, | 32459 | Schema.Union([V2TurnCompletedNotification__WebSearchAction, Schema.Null]), |
| 28702 | ]), | 32460 | ), |
| 28703 | ), | 32461 | id: Schema.String, |
| 28704 | model_provider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 32462 | query: Schema.String, |
| 28705 | model_reasoning_effort: Schema.optionalKey( | 32463 | results: Schema.optionalKey( |
| 28706 | Schema.Union([V2ConfigReadResponse__ReasoningEffort, Schema.Null]), | 32464 | Schema.Union([ |
| 28707 | ), | 32465 | Schema.Array(Schema.Json.annotate({ expected: "JSON value" })).annotate({ |
| 28708 | model_reasoning_summary: Schema.optionalKey( | 32466 | description: |
| 28709 | Schema.Union([V2ConfigReadResponse__ReasoningSummary, Schema.Null]), | 32467 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", |
| 28710 | ), | 32468 | }), |
| 28711 | model_verbosity: Schema.optionalKey( | 32469 | Schema.Null, |
| 28712 | Schema.Union([V2ConfigReadResponse__Verbosity, Schema.Null]), | 32470 | ]), |
| 28713 | ), | 32471 | ), |
| 28714 | review_model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 32472 | type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }), |
| 28715 | sandbox_mode: Schema.optionalKey( | 32473 | }).annotate({ title: "WebSearchThreadItem" }), |
| 28716 | Schema.Union([V2ConfigReadResponse__SandboxMode, Schema.Null]), | 32474 | Schema.Struct({ |
| 28717 | ), | 32475 | id: Schema.String, |
| 28718 | sandbox_workspace_write: Schema.optionalKey( | 32476 | path: V2TurnCompletedNotification__LegacyAppPathString, |
| 28719 | Schema.Union([V2ConfigReadResponse__SandboxWorkspaceWrite, Schema.Null]), | 32477 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 28720 | ), | 32478 | }).annotate({ title: "ImageViewThreadItem" }), |
| 28721 | service_tier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 32479 | Schema.Struct({ |
| 28722 | tools: Schema.optionalKey(Schema.Union([V2ConfigReadResponse__ToolsV2, Schema.Null])), | 32480 | durationMs: Schema.Number.annotate({ format: "uint64" }) |
| 28723 | web_search: Schema.optionalKey( | 32481 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 28724 | Schema.Union([V2ConfigReadResponse__WebSearchMode, Schema.Null]), | 32482 | .check( |
| 28725 | ), | 32483 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| 28726 | }), | 32484 | expected: "a value greater than or equal to 0", |
| 28727 | [Schema.Record(Schema.String, Schema.Unknown)], | 32485 | }), |
| 28728 | ); | 32486 | ), |
| 28729 | | 32487 | id: Schema.String, |
| 28730 | export type V2ConfigRequirementsReadResponse__ConfigRequirements = { | 32488 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), |
| 28731 | readonly allowAppshots?: boolean | null; | 32489 | }).annotate({ |
| 28732 | readonly allowManagedHooksOnly?: boolean | null; | 32490 | title: "SleepThreadItem", |
| 28733 | readonly allowRemoteControl?: boolean | null; | 32491 | description: "Display item emitted by the interruptible `clock.sleep` tool.", |
| 28734 | readonly allowedApprovalPolicies?: ReadonlyArray<V2ConfigRequirementsReadResponse__AskForApproval> | null; | | |
| 28735 | readonly allowedPermissionProfiles?: { readonly [x: string]: boolean } | null; | | |
| 28736 | readonly allowedSandboxModes?: ReadonlyArray<V2ConfigRequirementsReadResponse__SandboxMode> | null; | | |
| 28737 | readonly allowedWebSearchModes?: ReadonlyArray<V2ConfigRequirementsReadResponse__WebSearchMode> | null; | | |
| 28738 | readonly allowedWindowsSandboxImplementations?: ReadonlyArray<V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode> | null; | | |
| 28739 | readonly computerUse?: V2ConfigRequirementsReadResponse__ComputerUseRequirements | null; | | |
| 28740 | readonly defaultPermissions?: string | null; | | |
| 28741 | readonly enforceResidency?: V2ConfigRequirementsReadResponse__ResidencyRequirement | null; | | |
| 28742 | readonly featureRequirements?: { readonly [x: string]: boolean } | null; | | |
| 28743 | readonly models?: V2ConfigRequirementsReadResponse__ModelsRequirements | null; | | |
| 28744 | }; | | |
| 28745 | export const V2ConfigRequirementsReadResponse__ConfigRequirements = Schema.Struct({ | | |
| 28746 | allowAppshots: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | | |
| 28747 | allowManagedHooksOnly: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | | |
| 28748 | allowRemoteControl: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | | |
| 28749 | allowedApprovalPolicies: Schema.optionalKey( | | |
| 28750 | Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__AskForApproval), Schema.Null]), | | |
| 28751 | ), | | |
| 28752 | allowedPermissionProfiles: Schema.optionalKey( | | |
| 28753 | Schema.Union([Schema.Record(Schema.String, Schema.Boolean), Schema.Null]), | | |
| 28754 | ), | | |
| 28755 | allowedSandboxModes: Schema.optionalKey( | | |
| 28756 | Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__SandboxMode), Schema.Null]), | | |
| 28757 | ), | | |
| 28758 | allowedWebSearchModes: Schema.optionalKey( | | |
| 28759 | Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__WebSearchMode), Schema.Null]), | | |
| 28760 | ), | | |
| 28761 | allowedWindowsSandboxImplementations: Schema.optionalKey( | | |
| 28762 | Schema.Union([ | | |
| 28763 | Schema.Array(V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode), | | |
| 28764 | Schema.Null, | | |
| 28765 | ]), | | |
| 28766 | ), | | |
| 28767 | computerUse: Schema.optionalKey( | | |
| 28768 | Schema.Union([V2ConfigRequirementsReadResponse__ComputerUseRequirements, Schema.Null]), | | |
| 28769 | ), | | |
| 28770 | defaultPermissions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 28771 | enforceResidency: Schema.optionalKey( | | |
| 28772 | Schema.Union([V2ConfigRequirementsReadResponse__ResidencyRequirement, Schema.Null]), | | |
| 28773 | ), | | |
| 28774 | featureRequirements: Schema.optionalKey( | | |
| 28775 | Schema.Union([Schema.Record(Schema.String, Schema.Boolean), Schema.Null]), | | |
| 28776 | ), | | |
| 28777 | models: Schema.optionalKey( | | |
| 28778 | Schema.Union([V2ConfigRequirementsReadResponse__ModelsRequirements, Schema.Null]), | | |
| 28779 | ), | | |
| 28780 | }); | | |
| 28781 | | | |
| 28782 | export type V2ConfigWriteResponse__OverriddenMetadata = { | | |
| 28783 | readonly effectiveValue: unknown; | | |
| 28784 | readonly message: string; | | |
| 28785 | readonly overridingLayer: V2ConfigWriteResponse__ConfigLayerMetadata; | | |
| 28786 | }; | | |
| 28787 | export const V2ConfigWriteResponse__OverriddenMetadata = Schema.Struct({ | | |
| 28788 | effectiveValue: Schema.Unknown, | | |
| 28789 | message: Schema.String, | | |
| 28790 | overridingLayer: V2ConfigWriteResponse__ConfigLayerMetadata, | | |
| 28791 | }); | | |
| 28792 | | | |
| 28793 | export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry = { | | |
| 28794 | readonly access: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode; | | |
| 28795 | readonly path: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath; | | |
| 28796 | }; | | |
| 28797 | export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry = | | |
| 28798 | Schema.Struct({ | | |
| 28799 | access: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode, | | |
| 28800 | path: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath, | | |
| 28801 | }); | | |
| 28802 | | | |
| 28803 | export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry = { | | |
| 28804 | readonly access: V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode; | | |
| 28805 | readonly path: V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath; | | |
| 28806 | }; | | |
| 28807 | export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry = | | |
| 28808 | Schema.Struct({ | | |
| 28809 | access: V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode, | | |
| 28810 | path: V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath, | | |
| 28811 | }); | | |
| 28812 | | | |
| 28813 | export type V2PluginInstalledResponse__PluginSummary = { | | |
| 28814 | readonly authPolicy: V2PluginInstalledResponse__PluginAuthPolicy; | | |
| 28815 | readonly availability?: "DISABLED_BY_ADMIN" | "AVAILABLE"; | | |
| 28816 | readonly enabled: boolean; | | |
| 28817 | readonly id: string; | | |
| 28818 | readonly installPolicy: V2PluginInstalledResponse__PluginInstallPolicy; | | |
| 28819 | readonly installPolicySource?: V2PluginInstalledResponse__PluginInstallPolicySource | null; | | |
| 28820 | readonly installed: boolean; | | |
| 28821 | readonly interface?: V2PluginInstalledResponse__PluginInterface | null; | | |
| 28822 | readonly keywords?: ReadonlyArray<string>; | | |
| 28823 | readonly localVersion?: string | null; | | |
| 28824 | readonly mustShowInstallationInterstitial?: boolean | null; | | |
| 28825 | readonly name: string; | | |
| 28826 | readonly remotePluginId?: string | null; | | |
| 28827 | readonly shareContext?: V2PluginInstalledResponse__PluginShareContext | null; | | |
| 28828 | readonly source: V2PluginInstalledResponse__PluginSource; | | |
| 28829 | readonly version?: string | null; | | |
| 28830 | }; | | |
| 28831 | export const V2PluginInstalledResponse__PluginSummary = Schema.Struct({ | | |
| 28832 | authPolicy: V2PluginInstalledResponse__PluginAuthPolicy, | | |
| 28833 | availability: Schema.optionalKey( | | |
| 28834 | Schema.Literals(["DISABLED_BY_ADMIN", "AVAILABLE"]).annotate({ | | |
| 28835 | description: "Availability state for installing and using the plugin.", | | |
| 28836 | default: "AVAILABLE", | | |
| 28837 | }), | 32492 | }), |
| 28838 | ), | 32493 | Schema.Struct({ |
| 28839 | enabled: Schema.Boolean, | 32494 | id: Schema.String, |
| 28840 | id: Schema.String, | 32495 | result: Schema.String, |
| 28841 | installPolicy: V2PluginInstalledResponse__PluginInstallPolicy, | 32496 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 28842 | installPolicySource: Schema.optionalKey( | 32497 | savedPath: Schema.optionalKey( |
| 28843 | Schema.Union([V2PluginInstalledResponse__PluginInstallPolicySource, Schema.Null]), | 32498 | Schema.Union([V2TurnCompletedNotification__AbsolutePathBuf, Schema.Null]), |
| 28844 | ), | 32499 | ), |
| 28845 | installed: Schema.Boolean, | 32500 | status: Schema.String, |
| 28846 | interface: Schema.optionalKey( | 32501 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 28847 | Schema.Union([V2PluginInstalledResponse__PluginInterface, Schema.Null]), | 32502 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| 28848 | ), | 32503 | Schema.Struct({ |
| 28849 | keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), | 32504 | id: Schema.String, |
| 28850 | localVersion: Schema.optionalKey( | 32505 | review: Schema.String, |
| 28851 | Schema.Union([ | 32506 | type: Schema.Literal("enteredReviewMode").annotate({ |
| 28852 | Schema.String.annotate({ | 32507 | title: "EnteredReviewModeThreadItemType", |
| 28853 | description: "Version of the locally materialized plugin package when available.", | | |
| 28854 | }), | 32508 | }), |
| 28855 | Schema.Null, | 32509 | }).annotate({ title: "EnteredReviewModeThreadItem" }), |
| 28856 | ]), | 32510 | Schema.Struct({ |
| 28857 | ), | 32511 | id: Schema.String, |
| 28858 | mustShowInstallationInterstitial: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 32512 | review: Schema.String, |
| 28859 | name: Schema.String, | 32513 | type: Schema.Literal("exitedReviewMode").annotate({ |
| 28860 | remotePluginId: Schema.optionalKey( | 32514 | title: "ExitedReviewModeThreadItemType", |
| 28861 | Schema.Union([ | 32515 | }), |
| 28862 | Schema.String.annotate({ description: "Backend remote plugin identifier when available." }), | 32516 | }).annotate({ title: "ExitedReviewModeThreadItem" }), |
| 28863 | Schema.Null, | 32517 | Schema.Struct({ |
| 28864 | ]), | 32518 | id: Schema.String, |
| 28865 | ), | 32519 | type: Schema.Literal("contextCompaction").annotate({ |
| 28866 | shareContext: Schema.optionalKey( | 32520 | title: "ContextCompactionThreadItemType", |
| 28867 | Schema.Union([V2PluginInstalledResponse__PluginShareContext, Schema.Null]).annotate({ | 32521 | }), |
| 28868 | description: "Remote sharing context associated with this plugin when available.", | 32522 | }).annotate({ title: "ContextCompactionThreadItem" }), |
| | 32523 | ], |
| | 32524 | { mode: "oneOf" }, |
| | 32525 | ).annotate({ identifier: "V2TurnCompletedNotification__ThreadItem" }); |
| | 32526 | |
| | 32527 | export type V2TurnStartedNotification__ThreadItem = |
| | 32528 | | { |
| | 32529 | readonly clientId?: string | null; |
| | 32530 | readonly content: ReadonlyArray<V2TurnStartedNotification__UserInput>; |
| | 32531 | readonly id: string; |
| | 32532 | readonly type: "userMessage"; |
| | 32533 | } |
| | 32534 | | { |
| | 32535 | readonly fragments: ReadonlyArray<V2TurnStartedNotification__HookPromptFragment>; |
| | 32536 | readonly id: string; |
| | 32537 | readonly type: "hookPrompt"; |
| | 32538 | } |
| | 32539 | | { |
| | 32540 | readonly id: string; |
| | 32541 | readonly memoryCitation?: V2TurnStartedNotification__MemoryCitation | null; |
| | 32542 | readonly phase?: V2TurnStartedNotification__MessagePhase | null; |
| | 32543 | readonly text: string; |
| | 32544 | readonly delivery?: "async" | null; |
| | 32545 | readonly questions?: ReadonlyArray<{ |
| | 32546 | readonly title: string; |
| | 32547 | readonly options?: ReadonlyArray<string> | null; |
| | 32548 | }> | null; |
| | 32549 | readonly type: "agentMessage"; |
| | 32550 | } |
| | 32551 | | { readonly id: string; readonly text: string; readonly type: "plan" } |
| | 32552 | | { |
| | 32553 | readonly content?: ReadonlyArray<string>; |
| | 32554 | readonly id: string; |
| | 32555 | readonly summary?: ReadonlyArray<string>; |
| | 32556 | readonly type: "reasoning"; |
| | 32557 | } |
| | 32558 | | { |
| | 32559 | readonly aggregatedOutput?: string | null; |
| | 32560 | readonly command: string; |
| | 32561 | readonly commandActions: ReadonlyArray<V2TurnStartedNotification__CommandAction>; |
| | 32562 | readonly cwd: V2TurnStartedNotification__LegacyAppPathString; |
| | 32563 | readonly durationMs?: number | null; |
| | 32564 | readonly exitCode?: number | null; |
| | 32565 | readonly id: string; |
| | 32566 | readonly processId?: string | null; |
| | 32567 | readonly source?: V2TurnStartedNotification__CommandExecutionSource; |
| | 32568 | readonly status: V2TurnStartedNotification__CommandExecutionStatus; |
| | 32569 | readonly type: "commandExecution"; |
| | 32570 | } |
| | 32571 | | { |
| | 32572 | readonly changes: ReadonlyArray<V2TurnStartedNotification__FileUpdateChange>; |
| | 32573 | readonly id: string; |
| | 32574 | readonly status: V2TurnStartedNotification__PatchApplyStatus; |
| | 32575 | readonly type: "fileChange"; |
| | 32576 | } |
| | 32577 | | { |
| | 32578 | readonly appContext?: V2TurnStartedNotification__McpToolCallAppContext | null; |
| | 32579 | readonly arguments: Schema.Json; |
| | 32580 | readonly durationMs?: number | null; |
| | 32581 | readonly error?: V2TurnStartedNotification__McpToolCallError | null; |
| | 32582 | readonly id: string; |
| | 32583 | readonly mcpAppResourceUri?: string | null; |
| | 32584 | readonly pluginId?: string | null; |
| | 32585 | readonly result?: V2TurnStartedNotification__McpToolCallResult | null; |
| | 32586 | readonly server: string; |
| | 32587 | readonly status: V2TurnStartedNotification__McpToolCallStatus; |
| | 32588 | readonly tool: string; |
| | 32589 | readonly type: "mcpToolCall"; |
| | 32590 | } |
| | 32591 | | { |
| | 32592 | readonly arguments: Schema.Json; |
| | 32593 | readonly contentItems?: ReadonlyArray<V2TurnStartedNotification__DynamicToolCallOutputContentItem> | null; |
| | 32594 | readonly durationMs?: number | null; |
| | 32595 | readonly id: string; |
| | 32596 | readonly namespace?: string | null; |
| | 32597 | readonly status: V2TurnStartedNotification__DynamicToolCallStatus; |
| | 32598 | readonly success?: boolean | null; |
| | 32599 | readonly tool: string; |
| | 32600 | readonly type: "dynamicToolCall"; |
| | 32601 | } |
| | 32602 | | { |
| | 32603 | readonly agentsStates: { readonly [x: string]: V2TurnStartedNotification__CollabAgentState }; |
| | 32604 | readonly id: string; |
| | 32605 | readonly model?: string | null; |
| | 32606 | readonly prompt?: string | null; |
| | 32607 | readonly reasoningEffort?: V2TurnStartedNotification__ReasoningEffort | null; |
| | 32608 | readonly receiverThreadIds: ReadonlyArray<string>; |
| | 32609 | readonly senderThreadId: string; |
| | 32610 | readonly status: V2TurnStartedNotification__CollabAgentToolCallStatus; |
| | 32611 | readonly tool: V2TurnStartedNotification__CollabAgentTool; |
| | 32612 | readonly type: "collabAgentToolCall"; |
| | 32613 | } |
| | 32614 | | { |
| | 32615 | readonly agentPath: string; |
| | 32616 | readonly agentThreadId: string; |
| | 32617 | readonly id: string; |
| | 32618 | readonly kind: V2TurnStartedNotification__SubAgentActivityKind; |
| | 32619 | readonly type: "subAgentActivity"; |
| | 32620 | } |
| | 32621 | | { |
| | 32622 | readonly action?: V2TurnStartedNotification__WebSearchAction | null; |
| | 32623 | readonly id: string; |
| | 32624 | readonly query: string; |
| | 32625 | readonly results?: ReadonlyArray<Schema.Json> | null; |
| | 32626 | readonly type: "webSearch"; |
| | 32627 | } |
| | 32628 | | { |
| | 32629 | readonly id: string; |
| | 32630 | readonly path: V2TurnStartedNotification__LegacyAppPathString; |
| | 32631 | readonly type: "imageView"; |
| | 32632 | } |
| | 32633 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| | 32634 | | { |
| | 32635 | readonly id: string; |
| | 32636 | readonly result: string; |
| | 32637 | readonly revisedPrompt?: string | null; |
| | 32638 | readonly savedPath?: V2TurnStartedNotification__AbsolutePathBuf | null; |
| | 32639 | readonly status: string; |
| | 32640 | readonly type: "imageGeneration"; |
| | 32641 | } |
| | 32642 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| | 32643 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| | 32644 | | { readonly id: string; readonly type: "contextCompaction" }; |
| | 32645 | export const V2TurnStartedNotification__ThreadItem = Schema.Union( |
| | 32646 | [ |
| | 32647 | Schema.Struct({ |
| | 32648 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 32649 | content: Schema.Array(V2TurnStartedNotification__UserInput), |
| | 32650 | id: Schema.String, |
| | 32651 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| | 32652 | }).annotate({ title: "UserMessageThreadItem" }), |
| | 32653 | Schema.Struct({ |
| | 32654 | fragments: Schema.Array(V2TurnStartedNotification__HookPromptFragment), |
| | 32655 | id: Schema.String, |
| | 32656 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| | 32657 | }).annotate({ title: "HookPromptThreadItem" }), |
| | 32658 | Schema.Struct({ |
| | 32659 | id: Schema.String, |
| | 32660 | memoryCitation: Schema.optionalKey( |
| | 32661 | Schema.Union([V2TurnStartedNotification__MemoryCitation, Schema.Null]), |
| | 32662 | ), |
| | 32663 | phase: Schema.optionalKey( |
| | 32664 | Schema.Union([V2TurnStartedNotification__MessagePhase, Schema.Null]), |
| | 32665 | ), |
| | 32666 | text: Schema.String, |
| | 32667 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), |
| | 32668 | questions: Schema.optionalKey( |
| | 32669 | Schema.Union([ |
| | 32670 | Schema.Array( |
| | 32671 | Schema.Struct({ |
| | 32672 | title: Schema.String, |
| | 32673 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 32674 | }), |
| | 32675 | ), |
| | 32676 | Schema.Null, |
| | 32677 | ]), |
| | 32678 | ), |
| | 32679 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| | 32680 | }).annotate({ title: "AgentMessageThreadItem" }), |
| | 32681 | Schema.Struct({ |
| | 32682 | id: Schema.String, |
| | 32683 | text: Schema.String, |
| | 32684 | type: Schema.Literal("plan").annotate({ title: "PlanThreadItemType" }), |
| | 32685 | }).annotate({ |
| | 32686 | title: "PlanThreadItem", |
| | 32687 | description: |
| | 32688 | "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.", |
| 28869 | }), | 32689 | }), |
| 28870 | ), | 32690 | Schema.Struct({ |
| 28871 | source: V2PluginInstalledResponse__PluginSource, | 32691 | content: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| 28872 | version: Schema.optionalKey( | 32692 | id: Schema.String, |
| 28873 | Schema.Union([ | 32693 | summary: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| 28874 | Schema.String.annotate({ | 32694 | type: Schema.Literal("reasoning").annotate({ title: "ReasoningThreadItemType" }), |
| 28875 | description: "Version advertised by the remote marketplace backend when available.", | 32695 | }).annotate({ title: "ReasoningThreadItem" }), |
| | 32696 | Schema.Struct({ |
| | 32697 | aggregatedOutput: Schema.optionalKey( |
| | 32698 | Schema.Union([ |
| | 32699 | Schema.String.annotate({ |
| | 32700 | description: "The command's output, aggregated from stdout and stderr.", |
| | 32701 | }), |
| | 32702 | Schema.Null, |
| | 32703 | ]), |
| | 32704 | ), |
| | 32705 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| | 32706 | commandActions: Schema.Array(V2TurnStartedNotification__CommandAction).annotate({ |
| | 32707 | description: |
| | 32708 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| | 32709 | }), |
| | 32710 | cwd: Schema.suspend( |
| | 32711 | (): Schema.Codec<V2TurnStartedNotification__LegacyAppPathString> => |
| | 32712 | V2TurnStartedNotification__LegacyAppPathString, |
| | 32713 | ).annotate({ description: "The command's working directory." }), |
| | 32714 | durationMs: Schema.optionalKey( |
| | 32715 | Schema.Union([ |
| | 32716 | Schema.Number.annotate({ |
| | 32717 | description: "The duration of the command execution in milliseconds.", |
| | 32718 | format: "int64", |
| | 32719 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 32720 | Schema.Null, |
| | 32721 | ]), |
| | 32722 | ), |
| | 32723 | exitCode: Schema.optionalKey( |
| | 32724 | Schema.Union([ |
| | 32725 | Schema.Number.annotate({ |
| | 32726 | description: "The command's exit code.", |
| | 32727 | format: "int32", |
| | 32728 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 32729 | Schema.Null, |
| | 32730 | ]), |
| | 32731 | ), |
| | 32732 | id: Schema.String, |
| | 32733 | processId: Schema.optionalKey( |
| | 32734 | Schema.Union([ |
| | 32735 | Schema.String.annotate({ |
| | 32736 | description: "Identifier for the underlying PTY process (when available).", |
| | 32737 | }), |
| | 32738 | Schema.Null, |
| | 32739 | ]), |
| | 32740 | ), |
| | 32741 | source: Schema.optionalKey( |
| | 32742 | Schema.suspend( |
| | 32743 | (): Schema.Codec<V2TurnStartedNotification__CommandExecutionSource> => |
| | 32744 | V2TurnStartedNotification__CommandExecutionSource, |
| | 32745 | ).annotate({ default: "agent" }), |
| | 32746 | ), |
| | 32747 | status: V2TurnStartedNotification__CommandExecutionStatus, |
| | 32748 | type: Schema.Literal("commandExecution").annotate({ |
| | 32749 | title: "CommandExecutionThreadItemType", |
| | 32750 | }), |
| | 32751 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| | 32752 | Schema.Struct({ |
| | 32753 | changes: Schema.Array(V2TurnStartedNotification__FileUpdateChange), |
| | 32754 | id: Schema.String, |
| | 32755 | status: V2TurnStartedNotification__PatchApplyStatus, |
| | 32756 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| | 32757 | }).annotate({ title: "FileChangeThreadItem" }), |
| | 32758 | Schema.Struct({ |
| | 32759 | appContext: Schema.optionalKey( |
| | 32760 | Schema.Union([V2TurnStartedNotification__McpToolCallAppContext, Schema.Null]), |
| | 32761 | ), |
| | 32762 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| | 32763 | durationMs: Schema.optionalKey( |
| | 32764 | Schema.Union([ |
| | 32765 | Schema.Number.annotate({ |
| | 32766 | description: "The duration of the MCP tool call in milliseconds.", |
| | 32767 | format: "int64", |
| | 32768 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 32769 | Schema.Null, |
| | 32770 | ]), |
| | 32771 | ), |
| | 32772 | error: Schema.optionalKey( |
| | 32773 | Schema.Union([V2TurnStartedNotification__McpToolCallError, Schema.Null]), |
| | 32774 | ), |
| | 32775 | id: Schema.String, |
| | 32776 | mcpAppResourceUri: Schema.optionalKey( |
| | 32777 | Schema.Union([ |
| | 32778 | Schema.String.annotate({ |
| | 32779 | description: "Deprecated: use `appContext.resourceUri` instead.", |
| | 32780 | }), |
| | 32781 | Schema.Null, |
| | 32782 | ]), |
| | 32783 | ), |
| | 32784 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 32785 | result: Schema.optionalKey( |
| | 32786 | Schema.Union([V2TurnStartedNotification__McpToolCallResult, Schema.Null]), |
| | 32787 | ), |
| | 32788 | server: Schema.String, |
| | 32789 | status: V2TurnStartedNotification__McpToolCallStatus, |
| | 32790 | tool: Schema.String, |
| | 32791 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| | 32792 | }).annotate({ title: "McpToolCallThreadItem" }), |
| | 32793 | Schema.Struct({ |
| | 32794 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| | 32795 | contentItems: Schema.optionalKey( |
| | 32796 | Schema.Union([ |
| | 32797 | Schema.Array(V2TurnStartedNotification__DynamicToolCallOutputContentItem), |
| | 32798 | Schema.Null, |
| | 32799 | ]), |
| | 32800 | ), |
| | 32801 | durationMs: Schema.optionalKey( |
| | 32802 | Schema.Union([ |
| | 32803 | Schema.Number.annotate({ |
| | 32804 | description: "The duration of the dynamic tool call in milliseconds.", |
| | 32805 | format: "int64", |
| | 32806 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 32807 | Schema.Null, |
| | 32808 | ]), |
| | 32809 | ), |
| | 32810 | id: Schema.String, |
| | 32811 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 32812 | status: V2TurnStartedNotification__DynamicToolCallStatus, |
| | 32813 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 32814 | tool: Schema.String, |
| | 32815 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| | 32816 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| | 32817 | Schema.Struct({ |
| | 32818 | agentsStates: Schema.Record( |
| | 32819 | Schema.String, |
| | 32820 | V2TurnStartedNotification__CollabAgentState, |
| | 32821 | ).annotate({ description: "Last known status of the target agents, when available." }), |
| | 32822 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| | 32823 | model: Schema.optionalKey( |
| | 32824 | Schema.Union([ |
| | 32825 | Schema.String.annotate({ |
| | 32826 | description: "Model requested for the spawned agent, when applicable.", |
| | 32827 | }), |
| | 32828 | Schema.Null, |
| | 32829 | ]), |
| | 32830 | ), |
| | 32831 | prompt: Schema.optionalKey( |
| | 32832 | Schema.Union([ |
| | 32833 | Schema.String.annotate({ |
| | 32834 | description: "Prompt text sent as part of the collab tool call, when available.", |
| | 32835 | }), |
| | 32836 | Schema.Null, |
| | 32837 | ]), |
| | 32838 | ), |
| | 32839 | reasoningEffort: Schema.optionalKey( |
| | 32840 | Schema.Union([V2TurnStartedNotification__ReasoningEffort, Schema.Null]).annotate({ |
| | 32841 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| | 32842 | }), |
| | 32843 | ), |
| | 32844 | receiverThreadIds: Schema.Array(Schema.String).annotate({ |
| | 32845 | description: |
| | 32846 | "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.", |
| 28876 | }), | 32847 | }), |
| 28877 | Schema.Null, | 32848 | senderThreadId: Schema.String.annotate({ |
| 28878 | ]), | 32849 | description: "Thread ID of the agent issuing the collab request.", |
| 28879 | ), | | |
| 28880 | }); | | |
| 28881 | | | |
| 28882 | export type V2PluginListResponse__PluginSummary = { | | |
| 28883 | readonly authPolicy: V2PluginListResponse__PluginAuthPolicy; | | |
| 28884 | readonly availability?: "DISABLED_BY_ADMIN" | "AVAILABLE"; | | |
| 28885 | readonly enabled: boolean; | | |
| 28886 | readonly id: string; | | |
| 28887 | readonly installPolicy: V2PluginListResponse__PluginInstallPolicy; | | |
| 28888 | readonly installPolicySource?: V2PluginListResponse__PluginInstallPolicySource | null; | | |
| 28889 | readonly installed: boolean; | | |
| 28890 | readonly interface?: V2PluginListResponse__PluginInterface | null; | | |
| 28891 | readonly keywords?: ReadonlyArray<string>; | | |
| 28892 | readonly localVersion?: string | null; | | |
| 28893 | readonly mustShowInstallationInterstitial?: boolean | null; | | |
| 28894 | readonly name: string; | | |
| 28895 | readonly remotePluginId?: string | null; | | |
| 28896 | readonly shareContext?: V2PluginListResponse__PluginShareContext | null; | | |
| 28897 | readonly source: V2PluginListResponse__PluginSource; | | |
| 28898 | readonly version?: string | null; | | |
| 28899 | }; | | |
| 28900 | export const V2PluginListResponse__PluginSummary = Schema.Struct({ | | |
| 28901 | authPolicy: V2PluginListResponse__PluginAuthPolicy, | | |
| 28902 | availability: Schema.optionalKey( | | |
| 28903 | Schema.Literals(["DISABLED_BY_ADMIN", "AVAILABLE"]).annotate({ | | |
| 28904 | description: "Availability state for installing and using the plugin.", | | |
| 28905 | default: "AVAILABLE", | | |
| 28906 | }), | | |
| 28907 | ), | | |
| 28908 | enabled: Schema.Boolean, | | |
| 28909 | id: Schema.String, | | |
| 28910 | installPolicy: V2PluginListResponse__PluginInstallPolicy, | | |
| 28911 | installPolicySource: Schema.optionalKey( | | |
| 28912 | Schema.Union([V2PluginListResponse__PluginInstallPolicySource, Schema.Null]), | | |
| 28913 | ), | | |
| 28914 | installed: Schema.Boolean, | | |
| 28915 | interface: Schema.optionalKey(Schema.Union([V2PluginListResponse__PluginInterface, Schema.Null])), | | |
| 28916 | keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), | | |
| 28917 | localVersion: Schema.optionalKey( | | |
| 28918 | Schema.Union([ | | |
| 28919 | Schema.String.annotate({ | | |
| 28920 | description: "Version of the locally materialized plugin package when available.", | | |
| 28921 | }), | 32850 | }), |
| 28922 | Schema.Null, | 32851 | status: Schema.suspend( |
| 28923 | ]), | 32852 | (): Schema.Codec<V2TurnStartedNotification__CollabAgentToolCallStatus> => |
| 28924 | ), | 32853 | V2TurnStartedNotification__CollabAgentToolCallStatus, |
| 28925 | mustShowInstallationInterstitial: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 32854 | ).annotate({ description: "Current status of the collab tool call." }), |
| 28926 | name: Schema.String, | 32855 | tool: Schema.suspend( |
| 28927 | remotePluginId: Schema.optionalKey( | 32856 | (): Schema.Codec<V2TurnStartedNotification__CollabAgentTool> => |
| 28928 | Schema.Union([ | 32857 | V2TurnStartedNotification__CollabAgentTool, |
| 28929 | Schema.String.annotate({ description: "Backend remote plugin identifier when available." }), | 32858 | ).annotate({ description: "Name of the collab tool that was invoked." }), |
| 28930 | Schema.Null, | 32859 | type: Schema.Literal("collabAgentToolCall").annotate({ |
| 28931 | ]), | 32860 | title: "CollabAgentToolCallThreadItemType", |
| 28932 | ), | | |
| 28933 | shareContext: Schema.optionalKey( | | |
| 28934 | Schema.Union([V2PluginListResponse__PluginShareContext, Schema.Null]).annotate({ | | |
| 28935 | description: "Remote sharing context associated with this plugin when available.", | | |
| 28936 | }), | | |
| 28937 | ), | | |
| 28938 | source: V2PluginListResponse__PluginSource, | | |
| 28939 | version: Schema.optionalKey( | | |
| 28940 | Schema.Union([ | | |
| 28941 | Schema.String.annotate({ | | |
| 28942 | description: "Version advertised by the remote marketplace backend when available.", | | |
| 28943 | }), | 32861 | }), |
| 28944 | Schema.Null, | 32862 | }).annotate({ title: "CollabAgentToolCallThreadItem" }), |
| 28945 | ]), | 32863 | Schema.Struct({ |
| 28946 | ), | 32864 | agentPath: Schema.String, |
| 28947 | }); | 32865 | agentThreadId: Schema.String, |
| 28948 | | 32866 | id: Schema.String, |
| 28949 | export type V2PluginReadResponse__PluginSummary = { | 32867 | kind: V2TurnStartedNotification__SubAgentActivityKind, |
| 28950 | readonly authPolicy: V2PluginReadResponse__PluginAuthPolicy; | 32868 | type: Schema.Literal("subAgentActivity").annotate({ |
| 28951 | readonly availability?: "DISABLED_BY_ADMIN" | "AVAILABLE"; | 32869 | title: "SubAgentActivityThreadItemType", |
| 28952 | readonly enabled: boolean; | | |
| 28953 | readonly id: string; | | |
| 28954 | readonly installPolicy: V2PluginReadResponse__PluginInstallPolicy; | | |
| 28955 | readonly installPolicySource?: V2PluginReadResponse__PluginInstallPolicySource | null; | | |
| 28956 | readonly installed: boolean; | | |
| 28957 | readonly interface?: V2PluginReadResponse__PluginInterface | null; | | |
| 28958 | readonly keywords?: ReadonlyArray<string>; | | |
| 28959 | readonly localVersion?: string | null; | | |
| 28960 | readonly mustShowInstallationInterstitial?: boolean | null; | | |
| 28961 | readonly name: string; | | |
| 28962 | readonly remotePluginId?: string | null; | | |
| 28963 | readonly shareContext?: V2PluginReadResponse__PluginShareContext | null; | | |
| 28964 | readonly source: V2PluginReadResponse__PluginSource; | | |
| 28965 | readonly version?: string | null; | | |
| 28966 | }; | | |
| 28967 | export const V2PluginReadResponse__PluginSummary = Schema.Struct({ | | |
| 28968 | authPolicy: V2PluginReadResponse__PluginAuthPolicy, | | |
| 28969 | availability: Schema.optionalKey( | | |
| 28970 | Schema.Literals(["DISABLED_BY_ADMIN", "AVAILABLE"]).annotate({ | | |
| 28971 | description: "Availability state for installing and using the plugin.", | | |
| 28972 | default: "AVAILABLE", | | |
| 28973 | }), | | |
| 28974 | ), | | |
| 28975 | enabled: Schema.Boolean, | | |
| 28976 | id: Schema.String, | | |
| 28977 | installPolicy: V2PluginReadResponse__PluginInstallPolicy, | | |
| 28978 | installPolicySource: Schema.optionalKey( | | |
| 28979 | Schema.Union([V2PluginReadResponse__PluginInstallPolicySource, Schema.Null]), | | |
| 28980 | ), | | |
| 28981 | installed: Schema.Boolean, | | |
| 28982 | interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__PluginInterface, Schema.Null])), | | |
| 28983 | keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), | | |
| 28984 | localVersion: Schema.optionalKey( | | |
| 28985 | Schema.Union([ | | |
| 28986 | Schema.String.annotate({ | | |
| 28987 | description: "Version of the locally materialized plugin package when available.", | | |
| 28988 | }), | 32870 | }), |
| 28989 | Schema.Null, | 32871 | }).annotate({ title: "SubAgentActivityThreadItem" }), |
| 28990 | ]), | 32872 | Schema.Struct({ |
| 28991 | ), | 32873 | action: Schema.optionalKey( |
| 28992 | mustShowInstallationInterstitial: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 32874 | Schema.Union([V2TurnStartedNotification__WebSearchAction, Schema.Null]), |
| 28993 | name: Schema.String, | 32875 | ), |
| 28994 | remotePluginId: Schema.optionalKey( | 32876 | id: Schema.String, |
| 28995 | Schema.Union([ | 32877 | query: Schema.String, |
| 28996 | Schema.String.annotate({ description: "Backend remote plugin identifier when available." }), | 32878 | results: Schema.optionalKey( |
| 28997 | Schema.Null, | 32879 | Schema.Union([ |
| 28998 | ]), | 32880 | Schema.Array(Schema.Json.annotate({ expected: "JSON value" })).annotate({ |
| 28999 | ), | 32881 | description: |
| 29000 | shareContext: Schema.optionalKey( | 32882 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", |
| 29001 | Schema.Union([V2PluginReadResponse__PluginShareContext, Schema.Null]).annotate({ | 32883 | }), |
| 29002 | description: "Remote sharing context associated with this plugin when available.", | 32884 | Schema.Null, |
| | 32885 | ]), |
| | 32886 | ), |
| | 32887 | type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }), |
| | 32888 | }).annotate({ title: "WebSearchThreadItem" }), |
| | 32889 | Schema.Struct({ |
| | 32890 | id: Schema.String, |
| | 32891 | path: V2TurnStartedNotification__LegacyAppPathString, |
| | 32892 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| | 32893 | }).annotate({ title: "ImageViewThreadItem" }), |
| | 32894 | Schema.Struct({ |
| | 32895 | durationMs: Schema.Number.annotate({ format: "uint64" }) |
| | 32896 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 32897 | .check( |
| | 32898 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 32899 | expected: "a value greater than or equal to 0", |
| | 32900 | }), |
| | 32901 | ), |
| | 32902 | id: Schema.String, |
| | 32903 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), |
| | 32904 | }).annotate({ |
| | 32905 | title: "SleepThreadItem", |
| | 32906 | description: "Display item emitted by the interruptible `clock.sleep` tool.", |
| 29003 | }), | 32907 | }), |
| 29004 | ), | 32908 | Schema.Struct({ |
| 29005 | source: V2PluginReadResponse__PluginSource, | 32909 | id: Schema.String, |
| 29006 | version: Schema.optionalKey( | 32910 | result: Schema.String, |
| 29007 | Schema.Union([ | 32911 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 29008 | Schema.String.annotate({ | 32912 | savedPath: Schema.optionalKey( |
| 29009 | description: "Version advertised by the remote marketplace backend when available.", | 32913 | Schema.Union([V2TurnStartedNotification__AbsolutePathBuf, Schema.Null]), |
| | 32914 | ), |
| | 32915 | status: Schema.String, |
| | 32916 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| | 32917 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| | 32918 | Schema.Struct({ |
| | 32919 | id: Schema.String, |
| | 32920 | review: Schema.String, |
| | 32921 | type: Schema.Literal("enteredReviewMode").annotate({ |
| | 32922 | title: "EnteredReviewModeThreadItemType", |
| 29010 | }), | 32923 | }), |
| 29011 | Schema.Null, | 32924 | }).annotate({ title: "EnteredReviewModeThreadItem" }), |
| 29012 | ]), | 32925 | Schema.Struct({ |
| 29013 | ), | 32926 | id: Schema.String, |
| 29014 | }); | 32927 | review: Schema.String, |
| 29015 | | 32928 | type: Schema.Literal("exitedReviewMode").annotate({ |
| 29016 | export type V2PluginShareListResponse__PluginSummary = { | 32929 | title: "ExitedReviewModeThreadItemType", |
| 29017 | readonly authPolicy: V2PluginShareListResponse__PluginAuthPolicy; | | |
| 29018 | readonly availability?: "DISABLED_BY_ADMIN" | "AVAILABLE"; | | |
| 29019 | readonly enabled: boolean; | | |
| 29020 | readonly id: string; | | |
| 29021 | readonly installPolicy: V2PluginShareListResponse__PluginInstallPolicy; | | |
| 29022 | readonly installPolicySource?: V2PluginShareListResponse__PluginInstallPolicySource | null; | | |
| 29023 | readonly installed: boolean; | | |
| 29024 | readonly interface?: V2PluginShareListResponse__PluginInterface | null; | | |
| 29025 | readonly keywords?: ReadonlyArray<string>; | | |
| 29026 | readonly localVersion?: string | null; | | |
| 29027 | readonly mustShowInstallationInterstitial?: boolean | null; | | |
| 29028 | readonly name: string; | | |
| 29029 | readonly remotePluginId?: string | null; | | |
| 29030 | readonly shareContext?: V2PluginShareListResponse__PluginShareContext | null; | | |
| 29031 | readonly source: V2PluginShareListResponse__PluginSource; | | |
| 29032 | readonly version?: string | null; | | |
| 29033 | }; | | |
| 29034 | export const V2PluginShareListResponse__PluginSummary = Schema.Struct({ | | |
| 29035 | authPolicy: V2PluginShareListResponse__PluginAuthPolicy, | | |
| 29036 | availability: Schema.optionalKey( | | |
| 29037 | Schema.Literals(["DISABLED_BY_ADMIN", "AVAILABLE"]).annotate({ | | |
| 29038 | description: "Availability state for installing and using the plugin.", | | |
| 29039 | default: "AVAILABLE", | | |
| 29040 | }), | | |
| 29041 | ), | | |
| 29042 | enabled: Schema.Boolean, | | |
| 29043 | id: Schema.String, | | |
| 29044 | installPolicy: V2PluginShareListResponse__PluginInstallPolicy, | | |
| 29045 | installPolicySource: Schema.optionalKey( | | |
| 29046 | Schema.Union([V2PluginShareListResponse__PluginInstallPolicySource, Schema.Null]), | | |
| 29047 | ), | | |
| 29048 | installed: Schema.Boolean, | | |
| 29049 | interface: Schema.optionalKey( | | |
| 29050 | Schema.Union([V2PluginShareListResponse__PluginInterface, Schema.Null]), | | |
| 29051 | ), | | |
| 29052 | keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), | | |
| 29053 | localVersion: Schema.optionalKey( | | |
| 29054 | Schema.Union([ | | |
| 29055 | Schema.String.annotate({ | | |
| 29056 | description: "Version of the locally materialized plugin package when available.", | | |
| 29057 | }), | 32930 | }), |
| 29058 | Schema.Null, | 32931 | }).annotate({ title: "ExitedReviewModeThreadItem" }), |
| 29059 | ]), | 32932 | Schema.Struct({ |
| 29060 | ), | 32933 | id: Schema.String, |
| 29061 | mustShowInstallationInterstitial: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 32934 | type: Schema.Literal("contextCompaction").annotate({ |
| 29062 | name: Schema.String, | 32935 | title: "ContextCompactionThreadItemType", |
| 29063 | remotePluginId: Schema.optionalKey( | | |
| 29064 | Schema.Union([ | | |
| 29065 | Schema.String.annotate({ description: "Backend remote plugin identifier when available." }), | | |
| 29066 | Schema.Null, | | |
| 29067 | ]), | | |
| 29068 | ), | | |
| 29069 | shareContext: Schema.optionalKey( | | |
| 29070 | Schema.Union([V2PluginShareListResponse__PluginShareContext, Schema.Null]).annotate({ | | |
| 29071 | description: "Remote sharing context associated with this plugin when available.", | | |
| 29072 | }), | | |
| 29073 | ), | | |
| 29074 | source: V2PluginShareListResponse__PluginSource, | | |
| 29075 | version: Schema.optionalKey( | | |
| 29076 | Schema.Union([ | | |
| 29077 | Schema.String.annotate({ | | |
| 29078 | description: "Version advertised by the remote marketplace backend when available.", | | |
| 29079 | }), | 32936 | }), |
| 29080 | Schema.Null, | 32937 | }).annotate({ title: "ContextCompactionThreadItem" }), |
| 29081 | ]), | 32938 | ], |
| 29082 | ), | 32939 | { mode: "oneOf" }, |
| 29083 | }); | 32940 | ).annotate({ identifier: "V2TurnStartedNotification__ThreadItem" }); |
| 29084 | | 32941 | |
| 29085 | export type V2RawResponseItemCompletedNotification__ResponseItem = | 32942 | export type V2TurnStartResponse__ThreadItem = |
| 29086 | | { | 32943 | | { |
| 29087 | readonly content: ReadonlyArray<V2RawResponseItemCompletedNotification__ContentItem>; | 32944 | readonly clientId?: string | null; |
| 29088 | readonly id?: string | null; | 32945 | readonly content: ReadonlyArray<V2TurnStartResponse__UserInput>; |
| 29089 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; | 32946 | readonly id: string; |
| 29090 | readonly phase?: V2RawResponseItemCompletedNotification__MessagePhase | null; | 32947 | readonly type: "userMessage"; |
| 29091 | readonly role: string; | | |
| 29092 | readonly type: "message"; | | |
| 29093 | } | 32948 | } |
| 29094 | | { | 32949 | | { |
| 29095 | readonly author: string; | 32950 | readonly fragments: ReadonlyArray<V2TurnStartResponse__HookPromptFragment>; |
| 29096 | readonly content: ReadonlyArray<V2RawResponseItemCompletedNotification__AgentMessageInputContent>; | 32951 | readonly id: string; |
| 29097 | readonly id?: string | null; | 32952 | readonly type: "hookPrompt"; |
| 29098 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; | | |
| 29099 | readonly recipient: string; | | |
| 29100 | readonly type: "agent_message"; | | |
| 29101 | } | 32953 | } |
| 29102 | | { | 32954 | | { |
| 29103 | readonly content?: ReadonlyArray<V2RawResponseItemCompletedNotification__ReasoningItemContent> | null; | 32955 | readonly id: string; |
| 29104 | readonly encrypted_content?: string | null; | 32956 | readonly memoryCitation?: V2TurnStartResponse__MemoryCitation | null; |
| 29105 | readonly id?: string | null; | 32957 | readonly phase?: V2TurnStartResponse__MessagePhase | null; |
| 29106 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; | 32958 | readonly text: string; |
| 29107 | readonly summary: ReadonlyArray<V2RawResponseItemCompletedNotification__ReasoningItemReasoningSummary>; | 32959 | readonly delivery?: "async" | null; |
| 29108 | readonly type: "reasoning"; | 32960 | readonly questions?: ReadonlyArray<{ |
| | 32961 | readonly title: string; |
| | 32962 | readonly options?: ReadonlyArray<string> | null; |
| | 32963 | }> | null; |
| | 32964 | readonly type: "agentMessage"; |
| 29109 | } | 32965 | } |
| | 32966 | | { readonly id: string; readonly text: string; readonly type: "plan" } |
| 29110 | | { | 32967 | | { |
| 29111 | readonly action: V2RawResponseItemCompletedNotification__LocalShellAction; | 32968 | readonly content?: ReadonlyArray<string>; |
| 29112 | readonly call_id?: string | null; | 32969 | readonly id: string; |
| 29113 | readonly id?: string | null; | 32970 | readonly summary?: ReadonlyArray<string>; |
| 29114 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; | 32971 | readonly type: "reasoning"; |
| 29115 | readonly status: V2RawResponseItemCompletedNotification__LocalShellStatus; | | |
| 29116 | readonly type: "local_shell_call"; | | |
| 29117 | } | 32972 | } |
| 29118 | | { | 32973 | | { |
| 29119 | readonly arguments: string; | 32974 | readonly aggregatedOutput?: string | null; |
| 29120 | readonly call_id: string; | 32975 | readonly command: string; |
| 29121 | readonly id?: string | null; | 32976 | readonly commandActions: ReadonlyArray<V2TurnStartResponse__CommandAction>; |
| 29122 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; | 32977 | readonly cwd: V2TurnStartResponse__LegacyAppPathString; |
| 29123 | readonly name: string; | 32978 | readonly durationMs?: number | null; |
| 29124 | readonly namespace?: string | null; | 32979 | readonly exitCode?: number | null; |
| 29125 | readonly type: "function_call"; | 32980 | readonly id: string; |
| | 32981 | readonly processId?: string | null; |
| | 32982 | readonly source?: V2TurnStartResponse__CommandExecutionSource; |
| | 32983 | readonly status: V2TurnStartResponse__CommandExecutionStatus; |
| | 32984 | readonly type: "commandExecution"; |
| 29126 | } | 32985 | } |
| 29127 | | { | 32986 | | { |
| 29128 | readonly arguments: unknown; | 32987 | readonly changes: ReadonlyArray<V2TurnStartResponse__FileUpdateChange>; |
| 29129 | readonly call_id?: string | null; | 32988 | readonly id: string; |
| 29130 | readonly execution: string; | 32989 | readonly status: V2TurnStartResponse__PatchApplyStatus; |
| 29131 | readonly id?: string | null; | 32990 | readonly type: "fileChange"; |
| 29132 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; | | |
| 29133 | readonly status?: string | null; | | |
| 29134 | readonly type: "tool_search_call"; | | |
| 29135 | } | 32991 | } |
| 29136 | | { | 32992 | | { |
| 29137 | readonly call_id: string; | 32993 | readonly appContext?: V2TurnStartResponse__McpToolCallAppContext | null; |
| 29138 | readonly id?: string | null; | 32994 | readonly arguments: Schema.Json; |
| 29139 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; | 32995 | readonly durationMs?: number | null; |
| 29140 | readonly output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody; | 32996 | readonly error?: V2TurnStartResponse__McpToolCallError | null; |
| 29141 | readonly type: "function_call_output"; | 32997 | readonly id: string; |
| | 32998 | readonly mcpAppResourceUri?: string | null; |
| | 32999 | readonly pluginId?: string | null; |
| | 33000 | readonly result?: V2TurnStartResponse__McpToolCallResult | null; |
| | 33001 | readonly server: string; |
| | 33002 | readonly status: V2TurnStartResponse__McpToolCallStatus; |
| | 33003 | readonly tool: string; |
| | 33004 | readonly type: "mcpToolCall"; |
| 29142 | } | 33005 | } |
| 29143 | | { | 33006 | | { |
| 29144 | readonly call_id: string; | 33007 | readonly arguments: Schema.Json; |
| 29145 | readonly id?: string | null; | 33008 | readonly contentItems?: ReadonlyArray<V2TurnStartResponse__DynamicToolCallOutputContentItem> | null; |
| 29146 | readonly input: string; | 33009 | readonly durationMs?: number | null; |
| 29147 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; | 33010 | readonly id: string; |
| 29148 | readonly name: string; | | |
| 29149 | readonly namespace?: string | null; | 33011 | readonly namespace?: string | null; |
| 29150 | readonly status?: string | null; | 33012 | readonly status: V2TurnStartResponse__DynamicToolCallStatus; |
| 29151 | readonly type: "custom_tool_call"; | 33013 | readonly success?: boolean | null; |
| 29152 | } | 33014 | readonly tool: string; |
| 29153 | | { | 33015 | readonly type: "dynamicToolCall"; |
| 29154 | readonly call_id: string; | | |
| 29155 | readonly id?: string | null; | | |
| 29156 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; | | |
| 29157 | readonly name?: string | null; | | |
| 29158 | readonly output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody; | | |
| 29159 | readonly type: "custom_tool_call_output"; | | |
| 29160 | } | 33016 | } |
| 29161 | | { | 33017 | | { |
| 29162 | readonly call_id?: string | null; | 33018 | readonly agentsStates: { readonly [x: string]: V2TurnStartResponse__CollabAgentState }; |
| 29163 | readonly execution: string; | 33019 | readonly id: string; |
| 29164 | readonly id?: string | null; | 33020 | readonly model?: string | null; |
| 29165 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; | 33021 | readonly prompt?: string | null; |
| 29166 | readonly status: string; | 33022 | readonly reasoningEffort?: V2TurnStartResponse__ReasoningEffort | null; |
| 29167 | readonly tools: ReadonlyArray<unknown>; | 33023 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 29168 | readonly type: "tool_search_output"; | 33024 | readonly senderThreadId: string; |
| | 33025 | readonly status: V2TurnStartResponse__CollabAgentToolCallStatus; |
| | 33026 | readonly tool: V2TurnStartResponse__CollabAgentTool; |
| | 33027 | readonly type: "collabAgentToolCall"; |
| 29169 | } | 33028 | } |
| 29170 | | { | 33029 | | { |
| 29171 | readonly action?: V2RawResponseItemCompletedNotification__ResponsesApiWebSearchAction | null; | 33030 | readonly agentPath: string; |
| 29172 | readonly id?: string | null; | 33031 | readonly agentThreadId: string; |
| 29173 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; | 33032 | readonly id: string; |
| 29174 | readonly status?: string | null; | 33033 | readonly kind: V2TurnStartResponse__SubAgentActivityKind; |
| 29175 | readonly type: "web_search_call"; | 33034 | readonly type: "subAgentActivity"; |
| 29176 | } | 33035 | } |
| 29177 | | { | 33036 | | { |
| 29178 | readonly id?: string | null; | 33037 | readonly action?: V2TurnStartResponse__WebSearchAction | null; |
| 29179 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; | 33038 | readonly id: string; |
| 29180 | readonly result: string; | 33039 | readonly query: string; |
| 29181 | readonly revised_prompt?: string | null; | 33040 | readonly results?: ReadonlyArray<Schema.Json> | null; |
| 29182 | readonly status: string; | 33041 | readonly type: "webSearch"; |
| 29183 | readonly type: "image_generation_call"; | | |
| 29184 | } | 33042 | } |
| 29185 | | { | 33043 | | { |
| 29186 | readonly encrypted_content: string; | 33044 | readonly id: string; |
| 29187 | readonly id?: string | null; | 33045 | readonly path: V2TurnStartResponse__LegacyAppPathString; |
| 29188 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; | 33046 | readonly type: "imageView"; |
| 29189 | readonly type: "compaction"; | | |
| 29190 | } | 33047 | } |
| 29191 | | { readonly type: "compaction_trigger" } | 33048 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| 29192 | | { | 33049 | | { |
| 29193 | readonly encrypted_content?: string | null; | 33050 | readonly id: string; |
| 29194 | readonly id?: string | null; | 33051 | readonly result: string; |
| 29195 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; | 33052 | readonly revisedPrompt?: string | null; |
| 29196 | readonly type: "context_compaction"; | 33053 | readonly savedPath?: V2TurnStartResponse__AbsolutePathBuf | null; |
| | 33054 | readonly status: string; |
| | 33055 | readonly type: "imageGeneration"; |
| 29197 | } | 33056 | } |
| 29198 | | { readonly type: "other" }; | 33057 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 29199 | export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union( | 33058 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| | 33059 | | { readonly id: string; readonly type: "contextCompaction" }; |
| | 33060 | export const V2TurnStartResponse__ThreadItem = Schema.Union( |
| 29200 | [ | 33061 | [ |
| 29201 | Schema.Struct({ | 33062 | Schema.Struct({ |
| 29202 | content: Schema.Array(V2RawResponseItemCompletedNotification__ContentItem), | 33063 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 29203 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 33064 | content: Schema.Array(V2TurnStartResponse__UserInput), |
| 29204 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | 33065 | id: Schema.String, |
| 29205 | Schema.Union([ | 33066 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 29206 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, | 33067 | }).annotate({ title: "UserMessageThreadItem" }), |
| 29207 | Schema.Null, | 33068 | Schema.Struct({ |
| 29208 | ]), | 33069 | fragments: Schema.Array(V2TurnStartResponse__HookPromptFragment), |
| 29209 | ), | 33070 | id: Schema.String, |
| 29210 | phase: Schema.optionalKey( | 33071 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 29211 | Schema.Union([V2RawResponseItemCompletedNotification__MessagePhase, Schema.Null]), | 33072 | }).annotate({ title: "HookPromptThreadItem" }), |
| 29212 | ), | | |
| 29213 | role: Schema.String, | | |
| 29214 | type: Schema.Literal("message").annotate({ title: "MessageResponseItemType" }), | | |
| 29215 | }).annotate({ title: "MessageResponseItem" }), | | |
| 29216 | Schema.Struct({ | 33073 | Schema.Struct({ |
| 29217 | author: Schema.String, | 33074 | id: Schema.String, |
| 29218 | content: Schema.Array(V2RawResponseItemCompletedNotification__AgentMessageInputContent), | 33075 | memoryCitation: Schema.optionalKey( |
| 29219 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 33076 | Schema.Union([V2TurnStartResponse__MemoryCitation, Schema.Null]), |
| 29220 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | 33077 | ), |
| | 33078 | phase: Schema.optionalKey(Schema.Union([V2TurnStartResponse__MessagePhase, Schema.Null])), |
| | 33079 | text: Schema.String, |
| | 33080 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), |
| | 33081 | questions: Schema.optionalKey( |
| 29221 | Schema.Union([ | 33082 | Schema.Union([ |
| 29222 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, | 33083 | Schema.Array( |
| | 33084 | Schema.Struct({ |
| | 33085 | title: Schema.String, |
| | 33086 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 33087 | }), |
| | 33088 | ), |
| 29223 | Schema.Null, | 33089 | Schema.Null, |
| 29224 | ]), | 33090 | ]), |
| 29225 | ), | 33091 | ), |
| 29226 | recipient: Schema.String, | 33092 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| 29227 | type: Schema.Literal("agent_message").annotate({ title: "AgentMessageResponseItemType" }), | 33093 | }).annotate({ title: "AgentMessageThreadItem" }), |
| 29228 | }).annotate({ title: "AgentMessageResponseItem" }), | | |
| 29229 | Schema.Struct({ | 33094 | Schema.Struct({ |
| 29230 | content: Schema.optionalKey( | 33095 | id: Schema.String, |
| | 33096 | text: Schema.String, |
| | 33097 | type: Schema.Literal("plan").annotate({ title: "PlanThreadItemType" }), |
| | 33098 | }).annotate({ |
| | 33099 | title: "PlanThreadItem", |
| | 33100 | description: |
| | 33101 | "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.", |
| | 33102 | }), |
| | 33103 | Schema.Struct({ |
| | 33104 | content: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| | 33105 | id: Schema.String, |
| | 33106 | summary: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| | 33107 | type: Schema.Literal("reasoning").annotate({ title: "ReasoningThreadItemType" }), |
| | 33108 | }).annotate({ title: "ReasoningThreadItem" }), |
| | 33109 | Schema.Struct({ |
| | 33110 | aggregatedOutput: Schema.optionalKey( |
| 29231 | Schema.Union([ | 33111 | Schema.Union([ |
| 29232 | Schema.Array(V2RawResponseItemCompletedNotification__ReasoningItemContent), | 33112 | Schema.String.annotate({ |
| | 33113 | description: "The command's output, aggregated from stdout and stderr.", |
| | 33114 | }), |
| 29233 | Schema.Null, | 33115 | Schema.Null, |
| 29234 | ]), | 33116 | ]), |
| 29235 | ), | 33117 | ), |
| 29236 | encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 33118 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 29237 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 33119 | commandActions: Schema.Array(V2TurnStartResponse__CommandAction).annotate({ |
| 29238 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | 33120 | description: |
| | 33121 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| | 33122 | }), |
| | 33123 | cwd: Schema.suspend( |
| | 33124 | (): Schema.Codec<V2TurnStartResponse__LegacyAppPathString> => |
| | 33125 | V2TurnStartResponse__LegacyAppPathString, |
| | 33126 | ).annotate({ description: "The command's working directory." }), |
| | 33127 | durationMs: Schema.optionalKey( |
| 29239 | Schema.Union([ | 33128 | Schema.Union([ |
| 29240 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, | 33129 | Schema.Number.annotate({ |
| | 33130 | description: "The duration of the command execution in milliseconds.", |
| | 33131 | format: "int64", |
| | 33132 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29241 | Schema.Null, | 33133 | Schema.Null, |
| 29242 | ]), | 33134 | ]), |
| 29243 | ), | 33135 | ), |
| 29244 | summary: Schema.Array(V2RawResponseItemCompletedNotification__ReasoningItemReasoningSummary), | 33136 | exitCode: Schema.optionalKey( |
| 29245 | type: Schema.Literal("reasoning").annotate({ title: "ReasoningResponseItemType" }), | | |
| 29246 | }).annotate({ title: "ReasoningResponseItem" }), | | |
| 29247 | Schema.Struct({ | | |
| 29248 | action: V2RawResponseItemCompletedNotification__LocalShellAction, | | |
| 29249 | call_id: Schema.optionalKey( | | |
| 29250 | Schema.Union([ | 33137 | Schema.Union([ |
| 29251 | Schema.String.annotate({ description: "Set when using the Responses API." }), | 33138 | Schema.Number.annotate({ |
| | 33139 | description: "The command's exit code.", |
| | 33140 | format: "int32", |
| | 33141 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29252 | Schema.Null, | 33142 | Schema.Null, |
| 29253 | ]), | 33143 | ]), |
| 29254 | ), | 33144 | ), |
| 29255 | id: Schema.optionalKey( | 33145 | id: Schema.String, |
| | 33146 | processId: Schema.optionalKey( |
| 29256 | Schema.Union([ | 33147 | Schema.Union([ |
| 29257 | Schema.String.annotate({ | 33148 | Schema.String.annotate({ |
| 29258 | description: "Legacy id field retained for compatibility with older payloads.", | 33149 | description: "Identifier for the underlying PTY process (when available).", |
| 29259 | }), | 33150 | }), |
| 29260 | Schema.Null, | 33151 | Schema.Null, |
| 29261 | ]), | 33152 | ]), |
| 29262 | ), | 33153 | ), |
| 29263 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | 33154 | source: Schema.optionalKey( |
| 29264 | Schema.Union([ | 33155 | Schema.suspend( |
| 29265 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, | 33156 | (): Schema.Codec<V2TurnStartResponse__CommandExecutionSource> => |
| 29266 | Schema.Null, | 33157 | V2TurnStartResponse__CommandExecutionSource, |
| 29267 | ]), | 33158 | ).annotate({ default: "agent" }), |
| 29268 | ), | 33159 | ), |
| 29269 | status: V2RawResponseItemCompletedNotification__LocalShellStatus, | 33160 | status: V2TurnStartResponse__CommandExecutionStatus, |
| 29270 | type: Schema.Literal("local_shell_call").annotate({ | 33161 | type: Schema.Literal("commandExecution").annotate({ |
| 29271 | title: "LocalShellCallResponseItemType", | 33162 | title: "CommandExecutionThreadItemType", |
| 29272 | }), | 33163 | }), |
| 29273 | }).annotate({ title: "LocalShellCallResponseItem" }), | 33164 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 29274 | Schema.Struct({ | 33165 | Schema.Struct({ |
| 29275 | arguments: Schema.String, | 33166 | changes: Schema.Array(V2TurnStartResponse__FileUpdateChange), |
| 29276 | call_id: Schema.String, | 33167 | id: Schema.String, |
| 29277 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 33168 | status: V2TurnStartResponse__PatchApplyStatus, |
| 29278 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | 33169 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| | 33170 | }).annotate({ title: "FileChangeThreadItem" }), |
| | 33171 | Schema.Struct({ |
| | 33172 | appContext: Schema.optionalKey( |
| | 33173 | Schema.Union([V2TurnStartResponse__McpToolCallAppContext, Schema.Null]), |
| | 33174 | ), |
| | 33175 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| | 33176 | durationMs: Schema.optionalKey( |
| 29279 | Schema.Union([ | 33177 | Schema.Union([ |
| 29280 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, | 33178 | Schema.Number.annotate({ |
| | 33179 | description: "The duration of the MCP tool call in milliseconds.", |
| | 33180 | format: "int64", |
| | 33181 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29281 | Schema.Null, | 33182 | Schema.Null, |
| 29282 | ]), | 33183 | ]), |
| 29283 | ), | 33184 | ), |
| 29284 | name: Schema.String, | 33185 | error: Schema.optionalKey(Schema.Union([V2TurnStartResponse__McpToolCallError, Schema.Null])), |
| 29285 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 33186 | id: Schema.String, |
| 29286 | type: Schema.Literal("function_call").annotate({ title: "FunctionCallResponseItemType" }), | 33187 | mcpAppResourceUri: Schema.optionalKey( |
| 29287 | }).annotate({ title: "FunctionCallResponseItem" }), | | |
| 29288 | Schema.Struct({ | | |
| 29289 | arguments: Schema.Unknown, | | |
| 29290 | call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 29291 | execution: Schema.String, | | |
| 29292 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 29293 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | | |
| 29294 | Schema.Union([ | 33188 | Schema.Union([ |
| 29295 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, | 33189 | Schema.String.annotate({ |
| | 33190 | description: "Deprecated: use `appContext.resourceUri` instead.", |
| | 33191 | }), |
| 29296 | Schema.Null, | 33192 | Schema.Null, |
| 29297 | ]), | 33193 | ]), |
| 29298 | ), | 33194 | ), |
| 29299 | status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 33195 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 29300 | type: Schema.Literal("tool_search_call").annotate({ | 33196 | result: Schema.optionalKey( |
| 29301 | title: "ToolSearchCallResponseItemType", | 33197 | Schema.Union([V2TurnStartResponse__McpToolCallResult, Schema.Null]), |
| 29302 | }), | 33198 | ), |
| 29303 | }).annotate({ title: "ToolSearchCallResponseItem" }), | 33199 | server: Schema.String, |
| | 33200 | status: V2TurnStartResponse__McpToolCallStatus, |
| | 33201 | tool: Schema.String, |
| | 33202 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| | 33203 | }).annotate({ title: "McpToolCallThreadItem" }), |
| 29304 | Schema.Struct({ | 33204 | Schema.Struct({ |
| 29305 | call_id: Schema.String, | 33205 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 29306 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 33206 | contentItems: Schema.optionalKey( |
| 29307 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | | |
| 29308 | Schema.Union([ | 33207 | Schema.Union([ |
| 29309 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, | 33208 | Schema.Array(V2TurnStartResponse__DynamicToolCallOutputContentItem), |
| 29310 | Schema.Null, | 33209 | Schema.Null, |
| 29311 | ]), | 33210 | ]), |
| 29312 | ), | 33211 | ), |
| 29313 | output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody, | 33212 | durationMs: Schema.optionalKey( |
| 29314 | type: Schema.Literal("function_call_output").annotate({ | | |
| 29315 | title: "FunctionCallOutputResponseItemType", | | |
| 29316 | }), | | |
| 29317 | }).annotate({ title: "FunctionCallOutputResponseItem" }), | | |
| 29318 | Schema.Struct({ | | |
| 29319 | call_id: Schema.String, | | |
| 29320 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 29321 | input: Schema.String, | | |
| 29322 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | | |
| 29323 | Schema.Union([ | 33213 | Schema.Union([ |
| 29324 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, | 33214 | Schema.Number.annotate({ |
| | 33215 | description: "The duration of the dynamic tool call in milliseconds.", |
| | 33216 | format: "int64", |
| | 33217 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29325 | Schema.Null, | 33218 | Schema.Null, |
| 29326 | ]), | 33219 | ]), |
| 29327 | ), | 33220 | ), |
| 29328 | name: Schema.String, | 33221 | id: Schema.String, |
| 29329 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 33222 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 29330 | status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 33223 | status: V2TurnStartResponse__DynamicToolCallStatus, |
| 29331 | type: Schema.Literal("custom_tool_call").annotate({ | 33224 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 29332 | title: "CustomToolCallResponseItemType", | 33225 | tool: Schema.String, |
| 29333 | }), | 33226 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 29334 | }).annotate({ title: "CustomToolCallResponseItem" }), | 33227 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 29335 | Schema.Struct({ | 33228 | Schema.Struct({ |
| 29336 | call_id: Schema.String, | 33229 | agentsStates: Schema.Record(Schema.String, V2TurnStartResponse__CollabAgentState).annotate({ |
| 29337 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 33230 | description: "Last known status of the target agents, when available.", |
| 29338 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | 33231 | }), |
| | 33232 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| | 33233 | model: Schema.optionalKey( |
| 29339 | Schema.Union([ | 33234 | Schema.Union([ |
| 29340 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, | 33235 | Schema.String.annotate({ |
| | 33236 | description: "Model requested for the spawned agent, when applicable.", |
| | 33237 | }), |
| 29341 | Schema.Null, | 33238 | Schema.Null, |
| 29342 | ]), | 33239 | ]), |
| 29343 | ), | 33240 | ), |
| 29344 | name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 33241 | prompt: Schema.optionalKey( |
| 29345 | output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody, | 33242 | Schema.Union([ |
| 29346 | type: Schema.Literal("custom_tool_call_output").annotate({ | 33243 | Schema.String.annotate({ |
| 29347 | title: "CustomToolCallOutputResponseItemType", | 33244 | description: "Prompt text sent as part of the collab tool call, when available.", |
| | 33245 | }), |
| | 33246 | Schema.Null, |
| | 33247 | ]), |
| | 33248 | ), |
| | 33249 | reasoningEffort: Schema.optionalKey( |
| | 33250 | Schema.Union([V2TurnStartResponse__ReasoningEffort, Schema.Null]).annotate({ |
| | 33251 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| | 33252 | }), |
| | 33253 | ), |
| | 33254 | receiverThreadIds: Schema.Array(Schema.String).annotate({ |
| | 33255 | description: |
| | 33256 | "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.", |
| 29348 | }), | 33257 | }), |
| 29349 | }).annotate({ title: "CustomToolCallOutputResponseItem" }), | 33258 | senderThreadId: Schema.String.annotate({ |
| | 33259 | description: "Thread ID of the agent issuing the collab request.", |
| | 33260 | }), |
| | 33261 | status: Schema.suspend( |
| | 33262 | (): Schema.Codec<V2TurnStartResponse__CollabAgentToolCallStatus> => |
| | 33263 | V2TurnStartResponse__CollabAgentToolCallStatus, |
| | 33264 | ).annotate({ description: "Current status of the collab tool call." }), |
| | 33265 | tool: Schema.suspend( |
| | 33266 | (): Schema.Codec<V2TurnStartResponse__CollabAgentTool> => |
| | 33267 | V2TurnStartResponse__CollabAgentTool, |
| | 33268 | ).annotate({ description: "Name of the collab tool that was invoked." }), |
| | 33269 | type: Schema.Literal("collabAgentToolCall").annotate({ |
| | 33270 | title: "CollabAgentToolCallThreadItemType", |
| | 33271 | }), |
| | 33272 | }).annotate({ title: "CollabAgentToolCallThreadItem" }), |
| 29350 | Schema.Struct({ | 33273 | Schema.Struct({ |
| 29351 | call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 33274 | agentPath: Schema.String, |
| 29352 | execution: Schema.String, | 33275 | agentThreadId: Schema.String, |
| 29353 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 33276 | id: Schema.String, |
| 29354 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | 33277 | kind: V2TurnStartResponse__SubAgentActivityKind, |
| | 33278 | type: Schema.Literal("subAgentActivity").annotate({ |
| | 33279 | title: "SubAgentActivityThreadItemType", |
| | 33280 | }), |
| | 33281 | }).annotate({ title: "SubAgentActivityThreadItem" }), |
| | 33282 | Schema.Struct({ |
| | 33283 | action: Schema.optionalKey(Schema.Union([V2TurnStartResponse__WebSearchAction, Schema.Null])), |
| | 33284 | id: Schema.String, |
| | 33285 | query: Schema.String, |
| | 33286 | results: Schema.optionalKey( |
| 29355 | Schema.Union([ | 33287 | Schema.Union([ |
| 29356 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, | 33288 | Schema.Array(Schema.Json.annotate({ expected: "JSON value" })).annotate({ |
| | 33289 | description: |
| | 33290 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", |
| | 33291 | }), |
| 29357 | Schema.Null, | 33292 | Schema.Null, |
| 29358 | ]), | 33293 | ]), |
| 29359 | ), | 33294 | ), |
| | 33295 | type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }), |
| | 33296 | }).annotate({ title: "WebSearchThreadItem" }), |
| | 33297 | Schema.Struct({ |
| | 33298 | id: Schema.String, |
| | 33299 | path: V2TurnStartResponse__LegacyAppPathString, |
| | 33300 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| | 33301 | }).annotate({ title: "ImageViewThreadItem" }), |
| | 33302 | Schema.Struct({ |
| | 33303 | durationMs: Schema.Number.annotate({ format: "uint64" }) |
| | 33304 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 33305 | .check( |
| | 33306 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 33307 | expected: "a value greater than or equal to 0", |
| | 33308 | }), |
| | 33309 | ), |
| | 33310 | id: Schema.String, |
| | 33311 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), |
| | 33312 | }).annotate({ |
| | 33313 | title: "SleepThreadItem", |
| | 33314 | description: "Display item emitted by the interruptible `clock.sleep` tool.", |
| | 33315 | }), |
| | 33316 | Schema.Struct({ |
| | 33317 | id: Schema.String, |
| | 33318 | result: Schema.String, |
| | 33319 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 33320 | savedPath: Schema.optionalKey( |
| | 33321 | Schema.Union([V2TurnStartResponse__AbsolutePathBuf, Schema.Null]), |
| | 33322 | ), |
| 29360 | status: Schema.String, | 33323 | status: Schema.String, |
| 29361 | tools: Schema.Array(Schema.Unknown), | 33324 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 29362 | type: Schema.Literal("tool_search_output").annotate({ | 33325 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| 29363 | title: "ToolSearchOutputResponseItemType", | 33326 | Schema.Struct({ |
| | 33327 | id: Schema.String, |
| | 33328 | review: Schema.String, |
| | 33329 | type: Schema.Literal("enteredReviewMode").annotate({ |
| | 33330 | title: "EnteredReviewModeThreadItemType", |
| | 33331 | }), |
| | 33332 | }).annotate({ title: "EnteredReviewModeThreadItem" }), |
| | 33333 | Schema.Struct({ |
| | 33334 | id: Schema.String, |
| | 33335 | review: Schema.String, |
| | 33336 | type: Schema.Literal("exitedReviewMode").annotate({ |
| | 33337 | title: "ExitedReviewModeThreadItemType", |
| | 33338 | }), |
| | 33339 | }).annotate({ title: "ExitedReviewModeThreadItem" }), |
| | 33340 | Schema.Struct({ |
| | 33341 | id: Schema.String, |
| | 33342 | type: Schema.Literal("contextCompaction").annotate({ |
| | 33343 | title: "ContextCompactionThreadItemType", |
| | 33344 | }), |
| | 33345 | }).annotate({ title: "ContextCompactionThreadItem" }), |
| | 33346 | ], |
| | 33347 | { mode: "oneOf" }, |
| | 33348 | ).annotate({ identifier: "V2TurnStartResponse__ThreadItem" }); |
| | 33349 | |
| | 33350 | export type CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = { |
| | 33351 | readonly entries?: ReadonlyArray<CommandExecutionRequestApprovalParams__FileSystemSandboxEntry> | null; |
| | 33352 | readonly globScanMaxDepth?: number | null; |
| | 33353 | readonly read?: ReadonlyArray<CommandExecutionRequestApprovalParams__LegacyAppPathString> | null; |
| | 33354 | readonly write?: ReadonlyArray<CommandExecutionRequestApprovalParams__LegacyAppPathString> | null; |
| | 33355 | }; |
| | 33356 | export const CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = Schema.Struct( |
| | 33357 | { |
| | 33358 | entries: Schema.optionalKey( |
| | 33359 | Schema.Union([ |
| | 33360 | Schema.Array(CommandExecutionRequestApprovalParams__FileSystemSandboxEntry), |
| | 33361 | Schema.Null, |
| | 33362 | ]), |
| | 33363 | ), |
| | 33364 | globScanMaxDepth: Schema.optionalKey( |
| | 33365 | Schema.Union([ |
| | 33366 | Schema.Number.annotate({ format: "uint" }) |
| | 33367 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 33368 | .check( |
| | 33369 | Schema.isGreaterThanOrEqualTo(1).annotate({ |
| | 33370 | expected: "a value greater than or equal to 1", |
| | 33371 | }), |
| | 33372 | ), |
| | 33373 | Schema.Null, |
| | 33374 | ]), |
| | 33375 | ), |
| | 33376 | read: Schema.optionalKey( |
| | 33377 | Schema.Union([ |
| | 33378 | Schema.Array(CommandExecutionRequestApprovalParams__LegacyAppPathString).annotate({ |
| | 33379 | description: "This will be removed in favor of `entries`.", |
| | 33380 | }), |
| | 33381 | Schema.Null, |
| | 33382 | ]), |
| | 33383 | ), |
| | 33384 | write: Schema.optionalKey( |
| | 33385 | Schema.Union([ |
| | 33386 | Schema.Array(CommandExecutionRequestApprovalParams__LegacyAppPathString).annotate({ |
| | 33387 | description: "This will be removed in favor of `entries`.", |
| | 33388 | }), |
| | 33389 | Schema.Null, |
| | 33390 | ]), |
| | 33391 | ), |
| | 33392 | }, |
| | 33393 | ).annotate({ |
| | 33394 | identifier: "CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions", |
| | 33395 | }); |
| | 33396 | |
| | 33397 | export type McpServerElicitationRequestParams__McpElicitationEnumSchema = |
| | 33398 | | McpServerElicitationRequestParams__McpElicitationSingleSelectEnumSchema |
| | 33399 | | McpServerElicitationRequestParams__McpElicitationMultiSelectEnumSchema |
| | 33400 | | McpServerElicitationRequestParams__McpElicitationLegacyTitledEnumSchema; |
| | 33401 | export const McpServerElicitationRequestParams__McpElicitationEnumSchema = Schema.Union([ |
| | 33402 | McpServerElicitationRequestParams__McpElicitationSingleSelectEnumSchema, |
| | 33403 | McpServerElicitationRequestParams__McpElicitationMultiSelectEnumSchema, |
| | 33404 | McpServerElicitationRequestParams__McpElicitationLegacyTitledEnumSchema, |
| | 33405 | ]).annotate({ identifier: "McpServerElicitationRequestParams__McpElicitationEnumSchema" }); |
| | 33406 | |
| | 33407 | export type PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = { |
| | 33408 | readonly entries?: ReadonlyArray<PermissionsRequestApprovalParams__FileSystemSandboxEntry> | null; |
| | 33409 | readonly globScanMaxDepth?: number | null; |
| | 33410 | readonly read?: ReadonlyArray<PermissionsRequestApprovalParams__LegacyAppPathString> | null; |
| | 33411 | readonly write?: ReadonlyArray<PermissionsRequestApprovalParams__LegacyAppPathString> | null; |
| | 33412 | }; |
| | 33413 | export const PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = Schema.Struct({ |
| | 33414 | entries: Schema.optionalKey( |
| | 33415 | Schema.Union([ |
| | 33416 | Schema.Array(PermissionsRequestApprovalParams__FileSystemSandboxEntry), |
| | 33417 | Schema.Null, |
| | 33418 | ]), |
| | 33419 | ), |
| | 33420 | globScanMaxDepth: Schema.optionalKey( |
| | 33421 | Schema.Union([ |
| | 33422 | Schema.Number.annotate({ format: "uint" }) |
| | 33423 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 33424 | .check( |
| | 33425 | Schema.isGreaterThanOrEqualTo(1).annotate({ |
| | 33426 | expected: "a value greater than or equal to 1", |
| | 33427 | }), |
| | 33428 | ), |
| | 33429 | Schema.Null, |
| | 33430 | ]), |
| | 33431 | ), |
| | 33432 | read: Schema.optionalKey( |
| | 33433 | Schema.Union([ |
| | 33434 | Schema.Array(PermissionsRequestApprovalParams__LegacyAppPathString).annotate({ |
| | 33435 | description: "This will be removed in favor of `entries`.", |
| | 33436 | }), |
| | 33437 | Schema.Null, |
| | 33438 | ]), |
| | 33439 | ), |
| | 33440 | write: Schema.optionalKey( |
| | 33441 | Schema.Union([ |
| | 33442 | Schema.Array(PermissionsRequestApprovalParams__LegacyAppPathString).annotate({ |
| | 33443 | description: "This will be removed in favor of `entries`.", |
| | 33444 | }), |
| | 33445 | Schema.Null, |
| | 33446 | ]), |
| | 33447 | ), |
| | 33448 | }).annotate({ identifier: "PermissionsRequestApprovalParams__AdditionalFileSystemPermissions" }); |
| | 33449 | |
| | 33450 | export type PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions = { |
| | 33451 | readonly entries?: ReadonlyArray<PermissionsRequestApprovalResponse__FileSystemSandboxEntry> | null; |
| | 33452 | readonly globScanMaxDepth?: number | null; |
| | 33453 | readonly read?: ReadonlyArray<PermissionsRequestApprovalResponse__LegacyAppPathString> | null; |
| | 33454 | readonly write?: ReadonlyArray<PermissionsRequestApprovalResponse__LegacyAppPathString> | null; |
| | 33455 | }; |
| | 33456 | export const PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions = Schema.Struct({ |
| | 33457 | entries: Schema.optionalKey( |
| | 33458 | Schema.Union([ |
| | 33459 | Schema.Array(PermissionsRequestApprovalResponse__FileSystemSandboxEntry), |
| | 33460 | Schema.Null, |
| | 33461 | ]), |
| | 33462 | ), |
| | 33463 | globScanMaxDepth: Schema.optionalKey( |
| | 33464 | Schema.Union([ |
| | 33465 | Schema.Number.annotate({ format: "uint" }) |
| | 33466 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 33467 | .check( |
| | 33468 | Schema.isGreaterThanOrEqualTo(1).annotate({ |
| | 33469 | expected: "a value greater than or equal to 1", |
| | 33470 | }), |
| | 33471 | ), |
| | 33472 | Schema.Null, |
| | 33473 | ]), |
| | 33474 | ), |
| | 33475 | read: Schema.optionalKey( |
| | 33476 | Schema.Union([ |
| | 33477 | Schema.Array(PermissionsRequestApprovalResponse__LegacyAppPathString).annotate({ |
| | 33478 | description: "This will be removed in favor of `entries`.", |
| | 33479 | }), |
| | 33480 | Schema.Null, |
| | 33481 | ]), |
| | 33482 | ), |
| | 33483 | write: Schema.optionalKey( |
| | 33484 | Schema.Union([ |
| | 33485 | Schema.Array(PermissionsRequestApprovalResponse__LegacyAppPathString).annotate({ |
| | 33486 | description: "This will be removed in favor of `entries`.", |
| | 33487 | }), |
| | 33488 | Schema.Null, |
| | 33489 | ]), |
| | 33490 | ), |
| | 33491 | }).annotate({ identifier: "PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions" }); |
| | 33492 | |
| | 33493 | export type ServerNotification__Turn = { |
| | 33494 | readonly completedAt?: number | null; |
| | 33495 | readonly durationMs?: number | null; |
| | 33496 | readonly error?: ServerNotification__TurnError | null; |
| | 33497 | readonly id: string; |
| | 33498 | readonly items: ReadonlyArray<ServerNotification__ThreadItem>; |
| | 33499 | readonly itemsView?: ServerNotification__TurnItemsView; |
| | 33500 | readonly startedAt?: number | null; |
| | 33501 | readonly status: ServerNotification__TurnStatus; |
| | 33502 | }; |
| | 33503 | export const ServerNotification__Turn = Schema.Struct({ |
| | 33504 | completedAt: Schema.optionalKey( |
| | 33505 | Schema.Union([ |
| | 33506 | Schema.Number.annotate({ |
| | 33507 | description: "Unix timestamp (in seconds) when the turn completed.", |
| | 33508 | format: "int64", |
| | 33509 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 33510 | Schema.Null, |
| | 33511 | ]), |
| | 33512 | ), |
| | 33513 | durationMs: Schema.optionalKey( |
| | 33514 | Schema.Union([ |
| | 33515 | Schema.Number.annotate({ |
| | 33516 | description: "Duration between turn start and completion in milliseconds, if known.", |
| | 33517 | format: "int64", |
| | 33518 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 33519 | Schema.Null, |
| | 33520 | ]), |
| | 33521 | ), |
| | 33522 | error: Schema.optionalKey( |
| | 33523 | Schema.Union([ServerNotification__TurnError, Schema.Null]).annotate({ |
| | 33524 | description: "Only populated when the Turn's status is failed.", |
| | 33525 | }), |
| | 33526 | ), |
| | 33527 | id: Schema.String.annotate({ |
| | 33528 | description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.", |
| | 33529 | }), |
| | 33530 | items: Schema.Array(ServerNotification__ThreadItem).annotate({ |
| | 33531 | description: "Thread items currently included in this turn payload.", |
| | 33532 | }), |
| | 33533 | itemsView: Schema.optionalKey( |
| | 33534 | Schema.suspend( |
| | 33535 | (): Schema.Codec<ServerNotification__TurnItemsView> => ServerNotification__TurnItemsView, |
| | 33536 | ).annotate({ |
| | 33537 | description: "Describes how much of `items` has been loaded for this turn.", |
| | 33538 | default: "full", |
| | 33539 | }), |
| | 33540 | ), |
| | 33541 | startedAt: Schema.optionalKey( |
| | 33542 | Schema.Union([ |
| | 33543 | Schema.Number.annotate({ |
| | 33544 | description: "Unix timestamp (in seconds) when the turn started.", |
| | 33545 | format: "int64", |
| | 33546 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 33547 | Schema.Null, |
| | 33548 | ]), |
| | 33549 | ), |
| | 33550 | status: ServerNotification__TurnStatus, |
| | 33551 | }).annotate({ identifier: "ServerNotification__Turn" }); |
| | 33552 | |
| | 33553 | export type ServerNotification__ItemStartedNotification = { |
| | 33554 | readonly item: ServerNotification__ThreadItem; |
| | 33555 | readonly startedAtMs: number; |
| | 33556 | readonly threadId: string; |
| | 33557 | readonly turnId: string; |
| | 33558 | }; |
| | 33559 | export const ServerNotification__ItemStartedNotification = Schema.Struct({ |
| | 33560 | item: ServerNotification__ThreadItem, |
| | 33561 | startedAtMs: Schema.Number.annotate({ |
| | 33562 | description: "Unix timestamp (in milliseconds) when this item lifecycle started.", |
| | 33563 | format: "int64", |
| | 33564 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 33565 | threadId: Schema.String, |
| | 33566 | turnId: Schema.String, |
| | 33567 | }).annotate({ identifier: "ServerNotification__ItemStartedNotification" }); |
| | 33568 | |
| | 33569 | export type ServerNotification__ItemCompletedNotification = { |
| | 33570 | readonly completedAtMs: number; |
| | 33571 | readonly item: ServerNotification__ThreadItem; |
| | 33572 | readonly threadId: string; |
| | 33573 | readonly turnId: string; |
| | 33574 | }; |
| | 33575 | export const ServerNotification__ItemCompletedNotification = Schema.Struct({ |
| | 33576 | completedAtMs: Schema.Number.annotate({ |
| | 33577 | description: "Unix timestamp (in milliseconds) when this item lifecycle completed.", |
| | 33578 | format: "int64", |
| | 33579 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 33580 | item: ServerNotification__ThreadItem, |
| | 33581 | threadId: Schema.String, |
| | 33582 | turnId: Schema.String, |
| | 33583 | }).annotate({ identifier: "ServerNotification__ItemCompletedNotification" }); |
| | 33584 | |
| | 33585 | export type ServerNotification__AdditionalFileSystemPermissions = { |
| | 33586 | readonly entries?: ReadonlyArray<ServerNotification__FileSystemSandboxEntry> | null; |
| | 33587 | readonly globScanMaxDepth?: number | null; |
| | 33588 | readonly read?: ReadonlyArray<ServerNotification__LegacyAppPathString> | null; |
| | 33589 | readonly write?: ReadonlyArray<ServerNotification__LegacyAppPathString> | null; |
| | 33590 | }; |
| | 33591 | export const ServerNotification__AdditionalFileSystemPermissions = Schema.Struct({ |
| | 33592 | entries: Schema.optionalKey( |
| | 33593 | Schema.Union([Schema.Array(ServerNotification__FileSystemSandboxEntry), Schema.Null]), |
| | 33594 | ), |
| | 33595 | globScanMaxDepth: Schema.optionalKey( |
| | 33596 | Schema.Union([ |
| | 33597 | Schema.Number.annotate({ format: "uint" }) |
| | 33598 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 33599 | .check( |
| | 33600 | Schema.isGreaterThanOrEqualTo(1).annotate({ |
| | 33601 | expected: "a value greater than or equal to 1", |
| | 33602 | }), |
| | 33603 | ), |
| | 33604 | Schema.Null, |
| | 33605 | ]), |
| | 33606 | ), |
| | 33607 | read: Schema.optionalKey( |
| | 33608 | Schema.Union([ |
| | 33609 | Schema.Array(ServerNotification__LegacyAppPathString).annotate({ |
| | 33610 | description: "This will be removed in favor of `entries`.", |
| 29364 | }), | 33611 | }), |
| 29365 | }).annotate({ title: "ToolSearchOutputResponseItem" }), | 33612 | Schema.Null, |
| 29366 | Schema.Struct({ | 33613 | ]), |
| 29367 | action: Schema.optionalKey( | 33614 | ), |
| 29368 | Schema.Union([ | 33615 | write: Schema.optionalKey( |
| 29369 | V2RawResponseItemCompletedNotification__ResponsesApiWebSearchAction, | 33616 | Schema.Union([ |
| 29370 | Schema.Null, | 33617 | Schema.Array(ServerNotification__LegacyAppPathString).annotate({ |
| 29371 | ]), | 33618 | description: "This will be removed in favor of `entries`.", |
| 29372 | ), | | |
| 29373 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 29374 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | | |
| 29375 | Schema.Union([ | | |
| 29376 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, | | |
| 29377 | Schema.Null, | | |
| 29378 | ]), | | |
| 29379 | ), | | |
| 29380 | status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 29381 | type: Schema.Literal("web_search_call").annotate({ title: "WebSearchCallResponseItemType" }), | | |
| 29382 | }).annotate({ title: "WebSearchCallResponseItem" }), | | |
| 29383 | Schema.Struct({ | | |
| 29384 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 29385 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | | |
| 29386 | Schema.Union([ | | |
| 29387 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, | | |
| 29388 | Schema.Null, | | |
| 29389 | ]), | | |
| 29390 | ), | | |
| 29391 | result: Schema.String, | | |
| 29392 | revised_prompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 29393 | status: Schema.String, | | |
| 29394 | type: Schema.Literal("image_generation_call").annotate({ | | |
| 29395 | title: "ImageGenerationCallResponseItemType", | | |
| 29396 | }), | 33619 | }), |
| 29397 | }).annotate({ title: "ImageGenerationCallResponseItem" }), | 33620 | Schema.Null, |
| 29398 | Schema.Struct({ | 33621 | ]), |
| 29399 | encrypted_content: Schema.String, | 33622 | ), |
| 29400 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 33623 | }).annotate({ identifier: "ServerNotification__AdditionalFileSystemPermissions" }); |
| 29401 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | 33624 | |
| 29402 | Schema.Union([ | 33625 | export type ServerNotification__ThreadSettingsUpdatedNotification = { |
| 29403 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, | 33626 | readonly threadId: string; |
| 29404 | Schema.Null, | 33627 | readonly threadSettings: ServerNotification__ThreadSettings; |
| 29405 | ]), | 33628 | }; |
| 29406 | ), | 33629 | export const ServerNotification__ThreadSettingsUpdatedNotification = Schema.Struct({ |
| 29407 | type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }), | 33630 | threadId: Schema.String, |
| 29408 | }).annotate({ title: "CompactionResponseItem" }), | 33631 | threadSettings: ServerNotification__ThreadSettings, |
| 29409 | Schema.Struct({ | 33632 | }).annotate({ identifier: "ServerNotification__ThreadSettingsUpdatedNotification" }); |
| 29410 | type: Schema.Literal("compaction_trigger").annotate({ | 33633 | |
| 29411 | title: "CompactionTriggerResponseItemType", | 33634 | export type ServerRequest__AdditionalFileSystemPermissions = { |
| | 33635 | readonly entries?: ReadonlyArray<ServerRequest__FileSystemSandboxEntry> | null; |
| | 33636 | readonly globScanMaxDepth?: number | null; |
| | 33637 | readonly read?: ReadonlyArray<ServerRequest__LegacyAppPathString> | null; |
| | 33638 | readonly write?: ReadonlyArray<ServerRequest__LegacyAppPathString> | null; |
| | 33639 | }; |
| | 33640 | export const ServerRequest__AdditionalFileSystemPermissions = Schema.Struct({ |
| | 33641 | entries: Schema.optionalKey( |
| | 33642 | Schema.Union([Schema.Array(ServerRequest__FileSystemSandboxEntry), Schema.Null]), |
| | 33643 | ), |
| | 33644 | globScanMaxDepth: Schema.optionalKey( |
| | 33645 | Schema.Union([ |
| | 33646 | Schema.Number.annotate({ format: "uint" }) |
| | 33647 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 33648 | .check( |
| | 33649 | Schema.isGreaterThanOrEqualTo(1).annotate({ |
| | 33650 | expected: "a value greater than or equal to 1", |
| | 33651 | }), |
| | 33652 | ), |
| | 33653 | Schema.Null, |
| | 33654 | ]), |
| | 33655 | ), |
| | 33656 | read: Schema.optionalKey( |
| | 33657 | Schema.Union([ |
| | 33658 | Schema.Array(ServerRequest__LegacyAppPathString).annotate({ |
| | 33659 | description: "This will be removed in favor of `entries`.", |
| 29412 | }), | 33660 | }), |
| 29413 | }).annotate({ title: "CompactionTriggerResponseItem" }), | 33661 | Schema.Null, |
| 29414 | Schema.Struct({ | 33662 | ]), |
| 29415 | encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 33663 | ), |
| 29416 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 33664 | write: Schema.optionalKey( |
| 29417 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | 33665 | Schema.Union([ |
| 29418 | Schema.Union([ | 33666 | Schema.Array(ServerRequest__LegacyAppPathString).annotate({ |
| 29419 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, | 33667 | description: "This will be removed in favor of `entries`.", |
| 29420 | Schema.Null, | | |
| 29421 | ]), | | |
| 29422 | ), | | |
| 29423 | type: Schema.Literal("context_compaction").annotate({ | | |
| 29424 | title: "ContextCompactionResponseItemType", | | |
| 29425 | }), | 33668 | }), |
| 29426 | }).annotate({ title: "ContextCompactionResponseItem" }), | 33669 | Schema.Null, |
| 29427 | Schema.Struct({ | 33670 | ]), |
| 29428 | type: Schema.Literal("other").annotate({ title: "OtherResponseItemType" }), | 33671 | ), |
| 29429 | }).annotate({ title: "OtherResponseItem" }), | 33672 | }).annotate({ identifier: "ServerRequest__AdditionalFileSystemPermissions" }); |
| 29430 | ], | 33673 | |
| 29431 | { mode: "oneOf" }, | 33674 | export type ServerRequest__McpElicitationEnumSchema = |
| 29432 | ); | 33675 | | ServerRequest__McpElicitationSingleSelectEnumSchema |
| | 33676 | | ServerRequest__McpElicitationMultiSelectEnumSchema |
| | 33677 | | ServerRequest__McpElicitationLegacyTitledEnumSchema; |
| | 33678 | export const ServerRequest__McpElicitationEnumSchema = Schema.Union([ |
| | 33679 | ServerRequest__McpElicitationSingleSelectEnumSchema, |
| | 33680 | ServerRequest__McpElicitationMultiSelectEnumSchema, |
| | 33681 | ServerRequest__McpElicitationLegacyTitledEnumSchema, |
| | 33682 | ]).annotate({ identifier: "ServerRequest__McpElicitationEnumSchema" }); |
| | 33683 | |
| | 33684 | export type V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions = { |
| | 33685 | readonly entries?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry> | null; |
| | 33686 | readonly globScanMaxDepth?: number | null; |
| | 33687 | readonly read?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString> | null; |
| | 33688 | readonly write?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString> | null; |
| | 33689 | }; |
| | 33690 | export const V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions = |
| | 33691 | Schema.Struct({ |
| | 33692 | entries: Schema.optionalKey( |
| | 33693 | Schema.Union([ |
| | 33694 | Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry), |
| | 33695 | Schema.Null, |
| | 33696 | ]), |
| | 33697 | ), |
| | 33698 | globScanMaxDepth: Schema.optionalKey( |
| | 33699 | Schema.Union([ |
| | 33700 | Schema.Number.annotate({ format: "uint" }) |
| | 33701 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 33702 | .check( |
| | 33703 | Schema.isGreaterThanOrEqualTo(1).annotate({ |
| | 33704 | expected: "a value greater than or equal to 1", |
| | 33705 | }), |
| | 33706 | ), |
| | 33707 | Schema.Null, |
| | 33708 | ]), |
| | 33709 | ), |
| | 33710 | read: Schema.optionalKey( |
| | 33711 | Schema.Union([ |
| | 33712 | Schema.Array( |
| | 33713 | V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString, |
| | 33714 | ).annotate({ description: "This will be removed in favor of `entries`." }), |
| | 33715 | Schema.Null, |
| | 33716 | ]), |
| | 33717 | ), |
| | 33718 | write: Schema.optionalKey( |
| | 33719 | Schema.Union([ |
| | 33720 | Schema.Array( |
| | 33721 | V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString, |
| | 33722 | ).annotate({ description: "This will be removed in favor of `entries`." }), |
| | 33723 | Schema.Null, |
| | 33724 | ]), |
| | 33725 | ), |
| | 33726 | }).annotate({ |
| | 33727 | identifier: |
| | 33728 | "V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions", |
| | 33729 | }); |
| | 33730 | |
| | 33731 | export type V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions = { |
| | 33732 | readonly entries?: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry> | null; |
| | 33733 | readonly globScanMaxDepth?: number | null; |
| | 33734 | readonly read?: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString> | null; |
| | 33735 | readonly write?: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString> | null; |
| | 33736 | }; |
| | 33737 | export const V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions = |
| | 33738 | Schema.Struct({ |
| | 33739 | entries: Schema.optionalKey( |
| | 33740 | Schema.Union([ |
| | 33741 | Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry), |
| | 33742 | Schema.Null, |
| | 33743 | ]), |
| | 33744 | ), |
| | 33745 | globScanMaxDepth: Schema.optionalKey( |
| | 33746 | Schema.Union([ |
| | 33747 | Schema.Number.annotate({ format: "uint" }) |
| | 33748 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 33749 | .check( |
| | 33750 | Schema.isGreaterThanOrEqualTo(1).annotate({ |
| | 33751 | expected: "a value greater than or equal to 1", |
| | 33752 | }), |
| | 33753 | ), |
| | 33754 | Schema.Null, |
| | 33755 | ]), |
| | 33756 | ), |
| | 33757 | read: Schema.optionalKey( |
| | 33758 | Schema.Union([ |
| | 33759 | Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString).annotate( |
| | 33760 | { description: "This will be removed in favor of `entries`." }, |
| | 33761 | ), |
| | 33762 | Schema.Null, |
| | 33763 | ]), |
| | 33764 | ), |
| | 33765 | write: Schema.optionalKey( |
| | 33766 | Schema.Union([ |
| | 33767 | Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString).annotate( |
| | 33768 | { description: "This will be removed in favor of `entries`." }, |
| | 33769 | ), |
| | 33770 | Schema.Null, |
| | 33771 | ]), |
| | 33772 | ), |
| | 33773 | }).annotate({ |
| | 33774 | identifier: "V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions", |
| | 33775 | }); |
| | 33776 | |
| | 33777 | export type V2PluginInstalledResponse__PluginMarketplaceEntry = { |
| | 33778 | readonly interface?: V2PluginInstalledResponse__MarketplaceInterface | null; |
| | 33779 | readonly name: string; |
| | 33780 | readonly path?: V2PluginInstalledResponse__AbsolutePathBuf | null; |
| | 33781 | readonly plugins: ReadonlyArray<V2PluginInstalledResponse__PluginSummary>; |
| | 33782 | }; |
| | 33783 | export const V2PluginInstalledResponse__PluginMarketplaceEntry = Schema.Struct({ |
| | 33784 | interface: Schema.optionalKey( |
| | 33785 | Schema.Union([V2PluginInstalledResponse__MarketplaceInterface, Schema.Null]), |
| | 33786 | ), |
| | 33787 | name: Schema.String, |
| | 33788 | path: Schema.optionalKey( |
| | 33789 | Schema.Union([V2PluginInstalledResponse__AbsolutePathBuf, Schema.Null]).annotate({ |
| | 33790 | description: |
| | 33791 | "Local marketplace file path when the marketplace is backed by a local file. Remote-only catalog marketplaces do not have a local path.", |
| | 33792 | }), |
| | 33793 | ), |
| | 33794 | plugins: Schema.Array(V2PluginInstalledResponse__PluginSummary), |
| | 33795 | }).annotate({ identifier: "V2PluginInstalledResponse__PluginMarketplaceEntry" }); |
| | 33796 | |
| | 33797 | export type V2PluginListResponse__PluginMarketplaceEntry = { |
| | 33798 | readonly interface?: V2PluginListResponse__MarketplaceInterface | null; |
| | 33799 | readonly name: string; |
| | 33800 | readonly path?: V2PluginListResponse__AbsolutePathBuf | null; |
| | 33801 | readonly plugins: ReadonlyArray<V2PluginListResponse__PluginSummary>; |
| | 33802 | }; |
| | 33803 | export const V2PluginListResponse__PluginMarketplaceEntry = Schema.Struct({ |
| | 33804 | interface: Schema.optionalKey( |
| | 33805 | Schema.Union([V2PluginListResponse__MarketplaceInterface, Schema.Null]), |
| | 33806 | ), |
| | 33807 | name: Schema.String, |
| | 33808 | path: Schema.optionalKey( |
| | 33809 | Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null]).annotate({ |
| | 33810 | description: |
| | 33811 | "Local marketplace file path when the marketplace is backed by a local file. Remote-only catalog marketplaces do not have a local path.", |
| | 33812 | }), |
| | 33813 | ), |
| | 33814 | plugins: Schema.Array(V2PluginListResponse__PluginSummary), |
| | 33815 | }).annotate({ identifier: "V2PluginListResponse__PluginMarketplaceEntry" }); |
| | 33816 | |
| | 33817 | export type V2PluginReadResponse__PluginDetail = { |
| | 33818 | readonly appTemplates: ReadonlyArray<V2PluginReadResponse__AppTemplateSummary>; |
| | 33819 | readonly apps: ReadonlyArray<V2PluginReadResponse__AppSummary>; |
| | 33820 | readonly description?: string | null; |
| | 33821 | readonly hooks: ReadonlyArray<V2PluginReadResponse__PluginHookSummary>; |
| | 33822 | readonly marketplaceName: string; |
| | 33823 | readonly marketplacePath?: V2PluginReadResponse__AbsolutePathBuf | null; |
| | 33824 | readonly mcpServers: ReadonlyArray<string>; |
| | 33825 | readonly scheduledTasks?: ReadonlyArray<V2PluginReadResponse__ScheduledTaskSummary> | null; |
| | 33826 | readonly shareUrl?: string | null; |
| | 33827 | readonly skills: ReadonlyArray<V2PluginReadResponse__SkillSummary>; |
| | 33828 | readonly summary: V2PluginReadResponse__PluginSummary; |
| | 33829 | }; |
| | 33830 | export const V2PluginReadResponse__PluginDetail = Schema.Struct({ |
| | 33831 | appTemplates: Schema.Array(V2PluginReadResponse__AppTemplateSummary), |
| | 33832 | apps: Schema.Array(V2PluginReadResponse__AppSummary), |
| | 33833 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 33834 | hooks: Schema.Array(V2PluginReadResponse__PluginHookSummary), |
| | 33835 | marketplaceName: Schema.String, |
| | 33836 | marketplacePath: Schema.optionalKey( |
| | 33837 | Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null]), |
| | 33838 | ), |
| | 33839 | mcpServers: Schema.Array(Schema.String), |
| | 33840 | scheduledTasks: Schema.optionalKey( |
| | 33841 | Schema.Union([Schema.Array(V2PluginReadResponse__ScheduledTaskSummary), Schema.Null]), |
| | 33842 | ), |
| | 33843 | shareUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 33844 | skills: Schema.Array(V2PluginReadResponse__SkillSummary), |
| | 33845 | summary: V2PluginReadResponse__PluginSummary, |
| | 33846 | }).annotate({ identifier: "V2PluginReadResponse__PluginDetail" }); |
| | 33847 | |
| | 33848 | export type V2PluginShareListResponse__PluginShareListItem = { |
| | 33849 | readonly localPluginPath?: V2PluginShareListResponse__AbsolutePathBuf | null; |
| | 33850 | readonly plugin: V2PluginShareListResponse__PluginSummary; |
| | 33851 | }; |
| | 33852 | export const V2PluginShareListResponse__PluginShareListItem = Schema.Struct({ |
| | 33853 | localPluginPath: Schema.optionalKey( |
| | 33854 | Schema.Union([V2PluginShareListResponse__AbsolutePathBuf, Schema.Null]), |
| | 33855 | ), |
| | 33856 | plugin: V2PluginShareListResponse__PluginSummary, |
| | 33857 | }).annotate({ identifier: "V2PluginShareListResponse__PluginShareListItem" }); |
| 29433 | | 33858 | |
| 29434 | export type V2ReviewStartResponse__Turn = { | 33859 | export type V2ReviewStartResponse__Turn = { |
| 29435 | readonly completedAt?: number | null; | 33860 | readonly completedAt?: number | null; |
| ... | @@ -29437,7 +33862,7 @@ export type V2ReviewStartResponse__Turn = { | ... | @@ -29437,7 +33862,7 @@ export type V2ReviewStartResponse__Turn = { |
| 29437 | readonly error?: V2ReviewStartResponse__TurnError | null; | 33862 | readonly error?: V2ReviewStartResponse__TurnError | null; |
| 29438 | readonly id: string; | 33863 | readonly id: string; |
| 29439 | readonly items: ReadonlyArray<V2ReviewStartResponse__ThreadItem>; | 33864 | readonly items: ReadonlyArray<V2ReviewStartResponse__ThreadItem>; |
| 29440 | readonly itemsView?: "notLoaded" | "summary" | "full"; | 33865 | readonly itemsView?: V2ReviewStartResponse__TurnItemsView; |
| 29441 | readonly startedAt?: number | null; | 33866 | readonly startedAt?: number | null; |
| 29442 | readonly status: V2ReviewStartResponse__TurnStatus; | 33867 | readonly status: V2ReviewStartResponse__TurnStatus; |
| 29443 | }; | 33868 | }; |
| ... | @@ -29447,7 +33872,7 @@ export const V2ReviewStartResponse__Turn = Schema.Struct({ | ... | @@ -29447,7 +33872,7 @@ export const V2ReviewStartResponse__Turn = Schema.Struct({ |
| 29447 | Schema.Number.annotate({ | 33872 | Schema.Number.annotate({ |
| 29448 | description: "Unix timestamp (in seconds) when the turn completed.", | 33873 | description: "Unix timestamp (in seconds) when the turn completed.", |
| 29449 | format: "int64", | 33874 | format: "int64", |
| 29450 | }).check(Schema.isInt()), | 33875 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29451 | Schema.Null, | 33876 | Schema.Null, |
| 29452 | ]), | 33877 | ]), |
| 29453 | ), | 33878 | ), |
| ... | @@ -29456,7 +33881,7 @@ export const V2ReviewStartResponse__Turn = Schema.Struct({ | ... | @@ -29456,7 +33881,7 @@ export const V2ReviewStartResponse__Turn = Schema.Struct({ |
| 29456 | Schema.Number.annotate({ | 33881 | Schema.Number.annotate({ |
| 29457 | description: "Duration between turn start and completion in milliseconds, if known.", | 33882 | description: "Duration between turn start and completion in milliseconds, if known.", |
| 29458 | format: "int64", | 33883 | format: "int64", |
| 29459 | }).check(Schema.isInt()), | 33884 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29460 | Schema.Null, | 33885 | Schema.Null, |
| 29461 | ]), | 33886 | ]), |
| 29462 | ), | 33887 | ), |
| ... | @@ -29472,7 +33897,10 @@ export const V2ReviewStartResponse__Turn = Schema.Struct({ | ... | @@ -29472,7 +33897,10 @@ export const V2ReviewStartResponse__Turn = Schema.Struct({ |
| 29472 | description: "Thread items currently included in this turn payload.", | 33897 | description: "Thread items currently included in this turn payload.", |
| 29473 | }), | 33898 | }), |
| 29474 | itemsView: Schema.optionalKey( | 33899 | itemsView: Schema.optionalKey( |
| 29475 | Schema.Literals(["notLoaded", "summary", "full"]).annotate({ | 33900 | Schema.suspend( |
| | 33901 | (): Schema.Codec<V2ReviewStartResponse__TurnItemsView> => |
| | 33902 | V2ReviewStartResponse__TurnItemsView, |
| | 33903 | ).annotate({ |
| 29476 | description: "Describes how much of `items` has been loaded for this turn.", | 33904 | description: "Describes how much of `items` has been loaded for this turn.", |
| 29477 | default: "full", | 33905 | default: "full", |
| 29478 | }), | 33906 | }), |
| ... | @@ -29482,23 +33910,12 @@ export const V2ReviewStartResponse__Turn = Schema.Struct({ | ... | @@ -29482,23 +33910,12 @@ export const V2ReviewStartResponse__Turn = Schema.Struct({ |
| 29482 | Schema.Number.annotate({ | 33910 | Schema.Number.annotate({ |
| 29483 | description: "Unix timestamp (in seconds) when the turn started.", | 33911 | description: "Unix timestamp (in seconds) when the turn started.", |
| 29484 | format: "int64", | 33912 | format: "int64", |
| 29485 | }).check(Schema.isInt()), | 33913 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29486 | Schema.Null, | 33914 | Schema.Null, |
| 29487 | ]), | 33915 | ]), |
| 29488 | ), | 33916 | ), |
| 29489 | status: V2ReviewStartResponse__TurnStatus, | 33917 | status: V2ReviewStartResponse__TurnStatus, |
| 29490 | }); | 33918 | }).annotate({ identifier: "V2ReviewStartResponse__Turn" }); |
| 29491 | | | |
| 29492 | export type V2SkillsListResponse__SkillsListEntry = { | | |
| 29493 | readonly cwd: string; | | |
| 29494 | readonly errors: ReadonlyArray<V2SkillsListResponse__SkillErrorInfo>; | | |
| 29495 | readonly skills: ReadonlyArray<V2SkillsListResponse__SkillMetadata>; | | |
| 29496 | }; | | |
| 29497 | export const V2SkillsListResponse__SkillsListEntry = Schema.Struct({ | | |
| 29498 | cwd: Schema.String, | | |
| 29499 | errors: Schema.Array(V2SkillsListResponse__SkillErrorInfo), | | |
| 29500 | skills: Schema.Array(V2SkillsListResponse__SkillMetadata), | | |
| 29501 | }); | | |
| 29502 | | 33919 | |
| 29503 | export type V2ThreadForkResponse__Turn = { | 33920 | export type V2ThreadForkResponse__Turn = { |
| 29504 | readonly completedAt?: number | null; | 33921 | readonly completedAt?: number | null; |
| ... | @@ -29506,7 +33923,7 @@ export type V2ThreadForkResponse__Turn = { | ... | @@ -29506,7 +33923,7 @@ export type V2ThreadForkResponse__Turn = { |
| 29506 | readonly error?: V2ThreadForkResponse__TurnError | null; | 33923 | readonly error?: V2ThreadForkResponse__TurnError | null; |
| 29507 | readonly id: string; | 33924 | readonly id: string; |
| 29508 | readonly items: ReadonlyArray<V2ThreadForkResponse__ThreadItem>; | 33925 | readonly items: ReadonlyArray<V2ThreadForkResponse__ThreadItem>; |
| 29509 | readonly itemsView?: "notLoaded" | "summary" | "full"; | 33926 | readonly itemsView?: V2ThreadForkResponse__TurnItemsView; |
| 29510 | readonly startedAt?: number | null; | 33927 | readonly startedAt?: number | null; |
| 29511 | readonly status: V2ThreadForkResponse__TurnStatus; | 33928 | readonly status: V2ThreadForkResponse__TurnStatus; |
| 29512 | }; | 33929 | }; |
| ... | @@ -29516,7 +33933,7 @@ export const V2ThreadForkResponse__Turn = Schema.Struct({ | ... | @@ -29516,7 +33933,7 @@ export const V2ThreadForkResponse__Turn = Schema.Struct({ |
| 29516 | Schema.Number.annotate({ | 33933 | Schema.Number.annotate({ |
| 29517 | description: "Unix timestamp (in seconds) when the turn completed.", | 33934 | description: "Unix timestamp (in seconds) when the turn completed.", |
| 29518 | format: "int64", | 33935 | format: "int64", |
| 29519 | }).check(Schema.isInt()), | 33936 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29520 | Schema.Null, | 33937 | Schema.Null, |
| 29521 | ]), | 33938 | ]), |
| 29522 | ), | 33939 | ), |
| ... | @@ -29525,7 +33942,7 @@ export const V2ThreadForkResponse__Turn = Schema.Struct({ | ... | @@ -29525,7 +33942,7 @@ export const V2ThreadForkResponse__Turn = Schema.Struct({ |
| 29525 | Schema.Number.annotate({ | 33942 | Schema.Number.annotate({ |
| 29526 | description: "Duration between turn start and completion in milliseconds, if known.", | 33943 | description: "Duration between turn start and completion in milliseconds, if known.", |
| 29527 | format: "int64", | 33944 | format: "int64", |
| 29528 | }).check(Schema.isInt()), | 33945 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29529 | Schema.Null, | 33946 | Schema.Null, |
| 29530 | ]), | 33947 | ]), |
| 29531 | ), | 33948 | ), |
| ... | @@ -29541,7 +33958,9 @@ export const V2ThreadForkResponse__Turn = Schema.Struct({ | ... | @@ -29541,7 +33958,9 @@ export const V2ThreadForkResponse__Turn = Schema.Struct({ |
| 29541 | description: "Thread items currently included in this turn payload.", | 33958 | description: "Thread items currently included in this turn payload.", |
| 29542 | }), | 33959 | }), |
| 29543 | itemsView: Schema.optionalKey( | 33960 | itemsView: Schema.optionalKey( |
| 29544 | Schema.Literals(["notLoaded", "summary", "full"]).annotate({ | 33961 | Schema.suspend( |
| | 33962 | (): Schema.Codec<V2ThreadForkResponse__TurnItemsView> => V2ThreadForkResponse__TurnItemsView, |
| | 33963 | ).annotate({ |
| 29545 | description: "Describes how much of `items` has been loaded for this turn.", | 33964 | description: "Describes how much of `items` has been loaded for this turn.", |
| 29546 | default: "full", | 33965 | default: "full", |
| 29547 | }), | 33966 | }), |
| ... | @@ -29551,12 +33970,12 @@ export const V2ThreadForkResponse__Turn = Schema.Struct({ | ... | @@ -29551,12 +33970,12 @@ export const V2ThreadForkResponse__Turn = Schema.Struct({ |
| 29551 | Schema.Number.annotate({ | 33970 | Schema.Number.annotate({ |
| 29552 | description: "Unix timestamp (in seconds) when the turn started.", | 33971 | description: "Unix timestamp (in seconds) when the turn started.", |
| 29553 | format: "int64", | 33972 | format: "int64", |
| 29554 | }).check(Schema.isInt()), | 33973 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29555 | Schema.Null, | 33974 | Schema.Null, |
| 29556 | ]), | 33975 | ]), |
| 29557 | ), | 33976 | ), |
| 29558 | status: V2ThreadForkResponse__TurnStatus, | 33977 | status: V2ThreadForkResponse__TurnStatus, |
| 29559 | }); | 33978 | }).annotate({ identifier: "V2ThreadForkResponse__Turn" }); |
| 29560 | | 33979 | |
| 29561 | export type V2ThreadListResponse__Turn = { | 33980 | export type V2ThreadListResponse__Turn = { |
| 29562 | readonly completedAt?: number | null; | 33981 | readonly completedAt?: number | null; |
| ... | @@ -29564,7 +33983,7 @@ export type V2ThreadListResponse__Turn = { | ... | @@ -29564,7 +33983,7 @@ export type V2ThreadListResponse__Turn = { |
| 29564 | readonly error?: V2ThreadListResponse__TurnError | null; | 33983 | readonly error?: V2ThreadListResponse__TurnError | null; |
| 29565 | readonly id: string; | 33984 | readonly id: string; |
| 29566 | readonly items: ReadonlyArray<V2ThreadListResponse__ThreadItem>; | 33985 | readonly items: ReadonlyArray<V2ThreadListResponse__ThreadItem>; |
| 29567 | readonly itemsView?: "notLoaded" | "summary" | "full"; | 33986 | readonly itemsView?: V2ThreadListResponse__TurnItemsView; |
| 29568 | readonly startedAt?: number | null; | 33987 | readonly startedAt?: number | null; |
| 29569 | readonly status: V2ThreadListResponse__TurnStatus; | 33988 | readonly status: V2ThreadListResponse__TurnStatus; |
| 29570 | }; | 33989 | }; |
| ... | @@ -29574,7 +33993,7 @@ export const V2ThreadListResponse__Turn = Schema.Struct({ | ... | @@ -29574,7 +33993,7 @@ export const V2ThreadListResponse__Turn = Schema.Struct({ |
| 29574 | Schema.Number.annotate({ | 33993 | Schema.Number.annotate({ |
| 29575 | description: "Unix timestamp (in seconds) when the turn completed.", | 33994 | description: "Unix timestamp (in seconds) when the turn completed.", |
| 29576 | format: "int64", | 33995 | format: "int64", |
| 29577 | }).check(Schema.isInt()), | 33996 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29578 | Schema.Null, | 33997 | Schema.Null, |
| 29579 | ]), | 33998 | ]), |
| 29580 | ), | 33999 | ), |
| ... | @@ -29583,7 +34002,7 @@ export const V2ThreadListResponse__Turn = Schema.Struct({ | ... | @@ -29583,7 +34002,7 @@ export const V2ThreadListResponse__Turn = Schema.Struct({ |
| 29583 | Schema.Number.annotate({ | 34002 | Schema.Number.annotate({ |
| 29584 | description: "Duration between turn start and completion in milliseconds, if known.", | 34003 | description: "Duration between turn start and completion in milliseconds, if known.", |
| 29585 | format: "int64", | 34004 | format: "int64", |
| 29586 | }).check(Schema.isInt()), | 34005 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29587 | Schema.Null, | 34006 | Schema.Null, |
| 29588 | ]), | 34007 | ]), |
| 29589 | ), | 34008 | ), |
| ... | @@ -29599,7 +34018,9 @@ export const V2ThreadListResponse__Turn = Schema.Struct({ | ... | @@ -29599,7 +34018,9 @@ export const V2ThreadListResponse__Turn = Schema.Struct({ |
| 29599 | description: "Thread items currently included in this turn payload.", | 34018 | description: "Thread items currently included in this turn payload.", |
| 29600 | }), | 34019 | }), |
| 29601 | itemsView: Schema.optionalKey( | 34020 | itemsView: Schema.optionalKey( |
| 29602 | Schema.Literals(["notLoaded", "summary", "full"]).annotate({ | 34021 | Schema.suspend( |
| | 34022 | (): Schema.Codec<V2ThreadListResponse__TurnItemsView> => V2ThreadListResponse__TurnItemsView, |
| | 34023 | ).annotate({ |
| 29603 | description: "Describes how much of `items` has been loaded for this turn.", | 34024 | description: "Describes how much of `items` has been loaded for this turn.", |
| 29604 | default: "full", | 34025 | default: "full", |
| 29605 | }), | 34026 | }), |
| ... | @@ -29609,12 +34030,12 @@ export const V2ThreadListResponse__Turn = Schema.Struct({ | ... | @@ -29609,12 +34030,12 @@ export const V2ThreadListResponse__Turn = Schema.Struct({ |
| 29609 | Schema.Number.annotate({ | 34030 | Schema.Number.annotate({ |
| 29610 | description: "Unix timestamp (in seconds) when the turn started.", | 34031 | description: "Unix timestamp (in seconds) when the turn started.", |
| 29611 | format: "int64", | 34032 | format: "int64", |
| 29612 | }).check(Schema.isInt()), | 34033 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29613 | Schema.Null, | 34034 | Schema.Null, |
| 29614 | ]), | 34035 | ]), |
| 29615 | ), | 34036 | ), |
| 29616 | status: V2ThreadListResponse__TurnStatus, | 34037 | status: V2ThreadListResponse__TurnStatus, |
| 29617 | }); | 34038 | }).annotate({ identifier: "V2ThreadListResponse__Turn" }); |
| 29618 | | 34039 | |
| 29619 | export type V2ThreadMetadataUpdateResponse__Turn = { | 34040 | export type V2ThreadMetadataUpdateResponse__Turn = { |
| 29620 | readonly completedAt?: number | null; | 34041 | readonly completedAt?: number | null; |
| ... | @@ -29622,7 +34043,7 @@ export type V2ThreadMetadataUpdateResponse__Turn = { | ... | @@ -29622,7 +34043,7 @@ export type V2ThreadMetadataUpdateResponse__Turn = { |
| 29622 | readonly error?: V2ThreadMetadataUpdateResponse__TurnError | null; | 34043 | readonly error?: V2ThreadMetadataUpdateResponse__TurnError | null; |
| 29623 | readonly id: string; | 34044 | readonly id: string; |
| 29624 | readonly items: ReadonlyArray<V2ThreadMetadataUpdateResponse__ThreadItem>; | 34045 | readonly items: ReadonlyArray<V2ThreadMetadataUpdateResponse__ThreadItem>; |
| 29625 | readonly itemsView?: "notLoaded" | "summary" | "full"; | 34046 | readonly itemsView?: V2ThreadMetadataUpdateResponse__TurnItemsView; |
| 29626 | readonly startedAt?: number | null; | 34047 | readonly startedAt?: number | null; |
| 29627 | readonly status: V2ThreadMetadataUpdateResponse__TurnStatus; | 34048 | readonly status: V2ThreadMetadataUpdateResponse__TurnStatus; |
| 29628 | }; | 34049 | }; |
| ... | @@ -29632,7 +34053,7 @@ export const V2ThreadMetadataUpdateResponse__Turn = Schema.Struct({ | ... | @@ -29632,7 +34053,7 @@ export const V2ThreadMetadataUpdateResponse__Turn = Schema.Struct({ |
| 29632 | Schema.Number.annotate({ | 34053 | Schema.Number.annotate({ |
| 29633 | description: "Unix timestamp (in seconds) when the turn completed.", | 34054 | description: "Unix timestamp (in seconds) when the turn completed.", |
| 29634 | format: "int64", | 34055 | format: "int64", |
| 29635 | }).check(Schema.isInt()), | 34056 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29636 | Schema.Null, | 34057 | Schema.Null, |
| 29637 | ]), | 34058 | ]), |
| 29638 | ), | 34059 | ), |
| ... | @@ -29641,7 +34062,7 @@ export const V2ThreadMetadataUpdateResponse__Turn = Schema.Struct({ | ... | @@ -29641,7 +34062,7 @@ export const V2ThreadMetadataUpdateResponse__Turn = Schema.Struct({ |
| 29641 | Schema.Number.annotate({ | 34062 | Schema.Number.annotate({ |
| 29642 | description: "Duration between turn start and completion in milliseconds, if known.", | 34063 | description: "Duration between turn start and completion in milliseconds, if known.", |
| 29643 | format: "int64", | 34064 | format: "int64", |
| 29644 | }).check(Schema.isInt()), | 34065 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29645 | Schema.Null, | 34066 | Schema.Null, |
| 29646 | ]), | 34067 | ]), |
| 29647 | ), | 34068 | ), |
| ... | @@ -29657,7 +34078,10 @@ export const V2ThreadMetadataUpdateResponse__Turn = Schema.Struct({ | ... | @@ -29657,7 +34078,10 @@ export const V2ThreadMetadataUpdateResponse__Turn = Schema.Struct({ |
| 29657 | description: "Thread items currently included in this turn payload.", | 34078 | description: "Thread items currently included in this turn payload.", |
| 29658 | }), | 34079 | }), |
| 29659 | itemsView: Schema.optionalKey( | 34080 | itemsView: Schema.optionalKey( |
| 29660 | Schema.Literals(["notLoaded", "summary", "full"]).annotate({ | 34081 | Schema.suspend( |
| | 34082 | (): Schema.Codec<V2ThreadMetadataUpdateResponse__TurnItemsView> => |
| | 34083 | V2ThreadMetadataUpdateResponse__TurnItemsView, |
| | 34084 | ).annotate({ |
| 29661 | description: "Describes how much of `items` has been loaded for this turn.", | 34085 | description: "Describes how much of `items` has been loaded for this turn.", |
| 29662 | default: "full", | 34086 | default: "full", |
| 29663 | }), | 34087 | }), |
| ... | @@ -29667,12 +34091,12 @@ export const V2ThreadMetadataUpdateResponse__Turn = Schema.Struct({ | ... | @@ -29667,12 +34091,12 @@ export const V2ThreadMetadataUpdateResponse__Turn = Schema.Struct({ |
| 29667 | Schema.Number.annotate({ | 34091 | Schema.Number.annotate({ |
| 29668 | description: "Unix timestamp (in seconds) when the turn started.", | 34092 | description: "Unix timestamp (in seconds) when the turn started.", |
| 29669 | format: "int64", | 34093 | format: "int64", |
| 29670 | }).check(Schema.isInt()), | 34094 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29671 | Schema.Null, | 34095 | Schema.Null, |
| 29672 | ]), | 34096 | ]), |
| 29673 | ), | 34097 | ), |
| 29674 | status: V2ThreadMetadataUpdateResponse__TurnStatus, | 34098 | status: V2ThreadMetadataUpdateResponse__TurnStatus, |
| 29675 | }); | 34099 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__Turn" }); |
| 29676 | | 34100 | |
| 29677 | export type V2ThreadReadResponse__Turn = { | 34101 | export type V2ThreadReadResponse__Turn = { |
| 29678 | readonly completedAt?: number | null; | 34102 | readonly completedAt?: number | null; |
| ... | @@ -29680,7 +34104,7 @@ export type V2ThreadReadResponse__Turn = { | ... | @@ -29680,7 +34104,7 @@ export type V2ThreadReadResponse__Turn = { |
| 29680 | readonly error?: V2ThreadReadResponse__TurnError | null; | 34104 | readonly error?: V2ThreadReadResponse__TurnError | null; |
| 29681 | readonly id: string; | 34105 | readonly id: string; |
| 29682 | readonly items: ReadonlyArray<V2ThreadReadResponse__ThreadItem>; | 34106 | readonly items: ReadonlyArray<V2ThreadReadResponse__ThreadItem>; |
| 29683 | readonly itemsView?: "notLoaded" | "summary" | "full"; | 34107 | readonly itemsView?: V2ThreadReadResponse__TurnItemsView; |
| 29684 | readonly startedAt?: number | null; | 34108 | readonly startedAt?: number | null; |
| 29685 | readonly status: V2ThreadReadResponse__TurnStatus; | 34109 | readonly status: V2ThreadReadResponse__TurnStatus; |
| 29686 | }; | 34110 | }; |
| ... | @@ -29690,7 +34114,7 @@ export const V2ThreadReadResponse__Turn = Schema.Struct({ | ... | @@ -29690,7 +34114,7 @@ export const V2ThreadReadResponse__Turn = Schema.Struct({ |
| 29690 | Schema.Number.annotate({ | 34114 | Schema.Number.annotate({ |
| 29691 | description: "Unix timestamp (in seconds) when the turn completed.", | 34115 | description: "Unix timestamp (in seconds) when the turn completed.", |
| 29692 | format: "int64", | 34116 | format: "int64", |
| 29693 | }).check(Schema.isInt()), | 34117 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29694 | Schema.Null, | 34118 | Schema.Null, |
| 29695 | ]), | 34119 | ]), |
| 29696 | ), | 34120 | ), |
| ... | @@ -29699,7 +34123,7 @@ export const V2ThreadReadResponse__Turn = Schema.Struct({ | ... | @@ -29699,7 +34123,7 @@ export const V2ThreadReadResponse__Turn = Schema.Struct({ |
| 29699 | Schema.Number.annotate({ | 34123 | Schema.Number.annotate({ |
| 29700 | description: "Duration between turn start and completion in milliseconds, if known.", | 34124 | description: "Duration between turn start and completion in milliseconds, if known.", |
| 29701 | format: "int64", | 34125 | format: "int64", |
| 29702 | }).check(Schema.isInt()), | 34126 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29703 | Schema.Null, | 34127 | Schema.Null, |
| 29704 | ]), | 34128 | ]), |
| 29705 | ), | 34129 | ), |
| ... | @@ -29715,7 +34139,9 @@ export const V2ThreadReadResponse__Turn = Schema.Struct({ | ... | @@ -29715,7 +34139,9 @@ export const V2ThreadReadResponse__Turn = Schema.Struct({ |
| 29715 | description: "Thread items currently included in this turn payload.", | 34139 | description: "Thread items currently included in this turn payload.", |
| 29716 | }), | 34140 | }), |
| 29717 | itemsView: Schema.optionalKey( | 34141 | itemsView: Schema.optionalKey( |
| 29718 | Schema.Literals(["notLoaded", "summary", "full"]).annotate({ | 34142 | Schema.suspend( |
| | 34143 | (): Schema.Codec<V2ThreadReadResponse__TurnItemsView> => V2ThreadReadResponse__TurnItemsView, |
| | 34144 | ).annotate({ |
| 29719 | description: "Describes how much of `items` has been loaded for this turn.", | 34145 | description: "Describes how much of `items` has been loaded for this turn.", |
| 29720 | default: "full", | 34146 | default: "full", |
| 29721 | }), | 34147 | }), |
| ... | @@ -29725,12 +34151,12 @@ export const V2ThreadReadResponse__Turn = Schema.Struct({ | ... | @@ -29725,12 +34151,12 @@ export const V2ThreadReadResponse__Turn = Schema.Struct({ |
| 29725 | Schema.Number.annotate({ | 34151 | Schema.Number.annotate({ |
| 29726 | description: "Unix timestamp (in seconds) when the turn started.", | 34152 | description: "Unix timestamp (in seconds) when the turn started.", |
| 29727 | format: "int64", | 34153 | format: "int64", |
| 29728 | }).check(Schema.isInt()), | 34154 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29729 | Schema.Null, | 34155 | Schema.Null, |
| 29730 | ]), | 34156 | ]), |
| 29731 | ), | 34157 | ), |
| 29732 | status: V2ThreadReadResponse__TurnStatus, | 34158 | status: V2ThreadReadResponse__TurnStatus, |
| 29733 | }); | 34159 | }).annotate({ identifier: "V2ThreadReadResponse__Turn" }); |
| 29734 | | 34160 | |
| 29735 | export type V2ThreadResumeResponse__Turn = { | 34161 | export type V2ThreadResumeResponse__Turn = { |
| 29736 | readonly completedAt?: number | null; | 34162 | readonly completedAt?: number | null; |
| ... | @@ -29738,7 +34164,7 @@ export type V2ThreadResumeResponse__Turn = { | ... | @@ -29738,7 +34164,7 @@ export type V2ThreadResumeResponse__Turn = { |
| 29738 | readonly error?: V2ThreadResumeResponse__TurnError | null; | 34164 | readonly error?: V2ThreadResumeResponse__TurnError | null; |
| 29739 | readonly id: string; | 34165 | readonly id: string; |
| 29740 | readonly items: ReadonlyArray<V2ThreadResumeResponse__ThreadItem>; | 34166 | readonly items: ReadonlyArray<V2ThreadResumeResponse__ThreadItem>; |
| 29741 | readonly itemsView?: "notLoaded" | "summary" | "full"; | 34167 | readonly itemsView?: V2ThreadResumeResponse__TurnItemsView; |
| 29742 | readonly startedAt?: number | null; | 34168 | readonly startedAt?: number | null; |
| 29743 | readonly status: V2ThreadResumeResponse__TurnStatus; | 34169 | readonly status: V2ThreadResumeResponse__TurnStatus; |
| 29744 | }; | 34170 | }; |
| ... | @@ -29748,7 +34174,7 @@ export const V2ThreadResumeResponse__Turn = Schema.Struct({ | ... | @@ -29748,7 +34174,7 @@ export const V2ThreadResumeResponse__Turn = Schema.Struct({ |
| 29748 | Schema.Number.annotate({ | 34174 | Schema.Number.annotate({ |
| 29749 | description: "Unix timestamp (in seconds) when the turn completed.", | 34175 | description: "Unix timestamp (in seconds) when the turn completed.", |
| 29750 | format: "int64", | 34176 | format: "int64", |
| 29751 | }).check(Schema.isInt()), | 34177 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29752 | Schema.Null, | 34178 | Schema.Null, |
| 29753 | ]), | 34179 | ]), |
| 29754 | ), | 34180 | ), |
| ... | @@ -29757,7 +34183,7 @@ export const V2ThreadResumeResponse__Turn = Schema.Struct({ | ... | @@ -29757,7 +34183,7 @@ export const V2ThreadResumeResponse__Turn = Schema.Struct({ |
| 29757 | Schema.Number.annotate({ | 34183 | Schema.Number.annotate({ |
| 29758 | description: "Duration between turn start and completion in milliseconds, if known.", | 34184 | description: "Duration between turn start and completion in milliseconds, if known.", |
| 29759 | format: "int64", | 34185 | format: "int64", |
| 29760 | }).check(Schema.isInt()), | 34186 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29761 | Schema.Null, | 34187 | Schema.Null, |
| 29762 | ]), | 34188 | ]), |
| 29763 | ), | 34189 | ), |
| ... | @@ -29773,7 +34199,10 @@ export const V2ThreadResumeResponse__Turn = Schema.Struct({ | ... | @@ -29773,7 +34199,10 @@ export const V2ThreadResumeResponse__Turn = Schema.Struct({ |
| 29773 | description: "Thread items currently included in this turn payload.", | 34199 | description: "Thread items currently included in this turn payload.", |
| 29774 | }), | 34200 | }), |
| 29775 | itemsView: Schema.optionalKey( | 34201 | itemsView: Schema.optionalKey( |
| 29776 | Schema.Literals(["notLoaded", "summary", "full"]).annotate({ | 34202 | Schema.suspend( |
| | 34203 | (): Schema.Codec<V2ThreadResumeResponse__TurnItemsView> => |
| | 34204 | V2ThreadResumeResponse__TurnItemsView, |
| | 34205 | ).annotate({ |
| 29777 | description: "Describes how much of `items` has been loaded for this turn.", | 34206 | description: "Describes how much of `items` has been loaded for this turn.", |
| 29778 | default: "full", | 34207 | default: "full", |
| 29779 | }), | 34208 | }), |
| ... | @@ -29783,12 +34212,12 @@ export const V2ThreadResumeResponse__Turn = Schema.Struct({ | ... | @@ -29783,12 +34212,12 @@ export const V2ThreadResumeResponse__Turn = Schema.Struct({ |
| 29783 | Schema.Number.annotate({ | 34212 | Schema.Number.annotate({ |
| 29784 | description: "Unix timestamp (in seconds) when the turn started.", | 34213 | description: "Unix timestamp (in seconds) when the turn started.", |
| 29785 | format: "int64", | 34214 | format: "int64", |
| 29786 | }).check(Schema.isInt()), | 34215 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29787 | Schema.Null, | 34216 | Schema.Null, |
| 29788 | ]), | 34217 | ]), |
| 29789 | ), | 34218 | ), |
| 29790 | status: V2ThreadResumeResponse__TurnStatus, | 34219 | status: V2ThreadResumeResponse__TurnStatus, |
| 29791 | }); | 34220 | }).annotate({ identifier: "V2ThreadResumeResponse__Turn" }); |
| 29792 | | 34221 | |
| 29793 | export type V2ThreadRollbackResponse__Turn = { | 34222 | export type V2ThreadRollbackResponse__Turn = { |
| 29794 | readonly completedAt?: number | null; | 34223 | readonly completedAt?: number | null; |
| ... | @@ -29796,7 +34225,7 @@ export type V2ThreadRollbackResponse__Turn = { | ... | @@ -29796,7 +34225,7 @@ export type V2ThreadRollbackResponse__Turn = { |
| 29796 | readonly error?: V2ThreadRollbackResponse__TurnError | null; | 34225 | readonly error?: V2ThreadRollbackResponse__TurnError | null; |
| 29797 | readonly id: string; | 34226 | readonly id: string; |
| 29798 | readonly items: ReadonlyArray<V2ThreadRollbackResponse__ThreadItem>; | 34227 | readonly items: ReadonlyArray<V2ThreadRollbackResponse__ThreadItem>; |
| 29799 | readonly itemsView?: "notLoaded" | "summary" | "full"; | 34228 | readonly itemsView?: V2ThreadRollbackResponse__TurnItemsView; |
| 29800 | readonly startedAt?: number | null; | 34229 | readonly startedAt?: number | null; |
| 29801 | readonly status: V2ThreadRollbackResponse__TurnStatus; | 34230 | readonly status: V2ThreadRollbackResponse__TurnStatus; |
| 29802 | }; | 34231 | }; |
| ... | @@ -29806,7 +34235,7 @@ export const V2ThreadRollbackResponse__Turn = Schema.Struct({ | ... | @@ -29806,7 +34235,7 @@ export const V2ThreadRollbackResponse__Turn = Schema.Struct({ |
| 29806 | Schema.Number.annotate({ | 34235 | Schema.Number.annotate({ |
| 29807 | description: "Unix timestamp (in seconds) when the turn completed.", | 34236 | description: "Unix timestamp (in seconds) when the turn completed.", |
| 29808 | format: "int64", | 34237 | format: "int64", |
| 29809 | }).check(Schema.isInt()), | 34238 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29810 | Schema.Null, | 34239 | Schema.Null, |
| 29811 | ]), | 34240 | ]), |
| 29812 | ), | 34241 | ), |
| ... | @@ -29815,7 +34244,7 @@ export const V2ThreadRollbackResponse__Turn = Schema.Struct({ | ... | @@ -29815,7 +34244,7 @@ export const V2ThreadRollbackResponse__Turn = Schema.Struct({ |
| 29815 | Schema.Number.annotate({ | 34244 | Schema.Number.annotate({ |
| 29816 | description: "Duration between turn start and completion in milliseconds, if known.", | 34245 | description: "Duration between turn start and completion in milliseconds, if known.", |
| 29817 | format: "int64", | 34246 | format: "int64", |
| 29818 | }).check(Schema.isInt()), | 34247 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29819 | Schema.Null, | 34248 | Schema.Null, |
| 29820 | ]), | 34249 | ]), |
| 29821 | ), | 34250 | ), |
| ... | @@ -29831,7 +34260,10 @@ export const V2ThreadRollbackResponse__Turn = Schema.Struct({ | ... | @@ -29831,7 +34260,10 @@ export const V2ThreadRollbackResponse__Turn = Schema.Struct({ |
| 29831 | description: "Thread items currently included in this turn payload.", | 34260 | description: "Thread items currently included in this turn payload.", |
| 29832 | }), | 34261 | }), |
| 29833 | itemsView: Schema.optionalKey( | 34262 | itemsView: Schema.optionalKey( |
| 29834 | Schema.Literals(["notLoaded", "summary", "full"]).annotate({ | 34263 | Schema.suspend( |
| | 34264 | (): Schema.Codec<V2ThreadRollbackResponse__TurnItemsView> => |
| | 34265 | V2ThreadRollbackResponse__TurnItemsView, |
| | 34266 | ).annotate({ |
| 29835 | description: "Describes how much of `items` has been loaded for this turn.", | 34267 | description: "Describes how much of `items` has been loaded for this turn.", |
| 29836 | default: "full", | 34268 | default: "full", |
| 29837 | }), | 34269 | }), |
| ... | @@ -29841,49 +34273,12 @@ export const V2ThreadRollbackResponse__Turn = Schema.Struct({ | ... | @@ -29841,49 +34273,12 @@ export const V2ThreadRollbackResponse__Turn = Schema.Struct({ |
| 29841 | Schema.Number.annotate({ | 34273 | Schema.Number.annotate({ |
| 29842 | description: "Unix timestamp (in seconds) when the turn started.", | 34274 | description: "Unix timestamp (in seconds) when the turn started.", |
| 29843 | format: "int64", | 34275 | format: "int64", |
| 29844 | }).check(Schema.isInt()), | 34276 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29845 | Schema.Null, | 34277 | Schema.Null, |
| 29846 | ]), | 34278 | ]), |
| 29847 | ), | 34279 | ), |
| 29848 | status: V2ThreadRollbackResponse__TurnStatus, | 34280 | status: V2ThreadRollbackResponse__TurnStatus, |
| 29849 | }); | 34281 | }).annotate({ identifier: "V2ThreadRollbackResponse__Turn" }); |
| 29850 | | | |
| 29851 | export type V2ThreadSettingsUpdatedNotification__ThreadSettings = { | | |
| 29852 | readonly activePermissionProfile?: V2ThreadSettingsUpdatedNotification__ActivePermissionProfile | null; | | |
| 29853 | readonly approvalPolicy: V2ThreadSettingsUpdatedNotification__AskForApproval; | | |
| 29854 | readonly approvalsReviewer: V2ThreadSettingsUpdatedNotification__ApprovalsReviewer; | | |
| 29855 | readonly collaborationMode: V2ThreadSettingsUpdatedNotification__CollaborationMode; | | |
| 29856 | readonly cwd: V2ThreadSettingsUpdatedNotification__AbsolutePathBuf; | | |
| 29857 | readonly effort?: V2ThreadSettingsUpdatedNotification__ReasoningEffort | null; | | |
| 29858 | readonly model: string; | | |
| 29859 | readonly modelProvider: string; | | |
| 29860 | readonly personality?: V2ThreadSettingsUpdatedNotification__Personality | null; | | |
| 29861 | readonly sandboxPolicy: V2ThreadSettingsUpdatedNotification__SandboxPolicy; | | |
| 29862 | readonly serviceTier?: string | null; | | |
| 29863 | readonly summary?: V2ThreadSettingsUpdatedNotification__ReasoningSummary | null; | | |
| 29864 | }; | | |
| 29865 | export const V2ThreadSettingsUpdatedNotification__ThreadSettings = Schema.Struct({ | | |
| 29866 | activePermissionProfile: Schema.optionalKey( | | |
| 29867 | Schema.Union([V2ThreadSettingsUpdatedNotification__ActivePermissionProfile, Schema.Null]), | | |
| 29868 | ), | | |
| 29869 | approvalPolicy: V2ThreadSettingsUpdatedNotification__AskForApproval, | | |
| 29870 | approvalsReviewer: V2ThreadSettingsUpdatedNotification__ApprovalsReviewer, | | |
| 29871 | collaborationMode: V2ThreadSettingsUpdatedNotification__CollaborationMode, | | |
| 29872 | cwd: V2ThreadSettingsUpdatedNotification__AbsolutePathBuf, | | |
| 29873 | effort: Schema.optionalKey( | | |
| 29874 | Schema.Union([V2ThreadSettingsUpdatedNotification__ReasoningEffort, Schema.Null]), | | |
| 29875 | ), | | |
| 29876 | model: Schema.String, | | |
| 29877 | modelProvider: Schema.String, | | |
| 29878 | personality: Schema.optionalKey( | | |
| 29879 | Schema.Union([V2ThreadSettingsUpdatedNotification__Personality, Schema.Null]), | | |
| 29880 | ), | | |
| 29881 | sandboxPolicy: V2ThreadSettingsUpdatedNotification__SandboxPolicy, | | |
| 29882 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 29883 | summary: Schema.optionalKey( | | |
| 29884 | Schema.Union([V2ThreadSettingsUpdatedNotification__ReasoningSummary, Schema.Null]), | | |
| 29885 | ), | | |
| 29886 | }); | | |
| 29887 | | 34282 | |
| 29888 | export type V2ThreadStartedNotification__Turn = { | 34283 | export type V2ThreadStartedNotification__Turn = { |
| 29889 | readonly completedAt?: number | null; | 34284 | readonly completedAt?: number | null; |
| ... | @@ -29891,7 +34286,7 @@ export type V2ThreadStartedNotification__Turn = { | ... | @@ -29891,7 +34286,7 @@ export type V2ThreadStartedNotification__Turn = { |
| 29891 | readonly error?: V2ThreadStartedNotification__TurnError | null; | 34286 | readonly error?: V2ThreadStartedNotification__TurnError | null; |
| 29892 | readonly id: string; | 34287 | readonly id: string; |
| 29893 | readonly items: ReadonlyArray<V2ThreadStartedNotification__ThreadItem>; | 34288 | readonly items: ReadonlyArray<V2ThreadStartedNotification__ThreadItem>; |
| 29894 | readonly itemsView?: "notLoaded" | "summary" | "full"; | 34289 | readonly itemsView?: V2ThreadStartedNotification__TurnItemsView; |
| 29895 | readonly startedAt?: number | null; | 34290 | readonly startedAt?: number | null; |
| 29896 | readonly status: V2ThreadStartedNotification__TurnStatus; | 34291 | readonly status: V2ThreadStartedNotification__TurnStatus; |
| 29897 | }; | 34292 | }; |
| ... | @@ -29901,7 +34296,7 @@ export const V2ThreadStartedNotification__Turn = Schema.Struct({ | ... | @@ -29901,7 +34296,7 @@ export const V2ThreadStartedNotification__Turn = Schema.Struct({ |
| 29901 | Schema.Number.annotate({ | 34296 | Schema.Number.annotate({ |
| 29902 | description: "Unix timestamp (in seconds) when the turn completed.", | 34297 | description: "Unix timestamp (in seconds) when the turn completed.", |
| 29903 | format: "int64", | 34298 | format: "int64", |
| 29904 | }).check(Schema.isInt()), | 34299 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29905 | Schema.Null, | 34300 | Schema.Null, |
| 29906 | ]), | 34301 | ]), |
| 29907 | ), | 34302 | ), |
| ... | @@ -29910,7 +34305,7 @@ export const V2ThreadStartedNotification__Turn = Schema.Struct({ | ... | @@ -29910,7 +34305,7 @@ export const V2ThreadStartedNotification__Turn = Schema.Struct({ |
| 29910 | Schema.Number.annotate({ | 34305 | Schema.Number.annotate({ |
| 29911 | description: "Duration between turn start and completion in milliseconds, if known.", | 34306 | description: "Duration between turn start and completion in milliseconds, if known.", |
| 29912 | format: "int64", | 34307 | format: "int64", |
| 29913 | }).check(Schema.isInt()), | 34308 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29914 | Schema.Null, | 34309 | Schema.Null, |
| 29915 | ]), | 34310 | ]), |
| 29916 | ), | 34311 | ), |
| ... | @@ -29926,7 +34321,10 @@ export const V2ThreadStartedNotification__Turn = Schema.Struct({ | ... | @@ -29926,7 +34321,10 @@ export const V2ThreadStartedNotification__Turn = Schema.Struct({ |
| 29926 | description: "Thread items currently included in this turn payload.", | 34321 | description: "Thread items currently included in this turn payload.", |
| 29927 | }), | 34322 | }), |
| 29928 | itemsView: Schema.optionalKey( | 34323 | itemsView: Schema.optionalKey( |
| 29929 | Schema.Literals(["notLoaded", "summary", "full"]).annotate({ | 34324 | Schema.suspend( |
| | 34325 | (): Schema.Codec<V2ThreadStartedNotification__TurnItemsView> => |
| | 34326 | V2ThreadStartedNotification__TurnItemsView, |
| | 34327 | ).annotate({ |
| 29930 | description: "Describes how much of `items` has been loaded for this turn.", | 34328 | description: "Describes how much of `items` has been loaded for this turn.", |
| 29931 | default: "full", | 34329 | default: "full", |
| 29932 | }), | 34330 | }), |
| ... | @@ -29936,12 +34334,12 @@ export const V2ThreadStartedNotification__Turn = Schema.Struct({ | ... | @@ -29936,12 +34334,12 @@ export const V2ThreadStartedNotification__Turn = Schema.Struct({ |
| 29936 | Schema.Number.annotate({ | 34334 | Schema.Number.annotate({ |
| 29937 | description: "Unix timestamp (in seconds) when the turn started.", | 34335 | description: "Unix timestamp (in seconds) when the turn started.", |
| 29938 | format: "int64", | 34336 | format: "int64", |
| 29939 | }).check(Schema.isInt()), | 34337 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29940 | Schema.Null, | 34338 | Schema.Null, |
| 29941 | ]), | 34339 | ]), |
| 29942 | ), | 34340 | ), |
| 29943 | status: V2ThreadStartedNotification__TurnStatus, | 34341 | status: V2ThreadStartedNotification__TurnStatus, |
| 29944 | }); | 34342 | }).annotate({ identifier: "V2ThreadStartedNotification__Turn" }); |
| 29945 | | 34343 | |
| 29946 | export type V2ThreadStartResponse__Turn = { | 34344 | export type V2ThreadStartResponse__Turn = { |
| 29947 | readonly completedAt?: number | null; | 34345 | readonly completedAt?: number | null; |
| ... | @@ -29949,7 +34347,7 @@ export type V2ThreadStartResponse__Turn = { | ... | @@ -29949,7 +34347,7 @@ export type V2ThreadStartResponse__Turn = { |
| 29949 | readonly error?: V2ThreadStartResponse__TurnError | null; | 34347 | readonly error?: V2ThreadStartResponse__TurnError | null; |
| 29950 | readonly id: string; | 34348 | readonly id: string; |
| 29951 | readonly items: ReadonlyArray<V2ThreadStartResponse__ThreadItem>; | 34349 | readonly items: ReadonlyArray<V2ThreadStartResponse__ThreadItem>; |
| 29952 | readonly itemsView?: "notLoaded" | "summary" | "full"; | 34350 | readonly itemsView?: V2ThreadStartResponse__TurnItemsView; |
| 29953 | readonly startedAt?: number | null; | 34351 | readonly startedAt?: number | null; |
| 29954 | readonly status: V2ThreadStartResponse__TurnStatus; | 34352 | readonly status: V2ThreadStartResponse__TurnStatus; |
| 29955 | }; | 34353 | }; |
| ... | @@ -29959,7 +34357,7 @@ export const V2ThreadStartResponse__Turn = Schema.Struct({ | ... | @@ -29959,7 +34357,7 @@ export const V2ThreadStartResponse__Turn = Schema.Struct({ |
| 29959 | Schema.Number.annotate({ | 34357 | Schema.Number.annotate({ |
| 29960 | description: "Unix timestamp (in seconds) when the turn completed.", | 34358 | description: "Unix timestamp (in seconds) when the turn completed.", |
| 29961 | format: "int64", | 34359 | format: "int64", |
| 29962 | }).check(Schema.isInt()), | 34360 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29963 | Schema.Null, | 34361 | Schema.Null, |
| 29964 | ]), | 34362 | ]), |
| 29965 | ), | 34363 | ), |
| ... | @@ -29968,7 +34366,7 @@ export const V2ThreadStartResponse__Turn = Schema.Struct({ | ... | @@ -29968,7 +34366,7 @@ export const V2ThreadStartResponse__Turn = Schema.Struct({ |
| 29968 | Schema.Number.annotate({ | 34366 | Schema.Number.annotate({ |
| 29969 | description: "Duration between turn start and completion in milliseconds, if known.", | 34367 | description: "Duration between turn start and completion in milliseconds, if known.", |
| 29970 | format: "int64", | 34368 | format: "int64", |
| 29971 | }).check(Schema.isInt()), | 34369 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29972 | Schema.Null, | 34370 | Schema.Null, |
| 29973 | ]), | 34371 | ]), |
| 29974 | ), | 34372 | ), |
| ... | @@ -29984,7 +34382,10 @@ export const V2ThreadStartResponse__Turn = Schema.Struct({ | ... | @@ -29984,7 +34382,10 @@ export const V2ThreadStartResponse__Turn = Schema.Struct({ |
| 29984 | description: "Thread items currently included in this turn payload.", | 34382 | description: "Thread items currently included in this turn payload.", |
| 29985 | }), | 34383 | }), |
| 29986 | itemsView: Schema.optionalKey( | 34384 | itemsView: Schema.optionalKey( |
| 29987 | Schema.Literals(["notLoaded", "summary", "full"]).annotate({ | 34385 | Schema.suspend( |
| | 34386 | (): Schema.Codec<V2ThreadStartResponse__TurnItemsView> => |
| | 34387 | V2ThreadStartResponse__TurnItemsView, |
| | 34388 | ).annotate({ |
| 29988 | description: "Describes how much of `items` has been loaded for this turn.", | 34389 | description: "Describes how much of `items` has been loaded for this turn.", |
| 29989 | default: "full", | 34390 | default: "full", |
| 29990 | }), | 34391 | }), |
| ... | @@ -29994,12 +34395,12 @@ export const V2ThreadStartResponse__Turn = Schema.Struct({ | ... | @@ -29994,12 +34395,12 @@ export const V2ThreadStartResponse__Turn = Schema.Struct({ |
| 29994 | Schema.Number.annotate({ | 34395 | Schema.Number.annotate({ |
| 29995 | description: "Unix timestamp (in seconds) when the turn started.", | 34396 | description: "Unix timestamp (in seconds) when the turn started.", |
| 29996 | format: "int64", | 34397 | format: "int64", |
| 29997 | }).check(Schema.isInt()), | 34398 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 29998 | Schema.Null, | 34399 | Schema.Null, |
| 29999 | ]), | 34400 | ]), |
| 30000 | ), | 34401 | ), |
| 30001 | status: V2ThreadStartResponse__TurnStatus, | 34402 | status: V2ThreadStartResponse__TurnStatus, |
| 30002 | }); | 34403 | }).annotate({ identifier: "V2ThreadStartResponse__Turn" }); |
| 30003 | | 34404 | |
| 30004 | export type V2ThreadUnarchiveResponse__Turn = { | 34405 | export type V2ThreadUnarchiveResponse__Turn = { |
| 30005 | readonly completedAt?: number | null; | 34406 | readonly completedAt?: number | null; |
| ... | @@ -30007,7 +34408,7 @@ export type V2ThreadUnarchiveResponse__Turn = { | ... | @@ -30007,7 +34408,7 @@ export type V2ThreadUnarchiveResponse__Turn = { |
| 30007 | readonly error?: V2ThreadUnarchiveResponse__TurnError | null; | 34408 | readonly error?: V2ThreadUnarchiveResponse__TurnError | null; |
| 30008 | readonly id: string; | 34409 | readonly id: string; |
| 30009 | readonly items: ReadonlyArray<V2ThreadUnarchiveResponse__ThreadItem>; | 34410 | readonly items: ReadonlyArray<V2ThreadUnarchiveResponse__ThreadItem>; |
| 30010 | readonly itemsView?: "notLoaded" | "summary" | "full"; | 34411 | readonly itemsView?: V2ThreadUnarchiveResponse__TurnItemsView; |
| 30011 | readonly startedAt?: number | null; | 34412 | readonly startedAt?: number | null; |
| 30012 | readonly status: V2ThreadUnarchiveResponse__TurnStatus; | 34413 | readonly status: V2ThreadUnarchiveResponse__TurnStatus; |
| 30013 | }; | 34414 | }; |
| ... | @@ -30017,7 +34418,7 @@ export const V2ThreadUnarchiveResponse__Turn = Schema.Struct({ | ... | @@ -30017,7 +34418,7 @@ export const V2ThreadUnarchiveResponse__Turn = Schema.Struct({ |
| 30017 | Schema.Number.annotate({ | 34418 | Schema.Number.annotate({ |
| 30018 | description: "Unix timestamp (in seconds) when the turn completed.", | 34419 | description: "Unix timestamp (in seconds) when the turn completed.", |
| 30019 | format: "int64", | 34420 | format: "int64", |
| 30020 | }).check(Schema.isInt()), | 34421 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 30021 | Schema.Null, | 34422 | Schema.Null, |
| 30022 | ]), | 34423 | ]), |
| 30023 | ), | 34424 | ), |
| ... | @@ -30026,7 +34427,7 @@ export const V2ThreadUnarchiveResponse__Turn = Schema.Struct({ | ... | @@ -30026,7 +34427,7 @@ export const V2ThreadUnarchiveResponse__Turn = Schema.Struct({ |
| 30026 | Schema.Number.annotate({ | 34427 | Schema.Number.annotate({ |
| 30027 | description: "Duration between turn start and completion in milliseconds, if known.", | 34428 | description: "Duration between turn start and completion in milliseconds, if known.", |
| 30028 | format: "int64", | 34429 | format: "int64", |
| 30029 | }).check(Schema.isInt()), | 34430 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 30030 | Schema.Null, | 34431 | Schema.Null, |
| 30031 | ]), | 34432 | ]), |
| 30032 | ), | 34433 | ), |
| ... | @@ -30042,7 +34443,10 @@ export const V2ThreadUnarchiveResponse__Turn = Schema.Struct({ | ... | @@ -30042,7 +34443,10 @@ export const V2ThreadUnarchiveResponse__Turn = Schema.Struct({ |
| 30042 | description: "Thread items currently included in this turn payload.", | 34443 | description: "Thread items currently included in this turn payload.", |
| 30043 | }), | 34444 | }), |
| 30044 | itemsView: Schema.optionalKey( | 34445 | itemsView: Schema.optionalKey( |
| 30045 | Schema.Literals(["notLoaded", "summary", "full"]).annotate({ | 34446 | Schema.suspend( |
| | 34447 | (): Schema.Codec<V2ThreadUnarchiveResponse__TurnItemsView> => |
| | 34448 | V2ThreadUnarchiveResponse__TurnItemsView, |
| | 34449 | ).annotate({ |
| 30046 | description: "Describes how much of `items` has been loaded for this turn.", | 34450 | description: "Describes how much of `items` has been loaded for this turn.", |
| 30047 | default: "full", | 34451 | default: "full", |
| 30048 | }), | 34452 | }), |
| ... | @@ -30052,12 +34456,12 @@ export const V2ThreadUnarchiveResponse__Turn = Schema.Struct({ | ... | @@ -30052,12 +34456,12 @@ export const V2ThreadUnarchiveResponse__Turn = Schema.Struct({ |
| 30052 | Schema.Number.annotate({ | 34456 | Schema.Number.annotate({ |
| 30053 | description: "Unix timestamp (in seconds) when the turn started.", | 34457 | description: "Unix timestamp (in seconds) when the turn started.", |
| 30054 | format: "int64", | 34458 | format: "int64", |
| 30055 | }).check(Schema.isInt()), | 34459 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 30056 | Schema.Null, | 34460 | Schema.Null, |
| 30057 | ]), | 34461 | ]), |
| 30058 | ), | 34462 | ), |
| 30059 | status: V2ThreadUnarchiveResponse__TurnStatus, | 34463 | status: V2ThreadUnarchiveResponse__TurnStatus, |
| 30060 | }); | 34464 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__Turn" }); |
| 30061 | | 34465 | |
| 30062 | export type V2TurnCompletedNotification__Turn = { | 34466 | export type V2TurnCompletedNotification__Turn = { |
| 30063 | readonly completedAt?: number | null; | 34467 | readonly completedAt?: number | null; |
| ... | @@ -30065,7 +34469,7 @@ export type V2TurnCompletedNotification__Turn = { | ... | @@ -30065,7 +34469,7 @@ export type V2TurnCompletedNotification__Turn = { |
| 30065 | readonly error?: V2TurnCompletedNotification__TurnError | null; | 34469 | readonly error?: V2TurnCompletedNotification__TurnError | null; |
| 30066 | readonly id: string; | 34470 | readonly id: string; |
| 30067 | readonly items: ReadonlyArray<V2TurnCompletedNotification__ThreadItem>; | 34471 | readonly items: ReadonlyArray<V2TurnCompletedNotification__ThreadItem>; |
| 30068 | readonly itemsView?: "notLoaded" | "summary" | "full"; | 34472 | readonly itemsView?: V2TurnCompletedNotification__TurnItemsView; |
| 30069 | readonly startedAt?: number | null; | 34473 | readonly startedAt?: number | null; |
| 30070 | readonly status: V2TurnCompletedNotification__TurnStatus; | 34474 | readonly status: V2TurnCompletedNotification__TurnStatus; |
| 30071 | }; | 34475 | }; |
| ... | @@ -30075,7 +34479,7 @@ export const V2TurnCompletedNotification__Turn = Schema.Struct({ | ... | @@ -30075,7 +34479,7 @@ export const V2TurnCompletedNotification__Turn = Schema.Struct({ |
| 30075 | Schema.Number.annotate({ | 34479 | Schema.Number.annotate({ |
| 30076 | description: "Unix timestamp (in seconds) when the turn completed.", | 34480 | description: "Unix timestamp (in seconds) when the turn completed.", |
| 30077 | format: "int64", | 34481 | format: "int64", |
| 30078 | }).check(Schema.isInt()), | 34482 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 30079 | Schema.Null, | 34483 | Schema.Null, |
| 30080 | ]), | 34484 | ]), |
| 30081 | ), | 34485 | ), |
| ... | @@ -30084,7 +34488,7 @@ export const V2TurnCompletedNotification__Turn = Schema.Struct({ | ... | @@ -30084,7 +34488,7 @@ export const V2TurnCompletedNotification__Turn = Schema.Struct({ |
| 30084 | Schema.Number.annotate({ | 34488 | Schema.Number.annotate({ |
| 30085 | description: "Duration between turn start and completion in milliseconds, if known.", | 34489 | description: "Duration between turn start and completion in milliseconds, if known.", |
| 30086 | format: "int64", | 34490 | format: "int64", |
| 30087 | }).check(Schema.isInt()), | 34491 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 30088 | Schema.Null, | 34492 | Schema.Null, |
| 30089 | ]), | 34493 | ]), |
| 30090 | ), | 34494 | ), |
| ... | @@ -30100,7 +34504,10 @@ export const V2TurnCompletedNotification__Turn = Schema.Struct({ | ... | @@ -30100,7 +34504,10 @@ export const V2TurnCompletedNotification__Turn = Schema.Struct({ |
| 30100 | description: "Thread items currently included in this turn payload.", | 34504 | description: "Thread items currently included in this turn payload.", |
| 30101 | }), | 34505 | }), |
| 30102 | itemsView: Schema.optionalKey( | 34506 | itemsView: Schema.optionalKey( |
| 30103 | Schema.Literals(["notLoaded", "summary", "full"]).annotate({ | 34507 | Schema.suspend( |
| | 34508 | (): Schema.Codec<V2TurnCompletedNotification__TurnItemsView> => |
| | 34509 | V2TurnCompletedNotification__TurnItemsView, |
| | 34510 | ).annotate({ |
| 30104 | description: "Describes how much of `items` has been loaded for this turn.", | 34511 | description: "Describes how much of `items` has been loaded for this turn.", |
| 30105 | default: "full", | 34512 | default: "full", |
| 30106 | }), | 34513 | }), |
| ... | @@ -30110,12 +34517,12 @@ export const V2TurnCompletedNotification__Turn = Schema.Struct({ | ... | @@ -30110,12 +34517,12 @@ export const V2TurnCompletedNotification__Turn = Schema.Struct({ |
| 30110 | Schema.Number.annotate({ | 34517 | Schema.Number.annotate({ |
| 30111 | description: "Unix timestamp (in seconds) when the turn started.", | 34518 | description: "Unix timestamp (in seconds) when the turn started.", |
| 30112 | format: "int64", | 34519 | format: "int64", |
| 30113 | }).check(Schema.isInt()), | 34520 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 30114 | Schema.Null, | 34521 | Schema.Null, |
| 30115 | ]), | 34522 | ]), |
| 30116 | ), | 34523 | ), |
| 30117 | status: V2TurnCompletedNotification__TurnStatus, | 34524 | status: V2TurnCompletedNotification__TurnStatus, |
| 30118 | }); | 34525 | }).annotate({ identifier: "V2TurnCompletedNotification__Turn" }); |
| 30119 | | 34526 | |
| 30120 | export type V2TurnStartedNotification__Turn = { | 34527 | export type V2TurnStartedNotification__Turn = { |
| 30121 | readonly completedAt?: number | null; | 34528 | readonly completedAt?: number | null; |
| ... | @@ -30123,7 +34530,7 @@ export type V2TurnStartedNotification__Turn = { | ... | @@ -30123,7 +34530,7 @@ export type V2TurnStartedNotification__Turn = { |
| 30123 | readonly error?: V2TurnStartedNotification__TurnError | null; | 34530 | readonly error?: V2TurnStartedNotification__TurnError | null; |
| 30124 | readonly id: string; | 34531 | readonly id: string; |
| 30125 | readonly items: ReadonlyArray<V2TurnStartedNotification__ThreadItem>; | 34532 | readonly items: ReadonlyArray<V2TurnStartedNotification__ThreadItem>; |
| 30126 | readonly itemsView?: "notLoaded" | "summary" | "full"; | 34533 | readonly itemsView?: V2TurnStartedNotification__TurnItemsView; |
| 30127 | readonly startedAt?: number | null; | 34534 | readonly startedAt?: number | null; |
| 30128 | readonly status: V2TurnStartedNotification__TurnStatus; | 34535 | readonly status: V2TurnStartedNotification__TurnStatus; |
| 30129 | }; | 34536 | }; |
| ... | @@ -30133,7 +34540,7 @@ export const V2TurnStartedNotification__Turn = Schema.Struct({ | ... | @@ -30133,7 +34540,7 @@ export const V2TurnStartedNotification__Turn = Schema.Struct({ |
| 30133 | Schema.Number.annotate({ | 34540 | Schema.Number.annotate({ |
| 30134 | description: "Unix timestamp (in seconds) when the turn completed.", | 34541 | description: "Unix timestamp (in seconds) when the turn completed.", |
| 30135 | format: "int64", | 34542 | format: "int64", |
| 30136 | }).check(Schema.isInt()), | 34543 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 30137 | Schema.Null, | 34544 | Schema.Null, |
| 30138 | ]), | 34545 | ]), |
| 30139 | ), | 34546 | ), |
| ... | @@ -30142,7 +34549,7 @@ export const V2TurnStartedNotification__Turn = Schema.Struct({ | ... | @@ -30142,7 +34549,7 @@ export const V2TurnStartedNotification__Turn = Schema.Struct({ |
| 30142 | Schema.Number.annotate({ | 34549 | Schema.Number.annotate({ |
| 30143 | description: "Duration between turn start and completion in milliseconds, if known.", | 34550 | description: "Duration between turn start and completion in milliseconds, if known.", |
| 30144 | format: "int64", | 34551 | format: "int64", |
| 30145 | }).check(Schema.isInt()), | 34552 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 30146 | Schema.Null, | 34553 | Schema.Null, |
| 30147 | ]), | 34554 | ]), |
| 30148 | ), | 34555 | ), |
| ... | @@ -30158,7 +34565,10 @@ export const V2TurnStartedNotification__Turn = Schema.Struct({ | ... | @@ -30158,7 +34565,10 @@ export const V2TurnStartedNotification__Turn = Schema.Struct({ |
| 30158 | description: "Thread items currently included in this turn payload.", | 34565 | description: "Thread items currently included in this turn payload.", |
| 30159 | }), | 34566 | }), |
| 30160 | itemsView: Schema.optionalKey( | 34567 | itemsView: Schema.optionalKey( |
| 30161 | Schema.Literals(["notLoaded", "summary", "full"]).annotate({ | 34568 | Schema.suspend( |
| | 34569 | (): Schema.Codec<V2TurnStartedNotification__TurnItemsView> => |
| | 34570 | V2TurnStartedNotification__TurnItemsView, |
| | 34571 | ).annotate({ |
| 30162 | description: "Describes how much of `items` has been loaded for this turn.", | 34572 | description: "Describes how much of `items` has been loaded for this turn.", |
| 30163 | default: "full", | 34573 | default: "full", |
| 30164 | }), | 34574 | }), |
| ... | @@ -30168,12 +34578,12 @@ export const V2TurnStartedNotification__Turn = Schema.Struct({ | ... | @@ -30168,12 +34578,12 @@ export const V2TurnStartedNotification__Turn = Schema.Struct({ |
| 30168 | Schema.Number.annotate({ | 34578 | Schema.Number.annotate({ |
| 30169 | description: "Unix timestamp (in seconds) when the turn started.", | 34579 | description: "Unix timestamp (in seconds) when the turn started.", |
| 30170 | format: "int64", | 34580 | format: "int64", |
| 30171 | }).check(Schema.isInt()), | 34581 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 30172 | Schema.Null, | 34582 | Schema.Null, |
| 30173 | ]), | 34583 | ]), |
| 30174 | ), | 34584 | ), |
| 30175 | status: V2TurnStartedNotification__TurnStatus, | 34585 | status: V2TurnStartedNotification__TurnStatus, |
| 30176 | }); | 34586 | }).annotate({ identifier: "V2TurnStartedNotification__Turn" }); |
| 30177 | | 34587 | |
| 30178 | export type V2TurnStartResponse__Turn = { | 34588 | export type V2TurnStartResponse__Turn = { |
| 30179 | readonly completedAt?: number | null; | 34589 | readonly completedAt?: number | null; |
| ... | @@ -30181,238 +34591,107 @@ export type V2TurnStartResponse__Turn = { | ... | @@ -30181,238 +34591,107 @@ export type V2TurnStartResponse__Turn = { |
| 30181 | readonly error?: V2TurnStartResponse__TurnError | null; | 34591 | readonly error?: V2TurnStartResponse__TurnError | null; |
| 30182 | readonly id: string; | 34592 | readonly id: string; |
| 30183 | readonly items: ReadonlyArray<V2TurnStartResponse__ThreadItem>; | 34593 | readonly items: ReadonlyArray<V2TurnStartResponse__ThreadItem>; |
| 30184 | readonly itemsView?: "notLoaded" | "summary" | "full"; | 34594 | readonly itemsView?: V2TurnStartResponse__TurnItemsView; |
| 30185 | readonly startedAt?: number | null; | 34595 | readonly startedAt?: number | null; |
| 30186 | readonly status: V2TurnStartResponse__TurnStatus; | 34596 | readonly status: V2TurnStartResponse__TurnStatus; |
| 30187 | }; | 34597 | }; |
| 30188 | export const V2TurnStartResponse__Turn = Schema.Struct({ | 34598 | export const V2TurnStartResponse__Turn = Schema.Struct({ |
| 30189 | completedAt: Schema.optionalKey( | 34599 | completedAt: Schema.optionalKey( |
| 30190 | Schema.Union([ | | |
| 30191 | Schema.Number.annotate({ | | |
| 30192 | description: "Unix timestamp (in seconds) when the turn completed.", | | |
| 30193 | format: "int64", | | |
| 30194 | }).check(Schema.isInt()), | | |
| 30195 | Schema.Null, | | |
| 30196 | ]), | | |
| 30197 | ), | | |
| 30198 | durationMs: Schema.optionalKey( | | |
| 30199 | Schema.Union([ | | |
| 30200 | Schema.Number.annotate({ | | |
| 30201 | description: "Duration between turn start and completion in milliseconds, if known.", | | |
| 30202 | format: "int64", | | |
| 30203 | }).check(Schema.isInt()), | | |
| 30204 | Schema.Null, | | |
| 30205 | ]), | | |
| 30206 | ), | | |
| 30207 | error: Schema.optionalKey( | | |
| 30208 | Schema.Union([V2TurnStartResponse__TurnError, Schema.Null]).annotate({ | | |
| 30209 | description: "Only populated when the Turn's status is failed.", | | |
| 30210 | }), | | |
| 30211 | ), | | |
| 30212 | id: Schema.String.annotate({ | | |
| 30213 | description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.", | | |
| 30214 | }), | | |
| 30215 | items: Schema.Array(V2TurnStartResponse__ThreadItem).annotate({ | | |
| 30216 | description: "Thread items currently included in this turn payload.", | | |
| 30217 | }), | | |
| 30218 | itemsView: Schema.optionalKey( | | |
| 30219 | Schema.Literals(["notLoaded", "summary", "full"]).annotate({ | | |
| 30220 | description: "Describes how much of `items` has been loaded for this turn.", | | |
| 30221 | default: "full", | | |
| 30222 | }), | | |
| 30223 | ), | | |
| 30224 | startedAt: Schema.optionalKey( | | |
| 30225 | Schema.Union([ | | |
| 30226 | Schema.Number.annotate({ | | |
| 30227 | description: "Unix timestamp (in seconds) when the turn started.", | | |
| 30228 | format: "int64", | | |
| 30229 | }).check(Schema.isInt()), | | |
| 30230 | Schema.Null, | | |
| 30231 | ]), | | |
| 30232 | ), | | |
| 30233 | status: V2TurnStartResponse__TurnStatus, | | |
| 30234 | }); | | |
| 30235 | | | |
| 30236 | export type CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = { | | |
| 30237 | readonly entries?: ReadonlyArray<CommandExecutionRequestApprovalParams__FileSystemSandboxEntry> | null; | | |
| 30238 | readonly globScanMaxDepth?: number | null; | | |
| 30239 | readonly read?: ReadonlyArray<CommandExecutionRequestApprovalParams__LegacyAppPathString> | null; | | |
| 30240 | readonly write?: ReadonlyArray<CommandExecutionRequestApprovalParams__LegacyAppPathString> | null; | | |
| 30241 | }; | | |
| 30242 | export const CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = Schema.Struct( | | |
| 30243 | { | | |
| 30244 | entries: Schema.optionalKey( | | |
| 30245 | Schema.Union([ | | |
| 30246 | Schema.Array(CommandExecutionRequestApprovalParams__FileSystemSandboxEntry), | | |
| 30247 | Schema.Null, | | |
| 30248 | ]), | | |
| 30249 | ), | | |
| 30250 | globScanMaxDepth: Schema.optionalKey( | | |
| 30251 | Schema.Union([ | | |
| 30252 | Schema.Number.annotate({ format: "uint" }) | | |
| 30253 | .check(Schema.isInt()) | | |
| 30254 | .check(Schema.isGreaterThanOrEqualTo(1)), | | |
| 30255 | Schema.Null, | | |
| 30256 | ]), | | |
| 30257 | ), | | |
| 30258 | read: Schema.optionalKey( | | |
| 30259 | Schema.Union([ | | |
| 30260 | Schema.Array(CommandExecutionRequestApprovalParams__LegacyAppPathString).annotate({ | | |
| 30261 | description: "This will be removed in favor of `entries`.", | | |
| 30262 | }), | | |
| 30263 | Schema.Null, | | |
| 30264 | ]), | | |
| 30265 | ), | | |
| 30266 | write: Schema.optionalKey( | | |
| 30267 | Schema.Union([ | | |
| 30268 | Schema.Array(CommandExecutionRequestApprovalParams__LegacyAppPathString).annotate({ | | |
| 30269 | description: "This will be removed in favor of `entries`.", | | |
| 30270 | }), | | |
| 30271 | Schema.Null, | | |
| 30272 | ]), | | |
| 30273 | ), | | |
| 30274 | }, | | |
| 30275 | ); | | |
| 30276 | | | |
| 30277 | export type McpServerElicitationRequestParams__McpElicitationEnumSchema = | | |
| 30278 | | McpServerElicitationRequestParams__McpElicitationSingleSelectEnumSchema | | |
| 30279 | | McpServerElicitationRequestParams__McpElicitationMultiSelectEnumSchema | | |
| 30280 | | McpServerElicitationRequestParams__McpElicitationLegacyTitledEnumSchema; | | |
| 30281 | export const McpServerElicitationRequestParams__McpElicitationEnumSchema = Schema.Union([ | | |
| 30282 | McpServerElicitationRequestParams__McpElicitationSingleSelectEnumSchema, | | |
| 30283 | McpServerElicitationRequestParams__McpElicitationMultiSelectEnumSchema, | | |
| 30284 | McpServerElicitationRequestParams__McpElicitationLegacyTitledEnumSchema, | | |
| 30285 | ]); | | |
| 30286 | | | |
| 30287 | export type PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = { | | |
| 30288 | readonly entries?: ReadonlyArray<PermissionsRequestApprovalParams__FileSystemSandboxEntry> | null; | | |
| 30289 | readonly globScanMaxDepth?: number | null; | | |
| 30290 | readonly read?: ReadonlyArray<PermissionsRequestApprovalParams__LegacyAppPathString> | null; | | |
| 30291 | readonly write?: ReadonlyArray<PermissionsRequestApprovalParams__LegacyAppPathString> | null; | | |
| 30292 | }; | | |
| 30293 | export const PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = Schema.Struct({ | | |
| 30294 | entries: Schema.optionalKey( | | |
| 30295 | Schema.Union([ | | |
| 30296 | Schema.Array(PermissionsRequestApprovalParams__FileSystemSandboxEntry), | | |
| 30297 | Schema.Null, | | |
| 30298 | ]), | | |
| 30299 | ), | | |
| 30300 | globScanMaxDepth: Schema.optionalKey( | | |
| 30301 | Schema.Union([ | | |
| 30302 | Schema.Number.annotate({ format: "uint" }) | | |
| 30303 | .check(Schema.isInt()) | | |
| 30304 | .check(Schema.isGreaterThanOrEqualTo(1)), | | |
| 30305 | Schema.Null, | | |
| 30306 | ]), | | |
| 30307 | ), | | |
| 30308 | read: Schema.optionalKey( | | |
| 30309 | Schema.Union([ | | |
| 30310 | Schema.Array(PermissionsRequestApprovalParams__LegacyAppPathString).annotate({ | | |
| 30311 | description: "This will be removed in favor of `entries`.", | | |
| 30312 | }), | | |
| 30313 | Schema.Null, | | |
| 30314 | ]), | | |
| 30315 | ), | | |
| 30316 | write: Schema.optionalKey( | | |
| 30317 | Schema.Union([ | | |
| 30318 | Schema.Array(PermissionsRequestApprovalParams__LegacyAppPathString).annotate({ | | |
| 30319 | description: "This will be removed in favor of `entries`.", | | |
| 30320 | }), | | |
| 30321 | Schema.Null, | | |
| 30322 | ]), | | |
| 30323 | ), | | |
| 30324 | }); | | |
| 30325 | | | |
| 30326 | export type PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions = { | | |
| 30327 | readonly entries?: ReadonlyArray<PermissionsRequestApprovalResponse__FileSystemSandboxEntry> | null; | | |
| 30328 | readonly globScanMaxDepth?: number | null; | | |
| 30329 | readonly read?: ReadonlyArray<PermissionsRequestApprovalResponse__LegacyAppPathString> | null; | | |
| 30330 | readonly write?: ReadonlyArray<PermissionsRequestApprovalResponse__LegacyAppPathString> | null; | | |
| 30331 | }; | | |
| 30332 | export const PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions = Schema.Struct({ | | |
| 30333 | entries: Schema.optionalKey( | | |
| 30334 | Schema.Union([ | 34600 | Schema.Union([ |
| 30335 | Schema.Array(PermissionsRequestApprovalResponse__FileSystemSandboxEntry), | 34601 | Schema.Number.annotate({ |
| | 34602 | description: "Unix timestamp (in seconds) when the turn completed.", |
| | 34603 | format: "int64", |
| | 34604 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 30336 | Schema.Null, | 34605 | Schema.Null, |
| 30337 | ]), | 34606 | ]), |
| 30338 | ), | 34607 | ), |
| 30339 | globScanMaxDepth: Schema.optionalKey( | 34608 | durationMs: Schema.optionalKey( |
| 30340 | Schema.Union([ | 34609 | Schema.Union([ |
| 30341 | Schema.Number.annotate({ format: "uint" }) | 34610 | Schema.Number.annotate({ |
| 30342 | .check(Schema.isInt()) | 34611 | description: "Duration between turn start and completion in milliseconds, if known.", |
| 30343 | .check(Schema.isGreaterThanOrEqualTo(1)), | 34612 | format: "int64", |
| | 34613 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 30344 | Schema.Null, | 34614 | Schema.Null, |
| 30345 | ]), | 34615 | ]), |
| 30346 | ), | 34616 | ), |
| 30347 | read: Schema.optionalKey( | 34617 | error: Schema.optionalKey( |
| 30348 | Schema.Union([ | 34618 | Schema.Union([V2TurnStartResponse__TurnError, Schema.Null]).annotate({ |
| 30349 | Schema.Array(PermissionsRequestApprovalResponse__LegacyAppPathString).annotate({ | 34619 | description: "Only populated when the Turn's status is failed.", |
| 30350 | description: "This will be removed in favor of `entries`.", | 34620 | }), |
| 30351 | }), | | |
| 30352 | Schema.Null, | | |
| 30353 | ]), | | |
| 30354 | ), | 34621 | ), |
| 30355 | write: Schema.optionalKey( | 34622 | id: Schema.String.annotate({ |
| | 34623 | description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.", |
| | 34624 | }), |
| | 34625 | items: Schema.Array(V2TurnStartResponse__ThreadItem).annotate({ |
| | 34626 | description: "Thread items currently included in this turn payload.", |
| | 34627 | }), |
| | 34628 | itemsView: Schema.optionalKey( |
| | 34629 | Schema.suspend( |
| | 34630 | (): Schema.Codec<V2TurnStartResponse__TurnItemsView> => V2TurnStartResponse__TurnItemsView, |
| | 34631 | ).annotate({ |
| | 34632 | description: "Describes how much of `items` has been loaded for this turn.", |
| | 34633 | default: "full", |
| | 34634 | }), |
| | 34635 | ), |
| | 34636 | startedAt: Schema.optionalKey( |
| 30356 | Schema.Union([ | 34637 | Schema.Union([ |
| 30357 | Schema.Array(PermissionsRequestApprovalResponse__LegacyAppPathString).annotate({ | 34638 | Schema.Number.annotate({ |
| 30358 | description: "This will be removed in favor of `entries`.", | 34639 | description: "Unix timestamp (in seconds) when the turn started.", |
| 30359 | }), | 34640 | format: "int64", |
| | 34641 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 30360 | Schema.Null, | 34642 | Schema.Null, |
| 30361 | ]), | 34643 | ]), |
| 30362 | ), | 34644 | ), |
| 30363 | }); | 34645 | status: V2TurnStartResponse__TurnStatus, |
| | 34646 | }).annotate({ identifier: "V2TurnStartResponse__Turn" }); |
| 30364 | | 34647 | |
| 30365 | export type ServerNotification__AdditionalFileSystemPermissions = { | 34648 | export type McpServerElicitationRequestParams__McpElicitationPrimitiveSchema = |
| 30366 | readonly entries?: ReadonlyArray<ServerNotification__FileSystemSandboxEntry> | null; | 34649 | | McpServerElicitationRequestParams__McpElicitationEnumSchema |
| 30367 | readonly globScanMaxDepth?: number | null; | 34650 | | McpServerElicitationRequestParams__McpElicitationStringSchema |
| 30368 | readonly read?: ReadonlyArray<ServerNotification__LegacyAppPathString> | null; | 34651 | | McpServerElicitationRequestParams__McpElicitationNumberSchema |
| 30369 | readonly write?: ReadonlyArray<ServerNotification__LegacyAppPathString> | null; | 34652 | | McpServerElicitationRequestParams__McpElicitationBooleanSchema; |
| | 34653 | export const McpServerElicitationRequestParams__McpElicitationPrimitiveSchema = Schema.Union([ |
| | 34654 | McpServerElicitationRequestParams__McpElicitationEnumSchema, |
| | 34655 | McpServerElicitationRequestParams__McpElicitationStringSchema, |
| | 34656 | McpServerElicitationRequestParams__McpElicitationNumberSchema, |
| | 34657 | McpServerElicitationRequestParams__McpElicitationBooleanSchema, |
| | 34658 | ]).annotate({ identifier: "McpServerElicitationRequestParams__McpElicitationPrimitiveSchema" }); |
| | 34659 | |
| | 34660 | export type PermissionsRequestApprovalParams__RequestPermissionProfile = { |
| | 34661 | readonly fileSystem?: PermissionsRequestApprovalParams__AdditionalFileSystemPermissions | null; |
| | 34662 | readonly network?: PermissionsRequestApprovalParams__AdditionalNetworkPermissions | null; |
| 30370 | }; | 34663 | }; |
| 30371 | export const ServerNotification__AdditionalFileSystemPermissions = Schema.Struct({ | 34664 | export const PermissionsRequestApprovalParams__RequestPermissionProfile = Schema.Struct({ |
| 30372 | entries: Schema.optionalKey( | 34665 | fileSystem: Schema.optionalKey( |
| 30373 | Schema.Union([Schema.Array(ServerNotification__FileSystemSandboxEntry), Schema.Null]), | 34666 | Schema.Union([PermissionsRequestApprovalParams__AdditionalFileSystemPermissions, Schema.Null]), |
| 30374 | ), | 34667 | ), |
| 30375 | globScanMaxDepth: Schema.optionalKey( | 34668 | network: Schema.optionalKey( |
| 30376 | Schema.Union([ | 34669 | Schema.Union([PermissionsRequestApprovalParams__AdditionalNetworkPermissions, Schema.Null]), |
| 30377 | Schema.Number.annotate({ format: "uint" }) | | |
| 30378 | .check(Schema.isInt()) | | |
| 30379 | .check(Schema.isGreaterThanOrEqualTo(1)), | | |
| 30380 | Schema.Null, | | |
| 30381 | ]), | | |
| 30382 | ), | 34670 | ), |
| 30383 | read: Schema.optionalKey( | 34671 | }).annotate({ identifier: "PermissionsRequestApprovalParams__RequestPermissionProfile" }); |
| | 34672 | |
| | 34673 | export type PermissionsRequestApprovalResponse__GrantedPermissionProfile = { |
| | 34674 | readonly fileSystem?: PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions | null; |
| | 34675 | readonly network?: PermissionsRequestApprovalResponse__AdditionalNetworkPermissions | null; |
| | 34676 | }; |
| | 34677 | export const PermissionsRequestApprovalResponse__GrantedPermissionProfile = Schema.Struct({ |
| | 34678 | fileSystem: Schema.optionalKey( |
| 30384 | Schema.Union([ | 34679 | Schema.Union([ |
| 30385 | Schema.Array(ServerNotification__LegacyAppPathString).annotate({ | 34680 | PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions, |
| 30386 | description: "This will be removed in favor of `entries`.", | | |
| 30387 | }), | | |
| 30388 | Schema.Null, | 34681 | Schema.Null, |
| 30389 | ]), | 34682 | ]), |
| 30390 | ), | 34683 | ), |
| 30391 | write: Schema.optionalKey( | 34684 | network: Schema.optionalKey( |
| 30392 | Schema.Union([ | 34685 | Schema.Union([PermissionsRequestApprovalResponse__AdditionalNetworkPermissions, Schema.Null]), |
| 30393 | Schema.Array(ServerNotification__LegacyAppPathString).annotate({ | | |
| 30394 | description: "This will be removed in favor of `entries`.", | | |
| 30395 | }), | | |
| 30396 | Schema.Null, | | |
| 30397 | ]), | | |
| 30398 | ), | 34686 | ), |
| 30399 | }); | 34687 | }).annotate({ identifier: "PermissionsRequestApprovalResponse__GrantedPermissionProfile" }); |
| 30400 | | | |
| 30401 | export type ServerNotification__ThreadSettingsUpdatedNotification = { | | |
| 30402 | readonly threadId: string; | | |
| 30403 | readonly threadSettings: ServerNotification__ThreadSettings; | | |
| 30404 | }; | | |
| 30405 | export const ServerNotification__ThreadSettingsUpdatedNotification = Schema.Struct({ | | |
| 30406 | threadId: Schema.String, | | |
| 30407 | threadSettings: ServerNotification__ThreadSettings, | | |
| 30408 | }); | | |
| 30409 | | 34688 | |
| 30410 | export type ServerNotification__Thread = { | 34689 | export type ServerNotification__Thread = { |
| 30411 | readonly agentNickname?: string | null; | 34690 | readonly agentNickname?: string | null; |
| 30412 | readonly agentRole?: string | null; | 34691 | readonly agentRole?: string | null; |
| 30413 | readonly cliVersion: string; | 34692 | readonly cliVersion: string; |
| 30414 | readonly createdAt: number; | 34693 | readonly createdAt: number; |
| 30415 | readonly cwd: string; | 34694 | readonly cwd: ServerNotification__AbsolutePathBuf; |
| 30416 | readonly ephemeral: boolean; | 34695 | readonly ephemeral: boolean; |
| 30417 | readonly forkedFromId?: string | null; | 34696 | readonly forkedFromId?: string | null; |
| 30418 | readonly gitInfo?: ServerNotification__GitInfo | null; | 34697 | readonly gitInfo?: ServerNotification__GitInfo | null; |
| ... | @@ -30424,22 +34703,8 @@ export type ServerNotification__Thread = { | ... | @@ -30424,22 +34703,8 @@ export type ServerNotification__Thread = { |
| 30424 | readonly preview: string; | 34703 | readonly preview: string; |
| 30425 | readonly recencyAt?: number | null; | 34704 | readonly recencyAt?: number | null; |
| 30426 | readonly sessionId: string; | 34705 | readonly sessionId: string; |
| 30427 | readonly source: | 34706 | readonly source: ServerNotification__SessionSource; |
| 30428 | | "cli" | 34707 | readonly status: ServerNotification__ThreadStatus; |
| 30429 | | "vscode" | | |
| 30430 | | "exec" | | |
| 30431 | | "appServer" | | |
| 30432 | | "unknown" | | |
| 30433 | | { readonly custom: string } | | |
| 30434 | | { readonly subAgent: ServerNotification__SubAgentSource }; | | |
| 30435 | readonly status: | | |
| 30436 | | { readonly type: "notLoaded" } | | |
| 30437 | | { readonly type: "idle" } | | |
| 30438 | | { readonly type: "systemError" } | | |
| 30439 | | { | | |
| 30440 | readonly activeFlags: ReadonlyArray<ServerNotification__ThreadActiveFlag>; | | |
| 30441 | readonly type: "active"; | | |
| 30442 | }; | | |
| 30443 | readonly threadSource?: ServerNotification__ThreadSource | null; | 34708 | readonly threadSource?: ServerNotification__ThreadSource | null; |
| 30444 | readonly turns: ReadonlyArray<ServerNotification__Turn>; | 34709 | readonly turns: ReadonlyArray<ServerNotification__Turn>; |
| 30445 | readonly updatedAt: number; | 34710 | readonly updatedAt: number; |
| ... | @@ -30468,11 +34733,10 @@ export const ServerNotification__Thread = Schema.Struct({ | ... | @@ -30468,11 +34733,10 @@ export const ServerNotification__Thread = Schema.Struct({ |
| 30468 | createdAt: Schema.Number.annotate({ | 34733 | createdAt: Schema.Number.annotate({ |
| 30469 | description: "Unix timestamp (in seconds) when the thread was created.", | 34734 | description: "Unix timestamp (in seconds) when the thread was created.", |
| 30470 | format: "int64", | 34735 | format: "int64", |
| 30471 | }).check(Schema.isInt()), | 34736 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 30472 | cwd: Schema.String.annotate({ | 34737 | cwd: Schema.suspend( |
| 30473 | description: | 34738 | (): Schema.Codec<ServerNotification__AbsolutePathBuf> => ServerNotification__AbsolutePathBuf, |
| 30474 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 34739 | ).annotate({ description: "Working directory captured for the thread." }), |
| 30475 | }), | | |
| 30476 | ephemeral: Schema.Boolean.annotate({ | 34740 | ephemeral: Schema.Boolean.annotate({ |
| 30477 | description: "Whether the thread is ephemeral and should not be materialized on disk.", | 34741 | description: "Whether the thread is ephemeral and should not be materialized on disk.", |
| 30478 | }), | 34742 | }), |
| ... | @@ -30524,42 +34788,20 @@ export const ServerNotification__Thread = Schema.Struct({ | ... | @@ -30524,42 +34788,20 @@ export const ServerNotification__Thread = Schema.Struct({ |
| 30524 | Schema.Number.annotate({ | 34788 | Schema.Number.annotate({ |
| 30525 | description: "Unix timestamp (in seconds) used for thread recency ordering.", | 34789 | description: "Unix timestamp (in seconds) used for thread recency ordering.", |
| 30526 | format: "int64", | 34790 | format: "int64", |
| 30527 | }).check(Schema.isInt()), | 34791 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 30528 | Schema.Null, | 34792 | Schema.Null, |
| 30529 | ]), | 34793 | ]), |
| 30530 | ), | 34794 | ), |
| 30531 | sessionId: Schema.String.annotate({ | 34795 | sessionId: Schema.String.annotate({ |
| 30532 | description: "Session id shared by threads that belong to the same session tree.", | 34796 | description: "Session id shared by threads that belong to the same session tree.", |
| 30533 | }), | 34797 | }), |
| 30534 | source: Schema.Union( | 34798 | source: Schema.suspend( |
| 30535 | [ | 34799 | (): Schema.Codec<ServerNotification__SessionSource> => ServerNotification__SessionSource, |
| 30536 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), | | |
| 30537 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), | | |
| 30538 | Schema.Struct({ subAgent: ServerNotification__SubAgentSource }).annotate({ | | |
| 30539 | title: "SubAgentSessionSource", | | |
| 30540 | }), | | |
| 30541 | ], | | |
| 30542 | { mode: "oneOf" }, | | |
| 30543 | ).annotate({ | 34800 | ).annotate({ |
| 30544 | description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).", | 34801 | description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).", |
| 30545 | }), | 34802 | }), |
| 30546 | status: Schema.Union( | 34803 | status: Schema.suspend( |
| 30547 | [ | 34804 | (): Schema.Codec<ServerNotification__ThreadStatus> => ServerNotification__ThreadStatus, |
| 30548 | Schema.Struct({ | | |
| 30549 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), | | |
| 30550 | }).annotate({ title: "NotLoadedThreadStatus" }), | | |
| 30551 | Schema.Struct({ | | |
| 30552 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), | | |
| 30553 | }).annotate({ title: "IdleThreadStatus" }), | | |
| 30554 | Schema.Struct({ | | |
| 30555 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), | | |
| 30556 | }).annotate({ title: "SystemErrorThreadStatus" }), | | |
| 30557 | Schema.Struct({ | | |
| 30558 | activeFlags: Schema.Array(ServerNotification__ThreadActiveFlag), | | |
| 30559 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), | | |
| 30560 | }).annotate({ title: "ActiveThreadStatus" }), | | |
| 30561 | ], | | |
| 30562 | { mode: "oneOf" }, | | |
| 30563 | ).annotate({ description: "Current runtime status for the thread." }), | 34805 | ).annotate({ description: "Current runtime status for the thread." }), |
| 30564 | threadSource: Schema.optionalKey( | 34806 | threadSource: Schema.optionalKey( |
| 30565 | Schema.Union([ServerNotification__ThreadSource, Schema.Null]).annotate({ | 34807 | Schema.Union([ServerNotification__ThreadSource, Schema.Null]).annotate({ |
| ... | @@ -30573,241 +34815,115 @@ export const ServerNotification__Thread = Schema.Struct({ | ... | @@ -30573,241 +34815,115 @@ export const ServerNotification__Thread = Schema.Struct({ |
| 30573 | updatedAt: Schema.Number.annotate({ | 34815 | updatedAt: Schema.Number.annotate({ |
| 30574 | description: "Unix timestamp (in seconds) when the thread was last updated.", | 34816 | description: "Unix timestamp (in seconds) when the thread was last updated.", |
| 30575 | format: "int64", | 34817 | format: "int64", |
| 30576 | }).check(Schema.isInt()), | 34818 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 30577 | }); | 34819 | }).annotate({ identifier: "ServerNotification__Thread" }); |
| 30578 | | 34820 | |
| 30579 | export type ServerNotification__TurnCompletedNotification = { | 34821 | export type ServerNotification__TurnStartedNotification = { |
| 30580 | readonly threadId: string; | 34822 | readonly threadId: string; |
| 30581 | readonly turn: ServerNotification__Turn; | 34823 | readonly turn: ServerNotification__Turn; |
| 30582 | }; | 34824 | }; |
| 30583 | export const ServerNotification__TurnCompletedNotification = Schema.Struct({ | 34825 | export const ServerNotification__TurnStartedNotification = Schema.Struct({ |
| 30584 | threadId: Schema.String, | 34826 | threadId: Schema.String, |
| 30585 | turn: ServerNotification__Turn, | 34827 | turn: ServerNotification__Turn, |
| 30586 | }); | 34828 | }).annotate({ identifier: "ServerNotification__TurnStartedNotification" }); |
| 30587 | | 34829 | |
| 30588 | export type ServerNotification__TurnStartedNotification = { | 34830 | export type ServerNotification__TurnCompletedNotification = { |
| 30589 | readonly threadId: string; | 34831 | readonly threadId: string; |
| 30590 | readonly turn: ServerNotification__Turn; | 34832 | readonly turn: ServerNotification__Turn; |
| 30591 | }; | 34833 | }; |
| 30592 | export const ServerNotification__TurnStartedNotification = Schema.Struct({ | 34834 | export const ServerNotification__TurnCompletedNotification = Schema.Struct({ |
| 30593 | threadId: Schema.String, | 34835 | threadId: Schema.String, |
| 30594 | turn: ServerNotification__Turn, | 34836 | turn: ServerNotification__Turn, |
| 30595 | }); | 34837 | }).annotate({ identifier: "ServerNotification__TurnCompletedNotification" }); |
| 30596 | | 34838 | |
| 30597 | export type ServerRequest__AdditionalFileSystemPermissions = { | 34839 | export type ServerNotification__RequestPermissionProfile = { |
| 30598 | readonly entries?: ReadonlyArray<ServerRequest__FileSystemSandboxEntry> | null; | 34840 | readonly fileSystem?: ServerNotification__AdditionalFileSystemPermissions | null; |
| 30599 | readonly globScanMaxDepth?: number | null; | 34841 | readonly network?: ServerNotification__AdditionalNetworkPermissions | null; |
| 30600 | readonly read?: ReadonlyArray<ServerRequest__LegacyAppPathString> | null; | | |
| 30601 | readonly write?: ReadonlyArray<ServerRequest__LegacyAppPathString> | null; | | |
| 30602 | }; | 34842 | }; |
| 30603 | export const ServerRequest__AdditionalFileSystemPermissions = Schema.Struct({ | 34843 | export const ServerNotification__RequestPermissionProfile = Schema.Struct({ |
| 30604 | entries: Schema.optionalKey( | 34844 | fileSystem: Schema.optionalKey( |
| 30605 | Schema.Union([Schema.Array(ServerRequest__FileSystemSandboxEntry), Schema.Null]), | 34845 | Schema.Union([ServerNotification__AdditionalFileSystemPermissions, Schema.Null]), |
| 30606 | ), | 34846 | ), |
| 30607 | globScanMaxDepth: Schema.optionalKey( | 34847 | network: Schema.optionalKey( |
| 30608 | Schema.Union([ | 34848 | Schema.Union([ServerNotification__AdditionalNetworkPermissions, Schema.Null]), |
| 30609 | Schema.Number.annotate({ format: "uint" }) | | |
| 30610 | .check(Schema.isInt()) | | |
| 30611 | .check(Schema.isGreaterThanOrEqualTo(1)), | | |
| 30612 | Schema.Null, | | |
| 30613 | ]), | | |
| 30614 | ), | 34849 | ), |
| 30615 | read: Schema.optionalKey( | 34850 | }).annotate({ identifier: "ServerNotification__RequestPermissionProfile" }); |
| 30616 | Schema.Union([ | 34851 | |
| 30617 | Schema.Array(ServerRequest__LegacyAppPathString).annotate({ | 34852 | export type ServerRequest__RequestPermissionProfile = { |
| 30618 | description: "This will be removed in favor of `entries`.", | 34853 | readonly fileSystem?: ServerRequest__AdditionalFileSystemPermissions | null; |
| 30619 | }), | 34854 | readonly network?: ServerRequest__AdditionalNetworkPermissions | null; |
| 30620 | Schema.Null, | 34855 | }; |
| 30621 | ]), | 34856 | export const ServerRequest__RequestPermissionProfile = Schema.Struct({ |
| | 34857 | fileSystem: Schema.optionalKey( |
| | 34858 | Schema.Union([ServerRequest__AdditionalFileSystemPermissions, Schema.Null]), |
| 30622 | ), | 34859 | ), |
| 30623 | write: Schema.optionalKey( | 34860 | network: Schema.optionalKey( |
| 30624 | Schema.Union([ | 34861 | Schema.Union([ServerRequest__AdditionalNetworkPermissions, Schema.Null]), |
| 30625 | Schema.Array(ServerRequest__LegacyAppPathString).annotate({ | | |
| 30626 | description: "This will be removed in favor of `entries`.", | | |
| 30627 | }), | | |
| 30628 | Schema.Null, | | |
| 30629 | ]), | | |
| 30630 | ), | 34862 | ), |
| 30631 | }); | 34863 | }).annotate({ identifier: "ServerRequest__RequestPermissionProfile" }); |
| 30632 | | 34864 | |
| 30633 | export type ServerRequest__McpElicitationEnumSchema = | 34865 | export type ServerRequest__McpElicitationPrimitiveSchema = |
| 30634 | | ServerRequest__McpElicitationSingleSelectEnumSchema | 34866 | | ServerRequest__McpElicitationEnumSchema |
| 30635 | | ServerRequest__McpElicitationMultiSelectEnumSchema | 34867 | | ServerRequest__McpElicitationStringSchema |
| 30636 | | ServerRequest__McpElicitationLegacyTitledEnumSchema; | 34868 | | ServerRequest__McpElicitationNumberSchema |
| 30637 | export const ServerRequest__McpElicitationEnumSchema = Schema.Union([ | 34869 | | ServerRequest__McpElicitationBooleanSchema; |
| 30638 | ServerRequest__McpElicitationSingleSelectEnumSchema, | 34870 | export const ServerRequest__McpElicitationPrimitiveSchema = Schema.Union([ |
| 30639 | ServerRequest__McpElicitationMultiSelectEnumSchema, | 34871 | ServerRequest__McpElicitationEnumSchema, |
| 30640 | ServerRequest__McpElicitationLegacyTitledEnumSchema, | 34872 | ServerRequest__McpElicitationStringSchema, |
| 30641 | ]); | 34873 | ServerRequest__McpElicitationNumberSchema, |
| | 34874 | ServerRequest__McpElicitationBooleanSchema, |
| | 34875 | ]).annotate({ identifier: "ServerRequest__McpElicitationPrimitiveSchema" }); |
| 30642 | | 34876 | |
| 30643 | export type V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions = { | 34877 | export type V2ItemGuardianApprovalReviewCompletedNotification__RequestPermissionProfile = { |
| 30644 | readonly entries?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry> | null; | 34878 | readonly fileSystem?: V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions | null; |
| 30645 | readonly globScanMaxDepth?: number | null; | 34879 | readonly network?: V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions | null; |
| 30646 | readonly read?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString> | null; | | |
| 30647 | readonly write?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString> | null; | | |
| 30648 | }; | 34880 | }; |
| 30649 | export const V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions = | 34881 | export const V2ItemGuardianApprovalReviewCompletedNotification__RequestPermissionProfile = |
| 30650 | Schema.Struct({ | 34882 | Schema.Struct({ |
| 30651 | entries: Schema.optionalKey( | 34883 | fileSystem: Schema.optionalKey( |
| 30652 | Schema.Union([ | | |
| 30653 | Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry), | | |
| 30654 | Schema.Null, | | |
| 30655 | ]), | | |
| 30656 | ), | | |
| 30657 | globScanMaxDepth: Schema.optionalKey( | | |
| 30658 | Schema.Union([ | | |
| 30659 | Schema.Number.annotate({ format: "uint" }) | | |
| 30660 | .check(Schema.isInt()) | | |
| 30661 | .check(Schema.isGreaterThanOrEqualTo(1)), | | |
| 30662 | Schema.Null, | | |
| 30663 | ]), | | |
| 30664 | ), | | |
| 30665 | read: Schema.optionalKey( | | |
| 30666 | Schema.Union([ | 34884 | Schema.Union([ |
| 30667 | Schema.Array( | 34885 | V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions, |
| 30668 | V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString, | | |
| 30669 | ).annotate({ description: "This will be removed in favor of `entries`." }), | | |
| 30670 | Schema.Null, | 34886 | Schema.Null, |
| 30671 | ]), | 34887 | ]), |
| 30672 | ), | 34888 | ), |
| 30673 | write: Schema.optionalKey( | 34889 | network: Schema.optionalKey( |
| 30674 | Schema.Union([ | 34890 | Schema.Union([ |
| 30675 | Schema.Array( | 34891 | V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions, |
| 30676 | V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString, | | |
| 30677 | ).annotate({ description: "This will be removed in favor of `entries`." }), | | |
| 30678 | Schema.Null, | 34892 | Schema.Null, |
| 30679 | ]), | 34893 | ]), |
| 30680 | ), | 34894 | ), |
| | 34895 | }).annotate({ |
| | 34896 | identifier: "V2ItemGuardianApprovalReviewCompletedNotification__RequestPermissionProfile", |
| 30681 | }); | 34897 | }); |
| 30682 | | 34898 | |
| 30683 | export type V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions = { | 34899 | export type V2ItemGuardianApprovalReviewStartedNotification__RequestPermissionProfile = { |
| 30684 | readonly entries?: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry> | null; | 34900 | readonly fileSystem?: V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions | null; |
| 30685 | readonly globScanMaxDepth?: number | null; | 34901 | readonly network?: V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions | null; |
| 30686 | readonly read?: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString> | null; | | |
| 30687 | readonly write?: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString> | null; | | |
| 30688 | }; | 34902 | }; |
| 30689 | export const V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions = | 34903 | export const V2ItemGuardianApprovalReviewStartedNotification__RequestPermissionProfile = |
| 30690 | Schema.Struct({ | 34904 | Schema.Struct({ |
| 30691 | entries: Schema.optionalKey( | 34905 | fileSystem: Schema.optionalKey( |
| 30692 | Schema.Union([ | | |
| 30693 | Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry), | | |
| 30694 | Schema.Null, | | |
| 30695 | ]), | | |
| 30696 | ), | | |
| 30697 | globScanMaxDepth: Schema.optionalKey( | | |
| 30698 | Schema.Union([ | | |
| 30699 | Schema.Number.annotate({ format: "uint" }) | | |
| 30700 | .check(Schema.isInt()) | | |
| 30701 | .check(Schema.isGreaterThanOrEqualTo(1)), | | |
| 30702 | Schema.Null, | | |
| 30703 | ]), | | |
| 30704 | ), | | |
| 30705 | read: Schema.optionalKey( | | |
| 30706 | Schema.Union([ | 34906 | Schema.Union([ |
| 30707 | Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString).annotate( | 34907 | V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions, |
| 30708 | { description: "This will be removed in favor of `entries`." }, | | |
| 30709 | ), | | |
| 30710 | Schema.Null, | 34908 | Schema.Null, |
| 30711 | ]), | 34909 | ]), |
| 30712 | ), | 34910 | ), |
| 30713 | write: Schema.optionalKey( | 34911 | network: Schema.optionalKey( |
| 30714 | Schema.Union([ | 34912 | Schema.Union([ |
| 30715 | Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString).annotate( | 34913 | V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions, |
| 30716 | { description: "This will be removed in favor of `entries`." }, | | |
| 30717 | ), | | |
| 30718 | Schema.Null, | 34914 | Schema.Null, |
| 30719 | ]), | 34915 | ]), |
| 30720 | ), | 34916 | ), |
| | 34917 | }).annotate({ |
| | 34918 | identifier: "V2ItemGuardianApprovalReviewStartedNotification__RequestPermissionProfile", |
| 30721 | }); | 34919 | }); |
| 30722 | | 34920 | |
| 30723 | export type V2PluginInstalledResponse__PluginMarketplaceEntry = { | | |
| 30724 | readonly interface?: V2PluginInstalledResponse__MarketplaceInterface | null; | | |
| 30725 | readonly name: string; | | |
| 30726 | readonly path?: V2PluginInstalledResponse__AbsolutePathBuf | null; | | |
| 30727 | readonly plugins: ReadonlyArray<V2PluginInstalledResponse__PluginSummary>; | | |
| 30728 | }; | | |
| 30729 | export const V2PluginInstalledResponse__PluginMarketplaceEntry = Schema.Struct({ | | |
| 30730 | interface: Schema.optionalKey( | | |
| 30731 | Schema.Union([V2PluginInstalledResponse__MarketplaceInterface, Schema.Null]), | | |
| 30732 | ), | | |
| 30733 | name: Schema.String, | | |
| 30734 | path: Schema.optionalKey( | | |
| 30735 | Schema.Union([V2PluginInstalledResponse__AbsolutePathBuf, Schema.Null]).annotate({ | | |
| 30736 | description: | | |
| 30737 | "Local marketplace file path when the marketplace is backed by a local file. Remote-only catalog marketplaces do not have a local path.", | | |
| 30738 | }), | | |
| 30739 | ), | | |
| 30740 | plugins: Schema.Array(V2PluginInstalledResponse__PluginSummary), | | |
| 30741 | }); | | |
| 30742 | | | |
| 30743 | export type V2PluginListResponse__PluginMarketplaceEntry = { | | |
| 30744 | readonly interface?: V2PluginListResponse__MarketplaceInterface | null; | | |
| 30745 | readonly name: string; | | |
| 30746 | readonly path?: V2PluginListResponse__AbsolutePathBuf | null; | | |
| 30747 | readonly plugins: ReadonlyArray<V2PluginListResponse__PluginSummary>; | | |
| 30748 | }; | | |
| 30749 | export const V2PluginListResponse__PluginMarketplaceEntry = Schema.Struct({ | | |
| 30750 | interface: Schema.optionalKey( | | |
| 30751 | Schema.Union([V2PluginListResponse__MarketplaceInterface, Schema.Null]), | | |
| 30752 | ), | | |
| 30753 | name: Schema.String, | | |
| 30754 | path: Schema.optionalKey( | | |
| 30755 | Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null]).annotate({ | | |
| 30756 | description: | | |
| 30757 | "Local marketplace file path when the marketplace is backed by a local file. Remote-only catalog marketplaces do not have a local path.", | | |
| 30758 | }), | | |
| 30759 | ), | | |
| 30760 | plugins: Schema.Array(V2PluginListResponse__PluginSummary), | | |
| 30761 | }); | | |
| 30762 | | | |
| 30763 | export type V2PluginReadResponse__PluginDetail = { | | |
| 30764 | readonly appTemplates: ReadonlyArray<V2PluginReadResponse__AppTemplateSummary>; | | |
| 30765 | readonly apps: ReadonlyArray<V2PluginReadResponse__AppSummary>; | | |
| 30766 | readonly description?: string | null; | | |
| 30767 | readonly hooks: ReadonlyArray<V2PluginReadResponse__PluginHookSummary>; | | |
| 30768 | readonly marketplaceName: string; | | |
| 30769 | readonly marketplacePath?: V2PluginReadResponse__AbsolutePathBuf | null; | | |
| 30770 | readonly mcpServers: ReadonlyArray<string>; | | |
| 30771 | readonly scheduledTasks?: ReadonlyArray<V2PluginReadResponse__ScheduledTaskSummary> | null; | | |
| 30772 | readonly shareUrl?: string | null; | | |
| 30773 | readonly skills: ReadonlyArray<V2PluginReadResponse__SkillSummary>; | | |
| 30774 | readonly summary: V2PluginReadResponse__PluginSummary; | | |
| 30775 | }; | | |
| 30776 | export const V2PluginReadResponse__PluginDetail = Schema.Struct({ | | |
| 30777 | appTemplates: Schema.Array(V2PluginReadResponse__AppTemplateSummary), | | |
| 30778 | apps: Schema.Array(V2PluginReadResponse__AppSummary), | | |
| 30779 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 30780 | hooks: Schema.Array(V2PluginReadResponse__PluginHookSummary), | | |
| 30781 | marketplaceName: Schema.String, | | |
| 30782 | marketplacePath: Schema.optionalKey( | | |
| 30783 | Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null]), | | |
| 30784 | ), | | |
| 30785 | mcpServers: Schema.Array(Schema.String), | | |
| 30786 | scheduledTasks: Schema.optionalKey( | | |
| 30787 | Schema.Union([Schema.Array(V2PluginReadResponse__ScheduledTaskSummary), Schema.Null]), | | |
| 30788 | ), | | |
| 30789 | shareUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 30790 | skills: Schema.Array(V2PluginReadResponse__SkillSummary), | | |
| 30791 | summary: V2PluginReadResponse__PluginSummary, | | |
| 30792 | }); | | |
| 30793 | | | |
| 30794 | export type V2PluginShareListResponse__PluginShareListItem = { | | |
| 30795 | readonly localPluginPath?: V2PluginShareListResponse__AbsolutePathBuf | null; | | |
| 30796 | readonly plugin: V2PluginShareListResponse__PluginSummary; | | |
| 30797 | }; | | |
| 30798 | export const V2PluginShareListResponse__PluginShareListItem = Schema.Struct({ | | |
| 30799 | localPluginPath: Schema.optionalKey( | | |
| 30800 | Schema.Union([V2PluginShareListResponse__AbsolutePathBuf, Schema.Null]), | | |
| 30801 | ), | | |
| 30802 | plugin: V2PluginShareListResponse__PluginSummary, | | |
| 30803 | }); | | |
| 30804 | | | |
| 30805 | export type V2ThreadForkResponse__Thread = { | 34921 | export type V2ThreadForkResponse__Thread = { |
| 30806 | readonly agentNickname?: string | null; | 34922 | readonly agentNickname?: string | null; |
| 30807 | readonly agentRole?: string | null; | 34923 | readonly agentRole?: string | null; |
| 30808 | readonly cliVersion: string; | 34924 | readonly cliVersion: string; |
| 30809 | readonly createdAt: number; | 34925 | readonly createdAt: number; |
| 30810 | readonly cwd: string; | 34926 | readonly cwd: V2ThreadForkResponse__AbsolutePathBuf; |
| 30811 | readonly ephemeral: boolean; | 34927 | readonly ephemeral: boolean; |
| 30812 | readonly forkedFromId?: string | null; | 34928 | readonly forkedFromId?: string | null; |
| 30813 | readonly gitInfo?: V2ThreadForkResponse__GitInfo | null; | 34929 | readonly gitInfo?: V2ThreadForkResponse__GitInfo | null; |
| ... | @@ -30819,22 +34935,8 @@ export type V2ThreadForkResponse__Thread = { | ... | @@ -30819,22 +34935,8 @@ export type V2ThreadForkResponse__Thread = { |
| 30819 | readonly preview: string; | 34935 | readonly preview: string; |
| 30820 | readonly recencyAt?: number | null; | 34936 | readonly recencyAt?: number | null; |
| 30821 | readonly sessionId: string; | 34937 | readonly sessionId: string; |
| 30822 | readonly source: | 34938 | readonly source: V2ThreadForkResponse__SessionSource; |
| 30823 | | "cli" | 34939 | readonly status: V2ThreadForkResponse__ThreadStatus; |
| 30824 | | "vscode" | | |
| 30825 | | "exec" | | |
| 30826 | | "appServer" | | |
| 30827 | | "unknown" | | |
| 30828 | | { readonly custom: string } | | |
| 30829 | | { readonly subAgent: V2ThreadForkResponse__SubAgentSource }; | | |
| 30830 | readonly status: | | |
| 30831 | | { readonly type: "notLoaded" } | | |
| 30832 | | { readonly type: "idle" } | | |
| 30833 | | { readonly type: "systemError" } | | |
| 30834 | | { | | |
| 30835 | readonly activeFlags: ReadonlyArray<V2ThreadForkResponse__ThreadActiveFlag>; | | |
| 30836 | readonly type: "active"; | | |
| 30837 | }; | | |
| 30838 | readonly threadSource?: V2ThreadForkResponse__ThreadSource | null; | 34940 | readonly threadSource?: V2ThreadForkResponse__ThreadSource | null; |
| 30839 | readonly turns: ReadonlyArray<V2ThreadForkResponse__Turn>; | 34941 | readonly turns: ReadonlyArray<V2ThreadForkResponse__Turn>; |
| 30840 | readonly updatedAt: number; | 34942 | readonly updatedAt: number; |
| ... | @@ -30863,11 +34965,11 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({ | ... | @@ -30863,11 +34965,11 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({ |
| 30863 | createdAt: Schema.Number.annotate({ | 34965 | createdAt: Schema.Number.annotate({ |
| 30864 | description: "Unix timestamp (in seconds) when the thread was created.", | 34966 | description: "Unix timestamp (in seconds) when the thread was created.", |
| 30865 | format: "int64", | 34967 | format: "int64", |
| 30866 | }).check(Schema.isInt()), | 34968 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 30867 | cwd: Schema.String.annotate({ | 34969 | cwd: Schema.suspend( |
| 30868 | description: | 34970 | (): Schema.Codec<V2ThreadForkResponse__AbsolutePathBuf> => |
| 30869 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 34971 | V2ThreadForkResponse__AbsolutePathBuf, |
| 30870 | }), | 34972 | ).annotate({ description: "Working directory captured for the thread." }), |
| 30871 | ephemeral: Schema.Boolean.annotate({ | 34973 | ephemeral: Schema.Boolean.annotate({ |
| 30872 | description: "Whether the thread is ephemeral and should not be materialized on disk.", | 34974 | description: "Whether the thread is ephemeral and should not be materialized on disk.", |
| 30873 | }), | 34975 | }), |
| ... | @@ -30919,42 +35021,20 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({ | ... | @@ -30919,42 +35021,20 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({ |
| 30919 | Schema.Number.annotate({ | 35021 | Schema.Number.annotate({ |
| 30920 | description: "Unix timestamp (in seconds) used for thread recency ordering.", | 35022 | description: "Unix timestamp (in seconds) used for thread recency ordering.", |
| 30921 | format: "int64", | 35023 | format: "int64", |
| 30922 | }).check(Schema.isInt()), | 35024 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 30923 | Schema.Null, | 35025 | Schema.Null, |
| 30924 | ]), | 35026 | ]), |
| 30925 | ), | 35027 | ), |
| 30926 | sessionId: Schema.String.annotate({ | 35028 | sessionId: Schema.String.annotate({ |
| 30927 | description: "Session id shared by threads that belong to the same session tree.", | 35029 | description: "Session id shared by threads that belong to the same session tree.", |
| 30928 | }), | 35030 | }), |
| 30929 | source: Schema.Union( | 35031 | source: Schema.suspend( |
| 30930 | [ | 35032 | (): Schema.Codec<V2ThreadForkResponse__SessionSource> => V2ThreadForkResponse__SessionSource, |
| 30931 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), | | |
| 30932 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), | | |
| 30933 | Schema.Struct({ subAgent: V2ThreadForkResponse__SubAgentSource }).annotate({ | | |
| 30934 | title: "SubAgentSessionSource", | | |
| 30935 | }), | | |
| 30936 | ], | | |
| 30937 | { mode: "oneOf" }, | | |
| 30938 | ).annotate({ | 35033 | ).annotate({ |
| 30939 | description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).", | 35034 | description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).", |
| 30940 | }), | 35035 | }), |
| 30941 | status: Schema.Union( | 35036 | status: Schema.suspend( |
| 30942 | [ | 35037 | (): Schema.Codec<V2ThreadForkResponse__ThreadStatus> => V2ThreadForkResponse__ThreadStatus, |
| 30943 | Schema.Struct({ | | |
| 30944 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), | | |
| 30945 | }).annotate({ title: "NotLoadedThreadStatus" }), | | |
| 30946 | Schema.Struct({ | | |
| 30947 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), | | |
| 30948 | }).annotate({ title: "IdleThreadStatus" }), | | |
| 30949 | Schema.Struct({ | | |
| 30950 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), | | |
| 30951 | }).annotate({ title: "SystemErrorThreadStatus" }), | | |
| 30952 | Schema.Struct({ | | |
| 30953 | activeFlags: Schema.Array(V2ThreadForkResponse__ThreadActiveFlag), | | |
| 30954 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), | | |
| 30955 | }).annotate({ title: "ActiveThreadStatus" }), | | |
| 30956 | ], | | |
| 30957 | { mode: "oneOf" }, | | |
| 30958 | ).annotate({ description: "Current runtime status for the thread." }), | 35038 | ).annotate({ description: "Current runtime status for the thread." }), |
| 30959 | threadSource: Schema.optionalKey( | 35039 | threadSource: Schema.optionalKey( |
| 30960 | Schema.Union([V2ThreadForkResponse__ThreadSource, Schema.Null]).annotate({ | 35040 | Schema.Union([V2ThreadForkResponse__ThreadSource, Schema.Null]).annotate({ |
| ... | @@ -30968,15 +35048,15 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({ | ... | @@ -30968,15 +35048,15 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({ |
| 30968 | updatedAt: Schema.Number.annotate({ | 35048 | updatedAt: Schema.Number.annotate({ |
| 30969 | description: "Unix timestamp (in seconds) when the thread was last updated.", | 35049 | description: "Unix timestamp (in seconds) when the thread was last updated.", |
| 30970 | format: "int64", | 35050 | format: "int64", |
| 30971 | }).check(Schema.isInt()), | 35051 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 30972 | }); | 35052 | }).annotate({ identifier: "V2ThreadForkResponse__Thread" }); |
| 30973 | | 35053 | |
| 30974 | export type V2ThreadListResponse__Thread = { | 35054 | export type V2ThreadListResponse__Thread = { |
| 30975 | readonly agentNickname?: string | null; | 35055 | readonly agentNickname?: string | null; |
| 30976 | readonly agentRole?: string | null; | 35056 | readonly agentRole?: string | null; |
| 30977 | readonly cliVersion: string; | 35057 | readonly cliVersion: string; |
| 30978 | readonly createdAt: number; | 35058 | readonly createdAt: number; |
| 30979 | readonly cwd: string; | 35059 | readonly cwd: V2ThreadListResponse__AbsolutePathBuf; |
| 30980 | readonly ephemeral: boolean; | 35060 | readonly ephemeral: boolean; |
| 30981 | readonly forkedFromId?: string | null; | 35061 | readonly forkedFromId?: string | null; |
| 30982 | readonly gitInfo?: V2ThreadListResponse__GitInfo | null; | 35062 | readonly gitInfo?: V2ThreadListResponse__GitInfo | null; |
| ... | @@ -30988,22 +35068,8 @@ export type V2ThreadListResponse__Thread = { | ... | @@ -30988,22 +35068,8 @@ export type V2ThreadListResponse__Thread = { |
| 30988 | readonly preview: string; | 35068 | readonly preview: string; |
| 30989 | readonly recencyAt?: number | null; | 35069 | readonly recencyAt?: number | null; |
| 30990 | readonly sessionId: string; | 35070 | readonly sessionId: string; |
| 30991 | readonly source: | 35071 | readonly source: V2ThreadListResponse__SessionSource; |
| 30992 | | "cli" | 35072 | readonly status: V2ThreadListResponse__ThreadStatus; |
| 30993 | | "vscode" | | |
| 30994 | | "exec" | | |
| 30995 | | "appServer" | | |
| 30996 | | "unknown" | | |
| 30997 | | { readonly custom: string } | | |
| 30998 | | { readonly subAgent: V2ThreadListResponse__SubAgentSource }; | | |
| 30999 | readonly status: | | |
| 31000 | | { readonly type: "notLoaded" } | | |
| 31001 | | { readonly type: "idle" } | | |
| 31002 | | { readonly type: "systemError" } | | |
| 31003 | | { | | |
| 31004 | readonly activeFlags: ReadonlyArray<V2ThreadListResponse__ThreadActiveFlag>; | | |
| 31005 | readonly type: "active"; | | |
| 31006 | }; | | |
| 31007 | readonly threadSource?: V2ThreadListResponse__ThreadSource | null; | 35073 | readonly threadSource?: V2ThreadListResponse__ThreadSource | null; |
| 31008 | readonly turns: ReadonlyArray<V2ThreadListResponse__Turn>; | 35074 | readonly turns: ReadonlyArray<V2ThreadListResponse__Turn>; |
| 31009 | readonly updatedAt: number; | 35075 | readonly updatedAt: number; |
| ... | @@ -31032,11 +35098,11 @@ export const V2ThreadListResponse__Thread = Schema.Struct({ | ... | @@ -31032,11 +35098,11 @@ export const V2ThreadListResponse__Thread = Schema.Struct({ |
| 31032 | createdAt: Schema.Number.annotate({ | 35098 | createdAt: Schema.Number.annotate({ |
| 31033 | description: "Unix timestamp (in seconds) when the thread was created.", | 35099 | description: "Unix timestamp (in seconds) when the thread was created.", |
| 31034 | format: "int64", | 35100 | format: "int64", |
| 31035 | }).check(Schema.isInt()), | 35101 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 31036 | cwd: Schema.String.annotate({ | 35102 | cwd: Schema.suspend( |
| 31037 | description: | 35103 | (): Schema.Codec<V2ThreadListResponse__AbsolutePathBuf> => |
| 31038 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 35104 | V2ThreadListResponse__AbsolutePathBuf, |
| 31039 | }), | 35105 | ).annotate({ description: "Working directory captured for the thread." }), |
| 31040 | ephemeral: Schema.Boolean.annotate({ | 35106 | ephemeral: Schema.Boolean.annotate({ |
| 31041 | description: "Whether the thread is ephemeral and should not be materialized on disk.", | 35107 | description: "Whether the thread is ephemeral and should not be materialized on disk.", |
| 31042 | }), | 35108 | }), |
| ... | @@ -31088,42 +35154,20 @@ export const V2ThreadListResponse__Thread = Schema.Struct({ | ... | @@ -31088,42 +35154,20 @@ export const V2ThreadListResponse__Thread = Schema.Struct({ |
| 31088 | Schema.Number.annotate({ | 35154 | Schema.Number.annotate({ |
| 31089 | description: "Unix timestamp (in seconds) used for thread recency ordering.", | 35155 | description: "Unix timestamp (in seconds) used for thread recency ordering.", |
| 31090 | format: "int64", | 35156 | format: "int64", |
| 31091 | }).check(Schema.isInt()), | 35157 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 31092 | Schema.Null, | 35158 | Schema.Null, |
| 31093 | ]), | 35159 | ]), |
| 31094 | ), | 35160 | ), |
| 31095 | sessionId: Schema.String.annotate({ | 35161 | sessionId: Schema.String.annotate({ |
| 31096 | description: "Session id shared by threads that belong to the same session tree.", | 35162 | description: "Session id shared by threads that belong to the same session tree.", |
| 31097 | }), | 35163 | }), |
| 31098 | source: Schema.Union( | 35164 | source: Schema.suspend( |
| 31099 | [ | 35165 | (): Schema.Codec<V2ThreadListResponse__SessionSource> => V2ThreadListResponse__SessionSource, |
| 31100 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), | | |
| 31101 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), | | |
| 31102 | Schema.Struct({ subAgent: V2ThreadListResponse__SubAgentSource }).annotate({ | | |
| 31103 | title: "SubAgentSessionSource", | | |
| 31104 | }), | | |
| 31105 | ], | | |
| 31106 | { mode: "oneOf" }, | | |
| 31107 | ).annotate({ | 35166 | ).annotate({ |
| 31108 | description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).", | 35167 | description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).", |
| 31109 | }), | 35168 | }), |
| 31110 | status: Schema.Union( | 35169 | status: Schema.suspend( |
| 31111 | [ | 35170 | (): Schema.Codec<V2ThreadListResponse__ThreadStatus> => V2ThreadListResponse__ThreadStatus, |
| 31112 | Schema.Struct({ | | |
| 31113 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), | | |
| 31114 | }).annotate({ title: "NotLoadedThreadStatus" }), | | |
| 31115 | Schema.Struct({ | | |
| 31116 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), | | |
| 31117 | }).annotate({ title: "IdleThreadStatus" }), | | |
| 31118 | Schema.Struct({ | | |
| 31119 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), | | |
| 31120 | }).annotate({ title: "SystemErrorThreadStatus" }), | | |
| 31121 | Schema.Struct({ | | |
| 31122 | activeFlags: Schema.Array(V2ThreadListResponse__ThreadActiveFlag), | | |
| 31123 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), | | |
| 31124 | }).annotate({ title: "ActiveThreadStatus" }), | | |
| 31125 | ], | | |
| 31126 | { mode: "oneOf" }, | | |
| 31127 | ).annotate({ description: "Current runtime status for the thread." }), | 35171 | ).annotate({ description: "Current runtime status for the thread." }), |
| 31128 | threadSource: Schema.optionalKey( | 35172 | threadSource: Schema.optionalKey( |
| 31129 | Schema.Union([V2ThreadListResponse__ThreadSource, Schema.Null]).annotate({ | 35173 | Schema.Union([V2ThreadListResponse__ThreadSource, Schema.Null]).annotate({ |
| ... | @@ -31137,15 +35181,15 @@ export const V2ThreadListResponse__Thread = Schema.Struct({ | ... | @@ -31137,15 +35181,15 @@ export const V2ThreadListResponse__Thread = Schema.Struct({ |
| 31137 | updatedAt: Schema.Number.annotate({ | 35181 | updatedAt: Schema.Number.annotate({ |
| 31138 | description: "Unix timestamp (in seconds) when the thread was last updated.", | 35182 | description: "Unix timestamp (in seconds) when the thread was last updated.", |
| 31139 | format: "int64", | 35183 | format: "int64", |
| 31140 | }).check(Schema.isInt()), | 35184 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 31141 | }); | 35185 | }).annotate({ identifier: "V2ThreadListResponse__Thread" }); |
| 31142 | | 35186 | |
| 31143 | export type V2ThreadMetadataUpdateResponse__Thread = { | 35187 | export type V2ThreadMetadataUpdateResponse__Thread = { |
| 31144 | readonly agentNickname?: string | null; | 35188 | readonly agentNickname?: string | null; |
| 31145 | readonly agentRole?: string | null; | 35189 | readonly agentRole?: string | null; |
| 31146 | readonly cliVersion: string; | 35190 | readonly cliVersion: string; |
| 31147 | readonly createdAt: number; | 35191 | readonly createdAt: number; |
| 31148 | readonly cwd: string; | 35192 | readonly cwd: V2ThreadMetadataUpdateResponse__AbsolutePathBuf; |
| 31149 | readonly ephemeral: boolean; | 35193 | readonly ephemeral: boolean; |
| 31150 | readonly forkedFromId?: string | null; | 35194 | readonly forkedFromId?: string | null; |
| 31151 | readonly gitInfo?: V2ThreadMetadataUpdateResponse__GitInfo | null; | 35195 | readonly gitInfo?: V2ThreadMetadataUpdateResponse__GitInfo | null; |
| ... | @@ -31157,22 +35201,8 @@ export type V2ThreadMetadataUpdateResponse__Thread = { | ... | @@ -31157,22 +35201,8 @@ export type V2ThreadMetadataUpdateResponse__Thread = { |
| 31157 | readonly preview: string; | 35201 | readonly preview: string; |
| 31158 | readonly recencyAt?: number | null; | 35202 | readonly recencyAt?: number | null; |
| 31159 | readonly sessionId: string; | 35203 | readonly sessionId: string; |
| 31160 | readonly source: | 35204 | readonly source: V2ThreadMetadataUpdateResponse__SessionSource; |
| 31161 | | "cli" | 35205 | readonly status: V2ThreadMetadataUpdateResponse__ThreadStatus; |
| 31162 | | "vscode" | | |
| 31163 | | "exec" | | |
| 31164 | | "appServer" | | |
| 31165 | | "unknown" | | |
| 31166 | | { readonly custom: string } | | |
| 31167 | | { readonly subAgent: V2ThreadMetadataUpdateResponse__SubAgentSource }; | | |
| 31168 | readonly status: | | |
| 31169 | | { readonly type: "notLoaded" } | | |
| 31170 | | { readonly type: "idle" } | | |
| 31171 | | { readonly type: "systemError" } | | |
| 31172 | | { | | |
| 31173 | readonly activeFlags: ReadonlyArray<V2ThreadMetadataUpdateResponse__ThreadActiveFlag>; | | |
| 31174 | readonly type: "active"; | | |
| 31175 | }; | | |
| 31176 | readonly threadSource?: V2ThreadMetadataUpdateResponse__ThreadSource | null; | 35206 | readonly threadSource?: V2ThreadMetadataUpdateResponse__ThreadSource | null; |
| 31177 | readonly turns: ReadonlyArray<V2ThreadMetadataUpdateResponse__Turn>; | 35207 | readonly turns: ReadonlyArray<V2ThreadMetadataUpdateResponse__Turn>; |
| 31178 | readonly updatedAt: number; | 35208 | readonly updatedAt: number; |
| ... | @@ -31201,11 +35231,146 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({ | ... | @@ -31201,11 +35231,146 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({ |
| 31201 | createdAt: Schema.Number.annotate({ | 35231 | createdAt: Schema.Number.annotate({ |
| 31202 | description: "Unix timestamp (in seconds) when the thread was created.", | 35232 | description: "Unix timestamp (in seconds) when the thread was created.", |
| 31203 | format: "int64", | 35233 | format: "int64", |
| 31204 | }).check(Schema.isInt()), | 35234 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 31205 | cwd: Schema.String.annotate({ | 35235 | cwd: Schema.suspend( |
| | 35236 | (): Schema.Codec<V2ThreadMetadataUpdateResponse__AbsolutePathBuf> => |
| | 35237 | V2ThreadMetadataUpdateResponse__AbsolutePathBuf, |
| | 35238 | ).annotate({ description: "Working directory captured for the thread." }), |
| | 35239 | ephemeral: Schema.Boolean.annotate({ |
| | 35240 | description: "Whether the thread is ephemeral and should not be materialized on disk.", |
| | 35241 | }), |
| | 35242 | forkedFromId: Schema.optionalKey( |
| | 35243 | Schema.Union([ |
| | 35244 | Schema.String.annotate({ |
| | 35245 | description: "Source thread id when this thread was created by forking another thread.", |
| | 35246 | }), |
| | 35247 | Schema.Null, |
| | 35248 | ]), |
| | 35249 | ), |
| | 35250 | gitInfo: Schema.optionalKey( |
| | 35251 | Schema.Union([V2ThreadMetadataUpdateResponse__GitInfo, Schema.Null]).annotate({ |
| | 35252 | description: "Optional Git metadata captured when the thread was created.", |
| | 35253 | }), |
| | 35254 | ), |
| | 35255 | id: Schema.String.annotate({ |
| | 35256 | description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.", |
| | 35257 | }), |
| | 35258 | modelProvider: Schema.String.annotate({ |
| | 35259 | description: "Model provider used for this thread (for example, 'openai').", |
| | 35260 | }), |
| | 35261 | name: Schema.optionalKey( |
| | 35262 | Schema.Union([ |
| | 35263 | Schema.String.annotate({ description: "Optional user-facing thread title." }), |
| | 35264 | Schema.Null, |
| | 35265 | ]), |
| | 35266 | ), |
| | 35267 | parentThreadId: Schema.optionalKey( |
| | 35268 | Schema.Union([ |
| | 35269 | Schema.String.annotate({ |
| | 35270 | description: |
| | 35271 | "The ID of the parent thread. This will only be set if this thread is a subagent.", |
| | 35272 | }), |
| | 35273 | Schema.Null, |
| | 35274 | ]), |
| | 35275 | ), |
| | 35276 | path: Schema.optionalKey( |
| | 35277 | Schema.Union([ |
| | 35278 | Schema.String.annotate({ description: "[UNSTABLE] Path to the thread on disk." }), |
| | 35279 | Schema.Null, |
| | 35280 | ]), |
| | 35281 | ), |
| | 35282 | preview: Schema.String.annotate({ |
| | 35283 | description: "Usually the first user message in the thread, if available.", |
| | 35284 | }), |
| | 35285 | recencyAt: Schema.optionalKey( |
| | 35286 | Schema.Union([ |
| | 35287 | Schema.Number.annotate({ |
| | 35288 | description: "Unix timestamp (in seconds) used for thread recency ordering.", |
| | 35289 | format: "int64", |
| | 35290 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 35291 | Schema.Null, |
| | 35292 | ]), |
| | 35293 | ), |
| | 35294 | sessionId: Schema.String.annotate({ |
| | 35295 | description: "Session id shared by threads that belong to the same session tree.", |
| | 35296 | }), |
| | 35297 | source: Schema.suspend( |
| | 35298 | (): Schema.Codec<V2ThreadMetadataUpdateResponse__SessionSource> => |
| | 35299 | V2ThreadMetadataUpdateResponse__SessionSource, |
| | 35300 | ).annotate({ |
| | 35301 | description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).", |
| | 35302 | }), |
| | 35303 | status: Schema.suspend( |
| | 35304 | (): Schema.Codec<V2ThreadMetadataUpdateResponse__ThreadStatus> => |
| | 35305 | V2ThreadMetadataUpdateResponse__ThreadStatus, |
| | 35306 | ).annotate({ description: "Current runtime status for the thread." }), |
| | 35307 | threadSource: Schema.optionalKey( |
| | 35308 | Schema.Union([V2ThreadMetadataUpdateResponse__ThreadSource, Schema.Null]).annotate({ |
| | 35309 | description: "Optional analytics source classification for this thread.", |
| | 35310 | }), |
| | 35311 | ), |
| | 35312 | turns: Schema.Array(V2ThreadMetadataUpdateResponse__Turn).annotate({ |
| 31206 | description: | 35313 | description: |
| 31207 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 35314 | "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.", |
| | 35315 | }), |
| | 35316 | updatedAt: Schema.Number.annotate({ |
| | 35317 | description: "Unix timestamp (in seconds) when the thread was last updated.", |
| | 35318 | format: "int64", |
| | 35319 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 35320 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__Thread" }); |
| | 35321 | |
| | 35322 | export type V2ThreadReadResponse__Thread = { |
| | 35323 | readonly agentNickname?: string | null; |
| | 35324 | readonly agentRole?: string | null; |
| | 35325 | readonly cliVersion: string; |
| | 35326 | readonly createdAt: number; |
| | 35327 | readonly cwd: V2ThreadReadResponse__AbsolutePathBuf; |
| | 35328 | readonly ephemeral: boolean; |
| | 35329 | readonly forkedFromId?: string | null; |
| | 35330 | readonly gitInfo?: V2ThreadReadResponse__GitInfo | null; |
| | 35331 | readonly id: string; |
| | 35332 | readonly modelProvider: string; |
| | 35333 | readonly name?: string | null; |
| | 35334 | readonly parentThreadId?: string | null; |
| | 35335 | readonly path?: string | null; |
| | 35336 | readonly preview: string; |
| | 35337 | readonly recencyAt?: number | null; |
| | 35338 | readonly sessionId: string; |
| | 35339 | readonly source: V2ThreadReadResponse__SessionSource; |
| | 35340 | readonly status: V2ThreadReadResponse__ThreadStatus; |
| | 35341 | readonly threadSource?: V2ThreadReadResponse__ThreadSource | null; |
| | 35342 | readonly turns: ReadonlyArray<V2ThreadReadResponse__Turn>; |
| | 35343 | readonly updatedAt: number; |
| | 35344 | }; |
| | 35345 | export const V2ThreadReadResponse__Thread = Schema.Struct({ |
| | 35346 | agentNickname: Schema.optionalKey( |
| | 35347 | Schema.Union([ |
| | 35348 | Schema.String.annotate({ |
| | 35349 | description: |
| | 35350 | "Optional random unique nickname assigned to an AgentControl-spawned sub-agent.", |
| | 35351 | }), |
| | 35352 | Schema.Null, |
| | 35353 | ]), |
| | 35354 | ), |
| | 35355 | agentRole: Schema.optionalKey( |
| | 35356 | Schema.Union([ |
| | 35357 | Schema.String.annotate({ |
| | 35358 | description: "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.", |
| | 35359 | }), |
| | 35360 | Schema.Null, |
| | 35361 | ]), |
| | 35362 | ), |
| | 35363 | cliVersion: Schema.String.annotate({ |
| | 35364 | description: "Version of the CLI that created the thread.", |
| 31208 | }), | 35365 | }), |
| | 35366 | createdAt: Schema.Number.annotate({ |
| | 35367 | description: "Unix timestamp (in seconds) when the thread was created.", |
| | 35368 | format: "int64", |
| | 35369 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 35370 | cwd: Schema.suspend( |
| | 35371 | (): Schema.Codec<V2ThreadReadResponse__AbsolutePathBuf> => |
| | 35372 | V2ThreadReadResponse__AbsolutePathBuf, |
| | 35373 | ).annotate({ description: "Working directory captured for the thread." }), |
| 31209 | ephemeral: Schema.Boolean.annotate({ | 35374 | ephemeral: Schema.Boolean.annotate({ |
| 31210 | description: "Whether the thread is ephemeral and should not be materialized on disk.", | 35375 | description: "Whether the thread is ephemeral and should not be materialized on disk.", |
| 31211 | }), | 35376 | }), |
| ... | @@ -31218,7 +35383,7 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({ | ... | @@ -31218,7 +35383,7 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({ |
| 31218 | ]), | 35383 | ]), |
| 31219 | ), | 35384 | ), |
| 31220 | gitInfo: Schema.optionalKey( | 35385 | gitInfo: Schema.optionalKey( |
| 31221 | Schema.Union([V2ThreadMetadataUpdateResponse__GitInfo, Schema.Null]).annotate({ | 35386 | Schema.Union([V2ThreadReadResponse__GitInfo, Schema.Null]).annotate({ |
| 31222 | description: "Optional Git metadata captured when the thread was created.", | 35387 | description: "Optional Git metadata captured when the thread was created.", |
| 31223 | }), | 35388 | }), |
| 31224 | ), | 35389 | ), |
| ... | @@ -31257,67 +35422,45 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({ | ... | @@ -31257,67 +35422,45 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({ |
| 31257 | Schema.Number.annotate({ | 35422 | Schema.Number.annotate({ |
| 31258 | description: "Unix timestamp (in seconds) used for thread recency ordering.", | 35423 | description: "Unix timestamp (in seconds) used for thread recency ordering.", |
| 31259 | format: "int64", | 35424 | format: "int64", |
| 31260 | }).check(Schema.isInt()), | 35425 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 31261 | Schema.Null, | 35426 | Schema.Null, |
| 31262 | ]), | 35427 | ]), |
| 31263 | ), | 35428 | ), |
| 31264 | sessionId: Schema.String.annotate({ | 35429 | sessionId: Schema.String.annotate({ |
| 31265 | description: "Session id shared by threads that belong to the same session tree.", | 35430 | description: "Session id shared by threads that belong to the same session tree.", |
| 31266 | }), | 35431 | }), |
| 31267 | source: Schema.Union( | 35432 | source: Schema.suspend( |
| 31268 | [ | 35433 | (): Schema.Codec<V2ThreadReadResponse__SessionSource> => V2ThreadReadResponse__SessionSource, |
| 31269 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), | | |
| 31270 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), | | |
| 31271 | Schema.Struct({ subAgent: V2ThreadMetadataUpdateResponse__SubAgentSource }).annotate({ | | |
| 31272 | title: "SubAgentSessionSource", | | |
| 31273 | }), | | |
| 31274 | ], | | |
| 31275 | { mode: "oneOf" }, | | |
| 31276 | ).annotate({ | 35434 | ).annotate({ |
| 31277 | description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).", | 35435 | description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).", |
| 31278 | }), | 35436 | }), |
| 31279 | status: Schema.Union( | 35437 | status: Schema.suspend( |
| 31280 | [ | 35438 | (): Schema.Codec<V2ThreadReadResponse__ThreadStatus> => V2ThreadReadResponse__ThreadStatus, |
| 31281 | Schema.Struct({ | | |
| 31282 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), | | |
| 31283 | }).annotate({ title: "NotLoadedThreadStatus" }), | | |
| 31284 | Schema.Struct({ | | |
| 31285 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), | | |
| 31286 | }).annotate({ title: "IdleThreadStatus" }), | | |
| 31287 | Schema.Struct({ | | |
| 31288 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), | | |
| 31289 | }).annotate({ title: "SystemErrorThreadStatus" }), | | |
| 31290 | Schema.Struct({ | | |
| 31291 | activeFlags: Schema.Array(V2ThreadMetadataUpdateResponse__ThreadActiveFlag), | | |
| 31292 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), | | |
| 31293 | }).annotate({ title: "ActiveThreadStatus" }), | | |
| 31294 | ], | | |
| 31295 | { mode: "oneOf" }, | | |
| 31296 | ).annotate({ description: "Current runtime status for the thread." }), | 35439 | ).annotate({ description: "Current runtime status for the thread." }), |
| 31297 | threadSource: Schema.optionalKey( | 35440 | threadSource: Schema.optionalKey( |
| 31298 | Schema.Union([V2ThreadMetadataUpdateResponse__ThreadSource, Schema.Null]).annotate({ | 35441 | Schema.Union([V2ThreadReadResponse__ThreadSource, Schema.Null]).annotate({ |
| 31299 | description: "Optional analytics source classification for this thread.", | 35442 | description: "Optional analytics source classification for this thread.", |
| 31300 | }), | 35443 | }), |
| 31301 | ), | 35444 | ), |
| 31302 | turns: Schema.Array(V2ThreadMetadataUpdateResponse__Turn).annotate({ | 35445 | turns: Schema.Array(V2ThreadReadResponse__Turn).annotate({ |
| 31303 | description: | 35446 | description: |
| 31304 | "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.", | 35447 | "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.", |
| 31305 | }), | 35448 | }), |
| 31306 | updatedAt: Schema.Number.annotate({ | 35449 | updatedAt: Schema.Number.annotate({ |
| 31307 | description: "Unix timestamp (in seconds) when the thread was last updated.", | 35450 | description: "Unix timestamp (in seconds) when the thread was last updated.", |
| 31308 | format: "int64", | 35451 | format: "int64", |
| 31309 | }).check(Schema.isInt()), | 35452 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 31310 | }); | 35453 | }).annotate({ identifier: "V2ThreadReadResponse__Thread" }); |
| 31311 | | 35454 | |
| 31312 | export type V2ThreadReadResponse__Thread = { | 35455 | export type V2ThreadResumeResponse__Thread = { |
| 31313 | readonly agentNickname?: string | null; | 35456 | readonly agentNickname?: string | null; |
| 31314 | readonly agentRole?: string | null; | 35457 | readonly agentRole?: string | null; |
| 31315 | readonly cliVersion: string; | 35458 | readonly cliVersion: string; |
| 31316 | readonly createdAt: number; | 35459 | readonly createdAt: number; |
| 31317 | readonly cwd: string; | 35460 | readonly cwd: V2ThreadResumeResponse__AbsolutePathBuf; |
| 31318 | readonly ephemeral: boolean; | 35461 | readonly ephemeral: boolean; |
| 31319 | readonly forkedFromId?: string | null; | 35462 | readonly forkedFromId?: string | null; |
| 31320 | readonly gitInfo?: V2ThreadReadResponse__GitInfo | null; | 35463 | readonly gitInfo?: V2ThreadResumeResponse__GitInfo | null; |
| 31321 | readonly id: string; | 35464 | readonly id: string; |
| 31322 | readonly modelProvider: string; | 35465 | readonly modelProvider: string; |
| 31323 | readonly name?: string | null; | 35466 | readonly name?: string | null; |
| ... | @@ -31326,27 +35469,13 @@ export type V2ThreadReadResponse__Thread = { | ... | @@ -31326,27 +35469,13 @@ export type V2ThreadReadResponse__Thread = { |
| 31326 | readonly preview: string; | 35469 | readonly preview: string; |
| 31327 | readonly recencyAt?: number | null; | 35470 | readonly recencyAt?: number | null; |
| 31328 | readonly sessionId: string; | 35471 | readonly sessionId: string; |
| 31329 | readonly source: | 35472 | readonly source: V2ThreadResumeResponse__SessionSource; |
| 31330 | | "cli" | 35473 | readonly status: V2ThreadResumeResponse__ThreadStatus; |
| 31331 | | "vscode" | 35474 | readonly threadSource?: V2ThreadResumeResponse__ThreadSource | null; |
| 31332 | | "exec" | 35475 | readonly turns: ReadonlyArray<V2ThreadResumeResponse__Turn>; |
| 31333 | | "appServer" | | |
| 31334 | | "unknown" | | |
| 31335 | | { readonly custom: string } | | |
| 31336 | | { readonly subAgent: V2ThreadReadResponse__SubAgentSource }; | | |
| 31337 | readonly status: | | |
| 31338 | | { readonly type: "notLoaded" } | | |
| 31339 | | { readonly type: "idle" } | | |
| 31340 | | { readonly type: "systemError" } | | |
| 31341 | | { | | |
| 31342 | readonly activeFlags: ReadonlyArray<V2ThreadReadResponse__ThreadActiveFlag>; | | |
| 31343 | readonly type: "active"; | | |
| 31344 | }; | | |
| 31345 | readonly threadSource?: V2ThreadReadResponse__ThreadSource | null; | | |
| 31346 | readonly turns: ReadonlyArray<V2ThreadReadResponse__Turn>; | | |
| 31347 | readonly updatedAt: number; | 35476 | readonly updatedAt: number; |
| 31348 | }; | 35477 | }; |
| 31349 | export const V2ThreadReadResponse__Thread = Schema.Struct({ | 35478 | export const V2ThreadResumeResponse__Thread = Schema.Struct({ |
| 31350 | agentNickname: Schema.optionalKey( | 35479 | agentNickname: Schema.optionalKey( |
| 31351 | Schema.Union([ | 35480 | Schema.Union([ |
| 31352 | Schema.String.annotate({ | 35481 | Schema.String.annotate({ |
| ... | @@ -31370,11 +35499,11 @@ export const V2ThreadReadResponse__Thread = Schema.Struct({ | ... | @@ -31370,11 +35499,11 @@ export const V2ThreadReadResponse__Thread = Schema.Struct({ |
| 31370 | createdAt: Schema.Number.annotate({ | 35499 | createdAt: Schema.Number.annotate({ |
| 31371 | description: "Unix timestamp (in seconds) when the thread was created.", | 35500 | description: "Unix timestamp (in seconds) when the thread was created.", |
| 31372 | format: "int64", | 35501 | format: "int64", |
| 31373 | }).check(Schema.isInt()), | 35502 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 31374 | cwd: Schema.String.annotate({ | 35503 | cwd: Schema.suspend( |
| 31375 | description: | 35504 | (): Schema.Codec<V2ThreadResumeResponse__AbsolutePathBuf> => |
| 31376 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 35505 | V2ThreadResumeResponse__AbsolutePathBuf, |
| 31377 | }), | 35506 | ).annotate({ description: "Working directory captured for the thread." }), |
| 31378 | ephemeral: Schema.Boolean.annotate({ | 35507 | ephemeral: Schema.Boolean.annotate({ |
| 31379 | description: "Whether the thread is ephemeral and should not be materialized on disk.", | 35508 | description: "Whether the thread is ephemeral and should not be materialized on disk.", |
| 31380 | }), | 35509 | }), |
| ... | @@ -31387,7 +35516,7 @@ export const V2ThreadReadResponse__Thread = Schema.Struct({ | ... | @@ -31387,7 +35516,7 @@ export const V2ThreadReadResponse__Thread = Schema.Struct({ |
| 31387 | ]), | 35516 | ]), |
| 31388 | ), | 35517 | ), |
| 31389 | gitInfo: Schema.optionalKey( | 35518 | gitInfo: Schema.optionalKey( |
| 31390 | Schema.Union([V2ThreadReadResponse__GitInfo, Schema.Null]).annotate({ | 35519 | Schema.Union([V2ThreadResumeResponse__GitInfo, Schema.Null]).annotate({ |
| 31391 | description: "Optional Git metadata captured when the thread was created.", | 35520 | description: "Optional Git metadata captured when the thread was created.", |
| 31392 | }), | 35521 | }), |
| 31393 | ), | 35522 | ), |
| ... | @@ -31426,67 +35555,46 @@ export const V2ThreadReadResponse__Thread = Schema.Struct({ | ... | @@ -31426,67 +35555,46 @@ export const V2ThreadReadResponse__Thread = Schema.Struct({ |
| 31426 | Schema.Number.annotate({ | 35555 | Schema.Number.annotate({ |
| 31427 | description: "Unix timestamp (in seconds) used for thread recency ordering.", | 35556 | description: "Unix timestamp (in seconds) used for thread recency ordering.", |
| 31428 | format: "int64", | 35557 | format: "int64", |
| 31429 | }).check(Schema.isInt()), | 35558 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 31430 | Schema.Null, | 35559 | Schema.Null, |
| 31431 | ]), | 35560 | ]), |
| 31432 | ), | 35561 | ), |
| 31433 | sessionId: Schema.String.annotate({ | 35562 | sessionId: Schema.String.annotate({ |
| 31434 | description: "Session id shared by threads that belong to the same session tree.", | 35563 | description: "Session id shared by threads that belong to the same session tree.", |
| 31435 | }), | 35564 | }), |
| 31436 | source: Schema.Union( | 35565 | source: Schema.suspend( |
| 31437 | [ | 35566 | (): Schema.Codec<V2ThreadResumeResponse__SessionSource> => |
| 31438 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), | 35567 | V2ThreadResumeResponse__SessionSource, |
| 31439 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), | | |
| 31440 | Schema.Struct({ subAgent: V2ThreadReadResponse__SubAgentSource }).annotate({ | | |
| 31441 | title: "SubAgentSessionSource", | | |
| 31442 | }), | | |
| 31443 | ], | | |
| 31444 | { mode: "oneOf" }, | | |
| 31445 | ).annotate({ | 35568 | ).annotate({ |
| 31446 | description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).", | 35569 | description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).", |
| 31447 | }), | 35570 | }), |
| 31448 | status: Schema.Union( | 35571 | status: Schema.suspend( |
| 31449 | [ | 35572 | (): Schema.Codec<V2ThreadResumeResponse__ThreadStatus> => V2ThreadResumeResponse__ThreadStatus, |
| 31450 | Schema.Struct({ | | |
| 31451 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), | | |
| 31452 | }).annotate({ title: "NotLoadedThreadStatus" }), | | |
| 31453 | Schema.Struct({ | | |
| 31454 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), | | |
| 31455 | }).annotate({ title: "IdleThreadStatus" }), | | |
| 31456 | Schema.Struct({ | | |
| 31457 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), | | |
| 31458 | }).annotate({ title: "SystemErrorThreadStatus" }), | | |
| 31459 | Schema.Struct({ | | |
| 31460 | activeFlags: Schema.Array(V2ThreadReadResponse__ThreadActiveFlag), | | |
| 31461 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), | | |
| 31462 | }).annotate({ title: "ActiveThreadStatus" }), | | |
| 31463 | ], | | |
| 31464 | { mode: "oneOf" }, | | |
| 31465 | ).annotate({ description: "Current runtime status for the thread." }), | 35573 | ).annotate({ description: "Current runtime status for the thread." }), |
| 31466 | threadSource: Schema.optionalKey( | 35574 | threadSource: Schema.optionalKey( |
| 31467 | Schema.Union([V2ThreadReadResponse__ThreadSource, Schema.Null]).annotate({ | 35575 | Schema.Union([V2ThreadResumeResponse__ThreadSource, Schema.Null]).annotate({ |
| 31468 | description: "Optional analytics source classification for this thread.", | 35576 | description: "Optional analytics source classification for this thread.", |
| 31469 | }), | 35577 | }), |
| 31470 | ), | 35578 | ), |
| 31471 | turns: Schema.Array(V2ThreadReadResponse__Turn).annotate({ | 35579 | turns: Schema.Array(V2ThreadResumeResponse__Turn).annotate({ |
| 31472 | description: | 35580 | description: |
| 31473 | "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.", | 35581 | "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.", |
| 31474 | }), | 35582 | }), |
| 31475 | updatedAt: Schema.Number.annotate({ | 35583 | updatedAt: Schema.Number.annotate({ |
| 31476 | description: "Unix timestamp (in seconds) when the thread was last updated.", | 35584 | description: "Unix timestamp (in seconds) when the thread was last updated.", |
| 31477 | format: "int64", | 35585 | format: "int64", |
| 31478 | }).check(Schema.isInt()), | 35586 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 31479 | }); | 35587 | }).annotate({ identifier: "V2ThreadResumeResponse__Thread" }); |
| 31480 | | 35588 | |
| 31481 | export type V2ThreadResumeResponse__Thread = { | 35589 | export type V2ThreadRollbackResponse__Thread = { |
| 31482 | readonly agentNickname?: string | null; | 35590 | readonly agentNickname?: string | null; |
| 31483 | readonly agentRole?: string | null; | 35591 | readonly agentRole?: string | null; |
| 31484 | readonly cliVersion: string; | 35592 | readonly cliVersion: string; |
| 31485 | readonly createdAt: number; | 35593 | readonly createdAt: number; |
| 31486 | readonly cwd: string; | 35594 | readonly cwd: V2ThreadRollbackResponse__AbsolutePathBuf; |
| 31487 | readonly ephemeral: boolean; | 35595 | readonly ephemeral: boolean; |
| 31488 | readonly forkedFromId?: string | null; | 35596 | readonly forkedFromId?: string | null; |
| 31489 | readonly gitInfo?: V2ThreadResumeResponse__GitInfo | null; | 35597 | readonly gitInfo?: V2ThreadRollbackResponse__GitInfo | null; |
| 31490 | readonly id: string; | 35598 | readonly id: string; |
| 31491 | readonly modelProvider: string; | 35599 | readonly modelProvider: string; |
| 31492 | readonly name?: string | null; | 35600 | readonly name?: string | null; |
| ... | @@ -31495,27 +35603,13 @@ export type V2ThreadResumeResponse__Thread = { | ... | @@ -31495,27 +35603,13 @@ export type V2ThreadResumeResponse__Thread = { |
| 31495 | readonly preview: string; | 35603 | readonly preview: string; |
| 31496 | readonly recencyAt?: number | null; | 35604 | readonly recencyAt?: number | null; |
| 31497 | readonly sessionId: string; | 35605 | readonly sessionId: string; |
| 31498 | readonly source: | 35606 | readonly source: V2ThreadRollbackResponse__SessionSource; |
| 31499 | | "cli" | 35607 | readonly status: V2ThreadRollbackResponse__ThreadStatus; |
| 31500 | | "vscode" | 35608 | readonly threadSource?: V2ThreadRollbackResponse__ThreadSource | null; |
| 31501 | | "exec" | 35609 | readonly turns: ReadonlyArray<V2ThreadRollbackResponse__Turn>; |
| 31502 | | "appServer" | | |
| 31503 | | "unknown" | | |
| 31504 | | { readonly custom: string } | | |
| 31505 | | { readonly subAgent: V2ThreadResumeResponse__SubAgentSource }; | | |
| 31506 | readonly status: | | |
| 31507 | | { readonly type: "notLoaded" } | | |
| 31508 | | { readonly type: "idle" } | | |
| 31509 | | { readonly type: "systemError" } | | |
| 31510 | | { | | |
| 31511 | readonly activeFlags: ReadonlyArray<V2ThreadResumeResponse__ThreadActiveFlag>; | | |
| 31512 | readonly type: "active"; | | |
| 31513 | }; | | |
| 31514 | readonly threadSource?: V2ThreadResumeResponse__ThreadSource | null; | | |
| 31515 | readonly turns: ReadonlyArray<V2ThreadResumeResponse__Turn>; | | |
| 31516 | readonly updatedAt: number; | 35610 | readonly updatedAt: number; |
| 31517 | }; | 35611 | }; |
| 31518 | export const V2ThreadResumeResponse__Thread = Schema.Struct({ | 35612 | export const V2ThreadRollbackResponse__Thread = Schema.Struct({ |
| 31519 | agentNickname: Schema.optionalKey( | 35613 | agentNickname: Schema.optionalKey( |
| 31520 | Schema.Union([ | 35614 | Schema.Union([ |
| 31521 | Schema.String.annotate({ | 35615 | Schema.String.annotate({ |
| ... | @@ -31539,11 +35633,11 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({ | ... | @@ -31539,11 +35633,11 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({ |
| 31539 | createdAt: Schema.Number.annotate({ | 35633 | createdAt: Schema.Number.annotate({ |
| 31540 | description: "Unix timestamp (in seconds) when the thread was created.", | 35634 | description: "Unix timestamp (in seconds) when the thread was created.", |
| 31541 | format: "int64", | 35635 | format: "int64", |
| 31542 | }).check(Schema.isInt()), | 35636 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 31543 | cwd: Schema.String.annotate({ | 35637 | cwd: Schema.suspend( |
| 31544 | description: | 35638 | (): Schema.Codec<V2ThreadRollbackResponse__AbsolutePathBuf> => |
| 31545 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 35639 | V2ThreadRollbackResponse__AbsolutePathBuf, |
| 31546 | }), | 35640 | ).annotate({ description: "Working directory captured for the thread." }), |
| 31547 | ephemeral: Schema.Boolean.annotate({ | 35641 | ephemeral: Schema.Boolean.annotate({ |
| 31548 | description: "Whether the thread is ephemeral and should not be materialized on disk.", | 35642 | description: "Whether the thread is ephemeral and should not be materialized on disk.", |
| 31549 | }), | 35643 | }), |
| ... | @@ -31556,7 +35650,7 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({ | ... | @@ -31556,7 +35650,7 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({ |
| 31556 | ]), | 35650 | ]), |
| 31557 | ), | 35651 | ), |
| 31558 | gitInfo: Schema.optionalKey( | 35652 | gitInfo: Schema.optionalKey( |
| 31559 | Schema.Union([V2ThreadResumeResponse__GitInfo, Schema.Null]).annotate({ | 35653 | Schema.Union([V2ThreadRollbackResponse__GitInfo, Schema.Null]).annotate({ |
| 31560 | description: "Optional Git metadata captured when the thread was created.", | 35654 | description: "Optional Git metadata captured when the thread was created.", |
| 31561 | }), | 35655 | }), |
| 31562 | ), | 35656 | ), |
| ... | @@ -31595,64 +35689,44 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({ | ... | @@ -31595,64 +35689,44 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({ |
| 31595 | Schema.Number.annotate({ | 35689 | Schema.Number.annotate({ |
| 31596 | description: "Unix timestamp (in seconds) used for thread recency ordering.", | 35690 | description: "Unix timestamp (in seconds) used for thread recency ordering.", |
| 31597 | format: "int64", | 35691 | format: "int64", |
| 31598 | }).check(Schema.isInt()), | 35692 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 31599 | Schema.Null, | 35693 | Schema.Null, |
| 31600 | ]), | 35694 | ]), |
| 31601 | ), | 35695 | ), |
| 31602 | sessionId: Schema.String.annotate({ | 35696 | sessionId: Schema.String.annotate({ |
| 31603 | description: "Session id shared by threads that belong to the same session tree.", | 35697 | description: "Session id shared by threads that belong to the same session tree.", |
| 31604 | }), | 35698 | }), |
| 31605 | source: Schema.Union( | 35699 | source: Schema.suspend( |
| 31606 | [ | 35700 | (): Schema.Codec<V2ThreadRollbackResponse__SessionSource> => |
| 31607 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), | 35701 | V2ThreadRollbackResponse__SessionSource, |
| 31608 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), | | |
| 31609 | Schema.Struct({ subAgent: V2ThreadResumeResponse__SubAgentSource }).annotate({ | | |
| 31610 | title: "SubAgentSessionSource", | | |
| 31611 | }), | | |
| 31612 | ], | | |
| 31613 | { mode: "oneOf" }, | | |
| 31614 | ).annotate({ | 35702 | ).annotate({ |
| 31615 | description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).", | 35703 | description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).", |
| 31616 | }), | 35704 | }), |
| 31617 | status: Schema.Union( | 35705 | status: Schema.suspend( |
| 31618 | [ | 35706 | (): Schema.Codec<V2ThreadRollbackResponse__ThreadStatus> => |
| 31619 | Schema.Struct({ | 35707 | V2ThreadRollbackResponse__ThreadStatus, |
| 31620 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), | | |
| 31621 | }).annotate({ title: "NotLoadedThreadStatus" }), | | |
| 31622 | Schema.Struct({ | | |
| 31623 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), | | |
| 31624 | }).annotate({ title: "IdleThreadStatus" }), | | |
| 31625 | Schema.Struct({ | | |
| 31626 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), | | |
| 31627 | }).annotate({ title: "SystemErrorThreadStatus" }), | | |
| 31628 | Schema.Struct({ | | |
| 31629 | activeFlags: Schema.Array(V2ThreadResumeResponse__ThreadActiveFlag), | | |
| 31630 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), | | |
| 31631 | }).annotate({ title: "ActiveThreadStatus" }), | | |
| 31632 | ], | | |
| 31633 | { mode: "oneOf" }, | | |
| 31634 | ).annotate({ description: "Current runtime status for the thread." }), | 35708 | ).annotate({ description: "Current runtime status for the thread." }), |
| 31635 | threadSource: Schema.optionalKey( | 35709 | threadSource: Schema.optionalKey( |
| 31636 | Schema.Union([V2ThreadResumeResponse__ThreadSource, Schema.Null]).annotate({ | 35710 | Schema.Union([V2ThreadRollbackResponse__ThreadSource, Schema.Null]).annotate({ |
| 31637 | description: "Optional analytics source classification for this thread.", | 35711 | description: "Optional analytics source classification for this thread.", |
| 31638 | }), | 35712 | }), |
| 31639 | ), | 35713 | ), |
| 31640 | turns: Schema.Array(V2ThreadResumeResponse__Turn).annotate({ | 35714 | turns: Schema.Array(V2ThreadRollbackResponse__Turn).annotate({ |
| 31641 | description: | 35715 | description: |
| 31642 | "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.", | 35716 | "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.", |
| 31643 | }), | 35717 | }), |
| 31644 | updatedAt: Schema.Number.annotate({ | 35718 | updatedAt: Schema.Number.annotate({ |
| 31645 | description: "Unix timestamp (in seconds) when the thread was last updated.", | 35719 | description: "Unix timestamp (in seconds) when the thread was last updated.", |
| 31646 | format: "int64", | 35720 | format: "int64", |
| 31647 | }).check(Schema.isInt()), | 35721 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 31648 | }); | 35722 | }).annotate({ identifier: "V2ThreadRollbackResponse__Thread" }); |
| 31649 | | 35723 | |
| 31650 | export type V2ThreadStartedNotification__Thread = { | 35724 | export type V2ThreadStartedNotification__Thread = { |
| 31651 | readonly agentNickname?: string | null; | 35725 | readonly agentNickname?: string | null; |
| 31652 | readonly agentRole?: string | null; | 35726 | readonly agentRole?: string | null; |
| 31653 | readonly cliVersion: string; | 35727 | readonly cliVersion: string; |
| 31654 | readonly createdAt: number; | 35728 | readonly createdAt: number; |
| 31655 | readonly cwd: string; | 35729 | readonly cwd: V2ThreadStartedNotification__AbsolutePathBuf; |
| 31656 | readonly ephemeral: boolean; | 35730 | readonly ephemeral: boolean; |
| 31657 | readonly forkedFromId?: string | null; | 35731 | readonly forkedFromId?: string | null; |
| 31658 | readonly gitInfo?: V2ThreadStartedNotification__GitInfo | null; | 35732 | readonly gitInfo?: V2ThreadStartedNotification__GitInfo | null; |
| ... | @@ -31664,22 +35738,8 @@ export type V2ThreadStartedNotification__Thread = { | ... | @@ -31664,22 +35738,8 @@ export type V2ThreadStartedNotification__Thread = { |
| 31664 | readonly preview: string; | 35738 | readonly preview: string; |
| 31665 | readonly recencyAt?: number | null; | 35739 | readonly recencyAt?: number | null; |
| 31666 | readonly sessionId: string; | 35740 | readonly sessionId: string; |
| 31667 | readonly source: | 35741 | readonly source: V2ThreadStartedNotification__SessionSource; |
| 31668 | | "cli" | 35742 | readonly status: V2ThreadStartedNotification__ThreadStatus; |
| 31669 | | "vscode" | | |
| 31670 | | "exec" | | |
| 31671 | | "appServer" | | |
| 31672 | | "unknown" | | |
| 31673 | | { readonly custom: string } | | |
| 31674 | | { readonly subAgent: V2ThreadStartedNotification__SubAgentSource }; | | |
| 31675 | readonly status: | | |
| 31676 | | { readonly type: "notLoaded" } | | |
| 31677 | | { readonly type: "idle" } | | |
| 31678 | | { readonly type: "systemError" } | | |
| 31679 | | { | | |
| 31680 | readonly activeFlags: ReadonlyArray<V2ThreadStartedNotification__ThreadActiveFlag>; | | |
| 31681 | readonly type: "active"; | | |
| 31682 | }; | | |
| 31683 | readonly threadSource?: V2ThreadStartedNotification__ThreadSource | null; | 35743 | readonly threadSource?: V2ThreadStartedNotification__ThreadSource | null; |
| 31684 | readonly turns: ReadonlyArray<V2ThreadStartedNotification__Turn>; | 35744 | readonly turns: ReadonlyArray<V2ThreadStartedNotification__Turn>; |
| 31685 | readonly updatedAt: number; | 35745 | readonly updatedAt: number; |
| ... | @@ -31708,11 +35768,11 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({ | ... | @@ -31708,11 +35768,11 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({ |
| 31708 | createdAt: Schema.Number.annotate({ | 35768 | createdAt: Schema.Number.annotate({ |
| 31709 | description: "Unix timestamp (in seconds) when the thread was created.", | 35769 | description: "Unix timestamp (in seconds) when the thread was created.", |
| 31710 | format: "int64", | 35770 | format: "int64", |
| 31711 | }).check(Schema.isInt()), | 35771 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 31712 | cwd: Schema.String.annotate({ | 35772 | cwd: Schema.suspend( |
| 31713 | description: | 35773 | (): Schema.Codec<V2ThreadStartedNotification__AbsolutePathBuf> => |
| 31714 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 35774 | V2ThreadStartedNotification__AbsolutePathBuf, |
| 31715 | }), | 35775 | ).annotate({ description: "Working directory captured for the thread." }), |
| 31716 | ephemeral: Schema.Boolean.annotate({ | 35776 | ephemeral: Schema.Boolean.annotate({ |
| 31717 | description: "Whether the thread is ephemeral and should not be materialized on disk.", | 35777 | description: "Whether the thread is ephemeral and should not be materialized on disk.", |
| 31718 | }), | 35778 | }), |
| ... | @@ -31764,42 +35824,22 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({ | ... | @@ -31764,42 +35824,22 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({ |
| 31764 | Schema.Number.annotate({ | 35824 | Schema.Number.annotate({ |
| 31765 | description: "Unix timestamp (in seconds) used for thread recency ordering.", | 35825 | description: "Unix timestamp (in seconds) used for thread recency ordering.", |
| 31766 | format: "int64", | 35826 | format: "int64", |
| 31767 | }).check(Schema.isInt()), | 35827 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 31768 | Schema.Null, | 35828 | Schema.Null, |
| 31769 | ]), | 35829 | ]), |
| 31770 | ), | 35830 | ), |
| 31771 | sessionId: Schema.String.annotate({ | 35831 | sessionId: Schema.String.annotate({ |
| 31772 | description: "Session id shared by threads that belong to the same session tree.", | 35832 | description: "Session id shared by threads that belong to the same session tree.", |
| 31773 | }), | 35833 | }), |
| 31774 | source: Schema.Union( | 35834 | source: Schema.suspend( |
| 31775 | [ | 35835 | (): Schema.Codec<V2ThreadStartedNotification__SessionSource> => |
| 31776 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), | 35836 | V2ThreadStartedNotification__SessionSource, |
| 31777 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), | | |
| 31778 | Schema.Struct({ subAgent: V2ThreadStartedNotification__SubAgentSource }).annotate({ | | |
| 31779 | title: "SubAgentSessionSource", | | |
| 31780 | }), | | |
| 31781 | ], | | |
| 31782 | { mode: "oneOf" }, | | |
| 31783 | ).annotate({ | 35837 | ).annotate({ |
| 31784 | description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).", | 35838 | description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).", |
| 31785 | }), | 35839 | }), |
| 31786 | status: Schema.Union( | 35840 | status: Schema.suspend( |
| 31787 | [ | 35841 | (): Schema.Codec<V2ThreadStartedNotification__ThreadStatus> => |
| 31788 | Schema.Struct({ | 35842 | V2ThreadStartedNotification__ThreadStatus, |
| 31789 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), | | |
| 31790 | }).annotate({ title: "NotLoadedThreadStatus" }), | | |
| 31791 | Schema.Struct({ | | |
| 31792 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), | | |
| 31793 | }).annotate({ title: "IdleThreadStatus" }), | | |
| 31794 | Schema.Struct({ | | |
| 31795 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), | | |
| 31796 | }).annotate({ title: "SystemErrorThreadStatus" }), | | |
| 31797 | Schema.Struct({ | | |
| 31798 | activeFlags: Schema.Array(V2ThreadStartedNotification__ThreadActiveFlag), | | |
| 31799 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), | | |
| 31800 | }).annotate({ title: "ActiveThreadStatus" }), | | |
| 31801 | ], | | |
| 31802 | { mode: "oneOf" }, | | |
| 31803 | ).annotate({ description: "Current runtime status for the thread." }), | 35843 | ).annotate({ description: "Current runtime status for the thread." }), |
| 31804 | threadSource: Schema.optionalKey( | 35844 | threadSource: Schema.optionalKey( |
| 31805 | Schema.Union([V2ThreadStartedNotification__ThreadSource, Schema.Null]).annotate({ | 35845 | Schema.Union([V2ThreadStartedNotification__ThreadSource, Schema.Null]).annotate({ |
| ... | @@ -31813,15 +35853,15 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({ | ... | @@ -31813,15 +35853,15 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({ |
| 31813 | updatedAt: Schema.Number.annotate({ | 35853 | updatedAt: Schema.Number.annotate({ |
| 31814 | description: "Unix timestamp (in seconds) when the thread was last updated.", | 35854 | description: "Unix timestamp (in seconds) when the thread was last updated.", |
| 31815 | format: "int64", | 35855 | format: "int64", |
| 31816 | }).check(Schema.isInt()), | 35856 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 31817 | }); | 35857 | }).annotate({ identifier: "V2ThreadStartedNotification__Thread" }); |
| 31818 | | 35858 | |
| 31819 | export type V2ThreadStartResponse__Thread = { | 35859 | export type V2ThreadStartResponse__Thread = { |
| 31820 | readonly agentNickname?: string | null; | 35860 | readonly agentNickname?: string | null; |
| 31821 | readonly agentRole?: string | null; | 35861 | readonly agentRole?: string | null; |
| 31822 | readonly cliVersion: string; | 35862 | readonly cliVersion: string; |
| 31823 | readonly createdAt: number; | 35863 | readonly createdAt: number; |
| 31824 | readonly cwd: string; | 35864 | readonly cwd: V2ThreadStartResponse__AbsolutePathBuf; |
| 31825 | readonly ephemeral: boolean; | 35865 | readonly ephemeral: boolean; |
| 31826 | readonly forkedFromId?: string | null; | 35866 | readonly forkedFromId?: string | null; |
| 31827 | readonly gitInfo?: V2ThreadStartResponse__GitInfo | null; | 35867 | readonly gitInfo?: V2ThreadStartResponse__GitInfo | null; |
| ... | @@ -31833,22 +35873,8 @@ export type V2ThreadStartResponse__Thread = { | ... | @@ -31833,22 +35873,8 @@ export type V2ThreadStartResponse__Thread = { |
| 31833 | readonly preview: string; | 35873 | readonly preview: string; |
| 31834 | readonly recencyAt?: number | null; | 35874 | readonly recencyAt?: number | null; |
| 31835 | readonly sessionId: string; | 35875 | readonly sessionId: string; |
| 31836 | readonly source: | 35876 | readonly source: V2ThreadStartResponse__SessionSource; |
| 31837 | | "cli" | 35877 | readonly status: V2ThreadStartResponse__ThreadStatus; |
| 31838 | | "vscode" | | |
| 31839 | | "exec" | | |
| 31840 | | "appServer" | | |
| 31841 | | "unknown" | | |
| 31842 | | { readonly custom: string } | | |
| 31843 | | { readonly subAgent: V2ThreadStartResponse__SubAgentSource }; | | |
| 31844 | readonly status: | | |
| 31845 | | { readonly type: "notLoaded" } | | |
| 31846 | | { readonly type: "idle" } | | |
| 31847 | | { readonly type: "systemError" } | | |
| 31848 | | { | | |
| 31849 | readonly activeFlags: ReadonlyArray<V2ThreadStartResponse__ThreadActiveFlag>; | | |
| 31850 | readonly type: "active"; | | |
| 31851 | }; | | |
| 31852 | readonly threadSource?: V2ThreadStartResponse__ThreadSource | null; | 35878 | readonly threadSource?: V2ThreadStartResponse__ThreadSource | null; |
| 31853 | readonly turns: ReadonlyArray<V2ThreadStartResponse__Turn>; | 35879 | readonly turns: ReadonlyArray<V2ThreadStartResponse__Turn>; |
| 31854 | readonly updatedAt: number; | 35880 | readonly updatedAt: number; |
| ... | @@ -31877,11 +35903,11 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({ | ... | @@ -31877,11 +35903,11 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({ |
| 31877 | createdAt: Schema.Number.annotate({ | 35903 | createdAt: Schema.Number.annotate({ |
| 31878 | description: "Unix timestamp (in seconds) when the thread was created.", | 35904 | description: "Unix timestamp (in seconds) when the thread was created.", |
| 31879 | format: "int64", | 35905 | format: "int64", |
| 31880 | }).check(Schema.isInt()), | 35906 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 31881 | cwd: Schema.String.annotate({ | 35907 | cwd: Schema.suspend( |
| 31882 | description: | 35908 | (): Schema.Codec<V2ThreadStartResponse__AbsolutePathBuf> => |
| 31883 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 35909 | V2ThreadStartResponse__AbsolutePathBuf, |
| 31884 | }), | 35910 | ).annotate({ description: "Working directory captured for the thread." }), |
| 31885 | ephemeral: Schema.Boolean.annotate({ | 35911 | ephemeral: Schema.Boolean.annotate({ |
| 31886 | description: "Whether the thread is ephemeral and should not be materialized on disk.", | 35912 | description: "Whether the thread is ephemeral and should not be materialized on disk.", |
| 31887 | }), | 35913 | }), |
| ... | @@ -31933,42 +35959,20 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({ | ... | @@ -31933,42 +35959,20 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({ |
| 31933 | Schema.Number.annotate({ | 35959 | Schema.Number.annotate({ |
| 31934 | description: "Unix timestamp (in seconds) used for thread recency ordering.", | 35960 | description: "Unix timestamp (in seconds) used for thread recency ordering.", |
| 31935 | format: "int64", | 35961 | format: "int64", |
| 31936 | }).check(Schema.isInt()), | 35962 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 31937 | Schema.Null, | 35963 | Schema.Null, |
| 31938 | ]), | 35964 | ]), |
| 31939 | ), | 35965 | ), |
| 31940 | sessionId: Schema.String.annotate({ | 35966 | sessionId: Schema.String.annotate({ |
| 31941 | description: "Session id shared by threads that belong to the same session tree.", | 35967 | description: "Session id shared by threads that belong to the same session tree.", |
| 31942 | }), | 35968 | }), |
| 31943 | source: Schema.Union( | 35969 | source: Schema.suspend( |
| 31944 | [ | 35970 | (): Schema.Codec<V2ThreadStartResponse__SessionSource> => V2ThreadStartResponse__SessionSource, |
| 31945 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), | | |
| 31946 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), | | |
| 31947 | Schema.Struct({ subAgent: V2ThreadStartResponse__SubAgentSource }).annotate({ | | |
| 31948 | title: "SubAgentSessionSource", | | |
| 31949 | }), | | |
| 31950 | ], | | |
| 31951 | { mode: "oneOf" }, | | |
| 31952 | ).annotate({ | 35971 | ).annotate({ |
| 31953 | description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).", | 35972 | description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).", |
| 31954 | }), | 35973 | }), |
| 31955 | status: Schema.Union( | 35974 | status: Schema.suspend( |
| 31956 | [ | 35975 | (): Schema.Codec<V2ThreadStartResponse__ThreadStatus> => V2ThreadStartResponse__ThreadStatus, |
| 31957 | Schema.Struct({ | | |
| 31958 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), | | |
| 31959 | }).annotate({ title: "NotLoadedThreadStatus" }), | | |
| 31960 | Schema.Struct({ | | |
| 31961 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), | | |
| 31962 | }).annotate({ title: "IdleThreadStatus" }), | | |
| 31963 | Schema.Struct({ | | |
| 31964 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), | | |
| 31965 | }).annotate({ title: "SystemErrorThreadStatus" }), | | |
| 31966 | Schema.Struct({ | | |
| 31967 | activeFlags: Schema.Array(V2ThreadStartResponse__ThreadActiveFlag), | | |
| 31968 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), | | |
| 31969 | }).annotate({ title: "ActiveThreadStatus" }), | | |
| 31970 | ], | | |
| 31971 | { mode: "oneOf" }, | | |
| 31972 | ).annotate({ description: "Current runtime status for the thread." }), | 35976 | ).annotate({ description: "Current runtime status for the thread." }), |
| 31973 | threadSource: Schema.optionalKey( | 35977 | threadSource: Schema.optionalKey( |
| 31974 | Schema.Union([V2ThreadStartResponse__ThreadSource, Schema.Null]).annotate({ | 35978 | Schema.Union([V2ThreadStartResponse__ThreadSource, Schema.Null]).annotate({ |
| ... | @@ -31982,15 +35986,15 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({ | ... | @@ -31982,15 +35986,15 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({ |
| 31982 | updatedAt: Schema.Number.annotate({ | 35986 | updatedAt: Schema.Number.annotate({ |
| 31983 | description: "Unix timestamp (in seconds) when the thread was last updated.", | 35987 | description: "Unix timestamp (in seconds) when the thread was last updated.", |
| 31984 | format: "int64", | 35988 | format: "int64", |
| 31985 | }).check(Schema.isInt()), | 35989 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 31986 | }); | 35990 | }).annotate({ identifier: "V2ThreadStartResponse__Thread" }); |
| 31987 | | 35991 | |
| 31988 | export type V2ThreadUnarchiveResponse__Thread = { | 35992 | export type V2ThreadUnarchiveResponse__Thread = { |
| 31989 | readonly agentNickname?: string | null; | 35993 | readonly agentNickname?: string | null; |
| 31990 | readonly agentRole?: string | null; | 35994 | readonly agentRole?: string | null; |
| 31991 | readonly cliVersion: string; | 35995 | readonly cliVersion: string; |
| 31992 | readonly createdAt: number; | 35996 | readonly createdAt: number; |
| 31993 | readonly cwd: string; | 35997 | readonly cwd: V2ThreadUnarchiveResponse__AbsolutePathBuf; |
| 31994 | readonly ephemeral: boolean; | 35998 | readonly ephemeral: boolean; |
| 31995 | readonly forkedFromId?: string | null; | 35999 | readonly forkedFromId?: string | null; |
| 31996 | readonly gitInfo?: V2ThreadUnarchiveResponse__GitInfo | null; | 36000 | readonly gitInfo?: V2ThreadUnarchiveResponse__GitInfo | null; |
| ... | @@ -32002,22 +36006,8 @@ export type V2ThreadUnarchiveResponse__Thread = { | ... | @@ -32002,22 +36006,8 @@ export type V2ThreadUnarchiveResponse__Thread = { |
| 32002 | readonly preview: string; | 36006 | readonly preview: string; |
| 32003 | readonly recencyAt?: number | null; | 36007 | readonly recencyAt?: number | null; |
| 32004 | readonly sessionId: string; | 36008 | readonly sessionId: string; |
| 32005 | readonly source: | 36009 | readonly source: V2ThreadUnarchiveResponse__SessionSource; |
| 32006 | | "cli" | 36010 | readonly status: V2ThreadUnarchiveResponse__ThreadStatus; |
| 32007 | | "vscode" | | |
| 32008 | | "exec" | | |
| 32009 | | "appServer" | | |
| 32010 | | "unknown" | | |
| 32011 | | { readonly custom: string } | | |
| 32012 | | { readonly subAgent: V2ThreadUnarchiveResponse__SubAgentSource }; | | |
| 32013 | readonly status: | | |
| 32014 | | { readonly type: "notLoaded" } | | |
| 32015 | | { readonly type: "idle" } | | |
| 32016 | | { readonly type: "systemError" } | | |
| 32017 | | { | | |
| 32018 | readonly activeFlags: ReadonlyArray<V2ThreadUnarchiveResponse__ThreadActiveFlag>; | | |
| 32019 | readonly type: "active"; | | |
| 32020 | }; | | |
| 32021 | readonly threadSource?: V2ThreadUnarchiveResponse__ThreadSource | null; | 36011 | readonly threadSource?: V2ThreadUnarchiveResponse__ThreadSource | null; |
| 32022 | readonly turns: ReadonlyArray<V2ThreadUnarchiveResponse__Turn>; | 36012 | readonly turns: ReadonlyArray<V2ThreadUnarchiveResponse__Turn>; |
| 32023 | readonly updatedAt: number; | 36013 | readonly updatedAt: number; |
| ... | @@ -32046,11 +36036,11 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({ | ... | @@ -32046,11 +36036,11 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({ |
| 32046 | createdAt: Schema.Number.annotate({ | 36036 | createdAt: Schema.Number.annotate({ |
| 32047 | description: "Unix timestamp (in seconds) when the thread was created.", | 36037 | description: "Unix timestamp (in seconds) when the thread was created.", |
| 32048 | format: "int64", | 36038 | format: "int64", |
| 32049 | }).check(Schema.isInt()), | 36039 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 32050 | cwd: Schema.String.annotate({ | 36040 | cwd: Schema.suspend( |
| 32051 | description: | 36041 | (): Schema.Codec<V2ThreadUnarchiveResponse__AbsolutePathBuf> => |
| 32052 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 36042 | V2ThreadUnarchiveResponse__AbsolutePathBuf, |
| 32053 | }), | 36043 | ).annotate({ description: "Working directory captured for the thread." }), |
| 32054 | ephemeral: Schema.Boolean.annotate({ | 36044 | ephemeral: Schema.Boolean.annotate({ |
| 32055 | description: "Whether the thread is ephemeral and should not be materialized on disk.", | 36045 | description: "Whether the thread is ephemeral and should not be materialized on disk.", |
| 32056 | }), | 36046 | }), |
| ... | @@ -32102,42 +36092,22 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({ | ... | @@ -32102,42 +36092,22 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({ |
| 32102 | Schema.Number.annotate({ | 36092 | Schema.Number.annotate({ |
| 32103 | description: "Unix timestamp (in seconds) used for thread recency ordering.", | 36093 | description: "Unix timestamp (in seconds) used for thread recency ordering.", |
| 32104 | format: "int64", | 36094 | format: "int64", |
| 32105 | }).check(Schema.isInt()), | 36095 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 32106 | Schema.Null, | 36096 | Schema.Null, |
| 32107 | ]), | 36097 | ]), |
| 32108 | ), | 36098 | ), |
| 32109 | sessionId: Schema.String.annotate({ | 36099 | sessionId: Schema.String.annotate({ |
| 32110 | description: "Session id shared by threads that belong to the same session tree.", | 36100 | description: "Session id shared by threads that belong to the same session tree.", |
| 32111 | }), | 36101 | }), |
| 32112 | source: Schema.Union( | 36102 | source: Schema.suspend( |
| 32113 | [ | 36103 | (): Schema.Codec<V2ThreadUnarchiveResponse__SessionSource> => |
| 32114 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), | 36104 | V2ThreadUnarchiveResponse__SessionSource, |
| 32115 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), | | |
| 32116 | Schema.Struct({ subAgent: V2ThreadUnarchiveResponse__SubAgentSource }).annotate({ | | |
| 32117 | title: "SubAgentSessionSource", | | |
| 32118 | }), | | |
| 32119 | ], | | |
| 32120 | { mode: "oneOf" }, | | |
| 32121 | ).annotate({ | 36105 | ).annotate({ |
| 32122 | description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).", | 36106 | description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).", |
| 32123 | }), | 36107 | }), |
| 32124 | status: Schema.Union( | 36108 | status: Schema.suspend( |
| 32125 | [ | 36109 | (): Schema.Codec<V2ThreadUnarchiveResponse__ThreadStatus> => |
| 32126 | Schema.Struct({ | 36110 | V2ThreadUnarchiveResponse__ThreadStatus, |
| 32127 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), | | |
| 32128 | }).annotate({ title: "NotLoadedThreadStatus" }), | | |
| 32129 | Schema.Struct({ | | |
| 32130 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), | | |
| 32131 | }).annotate({ title: "IdleThreadStatus" }), | | |
| 32132 | Schema.Struct({ | | |
| 32133 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), | | |
| 32134 | }).annotate({ title: "SystemErrorThreadStatus" }), | | |
| 32135 | Schema.Struct({ | | |
| 32136 | activeFlags: Schema.Array(V2ThreadUnarchiveResponse__ThreadActiveFlag), | | |
| 32137 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), | | |
| 32138 | }).annotate({ title: "ActiveThreadStatus" }), | | |
| 32139 | ], | | |
| 32140 | { mode: "oneOf" }, | | |
| 32141 | ).annotate({ description: "Current runtime status for the thread." }), | 36111 | ).annotate({ description: "Current runtime status for the thread." }), |
| 32142 | threadSource: Schema.optionalKey( | 36112 | threadSource: Schema.optionalKey( |
| 32143 | Schema.Union([V2ThreadUnarchiveResponse__ThreadSource, Schema.Null]).annotate({ | 36113 | Schema.Union([V2ThreadUnarchiveResponse__ThreadSource, Schema.Null]).annotate({ |
| ... | @@ -32151,134 +36121,8 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({ | ... | @@ -32151,134 +36121,8 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({ |
| 32151 | updatedAt: Schema.Number.annotate({ | 36121 | updatedAt: Schema.Number.annotate({ |
| 32152 | description: "Unix timestamp (in seconds) when the thread was last updated.", | 36122 | description: "Unix timestamp (in seconds) when the thread was last updated.", |
| 32153 | format: "int64", | 36123 | format: "int64", |
| 32154 | }).check(Schema.isInt()), | 36124 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 32155 | }); | 36125 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__Thread" }); |
| 32156 | | | |
| 32157 | export type McpServerElicitationRequestParams__McpElicitationPrimitiveSchema = | | |
| 32158 | | McpServerElicitationRequestParams__McpElicitationEnumSchema | | |
| 32159 | | McpServerElicitationRequestParams__McpElicitationStringSchema | | |
| 32160 | | McpServerElicitationRequestParams__McpElicitationNumberSchema | | |
| 32161 | | McpServerElicitationRequestParams__McpElicitationBooleanSchema; | | |
| 32162 | export const McpServerElicitationRequestParams__McpElicitationPrimitiveSchema = Schema.Union([ | | |
| 32163 | McpServerElicitationRequestParams__McpElicitationEnumSchema, | | |
| 32164 | McpServerElicitationRequestParams__McpElicitationStringSchema, | | |
| 32165 | McpServerElicitationRequestParams__McpElicitationNumberSchema, | | |
| 32166 | McpServerElicitationRequestParams__McpElicitationBooleanSchema, | | |
| 32167 | ]); | | |
| 32168 | | | |
| 32169 | export type PermissionsRequestApprovalParams__RequestPermissionProfile = { | | |
| 32170 | readonly fileSystem?: PermissionsRequestApprovalParams__AdditionalFileSystemPermissions | null; | | |
| 32171 | readonly network?: PermissionsRequestApprovalParams__AdditionalNetworkPermissions | null; | | |
| 32172 | }; | | |
| 32173 | export const PermissionsRequestApprovalParams__RequestPermissionProfile = Schema.Struct({ | | |
| 32174 | fileSystem: Schema.optionalKey( | | |
| 32175 | Schema.Union([PermissionsRequestApprovalParams__AdditionalFileSystemPermissions, Schema.Null]), | | |
| 32176 | ), | | |
| 32177 | network: Schema.optionalKey( | | |
| 32178 | Schema.Union([PermissionsRequestApprovalParams__AdditionalNetworkPermissions, Schema.Null]), | | |
| 32179 | ), | | |
| 32180 | }); | | |
| 32181 | | | |
| 32182 | export type PermissionsRequestApprovalResponse__GrantedPermissionProfile = { | | |
| 32183 | readonly fileSystem?: PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions | null; | | |
| 32184 | readonly network?: PermissionsRequestApprovalResponse__AdditionalNetworkPermissions | null; | | |
| 32185 | }; | | |
| 32186 | export const PermissionsRequestApprovalResponse__GrantedPermissionProfile = Schema.Struct({ | | |
| 32187 | fileSystem: Schema.optionalKey( | | |
| 32188 | Schema.Union([ | | |
| 32189 | PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions, | | |
| 32190 | Schema.Null, | | |
| 32191 | ]), | | |
| 32192 | ), | | |
| 32193 | network: Schema.optionalKey( | | |
| 32194 | Schema.Union([PermissionsRequestApprovalResponse__AdditionalNetworkPermissions, Schema.Null]), | | |
| 32195 | ), | | |
| 32196 | }); | | |
| 32197 | | | |
| 32198 | export type ServerNotification__RequestPermissionProfile = { | | |
| 32199 | readonly fileSystem?: ServerNotification__AdditionalFileSystemPermissions | null; | | |
| 32200 | readonly network?: ServerNotification__AdditionalNetworkPermissions | null; | | |
| 32201 | }; | | |
| 32202 | export const ServerNotification__RequestPermissionProfile = Schema.Struct({ | | |
| 32203 | fileSystem: Schema.optionalKey( | | |
| 32204 | Schema.Union([ServerNotification__AdditionalFileSystemPermissions, Schema.Null]), | | |
| 32205 | ), | | |
| 32206 | network: Schema.optionalKey( | | |
| 32207 | Schema.Union([ServerNotification__AdditionalNetworkPermissions, Schema.Null]), | | |
| 32208 | ), | | |
| 32209 | }); | | |
| 32210 | | | |
| 32211 | export type ServerNotification__ThreadStartedNotification = { | | |
| 32212 | readonly thread: ServerNotification__Thread; | | |
| 32213 | }; | | |
| 32214 | export const ServerNotification__ThreadStartedNotification = Schema.Struct({ | | |
| 32215 | thread: ServerNotification__Thread, | | |
| 32216 | }); | | |
| 32217 | | | |
| 32218 | export type ServerRequest__RequestPermissionProfile = { | | |
| 32219 | readonly fileSystem?: ServerRequest__AdditionalFileSystemPermissions | null; | | |
| 32220 | readonly network?: ServerRequest__AdditionalNetworkPermissions | null; | | |
| 32221 | }; | | |
| 32222 | export const ServerRequest__RequestPermissionProfile = Schema.Struct({ | | |
| 32223 | fileSystem: Schema.optionalKey( | | |
| 32224 | Schema.Union([ServerRequest__AdditionalFileSystemPermissions, Schema.Null]), | | |
| 32225 | ), | | |
| 32226 | network: Schema.optionalKey( | | |
| 32227 | Schema.Union([ServerRequest__AdditionalNetworkPermissions, Schema.Null]), | | |
| 32228 | ), | | |
| 32229 | }); | | |
| 32230 | | | |
| 32231 | export type ServerRequest__McpElicitationPrimitiveSchema = | | |
| 32232 | | ServerRequest__McpElicitationEnumSchema | | |
| 32233 | | ServerRequest__McpElicitationStringSchema | | |
| 32234 | | ServerRequest__McpElicitationNumberSchema | | |
| 32235 | | ServerRequest__McpElicitationBooleanSchema; | | |
| 32236 | export const ServerRequest__McpElicitationPrimitiveSchema = Schema.Union([ | | |
| 32237 | ServerRequest__McpElicitationEnumSchema, | | |
| 32238 | ServerRequest__McpElicitationStringSchema, | | |
| 32239 | ServerRequest__McpElicitationNumberSchema, | | |
| 32240 | ServerRequest__McpElicitationBooleanSchema, | | |
| 32241 | ]); | | |
| 32242 | | | |
| 32243 | export type V2ItemGuardianApprovalReviewCompletedNotification__RequestPermissionProfile = { | | |
| 32244 | readonly fileSystem?: V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions | null; | | |
| 32245 | readonly network?: V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions | null; | | |
| 32246 | }; | | |
| 32247 | export const V2ItemGuardianApprovalReviewCompletedNotification__RequestPermissionProfile = | | |
| 32248 | Schema.Struct({ | | |
| 32249 | fileSystem: Schema.optionalKey( | | |
| 32250 | Schema.Union([ | | |
| 32251 | V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions, | | |
| 32252 | Schema.Null, | | |
| 32253 | ]), | | |
| 32254 | ), | | |
| 32255 | network: Schema.optionalKey( | | |
| 32256 | Schema.Union([ | | |
| 32257 | V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions, | | |
| 32258 | Schema.Null, | | |
| 32259 | ]), | | |
| 32260 | ), | | |
| 32261 | }); | | |
| 32262 | | | |
| 32263 | export type V2ItemGuardianApprovalReviewStartedNotification__RequestPermissionProfile = { | | |
| 32264 | readonly fileSystem?: V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions | null; | | |
| 32265 | readonly network?: V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions | null; | | |
| 32266 | }; | | |
| 32267 | export const V2ItemGuardianApprovalReviewStartedNotification__RequestPermissionProfile = | | |
| 32268 | Schema.Struct({ | | |
| 32269 | fileSystem: Schema.optionalKey( | | |
| 32270 | Schema.Union([ | | |
| 32271 | V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions, | | |
| 32272 | Schema.Null, | | |
| 32273 | ]), | | |
| 32274 | ), | | |
| 32275 | network: Schema.optionalKey( | | |
| 32276 | Schema.Union([ | | |
| 32277 | V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions, | | |
| 32278 | Schema.Null, | | |
| 32279 | ]), | | |
| 32280 | ), | | |
| 32281 | }); | | |
| 32282 | | 36126 | |
| 32283 | export type McpServerElicitationRequestParams__McpElicitationSchema = { | 36127 | export type McpServerElicitationRequestParams__McpElicitationSchema = { |
| 32284 | readonly $schema?: string | null; | 36128 | readonly $schema?: string | null; |
| ... | @@ -32299,8 +36143,16 @@ export const McpServerElicitationRequestParams__McpElicitationSchema = Schema.St | ... | @@ -32299,8 +36143,16 @@ export const McpServerElicitationRequestParams__McpElicitationSchema = Schema.St |
| 32299 | }).annotate({ | 36143 | }).annotate({ |
| 32300 | description: | 36144 | description: |
| 32301 | "Typed form schema for MCP `elicitation/create` requests.\n\nThis matches the `requestedSchema` shape from the MCP 2025-11-25 `ElicitRequestFormParams` schema.", | 36145 | "Typed form schema for MCP `elicitation/create` requests.\n\nThis matches the `requestedSchema` shape from the MCP 2025-11-25 `ElicitRequestFormParams` schema.", |
| | 36146 | identifier: "McpServerElicitationRequestParams__McpElicitationSchema", |
| 32302 | }); | 36147 | }); |
| 32303 | | 36148 | |
| | 36149 | export type ServerNotification__ThreadStartedNotification = { |
| | 36150 | readonly thread: ServerNotification__Thread; |
| | 36151 | }; |
| | 36152 | export const ServerNotification__ThreadStartedNotification = Schema.Struct({ |
| | 36153 | thread: ServerNotification__Thread, |
| | 36154 | }).annotate({ identifier: "ServerNotification__ThreadStartedNotification" }); |
| | 36155 | |
| 32304 | export type ServerNotification__GuardianApprovalReviewAction = | 36156 | export type ServerNotification__GuardianApprovalReviewAction = |
| 32305 | | { | 36157 | | { |
| 32306 | readonly command: string; | 36158 | readonly command: string; |
| ... | @@ -32367,8 +36219,12 @@ export const ServerNotification__GuardianApprovalReviewAction = Schema.Union( | ... | @@ -32367,8 +36219,12 @@ export const ServerNotification__GuardianApprovalReviewAction = Schema.Union( |
| 32367 | Schema.Struct({ | 36219 | Schema.Struct({ |
| 32368 | host: Schema.String, | 36220 | host: Schema.String, |
| 32369 | port: Schema.Number.annotate({ format: "uint16" }) | 36221 | port: Schema.Number.annotate({ format: "uint16" }) |
| 32370 | .check(Schema.isInt()) | 36222 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 32371 | .check(Schema.isGreaterThanOrEqualTo(0)), | 36223 | .check( |
| | 36224 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 36225 | expected: "a value greater than or equal to 0", |
| | 36226 | }), |
| | 36227 | ), |
| 32372 | protocol: ServerNotification__NetworkApprovalProtocol, | 36228 | protocol: ServerNotification__NetworkApprovalProtocol, |
| 32373 | target: Schema.String, | 36229 | target: Schema.String, |
| 32374 | type: Schema.Literal("networkAccess").annotate({ | 36230 | type: Schema.Literal("networkAccess").annotate({ |
| ... | @@ -32394,7 +36250,7 @@ export const ServerNotification__GuardianApprovalReviewAction = Schema.Union( | ... | @@ -32394,7 +36250,7 @@ export const ServerNotification__GuardianApprovalReviewAction = Schema.Union( |
| 32394 | }).annotate({ title: "RequestPermissionsGuardianApprovalReviewAction" }), | 36250 | }).annotate({ title: "RequestPermissionsGuardianApprovalReviewAction" }), |
| 32395 | ], | 36251 | ], |
| 32396 | { mode: "oneOf" }, | 36252 | { mode: "oneOf" }, |
| 32397 | ); | 36253 | ).annotate({ identifier: "ServerNotification__GuardianApprovalReviewAction" }); |
| 32398 | | 36254 | |
| 32399 | export type ServerRequest__PermissionsRequestApprovalParams = { | 36255 | export type ServerRequest__PermissionsRequestApprovalParams = { |
| 32400 | readonly cwd: ServerRequest__AbsolutePathBuf; | 36256 | readonly cwd: ServerRequest__AbsolutePathBuf; |
| ... | @@ -32415,10 +36271,10 @@ export const ServerRequest__PermissionsRequestApprovalParams = Schema.Struct({ | ... | @@ -32415,10 +36271,10 @@ export const ServerRequest__PermissionsRequestApprovalParams = Schema.Struct({ |
| 32415 | startedAtMs: Schema.Number.annotate({ | 36271 | startedAtMs: Schema.Number.annotate({ |
| 32416 | description: "Unix timestamp (in milliseconds) when this approval request started.", | 36272 | description: "Unix timestamp (in milliseconds) when this approval request started.", |
| 32417 | format: "int64", | 36273 | format: "int64", |
| 32418 | }).check(Schema.isInt()), | 36274 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 32419 | threadId: Schema.String, | 36275 | threadId: Schema.String, |
| 32420 | turnId: Schema.String, | 36276 | turnId: Schema.String, |
| 32421 | }); | 36277 | }).annotate({ identifier: "ServerRequest__PermissionsRequestApprovalParams" }); |
| 32422 | | 36278 | |
| 32423 | export type ServerRequest__McpElicitationSchema = { | 36279 | export type ServerRequest__McpElicitationSchema = { |
| 32424 | readonly $schema?: string | null; | 36280 | readonly $schema?: string | null; |
| ... | @@ -32434,6 +36290,7 @@ export const ServerRequest__McpElicitationSchema = Schema.Struct({ | ... | @@ -32434,6 +36290,7 @@ export const ServerRequest__McpElicitationSchema = Schema.Struct({ |
| 32434 | }).annotate({ | 36290 | }).annotate({ |
| 32435 | description: | 36291 | description: |
| 32436 | "Typed form schema for MCP `elicitation/create` requests.\n\nThis matches the `requestedSchema` shape from the MCP 2025-11-25 `ElicitRequestFormParams` schema.", | 36292 | "Typed form schema for MCP `elicitation/create` requests.\n\nThis matches the `requestedSchema` shape from the MCP 2025-11-25 `ElicitRequestFormParams` schema.", |
| | 36293 | identifier: "ServerRequest__McpElicitationSchema", |
| 32437 | }); | 36294 | }); |
| 32438 | | 36295 | |
| 32439 | export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewAction = | 36296 | export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewAction = |
| ... | @@ -32505,8 +36362,12 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApproval | ... | @@ -32505,8 +36362,12 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApproval |
| 32505 | Schema.Struct({ | 36362 | Schema.Struct({ |
| 32506 | host: Schema.String, | 36363 | host: Schema.String, |
| 32507 | port: Schema.Number.annotate({ format: "uint16" }) | 36364 | port: Schema.Number.annotate({ format: "uint16" }) |
| 32508 | .check(Schema.isInt()) | 36365 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 32509 | .check(Schema.isGreaterThanOrEqualTo(0)), | 36366 | .check( |
| | 36367 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 36368 | expected: "a value greater than or equal to 0", |
| | 36369 | }), |
| | 36370 | ), |
| 32510 | protocol: V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol, | 36371 | protocol: V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol, |
| 32511 | target: Schema.String, | 36372 | target: Schema.String, |
| 32512 | type: Schema.Literal("networkAccess").annotate({ | 36373 | type: Schema.Literal("networkAccess").annotate({ |
| ... | @@ -32532,7 +36393,9 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApproval | ... | @@ -32532,7 +36393,9 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApproval |
| 32532 | }).annotate({ title: "RequestPermissionsGuardianApprovalReviewAction" }), | 36393 | }).annotate({ title: "RequestPermissionsGuardianApprovalReviewAction" }), |
| 32533 | ], | 36394 | ], |
| 32534 | { mode: "oneOf" }, | 36395 | { mode: "oneOf" }, |
| 32535 | ); | 36396 | ).annotate({ |
| | 36397 | identifier: "V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewAction", |
| | 36398 | }); |
| 32536 | | 36399 | |
| 32537 | export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewAction = | 36400 | export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewAction = |
| 32538 | | { | 36401 | | { |
| ... | @@ -32603,8 +36466,12 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRe | ... | @@ -32603,8 +36466,12 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRe |
| 32603 | Schema.Struct({ | 36466 | Schema.Struct({ |
| 32604 | host: Schema.String, | 36467 | host: Schema.String, |
| 32605 | port: Schema.Number.annotate({ format: "uint16" }) | 36468 | port: Schema.Number.annotate({ format: "uint16" }) |
| 32606 | .check(Schema.isInt()) | 36469 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 32607 | .check(Schema.isGreaterThanOrEqualTo(0)), | 36470 | .check( |
| | 36471 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 36472 | expected: "a value greater than or equal to 0", |
| | 36473 | }), |
| | 36474 | ), |
| 32608 | protocol: V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol, | 36475 | protocol: V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol, |
| 32609 | target: Schema.String, | 36476 | target: Schema.String, |
| 32610 | type: Schema.Literal("networkAccess").annotate({ | 36477 | type: Schema.Literal("networkAccess").annotate({ |
| ... | @@ -32630,12 +36497,12 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRe | ... | @@ -32630,12 +36497,12 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRe |
| 32630 | }).annotate({ title: "RequestPermissionsGuardianApprovalReviewAction" }), | 36497 | }).annotate({ title: "RequestPermissionsGuardianApprovalReviewAction" }), |
| 32631 | ], | 36498 | ], |
| 32632 | { mode: "oneOf" }, | 36499 | { mode: "oneOf" }, |
| 32633 | ); | 36500 | ).annotate({ |
| | 36501 | identifier: "V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewAction", |
| | 36502 | }); |
| 32634 | | 36503 | |
| 32635 | export type ServerNotification__ItemGuardianApprovalReviewCompletedNotification = { | 36504 | export type ServerNotification__ItemGuardianApprovalReviewStartedNotification = { |
| 32636 | readonly action: ServerNotification__GuardianApprovalReviewAction; | 36505 | readonly action: ServerNotification__GuardianApprovalReviewAction; |
| 32637 | readonly completedAtMs: number; | | |
| 32638 | readonly decisionSource: ServerNotification__AutoReviewDecisionSource; | | |
| 32639 | readonly review: ServerNotification__GuardianApprovalReview; | 36506 | readonly review: ServerNotification__GuardianApprovalReview; |
| 32640 | readonly reviewId: string; | 36507 | readonly reviewId: string; |
| 32641 | readonly startedAtMs: number; | 36508 | readonly startedAtMs: number; |
| ... | @@ -32643,19 +36510,14 @@ export type ServerNotification__ItemGuardianApprovalReviewCompletedNotification | ... | @@ -32643,19 +36510,14 @@ export type ServerNotification__ItemGuardianApprovalReviewCompletedNotification |
| 32643 | readonly threadId: string; | 36510 | readonly threadId: string; |
| 32644 | readonly turnId: string; | 36511 | readonly turnId: string; |
| 32645 | }; | 36512 | }; |
| 32646 | export const ServerNotification__ItemGuardianApprovalReviewCompletedNotification = Schema.Struct({ | 36513 | export const ServerNotification__ItemGuardianApprovalReviewStartedNotification = Schema.Struct({ |
| 32647 | action: ServerNotification__GuardianApprovalReviewAction, | 36514 | action: ServerNotification__GuardianApprovalReviewAction, |
| 32648 | completedAtMs: Schema.Number.annotate({ | | |
| 32649 | description: "Unix timestamp (in milliseconds) when this review completed.", | | |
| 32650 | format: "int64", | | |
| 32651 | }).check(Schema.isInt()), | | |
| 32652 | decisionSource: ServerNotification__AutoReviewDecisionSource, | | |
| 32653 | review: ServerNotification__GuardianApprovalReview, | 36515 | review: ServerNotification__GuardianApprovalReview, |
| 32654 | reviewId: Schema.String.annotate({ description: "Stable identifier for this review." }), | 36516 | reviewId: Schema.String.annotate({ description: "Stable identifier for this review." }), |
| 32655 | startedAtMs: Schema.Number.annotate({ | 36517 | startedAtMs: Schema.Number.annotate({ |
| 32656 | description: "Unix timestamp (in milliseconds) when this review started.", | 36518 | description: "Unix timestamp (in milliseconds) when this review started.", |
| 32657 | format: "int64", | 36519 | format: "int64", |
| 32658 | }).check(Schema.isInt()), | 36520 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 32659 | targetItemId: Schema.optionalKey( | 36521 | targetItemId: Schema.optionalKey( |
| 32660 | Schema.Union([ | 36522 | Schema.Union([ |
| 32661 | Schema.String.annotate({ | 36523 | Schema.String.annotate({ |
| ... | @@ -32670,10 +36532,13 @@ export const ServerNotification__ItemGuardianApprovalReviewCompletedNotification | ... | @@ -32670,10 +36532,13 @@ export const ServerNotification__ItemGuardianApprovalReviewCompletedNotification |
| 32670 | }).annotate({ | 36532 | }).annotate({ |
| 32671 | description: | 36533 | description: |
| 32672 | "[UNSTABLE] Temporary notification payload for approval auto-review. This shape is expected to change soon.", | 36534 | "[UNSTABLE] Temporary notification payload for approval auto-review. This shape is expected to change soon.", |
| | 36535 | identifier: "ServerNotification__ItemGuardianApprovalReviewStartedNotification", |
| 32673 | }); | 36536 | }); |
| 32674 | | 36537 | |
| 32675 | export type ServerNotification__ItemGuardianApprovalReviewStartedNotification = { | 36538 | export type ServerNotification__ItemGuardianApprovalReviewCompletedNotification = { |
| 32676 | readonly action: ServerNotification__GuardianApprovalReviewAction; | 36539 | readonly action: ServerNotification__GuardianApprovalReviewAction; |
| | 36540 | readonly completedAtMs: number; |
| | 36541 | readonly decisionSource: ServerNotification__AutoReviewDecisionSource; |
| 32677 | readonly review: ServerNotification__GuardianApprovalReview; | 36542 | readonly review: ServerNotification__GuardianApprovalReview; |
| 32678 | readonly reviewId: string; | 36543 | readonly reviewId: string; |
| 32679 | readonly startedAtMs: number; | 36544 | readonly startedAtMs: number; |
| ... | @@ -32681,14 +36546,19 @@ export type ServerNotification__ItemGuardianApprovalReviewStartedNotification = | ... | @@ -32681,14 +36546,19 @@ export type ServerNotification__ItemGuardianApprovalReviewStartedNotification = |
| 32681 | readonly threadId: string; | 36546 | readonly threadId: string; |
| 32682 | readonly turnId: string; | 36547 | readonly turnId: string; |
| 32683 | }; | 36548 | }; |
| 32684 | export const ServerNotification__ItemGuardianApprovalReviewStartedNotification = Schema.Struct({ | 36549 | export const ServerNotification__ItemGuardianApprovalReviewCompletedNotification = Schema.Struct({ |
| 32685 | action: ServerNotification__GuardianApprovalReviewAction, | 36550 | action: ServerNotification__GuardianApprovalReviewAction, |
| | 36551 | completedAtMs: Schema.Number.annotate({ |
| | 36552 | description: "Unix timestamp (in milliseconds) when this review completed.", |
| | 36553 | format: "int64", |
| | 36554 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 36555 | decisionSource: ServerNotification__AutoReviewDecisionSource, |
| 32686 | review: ServerNotification__GuardianApprovalReview, | 36556 | review: ServerNotification__GuardianApprovalReview, |
| 32687 | reviewId: Schema.String.annotate({ description: "Stable identifier for this review." }), | 36557 | reviewId: Schema.String.annotate({ description: "Stable identifier for this review." }), |
| 32688 | startedAtMs: Schema.Number.annotate({ | 36558 | startedAtMs: Schema.Number.annotate({ |
| 32689 | description: "Unix timestamp (in milliseconds) when this review started.", | 36559 | description: "Unix timestamp (in milliseconds) when this review started.", |
| 32690 | format: "int64", | 36560 | format: "int64", |
| 32691 | }).check(Schema.isInt()), | 36561 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 32692 | targetItemId: Schema.optionalKey( | 36562 | targetItemId: Schema.optionalKey( |
| 32693 | Schema.Union([ | 36563 | Schema.Union([ |
| 32694 | Schema.String.annotate({ | 36564 | Schema.String.annotate({ |
| ... | @@ -32703,44 +36573,41 @@ export const ServerNotification__ItemGuardianApprovalReviewStartedNotification = | ... | @@ -32703,44 +36573,41 @@ export const ServerNotification__ItemGuardianApprovalReviewStartedNotification = |
| 32703 | }).annotate({ | 36573 | }).annotate({ |
| 32704 | description: | 36574 | description: |
| 32705 | "[UNSTABLE] Temporary notification payload for approval auto-review. This shape is expected to change soon.", | 36575 | "[UNSTABLE] Temporary notification payload for approval auto-review. This shape is expected to change soon.", |
| | 36576 | identifier: "ServerNotification__ItemGuardianApprovalReviewCompletedNotification", |
| 32706 | }); | 36577 | }); |
| 32707 | | 36578 | |
| 32708 | export type ServerRequest__McpServerElicitationRequestParams = | 36579 | export type ServerRequest__McpServerElicitationRequestParams = |
| 32709 | | { | 36580 | | { |
| 32710 | readonly _meta?: unknown; | 36581 | readonly serverName: string; |
| | 36582 | readonly threadId: string; |
| | 36583 | readonly turnId?: string | null; |
| | 36584 | readonly _meta?: Schema.Json; |
| 32711 | readonly message: string; | 36585 | readonly message: string; |
| 32712 | readonly mode: "form"; | 36586 | readonly mode: "form"; |
| 32713 | readonly requestedSchema: ServerRequest__McpElicitationSchema; | 36587 | readonly requestedSchema: ServerRequest__McpElicitationSchema; |
| | 36588 | } |
| | 36589 | | { |
| 32714 | readonly serverName: string; | 36590 | readonly serverName: string; |
| 32715 | readonly threadId: string; | 36591 | readonly threadId: string; |
| 32716 | readonly turnId?: string | null; | 36592 | readonly turnId?: string | null; |
| 32717 | } | 36593 | readonly _meta?: Schema.Json; |
| 32718 | | { | | |
| 32719 | readonly _meta?: unknown; | | |
| 32720 | readonly message: string; | 36594 | readonly message: string; |
| 32721 | readonly mode: "openai/form"; | 36595 | readonly mode: "openai/form"; |
| 32722 | readonly requestedSchema: unknown; | 36596 | readonly requestedSchema: Schema.Json; |
| | 36597 | } |
| | 36598 | | { |
| 32723 | readonly serverName: string; | 36599 | readonly serverName: string; |
| 32724 | readonly threadId: string; | 36600 | readonly threadId: string; |
| 32725 | readonly turnId?: string | null; | 36601 | readonly turnId?: string | null; |
| 32726 | } | 36602 | readonly _meta?: Schema.Json; |
| 32727 | | { | | |
| 32728 | readonly _meta?: unknown; | | |
| 32729 | readonly elicitationId: string; | 36603 | readonly elicitationId: string; |
| 32730 | readonly message: string; | 36604 | readonly message: string; |
| 32731 | readonly mode: "url"; | 36605 | readonly mode: "url"; |
| 32732 | readonly url: string; | 36606 | readonly url: string; |
| 32733 | readonly serverName: string; | | |
| 32734 | readonly threadId: string; | | |
| 32735 | readonly turnId?: string | null; | | |
| 32736 | }; | 36607 | }; |
| 32737 | export const ServerRequest__McpServerElicitationRequestParams = Schema.Union( | 36608 | export const ServerRequest__McpServerElicitationRequestParams = Schema.Union( |
| 32738 | [ | 36609 | [ |
| 32739 | Schema.Struct({ | 36610 | Schema.Struct({ |
| 32740 | _meta: Schema.optionalKey(Schema.Unknown), | | |
| 32741 | message: Schema.String, | | |
| 32742 | mode: Schema.Literal("form"), | | |
| 32743 | requestedSchema: ServerRequest__McpElicitationSchema, | | |
| 32744 | serverName: Schema.String, | 36611 | serverName: Schema.String, |
| 32745 | threadId: Schema.String, | 36612 | threadId: Schema.String, |
| 32746 | turnId: Schema.optionalKey( | 36613 | turnId: Schema.optionalKey( |
| ... | @@ -32752,12 +36619,12 @@ export const ServerRequest__McpServerElicitationRequestParams = Schema.Union( | ... | @@ -32752,12 +36619,12 @@ export const ServerRequest__McpServerElicitationRequestParams = Schema.Union( |
| 32752 | Schema.Null, | 36619 | Schema.Null, |
| 32753 | ]), | 36620 | ]), |
| 32754 | ), | 36621 | ), |
| | 36622 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 36623 | message: Schema.String, |
| | 36624 | mode: Schema.Literal("form"), |
| | 36625 | requestedSchema: ServerRequest__McpElicitationSchema, |
| 32755 | }), | 36626 | }), |
| 32756 | Schema.Struct({ | 36627 | Schema.Struct({ |
| 32757 | _meta: Schema.optionalKey(Schema.Unknown), | | |
| 32758 | message: Schema.String, | | |
| 32759 | mode: Schema.Literal("openai/form"), | | |
| 32760 | requestedSchema: Schema.Unknown, | | |
| 32761 | serverName: Schema.String, | 36628 | serverName: Schema.String, |
| 32762 | threadId: Schema.String, | 36629 | threadId: Schema.String, |
| 32763 | turnId: Schema.optionalKey( | 36630 | turnId: Schema.optionalKey( |
| ... | @@ -32769,13 +36636,12 @@ export const ServerRequest__McpServerElicitationRequestParams = Schema.Union( | ... | @@ -32769,13 +36636,12 @@ export const ServerRequest__McpServerElicitationRequestParams = Schema.Union( |
| 32769 | Schema.Null, | 36636 | Schema.Null, |
| 32770 | ]), | 36637 | ]), |
| 32771 | ), | 36638 | ), |
| | 36639 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 36640 | message: Schema.String, |
| | 36641 | mode: Schema.Literal("openai/form"), |
| | 36642 | requestedSchema: Schema.Json.annotate({ expected: "JSON value" }), |
| 32772 | }), | 36643 | }), |
| 32773 | Schema.Struct({ | 36644 | Schema.Struct({ |
| 32774 | _meta: Schema.optionalKey(Schema.Unknown), | | |
| 32775 | elicitationId: Schema.String, | | |
| 32776 | message: Schema.String, | | |
| 32777 | mode: Schema.Literal("url"), | | |
| 32778 | url: Schema.String, | | |
| 32779 | serverName: Schema.String, | 36645 | serverName: Schema.String, |
| 32780 | threadId: Schema.String, | 36646 | threadId: Schema.String, |
| 32781 | turnId: Schema.optionalKey( | 36647 | turnId: Schema.optionalKey( |
| ... | @@ -32787,10 +36653,15 @@ export const ServerRequest__McpServerElicitationRequestParams = Schema.Union( | ... | @@ -32787,10 +36653,15 @@ export const ServerRequest__McpServerElicitationRequestParams = Schema.Union( |
| 32787 | Schema.Null, | 36653 | Schema.Null, |
| 32788 | ]), | 36654 | ]), |
| 32789 | ), | 36655 | ), |
| | 36656 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 36657 | elicitationId: Schema.String, |
| | 36658 | message: Schema.String, |
| | 36659 | mode: Schema.Literal("url"), |
| | 36660 | url: Schema.String, |
| 32790 | }), | 36661 | }), |
| 32791 | ], | 36662 | ], |
| 32792 | { mode: "oneOf" }, | 36663 | { mode: "oneOf" }, |
| 32793 | ); | 36664 | ).annotate({ identifier: "ServerRequest__McpServerElicitationRequestParams" }); |
| 32794 | | 36665 | |
| 32795 | export type ApplyPatchApprovalParams = { | 36666 | export type ApplyPatchApprovalParams = { |
| 32796 | readonly callId: string; | 36667 | readonly callId: string; |
| ... | @@ -32832,10 +36703,11 @@ export const ApplyPatchApprovalResponse = Schema.Struct({ | ... | @@ -32832,10 +36703,11 @@ export const ApplyPatchApprovalResponse = Schema.Struct({ |
| 32832 | decision: ApplyPatchApprovalResponse__ReviewDecision, | 36703 | decision: ApplyPatchApprovalResponse__ReviewDecision, |
| 32833 | }).annotate({ title: "ApplyPatchApprovalResponse" }); | 36704 | }).annotate({ title: "ApplyPatchApprovalResponse" }); |
| 32834 | | 36705 | |
| 32835 | export type AttestationGenerateParams = {}; | 36706 | export type AttestationGenerateParams = { readonly [x: string]: Schema.Json }; |
| 32836 | export const AttestationGenerateParams = Schema.Struct({}).annotate({ | 36707 | export const AttestationGenerateParams = Schema.Record( |
| 32837 | title: "AttestationGenerateParams", | 36708 | Schema.String, |
| 32838 | }); | 36709 | Schema.Json.annotate({ expected: "JSON value" }), |
| | 36710 | ).annotate({ title: "AttestationGenerateParams" }); |
| 32839 | | 36711 | |
| 32840 | export type AttestationGenerateResponse = { readonly token: string }; | 36712 | export type AttestationGenerateResponse = { readonly token: string }; |
| 32841 | export const AttestationGenerateResponse = Schema.Struct({ | 36713 | export const AttestationGenerateResponse = Schema.Struct({ |
| ... | @@ -33903,39 +37775,6 @@ export const ClientRequest__AdditionalContextEntry = Schema.Struct({ | ... | @@ -33903,39 +37775,6 @@ export const ClientRequest__AdditionalContextEntry = Schema.Struct({ |
| 33903 | value: Schema.String, | 37775 | value: Schema.String, |
| 33904 | }); | 37776 | }); |
| 33905 | | 37777 | |
| 33906 | export type ClientRequest__ByteRange = { readonly end: number; readonly start: number }; | | |
| 33907 | export const ClientRequest__ByteRange = Schema.Struct({ | | |
| 33908 | end: Schema.Number.annotate({ format: "uint" }) | | |
| 33909 | .check(Schema.isInt()) | | |
| 33910 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 33911 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 33912 | .check(Schema.isInt()) | | |
| 33913 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 33914 | }); | | |
| 33915 | | | |
| 33916 | export type ClientRequest__CapabilityRootLocation = { | | |
| 33917 | readonly environmentId: string; | | |
| 33918 | readonly path: string; | | |
| 33919 | readonly type: "environment"; | | |
| 33920 | }; | | |
| 33921 | export const ClientRequest__CapabilityRootLocation = Schema.Union( | | |
| 33922 | [ | | |
| 33923 | Schema.Struct({ | | |
| 33924 | environmentId: Schema.String, | | |
| 33925 | path: Schema.String.annotate({ | | |
| 33926 | description: "Absolute path for the root in the selected environment.", | | |
| 33927 | }), | | |
| 33928 | type: Schema.Literal("environment").annotate({ | | |
| 33929 | title: "EnvironmentCapabilityRootLocationType", | | |
| 33930 | }), | | |
| 33931 | }).annotate({ | | |
| 33932 | title: "EnvironmentCapabilityRootLocation", | | |
| 33933 | description: "A path owned by an execution environment.", | | |
| 33934 | }), | | |
| 33935 | ], | | |
| 33936 | { mode: "oneOf" }, | | |
| 33937 | ).annotate({ description: "Location used to resolve a selected capability root." }); | | |
| 33938 | | | |
| 33939 | export type ClientRequest__CodexResponseHandoffMode = "thinking" | "commentary" | "bemTags"; | 37778 | export type ClientRequest__CodexResponseHandoffMode = "thinking" | "commentary" | "bemTags"; |
| 33940 | export const ClientRequest__CodexResponseHandoffMode = Schema.Literals([ | 37779 | export const ClientRequest__CodexResponseHandoffMode = Schema.Literals([ |
| 33941 | "thinking", | 37780 | "thinking", |
| ... | @@ -33956,7 +37795,7 @@ export type ClientRequest__DynamicToolSpec = | ... | @@ -33956,7 +37795,7 @@ export type ClientRequest__DynamicToolSpec = |
| 33956 | | { | 37795 | | { |
| 33957 | readonly deferLoading?: boolean; | 37796 | readonly deferLoading?: boolean; |
| 33958 | readonly description: string; | 37797 | readonly description: string; |
| 33959 | readonly inputSchema: unknown; | 37798 | readonly inputSchema: Schema.Json; |
| 33960 | readonly name: string; | 37799 | readonly name: string; |
| 33961 | readonly type: "function"; | 37800 | readonly type: "function"; |
| 33962 | } | 37801 | } |
| ... | @@ -33971,7 +37810,7 @@ export const ClientRequest__DynamicToolSpec = Schema.Union( | ... | @@ -33971,7 +37810,7 @@ export const ClientRequest__DynamicToolSpec = Schema.Union( |
| 33971 | Schema.Struct({ | 37810 | Schema.Struct({ |
| 33972 | deferLoading: Schema.optionalKey(Schema.Boolean), | 37811 | deferLoading: Schema.optionalKey(Schema.Boolean), |
| 33973 | description: Schema.String, | 37812 | description: Schema.String, |
| 33974 | inputSchema: Schema.Unknown, | 37813 | inputSchema: Schema.Json.annotate({ expected: "JSON value" }), |
| 33975 | name: Schema.String, | 37814 | name: Schema.String, |
| 33976 | type: Schema.Literal("function").annotate({ title: "FunctionDynamicToolSpecType" }), | 37815 | type: Schema.Literal("function").annotate({ title: "FunctionDynamicToolSpecType" }), |
| 33977 | }).annotate({ title: "FunctionDynamicToolSpec" }), | 37816 | }).annotate({ title: "FunctionDynamicToolSpec" }), |
| ... | @@ -34000,23 +37839,24 @@ export const ClientRequest__MultiAgentMode = Schema.Union( | ... | @@ -34000,23 +37839,24 @@ export const ClientRequest__MultiAgentMode = Schema.Union( |
| 34000 | "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.", | 37839 | "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.", |
| 34001 | }); | 37840 | }); |
| 34002 | | 37841 | |
| 34003 | export type ClientRequest__NetworkAccess = "restricted" | "enabled"; | | |
| 34004 | export const ClientRequest__NetworkAccess = Schema.Literals(["restricted", "enabled"]); | | |
| 34005 | | | |
| 34006 | export type ClientRequest__ProcessTerminalSize = { readonly cols: number; readonly rows: number }; | 37842 | export type ClientRequest__ProcessTerminalSize = { readonly cols: number; readonly rows: number }; |
| 34007 | export const ClientRequest__ProcessTerminalSize = Schema.Struct({ | 37843 | export const ClientRequest__ProcessTerminalSize = Schema.Struct({ |
| 34008 | cols: Schema.Number.annotate({ | 37844 | cols: Schema.Number.annotate({ |
| 34009 | description: "Terminal width in character cells.", | 37845 | description: "Terminal width in character cells.", |
| 34010 | format: "uint16", | 37846 | format: "uint16", |
| 34011 | }) | 37847 | }) |
| 34012 | .check(Schema.isInt()) | 37848 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 34013 | .check(Schema.isGreaterThanOrEqualTo(0)), | 37849 | .check( |
| | 37850 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 37851 | ), |
| 34014 | rows: Schema.Number.annotate({ | 37852 | rows: Schema.Number.annotate({ |
| 34015 | description: "Terminal height in character cells.", | 37853 | description: "Terminal height in character cells.", |
| 34016 | format: "uint16", | 37854 | format: "uint16", |
| 34017 | }) | 37855 | }) |
| 34018 | .check(Schema.isInt()) | 37856 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 34019 | .check(Schema.isGreaterThanOrEqualTo(0)), | 37857 | .check( |
| | 37858 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 37859 | ), |
| 34020 | }).annotate({ description: "PTY size in character cells for `process/spawn` PTY sessions." }); | 37860 | }).annotate({ description: "PTY size in character cells for `process/spawn` PTY sessions." }); |
| 34021 | | 37861 | |
| 34022 | export type ClientRequest__RealtimeConversationVersion = "v1" | "v2" | "v3"; | 37862 | export type ClientRequest__RealtimeConversationVersion = "v1" | "v2" | "v3"; |
| ... | @@ -34120,7 +37960,7 @@ export type ClientRequest__ResponseItem = | ... | @@ -34120,7 +37960,7 @@ export type ClientRequest__ResponseItem = |
| 34120 | readonly type: "function_call"; | 37960 | readonly type: "function_call"; |
| 34121 | } | 37961 | } |
| 34122 | | { | 37962 | | { |
| 34123 | readonly arguments: unknown; | 37963 | readonly arguments: Schema.Json; |
| 34124 | readonly call_id?: string | null; | 37964 | readonly call_id?: string | null; |
| 34125 | readonly execution: string; | 37965 | readonly execution: string; |
| 34126 | readonly id?: string | null; | 37966 | readonly id?: string | null; |
| ... | @@ -34159,7 +37999,7 @@ export type ClientRequest__ResponseItem = | ... | @@ -34159,7 +37999,7 @@ export type ClientRequest__ResponseItem = |
| 34159 | readonly id?: string | null; | 37999 | readonly id?: string | null; |
| 34160 | readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null; | 38000 | readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null; |
| 34161 | readonly status: string; | 38001 | readonly status: string; |
| 34162 | readonly tools: ReadonlyArray<unknown>; | 38002 | readonly tools: ReadonlyArray<Schema.Json>; |
| 34163 | readonly type: "tool_search_output"; | 38003 | readonly type: "tool_search_output"; |
| 34164 | } | 38004 | } |
| 34165 | | { | 38005 | | { |
| ... | @@ -34261,7 +38101,7 @@ export const ClientRequest__ResponseItem = Schema.Union( | ... | @@ -34261,7 +38101,7 @@ export const ClientRequest__ResponseItem = Schema.Union( |
| 34261 | type: Schema.Literal("function_call").annotate({ title: "FunctionCallResponseItemType" }), | 38101 | type: Schema.Literal("function_call").annotate({ title: "FunctionCallResponseItemType" }), |
| 34262 | }).annotate({ title: "FunctionCallResponseItem" }), | 38102 | }).annotate({ title: "FunctionCallResponseItem" }), |
| 34263 | Schema.Struct({ | 38103 | Schema.Struct({ |
| 34264 | arguments: Schema.Unknown, | 38104 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 34265 | call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 38105 | call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 34266 | execution: Schema.String, | 38106 | execution: Schema.String, |
| 34267 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 38107 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -34318,7 +38158,7 @@ export const ClientRequest__ResponseItem = Schema.Union( | ... | @@ -34318,7 +38158,7 @@ export const ClientRequest__ResponseItem = Schema.Union( |
| 34318 | Schema.Union([ClientRequest__InternalChatMessageMetadataPassthrough, Schema.Null]), | 38158 | Schema.Union([ClientRequest__InternalChatMessageMetadataPassthrough, Schema.Null]), |
| 34319 | ), | 38159 | ), |
| 34320 | status: Schema.String, | 38160 | status: Schema.String, |
| 34321 | tools: Schema.Array(Schema.Unknown), | 38161 | tools: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), |
| 34322 | type: Schema.Literal("tool_search_output").annotate({ | 38162 | type: Schema.Literal("tool_search_output").annotate({ |
| 34323 | title: "ToolSearchOutputResponseItemType", | 38163 | title: "ToolSearchOutputResponseItemType", |
| 34324 | }), | 38164 | }), |
| ... | @@ -34378,33 +38218,16 @@ export const ClientRequest__ResponseItem = Schema.Union( | ... | @@ -34378,33 +38218,16 @@ export const ClientRequest__ResponseItem = Schema.Union( |
| 34378 | | 38218 | |
| 34379 | export type ClientRequest__SelectedCapabilityRoot = { | 38219 | export type ClientRequest__SelectedCapabilityRoot = { |
| 34380 | readonly id: string; | 38220 | readonly id: string; |
| 34381 | readonly location: { | 38221 | readonly location: ClientRequest__CapabilityRootLocation; |
| 34382 | readonly environmentId: string; | | |
| 34383 | readonly path: string; | | |
| 34384 | readonly type: "environment"; | | |
| 34385 | }; | | |
| 34386 | }; | 38222 | }; |
| 34387 | export const ClientRequest__SelectedCapabilityRoot = Schema.Struct({ | 38223 | export const ClientRequest__SelectedCapabilityRoot = Schema.Struct({ |
| 34388 | id: Schema.String.annotate({ | 38224 | id: Schema.String.annotate({ |
| 34389 | description: "Stable identifier supplied by the capability selection platform.", | 38225 | description: "Stable identifier supplied by the capability selection platform.", |
| 34390 | }), | 38226 | }), |
| 34391 | location: Schema.Union( | 38227 | location: Schema.suspend( |
| 34392 | [ | 38228 | (): Schema.Codec<ClientRequest__CapabilityRootLocation> => |
| 34393 | Schema.Struct({ | 38229 | ClientRequest__CapabilityRootLocation, |
| 34394 | environmentId: Schema.String, | 38230 | ).annotate({ description: "Where the selected root can be resolved." }), |
| 34395 | path: Schema.String.annotate({ | | |
| 34396 | description: "Absolute path for the root in the selected environment.", | | |
| 34397 | }), | | |
| 34398 | type: Schema.Literal("environment").annotate({ | | |
| 34399 | title: "EnvironmentCapabilityRootLocationType", | | |
| 34400 | }), | | |
| 34401 | }).annotate({ | | |
| 34402 | title: "EnvironmentCapabilityRootLocation", | | |
| 34403 | description: "A path owned by an execution environment.", | | |
| 34404 | }), | | |
| 34405 | ], | | |
| 34406 | { mode: "oneOf" }, | | |
| 34407 | ).annotate({ description: "Location used to resolve a selected capability root." }), | | |
| 34408 | }).annotate({ | 38231 | }).annotate({ |
| 34409 | description: "A user-selected root that can expose one or more runtime capabilities.", | 38232 | description: "A user-selected root that can expose one or more runtime capabilities.", |
| 34410 | }); | 38233 | }); |
| ... | @@ -34426,16 +38249,24 @@ export const ClientRequest__ThreadRealtimeAudioChunk = Schema.Struct({ | ... | @@ -34426,16 +38249,24 @@ export const ClientRequest__ThreadRealtimeAudioChunk = Schema.Struct({ |
| 34426 | data: Schema.String, | 38249 | data: Schema.String, |
| 34427 | itemId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 38250 | itemId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 34428 | numChannels: Schema.Number.annotate({ format: "uint16" }) | 38251 | numChannels: Schema.Number.annotate({ format: "uint16" }) |
| 34429 | .check(Schema.isInt()) | 38252 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 34430 | .check(Schema.isGreaterThanOrEqualTo(0)), | 38253 | .check( |
| | 38254 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 38255 | ), |
| 34431 | sampleRate: Schema.Number.annotate({ format: "uint32" }) | 38256 | sampleRate: Schema.Number.annotate({ format: "uint32" }) |
| 34432 | .check(Schema.isInt()) | 38257 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 34433 | .check(Schema.isGreaterThanOrEqualTo(0)), | 38258 | .check( |
| | 38259 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 38260 | ), |
| 34434 | samplesPerChannel: Schema.optionalKey( | 38261 | samplesPerChannel: Schema.optionalKey( |
| 34435 | Schema.Union([ | 38262 | Schema.Union([ |
| 34436 | Schema.Number.annotate({ format: "uint32" }) | 38263 | Schema.Number.annotate({ format: "uint32" }) |
| 34437 | .check(Schema.isInt()) | 38264 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 34438 | .check(Schema.isGreaterThanOrEqualTo(0)), | 38265 | .check( |
| | 38266 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 38267 | expected: "a value greater than or equal to 0", |
| | 38268 | }), |
| | 38269 | ), |
| 34439 | Schema.Null, | 38270 | Schema.Null, |
| 34440 | ]), | 38271 | ]), |
| 34441 | ), | 38272 | ), |
| ... | @@ -34487,8 +38318,12 @@ export const ClientRequest__ThreadResumeInitialTurnsPageParams = Schema.Struct({ | ... | @@ -34487,8 +38318,12 @@ export const ClientRequest__ThreadResumeInitialTurnsPageParams = Schema.Struct({ |
| 34487 | limit: Schema.optionalKey( | 38318 | limit: Schema.optionalKey( |
| 34488 | Schema.Union([ | 38319 | Schema.Union([ |
| 34489 | Schema.Number.annotate({ description: "Optional turn page size.", format: "uint32" }) | 38320 | Schema.Number.annotate({ description: "Optional turn page size.", format: "uint32" }) |
| 34490 | .check(Schema.isInt()) | 38321 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 34491 | .check(Schema.isGreaterThanOrEqualTo(0)), | 38322 | .check( |
| | 38323 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 38324 | expected: "a value greater than or equal to 0", |
| | 38325 | }), |
| | 38326 | ), |
| 34492 | Schema.Null, | 38327 | Schema.Null, |
| 34493 | ]), | 38328 | ]), |
| 34494 | ), | 38329 | ), |
| ... | @@ -34604,7 +38439,7 @@ export const CommandExecutionRequestApprovalParams = Schema.Struct({ | ... | @@ -34604,7 +38439,7 @@ export const CommandExecutionRequestApprovalParams = Schema.Struct({ |
| 34604 | startedAtMs: Schema.Number.annotate({ | 38439 | startedAtMs: Schema.Number.annotate({ |
| 34605 | description: "Unix timestamp (in milliseconds) when this approval request started.", | 38440 | description: "Unix timestamp (in milliseconds) when this approval request started.", |
| 34606 | format: "int64", | 38441 | format: "int64", |
| 34607 | }).check(Schema.isInt()), | 38442 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 34608 | threadId: Schema.String, | 38443 | threadId: Schema.String, |
| 34609 | turnId: Schema.String, | 38444 | turnId: Schema.String, |
| 34610 | }).annotate({ title: "CommandExecutionRequestApprovalParams" }); | 38445 | }).annotate({ title: "CommandExecutionRequestApprovalParams" }); |
| ... | @@ -34685,7 +38520,7 @@ export const CommandExecutionRequestApprovalResponse = Schema.Struct({ | ... | @@ -34685,7 +38520,7 @@ export const CommandExecutionRequestApprovalResponse = Schema.Struct({ |
| 34685 | }).annotate({ title: "CommandExecutionRequestApprovalResponse" }); | 38520 | }).annotate({ title: "CommandExecutionRequestApprovalResponse" }); |
| 34686 | | 38521 | |
| 34687 | export type DynamicToolCallParams = { | 38522 | export type DynamicToolCallParams = { |
| 34688 | readonly arguments: unknown; | 38523 | readonly arguments: Schema.Json; |
| 34689 | readonly callId: string; | 38524 | readonly callId: string; |
| 34690 | readonly namespace?: string | null; | 38525 | readonly namespace?: string | null; |
| 34691 | readonly threadId: string; | 38526 | readonly threadId: string; |
| ... | @@ -34693,7 +38528,7 @@ export type DynamicToolCallParams = { | ... | @@ -34693,7 +38528,7 @@ export type DynamicToolCallParams = { |
| 34693 | readonly turnId: string; | 38528 | readonly turnId: string; |
| 34694 | }; | 38529 | }; |
| 34695 | export const DynamicToolCallParams = Schema.Struct({ | 38530 | export const DynamicToolCallParams = Schema.Struct({ |
| 34696 | arguments: Schema.Unknown, | 38531 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 34697 | callId: Schema.String, | 38532 | callId: Schema.String, |
| 34698 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 38533 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 34699 | threadId: Schema.String, | 38534 | threadId: Schema.String, |
| ... | @@ -34774,7 +38609,7 @@ export const FileChangeRequestApprovalParams = Schema.Struct({ | ... | @@ -34774,7 +38609,7 @@ export const FileChangeRequestApprovalParams = Schema.Struct({ |
| 34774 | startedAtMs: Schema.Number.annotate({ | 38609 | startedAtMs: Schema.Number.annotate({ |
| 34775 | description: "Unix timestamp (in milliseconds) when this approval request started.", | 38610 | description: "Unix timestamp (in milliseconds) when this approval request started.", |
| 34776 | format: "int64", | 38611 | format: "int64", |
| 34777 | }).check(Schema.isInt()), | 38612 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 34778 | threadId: Schema.String, | 38613 | threadId: Schema.String, |
| 34779 | turnId: Schema.String, | 38614 | turnId: Schema.String, |
| 34780 | }).annotate({ title: "FileChangeRequestApprovalParams" }); | 38615 | }).annotate({ title: "FileChangeRequestApprovalParams" }); |
| ... | @@ -34830,12 +38665,12 @@ export const GetAuthStatusParams = Schema.Struct({ | ... | @@ -34830,12 +38665,12 @@ export const GetAuthStatusParams = Schema.Struct({ |
| 34830 | }).annotate({ title: "GetAuthStatusParams" }); | 38665 | }).annotate({ title: "GetAuthStatusParams" }); |
| 34831 | | 38666 | |
| 34832 | export type GetAuthStatusResponse = { | 38667 | export type GetAuthStatusResponse = { |
| 34833 | readonly authMethod: unknown | null; | 38668 | readonly authMethod: Schema.Json | null; |
| 34834 | readonly authToken: string | null; | 38669 | readonly authToken: string | null; |
| 34835 | readonly requiresOpenaiAuth: boolean | null; | 38670 | readonly requiresOpenaiAuth: boolean | null; |
| 34836 | }; | 38671 | }; |
| 34837 | export const GetAuthStatusResponse = Schema.Struct({ | 38672 | export const GetAuthStatusResponse = Schema.Struct({ |
| 34838 | authMethod: Schema.Union([Schema.Unknown, Schema.Null]), | 38673 | authMethod: Schema.Union([Schema.Json.annotate({ expected: "JSON value" }), Schema.Null]), |
| 34839 | authToken: Schema.Union([Schema.String, Schema.Null]), | 38674 | authToken: Schema.Union([Schema.String, Schema.Null]), |
| 34840 | requiresOpenaiAuth: Schema.Union([Schema.Boolean, Schema.Null]), | 38675 | requiresOpenaiAuth: Schema.Union([Schema.Boolean, Schema.Null]), |
| 34841 | }).annotate({ title: "GetAuthStatusResponse" }); | 38676 | }).annotate({ title: "GetAuthStatusResponse" }); |
| ... | @@ -34848,10 +38683,10 @@ export const GetConversationSummaryParams = Schema.Union( | ... | @@ -34848,10 +38683,10 @@ export const GetConversationSummaryParams = Schema.Union( |
| 34848 | { mode: "oneOf" }, | 38683 | { mode: "oneOf" }, |
| 34849 | ).annotate({ title: "GetConversationSummaryParams" }); | 38684 | ).annotate({ title: "GetConversationSummaryParams" }); |
| 34850 | | 38685 | |
| 34851 | export type GetConversationSummaryResponse = { readonly summary: unknown }; | 38686 | export type GetConversationSummaryResponse = { readonly summary: Schema.Json }; |
| 34852 | export const GetConversationSummaryResponse = Schema.Struct({ summary: Schema.Unknown }).annotate({ | 38687 | export const GetConversationSummaryResponse = Schema.Struct({ |
| 34853 | title: "GetConversationSummaryResponse", | 38688 | summary: Schema.Json.annotate({ expected: "JSON value" }), |
| 34854 | }); | 38689 | }).annotate({ title: "GetConversationSummaryResponse" }); |
| 34855 | | 38690 | |
| 34856 | export type GitDiffToRemoteParams = { readonly cwd: string }; | 38691 | export type GitDiffToRemoteParams = { readonly cwd: string }; |
| 34857 | export const GitDiffToRemoteParams = Schema.Struct({ cwd: Schema.String }).annotate({ | 38692 | export const GitDiffToRemoteParams = Schema.Struct({ cwd: Schema.String }).annotate({ |
| ... | @@ -34878,12 +38713,14 @@ export const JSONRPCError = Schema.Struct({ | ... | @@ -34878,12 +38713,14 @@ export const JSONRPCError = Schema.Struct({ |
| 34878 | | 38713 | |
| 34879 | export type JSONRPCErrorError = { | 38714 | export type JSONRPCErrorError = { |
| 34880 | readonly code: number; | 38715 | readonly code: number; |
| 34881 | readonly data?: unknown; | 38716 | readonly data?: Schema.Json; |
| 34882 | readonly message: string; | 38717 | readonly message: string; |
| 34883 | }; | 38718 | }; |
| 34884 | export const JSONRPCErrorError = Schema.Struct({ | 38719 | export const JSONRPCErrorError = Schema.Struct({ |
| 34885 | code: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 38720 | code: Schema.Number.annotate({ format: "int64" }).check( |
| 34886 | data: Schema.optionalKey(Schema.Unknown), | 38721 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 38722 | ), |
| | 38723 | data: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 34887 | message: Schema.String, | 38724 | message: Schema.String, |
| 34888 | }).annotate({ title: "JSONRPCErrorError" }); | 38725 | }).annotate({ title: "JSONRPCErrorError" }); |
| 34889 | | 38726 | |
| ... | @@ -34903,10 +38740,10 @@ export const JSONRPCMessage = Schema.Union([ | ... | @@ -34903,10 +38740,10 @@ export const JSONRPCMessage = Schema.Union([ |
| 34903 | "Refers to any valid JSON-RPC object that can be decoded off the wire, or encoded to be sent.", | 38740 | "Refers to any valid JSON-RPC object that can be decoded off the wire, or encoded to be sent.", |
| 34904 | }); | 38741 | }); |
| 34905 | | 38742 | |
| 34906 | export type JSONRPCNotification = { readonly method: string; readonly params?: unknown }; | 38743 | export type JSONRPCNotification = { readonly method: string; readonly params?: Schema.Json }; |
| 34907 | export const JSONRPCNotification = Schema.Struct({ | 38744 | export const JSONRPCNotification = Schema.Struct({ |
| 34908 | method: Schema.String, | 38745 | method: Schema.String, |
| 34909 | params: Schema.optionalKey(Schema.Unknown), | 38746 | params: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 34910 | }).annotate({ | 38747 | }).annotate({ |
| 34911 | title: "JSONRPCNotification", | 38748 | title: "JSONRPCNotification", |
| 34912 | description: "A notification which does not expect a response.", | 38749 | description: "A notification which does not expect a response.", |
| ... | @@ -34915,13 +38752,13 @@ export const JSONRPCNotification = Schema.Struct({ | ... | @@ -34915,13 +38752,13 @@ export const JSONRPCNotification = Schema.Struct({ |
| 34915 | export type JSONRPCRequest = { | 38752 | export type JSONRPCRequest = { |
| 34916 | readonly id: JSONRPCRequest__RequestId; | 38753 | readonly id: JSONRPCRequest__RequestId; |
| 34917 | readonly method: string; | 38754 | readonly method: string; |
| 34918 | readonly params?: unknown; | 38755 | readonly params?: Schema.Json; |
| 34919 | readonly trace?: JSONRPCRequest__W3cTraceContext | null; | 38756 | readonly trace?: JSONRPCRequest__W3cTraceContext | null; |
| 34920 | }; | 38757 | }; |
| 34921 | export const JSONRPCRequest = Schema.Struct({ | 38758 | export const JSONRPCRequest = Schema.Struct({ |
| 34922 | id: JSONRPCRequest__RequestId, | 38759 | id: JSONRPCRequest__RequestId, |
| 34923 | method: Schema.String, | 38760 | method: Schema.String, |
| 34924 | params: Schema.optionalKey(Schema.Unknown), | 38761 | params: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 34925 | trace: Schema.optionalKey( | 38762 | trace: Schema.optionalKey( |
| 34926 | Schema.Union([JSONRPCRequest__W3cTraceContext, Schema.Null]).annotate({ | 38763 | Schema.Union([JSONRPCRequest__W3cTraceContext, Schema.Null]).annotate({ |
| 34927 | description: "Optional W3C Trace Context for distributed tracing.", | 38764 | description: "Optional W3C Trace Context for distributed tracing.", |
| ... | @@ -34929,10 +38766,13 @@ export const JSONRPCRequest = Schema.Struct({ | ... | @@ -34929,10 +38766,13 @@ export const JSONRPCRequest = Schema.Struct({ |
| 34929 | ), | 38766 | ), |
| 34930 | }).annotate({ title: "JSONRPCRequest", description: "A request that expects a response." }); | 38767 | }).annotate({ title: "JSONRPCRequest", description: "A request that expects a response." }); |
| 34931 | | 38768 | |
| 34932 | export type JSONRPCResponse = { readonly id: JSONRPCResponse__RequestId; readonly result: unknown }; | 38769 | export type JSONRPCResponse = { |
| | 38770 | readonly id: JSONRPCResponse__RequestId; |
| | 38771 | readonly result: Schema.Json; |
| | 38772 | }; |
| 34933 | export const JSONRPCResponse = Schema.Struct({ | 38773 | export const JSONRPCResponse = Schema.Struct({ |
| 34934 | id: JSONRPCResponse__RequestId, | 38774 | id: JSONRPCResponse__RequestId, |
| 34935 | result: Schema.Unknown, | 38775 | result: Schema.Json.annotate({ expected: "JSON value" }), |
| 34936 | }).annotate({ | 38776 | }).annotate({ |
| 34937 | title: "JSONRPCResponse", | 38777 | title: "JSONRPCResponse", |
| 34938 | description: "A successful (non-error) response to a request.", | 38778 | description: "A successful (non-error) response to a request.", |
| ... | @@ -34940,40 +38780,36 @@ export const JSONRPCResponse = Schema.Struct({ | ... | @@ -34940,40 +38780,36 @@ export const JSONRPCResponse = Schema.Struct({ |
| 34940 | | 38780 | |
| 34941 | export type McpServerElicitationRequestParams = | 38781 | export type McpServerElicitationRequestParams = |
| 34942 | | { | 38782 | | { |
| 34943 | readonly _meta?: unknown; | 38783 | readonly serverName: string; |
| | 38784 | readonly threadId: string; |
| | 38785 | readonly turnId?: string | null; |
| | 38786 | readonly _meta?: Schema.Json; |
| 34944 | readonly message: string; | 38787 | readonly message: string; |
| 34945 | readonly mode: "form"; | 38788 | readonly mode: "form"; |
| 34946 | readonly requestedSchema: McpServerElicitationRequestParams__McpElicitationSchema; | 38789 | readonly requestedSchema: McpServerElicitationRequestParams__McpElicitationSchema; |
| | 38790 | } |
| | 38791 | | { |
| 34947 | readonly serverName: string; | 38792 | readonly serverName: string; |
| 34948 | readonly threadId: string; | 38793 | readonly threadId: string; |
| 34949 | readonly turnId?: string | null; | 38794 | readonly turnId?: string | null; |
| 34950 | } | 38795 | readonly _meta?: Schema.Json; |
| 34951 | | { | | |
| 34952 | readonly _meta?: unknown; | | |
| 34953 | readonly message: string; | 38796 | readonly message: string; |
| 34954 | readonly mode: "openai/form"; | 38797 | readonly mode: "openai/form"; |
| 34955 | readonly requestedSchema: unknown; | 38798 | readonly requestedSchema: Schema.Json; |
| | 38799 | } |
| | 38800 | | { |
| 34956 | readonly serverName: string; | 38801 | readonly serverName: string; |
| 34957 | readonly threadId: string; | 38802 | readonly threadId: string; |
| 34958 | readonly turnId?: string | null; | 38803 | readonly turnId?: string | null; |
| 34959 | } | 38804 | readonly _meta?: Schema.Json; |
| 34960 | | { | | |
| 34961 | readonly _meta?: unknown; | | |
| 34962 | readonly elicitationId: string; | 38805 | readonly elicitationId: string; |
| 34963 | readonly message: string; | 38806 | readonly message: string; |
| 34964 | readonly mode: "url"; | 38807 | readonly mode: "url"; |
| 34965 | readonly url: string; | 38808 | readonly url: string; |
| 34966 | readonly serverName: string; | | |
| 34967 | readonly threadId: string; | | |
| 34968 | readonly turnId?: string | null; | | |
| 34969 | }; | 38809 | }; |
| 34970 | export const McpServerElicitationRequestParams = Schema.Union( | 38810 | export const McpServerElicitationRequestParams = Schema.Union( |
| 34971 | [ | 38811 | [ |
| 34972 | Schema.Struct({ | 38812 | Schema.Struct({ |
| 34973 | _meta: Schema.optionalKey(Schema.Unknown), | | |
| 34974 | message: Schema.String, | | |
| 34975 | mode: Schema.Literal("form"), | | |
| 34976 | requestedSchema: McpServerElicitationRequestParams__McpElicitationSchema, | | |
| 34977 | serverName: Schema.String, | 38813 | serverName: Schema.String, |
| 34978 | threadId: Schema.String, | 38814 | threadId: Schema.String, |
| 34979 | turnId: Schema.optionalKey( | 38815 | turnId: Schema.optionalKey( |
| ... | @@ -34985,12 +38821,12 @@ export const McpServerElicitationRequestParams = Schema.Union( | ... | @@ -34985,12 +38821,12 @@ export const McpServerElicitationRequestParams = Schema.Union( |
| 34985 | Schema.Null, | 38821 | Schema.Null, |
| 34986 | ]), | 38822 | ]), |
| 34987 | ), | 38823 | ), |
| 34988 | }).annotate({ title: "McpServerElicitationRequestParams" }), | 38824 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 34989 | Schema.Struct({ | | |
| 34990 | _meta: Schema.optionalKey(Schema.Unknown), | | |
| 34991 | message: Schema.String, | 38825 | message: Schema.String, |
| 34992 | mode: Schema.Literal("openai/form"), | 38826 | mode: Schema.Literal("form"), |
| 34993 | requestedSchema: Schema.Unknown, | 38827 | requestedSchema: McpServerElicitationRequestParams__McpElicitationSchema, |
| | 38828 | }), |
| | 38829 | Schema.Struct({ |
| 34994 | serverName: Schema.String, | 38830 | serverName: Schema.String, |
| 34995 | threadId: Schema.String, | 38831 | threadId: Schema.String, |
| 34996 | turnId: Schema.optionalKey( | 38832 | turnId: Schema.optionalKey( |
| ... | @@ -35002,13 +38838,12 @@ export const McpServerElicitationRequestParams = Schema.Union( | ... | @@ -35002,13 +38838,12 @@ export const McpServerElicitationRequestParams = Schema.Union( |
| 35002 | Schema.Null, | 38838 | Schema.Null, |
| 35003 | ]), | 38839 | ]), |
| 35004 | ), | 38840 | ), |
| 35005 | }).annotate({ title: "McpServerElicitationRequestParams" }), | 38841 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 35006 | Schema.Struct({ | | |
| 35007 | _meta: Schema.optionalKey(Schema.Unknown), | | |
| 35008 | elicitationId: Schema.String, | | |
| 35009 | message: Schema.String, | 38842 | message: Schema.String, |
| 35010 | mode: Schema.Literal("url"), | 38843 | mode: Schema.Literal("openai/form"), |
| 35011 | url: Schema.String, | 38844 | requestedSchema: Schema.Json.annotate({ expected: "JSON value" }), |
| | 38845 | }), |
| | 38846 | Schema.Struct({ |
| 35012 | serverName: Schema.String, | 38847 | serverName: Schema.String, |
| 35013 | threadId: Schema.String, | 38848 | threadId: Schema.String, |
| 35014 | turnId: Schema.optionalKey( | 38849 | turnId: Schema.optionalKey( |
| ... | @@ -35020,25 +38855,32 @@ export const McpServerElicitationRequestParams = Schema.Union( | ... | @@ -35020,25 +38855,32 @@ export const McpServerElicitationRequestParams = Schema.Union( |
| 35020 | Schema.Null, | 38855 | Schema.Null, |
| 35021 | ]), | 38856 | ]), |
| 35022 | ), | 38857 | ), |
| 35023 | }).annotate({ title: "McpServerElicitationRequestParams" }), | 38858 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 38859 | elicitationId: Schema.String, |
| | 38860 | message: Schema.String, |
| | 38861 | mode: Schema.Literal("url"), |
| | 38862 | url: Schema.String, |
| | 38863 | }), |
| 35024 | ], | 38864 | ], |
| 35025 | { mode: "oneOf" }, | 38865 | { mode: "oneOf" }, |
| 35026 | ); | 38866 | ).annotate({ title: "McpServerElicitationRequestParams" }); |
| 35027 | | 38867 | |
| 35028 | export type McpServerElicitationRequestResponse = { | 38868 | export type McpServerElicitationRequestResponse = { |
| 35029 | readonly _meta?: unknown; | 38869 | readonly _meta?: Schema.Json; |
| 35030 | readonly action: McpServerElicitationRequestResponse__McpServerElicitationAction; | 38870 | readonly action: McpServerElicitationRequestResponse__McpServerElicitationAction; |
| 35031 | readonly content?: unknown; | 38871 | readonly content?: Schema.Json; |
| 35032 | }; | 38872 | }; |
| 35033 | export const McpServerElicitationRequestResponse = Schema.Struct({ | 38873 | export const McpServerElicitationRequestResponse = Schema.Struct({ |
| 35034 | _meta: Schema.optionalKey( | 38874 | _meta: Schema.optionalKey( |
| 35035 | Schema.Unknown.annotate({ | 38875 | Schema.Json.annotate({ |
| | 38876 | expected: "JSON value", |
| 35036 | description: "Optional client metadata for form-mode action handling.", | 38877 | description: "Optional client metadata for form-mode action handling.", |
| 35037 | }), | 38878 | }), |
| 35038 | ), | 38879 | ), |
| 35039 | action: McpServerElicitationRequestResponse__McpServerElicitationAction, | 38880 | action: McpServerElicitationRequestResponse__McpServerElicitationAction, |
| 35040 | content: Schema.optionalKey( | 38881 | content: Schema.optionalKey( |
| 35041 | Schema.Unknown.annotate({ | 38882 | Schema.Json.annotate({ |
| | 38883 | expected: "JSON value", |
| 35042 | description: | 38884 | description: |
| 35043 | "Structured user input for accepted elicitations, mirroring RMCP `CreateElicitationResult`.\n\nThis is nullable because decline/cancel responses have no content.", | 38885 | "Structured user input for accepted elicitations, mirroring RMCP `CreateElicitationResult`.\n\nThis is nullable because decline/cancel responses have no content.", |
| 35044 | }), | 38886 | }), |
| ... | @@ -35064,19 +38906,24 @@ export const PermissionsRequestApprovalParams = Schema.Struct({ | ... | @@ -35064,19 +38906,24 @@ export const PermissionsRequestApprovalParams = Schema.Struct({ |
| 35064 | startedAtMs: Schema.Number.annotate({ | 38906 | startedAtMs: Schema.Number.annotate({ |
| 35065 | description: "Unix timestamp (in milliseconds) when this approval request started.", | 38907 | description: "Unix timestamp (in milliseconds) when this approval request started.", |
| 35066 | format: "int64", | 38908 | format: "int64", |
| 35067 | }).check(Schema.isInt()), | 38909 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35068 | threadId: Schema.String, | 38910 | threadId: Schema.String, |
| 35069 | turnId: Schema.String, | 38911 | turnId: Schema.String, |
| 35070 | }).annotate({ title: "PermissionsRequestApprovalParams" }); | 38912 | }).annotate({ title: "PermissionsRequestApprovalParams" }); |
| 35071 | | 38913 | |
| 35072 | export type PermissionsRequestApprovalResponse = { | 38914 | export type PermissionsRequestApprovalResponse = { |
| 35073 | readonly permissions: PermissionsRequestApprovalResponse__GrantedPermissionProfile; | 38915 | readonly permissions: PermissionsRequestApprovalResponse__GrantedPermissionProfile; |
| 35074 | readonly scope?: "turn" | "session"; | 38916 | readonly scope?: PermissionsRequestApprovalResponse__PermissionGrantScope; |
| 35075 | readonly strictAutoReview?: boolean | null; | 38917 | readonly strictAutoReview?: boolean | null; |
| 35076 | }; | 38918 | }; |
| 35077 | export const PermissionsRequestApprovalResponse = Schema.Struct({ | 38919 | export const PermissionsRequestApprovalResponse = Schema.Struct({ |
| 35078 | permissions: PermissionsRequestApprovalResponse__GrantedPermissionProfile, | 38920 | permissions: PermissionsRequestApprovalResponse__GrantedPermissionProfile, |
| 35079 | scope: Schema.optionalKey(Schema.Literals(["turn", "session"]).annotate({ default: "turn" })), | 38921 | scope: Schema.optionalKey( |
| | 38922 | Schema.suspend( |
| | 38923 | (): Schema.Codec<PermissionsRequestApprovalResponse__PermissionGrantScope> => |
| | 38924 | PermissionsRequestApprovalResponse__PermissionGrantScope, |
| | 38925 | ).annotate({ default: "turn" }), |
| | 38926 | ), |
| 35080 | strictAutoReview: Schema.optionalKey( | 38927 | strictAutoReview: Schema.optionalKey( |
| 35081 | Schema.Union([ | 38928 | Schema.Union([ |
| 35082 | Schema.Boolean.annotate({ | 38929 | Schema.Boolean.annotate({ |
| ... | @@ -35088,1571 +38935,1296 @@ export const PermissionsRequestApprovalResponse = Schema.Struct({ | ... | @@ -35088,1571 +38935,1296 @@ export const PermissionsRequestApprovalResponse = Schema.Struct({ |
| 35088 | ), | 38935 | ), |
| 35089 | }).annotate({ title: "PermissionsRequestApprovalResponse" }); | 38936 | }).annotate({ title: "PermissionsRequestApprovalResponse" }); |
| 35090 | | 38937 | |
| 35091 | export type PermissionsRequestApprovalResponse__PermissionGrantScope = "turn" | "session"; | | |
| 35092 | export const PermissionsRequestApprovalResponse__PermissionGrantScope = Schema.Literals([ | | |
| 35093 | "turn", | | |
| 35094 | "session", | | |
| 35095 | ]); | | |
| 35096 | | | |
| 35097 | export type RequestId = string | number; | 38938 | export type RequestId = string | number; |
| 35098 | export const RequestId = Schema.Union([ | 38939 | export const RequestId = Schema.Union([ |
| 35099 | Schema.String, | 38940 | Schema.String, |
| 35100 | Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 38941 | Schema.Number.annotate({ format: "int64" }).check( |
| | 38942 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 38943 | ), |
| 35101 | ]).annotate({ title: "RequestId" }); | 38944 | ]).annotate({ title: "RequestId" }); |
| 35102 | | 38945 | |
| 35103 | export type ServerNotification = | 38946 | export type ServerNotification = |
| 35104 | | { | 38947 | | { |
| | 38948 | readonly emittedAtMs?: number; |
| 35105 | readonly method: "error"; | 38949 | readonly method: "error"; |
| 35106 | readonly params: ServerNotification__ErrorNotification; | 38950 | readonly params: ServerNotification__ErrorNotification; |
| 35107 | readonly emittedAtMs?: number; | | |
| 35108 | } | 38951 | } |
| 35109 | | { | 38952 | | { |
| | 38953 | readonly emittedAtMs?: number; |
| 35110 | readonly method: "thread/started"; | 38954 | readonly method: "thread/started"; |
| 35111 | readonly params: ServerNotification__ThreadStartedNotification; | 38955 | readonly params: ServerNotification__ThreadStartedNotification; |
| 35112 | readonly emittedAtMs?: number; | | |
| 35113 | } | 38956 | } |
| 35114 | | { | 38957 | | { |
| | 38958 | readonly emittedAtMs?: number; |
| 35115 | readonly method: "thread/status/changed"; | 38959 | readonly method: "thread/status/changed"; |
| 35116 | readonly params: ServerNotification__ThreadStatusChangedNotification; | 38960 | readonly params: ServerNotification__ThreadStatusChangedNotification; |
| 35117 | readonly emittedAtMs?: number; | | |
| 35118 | } | 38961 | } |
| 35119 | | { | 38962 | | { |
| | 38963 | readonly emittedAtMs?: number; |
| 35120 | readonly method: "thread/archived"; | 38964 | readonly method: "thread/archived"; |
| 35121 | readonly params: ServerNotification__ThreadArchivedNotification; | 38965 | readonly params: ServerNotification__ThreadArchivedNotification; |
| 35122 | readonly emittedAtMs?: number; | | |
| 35123 | } | 38966 | } |
| 35124 | | { | 38967 | | { |
| | 38968 | readonly emittedAtMs?: number; |
| 35125 | readonly method: "thread/deleted"; | 38969 | readonly method: "thread/deleted"; |
| 35126 | readonly params: ServerNotification__ThreadDeletedNotification; | 38970 | readonly params: ServerNotification__ThreadDeletedNotification; |
| 35127 | readonly emittedAtMs?: number; | | |
| 35128 | } | 38971 | } |
| 35129 | | { | 38972 | | { |
| | 38973 | readonly emittedAtMs?: number; |
| 35130 | readonly method: "thread/unarchived"; | 38974 | readonly method: "thread/unarchived"; |
| 35131 | readonly params: ServerNotification__ThreadUnarchivedNotification; | 38975 | readonly params: ServerNotification__ThreadUnarchivedNotification; |
| 35132 | readonly emittedAtMs?: number; | | |
| 35133 | } | 38976 | } |
| 35134 | | { | 38977 | | { |
| | 38978 | readonly emittedAtMs?: number; |
| 35135 | readonly method: "thread/closed"; | 38979 | readonly method: "thread/closed"; |
| 35136 | readonly params: ServerNotification__ThreadClosedNotification; | 38980 | readonly params: ServerNotification__ThreadClosedNotification; |
| 35137 | readonly emittedAtMs?: number; | | |
| 35138 | } | 38981 | } |
| 35139 | | { | 38982 | | { |
| | 38983 | readonly emittedAtMs?: number; |
| 35140 | readonly method: "skills/changed"; | 38984 | readonly method: "skills/changed"; |
| 35141 | readonly params: ServerNotification__SkillsChangedNotification; | 38985 | readonly params: ServerNotification__SkillsChangedNotification; |
| 35142 | readonly emittedAtMs?: number; | | |
| 35143 | } | 38986 | } |
| 35144 | | { | 38987 | | { |
| | 38988 | readonly emittedAtMs?: number; |
| 35145 | readonly method: "thread/name/updated"; | 38989 | readonly method: "thread/name/updated"; |
| 35146 | readonly params: ServerNotification__ThreadNameUpdatedNotification; | 38990 | readonly params: ServerNotification__ThreadNameUpdatedNotification; |
| 35147 | readonly emittedAtMs?: number; | | |
| 35148 | } | 38991 | } |
| 35149 | | { | 38992 | | { |
| | 38993 | readonly emittedAtMs?: number; |
| 35150 | readonly method: "thread/goal/updated"; | 38994 | readonly method: "thread/goal/updated"; |
| 35151 | readonly params: ServerNotification__ThreadGoalUpdatedNotification; | 38995 | readonly params: ServerNotification__ThreadGoalUpdatedNotification; |
| 35152 | readonly emittedAtMs?: number; | | |
| 35153 | } | 38996 | } |
| 35154 | | { | 38997 | | { |
| | 38998 | readonly emittedAtMs?: number; |
| 35155 | readonly method: "thread/goal/cleared"; | 38999 | readonly method: "thread/goal/cleared"; |
| 35156 | readonly params: ServerNotification__ThreadGoalClearedNotification; | 39000 | readonly params: ServerNotification__ThreadGoalClearedNotification; |
| 35157 | readonly emittedAtMs?: number; | | |
| 35158 | } | 39001 | } |
| 35159 | | { | 39002 | | { |
| | 39003 | readonly emittedAtMs?: number; |
| 35160 | readonly method: "thread/environment/connected"; | 39004 | readonly method: "thread/environment/connected"; |
| 35161 | readonly params: ServerNotification__EnvironmentConnectionNotification; | 39005 | readonly params: ServerNotification__EnvironmentConnectionNotification; |
| 35162 | readonly emittedAtMs?: number; | | |
| 35163 | } | 39006 | } |
| 35164 | | { | 39007 | | { |
| | 39008 | readonly emittedAtMs?: number; |
| 35165 | readonly method: "thread/environment/disconnected"; | 39009 | readonly method: "thread/environment/disconnected"; |
| 35166 | readonly params: ServerNotification__EnvironmentConnectionNotification; | 39010 | readonly params: ServerNotification__EnvironmentConnectionNotification; |
| 35167 | readonly emittedAtMs?: number; | | |
| 35168 | } | 39011 | } |
| 35169 | | { | 39012 | | { |
| | 39013 | readonly emittedAtMs?: number; |
| 35170 | readonly method: "thread/settings/updated"; | 39014 | readonly method: "thread/settings/updated"; |
| 35171 | readonly params: ServerNotification__ThreadSettingsUpdatedNotification; | 39015 | readonly params: ServerNotification__ThreadSettingsUpdatedNotification; |
| 35172 | readonly emittedAtMs?: number; | | |
| 35173 | } | 39016 | } |
| 35174 | | { | 39017 | | { |
| | 39018 | readonly emittedAtMs?: number; |
| 35175 | readonly method: "thread/tokenUsage/updated"; | 39019 | readonly method: "thread/tokenUsage/updated"; |
| 35176 | readonly params: ServerNotification__ThreadTokenUsageUpdatedNotification; | 39020 | readonly params: ServerNotification__ThreadTokenUsageUpdatedNotification; |
| 35177 | readonly emittedAtMs?: number; | | |
| 35178 | } | 39021 | } |
| 35179 | | { | 39022 | | { |
| | 39023 | readonly emittedAtMs?: number; |
| 35180 | readonly method: "turn/started"; | 39024 | readonly method: "turn/started"; |
| 35181 | readonly params: ServerNotification__TurnStartedNotification; | 39025 | readonly params: ServerNotification__TurnStartedNotification; |
| 35182 | readonly emittedAtMs?: number; | | |
| 35183 | } | 39026 | } |
| 35184 | | { | 39027 | | { |
| | 39028 | readonly emittedAtMs?: number; |
| 35185 | readonly method: "hook/started"; | 39029 | readonly method: "hook/started"; |
| 35186 | readonly params: ServerNotification__HookStartedNotification; | 39030 | readonly params: ServerNotification__HookStartedNotification; |
| 35187 | readonly emittedAtMs?: number; | | |
| 35188 | } | 39031 | } |
| 35189 | | { | 39032 | | { |
| | 39033 | readonly emittedAtMs?: number; |
| 35190 | readonly method: "turn/completed"; | 39034 | readonly method: "turn/completed"; |
| 35191 | readonly params: ServerNotification__TurnCompletedNotification; | 39035 | readonly params: ServerNotification__TurnCompletedNotification; |
| 35192 | readonly emittedAtMs?: number; | | |
| 35193 | } | 39036 | } |
| 35194 | | { | 39037 | | { |
| | 39038 | readonly emittedAtMs?: number; |
| 35195 | readonly method: "hook/completed"; | 39039 | readonly method: "hook/completed"; |
| 35196 | readonly params: ServerNotification__HookCompletedNotification; | 39040 | readonly params: ServerNotification__HookCompletedNotification; |
| 35197 | readonly emittedAtMs?: number; | | |
| 35198 | } | 39041 | } |
| 35199 | | { | 39042 | | { |
| | 39043 | readonly emittedAtMs?: number; |
| 35200 | readonly method: "turn/diff/updated"; | 39044 | readonly method: "turn/diff/updated"; |
| 35201 | readonly params: ServerNotification__TurnDiffUpdatedNotification; | 39045 | readonly params: ServerNotification__TurnDiffUpdatedNotification; |
| 35202 | readonly emittedAtMs?: number; | | |
| 35203 | } | 39046 | } |
| 35204 | | { | 39047 | | { |
| | 39048 | readonly emittedAtMs?: number; |
| 35205 | readonly method: "turn/plan/updated"; | 39049 | readonly method: "turn/plan/updated"; |
| 35206 | readonly params: ServerNotification__TurnPlanUpdatedNotification; | 39050 | readonly params: ServerNotification__TurnPlanUpdatedNotification; |
| 35207 | readonly emittedAtMs?: number; | | |
| 35208 | } | 39051 | } |
| 35209 | | { | 39052 | | { |
| | 39053 | readonly emittedAtMs?: number; |
| 35210 | readonly method: "item/started"; | 39054 | readonly method: "item/started"; |
| 35211 | readonly params: ServerNotification__ItemStartedNotification; | 39055 | readonly params: ServerNotification__ItemStartedNotification; |
| 35212 | readonly emittedAtMs?: number; | | |
| 35213 | } | 39056 | } |
| 35214 | | { | 39057 | | { |
| | 39058 | readonly emittedAtMs?: number; |
| 35215 | readonly method: "item/autoApprovalReview/started"; | 39059 | readonly method: "item/autoApprovalReview/started"; |
| 35216 | readonly params: ServerNotification__ItemGuardianApprovalReviewStartedNotification; | 39060 | readonly params: ServerNotification__ItemGuardianApprovalReviewStartedNotification; |
| 35217 | readonly emittedAtMs?: number; | | |
| 35218 | } | 39061 | } |
| 35219 | | { | 39062 | | { |
| | 39063 | readonly emittedAtMs?: number; |
| 35220 | readonly method: "item/autoApprovalReview/completed"; | 39064 | readonly method: "item/autoApprovalReview/completed"; |
| 35221 | readonly params: ServerNotification__ItemGuardianApprovalReviewCompletedNotification; | 39065 | readonly params: ServerNotification__ItemGuardianApprovalReviewCompletedNotification; |
| 35222 | readonly emittedAtMs?: number; | | |
| 35223 | } | 39066 | } |
| 35224 | | { | 39067 | | { |
| | 39068 | readonly emittedAtMs?: number; |
| 35225 | readonly method: "item/completed"; | 39069 | readonly method: "item/completed"; |
| 35226 | readonly params: ServerNotification__ItemCompletedNotification; | 39070 | readonly params: ServerNotification__ItemCompletedNotification; |
| 35227 | readonly emittedAtMs?: number; | | |
| 35228 | } | 39071 | } |
| 35229 | | { | 39072 | | { |
| | 39073 | readonly emittedAtMs?: number; |
| 35230 | readonly method: "item/agentMessage/delta"; | 39074 | readonly method: "item/agentMessage/delta"; |
| 35231 | readonly params: ServerNotification__AgentMessageDeltaNotification; | 39075 | readonly params: ServerNotification__AgentMessageDeltaNotification; |
| 35232 | readonly emittedAtMs?: number; | | |
| 35233 | } | 39076 | } |
| 35234 | | { | 39077 | | { |
| | 39078 | readonly emittedAtMs?: number; |
| 35235 | readonly method: "item/plan/delta"; | 39079 | readonly method: "item/plan/delta"; |
| 35236 | readonly params: ServerNotification__PlanDeltaNotification; | 39080 | readonly params: ServerNotification__PlanDeltaNotification; |
| 35237 | readonly emittedAtMs?: number; | | |
| 35238 | } | 39081 | } |
| 35239 | | { | 39082 | | { |
| | 39083 | readonly emittedAtMs?: number; |
| 35240 | readonly method: "command/exec/outputDelta"; | 39084 | readonly method: "command/exec/outputDelta"; |
| 35241 | readonly params: ServerNotification__CommandExecOutputDeltaNotification; | 39085 | readonly params: ServerNotification__CommandExecOutputDeltaNotification; |
| 35242 | readonly emittedAtMs?: number; | | |
| 35243 | } | 39086 | } |
| 35244 | | { | 39087 | | { |
| | 39088 | readonly emittedAtMs?: number; |
| 35245 | readonly method: "process/outputDelta"; | 39089 | readonly method: "process/outputDelta"; |
| 35246 | readonly params: ServerNotification__ProcessOutputDeltaNotification; | 39090 | readonly params: ServerNotification__ProcessOutputDeltaNotification; |
| 35247 | readonly emittedAtMs?: number; | | |
| 35248 | } | 39091 | } |
| 35249 | | { | 39092 | | { |
| | 39093 | readonly emittedAtMs?: number; |
| 35250 | readonly method: "process/exited"; | 39094 | readonly method: "process/exited"; |
| 35251 | readonly params: ServerNotification__ProcessExitedNotification; | 39095 | readonly params: ServerNotification__ProcessExitedNotification; |
| 35252 | readonly emittedAtMs?: number; | | |
| 35253 | } | 39096 | } |
| 35254 | | { | 39097 | | { |
| | 39098 | readonly emittedAtMs?: number; |
| 35255 | readonly method: "item/commandExecution/outputDelta"; | 39099 | readonly method: "item/commandExecution/outputDelta"; |
| 35256 | readonly params: ServerNotification__CommandExecutionOutputDeltaNotification; | 39100 | readonly params: ServerNotification__CommandExecutionOutputDeltaNotification; |
| 35257 | readonly emittedAtMs?: number; | | |
| 35258 | } | 39101 | } |
| 35259 | | { | 39102 | | { |
| | 39103 | readonly emittedAtMs?: number; |
| 35260 | readonly method: "item/commandExecution/terminalInteraction"; | 39104 | readonly method: "item/commandExecution/terminalInteraction"; |
| 35261 | readonly params: ServerNotification__TerminalInteractionNotification; | 39105 | readonly params: ServerNotification__TerminalInteractionNotification; |
| 35262 | readonly emittedAtMs?: number; | | |
| 35263 | } | 39106 | } |
| 35264 | | { | 39107 | | { |
| | 39108 | readonly emittedAtMs?: number; |
| 35265 | readonly method: "item/fileChange/outputDelta"; | 39109 | readonly method: "item/fileChange/outputDelta"; |
| 35266 | readonly params: ServerNotification__FileChangeOutputDeltaNotification; | 39110 | readonly params: ServerNotification__FileChangeOutputDeltaNotification; |
| 35267 | readonly emittedAtMs?: number; | | |
| 35268 | } | 39111 | } |
| 35269 | | { | 39112 | | { |
| | 39113 | readonly emittedAtMs?: number; |
| 35270 | readonly method: "item/fileChange/patchUpdated"; | 39114 | readonly method: "item/fileChange/patchUpdated"; |
| 35271 | readonly params: ServerNotification__FileChangePatchUpdatedNotification; | 39115 | readonly params: ServerNotification__FileChangePatchUpdatedNotification; |
| 35272 | readonly emittedAtMs?: number; | | |
| 35273 | } | 39116 | } |
| 35274 | | { | 39117 | | { |
| | 39118 | readonly emittedAtMs?: number; |
| 35275 | readonly method: "serverRequest/resolved"; | 39119 | readonly method: "serverRequest/resolved"; |
| 35276 | readonly params: ServerNotification__ServerRequestResolvedNotification; | 39120 | readonly params: ServerNotification__ServerRequestResolvedNotification; |
| 35277 | readonly emittedAtMs?: number; | | |
| 35278 | } | 39121 | } |
| 35279 | | { | 39122 | | { |
| | 39123 | readonly emittedAtMs?: number; |
| 35280 | readonly method: "item/mcpToolCall/progress"; | 39124 | readonly method: "item/mcpToolCall/progress"; |
| 35281 | readonly params: ServerNotification__McpToolCallProgressNotification; | 39125 | readonly params: ServerNotification__McpToolCallProgressNotification; |
| 35282 | readonly emittedAtMs?: number; | | |
| 35283 | } | 39126 | } |
| 35284 | | { | 39127 | | { |
| | 39128 | readonly emittedAtMs?: number; |
| 35285 | readonly method: "mcpServer/oauthLogin/completed"; | 39129 | readonly method: "mcpServer/oauthLogin/completed"; |
| 35286 | readonly params: ServerNotification__McpServerOauthLoginCompletedNotification; | 39130 | readonly params: ServerNotification__McpServerOauthLoginCompletedNotification; |
| 35287 | readonly emittedAtMs?: number; | | |
| 35288 | } | 39131 | } |
| 35289 | | { | 39132 | | { |
| | 39133 | readonly emittedAtMs?: number; |
| 35290 | readonly method: "mcpServer/startupStatus/updated"; | 39134 | readonly method: "mcpServer/startupStatus/updated"; |
| 35291 | readonly params: ServerNotification__McpServerStatusUpdatedNotification; | 39135 | readonly params: ServerNotification__McpServerStatusUpdatedNotification; |
| 35292 | readonly emittedAtMs?: number; | | |
| 35293 | } | 39136 | } |
| 35294 | | { | 39137 | | { |
| | 39138 | readonly emittedAtMs?: number; |
| 35295 | readonly method: "account/updated"; | 39139 | readonly method: "account/updated"; |
| 35296 | readonly params: ServerNotification__AccountUpdatedNotification; | 39140 | readonly params: ServerNotification__AccountUpdatedNotification; |
| 35297 | readonly emittedAtMs?: number; | | |
| 35298 | } | 39141 | } |
| 35299 | | { | 39142 | | { |
| | 39143 | readonly emittedAtMs?: number; |
| 35300 | readonly method: "account/rateLimits/updated"; | 39144 | readonly method: "account/rateLimits/updated"; |
| 35301 | readonly params: ServerNotification__AccountRateLimitsUpdatedNotification; | 39145 | readonly params: ServerNotification__AccountRateLimitsUpdatedNotification; |
| 35302 | readonly emittedAtMs?: number; | | |
| 35303 | } | 39146 | } |
| 35304 | | { | 39147 | | { |
| | 39148 | readonly emittedAtMs?: number; |
| 35305 | readonly method: "app/list/updated"; | 39149 | readonly method: "app/list/updated"; |
| 35306 | readonly params: ServerNotification__AppListUpdatedNotification; | 39150 | readonly params: ServerNotification__AppListUpdatedNotification; |
| 35307 | readonly emittedAtMs?: number; | | |
| 35308 | } | 39151 | } |
| 35309 | | { | 39152 | | { |
| | 39153 | readonly emittedAtMs?: number; |
| 35310 | readonly method: "remoteControl/status/changed"; | 39154 | readonly method: "remoteControl/status/changed"; |
| 35311 | readonly params: ServerNotification__RemoteControlStatusChangedNotification; | 39155 | readonly params: ServerNotification__RemoteControlStatusChangedNotification; |
| 35312 | readonly emittedAtMs?: number; | | |
| 35313 | } | 39156 | } |
| 35314 | | { | 39157 | | { |
| | 39158 | readonly emittedAtMs?: number; |
| 35315 | readonly method: "externalAgentConfig/import/progress"; | 39159 | readonly method: "externalAgentConfig/import/progress"; |
| 35316 | readonly params: ServerNotification__ExternalAgentConfigImportProgressNotification; | 39160 | readonly params: ServerNotification__ExternalAgentConfigImportProgressNotification; |
| 35317 | readonly emittedAtMs?: number; | | |
| 35318 | } | 39161 | } |
| 35319 | | { | 39162 | | { |
| | 39163 | readonly emittedAtMs?: number; |
| 35320 | readonly method: "externalAgentConfig/import/completed"; | 39164 | readonly method: "externalAgentConfig/import/completed"; |
| 35321 | readonly params: ServerNotification__ExternalAgentConfigImportCompletedNotification; | 39165 | readonly params: ServerNotification__ExternalAgentConfigImportCompletedNotification; |
| 35322 | readonly emittedAtMs?: number; | | |
| 35323 | } | 39166 | } |
| 35324 | | { | 39167 | | { |
| | 39168 | readonly emittedAtMs?: number; |
| 35325 | readonly method: "fs/changed"; | 39169 | readonly method: "fs/changed"; |
| 35326 | readonly params: ServerNotification__FsChangedNotification; | 39170 | readonly params: ServerNotification__FsChangedNotification; |
| 35327 | readonly emittedAtMs?: number; | | |
| 35328 | } | 39171 | } |
| 35329 | | { | 39172 | | { |
| | 39173 | readonly emittedAtMs?: number; |
| 35330 | readonly method: "item/reasoning/summaryTextDelta"; | 39174 | readonly method: "item/reasoning/summaryTextDelta"; |
| 35331 | readonly params: ServerNotification__ReasoningSummaryTextDeltaNotification; | 39175 | readonly params: ServerNotification__ReasoningSummaryTextDeltaNotification; |
| 35332 | readonly emittedAtMs?: number; | | |
| 35333 | } | 39176 | } |
| 35334 | | { | 39177 | | { |
| | 39178 | readonly emittedAtMs?: number; |
| 35335 | readonly method: "item/reasoning/summaryPartAdded"; | 39179 | readonly method: "item/reasoning/summaryPartAdded"; |
| 35336 | readonly params: ServerNotification__ReasoningSummaryPartAddedNotification; | 39180 | readonly params: ServerNotification__ReasoningSummaryPartAddedNotification; |
| 35337 | readonly emittedAtMs?: number; | | |
| 35338 | } | 39181 | } |
| 35339 | | { | 39182 | | { |
| | 39183 | readonly emittedAtMs?: number; |
| 35340 | readonly method: "item/reasoning/textDelta"; | 39184 | readonly method: "item/reasoning/textDelta"; |
| 35341 | readonly params: ServerNotification__ReasoningTextDeltaNotification; | 39185 | readonly params: ServerNotification__ReasoningTextDeltaNotification; |
| 35342 | readonly emittedAtMs?: number; | | |
| 35343 | } | 39186 | } |
| 35344 | | { | 39187 | | { |
| | 39188 | readonly emittedAtMs?: number; |
| 35345 | readonly method: "thread/compacted"; | 39189 | readonly method: "thread/compacted"; |
| 35346 | readonly params: ServerNotification__ContextCompactedNotification; | 39190 | readonly params: ServerNotification__ContextCompactedNotification; |
| 35347 | readonly emittedAtMs?: number; | | |
| 35348 | } | 39191 | } |
| 35349 | | { | 39192 | | { |
| | 39193 | readonly emittedAtMs?: number; |
| 35350 | readonly method: "model/rerouted"; | 39194 | readonly method: "model/rerouted"; |
| 35351 | readonly params: ServerNotification__ModelReroutedNotification; | 39195 | readonly params: ServerNotification__ModelReroutedNotification; |
| 35352 | readonly emittedAtMs?: number; | | |
| 35353 | } | 39196 | } |
| 35354 | | { | 39197 | | { |
| | 39198 | readonly emittedAtMs?: number; |
| 35355 | readonly method: "model/verification"; | 39199 | readonly method: "model/verification"; |
| 35356 | readonly params: ServerNotification__ModelVerificationNotification; | 39200 | readonly params: ServerNotification__ModelVerificationNotification; |
| 35357 | readonly emittedAtMs?: number; | | |
| 35358 | } | 39201 | } |
| 35359 | | { | 39202 | | { |
| | 39203 | readonly emittedAtMs?: number; |
| 35360 | readonly method: "turn/moderationMetadata"; | 39204 | readonly method: "turn/moderationMetadata"; |
| 35361 | readonly params: ServerNotification__TurnModerationMetadataNotification; | 39205 | readonly params: ServerNotification__TurnModerationMetadataNotification; |
| 35362 | readonly emittedAtMs?: number; | | |
| 35363 | } | 39206 | } |
| 35364 | | { | 39207 | | { |
| | 39208 | readonly emittedAtMs?: number; |
| 35365 | readonly method: "model/safetyBuffering/updated"; | 39209 | readonly method: "model/safetyBuffering/updated"; |
| 35366 | readonly params: ServerNotification__ModelSafetyBufferingUpdatedNotification; | 39210 | readonly params: ServerNotification__ModelSafetyBufferingUpdatedNotification; |
| 35367 | readonly emittedAtMs?: number; | | |
| 35368 | } | 39211 | } |
| 35369 | | { | 39212 | | { |
| | 39213 | readonly emittedAtMs?: number; |
| 35370 | readonly method: "warning"; | 39214 | readonly method: "warning"; |
| 35371 | readonly params: ServerNotification__WarningNotification; | 39215 | readonly params: ServerNotification__WarningNotification; |
| 35372 | readonly emittedAtMs?: number; | | |
| 35373 | } | 39216 | } |
| 35374 | | { | 39217 | | { |
| | 39218 | readonly emittedAtMs?: number; |
| 35375 | readonly method: "guardianWarning"; | 39219 | readonly method: "guardianWarning"; |
| 35376 | readonly params: ServerNotification__GuardianWarningNotification; | 39220 | readonly params: ServerNotification__GuardianWarningNotification; |
| 35377 | readonly emittedAtMs?: number; | | |
| 35378 | } | 39221 | } |
| 35379 | | { | 39222 | | { |
| | 39223 | readonly emittedAtMs?: number; |
| 35380 | readonly method: "deprecationNotice"; | 39224 | readonly method: "deprecationNotice"; |
| 35381 | readonly params: ServerNotification__DeprecationNoticeNotification; | 39225 | readonly params: ServerNotification__DeprecationNoticeNotification; |
| 35382 | readonly emittedAtMs?: number; | | |
| 35383 | } | 39226 | } |
| 35384 | | { | 39227 | | { |
| | 39228 | readonly emittedAtMs?: number; |
| 35385 | readonly method: "configWarning"; | 39229 | readonly method: "configWarning"; |
| 35386 | readonly params: ServerNotification__ConfigWarningNotification; | 39230 | readonly params: ServerNotification__ConfigWarningNotification; |
| 35387 | readonly emittedAtMs?: number; | | |
| 35388 | } | 39231 | } |
| 35389 | | { | 39232 | | { |
| | 39233 | readonly emittedAtMs?: number; |
| 35390 | readonly method: "fuzzyFileSearch/sessionUpdated"; | 39234 | readonly method: "fuzzyFileSearch/sessionUpdated"; |
| 35391 | readonly params: ServerNotification__FuzzyFileSearchSessionUpdatedNotification; | 39235 | readonly params: ServerNotification__FuzzyFileSearchSessionUpdatedNotification; |
| 35392 | readonly emittedAtMs?: number; | | |
| 35393 | } | 39236 | } |
| 35394 | | { | 39237 | | { |
| | 39238 | readonly emittedAtMs?: number; |
| 35395 | readonly method: "fuzzyFileSearch/sessionCompleted"; | 39239 | readonly method: "fuzzyFileSearch/sessionCompleted"; |
| 35396 | readonly params: ServerNotification__FuzzyFileSearchSessionCompletedNotification; | 39240 | readonly params: ServerNotification__FuzzyFileSearchSessionCompletedNotification; |
| 35397 | readonly emittedAtMs?: number; | | |
| 35398 | } | 39241 | } |
| 35399 | | { | 39242 | | { |
| | 39243 | readonly emittedAtMs?: number; |
| 35400 | readonly method: "thread/realtime/started"; | 39244 | readonly method: "thread/realtime/started"; |
| 35401 | readonly params: ServerNotification__ThreadRealtimeStartedNotification; | 39245 | readonly params: ServerNotification__ThreadRealtimeStartedNotification; |
| 35402 | readonly emittedAtMs?: number; | | |
| 35403 | } | 39246 | } |
| 35404 | | { | 39247 | | { |
| | 39248 | readonly emittedAtMs?: number; |
| 35405 | readonly method: "thread/realtime/itemAdded"; | 39249 | readonly method: "thread/realtime/itemAdded"; |
| 35406 | readonly params: ServerNotification__ThreadRealtimeItemAddedNotification; | 39250 | readonly params: ServerNotification__ThreadRealtimeItemAddedNotification; |
| 35407 | readonly emittedAtMs?: number; | | |
| 35408 | } | 39251 | } |
| 35409 | | { | 39252 | | { |
| | 39253 | readonly emittedAtMs?: number; |
| 35410 | readonly method: "thread/realtime/transcript/delta"; | 39254 | readonly method: "thread/realtime/transcript/delta"; |
| 35411 | readonly params: ServerNotification__ThreadRealtimeTranscriptDeltaNotification; | 39255 | readonly params: ServerNotification__ThreadRealtimeTranscriptDeltaNotification; |
| 35412 | readonly emittedAtMs?: number; | | |
| 35413 | } | 39256 | } |
| 35414 | | { | 39257 | | { |
| | 39258 | readonly emittedAtMs?: number; |
| 35415 | readonly method: "thread/realtime/transcript/done"; | 39259 | readonly method: "thread/realtime/transcript/done"; |
| 35416 | readonly params: ServerNotification__ThreadRealtimeTranscriptDoneNotification; | 39260 | readonly params: ServerNotification__ThreadRealtimeTranscriptDoneNotification; |
| 35417 | readonly emittedAtMs?: number; | | |
| 35418 | } | 39261 | } |
| 35419 | | { | 39262 | | { |
| | 39263 | readonly emittedAtMs?: number; |
| 35420 | readonly method: "thread/realtime/outputAudio/delta"; | 39264 | readonly method: "thread/realtime/outputAudio/delta"; |
| 35421 | readonly params: ServerNotification__ThreadRealtimeOutputAudioDeltaNotification; | 39265 | readonly params: ServerNotification__ThreadRealtimeOutputAudioDeltaNotification; |
| 35422 | readonly emittedAtMs?: number; | | |
| 35423 | } | 39266 | } |
| 35424 | | { | 39267 | | { |
| | 39268 | readonly emittedAtMs?: number; |
| 35425 | readonly method: "thread/realtime/sdp"; | 39269 | readonly method: "thread/realtime/sdp"; |
| 35426 | readonly params: ServerNotification__ThreadRealtimeSdpNotification; | 39270 | readonly params: ServerNotification__ThreadRealtimeSdpNotification; |
| 35427 | readonly emittedAtMs?: number; | | |
| 35428 | } | 39271 | } |
| 35429 | | { | 39272 | | { |
| | 39273 | readonly emittedAtMs?: number; |
| 35430 | readonly method: "thread/realtime/error"; | 39274 | readonly method: "thread/realtime/error"; |
| 35431 | readonly params: ServerNotification__ThreadRealtimeErrorNotification; | 39275 | readonly params: ServerNotification__ThreadRealtimeErrorNotification; |
| 35432 | readonly emittedAtMs?: number; | | |
| 35433 | } | 39276 | } |
| 35434 | | { | 39277 | | { |
| | 39278 | readonly emittedAtMs?: number; |
| 35435 | readonly method: "thread/realtime/closed"; | 39279 | readonly method: "thread/realtime/closed"; |
| 35436 | readonly params: ServerNotification__ThreadRealtimeClosedNotification; | 39280 | readonly params: ServerNotification__ThreadRealtimeClosedNotification; |
| 35437 | readonly emittedAtMs?: number; | | |
| 35438 | } | 39281 | } |
| 35439 | | { | 39282 | | { |
| | 39283 | readonly emittedAtMs?: number; |
| 35440 | readonly method: "windows/worldWritableWarning"; | 39284 | readonly method: "windows/worldWritableWarning"; |
| 35441 | readonly params: ServerNotification__WindowsWorldWritableWarningNotification; | 39285 | readonly params: ServerNotification__WindowsWorldWritableWarningNotification; |
| 35442 | readonly emittedAtMs?: number; | | |
| 35443 | } | 39286 | } |
| 35444 | | { | 39287 | | { |
| | 39288 | readonly emittedAtMs?: number; |
| 35445 | readonly method: "windowsSandbox/setupCompleted"; | 39289 | readonly method: "windowsSandbox/setupCompleted"; |
| 35446 | readonly params: ServerNotification__WindowsSandboxSetupCompletedNotification; | 39290 | readonly params: ServerNotification__WindowsSandboxSetupCompletedNotification; |
| 35447 | readonly emittedAtMs?: number; | | |
| 35448 | } | 39291 | } |
| 35449 | | { | 39292 | | { |
| | 39293 | readonly emittedAtMs?: number; |
| 35450 | readonly method: "account/login/completed"; | 39294 | readonly method: "account/login/completed"; |
| 35451 | readonly params: ServerNotification__AccountLoginCompletedNotification; | 39295 | readonly params: ServerNotification__AccountLoginCompletedNotification; |
| 35452 | readonly emittedAtMs?: number; | | |
| 35453 | }; | 39296 | }; |
| 35454 | export const ServerNotification = Schema.Union( | 39297 | export const ServerNotification = Schema.Union( |
| 35455 | [ | 39298 | [ |
| 35456 | Schema.Struct({ | 39299 | Schema.Struct({ |
| | 39300 | emittedAtMs: Schema.optionalKey( |
| | 39301 | Schema.Number.annotate({ |
| | 39302 | description: |
| | 39303 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| | 39304 | format: "int64", |
| | 39305 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 39306 | ), |
| 35457 | method: Schema.Literal("error").annotate({ title: "ErrorNotificationMethod" }), | 39307 | method: Schema.Literal("error").annotate({ title: "ErrorNotificationMethod" }), |
| 35458 | params: ServerNotification__ErrorNotification, | 39308 | params: ServerNotification__ErrorNotification, |
| | 39309 | }).annotate({ title: "ErrorNotification", description: "NEW NOTIFICATIONS" }), |
| | 39310 | Schema.Struct({ |
| 35459 | emittedAtMs: Schema.optionalKey( | 39311 | emittedAtMs: Schema.optionalKey( |
| 35460 | Schema.Number.annotate({ | 39312 | Schema.Number.annotate({ |
| 35461 | description: | 39313 | description: |
| 35462 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39314 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35463 | format: "int64", | 39315 | format: "int64", |
| 35464 | }).check(Schema.isInt()), | 39316 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35465 | ), | 39317 | ), |
| 35466 | }).annotate({ | | |
| 35467 | title: "ServerNotification", | | |
| 35468 | description: "Notification sent from the server to the client.", | | |
| 35469 | }), | | |
| 35470 | Schema.Struct({ | | |
| 35471 | method: Schema.Literal("thread/started").annotate({ | 39318 | method: Schema.Literal("thread/started").annotate({ |
| 35472 | title: "Thread/startedNotificationMethod", | 39319 | title: "Thread/startedNotificationMethod", |
| 35473 | }), | 39320 | }), |
| 35474 | params: ServerNotification__ThreadStartedNotification, | 39321 | params: ServerNotification__ThreadStartedNotification, |
| | 39322 | }).annotate({ title: "Thread/startedNotification" }), |
| | 39323 | Schema.Struct({ |
| 35475 | emittedAtMs: Schema.optionalKey( | 39324 | emittedAtMs: Schema.optionalKey( |
| 35476 | Schema.Number.annotate({ | 39325 | Schema.Number.annotate({ |
| 35477 | description: | 39326 | description: |
| 35478 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39327 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35479 | format: "int64", | 39328 | format: "int64", |
| 35480 | }).check(Schema.isInt()), | 39329 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35481 | ), | 39330 | ), |
| 35482 | }).annotate({ | | |
| 35483 | title: "ServerNotification", | | |
| 35484 | description: "Notification sent from the server to the client.", | | |
| 35485 | }), | | |
| 35486 | Schema.Struct({ | | |
| 35487 | method: Schema.Literal("thread/status/changed").annotate({ | 39331 | method: Schema.Literal("thread/status/changed").annotate({ |
| 35488 | title: "Thread/status/changedNotificationMethod", | 39332 | title: "Thread/status/changedNotificationMethod", |
| 35489 | }), | 39333 | }), |
| 35490 | params: ServerNotification__ThreadStatusChangedNotification, | 39334 | params: ServerNotification__ThreadStatusChangedNotification, |
| | 39335 | }).annotate({ title: "Thread/status/changedNotification" }), |
| | 39336 | Schema.Struct({ |
| 35491 | emittedAtMs: Schema.optionalKey( | 39337 | emittedAtMs: Schema.optionalKey( |
| 35492 | Schema.Number.annotate({ | 39338 | Schema.Number.annotate({ |
| 35493 | description: | 39339 | description: |
| 35494 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39340 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35495 | format: "int64", | 39341 | format: "int64", |
| 35496 | }).check(Schema.isInt()), | 39342 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35497 | ), | 39343 | ), |
| 35498 | }).annotate({ | | |
| 35499 | title: "ServerNotification", | | |
| 35500 | description: "Notification sent from the server to the client.", | | |
| 35501 | }), | | |
| 35502 | Schema.Struct({ | | |
| 35503 | method: Schema.Literal("thread/archived").annotate({ | 39344 | method: Schema.Literal("thread/archived").annotate({ |
| 35504 | title: "Thread/archivedNotificationMethod", | 39345 | title: "Thread/archivedNotificationMethod", |
| 35505 | }), | 39346 | }), |
| 35506 | params: ServerNotification__ThreadArchivedNotification, | 39347 | params: ServerNotification__ThreadArchivedNotification, |
| | 39348 | }).annotate({ title: "Thread/archivedNotification" }), |
| | 39349 | Schema.Struct({ |
| 35507 | emittedAtMs: Schema.optionalKey( | 39350 | emittedAtMs: Schema.optionalKey( |
| 35508 | Schema.Number.annotate({ | 39351 | Schema.Number.annotate({ |
| 35509 | description: | 39352 | description: |
| 35510 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39353 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35511 | format: "int64", | 39354 | format: "int64", |
| 35512 | }).check(Schema.isInt()), | 39355 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35513 | ), | 39356 | ), |
| 35514 | }).annotate({ | | |
| 35515 | title: "ServerNotification", | | |
| 35516 | description: "Notification sent from the server to the client.", | | |
| 35517 | }), | | |
| 35518 | Schema.Struct({ | | |
| 35519 | method: Schema.Literal("thread/deleted").annotate({ | 39357 | method: Schema.Literal("thread/deleted").annotate({ |
| 35520 | title: "Thread/deletedNotificationMethod", | 39358 | title: "Thread/deletedNotificationMethod", |
| 35521 | }), | 39359 | }), |
| 35522 | params: ServerNotification__ThreadDeletedNotification, | 39360 | params: ServerNotification__ThreadDeletedNotification, |
| | 39361 | }).annotate({ title: "Thread/deletedNotification" }), |
| | 39362 | Schema.Struct({ |
| 35523 | emittedAtMs: Schema.optionalKey( | 39363 | emittedAtMs: Schema.optionalKey( |
| 35524 | Schema.Number.annotate({ | 39364 | Schema.Number.annotate({ |
| 35525 | description: | 39365 | description: |
| 35526 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39366 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35527 | format: "int64", | 39367 | format: "int64", |
| 35528 | }).check(Schema.isInt()), | 39368 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35529 | ), | 39369 | ), |
| 35530 | }).annotate({ | | |
| 35531 | title: "ServerNotification", | | |
| 35532 | description: "Notification sent from the server to the client.", | | |
| 35533 | }), | | |
| 35534 | Schema.Struct({ | | |
| 35535 | method: Schema.Literal("thread/unarchived").annotate({ | 39370 | method: Schema.Literal("thread/unarchived").annotate({ |
| 35536 | title: "Thread/unarchivedNotificationMethod", | 39371 | title: "Thread/unarchivedNotificationMethod", |
| 35537 | }), | 39372 | }), |
| 35538 | params: ServerNotification__ThreadUnarchivedNotification, | 39373 | params: ServerNotification__ThreadUnarchivedNotification, |
| | 39374 | }).annotate({ title: "Thread/unarchivedNotification" }), |
| | 39375 | Schema.Struct({ |
| 35539 | emittedAtMs: Schema.optionalKey( | 39376 | emittedAtMs: Schema.optionalKey( |
| 35540 | Schema.Number.annotate({ | 39377 | Schema.Number.annotate({ |
| 35541 | description: | 39378 | description: |
| 35542 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39379 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35543 | format: "int64", | 39380 | format: "int64", |
| 35544 | }).check(Schema.isInt()), | 39381 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35545 | ), | 39382 | ), |
| 35546 | }).annotate({ | | |
| 35547 | title: "ServerNotification", | | |
| 35548 | description: "Notification sent from the server to the client.", | | |
| 35549 | }), | | |
| 35550 | Schema.Struct({ | | |
| 35551 | method: Schema.Literal("thread/closed").annotate({ | 39383 | method: Schema.Literal("thread/closed").annotate({ |
| 35552 | title: "Thread/closedNotificationMethod", | 39384 | title: "Thread/closedNotificationMethod", |
| 35553 | }), | 39385 | }), |
| 35554 | params: ServerNotification__ThreadClosedNotification, | 39386 | params: ServerNotification__ThreadClosedNotification, |
| | 39387 | }).annotate({ title: "Thread/closedNotification" }), |
| | 39388 | Schema.Struct({ |
| 35555 | emittedAtMs: Schema.optionalKey( | 39389 | emittedAtMs: Schema.optionalKey( |
| 35556 | Schema.Number.annotate({ | 39390 | Schema.Number.annotate({ |
| 35557 | description: | 39391 | description: |
| 35558 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39392 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35559 | format: "int64", | 39393 | format: "int64", |
| 35560 | }).check(Schema.isInt()), | 39394 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35561 | ), | 39395 | ), |
| 35562 | }).annotate({ | | |
| 35563 | title: "ServerNotification", | | |
| 35564 | description: "Notification sent from the server to the client.", | | |
| 35565 | }), | | |
| 35566 | Schema.Struct({ | | |
| 35567 | method: Schema.Literal("skills/changed").annotate({ | 39396 | method: Schema.Literal("skills/changed").annotate({ |
| 35568 | title: "Skills/changedNotificationMethod", | 39397 | title: "Skills/changedNotificationMethod", |
| 35569 | }), | 39398 | }), |
| 35570 | params: ServerNotification__SkillsChangedNotification, | 39399 | params: ServerNotification__SkillsChangedNotification, |
| | 39400 | }).annotate({ title: "Skills/changedNotification" }), |
| | 39401 | Schema.Struct({ |
| 35571 | emittedAtMs: Schema.optionalKey( | 39402 | emittedAtMs: Schema.optionalKey( |
| 35572 | Schema.Number.annotate({ | 39403 | Schema.Number.annotate({ |
| 35573 | description: | 39404 | description: |
| 35574 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39405 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35575 | format: "int64", | 39406 | format: "int64", |
| 35576 | }).check(Schema.isInt()), | 39407 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35577 | ), | 39408 | ), |
| 35578 | }).annotate({ | | |
| 35579 | title: "ServerNotification", | | |
| 35580 | description: "Notification sent from the server to the client.", | | |
| 35581 | }), | | |
| 35582 | Schema.Struct({ | | |
| 35583 | method: Schema.Literal("thread/name/updated").annotate({ | 39409 | method: Schema.Literal("thread/name/updated").annotate({ |
| 35584 | title: "Thread/name/updatedNotificationMethod", | 39410 | title: "Thread/name/updatedNotificationMethod", |
| 35585 | }), | 39411 | }), |
| 35586 | params: ServerNotification__ThreadNameUpdatedNotification, | 39412 | params: ServerNotification__ThreadNameUpdatedNotification, |
| | 39413 | }).annotate({ title: "Thread/name/updatedNotification" }), |
| | 39414 | Schema.Struct({ |
| 35587 | emittedAtMs: Schema.optionalKey( | 39415 | emittedAtMs: Schema.optionalKey( |
| 35588 | Schema.Number.annotate({ | 39416 | Schema.Number.annotate({ |
| 35589 | description: | 39417 | description: |
| 35590 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39418 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35591 | format: "int64", | 39419 | format: "int64", |
| 35592 | }).check(Schema.isInt()), | 39420 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35593 | ), | 39421 | ), |
| 35594 | }).annotate({ | | |
| 35595 | title: "ServerNotification", | | |
| 35596 | description: "Notification sent from the server to the client.", | | |
| 35597 | }), | | |
| 35598 | Schema.Struct({ | | |
| 35599 | method: Schema.Literal("thread/goal/updated").annotate({ | 39422 | method: Schema.Literal("thread/goal/updated").annotate({ |
| 35600 | title: "Thread/goal/updatedNotificationMethod", | 39423 | title: "Thread/goal/updatedNotificationMethod", |
| 35601 | }), | 39424 | }), |
| 35602 | params: ServerNotification__ThreadGoalUpdatedNotification, | 39425 | params: ServerNotification__ThreadGoalUpdatedNotification, |
| | 39426 | }).annotate({ title: "Thread/goal/updatedNotification" }), |
| | 39427 | Schema.Struct({ |
| 35603 | emittedAtMs: Schema.optionalKey( | 39428 | emittedAtMs: Schema.optionalKey( |
| 35604 | Schema.Number.annotate({ | 39429 | Schema.Number.annotate({ |
| 35605 | description: | 39430 | description: |
| 35606 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39431 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35607 | format: "int64", | 39432 | format: "int64", |
| 35608 | }).check(Schema.isInt()), | 39433 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35609 | ), | 39434 | ), |
| 35610 | }).annotate({ | | |
| 35611 | title: "ServerNotification", | | |
| 35612 | description: "Notification sent from the server to the client.", | | |
| 35613 | }), | | |
| 35614 | Schema.Struct({ | | |
| 35615 | method: Schema.Literal("thread/goal/cleared").annotate({ | 39435 | method: Schema.Literal("thread/goal/cleared").annotate({ |
| 35616 | title: "Thread/goal/clearedNotificationMethod", | 39436 | title: "Thread/goal/clearedNotificationMethod", |
| 35617 | }), | 39437 | }), |
| 35618 | params: ServerNotification__ThreadGoalClearedNotification, | 39438 | params: ServerNotification__ThreadGoalClearedNotification, |
| | 39439 | }).annotate({ title: "Thread/goal/clearedNotification" }), |
| | 39440 | Schema.Struct({ |
| 35619 | emittedAtMs: Schema.optionalKey( | 39441 | emittedAtMs: Schema.optionalKey( |
| 35620 | Schema.Number.annotate({ | 39442 | Schema.Number.annotate({ |
| 35621 | description: | 39443 | description: |
| 35622 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39444 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35623 | format: "int64", | 39445 | format: "int64", |
| 35624 | }).check(Schema.isInt()), | 39446 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35625 | ), | 39447 | ), |
| 35626 | }).annotate({ | | |
| 35627 | title: "ServerNotification", | | |
| 35628 | description: "Notification sent from the server to the client.", | | |
| 35629 | }), | | |
| 35630 | Schema.Struct({ | | |
| 35631 | method: Schema.Literal("thread/environment/connected").annotate({ | 39448 | method: Schema.Literal("thread/environment/connected").annotate({ |
| 35632 | title: "Thread/environment/connectedNotificationMethod", | 39449 | title: "Thread/environment/connectedNotificationMethod", |
| 35633 | }), | 39450 | }), |
| 35634 | params: ServerNotification__EnvironmentConnectionNotification, | 39451 | params: ServerNotification__EnvironmentConnectionNotification, |
| | 39452 | }).annotate({ title: "Thread/environment/connectedNotification" }), |
| | 39453 | Schema.Struct({ |
| 35635 | emittedAtMs: Schema.optionalKey( | 39454 | emittedAtMs: Schema.optionalKey( |
| 35636 | Schema.Number.annotate({ | 39455 | Schema.Number.annotate({ |
| 35637 | description: | 39456 | description: |
| 35638 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39457 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35639 | format: "int64", | 39458 | format: "int64", |
| 35640 | }).check(Schema.isInt()), | 39459 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35641 | ), | 39460 | ), |
| 35642 | }).annotate({ | | |
| 35643 | title: "ServerNotification", | | |
| 35644 | description: "Notification sent from the server to the client.", | | |
| 35645 | }), | | |
| 35646 | Schema.Struct({ | | |
| 35647 | method: Schema.Literal("thread/environment/disconnected").annotate({ | 39461 | method: Schema.Literal("thread/environment/disconnected").annotate({ |
| 35648 | title: "Thread/environment/disconnectedNotificationMethod", | 39462 | title: "Thread/environment/disconnectedNotificationMethod", |
| 35649 | }), | 39463 | }), |
| 35650 | params: ServerNotification__EnvironmentConnectionNotification, | 39464 | params: ServerNotification__EnvironmentConnectionNotification, |
| | 39465 | }).annotate({ title: "Thread/environment/disconnectedNotification" }), |
| | 39466 | Schema.Struct({ |
| 35651 | emittedAtMs: Schema.optionalKey( | 39467 | emittedAtMs: Schema.optionalKey( |
| 35652 | Schema.Number.annotate({ | 39468 | Schema.Number.annotate({ |
| 35653 | description: | 39469 | description: |
| 35654 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39470 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35655 | format: "int64", | 39471 | format: "int64", |
| 35656 | }).check(Schema.isInt()), | 39472 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35657 | ), | 39473 | ), |
| 35658 | }).annotate({ | | |
| 35659 | title: "ServerNotification", | | |
| 35660 | description: "Notification sent from the server to the client.", | | |
| 35661 | }), | | |
| 35662 | Schema.Struct({ | | |
| 35663 | method: Schema.Literal("thread/settings/updated").annotate({ | 39474 | method: Schema.Literal("thread/settings/updated").annotate({ |
| 35664 | title: "Thread/settings/updatedNotificationMethod", | 39475 | title: "Thread/settings/updatedNotificationMethod", |
| 35665 | }), | 39476 | }), |
| 35666 | params: ServerNotification__ThreadSettingsUpdatedNotification, | 39477 | params: ServerNotification__ThreadSettingsUpdatedNotification, |
| | 39478 | }).annotate({ title: "Thread/settings/updatedNotification" }), |
| | 39479 | Schema.Struct({ |
| 35667 | emittedAtMs: Schema.optionalKey( | 39480 | emittedAtMs: Schema.optionalKey( |
| 35668 | Schema.Number.annotate({ | 39481 | Schema.Number.annotate({ |
| 35669 | description: | 39482 | description: |
| 35670 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39483 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35671 | format: "int64", | 39484 | format: "int64", |
| 35672 | }).check(Schema.isInt()), | 39485 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35673 | ), | 39486 | ), |
| 35674 | }).annotate({ | | |
| 35675 | title: "ServerNotification", | | |
| 35676 | description: "Notification sent from the server to the client.", | | |
| 35677 | }), | | |
| 35678 | Schema.Struct({ | | |
| 35679 | method: Schema.Literal("thread/tokenUsage/updated").annotate({ | 39487 | method: Schema.Literal("thread/tokenUsage/updated").annotate({ |
| 35680 | title: "Thread/tokenUsage/updatedNotificationMethod", | 39488 | title: "Thread/tokenUsage/updatedNotificationMethod", |
| 35681 | }), | 39489 | }), |
| 35682 | params: ServerNotification__ThreadTokenUsageUpdatedNotification, | 39490 | params: ServerNotification__ThreadTokenUsageUpdatedNotification, |
| | 39491 | }).annotate({ title: "Thread/tokenUsage/updatedNotification" }), |
| | 39492 | Schema.Struct({ |
| 35683 | emittedAtMs: Schema.optionalKey( | 39493 | emittedAtMs: Schema.optionalKey( |
| 35684 | Schema.Number.annotate({ | 39494 | Schema.Number.annotate({ |
| 35685 | description: | 39495 | description: |
| 35686 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39496 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35687 | format: "int64", | 39497 | format: "int64", |
| 35688 | }).check(Schema.isInt()), | 39498 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35689 | ), | 39499 | ), |
| 35690 | }).annotate({ | | |
| 35691 | title: "ServerNotification", | | |
| 35692 | description: "Notification sent from the server to the client.", | | |
| 35693 | }), | | |
| 35694 | Schema.Struct({ | | |
| 35695 | method: Schema.Literal("turn/started").annotate({ title: "Turn/startedNotificationMethod" }), | 39500 | method: Schema.Literal("turn/started").annotate({ title: "Turn/startedNotificationMethod" }), |
| 35696 | params: ServerNotification__TurnStartedNotification, | 39501 | params: ServerNotification__TurnStartedNotification, |
| | 39502 | }).annotate({ title: "Turn/startedNotification" }), |
| | 39503 | Schema.Struct({ |
| 35697 | emittedAtMs: Schema.optionalKey( | 39504 | emittedAtMs: Schema.optionalKey( |
| 35698 | Schema.Number.annotate({ | 39505 | Schema.Number.annotate({ |
| 35699 | description: | 39506 | description: |
| 35700 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39507 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35701 | format: "int64", | 39508 | format: "int64", |
| 35702 | }).check(Schema.isInt()), | 39509 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35703 | ), | 39510 | ), |
| 35704 | }).annotate({ | | |
| 35705 | title: "ServerNotification", | | |
| 35706 | description: "Notification sent from the server to the client.", | | |
| 35707 | }), | | |
| 35708 | Schema.Struct({ | | |
| 35709 | method: Schema.Literal("hook/started").annotate({ title: "Hook/startedNotificationMethod" }), | 39511 | method: Schema.Literal("hook/started").annotate({ title: "Hook/startedNotificationMethod" }), |
| 35710 | params: ServerNotification__HookStartedNotification, | 39512 | params: ServerNotification__HookStartedNotification, |
| | 39513 | }).annotate({ title: "Hook/startedNotification" }), |
| | 39514 | Schema.Struct({ |
| 35711 | emittedAtMs: Schema.optionalKey( | 39515 | emittedAtMs: Schema.optionalKey( |
| 35712 | Schema.Number.annotate({ | 39516 | Schema.Number.annotate({ |
| 35713 | description: | 39517 | description: |
| 35714 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39518 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35715 | format: "int64", | 39519 | format: "int64", |
| 35716 | }).check(Schema.isInt()), | 39520 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35717 | ), | 39521 | ), |
| 35718 | }).annotate({ | | |
| 35719 | title: "ServerNotification", | | |
| 35720 | description: "Notification sent from the server to the client.", | | |
| 35721 | }), | | |
| 35722 | Schema.Struct({ | | |
| 35723 | method: Schema.Literal("turn/completed").annotate({ | 39522 | method: Schema.Literal("turn/completed").annotate({ |
| 35724 | title: "Turn/completedNotificationMethod", | 39523 | title: "Turn/completedNotificationMethod", |
| 35725 | }), | 39524 | }), |
| 35726 | params: ServerNotification__TurnCompletedNotification, | 39525 | params: ServerNotification__TurnCompletedNotification, |
| | 39526 | }).annotate({ title: "Turn/completedNotification" }), |
| | 39527 | Schema.Struct({ |
| 35727 | emittedAtMs: Schema.optionalKey( | 39528 | emittedAtMs: Schema.optionalKey( |
| 35728 | Schema.Number.annotate({ | 39529 | Schema.Number.annotate({ |
| 35729 | description: | 39530 | description: |
| 35730 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39531 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35731 | format: "int64", | 39532 | format: "int64", |
| 35732 | }).check(Schema.isInt()), | 39533 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35733 | ), | 39534 | ), |
| 35734 | }).annotate({ | | |
| 35735 | title: "ServerNotification", | | |
| 35736 | description: "Notification sent from the server to the client.", | | |
| 35737 | }), | | |
| 35738 | Schema.Struct({ | | |
| 35739 | method: Schema.Literal("hook/completed").annotate({ | 39535 | method: Schema.Literal("hook/completed").annotate({ |
| 35740 | title: "Hook/completedNotificationMethod", | 39536 | title: "Hook/completedNotificationMethod", |
| 35741 | }), | 39537 | }), |
| 35742 | params: ServerNotification__HookCompletedNotification, | 39538 | params: ServerNotification__HookCompletedNotification, |
| | 39539 | }).annotate({ title: "Hook/completedNotification" }), |
| | 39540 | Schema.Struct({ |
| 35743 | emittedAtMs: Schema.optionalKey( | 39541 | emittedAtMs: Schema.optionalKey( |
| 35744 | Schema.Number.annotate({ | 39542 | Schema.Number.annotate({ |
| 35745 | description: | 39543 | description: |
| 35746 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39544 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35747 | format: "int64", | 39545 | format: "int64", |
| 35748 | }).check(Schema.isInt()), | 39546 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35749 | ), | 39547 | ), |
| 35750 | }).annotate({ | | |
| 35751 | title: "ServerNotification", | | |
| 35752 | description: "Notification sent from the server to the client.", | | |
| 35753 | }), | | |
| 35754 | Schema.Struct({ | | |
| 35755 | method: Schema.Literal("turn/diff/updated").annotate({ | 39548 | method: Schema.Literal("turn/diff/updated").annotate({ |
| 35756 | title: "Turn/diff/updatedNotificationMethod", | 39549 | title: "Turn/diff/updatedNotificationMethod", |
| 35757 | }), | 39550 | }), |
| 35758 | params: ServerNotification__TurnDiffUpdatedNotification, | 39551 | params: ServerNotification__TurnDiffUpdatedNotification, |
| | 39552 | }).annotate({ title: "Turn/diff/updatedNotification" }), |
| | 39553 | Schema.Struct({ |
| 35759 | emittedAtMs: Schema.optionalKey( | 39554 | emittedAtMs: Schema.optionalKey( |
| 35760 | Schema.Number.annotate({ | 39555 | Schema.Number.annotate({ |
| 35761 | description: | 39556 | description: |
| 35762 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39557 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35763 | format: "int64", | 39558 | format: "int64", |
| 35764 | }).check(Schema.isInt()), | 39559 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35765 | ), | 39560 | ), |
| 35766 | }).annotate({ | | |
| 35767 | title: "ServerNotification", | | |
| 35768 | description: "Notification sent from the server to the client.", | | |
| 35769 | }), | | |
| 35770 | Schema.Struct({ | | |
| 35771 | method: Schema.Literal("turn/plan/updated").annotate({ | 39561 | method: Schema.Literal("turn/plan/updated").annotate({ |
| 35772 | title: "Turn/plan/updatedNotificationMethod", | 39562 | title: "Turn/plan/updatedNotificationMethod", |
| 35773 | }), | 39563 | }), |
| 35774 | params: ServerNotification__TurnPlanUpdatedNotification, | 39564 | params: ServerNotification__TurnPlanUpdatedNotification, |
| | 39565 | }).annotate({ title: "Turn/plan/updatedNotification" }), |
| | 39566 | Schema.Struct({ |
| 35775 | emittedAtMs: Schema.optionalKey( | 39567 | emittedAtMs: Schema.optionalKey( |
| 35776 | Schema.Number.annotate({ | 39568 | Schema.Number.annotate({ |
| 35777 | description: | 39569 | description: |
| 35778 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39570 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35779 | format: "int64", | 39571 | format: "int64", |
| 35780 | }).check(Schema.isInt()), | 39572 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35781 | ), | 39573 | ), |
| 35782 | }).annotate({ | | |
| 35783 | title: "ServerNotification", | | |
| 35784 | description: "Notification sent from the server to the client.", | | |
| 35785 | }), | | |
| 35786 | Schema.Struct({ | | |
| 35787 | method: Schema.Literal("item/started").annotate({ title: "Item/startedNotificationMethod" }), | 39574 | method: Schema.Literal("item/started").annotate({ title: "Item/startedNotificationMethod" }), |
| 35788 | params: ServerNotification__ItemStartedNotification, | 39575 | params: ServerNotification__ItemStartedNotification, |
| | 39576 | }).annotate({ title: "Item/startedNotification" }), |
| | 39577 | Schema.Struct({ |
| 35789 | emittedAtMs: Schema.optionalKey( | 39578 | emittedAtMs: Schema.optionalKey( |
| 35790 | Schema.Number.annotate({ | 39579 | Schema.Number.annotate({ |
| 35791 | description: | 39580 | description: |
| 35792 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39581 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35793 | format: "int64", | 39582 | format: "int64", |
| 35794 | }).check(Schema.isInt()), | 39583 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35795 | ), | 39584 | ), |
| 35796 | }).annotate({ | | |
| 35797 | title: "ServerNotification", | | |
| 35798 | description: "Notification sent from the server to the client.", | | |
| 35799 | }), | | |
| 35800 | Schema.Struct({ | | |
| 35801 | method: Schema.Literal("item/autoApprovalReview/started").annotate({ | 39585 | method: Schema.Literal("item/autoApprovalReview/started").annotate({ |
| 35802 | title: "Item/autoApprovalReview/startedNotificationMethod", | 39586 | title: "Item/autoApprovalReview/startedNotificationMethod", |
| 35803 | }), | 39587 | }), |
| 35804 | params: ServerNotification__ItemGuardianApprovalReviewStartedNotification, | 39588 | params: ServerNotification__ItemGuardianApprovalReviewStartedNotification, |
| | 39589 | }).annotate({ title: "Item/autoApprovalReview/startedNotification" }), |
| | 39590 | Schema.Struct({ |
| 35805 | emittedAtMs: Schema.optionalKey( | 39591 | emittedAtMs: Schema.optionalKey( |
| 35806 | Schema.Number.annotate({ | 39592 | Schema.Number.annotate({ |
| 35807 | description: | 39593 | description: |
| 35808 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39594 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35809 | format: "int64", | 39595 | format: "int64", |
| 35810 | }).check(Schema.isInt()), | 39596 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35811 | ), | 39597 | ), |
| 35812 | }).annotate({ | | |
| 35813 | title: "ServerNotification", | | |
| 35814 | description: "Notification sent from the server to the client.", | | |
| 35815 | }), | | |
| 35816 | Schema.Struct({ | | |
| 35817 | method: Schema.Literal("item/autoApprovalReview/completed").annotate({ | 39598 | method: Schema.Literal("item/autoApprovalReview/completed").annotate({ |
| 35818 | title: "Item/autoApprovalReview/completedNotificationMethod", | 39599 | title: "Item/autoApprovalReview/completedNotificationMethod", |
| 35819 | }), | 39600 | }), |
| 35820 | params: ServerNotification__ItemGuardianApprovalReviewCompletedNotification, | 39601 | params: ServerNotification__ItemGuardianApprovalReviewCompletedNotification, |
| | 39602 | }).annotate({ title: "Item/autoApprovalReview/completedNotification" }), |
| | 39603 | Schema.Struct({ |
| 35821 | emittedAtMs: Schema.optionalKey( | 39604 | emittedAtMs: Schema.optionalKey( |
| 35822 | Schema.Number.annotate({ | 39605 | Schema.Number.annotate({ |
| 35823 | description: | 39606 | description: |
| 35824 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39607 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35825 | format: "int64", | 39608 | format: "int64", |
| 35826 | }).check(Schema.isInt()), | 39609 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35827 | ), | 39610 | ), |
| 35828 | }).annotate({ | | |
| 35829 | title: "ServerNotification", | | |
| 35830 | description: "Notification sent from the server to the client.", | | |
| 35831 | }), | | |
| 35832 | Schema.Struct({ | | |
| 35833 | method: Schema.Literal("item/completed").annotate({ | 39611 | method: Schema.Literal("item/completed").annotate({ |
| 35834 | title: "Item/completedNotificationMethod", | 39612 | title: "Item/completedNotificationMethod", |
| 35835 | }), | 39613 | }), |
| 35836 | params: ServerNotification__ItemCompletedNotification, | 39614 | params: ServerNotification__ItemCompletedNotification, |
| | 39615 | }).annotate({ title: "Item/completedNotification" }), |
| | 39616 | Schema.Struct({ |
| 35837 | emittedAtMs: Schema.optionalKey( | 39617 | emittedAtMs: Schema.optionalKey( |
| 35838 | Schema.Number.annotate({ | 39618 | Schema.Number.annotate({ |
| 35839 | description: | 39619 | description: |
| 35840 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39620 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35841 | format: "int64", | 39621 | format: "int64", |
| 35842 | }).check(Schema.isInt()), | 39622 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35843 | ), | 39623 | ), |
| 35844 | }).annotate({ | | |
| 35845 | title: "ServerNotification", | | |
| 35846 | description: "Notification sent from the server to the client.", | | |
| 35847 | }), | | |
| 35848 | Schema.Struct({ | | |
| 35849 | method: Schema.Literal("item/agentMessage/delta").annotate({ | 39624 | method: Schema.Literal("item/agentMessage/delta").annotate({ |
| 35850 | title: "Item/agentMessage/deltaNotificationMethod", | 39625 | title: "Item/agentMessage/deltaNotificationMethod", |
| 35851 | }), | 39626 | }), |
| 35852 | params: ServerNotification__AgentMessageDeltaNotification, | 39627 | params: ServerNotification__AgentMessageDeltaNotification, |
| | 39628 | }).annotate({ title: "Item/agentMessage/deltaNotification" }), |
| | 39629 | Schema.Struct({ |
| 35853 | emittedAtMs: Schema.optionalKey( | 39630 | emittedAtMs: Schema.optionalKey( |
| 35854 | Schema.Number.annotate({ | 39631 | Schema.Number.annotate({ |
| 35855 | description: | 39632 | description: |
| 35856 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39633 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35857 | format: "int64", | 39634 | format: "int64", |
| 35858 | }).check(Schema.isInt()), | 39635 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35859 | ), | 39636 | ), |
| 35860 | }).annotate({ | | |
| 35861 | title: "ServerNotification", | | |
| 35862 | description: "Notification sent from the server to the client.", | | |
| 35863 | }), | | |
| 35864 | Schema.Struct({ | | |
| 35865 | method: Schema.Literal("item/plan/delta").annotate({ | 39637 | method: Schema.Literal("item/plan/delta").annotate({ |
| 35866 | title: "Item/plan/deltaNotificationMethod", | 39638 | title: "Item/plan/deltaNotificationMethod", |
| 35867 | }), | 39639 | }), |
| 35868 | params: ServerNotification__PlanDeltaNotification, | 39640 | params: ServerNotification__PlanDeltaNotification, |
| | 39641 | }).annotate({ |
| | 39642 | title: "Item/plan/deltaNotification", |
| | 39643 | description: "EXPERIMENTAL - proposed plan streaming deltas for plan items.", |
| | 39644 | }), |
| | 39645 | Schema.Struct({ |
| 35869 | emittedAtMs: Schema.optionalKey( | 39646 | emittedAtMs: Schema.optionalKey( |
| 35870 | Schema.Number.annotate({ | 39647 | Schema.Number.annotate({ |
| 35871 | description: | 39648 | description: |
| 35872 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39649 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35873 | format: "int64", | 39650 | format: "int64", |
| 35874 | }).check(Schema.isInt()), | 39651 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35875 | ), | 39652 | ), |
| 35876 | }).annotate({ | | |
| 35877 | title: "ServerNotification", | | |
| 35878 | description: "Notification sent from the server to the client.", | | |
| 35879 | }), | | |
| 35880 | Schema.Struct({ | | |
| 35881 | method: Schema.Literal("command/exec/outputDelta").annotate({ | 39653 | method: Schema.Literal("command/exec/outputDelta").annotate({ |
| 35882 | title: "Command/exec/outputDeltaNotificationMethod", | 39654 | title: "Command/exec/outputDeltaNotificationMethod", |
| 35883 | }), | 39655 | }), |
| 35884 | params: ServerNotification__CommandExecOutputDeltaNotification, | 39656 | params: ServerNotification__CommandExecOutputDeltaNotification, |
| | 39657 | }).annotate({ |
| | 39658 | title: "Command/exec/outputDeltaNotification", |
| | 39659 | description: |
| | 39660 | "Stream base64-encoded stdout/stderr chunks for a running `command/exec` session.", |
| | 39661 | }), |
| | 39662 | Schema.Struct({ |
| 35885 | emittedAtMs: Schema.optionalKey( | 39663 | emittedAtMs: Schema.optionalKey( |
| 35886 | Schema.Number.annotate({ | 39664 | Schema.Number.annotate({ |
| 35887 | description: | 39665 | description: |
| 35888 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39666 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35889 | format: "int64", | 39667 | format: "int64", |
| 35890 | }).check(Schema.isInt()), | 39668 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35891 | ), | 39669 | ), |
| 35892 | }).annotate({ | | |
| 35893 | title: "ServerNotification", | | |
| 35894 | description: "Notification sent from the server to the client.", | | |
| 35895 | }), | | |
| 35896 | Schema.Struct({ | | |
| 35897 | method: Schema.Literal("process/outputDelta").annotate({ | 39670 | method: Schema.Literal("process/outputDelta").annotate({ |
| 35898 | title: "Process/outputDeltaNotificationMethod", | 39671 | title: "Process/outputDeltaNotificationMethod", |
| 35899 | }), | 39672 | }), |
| 35900 | params: ServerNotification__ProcessOutputDeltaNotification, | 39673 | params: ServerNotification__ProcessOutputDeltaNotification, |
| | 39674 | }).annotate({ |
| | 39675 | title: "Process/outputDeltaNotification", |
| | 39676 | description: |
| | 39677 | "Stream base64-encoded stdout/stderr chunks for a running `process/spawn` session.", |
| | 39678 | }), |
| | 39679 | Schema.Struct({ |
| 35901 | emittedAtMs: Schema.optionalKey( | 39680 | emittedAtMs: Schema.optionalKey( |
| 35902 | Schema.Number.annotate({ | 39681 | Schema.Number.annotate({ |
| 35903 | description: | 39682 | description: |
| 35904 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39683 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35905 | format: "int64", | 39684 | format: "int64", |
| 35906 | }).check(Schema.isInt()), | 39685 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35907 | ), | 39686 | ), |
| 35908 | }).annotate({ | | |
| 35909 | title: "ServerNotification", | | |
| 35910 | description: "Notification sent from the server to the client.", | | |
| 35911 | }), | | |
| 35912 | Schema.Struct({ | | |
| 35913 | method: Schema.Literal("process/exited").annotate({ | 39687 | method: Schema.Literal("process/exited").annotate({ |
| 35914 | title: "Process/exitedNotificationMethod", | 39688 | title: "Process/exitedNotificationMethod", |
| 35915 | }), | 39689 | }), |
| 35916 | params: ServerNotification__ProcessExitedNotification, | 39690 | params: ServerNotification__ProcessExitedNotification, |
| | 39691 | }).annotate({ |
| | 39692 | title: "Process/exitedNotification", |
| | 39693 | description: "Final exit notification for a `process/spawn` session.", |
| | 39694 | }), |
| | 39695 | Schema.Struct({ |
| 35917 | emittedAtMs: Schema.optionalKey( | 39696 | emittedAtMs: Schema.optionalKey( |
| 35918 | Schema.Number.annotate({ | 39697 | Schema.Number.annotate({ |
| 35919 | description: | 39698 | description: |
| 35920 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39699 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35921 | format: "int64", | 39700 | format: "int64", |
| 35922 | }).check(Schema.isInt()), | 39701 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35923 | ), | 39702 | ), |
| 35924 | }).annotate({ | | |
| 35925 | title: "ServerNotification", | | |
| 35926 | description: "Notification sent from the server to the client.", | | |
| 35927 | }), | | |
| 35928 | Schema.Struct({ | | |
| 35929 | method: Schema.Literal("item/commandExecution/outputDelta").annotate({ | 39703 | method: Schema.Literal("item/commandExecution/outputDelta").annotate({ |
| 35930 | title: "Item/commandExecution/outputDeltaNotificationMethod", | 39704 | title: "Item/commandExecution/outputDeltaNotificationMethod", |
| 35931 | }), | 39705 | }), |
| 35932 | params: ServerNotification__CommandExecutionOutputDeltaNotification, | 39706 | params: ServerNotification__CommandExecutionOutputDeltaNotification, |
| | 39707 | }).annotate({ title: "Item/commandExecution/outputDeltaNotification" }), |
| | 39708 | Schema.Struct({ |
| 35933 | emittedAtMs: Schema.optionalKey( | 39709 | emittedAtMs: Schema.optionalKey( |
| 35934 | Schema.Number.annotate({ | 39710 | Schema.Number.annotate({ |
| 35935 | description: | 39711 | description: |
| 35936 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39712 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35937 | format: "int64", | 39713 | format: "int64", |
| 35938 | }).check(Schema.isInt()), | 39714 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35939 | ), | 39715 | ), |
| 35940 | }).annotate({ | | |
| 35941 | title: "ServerNotification", | | |
| 35942 | description: "Notification sent from the server to the client.", | | |
| 35943 | }), | | |
| 35944 | Schema.Struct({ | | |
| 35945 | method: Schema.Literal("item/commandExecution/terminalInteraction").annotate({ | 39716 | method: Schema.Literal("item/commandExecution/terminalInteraction").annotate({ |
| 35946 | title: "Item/commandExecution/terminalInteractionNotificationMethod", | 39717 | title: "Item/commandExecution/terminalInteractionNotificationMethod", |
| 35947 | }), | 39718 | }), |
| 35948 | params: ServerNotification__TerminalInteractionNotification, | 39719 | params: ServerNotification__TerminalInteractionNotification, |
| | 39720 | }).annotate({ title: "Item/commandExecution/terminalInteractionNotification" }), |
| | 39721 | Schema.Struct({ |
| 35949 | emittedAtMs: Schema.optionalKey( | 39722 | emittedAtMs: Schema.optionalKey( |
| 35950 | Schema.Number.annotate({ | 39723 | Schema.Number.annotate({ |
| 35951 | description: | 39724 | description: |
| 35952 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39725 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35953 | format: "int64", | 39726 | format: "int64", |
| 35954 | }).check(Schema.isInt()), | 39727 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35955 | ), | 39728 | ), |
| 35956 | }).annotate({ | | |
| 35957 | title: "ServerNotification", | | |
| 35958 | description: "Notification sent from the server to the client.", | | |
| 35959 | }), | | |
| 35960 | Schema.Struct({ | | |
| 35961 | method: Schema.Literal("item/fileChange/outputDelta").annotate({ | 39729 | method: Schema.Literal("item/fileChange/outputDelta").annotate({ |
| 35962 | title: "Item/fileChange/outputDeltaNotificationMethod", | 39730 | title: "Item/fileChange/outputDeltaNotificationMethod", |
| 35963 | }), | 39731 | }), |
| 35964 | params: ServerNotification__FileChangeOutputDeltaNotification, | 39732 | params: ServerNotification__FileChangeOutputDeltaNotification, |
| | 39733 | }).annotate({ |
| | 39734 | title: "Item/fileChange/outputDeltaNotification", |
| | 39735 | description: "Deprecated legacy apply_patch output stream notification.", |
| | 39736 | }), |
| | 39737 | Schema.Struct({ |
| 35965 | emittedAtMs: Schema.optionalKey( | 39738 | emittedAtMs: Schema.optionalKey( |
| 35966 | Schema.Number.annotate({ | 39739 | Schema.Number.annotate({ |
| 35967 | description: | 39740 | description: |
| 35968 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39741 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35969 | format: "int64", | 39742 | format: "int64", |
| 35970 | }).check(Schema.isInt()), | 39743 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35971 | ), | 39744 | ), |
| 35972 | }).annotate({ | | |
| 35973 | title: "ServerNotification", | | |
| 35974 | description: "Notification sent from the server to the client.", | | |
| 35975 | }), | | |
| 35976 | Schema.Struct({ | | |
| 35977 | method: Schema.Literal("item/fileChange/patchUpdated").annotate({ | 39745 | method: Schema.Literal("item/fileChange/patchUpdated").annotate({ |
| 35978 | title: "Item/fileChange/patchUpdatedNotificationMethod", | 39746 | title: "Item/fileChange/patchUpdatedNotificationMethod", |
| 35979 | }), | 39747 | }), |
| 35980 | params: ServerNotification__FileChangePatchUpdatedNotification, | 39748 | params: ServerNotification__FileChangePatchUpdatedNotification, |
| | 39749 | }).annotate({ title: "Item/fileChange/patchUpdatedNotification" }), |
| | 39750 | Schema.Struct({ |
| 35981 | emittedAtMs: Schema.optionalKey( | 39751 | emittedAtMs: Schema.optionalKey( |
| 35982 | Schema.Number.annotate({ | 39752 | Schema.Number.annotate({ |
| 35983 | description: | 39753 | description: |
| 35984 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39754 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 35985 | format: "int64", | 39755 | format: "int64", |
| 35986 | }).check(Schema.isInt()), | 39756 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35987 | ), | 39757 | ), |
| 35988 | }).annotate({ | | |
| 35989 | title: "ServerNotification", | | |
| 35990 | description: "Notification sent from the server to the client.", | | |
| 35991 | }), | | |
| 35992 | Schema.Struct({ | | |
| 35993 | method: Schema.Literal("serverRequest/resolved").annotate({ | 39758 | method: Schema.Literal("serverRequest/resolved").annotate({ |
| 35994 | title: "ServerRequest/resolvedNotificationMethod", | 39759 | title: "ServerRequest/resolvedNotificationMethod", |
| 35995 | }), | 39760 | }), |
| 35996 | params: ServerNotification__ServerRequestResolvedNotification, | 39761 | params: ServerNotification__ServerRequestResolvedNotification, |
| | 39762 | }).annotate({ title: "ServerRequest/resolvedNotification" }), |
| | 39763 | Schema.Struct({ |
| 35997 | emittedAtMs: Schema.optionalKey( | 39764 | emittedAtMs: Schema.optionalKey( |
| 35998 | Schema.Number.annotate({ | 39765 | Schema.Number.annotate({ |
| 35999 | description: | 39766 | description: |
| 36000 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39767 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36001 | format: "int64", | 39768 | format: "int64", |
| 36002 | }).check(Schema.isInt()), | 39769 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36003 | ), | 39770 | ), |
| 36004 | }).annotate({ | | |
| 36005 | title: "ServerNotification", | | |
| 36006 | description: "Notification sent from the server to the client.", | | |
| 36007 | }), | | |
| 36008 | Schema.Struct({ | | |
| 36009 | method: Schema.Literal("item/mcpToolCall/progress").annotate({ | 39771 | method: Schema.Literal("item/mcpToolCall/progress").annotate({ |
| 36010 | title: "Item/mcpToolCall/progressNotificationMethod", | 39772 | title: "Item/mcpToolCall/progressNotificationMethod", |
| 36011 | }), | 39773 | }), |
| 36012 | params: ServerNotification__McpToolCallProgressNotification, | 39774 | params: ServerNotification__McpToolCallProgressNotification, |
| | 39775 | }).annotate({ title: "Item/mcpToolCall/progressNotification" }), |
| | 39776 | Schema.Struct({ |
| 36013 | emittedAtMs: Schema.optionalKey( | 39777 | emittedAtMs: Schema.optionalKey( |
| 36014 | Schema.Number.annotate({ | 39778 | Schema.Number.annotate({ |
| 36015 | description: | 39779 | description: |
| 36016 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39780 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36017 | format: "int64", | 39781 | format: "int64", |
| 36018 | }).check(Schema.isInt()), | 39782 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36019 | ), | 39783 | ), |
| 36020 | }).annotate({ | | |
| 36021 | title: "ServerNotification", | | |
| 36022 | description: "Notification sent from the server to the client.", | | |
| 36023 | }), | | |
| 36024 | Schema.Struct({ | | |
| 36025 | method: Schema.Literal("mcpServer/oauthLogin/completed").annotate({ | 39784 | method: Schema.Literal("mcpServer/oauthLogin/completed").annotate({ |
| 36026 | title: "McpServer/oauthLogin/completedNotificationMethod", | 39785 | title: "McpServer/oauthLogin/completedNotificationMethod", |
| 36027 | }), | 39786 | }), |
| 36028 | params: ServerNotification__McpServerOauthLoginCompletedNotification, | 39787 | params: ServerNotification__McpServerOauthLoginCompletedNotification, |
| | 39788 | }).annotate({ title: "McpServer/oauthLogin/completedNotification" }), |
| | 39789 | Schema.Struct({ |
| 36029 | emittedAtMs: Schema.optionalKey( | 39790 | emittedAtMs: Schema.optionalKey( |
| 36030 | Schema.Number.annotate({ | 39791 | Schema.Number.annotate({ |
| 36031 | description: | 39792 | description: |
| 36032 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39793 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36033 | format: "int64", | 39794 | format: "int64", |
| 36034 | }).check(Schema.isInt()), | 39795 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36035 | ), | 39796 | ), |
| 36036 | }).annotate({ | | |
| 36037 | title: "ServerNotification", | | |
| 36038 | description: "Notification sent from the server to the client.", | | |
| 36039 | }), | | |
| 36040 | Schema.Struct({ | | |
| 36041 | method: Schema.Literal("mcpServer/startupStatus/updated").annotate({ | 39797 | method: Schema.Literal("mcpServer/startupStatus/updated").annotate({ |
| 36042 | title: "McpServer/startupStatus/updatedNotificationMethod", | 39798 | title: "McpServer/startupStatus/updatedNotificationMethod", |
| 36043 | }), | 39799 | }), |
| 36044 | params: ServerNotification__McpServerStatusUpdatedNotification, | 39800 | params: ServerNotification__McpServerStatusUpdatedNotification, |
| | 39801 | }).annotate({ title: "McpServer/startupStatus/updatedNotification" }), |
| | 39802 | Schema.Struct({ |
| 36045 | emittedAtMs: Schema.optionalKey( | 39803 | emittedAtMs: Schema.optionalKey( |
| 36046 | Schema.Number.annotate({ | 39804 | Schema.Number.annotate({ |
| 36047 | description: | 39805 | description: |
| 36048 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39806 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36049 | format: "int64", | 39807 | format: "int64", |
| 36050 | }).check(Schema.isInt()), | 39808 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36051 | ), | 39809 | ), |
| 36052 | }).annotate({ | | |
| 36053 | title: "ServerNotification", | | |
| 36054 | description: "Notification sent from the server to the client.", | | |
| 36055 | }), | | |
| 36056 | Schema.Struct({ | | |
| 36057 | method: Schema.Literal("account/updated").annotate({ | 39810 | method: Schema.Literal("account/updated").annotate({ |
| 36058 | title: "Account/updatedNotificationMethod", | 39811 | title: "Account/updatedNotificationMethod", |
| 36059 | }), | 39812 | }), |
| 36060 | params: ServerNotification__AccountUpdatedNotification, | 39813 | params: ServerNotification__AccountUpdatedNotification, |
| | 39814 | }).annotate({ title: "Account/updatedNotification" }), |
| | 39815 | Schema.Struct({ |
| 36061 | emittedAtMs: Schema.optionalKey( | 39816 | emittedAtMs: Schema.optionalKey( |
| 36062 | Schema.Number.annotate({ | 39817 | Schema.Number.annotate({ |
| 36063 | description: | 39818 | description: |
| 36064 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39819 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36065 | format: "int64", | 39820 | format: "int64", |
| 36066 | }).check(Schema.isInt()), | 39821 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36067 | ), | 39822 | ), |
| 36068 | }).annotate({ | | |
| 36069 | title: "ServerNotification", | | |
| 36070 | description: "Notification sent from the server to the client.", | | |
| 36071 | }), | | |
| 36072 | Schema.Struct({ | | |
| 36073 | method: Schema.Literal("account/rateLimits/updated").annotate({ | 39823 | method: Schema.Literal("account/rateLimits/updated").annotate({ |
| 36074 | title: "Account/rateLimits/updatedNotificationMethod", | 39824 | title: "Account/rateLimits/updatedNotificationMethod", |
| 36075 | }), | 39825 | }), |
| 36076 | params: ServerNotification__AccountRateLimitsUpdatedNotification, | 39826 | params: ServerNotification__AccountRateLimitsUpdatedNotification, |
| | 39827 | }).annotate({ title: "Account/rateLimits/updatedNotification" }), |
| | 39828 | Schema.Struct({ |
| 36077 | emittedAtMs: Schema.optionalKey( | 39829 | emittedAtMs: Schema.optionalKey( |
| 36078 | Schema.Number.annotate({ | 39830 | Schema.Number.annotate({ |
| 36079 | description: | 39831 | description: |
| 36080 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39832 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36081 | format: "int64", | 39833 | format: "int64", |
| 36082 | }).check(Schema.isInt()), | 39834 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36083 | ), | 39835 | ), |
| 36084 | }).annotate({ | | |
| 36085 | title: "ServerNotification", | | |
| 36086 | description: "Notification sent from the server to the client.", | | |
| 36087 | }), | | |
| 36088 | Schema.Struct({ | | |
| 36089 | method: Schema.Literal("app/list/updated").annotate({ | 39836 | method: Schema.Literal("app/list/updated").annotate({ |
| 36090 | title: "App/list/updatedNotificationMethod", | 39837 | title: "App/list/updatedNotificationMethod", |
| 36091 | }), | 39838 | }), |
| 36092 | params: ServerNotification__AppListUpdatedNotification, | 39839 | params: ServerNotification__AppListUpdatedNotification, |
| | 39840 | }).annotate({ title: "App/list/updatedNotification" }), |
| | 39841 | Schema.Struct({ |
| 36093 | emittedAtMs: Schema.optionalKey( | 39842 | emittedAtMs: Schema.optionalKey( |
| 36094 | Schema.Number.annotate({ | 39843 | Schema.Number.annotate({ |
| 36095 | description: | 39844 | description: |
| 36096 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39845 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36097 | format: "int64", | 39846 | format: "int64", |
| 36098 | }).check(Schema.isInt()), | 39847 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36099 | ), | 39848 | ), |
| 36100 | }).annotate({ | | |
| 36101 | title: "ServerNotification", | | |
| 36102 | description: "Notification sent from the server to the client.", | | |
| 36103 | }), | | |
| 36104 | Schema.Struct({ | | |
| 36105 | method: Schema.Literal("remoteControl/status/changed").annotate({ | 39849 | method: Schema.Literal("remoteControl/status/changed").annotate({ |
| 36106 | title: "RemoteControl/status/changedNotificationMethod", | 39850 | title: "RemoteControl/status/changedNotificationMethod", |
| 36107 | }), | 39851 | }), |
| 36108 | params: ServerNotification__RemoteControlStatusChangedNotification, | 39852 | params: ServerNotification__RemoteControlStatusChangedNotification, |
| | 39853 | }).annotate({ title: "RemoteControl/status/changedNotification" }), |
| | 39854 | Schema.Struct({ |
| 36109 | emittedAtMs: Schema.optionalKey( | 39855 | emittedAtMs: Schema.optionalKey( |
| 36110 | Schema.Number.annotate({ | 39856 | Schema.Number.annotate({ |
| 36111 | description: | 39857 | description: |
| 36112 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39858 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36113 | format: "int64", | 39859 | format: "int64", |
| 36114 | }).check(Schema.isInt()), | 39860 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36115 | ), | 39861 | ), |
| 36116 | }).annotate({ | | |
| 36117 | title: "ServerNotification", | | |
| 36118 | description: "Notification sent from the server to the client.", | | |
| 36119 | }), | | |
| 36120 | Schema.Struct({ | | |
| 36121 | method: Schema.Literal("externalAgentConfig/import/progress").annotate({ | 39862 | method: Schema.Literal("externalAgentConfig/import/progress").annotate({ |
| 36122 | title: "ExternalAgentConfig/import/progressNotificationMethod", | 39863 | title: "ExternalAgentConfig/import/progressNotificationMethod", |
| 36123 | }), | 39864 | }), |
| 36124 | params: ServerNotification__ExternalAgentConfigImportProgressNotification, | 39865 | params: ServerNotification__ExternalAgentConfigImportProgressNotification, |
| | 39866 | }).annotate({ title: "ExternalAgentConfig/import/progressNotification" }), |
| | 39867 | Schema.Struct({ |
| 36125 | emittedAtMs: Schema.optionalKey( | 39868 | emittedAtMs: Schema.optionalKey( |
| 36126 | Schema.Number.annotate({ | 39869 | Schema.Number.annotate({ |
| 36127 | description: | 39870 | description: |
| 36128 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39871 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36129 | format: "int64", | 39872 | format: "int64", |
| 36130 | }).check(Schema.isInt()), | 39873 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36131 | ), | 39874 | ), |
| 36132 | }).annotate({ | | |
| 36133 | title: "ServerNotification", | | |
| 36134 | description: "Notification sent from the server to the client.", | | |
| 36135 | }), | | |
| 36136 | Schema.Struct({ | | |
| 36137 | method: Schema.Literal("externalAgentConfig/import/completed").annotate({ | 39875 | method: Schema.Literal("externalAgentConfig/import/completed").annotate({ |
| 36138 | title: "ExternalAgentConfig/import/completedNotificationMethod", | 39876 | title: "ExternalAgentConfig/import/completedNotificationMethod", |
| 36139 | }), | 39877 | }), |
| 36140 | params: ServerNotification__ExternalAgentConfigImportCompletedNotification, | 39878 | params: ServerNotification__ExternalAgentConfigImportCompletedNotification, |
| | 39879 | }).annotate({ title: "ExternalAgentConfig/import/completedNotification" }), |
| | 39880 | Schema.Struct({ |
| 36141 | emittedAtMs: Schema.optionalKey( | 39881 | emittedAtMs: Schema.optionalKey( |
| 36142 | Schema.Number.annotate({ | 39882 | Schema.Number.annotate({ |
| 36143 | description: | 39883 | description: |
| 36144 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39884 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36145 | format: "int64", | 39885 | format: "int64", |
| 36146 | }).check(Schema.isInt()), | 39886 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36147 | ), | 39887 | ), |
| 36148 | }).annotate({ | | |
| 36149 | title: "ServerNotification", | | |
| 36150 | description: "Notification sent from the server to the client.", | | |
| 36151 | }), | | |
| 36152 | Schema.Struct({ | | |
| 36153 | method: Schema.Literal("fs/changed").annotate({ title: "Fs/changedNotificationMethod" }), | 39888 | method: Schema.Literal("fs/changed").annotate({ title: "Fs/changedNotificationMethod" }), |
| 36154 | params: ServerNotification__FsChangedNotification, | 39889 | params: ServerNotification__FsChangedNotification, |
| | 39890 | }).annotate({ title: "Fs/changedNotification" }), |
| | 39891 | Schema.Struct({ |
| 36155 | emittedAtMs: Schema.optionalKey( | 39892 | emittedAtMs: Schema.optionalKey( |
| 36156 | Schema.Number.annotate({ | 39893 | Schema.Number.annotate({ |
| 36157 | description: | 39894 | description: |
| 36158 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39895 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36159 | format: "int64", | 39896 | format: "int64", |
| 36160 | }).check(Schema.isInt()), | 39897 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36161 | ), | 39898 | ), |
| 36162 | }).annotate({ | | |
| 36163 | title: "ServerNotification", | | |
| 36164 | description: "Notification sent from the server to the client.", | | |
| 36165 | }), | | |
| 36166 | Schema.Struct({ | | |
| 36167 | method: Schema.Literal("item/reasoning/summaryTextDelta").annotate({ | 39899 | method: Schema.Literal("item/reasoning/summaryTextDelta").annotate({ |
| 36168 | title: "Item/reasoning/summaryTextDeltaNotificationMethod", | 39900 | title: "Item/reasoning/summaryTextDeltaNotificationMethod", |
| 36169 | }), | 39901 | }), |
| 36170 | params: ServerNotification__ReasoningSummaryTextDeltaNotification, | 39902 | params: ServerNotification__ReasoningSummaryTextDeltaNotification, |
| | 39903 | }).annotate({ title: "Item/reasoning/summaryTextDeltaNotification" }), |
| | 39904 | Schema.Struct({ |
| 36171 | emittedAtMs: Schema.optionalKey( | 39905 | emittedAtMs: Schema.optionalKey( |
| 36172 | Schema.Number.annotate({ | 39906 | Schema.Number.annotate({ |
| 36173 | description: | 39907 | description: |
| 36174 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39908 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36175 | format: "int64", | 39909 | format: "int64", |
| 36176 | }).check(Schema.isInt()), | 39910 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36177 | ), | 39911 | ), |
| 36178 | }).annotate({ | | |
| 36179 | title: "ServerNotification", | | |
| 36180 | description: "Notification sent from the server to the client.", | | |
| 36181 | }), | | |
| 36182 | Schema.Struct({ | | |
| 36183 | method: Schema.Literal("item/reasoning/summaryPartAdded").annotate({ | 39912 | method: Schema.Literal("item/reasoning/summaryPartAdded").annotate({ |
| 36184 | title: "Item/reasoning/summaryPartAddedNotificationMethod", | 39913 | title: "Item/reasoning/summaryPartAddedNotificationMethod", |
| 36185 | }), | 39914 | }), |
| 36186 | params: ServerNotification__ReasoningSummaryPartAddedNotification, | 39915 | params: ServerNotification__ReasoningSummaryPartAddedNotification, |
| | 39916 | }).annotate({ title: "Item/reasoning/summaryPartAddedNotification" }), |
| | 39917 | Schema.Struct({ |
| 36187 | emittedAtMs: Schema.optionalKey( | 39918 | emittedAtMs: Schema.optionalKey( |
| 36188 | Schema.Number.annotate({ | 39919 | Schema.Number.annotate({ |
| 36189 | description: | 39920 | description: |
| 36190 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39921 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36191 | format: "int64", | 39922 | format: "int64", |
| 36192 | }).check(Schema.isInt()), | 39923 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36193 | ), | 39924 | ), |
| 36194 | }).annotate({ | | |
| 36195 | title: "ServerNotification", | | |
| 36196 | description: "Notification sent from the server to the client.", | | |
| 36197 | }), | | |
| 36198 | Schema.Struct({ | | |
| 36199 | method: Schema.Literal("item/reasoning/textDelta").annotate({ | 39925 | method: Schema.Literal("item/reasoning/textDelta").annotate({ |
| 36200 | title: "Item/reasoning/textDeltaNotificationMethod", | 39926 | title: "Item/reasoning/textDeltaNotificationMethod", |
| 36201 | }), | 39927 | }), |
| 36202 | params: ServerNotification__ReasoningTextDeltaNotification, | 39928 | params: ServerNotification__ReasoningTextDeltaNotification, |
| | 39929 | }).annotate({ title: "Item/reasoning/textDeltaNotification" }), |
| | 39930 | Schema.Struct({ |
| 36203 | emittedAtMs: Schema.optionalKey( | 39931 | emittedAtMs: Schema.optionalKey( |
| 36204 | Schema.Number.annotate({ | 39932 | Schema.Number.annotate({ |
| 36205 | description: | 39933 | description: |
| 36206 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39934 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36207 | format: "int64", | 39935 | format: "int64", |
| 36208 | }).check(Schema.isInt()), | 39936 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36209 | ), | 39937 | ), |
| 36210 | }).annotate({ | | |
| 36211 | title: "ServerNotification", | | |
| 36212 | description: "Notification sent from the server to the client.", | | |
| 36213 | }), | | |
| 36214 | Schema.Struct({ | | |
| 36215 | method: Schema.Literal("thread/compacted").annotate({ | 39938 | method: Schema.Literal("thread/compacted").annotate({ |
| 36216 | title: "Thread/compactedNotificationMethod", | 39939 | title: "Thread/compactedNotificationMethod", |
| 36217 | }), | 39940 | }), |
| 36218 | params: ServerNotification__ContextCompactedNotification, | 39941 | params: ServerNotification__ContextCompactedNotification, |
| | 39942 | }).annotate({ |
| | 39943 | title: "Thread/compactedNotification", |
| | 39944 | description: "Deprecated: Use `ContextCompaction` item type instead.", |
| | 39945 | }), |
| | 39946 | Schema.Struct({ |
| 36219 | emittedAtMs: Schema.optionalKey( | 39947 | emittedAtMs: Schema.optionalKey( |
| 36220 | Schema.Number.annotate({ | 39948 | Schema.Number.annotate({ |
| 36221 | description: | 39949 | description: |
| 36222 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39950 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36223 | format: "int64", | 39951 | format: "int64", |
| 36224 | }).check(Schema.isInt()), | 39952 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36225 | ), | 39953 | ), |
| 36226 | }).annotate({ | | |
| 36227 | title: "ServerNotification", | | |
| 36228 | description: "Notification sent from the server to the client.", | | |
| 36229 | }), | | |
| 36230 | Schema.Struct({ | | |
| 36231 | method: Schema.Literal("model/rerouted").annotate({ | 39954 | method: Schema.Literal("model/rerouted").annotate({ |
| 36232 | title: "Model/reroutedNotificationMethod", | 39955 | title: "Model/reroutedNotificationMethod", |
| 36233 | }), | 39956 | }), |
| 36234 | params: ServerNotification__ModelReroutedNotification, | 39957 | params: ServerNotification__ModelReroutedNotification, |
| | 39958 | }).annotate({ title: "Model/reroutedNotification" }), |
| | 39959 | Schema.Struct({ |
| 36235 | emittedAtMs: Schema.optionalKey( | 39960 | emittedAtMs: Schema.optionalKey( |
| 36236 | Schema.Number.annotate({ | 39961 | Schema.Number.annotate({ |
| 36237 | description: | 39962 | description: |
| 36238 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39963 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36239 | format: "int64", | 39964 | format: "int64", |
| 36240 | }).check(Schema.isInt()), | 39965 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36241 | ), | 39966 | ), |
| 36242 | }).annotate({ | | |
| 36243 | title: "ServerNotification", | | |
| 36244 | description: "Notification sent from the server to the client.", | | |
| 36245 | }), | | |
| 36246 | Schema.Struct({ | | |
| 36247 | method: Schema.Literal("model/verification").annotate({ | 39967 | method: Schema.Literal("model/verification").annotate({ |
| 36248 | title: "Model/verificationNotificationMethod", | 39968 | title: "Model/verificationNotificationMethod", |
| 36249 | }), | 39969 | }), |
| 36250 | params: ServerNotification__ModelVerificationNotification, | 39970 | params: ServerNotification__ModelVerificationNotification, |
| | 39971 | }).annotate({ title: "Model/verificationNotification" }), |
| | 39972 | Schema.Struct({ |
| 36251 | emittedAtMs: Schema.optionalKey( | 39973 | emittedAtMs: Schema.optionalKey( |
| 36252 | Schema.Number.annotate({ | 39974 | Schema.Number.annotate({ |
| 36253 | description: | 39975 | description: |
| 36254 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39976 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36255 | format: "int64", | 39977 | format: "int64", |
| 36256 | }).check(Schema.isInt()), | 39978 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36257 | ), | 39979 | ), |
| 36258 | }).annotate({ | | |
| 36259 | title: "ServerNotification", | | |
| 36260 | description: "Notification sent from the server to the client.", | | |
| 36261 | }), | | |
| 36262 | Schema.Struct({ | | |
| 36263 | method: Schema.Literal("turn/moderationMetadata").annotate({ | 39980 | method: Schema.Literal("turn/moderationMetadata").annotate({ |
| 36264 | title: "Turn/moderationMetadataNotificationMethod", | 39981 | title: "Turn/moderationMetadataNotificationMethod", |
| 36265 | }), | 39982 | }), |
| 36266 | params: ServerNotification__TurnModerationMetadataNotification, | 39983 | params: ServerNotification__TurnModerationMetadataNotification, |
| | 39984 | }).annotate({ title: "Turn/moderationMetadataNotification" }), |
| | 39985 | Schema.Struct({ |
| 36267 | emittedAtMs: Schema.optionalKey( | 39986 | emittedAtMs: Schema.optionalKey( |
| 36268 | Schema.Number.annotate({ | 39987 | Schema.Number.annotate({ |
| 36269 | description: | 39988 | description: |
| 36270 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 39989 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36271 | format: "int64", | 39990 | format: "int64", |
| 36272 | }).check(Schema.isInt()), | 39991 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36273 | ), | 39992 | ), |
| 36274 | }).annotate({ | | |
| 36275 | title: "ServerNotification", | | |
| 36276 | description: "Notification sent from the server to the client.", | | |
| 36277 | }), | | |
| 36278 | Schema.Struct({ | | |
| 36279 | method: Schema.Literal("model/safetyBuffering/updated").annotate({ | 39993 | method: Schema.Literal("model/safetyBuffering/updated").annotate({ |
| 36280 | title: "Model/safetyBuffering/updatedNotificationMethod", | 39994 | title: "Model/safetyBuffering/updatedNotificationMethod", |
| 36281 | }), | 39995 | }), |
| 36282 | params: ServerNotification__ModelSafetyBufferingUpdatedNotification, | 39996 | params: ServerNotification__ModelSafetyBufferingUpdatedNotification, |
| | 39997 | }).annotate({ title: "Model/safetyBuffering/updatedNotification" }), |
| | 39998 | Schema.Struct({ |
| 36283 | emittedAtMs: Schema.optionalKey( | 39999 | emittedAtMs: Schema.optionalKey( |
| 36284 | Schema.Number.annotate({ | 40000 | Schema.Number.annotate({ |
| 36285 | description: | 40001 | description: |
| 36286 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 40002 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36287 | format: "int64", | 40003 | format: "int64", |
| 36288 | }).check(Schema.isInt()), | 40004 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36289 | ), | 40005 | ), |
| 36290 | }).annotate({ | | |
| 36291 | title: "ServerNotification", | | |
| 36292 | description: "Notification sent from the server to the client.", | | |
| 36293 | }), | | |
| 36294 | Schema.Struct({ | | |
| 36295 | method: Schema.Literal("warning").annotate({ title: "WarningNotificationMethod" }), | 40006 | method: Schema.Literal("warning").annotate({ title: "WarningNotificationMethod" }), |
| 36296 | params: ServerNotification__WarningNotification, | 40007 | params: ServerNotification__WarningNotification, |
| | 40008 | }).annotate({ title: "WarningNotification" }), |
| | 40009 | Schema.Struct({ |
| 36297 | emittedAtMs: Schema.optionalKey( | 40010 | emittedAtMs: Schema.optionalKey( |
| 36298 | Schema.Number.annotate({ | 40011 | Schema.Number.annotate({ |
| 36299 | description: | 40012 | description: |
| 36300 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 40013 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36301 | format: "int64", | 40014 | format: "int64", |
| 36302 | }).check(Schema.isInt()), | 40015 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36303 | ), | 40016 | ), |
| 36304 | }).annotate({ | | |
| 36305 | title: "ServerNotification", | | |
| 36306 | description: "Notification sent from the server to the client.", | | |
| 36307 | }), | | |
| 36308 | Schema.Struct({ | | |
| 36309 | method: Schema.Literal("guardianWarning").annotate({ | 40017 | method: Schema.Literal("guardianWarning").annotate({ |
| 36310 | title: "GuardianWarningNotificationMethod", | 40018 | title: "GuardianWarningNotificationMethod", |
| 36311 | }), | 40019 | }), |
| 36312 | params: ServerNotification__GuardianWarningNotification, | 40020 | params: ServerNotification__GuardianWarningNotification, |
| | 40021 | }).annotate({ title: "GuardianWarningNotification" }), |
| | 40022 | Schema.Struct({ |
| 36313 | emittedAtMs: Schema.optionalKey( | 40023 | emittedAtMs: Schema.optionalKey( |
| 36314 | Schema.Number.annotate({ | 40024 | Schema.Number.annotate({ |
| 36315 | description: | 40025 | description: |
| 36316 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 40026 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36317 | format: "int64", | 40027 | format: "int64", |
| 36318 | }).check(Schema.isInt()), | 40028 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36319 | ), | 40029 | ), |
| 36320 | }).annotate({ | | |
| 36321 | title: "ServerNotification", | | |
| 36322 | description: "Notification sent from the server to the client.", | | |
| 36323 | }), | | |
| 36324 | Schema.Struct({ | | |
| 36325 | method: Schema.Literal("deprecationNotice").annotate({ | 40030 | method: Schema.Literal("deprecationNotice").annotate({ |
| 36326 | title: "DeprecationNoticeNotificationMethod", | 40031 | title: "DeprecationNoticeNotificationMethod", |
| 36327 | }), | 40032 | }), |
| 36328 | params: ServerNotification__DeprecationNoticeNotification, | 40033 | params: ServerNotification__DeprecationNoticeNotification, |
| | 40034 | }).annotate({ title: "DeprecationNoticeNotification" }), |
| | 40035 | Schema.Struct({ |
| 36329 | emittedAtMs: Schema.optionalKey( | 40036 | emittedAtMs: Schema.optionalKey( |
| 36330 | Schema.Number.annotate({ | 40037 | Schema.Number.annotate({ |
| 36331 | description: | 40038 | description: |
| 36332 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 40039 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36333 | format: "int64", | 40040 | format: "int64", |
| 36334 | }).check(Schema.isInt()), | 40041 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36335 | ), | 40042 | ), |
| 36336 | }).annotate({ | | |
| 36337 | title: "ServerNotification", | | |
| 36338 | description: "Notification sent from the server to the client.", | | |
| 36339 | }), | | |
| 36340 | Schema.Struct({ | | |
| 36341 | method: Schema.Literal("configWarning").annotate({ | 40043 | method: Schema.Literal("configWarning").annotate({ |
| 36342 | title: "ConfigWarningNotificationMethod", | 40044 | title: "ConfigWarningNotificationMethod", |
| 36343 | }), | 40045 | }), |
| 36344 | params: ServerNotification__ConfigWarningNotification, | 40046 | params: ServerNotification__ConfigWarningNotification, |
| | 40047 | }).annotate({ title: "ConfigWarningNotification" }), |
| | 40048 | Schema.Struct({ |
| 36345 | emittedAtMs: Schema.optionalKey( | 40049 | emittedAtMs: Schema.optionalKey( |
| 36346 | Schema.Number.annotate({ | 40050 | Schema.Number.annotate({ |
| 36347 | description: | 40051 | description: |
| 36348 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 40052 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36349 | format: "int64", | 40053 | format: "int64", |
| 36350 | }).check(Schema.isInt()), | 40054 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36351 | ), | 40055 | ), |
| 36352 | }).annotate({ | | |
| 36353 | title: "ServerNotification", | | |
| 36354 | description: "Notification sent from the server to the client.", | | |
| 36355 | }), | | |
| 36356 | Schema.Struct({ | | |
| 36357 | method: Schema.Literal("fuzzyFileSearch/sessionUpdated").annotate({ | 40056 | method: Schema.Literal("fuzzyFileSearch/sessionUpdated").annotate({ |
| 36358 | title: "FuzzyFileSearch/sessionUpdatedNotificationMethod", | 40057 | title: "FuzzyFileSearch/sessionUpdatedNotificationMethod", |
| 36359 | }), | 40058 | }), |
| 36360 | params: ServerNotification__FuzzyFileSearchSessionUpdatedNotification, | 40059 | params: ServerNotification__FuzzyFileSearchSessionUpdatedNotification, |
| | 40060 | }).annotate({ title: "FuzzyFileSearch/sessionUpdatedNotification" }), |
| | 40061 | Schema.Struct({ |
| 36361 | emittedAtMs: Schema.optionalKey( | 40062 | emittedAtMs: Schema.optionalKey( |
| 36362 | Schema.Number.annotate({ | 40063 | Schema.Number.annotate({ |
| 36363 | description: | 40064 | description: |
| 36364 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 40065 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36365 | format: "int64", | 40066 | format: "int64", |
| 36366 | }).check(Schema.isInt()), | 40067 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36367 | ), | 40068 | ), |
| 36368 | }).annotate({ | | |
| 36369 | title: "ServerNotification", | | |
| 36370 | description: "Notification sent from the server to the client.", | | |
| 36371 | }), | | |
| 36372 | Schema.Struct({ | | |
| 36373 | method: Schema.Literal("fuzzyFileSearch/sessionCompleted").annotate({ | 40069 | method: Schema.Literal("fuzzyFileSearch/sessionCompleted").annotate({ |
| 36374 | title: "FuzzyFileSearch/sessionCompletedNotificationMethod", | 40070 | title: "FuzzyFileSearch/sessionCompletedNotificationMethod", |
| 36375 | }), | 40071 | }), |
| 36376 | params: ServerNotification__FuzzyFileSearchSessionCompletedNotification, | 40072 | params: ServerNotification__FuzzyFileSearchSessionCompletedNotification, |
| | 40073 | }).annotate({ title: "FuzzyFileSearch/sessionCompletedNotification" }), |
| | 40074 | Schema.Struct({ |
| 36377 | emittedAtMs: Schema.optionalKey( | 40075 | emittedAtMs: Schema.optionalKey( |
| 36378 | Schema.Number.annotate({ | 40076 | Schema.Number.annotate({ |
| 36379 | description: | 40077 | description: |
| 36380 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 40078 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36381 | format: "int64", | 40079 | format: "int64", |
| 36382 | }).check(Schema.isInt()), | 40080 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36383 | ), | 40081 | ), |
| 36384 | }).annotate({ | | |
| 36385 | title: "ServerNotification", | | |
| 36386 | description: "Notification sent from the server to the client.", | | |
| 36387 | }), | | |
| 36388 | Schema.Struct({ | | |
| 36389 | method: Schema.Literal("thread/realtime/started").annotate({ | 40082 | method: Schema.Literal("thread/realtime/started").annotate({ |
| 36390 | title: "Thread/realtime/startedNotificationMethod", | 40083 | title: "Thread/realtime/startedNotificationMethod", |
| 36391 | }), | 40084 | }), |
| 36392 | params: ServerNotification__ThreadRealtimeStartedNotification, | 40085 | params: ServerNotification__ThreadRealtimeStartedNotification, |
| | 40086 | }).annotate({ title: "Thread/realtime/startedNotification" }), |
| | 40087 | Schema.Struct({ |
| 36393 | emittedAtMs: Schema.optionalKey( | 40088 | emittedAtMs: Schema.optionalKey( |
| 36394 | Schema.Number.annotate({ | 40089 | Schema.Number.annotate({ |
| 36395 | description: | 40090 | description: |
| 36396 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 40091 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36397 | format: "int64", | 40092 | format: "int64", |
| 36398 | }).check(Schema.isInt()), | 40093 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36399 | ), | 40094 | ), |
| 36400 | }).annotate({ | | |
| 36401 | title: "ServerNotification", | | |
| 36402 | description: "Notification sent from the server to the client.", | | |
| 36403 | }), | | |
| 36404 | Schema.Struct({ | | |
| 36405 | method: Schema.Literal("thread/realtime/itemAdded").annotate({ | 40095 | method: Schema.Literal("thread/realtime/itemAdded").annotate({ |
| 36406 | title: "Thread/realtime/itemAddedNotificationMethod", | 40096 | title: "Thread/realtime/itemAddedNotificationMethod", |
| 36407 | }), | 40097 | }), |
| 36408 | params: ServerNotification__ThreadRealtimeItemAddedNotification, | 40098 | params: ServerNotification__ThreadRealtimeItemAddedNotification, |
| | 40099 | }).annotate({ title: "Thread/realtime/itemAddedNotification" }), |
| | 40100 | Schema.Struct({ |
| 36409 | emittedAtMs: Schema.optionalKey( | 40101 | emittedAtMs: Schema.optionalKey( |
| 36410 | Schema.Number.annotate({ | 40102 | Schema.Number.annotate({ |
| 36411 | description: | 40103 | description: |
| 36412 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 40104 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36413 | format: "int64", | 40105 | format: "int64", |
| 36414 | }).check(Schema.isInt()), | 40106 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36415 | ), | 40107 | ), |
| 36416 | }).annotate({ | | |
| 36417 | title: "ServerNotification", | | |
| 36418 | description: "Notification sent from the server to the client.", | | |
| 36419 | }), | | |
| 36420 | Schema.Struct({ | | |
| 36421 | method: Schema.Literal("thread/realtime/transcript/delta").annotate({ | 40108 | method: Schema.Literal("thread/realtime/transcript/delta").annotate({ |
| 36422 | title: "Thread/realtime/transcript/deltaNotificationMethod", | 40109 | title: "Thread/realtime/transcript/deltaNotificationMethod", |
| 36423 | }), | 40110 | }), |
| 36424 | params: ServerNotification__ThreadRealtimeTranscriptDeltaNotification, | 40111 | params: ServerNotification__ThreadRealtimeTranscriptDeltaNotification, |
| | 40112 | }).annotate({ title: "Thread/realtime/transcript/deltaNotification" }), |
| | 40113 | Schema.Struct({ |
| 36425 | emittedAtMs: Schema.optionalKey( | 40114 | emittedAtMs: Schema.optionalKey( |
| 36426 | Schema.Number.annotate({ | 40115 | Schema.Number.annotate({ |
| 36427 | description: | 40116 | description: |
| 36428 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 40117 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36429 | format: "int64", | 40118 | format: "int64", |
| 36430 | }).check(Schema.isInt()), | 40119 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36431 | ), | 40120 | ), |
| 36432 | }).annotate({ | | |
| 36433 | title: "ServerNotification", | | |
| 36434 | description: "Notification sent from the server to the client.", | | |
| 36435 | }), | | |
| 36436 | Schema.Struct({ | | |
| 36437 | method: Schema.Literal("thread/realtime/transcript/done").annotate({ | 40121 | method: Schema.Literal("thread/realtime/transcript/done").annotate({ |
| 36438 | title: "Thread/realtime/transcript/doneNotificationMethod", | 40122 | title: "Thread/realtime/transcript/doneNotificationMethod", |
| 36439 | }), | 40123 | }), |
| 36440 | params: ServerNotification__ThreadRealtimeTranscriptDoneNotification, | 40124 | params: ServerNotification__ThreadRealtimeTranscriptDoneNotification, |
| | 40125 | }).annotate({ title: "Thread/realtime/transcript/doneNotification" }), |
| | 40126 | Schema.Struct({ |
| 36441 | emittedAtMs: Schema.optionalKey( | 40127 | emittedAtMs: Schema.optionalKey( |
| 36442 | Schema.Number.annotate({ | 40128 | Schema.Number.annotate({ |
| 36443 | description: | 40129 | description: |
| 36444 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 40130 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36445 | format: "int64", | 40131 | format: "int64", |
| 36446 | }).check(Schema.isInt()), | 40132 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36447 | ), | 40133 | ), |
| 36448 | }).annotate({ | | |
| 36449 | title: "ServerNotification", | | |
| 36450 | description: "Notification sent from the server to the client.", | | |
| 36451 | }), | | |
| 36452 | Schema.Struct({ | | |
| 36453 | method: Schema.Literal("thread/realtime/outputAudio/delta").annotate({ | 40134 | method: Schema.Literal("thread/realtime/outputAudio/delta").annotate({ |
| 36454 | title: "Thread/realtime/outputAudio/deltaNotificationMethod", | 40135 | title: "Thread/realtime/outputAudio/deltaNotificationMethod", |
| 36455 | }), | 40136 | }), |
| 36456 | params: ServerNotification__ThreadRealtimeOutputAudioDeltaNotification, | 40137 | params: ServerNotification__ThreadRealtimeOutputAudioDeltaNotification, |
| | 40138 | }).annotate({ title: "Thread/realtime/outputAudio/deltaNotification" }), |
| | 40139 | Schema.Struct({ |
| 36457 | emittedAtMs: Schema.optionalKey( | 40140 | emittedAtMs: Schema.optionalKey( |
| 36458 | Schema.Number.annotate({ | 40141 | Schema.Number.annotate({ |
| 36459 | description: | 40142 | description: |
| 36460 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 40143 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36461 | format: "int64", | 40144 | format: "int64", |
| 36462 | }).check(Schema.isInt()), | 40145 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36463 | ), | 40146 | ), |
| 36464 | }).annotate({ | | |
| 36465 | title: "ServerNotification", | | |
| 36466 | description: "Notification sent from the server to the client.", | | |
| 36467 | }), | | |
| 36468 | Schema.Struct({ | | |
| 36469 | method: Schema.Literal("thread/realtime/sdp").annotate({ | 40147 | method: Schema.Literal("thread/realtime/sdp").annotate({ |
| 36470 | title: "Thread/realtime/sdpNotificationMethod", | 40148 | title: "Thread/realtime/sdpNotificationMethod", |
| 36471 | }), | 40149 | }), |
| 36472 | params: ServerNotification__ThreadRealtimeSdpNotification, | 40150 | params: ServerNotification__ThreadRealtimeSdpNotification, |
| | 40151 | }).annotate({ title: "Thread/realtime/sdpNotification" }), |
| | 40152 | Schema.Struct({ |
| 36473 | emittedAtMs: Schema.optionalKey( | 40153 | emittedAtMs: Schema.optionalKey( |
| 36474 | Schema.Number.annotate({ | 40154 | Schema.Number.annotate({ |
| 36475 | description: | 40155 | description: |
| 36476 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 40156 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36477 | format: "int64", | 40157 | format: "int64", |
| 36478 | }).check(Schema.isInt()), | 40158 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36479 | ), | 40159 | ), |
| 36480 | }).annotate({ | | |
| 36481 | title: "ServerNotification", | | |
| 36482 | description: "Notification sent from the server to the client.", | | |
| 36483 | }), | | |
| 36484 | Schema.Struct({ | | |
| 36485 | method: Schema.Literal("thread/realtime/error").annotate({ | 40160 | method: Schema.Literal("thread/realtime/error").annotate({ |
| 36486 | title: "Thread/realtime/errorNotificationMethod", | 40161 | title: "Thread/realtime/errorNotificationMethod", |
| 36487 | }), | 40162 | }), |
| 36488 | params: ServerNotification__ThreadRealtimeErrorNotification, | 40163 | params: ServerNotification__ThreadRealtimeErrorNotification, |
| | 40164 | }).annotate({ title: "Thread/realtime/errorNotification" }), |
| | 40165 | Schema.Struct({ |
| 36489 | emittedAtMs: Schema.optionalKey( | 40166 | emittedAtMs: Schema.optionalKey( |
| 36490 | Schema.Number.annotate({ | 40167 | Schema.Number.annotate({ |
| 36491 | description: | 40168 | description: |
| 36492 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 40169 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36493 | format: "int64", | 40170 | format: "int64", |
| 36494 | }).check(Schema.isInt()), | 40171 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36495 | ), | 40172 | ), |
| 36496 | }).annotate({ | | |
| 36497 | title: "ServerNotification", | | |
| 36498 | description: "Notification sent from the server to the client.", | | |
| 36499 | }), | | |
| 36500 | Schema.Struct({ | | |
| 36501 | method: Schema.Literal("thread/realtime/closed").annotate({ | 40173 | method: Schema.Literal("thread/realtime/closed").annotate({ |
| 36502 | title: "Thread/realtime/closedNotificationMethod", | 40174 | title: "Thread/realtime/closedNotificationMethod", |
| 36503 | }), | 40175 | }), |
| 36504 | params: ServerNotification__ThreadRealtimeClosedNotification, | 40176 | params: ServerNotification__ThreadRealtimeClosedNotification, |
| | 40177 | }).annotate({ title: "Thread/realtime/closedNotification" }), |
| | 40178 | Schema.Struct({ |
| 36505 | emittedAtMs: Schema.optionalKey( | 40179 | emittedAtMs: Schema.optionalKey( |
| 36506 | Schema.Number.annotate({ | 40180 | Schema.Number.annotate({ |
| 36507 | description: | 40181 | description: |
| 36508 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 40182 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36509 | format: "int64", | 40183 | format: "int64", |
| 36510 | }).check(Schema.isInt()), | 40184 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36511 | ), | 40185 | ), |
| 36512 | }).annotate({ | | |
| 36513 | title: "ServerNotification", | | |
| 36514 | description: "Notification sent from the server to the client.", | | |
| 36515 | }), | | |
| 36516 | Schema.Struct({ | | |
| 36517 | method: Schema.Literal("windows/worldWritableWarning").annotate({ | 40186 | method: Schema.Literal("windows/worldWritableWarning").annotate({ |
| 36518 | title: "Windows/worldWritableWarningNotificationMethod", | 40187 | title: "Windows/worldWritableWarningNotificationMethod", |
| 36519 | }), | 40188 | }), |
| 36520 | params: ServerNotification__WindowsWorldWritableWarningNotification, | 40189 | params: ServerNotification__WindowsWorldWritableWarningNotification, |
| | 40190 | }).annotate({ |
| | 40191 | title: "Windows/worldWritableWarningNotification", |
| | 40192 | description: |
| | 40193 | "Notifies the user of world-writable directories on Windows, which cannot be protected by the sandbox.", |
| | 40194 | }), |
| | 40195 | Schema.Struct({ |
| 36521 | emittedAtMs: Schema.optionalKey( | 40196 | emittedAtMs: Schema.optionalKey( |
| 36522 | Schema.Number.annotate({ | 40197 | Schema.Number.annotate({ |
| 36523 | description: | 40198 | description: |
| 36524 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 40199 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36525 | format: "int64", | 40200 | format: "int64", |
| 36526 | }).check(Schema.isInt()), | 40201 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36527 | ), | 40202 | ), |
| 36528 | }).annotate({ | | |
| 36529 | title: "ServerNotification", | | |
| 36530 | description: "Notification sent from the server to the client.", | | |
| 36531 | }), | | |
| 36532 | Schema.Struct({ | | |
| 36533 | method: Schema.Literal("windowsSandbox/setupCompleted").annotate({ | 40203 | method: Schema.Literal("windowsSandbox/setupCompleted").annotate({ |
| 36534 | title: "WindowsSandbox/setupCompletedNotificationMethod", | 40204 | title: "WindowsSandbox/setupCompletedNotificationMethod", |
| 36535 | }), | 40205 | }), |
| 36536 | params: ServerNotification__WindowsSandboxSetupCompletedNotification, | 40206 | params: ServerNotification__WindowsSandboxSetupCompletedNotification, |
| | 40207 | }).annotate({ title: "WindowsSandbox/setupCompletedNotification" }), |
| | 40208 | Schema.Struct({ |
| 36537 | emittedAtMs: Schema.optionalKey( | 40209 | emittedAtMs: Schema.optionalKey( |
| 36538 | Schema.Number.annotate({ | 40210 | Schema.Number.annotate({ |
| 36539 | description: | 40211 | description: |
| 36540 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | 40212 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| 36541 | format: "int64", | 40213 | format: "int64", |
| 36542 | }).check(Schema.isInt()), | 40214 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 36543 | ), | 40215 | ), |
| 36544 | }).annotate({ | | |
| 36545 | title: "ServerNotification", | | |
| 36546 | description: "Notification sent from the server to the client.", | | |
| 36547 | }), | | |
| 36548 | Schema.Struct({ | | |
| 36549 | method: Schema.Literal("account/login/completed").annotate({ | 40216 | method: Schema.Literal("account/login/completed").annotate({ |
| 36550 | title: "Account/login/completedNotificationMethod", | 40217 | title: "Account/login/completedNotificationMethod", |
| 36551 | }), | 40218 | }), |
| 36552 | params: ServerNotification__AccountLoginCompletedNotification, | 40219 | params: ServerNotification__AccountLoginCompletedNotification, |
| 36553 | emittedAtMs: Schema.optionalKey( | 40220 | }).annotate({ title: "Account/login/completedNotification" }), |
| 36554 | Schema.Number.annotate({ | | |
| 36555 | description: | | |
| 36556 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", | | |
| 36557 | format: "int64", | | |
| 36558 | }).check(Schema.isInt()), | | |
| 36559 | ), | | |
| 36560 | }).annotate({ | | |
| 36561 | title: "ServerNotification", | | |
| 36562 | description: "Notification sent from the server to the client.", | | |
| 36563 | }), | | |
| 36564 | ], | 40221 | ], |
| 36565 | { mode: "oneOf" }, | 40222 | { mode: "oneOf" }, |
| 36566 | ); | 40223 | ).annotate({ |
| 36567 | | 40224 | title: "ServerNotification", |
| 36568 | export type ServerNotification__ByteRange = { readonly end: number; readonly start: number }; | 40225 | description: "Notification sent from the server to the client.", |
| 36569 | export const ServerNotification__ByteRange = Schema.Struct({ | | |
| 36570 | end: Schema.Number.annotate({ format: "uint" }) | | |
| 36571 | .check(Schema.isInt()) | | |
| 36572 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 36573 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 36574 | .check(Schema.isInt()) | | |
| 36575 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 36576 | }); | 40226 | }); |
| 36577 | | 40227 | |
| 36578 | export type ServerNotification__CollabAgentTool = | | |
| 36579 | | "spawnAgent" | | |
| 36580 | | "sendInput" | | |
| 36581 | | "resumeAgent" | | |
| 36582 | | "wait" | | |
| 36583 | | "closeAgent" | | |
| 36584 | | "sendMessage" | | |
| 36585 | | "followupTask" | | |
| 36586 | | "interruptAgent" | | |
| 36587 | | "listAgents"; | | |
| 36588 | export const ServerNotification__CollabAgentTool = Schema.Literals([ | | |
| 36589 | "spawnAgent", | | |
| 36590 | "sendInput", | | |
| 36591 | "resumeAgent", | | |
| 36592 | "wait", | | |
| 36593 | "closeAgent", | | |
| 36594 | "sendMessage", | | |
| 36595 | "followupTask", | | |
| 36596 | "interruptAgent", | | |
| 36597 | "listAgents", | | |
| 36598 | ]); | | |
| 36599 | | | |
| 36600 | export type ServerNotification__CollabAgentToolCallStatus = | | |
| 36601 | | "inProgress" | | |
| 36602 | | "completed" | | |
| 36603 | | "failed" | | |
| 36604 | | "interrupted"; | | |
| 36605 | export const ServerNotification__CollabAgentToolCallStatus = Schema.Literals([ | | |
| 36606 | "inProgress", | | |
| 36607 | "completed", | | |
| 36608 | "failed", | | |
| 36609 | "interrupted", | | |
| 36610 | ]); | | |
| 36611 | | | |
| 36612 | export type ServerNotification__CommandExecOutputStream = "stdout" | "stderr"; | | |
| 36613 | export const ServerNotification__CommandExecOutputStream = Schema.Literals([ | | |
| 36614 | "stdout", | | |
| 36615 | "stderr", | | |
| 36616 | ]).annotate({ description: "Stream label for `command/exec/outputDelta` notifications." }); | | |
| 36617 | | | |
| 36618 | export type ServerNotification__CommandExecutionSource = | | |
| 36619 | | "agent" | | |
| 36620 | | "userShell" | | |
| 36621 | | "unifiedExecStartup" | | |
| 36622 | | "unifiedExecInteraction"; | | |
| 36623 | export const ServerNotification__CommandExecutionSource = Schema.Literals([ | | |
| 36624 | "agent", | | |
| 36625 | "userShell", | | |
| 36626 | "unifiedExecStartup", | | |
| 36627 | "unifiedExecInteraction", | | |
| 36628 | ]); | | |
| 36629 | | | |
| 36630 | export type ServerNotification__HookSource = | | |
| 36631 | | "system" | | |
| 36632 | | "user" | | |
| 36633 | | "project" | | |
| 36634 | | "mdm" | | |
| 36635 | | "sessionFlags" | | |
| 36636 | | "plugin" | | |
| 36637 | | "cloudRequirements" | | |
| 36638 | | "cloudManagedConfig" | | |
| 36639 | | "legacyManagedConfigFile" | | |
| 36640 | | "legacyManagedConfigMdm" | | |
| 36641 | | "unknown"; | | |
| 36642 | export const ServerNotification__HookSource = Schema.Literals([ | | |
| 36643 | "system", | | |
| 36644 | "user", | | |
| 36645 | "project", | | |
| 36646 | "mdm", | | |
| 36647 | "sessionFlags", | | |
| 36648 | "plugin", | | |
| 36649 | "cloudRequirements", | | |
| 36650 | "cloudManagedConfig", | | |
| 36651 | "legacyManagedConfigFile", | | |
| 36652 | "legacyManagedConfigMdm", | | |
| 36653 | "unknown", | | |
| 36654 | ]); | | |
| 36655 | | | |
| 36656 | export type ServerNotification__MultiAgentMode = | 40228 | export type ServerNotification__MultiAgentMode = |
| 36657 | | "explicitRequestOnly" | 40229 | | "explicitRequestOnly" |
| 36658 | | "proactive" | 40230 | | "proactive" |
| ... | @@ -36668,45 +40240,15 @@ export const ServerNotification__MultiAgentMode = Schema.Union( | ... | @@ -36668,45 +40240,15 @@ export const ServerNotification__MultiAgentMode = Schema.Union( |
| 36668 | "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.", | 40240 | "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.", |
| 36669 | }); | 40241 | }); |
| 36670 | | 40242 | |
| 36671 | export type ServerNotification__NetworkAccess = "restricted" | "enabled"; | 40243 | export type ServerNotification__ThreadExtra = { readonly [x: string]: Schema.Json }; |
| 36672 | export const ServerNotification__NetworkAccess = Schema.Literals(["restricted", "enabled"]); | 40244 | export const ServerNotification__ThreadExtra = Schema.Record( |
| 36673 | | 40245 | Schema.String, |
| 36674 | export type ServerNotification__ProcessOutputStream = "stdout" | "stderr"; | 40246 | Schema.Json.annotate({ expected: "JSON value" }), |
| 36675 | export const ServerNotification__ProcessOutputStream = Schema.Literals([ | 40247 | ).annotate({ description: "Extra app-server data for a thread." }); |
| 36676 | "stdout", | | |
| 36677 | "stderr", | | |
| 36678 | ]).annotate({ description: "Stream label for `process/outputDelta` notifications." }); | | |
| 36679 | | | |
| 36680 | export type ServerNotification__SessionSource = | | |
| 36681 | | "cli" | | |
| 36682 | | "vscode" | | |
| 36683 | | "exec" | | |
| 36684 | | "appServer" | | |
| 36685 | | "unknown" | | |
| 36686 | | { readonly custom: string } | | |
| 36687 | | { readonly subAgent: ServerNotification__SubAgentSource }; | | |
| 36688 | export const ServerNotification__SessionSource = Schema.Union( | | |
| 36689 | [ | | |
| 36690 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), | | |
| 36691 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), | | |
| 36692 | Schema.Struct({ subAgent: ServerNotification__SubAgentSource }).annotate({ | | |
| 36693 | title: "SubAgentSessionSource", | | |
| 36694 | }), | | |
| 36695 | ], | | |
| 36696 | { mode: "oneOf" }, | | |
| 36697 | ); | | |
| 36698 | | | |
| 36699 | export type ServerNotification__ThreadExtra = {}; | | |
| 36700 | export const ServerNotification__ThreadExtra = Schema.Struct({}).annotate({ | | |
| 36701 | description: "Extra app-server data for a thread.", | | |
| 36702 | }); | | |
| 36703 | | 40248 | |
| 36704 | export type ServerNotification__ThreadHistoryMode = "legacy" | "paginated"; | 40249 | export type ServerNotification__ThreadHistoryMode = "legacy" | "paginated"; |
| 36705 | export const ServerNotification__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]); | 40250 | export const ServerNotification__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]); |
| 36706 | | 40251 | |
| 36707 | export type ServerNotification__TurnItemsView = "notLoaded" | "summary" | "full"; | | |
| 36708 | export const ServerNotification__TurnItemsView = Schema.Literals(["notLoaded", "summary", "full"]); | | |
| 36709 | | | |
| 36710 | export type ServerRequest = | 40252 | export type ServerRequest = |
| 36711 | | { | 40253 | | { |
| 36712 | readonly id: ServerRequest__RequestId; | 40254 | readonly id: ServerRequest__RequestId; |
| ... | @@ -36941,8 +40483,12 @@ export const ToolRequestUserInputParams = Schema.Struct({ | ... | @@ -36941,8 +40483,12 @@ export const ToolRequestUserInputParams = Schema.Struct({ |
| 36941 | autoResolutionMs: Schema.optionalKey( | 40483 | autoResolutionMs: Schema.optionalKey( |
| 36942 | Schema.Union([ | 40484 | Schema.Union([ |
| 36943 | Schema.Number.annotate({ format: "uint64" }) | 40485 | Schema.Number.annotate({ format: "uint64" }) |
| 36944 | .check(Schema.isInt()) | 40486 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 36945 | .check(Schema.isGreaterThanOrEqualTo(0)), | 40487 | .check( |
| | 40488 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 40489 | expected: "a value greater than or equal to 0", |
| | 40490 | }), |
| | 40491 | ), |
| 36946 | Schema.Null, | 40492 | Schema.Null, |
| 36947 | ]), | 40493 | ]), |
| 36948 | ), | 40494 | ), |
| ... | @@ -36979,16 +40525,16 @@ export const V1InitializeParams = Schema.Struct({ | ... | @@ -36979,16 +40525,16 @@ export const V1InitializeParams = Schema.Struct({ |
| 36979 | }).annotate({ title: "InitializeParams" }); | 40525 | }).annotate({ title: "InitializeParams" }); |
| 36980 | | 40526 | |
| 36981 | export type V1InitializeResponse = { | 40527 | export type V1InitializeResponse = { |
| 36982 | readonly codexHome: string; | 40528 | readonly codexHome: V1InitializeResponse__AbsolutePathBuf; |
| 36983 | readonly platformFamily: string; | 40529 | readonly platformFamily: string; |
| 36984 | readonly platformOs: string; | 40530 | readonly platformOs: string; |
| 36985 | readonly userAgent: string; | 40531 | readonly userAgent: string; |
| 36986 | }; | 40532 | }; |
| 36987 | export const V1InitializeResponse = Schema.Struct({ | 40533 | export const V1InitializeResponse = Schema.Struct({ |
| 36988 | codexHome: Schema.String.annotate({ | 40534 | codexHome: Schema.suspend( |
| 36989 | description: | 40535 | (): Schema.Codec<V1InitializeResponse__AbsolutePathBuf> => |
| 36990 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 40536 | V1InitializeResponse__AbsolutePathBuf, |
| 36991 | }), | 40537 | ).annotate({ description: "Absolute path to the server's $CODEX_HOME directory." }), |
| 36992 | platformFamily: Schema.String.annotate({ | 40538 | platformFamily: Schema.String.annotate({ |
| 36993 | description: | 40539 | description: |
| 36994 | 'Platform family for the running app-server target, for example `"unix"` or `"windows"`.', | 40540 | 'Platform family for the running app-server target, for example `"unix"` or `"windows"`.', |
| ... | @@ -37000,12 +40546,6 @@ export const V1InitializeResponse = Schema.Struct({ | ... | @@ -37000,12 +40546,6 @@ export const V1InitializeResponse = Schema.Struct({ |
| 37000 | userAgent: Schema.String, | 40546 | userAgent: Schema.String, |
| 37001 | }).annotate({ title: "InitializeResponse" }); | 40547 | }).annotate({ title: "InitializeResponse" }); |
| 37002 | | 40548 | |
| 37003 | export type V1InitializeResponse__AbsolutePathBuf = string; | | |
| 37004 | export const V1InitializeResponse__AbsolutePathBuf = Schema.String.annotate({ | | |
| 37005 | description: | | |
| 37006 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | | |
| 37007 | }); | | |
| 37008 | | | |
| 37009 | export type V2AccountLoginCompletedNotification = { | 40549 | export type V2AccountLoginCompletedNotification = { |
| 37010 | readonly error?: string | null; | 40550 | readonly error?: string | null; |
| 37011 | readonly loginId?: string | null; | 40551 | readonly loginId?: string | null; |
| ... | @@ -37120,8 +40660,12 @@ export const V2AppsListParams = Schema.Struct({ | ... | @@ -37120,8 +40660,12 @@ export const V2AppsListParams = Schema.Struct({ |
| 37120 | description: "Optional page size; defaults to a reasonable server-side value.", | 40660 | description: "Optional page size; defaults to a reasonable server-side value.", |
| 37121 | format: "uint32", | 40661 | format: "uint32", |
| 37122 | }) | 40662 | }) |
| 37123 | .check(Schema.isInt()) | 40663 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 37124 | .check(Schema.isGreaterThanOrEqualTo(0)), | 40664 | .check( |
| | 40665 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 40666 | expected: "a value greater than or equal to 0", |
| | 40667 | }), |
| | 40668 | ), |
| 37125 | Schema.Null, | 40669 | Schema.Null, |
| 37126 | ]), | 40670 | ]), |
| 37127 | ), | 40671 | ), |
| ... | @@ -37201,7 +40745,7 @@ export type V2CommandExecOutputDeltaNotification = { | ... | @@ -37201,7 +40745,7 @@ export type V2CommandExecOutputDeltaNotification = { |
| 37201 | readonly capReached: boolean; | 40745 | readonly capReached: boolean; |
| 37202 | readonly deltaBase64: string; | 40746 | readonly deltaBase64: string; |
| 37203 | readonly processId: string; | 40747 | readonly processId: string; |
| 37204 | readonly stream: "stdout" | "stderr"; | 40748 | readonly stream: V2CommandExecOutputDeltaNotification__CommandExecOutputStream; |
| 37205 | }; | 40749 | }; |
| 37206 | export const V2CommandExecOutputDeltaNotification = Schema.Struct({ | 40750 | export const V2CommandExecOutputDeltaNotification = Schema.Struct({ |
| 37207 | capReached: Schema.Boolean.annotate({ | 40751 | capReached: Schema.Boolean.annotate({ |
| ... | @@ -37213,21 +40757,16 @@ export const V2CommandExecOutputDeltaNotification = Schema.Struct({ | ... | @@ -37213,21 +40757,16 @@ export const V2CommandExecOutputDeltaNotification = Schema.Struct({ |
| 37213 | description: | 40757 | description: |
| 37214 | "Client-supplied, connection-scoped `processId` from the original `command/exec` request.", | 40758 | "Client-supplied, connection-scoped `processId` from the original `command/exec` request.", |
| 37215 | }), | 40759 | }), |
| 37216 | stream: Schema.Literals(["stdout", "stderr"]).annotate({ | 40760 | stream: Schema.suspend( |
| 37217 | description: "Stream label for `command/exec/outputDelta` notifications.", | 40761 | (): Schema.Codec<V2CommandExecOutputDeltaNotification__CommandExecOutputStream> => |
| 37218 | }), | 40762 | V2CommandExecOutputDeltaNotification__CommandExecOutputStream, |
| | 40763 | ).annotate({ description: "Output stream for this chunk." }), |
| 37219 | }).annotate({ | 40764 | }).annotate({ |
| 37220 | title: "CommandExecOutputDeltaNotification", | 40765 | title: "CommandExecOutputDeltaNotification", |
| 37221 | description: | 40766 | description: |
| 37222 | "Base64-encoded output chunk emitted for a streaming `command/exec` request.\n\nThese notifications are connection-scoped. If the originating connection closes, the server terminates the process.", | 40767 | "Base64-encoded output chunk emitted for a streaming `command/exec` request.\n\nThese notifications are connection-scoped. If the originating connection closes, the server terminates the process.", |
| 37223 | }); | 40768 | }); |
| 37224 | | 40769 | |
| 37225 | export type V2CommandExecOutputDeltaNotification__CommandExecOutputStream = "stdout" | "stderr"; | | |
| 37226 | export const V2CommandExecOutputDeltaNotification__CommandExecOutputStream = Schema.Literals([ | | |
| 37227 | "stdout", | | |
| 37228 | "stderr", | | |
| 37229 | ]).annotate({ description: "Stream label for `command/exec/outputDelta` notifications." }); | | |
| 37230 | | | |
| 37231 | export type V2CommandExecParams = { | 40770 | export type V2CommandExecParams = { |
| 37232 | readonly command: ReadonlyArray<string>; | 40771 | readonly command: ReadonlyArray<string>; |
| 37233 | readonly cwd?: string | null; | 40772 | readonly cwd?: string | null; |
| ... | @@ -37283,8 +40822,12 @@ export const V2CommandExecParams = Schema.Struct({ | ... | @@ -37283,8 +40822,12 @@ export const V2CommandExecParams = Schema.Struct({ |
| 37283 | "Optional per-stream stdout/stderr capture cap in bytes.\n\nWhen omitted, the server default applies. Cannot be combined with `disableOutputCap`.", | 40822 | "Optional per-stream stdout/stderr capture cap in bytes.\n\nWhen omitted, the server default applies. Cannot be combined with `disableOutputCap`.", |
| 37284 | format: "uint", | 40823 | format: "uint", |
| 37285 | }) | 40824 | }) |
| 37286 | .check(Schema.isInt()) | 40825 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 37287 | .check(Schema.isGreaterThanOrEqualTo(0)), | 40826 | .check( |
| | 40827 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 40828 | expected: "a value greater than or equal to 0", |
| | 40829 | }), |
| | 40830 | ), |
| 37288 | Schema.Null, | 40831 | Schema.Null, |
| 37289 | ]), | 40832 | ]), |
| 37290 | ), | 40833 | ), |
| ... | @@ -37326,7 +40869,7 @@ export const V2CommandExecParams = Schema.Struct({ | ... | @@ -37326,7 +40869,7 @@ export const V2CommandExecParams = Schema.Struct({ |
| 37326 | description: | 40869 | description: |
| 37327 | "Optional timeout in milliseconds.\n\nWhen omitted, the server default applies. Cannot be combined with `disableTimeout`.", | 40870 | "Optional timeout in milliseconds.\n\nWhen omitted, the server default applies. Cannot be combined with `disableTimeout`.", |
| 37328 | format: "int64", | 40871 | format: "int64", |
| 37329 | }).check(Schema.isInt()), | 40872 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 37330 | Schema.Null, | 40873 | Schema.Null, |
| 37331 | ]), | 40874 | ]), |
| 37332 | ), | 40875 | ), |
| ... | @@ -37341,58 +40884,29 @@ export const V2CommandExecParams = Schema.Struct({ | ... | @@ -37341,58 +40884,29 @@ export const V2CommandExecParams = Schema.Struct({ |
| 37341 | "Run a standalone command (argv vector) in the server sandbox without creating a thread or turn.\n\nThe final `command/exec` response is deferred until the process exits and is sent only after all `command/exec/outputDelta` notifications for that connection have been emitted.", | 40884 | "Run a standalone command (argv vector) in the server sandbox without creating a thread or turn.\n\nThe final `command/exec` response is deferred until the process exits and is sent only after all `command/exec/outputDelta` notifications for that connection have been emitted.", |
| 37342 | }); | 40885 | }); |
| 37343 | | 40886 | |
| 37344 | export type V2CommandExecParams__NetworkAccess = "restricted" | "enabled"; | | |
| 37345 | export const V2CommandExecParams__NetworkAccess = Schema.Literals(["restricted", "enabled"]); | | |
| 37346 | | | |
| 37347 | export type V2CommandExecResizeParams = { | 40887 | export type V2CommandExecResizeParams = { |
| 37348 | readonly processId: string; | 40888 | readonly processId: string; |
| 37349 | readonly size: { readonly cols: number; readonly rows: number }; | 40889 | readonly size: V2CommandExecResizeParams__CommandExecTerminalSize; |
| 37350 | }; | 40890 | }; |
| 37351 | export const V2CommandExecResizeParams = Schema.Struct({ | 40891 | export const V2CommandExecResizeParams = Schema.Struct({ |
| 37352 | processId: Schema.String.annotate({ | 40892 | processId: Schema.String.annotate({ |
| 37353 | description: | 40893 | description: |
| 37354 | "Client-supplied, connection-scoped `processId` from the original `command/exec` request.", | 40894 | "Client-supplied, connection-scoped `processId` from the original `command/exec` request.", |
| 37355 | }), | 40895 | }), |
| 37356 | size: Schema.Struct({ | 40896 | size: Schema.suspend( |
| 37357 | cols: Schema.Number.annotate({ | 40897 | (): Schema.Codec<V2CommandExecResizeParams__CommandExecTerminalSize> => |
| 37358 | description: "Terminal width in character cells.", | 40898 | V2CommandExecResizeParams__CommandExecTerminalSize, |
| 37359 | format: "uint16", | 40899 | ).annotate({ description: "New PTY size in character cells." }), |
| 37360 | }) | | |
| 37361 | .check(Schema.isInt()) | | |
| 37362 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 37363 | rows: Schema.Number.annotate({ | | |
| 37364 | description: "Terminal height in character cells.", | | |
| 37365 | format: "uint16", | | |
| 37366 | }) | | |
| 37367 | .check(Schema.isInt()) | | |
| 37368 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 37369 | }).annotate({ description: "PTY size in character cells for `command/exec` PTY sessions." }), | | |
| 37370 | }).annotate({ | 40900 | }).annotate({ |
| 37371 | title: "CommandExecResizeParams", | 40901 | title: "CommandExecResizeParams", |
| 37372 | description: "Resize a running PTY-backed `command/exec` session.", | 40902 | description: "Resize a running PTY-backed `command/exec` session.", |
| 37373 | }); | 40903 | }); |
| 37374 | | 40904 | |
| 37375 | export type V2CommandExecResizeParams__CommandExecTerminalSize = { | 40905 | export type V2CommandExecResizeResponse = { readonly [x: string]: Schema.Json }; |
| 37376 | readonly cols: number; | 40906 | export const V2CommandExecResizeResponse = Schema.Record( |
| 37377 | readonly rows: number; | 40907 | Schema.String, |
| 37378 | }; | 40908 | Schema.Json.annotate({ expected: "JSON value" }), |
| 37379 | export const V2CommandExecResizeParams__CommandExecTerminalSize = Schema.Struct({ | 40909 | ).annotate({ |
| 37380 | cols: Schema.Number.annotate({ | | |
| 37381 | description: "Terminal width in character cells.", | | |
| 37382 | format: "uint16", | | |
| 37383 | }) | | |
| 37384 | .check(Schema.isInt()) | | |
| 37385 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 37386 | rows: Schema.Number.annotate({ | | |
| 37387 | description: "Terminal height in character cells.", | | |
| 37388 | format: "uint16", | | |
| 37389 | }) | | |
| 37390 | .check(Schema.isInt()) | | |
| 37391 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 37392 | }).annotate({ description: "PTY size in character cells for `command/exec` PTY sessions." }); | | |
| 37393 | | | |
| 37394 | export type V2CommandExecResizeResponse = {}; | | |
| 37395 | export const V2CommandExecResizeResponse = Schema.Struct({}).annotate({ | | |
| 37396 | title: "CommandExecResizeResponse", | 40910 | title: "CommandExecResizeResponse", |
| 37397 | description: "Empty success response for `command/exec/resize`.", | 40911 | description: "Empty success response for `command/exec/resize`.", |
| 37398 | }); | 40912 | }); |
| ... | @@ -37404,7 +40918,7 @@ export type V2CommandExecResponse = { | ... | @@ -37404,7 +40918,7 @@ export type V2CommandExecResponse = { |
| 37404 | }; | 40918 | }; |
| 37405 | export const V2CommandExecResponse = Schema.Struct({ | 40919 | export const V2CommandExecResponse = Schema.Struct({ |
| 37406 | exitCode: Schema.Number.annotate({ description: "Process exit code.", format: "int32" }).check( | 40920 | exitCode: Schema.Number.annotate({ description: "Process exit code.", format: "int32" }).check( |
| 37407 | Schema.isInt(), | 40921 | Schema.isInt().annotate({ expected: "an integer" }), |
| 37408 | ), | 40922 | ), |
| 37409 | stderr: Schema.String.annotate({ | 40923 | stderr: Schema.String.annotate({ |
| 37410 | description: | 40924 | description: |
| ... | @@ -37430,8 +40944,11 @@ export const V2CommandExecTerminateParams = Schema.Struct({ | ... | @@ -37430,8 +40944,11 @@ export const V2CommandExecTerminateParams = Schema.Struct({ |
| 37430 | description: "Terminate a running `command/exec` session.", | 40944 | description: "Terminate a running `command/exec` session.", |
| 37431 | }); | 40945 | }); |
| 37432 | | 40946 | |
| 37433 | export type V2CommandExecTerminateResponse = {}; | 40947 | export type V2CommandExecTerminateResponse = { readonly [x: string]: Schema.Json }; |
| 37434 | export const V2CommandExecTerminateResponse = Schema.Struct({}).annotate({ | 40948 | export const V2CommandExecTerminateResponse = Schema.Record( |
| | 40949 | Schema.String, |
| | 40950 | Schema.Json.annotate({ expected: "JSON value" }), |
| | 40951 | ).annotate({ |
| 37435 | title: "CommandExecTerminateResponse", | 40952 | title: "CommandExecTerminateResponse", |
| 37436 | description: "Empty success response for `command/exec/terminate`.", | 40953 | description: "Empty success response for `command/exec/terminate`.", |
| 37437 | }); | 40954 | }); |
| ... | @@ -37475,8 +40992,11 @@ export const V2CommandExecWriteParams = Schema.Struct({ | ... | @@ -37475,8 +40992,11 @@ export const V2CommandExecWriteParams = Schema.Struct({ |
| 37475 | description: "Write stdin bytes to a running `command/exec` session, close stdin, or both.", | 40992 | description: "Write stdin bytes to a running `command/exec` session, close stdin, or both.", |
| 37476 | }); | 40993 | }); |
| 37477 | | 40994 | |
| 37478 | export type V2CommandExecWriteResponse = {}; | 40995 | export type V2CommandExecWriteResponse = { readonly [x: string]: Schema.Json }; |
| 37479 | export const V2CommandExecWriteResponse = Schema.Struct({}).annotate({ | 40996 | export const V2CommandExecWriteResponse = Schema.Record( |
| | 40997 | Schema.String, |
| | 40998 | Schema.Json.annotate({ expected: "JSON value" }), |
| | 40999 | ).annotate({ |
| 37480 | title: "CommandExecWriteResponse", | 41000 | title: "CommandExecWriteResponse", |
| 37481 | description: "Empty success response for `command/exec/write`.", | 41001 | description: "Empty success response for `command/exec/write`.", |
| 37482 | }); | 41002 | }); |
| ... | @@ -37698,8 +41218,12 @@ export const V2ConfigRequirementsReadResponse__NetworkRequirements = Schema.Stru | ... | @@ -37698,8 +41218,12 @@ export const V2ConfigRequirementsReadResponse__NetworkRequirements = Schema.Stru |
| 37698 | httpPort: Schema.optionalKey( | 41218 | httpPort: Schema.optionalKey( |
| 37699 | Schema.Union([ | 41219 | Schema.Union([ |
| 37700 | Schema.Number.annotate({ format: "uint16" }) | 41220 | Schema.Number.annotate({ format: "uint16" }) |
| 37701 | .check(Schema.isInt()) | 41221 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 37702 | .check(Schema.isGreaterThanOrEqualTo(0)), | 41222 | .check( |
| | 41223 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 41224 | expected: "a value greater than or equal to 0", |
| | 41225 | }), |
| | 41226 | ), |
| 37703 | Schema.Null, | 41227 | Schema.Null, |
| 37704 | ]), | 41228 | ]), |
| 37705 | ), | 41229 | ), |
| ... | @@ -37715,8 +41239,12 @@ export const V2ConfigRequirementsReadResponse__NetworkRequirements = Schema.Stru | ... | @@ -37715,8 +41239,12 @@ export const V2ConfigRequirementsReadResponse__NetworkRequirements = Schema.Stru |
| 37715 | socksPort: Schema.optionalKey( | 41239 | socksPort: Schema.optionalKey( |
| 37716 | Schema.Union([ | 41240 | Schema.Union([ |
| 37717 | Schema.Number.annotate({ format: "uint16" }) | 41241 | Schema.Number.annotate({ format: "uint16" }) |
| 37718 | .check(Schema.isInt()) | 41242 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 37719 | .check(Schema.isGreaterThanOrEqualTo(0)), | 41243 | .check( |
| | 41244 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 41245 | expected: "a value greater than or equal to 0", |
| | 41246 | }), |
| | 41247 | ), |
| 37720 | Schema.Null, | 41248 | Schema.Null, |
| 37721 | ]), | 41249 | ]), |
| 37722 | ), | 41250 | ), |
| ... | @@ -37738,7 +41266,7 @@ export type V2ConfigValueWriteParams = { | ... | @@ -37738,7 +41266,7 @@ export type V2ConfigValueWriteParams = { |
| 37738 | readonly filePath?: string | null; | 41266 | readonly filePath?: string | null; |
| 37739 | readonly keyPath: string; | 41267 | readonly keyPath: string; |
| 37740 | readonly mergeStrategy: V2ConfigValueWriteParams__MergeStrategy; | 41268 | readonly mergeStrategy: V2ConfigValueWriteParams__MergeStrategy; |
| 37741 | readonly value: unknown; | 41269 | readonly value: Schema.Json; |
| 37742 | }; | 41270 | }; |
| 37743 | export const V2ConfigValueWriteParams = Schema.Struct({ | 41271 | export const V2ConfigValueWriteParams = Schema.Struct({ |
| 37744 | expectedVersion: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 41272 | expectedVersion: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -37753,7 +41281,7 @@ export const V2ConfigValueWriteParams = Schema.Struct({ | ... | @@ -37753,7 +41281,7 @@ export const V2ConfigValueWriteParams = Schema.Struct({ |
| 37753 | ), | 41281 | ), |
| 37754 | keyPath: Schema.String, | 41282 | keyPath: Schema.String, |
| 37755 | mergeStrategy: V2ConfigValueWriteParams__MergeStrategy, | 41283 | mergeStrategy: V2ConfigValueWriteParams__MergeStrategy, |
| 37756 | value: Schema.Unknown, | 41284 | value: Schema.Json.annotate({ expected: "JSON value" }), |
| 37757 | }).annotate({ title: "ConfigValueWriteParams" }); | 41285 | }).annotate({ title: "ConfigValueWriteParams" }); |
| 37758 | | 41286 | |
| 37759 | export type V2ConfigWarningNotification = { | 41287 | export type V2ConfigWarningNotification = { |
| ... | @@ -37786,16 +41314,16 @@ export const V2ConfigWarningNotification = Schema.Struct({ | ... | @@ -37786,16 +41314,16 @@ export const V2ConfigWarningNotification = Schema.Struct({ |
| 37786 | }).annotate({ title: "ConfigWarningNotification" }); | 41314 | }).annotate({ title: "ConfigWarningNotification" }); |
| 37787 | | 41315 | |
| 37788 | export type V2ConfigWriteResponse = { | 41316 | export type V2ConfigWriteResponse = { |
| 37789 | readonly filePath: string; | 41317 | readonly filePath: V2ConfigWriteResponse__AbsolutePathBuf; |
| 37790 | readonly overriddenMetadata?: V2ConfigWriteResponse__OverriddenMetadata | null; | 41318 | readonly overriddenMetadata?: V2ConfigWriteResponse__OverriddenMetadata | null; |
| 37791 | readonly status: V2ConfigWriteResponse__WriteStatus; | 41319 | readonly status: V2ConfigWriteResponse__WriteStatus; |
| 37792 | readonly version: string; | 41320 | readonly version: string; |
| 37793 | }; | 41321 | }; |
| 37794 | export const V2ConfigWriteResponse = Schema.Struct({ | 41322 | export const V2ConfigWriteResponse = Schema.Struct({ |
| 37795 | filePath: Schema.String.annotate({ | 41323 | filePath: Schema.suspend( |
| 37796 | description: | 41324 | (): Schema.Codec<V2ConfigWriteResponse__AbsolutePathBuf> => |
| 37797 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 41325 | V2ConfigWriteResponse__AbsolutePathBuf, |
| 37798 | }), | 41326 | ).annotate({ description: "Canonical path to the config file that was written." }), |
| 37799 | overriddenMetadata: Schema.optionalKey( | 41327 | overriddenMetadata: Schema.optionalKey( |
| 37800 | Schema.Union([V2ConfigWriteResponse__OverriddenMetadata, Schema.Null]), | 41328 | Schema.Union([V2ConfigWriteResponse__OverriddenMetadata, Schema.Null]), |
| 37801 | ), | 41329 | ), |
| ... | @@ -37916,8 +41444,12 @@ export const V2ExperimentalFeatureListParams = Schema.Struct({ | ... | @@ -37916,8 +41444,12 @@ export const V2ExperimentalFeatureListParams = Schema.Struct({ |
| 37916 | description: "Optional page size; defaults to a reasonable server-side value.", | 41444 | description: "Optional page size; defaults to a reasonable server-side value.", |
| 37917 | format: "uint32", | 41445 | format: "uint32", |
| 37918 | }) | 41446 | }) |
| 37919 | .check(Schema.isInt()) | 41447 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 37920 | .check(Schema.isGreaterThanOrEqualTo(0)), | 41448 | .check( |
| | 41449 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 41450 | expected: "a value greater than or equal to 0", |
| | 41451 | }), |
| | 41452 | ), |
| 37921 | Schema.Null, | 41453 | Schema.Null, |
| 37922 | ]), | 41454 | ]), |
| 37923 | ), | 41455 | ), |
| ... | @@ -37949,20 +41481,6 @@ export const V2ExperimentalFeatureListResponse = Schema.Struct({ | ... | @@ -37949,20 +41481,6 @@ export const V2ExperimentalFeatureListResponse = Schema.Struct({ |
| 37949 | ), | 41481 | ), |
| 37950 | }).annotate({ title: "ExperimentalFeatureListResponse" }); | 41482 | }).annotate({ title: "ExperimentalFeatureListResponse" }); |
| 37951 | | 41483 | |
| 37952 | export type V2ExperimentalFeatureListResponse__ExperimentalFeatureStage = | | |
| 37953 | | "beta" | | |
| 37954 | | "underDevelopment" | | |
| 37955 | | "stable" | | |
| 37956 | | "deprecated" | | |
| 37957 | | "removed"; | | |
| 37958 | export const V2ExperimentalFeatureListResponse__ExperimentalFeatureStage = Schema.Literals([ | | |
| 37959 | "beta", | | |
| 37960 | "underDevelopment", | | |
| 37961 | "stable", | | |
| 37962 | "deprecated", | | |
| 37963 | "removed", | | |
| 37964 | ]); | | |
| 37965 | | | |
| 37966 | export type V2ExternalAgentConfigDetectParams = { | 41484 | export type V2ExternalAgentConfigDetectParams = { |
| 37967 | readonly cwds?: ReadonlyArray<string> | null; | 41485 | readonly cwds?: ReadonlyArray<string> | null; |
| 37968 | readonly includeHome?: boolean; | 41486 | readonly includeHome?: boolean; |
| ... | @@ -38147,50 +41665,42 @@ export const V2FsChangedNotification = Schema.Struct({ | ... | @@ -38147,50 +41665,42 @@ export const V2FsChangedNotification = Schema.Struct({ |
| 38147 | }); | 41665 | }); |
| 38148 | | 41666 | |
| 38149 | export type V2FsCopyParams = { | 41667 | export type V2FsCopyParams = { |
| 38150 | readonly destinationPath: string; | 41668 | readonly destinationPath: V2FsCopyParams__AbsolutePathBuf; |
| 38151 | readonly recursive?: boolean; | 41669 | readonly recursive?: boolean; |
| 38152 | readonly sourcePath: string; | 41670 | readonly sourcePath: V2FsCopyParams__AbsolutePathBuf; |
| 38153 | }; | 41671 | }; |
| 38154 | export const V2FsCopyParams = Schema.Struct({ | 41672 | export const V2FsCopyParams = Schema.Struct({ |
| 38155 | destinationPath: Schema.String.annotate({ | 41673 | destinationPath: Schema.suspend( |
| 38156 | description: | 41674 | (): Schema.Codec<V2FsCopyParams__AbsolutePathBuf> => V2FsCopyParams__AbsolutePathBuf, |
| 38157 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 41675 | ).annotate({ description: "Absolute destination path." }), |
| 38158 | }), | | |
| 38159 | recursive: Schema.optionalKey( | 41676 | recursive: Schema.optionalKey( |
| 38160 | Schema.Boolean.annotate({ | 41677 | Schema.Boolean.annotate({ |
| 38161 | description: "Required for directory copies; ignored for file copies.", | 41678 | description: "Required for directory copies; ignored for file copies.", |
| 38162 | }), | 41679 | }), |
| 38163 | ), | 41680 | ), |
| 38164 | sourcePath: Schema.String.annotate({ | 41681 | sourcePath: Schema.suspend( |
| 38165 | description: | 41682 | (): Schema.Codec<V2FsCopyParams__AbsolutePathBuf> => V2FsCopyParams__AbsolutePathBuf, |
| 38166 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 41683 | ).annotate({ description: "Absolute source path." }), |
| 38167 | }), | | |
| 38168 | }).annotate({ | 41684 | }).annotate({ |
| 38169 | title: "FsCopyParams", | 41685 | title: "FsCopyParams", |
| 38170 | description: "Copy a file or directory tree on the host filesystem.", | 41686 | description: "Copy a file or directory tree on the host filesystem.", |
| 38171 | }); | 41687 | }); |
| 38172 | | 41688 | |
| 38173 | export type V2FsCopyParams__AbsolutePathBuf = string; | 41689 | export type V2FsCopyResponse = { readonly [x: string]: Schema.Json }; |
| 38174 | export const V2FsCopyParams__AbsolutePathBuf = Schema.String.annotate({ | 41690 | export const V2FsCopyResponse = Schema.Record( |
| 38175 | description: | 41691 | Schema.String, |
| 38176 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 41692 | Schema.Json.annotate({ expected: "JSON value" }), |
| 38177 | }); | 41693 | ).annotate({ title: "FsCopyResponse", description: "Successful response for `fs/copy`." }); |
| 38178 | | | |
| 38179 | export type V2FsCopyResponse = {}; | | |
| 38180 | export const V2FsCopyResponse = Schema.Struct({}).annotate({ | | |
| 38181 | title: "FsCopyResponse", | | |
| 38182 | description: "Successful response for `fs/copy`.", | | |
| 38183 | }); | | |
| 38184 | | 41694 | |
| 38185 | export type V2FsCreateDirectoryParams = { | 41695 | export type V2FsCreateDirectoryParams = { |
| 38186 | readonly path: string; | 41696 | readonly path: V2FsCreateDirectoryParams__AbsolutePathBuf; |
| 38187 | readonly recursive?: boolean | null; | 41697 | readonly recursive?: boolean | null; |
| 38188 | }; | 41698 | }; |
| 38189 | export const V2FsCreateDirectoryParams = Schema.Struct({ | 41699 | export const V2FsCreateDirectoryParams = Schema.Struct({ |
| 38190 | path: Schema.String.annotate({ | 41700 | path: Schema.suspend( |
| 38191 | description: | 41701 | (): Schema.Codec<V2FsCreateDirectoryParams__AbsolutePathBuf> => |
| 38192 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 41702 | V2FsCreateDirectoryParams__AbsolutePathBuf, |
| 38193 | }), | 41703 | ).annotate({ description: "Absolute directory path to create." }), |
| 38194 | recursive: Schema.optionalKey( | 41704 | recursive: Schema.optionalKey( |
| 38195 | Schema.Union([ | 41705 | Schema.Union([ |
| 38196 | Schema.Boolean.annotate({ | 41706 | Schema.Boolean.annotate({ |
| ... | @@ -38204,35 +41714,26 @@ export const V2FsCreateDirectoryParams = Schema.Struct({ | ... | @@ -38204,35 +41714,26 @@ export const V2FsCreateDirectoryParams = Schema.Struct({ |
| 38204 | description: "Create a directory on the host filesystem.", | 41714 | description: "Create a directory on the host filesystem.", |
| 38205 | }); | 41715 | }); |
| 38206 | | 41716 | |
| 38207 | export type V2FsCreateDirectoryParams__AbsolutePathBuf = string; | 41717 | export type V2FsCreateDirectoryResponse = { readonly [x: string]: Schema.Json }; |
| 38208 | export const V2FsCreateDirectoryParams__AbsolutePathBuf = Schema.String.annotate({ | 41718 | export const V2FsCreateDirectoryResponse = Schema.Record( |
| 38209 | description: | 41719 | Schema.String, |
| 38210 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 41720 | Schema.Json.annotate({ expected: "JSON value" }), |
| 38211 | }); | 41721 | ).annotate({ |
| 38212 | | | |
| 38213 | export type V2FsCreateDirectoryResponse = {}; | | |
| 38214 | export const V2FsCreateDirectoryResponse = Schema.Struct({}).annotate({ | | |
| 38215 | title: "FsCreateDirectoryResponse", | 41722 | title: "FsCreateDirectoryResponse", |
| 38216 | description: "Successful response for `fs/createDirectory`.", | 41723 | description: "Successful response for `fs/createDirectory`.", |
| 38217 | }); | 41724 | }); |
| 38218 | | 41725 | |
| 38219 | export type V2FsGetMetadataParams = { readonly path: string }; | 41726 | export type V2FsGetMetadataParams = { readonly path: V2FsGetMetadataParams__AbsolutePathBuf }; |
| 38220 | export const V2FsGetMetadataParams = Schema.Struct({ | 41727 | export const V2FsGetMetadataParams = Schema.Struct({ |
| 38221 | path: Schema.String.annotate({ | 41728 | path: Schema.suspend( |
| 38222 | description: | 41729 | (): Schema.Codec<V2FsGetMetadataParams__AbsolutePathBuf> => |
| 38223 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 41730 | V2FsGetMetadataParams__AbsolutePathBuf, |
| 38224 | }), | 41731 | ).annotate({ description: "Absolute path to inspect." }), |
| 38225 | }).annotate({ | 41732 | }).annotate({ |
| 38226 | title: "FsGetMetadataParams", | 41733 | title: "FsGetMetadataParams", |
| 38227 | description: "Request metadata for an absolute path.", | 41734 | description: "Request metadata for an absolute path.", |
| 38228 | }); | 41735 | }); |
| 38229 | | 41736 | |
| 38230 | export type V2FsGetMetadataParams__AbsolutePathBuf = string; | | |
| 38231 | export const V2FsGetMetadataParams__AbsolutePathBuf = Schema.String.annotate({ | | |
| 38232 | description: | | |
| 38233 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | | |
| 38234 | }); | | |
| 38235 | | | |
| 38236 | export type V2FsGetMetadataResponse = { | 41737 | export type V2FsGetMetadataResponse = { |
| 38237 | readonly createdAtMs: number; | 41738 | readonly createdAtMs: number; |
| 38238 | readonly isDirectory: boolean; | 41739 | readonly isDirectory: boolean; |
| ... | @@ -38244,7 +41745,7 @@ export const V2FsGetMetadataResponse = Schema.Struct({ | ... | @@ -38244,7 +41745,7 @@ export const V2FsGetMetadataResponse = Schema.Struct({ |
| 38244 | createdAtMs: Schema.Number.annotate({ | 41745 | createdAtMs: Schema.Number.annotate({ |
| 38245 | description: "File creation time in Unix milliseconds when available, otherwise `0`.", | 41746 | description: "File creation time in Unix milliseconds when available, otherwise `0`.", |
| 38246 | format: "int64", | 41747 | format: "int64", |
| 38247 | }).check(Schema.isInt()), | 41748 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 38248 | isDirectory: Schema.Boolean.annotate({ | 41749 | isDirectory: Schema.Boolean.annotate({ |
| 38249 | description: "Whether the path resolves to a directory.", | 41750 | description: "Whether the path resolves to a directory.", |
| 38250 | }), | 41751 | }), |
| ... | @@ -38255,29 +41756,23 @@ export const V2FsGetMetadataResponse = Schema.Struct({ | ... | @@ -38255,29 +41756,23 @@ export const V2FsGetMetadataResponse = Schema.Struct({ |
| 38255 | modifiedAtMs: Schema.Number.annotate({ | 41756 | modifiedAtMs: Schema.Number.annotate({ |
| 38256 | description: "File modification time in Unix milliseconds when available, otherwise `0`.", | 41757 | description: "File modification time in Unix milliseconds when available, otherwise `0`.", |
| 38257 | format: "int64", | 41758 | format: "int64", |
| 38258 | }).check(Schema.isInt()), | 41759 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 38259 | }).annotate({ | 41760 | }).annotate({ |
| 38260 | title: "FsGetMetadataResponse", | 41761 | title: "FsGetMetadataResponse", |
| 38261 | description: "Metadata returned by `fs/getMetadata`.", | 41762 | description: "Metadata returned by `fs/getMetadata`.", |
| 38262 | }); | 41763 | }); |
| 38263 | | 41764 | |
| 38264 | export type V2FsReadDirectoryParams = { readonly path: string }; | 41765 | export type V2FsReadDirectoryParams = { readonly path: V2FsReadDirectoryParams__AbsolutePathBuf }; |
| 38265 | export const V2FsReadDirectoryParams = Schema.Struct({ | 41766 | export const V2FsReadDirectoryParams = Schema.Struct({ |
| 38266 | path: Schema.String.annotate({ | 41767 | path: Schema.suspend( |
| 38267 | description: | 41768 | (): Schema.Codec<V2FsReadDirectoryParams__AbsolutePathBuf> => |
| 38268 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 41769 | V2FsReadDirectoryParams__AbsolutePathBuf, |
| 38269 | }), | 41770 | ).annotate({ description: "Absolute directory path to read." }), |
| 38270 | }).annotate({ | 41771 | }).annotate({ |
| 38271 | title: "FsReadDirectoryParams", | 41772 | title: "FsReadDirectoryParams", |
| 38272 | description: "List direct child names for a directory.", | 41773 | description: "List direct child names for a directory.", |
| 38273 | }); | 41774 | }); |
| 38274 | | 41775 | |
| 38275 | export type V2FsReadDirectoryParams__AbsolutePathBuf = string; | | |
| 38276 | export const V2FsReadDirectoryParams__AbsolutePathBuf = Schema.String.annotate({ | | |
| 38277 | description: | | |
| 38278 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | | |
| 38279 | }); | | |
| 38280 | | | |
| 38281 | export type V2FsReadDirectoryResponse = { | 41776 | export type V2FsReadDirectoryResponse = { |
| 38282 | readonly entries: ReadonlyArray<V2FsReadDirectoryResponse__FsReadDirectoryEntry>; | 41777 | readonly entries: ReadonlyArray<V2FsReadDirectoryResponse__FsReadDirectoryEntry>; |
| 38283 | }; | 41778 | }; |
| ... | @@ -38290,20 +41785,13 @@ export const V2FsReadDirectoryResponse = Schema.Struct({ | ... | @@ -38290,20 +41785,13 @@ export const V2FsReadDirectoryResponse = Schema.Struct({ |
| 38290 | description: "Directory entries returned by `fs/readDirectory`.", | 41785 | description: "Directory entries returned by `fs/readDirectory`.", |
| 38291 | }); | 41786 | }); |
| 38292 | | 41787 | |
| 38293 | export type V2FsReadFileParams = { readonly path: string }; | 41788 | export type V2FsReadFileParams = { readonly path: V2FsReadFileParams__AbsolutePathBuf }; |
| 38294 | export const V2FsReadFileParams = Schema.Struct({ | 41789 | export const V2FsReadFileParams = Schema.Struct({ |
| 38295 | path: Schema.String.annotate({ | 41790 | path: Schema.suspend( |
| 38296 | description: | 41791 | (): Schema.Codec<V2FsReadFileParams__AbsolutePathBuf> => V2FsReadFileParams__AbsolutePathBuf, |
| 38297 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 41792 | ).annotate({ description: "Absolute path to read." }), |
| 38298 | }), | | |
| 38299 | }).annotate({ title: "FsReadFileParams", description: "Read a file from the host filesystem." }); | 41793 | }).annotate({ title: "FsReadFileParams", description: "Read a file from the host filesystem." }); |
| 38300 | | 41794 | |
| 38301 | export type V2FsReadFileParams__AbsolutePathBuf = string; | | |
| 38302 | export const V2FsReadFileParams__AbsolutePathBuf = Schema.String.annotate({ | | |
| 38303 | description: | | |
| 38304 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | | |
| 38305 | }); | | |
| 38306 | | | |
| 38307 | export type V2FsReadFileResponse = { readonly dataBase64: string }; | 41795 | export type V2FsReadFileResponse = { readonly dataBase64: string }; |
| 38308 | export const V2FsReadFileResponse = Schema.Struct({ | 41796 | export const V2FsReadFileResponse = Schema.Struct({ |
| 38309 | dataBase64: Schema.String.annotate({ description: "File contents encoded as base64." }), | 41797 | dataBase64: Schema.String.annotate({ description: "File contents encoded as base64." }), |
| ... | @@ -38314,7 +41802,7 @@ export const V2FsReadFileResponse = Schema.Struct({ | ... | @@ -38314,7 +41802,7 @@ export const V2FsReadFileResponse = Schema.Struct({ |
| 38314 | | 41802 | |
| 38315 | export type V2FsRemoveParams = { | 41803 | export type V2FsRemoveParams = { |
| 38316 | readonly force?: boolean | null; | 41804 | readonly force?: boolean | null; |
| 38317 | readonly path: string; | 41805 | readonly path: V2FsRemoveParams__AbsolutePathBuf; |
| 38318 | readonly recursive?: boolean | null; | 41806 | readonly recursive?: boolean | null; |
| 38319 | }; | 41807 | }; |
| 38320 | export const V2FsRemoveParams = Schema.Struct({ | 41808 | export const V2FsRemoveParams = Schema.Struct({ |
| ... | @@ -38326,10 +41814,9 @@ export const V2FsRemoveParams = Schema.Struct({ | ... | @@ -38326,10 +41814,9 @@ export const V2FsRemoveParams = Schema.Struct({ |
| 38326 | Schema.Null, | 41814 | Schema.Null, |
| 38327 | ]), | 41815 | ]), |
| 38328 | ), | 41816 | ), |
| 38329 | path: Schema.String.annotate({ | 41817 | path: Schema.suspend( |
| 38330 | description: | 41818 | (): Schema.Codec<V2FsRemoveParams__AbsolutePathBuf> => V2FsRemoveParams__AbsolutePathBuf, |
| 38331 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 41819 | ).annotate({ description: "Absolute path to remove." }), |
| 38332 | }), | | |
| 38333 | recursive: Schema.optionalKey( | 41820 | recursive: Schema.optionalKey( |
| 38334 | Schema.Union([ | 41821 | Schema.Union([ |
| 38335 | Schema.Boolean.annotate({ | 41822 | Schema.Boolean.annotate({ |
| ... | @@ -38343,17 +41830,11 @@ export const V2FsRemoveParams = Schema.Struct({ | ... | @@ -38343,17 +41830,11 @@ export const V2FsRemoveParams = Schema.Struct({ |
| 38343 | description: "Remove a file or directory tree from the host filesystem.", | 41830 | description: "Remove a file or directory tree from the host filesystem.", |
| 38344 | }); | 41831 | }); |
| 38345 | | 41832 | |
| 38346 | export type V2FsRemoveParams__AbsolutePathBuf = string; | 41833 | export type V2FsRemoveResponse = { readonly [x: string]: Schema.Json }; |
| 38347 | export const V2FsRemoveParams__AbsolutePathBuf = Schema.String.annotate({ | 41834 | export const V2FsRemoveResponse = Schema.Record( |
| 38348 | description: | 41835 | Schema.String, |
| 38349 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 41836 | Schema.Json.annotate({ expected: "JSON value" }), |
| 38350 | }); | 41837 | ).annotate({ title: "FsRemoveResponse", description: "Successful response for `fs/remove`." }); |
| 38351 | | | |
| 38352 | export type V2FsRemoveResponse = {}; | | |
| 38353 | export const V2FsRemoveResponse = Schema.Struct({}).annotate({ | | |
| 38354 | title: "FsRemoveResponse", | | |
| 38355 | description: "Successful response for `fs/remove`.", | | |
| 38356 | }); | | |
| 38357 | | 41838 | |
| 38358 | export type V2FsUnwatchParams = { readonly watchId: string }; | 41839 | export type V2FsUnwatchParams = { readonly watchId: string }; |
| 38359 | export const V2FsUnwatchParams = Schema.Struct({ | 41840 | export const V2FsUnwatchParams = Schema.Struct({ |
| ... | @@ -38365,18 +41846,20 @@ export const V2FsUnwatchParams = Schema.Struct({ | ... | @@ -38365,18 +41846,20 @@ export const V2FsUnwatchParams = Schema.Struct({ |
| 38365 | description: "Stop filesystem watch notifications for a prior `fs/watch`.", | 41846 | description: "Stop filesystem watch notifications for a prior `fs/watch`.", |
| 38366 | }); | 41847 | }); |
| 38367 | | 41848 | |
| 38368 | export type V2FsUnwatchResponse = {}; | 41849 | export type V2FsUnwatchResponse = { readonly [x: string]: Schema.Json }; |
| 38369 | export const V2FsUnwatchResponse = Schema.Struct({}).annotate({ | 41850 | export const V2FsUnwatchResponse = Schema.Record( |
| 38370 | title: "FsUnwatchResponse", | 41851 | Schema.String, |
| 38371 | description: "Successful response for `fs/unwatch`.", | 41852 | Schema.Json.annotate({ expected: "JSON value" }), |
| 38372 | }); | 41853 | ).annotate({ title: "FsUnwatchResponse", description: "Successful response for `fs/unwatch`." }); |
| 38373 | | 41854 | |
| 38374 | export type V2FsWatchParams = { readonly path: string; readonly watchId: string }; | 41855 | export type V2FsWatchParams = { |
| | 41856 | readonly path: V2FsWatchParams__AbsolutePathBuf; |
| | 41857 | readonly watchId: string; |
| | 41858 | }; |
| 38375 | export const V2FsWatchParams = Schema.Struct({ | 41859 | export const V2FsWatchParams = Schema.Struct({ |
| 38376 | path: Schema.String.annotate({ | 41860 | path: Schema.suspend( |
| 38377 | description: | 41861 | (): Schema.Codec<V2FsWatchParams__AbsolutePathBuf> => V2FsWatchParams__AbsolutePathBuf, |
| 38378 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 41862 | ).annotate({ description: "Absolute file or directory path to watch." }), |
| 38379 | }), | | |
| 38380 | watchId: Schema.String.annotate({ | 41863 | watchId: Schema.String.annotate({ |
| 38381 | description: "Connection-scoped watch identifier used for `fs/unwatch` and `fs/changed`.", | 41864 | description: "Connection-scoped watch identifier used for `fs/unwatch` and `fs/changed`.", |
| 38382 | }), | 41865 | }), |
| ... | @@ -38385,43 +41868,29 @@ export const V2FsWatchParams = Schema.Struct({ | ... | @@ -38385,43 +41868,29 @@ export const V2FsWatchParams = Schema.Struct({ |
| 38385 | description: "Start filesystem watch notifications for an absolute path.", | 41868 | description: "Start filesystem watch notifications for an absolute path.", |
| 38386 | }); | 41869 | }); |
| 38387 | | 41870 | |
| 38388 | export type V2FsWatchParams__AbsolutePathBuf = string; | 41871 | export type V2FsWatchResponse = { readonly path: V2FsWatchResponse__AbsolutePathBuf }; |
| 38389 | export const V2FsWatchParams__AbsolutePathBuf = Schema.String.annotate({ | | |
| 38390 | description: | | |
| 38391 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | | |
| 38392 | }); | | |
| 38393 | | | |
| 38394 | export type V2FsWatchResponse = { readonly path: string }; | | |
| 38395 | export const V2FsWatchResponse = Schema.Struct({ | 41872 | export const V2FsWatchResponse = Schema.Struct({ |
| 38396 | path: Schema.String.annotate({ | 41873 | path: Schema.suspend( |
| 38397 | description: | 41874 | (): Schema.Codec<V2FsWatchResponse__AbsolutePathBuf> => V2FsWatchResponse__AbsolutePathBuf, |
| 38398 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 41875 | ).annotate({ description: "Canonicalized path associated with the watch." }), |
| 38399 | }), | | |
| 38400 | }).annotate({ title: "FsWatchResponse", description: "Successful response for `fs/watch`." }); | 41876 | }).annotate({ title: "FsWatchResponse", description: "Successful response for `fs/watch`." }); |
| 38401 | | 41877 | |
| 38402 | export type V2FsWatchResponse__AbsolutePathBuf = string; | 41878 | export type V2FsWriteFileParams = { |
| 38403 | export const V2FsWatchResponse__AbsolutePathBuf = Schema.String.annotate({ | 41879 | readonly dataBase64: string; |
| 38404 | description: | 41880 | readonly path: V2FsWriteFileParams__AbsolutePathBuf; |
| 38405 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 41881 | }; |
| 38406 | }); | | |
| 38407 | | | |
| 38408 | export type V2FsWriteFileParams = { readonly dataBase64: string; readonly path: string }; | | |
| 38409 | export const V2FsWriteFileParams = Schema.Struct({ | 41882 | export const V2FsWriteFileParams = Schema.Struct({ |
| 38410 | dataBase64: Schema.String.annotate({ description: "File contents encoded as base64." }), | 41883 | dataBase64: Schema.String.annotate({ description: "File contents encoded as base64." }), |
| 38411 | path: Schema.String.annotate({ | 41884 | path: Schema.suspend( |
| 38412 | description: | 41885 | (): Schema.Codec<V2FsWriteFileParams__AbsolutePathBuf> => V2FsWriteFileParams__AbsolutePathBuf, |
| 38413 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 41886 | ).annotate({ description: "Absolute path to write." }), |
| 38414 | }), | | |
| 38415 | }).annotate({ title: "FsWriteFileParams", description: "Write a file on the host filesystem." }); | 41887 | }).annotate({ title: "FsWriteFileParams", description: "Write a file on the host filesystem." }); |
| 38416 | | 41888 | |
| 38417 | export type V2FsWriteFileParams__AbsolutePathBuf = string; | 41889 | export type V2FsWriteFileResponse = { readonly [x: string]: Schema.Json }; |
| 38418 | export const V2FsWriteFileParams__AbsolutePathBuf = Schema.String.annotate({ | 41890 | export const V2FsWriteFileResponse = Schema.Record( |
| 38419 | description: | 41891 | Schema.String, |
| 38420 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 41892 | Schema.Json.annotate({ expected: "JSON value" }), |
| 38421 | }); | 41893 | ).annotate({ |
| 38422 | | | |
| 38423 | export type V2FsWriteFileResponse = {}; | | |
| 38424 | export const V2FsWriteFileResponse = Schema.Struct({}).annotate({ | | |
| 38425 | title: "FsWriteFileResponse", | 41894 | title: "FsWriteFileResponse", |
| 38426 | description: "Successful response for `fs/writeFile`.", | 41895 | description: "Successful response for `fs/writeFile`.", |
| 38427 | }); | 41896 | }); |
| ... | @@ -38438,17 +41907,7 @@ export const V2GetAccountParams = Schema.Struct({ | ... | @@ -38438,17 +41907,7 @@ export const V2GetAccountParams = Schema.Struct({ |
| 38438 | | 41907 | |
| 38439 | export type V2GetAccountRateLimitsResponse = { | 41908 | export type V2GetAccountRateLimitsResponse = { |
| 38440 | readonly rateLimitResetCredits?: V2GetAccountRateLimitsResponse__RateLimitResetCreditsSummary | null; | 41909 | readonly rateLimitResetCredits?: V2GetAccountRateLimitsResponse__RateLimitResetCreditsSummary | null; |
| 38441 | readonly rateLimits: { | 41910 | readonly rateLimits: V2GetAccountRateLimitsResponse__RateLimitSnapshot; |
| 38442 | readonly credits?: V2GetAccountRateLimitsResponse__CreditsSnapshot | null; | | |
| 38443 | readonly individualLimit?: V2GetAccountRateLimitsResponse__SpendControlLimitSnapshot | null; | | |
| 38444 | readonly limitId?: string | null; | | |
| 38445 | readonly limitName?: string | null; | | |
| 38446 | readonly planType?: V2GetAccountRateLimitsResponse__PlanType | null; | | |
| 38447 | readonly primary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null; | | |
| 38448 | readonly rateLimitReachedType?: V2GetAccountRateLimitsResponse__RateLimitReachedType | null; | | |
| 38449 | readonly secondary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null; | | |
| 38450 | readonly spendControlReached?: boolean | null; | | |
| 38451 | }; | | |
| 38452 | readonly rateLimitsByLimitId?: { | 41911 | readonly rateLimitsByLimitId?: { |
| 38453 | readonly [x: string]: V2GetAccountRateLimitsResponse__RateLimitSnapshot; | 41912 | readonly [x: string]: V2GetAccountRateLimitsResponse__RateLimitSnapshot; |
| 38454 | } | null; | 41913 | } | null; |
| ... | @@ -38457,37 +41916,10 @@ export const V2GetAccountRateLimitsResponse = Schema.Struct({ | ... | @@ -38457,37 +41916,10 @@ export const V2GetAccountRateLimitsResponse = Schema.Struct({ |
| 38457 | rateLimitResetCredits: Schema.optionalKey( | 41916 | rateLimitResetCredits: Schema.optionalKey( |
| 38458 | Schema.Union([V2GetAccountRateLimitsResponse__RateLimitResetCreditsSummary, Schema.Null]), | 41917 | Schema.Union([V2GetAccountRateLimitsResponse__RateLimitResetCreditsSummary, Schema.Null]), |
| 38459 | ), | 41918 | ), |
| 38460 | rateLimits: Schema.Struct({ | 41919 | rateLimits: Schema.suspend( |
| 38461 | credits: Schema.optionalKey( | 41920 | (): Schema.Codec<V2GetAccountRateLimitsResponse__RateLimitSnapshot> => |
| 38462 | Schema.Union([V2GetAccountRateLimitsResponse__CreditsSnapshot, Schema.Null]), | 41921 | V2GetAccountRateLimitsResponse__RateLimitSnapshot, |
| 38463 | ), | 41922 | ).annotate({ |
| 38464 | individualLimit: Schema.optionalKey( | | |
| 38465 | Schema.Union([V2GetAccountRateLimitsResponse__SpendControlLimitSnapshot, Schema.Null]), | | |
| 38466 | ), | | |
| 38467 | limitId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 38468 | limitName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 38469 | planType: Schema.optionalKey( | | |
| 38470 | Schema.Union([V2GetAccountRateLimitsResponse__PlanType, Schema.Null]), | | |
| 38471 | ), | | |
| 38472 | primary: Schema.optionalKey( | | |
| 38473 | Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]), | | |
| 38474 | ), | | |
| 38475 | rateLimitReachedType: Schema.optionalKey( | | |
| 38476 | Schema.Union([V2GetAccountRateLimitsResponse__RateLimitReachedType, Schema.Null]), | | |
| 38477 | ), | | |
| 38478 | secondary: Schema.optionalKey( | | |
| 38479 | Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]), | | |
| 38480 | ), | | |
| 38481 | spendControlReached: Schema.optionalKey( | | |
| 38482 | Schema.Union([ | | |
| 38483 | Schema.Boolean.annotate({ | | |
| 38484 | description: | | |
| 38485 | "Backend-reported spend-control state. `None` is unavailable, not a sparse-update recovery.", | | |
| 38486 | }), | | |
| 38487 | Schema.Null, | | |
| 38488 | ]), | | |
| 38489 | ), | | |
| 38490 | }).annotate({ | | |
| 38491 | description: "Backward-compatible single-bucket view; mirrors the historical payload.", | 41923 | description: "Backward-compatible single-bucket view; mirrors the historical payload.", |
| 38492 | }), | 41924 | }), |
| 38493 | rateLimitsByLimitId: Schema.optionalKey( | 41925 | rateLimitsByLimitId: Schema.optionalKey( |
| ... | @@ -38555,32 +41987,6 @@ export const V2HookCompletedNotification = Schema.Struct({ | ... | @@ -38555,32 +41987,6 @@ export const V2HookCompletedNotification = Schema.Struct({ |
| 38555 | turnId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 41987 | turnId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 38556 | }).annotate({ title: "HookCompletedNotification" }); | 41988 | }).annotate({ title: "HookCompletedNotification" }); |
| 38557 | | 41989 | |
| 38558 | export type V2HookCompletedNotification__HookSource = | | |
| 38559 | | "system" | | |
| 38560 | | "user" | | |
| 38561 | | "project" | | |
| 38562 | | "mdm" | | |
| 38563 | | "sessionFlags" | | |
| 38564 | | "plugin" | | |
| 38565 | | "cloudRequirements" | | |
| 38566 | | "cloudManagedConfig" | | |
| 38567 | | "legacyManagedConfigFile" | | |
| 38568 | | "legacyManagedConfigMdm" | | |
| 38569 | | "unknown"; | | |
| 38570 | export const V2HookCompletedNotification__HookSource = Schema.Literals([ | | |
| 38571 | "system", | | |
| 38572 | "user", | | |
| 38573 | "project", | | |
| 38574 | "mdm", | | |
| 38575 | "sessionFlags", | | |
| 38576 | "plugin", | | |
| 38577 | "cloudRequirements", | | |
| 38578 | "cloudManagedConfig", | | |
| 38579 | "legacyManagedConfigFile", | | |
| 38580 | "legacyManagedConfigMdm", | | |
| 38581 | "unknown", | | |
| 38582 | ]); | | |
| 38583 | | | |
| 38584 | export type V2HooksListParams = { readonly cwds?: ReadonlyArray<string> }; | 41990 | export type V2HooksListParams = { readonly cwds?: ReadonlyArray<string> }; |
| 38585 | export const V2HooksListParams = Schema.Struct({ | 41991 | export const V2HooksListParams = Schema.Struct({ |
| 38586 | cwds: Schema.optionalKey( | 41992 | cwds: Schema.optionalKey( |
| ... | @@ -38608,32 +42014,6 @@ export const V2HookStartedNotification = Schema.Struct({ | ... | @@ -38608,32 +42014,6 @@ export const V2HookStartedNotification = Schema.Struct({ |
| 38608 | turnId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 42014 | turnId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 38609 | }).annotate({ title: "HookStartedNotification" }); | 42015 | }).annotate({ title: "HookStartedNotification" }); |
| 38610 | | 42016 | |
| 38611 | export type V2HookStartedNotification__HookSource = | | |
| 38612 | | "system" | | |
| 38613 | | "user" | | |
| 38614 | | "project" | | |
| 38615 | | "mdm" | | |
| 38616 | | "sessionFlags" | | |
| 38617 | | "plugin" | | |
| 38618 | | "cloudRequirements" | | |
| 38619 | | "cloudManagedConfig" | | |
| 38620 | | "legacyManagedConfigFile" | | |
| 38621 | | "legacyManagedConfigMdm" | | |
| 38622 | | "unknown"; | | |
| 38623 | export const V2HookStartedNotification__HookSource = Schema.Literals([ | | |
| 38624 | "system", | | |
| 38625 | "user", | | |
| 38626 | "project", | | |
| 38627 | "mdm", | | |
| 38628 | "sessionFlags", | | |
| 38629 | "plugin", | | |
| 38630 | "cloudRequirements", | | |
| 38631 | "cloudManagedConfig", | | |
| 38632 | "legacyManagedConfigFile", | | |
| 38633 | "legacyManagedConfigMdm", | | |
| 38634 | "unknown", | | |
| 38635 | ]); | | |
| 38636 | | | |
| 38637 | export type V2ItemCompletedNotification = { | 42017 | export type V2ItemCompletedNotification = { |
| 38638 | readonly completedAtMs: number; | 42018 | readonly completedAtMs: number; |
| 38639 | readonly item: V2ItemCompletedNotification__ThreadItem; | 42019 | readonly item: V2ItemCompletedNotification__ThreadItem; |
| ... | @@ -38644,71 +42024,12 @@ export const V2ItemCompletedNotification = Schema.Struct({ | ... | @@ -38644,71 +42024,12 @@ export const V2ItemCompletedNotification = Schema.Struct({ |
| 38644 | completedAtMs: Schema.Number.annotate({ | 42024 | completedAtMs: Schema.Number.annotate({ |
| 38645 | description: "Unix timestamp (in milliseconds) when this item lifecycle completed.", | 42025 | description: "Unix timestamp (in milliseconds) when this item lifecycle completed.", |
| 38646 | format: "int64", | 42026 | format: "int64", |
| 38647 | }).check(Schema.isInt()), | 42027 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 38648 | item: V2ItemCompletedNotification__ThreadItem, | 42028 | item: V2ItemCompletedNotification__ThreadItem, |
| 38649 | threadId: Schema.String, | 42029 | threadId: Schema.String, |
| 38650 | turnId: Schema.String, | 42030 | turnId: Schema.String, |
| 38651 | }).annotate({ title: "ItemCompletedNotification" }); | 42031 | }).annotate({ title: "ItemCompletedNotification" }); |
| 38652 | | 42032 | |
| 38653 | export type V2ItemCompletedNotification__ByteRange = { | | |
| 38654 | readonly end: number; | | |
| 38655 | readonly start: number; | | |
| 38656 | }; | | |
| 38657 | export const V2ItemCompletedNotification__ByteRange = Schema.Struct({ | | |
| 38658 | end: Schema.Number.annotate({ format: "uint" }) | | |
| 38659 | .check(Schema.isInt()) | | |
| 38660 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 38661 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 38662 | .check(Schema.isInt()) | | |
| 38663 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 38664 | }); | | |
| 38665 | | | |
| 38666 | export type V2ItemCompletedNotification__CollabAgentTool = | | |
| 38667 | | "spawnAgent" | | |
| 38668 | | "sendInput" | | |
| 38669 | | "resumeAgent" | | |
| 38670 | | "wait" | | |
| 38671 | | "closeAgent" | | |
| 38672 | | "sendMessage" | | |
| 38673 | | "followupTask" | | |
| 38674 | | "interruptAgent" | | |
| 38675 | | "listAgents"; | | |
| 38676 | export const V2ItemCompletedNotification__CollabAgentTool = Schema.Literals([ | | |
| 38677 | "spawnAgent", | | |
| 38678 | "sendInput", | | |
| 38679 | "resumeAgent", | | |
| 38680 | "wait", | | |
| 38681 | "closeAgent", | | |
| 38682 | "sendMessage", | | |
| 38683 | "followupTask", | | |
| 38684 | "interruptAgent", | | |
| 38685 | "listAgents", | | |
| 38686 | ]); | | |
| 38687 | | | |
| 38688 | export type V2ItemCompletedNotification__CollabAgentToolCallStatus = | | |
| 38689 | | "inProgress" | | |
| 38690 | | "completed" | | |
| 38691 | | "failed" | | |
| 38692 | | "interrupted"; | | |
| 38693 | export const V2ItemCompletedNotification__CollabAgentToolCallStatus = Schema.Literals([ | | |
| 38694 | "inProgress", | | |
| 38695 | "completed", | | |
| 38696 | "failed", | | |
| 38697 | "interrupted", | | |
| 38698 | ]); | | |
| 38699 | | | |
| 38700 | export type V2ItemCompletedNotification__CommandExecutionSource = | | |
| 38701 | | "agent" | | |
| 38702 | | "userShell" | | |
| 38703 | | "unifiedExecStartup" | | |
| 38704 | | "unifiedExecInteraction"; | | |
| 38705 | export const V2ItemCompletedNotification__CommandExecutionSource = Schema.Literals([ | | |
| 38706 | "agent", | | |
| 38707 | "userShell", | | |
| 38708 | "unifiedExecStartup", | | |
| 38709 | "unifiedExecInteraction", | | |
| 38710 | ]); | | |
| 38711 | | | |
| 38712 | export type V2ItemGuardianApprovalReviewCompletedNotification = { | 42033 | export type V2ItemGuardianApprovalReviewCompletedNotification = { |
| 38713 | readonly action: V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewAction; | 42034 | readonly action: V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewAction; |
| 38714 | readonly completedAtMs: number; | 42035 | readonly completedAtMs: number; |
| ... | @@ -38725,14 +42046,14 @@ export const V2ItemGuardianApprovalReviewCompletedNotification = Schema.Struct({ | ... | @@ -38725,14 +42046,14 @@ export const V2ItemGuardianApprovalReviewCompletedNotification = Schema.Struct({ |
| 38725 | completedAtMs: Schema.Number.annotate({ | 42046 | completedAtMs: Schema.Number.annotate({ |
| 38726 | description: "Unix timestamp (in milliseconds) when this review completed.", | 42047 | description: "Unix timestamp (in milliseconds) when this review completed.", |
| 38727 | format: "int64", | 42048 | format: "int64", |
| 38728 | }).check(Schema.isInt()), | 42049 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 38729 | decisionSource: V2ItemGuardianApprovalReviewCompletedNotification__AutoReviewDecisionSource, | 42050 | decisionSource: V2ItemGuardianApprovalReviewCompletedNotification__AutoReviewDecisionSource, |
| 38730 | review: V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReview, | 42051 | review: V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReview, |
| 38731 | reviewId: Schema.String.annotate({ description: "Stable identifier for this review." }), | 42052 | reviewId: Schema.String.annotate({ description: "Stable identifier for this review." }), |
| 38732 | startedAtMs: Schema.Number.annotate({ | 42053 | startedAtMs: Schema.Number.annotate({ |
| 38733 | description: "Unix timestamp (in milliseconds) when this review started.", | 42054 | description: "Unix timestamp (in milliseconds) when this review started.", |
| 38734 | format: "int64", | 42055 | format: "int64", |
| 38735 | }).check(Schema.isInt()), | 42056 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 38736 | targetItemId: Schema.optionalKey( | 42057 | targetItemId: Schema.optionalKey( |
| 38737 | Schema.Union([ | 42058 | Schema.Union([ |
| 38738 | Schema.String.annotate({ | 42059 | Schema.String.annotate({ |
| ... | @@ -38766,7 +42087,7 @@ export const V2ItemGuardianApprovalReviewStartedNotification = Schema.Struct({ | ... | @@ -38766,7 +42087,7 @@ export const V2ItemGuardianApprovalReviewStartedNotification = Schema.Struct({ |
| 38766 | startedAtMs: Schema.Number.annotate({ | 42087 | startedAtMs: Schema.Number.annotate({ |
| 38767 | description: "Unix timestamp (in milliseconds) when this review started.", | 42088 | description: "Unix timestamp (in milliseconds) when this review started.", |
| 38768 | format: "int64", | 42089 | format: "int64", |
| 38769 | }).check(Schema.isInt()), | 42090 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 38770 | targetItemId: Schema.optionalKey( | 42091 | targetItemId: Schema.optionalKey( |
| 38771 | Schema.Union([ | 42092 | Schema.Union([ |
| 38772 | Schema.String.annotate({ | 42093 | Schema.String.annotate({ |
| ... | @@ -38795,67 +42116,11 @@ export const V2ItemStartedNotification = Schema.Struct({ | ... | @@ -38795,67 +42116,11 @@ export const V2ItemStartedNotification = Schema.Struct({ |
| 38795 | startedAtMs: Schema.Number.annotate({ | 42116 | startedAtMs: Schema.Number.annotate({ |
| 38796 | description: "Unix timestamp (in milliseconds) when this item lifecycle started.", | 42117 | description: "Unix timestamp (in milliseconds) when this item lifecycle started.", |
| 38797 | format: "int64", | 42118 | format: "int64", |
| 38798 | }).check(Schema.isInt()), | 42119 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 38799 | threadId: Schema.String, | 42120 | threadId: Schema.String, |
| 38800 | turnId: Schema.String, | 42121 | turnId: Schema.String, |
| 38801 | }).annotate({ title: "ItemStartedNotification" }); | 42122 | }).annotate({ title: "ItemStartedNotification" }); |
| 38802 | | 42123 | |
| 38803 | export type V2ItemStartedNotification__ByteRange = { readonly end: number; readonly start: number }; | | |
| 38804 | export const V2ItemStartedNotification__ByteRange = Schema.Struct({ | | |
| 38805 | end: Schema.Number.annotate({ format: "uint" }) | | |
| 38806 | .check(Schema.isInt()) | | |
| 38807 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 38808 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 38809 | .check(Schema.isInt()) | | |
| 38810 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 38811 | }); | | |
| 38812 | | | |
| 38813 | export type V2ItemStartedNotification__CollabAgentTool = | | |
| 38814 | | "spawnAgent" | | |
| 38815 | | "sendInput" | | |
| 38816 | | "resumeAgent" | | |
| 38817 | | "wait" | | |
| 38818 | | "closeAgent" | | |
| 38819 | | "sendMessage" | | |
| 38820 | | "followupTask" | | |
| 38821 | | "interruptAgent" | | |
| 38822 | | "listAgents"; | | |
| 38823 | export const V2ItemStartedNotification__CollabAgentTool = Schema.Literals([ | | |
| 38824 | "spawnAgent", | | |
| 38825 | "sendInput", | | |
| 38826 | "resumeAgent", | | |
| 38827 | "wait", | | |
| 38828 | "closeAgent", | | |
| 38829 | "sendMessage", | | |
| 38830 | "followupTask", | | |
| 38831 | "interruptAgent", | | |
| 38832 | "listAgents", | | |
| 38833 | ]); | | |
| 38834 | | | |
| 38835 | export type V2ItemStartedNotification__CollabAgentToolCallStatus = | | |
| 38836 | | "inProgress" | | |
| 38837 | | "completed" | | |
| 38838 | | "failed" | | |
| 38839 | | "interrupted"; | | |
| 38840 | export const V2ItemStartedNotification__CollabAgentToolCallStatus = Schema.Literals([ | | |
| 38841 | "inProgress", | | |
| 38842 | "completed", | | |
| 38843 | "failed", | | |
| 38844 | "interrupted", | | |
| 38845 | ]); | | |
| 38846 | | | |
| 38847 | export type V2ItemStartedNotification__CommandExecutionSource = | | |
| 38848 | | "agent" | | |
| 38849 | | "userShell" | | |
| 38850 | | "unifiedExecStartup" | | |
| 38851 | | "unifiedExecInteraction"; | | |
| 38852 | export const V2ItemStartedNotification__CommandExecutionSource = Schema.Literals([ | | |
| 38853 | "agent", | | |
| 38854 | "userShell", | | |
| 38855 | "unifiedExecStartup", | | |
| 38856 | "unifiedExecInteraction", | | |
| 38857 | ]); | | |
| 38858 | | | |
| 38859 | export type V2ListMcpServerStatusParams = { | 42124 | export type V2ListMcpServerStatusParams = { |
| 38860 | readonly cursor?: string | null; | 42125 | readonly cursor?: string | null; |
| 38861 | readonly detail?: V2ListMcpServerStatusParams__McpServerStatusDetail | null; | 42126 | readonly detail?: V2ListMcpServerStatusParams__McpServerStatusDetail | null; |
| ... | @@ -38883,8 +42148,12 @@ export const V2ListMcpServerStatusParams = Schema.Struct({ | ... | @@ -38883,8 +42148,12 @@ export const V2ListMcpServerStatusParams = Schema.Struct({ |
| 38883 | description: "Optional page size; defaults to a server-defined value.", | 42148 | description: "Optional page size; defaults to a server-defined value.", |
| 38884 | format: "uint32", | 42149 | format: "uint32", |
| 38885 | }) | 42150 | }) |
| 38886 | .check(Schema.isInt()) | 42151 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 38887 | .check(Schema.isGreaterThanOrEqualTo(0)), | 42152 | .check( |
| | 42153 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 42154 | expected: "a value greater than or equal to 0", |
| | 42155 | }), |
| | 42156 | ), |
| 38888 | Schema.Null, | 42157 | Schema.Null, |
| 38889 | ]), | 42158 | ]), |
| 38890 | ), | 42159 | ), |
| ... | @@ -39032,10 +42301,11 @@ export const V2LoginAccountResponse = Schema.Union( | ... | @@ -39032,10 +42301,11 @@ export const V2LoginAccountResponse = Schema.Union( |
| 39032 | { mode: "oneOf" }, | 42301 | { mode: "oneOf" }, |
| 39033 | ).annotate({ title: "LoginAccountResponse" }); | 42302 | ).annotate({ title: "LoginAccountResponse" }); |
| 39034 | | 42303 | |
| 39035 | export type V2LogoutAccountResponse = {}; | 42304 | export type V2LogoutAccountResponse = { readonly [x: string]: Schema.Json }; |
| 39036 | export const V2LogoutAccountResponse = Schema.Struct({}).annotate({ | 42305 | export const V2LogoutAccountResponse = Schema.Record( |
| 39037 | title: "LogoutAccountResponse", | 42306 | Schema.String, |
| 39038 | }); | 42307 | Schema.Json.annotate({ expected: "JSON value" }), |
| | 42308 | ).annotate({ title: "LogoutAccountResponse" }); |
| 39039 | | 42309 | |
| 39040 | export type V2MarketplaceAddParams = { | 42310 | export type V2MarketplaceAddParams = { |
| 39041 | readonly refName?: string | null; | 42311 | readonly refName?: string | null; |
| ... | @@ -39133,7 +42403,12 @@ export const V2McpServerOauthLoginParams = Schema.Struct({ | ... | @@ -39133,7 +42403,12 @@ export const V2McpServerOauthLoginParams = Schema.Struct({ |
| 39133 | scopes: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | 42403 | scopes: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| 39134 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 42404 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 39135 | timeoutSecs: Schema.optionalKey( | 42405 | timeoutSecs: Schema.optionalKey( |
| 39136 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), | 42406 | Schema.Union([ |
| | 42407 | Schema.Number.annotate({ format: "int64" }).check( |
| | 42408 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 42409 | ), |
| | 42410 | Schema.Null, |
| | 42411 | ]), |
| 39137 | ), | 42412 | ), |
| 39138 | }).annotate({ title: "McpServerOauthLoginParams" }); | 42413 | }).annotate({ title: "McpServerOauthLoginParams" }); |
| 39139 | | 42414 | |
| ... | @@ -39142,10 +42417,11 @@ export const V2McpServerOauthLoginResponse = Schema.Struct({ | ... | @@ -39142,10 +42417,11 @@ export const V2McpServerOauthLoginResponse = Schema.Struct({ |
| 39142 | authorizationUrl: Schema.String, | 42417 | authorizationUrl: Schema.String, |
| 39143 | }).annotate({ title: "McpServerOauthLoginResponse" }); | 42418 | }).annotate({ title: "McpServerOauthLoginResponse" }); |
| 39144 | | 42419 | |
| 39145 | export type V2McpServerRefreshResponse = {}; | 42420 | export type V2McpServerRefreshResponse = { readonly [x: string]: Schema.Json }; |
| 39146 | export const V2McpServerRefreshResponse = Schema.Struct({}).annotate({ | 42421 | export const V2McpServerRefreshResponse = Schema.Record( |
| 39147 | title: "McpServerRefreshResponse", | 42422 | Schema.String, |
| 39148 | }); | 42423 | Schema.Json.annotate({ expected: "JSON value" }), |
| | 42424 | ).annotate({ title: "McpServerRefreshResponse" }); |
| 39149 | | 42425 | |
| 39150 | export type V2McpServerStatusUpdatedNotification = { | 42426 | export type V2McpServerStatusUpdatedNotification = { |
| 39151 | readonly error?: string | null; | 42427 | readonly error?: string | null; |
| ... | @@ -39168,31 +42444,31 @@ export const V2McpServerStatusUpdatedNotification = Schema.Struct({ | ... | @@ -39168,31 +42444,31 @@ export const V2McpServerStatusUpdatedNotification = Schema.Struct({ |
| 39168 | }).annotate({ title: "McpServerStatusUpdatedNotification" }); | 42444 | }).annotate({ title: "McpServerStatusUpdatedNotification" }); |
| 39169 | | 42445 | |
| 39170 | export type V2McpServerToolCallParams = { | 42446 | export type V2McpServerToolCallParams = { |
| 39171 | readonly _meta?: unknown; | 42447 | readonly _meta?: Schema.Json; |
| 39172 | readonly arguments?: unknown; | 42448 | readonly arguments?: Schema.Json; |
| 39173 | readonly server: string; | 42449 | readonly server: string; |
| 39174 | readonly threadId: string; | 42450 | readonly threadId: string; |
| 39175 | readonly tool: string; | 42451 | readonly tool: string; |
| 39176 | }; | 42452 | }; |
| 39177 | export const V2McpServerToolCallParams = Schema.Struct({ | 42453 | export const V2McpServerToolCallParams = Schema.Struct({ |
| 39178 | _meta: Schema.optionalKey(Schema.Unknown), | 42454 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 39179 | arguments: Schema.optionalKey(Schema.Unknown), | 42455 | arguments: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 39180 | server: Schema.String, | 42456 | server: Schema.String, |
| 39181 | threadId: Schema.String, | 42457 | threadId: Schema.String, |
| 39182 | tool: Schema.String, | 42458 | tool: Schema.String, |
| 39183 | }).annotate({ title: "McpServerToolCallParams" }); | 42459 | }).annotate({ title: "McpServerToolCallParams" }); |
| 39184 | | 42460 | |
| 39185 | export type V2McpServerToolCallResponse = { | 42461 | export type V2McpServerToolCallResponse = { |
| 39186 | readonly _meta?: unknown; | 42462 | readonly _meta?: Schema.Json; |
| 39187 | readonly content: ReadonlyArray<unknown>; | 42463 | readonly content: ReadonlyArray<Schema.Json>; |
| 39188 | readonly isError?: boolean | null; | 42464 | readonly isError?: boolean | null; |
| 39189 | readonly structuredContent?: unknown; | 42465 | readonly structuredContent?: Schema.Json; |
| 39190 | }; | 42466 | }; |
| 39191 | export const V2McpServerToolCallResponse = Schema.Struct({ | 42467 | export const V2McpServerToolCallResponse = Schema.Struct({ |
| 39192 | _meta: Schema.optionalKey(Schema.Unknown), | 42468 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 39193 | content: Schema.Array(Schema.Unknown), | 42469 | content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), |
| 39194 | isError: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 42470 | isError: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 39195 | structuredContent: Schema.optionalKey(Schema.Unknown), | 42471 | structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 39196 | }).annotate({ title: "McpServerToolCallResponse" }); | 42472 | }).annotate({ title: "McpServerToolCallResponse" }); |
| 39197 | | 42473 | |
| 39198 | export type V2McpToolCallProgressNotification = { | 42474 | export type V2McpToolCallProgressNotification = { |
| ... | @@ -39236,8 +42512,12 @@ export const V2ModelListParams = Schema.Struct({ | ... | @@ -39236,8 +42512,12 @@ export const V2ModelListParams = Schema.Struct({ |
| 39236 | description: "Optional page size; defaults to a reasonable server-side value.", | 42512 | description: "Optional page size; defaults to a reasonable server-side value.", |
| 39237 | format: "uint32", | 42513 | format: "uint32", |
| 39238 | }) | 42514 | }) |
| 39239 | .check(Schema.isInt()) | 42515 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 39240 | .check(Schema.isGreaterThanOrEqualTo(0)), | 42516 | .check( |
| | 42517 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 42518 | expected: "a value greater than or equal to 0", |
| | 42519 | }), |
| | 42520 | ), |
| 39241 | Schema.Null, | 42521 | Schema.Null, |
| 39242 | ]), | 42522 | ]), |
| 39243 | ), | 42523 | ), |
| ... | @@ -39260,10 +42540,11 @@ export const V2ModelListResponse = Schema.Struct({ | ... | @@ -39260,10 +42540,11 @@ export const V2ModelListResponse = Schema.Struct({ |
| 39260 | ), | 42540 | ), |
| 39261 | }).annotate({ title: "ModelListResponse" }); | 42541 | }).annotate({ title: "ModelListResponse" }); |
| 39262 | | 42542 | |
| 39263 | export type V2ModelProviderCapabilitiesReadParams = {}; | 42543 | export type V2ModelProviderCapabilitiesReadParams = { readonly [x: string]: Schema.Json }; |
| 39264 | export const V2ModelProviderCapabilitiesReadParams = Schema.Struct({}).annotate({ | 42544 | export const V2ModelProviderCapabilitiesReadParams = Schema.Record( |
| 39265 | title: "ModelProviderCapabilitiesReadParams", | 42545 | Schema.String, |
| 39266 | }); | 42546 | Schema.Json.annotate({ expected: "JSON value" }), |
| | 42547 | ).annotate({ title: "ModelProviderCapabilitiesReadParams" }); |
| 39267 | | 42548 | |
| 39268 | export type V2ModelProviderCapabilitiesReadResponse = { | 42549 | export type V2ModelProviderCapabilitiesReadResponse = { |
| 39269 | readonly imageGeneration: boolean; | 42550 | readonly imageGeneration: boolean; |
| ... | @@ -39349,8 +42630,12 @@ export const V2PermissionProfileListParams = Schema.Struct({ | ... | @@ -39349,8 +42630,12 @@ export const V2PermissionProfileListParams = Schema.Struct({ |
| 39349 | description: "Optional page size; defaults to the full result set.", | 42630 | description: "Optional page size; defaults to the full result set.", |
| 39350 | format: "uint32", | 42631 | format: "uint32", |
| 39351 | }) | 42632 | }) |
| 39352 | .check(Schema.isInt()) | 42633 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 39353 | .check(Schema.isGreaterThanOrEqualTo(0)), | 42634 | .check( |
| | 42635 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 42636 | expected: "a value greater than or equal to 0", |
| | 42637 | }), |
| | 42638 | ), |
| 39354 | Schema.Null, | 42639 | Schema.Null, |
| 39355 | ]), | 42640 | ]), |
| 39356 | ), | 42641 | ), |
| ... | @@ -39425,12 +42710,6 @@ export const V2PluginInstalledResponse = Schema.Struct({ | ... | @@ -39425,12 +42710,6 @@ export const V2PluginInstalledResponse = Schema.Struct({ |
| 39425 | marketplaces: Schema.Array(V2PluginInstalledResponse__PluginMarketplaceEntry), | 42710 | marketplaces: Schema.Array(V2PluginInstalledResponse__PluginMarketplaceEntry), |
| 39426 | }).annotate({ title: "PluginInstalledResponse" }); | 42711 | }).annotate({ title: "PluginInstalledResponse" }); |
| 39427 | | 42712 | |
| 39428 | export type V2PluginInstalledResponse__PluginAvailability = "DISABLED_BY_ADMIN" | "AVAILABLE"; | | |
| 39429 | export const V2PluginInstalledResponse__PluginAvailability = Schema.Literals([ | | |
| 39430 | "DISABLED_BY_ADMIN", | | |
| 39431 | "AVAILABLE", | | |
| 39432 | ]); | | |
| 39433 | | | |
| 39434 | export type V2PluginInstallParams = { | 42713 | export type V2PluginInstallParams = { |
| 39435 | readonly marketplacePath?: V2PluginInstallParams__AbsolutePathBuf | null; | 42714 | readonly marketplacePath?: V2PluginInstallParams__AbsolutePathBuf | null; |
| 39436 | readonly pluginName: string; | 42715 | readonly pluginName: string; |
| ... | @@ -39491,12 +42770,6 @@ export const V2PluginListResponse = Schema.Struct({ | ... | @@ -39491,12 +42770,6 @@ export const V2PluginListResponse = Schema.Struct({ |
| 39491 | marketplaces: Schema.Array(V2PluginListResponse__PluginMarketplaceEntry), | 42770 | marketplaces: Schema.Array(V2PluginListResponse__PluginMarketplaceEntry), |
| 39492 | }).annotate({ title: "PluginListResponse" }); | 42771 | }).annotate({ title: "PluginListResponse" }); |
| 39493 | | 42772 | |
| 39494 | export type V2PluginListResponse__PluginAvailability = "DISABLED_BY_ADMIN" | "AVAILABLE"; | | |
| 39495 | export const V2PluginListResponse__PluginAvailability = Schema.Literals([ | | |
| 39496 | "DISABLED_BY_ADMIN", | | |
| 39497 | "AVAILABLE", | | |
| 39498 | ]); | | |
| 39499 | | | |
| 39500 | export type V2PluginReadParams = { | 42773 | export type V2PluginReadParams = { |
| 39501 | readonly marketplacePath?: V2PluginReadParams__AbsolutePathBuf | null; | 42774 | readonly marketplacePath?: V2PluginReadParams__AbsolutePathBuf | null; |
| 39502 | readonly pluginName: string; | 42775 | readonly pluginName: string; |
| ... | @@ -39515,12 +42788,6 @@ export const V2PluginReadResponse = Schema.Struct({ | ... | @@ -39515,12 +42788,6 @@ export const V2PluginReadResponse = Schema.Struct({ |
| 39515 | plugin: V2PluginReadResponse__PluginDetail, | 42788 | plugin: V2PluginReadResponse__PluginDetail, |
| 39516 | }).annotate({ title: "PluginReadResponse" }); | 42789 | }).annotate({ title: "PluginReadResponse" }); |
| 39517 | | 42790 | |
| 39518 | export type V2PluginReadResponse__PluginAvailability = "DISABLED_BY_ADMIN" | "AVAILABLE"; | | |
| 39519 | export const V2PluginReadResponse__PluginAvailability = Schema.Literals([ | | |
| 39520 | "DISABLED_BY_ADMIN", | | |
| 39521 | "AVAILABLE", | | |
| 39522 | ]); | | |
| 39523 | | | |
| 39524 | export type V2PluginShareCheckoutParams = { readonly remotePluginId: string }; | 42791 | export type V2PluginShareCheckoutParams = { readonly remotePluginId: string }; |
| 39525 | export const V2PluginShareCheckoutParams = Schema.Struct({ | 42792 | export const V2PluginShareCheckoutParams = Schema.Struct({ |
| 39526 | remotePluginId: Schema.String, | 42793 | remotePluginId: Schema.String, |
| ... | @@ -39550,15 +42817,17 @@ export const V2PluginShareDeleteParams = Schema.Struct({ remotePluginId: Schema. | ... | @@ -39550,15 +42817,17 @@ export const V2PluginShareDeleteParams = Schema.Struct({ remotePluginId: Schema. |
| 39550 | title: "PluginShareDeleteParams", | 42817 | title: "PluginShareDeleteParams", |
| 39551 | }); | 42818 | }); |
| 39552 | | 42819 | |
| 39553 | export type V2PluginShareDeleteResponse = {}; | 42820 | export type V2PluginShareDeleteResponse = { readonly [x: string]: Schema.Json }; |
| 39554 | export const V2PluginShareDeleteResponse = Schema.Struct({}).annotate({ | 42821 | export const V2PluginShareDeleteResponse = Schema.Record( |
| 39555 | title: "PluginShareDeleteResponse", | 42822 | Schema.String, |
| 39556 | }); | 42823 | Schema.Json.annotate({ expected: "JSON value" }), |
| | 42824 | ).annotate({ title: "PluginShareDeleteResponse" }); |
| 39557 | | 42825 | |
| 39558 | export type V2PluginShareListParams = {}; | 42826 | export type V2PluginShareListParams = { readonly [x: string]: Schema.Json }; |
| 39559 | export const V2PluginShareListParams = Schema.Struct({}).annotate({ | 42827 | export const V2PluginShareListParams = Schema.Record( |
| 39560 | title: "PluginShareListParams", | 42828 | Schema.String, |
| 39561 | }); | 42829 | Schema.Json.annotate({ expected: "JSON value" }), |
| | 42830 | ).annotate({ title: "PluginShareListParams" }); |
| 39562 | | 42831 | |
| 39563 | export type V2PluginShareListResponse = { | 42832 | export type V2PluginShareListResponse = { |
| 39564 | readonly data: ReadonlyArray<V2PluginShareListResponse__PluginShareListItem>; | 42833 | readonly data: ReadonlyArray<V2PluginShareListResponse__PluginShareListItem>; |
| ... | @@ -39567,12 +42836,6 @@ export const V2PluginShareListResponse = Schema.Struct({ | ... | @@ -39567,12 +42836,6 @@ export const V2PluginShareListResponse = Schema.Struct({ |
| 39567 | data: Schema.Array(V2PluginShareListResponse__PluginShareListItem), | 42836 | data: Schema.Array(V2PluginShareListResponse__PluginShareListItem), |
| 39568 | }).annotate({ title: "PluginShareListResponse" }); | 42837 | }).annotate({ title: "PluginShareListResponse" }); |
| 39569 | | 42838 | |
| 39570 | export type V2PluginShareListResponse__PluginAvailability = "DISABLED_BY_ADMIN" | "AVAILABLE"; | | |
| 39571 | export const V2PluginShareListResponse__PluginAvailability = Schema.Literals([ | | |
| 39572 | "DISABLED_BY_ADMIN", | | |
| 39573 | "AVAILABLE", | | |
| 39574 | ]); | | |
| 39575 | | | |
| 39576 | export type V2PluginShareSaveParams = { | 42839 | export type V2PluginShareSaveParams = { |
| 39577 | readonly discoverability?: V2PluginShareSaveParams__PluginShareDiscoverability | null; | 42840 | readonly discoverability?: V2PluginShareSaveParams__PluginShareDiscoverability | null; |
| 39578 | readonly pluginPath: V2PluginShareSaveParams__AbsolutePathBuf; | 42841 | readonly pluginPath: V2PluginShareSaveParams__AbsolutePathBuf; |
| ... | @@ -39640,10 +42903,11 @@ export const V2PluginUninstallParams = Schema.Struct({ pluginId: Schema.String } | ... | @@ -39640,10 +42903,11 @@ export const V2PluginUninstallParams = Schema.Struct({ pluginId: Schema.String } |
| 39640 | title: "PluginUninstallParams", | 42903 | title: "PluginUninstallParams", |
| 39641 | }); | 42904 | }); |
| 39642 | | 42905 | |
| 39643 | export type V2PluginUninstallResponse = {}; | 42906 | export type V2PluginUninstallResponse = { readonly [x: string]: Schema.Json }; |
| 39644 | export const V2PluginUninstallResponse = Schema.Struct({}).annotate({ | 42907 | export const V2PluginUninstallResponse = Schema.Record( |
| 39645 | title: "PluginUninstallResponse", | 42908 | Schema.String, |
| 39646 | }); | 42909 | Schema.Json.annotate({ expected: "JSON value" }), |
| | 42910 | ).annotate({ title: "PluginUninstallResponse" }); |
| 39647 | | 42911 | |
| 39648 | export type V2ProcessExitedNotification = { | 42912 | export type V2ProcessExitedNotification = { |
| 39649 | readonly exitCode: number; | 42913 | readonly exitCode: number; |
| ... | @@ -39655,7 +42919,7 @@ export type V2ProcessExitedNotification = { | ... | @@ -39655,7 +42919,7 @@ export type V2ProcessExitedNotification = { |
| 39655 | }; | 42919 | }; |
| 39656 | export const V2ProcessExitedNotification = Schema.Struct({ | 42920 | export const V2ProcessExitedNotification = Schema.Struct({ |
| 39657 | exitCode: Schema.Number.annotate({ description: "Process exit code.", format: "int32" }).check( | 42921 | exitCode: Schema.Number.annotate({ description: "Process exit code.", format: "int32" }).check( |
| 39658 | Schema.isInt(), | 42922 | Schema.isInt().annotate({ expected: "an integer" }), |
| 39659 | ), | 42923 | ), |
| 39660 | processHandle: Schema.String.annotate({ | 42924 | processHandle: Schema.String.annotate({ |
| 39661 | description: "Client-supplied, connection-scoped `processHandle` from `process/spawn`.", | 42925 | description: "Client-supplied, connection-scoped `processHandle` from `process/spawn`.", |
| ... | @@ -39685,7 +42949,7 @@ export type V2ProcessOutputDeltaNotification = { | ... | @@ -39685,7 +42949,7 @@ export type V2ProcessOutputDeltaNotification = { |
| 39685 | readonly capReached: boolean; | 42949 | readonly capReached: boolean; |
| 39686 | readonly deltaBase64: string; | 42950 | readonly deltaBase64: string; |
| 39687 | readonly processHandle: string; | 42951 | readonly processHandle: string; |
| 39688 | readonly stream: "stdout" | "stderr"; | 42952 | readonly stream: V2ProcessOutputDeltaNotification__ProcessOutputStream; |
| 39689 | }; | 42953 | }; |
| 39690 | export const V2ProcessOutputDeltaNotification = Schema.Struct({ | 42954 | export const V2ProcessOutputDeltaNotification = Schema.Struct({ |
| 39691 | capReached: Schema.Boolean.annotate({ | 42955 | capReached: Schema.Boolean.annotate({ |
| ... | @@ -39696,20 +42960,15 @@ export const V2ProcessOutputDeltaNotification = Schema.Struct({ | ... | @@ -39696,20 +42960,15 @@ export const V2ProcessOutputDeltaNotification = Schema.Struct({ |
| 39696 | processHandle: Schema.String.annotate({ | 42960 | processHandle: Schema.String.annotate({ |
| 39697 | description: "Client-supplied, connection-scoped `processHandle` from `process/spawn`.", | 42961 | description: "Client-supplied, connection-scoped `processHandle` from `process/spawn`.", |
| 39698 | }), | 42962 | }), |
| 39699 | stream: Schema.Literals(["stdout", "stderr"]).annotate({ | 42963 | stream: Schema.suspend( |
| 39700 | description: "Stream label for `process/outputDelta` notifications.", | 42964 | (): Schema.Codec<V2ProcessOutputDeltaNotification__ProcessOutputStream> => |
| 39701 | }), | 42965 | V2ProcessOutputDeltaNotification__ProcessOutputStream, |
| | 42966 | ).annotate({ description: "Output stream this chunk belongs to." }), |
| 39702 | }).annotate({ | 42967 | }).annotate({ |
| 39703 | title: "ProcessOutputDeltaNotification", | 42968 | title: "ProcessOutputDeltaNotification", |
| 39704 | description: "Base64-encoded output chunk emitted for a streaming `process/spawn` request.", | 42969 | description: "Base64-encoded output chunk emitted for a streaming `process/spawn` request.", |
| 39705 | }); | 42970 | }); |
| 39706 | | 42971 | |
| 39707 | export type V2ProcessOutputDeltaNotification__ProcessOutputStream = "stdout" | "stderr"; | | |
| 39708 | export const V2ProcessOutputDeltaNotification__ProcessOutputStream = Schema.Literals([ | | |
| 39709 | "stdout", | | |
| 39710 | "stderr", | | |
| 39711 | ]).annotate({ description: "Stream label for `process/outputDelta` notifications." }); | | |
| 39712 | | | |
| 39713 | export type V2RawResponseCompletedNotification = { | 42972 | export type V2RawResponseCompletedNotification = { |
| 39714 | readonly responseId: string; | 42973 | readonly responseId: string; |
| 39715 | readonly threadId: string; | 42974 | readonly threadId: string; |
| ... | @@ -39748,7 +43007,9 @@ export type V2ReasoningSummaryPartAddedNotification = { | ... | @@ -39748,7 +43007,9 @@ export type V2ReasoningSummaryPartAddedNotification = { |
| 39748 | }; | 43007 | }; |
| 39749 | export const V2ReasoningSummaryPartAddedNotification = Schema.Struct({ | 43008 | export const V2ReasoningSummaryPartAddedNotification = Schema.Struct({ |
| 39750 | itemId: Schema.String, | 43009 | itemId: Schema.String, |
| 39751 | summaryIndex: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 43010 | summaryIndex: Schema.Number.annotate({ format: "int64" }).check( |
| | 43011 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 43012 | ), |
| 39752 | threadId: Schema.String, | 43013 | threadId: Schema.String, |
| 39753 | turnId: Schema.String, | 43014 | turnId: Schema.String, |
| 39754 | }).annotate({ title: "ReasoningSummaryPartAddedNotification" }); | 43015 | }).annotate({ title: "ReasoningSummaryPartAddedNotification" }); |
| ... | @@ -39763,7 +43024,9 @@ export type V2ReasoningSummaryTextDeltaNotification = { | ... | @@ -39763,7 +43024,9 @@ export type V2ReasoningSummaryTextDeltaNotification = { |
| 39763 | export const V2ReasoningSummaryTextDeltaNotification = Schema.Struct({ | 43024 | export const V2ReasoningSummaryTextDeltaNotification = Schema.Struct({ |
| 39764 | delta: Schema.String, | 43025 | delta: Schema.String, |
| 39765 | itemId: Schema.String, | 43026 | itemId: Schema.String, |
| 39766 | summaryIndex: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 43027 | summaryIndex: Schema.Number.annotate({ format: "int64" }).check( |
| | 43028 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 43029 | ), |
| 39767 | threadId: Schema.String, | 43030 | threadId: Schema.String, |
| 39768 | turnId: Schema.String, | 43031 | turnId: Schema.String, |
| 39769 | }).annotate({ title: "ReasoningSummaryTextDeltaNotification" }); | 43032 | }).annotate({ title: "ReasoningSummaryTextDeltaNotification" }); |
| ... | @@ -39776,7 +43039,9 @@ export type V2ReasoningTextDeltaNotification = { | ... | @@ -39776,7 +43039,9 @@ export type V2ReasoningTextDeltaNotification = { |
| 39776 | readonly turnId: string; | 43039 | readonly turnId: string; |
| 39777 | }; | 43040 | }; |
| 39778 | export const V2ReasoningTextDeltaNotification = Schema.Struct({ | 43041 | export const V2ReasoningTextDeltaNotification = Schema.Struct({ |
| 39779 | contentIndex: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 43042 | contentIndex: Schema.Number.annotate({ format: "int64" }).check( |
| | 43043 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 43044 | ), |
| 39780 | delta: Schema.String, | 43045 | delta: Schema.String, |
| 39781 | itemId: Schema.String, | 43046 | itemId: Schema.String, |
| 39782 | threadId: Schema.String, | 43047 | threadId: Schema.String, |
| ... | @@ -39827,69 +43092,6 @@ export const V2ReviewStartResponse = Schema.Struct({ | ... | @@ -39827,69 +43092,6 @@ export const V2ReviewStartResponse = Schema.Struct({ |
| 39827 | turn: V2ReviewStartResponse__Turn, | 43092 | turn: V2ReviewStartResponse__Turn, |
| 39828 | }).annotate({ title: "ReviewStartResponse" }); | 43093 | }).annotate({ title: "ReviewStartResponse" }); |
| 39829 | | 43094 | |
| 39830 | export type V2ReviewStartResponse__ByteRange = { readonly end: number; readonly start: number }; | | |
| 39831 | export const V2ReviewStartResponse__ByteRange = Schema.Struct({ | | |
| 39832 | end: Schema.Number.annotate({ format: "uint" }) | | |
| 39833 | .check(Schema.isInt()) | | |
| 39834 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 39835 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 39836 | .check(Schema.isInt()) | | |
| 39837 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 39838 | }); | | |
| 39839 | | | |
| 39840 | export type V2ReviewStartResponse__CollabAgentTool = | | |
| 39841 | | "spawnAgent" | | |
| 39842 | | "sendInput" | | |
| 39843 | | "resumeAgent" | | |
| 39844 | | "wait" | | |
| 39845 | | "closeAgent" | | |
| 39846 | | "sendMessage" | | |
| 39847 | | "followupTask" | | |
| 39848 | | "interruptAgent" | | |
| 39849 | | "listAgents"; | | |
| 39850 | export const V2ReviewStartResponse__CollabAgentTool = Schema.Literals([ | | |
| 39851 | "spawnAgent", | | |
| 39852 | "sendInput", | | |
| 39853 | "resumeAgent", | | |
| 39854 | "wait", | | |
| 39855 | "closeAgent", | | |
| 39856 | "sendMessage", | | |
| 39857 | "followupTask", | | |
| 39858 | "interruptAgent", | | |
| 39859 | "listAgents", | | |
| 39860 | ]); | | |
| 39861 | | | |
| 39862 | export type V2ReviewStartResponse__CollabAgentToolCallStatus = | | |
| 39863 | | "inProgress" | | |
| 39864 | | "completed" | | |
| 39865 | | "failed" | | |
| 39866 | | "interrupted"; | | |
| 39867 | export const V2ReviewStartResponse__CollabAgentToolCallStatus = Schema.Literals([ | | |
| 39868 | "inProgress", | | |
| 39869 | "completed", | | |
| 39870 | "failed", | | |
| 39871 | "interrupted", | | |
| 39872 | ]); | | |
| 39873 | | | |
| 39874 | export type V2ReviewStartResponse__CommandExecutionSource = | | |
| 39875 | | "agent" | | |
| 39876 | | "userShell" | | |
| 39877 | | "unifiedExecStartup" | | |
| 39878 | | "unifiedExecInteraction"; | | |
| 39879 | export const V2ReviewStartResponse__CommandExecutionSource = Schema.Literals([ | | |
| 39880 | "agent", | | |
| 39881 | "userShell", | | |
| 39882 | "unifiedExecStartup", | | |
| 39883 | "unifiedExecInteraction", | | |
| 39884 | ]); | | |
| 39885 | | | |
| 39886 | export type V2ReviewStartResponse__TurnItemsView = "notLoaded" | "summary" | "full"; | | |
| 39887 | export const V2ReviewStartResponse__TurnItemsView = Schema.Literals([ | | |
| 39888 | "notLoaded", | | |
| 39889 | "summary", | | |
| 39890 | "full", | | |
| 39891 | ]); | | |
| 39892 | | | |
| 39893 | export type V2SendAddCreditsNudgeEmailParams = { | 43095 | export type V2SendAddCreditsNudgeEmailParams = { |
| 39894 | readonly creditType: V2SendAddCreditsNudgeEmailParams__AddCreditsNudgeCreditType; | 43096 | readonly creditType: V2SendAddCreditsNudgeEmailParams__AddCreditsNudgeCreditType; |
| 39895 | }; | 43097 | }; |
| ... | @@ -39913,8 +43115,11 @@ export const V2ServerRequestResolvedNotification = Schema.Struct({ | ... | @@ -39913,8 +43115,11 @@ export const V2ServerRequestResolvedNotification = Schema.Struct({ |
| 39913 | threadId: Schema.String, | 43115 | threadId: Schema.String, |
| 39914 | }).annotate({ title: "ServerRequestResolvedNotification" }); | 43116 | }).annotate({ title: "ServerRequestResolvedNotification" }); |
| 39915 | | 43117 | |
| 39916 | export type V2SkillsChangedNotification = {}; | 43118 | export type V2SkillsChangedNotification = { readonly [x: string]: Schema.Json }; |
| 39917 | export const V2SkillsChangedNotification = Schema.Struct({}).annotate({ | 43119 | export const V2SkillsChangedNotification = Schema.Record( |
| | 43120 | Schema.String, |
| | 43121 | Schema.Json.annotate({ expected: "JSON value" }), |
| | 43122 | ).annotate({ |
| 39918 | title: "SkillsChangedNotification", | 43123 | title: "SkillsChangedNotification", |
| 39919 | description: | 43124 | description: |
| 39920 | "Notification emitted when watched local skill files change.\n\nTreat this as an invalidation signal and re-run `skills/list` with the client's current parameters when refreshed skill metadata is needed.", | 43125 | "Notification emitted when watched local skill files change.\n\nTreat this as an invalidation signal and re-run `skills/list` with the client's current parameters when refreshed skill metadata is needed.", |
| ... | @@ -39949,10 +43154,11 @@ export const V2SkillsExtraRootsSetParams = Schema.Struct({ | ... | @@ -39949,10 +43154,11 @@ export const V2SkillsExtraRootsSetParams = Schema.Struct({ |
| 39949 | extraRoots: Schema.Array(V2SkillsExtraRootsSetParams__AbsolutePathBuf), | 43154 | extraRoots: Schema.Array(V2SkillsExtraRootsSetParams__AbsolutePathBuf), |
| 39950 | }).annotate({ title: "SkillsExtraRootsSetParams" }); | 43155 | }).annotate({ title: "SkillsExtraRootsSetParams" }); |
| 39951 | | 43156 | |
| 39952 | export type V2SkillsExtraRootsSetResponse = {}; | 43157 | export type V2SkillsExtraRootsSetResponse = { readonly [x: string]: Schema.Json }; |
| 39953 | export const V2SkillsExtraRootsSetResponse = Schema.Struct({}).annotate({ | 43158 | export const V2SkillsExtraRootsSetResponse = Schema.Record( |
| 39954 | title: "SkillsExtraRootsSetResponse", | 43159 | Schema.String, |
| 39955 | }); | 43160 | Schema.Json.annotate({ expected: "JSON value" }), |
| | 43161 | ).annotate({ title: "SkillsExtraRootsSetResponse" }); |
| 39956 | | 43162 | |
| 39957 | export type V2SkillsListParams = { | 43163 | export type V2SkillsListParams = { |
| 39958 | readonly cwds?: ReadonlyArray<string>; | 43164 | readonly cwds?: ReadonlyArray<string>; |
| ... | @@ -39994,20 +43200,22 @@ export const V2TerminalInteractionNotification = Schema.Struct({ | ... | @@ -39994,20 +43200,22 @@ export const V2TerminalInteractionNotification = Schema.Struct({ |
| 39994 | }).annotate({ title: "TerminalInteractionNotification" }); | 43200 | }).annotate({ title: "TerminalInteractionNotification" }); |
| 39995 | | 43201 | |
| 39996 | export type V2ThreadApproveGuardianDeniedActionParams = { | 43202 | export type V2ThreadApproveGuardianDeniedActionParams = { |
| 39997 | readonly event: unknown; | 43203 | readonly event: Schema.Json; |
| 39998 | readonly threadId: string; | 43204 | readonly threadId: string; |
| 39999 | }; | 43205 | }; |
| 40000 | export const V2ThreadApproveGuardianDeniedActionParams = Schema.Struct({ | 43206 | export const V2ThreadApproveGuardianDeniedActionParams = Schema.Struct({ |
| 40001 | event: Schema.Unknown.annotate({ | 43207 | event: Schema.Json.annotate({ |
| | 43208 | expected: "JSON value", |
| 40002 | description: "Serialized `codex_protocol::protocol::GuardianAssessmentEvent`.", | 43209 | description: "Serialized `codex_protocol::protocol::GuardianAssessmentEvent`.", |
| 40003 | }), | 43210 | }), |
| 40004 | threadId: Schema.String, | 43211 | threadId: Schema.String, |
| 40005 | }).annotate({ title: "ThreadApproveGuardianDeniedActionParams" }); | 43212 | }).annotate({ title: "ThreadApproveGuardianDeniedActionParams" }); |
| 40006 | | 43213 | |
| 40007 | export type V2ThreadApproveGuardianDeniedActionResponse = {}; | 43214 | export type V2ThreadApproveGuardianDeniedActionResponse = { readonly [x: string]: Schema.Json }; |
| 40008 | export const V2ThreadApproveGuardianDeniedActionResponse = Schema.Struct({}).annotate({ | 43215 | export const V2ThreadApproveGuardianDeniedActionResponse = Schema.Record( |
| 40009 | title: "ThreadApproveGuardianDeniedActionResponse", | 43216 | Schema.String, |
| 40010 | }); | 43217 | Schema.Json.annotate({ expected: "JSON value" }), |
| | 43218 | ).annotate({ title: "ThreadApproveGuardianDeniedActionResponse" }); |
| 40011 | | 43219 | |
| 40012 | export type V2ThreadArchivedNotification = { readonly threadId: string }; | 43220 | export type V2ThreadArchivedNotification = { readonly threadId: string }; |
| 40013 | export const V2ThreadArchivedNotification = Schema.Struct({ threadId: Schema.String }).annotate({ | 43221 | export const V2ThreadArchivedNotification = Schema.Struct({ threadId: Schema.String }).annotate({ |
| ... | @@ -40019,10 +43227,11 @@ export const V2ThreadArchiveParams = Schema.Struct({ threadId: Schema.String }). | ... | @@ -40019,10 +43227,11 @@ export const V2ThreadArchiveParams = Schema.Struct({ threadId: Schema.String }). |
| 40019 | title: "ThreadArchiveParams", | 43227 | title: "ThreadArchiveParams", |
| 40020 | }); | 43228 | }); |
| 40021 | | 43229 | |
| 40022 | export type V2ThreadArchiveResponse = {}; | 43230 | export type V2ThreadArchiveResponse = { readonly [x: string]: Schema.Json }; |
| 40023 | export const V2ThreadArchiveResponse = Schema.Struct({}).annotate({ | 43231 | export const V2ThreadArchiveResponse = Schema.Record( |
| 40024 | title: "ThreadArchiveResponse", | 43232 | Schema.String, |
| 40025 | }); | 43233 | Schema.Json.annotate({ expected: "JSON value" }), |
| | 43234 | ).annotate({ title: "ThreadArchiveResponse" }); |
| 40026 | | 43235 | |
| 40027 | export type V2ThreadClosedNotification = { readonly threadId: string }; | 43236 | export type V2ThreadClosedNotification = { readonly threadId: string }; |
| 40028 | export const V2ThreadClosedNotification = Schema.Struct({ threadId: Schema.String }).annotate({ | 43237 | export const V2ThreadClosedNotification = Schema.Struct({ threadId: Schema.String }).annotate({ |
| ... | @@ -40034,10 +43243,11 @@ export const V2ThreadCompactStartParams = Schema.Struct({ threadId: Schema.Strin | ... | @@ -40034,10 +43243,11 @@ export const V2ThreadCompactStartParams = Schema.Struct({ threadId: Schema.Strin |
| 40034 | title: "ThreadCompactStartParams", | 43243 | title: "ThreadCompactStartParams", |
| 40035 | }); | 43244 | }); |
| 40036 | | 43245 | |
| 40037 | export type V2ThreadCompactStartResponse = {}; | 43246 | export type V2ThreadCompactStartResponse = { readonly [x: string]: Schema.Json }; |
| 40038 | export const V2ThreadCompactStartResponse = Schema.Struct({}).annotate({ | 43247 | export const V2ThreadCompactStartResponse = Schema.Record( |
| 40039 | title: "ThreadCompactStartResponse", | 43248 | Schema.String, |
| 40040 | }); | 43249 | Schema.Json.annotate({ expected: "JSON value" }), |
| | 43250 | ).annotate({ title: "ThreadCompactStartResponse" }); |
| 40041 | | 43251 | |
| 40042 | export type V2ThreadDeletedNotification = { readonly threadId: string }; | 43252 | export type V2ThreadDeletedNotification = { readonly threadId: string }; |
| 40043 | export const V2ThreadDeletedNotification = Schema.Struct({ threadId: Schema.String }).annotate({ | 43253 | export const V2ThreadDeletedNotification = Schema.Struct({ threadId: Schema.String }).annotate({ |
| ... | @@ -40049,14 +43259,17 @@ export const V2ThreadDeleteParams = Schema.Struct({ threadId: Schema.String }).a | ... | @@ -40049,14 +43259,17 @@ export const V2ThreadDeleteParams = Schema.Struct({ threadId: Schema.String }).a |
| 40049 | title: "ThreadDeleteParams", | 43259 | title: "ThreadDeleteParams", |
| 40050 | }); | 43260 | }); |
| 40051 | | 43261 | |
| 40052 | export type V2ThreadDeleteResponse = {}; | 43262 | export type V2ThreadDeleteResponse = { readonly [x: string]: Schema.Json }; |
| 40053 | export const V2ThreadDeleteResponse = Schema.Struct({}).annotate({ title: "ThreadDeleteResponse" }); | 43263 | export const V2ThreadDeleteResponse = Schema.Record( |
| | 43264 | Schema.String, |
| | 43265 | Schema.Json.annotate({ expected: "JSON value" }), |
| | 43266 | ).annotate({ title: "ThreadDeleteResponse" }); |
| 40054 | | 43267 | |
| 40055 | export type V2ThreadForkParams = { | 43268 | export type V2ThreadForkParams = { |
| 40056 | readonly approvalPolicy?: V2ThreadForkParams__AskForApproval | null; | 43269 | readonly approvalPolicy?: V2ThreadForkParams__AskForApproval | null; |
| 40057 | readonly approvalsReviewer?: V2ThreadForkParams__ApprovalsReviewer | null; | 43270 | readonly approvalsReviewer?: V2ThreadForkParams__ApprovalsReviewer | null; |
| 40058 | readonly baseInstructions?: string | null; | 43271 | readonly baseInstructions?: string | null; |
| 40059 | readonly config?: { readonly [x: string]: unknown } | null; | 43272 | readonly config?: { readonly [x: string]: Schema.Json } | null; |
| 40060 | readonly cwd?: string | null; | 43273 | readonly cwd?: string | null; |
| 40061 | readonly developerInstructions?: string | null; | 43274 | readonly developerInstructions?: string | null; |
| 40062 | readonly ephemeral?: boolean; | 43275 | readonly ephemeral?: boolean; |
| ... | @@ -40080,7 +43293,10 @@ export const V2ThreadForkParams = Schema.Struct({ | ... | @@ -40080,7 +43293,10 @@ export const V2ThreadForkParams = Schema.Struct({ |
| 40080 | ), | 43293 | ), |
| 40081 | baseInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 43294 | baseInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 40082 | config: Schema.optionalKey( | 43295 | config: Schema.optionalKey( |
| 40083 | Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]), | 43296 | Schema.Union([ |
| | 43297 | Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })), |
| | 43298 | Schema.Null, |
| | 43299 | ]), |
| 40084 | ), | 43300 | ), |
| 40085 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 43301 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 40086 | developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 43302 | developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -40126,32 +43342,22 @@ export const V2ThreadForkParams__AbsolutePathBuf = Schema.String.annotate({ | ... | @@ -40126,32 +43342,22 @@ export const V2ThreadForkParams__AbsolutePathBuf = Schema.String.annotate({ |
| 40126 | | 43342 | |
| 40127 | export type V2ThreadForkResponse = { | 43343 | export type V2ThreadForkResponse = { |
| 40128 | readonly approvalPolicy: V2ThreadForkResponse__AskForApproval; | 43344 | readonly approvalPolicy: V2ThreadForkResponse__AskForApproval; |
| 40129 | readonly approvalsReviewer: "user" | "auto_review" | "guardian_subagent"; | 43345 | readonly approvalsReviewer: V2ThreadForkResponse__ApprovalsReviewer; |
| 40130 | readonly cwd: V2ThreadForkResponse__AbsolutePathBuf; | 43346 | readonly cwd: V2ThreadForkResponse__AbsolutePathBuf; |
| 40131 | readonly instructionSources?: ReadonlyArray<V2ThreadForkResponse__LegacyAppPathString>; | 43347 | readonly instructionSources?: ReadonlyArray<V2ThreadForkResponse__LegacyAppPathString>; |
| 40132 | readonly model: string; | 43348 | readonly model: string; |
| 40133 | readonly modelProvider: string; | 43349 | readonly modelProvider: string; |
| 40134 | readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null; | 43350 | readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null; |
| 40135 | readonly sandbox: | 43351 | readonly sandbox: V2ThreadForkResponse__SandboxPolicy; |
| 40136 | | { readonly type: "dangerFullAccess" } | | |
| 40137 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } | | |
| 40138 | | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" } | | |
| 40139 | | { | | |
| 40140 | readonly excludeSlashTmp?: boolean; | | |
| 40141 | readonly excludeTmpdirEnvVar?: boolean; | | |
| 40142 | readonly networkAccess?: boolean; | | |
| 40143 | readonly type: "workspaceWrite"; | | |
| 40144 | readonly writableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>; | | |
| 40145 | }; | | |
| 40146 | readonly serviceTier?: string | null; | 43352 | readonly serviceTier?: string | null; |
| 40147 | readonly thread: V2ThreadForkResponse__Thread; | 43353 | readonly thread: V2ThreadForkResponse__Thread; |
| 40148 | }; | 43354 | }; |
| 40149 | export const V2ThreadForkResponse = Schema.Struct({ | 43355 | export const V2ThreadForkResponse = Schema.Struct({ |
| 40150 | approvalPolicy: V2ThreadForkResponse__AskForApproval, | 43356 | approvalPolicy: V2ThreadForkResponse__AskForApproval, |
| 40151 | approvalsReviewer: Schema.Literals(["user", "auto_review", "guardian_subagent"]).annotate({ | 43357 | approvalsReviewer: Schema.suspend( |
| 40152 | description: | 43358 | (): Schema.Codec<V2ThreadForkResponse__ApprovalsReviewer> => |
| 40153 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", | 43359 | V2ThreadForkResponse__ApprovalsReviewer, |
| 40154 | }), | 43360 | ).annotate({ description: "Reviewer currently used for approval requests on this thread." }), |
| 40155 | cwd: V2ThreadForkResponse__AbsolutePathBuf, | 43361 | cwd: V2ThreadForkResponse__AbsolutePathBuf, |
| 40156 | instructionSources: Schema.optionalKey( | 43362 | instructionSources: Schema.optionalKey( |
| 40157 | Schema.Array(V2ThreadForkResponse__LegacyAppPathString).annotate({ | 43363 | Schema.Array(V2ThreadForkResponse__LegacyAppPathString).annotate({ |
| ... | @@ -40165,38 +43371,8 @@ export const V2ThreadForkResponse = Schema.Struct({ | ... | @@ -40165,38 +43371,8 @@ export const V2ThreadForkResponse = Schema.Struct({ |
| 40165 | reasoningEffort: Schema.optionalKey( | 43371 | reasoningEffort: Schema.optionalKey( |
| 40166 | Schema.Union([V2ThreadForkResponse__ReasoningEffort, Schema.Null]), | 43372 | Schema.Union([V2ThreadForkResponse__ReasoningEffort, Schema.Null]), |
| 40167 | ), | 43373 | ), |
| 40168 | sandbox: Schema.Union( | 43374 | sandbox: Schema.suspend( |
| 40169 | [ | 43375 | (): Schema.Codec<V2ThreadForkResponse__SandboxPolicy> => V2ThreadForkResponse__SandboxPolicy, |
| 40170 | Schema.Struct({ | | |
| 40171 | type: Schema.Literal("dangerFullAccess").annotate({ | | |
| 40172 | title: "DangerFullAccessSandboxPolicyType", | | |
| 40173 | }), | | |
| 40174 | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), | | |
| 40175 | Schema.Struct({ | | |
| 40176 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 40177 | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), | | |
| 40178 | }).annotate({ title: "ReadOnlySandboxPolicy" }), | | |
| 40179 | Schema.Struct({ | | |
| 40180 | networkAccess: Schema.optionalKey( | | |
| 40181 | Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }), | | |
| 40182 | ), | | |
| 40183 | type: Schema.Literal("externalSandbox").annotate({ | | |
| 40184 | title: "ExternalSandboxSandboxPolicyType", | | |
| 40185 | }), | | |
| 40186 | }).annotate({ title: "ExternalSandboxSandboxPolicy" }), | | |
| 40187 | Schema.Struct({ | | |
| 40188 | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 40189 | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 40190 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 40191 | type: Schema.Literal("workspaceWrite").annotate({ | | |
| 40192 | title: "WorkspaceWriteSandboxPolicyType", | | |
| 40193 | }), | | |
| 40194 | writableRoots: Schema.optionalKey( | | |
| 40195 | Schema.Array(V2ThreadForkResponse__AbsolutePathBuf).annotate({ default: [] }), | | |
| 40196 | ), | | |
| 40197 | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), | | |
| 40198 | ], | | |
| 40199 | { mode: "oneOf" }, | | |
| 40200 | ).annotate({ | 43376 | ).annotate({ |
| 40201 | description: | 43377 | description: |
| 40202 | "Legacy sandbox policy retained for compatibility. Experimental clients should prefer `activePermissionProfile` for profile provenance.", | 43378 | "Legacy sandbox policy retained for compatibility. Experimental clients should prefer `activePermissionProfile` for profile provenance.", |
| ... | @@ -40225,72 +43401,6 @@ export const V2ThreadForkResponse__ActivePermissionProfile = Schema.Struct({ | ... | @@ -40225,72 +43401,6 @@ export const V2ThreadForkResponse__ActivePermissionProfile = Schema.Struct({ |
| 40225 | }), | 43401 | }), |
| 40226 | }); | 43402 | }); |
| 40227 | | 43403 | |
| 40228 | export type V2ThreadForkResponse__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent"; | | |
| 40229 | export const V2ThreadForkResponse__ApprovalsReviewer = Schema.Literals([ | | |
| 40230 | "user", | | |
| 40231 | "auto_review", | | |
| 40232 | "guardian_subagent", | | |
| 40233 | ]).annotate({ | | |
| 40234 | description: | | |
| 40235 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", | | |
| 40236 | }); | | |
| 40237 | | | |
| 40238 | export type V2ThreadForkResponse__ByteRange = { readonly end: number; readonly start: number }; | | |
| 40239 | export const V2ThreadForkResponse__ByteRange = Schema.Struct({ | | |
| 40240 | end: Schema.Number.annotate({ format: "uint" }) | | |
| 40241 | .check(Schema.isInt()) | | |
| 40242 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 40243 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 40244 | .check(Schema.isInt()) | | |
| 40245 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 40246 | }); | | |
| 40247 | | | |
| 40248 | export type V2ThreadForkResponse__CollabAgentTool = | | |
| 40249 | | "spawnAgent" | | |
| 40250 | | "sendInput" | | |
| 40251 | | "resumeAgent" | | |
| 40252 | | "wait" | | |
| 40253 | | "closeAgent" | | |
| 40254 | | "sendMessage" | | |
| 40255 | | "followupTask" | | |
| 40256 | | "interruptAgent" | | |
| 40257 | | "listAgents"; | | |
| 40258 | export const V2ThreadForkResponse__CollabAgentTool = Schema.Literals([ | | |
| 40259 | "spawnAgent", | | |
| 40260 | "sendInput", | | |
| 40261 | "resumeAgent", | | |
| 40262 | "wait", | | |
| 40263 | "closeAgent", | | |
| 40264 | "sendMessage", | | |
| 40265 | "followupTask", | | |
| 40266 | "interruptAgent", | | |
| 40267 | "listAgents", | | |
| 40268 | ]); | | |
| 40269 | | | |
| 40270 | export type V2ThreadForkResponse__CollabAgentToolCallStatus = | | |
| 40271 | | "inProgress" | | |
| 40272 | | "completed" | | |
| 40273 | | "failed" | | |
| 40274 | | "interrupted"; | | |
| 40275 | export const V2ThreadForkResponse__CollabAgentToolCallStatus = Schema.Literals([ | | |
| 40276 | "inProgress", | | |
| 40277 | "completed", | | |
| 40278 | "failed", | | |
| 40279 | "interrupted", | | |
| 40280 | ]); | | |
| 40281 | | | |
| 40282 | export type V2ThreadForkResponse__CommandExecutionSource = | | |
| 40283 | | "agent" | | |
| 40284 | | "userShell" | | |
| 40285 | | "unifiedExecStartup" | | |
| 40286 | | "unifiedExecInteraction"; | | |
| 40287 | export const V2ThreadForkResponse__CommandExecutionSource = Schema.Literals([ | | |
| 40288 | "agent", | | |
| 40289 | "userShell", | | |
| 40290 | "unifiedExecStartup", | | |
| 40291 | "unifiedExecInteraction", | | |
| 40292 | ]); | | |
| 40293 | | | |
| 40294 | export type V2ThreadForkResponse__MultiAgentMode = | 43404 | export type V2ThreadForkResponse__MultiAgentMode = |
| 40295 | | "explicitRequestOnly" | 43405 | | "explicitRequestOnly" |
| 40296 | | "proactive" | 43406 | | "proactive" |
| ... | @@ -40306,113 +43416,15 @@ export const V2ThreadForkResponse__MultiAgentMode = Schema.Union( | ... | @@ -40306,113 +43416,15 @@ export const V2ThreadForkResponse__MultiAgentMode = Schema.Union( |
| 40306 | "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.", | 43416 | "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.", |
| 40307 | }); | 43417 | }); |
| 40308 | | 43418 | |
| 40309 | export type V2ThreadForkResponse__NetworkAccess = "restricted" | "enabled"; | 43419 | export type V2ThreadForkResponse__ThreadExtra = { readonly [x: string]: Schema.Json }; |
| 40310 | export const V2ThreadForkResponse__NetworkAccess = Schema.Literals(["restricted", "enabled"]); | 43420 | export const V2ThreadForkResponse__ThreadExtra = Schema.Record( |
| 40311 | | 43421 | Schema.String, |
| 40312 | export type V2ThreadForkResponse__SandboxPolicy = | 43422 | Schema.Json.annotate({ expected: "JSON value" }), |
| 40313 | | { readonly type: "dangerFullAccess" } | 43423 | ).annotate({ description: "Extra app-server data for a thread." }); |
| 40314 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } | | |
| 40315 | | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" } | | |
| 40316 | | { | | |
| 40317 | readonly excludeSlashTmp?: boolean; | | |
| 40318 | readonly excludeTmpdirEnvVar?: boolean; | | |
| 40319 | readonly networkAccess?: boolean; | | |
| 40320 | readonly type: "workspaceWrite"; | | |
| 40321 | readonly writableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>; | | |
| 40322 | }; | | |
| 40323 | export const V2ThreadForkResponse__SandboxPolicy = Schema.Union( | | |
| 40324 | [ | | |
| 40325 | Schema.Struct({ | | |
| 40326 | type: Schema.Literal("dangerFullAccess").annotate({ | | |
| 40327 | title: "DangerFullAccessSandboxPolicyType", | | |
| 40328 | }), | | |
| 40329 | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), | | |
| 40330 | Schema.Struct({ | | |
| 40331 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 40332 | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), | | |
| 40333 | }).annotate({ title: "ReadOnlySandboxPolicy" }), | | |
| 40334 | Schema.Struct({ | | |
| 40335 | networkAccess: Schema.optionalKey( | | |
| 40336 | Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }), | | |
| 40337 | ), | | |
| 40338 | type: Schema.Literal("externalSandbox").annotate({ | | |
| 40339 | title: "ExternalSandboxSandboxPolicyType", | | |
| 40340 | }), | | |
| 40341 | }).annotate({ title: "ExternalSandboxSandboxPolicy" }), | | |
| 40342 | Schema.Struct({ | | |
| 40343 | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 40344 | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 40345 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 40346 | type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }), | | |
| 40347 | writableRoots: Schema.optionalKey( | | |
| 40348 | Schema.Array(V2ThreadForkResponse__AbsolutePathBuf).annotate({ default: [] }), | | |
| 40349 | ), | | |
| 40350 | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), | | |
| 40351 | ], | | |
| 40352 | { mode: "oneOf" }, | | |
| 40353 | ); | | |
| 40354 | | | |
| 40355 | export type V2ThreadForkResponse__SessionSource = | | |
| 40356 | | "cli" | | |
| 40357 | | "vscode" | | |
| 40358 | | "exec" | | |
| 40359 | | "appServer" | | |
| 40360 | | "unknown" | | |
| 40361 | | { readonly custom: string } | | |
| 40362 | | { readonly subAgent: V2ThreadForkResponse__SubAgentSource }; | | |
| 40363 | export const V2ThreadForkResponse__SessionSource = Schema.Union( | | |
| 40364 | [ | | |
| 40365 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), | | |
| 40366 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), | | |
| 40367 | Schema.Struct({ subAgent: V2ThreadForkResponse__SubAgentSource }).annotate({ | | |
| 40368 | title: "SubAgentSessionSource", | | |
| 40369 | }), | | |
| 40370 | ], | | |
| 40371 | { mode: "oneOf" }, | | |
| 40372 | ); | | |
| 40373 | | | |
| 40374 | export type V2ThreadForkResponse__ThreadExtra = {}; | | |
| 40375 | export const V2ThreadForkResponse__ThreadExtra = Schema.Struct({}).annotate({ | | |
| 40376 | description: "Extra app-server data for a thread.", | | |
| 40377 | }); | | |
| 40378 | | 43424 | |
| 40379 | export type V2ThreadForkResponse__ThreadHistoryMode = "legacy" | "paginated"; | 43425 | export type V2ThreadForkResponse__ThreadHistoryMode = "legacy" | "paginated"; |
| 40380 | export const V2ThreadForkResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]); | 43426 | export const V2ThreadForkResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]); |
| 40381 | | 43427 | |
| 40382 | export type V2ThreadForkResponse__ThreadStatus = | | |
| 40383 | | { readonly type: "notLoaded" } | | |
| 40384 | | { readonly type: "idle" } | | |
| 40385 | | { readonly type: "systemError" } | | |
| 40386 | | { | | |
| 40387 | readonly activeFlags: ReadonlyArray<V2ThreadForkResponse__ThreadActiveFlag>; | | |
| 40388 | readonly type: "active"; | | |
| 40389 | }; | | |
| 40390 | export const V2ThreadForkResponse__ThreadStatus = Schema.Union( | | |
| 40391 | [ | | |
| 40392 | Schema.Struct({ | | |
| 40393 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), | | |
| 40394 | }).annotate({ title: "NotLoadedThreadStatus" }), | | |
| 40395 | Schema.Struct({ | | |
| 40396 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), | | |
| 40397 | }).annotate({ title: "IdleThreadStatus" }), | | |
| 40398 | Schema.Struct({ | | |
| 40399 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), | | |
| 40400 | }).annotate({ title: "SystemErrorThreadStatus" }), | | |
| 40401 | Schema.Struct({ | | |
| 40402 | activeFlags: Schema.Array(V2ThreadForkResponse__ThreadActiveFlag), | | |
| 40403 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), | | |
| 40404 | }).annotate({ title: "ActiveThreadStatus" }), | | |
| 40405 | ], | | |
| 40406 | { mode: "oneOf" }, | | |
| 40407 | ); | | |
| 40408 | | | |
| 40409 | export type V2ThreadForkResponse__TurnItemsView = "notLoaded" | "summary" | "full"; | | |
| 40410 | export const V2ThreadForkResponse__TurnItemsView = Schema.Literals([ | | |
| 40411 | "notLoaded", | | |
| 40412 | "summary", | | |
| 40413 | "full", | | |
| 40414 | ]); | | |
| 40415 | | | |
| 40416 | export type V2ThreadGoalClearedNotification = { readonly threadId: string }; | 43428 | export type V2ThreadGoalClearedNotification = { readonly threadId: string }; |
| 40417 | export const V2ThreadGoalClearedNotification = Schema.Struct({ threadId: Schema.String }).annotate({ | 43429 | export const V2ThreadGoalClearedNotification = Schema.Struct({ threadId: Schema.String }).annotate({ |
| 40418 | title: "ThreadGoalClearedNotification", | 43430 | title: "ThreadGoalClearedNotification", |
| ... | @@ -40451,7 +43463,12 @@ export const V2ThreadGoalSetParams = Schema.Struct({ | ... | @@ -40451,7 +43463,12 @@ export const V2ThreadGoalSetParams = Schema.Struct({ |
| 40451 | status: Schema.optionalKey(Schema.Union([V2ThreadGoalSetParams__ThreadGoalStatus, Schema.Null])), | 43463 | status: Schema.optionalKey(Schema.Union([V2ThreadGoalSetParams__ThreadGoalStatus, Schema.Null])), |
| 40452 | threadId: Schema.String, | 43464 | threadId: Schema.String, |
| 40453 | tokenBudget: Schema.optionalKey( | 43465 | tokenBudget: Schema.optionalKey( |
| 40454 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), | 43466 | Schema.Union([ |
| | 43467 | Schema.Number.annotate({ format: "int64" }).check( |
| | 43468 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 43469 | ), |
| | 43470 | Schema.Null, |
| | 43471 | ]), |
| 40455 | ), | 43472 | ), |
| 40456 | }).annotate({ title: "ThreadGoalSetParams" }); | 43473 | }).annotate({ title: "ThreadGoalSetParams" }); |
| 40457 | | 43474 | |
| ... | @@ -40472,20 +43489,21 @@ export const V2ThreadGoalUpdatedNotification = Schema.Struct({ | ... | @@ -40472,20 +43489,21 @@ export const V2ThreadGoalUpdatedNotification = Schema.Struct({ |
| 40472 | }).annotate({ title: "ThreadGoalUpdatedNotification" }); | 43489 | }).annotate({ title: "ThreadGoalUpdatedNotification" }); |
| 40473 | | 43490 | |
| 40474 | export type V2ThreadInjectItemsParams = { | 43491 | export type V2ThreadInjectItemsParams = { |
| 40475 | readonly items: ReadonlyArray<unknown>; | 43492 | readonly items: ReadonlyArray<Schema.Json>; |
| 40476 | readonly threadId: string; | 43493 | readonly threadId: string; |
| 40477 | }; | 43494 | }; |
| 40478 | export const V2ThreadInjectItemsParams = Schema.Struct({ | 43495 | export const V2ThreadInjectItemsParams = Schema.Struct({ |
| 40479 | items: Schema.Array(Schema.Unknown).annotate({ | 43496 | items: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })).annotate({ |
| 40480 | description: "Raw Responses API items to append to the thread's model-visible history.", | 43497 | description: "Raw Responses API items to append to the thread's model-visible history.", |
| 40481 | }), | 43498 | }), |
| 40482 | threadId: Schema.String, | 43499 | threadId: Schema.String, |
| 40483 | }).annotate({ title: "ThreadInjectItemsParams" }); | 43500 | }).annotate({ title: "ThreadInjectItemsParams" }); |
| 40484 | | 43501 | |
| 40485 | export type V2ThreadInjectItemsResponse = {}; | 43502 | export type V2ThreadInjectItemsResponse = { readonly [x: string]: Schema.Json }; |
| 40486 | export const V2ThreadInjectItemsResponse = Schema.Struct({}).annotate({ | 43503 | export const V2ThreadInjectItemsResponse = Schema.Record( |
| 40487 | title: "ThreadInjectItemsResponse", | 43504 | Schema.String, |
| 40488 | }); | 43505 | Schema.Json.annotate({ expected: "JSON value" }), |
| | 43506 | ).annotate({ title: "ThreadInjectItemsResponse" }); |
| 40489 | | 43507 | |
| 40490 | export type V2ThreadListParams = { | 43508 | export type V2ThreadListParams = { |
| 40491 | readonly archived?: boolean | null; | 43509 | readonly archived?: boolean | null; |
| ... | @@ -40529,8 +43547,12 @@ export const V2ThreadListParams = Schema.Struct({ | ... | @@ -40529,8 +43547,12 @@ export const V2ThreadListParams = Schema.Struct({ |
| 40529 | description: "Optional page size; defaults to a reasonable server-side value.", | 43547 | description: "Optional page size; defaults to a reasonable server-side value.", |
| 40530 | format: "uint32", | 43548 | format: "uint32", |
| 40531 | }) | 43549 | }) |
| 40532 | .check(Schema.isInt()) | 43550 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 40533 | .check(Schema.isGreaterThanOrEqualTo(0)), | 43551 | .check( |
| | 43552 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 43553 | expected: "a value greater than or equal to 0", |
| | 43554 | }), |
| | 43555 | ), |
| 40534 | Schema.Null, | 43556 | Schema.Null, |
| 40535 | ]), | 43557 | ]), |
| 40536 | ), | 43558 | ), |
| ... | @@ -40605,123 +43627,15 @@ export const V2ThreadListResponse = Schema.Struct({ | ... | @@ -40605,123 +43627,15 @@ export const V2ThreadListResponse = Schema.Struct({ |
| 40605 | ), | 43627 | ), |
| 40606 | }).annotate({ title: "ThreadListResponse" }); | 43628 | }).annotate({ title: "ThreadListResponse" }); |
| 40607 | | 43629 | |
| 40608 | export type V2ThreadListResponse__ByteRange = { readonly end: number; readonly start: number }; | 43630 | export type V2ThreadListResponse__ThreadExtra = { readonly [x: string]: Schema.Json }; |
| 40609 | export const V2ThreadListResponse__ByteRange = Schema.Struct({ | 43631 | export const V2ThreadListResponse__ThreadExtra = Schema.Record( |
| 40610 | end: Schema.Number.annotate({ format: "uint" }) | 43632 | Schema.String, |
| 40611 | .check(Schema.isInt()) | 43633 | Schema.Json.annotate({ expected: "JSON value" }), |
| 40612 | .check(Schema.isGreaterThanOrEqualTo(0)), | 43634 | ).annotate({ description: "Extra app-server data for a thread." }); |
| 40613 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 40614 | .check(Schema.isInt()) | | |
| 40615 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 40616 | }); | | |
| 40617 | | | |
| 40618 | export type V2ThreadListResponse__CollabAgentTool = | | |
| 40619 | | "spawnAgent" | | |
| 40620 | | "sendInput" | | |
| 40621 | | "resumeAgent" | | |
| 40622 | | "wait" | | |
| 40623 | | "closeAgent" | | |
| 40624 | | "sendMessage" | | |
| 40625 | | "followupTask" | | |
| 40626 | | "interruptAgent" | | |
| 40627 | | "listAgents"; | | |
| 40628 | export const V2ThreadListResponse__CollabAgentTool = Schema.Literals([ | | |
| 40629 | "spawnAgent", | | |
| 40630 | "sendInput", | | |
| 40631 | "resumeAgent", | | |
| 40632 | "wait", | | |
| 40633 | "closeAgent", | | |
| 40634 | "sendMessage", | | |
| 40635 | "followupTask", | | |
| 40636 | "interruptAgent", | | |
| 40637 | "listAgents", | | |
| 40638 | ]); | | |
| 40639 | | | |
| 40640 | export type V2ThreadListResponse__CollabAgentToolCallStatus = | | |
| 40641 | | "inProgress" | | |
| 40642 | | "completed" | | |
| 40643 | | "failed" | | |
| 40644 | | "interrupted"; | | |
| 40645 | export const V2ThreadListResponse__CollabAgentToolCallStatus = Schema.Literals([ | | |
| 40646 | "inProgress", | | |
| 40647 | "completed", | | |
| 40648 | "failed", | | |
| 40649 | "interrupted", | | |
| 40650 | ]); | | |
| 40651 | | | |
| 40652 | export type V2ThreadListResponse__CommandExecutionSource = | | |
| 40653 | | "agent" | | |
| 40654 | | "userShell" | | |
| 40655 | | "unifiedExecStartup" | | |
| 40656 | | "unifiedExecInteraction"; | | |
| 40657 | export const V2ThreadListResponse__CommandExecutionSource = Schema.Literals([ | | |
| 40658 | "agent", | | |
| 40659 | "userShell", | | |
| 40660 | "unifiedExecStartup", | | |
| 40661 | "unifiedExecInteraction", | | |
| 40662 | ]); | | |
| 40663 | | | |
| 40664 | export type V2ThreadListResponse__SessionSource = | | |
| 40665 | | "cli" | | |
| 40666 | | "vscode" | | |
| 40667 | | "exec" | | |
| 40668 | | "appServer" | | |
| 40669 | | "unknown" | | |
| 40670 | | { readonly custom: string } | | |
| 40671 | | { readonly subAgent: V2ThreadListResponse__SubAgentSource }; | | |
| 40672 | export const V2ThreadListResponse__SessionSource = Schema.Union( | | |
| 40673 | [ | | |
| 40674 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), | | |
| 40675 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), | | |
| 40676 | Schema.Struct({ subAgent: V2ThreadListResponse__SubAgentSource }).annotate({ | | |
| 40677 | title: "SubAgentSessionSource", | | |
| 40678 | }), | | |
| 40679 | ], | | |
| 40680 | { mode: "oneOf" }, | | |
| 40681 | ); | | |
| 40682 | | | |
| 40683 | export type V2ThreadListResponse__ThreadExtra = {}; | | |
| 40684 | export const V2ThreadListResponse__ThreadExtra = Schema.Struct({}).annotate({ | | |
| 40685 | description: "Extra app-server data for a thread.", | | |
| 40686 | }); | | |
| 40687 | | 43635 | |
| 40688 | export type V2ThreadListResponse__ThreadHistoryMode = "legacy" | "paginated"; | 43636 | export type V2ThreadListResponse__ThreadHistoryMode = "legacy" | "paginated"; |
| 40689 | export const V2ThreadListResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]); | 43637 | export const V2ThreadListResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]); |
| 40690 | | 43638 | |
| 40691 | export type V2ThreadListResponse__ThreadStatus = | | |
| 40692 | | { readonly type: "notLoaded" } | | |
| 40693 | | { readonly type: "idle" } | | |
| 40694 | | { readonly type: "systemError" } | | |
| 40695 | | { | | |
| 40696 | readonly activeFlags: ReadonlyArray<V2ThreadListResponse__ThreadActiveFlag>; | | |
| 40697 | readonly type: "active"; | | |
| 40698 | }; | | |
| 40699 | export const V2ThreadListResponse__ThreadStatus = Schema.Union( | | |
| 40700 | [ | | |
| 40701 | Schema.Struct({ | | |
| 40702 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), | | |
| 40703 | }).annotate({ title: "NotLoadedThreadStatus" }), | | |
| 40704 | Schema.Struct({ | | |
| 40705 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), | | |
| 40706 | }).annotate({ title: "IdleThreadStatus" }), | | |
| 40707 | Schema.Struct({ | | |
| 40708 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), | | |
| 40709 | }).annotate({ title: "SystemErrorThreadStatus" }), | | |
| 40710 | Schema.Struct({ | | |
| 40711 | activeFlags: Schema.Array(V2ThreadListResponse__ThreadActiveFlag), | | |
| 40712 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), | | |
| 40713 | }).annotate({ title: "ActiveThreadStatus" }), | | |
| 40714 | ], | | |
| 40715 | { mode: "oneOf" }, | | |
| 40716 | ); | | |
| 40717 | | | |
| 40718 | export type V2ThreadListResponse__TurnItemsView = "notLoaded" | "summary" | "full"; | | |
| 40719 | export const V2ThreadListResponse__TurnItemsView = Schema.Literals([ | | |
| 40720 | "notLoaded", | | |
| 40721 | "summary", | | |
| 40722 | "full", | | |
| 40723 | ]); | | |
| 40724 | | | |
| 40725 | export type V2ThreadLoadedListParams = { | 43639 | export type V2ThreadLoadedListParams = { |
| 40726 | readonly cursor?: string | null; | 43640 | readonly cursor?: string | null; |
| 40727 | readonly limit?: number | null; | 43641 | readonly limit?: number | null; |
| ... | @@ -40741,8 +43655,12 @@ export const V2ThreadLoadedListParams = Schema.Struct({ | ... | @@ -40741,8 +43655,12 @@ export const V2ThreadLoadedListParams = Schema.Struct({ |
| 40741 | description: "Optional page size; defaults to no limit.", | 43655 | description: "Optional page size; defaults to no limit.", |
| 40742 | format: "uint32", | 43656 | format: "uint32", |
| 40743 | }) | 43657 | }) |
| 40744 | .check(Schema.isInt()) | 43658 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 40745 | .check(Schema.isGreaterThanOrEqualTo(0)), | 43659 | .check( |
| | 43660 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 43661 | expected: "a value greater than or equal to 0", |
| | 43662 | }), |
| | 43663 | ), |
| 40746 | Schema.Null, | 43664 | Schema.Null, |
| 40747 | ]), | 43665 | ]), |
| 40748 | ), | 43666 | ), |
| ... | @@ -40791,88 +43709,11 @@ export const V2ThreadMetadataUpdateResponse = Schema.Struct({ | ... | @@ -40791,88 +43709,11 @@ export const V2ThreadMetadataUpdateResponse = Schema.Struct({ |
| 40791 | thread: V2ThreadMetadataUpdateResponse__Thread, | 43709 | thread: V2ThreadMetadataUpdateResponse__Thread, |
| 40792 | }).annotate({ title: "ThreadMetadataUpdateResponse" }); | 43710 | }).annotate({ title: "ThreadMetadataUpdateResponse" }); |
| 40793 | | 43711 | |
| 40794 | export type V2ThreadMetadataUpdateResponse__ByteRange = { | 43712 | export type V2ThreadMetadataUpdateResponse__ThreadExtra = { readonly [x: string]: Schema.Json }; |
| 40795 | readonly end: number; | 43713 | export const V2ThreadMetadataUpdateResponse__ThreadExtra = Schema.Record( |
| 40796 | readonly start: number; | 43714 | Schema.String, |
| 40797 | }; | 43715 | Schema.Json.annotate({ expected: "JSON value" }), |
| 40798 | export const V2ThreadMetadataUpdateResponse__ByteRange = Schema.Struct({ | 43716 | ).annotate({ description: "Extra app-server data for a thread." }); |
| 40799 | end: Schema.Number.annotate({ format: "uint" }) | | |
| 40800 | .check(Schema.isInt()) | | |
| 40801 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 40802 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 40803 | .check(Schema.isInt()) | | |
| 40804 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 40805 | }); | | |
| 40806 | | | |
| 40807 | export type V2ThreadMetadataUpdateResponse__CollabAgentTool = | | |
| 40808 | | "spawnAgent" | | |
| 40809 | | "sendInput" | | |
| 40810 | | "resumeAgent" | | |
| 40811 | | "wait" | | |
| 40812 | | "closeAgent" | | |
| 40813 | | "sendMessage" | | |
| 40814 | | "followupTask" | | |
| 40815 | | "interruptAgent" | | |
| 40816 | | "listAgents"; | | |
| 40817 | export const V2ThreadMetadataUpdateResponse__CollabAgentTool = Schema.Literals([ | | |
| 40818 | "spawnAgent", | | |
| 40819 | "sendInput", | | |
| 40820 | "resumeAgent", | | |
| 40821 | "wait", | | |
| 40822 | "closeAgent", | | |
| 40823 | "sendMessage", | | |
| 40824 | "followupTask", | | |
| 40825 | "interruptAgent", | | |
| 40826 | "listAgents", | | |
| 40827 | ]); | | |
| 40828 | | | |
| 40829 | export type V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus = | | |
| 40830 | | "inProgress" | | |
| 40831 | | "completed" | | |
| 40832 | | "failed" | | |
| 40833 | | "interrupted"; | | |
| 40834 | export const V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus = Schema.Literals([ | | |
| 40835 | "inProgress", | | |
| 40836 | "completed", | | |
| 40837 | "failed", | | |
| 40838 | "interrupted", | | |
| 40839 | ]); | | |
| 40840 | | | |
| 40841 | export type V2ThreadMetadataUpdateResponse__CommandExecutionSource = | | |
| 40842 | | "agent" | | |
| 40843 | | "userShell" | | |
| 40844 | | "unifiedExecStartup" | | |
| 40845 | | "unifiedExecInteraction"; | | |
| 40846 | export const V2ThreadMetadataUpdateResponse__CommandExecutionSource = Schema.Literals([ | | |
| 40847 | "agent", | | |
| 40848 | "userShell", | | |
| 40849 | "unifiedExecStartup", | | |
| 40850 | "unifiedExecInteraction", | | |
| 40851 | ]); | | |
| 40852 | | | |
| 40853 | export type V2ThreadMetadataUpdateResponse__SessionSource = | | |
| 40854 | | "cli" | | |
| 40855 | | "vscode" | | |
| 40856 | | "exec" | | |
| 40857 | | "appServer" | | |
| 40858 | | "unknown" | | |
| 40859 | | { readonly custom: string } | | |
| 40860 | | { readonly subAgent: V2ThreadMetadataUpdateResponse__SubAgentSource }; | | |
| 40861 | export const V2ThreadMetadataUpdateResponse__SessionSource = Schema.Union( | | |
| 40862 | [ | | |
| 40863 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), | | |
| 40864 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), | | |
| 40865 | Schema.Struct({ subAgent: V2ThreadMetadataUpdateResponse__SubAgentSource }).annotate({ | | |
| 40866 | title: "SubAgentSessionSource", | | |
| 40867 | }), | | |
| 40868 | ], | | |
| 40869 | { mode: "oneOf" }, | | |
| 40870 | ); | | |
| 40871 | | | |
| 40872 | export type V2ThreadMetadataUpdateResponse__ThreadExtra = {}; | | |
| 40873 | export const V2ThreadMetadataUpdateResponse__ThreadExtra = Schema.Struct({}).annotate({ | | |
| 40874 | description: "Extra app-server data for a thread.", | | |
| 40875 | }); | | |
| 40876 | | 43717 | |
| 40877 | export type V2ThreadMetadataUpdateResponse__ThreadHistoryMode = "legacy" | "paginated"; | 43718 | export type V2ThreadMetadataUpdateResponse__ThreadHistoryMode = "legacy" | "paginated"; |
| 40878 | export const V2ThreadMetadataUpdateResponse__ThreadHistoryMode = Schema.Literals([ | 43719 | export const V2ThreadMetadataUpdateResponse__ThreadHistoryMode = Schema.Literals([ |
| ... | @@ -40880,40 +43721,6 @@ export const V2ThreadMetadataUpdateResponse__ThreadHistoryMode = Schema.Literals | ... | @@ -40880,40 +43721,6 @@ export const V2ThreadMetadataUpdateResponse__ThreadHistoryMode = Schema.Literals |
| 40880 | "paginated", | 43721 | "paginated", |
| 40881 | ]); | 43722 | ]); |
| 40882 | | 43723 | |
| 40883 | export type V2ThreadMetadataUpdateResponse__ThreadStatus = | | |
| 40884 | | { readonly type: "notLoaded" } | | |
| 40885 | | { readonly type: "idle" } | | |
| 40886 | | { readonly type: "systemError" } | | |
| 40887 | | { | | |
| 40888 | readonly activeFlags: ReadonlyArray<V2ThreadMetadataUpdateResponse__ThreadActiveFlag>; | | |
| 40889 | readonly type: "active"; | | |
| 40890 | }; | | |
| 40891 | export const V2ThreadMetadataUpdateResponse__ThreadStatus = Schema.Union( | | |
| 40892 | [ | | |
| 40893 | Schema.Struct({ | | |
| 40894 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), | | |
| 40895 | }).annotate({ title: "NotLoadedThreadStatus" }), | | |
| 40896 | Schema.Struct({ | | |
| 40897 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), | | |
| 40898 | }).annotate({ title: "IdleThreadStatus" }), | | |
| 40899 | Schema.Struct({ | | |
| 40900 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), | | |
| 40901 | }).annotate({ title: "SystemErrorThreadStatus" }), | | |
| 40902 | Schema.Struct({ | | |
| 40903 | activeFlags: Schema.Array(V2ThreadMetadataUpdateResponse__ThreadActiveFlag), | | |
| 40904 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), | | |
| 40905 | }).annotate({ title: "ActiveThreadStatus" }), | | |
| 40906 | ], | | |
| 40907 | { mode: "oneOf" }, | | |
| 40908 | ); | | |
| 40909 | | | |
| 40910 | export type V2ThreadMetadataUpdateResponse__TurnItemsView = "notLoaded" | "summary" | "full"; | | |
| 40911 | export const V2ThreadMetadataUpdateResponse__TurnItemsView = Schema.Literals([ | | |
| 40912 | "notLoaded", | | |
| 40913 | "summary", | | |
| 40914 | "full", | | |
| 40915 | ]); | | |
| 40916 | | | |
| 40917 | export type V2ThreadNameUpdatedNotification = { | 43724 | export type V2ThreadNameUpdatedNotification = { |
| 40918 | readonly threadId: string; | 43725 | readonly threadId: string; |
| 40919 | readonly threadName?: string | null; | 43726 | readonly threadName?: string | null; |
| ... | @@ -40938,123 +43745,15 @@ export const V2ThreadReadResponse = Schema.Struct({ | ... | @@ -40938,123 +43745,15 @@ export const V2ThreadReadResponse = Schema.Struct({ |
| 40938 | thread: V2ThreadReadResponse__Thread, | 43745 | thread: V2ThreadReadResponse__Thread, |
| 40939 | }).annotate({ title: "ThreadReadResponse" }); | 43746 | }).annotate({ title: "ThreadReadResponse" }); |
| 40940 | | 43747 | |
| 40941 | export type V2ThreadReadResponse__ByteRange = { readonly end: number; readonly start: number }; | 43748 | export type V2ThreadReadResponse__ThreadExtra = { readonly [x: string]: Schema.Json }; |
| 40942 | export const V2ThreadReadResponse__ByteRange = Schema.Struct({ | 43749 | export const V2ThreadReadResponse__ThreadExtra = Schema.Record( |
| 40943 | end: Schema.Number.annotate({ format: "uint" }) | 43750 | Schema.String, |
| 40944 | .check(Schema.isInt()) | 43751 | Schema.Json.annotate({ expected: "JSON value" }), |
| 40945 | .check(Schema.isGreaterThanOrEqualTo(0)), | 43752 | ).annotate({ description: "Extra app-server data for a thread." }); |
| 40946 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 40947 | .check(Schema.isInt()) | | |
| 40948 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 40949 | }); | | |
| 40950 | | | |
| 40951 | export type V2ThreadReadResponse__CollabAgentTool = | | |
| 40952 | | "spawnAgent" | | |
| 40953 | | "sendInput" | | |
| 40954 | | "resumeAgent" | | |
| 40955 | | "wait" | | |
| 40956 | | "closeAgent" | | |
| 40957 | | "sendMessage" | | |
| 40958 | | "followupTask" | | |
| 40959 | | "interruptAgent" | | |
| 40960 | | "listAgents"; | | |
| 40961 | export const V2ThreadReadResponse__CollabAgentTool = Schema.Literals([ | | |
| 40962 | "spawnAgent", | | |
| 40963 | "sendInput", | | |
| 40964 | "resumeAgent", | | |
| 40965 | "wait", | | |
| 40966 | "closeAgent", | | |
| 40967 | "sendMessage", | | |
| 40968 | "followupTask", | | |
| 40969 | "interruptAgent", | | |
| 40970 | "listAgents", | | |
| 40971 | ]); | | |
| 40972 | | | |
| 40973 | export type V2ThreadReadResponse__CollabAgentToolCallStatus = | | |
| 40974 | | "inProgress" | | |
| 40975 | | "completed" | | |
| 40976 | | "failed" | | |
| 40977 | | "interrupted"; | | |
| 40978 | export const V2ThreadReadResponse__CollabAgentToolCallStatus = Schema.Literals([ | | |
| 40979 | "inProgress", | | |
| 40980 | "completed", | | |
| 40981 | "failed", | | |
| 40982 | "interrupted", | | |
| 40983 | ]); | | |
| 40984 | | | |
| 40985 | export type V2ThreadReadResponse__CommandExecutionSource = | | |
| 40986 | | "agent" | | |
| 40987 | | "userShell" | | |
| 40988 | | "unifiedExecStartup" | | |
| 40989 | | "unifiedExecInteraction"; | | |
| 40990 | export const V2ThreadReadResponse__CommandExecutionSource = Schema.Literals([ | | |
| 40991 | "agent", | | |
| 40992 | "userShell", | | |
| 40993 | "unifiedExecStartup", | | |
| 40994 | "unifiedExecInteraction", | | |
| 40995 | ]); | | |
| 40996 | | | |
| 40997 | export type V2ThreadReadResponse__SessionSource = | | |
| 40998 | | "cli" | | |
| 40999 | | "vscode" | | |
| 41000 | | "exec" | | |
| 41001 | | "appServer" | | |
| 41002 | | "unknown" | | |
| 41003 | | { readonly custom: string } | | |
| 41004 | | { readonly subAgent: V2ThreadReadResponse__SubAgentSource }; | | |
| 41005 | export const V2ThreadReadResponse__SessionSource = Schema.Union( | | |
| 41006 | [ | | |
| 41007 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), | | |
| 41008 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), | | |
| 41009 | Schema.Struct({ subAgent: V2ThreadReadResponse__SubAgentSource }).annotate({ | | |
| 41010 | title: "SubAgentSessionSource", | | |
| 41011 | }), | | |
| 41012 | ], | | |
| 41013 | { mode: "oneOf" }, | | |
| 41014 | ); | | |
| 41015 | | | |
| 41016 | export type V2ThreadReadResponse__ThreadExtra = {}; | | |
| 41017 | export const V2ThreadReadResponse__ThreadExtra = Schema.Struct({}).annotate({ | | |
| 41018 | description: "Extra app-server data for a thread.", | | |
| 41019 | }); | | |
| 41020 | | 43753 | |
| 41021 | export type V2ThreadReadResponse__ThreadHistoryMode = "legacy" | "paginated"; | 43754 | export type V2ThreadReadResponse__ThreadHistoryMode = "legacy" | "paginated"; |
| 41022 | export const V2ThreadReadResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]); | 43755 | export const V2ThreadReadResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]); |
| 41023 | | 43756 | |
| 41024 | export type V2ThreadReadResponse__ThreadStatus = | | |
| 41025 | | { readonly type: "notLoaded" } | | |
| 41026 | | { readonly type: "idle" } | | |
| 41027 | | { readonly type: "systemError" } | | |
| 41028 | | { | | |
| 41029 | readonly activeFlags: ReadonlyArray<V2ThreadReadResponse__ThreadActiveFlag>; | | |
| 41030 | readonly type: "active"; | | |
| 41031 | }; | | |
| 41032 | export const V2ThreadReadResponse__ThreadStatus = Schema.Union( | | |
| 41033 | [ | | |
| 41034 | Schema.Struct({ | | |
| 41035 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), | | |
| 41036 | }).annotate({ title: "NotLoadedThreadStatus" }), | | |
| 41037 | Schema.Struct({ | | |
| 41038 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), | | |
| 41039 | }).annotate({ title: "IdleThreadStatus" }), | | |
| 41040 | Schema.Struct({ | | |
| 41041 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), | | |
| 41042 | }).annotate({ title: "SystemErrorThreadStatus" }), | | |
| 41043 | Schema.Struct({ | | |
| 41044 | activeFlags: Schema.Array(V2ThreadReadResponse__ThreadActiveFlag), | | |
| 41045 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), | | |
| 41046 | }).annotate({ title: "ActiveThreadStatus" }), | | |
| 41047 | ], | | |
| 41048 | { mode: "oneOf" }, | | |
| 41049 | ); | | |
| 41050 | | | |
| 41051 | export type V2ThreadReadResponse__TurnItemsView = "notLoaded" | "summary" | "full"; | | |
| 41052 | export const V2ThreadReadResponse__TurnItemsView = Schema.Literals([ | | |
| 41053 | "notLoaded", | | |
| 41054 | "summary", | | |
| 41055 | "full", | | |
| 41056 | ]); | | |
| 41057 | | | |
| 41058 | export type V2ThreadRealtimeClosedNotification = { | 43757 | export type V2ThreadRealtimeClosedNotification = { |
| 41059 | readonly reason?: string | null; | 43758 | readonly reason?: string | null; |
| 41060 | readonly threadId: string; | 43759 | readonly threadId: string; |
| ... | @@ -41080,11 +43779,11 @@ export const V2ThreadRealtimeErrorNotification = Schema.Struct({ | ... | @@ -41080,11 +43779,11 @@ export const V2ThreadRealtimeErrorNotification = Schema.Struct({ |
| 41080 | }); | 43779 | }); |
| 41081 | | 43780 | |
| 41082 | export type V2ThreadRealtimeItemAddedNotification = { | 43781 | export type V2ThreadRealtimeItemAddedNotification = { |
| 41083 | readonly item: unknown; | 43782 | readonly item: Schema.Json; |
| 41084 | readonly threadId: string; | 43783 | readonly threadId: string; |
| 41085 | }; | 43784 | }; |
| 41086 | export const V2ThreadRealtimeItemAddedNotification = Schema.Struct({ | 43785 | export const V2ThreadRealtimeItemAddedNotification = Schema.Struct({ |
| 41087 | item: Schema.Unknown, | 43786 | item: Schema.Json.annotate({ expected: "JSON value" }), |
| 41088 | threadId: Schema.String, | 43787 | threadId: Schema.String, |
| 41089 | }).annotate({ | 43788 | }).annotate({ |
| 41090 | title: "ThreadRealtimeItemAddedNotification", | 43789 | title: "ThreadRealtimeItemAddedNotification", |
| ... | @@ -41160,7 +43859,7 @@ export type V2ThreadResumeParams = { | ... | @@ -41160,7 +43859,7 @@ export type V2ThreadResumeParams = { |
| 41160 | readonly approvalPolicy?: V2ThreadResumeParams__AskForApproval | null; | 43859 | readonly approvalPolicy?: V2ThreadResumeParams__AskForApproval | null; |
| 41161 | readonly approvalsReviewer?: V2ThreadResumeParams__ApprovalsReviewer | null; | 43860 | readonly approvalsReviewer?: V2ThreadResumeParams__ApprovalsReviewer | null; |
| 41162 | readonly baseInstructions?: string | null; | 43861 | readonly baseInstructions?: string | null; |
| 41163 | readonly config?: { readonly [x: string]: unknown } | null; | 43862 | readonly config?: { readonly [x: string]: Schema.Json } | null; |
| 41164 | readonly cwd?: string | null; | 43863 | readonly cwd?: string | null; |
| 41165 | readonly developerInstructions?: string | null; | 43864 | readonly developerInstructions?: string | null; |
| 41166 | readonly model?: string | null; | 43865 | readonly model?: string | null; |
| ... | @@ -41182,7 +43881,10 @@ export const V2ThreadResumeParams = Schema.Struct({ | ... | @@ -41182,7 +43881,10 @@ export const V2ThreadResumeParams = Schema.Struct({ |
| 41182 | ), | 43881 | ), |
| 41183 | baseInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 43882 | baseInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 41184 | config: Schema.optionalKey( | 43883 | config: Schema.optionalKey( |
| 41185 | Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]), | 43884 | Schema.Union([ |
| | 43885 | Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })), |
| | 43886 | Schema.Null, |
| | 43887 | ]), |
| 41186 | ), | 43888 | ), |
| 41187 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 43889 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 41188 | developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 43890 | developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -41254,7 +43956,7 @@ export type V2ThreadResumeParams__ResponseItem = | ... | @@ -41254,7 +43956,7 @@ export type V2ThreadResumeParams__ResponseItem = |
| 41254 | readonly type: "function_call"; | 43956 | readonly type: "function_call"; |
| 41255 | } | 43957 | } |
| 41256 | | { | 43958 | | { |
| 41257 | readonly arguments: unknown; | 43959 | readonly arguments: Schema.Json; |
| 41258 | readonly call_id?: string | null; | 43960 | readonly call_id?: string | null; |
| 41259 | readonly execution: string; | 43961 | readonly execution: string; |
| 41260 | readonly id?: string | null; | 43962 | readonly id?: string | null; |
| ... | @@ -41293,7 +43995,7 @@ export type V2ThreadResumeParams__ResponseItem = | ... | @@ -41293,7 +43995,7 @@ export type V2ThreadResumeParams__ResponseItem = |
| 41293 | readonly id?: string | null; | 43995 | readonly id?: string | null; |
| 41294 | readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null; | 43996 | readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null; |
| 41295 | readonly status: string; | 43997 | readonly status: string; |
| 41296 | readonly tools: ReadonlyArray<unknown>; | 43998 | readonly tools: ReadonlyArray<Schema.Json>; |
| 41297 | readonly type: "tool_search_output"; | 43999 | readonly type: "tool_search_output"; |
| 41298 | } | 44000 | } |
| 41299 | | { | 44001 | | { |
| ... | @@ -41395,7 +44097,7 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union( | ... | @@ -41395,7 +44097,7 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union( |
| 41395 | type: Schema.Literal("function_call").annotate({ title: "FunctionCallResponseItemType" }), | 44097 | type: Schema.Literal("function_call").annotate({ title: "FunctionCallResponseItemType" }), |
| 41396 | }).annotate({ title: "FunctionCallResponseItem" }), | 44098 | }).annotate({ title: "FunctionCallResponseItem" }), |
| 41397 | Schema.Struct({ | 44099 | Schema.Struct({ |
| 41398 | arguments: Schema.Unknown, | 44100 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 41399 | call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 44101 | call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 41400 | execution: Schema.String, | 44102 | execution: Schema.String, |
| 41401 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 44103 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -41452,7 +44154,7 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union( | ... | @@ -41452,7 +44154,7 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union( |
| 41452 | Schema.Union([V2ThreadResumeParams__InternalChatMessageMetadataPassthrough, Schema.Null]), | 44154 | Schema.Union([V2ThreadResumeParams__InternalChatMessageMetadataPassthrough, Schema.Null]), |
| 41453 | ), | 44155 | ), |
| 41454 | status: Schema.String, | 44156 | status: Schema.String, |
| 41455 | tools: Schema.Array(Schema.Unknown), | 44157 | tools: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), |
| 41456 | type: Schema.Literal("tool_search_output").annotate({ | 44158 | type: Schema.Literal("tool_search_output").annotate({ |
| 41457 | title: "ToolSearchOutputResponseItemType", | 44159 | title: "ToolSearchOutputResponseItemType", |
| 41458 | }), | 44160 | }), |
| ... | @@ -41524,8 +44226,12 @@ export const V2ThreadResumeParams__ThreadResumeInitialTurnsPageParams = Schema.S | ... | @@ -41524,8 +44226,12 @@ export const V2ThreadResumeParams__ThreadResumeInitialTurnsPageParams = Schema.S |
| 41524 | limit: Schema.optionalKey( | 44226 | limit: Schema.optionalKey( |
| 41525 | Schema.Union([ | 44227 | Schema.Union([ |
| 41526 | Schema.Number.annotate({ description: "Optional turn page size.", format: "uint32" }) | 44228 | Schema.Number.annotate({ description: "Optional turn page size.", format: "uint32" }) |
| 41527 | .check(Schema.isInt()) | 44229 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 41528 | .check(Schema.isGreaterThanOrEqualTo(0)), | 44230 | .check( |
| | 44231 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 44232 | expected: "a value greater than or equal to 0", |
| | 44233 | }), |
| | 44234 | ), |
| 41529 | Schema.Null, | 44235 | Schema.Null, |
| 41530 | ]), | 44236 | ]), |
| 41531 | ), | 44237 | ), |
| ... | @@ -41538,32 +44244,22 @@ export const V2ThreadResumeParams__ThreadResumeInitialTurnsPageParams = Schema.S | ... | @@ -41538,32 +44244,22 @@ export const V2ThreadResumeParams__ThreadResumeInitialTurnsPageParams = Schema.S |
| 41538 | | 44244 | |
| 41539 | export type V2ThreadResumeResponse = { | 44245 | export type V2ThreadResumeResponse = { |
| 41540 | readonly approvalPolicy: V2ThreadResumeResponse__AskForApproval; | 44246 | readonly approvalPolicy: V2ThreadResumeResponse__AskForApproval; |
| 41541 | readonly approvalsReviewer: "user" | "auto_review" | "guardian_subagent"; | 44247 | readonly approvalsReviewer: V2ThreadResumeResponse__ApprovalsReviewer; |
| 41542 | readonly cwd: V2ThreadResumeResponse__AbsolutePathBuf; | 44248 | readonly cwd: V2ThreadResumeResponse__AbsolutePathBuf; |
| 41543 | readonly instructionSources?: ReadonlyArray<V2ThreadResumeResponse__LegacyAppPathString>; | 44249 | readonly instructionSources?: ReadonlyArray<V2ThreadResumeResponse__LegacyAppPathString>; |
| 41544 | readonly model: string; | 44250 | readonly model: string; |
| 41545 | readonly modelProvider: string; | 44251 | readonly modelProvider: string; |
| 41546 | readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null; | 44252 | readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null; |
| 41547 | readonly sandbox: | 44253 | readonly sandbox: V2ThreadResumeResponse__SandboxPolicy; |
| 41548 | | { readonly type: "dangerFullAccess" } | | |
| 41549 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } | | |
| 41550 | | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" } | | |
| 41551 | | { | | |
| 41552 | readonly excludeSlashTmp?: boolean; | | |
| 41553 | readonly excludeTmpdirEnvVar?: boolean; | | |
| 41554 | readonly networkAccess?: boolean; | | |
| 41555 | readonly type: "workspaceWrite"; | | |
| 41556 | readonly writableRoots?: ReadonlyArray<V2ThreadResumeResponse__AbsolutePathBuf>; | | |
| 41557 | }; | | |
| 41558 | readonly serviceTier?: string | null; | 44254 | readonly serviceTier?: string | null; |
| 41559 | readonly thread: V2ThreadResumeResponse__Thread; | 44255 | readonly thread: V2ThreadResumeResponse__Thread; |
| 41560 | }; | 44256 | }; |
| 41561 | export const V2ThreadResumeResponse = Schema.Struct({ | 44257 | export const V2ThreadResumeResponse = Schema.Struct({ |
| 41562 | approvalPolicy: V2ThreadResumeResponse__AskForApproval, | 44258 | approvalPolicy: V2ThreadResumeResponse__AskForApproval, |
| 41563 | approvalsReviewer: Schema.Literals(["user", "auto_review", "guardian_subagent"]).annotate({ | 44259 | approvalsReviewer: Schema.suspend( |
| 41564 | description: | 44260 | (): Schema.Codec<V2ThreadResumeResponse__ApprovalsReviewer> => |
| 41565 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", | 44261 | V2ThreadResumeResponse__ApprovalsReviewer, |
| 41566 | }), | 44262 | ).annotate({ description: "Reviewer currently used for approval requests on this thread." }), |
| 41567 | cwd: V2ThreadResumeResponse__AbsolutePathBuf, | 44263 | cwd: V2ThreadResumeResponse__AbsolutePathBuf, |
| 41568 | instructionSources: Schema.optionalKey( | 44264 | instructionSources: Schema.optionalKey( |
| 41569 | Schema.Array(V2ThreadResumeResponse__LegacyAppPathString).annotate({ | 44265 | Schema.Array(V2ThreadResumeResponse__LegacyAppPathString).annotate({ |
| ... | @@ -41577,257 +44273,61 @@ export const V2ThreadResumeResponse = Schema.Struct({ | ... | @@ -41577,257 +44273,61 @@ export const V2ThreadResumeResponse = Schema.Struct({ |
| 41577 | reasoningEffort: Schema.optionalKey( | 44273 | reasoningEffort: Schema.optionalKey( |
| 41578 | Schema.Union([V2ThreadResumeResponse__ReasoningEffort, Schema.Null]), | 44274 | Schema.Union([V2ThreadResumeResponse__ReasoningEffort, Schema.Null]), |
| 41579 | ), | 44275 | ), |
| 41580 | sandbox: Schema.Union( | 44276 | sandbox: Schema.suspend( |
| 41581 | [ | 44277 | (): Schema.Codec<V2ThreadResumeResponse__SandboxPolicy> => |
| 41582 | Schema.Struct({ | 44278 | V2ThreadResumeResponse__SandboxPolicy, |
| 41583 | type: Schema.Literal("dangerFullAccess").annotate({ | | |
| 41584 | title: "DangerFullAccessSandboxPolicyType", | | |
| 41585 | }), | | |
| 41586 | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), | | |
| 41587 | Schema.Struct({ | | |
| 41588 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 41589 | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), | | |
| 41590 | }).annotate({ title: "ReadOnlySandboxPolicy" }), | | |
| 41591 | Schema.Struct({ | | |
| 41592 | networkAccess: Schema.optionalKey( | | |
| 41593 | Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }), | | |
| 41594 | ), | | |
| 41595 | type: Schema.Literal("externalSandbox").annotate({ | | |
| 41596 | title: "ExternalSandboxSandboxPolicyType", | | |
| 41597 | }), | | |
| 41598 | }).annotate({ title: "ExternalSandboxSandboxPolicy" }), | | |
| 41599 | Schema.Struct({ | | |
| 41600 | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 41601 | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 41602 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 41603 | type: Schema.Literal("workspaceWrite").annotate({ | | |
| 41604 | title: "WorkspaceWriteSandboxPolicyType", | | |
| 41605 | }), | | |
| 41606 | writableRoots: Schema.optionalKey( | | |
| 41607 | Schema.Array(V2ThreadResumeResponse__AbsolutePathBuf).annotate({ default: [] }), | | |
| 41608 | ), | | |
| 41609 | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), | | |
| 41610 | ], | | |
| 41611 | { mode: "oneOf" }, | | |
| 41612 | ).annotate({ | 44279 | ).annotate({ |
| 41613 | description: | 44280 | description: |
| 41614 | "Legacy sandbox policy retained for compatibility. Experimental clients should prefer `activePermissionProfile` for profile provenance.", | 44281 | "Legacy sandbox policy retained for compatibility. Experimental clients should prefer `activePermissionProfile` for profile provenance.", |
| 41615 | }), | 44282 | }), |
| 41616 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 44283 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 41617 | thread: V2ThreadResumeResponse__Thread, | 44284 | thread: V2ThreadResumeResponse__Thread, |
| 41618 | }).annotate({ title: "ThreadResumeResponse" }); | 44285 | }).annotate({ title: "ThreadResumeResponse" }); |
| 41619 | | 44286 | |
| 41620 | export type V2ThreadResumeResponse__ActivePermissionProfile = { | 44287 | export type V2ThreadResumeResponse__ActivePermissionProfile = { |
| 41621 | readonly extends?: string | null; | 44288 | readonly extends?: string | null; |
| 41622 | readonly id: string; | 44289 | readonly id: string; |
| 41623 | }; | 44290 | }; |
| 41624 | export const V2ThreadResumeResponse__ActivePermissionProfile = Schema.Struct({ | 44291 | export const V2ThreadResumeResponse__ActivePermissionProfile = Schema.Struct({ |
| 41625 | extends: Schema.optionalKey( | 44292 | extends: Schema.optionalKey( |
| 41626 | Schema.Union([ | 44293 | Schema.Union([ |
| 41627 | Schema.String.annotate({ | 44294 | Schema.String.annotate({ |
| 41628 | description: | 44295 | description: |
| 41629 | "Parent profile identifier from the selected permissions profile's `extends` setting, when present.", | 44296 | "Parent profile identifier from the selected permissions profile's `extends` setting, when present.", |
| 41630 | }), | | |
| 41631 | Schema.Null, | | |
| 41632 | ]), | | |
| 41633 | ), | | |
| 41634 | id: Schema.String.annotate({ | | |
| 41635 | description: | | |
| 41636 | "Identifier from `default_permissions` or the implicit built-in default, such as `:workspace` or a user-defined `[permissions.<id>]` profile.", | | |
| 41637 | }), | | |
| 41638 | }); | | |
| 41639 | | | |
| 41640 | export type V2ThreadResumeResponse__ApprovalsReviewer = | | |
| 41641 | | "user" | | |
| 41642 | | "auto_review" | | |
| 41643 | | "guardian_subagent"; | | |
| 41644 | export const V2ThreadResumeResponse__ApprovalsReviewer = Schema.Literals([ | | |
| 41645 | "user", | | |
| 41646 | "auto_review", | | |
| 41647 | "guardian_subagent", | | |
| 41648 | ]).annotate({ | | |
| 41649 | description: | | |
| 41650 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", | | |
| 41651 | }); | | |
| 41652 | | | |
| 41653 | export type V2ThreadResumeResponse__ByteRange = { readonly end: number; readonly start: number }; | | |
| 41654 | export const V2ThreadResumeResponse__ByteRange = Schema.Struct({ | | |
| 41655 | end: Schema.Number.annotate({ format: "uint" }) | | |
| 41656 | .check(Schema.isInt()) | | |
| 41657 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 41658 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 41659 | .check(Schema.isInt()) | | |
| 41660 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 41661 | }); | | |
| 41662 | | | |
| 41663 | export type V2ThreadResumeResponse__CollabAgentTool = | | |
| 41664 | | "spawnAgent" | | |
| 41665 | | "sendInput" | | |
| 41666 | | "resumeAgent" | | |
| 41667 | | "wait" | | |
| 41668 | | "closeAgent" | | |
| 41669 | | "sendMessage" | | |
| 41670 | | "followupTask" | | |
| 41671 | | "interruptAgent" | | |
| 41672 | | "listAgents"; | | |
| 41673 | export const V2ThreadResumeResponse__CollabAgentTool = Schema.Literals([ | | |
| 41674 | "spawnAgent", | | |
| 41675 | "sendInput", | | |
| 41676 | "resumeAgent", | | |
| 41677 | "wait", | | |
| 41678 | "closeAgent", | | |
| 41679 | "sendMessage", | | |
| 41680 | "followupTask", | | |
| 41681 | "interruptAgent", | | |
| 41682 | "listAgents", | | |
| 41683 | ]); | | |
| 41684 | | | |
| 41685 | export type V2ThreadResumeResponse__CollabAgentToolCallStatus = | | |
| 41686 | | "inProgress" | | |
| 41687 | | "completed" | | |
| 41688 | | "failed" | | |
| 41689 | | "interrupted"; | | |
| 41690 | export const V2ThreadResumeResponse__CollabAgentToolCallStatus = Schema.Literals([ | | |
| 41691 | "inProgress", | | |
| 41692 | "completed", | | |
| 41693 | "failed", | | |
| 41694 | "interrupted", | | |
| 41695 | ]); | | |
| 41696 | | | |
| 41697 | export type V2ThreadResumeResponse__CommandExecutionSource = | | |
| 41698 | | "agent" | | |
| 41699 | | "userShell" | | |
| 41700 | | "unifiedExecStartup" | | |
| 41701 | | "unifiedExecInteraction"; | | |
| 41702 | export const V2ThreadResumeResponse__CommandExecutionSource = Schema.Literals([ | | |
| 41703 | "agent", | | |
| 41704 | "userShell", | | |
| 41705 | "unifiedExecStartup", | | |
| 41706 | "unifiedExecInteraction", | | |
| 41707 | ]); | | |
| 41708 | | | |
| 41709 | export type V2ThreadResumeResponse__MultiAgentMode = | | |
| 41710 | | "explicitRequestOnly" | | |
| 41711 | | "proactive" | | |
| 41712 | | { readonly custom: string }; | | |
| 41713 | export const V2ThreadResumeResponse__MultiAgentMode = Schema.Union( | | |
| 41714 | [ | | |
| 41715 | Schema.Literals(["explicitRequestOnly", "proactive"]), | | |
| 41716 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomMultiAgentMode" }), | | |
| 41717 | ], | | |
| 41718 | { mode: "oneOf" }, | | |
| 41719 | ).annotate({ | | |
| 41720 | description: | | |
| 41721 | "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.", | | |
| 41722 | }); | | |
| 41723 | | | |
| 41724 | export type V2ThreadResumeResponse__NetworkAccess = "restricted" | "enabled"; | | |
| 41725 | export const V2ThreadResumeResponse__NetworkAccess = Schema.Literals(["restricted", "enabled"]); | | |
| 41726 | | | |
| 41727 | export type V2ThreadResumeResponse__SandboxPolicy = | | |
| 41728 | | { readonly type: "dangerFullAccess" } | | |
| 41729 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } | | |
| 41730 | | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" } | | |
| 41731 | | { | | |
| 41732 | readonly excludeSlashTmp?: boolean; | | |
| 41733 | readonly excludeTmpdirEnvVar?: boolean; | | |
| 41734 | readonly networkAccess?: boolean; | | |
| 41735 | readonly type: "workspaceWrite"; | | |
| 41736 | readonly writableRoots?: ReadonlyArray<V2ThreadResumeResponse__AbsolutePathBuf>; | | |
| 41737 | }; | | |
| 41738 | export const V2ThreadResumeResponse__SandboxPolicy = Schema.Union( | | |
| 41739 | [ | | |
| 41740 | Schema.Struct({ | | |
| 41741 | type: Schema.Literal("dangerFullAccess").annotate({ | | |
| 41742 | title: "DangerFullAccessSandboxPolicyType", | | |
| 41743 | }), | | |
| 41744 | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), | | |
| 41745 | Schema.Struct({ | | |
| 41746 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 41747 | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), | | |
| 41748 | }).annotate({ title: "ReadOnlySandboxPolicy" }), | | |
| 41749 | Schema.Struct({ | | |
| 41750 | networkAccess: Schema.optionalKey( | | |
| 41751 | Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }), | | |
| 41752 | ), | | |
| 41753 | type: Schema.Literal("externalSandbox").annotate({ | | |
| 41754 | title: "ExternalSandboxSandboxPolicyType", | | |
| 41755 | }), | 44297 | }), |
| 41756 | }).annotate({ title: "ExternalSandboxSandboxPolicy" }), | 44298 | Schema.Null, |
| 41757 | Schema.Struct({ | 44299 | ]), |
| 41758 | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | 44300 | ), |
| 41759 | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | 44301 | id: Schema.String.annotate({ |
| 41760 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | 44302 | description: |
| 41761 | type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }), | 44303 | "Identifier from `default_permissions` or the implicit built-in default, such as `:workspace` or a user-defined `[permissions.<id>]` profile.", |
| 41762 | writableRoots: Schema.optionalKey( | 44304 | }), |
| 41763 | Schema.Array(V2ThreadResumeResponse__AbsolutePathBuf).annotate({ default: [] }), | 44305 | }); |
| 41764 | ), | | |
| 41765 | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), | | |
| 41766 | ], | | |
| 41767 | { mode: "oneOf" }, | | |
| 41768 | ); | | |
| 41769 | | 44306 | |
| 41770 | export type V2ThreadResumeResponse__SessionSource = | 44307 | export type V2ThreadResumeResponse__MultiAgentMode = |
| 41771 | | "cli" | 44308 | | "explicitRequestOnly" |
| 41772 | | "vscode" | 44309 | | "proactive" |
| 41773 | | "exec" | 44310 | | { readonly custom: string }; |
| 41774 | | "appServer" | 44311 | export const V2ThreadResumeResponse__MultiAgentMode = Schema.Union( |
| 41775 | | "unknown" | | |
| 41776 | | { readonly custom: string } | | |
| 41777 | | { readonly subAgent: V2ThreadResumeResponse__SubAgentSource }; | | |
| 41778 | export const V2ThreadResumeResponse__SessionSource = Schema.Union( | | |
| 41779 | [ | 44312 | [ |
| 41780 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), | 44313 | Schema.Literals(["explicitRequestOnly", "proactive"]), |
| 41781 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), | 44314 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomMultiAgentMode" }), |
| 41782 | Schema.Struct({ subAgent: V2ThreadResumeResponse__SubAgentSource }).annotate({ | | |
| 41783 | title: "SubAgentSessionSource", | | |
| 41784 | }), | | |
| 41785 | ], | 44315 | ], |
| 41786 | { mode: "oneOf" }, | 44316 | { mode: "oneOf" }, |
| 41787 | ); | 44317 | ).annotate({ |
| 41788 | | 44318 | description: |
| 41789 | export type V2ThreadResumeResponse__ThreadExtra = {}; | 44319 | "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.", |
| 41790 | export const V2ThreadResumeResponse__ThreadExtra = Schema.Struct({}).annotate({ | | |
| 41791 | description: "Extra app-server data for a thread.", | | |
| 41792 | }); | 44320 | }); |
| 41793 | | 44321 | |
| | 44322 | export type V2ThreadResumeResponse__ThreadExtra = { readonly [x: string]: Schema.Json }; |
| | 44323 | export const V2ThreadResumeResponse__ThreadExtra = Schema.Record( |
| | 44324 | Schema.String, |
| | 44325 | Schema.Json.annotate({ expected: "JSON value" }), |
| | 44326 | ).annotate({ description: "Extra app-server data for a thread." }); |
| | 44327 | |
| 41794 | export type V2ThreadResumeResponse__ThreadHistoryMode = "legacy" | "paginated"; | 44328 | export type V2ThreadResumeResponse__ThreadHistoryMode = "legacy" | "paginated"; |
| 41795 | export const V2ThreadResumeResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]); | 44329 | export const V2ThreadResumeResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]); |
| 41796 | | 44330 | |
| 41797 | export type V2ThreadResumeResponse__ThreadStatus = | | |
| 41798 | | { readonly type: "notLoaded" } | | |
| 41799 | | { readonly type: "idle" } | | |
| 41800 | | { readonly type: "systemError" } | | |
| 41801 | | { | | |
| 41802 | readonly activeFlags: ReadonlyArray<V2ThreadResumeResponse__ThreadActiveFlag>; | | |
| 41803 | readonly type: "active"; | | |
| 41804 | }; | | |
| 41805 | export const V2ThreadResumeResponse__ThreadStatus = Schema.Union( | | |
| 41806 | [ | | |
| 41807 | Schema.Struct({ | | |
| 41808 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), | | |
| 41809 | }).annotate({ title: "NotLoadedThreadStatus" }), | | |
| 41810 | Schema.Struct({ | | |
| 41811 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), | | |
| 41812 | }).annotate({ title: "IdleThreadStatus" }), | | |
| 41813 | Schema.Struct({ | | |
| 41814 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), | | |
| 41815 | }).annotate({ title: "SystemErrorThreadStatus" }), | | |
| 41816 | Schema.Struct({ | | |
| 41817 | activeFlags: Schema.Array(V2ThreadResumeResponse__ThreadActiveFlag), | | |
| 41818 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), | | |
| 41819 | }).annotate({ title: "ActiveThreadStatus" }), | | |
| 41820 | ], | | |
| 41821 | { mode: "oneOf" }, | | |
| 41822 | ); | | |
| 41823 | | | |
| 41824 | export type V2ThreadResumeResponse__TurnItemsView = "notLoaded" | "summary" | "full"; | | |
| 41825 | export const V2ThreadResumeResponse__TurnItemsView = Schema.Literals([ | | |
| 41826 | "notLoaded", | | |
| 41827 | "summary", | | |
| 41828 | "full", | | |
| 41829 | ]); | | |
| 41830 | | | |
| 41831 | export type V2ThreadResumeResponse__TurnsPage = { | 44331 | export type V2ThreadResumeResponse__TurnsPage = { |
| 41832 | readonly backwardsCursor?: string | null; | 44332 | readonly backwardsCursor?: string | null; |
| 41833 | readonly data: ReadonlyArray<V2ThreadResumeResponse__Turn>; | 44333 | readonly data: ReadonlyArray<V2ThreadResumeResponse__Turn>; |
| ... | @@ -41846,486 +44346,46 @@ export const V2ThreadRollbackParams = Schema.Struct({ | ... | @@ -41846,486 +44346,46 @@ export const V2ThreadRollbackParams = Schema.Struct({ |
| 41846 | "The number of turns to drop from the end of the thread. Must be >= 1.\n\nThis only modifies the thread's history and does not revert local file changes that have been made by the agent. Clients are responsible for reverting these changes.", | 44346 | "The number of turns to drop from the end of the thread. Must be >= 1.\n\nThis only modifies the thread's history and does not revert local file changes that have been made by the agent. Clients are responsible for reverting these changes.", |
| 41847 | format: "uint32", | 44347 | format: "uint32", |
| 41848 | }) | 44348 | }) |
| 41849 | .check(Schema.isInt()) | 44349 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 41850 | .check(Schema.isGreaterThanOrEqualTo(0)), | 44350 | .check( |
| | 44351 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 44352 | ), |
| 41851 | threadId: Schema.String, | 44353 | threadId: Schema.String, |
| 41852 | }).annotate({ | 44354 | }).annotate({ |
| 41853 | title: "ThreadRollbackParams", | 44355 | title: "ThreadRollbackParams", |
| 41854 | description: "DEPRECATED: `thread/rollback` will be removed soon.", | 44356 | description: "DEPRECATED: `thread/rollback` will be removed soon.", |
| 41855 | }); | 44357 | }); |
| 41856 | | 44358 | |
| 41857 | export type V2ThreadRollbackResponse = { | 44359 | export type V2ThreadRollbackResponse = { readonly thread: V2ThreadRollbackResponse__Thread }; |
| 41858 | readonly thread: { | | |
| 41859 | readonly agentNickname?: string | null; | | |
| 41860 | readonly agentRole?: string | null; | | |
| 41861 | readonly cliVersion: string; | | |
| 41862 | readonly createdAt: number; | | |
| 41863 | readonly cwd: string; | | |
| 41864 | readonly ephemeral: boolean; | | |
| 41865 | readonly forkedFromId?: string | null; | | |
| 41866 | readonly gitInfo?: V2ThreadRollbackResponse__GitInfo | null; | | |
| 41867 | readonly id: string; | | |
| 41868 | readonly modelProvider: string; | | |
| 41869 | readonly name?: string | null; | | |
| 41870 | readonly parentThreadId?: string | null; | | |
| 41871 | readonly path?: string | null; | | |
| 41872 | readonly preview: string; | | |
| 41873 | readonly recencyAt?: number | null; | | |
| 41874 | readonly sessionId: string; | | |
| 41875 | readonly source: | | |
| 41876 | | "cli" | | |
| 41877 | | "vscode" | | |
| 41878 | | "exec" | | |
| 41879 | | "appServer" | | |
| 41880 | | "unknown" | | |
| 41881 | | { readonly custom: string } | | |
| 41882 | | { readonly subAgent: V2ThreadRollbackResponse__SubAgentSource }; | | |
| 41883 | readonly status: | | |
| 41884 | | { readonly type: "notLoaded" } | | |
| 41885 | | { readonly type: "idle" } | | |
| 41886 | | { readonly type: "systemError" } | | |
| 41887 | | { | | |
| 41888 | readonly activeFlags: ReadonlyArray<V2ThreadRollbackResponse__ThreadActiveFlag>; | | |
| 41889 | readonly type: "active"; | | |
| 41890 | }; | | |
| 41891 | readonly threadSource?: V2ThreadRollbackResponse__ThreadSource | null; | | |
| 41892 | readonly turns: ReadonlyArray<V2ThreadRollbackResponse__Turn>; | | |
| 41893 | readonly updatedAt: number; | | |
| 41894 | }; | | |
| 41895 | }; | | |
| 41896 | export const V2ThreadRollbackResponse = Schema.Struct({ | 44360 | export const V2ThreadRollbackResponse = Schema.Struct({ |
| 41897 | thread: Schema.Struct({ | 44361 | thread: Schema.suspend( |
| 41898 | agentNickname: Schema.optionalKey( | 44362 | (): Schema.Codec<V2ThreadRollbackResponse__Thread> => V2ThreadRollbackResponse__Thread, |
| 41899 | Schema.Union([ | 44363 | ).annotate({ |
| 41900 | Schema.String.annotate({ | | |
| 41901 | description: | | |
| 41902 | "Optional random unique nickname assigned to an AgentControl-spawned sub-agent.", | | |
| 41903 | }), | | |
| 41904 | Schema.Null, | | |
| 41905 | ]), | | |
| 41906 | ), | | |
| 41907 | agentRole: Schema.optionalKey( | | |
| 41908 | Schema.Union([ | | |
| 41909 | Schema.String.annotate({ | | |
| 41910 | description: "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.", | | |
| 41911 | }), | | |
| 41912 | Schema.Null, | | |
| 41913 | ]), | | |
| 41914 | ), | | |
| 41915 | cliVersion: Schema.String.annotate({ | | |
| 41916 | description: "Version of the CLI that created the thread.", | | |
| 41917 | }), | | |
| 41918 | createdAt: Schema.Number.annotate({ | | |
| 41919 | description: "Unix timestamp (in seconds) when the thread was created.", | | |
| 41920 | format: "int64", | | |
| 41921 | }).check(Schema.isInt()), | | |
| 41922 | cwd: Schema.String.annotate({ | | |
| 41923 | description: | | |
| 41924 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | | |
| 41925 | }), | | |
| 41926 | ephemeral: Schema.Boolean.annotate({ | | |
| 41927 | description: "Whether the thread is ephemeral and should not be materialized on disk.", | | |
| 41928 | }), | | |
| 41929 | forkedFromId: Schema.optionalKey( | | |
| 41930 | Schema.Union([ | | |
| 41931 | Schema.String.annotate({ | | |
| 41932 | description: "Source thread id when this thread was created by forking another thread.", | | |
| 41933 | }), | | |
| 41934 | Schema.Null, | | |
| 41935 | ]), | | |
| 41936 | ), | | |
| 41937 | gitInfo: Schema.optionalKey( | | |
| 41938 | Schema.Union([V2ThreadRollbackResponse__GitInfo, Schema.Null]).annotate({ | | |
| 41939 | description: "Optional Git metadata captured when the thread was created.", | | |
| 41940 | }), | | |
| 41941 | ), | | |
| 41942 | id: Schema.String.annotate({ | | |
| 41943 | description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.", | | |
| 41944 | }), | | |
| 41945 | modelProvider: Schema.String.annotate({ | | |
| 41946 | description: "Model provider used for this thread (for example, 'openai').", | | |
| 41947 | }), | | |
| 41948 | name: Schema.optionalKey( | | |
| 41949 | Schema.Union([ | | |
| 41950 | Schema.String.annotate({ description: "Optional user-facing thread title." }), | | |
| 41951 | Schema.Null, | | |
| 41952 | ]), | | |
| 41953 | ), | | |
| 41954 | parentThreadId: Schema.optionalKey( | | |
| 41955 | Schema.Union([ | | |
| 41956 | Schema.String.annotate({ | | |
| 41957 | description: | | |
| 41958 | "The ID of the parent thread. This will only be set if this thread is a subagent.", | | |
| 41959 | }), | | |
| 41960 | Schema.Null, | | |
| 41961 | ]), | | |
| 41962 | ), | | |
| 41963 | path: Schema.optionalKey( | | |
| 41964 | Schema.Union([ | | |
| 41965 | Schema.String.annotate({ description: "[UNSTABLE] Path to the thread on disk." }), | | |
| 41966 | Schema.Null, | | |
| 41967 | ]), | | |
| 41968 | ), | | |
| 41969 | preview: Schema.String.annotate({ | | |
| 41970 | description: "Usually the first user message in the thread, if available.", | | |
| 41971 | }), | | |
| 41972 | recencyAt: Schema.optionalKey( | | |
| 41973 | Schema.Union([ | | |
| 41974 | Schema.Number.annotate({ | | |
| 41975 | description: "Unix timestamp (in seconds) used for thread recency ordering.", | | |
| 41976 | format: "int64", | | |
| 41977 | }).check(Schema.isInt()), | | |
| 41978 | Schema.Null, | | |
| 41979 | ]), | | |
| 41980 | ), | | |
| 41981 | sessionId: Schema.String.annotate({ | | |
| 41982 | description: "Session id shared by threads that belong to the same session tree.", | | |
| 41983 | }), | | |
| 41984 | source: Schema.Union( | | |
| 41985 | [ | | |
| 41986 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), | | |
| 41987 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), | | |
| 41988 | Schema.Struct({ subAgent: V2ThreadRollbackResponse__SubAgentSource }).annotate({ | | |
| 41989 | title: "SubAgentSessionSource", | | |
| 41990 | }), | | |
| 41991 | ], | | |
| 41992 | { mode: "oneOf" }, | | |
| 41993 | ).annotate({ | | |
| 41994 | description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).", | | |
| 41995 | }), | | |
| 41996 | status: Schema.Union( | | |
| 41997 | [ | | |
| 41998 | Schema.Struct({ | | |
| 41999 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), | | |
| 42000 | }).annotate({ title: "NotLoadedThreadStatus" }), | | |
| 42001 | Schema.Struct({ | | |
| 42002 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), | | |
| 42003 | }).annotate({ title: "IdleThreadStatus" }), | | |
| 42004 | Schema.Struct({ | | |
| 42005 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), | | |
| 42006 | }).annotate({ title: "SystemErrorThreadStatus" }), | | |
| 42007 | Schema.Struct({ | | |
| 42008 | activeFlags: Schema.Array(V2ThreadRollbackResponse__ThreadActiveFlag), | | |
| 42009 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), | | |
| 42010 | }).annotate({ title: "ActiveThreadStatus" }), | | |
| 42011 | ], | | |
| 42012 | { mode: "oneOf" }, | | |
| 42013 | ).annotate({ description: "Current runtime status for the thread." }), | | |
| 42014 | threadSource: Schema.optionalKey( | | |
| 42015 | Schema.Union([V2ThreadRollbackResponse__ThreadSource, Schema.Null]).annotate({ | | |
| 42016 | description: "Optional analytics source classification for this thread.", | | |
| 42017 | }), | | |
| 42018 | ), | | |
| 42019 | turns: Schema.Array(V2ThreadRollbackResponse__Turn).annotate({ | | |
| 42020 | description: | | |
| 42021 | "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.", | | |
| 42022 | }), | | |
| 42023 | updatedAt: Schema.Number.annotate({ | | |
| 42024 | description: "Unix timestamp (in seconds) when the thread was last updated.", | | |
| 42025 | format: "int64", | | |
| 42026 | }).check(Schema.isInt()), | | |
| 42027 | }).annotate({ | | |
| 42028 | description: | 44364 | description: |
| 42029 | "The updated thread after applying the rollback, with `turns` populated.\n\nThe ThreadItems stored in each Turn are lossy since we explicitly do not persist all agent interactions, such as command executions. This is the same behavior as `thread/resume`.", | 44365 | "The updated thread after applying the rollback, with `turns` populated.\n\nThe ThreadItems stored in each Turn are lossy since we explicitly do not persist all agent interactions, such as command executions. This is the same behavior as `thread/resume`.", |
| 42030 | }), | 44366 | }), |
| 42031 | }).annotate({ title: "ThreadRollbackResponse" }); | 44367 | }).annotate({ title: "ThreadRollbackResponse" }); |
| 42032 | | 44368 | |
| 42033 | export type V2ThreadRollbackResponse__ByteRange = { readonly end: number; readonly start: number }; | 44369 | export type V2ThreadRollbackResponse__ThreadExtra = { readonly [x: string]: Schema.Json }; |
| 42034 | export const V2ThreadRollbackResponse__ByteRange = Schema.Struct({ | 44370 | export const V2ThreadRollbackResponse__ThreadExtra = Schema.Record( |
| 42035 | end: Schema.Number.annotate({ format: "uint" }) | 44371 | Schema.String, |
| 42036 | .check(Schema.isInt()) | 44372 | Schema.Json.annotate({ expected: "JSON value" }), |
| 42037 | .check(Schema.isGreaterThanOrEqualTo(0)), | 44373 | ).annotate({ description: "Extra app-server data for a thread." }); |
| 42038 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 42039 | .check(Schema.isInt()) | | |
| 42040 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 42041 | }); | | |
| 42042 | | | |
| 42043 | export type V2ThreadRollbackResponse__CollabAgentTool = | | |
| 42044 | | "spawnAgent" | | |
| 42045 | | "sendInput" | | |
| 42046 | | "resumeAgent" | | |
| 42047 | | "wait" | | |
| 42048 | | "closeAgent" | | |
| 42049 | | "sendMessage" | | |
| 42050 | | "followupTask" | | |
| 42051 | | "interruptAgent" | | |
| 42052 | | "listAgents"; | | |
| 42053 | export const V2ThreadRollbackResponse__CollabAgentTool = Schema.Literals([ | | |
| 42054 | "spawnAgent", | | |
| 42055 | "sendInput", | | |
| 42056 | "resumeAgent", | | |
| 42057 | "wait", | | |
| 42058 | "closeAgent", | | |
| 42059 | "sendMessage", | | |
| 42060 | "followupTask", | | |
| 42061 | "interruptAgent", | | |
| 42062 | "listAgents", | | |
| 42063 | ]); | | |
| 42064 | | | |
| 42065 | export type V2ThreadRollbackResponse__CollabAgentToolCallStatus = | | |
| 42066 | | "inProgress" | | |
| 42067 | | "completed" | | |
| 42068 | | "failed" | | |
| 42069 | | "interrupted"; | | |
| 42070 | export const V2ThreadRollbackResponse__CollabAgentToolCallStatus = Schema.Literals([ | | |
| 42071 | "inProgress", | | |
| 42072 | "completed", | | |
| 42073 | "failed", | | |
| 42074 | "interrupted", | | |
| 42075 | ]); | | |
| 42076 | | | |
| 42077 | export type V2ThreadRollbackResponse__CommandExecutionSource = | | |
| 42078 | | "agent" | | |
| 42079 | | "userShell" | | |
| 42080 | | "unifiedExecStartup" | | |
| 42081 | | "unifiedExecInteraction"; | | |
| 42082 | export const V2ThreadRollbackResponse__CommandExecutionSource = Schema.Literals([ | | |
| 42083 | "agent", | | |
| 42084 | "userShell", | | |
| 42085 | "unifiedExecStartup", | | |
| 42086 | "unifiedExecInteraction", | | |
| 42087 | ]); | | |
| 42088 | | | |
| 42089 | export type V2ThreadRollbackResponse__SessionSource = | | |
| 42090 | | "cli" | | |
| 42091 | | "vscode" | | |
| 42092 | | "exec" | | |
| 42093 | | "appServer" | | |
| 42094 | | "unknown" | | |
| 42095 | | { readonly custom: string } | | |
| 42096 | | { readonly subAgent: V2ThreadRollbackResponse__SubAgentSource }; | | |
| 42097 | export const V2ThreadRollbackResponse__SessionSource = Schema.Union( | | |
| 42098 | [ | | |
| 42099 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), | | |
| 42100 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), | | |
| 42101 | Schema.Struct({ subAgent: V2ThreadRollbackResponse__SubAgentSource }).annotate({ | | |
| 42102 | title: "SubAgentSessionSource", | | |
| 42103 | }), | | |
| 42104 | ], | | |
| 42105 | { mode: "oneOf" }, | | |
| 42106 | ); | | |
| 42107 | | | |
| 42108 | export type V2ThreadRollbackResponse__Thread = { | | |
| 42109 | readonly agentNickname?: string | null; | | |
| 42110 | readonly agentRole?: string | null; | | |
| 42111 | readonly cliVersion: string; | | |
| 42112 | readonly createdAt: number; | | |
| 42113 | readonly cwd: string; | | |
| 42114 | readonly ephemeral: boolean; | | |
| 42115 | readonly forkedFromId?: string | null; | | |
| 42116 | readonly gitInfo?: V2ThreadRollbackResponse__GitInfo | null; | | |
| 42117 | readonly id: string; | | |
| 42118 | readonly modelProvider: string; | | |
| 42119 | readonly name?: string | null; | | |
| 42120 | readonly parentThreadId?: string | null; | | |
| 42121 | readonly path?: string | null; | | |
| 42122 | readonly preview: string; | | |
| 42123 | readonly recencyAt?: number | null; | | |
| 42124 | readonly sessionId: string; | | |
| 42125 | readonly source: | | |
| 42126 | | "cli" | | |
| 42127 | | "vscode" | | |
| 42128 | | "exec" | | |
| 42129 | | "appServer" | | |
| 42130 | | "unknown" | | |
| 42131 | | { readonly custom: string } | | |
| 42132 | | { readonly subAgent: V2ThreadRollbackResponse__SubAgentSource }; | | |
| 42133 | readonly status: | | |
| 42134 | | { readonly type: "notLoaded" } | | |
| 42135 | | { readonly type: "idle" } | | |
| 42136 | | { readonly type: "systemError" } | | |
| 42137 | | { | | |
| 42138 | readonly activeFlags: ReadonlyArray<V2ThreadRollbackResponse__ThreadActiveFlag>; | | |
| 42139 | readonly type: "active"; | | |
| 42140 | }; | | |
| 42141 | readonly threadSource?: V2ThreadRollbackResponse__ThreadSource | null; | | |
| 42142 | readonly turns: ReadonlyArray<V2ThreadRollbackResponse__Turn>; | | |
| 42143 | readonly updatedAt: number; | | |
| 42144 | }; | | |
| 42145 | export const V2ThreadRollbackResponse__Thread = Schema.Struct({ | | |
| 42146 | agentNickname: Schema.optionalKey( | | |
| 42147 | Schema.Union([ | | |
| 42148 | Schema.String.annotate({ | | |
| 42149 | description: | | |
| 42150 | "Optional random unique nickname assigned to an AgentControl-spawned sub-agent.", | | |
| 42151 | }), | | |
| 42152 | Schema.Null, | | |
| 42153 | ]), | | |
| 42154 | ), | | |
| 42155 | agentRole: Schema.optionalKey( | | |
| 42156 | Schema.Union([ | | |
| 42157 | Schema.String.annotate({ | | |
| 42158 | description: "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.", | | |
| 42159 | }), | | |
| 42160 | Schema.Null, | | |
| 42161 | ]), | | |
| 42162 | ), | | |
| 42163 | cliVersion: Schema.String.annotate({ | | |
| 42164 | description: "Version of the CLI that created the thread.", | | |
| 42165 | }), | | |
| 42166 | createdAt: Schema.Number.annotate({ | | |
| 42167 | description: "Unix timestamp (in seconds) when the thread was created.", | | |
| 42168 | format: "int64", | | |
| 42169 | }).check(Schema.isInt()), | | |
| 42170 | cwd: Schema.String.annotate({ | | |
| 42171 | description: | | |
| 42172 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | | |
| 42173 | }), | | |
| 42174 | ephemeral: Schema.Boolean.annotate({ | | |
| 42175 | description: "Whether the thread is ephemeral and should not be materialized on disk.", | | |
| 42176 | }), | | |
| 42177 | forkedFromId: Schema.optionalKey( | | |
| 42178 | Schema.Union([ | | |
| 42179 | Schema.String.annotate({ | | |
| 42180 | description: "Source thread id when this thread was created by forking another thread.", | | |
| 42181 | }), | | |
| 42182 | Schema.Null, | | |
| 42183 | ]), | | |
| 42184 | ), | | |
| 42185 | gitInfo: Schema.optionalKey( | | |
| 42186 | Schema.Union([V2ThreadRollbackResponse__GitInfo, Schema.Null]).annotate({ | | |
| 42187 | description: "Optional Git metadata captured when the thread was created.", | | |
| 42188 | }), | | |
| 42189 | ), | | |
| 42190 | id: Schema.String.annotate({ | | |
| 42191 | description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.", | | |
| 42192 | }), | | |
| 42193 | modelProvider: Schema.String.annotate({ | | |
| 42194 | description: "Model provider used for this thread (for example, 'openai').", | | |
| 42195 | }), | | |
| 42196 | name: Schema.optionalKey( | | |
| 42197 | Schema.Union([ | | |
| 42198 | Schema.String.annotate({ description: "Optional user-facing thread title." }), | | |
| 42199 | Schema.Null, | | |
| 42200 | ]), | | |
| 42201 | ), | | |
| 42202 | parentThreadId: Schema.optionalKey( | | |
| 42203 | Schema.Union([ | | |
| 42204 | Schema.String.annotate({ | | |
| 42205 | description: | | |
| 42206 | "The ID of the parent thread. This will only be set if this thread is a subagent.", | | |
| 42207 | }), | | |
| 42208 | Schema.Null, | | |
| 42209 | ]), | | |
| 42210 | ), | | |
| 42211 | path: Schema.optionalKey( | | |
| 42212 | Schema.Union([ | | |
| 42213 | Schema.String.annotate({ description: "[UNSTABLE] Path to the thread on disk." }), | | |
| 42214 | Schema.Null, | | |
| 42215 | ]), | | |
| 42216 | ), | | |
| 42217 | preview: Schema.String.annotate({ | | |
| 42218 | description: "Usually the first user message in the thread, if available.", | | |
| 42219 | }), | | |
| 42220 | recencyAt: Schema.optionalKey( | | |
| 42221 | Schema.Union([ | | |
| 42222 | Schema.Number.annotate({ | | |
| 42223 | description: "Unix timestamp (in seconds) used for thread recency ordering.", | | |
| 42224 | format: "int64", | | |
| 42225 | }).check(Schema.isInt()), | | |
| 42226 | Schema.Null, | | |
| 42227 | ]), | | |
| 42228 | ), | | |
| 42229 | sessionId: Schema.String.annotate({ | | |
| 42230 | description: "Session id shared by threads that belong to the same session tree.", | | |
| 42231 | }), | | |
| 42232 | source: Schema.Union( | | |
| 42233 | [ | | |
| 42234 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), | | |
| 42235 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), | | |
| 42236 | Schema.Struct({ subAgent: V2ThreadRollbackResponse__SubAgentSource }).annotate({ | | |
| 42237 | title: "SubAgentSessionSource", | | |
| 42238 | }), | | |
| 42239 | ], | | |
| 42240 | { mode: "oneOf" }, | | |
| 42241 | ).annotate({ | | |
| 42242 | description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).", | | |
| 42243 | }), | | |
| 42244 | status: Schema.Union( | | |
| 42245 | [ | | |
| 42246 | Schema.Struct({ | | |
| 42247 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), | | |
| 42248 | }).annotate({ title: "NotLoadedThreadStatus" }), | | |
| 42249 | Schema.Struct({ | | |
| 42250 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), | | |
| 42251 | }).annotate({ title: "IdleThreadStatus" }), | | |
| 42252 | Schema.Struct({ | | |
| 42253 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), | | |
| 42254 | }).annotate({ title: "SystemErrorThreadStatus" }), | | |
| 42255 | Schema.Struct({ | | |
| 42256 | activeFlags: Schema.Array(V2ThreadRollbackResponse__ThreadActiveFlag), | | |
| 42257 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), | | |
| 42258 | }).annotate({ title: "ActiveThreadStatus" }), | | |
| 42259 | ], | | |
| 42260 | { mode: "oneOf" }, | | |
| 42261 | ).annotate({ description: "Current runtime status for the thread." }), | | |
| 42262 | threadSource: Schema.optionalKey( | | |
| 42263 | Schema.Union([V2ThreadRollbackResponse__ThreadSource, Schema.Null]).annotate({ | | |
| 42264 | description: "Optional analytics source classification for this thread.", | | |
| 42265 | }), | | |
| 42266 | ), | | |
| 42267 | turns: Schema.Array(V2ThreadRollbackResponse__Turn).annotate({ | | |
| 42268 | description: | | |
| 42269 | "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.", | | |
| 42270 | }), | | |
| 42271 | updatedAt: Schema.Number.annotate({ | | |
| 42272 | description: "Unix timestamp (in seconds) when the thread was last updated.", | | |
| 42273 | format: "int64", | | |
| 42274 | }).check(Schema.isInt()), | | |
| 42275 | }); | | |
| 42276 | | | |
| 42277 | export type V2ThreadRollbackResponse__ThreadExtra = {}; | | |
| 42278 | export const V2ThreadRollbackResponse__ThreadExtra = Schema.Struct({}).annotate({ | | |
| 42279 | description: "Extra app-server data for a thread.", | | |
| 42280 | }); | | |
| 42281 | | 44374 | |
| 42282 | export type V2ThreadRollbackResponse__ThreadHistoryMode = "legacy" | "paginated"; | 44375 | export type V2ThreadRollbackResponse__ThreadHistoryMode = "legacy" | "paginated"; |
| 42283 | export const V2ThreadRollbackResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]); | 44376 | export const V2ThreadRollbackResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]); |
| 42284 | | 44377 | |
| 42285 | export type V2ThreadRollbackResponse__ThreadStatus = | | |
| 42286 | | { readonly type: "notLoaded" } | | |
| 42287 | | { readonly type: "idle" } | | |
| 42288 | | { readonly type: "systemError" } | | |
| 42289 | | { | | |
| 42290 | readonly activeFlags: ReadonlyArray<V2ThreadRollbackResponse__ThreadActiveFlag>; | | |
| 42291 | readonly type: "active"; | | |
| 42292 | }; | | |
| 42293 | export const V2ThreadRollbackResponse__ThreadStatus = Schema.Union( | | |
| 42294 | [ | | |
| 42295 | Schema.Struct({ | | |
| 42296 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), | | |
| 42297 | }).annotate({ title: "NotLoadedThreadStatus" }), | | |
| 42298 | Schema.Struct({ | | |
| 42299 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), | | |
| 42300 | }).annotate({ title: "IdleThreadStatus" }), | | |
| 42301 | Schema.Struct({ | | |
| 42302 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), | | |
| 42303 | }).annotate({ title: "SystemErrorThreadStatus" }), | | |
| 42304 | Schema.Struct({ | | |
| 42305 | activeFlags: Schema.Array(V2ThreadRollbackResponse__ThreadActiveFlag), | | |
| 42306 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), | | |
| 42307 | }).annotate({ title: "ActiveThreadStatus" }), | | |
| 42308 | ], | | |
| 42309 | { mode: "oneOf" }, | | |
| 42310 | ); | | |
| 42311 | | | |
| 42312 | export type V2ThreadRollbackResponse__TurnItemsView = "notLoaded" | "summary" | "full"; | | |
| 42313 | export const V2ThreadRollbackResponse__TurnItemsView = Schema.Literals([ | | |
| 42314 | "notLoaded", | | |
| 42315 | "summary", | | |
| 42316 | "full", | | |
| 42317 | ]); | | |
| 42318 | | | |
| 42319 | export type V2ThreadSetNameParams = { readonly name: string; readonly threadId: string }; | 44378 | export type V2ThreadSetNameParams = { readonly name: string; readonly threadId: string }; |
| 42320 | export const V2ThreadSetNameParams = Schema.Struct({ | 44379 | export const V2ThreadSetNameParams = Schema.Struct({ |
| 42321 | name: Schema.String, | 44380 | name: Schema.String, |
| 42322 | threadId: Schema.String, | 44381 | threadId: Schema.String, |
| 42323 | }).annotate({ title: "ThreadSetNameParams" }); | 44382 | }).annotate({ title: "ThreadSetNameParams" }); |
| 42324 | | 44383 | |
| 42325 | export type V2ThreadSetNameResponse = {}; | 44384 | export type V2ThreadSetNameResponse = { readonly [x: string]: Schema.Json }; |
| 42326 | export const V2ThreadSetNameResponse = Schema.Struct({}).annotate({ | 44385 | export const V2ThreadSetNameResponse = Schema.Record( |
| 42327 | title: "ThreadSetNameResponse", | 44386 | Schema.String, |
| 42328 | }); | 44387 | Schema.Json.annotate({ expected: "JSON value" }), |
| | 44388 | ).annotate({ title: "ThreadSetNameResponse" }); |
| 42329 | | 44389 | |
| 42330 | export type V2ThreadSettingsUpdatedNotification = { | 44390 | export type V2ThreadSettingsUpdatedNotification = { |
| 42331 | readonly threadId: string; | 44391 | readonly threadId: string; |
| ... | @@ -42351,12 +44411,6 @@ export const V2ThreadSettingsUpdatedNotification__MultiAgentMode = Schema.Union( | ... | @@ -42351,12 +44411,6 @@ export const V2ThreadSettingsUpdatedNotification__MultiAgentMode = Schema.Union( |
| 42351 | "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.", | 44411 | "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.", |
| 42352 | }); | 44412 | }); |
| 42353 | | 44413 | |
| 42354 | export type V2ThreadSettingsUpdatedNotification__NetworkAccess = "restricted" | "enabled"; | | |
| 42355 | export const V2ThreadSettingsUpdatedNotification__NetworkAccess = Schema.Literals([ | | |
| 42356 | "restricted", | | |
| 42357 | "enabled", | | |
| 42358 | ]); | | |
| 42359 | | | |
| 42360 | export type V2ThreadShellCommandParams = { readonly command: string; readonly threadId: string }; | 44414 | export type V2ThreadShellCommandParams = { readonly command: string; readonly threadId: string }; |
| 42361 | export const V2ThreadShellCommandParams = Schema.Struct({ | 44415 | export const V2ThreadShellCommandParams = Schema.Struct({ |
| 42362 | command: Schema.String.annotate({ | 44416 | command: Schema.String.annotate({ |
| ... | @@ -42366,144 +44420,34 @@ export const V2ThreadShellCommandParams = Schema.Struct({ | ... | @@ -42366,144 +44420,34 @@ export const V2ThreadShellCommandParams = Schema.Struct({ |
| 42366 | threadId: Schema.String, | 44420 | threadId: Schema.String, |
| 42367 | }).annotate({ title: "ThreadShellCommandParams" }); | 44421 | }).annotate({ title: "ThreadShellCommandParams" }); |
| 42368 | | 44422 | |
| 42369 | export type V2ThreadShellCommandResponse = {}; | 44423 | export type V2ThreadShellCommandResponse = { readonly [x: string]: Schema.Json }; |
| 42370 | export const V2ThreadShellCommandResponse = Schema.Struct({}).annotate({ | 44424 | export const V2ThreadShellCommandResponse = Schema.Record( |
| 42371 | title: "ThreadShellCommandResponse", | 44425 | Schema.String, |
| 42372 | }); | 44426 | Schema.Json.annotate({ expected: "JSON value" }), |
| | 44427 | ).annotate({ title: "ThreadShellCommandResponse" }); |
| 42373 | | 44428 | |
| 42374 | export type V2ThreadStartedNotification = { readonly thread: V2ThreadStartedNotification__Thread }; | 44429 | export type V2ThreadStartedNotification = { readonly thread: V2ThreadStartedNotification__Thread }; |
| 42375 | export const V2ThreadStartedNotification = Schema.Struct({ | 44430 | export const V2ThreadStartedNotification = Schema.Struct({ |
| 42376 | thread: V2ThreadStartedNotification__Thread, | 44431 | thread: V2ThreadStartedNotification__Thread, |
| 42377 | }).annotate({ title: "ThreadStartedNotification" }); | 44432 | }).annotate({ title: "ThreadStartedNotification" }); |
| 42378 | | | |
| 42379 | export type V2ThreadStartedNotification__ByteRange = { | | |
| 42380 | readonly end: number; | | |
| 42381 | readonly start: number; | | |
| 42382 | }; | | |
| 42383 | export const V2ThreadStartedNotification__ByteRange = Schema.Struct({ | | |
| 42384 | end: Schema.Number.annotate({ format: "uint" }) | | |
| 42385 | .check(Schema.isInt()) | | |
| 42386 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 42387 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 42388 | .check(Schema.isInt()) | | |
| 42389 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 42390 | }); | | |
| 42391 | | | |
| 42392 | export type V2ThreadStartedNotification__CollabAgentTool = | | |
| 42393 | | "spawnAgent" | | |
| 42394 | | "sendInput" | | |
| 42395 | | "resumeAgent" | | |
| 42396 | | "wait" | | |
| 42397 | | "closeAgent" | | |
| 42398 | | "sendMessage" | | |
| 42399 | | "followupTask" | | |
| 42400 | | "interruptAgent" | | |
| 42401 | | "listAgents"; | | |
| 42402 | export const V2ThreadStartedNotification__CollabAgentTool = Schema.Literals([ | | |
| 42403 | "spawnAgent", | | |
| 42404 | "sendInput", | | |
| 42405 | "resumeAgent", | | |
| 42406 | "wait", | | |
| 42407 | "closeAgent", | | |
| 42408 | "sendMessage", | | |
| 42409 | "followupTask", | | |
| 42410 | "interruptAgent", | | |
| 42411 | "listAgents", | | |
| 42412 | ]); | | |
| 42413 | | | |
| 42414 | export type V2ThreadStartedNotification__CollabAgentToolCallStatus = | | |
| 42415 | | "inProgress" | | |
| 42416 | | "completed" | | |
| 42417 | | "failed" | | |
| 42418 | | "interrupted"; | | |
| 42419 | export const V2ThreadStartedNotification__CollabAgentToolCallStatus = Schema.Literals([ | | |
| 42420 | "inProgress", | | |
| 42421 | "completed", | | |
| 42422 | "failed", | | |
| 42423 | "interrupted", | | |
| 42424 | ]); | | |
| 42425 | | | |
| 42426 | export type V2ThreadStartedNotification__CommandExecutionSource = | | |
| 42427 | | "agent" | | |
| 42428 | | "userShell" | | |
| 42429 | | "unifiedExecStartup" | | |
| 42430 | | "unifiedExecInteraction"; | | |
| 42431 | export const V2ThreadStartedNotification__CommandExecutionSource = Schema.Literals([ | | |
| 42432 | "agent", | | |
| 42433 | "userShell", | | |
| 42434 | "unifiedExecStartup", | | |
| 42435 | "unifiedExecInteraction", | | |
| 42436 | ]); | | |
| 42437 | | | |
| 42438 | export type V2ThreadStartedNotification__SessionSource = | | |
| 42439 | | "cli" | | |
| 42440 | | "vscode" | | |
| 42441 | | "exec" | | |
| 42442 | | "appServer" | | |
| 42443 | | "unknown" | | |
| 42444 | | { readonly custom: string } | | |
| 42445 | | { readonly subAgent: V2ThreadStartedNotification__SubAgentSource }; | | |
| 42446 | export const V2ThreadStartedNotification__SessionSource = Schema.Union( | | |
| 42447 | [ | | |
| 42448 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), | | |
| 42449 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), | | |
| 42450 | Schema.Struct({ subAgent: V2ThreadStartedNotification__SubAgentSource }).annotate({ | | |
| 42451 | title: "SubAgentSessionSource", | | |
| 42452 | }), | | |
| 42453 | ], | | |
| 42454 | { mode: "oneOf" }, | | |
| 42455 | ); | | |
| 42456 | | | |
| 42457 | export type V2ThreadStartedNotification__ThreadExtra = {}; | | |
| 42458 | export const V2ThreadStartedNotification__ThreadExtra = Schema.Struct({}).annotate({ | | |
| 42459 | description: "Extra app-server data for a thread.", | | |
| 42460 | }); | | |
| 42461 | | | |
| 42462 | export type V2ThreadStartedNotification__ThreadHistoryMode = "legacy" | "paginated"; | | |
| 42463 | export const V2ThreadStartedNotification__ThreadHistoryMode = Schema.Literals([ | | |
| 42464 | "legacy", | | |
| 42465 | "paginated", | | |
| 42466 | ]); | | |
| 42467 | | | |
| 42468 | export type V2ThreadStartedNotification__ThreadStatus = | | |
| 42469 | | { readonly type: "notLoaded" } | | |
| 42470 | | { readonly type: "idle" } | | |
| 42471 | | { readonly type: "systemError" } | | |
| 42472 | | { | | |
| 42473 | readonly activeFlags: ReadonlyArray<V2ThreadStartedNotification__ThreadActiveFlag>; | | |
| 42474 | readonly type: "active"; | | |
| 42475 | }; | | |
| 42476 | export const V2ThreadStartedNotification__ThreadStatus = Schema.Union( | | |
| 42477 | [ | | |
| 42478 | Schema.Struct({ | | |
| 42479 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), | | |
| 42480 | }).annotate({ title: "NotLoadedThreadStatus" }), | | |
| 42481 | Schema.Struct({ | | |
| 42482 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), | | |
| 42483 | }).annotate({ title: "IdleThreadStatus" }), | | |
| 42484 | Schema.Struct({ | | |
| 42485 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), | | |
| 42486 | }).annotate({ title: "SystemErrorThreadStatus" }), | | |
| 42487 | Schema.Struct({ | | |
| 42488 | activeFlags: Schema.Array(V2ThreadStartedNotification__ThreadActiveFlag), | | |
| 42489 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), | | |
| 42490 | }).annotate({ title: "ActiveThreadStatus" }), | | |
| 42491 | ], | | |
| 42492 | { mode: "oneOf" }, | | |
| 42493 | ); | | |
| 42494 | | 44433 | |
| 42495 | export type V2ThreadStartedNotification__TurnItemsView = "notLoaded" | "summary" | "full"; | 44434 | export type V2ThreadStartedNotification__ThreadExtra = { readonly [x: string]: Schema.Json }; |
| 42496 | export const V2ThreadStartedNotification__TurnItemsView = Schema.Literals([ | 44435 | export const V2ThreadStartedNotification__ThreadExtra = Schema.Record( |
| 42497 | "notLoaded", | 44436 | Schema.String, |
| 42498 | "summary", | 44437 | Schema.Json.annotate({ expected: "JSON value" }), |
| 42499 | "full", | 44438 | ).annotate({ description: "Extra app-server data for a thread." }); |
| | 44439 | |
| | 44440 | export type V2ThreadStartedNotification__ThreadHistoryMode = "legacy" | "paginated"; |
| | 44441 | export const V2ThreadStartedNotification__ThreadHistoryMode = Schema.Literals([ |
| | 44442 | "legacy", |
| | 44443 | "paginated", |
| 42500 | ]); | 44444 | ]); |
| 42501 | | 44445 | |
| 42502 | export type V2ThreadStartParams = { | 44446 | export type V2ThreadStartParams = { |
| 42503 | readonly approvalPolicy?: V2ThreadStartParams__AskForApproval | null; | 44447 | readonly approvalPolicy?: V2ThreadStartParams__AskForApproval | null; |
| 42504 | readonly approvalsReviewer?: V2ThreadStartParams__ApprovalsReviewer | null; | 44448 | readonly approvalsReviewer?: V2ThreadStartParams__ApprovalsReviewer | null; |
| 42505 | readonly baseInstructions?: string | null; | 44449 | readonly baseInstructions?: string | null; |
| 42506 | readonly config?: { readonly [x: string]: unknown } | null; | 44450 | readonly config?: { readonly [x: string]: Schema.Json } | null; |
| 42507 | readonly cwd?: string | null; | 44451 | readonly cwd?: string | null; |
| 42508 | readonly developerInstructions?: string | null; | 44452 | readonly developerInstructions?: string | null; |
| 42509 | readonly ephemeral?: boolean | null; | 44453 | readonly ephemeral?: boolean | null; |
| ... | @@ -42528,7 +44472,10 @@ export const V2ThreadStartParams = Schema.Struct({ | ... | @@ -42528,7 +44472,10 @@ export const V2ThreadStartParams = Schema.Struct({ |
| 42528 | ), | 44472 | ), |
| 42529 | baseInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 44473 | baseInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 42530 | config: Schema.optionalKey( | 44474 | config: Schema.optionalKey( |
| 42531 | Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]), | 44475 | Schema.Union([ |
| | 44476 | Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })), |
| | 44477 | Schema.Null, |
| | 44478 | ]), |
| 42532 | ), | 44479 | ), |
| 42533 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 44480 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 42534 | developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 44481 | developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -42555,34 +44502,11 @@ export const V2ThreadStartParams__AbsolutePathBuf = Schema.String.annotate({ | ... | @@ -42555,34 +44502,11 @@ export const V2ThreadStartParams__AbsolutePathBuf = Schema.String.annotate({ |
| 42555 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", | 44502 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| 42556 | }); | 44503 | }); |
| 42557 | | 44504 | |
| 42558 | export type V2ThreadStartParams__CapabilityRootLocation = { | | |
| 42559 | readonly environmentId: string; | | |
| 42560 | readonly path: string; | | |
| 42561 | readonly type: "environment"; | | |
| 42562 | }; | | |
| 42563 | export const V2ThreadStartParams__CapabilityRootLocation = Schema.Union( | | |
| 42564 | [ | | |
| 42565 | Schema.Struct({ | | |
| 42566 | environmentId: Schema.String, | | |
| 42567 | path: Schema.String.annotate({ | | |
| 42568 | description: "Absolute path for the root in the selected environment.", | | |
| 42569 | }), | | |
| 42570 | type: Schema.Literal("environment").annotate({ | | |
| 42571 | title: "EnvironmentCapabilityRootLocationType", | | |
| 42572 | }), | | |
| 42573 | }).annotate({ | | |
| 42574 | title: "EnvironmentCapabilityRootLocation", | | |
| 42575 | description: "A path owned by an execution environment.", | | |
| 42576 | }), | | |
| 42577 | ], | | |
| 42578 | { mode: "oneOf" }, | | |
| 42579 | ).annotate({ description: "Location used to resolve a selected capability root." }); | | |
| 42580 | | | |
| 42581 | export type V2ThreadStartParams__DynamicToolSpec = | 44505 | export type V2ThreadStartParams__DynamicToolSpec = |
| 42582 | | { | 44506 | | { |
| 42583 | readonly deferLoading?: boolean; | 44507 | readonly deferLoading?: boolean; |
| 42584 | readonly description: string; | 44508 | readonly description: string; |
| 42585 | readonly inputSchema: unknown; | 44509 | readonly inputSchema: Schema.Json; |
| 42586 | readonly name: string; | 44510 | readonly name: string; |
| 42587 | readonly type: "function"; | 44511 | readonly type: "function"; |
| 42588 | } | 44512 | } |
| ... | @@ -42597,7 +44521,7 @@ export const V2ThreadStartParams__DynamicToolSpec = Schema.Union( | ... | @@ -42597,7 +44521,7 @@ export const V2ThreadStartParams__DynamicToolSpec = Schema.Union( |
| 42597 | Schema.Struct({ | 44521 | Schema.Struct({ |
| 42598 | deferLoading: Schema.optionalKey(Schema.Boolean), | 44522 | deferLoading: Schema.optionalKey(Schema.Boolean), |
| 42599 | description: Schema.String, | 44523 | description: Schema.String, |
| 42600 | inputSchema: Schema.Unknown, | 44524 | inputSchema: Schema.Json.annotate({ expected: "JSON value" }), |
| 42601 | name: Schema.String, | 44525 | name: Schema.String, |
| 42602 | type: Schema.Literal("function").annotate({ title: "FunctionDynamicToolSpecType" }), | 44526 | type: Schema.Literal("function").annotate({ title: "FunctionDynamicToolSpecType" }), |
| 42603 | }).annotate({ title: "FunctionDynamicToolSpec" }), | 44527 | }).annotate({ title: "FunctionDynamicToolSpec" }), |
| ... | @@ -42628,33 +44552,16 @@ export const V2ThreadStartParams__MultiAgentMode = Schema.Union( | ... | @@ -42628,33 +44552,16 @@ export const V2ThreadStartParams__MultiAgentMode = Schema.Union( |
| 42628 | | 44552 | |
| 42629 | export type V2ThreadStartParams__SelectedCapabilityRoot = { | 44553 | export type V2ThreadStartParams__SelectedCapabilityRoot = { |
| 42630 | readonly id: string; | 44554 | readonly id: string; |
| 42631 | readonly location: { | 44555 | readonly location: V2ThreadStartParams__CapabilityRootLocation; |
| 42632 | readonly environmentId: string; | | |
| 42633 | readonly path: string; | | |
| 42634 | readonly type: "environment"; | | |
| 42635 | }; | | |
| 42636 | }; | 44556 | }; |
| 42637 | export const V2ThreadStartParams__SelectedCapabilityRoot = Schema.Struct({ | 44557 | export const V2ThreadStartParams__SelectedCapabilityRoot = Schema.Struct({ |
| 42638 | id: Schema.String.annotate({ | 44558 | id: Schema.String.annotate({ |
| 42639 | description: "Stable identifier supplied by the capability selection platform.", | 44559 | description: "Stable identifier supplied by the capability selection platform.", |
| 42640 | }), | 44560 | }), |
| 42641 | location: Schema.Union( | 44561 | location: Schema.suspend( |
| 42642 | [ | 44562 | (): Schema.Codec<V2ThreadStartParams__CapabilityRootLocation> => |
| 42643 | Schema.Struct({ | 44563 | V2ThreadStartParams__CapabilityRootLocation, |
| 42644 | environmentId: Schema.String, | 44564 | ).annotate({ description: "Where the selected root can be resolved." }), |
| 42645 | path: Schema.String.annotate({ | | |
| 42646 | description: "Absolute path for the root in the selected environment.", | | |
| 42647 | }), | | |
| 42648 | type: Schema.Literal("environment").annotate({ | | |
| 42649 | title: "EnvironmentCapabilityRootLocationType", | | |
| 42650 | }), | | |
| 42651 | }).annotate({ | | |
| 42652 | title: "EnvironmentCapabilityRootLocation", | | |
| 42653 | description: "A path owned by an execution environment.", | | |
| 42654 | }), | | |
| 42655 | ], | | |
| 42656 | { mode: "oneOf" }, | | |
| 42657 | ).annotate({ description: "Location used to resolve a selected capability root." }), | | |
| 42658 | }).annotate({ | 44565 | }).annotate({ |
| 42659 | description: "A user-selected root that can expose one or more runtime capabilities.", | 44566 | description: "A user-selected root that can expose one or more runtime capabilities.", |
| 42660 | }); | 44567 | }); |
| ... | @@ -42682,32 +44589,22 @@ export const V2ThreadStartParams__TurnEnvironmentParams = Schema.Struct({ | ... | @@ -42682,32 +44589,22 @@ export const V2ThreadStartParams__TurnEnvironmentParams = Schema.Struct({ |
| 42682 | | 44589 | |
| 42683 | export type V2ThreadStartResponse = { | 44590 | export type V2ThreadStartResponse = { |
| 42684 | readonly approvalPolicy: V2ThreadStartResponse__AskForApproval; | 44591 | readonly approvalPolicy: V2ThreadStartResponse__AskForApproval; |
| 42685 | readonly approvalsReviewer: "user" | "auto_review" | "guardian_subagent"; | 44592 | readonly approvalsReviewer: V2ThreadStartResponse__ApprovalsReviewer; |
| 42686 | readonly cwd: V2ThreadStartResponse__AbsolutePathBuf; | 44593 | readonly cwd: V2ThreadStartResponse__AbsolutePathBuf; |
| 42687 | readonly instructionSources?: ReadonlyArray<V2ThreadStartResponse__LegacyAppPathString>; | 44594 | readonly instructionSources?: ReadonlyArray<V2ThreadStartResponse__LegacyAppPathString>; |
| 42688 | readonly model: string; | 44595 | readonly model: string; |
| 42689 | readonly modelProvider: string; | 44596 | readonly modelProvider: string; |
| 42690 | readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null; | 44597 | readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null; |
| 42691 | readonly sandbox: | 44598 | readonly sandbox: V2ThreadStartResponse__SandboxPolicy; |
| 42692 | | { readonly type: "dangerFullAccess" } | | |
| 42693 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } | | |
| 42694 | | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" } | | |
| 42695 | | { | | |
| 42696 | readonly excludeSlashTmp?: boolean; | | |
| 42697 | readonly excludeTmpdirEnvVar?: boolean; | | |
| 42698 | readonly networkAccess?: boolean; | | |
| 42699 | readonly type: "workspaceWrite"; | | |
| 42700 | readonly writableRoots?: ReadonlyArray<V2ThreadStartResponse__AbsolutePathBuf>; | | |
| 42701 | }; | | |
| 42702 | readonly serviceTier?: string | null; | 44599 | readonly serviceTier?: string | null; |
| 42703 | readonly thread: V2ThreadStartResponse__Thread; | 44600 | readonly thread: V2ThreadStartResponse__Thread; |
| 42704 | }; | 44601 | }; |
| 42705 | export const V2ThreadStartResponse = Schema.Struct({ | 44602 | export const V2ThreadStartResponse = Schema.Struct({ |
| 42706 | approvalPolicy: V2ThreadStartResponse__AskForApproval, | 44603 | approvalPolicy: V2ThreadStartResponse__AskForApproval, |
| 42707 | approvalsReviewer: Schema.Literals(["user", "auto_review", "guardian_subagent"]).annotate({ | 44604 | approvalsReviewer: Schema.suspend( |
| 42708 | description: | 44605 | (): Schema.Codec<V2ThreadStartResponse__ApprovalsReviewer> => |
| 42709 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", | 44606 | V2ThreadStartResponse__ApprovalsReviewer, |
| 42710 | }), | 44607 | ).annotate({ description: "Reviewer currently used for approval requests on this thread." }), |
| 42711 | cwd: V2ThreadStartResponse__AbsolutePathBuf, | 44608 | cwd: V2ThreadStartResponse__AbsolutePathBuf, |
| 42712 | instructionSources: Schema.optionalKey( | 44609 | instructionSources: Schema.optionalKey( |
| 42713 | Schema.Array(V2ThreadStartResponse__LegacyAppPathString).annotate({ | 44610 | Schema.Array(V2ThreadStartResponse__LegacyAppPathString).annotate({ |
| ... | @@ -42721,38 +44618,8 @@ export const V2ThreadStartResponse = Schema.Struct({ | ... | @@ -42721,38 +44618,8 @@ export const V2ThreadStartResponse = Schema.Struct({ |
| 42721 | reasoningEffort: Schema.optionalKey( | 44618 | reasoningEffort: Schema.optionalKey( |
| 42722 | Schema.Union([V2ThreadStartResponse__ReasoningEffort, Schema.Null]), | 44619 | Schema.Union([V2ThreadStartResponse__ReasoningEffort, Schema.Null]), |
| 42723 | ), | 44620 | ), |
| 42724 | sandbox: Schema.Union( | 44621 | sandbox: Schema.suspend( |
| 42725 | [ | 44622 | (): Schema.Codec<V2ThreadStartResponse__SandboxPolicy> => V2ThreadStartResponse__SandboxPolicy, |
| 42726 | Schema.Struct({ | | |
| 42727 | type: Schema.Literal("dangerFullAccess").annotate({ | | |
| 42728 | title: "DangerFullAccessSandboxPolicyType", | | |
| 42729 | }), | | |
| 42730 | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), | | |
| 42731 | Schema.Struct({ | | |
| 42732 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 42733 | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), | | |
| 42734 | }).annotate({ title: "ReadOnlySandboxPolicy" }), | | |
| 42735 | Schema.Struct({ | | |
| 42736 | networkAccess: Schema.optionalKey( | | |
| 42737 | Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }), | | |
| 42738 | ), | | |
| 42739 | type: Schema.Literal("externalSandbox").annotate({ | | |
| 42740 | title: "ExternalSandboxSandboxPolicyType", | | |
| 42741 | }), | | |
| 42742 | }).annotate({ title: "ExternalSandboxSandboxPolicy" }), | | |
| 42743 | Schema.Struct({ | | |
| 42744 | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 42745 | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 42746 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 42747 | type: Schema.Literal("workspaceWrite").annotate({ | | |
| 42748 | title: "WorkspaceWriteSandboxPolicyType", | | |
| 42749 | }), | | |
| 42750 | writableRoots: Schema.optionalKey( | | |
| 42751 | Schema.Array(V2ThreadStartResponse__AbsolutePathBuf).annotate({ default: [] }), | | |
| 42752 | ), | | |
| 42753 | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), | | |
| 42754 | ], | | |
| 42755 | { mode: "oneOf" }, | | |
| 42756 | ).annotate({ | 44623 | ).annotate({ |
| 42757 | description: | 44624 | description: |
| 42758 | "Legacy sandbox policy retained for compatibility. Experimental clients should prefer `activePermissionProfile` for profile provenance.", | 44625 | "Legacy sandbox policy retained for compatibility. Experimental clients should prefer `activePermissionProfile` for profile provenance.", |
| ... | @@ -42781,72 +44648,6 @@ export const V2ThreadStartResponse__ActivePermissionProfile = Schema.Struct({ | ... | @@ -42781,72 +44648,6 @@ export const V2ThreadStartResponse__ActivePermissionProfile = Schema.Struct({ |
| 42781 | }), | 44648 | }), |
| 42782 | }); | 44649 | }); |
| 42783 | | 44650 | |
| 42784 | export type V2ThreadStartResponse__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent"; | | |
| 42785 | export const V2ThreadStartResponse__ApprovalsReviewer = Schema.Literals([ | | |
| 42786 | "user", | | |
| 42787 | "auto_review", | | |
| 42788 | "guardian_subagent", | | |
| 42789 | ]).annotate({ | | |
| 42790 | description: | | |
| 42791 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", | | |
| 42792 | }); | | |
| 42793 | | | |
| 42794 | export type V2ThreadStartResponse__ByteRange = { readonly end: number; readonly start: number }; | | |
| 42795 | export const V2ThreadStartResponse__ByteRange = Schema.Struct({ | | |
| 42796 | end: Schema.Number.annotate({ format: "uint" }) | | |
| 42797 | .check(Schema.isInt()) | | |
| 42798 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 42799 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 42800 | .check(Schema.isInt()) | | |
| 42801 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 42802 | }); | | |
| 42803 | | | |
| 42804 | export type V2ThreadStartResponse__CollabAgentTool = | | |
| 42805 | | "spawnAgent" | | |
| 42806 | | "sendInput" | | |
| 42807 | | "resumeAgent" | | |
| 42808 | | "wait" | | |
| 42809 | | "closeAgent" | | |
| 42810 | | "sendMessage" | | |
| 42811 | | "followupTask" | | |
| 42812 | | "interruptAgent" | | |
| 42813 | | "listAgents"; | | |
| 42814 | export const V2ThreadStartResponse__CollabAgentTool = Schema.Literals([ | | |
| 42815 | "spawnAgent", | | |
| 42816 | "sendInput", | | |
| 42817 | "resumeAgent", | | |
| 42818 | "wait", | | |
| 42819 | "closeAgent", | | |
| 42820 | "sendMessage", | | |
| 42821 | "followupTask", | | |
| 42822 | "interruptAgent", | | |
| 42823 | "listAgents", | | |
| 42824 | ]); | | |
| 42825 | | | |
| 42826 | export type V2ThreadStartResponse__CollabAgentToolCallStatus = | | |
| 42827 | | "inProgress" | | |
| 42828 | | "completed" | | |
| 42829 | | "failed" | | |
| 42830 | | "interrupted"; | | |
| 42831 | export const V2ThreadStartResponse__CollabAgentToolCallStatus = Schema.Literals([ | | |
| 42832 | "inProgress", | | |
| 42833 | "completed", | | |
| 42834 | "failed", | | |
| 42835 | "interrupted", | | |
| 42836 | ]); | | |
| 42837 | | | |
| 42838 | export type V2ThreadStartResponse__CommandExecutionSource = | | |
| 42839 | | "agent" | | |
| 42840 | | "userShell" | | |
| 42841 | | "unifiedExecStartup" | | |
| 42842 | | "unifiedExecInteraction"; | | |
| 42843 | export const V2ThreadStartResponse__CommandExecutionSource = Schema.Literals([ | | |
| 42844 | "agent", | | |
| 42845 | "userShell", | | |
| 42846 | "unifiedExecStartup", | | |
| 42847 | "unifiedExecInteraction", | | |
| 42848 | ]); | | |
| 42849 | | | |
| 42850 | export type V2ThreadStartResponse__MultiAgentMode = | 44651 | export type V2ThreadStartResponse__MultiAgentMode = |
| 42851 | | "explicitRequestOnly" | 44652 | | "explicitRequestOnly" |
| 42852 | | "proactive" | 44653 | | "proactive" |
| ... | @@ -42862,113 +44663,15 @@ export const V2ThreadStartResponse__MultiAgentMode = Schema.Union( | ... | @@ -42862,113 +44663,15 @@ export const V2ThreadStartResponse__MultiAgentMode = Schema.Union( |
| 42862 | "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.", | 44663 | "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.", |
| 42863 | }); | 44664 | }); |
| 42864 | | 44665 | |
| 42865 | export type V2ThreadStartResponse__NetworkAccess = "restricted" | "enabled"; | 44666 | export type V2ThreadStartResponse__ThreadExtra = { readonly [x: string]: Schema.Json }; |
| 42866 | export const V2ThreadStartResponse__NetworkAccess = Schema.Literals(["restricted", "enabled"]); | 44667 | export const V2ThreadStartResponse__ThreadExtra = Schema.Record( |
| 42867 | | 44668 | Schema.String, |
| 42868 | export type V2ThreadStartResponse__SandboxPolicy = | 44669 | Schema.Json.annotate({ expected: "JSON value" }), |
| 42869 | | { readonly type: "dangerFullAccess" } | 44670 | ).annotate({ description: "Extra app-server data for a thread." }); |
| 42870 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } | | |
| 42871 | | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" } | | |
| 42872 | | { | | |
| 42873 | readonly excludeSlashTmp?: boolean; | | |
| 42874 | readonly excludeTmpdirEnvVar?: boolean; | | |
| 42875 | readonly networkAccess?: boolean; | | |
| 42876 | readonly type: "workspaceWrite"; | | |
| 42877 | readonly writableRoots?: ReadonlyArray<V2ThreadStartResponse__AbsolutePathBuf>; | | |
| 42878 | }; | | |
| 42879 | export const V2ThreadStartResponse__SandboxPolicy = Schema.Union( | | |
| 42880 | [ | | |
| 42881 | Schema.Struct({ | | |
| 42882 | type: Schema.Literal("dangerFullAccess").annotate({ | | |
| 42883 | title: "DangerFullAccessSandboxPolicyType", | | |
| 42884 | }), | | |
| 42885 | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), | | |
| 42886 | Schema.Struct({ | | |
| 42887 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 42888 | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), | | |
| 42889 | }).annotate({ title: "ReadOnlySandboxPolicy" }), | | |
| 42890 | Schema.Struct({ | | |
| 42891 | networkAccess: Schema.optionalKey( | | |
| 42892 | Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }), | | |
| 42893 | ), | | |
| 42894 | type: Schema.Literal("externalSandbox").annotate({ | | |
| 42895 | title: "ExternalSandboxSandboxPolicyType", | | |
| 42896 | }), | | |
| 42897 | }).annotate({ title: "ExternalSandboxSandboxPolicy" }), | | |
| 42898 | Schema.Struct({ | | |
| 42899 | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 42900 | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 42901 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | | |
| 42902 | type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }), | | |
| 42903 | writableRoots: Schema.optionalKey( | | |
| 42904 | Schema.Array(V2ThreadStartResponse__AbsolutePathBuf).annotate({ default: [] }), | | |
| 42905 | ), | | |
| 42906 | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), | | |
| 42907 | ], | | |
| 42908 | { mode: "oneOf" }, | | |
| 42909 | ); | | |
| 42910 | | | |
| 42911 | export type V2ThreadStartResponse__SessionSource = | | |
| 42912 | | "cli" | | |
| 42913 | | "vscode" | | |
| 42914 | | "exec" | | |
| 42915 | | "appServer" | | |
| 42916 | | "unknown" | | |
| 42917 | | { readonly custom: string } | | |
| 42918 | | { readonly subAgent: V2ThreadStartResponse__SubAgentSource }; | | |
| 42919 | export const V2ThreadStartResponse__SessionSource = Schema.Union( | | |
| 42920 | [ | | |
| 42921 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), | | |
| 42922 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), | | |
| 42923 | Schema.Struct({ subAgent: V2ThreadStartResponse__SubAgentSource }).annotate({ | | |
| 42924 | title: "SubAgentSessionSource", | | |
| 42925 | }), | | |
| 42926 | ], | | |
| 42927 | { mode: "oneOf" }, | | |
| 42928 | ); | | |
| 42929 | | | |
| 42930 | export type V2ThreadStartResponse__ThreadExtra = {}; | | |
| 42931 | export const V2ThreadStartResponse__ThreadExtra = Schema.Struct({}).annotate({ | | |
| 42932 | description: "Extra app-server data for a thread.", | | |
| 42933 | }); | | |
| 42934 | | 44671 | |
| 42935 | export type V2ThreadStartResponse__ThreadHistoryMode = "legacy" | "paginated"; | 44672 | export type V2ThreadStartResponse__ThreadHistoryMode = "legacy" | "paginated"; |
| 42936 | export const V2ThreadStartResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]); | 44673 | export const V2ThreadStartResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]); |
| 42937 | | 44674 | |
| 42938 | export type V2ThreadStartResponse__ThreadStatus = | | |
| 42939 | | { readonly type: "notLoaded" } | | |
| 42940 | | { readonly type: "idle" } | | |
| 42941 | | { readonly type: "systemError" } | | |
| 42942 | | { | | |
| 42943 | readonly activeFlags: ReadonlyArray<V2ThreadStartResponse__ThreadActiveFlag>; | | |
| 42944 | readonly type: "active"; | | |
| 42945 | }; | | |
| 42946 | export const V2ThreadStartResponse__ThreadStatus = Schema.Union( | | |
| 42947 | [ | | |
| 42948 | Schema.Struct({ | | |
| 42949 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), | | |
| 42950 | }).annotate({ title: "NotLoadedThreadStatus" }), | | |
| 42951 | Schema.Struct({ | | |
| 42952 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), | | |
| 42953 | }).annotate({ title: "IdleThreadStatus" }), | | |
| 42954 | Schema.Struct({ | | |
| 42955 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), | | |
| 42956 | }).annotate({ title: "SystemErrorThreadStatus" }), | | |
| 42957 | Schema.Struct({ | | |
| 42958 | activeFlags: Schema.Array(V2ThreadStartResponse__ThreadActiveFlag), | | |
| 42959 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), | | |
| 42960 | }).annotate({ title: "ActiveThreadStatus" }), | | |
| 42961 | ], | | |
| 42962 | { mode: "oneOf" }, | | |
| 42963 | ); | | |
| 42964 | | | |
| 42965 | export type V2ThreadStartResponse__TurnItemsView = "notLoaded" | "summary" | "full"; | | |
| 42966 | export const V2ThreadStartResponse__TurnItemsView = Schema.Literals([ | | |
| 42967 | "notLoaded", | | |
| 42968 | "summary", | | |
| 42969 | "full", | | |
| 42970 | ]); | | |
| 42971 | | | |
| 42972 | export type V2ThreadStatusChangedNotification = { | 44675 | export type V2ThreadStatusChangedNotification = { |
| 42973 | readonly status: V2ThreadStatusChangedNotification__ThreadStatus; | 44676 | readonly status: V2ThreadStatusChangedNotification__ThreadStatus; |
| 42974 | readonly threadId: string; | 44677 | readonly threadId: string; |
| ... | @@ -43004,85 +44707,11 @@ export const V2ThreadUnarchiveResponse = Schema.Struct({ | ... | @@ -43004,85 +44707,11 @@ export const V2ThreadUnarchiveResponse = Schema.Struct({ |
| 43004 | thread: V2ThreadUnarchiveResponse__Thread, | 44707 | thread: V2ThreadUnarchiveResponse__Thread, |
| 43005 | }).annotate({ title: "ThreadUnarchiveResponse" }); | 44708 | }).annotate({ title: "ThreadUnarchiveResponse" }); |
| 43006 | | 44709 | |
| 43007 | export type V2ThreadUnarchiveResponse__ByteRange = { readonly end: number; readonly start: number }; | 44710 | export type V2ThreadUnarchiveResponse__ThreadExtra = { readonly [x: string]: Schema.Json }; |
| 43008 | export const V2ThreadUnarchiveResponse__ByteRange = Schema.Struct({ | 44711 | export const V2ThreadUnarchiveResponse__ThreadExtra = Schema.Record( |
| 43009 | end: Schema.Number.annotate({ format: "uint" }) | 44712 | Schema.String, |
| 43010 | .check(Schema.isInt()) | 44713 | Schema.Json.annotate({ expected: "JSON value" }), |
| 43011 | .check(Schema.isGreaterThanOrEqualTo(0)), | 44714 | ).annotate({ description: "Extra app-server data for a thread." }); |
| 43012 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 43013 | .check(Schema.isInt()) | | |
| 43014 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 43015 | }); | | |
| 43016 | | | |
| 43017 | export type V2ThreadUnarchiveResponse__CollabAgentTool = | | |
| 43018 | | "spawnAgent" | | |
| 43019 | | "sendInput" | | |
| 43020 | | "resumeAgent" | | |
| 43021 | | "wait" | | |
| 43022 | | "closeAgent" | | |
| 43023 | | "sendMessage" | | |
| 43024 | | "followupTask" | | |
| 43025 | | "interruptAgent" | | |
| 43026 | | "listAgents"; | | |
| 43027 | export const V2ThreadUnarchiveResponse__CollabAgentTool = Schema.Literals([ | | |
| 43028 | "spawnAgent", | | |
| 43029 | "sendInput", | | |
| 43030 | "resumeAgent", | | |
| 43031 | "wait", | | |
| 43032 | "closeAgent", | | |
| 43033 | "sendMessage", | | |
| 43034 | "followupTask", | | |
| 43035 | "interruptAgent", | | |
| 43036 | "listAgents", | | |
| 43037 | ]); | | |
| 43038 | | | |
| 43039 | export type V2ThreadUnarchiveResponse__CollabAgentToolCallStatus = | | |
| 43040 | | "inProgress" | | |
| 43041 | | "completed" | | |
| 43042 | | "failed" | | |
| 43043 | | "interrupted"; | | |
| 43044 | export const V2ThreadUnarchiveResponse__CollabAgentToolCallStatus = Schema.Literals([ | | |
| 43045 | "inProgress", | | |
| 43046 | "completed", | | |
| 43047 | "failed", | | |
| 43048 | "interrupted", | | |
| 43049 | ]); | | |
| 43050 | | | |
| 43051 | export type V2ThreadUnarchiveResponse__CommandExecutionSource = | | |
| 43052 | | "agent" | | |
| 43053 | | "userShell" | | |
| 43054 | | "unifiedExecStartup" | | |
| 43055 | | "unifiedExecInteraction"; | | |
| 43056 | export const V2ThreadUnarchiveResponse__CommandExecutionSource = Schema.Literals([ | | |
| 43057 | "agent", | | |
| 43058 | "userShell", | | |
| 43059 | "unifiedExecStartup", | | |
| 43060 | "unifiedExecInteraction", | | |
| 43061 | ]); | | |
| 43062 | | | |
| 43063 | export type V2ThreadUnarchiveResponse__SessionSource = | | |
| 43064 | | "cli" | | |
| 43065 | | "vscode" | | |
| 43066 | | "exec" | | |
| 43067 | | "appServer" | | |
| 43068 | | "unknown" | | |
| 43069 | | { readonly custom: string } | | |
| 43070 | | { readonly subAgent: V2ThreadUnarchiveResponse__SubAgentSource }; | | |
| 43071 | export const V2ThreadUnarchiveResponse__SessionSource = Schema.Union( | | |
| 43072 | [ | | |
| 43073 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), | | |
| 43074 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), | | |
| 43075 | Schema.Struct({ subAgent: V2ThreadUnarchiveResponse__SubAgentSource }).annotate({ | | |
| 43076 | title: "SubAgentSessionSource", | | |
| 43077 | }), | | |
| 43078 | ], | | |
| 43079 | { mode: "oneOf" }, | | |
| 43080 | ); | | |
| 43081 | | | |
| 43082 | export type V2ThreadUnarchiveResponse__ThreadExtra = {}; | | |
| 43083 | export const V2ThreadUnarchiveResponse__ThreadExtra = Schema.Struct({}).annotate({ | | |
| 43084 | description: "Extra app-server data for a thread.", | | |
| 43085 | }); | | |
| 43086 | | 44715 | |
| 43087 | export type V2ThreadUnarchiveResponse__ThreadHistoryMode = "legacy" | "paginated"; | 44716 | export type V2ThreadUnarchiveResponse__ThreadHistoryMode = "legacy" | "paginated"; |
| 43088 | export const V2ThreadUnarchiveResponse__ThreadHistoryMode = Schema.Literals([ | 44717 | export const V2ThreadUnarchiveResponse__ThreadHistoryMode = Schema.Literals([ |
| ... | @@ -43090,40 +44719,6 @@ export const V2ThreadUnarchiveResponse__ThreadHistoryMode = Schema.Literals([ | ... | @@ -43090,40 +44719,6 @@ export const V2ThreadUnarchiveResponse__ThreadHistoryMode = Schema.Literals([ |
| 43090 | "paginated", | 44719 | "paginated", |
| 43091 | ]); | 44720 | ]); |
| 43092 | | 44721 | |
| 43093 | export type V2ThreadUnarchiveResponse__ThreadStatus = | | |
| 43094 | | { readonly type: "notLoaded" } | | |
| 43095 | | { readonly type: "idle" } | | |
| 43096 | | { readonly type: "systemError" } | | |
| 43097 | | { | | |
| 43098 | readonly activeFlags: ReadonlyArray<V2ThreadUnarchiveResponse__ThreadActiveFlag>; | | |
| 43099 | readonly type: "active"; | | |
| 43100 | }; | | |
| 43101 | export const V2ThreadUnarchiveResponse__ThreadStatus = Schema.Union( | | |
| 43102 | [ | | |
| 43103 | Schema.Struct({ | | |
| 43104 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), | | |
| 43105 | }).annotate({ title: "NotLoadedThreadStatus" }), | | |
| 43106 | Schema.Struct({ | | |
| 43107 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), | | |
| 43108 | }).annotate({ title: "IdleThreadStatus" }), | | |
| 43109 | Schema.Struct({ | | |
| 43110 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), | | |
| 43111 | }).annotate({ title: "SystemErrorThreadStatus" }), | | |
| 43112 | Schema.Struct({ | | |
| 43113 | activeFlags: Schema.Array(V2ThreadUnarchiveResponse__ThreadActiveFlag), | | |
| 43114 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), | | |
| 43115 | }).annotate({ title: "ActiveThreadStatus" }), | | |
| 43116 | ], | | |
| 43117 | { mode: "oneOf" }, | | |
| 43118 | ); | | |
| 43119 | | | |
| 43120 | export type V2ThreadUnarchiveResponse__TurnItemsView = "notLoaded" | "summary" | "full"; | | |
| 43121 | export const V2ThreadUnarchiveResponse__TurnItemsView = Schema.Literals([ | | |
| 43122 | "notLoaded", | | |
| 43123 | "summary", | | |
| 43124 | "full", | | |
| 43125 | ]); | | |
| 43126 | | | |
| 43127 | export type V2ThreadUnsubscribeParams = { readonly threadId: string }; | 44722 | export type V2ThreadUnsubscribeParams = { readonly threadId: string }; |
| 43128 | export const V2ThreadUnsubscribeParams = Schema.Struct({ threadId: Schema.String }).annotate({ | 44723 | export const V2ThreadUnsubscribeParams = Schema.Struct({ threadId: Schema.String }).annotate({ |
| 43129 | title: "ThreadUnsubscribeParams", | 44724 | title: "ThreadUnsubscribeParams", |
| ... | @@ -43145,72 +44740,6 @@ export const V2TurnCompletedNotification = Schema.Struct({ | ... | @@ -43145,72 +44740,6 @@ export const V2TurnCompletedNotification = Schema.Struct({ |
| 43145 | turn: V2TurnCompletedNotification__Turn, | 44740 | turn: V2TurnCompletedNotification__Turn, |
| 43146 | }).annotate({ title: "TurnCompletedNotification" }); | 44741 | }).annotate({ title: "TurnCompletedNotification" }); |
| 43147 | | 44742 | |
| 43148 | export type V2TurnCompletedNotification__ByteRange = { | | |
| 43149 | readonly end: number; | | |
| 43150 | readonly start: number; | | |
| 43151 | }; | | |
| 43152 | export const V2TurnCompletedNotification__ByteRange = Schema.Struct({ | | |
| 43153 | end: Schema.Number.annotate({ format: "uint" }) | | |
| 43154 | .check(Schema.isInt()) | | |
| 43155 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 43156 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 43157 | .check(Schema.isInt()) | | |
| 43158 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 43159 | }); | | |
| 43160 | | | |
| 43161 | export type V2TurnCompletedNotification__CollabAgentTool = | | |
| 43162 | | "spawnAgent" | | |
| 43163 | | "sendInput" | | |
| 43164 | | "resumeAgent" | | |
| 43165 | | "wait" | | |
| 43166 | | "closeAgent" | | |
| 43167 | | "sendMessage" | | |
| 43168 | | "followupTask" | | |
| 43169 | | "interruptAgent" | | |
| 43170 | | "listAgents"; | | |
| 43171 | export const V2TurnCompletedNotification__CollabAgentTool = Schema.Literals([ | | |
| 43172 | "spawnAgent", | | |
| 43173 | "sendInput", | | |
| 43174 | "resumeAgent", | | |
| 43175 | "wait", | | |
| 43176 | "closeAgent", | | |
| 43177 | "sendMessage", | | |
| 43178 | "followupTask", | | |
| 43179 | "interruptAgent", | | |
| 43180 | "listAgents", | | |
| 43181 | ]); | | |
| 43182 | | | |
| 43183 | export type V2TurnCompletedNotification__CollabAgentToolCallStatus = | | |
| 43184 | | "inProgress" | | |
| 43185 | | "completed" | | |
| 43186 | | "failed" | | |
| 43187 | | "interrupted"; | | |
| 43188 | export const V2TurnCompletedNotification__CollabAgentToolCallStatus = Schema.Literals([ | | |
| 43189 | "inProgress", | | |
| 43190 | "completed", | | |
| 43191 | "failed", | | |
| 43192 | "interrupted", | | |
| 43193 | ]); | | |
| 43194 | | | |
| 43195 | export type V2TurnCompletedNotification__CommandExecutionSource = | | |
| 43196 | | "agent" | | |
| 43197 | | "userShell" | | |
| 43198 | | "unifiedExecStartup" | | |
| 43199 | | "unifiedExecInteraction"; | | |
| 43200 | export const V2TurnCompletedNotification__CommandExecutionSource = Schema.Literals([ | | |
| 43201 | "agent", | | |
| 43202 | "userShell", | | |
| 43203 | "unifiedExecStartup", | | |
| 43204 | "unifiedExecInteraction", | | |
| 43205 | ]); | | |
| 43206 | | | |
| 43207 | export type V2TurnCompletedNotification__TurnItemsView = "notLoaded" | "summary" | "full"; | | |
| 43208 | export const V2TurnCompletedNotification__TurnItemsView = Schema.Literals([ | | |
| 43209 | "notLoaded", | | |
| 43210 | "summary", | | |
| 43211 | "full", | | |
| 43212 | ]); | | |
| 43213 | | | |
| 43214 | export type V2TurnDiffUpdatedNotification = { | 44743 | export type V2TurnDiffUpdatedNotification = { |
| 43215 | readonly diff: string; | 44744 | readonly diff: string; |
| 43216 | readonly threadId: string; | 44745 | readonly threadId: string; |
| ... | @@ -43232,18 +44761,19 @@ export const V2TurnInterruptParams = Schema.Struct({ | ... | @@ -43232,18 +44761,19 @@ export const V2TurnInterruptParams = Schema.Struct({ |
| 43232 | turnId: Schema.String, | 44761 | turnId: Schema.String, |
| 43233 | }).annotate({ title: "TurnInterruptParams" }); | 44762 | }).annotate({ title: "TurnInterruptParams" }); |
| 43234 | | 44763 | |
| 43235 | export type V2TurnInterruptResponse = {}; | 44764 | export type V2TurnInterruptResponse = { readonly [x: string]: Schema.Json }; |
| 43236 | export const V2TurnInterruptResponse = Schema.Struct({}).annotate({ | 44765 | export const V2TurnInterruptResponse = Schema.Record( |
| 43237 | title: "TurnInterruptResponse", | 44766 | Schema.String, |
| 43238 | }); | 44767 | Schema.Json.annotate({ expected: "JSON value" }), |
| | 44768 | ).annotate({ title: "TurnInterruptResponse" }); |
| 43239 | | 44769 | |
| 43240 | export type V2TurnModerationMetadataNotification = { | 44770 | export type V2TurnModerationMetadataNotification = { |
| 43241 | readonly metadata: unknown; | 44771 | readonly metadata: Schema.Json; |
| 43242 | readonly threadId: string; | 44772 | readonly threadId: string; |
| 43243 | readonly turnId: string; | 44773 | readonly turnId: string; |
| 43244 | }; | 44774 | }; |
| 43245 | export const V2TurnModerationMetadataNotification = Schema.Struct({ | 44775 | export const V2TurnModerationMetadataNotification = Schema.Struct({ |
| 43246 | metadata: Schema.Unknown, | 44776 | metadata: Schema.Json.annotate({ expected: "JSON value" }), |
| 43247 | threadId: Schema.String, | 44777 | threadId: Schema.String, |
| 43248 | turnId: Schema.String, | 44778 | turnId: Schema.String, |
| 43249 | }).annotate({ title: "TurnModerationMetadataNotification" }); | 44779 | }).annotate({ title: "TurnModerationMetadataNotification" }); |
| ... | @@ -43270,69 +44800,6 @@ export const V2TurnStartedNotification = Schema.Struct({ | ... | @@ -43270,69 +44800,6 @@ export const V2TurnStartedNotification = Schema.Struct({ |
| 43270 | turn: V2TurnStartedNotification__Turn, | 44800 | turn: V2TurnStartedNotification__Turn, |
| 43271 | }).annotate({ title: "TurnStartedNotification" }); | 44801 | }).annotate({ title: "TurnStartedNotification" }); |
| 43272 | | 44802 | |
| 43273 | export type V2TurnStartedNotification__ByteRange = { readonly end: number; readonly start: number }; | | |
| 43274 | export const V2TurnStartedNotification__ByteRange = Schema.Struct({ | | |
| 43275 | end: Schema.Number.annotate({ format: "uint" }) | | |
| 43276 | .check(Schema.isInt()) | | |
| 43277 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 43278 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 43279 | .check(Schema.isInt()) | | |
| 43280 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 43281 | }); | | |
| 43282 | | | |
| 43283 | export type V2TurnStartedNotification__CollabAgentTool = | | |
| 43284 | | "spawnAgent" | | |
| 43285 | | "sendInput" | | |
| 43286 | | "resumeAgent" | | |
| 43287 | | "wait" | | |
| 43288 | | "closeAgent" | | |
| 43289 | | "sendMessage" | | |
| 43290 | | "followupTask" | | |
| 43291 | | "interruptAgent" | | |
| 43292 | | "listAgents"; | | |
| 43293 | export const V2TurnStartedNotification__CollabAgentTool = Schema.Literals([ | | |
| 43294 | "spawnAgent", | | |
| 43295 | "sendInput", | | |
| 43296 | "resumeAgent", | | |
| 43297 | "wait", | | |
| 43298 | "closeAgent", | | |
| 43299 | "sendMessage", | | |
| 43300 | "followupTask", | | |
| 43301 | "interruptAgent", | | |
| 43302 | "listAgents", | | |
| 43303 | ]); | | |
| 43304 | | | |
| 43305 | export type V2TurnStartedNotification__CollabAgentToolCallStatus = | | |
| 43306 | | "inProgress" | | |
| 43307 | | "completed" | | |
| 43308 | | "failed" | | |
| 43309 | | "interrupted"; | | |
| 43310 | export const V2TurnStartedNotification__CollabAgentToolCallStatus = Schema.Literals([ | | |
| 43311 | "inProgress", | | |
| 43312 | "completed", | | |
| 43313 | "failed", | | |
| 43314 | "interrupted", | | |
| 43315 | ]); | | |
| 43316 | | | |
| 43317 | export type V2TurnStartedNotification__CommandExecutionSource = | | |
| 43318 | | "agent" | | |
| 43319 | | "userShell" | | |
| 43320 | | "unifiedExecStartup" | | |
| 43321 | | "unifiedExecInteraction"; | | |
| 43322 | export const V2TurnStartedNotification__CommandExecutionSource = Schema.Literals([ | | |
| 43323 | "agent", | | |
| 43324 | "userShell", | | |
| 43325 | "unifiedExecStartup", | | |
| 43326 | "unifiedExecInteraction", | | |
| 43327 | ]); | | |
| 43328 | | | |
| 43329 | export type V2TurnStartedNotification__TurnItemsView = "notLoaded" | "summary" | "full"; | | |
| 43330 | export const V2TurnStartedNotification__TurnItemsView = Schema.Literals([ | | |
| 43331 | "notLoaded", | | |
| 43332 | "summary", | | |
| 43333 | "full", | | |
| 43334 | ]); | | |
| 43335 | | | |
| 43336 | export type V2TurnStartParams = { | 44803 | export type V2TurnStartParams = { |
| 43337 | readonly approvalPolicy?: V2TurnStartParams__AskForApproval | null; | 44804 | readonly approvalPolicy?: V2TurnStartParams__AskForApproval | null; |
| 43338 | readonly approvalsReviewer?: V2TurnStartParams__ApprovalsReviewer | null; | 44805 | readonly approvalsReviewer?: V2TurnStartParams__ApprovalsReviewer | null; |
| ... | @@ -43341,7 +44808,7 @@ export type V2TurnStartParams = { | ... | @@ -43341,7 +44808,7 @@ export type V2TurnStartParams = { |
| 43341 | readonly effort?: V2TurnStartParams__ReasoningEffort | null; | 44808 | readonly effort?: V2TurnStartParams__ReasoningEffort | null; |
| 43342 | readonly input: ReadonlyArray<V2TurnStartParams__UserInput>; | 44809 | readonly input: ReadonlyArray<V2TurnStartParams__UserInput>; |
| 43343 | readonly model?: string | null; | 44810 | readonly model?: string | null; |
| 43344 | readonly outputSchema?: unknown; | 44811 | readonly outputSchema?: Schema.Json; |
| 43345 | readonly personality?: V2TurnStartParams__Personality | null; | 44812 | readonly personality?: V2TurnStartParams__Personality | null; |
| 43346 | readonly sandboxPolicy?: V2TurnStartParams__SandboxPolicy | null; | 44813 | readonly sandboxPolicy?: V2TurnStartParams__SandboxPolicy | null; |
| 43347 | readonly serviceTier?: string | null; | 44814 | readonly serviceTier?: string | null; |
| ... | @@ -43384,7 +44851,8 @@ export const V2TurnStartParams = Schema.Struct({ | ... | @@ -43384,7 +44851,8 @@ export const V2TurnStartParams = Schema.Struct({ |
| 43384 | ]), | 44851 | ]), |
| 43385 | ), | 44852 | ), |
| 43386 | outputSchema: Schema.optionalKey( | 44853 | outputSchema: Schema.optionalKey( |
| 43387 | Schema.Unknown.annotate({ | 44854 | Schema.Json.annotate({ |
| | 44855 | expected: "JSON value", |
| 43388 | description: | 44856 | description: |
| 43389 | "Optional JSON Schema used to constrain the final assistant message for this turn.", | 44857 | "Optional JSON Schema used to constrain the final assistant message for this turn.", |
| 43390 | }), | 44858 | }), |
| ... | @@ -43424,16 +44892,6 @@ export const V2TurnStartParams__AdditionalContextEntry = Schema.Struct({ | ... | @@ -43424,16 +44892,6 @@ export const V2TurnStartParams__AdditionalContextEntry = Schema.Struct({ |
| 43424 | value: Schema.String, | 44892 | value: Schema.String, |
| 43425 | }); | 44893 | }); |
| 43426 | | 44894 | |
| 43427 | export type V2TurnStartParams__ByteRange = { readonly end: number; readonly start: number }; | | |
| 43428 | export const V2TurnStartParams__ByteRange = Schema.Struct({ | | |
| 43429 | end: Schema.Number.annotate({ format: "uint" }) | | |
| 43430 | .check(Schema.isInt()) | | |
| 43431 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 43432 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 43433 | .check(Schema.isInt()) | | |
| 43434 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 43435 | }); | | |
| 43436 | | | |
| 43437 | export type V2TurnStartParams__CollaborationMode = { | 44895 | export type V2TurnStartParams__CollaborationMode = { |
| 43438 | readonly mode: V2TurnStartParams__ModeKind; | 44896 | readonly mode: V2TurnStartParams__ModeKind; |
| 43439 | readonly settings: V2TurnStartParams__Settings; | 44897 | readonly settings: V2TurnStartParams__Settings; |
| ... | @@ -43458,9 +44916,6 @@ export const V2TurnStartParams__MultiAgentMode = Schema.Union( | ... | @@ -43458,9 +44916,6 @@ export const V2TurnStartParams__MultiAgentMode = Schema.Union( |
| 43458 | "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.", | 44916 | "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.", |
| 43459 | }); | 44917 | }); |
| 43460 | | 44918 | |
| 43461 | export type V2TurnStartParams__NetworkAccess = "restricted" | "enabled"; | | |
| 43462 | export const V2TurnStartParams__NetworkAccess = Schema.Literals(["restricted", "enabled"]); | | |
| 43463 | | | |
| 43464 | export type V2TurnStartParams__TurnEnvironmentParams = { | 44919 | export type V2TurnStartParams__TurnEnvironmentParams = { |
| 43465 | readonly cwd: V2TurnStartParams__LegacyAppPathString; | 44920 | readonly cwd: V2TurnStartParams__LegacyAppPathString; |
| 43466 | readonly environmentId: string; | 44921 | readonly environmentId: string; |
| ... | @@ -43484,65 +44939,6 @@ export const V2TurnStartResponse = Schema.Struct({ turn: V2TurnStartResponse__Tu | ... | @@ -43484,65 +44939,6 @@ export const V2TurnStartResponse = Schema.Struct({ turn: V2TurnStartResponse__Tu |
| 43484 | title: "TurnStartResponse", | 44939 | title: "TurnStartResponse", |
| 43485 | }); | 44940 | }); |
| 43486 | | 44941 | |
| 43487 | export type V2TurnStartResponse__ByteRange = { readonly end: number; readonly start: number }; | | |
| 43488 | export const V2TurnStartResponse__ByteRange = Schema.Struct({ | | |
| 43489 | end: Schema.Number.annotate({ format: "uint" }) | | |
| 43490 | .check(Schema.isInt()) | | |
| 43491 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 43492 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 43493 | .check(Schema.isInt()) | | |
| 43494 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 43495 | }); | | |
| 43496 | | | |
| 43497 | export type V2TurnStartResponse__CollabAgentTool = | | |
| 43498 | | "spawnAgent" | | |
| 43499 | | "sendInput" | | |
| 43500 | | "resumeAgent" | | |
| 43501 | | "wait" | | |
| 43502 | | "closeAgent" | | |
| 43503 | | "sendMessage" | | |
| 43504 | | "followupTask" | | |
| 43505 | | "interruptAgent" | | |
| 43506 | | "listAgents"; | | |
| 43507 | export const V2TurnStartResponse__CollabAgentTool = Schema.Literals([ | | |
| 43508 | "spawnAgent", | | |
| 43509 | "sendInput", | | |
| 43510 | "resumeAgent", | | |
| 43511 | "wait", | | |
| 43512 | "closeAgent", | | |
| 43513 | "sendMessage", | | |
| 43514 | "followupTask", | | |
| 43515 | "interruptAgent", | | |
| 43516 | "listAgents", | | |
| 43517 | ]); | | |
| 43518 | | | |
| 43519 | export type V2TurnStartResponse__CollabAgentToolCallStatus = | | |
| 43520 | | "inProgress" | | |
| 43521 | | "completed" | | |
| 43522 | | "failed" | | |
| 43523 | | "interrupted"; | | |
| 43524 | export const V2TurnStartResponse__CollabAgentToolCallStatus = Schema.Literals([ | | |
| 43525 | "inProgress", | | |
| 43526 | "completed", | | |
| 43527 | "failed", | | |
| 43528 | "interrupted", | | |
| 43529 | ]); | | |
| 43530 | | | |
| 43531 | export type V2TurnStartResponse__CommandExecutionSource = | | |
| 43532 | | "agent" | | |
| 43533 | | "userShell" | | |
| 43534 | | "unifiedExecStartup" | | |
| 43535 | | "unifiedExecInteraction"; | | |
| 43536 | export const V2TurnStartResponse__CommandExecutionSource = Schema.Literals([ | | |
| 43537 | "agent", | | |
| 43538 | "userShell", | | |
| 43539 | "unifiedExecStartup", | | |
| 43540 | "unifiedExecInteraction", | | |
| 43541 | ]); | | |
| 43542 | | | |
| 43543 | export type V2TurnStartResponse__TurnItemsView = "notLoaded" | "summary" | "full"; | | |
| 43544 | export const V2TurnStartResponse__TurnItemsView = Schema.Literals(["notLoaded", "summary", "full"]); | | |
| 43545 | | | |
| 43546 | export type V2TurnSteerParams = { | 44942 | export type V2TurnSteerParams = { |
| 43547 | readonly clientUserMessageId?: string | null; | 44943 | readonly clientUserMessageId?: string | null; |
| 43548 | readonly expectedTurnId: string; | 44944 | readonly expectedTurnId: string; |
| ... | @@ -43568,16 +44964,6 @@ export const V2TurnSteerParams__AdditionalContextEntry = Schema.Struct({ | ... | @@ -43568,16 +44964,6 @@ export const V2TurnSteerParams__AdditionalContextEntry = Schema.Struct({ |
| 43568 | value: Schema.String, | 44964 | value: Schema.String, |
| 43569 | }); | 44965 | }); |
| 43570 | | 44966 | |
| 43571 | export type V2TurnSteerParams__ByteRange = { readonly end: number; readonly start: number }; | | |
| 43572 | export const V2TurnSteerParams__ByteRange = Schema.Struct({ | | |
| 43573 | end: Schema.Number.annotate({ format: "uint" }) | | |
| 43574 | .check(Schema.isInt()) | | |
| 43575 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 43576 | start: Schema.Number.annotate({ format: "uint" }) | | |
| 43577 | .check(Schema.isInt()) | | |
| 43578 | .check(Schema.isGreaterThanOrEqualTo(0)), | | |
| 43579 | }); | | |
| 43580 | | | |
| 43581 | export type V2TurnSteerResponse = { readonly turnId: string }; | 44967 | export type V2TurnSteerResponse = { readonly turnId: string }; |
| 43582 | export const V2TurnSteerResponse = Schema.Struct({ turnId: Schema.String }).annotate({ | 44968 | export const V2TurnSteerResponse = Schema.Struct({ turnId: Schema.String }).annotate({ |
| 43583 | title: "TurnSteerResponse", | 44969 | title: "TurnSteerResponse", |
| ... | @@ -43637,8 +45023,10 @@ export type V2WindowsWorldWritableWarningNotification = { | ... | @@ -43637,8 +45023,10 @@ export type V2WindowsWorldWritableWarningNotification = { |
| 43637 | }; | 45023 | }; |
| 43638 | export const V2WindowsWorldWritableWarningNotification = Schema.Struct({ | 45024 | export const V2WindowsWorldWritableWarningNotification = Schema.Struct({ |
| 43639 | extraCount: Schema.Number.annotate({ format: "uint" }) | 45025 | extraCount: Schema.Number.annotate({ format: "uint" }) |
| 43640 | .check(Schema.isInt()) | 45026 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 43641 | .check(Schema.isGreaterThanOrEqualTo(0)), | 45027 | .check( |
| | 45028 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 45029 | ), |
| 43642 | failedScan: Schema.Boolean, | 45030 | failedScan: Schema.Boolean, |
| 43643 | samplePaths: Schema.Array(Schema.String), | 45031 | samplePaths: Schema.Array(Schema.String), |
| 43644 | }).annotate({ title: "WindowsWorldWritableWarningNotification" }); | 45032 | }).annotate({ title: "WindowsWorldWritableWarningNotification" }); |