The best way to control Claude Code, Codex and more from any computer or phone

main
ts 21,044 lines 1 MB
Raw
Large file — syntax highlighting disabled.
1 /**
2 * @stability unstable
3 * @since 4.0.0
4 */
5
6 import * as Data from "effect/Data"
7 import * as Effect from "effect/Effect"
8 import * as HttpClient from "effect/http/HttpClient"
9 import * as HttpClientError from "effect/http/HttpClientError"
10 import * as HttpClientRequest from "effect/http/HttpClientRequest"
11 import * as HttpClientResponse from "effect/http/HttpClientResponse"
12 import type { SchemaError } from "effect/Schema"
13 import * as Schema from "effect/Schema"
14 import * as Stream from "effect/Stream"
15 // non-recursive definitions
16 export type Model =
17 | "claude-haiku-5-5"
18 | "claude-sonnet-5-5"
19 | "claude-fable-5-1"
20 | "claude-opus-5-5"
21 | "claude-mythos-5-1"
22 | "claude-sonnet-5"
23 | "claude-fable-5"
24 | "claude-mythos-5"
25 | "claude-opus-5"
26 | "claude-opus-4-8"
27 | "claude-opus-4-7"
28 | "claude-mythos-preview"
29 | "claude-opus-4-6"
30 | "claude-sonnet-4-6"
31 | "claude-haiku-4-5"
32 | "claude-haiku-4-5-20251001"
33 | "claude-opus-4-5"
34 | "claude-opus-4-5-20251101"
35 | "claude-sonnet-4-5"
36 | "claude-sonnet-4-5-20250929"
37 | string
38 export const Model = Schema.Union([
39 Schema.Literal("claude-haiku-5-5").annotate({ "description": "Fastest model for high-volume, real-time tasks" }),
40 Schema.Literal("claude-sonnet-5-5").annotate({ "description": "Efficient model for coding and agents" }),
41 Schema.Literal("claude-fable-5-1").annotate({
42 "description":
43 "Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows"
44 }),
45 Schema.Literal("claude-opus-5-5").annotate({
46 "description": "Powerful intelligence for coding, knowledge work, and long-running agents"
47 }),
48 Schema.Literal("claude-mythos-5-1").annotate({
49 "description":
50 "Our most capable model for cybersecurity and biology research, available through trusted access programs"
51 }),
52 Schema.Literal("claude-sonnet-5").annotate({ "description": "Efficient model for coding and agents" }),
53 Schema.Literal("claude-fable-5").annotate({
54 "description": "Next generation of intelligence for the hardest knowledge work and coding problems"
55 }),
56 Schema.Literal("claude-mythos-5").annotate({
57 "description": "Most capable model for cybersecurity and biology research"
58 }),
59 Schema.Literal("claude-opus-5").annotate({
60 "description": "Powerful intelligence for long-running agents and coding"
61 }),
62 Schema.Literal("claude-opus-4-8").annotate({
63 "description": "Powerful intelligence for long-running agents and coding"
64 }),
65 Schema.Literal("claude-opus-4-7").annotate({
66 "description": "Powerful intelligence for long-running agents and coding"
67 }),
68 Schema.Literal("claude-mythos-preview").annotate({
69 "description": "New class of intelligence, strongest in coding and cybersecurity"
70 }),
71 Schema.Literal("claude-opus-4-6").annotate({
72 "description": "Powerful intelligence for long-running agents and coding"
73 }),
74 Schema.Literal("claude-sonnet-4-6").annotate({ "description": "Best combination of speed and intelligence" }),
75 Schema.Literal("claude-haiku-4-5"),
76 Schema.Literal("claude-haiku-4-5-20251001"),
77 Schema.Literal("claude-opus-4-5").annotate({
78 "description": "Powerful intelligence for long-running agents and coding"
79 }),
80 Schema.Literal("claude-opus-4-5-20251101").annotate({
81 "description": "Powerful intelligence for long-running agents and coding"
82 }),
83 Schema.Literal("claude-sonnet-4-5").annotate({ "description": "High-performance model for agents and coding" }),
84 Schema.Literal("claude-sonnet-4-5-20250929").annotate({
85 "description": "High-performance model for agents and coding"
86 }),
87 Schema.String
88 ]).annotate({
89 "title": "Model",
90 "description":
91 "The model that will complete your prompt.\n\nSee [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.",
92 "identifier": "Model"
93 })
94 export type CacheControlEphemeral = { readonly "ttl"?: "5m" | "1h"; readonly "type": "ephemeral" }
95 export const CacheControlEphemeral = Schema.Struct({
96 "ttl": Schema.optionalKey(
97 Schema.Literals(["5m", "1h"]).annotate({
98 "title": "Ttl",
99 "description":
100 "The time-to-live for the cache control breakpoint.\n\nThis may be one the following values:\n- `5m`: 5 minutes\n- `1h`: 1 hour\n\nDefaults to `5m`. See [prompt caching pricing](https://platform.claude.com/docs/en/build-with-claude/prompt-caching) for details."
101 })
102 ),
103 "type": Schema.Literal("ephemeral").annotate({ "title": "Type" })
104 }).annotate({ "title": "CacheControlEphemeral", "identifier": "CacheControlEphemeral" })
105 export type RequestCharLocationCitation = {
106 readonly "cited_text": string
107 readonly "document_index": number
108 readonly "document_title": string | null
109 readonly "end_char_index": number
110 readonly "start_char_index": number
111 readonly "type": "char_location"
112 }
113 export const RequestCharLocationCitation = Schema.Struct({
114 "cited_text": Schema.String.annotate({ "title": "Cited Text" }),
115 "document_index": Schema.Number.annotate({ "title": "Document Index" }).check(
116 Schema.isInt().annotate({ "expected": "an integer" })
117 ).check(Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })),
118 "document_title": Schema.Union([
119 Schema.String.check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(
120 Schema.isMaxCodePoints(500).annotate({ "expected": "a string with at most 500 code points" })
121 ),
122 Schema.Null
123 ]).annotate({ "title": "Document Title" }),
124 "end_char_index": Schema.Number.annotate({ "title": "End Char Index" }).check(
125 Schema.isInt().annotate({ "expected": "an integer" })
126 ),
127 "start_char_index": Schema.Number.annotate({ "title": "Start Char Index" }).check(
128 Schema.isInt().annotate({ "expected": "an integer" })
129 ).check(Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })),
130 "type": Schema.Literal("char_location").annotate({ "title": "Type" })
131 }).annotate({ "title": "RequestCharLocationCitation", "identifier": "RequestCharLocationCitation" })
132 export type RequestPageLocationCitation = {
133 readonly "cited_text": string
134 readonly "document_index": number
135 readonly "document_title": string | null
136 readonly "end_page_number": number
137 readonly "start_page_number": number
138 readonly "type": "page_location"
139 }
140 export const RequestPageLocationCitation = Schema.Struct({
141 "cited_text": Schema.String.annotate({ "title": "Cited Text" }),
142 "document_index": Schema.Number.annotate({ "title": "Document Index" }).check(
143 Schema.isInt().annotate({ "expected": "an integer" })
144 ).check(Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })),
145 "document_title": Schema.Union([
146 Schema.String.check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(
147 Schema.isMaxCodePoints(500).annotate({ "expected": "a string with at most 500 code points" })
148 ),
149 Schema.Null
150 ]).annotate({ "title": "Document Title" }),
151 "end_page_number": Schema.Number.annotate({ "title": "End Page Number" }).check(
152 Schema.isInt().annotate({ "expected": "an integer" })
153 ),
154 "start_page_number": Schema.Number.annotate({ "title": "Start Page Number" }).check(
155 Schema.isInt().annotate({ "expected": "an integer" })
156 ).check(Schema.isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" })),
157 "type": Schema.Literal("page_location").annotate({ "title": "Type" })
158 }).annotate({ "title": "RequestPageLocationCitation", "identifier": "RequestPageLocationCitation" })
159 export type RequestContentBlockLocationCitation = {
160 readonly "cited_text": string
161 readonly "document_index": number
162 readonly "document_title": string | null
163 readonly "end_block_index": number
164 readonly "start_block_index": number
165 readonly "type": "content_block_location"
166 }
167 export const RequestContentBlockLocationCitation = Schema.Struct({
168 "cited_text": Schema.String.annotate({
169 "title": "Cited Text",
170 "description":
171 "The full text of the cited block range, concatenated.\n\nAlways equals the contents of `content[start_block_index:end_block_index]` joined together. The text block is the minimal citable unit; this field is never a substring of a single block. Not counted toward output tokens, and not counted toward input tokens when sent back in subsequent turns."
172 }),
173 "document_index": Schema.Number.annotate({ "title": "Document Index" }).check(
174 Schema.isInt().annotate({ "expected": "an integer" })
175 ).check(Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })),
176 "document_title": Schema.Union([
177 Schema.String.check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(
178 Schema.isMaxCodePoints(500).annotate({ "expected": "a string with at most 500 code points" })
179 ),
180 Schema.Null
181 ]).annotate({ "title": "Document Title" }),
182 "end_block_index": Schema.Number.annotate({
183 "title": "End Block Index",
184 "description":
185 "Exclusive 0-based end index of the cited block range in the source's `content` array.\n\nAlways greater than `start_block_index`; a single-block citation has `end_block_index = start_block_index + 1`."
186 }).check(Schema.isInt().annotate({ "expected": "an integer" })),
187 "start_block_index": Schema.Number.annotate({
188 "title": "Start Block Index",
189 "description": "0-based index of the first cited block in the source's `content` array."
190 }).check(Schema.isInt().annotate({ "expected": "an integer" })).check(
191 Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })
192 ),
193 "type": Schema.Literal("content_block_location").annotate({ "title": "Type" })
194 }).annotate({ "title": "RequestContentBlockLocationCitation", "identifier": "RequestContentBlockLocationCitation" })
195 export type RequestWebSearchResultLocationCitation = {
196 readonly "cited_text": string
197 readonly "encrypted_index": string
198 readonly "title": string | null
199 readonly "type": "web_search_result_location"
200 readonly "url": string
201 }
202 export const RequestWebSearchResultLocationCitation = Schema.Struct({
203 "cited_text": Schema.String.annotate({ "title": "Cited Text" }),
204 "encrypted_index": Schema.String.annotate({ "title": "Encrypted Index" }),
205 "title": Schema.Union([
206 Schema.String.check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(
207 Schema.isMaxCodePoints(512).annotate({ "expected": "a string with at most 512 code points" })
208 ),
209 Schema.Null
210 ]).annotate({ "title": "Title" }),
211 "type": Schema.Literal("web_search_result_location").annotate({ "title": "Type" }),
212 "url": Schema.String.annotate({ "title": "Url" }).check(
213 Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })
214 )
215 }).annotate({
216 "title": "RequestWebSearchResultLocationCitation",
217 "identifier": "RequestWebSearchResultLocationCitation"
218 })
219 export type RequestSearchResultLocationCitation = {
220 readonly "cited_text": string
221 readonly "end_block_index": number
222 readonly "search_result_index": number
223 readonly "source": string
224 readonly "start_block_index": number
225 readonly "title": string | null
226 readonly "type": "search_result_location"
227 }
228 export const RequestSearchResultLocationCitation = Schema.Struct({
229 "cited_text": Schema.String.annotate({
230 "title": "Cited Text",
231 "description":
232 "The full text of the cited block range, concatenated.\n\nAlways equals the contents of `content[start_block_index:end_block_index]` joined together. The text block is the minimal citable unit; this field is never a substring of a single block. Not counted toward output tokens, and not counted toward input tokens when sent back in subsequent turns."
233 }),
234 "end_block_index": Schema.Number.annotate({
235 "title": "End Block Index",
236 "description":
237 "Exclusive 0-based end index of the cited block range in the source's `content` array.\n\nAlways greater than `start_block_index`; a single-block citation has `end_block_index = start_block_index + 1`."
238 }).check(Schema.isInt().annotate({ "expected": "an integer" })),
239 "search_result_index": Schema.Number.annotate({
240 "title": "Search Result Index",
241 "description":
242 "0-based index of the cited search result among all `search_result` content blocks in the request, in the order they appear across messages and tool results.\n\nCounted separately from `document_index`; server-side web search results are not included in this count."
243 }).check(Schema.isInt().annotate({ "expected": "an integer" })).check(
244 Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })
245 ),
246 "source": Schema.String.annotate({ "title": "Source" }),
247 "start_block_index": Schema.Number.annotate({
248 "title": "Start Block Index",
249 "description": "0-based index of the first cited block in the source's `content` array."
250 }).check(Schema.isInt().annotate({ "expected": "an integer" })).check(
251 Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })
252 ),
253 "title": Schema.Union([Schema.String, Schema.Null]).annotate({ "title": "Title" }),
254 "type": Schema.Literal("search_result_location").annotate({ "title": "Type" })
255 }).annotate({ "title": "RequestSearchResultLocationCitation", "identifier": "RequestSearchResultLocationCitation" })
256 export type Base64ImageSource = {
257 readonly "data": string
258 readonly "media_type": "image/jpeg" | "image/png" | "image/gif" | "image/webp"
259 readonly "type": "base64"
260 }
261 export const Base64ImageSource = Schema.Struct({
262 "data": Schema.String.annotate({ "title": "Data", "format": "byte" }),
263 "media_type": Schema.Literals(["image/jpeg", "image/png", "image/gif", "image/webp"]).annotate({
264 "title": "Media Type"
265 }),
266 "type": Schema.Literal("base64").annotate({ "title": "Type" })
267 }).annotate({ "title": "Base64ImageSource", "identifier": "Base64ImageSource" })
268 export type URLImageSource = { readonly "type": "url"; readonly "url": string }
269 export const URLImageSource = Schema.Struct({
270 "type": Schema.Literal("url").annotate({ "title": "Type" }),
271 "url": Schema.String.annotate({ "title": "Url" })
272 }).annotate({ "title": "URLImageSource", "identifier": "URLImageSource" })
273 export type FileImageSource = { readonly "file_id": string; readonly "type": "file" }
274 export const FileImageSource = Schema.Struct({
275 "file_id": Schema.String.annotate({ "title": "File Id" }),
276 "type": Schema.Literal("file").annotate({ "title": "Type" })
277 }).annotate({ "title": "FileImageSource", "identifier": "FileImageSource" })
278 export type RequestImageTransformations = { readonly "oversized_image"?: "downsize" | "error" }
279 export const RequestImageTransformations = Schema.Struct({
280 "oversized_image": Schema.optionalKey(
281 Schema.Literals(["downsize", "error"]).annotate({
282 "title": "Oversized Image",
283 "description":
284 "What the server does when this image exceeds the model's maximum image size. `\"downsize\"` (the default) scales the image down to fit, which changes the dimensions the model observes without telling you. `\"error\"` instead rejects the request with a 400 error naming the image's dimensions and the largest dimensions that fit, so you can scale the image deliberately — your image is never silently scaled down."
285 })
286 )
287 }).annotate({
288 "title": "RequestImageTransformations",
289 "description":
290 "Configures the transformations the server applies to this image before the model observes it. Each key names a condition the server transforms images for; its value selects the transformation applied. Omitted keys keep their default behavior, and an empty object is equivalent to omitting the field.",
291 "identifier": "RequestImageTransformations"
292 })
293 export type RequestCitationsConfig = { readonly "enabled"?: boolean }
294 export const RequestCitationsConfig = Schema.Struct({
295 "enabled": Schema.optionalKey(Schema.Boolean.annotate({ "title": "Enabled" }))
296 }).annotate({ "title": "RequestCitationsConfig", "identifier": "RequestCitationsConfig" })
297 export type Base64PDFSource = {
298 readonly "data": string
299 readonly "media_type": "application/pdf"
300 readonly "type": "base64"
301 }
302 export const Base64PDFSource = Schema.Struct({
303 "data": Schema.String.annotate({ "title": "Data", "format": "byte" }),
304 "media_type": Schema.Literal("application/pdf").annotate({ "title": "Media Type" }),
305 "type": Schema.Literal("base64").annotate({ "title": "Type" })
306 }).annotate({ "title": "Base64PDFSource", "identifier": "Base64PDFSource" })
307 export type PlainTextSource = { readonly "data": string; readonly "media_type": "text/plain"; readonly "type": "text" }
308 export const PlainTextSource = Schema.Struct({
309 "data": Schema.String.annotate({ "title": "Data" }),
310 "media_type": Schema.Literal("text/plain").annotate({ "title": "Media Type" }),
311 "type": Schema.Literal("text").annotate({ "title": "Type" })
312 }).annotate({ "title": "PlainTextSource", "identifier": "PlainTextSource" })
313 export type URLPDFSource = { readonly "type": "url"; readonly "url": string }
314 export const URLPDFSource = Schema.Struct({
315 "type": Schema.Literal("url").annotate({ "title": "Type" }),
316 "url": Schema.String.annotate({ "title": "Url" })
317 }).annotate({ "title": "URLPDFSource", "identifier": "URLPDFSource" })
318 export type FileDocumentSource = { readonly "file_id": string; readonly "type": "file" }
319 export const FileDocumentSource = Schema.Struct({
320 "file_id": Schema.String.annotate({ "title": "File Id" }),
321 "type": Schema.Literal("file").annotate({ "title": "Type" })
322 }).annotate({ "title": "FileDocumentSource", "identifier": "FileDocumentSource" })
323 export type RequestThinkingBlock = {
324 readonly "signature": string
325 readonly "thinking": string
326 readonly "type": "thinking"
327 }
328 export const RequestThinkingBlock = Schema.Struct({
329 "signature": Schema.String.annotate({
330 "title": "Signature",
331 "description":
332 "The `signature` value of this thinking block, exactly as returned by the API in a previous response. Used to verify that the block was generated by Claude.\n\nThinking blocks must be passed back unmodified and in their original order; a modified block results in a 400 `invalid_request_error`."
333 }),
334 "thinking": Schema.String.annotate({
335 "title": "Thinking",
336 "description": "The `thinking` text of this block as returned by the API."
337 }),
338 "type": Schema.Literal("thinking").annotate({ "title": "Type" })
339 }).annotate({ "title": "RequestThinkingBlock", "identifier": "RequestThinkingBlock" })
340 export type RequestRedactedThinkingBlock = { readonly "data": string; readonly "type": "redacted_thinking" }
341 export const RequestRedactedThinkingBlock = Schema.Struct({
342 "data": Schema.String.annotate({
343 "title": "Data",
344 "description":
345 "The `data` value of this redacted thinking block, exactly as returned by the API in a previous response. Opaque and encrypted; pass it back unchanged."
346 }),
347 "type": Schema.Literal("redacted_thinking").annotate({ "title": "Type" })
348 }).annotate({ "title": "RequestRedactedThinkingBlock", "identifier": "RequestRedactedThinkingBlock" })
349 export type DirectCaller = { readonly "type": "direct" }
350 export const DirectCaller = Schema.Struct({ "type": Schema.Literal("direct").annotate({ "title": "Type" }) }).annotate({
351 "title": "DirectCaller",
352 "description": "Tool invocation directly from the model.",
353 "identifier": "DirectCaller"
354 })
355 export type ServerToolCaller = { readonly "tool_id": string; readonly "type": "code_execution_20250825" }
356 export const ServerToolCaller = Schema.Struct({
357 "tool_id": Schema.String.annotate({ "title": "Tool Id" }).check(
358 Schema.isPattern(new RegExp("^srvtoolu_[a-zA-Z0-9_]+$", "u")).annotate({
359 "expected": "a string matching the RegExp ^srvtoolu_[a-zA-Z0-9_]+$"
360 })
361 ),
362 "type": Schema.Literal("code_execution_20250825").annotate({ "title": "Type" })
363 }).annotate({
364 "title": "ServerToolCaller",
365 "description": "Tool invocation generated by a server-side tool.",
366 "identifier": "ServerToolCaller"
367 })
368 export type ServerToolCaller_20260120 = { readonly "tool_id": string; readonly "type": "code_execution_20260120" }
369 export const ServerToolCaller_20260120 = Schema.Struct({
370 "tool_id": Schema.String.annotate({ "title": "Tool Id" }).check(
371 Schema.isPattern(new RegExp("^srvtoolu_[a-zA-Z0-9_]+$", "u")).annotate({
372 "expected": "a string matching the RegExp ^srvtoolu_[a-zA-Z0-9_]+$"
373 })
374 ),
375 "type": Schema.Literal("code_execution_20260120").annotate({ "title": "Type" })
376 }).annotate({ "title": "ServerToolCaller_20260120", "identifier": "ServerToolCaller_20260120" })
377 export type BrowserStateChangeTabOpened = { readonly "tab_id": string; readonly "type": "tab_opened" }
378 export const BrowserStateChangeTabOpened = Schema.Struct({
379 "tab_id": Schema.String.annotate({
380 "title": "Tab Id",
381 "description": "The `tab_id` of the opened tab, present in `tabs`."
382 }).check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(
383 Schema.isMaxCodePoints(4096).annotate({ "expected": "a string with at most 4096 code points" })
384 ).check(
385 Schema.isPattern(new RegExp("^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$", "u")).annotate({
386 "expected": "a string matching the RegExp ^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$"
387 })
388 ),
389 "type": Schema.Literal("tab_opened").annotate({ "title": "Type" })
390 }).annotate({
391 "title": "BrowserStateChangeTabOpened",
392 "description":
393 "A tab this call's execution opened that remains open at its end —\nthe creation delta of the `tabs` inventory, not an event log.\n\nCarries only the `tab_id`; the tab's `title` and `url` live on its\n`tabs` entry, which must include the same `tab_id`. A tab opened\nduring a failed call gets no deferred `tab_opened`; it simply appears\nin the next result's `tabs` inventory.",
394 "identifier": "BrowserStateChangeTabOpened"
395 })
396 export type BrowserStateChangeDownloadStarted = {
397 readonly "download_id": string
398 readonly "type": "download_started"
399 readonly "url": string
400 }
401 export const BrowserStateChangeDownloadStarted = Schema.Struct({
402 "download_id": Schema.String.annotate({
403 "title": "Download Id",
404 "description": "The caller-assigned identifier for this download, stable across the state changes reporting it."
405 }).check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(
406 Schema.isMaxCodePoints(4096).annotate({ "expected": "a string with at most 4096 code points" })
407 ).check(
408 Schema.isPattern(new RegExp("^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$", "u")).annotate({
409 "expected": "a string matching the RegExp ^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$"
410 })
411 ),
412 "type": Schema.Literal("download_started").annotate({ "title": "Type" }),
413 "url": Schema.String.annotate({
414 "title": "Url",
415 "description": "The final post-redirect URL the download was served from."
416 }).check(Schema.isMaxCodePoints(4096).annotate({ "expected": "a string with at most 4096 code points" })).check(
417 Schema.isPattern(new RegExp("^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$", "u")).annotate({
418 "expected": "a string matching the RegExp ^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$"
419 })
420 )
421 }).annotate({
422 "title": "BrowserStateChangeDownloadStarted",
423 "description": "A file download that started during this call.",
424 "identifier": "BrowserStateChangeDownloadStarted"
425 })
426 export type BrowserStateChangeDownloadCompleted = {
427 readonly "download_id": string
428 readonly "path"?: string | null
429 readonly "size_bytes"?: number | null
430 readonly "type": "download_completed"
431 readonly "url": string
432 }
433 export const BrowserStateChangeDownloadCompleted = Schema.Struct({
434 "download_id": Schema.String.annotate({
435 "title": "Download Id",
436 "description": "The caller-assigned identifier for this download, stable across the state changes reporting it."
437 }).check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(
438 Schema.isMaxCodePoints(4096).annotate({ "expected": "a string with at most 4096 code points" })
439 ).check(
440 Schema.isPattern(new RegExp("^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$", "u")).annotate({
441 "expected": "a string matching the RegExp ^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$"
442 })
443 ),
444 "path": Schema.optionalKey(
445 Schema.Union([
446 Schema.String.check(
447 Schema.isMaxCodePoints(4096).annotate({ "expected": "a string with at most 4096 code points" })
448 ).check(
449 Schema.isPattern(new RegExp("^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$", "u")).annotate({
450 "expected": "a string matching the RegExp ^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$",
451 "title": "Path",
452 "description":
453 "Where the executor saved the file, on the executor's filesystem. Only included when another tool in the same environment can read the file at that path."
454 })
455 ),
456 Schema.Null.annotate({
457 "title": "Path",
458 "description":
459 "Where the executor saved the file, on the executor's filesystem. Only included when another tool in the same environment can read the file at that path."
460 })
461 ])
462 ),
463 "size_bytes": Schema.optionalKey(
464 Schema.Union([
465 Schema.Number.check(Schema.isInt().annotate({ "expected": "an integer" })).check(
466 Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })
467 ),
468 Schema.Null
469 ]).annotate({ "title": "Size Bytes", "description": "The completed download's size." })
470 ),
471 "type": Schema.Literal("download_completed").annotate({ "title": "Type" }),
472 "url": Schema.String.annotate({
473 "title": "Url",
474 "description": "The final post-redirect URL the download was served from."
475 }).check(Schema.isMaxCodePoints(4096).annotate({ "expected": "a string with at most 4096 code points" })).check(
476 Schema.isPattern(new RegExp("^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$", "u")).annotate({
477 "expected": "a string matching the RegExp ^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$"
478 })
479 )
480 }).annotate({
481 "title": "BrowserStateChangeDownloadCompleted",
482 "description":
483 "A file download that finished during this call, reported with the\nsame `download_id` as its `download_started` — or without a prior\n`download_started`, when the download finished during the call that\nstarted it (at most one state change per `download_id` per result).",
484 "identifier": "BrowserStateChangeDownloadCompleted"
485 })
486 export type BrowserStateChangeDownloadFailed = {
487 readonly "download_id": string
488 readonly "error"?: string | null
489 readonly "type": "download_failed"
490 readonly "url": string
491 }
492 export const BrowserStateChangeDownloadFailed = Schema.Struct({
493 "download_id": Schema.String.annotate({
494 "title": "Download Id",
495 "description": "The caller-assigned identifier for this download, stable across the state changes reporting it."
496 }).check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(
497 Schema.isMaxCodePoints(4096).annotate({ "expected": "a string with at most 4096 code points" })
498 ).check(
499 Schema.isPattern(new RegExp("^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$", "u")).annotate({
500 "expected": "a string matching the RegExp ^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$"
501 })
502 ),
503 "error": Schema.optionalKey(
504 Schema.Union([
505 Schema.String.check(
506 Schema.isMaxCodePoints(4096).annotate({ "expected": "a string with at most 4096 code points" })
507 ).check(
508 Schema.isPattern(new RegExp("^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$", "u")).annotate({
509 "expected": "a string matching the RegExp ^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$",
510 "title": "Error",
511 "description": "The failure or cancellation detail, when known."
512 })
513 ),
514 Schema.Null.annotate({ "title": "Error", "description": "The failure or cancellation detail, when known." })
515 ])
516 ),
517 "type": Schema.Literal("download_failed").annotate({ "title": "Type" }),
518 "url": Schema.String.annotate({
519 "title": "Url",
520 "description": "The final post-redirect URL the download was served from."
521 }).check(Schema.isMaxCodePoints(4096).annotate({ "expected": "a string with at most 4096 code points" })).check(
522 Schema.isPattern(new RegExp("^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$", "u")).annotate({
523 "expected": "a string matching the RegExp ^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$"
524 })
525 )
526 }).annotate({
527 "title": "BrowserStateChangeDownloadFailed",
528 "description": "A file download that failed — or was cancelled — during this call.",
529 "identifier": "BrowserStateChangeDownloadFailed"
530 })
531 export type BrowserStateTabEntry = {
532 readonly "active"?: boolean
533 readonly "tab_id": string
534 readonly "title": string
535 readonly "url": string
536 }
537 export const BrowserStateTabEntry = Schema.Struct({
538 "active": Schema.optionalKey(
539 Schema.Boolean.annotate({
540 "title": "Active",
541 "description":
542 "Whether this tab is the active tab after this call. Whenever `tabs` is non-empty, exactly one entry is marked `active: true`."
543 })
544 ),
545 "tab_id": Schema.String.annotate({
546 "title": "Tab Id",
547 "description": "The caller-assigned identifier for this tab, unique within the inventory."
548 }).check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(
549 Schema.isMaxCodePoints(4096).annotate({ "expected": "a string with at most 4096 code points" })
550 ).check(
551 Schema.isPattern(new RegExp("^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$", "u")).annotate({
552 "expected": "a string matching the RegExp ^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$"
553 })
554 ),
555 "title": Schema.String.annotate({
556 "title": "Title",
557 "description": "The title of the page the tab is showing. May be empty."
558 }).check(Schema.isMaxCodePoints(4096).annotate({ "expected": "a string with at most 4096 code points" })).check(
559 Schema.isPattern(new RegExp("^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$", "u")).annotate({
560 "expected": "a string matching the RegExp ^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$"
561 })
562 ),
563 "url": Schema.String.annotate({
564 "title": "Url",
565 "description": "The URL of the page the tab is showing. May be empty."
566 }).check(Schema.isMaxCodePoints(4096).annotate({ "expected": "a string with at most 4096 code points" })).check(
567 Schema.isPattern(new RegExp("^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$", "u")).annotate({
568 "expected": "a string matching the RegExp ^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$"
569 })
570 )
571 }).annotate({
572 "title": "BrowserStateTabEntry",
573 "description":
574 "One open browser tab reported in a `browser_state` block's `tabs`\ninventory.\n\n`tab_id` is the caller-assigned identifier for the tab; `title` and\n`url` describe the page the tab is currently showing and may be empty\nstrings (a blank tab legitimately has both empty). `active` marks the\ntab that is active after this call; whenever `tabs` is non-empty,\nexactly one entry is marked.",
575 "identifier": "BrowserStateTabEntry"
576 })
577 export type RequestWebSearchResultBlock = {
578 readonly "encrypted_content": string
579 readonly "page_age"?: string | null
580 readonly "title": string
581 readonly "type": "web_search_result"
582 readonly "url": string
583 }
584 export const RequestWebSearchResultBlock = Schema.Struct({
585 "encrypted_content": Schema.String.annotate({ "title": "Encrypted Content" }),
586 "page_age": Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]).annotate({ "title": "Page Age" })),
587 "title": Schema.String.annotate({ "title": "Title" }),
588 "type": Schema.Literal("web_search_result").annotate({ "title": "Type" }),
589 "url": Schema.String.annotate({ "title": "Url" })
590 }).annotate({ "title": "RequestWebSearchResultBlock", "identifier": "RequestWebSearchResultBlock" })
591 export type WebSearchToolResultErrorCode =
592 | "invalid_tool_input"
593 | "unavailable"
594 | "max_uses_exceeded"
595 | "too_many_requests"
596 | "query_too_long"
597 | "request_too_large"
598 export const WebSearchToolResultErrorCode = Schema.Literals([
599 "invalid_tool_input",
600 "unavailable",
601 "max_uses_exceeded",
602 "too_many_requests",
603 "query_too_long",
604 "request_too_large"
605 ]).annotate({ "title": "WebSearchToolResultErrorCode", "identifier": "WebSearchToolResultErrorCode" })
606 export type WebFetchToolResultErrorCode =
607 | "invalid_tool_input"
608 | "url_too_long"
609 | "url_not_allowed"
610 | "url_not_in_prior_context"
611 | "url_not_accessible"
612 | "unsupported_content_type"
613 | "too_many_requests"
614 | "max_uses_exceeded"
615 | "unavailable"
616 | "content_too_large"
617 export const WebFetchToolResultErrorCode = Schema.Literals([
618 "invalid_tool_input",
619 "url_too_long",
620 "url_not_allowed",
621 "url_not_in_prior_context",
622 "url_not_accessible",
623 "unsupported_content_type",
624 "too_many_requests",
625 "max_uses_exceeded",
626 "unavailable",
627 "content_too_large"
628 ]).annotate({ "title": "WebFetchToolResultErrorCode", "identifier": "WebFetchToolResultErrorCode" })
629 export type CodeExecutionToolResultErrorCode =
630 | "invalid_tool_input"
631 | "unavailable"
632 | "too_many_requests"
633 | "execution_time_exceeded"
634 export const CodeExecutionToolResultErrorCode = Schema.Literals([
635 "invalid_tool_input",
636 "unavailable",
637 "too_many_requests",
638 "execution_time_exceeded"
639 ]).annotate({ "title": "CodeExecutionToolResultErrorCode", "identifier": "CodeExecutionToolResultErrorCode" })
640 export type RequestCodeExecutionOutputBlock = { readonly "file_id": string; readonly "type": "code_execution_output" }
641 export const RequestCodeExecutionOutputBlock = Schema.Struct({
642 "file_id": Schema.String.annotate({ "title": "File Id" }),
643 "type": Schema.Literal("code_execution_output").annotate({ "title": "Type" })
644 }).annotate({ "title": "RequestCodeExecutionOutputBlock", "identifier": "RequestCodeExecutionOutputBlock" })
645 export type BashCodeExecutionToolResultErrorCode =
646 | "invalid_tool_input"
647 | "unavailable"
648 | "too_many_requests"
649 | "execution_time_exceeded"
650 | "output_file_too_large"
651 export const BashCodeExecutionToolResultErrorCode = Schema.Literals([
652 "invalid_tool_input",
653 "unavailable",
654 "too_many_requests",
655 "execution_time_exceeded",
656 "output_file_too_large"
657 ]).annotate({ "title": "BashCodeExecutionToolResultErrorCode", "identifier": "BashCodeExecutionToolResultErrorCode" })
658 export type RequestBashCodeExecutionOutputBlock = {
659 readonly "file_id": string
660 readonly "type": "bash_code_execution_output"
661 }
662 export const RequestBashCodeExecutionOutputBlock = Schema.Struct({
663 "file_id": Schema.String.annotate({ "title": "File Id" }),
664 "type": Schema.Literal("bash_code_execution_output").annotate({ "title": "Type" })
665 }).annotate({ "title": "RequestBashCodeExecutionOutputBlock", "identifier": "RequestBashCodeExecutionOutputBlock" })
666 export type TextEditorCodeExecutionToolResultErrorCode =
667 | "invalid_tool_input"
668 | "unavailable"
669 | "too_many_requests"
670 | "execution_time_exceeded"
671 | "file_not_found"
672 export const TextEditorCodeExecutionToolResultErrorCode = Schema.Literals([
673 "invalid_tool_input",
674 "unavailable",
675 "too_many_requests",
676 "execution_time_exceeded",
677 "file_not_found"
678 ]).annotate({
679 "title": "TextEditorCodeExecutionToolResultErrorCode",
680 "identifier": "TextEditorCodeExecutionToolResultErrorCode"
681 })
682 export type RequestTextEditorCodeExecutionViewResultBlock = {
683 readonly "content": string
684 readonly "file_type": "text" | "image" | "pdf"
685 readonly "num_lines"?: number | null
686 readonly "start_line"?: number | null
687 readonly "total_lines"?: number | null
688 readonly "type": "text_editor_code_execution_view_result"
689 }
690 export const RequestTextEditorCodeExecutionViewResultBlock = Schema.Struct({
691 "content": Schema.String.annotate({ "title": "Content" }),
692 "file_type": Schema.Literals(["text", "image", "pdf"]).annotate({ "title": "File Type" }),
693 "num_lines": Schema.optionalKey(
694 Schema.Union([Schema.Number.check(Schema.isInt().annotate({ "expected": "an integer" })), Schema.Null]).annotate({
695 "title": "Num Lines"
696 })
697 ),
698 "start_line": Schema.optionalKey(
699 Schema.Union([Schema.Number.check(Schema.isInt().annotate({ "expected": "an integer" })), Schema.Null]).annotate({
700 "title": "Start Line"
701 })
702 ),
703 "total_lines": Schema.optionalKey(
704 Schema.Union([Schema.Number.check(Schema.isInt().annotate({ "expected": "an integer" })), Schema.Null]).annotate({
705 "title": "Total Lines"
706 })
707 ),
708 "type": Schema.Literal("text_editor_code_execution_view_result").annotate({ "title": "Type" })
709 }).annotate({
710 "title": "RequestTextEditorCodeExecutionViewResultBlock",
711 "identifier": "RequestTextEditorCodeExecutionViewResultBlock"
712 })
713 export type RequestTextEditorCodeExecutionCreateResultBlock = {
714 readonly "is_file_update": boolean
715 readonly "type": "text_editor_code_execution_create_result"
716 }
717 export const RequestTextEditorCodeExecutionCreateResultBlock = Schema.Struct({
718 "is_file_update": Schema.Boolean.annotate({ "title": "Is File Update" }),
719 "type": Schema.Literal("text_editor_code_execution_create_result").annotate({ "title": "Type" })
720 }).annotate({
721 "title": "RequestTextEditorCodeExecutionCreateResultBlock",
722 "identifier": "RequestTextEditorCodeExecutionCreateResultBlock"
723 })
724 export type RequestTextEditorCodeExecutionStrReplaceResultBlock = {
725 readonly "lines"?: ReadonlyArray<string> | null
726 readonly "new_lines"?: number | null
727 readonly "new_start"?: number | null
728 readonly "old_lines"?: number | null
729 readonly "old_start"?: number | null
730 readonly "type": "text_editor_code_execution_str_replace_result"
731 }
732 export const RequestTextEditorCodeExecutionStrReplaceResultBlock = Schema.Struct({
733 "lines": Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null]).annotate({ "title": "Lines" })),
734 "new_lines": Schema.optionalKey(
735 Schema.Union([Schema.Number.check(Schema.isInt().annotate({ "expected": "an integer" })), Schema.Null]).annotate({
736 "title": "New Lines"
737 })
738 ),
739 "new_start": Schema.optionalKey(
740 Schema.Union([Schema.Number.check(Schema.isInt().annotate({ "expected": "an integer" })), Schema.Null]).annotate({
741 "title": "New Start"
742 })
743 ),
744 "old_lines": Schema.optionalKey(
745 Schema.Union([Schema.Number.check(Schema.isInt().annotate({ "expected": "an integer" })), Schema.Null]).annotate({
746 "title": "Old Lines"
747 })
748 ),
749 "old_start": Schema.optionalKey(
750 Schema.Union([Schema.Number.check(Schema.isInt().annotate({ "expected": "an integer" })), Schema.Null]).annotate({
751 "title": "Old Start"
752 })
753 ),
754 "type": Schema.Literal("text_editor_code_execution_str_replace_result").annotate({ "title": "Type" })
755 }).annotate({
756 "title": "RequestTextEditorCodeExecutionStrReplaceResultBlock",
757 "identifier": "RequestTextEditorCodeExecutionStrReplaceResultBlock"
758 })
759 export type ToolSearchToolResultErrorCode =
760 | "invalid_tool_input"
761 | "unavailable"
762 | "too_many_requests"
763 | "execution_time_exceeded"
764 export const ToolSearchToolResultErrorCode = Schema.Literals([
765 "invalid_tool_input",
766 "unavailable",
767 "too_many_requests",
768 "execution_time_exceeded"
769 ]).annotate({ "title": "ToolSearchToolResultErrorCode", "identifier": "ToolSearchToolResultErrorCode" })
770 export type SkillParams = {
771 readonly "skill_id": string
772 readonly "type": "anthropic" | "custom"
773 readonly "version"?: string
774 }
775 export const SkillParams = Schema.Struct({
776 "skill_id": Schema.String.annotate({ "title": "Skill Id", "description": "Skill ID" }).check(
777 Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })
778 ).check(Schema.isMaxCodePoints(64).annotate({ "expected": "a string with at most 64 code points" })),
779 "type": Schema.Literals(["anthropic", "custom"]).annotate({
780 "title": "Type",
781 "description": "Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)"
782 }),
783 "version": Schema.optionalKey(
784 Schema.String.annotate({ "title": "Version", "description": "Skill version or 'latest' for most recent version" })
785 .check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(
786 Schema.isMaxCodePoints(64).annotate({ "expected": "a string with at most 64 code points" })
787 )
788 )
789 }).annotate({
790 "title": "SkillParams",
791 "description": "Specification for a skill to be loaded in a container (request model).",
792 "identifier": "SkillParams"
793 })
794 export type DiagnosticsParam = { readonly "previous_message_id"?: string | null }
795 export const DiagnosticsParam = Schema.Struct({
796 "previous_message_id": Schema.optionalKey(
797 Schema.Union([
798 Schema.String.check(
799 Schema.isMaxCodePoints(256).annotate({ "expected": "a string with at most 256 code points" })
800 ),
801 Schema.Null
802 ]).annotate({
803 "title": "Previous Message Id",
804 "description":
805 "The `id` (`msg_...`) from this client's previous /v1/messages response. The server compares that request's prompt fingerprint against this one and returns `diagnostics.cache_miss_reason` when the prompt-cache prefix could not be reused. Pass `null` on the first turn to opt in without a prior message to compare."
806 })
807 )
808 }).annotate({
809 "title": "DiagnosticsParam",
810 "description":
811 "Request-level diagnostics. Currently carries the previous response\nid for prompt-cache divergence reporting.",
812 "identifier": "DiagnosticsParam"
813 })
814 export type Metadata = { readonly "user_id"?: string | null }
815 export const Metadata = Schema.Struct({
816 "user_id": Schema.optionalKey(
817 Schema.Union([
818 Schema.String.check(
819 Schema.isMaxCodePoints(512).annotate({ "expected": "a string with at most 512 code points" })
820 ),
821 Schema.Null
822 ]).annotate({
823 "title": "User Id",
824 "description":
825 "An external identifier for the user who is associated with the request.\n\nThis should be a uuid, hash value, or other opaque identifier. Anthropic may use this id to help detect abuse. Do not include any identifying information such as name, email address, or phone number."
826 })
827 )
828 }).annotate({ "title": "Metadata", "identifier": "Metadata" })
829 export type EffortLevel = "low" | "medium" | "high" | "xhigh" | "max"
830 export const EffortLevel = Schema.Literals(["low", "medium", "high", "xhigh", "max"]).annotate({
831 "title": "EffortLevel",
832 "description": "All possible effort levels.",
833 "identifier": "EffortLevel"
834 })
835 export type JsonOutputFormat = {
836 readonly "schema": { readonly [x: string]: Schema.Json }
837 readonly "type": "json_schema"
838 }
839 export const JsonOutputFormat = Schema.Struct({
840 "schema": Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" })).annotate({
841 "title": "Schema",
842 "description": "The JSON schema of the format"
843 }),
844 "type": Schema.Literal("json_schema").annotate({ "title": "Type" })
845 }).annotate({ "title": "JsonOutputFormat", "identifier": "JsonOutputFormat" })
846 export type Speed = "standard" | "fast"
847 export const Speed = Schema.Literals(["standard", "fast"]).annotate({ "title": "Speed", "identifier": "Speed" })
848 export type ThinkingDisplayMode = "summarized" | "omitted"
849 export const ThinkingDisplayMode = Schema.Literals(["summarized", "omitted"]).annotate({
850 "title": "ThinkingDisplayMode",
851 "identifier": "ThinkingDisplayMode"
852 })
853 export type ThinkingConfigDisabled = { readonly "type": "disabled" }
854 export const ThinkingConfigDisabled = Schema.Struct({
855 "type": Schema.Literal("disabled").annotate({ "title": "Type" })
856 }).annotate({ "title": "ThinkingConfigDisabled", "identifier": "ThinkingConfigDisabled" })
857 export type ThinkingConfigBetweenTools = { readonly "type": "between_tools" }
858 export const ThinkingConfigBetweenTools = Schema.Struct({
859 "type": Schema.Literal("between_tools").annotate({ "title": "Type" })
860 }).annotate({ "title": "ThinkingConfigBetweenTools", "identifier": "ThinkingConfigBetweenTools" })
861 export type ToolChoiceAuto = { readonly "disable_parallel_tool_use"?: boolean; readonly "type": "auto" }
862 export const ToolChoiceAuto = Schema.Struct({
863 "disable_parallel_tool_use": Schema.optionalKey(
864 Schema.Boolean.annotate({
865 "title": "Disable Parallel Tool Use",
866 "description":
867 "Whether to disable parallel tool use.\n\nDefaults to `false`. If set to `true`, the model will output at most one tool use."
868 })
869 ),
870 "type": Schema.Literal("auto").annotate({ "title": "Type" })
871 }).annotate({
872 "title": "ToolChoiceAuto",
873 "description": "The model will automatically decide whether to use tools.",
874 "identifier": "ToolChoiceAuto"
875 })
876 export type ToolChoiceAny = { readonly "disable_parallel_tool_use"?: boolean; readonly "type": "any" }
877 export const ToolChoiceAny = Schema.Struct({
878 "disable_parallel_tool_use": Schema.optionalKey(
879 Schema.Boolean.annotate({
880 "title": "Disable Parallel Tool Use",
881 "description":
882 "Whether to disable parallel tool use.\n\nDefaults to `false`. If set to `true`, the model will output exactly one tool use."
883 })
884 ),
885 "type": Schema.Literal("any").annotate({ "title": "Type" })
886 }).annotate({
887 "title": "ToolChoiceAny",
888 "description": "The model will use any available tools.",
889 "identifier": "ToolChoiceAny"
890 })
891 export type ToolChoiceTool = {
892 readonly "disable_parallel_tool_use"?: boolean
893 readonly "name": string
894 readonly "type": "tool"
895 }
896 export const ToolChoiceTool = Schema.Struct({
897 "disable_parallel_tool_use": Schema.optionalKey(
898 Schema.Boolean.annotate({
899 "title": "Disable Parallel Tool Use",
900 "description":
901 "Whether to disable parallel tool use.\n\nDefaults to `false`. If set to `true`, the model will output exactly one tool use."
902 })
903 ),
904 "name": Schema.String.annotate({ "title": "Name", "description": "The name of the tool to use." }),
905 "type": Schema.Literal("tool").annotate({ "title": "Type" })
906 }).annotate({
907 "title": "ToolChoiceTool",
908 "description": "The model will use the specified tool with `tool_choice.name`.",
909 "identifier": "ToolChoiceTool"
910 })
911 export type ToolChoiceNone = { readonly "type": "none" }
912 export const ToolChoiceNone = Schema.Struct({ "type": Schema.Literal("none").annotate({ "title": "Type" }) }).annotate({
913 "title": "ToolChoiceNone",
914 "description": "The model will not be allowed to use tools.",
915 "identifier": "ToolChoiceNone"
916 })
917 export type InputSchema = {
918 readonly "properties"?: { readonly [x: string]: Schema.Json } | null
919 readonly "required"?: ReadonlyArray<string> | null
920 readonly "type": "object"
921 } & { readonly [x: string]: Schema.Json }
922 export const InputSchema = Schema.StructWithRest(
923 Schema.Struct({
924 "properties": Schema.optionalKey(
925 Schema.Union([Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" })), Schema.Null])
926 .annotate({ "title": "Properties" })
927 ),
928 "required": Schema.optionalKey(
929 Schema.Union([Schema.Array(Schema.String), Schema.Null]).annotate({ "title": "Required" })
930 ),
931 "type": Schema.Literal("object").annotate({ "title": "Type" })
932 }),
933 [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]
934 ).annotate({ "title": "InputSchema", "identifier": "InputSchema" })
935 export type AllowedCaller = "direct" | "code_execution_20250825" | "code_execution_20260120" | "code_execution_20260521"
936 export const AllowedCaller = Schema.Literals([
937 "direct",
938 "code_execution_20250825",
939 "code_execution_20260120",
940 "code_execution_20260521"
941 ]).annotate({
942 "title": "AllowedCaller",
943 "description":
944 "Specifies who can invoke a tool.\n\nValues:\n direct: The model can call this tool directly.\n code_execution_20250825: The tool can be called from the code execution environment (v1).\n code_execution_20260120: The tool can be called from the code execution environment (v2 with persistence).\n code_execution_20260521: The tool can be called from the code execution environment (v2 with persistence).",
945 "identifier": "AllowedCaller"
946 })
947 export type JsonValue = unknown
948 export const JsonValue = Schema.Unknown
949 export type BrowserCloseTabConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
950 export const BrowserCloseTabConfig = Schema.Struct({
951 "defer_loading": Schema.optionalKey(
952 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
953 "title": "Defer Loading",
954 "description":
955 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
956 })
957 ),
958 "enabled": Schema.optionalKey(
959 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
960 "title": "Enabled",
961 "description":
962 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
963 })
964 )
965 }).annotate({
966 "title": "BrowserCloseTabConfig",
967 "description": "``close_tab``'s config overrides.",
968 "identifier": "BrowserCloseTabConfig"
969 })
970 export type BrowserDoubleClickConfig = {
971 readonly "defer_loading"?: boolean | null
972 readonly "enabled"?: boolean | null
973 }
974 export const BrowserDoubleClickConfig = Schema.Struct({
975 "defer_loading": Schema.optionalKey(
976 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
977 "title": "Defer Loading",
978 "description":
979 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
980 })
981 ),
982 "enabled": Schema.optionalKey(
983 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
984 "title": "Enabled",
985 "description":
986 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
987 })
988 )
989 }).annotate({
990 "title": "BrowserDoubleClickConfig",
991 "description": "``double_click``'s config overrides.",
992 "identifier": "BrowserDoubleClickConfig"
993 })
994 export type BrowserFileUploadConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
995 export const BrowserFileUploadConfig = Schema.Struct({
996 "defer_loading": Schema.optionalKey(
997 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
998 "title": "Defer Loading",
999 "description":
1000 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1001 })
1002 ),
1003 "enabled": Schema.optionalKey(
1004 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1005 "title": "Enabled",
1006 "description":
1007 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1008 })
1009 )
1010 }).annotate({
1011 "title": "BrowserFileUploadConfig",
1012 "description": "``file_upload``'s config overrides.",
1013 "identifier": "BrowserFileUploadConfig"
1014 })
1015 export type BrowserFindConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
1016 export const BrowserFindConfig = Schema.Struct({
1017 "defer_loading": Schema.optionalKey(
1018 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1019 "title": "Defer Loading",
1020 "description":
1021 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1022 })
1023 ),
1024 "enabled": Schema.optionalKey(
1025 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1026 "title": "Enabled",
1027 "description":
1028 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1029 })
1030 )
1031 }).annotate({
1032 "title": "BrowserFindConfig",
1033 "description": "``find``'s config overrides.",
1034 "identifier": "BrowserFindConfig"
1035 })
1036 export type BrowserFormInputConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
1037 export const BrowserFormInputConfig = Schema.Struct({
1038 "defer_loading": Schema.optionalKey(
1039 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1040 "title": "Defer Loading",
1041 "description":
1042 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1043 })
1044 ),
1045 "enabled": Schema.optionalKey(
1046 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1047 "title": "Enabled",
1048 "description":
1049 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1050 })
1051 )
1052 }).annotate({
1053 "title": "BrowserFormInputConfig",
1054 "description": "``form_input``'s config overrides.",
1055 "identifier": "BrowserFormInputConfig"
1056 })
1057 export type BrowserGetPageTextConfig = {
1058 readonly "defer_loading"?: boolean | null
1059 readonly "enabled"?: boolean | null
1060 }
1061 export const BrowserGetPageTextConfig = Schema.Struct({
1062 "defer_loading": Schema.optionalKey(
1063 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1064 "title": "Defer Loading",
1065 "description":
1066 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1067 })
1068 ),
1069 "enabled": Schema.optionalKey(
1070 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1071 "title": "Enabled",
1072 "description":
1073 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1074 })
1075 )
1076 }).annotate({
1077 "title": "BrowserGetPageTextConfig",
1078 "description": "``get_page_text``'s config overrides.",
1079 "identifier": "BrowserGetPageTextConfig"
1080 })
1081 export type BrowserHoldKeyConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
1082 export const BrowserHoldKeyConfig = Schema.Struct({
1083 "defer_loading": Schema.optionalKey(
1084 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1085 "title": "Defer Loading",
1086 "description":
1087 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1088 })
1089 ),
1090 "enabled": Schema.optionalKey(
1091 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1092 "title": "Enabled",
1093 "description":
1094 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1095 })
1096 )
1097 }).annotate({
1098 "title": "BrowserHoldKeyConfig",
1099 "description": "``hold_key``'s config overrides.",
1100 "identifier": "BrowserHoldKeyConfig"
1101 })
1102 export type BrowserHoverConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
1103 export const BrowserHoverConfig = Schema.Struct({
1104 "defer_loading": Schema.optionalKey(
1105 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1106 "title": "Defer Loading",
1107 "description":
1108 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1109 })
1110 ),
1111 "enabled": Schema.optionalKey(
1112 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1113 "title": "Enabled",
1114 "description":
1115 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1116 })
1117 )
1118 }).annotate({
1119 "title": "BrowserHoverConfig",
1120 "description": "``hover``'s config overrides.",
1121 "identifier": "BrowserHoverConfig"
1122 })
1123 export type BrowserJavascriptExecConfig = {
1124 readonly "defer_loading"?: boolean | null
1125 readonly "enabled"?: boolean | null
1126 }
1127 export const BrowserJavascriptExecConfig = Schema.Struct({
1128 "defer_loading": Schema.optionalKey(
1129 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1130 "title": "Defer Loading",
1131 "description":
1132 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1133 })
1134 ),
1135 "enabled": Schema.optionalKey(
1136 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1137 "title": "Enabled",
1138 "description":
1139 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1140 })
1141 )
1142 }).annotate({
1143 "title": "BrowserJavascriptExecConfig",
1144 "description": "``javascript_exec``'s config overrides.",
1145 "identifier": "BrowserJavascriptExecConfig"
1146 })
1147 export type BrowserKeyConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
1148 export const BrowserKeyConfig = Schema.Struct({
1149 "defer_loading": Schema.optionalKey(
1150 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1151 "title": "Defer Loading",
1152 "description":
1153 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1154 })
1155 ),
1156 "enabled": Schema.optionalKey(
1157 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1158 "title": "Enabled",
1159 "description":
1160 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1161 })
1162 )
1163 }).annotate({
1164 "title": "BrowserKeyConfig",
1165 "description": "``key``'s config overrides.",
1166 "identifier": "BrowserKeyConfig"
1167 })
1168 export type BrowserLeftClickConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
1169 export const BrowserLeftClickConfig = Schema.Struct({
1170 "defer_loading": Schema.optionalKey(
1171 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1172 "title": "Defer Loading",
1173 "description":
1174 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1175 })
1176 ),
1177 "enabled": Schema.optionalKey(
1178 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1179 "title": "Enabled",
1180 "description":
1181 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1182 })
1183 )
1184 }).annotate({
1185 "title": "BrowserLeftClickConfig",
1186 "description": "``left_click``'s config overrides.",
1187 "identifier": "BrowserLeftClickConfig"
1188 })
1189 export type BrowserLeftClickDragConfig = {
1190 readonly "defer_loading"?: boolean | null
1191 readonly "enabled"?: boolean | null
1192 }
1193 export const BrowserLeftClickDragConfig = Schema.Struct({
1194 "defer_loading": Schema.optionalKey(
1195 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1196 "title": "Defer Loading",
1197 "description":
1198 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1199 })
1200 ),
1201 "enabled": Schema.optionalKey(
1202 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1203 "title": "Enabled",
1204 "description":
1205 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1206 })
1207 )
1208 }).annotate({
1209 "title": "BrowserLeftClickDragConfig",
1210 "description": "``left_click_drag``'s config overrides.",
1211 "identifier": "BrowserLeftClickDragConfig"
1212 })
1213 export type BrowserLeftMouseDownConfig = {
1214 readonly "defer_loading"?: boolean | null
1215 readonly "enabled"?: boolean | null
1216 }
1217 export const BrowserLeftMouseDownConfig = Schema.Struct({
1218 "defer_loading": Schema.optionalKey(
1219 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1220 "title": "Defer Loading",
1221 "description":
1222 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1223 })
1224 ),
1225 "enabled": Schema.optionalKey(
1226 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1227 "title": "Enabled",
1228 "description":
1229 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1230 })
1231 )
1232 }).annotate({
1233 "title": "BrowserLeftMouseDownConfig",
1234 "description": "``left_mouse_down``'s config overrides.",
1235 "identifier": "BrowserLeftMouseDownConfig"
1236 })
1237 export type BrowserLeftMouseUpConfig = {
1238 readonly "defer_loading"?: boolean | null
1239 readonly "enabled"?: boolean | null
1240 }
1241 export const BrowserLeftMouseUpConfig = Schema.Struct({
1242 "defer_loading": Schema.optionalKey(
1243 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1244 "title": "Defer Loading",
1245 "description":
1246 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1247 })
1248 ),
1249 "enabled": Schema.optionalKey(
1250 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1251 "title": "Enabled",
1252 "description":
1253 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1254 })
1255 )
1256 }).annotate({
1257 "title": "BrowserLeftMouseUpConfig",
1258 "description": "``left_mouse_up``'s config overrides.",
1259 "identifier": "BrowserLeftMouseUpConfig"
1260 })
1261 export type BrowserListTabsConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
1262 export const BrowserListTabsConfig = Schema.Struct({
1263 "defer_loading": Schema.optionalKey(
1264 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1265 "title": "Defer Loading",
1266 "description":
1267 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1268 })
1269 ),
1270 "enabled": Schema.optionalKey(
1271 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1272 "title": "Enabled",
1273 "description":
1274 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1275 })
1276 )
1277 }).annotate({
1278 "title": "BrowserListTabsConfig",
1279 "description": "``list_tabs``'s config overrides.",
1280 "identifier": "BrowserListTabsConfig"
1281 })
1282 export type BrowserMiddleClickConfig = {
1283 readonly "defer_loading"?: boolean | null
1284 readonly "enabled"?: boolean | null
1285 }
1286 export const BrowserMiddleClickConfig = Schema.Struct({
1287 "defer_loading": Schema.optionalKey(
1288 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1289 "title": "Defer Loading",
1290 "description":
1291 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1292 })
1293 ),
1294 "enabled": Schema.optionalKey(
1295 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1296 "title": "Enabled",
1297 "description":
1298 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1299 })
1300 )
1301 }).annotate({
1302 "title": "BrowserMiddleClickConfig",
1303 "description": "``middle_click``'s config overrides.",
1304 "identifier": "BrowserMiddleClickConfig"
1305 })
1306 export type BrowserMouseMoveConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
1307 export const BrowserMouseMoveConfig = Schema.Struct({
1308 "defer_loading": Schema.optionalKey(
1309 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1310 "title": "Defer Loading",
1311 "description":
1312 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1313 })
1314 ),
1315 "enabled": Schema.optionalKey(
1316 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1317 "title": "Enabled",
1318 "description":
1319 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1320 })
1321 )
1322 }).annotate({
1323 "title": "BrowserMouseMoveConfig",
1324 "description": "``mouse_move``'s config overrides.",
1325 "identifier": "BrowserMouseMoveConfig"
1326 })
1327 export type BrowserNavigateConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
1328 export const BrowserNavigateConfig = Schema.Struct({
1329 "defer_loading": Schema.optionalKey(
1330 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1331 "title": "Defer Loading",
1332 "description":
1333 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1334 })
1335 ),
1336 "enabled": Schema.optionalKey(
1337 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1338 "title": "Enabled",
1339 "description":
1340 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1341 })
1342 )
1343 }).annotate({
1344 "title": "BrowserNavigateConfig",
1345 "description": "``navigate``'s config overrides.",
1346 "identifier": "BrowserNavigateConfig"
1347 })
1348 export type BrowserNewTabConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
1349 export const BrowserNewTabConfig = Schema.Struct({
1350 "defer_loading": Schema.optionalKey(
1351 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1352 "title": "Defer Loading",
1353 "description":
1354 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1355 })
1356 ),
1357 "enabled": Schema.optionalKey(
1358 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1359 "title": "Enabled",
1360 "description":
1361 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1362 })
1363 )
1364 }).annotate({
1365 "title": "BrowserNewTabConfig",
1366 "description": "``new_tab``'s config overrides.",
1367 "identifier": "BrowserNewTabConfig"
1368 })
1369 export type BrowserReadConsoleConfig = {
1370 readonly "defer_loading"?: boolean | null
1371 readonly "enabled"?: boolean | null
1372 }
1373 export const BrowserReadConsoleConfig = Schema.Struct({
1374 "defer_loading": Schema.optionalKey(
1375 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1376 "title": "Defer Loading",
1377 "description":
1378 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1379 })
1380 ),
1381 "enabled": Schema.optionalKey(
1382 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1383 "title": "Enabled",
1384 "description":
1385 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1386 })
1387 )
1388 }).annotate({
1389 "title": "BrowserReadConsoleConfig",
1390 "description": "``read_console``'s config overrides.",
1391 "identifier": "BrowserReadConsoleConfig"
1392 })
1393 export type BrowserReadNetworkConfig = {
1394 readonly "defer_loading"?: boolean | null
1395 readonly "enabled"?: boolean | null
1396 }
1397 export const BrowserReadNetworkConfig = Schema.Struct({
1398 "defer_loading": Schema.optionalKey(
1399 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1400 "title": "Defer Loading",
1401 "description":
1402 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1403 })
1404 ),
1405 "enabled": Schema.optionalKey(
1406 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1407 "title": "Enabled",
1408 "description":
1409 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1410 })
1411 )
1412 }).annotate({
1413 "title": "BrowserReadNetworkConfig",
1414 "description": "``read_network``'s config overrides.",
1415 "identifier": "BrowserReadNetworkConfig"
1416 })
1417 export type BrowserReadPageConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
1418 export const BrowserReadPageConfig = Schema.Struct({
1419 "defer_loading": Schema.optionalKey(
1420 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1421 "title": "Defer Loading",
1422 "description":
1423 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1424 })
1425 ),
1426 "enabled": Schema.optionalKey(
1427 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1428 "title": "Enabled",
1429 "description":
1430 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1431 })
1432 )
1433 }).annotate({
1434 "title": "BrowserReadPageConfig",
1435 "description": "``read_page``'s config overrides.",
1436 "identifier": "BrowserReadPageConfig"
1437 })
1438 export type BrowserRightClickConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
1439 export const BrowserRightClickConfig = Schema.Struct({
1440 "defer_loading": Schema.optionalKey(
1441 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1442 "title": "Defer Loading",
1443 "description":
1444 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1445 })
1446 ),
1447 "enabled": Schema.optionalKey(
1448 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1449 "title": "Enabled",
1450 "description":
1451 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1452 })
1453 )
1454 }).annotate({
1455 "title": "BrowserRightClickConfig",
1456 "description": "``right_click``'s config overrides.",
1457 "identifier": "BrowserRightClickConfig"
1458 })
1459 export type BrowserScreenshotConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
1460 export const BrowserScreenshotConfig = Schema.Struct({
1461 "defer_loading": Schema.optionalKey(
1462 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1463 "title": "Defer Loading",
1464 "description":
1465 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1466 })
1467 ),
1468 "enabled": Schema.optionalKey(
1469 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1470 "title": "Enabled",
1471 "description":
1472 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1473 })
1474 )
1475 }).annotate({
1476 "title": "BrowserScreenshotConfig",
1477 "description": "``screenshot``'s config overrides.",
1478 "identifier": "BrowserScreenshotConfig"
1479 })
1480 export type BrowserScrollConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
1481 export const BrowserScrollConfig = Schema.Struct({
1482 "defer_loading": Schema.optionalKey(
1483 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1484 "title": "Defer Loading",
1485 "description":
1486 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1487 })
1488 ),
1489 "enabled": Schema.optionalKey(
1490 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1491 "title": "Enabled",
1492 "description":
1493 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1494 })
1495 )
1496 }).annotate({
1497 "title": "BrowserScrollConfig",
1498 "description": "``scroll``'s config overrides.",
1499 "identifier": "BrowserScrollConfig"
1500 })
1501 export type BrowserScrollToConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
1502 export const BrowserScrollToConfig = Schema.Struct({
1503 "defer_loading": Schema.optionalKey(
1504 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1505 "title": "Defer Loading",
1506 "description":
1507 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1508 })
1509 ),
1510 "enabled": Schema.optionalKey(
1511 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1512 "title": "Enabled",
1513 "description":
1514 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1515 })
1516 )
1517 }).annotate({
1518 "title": "BrowserScrollToConfig",
1519 "description": "``scroll_to``'s config overrides.",
1520 "identifier": "BrowserScrollToConfig"
1521 })
1522 export type BrowserSwitchTabConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
1523 export const BrowserSwitchTabConfig = Schema.Struct({
1524 "defer_loading": Schema.optionalKey(
1525 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1526 "title": "Defer Loading",
1527 "description":
1528 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1529 })
1530 ),
1531 "enabled": Schema.optionalKey(
1532 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1533 "title": "Enabled",
1534 "description":
1535 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1536 })
1537 )
1538 }).annotate({
1539 "title": "BrowserSwitchTabConfig",
1540 "description": "``switch_tab``'s config overrides.",
1541 "identifier": "BrowserSwitchTabConfig"
1542 })
1543 export type BrowserTripleClickConfig = {
1544 readonly "defer_loading"?: boolean | null
1545 readonly "enabled"?: boolean | null
1546 }
1547 export const BrowserTripleClickConfig = Schema.Struct({
1548 "defer_loading": Schema.optionalKey(
1549 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1550 "title": "Defer Loading",
1551 "description":
1552 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1553 })
1554 ),
1555 "enabled": Schema.optionalKey(
1556 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1557 "title": "Enabled",
1558 "description":
1559 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1560 })
1561 )
1562 }).annotate({
1563 "title": "BrowserTripleClickConfig",
1564 "description": "``triple_click``'s config overrides.",
1565 "identifier": "BrowserTripleClickConfig"
1566 })
1567 export type BrowserTypeConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
1568 export const BrowserTypeConfig = Schema.Struct({
1569 "defer_loading": Schema.optionalKey(
1570 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1571 "title": "Defer Loading",
1572 "description":
1573 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1574 })
1575 ),
1576 "enabled": Schema.optionalKey(
1577 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1578 "title": "Enabled",
1579 "description":
1580 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1581 })
1582 )
1583 }).annotate({
1584 "title": "BrowserTypeConfig",
1585 "description": "``type``'s config overrides.",
1586 "identifier": "BrowserTypeConfig"
1587 })
1588 export type BrowserWaitConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
1589 export const BrowserWaitConfig = Schema.Struct({
1590 "defer_loading": Schema.optionalKey(
1591 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1592 "title": "Defer Loading",
1593 "description":
1594 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1595 })
1596 ),
1597 "enabled": Schema.optionalKey(
1598 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1599 "title": "Enabled",
1600 "description":
1601 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1602 })
1603 )
1604 }).annotate({
1605 "title": "BrowserWaitConfig",
1606 "description": "``wait``'s config overrides.",
1607 "identifier": "BrowserWaitConfig"
1608 })
1609 export type BrowserZoomConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
1610 export const BrowserZoomConfig = Schema.Struct({
1611 "defer_loading": Schema.optionalKey(
1612 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1613 "title": "Defer Loading",
1614 "description":
1615 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1616 })
1617 ),
1618 "enabled": Schema.optionalKey(
1619 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1620 "title": "Enabled",
1621 "description":
1622 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1623 })
1624 )
1625 }).annotate({
1626 "title": "BrowserZoomConfig",
1627 "description": "``zoom``'s config overrides.",
1628 "identifier": "BrowserZoomConfig"
1629 })
1630 export type ComputerCursorPositionConfig = {
1631 readonly "defer_loading"?: boolean | null
1632 readonly "enabled"?: boolean | null
1633 }
1634 export const ComputerCursorPositionConfig = Schema.Struct({
1635 "defer_loading": Schema.optionalKey(
1636 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1637 "title": "Defer Loading",
1638 "description":
1639 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1640 })
1641 ),
1642 "enabled": Schema.optionalKey(
1643 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1644 "title": "Enabled",
1645 "description":
1646 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1647 })
1648 )
1649 }).annotate({
1650 "title": "ComputerCursorPositionConfig",
1651 "description": "``cursor_position``'s config overrides.",
1652 "identifier": "ComputerCursorPositionConfig"
1653 })
1654 export type ComputerDoubleClickConfig = {
1655 readonly "defer_loading"?: boolean | null
1656 readonly "enabled"?: boolean | null
1657 }
1658 export const ComputerDoubleClickConfig = Schema.Struct({
1659 "defer_loading": Schema.optionalKey(
1660 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1661 "title": "Defer Loading",
1662 "description":
1663 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1664 })
1665 ),
1666 "enabled": Schema.optionalKey(
1667 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1668 "title": "Enabled",
1669 "description":
1670 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1671 })
1672 )
1673 }).annotate({
1674 "title": "ComputerDoubleClickConfig",
1675 "description": "``double_click``'s config overrides.",
1676 "identifier": "ComputerDoubleClickConfig"
1677 })
1678 export type ComputerHoldKeyConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
1679 export const ComputerHoldKeyConfig = Schema.Struct({
1680 "defer_loading": Schema.optionalKey(
1681 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1682 "title": "Defer Loading",
1683 "description":
1684 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1685 })
1686 ),
1687 "enabled": Schema.optionalKey(
1688 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1689 "title": "Enabled",
1690 "description":
1691 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1692 })
1693 )
1694 }).annotate({
1695 "title": "ComputerHoldKeyConfig",
1696 "description": "``hold_key``'s config overrides.",
1697 "identifier": "ComputerHoldKeyConfig"
1698 })
1699 export type ComputerKeyConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
1700 export const ComputerKeyConfig = Schema.Struct({
1701 "defer_loading": Schema.optionalKey(
1702 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1703 "title": "Defer Loading",
1704 "description":
1705 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1706 })
1707 ),
1708 "enabled": Schema.optionalKey(
1709 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1710 "title": "Enabled",
1711 "description":
1712 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1713 })
1714 )
1715 }).annotate({
1716 "title": "ComputerKeyConfig",
1717 "description": "``key``'s config overrides.",
1718 "identifier": "ComputerKeyConfig"
1719 })
1720 export type ComputerLeftClickConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
1721 export const ComputerLeftClickConfig = Schema.Struct({
1722 "defer_loading": Schema.optionalKey(
1723 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1724 "title": "Defer Loading",
1725 "description":
1726 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1727 })
1728 ),
1729 "enabled": Schema.optionalKey(
1730 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1731 "title": "Enabled",
1732 "description":
1733 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1734 })
1735 )
1736 }).annotate({
1737 "title": "ComputerLeftClickConfig",
1738 "description": "``left_click``'s config overrides.",
1739 "identifier": "ComputerLeftClickConfig"
1740 })
1741 export type ComputerLeftClickDragConfig = {
1742 readonly "defer_loading"?: boolean | null
1743 readonly "enabled"?: boolean | null
1744 }
1745 export const ComputerLeftClickDragConfig = Schema.Struct({
1746 "defer_loading": Schema.optionalKey(
1747 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1748 "title": "Defer Loading",
1749 "description":
1750 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1751 })
1752 ),
1753 "enabled": Schema.optionalKey(
1754 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1755 "title": "Enabled",
1756 "description":
1757 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1758 })
1759 )
1760 }).annotate({
1761 "title": "ComputerLeftClickDragConfig",
1762 "description": "``left_click_drag``'s config overrides.",
1763 "identifier": "ComputerLeftClickDragConfig"
1764 })
1765 export type ComputerLeftMouseDownConfig = {
1766 readonly "defer_loading"?: boolean | null
1767 readonly "enabled"?: boolean | null
1768 }
1769 export const ComputerLeftMouseDownConfig = Schema.Struct({
1770 "defer_loading": Schema.optionalKey(
1771 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1772 "title": "Defer Loading",
1773 "description":
1774 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1775 })
1776 ),
1777 "enabled": Schema.optionalKey(
1778 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1779 "title": "Enabled",
1780 "description":
1781 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1782 })
1783 )
1784 }).annotate({
1785 "title": "ComputerLeftMouseDownConfig",
1786 "description": "``left_mouse_down``'s config overrides.",
1787 "identifier": "ComputerLeftMouseDownConfig"
1788 })
1789 export type ComputerLeftMouseUpConfig = {
1790 readonly "defer_loading"?: boolean | null
1791 readonly "enabled"?: boolean | null
1792 }
1793 export const ComputerLeftMouseUpConfig = Schema.Struct({
1794 "defer_loading": Schema.optionalKey(
1795 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1796 "title": "Defer Loading",
1797 "description":
1798 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1799 })
1800 ),
1801 "enabled": Schema.optionalKey(
1802 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1803 "title": "Enabled",
1804 "description":
1805 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1806 })
1807 )
1808 }).annotate({
1809 "title": "ComputerLeftMouseUpConfig",
1810 "description": "``left_mouse_up``'s config overrides.",
1811 "identifier": "ComputerLeftMouseUpConfig"
1812 })
1813 export type ComputerMiddleClickConfig = {
1814 readonly "defer_loading"?: boolean | null
1815 readonly "enabled"?: boolean | null
1816 }
1817 export const ComputerMiddleClickConfig = Schema.Struct({
1818 "defer_loading": Schema.optionalKey(
1819 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1820 "title": "Defer Loading",
1821 "description":
1822 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1823 })
1824 ),
1825 "enabled": Schema.optionalKey(
1826 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1827 "title": "Enabled",
1828 "description":
1829 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1830 })
1831 )
1832 }).annotate({
1833 "title": "ComputerMiddleClickConfig",
1834 "description": "``middle_click``'s config overrides.",
1835 "identifier": "ComputerMiddleClickConfig"
1836 })
1837 export type ComputerMouseMoveConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
1838 export const ComputerMouseMoveConfig = Schema.Struct({
1839 "defer_loading": Schema.optionalKey(
1840 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1841 "title": "Defer Loading",
1842 "description":
1843 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1844 })
1845 ),
1846 "enabled": Schema.optionalKey(
1847 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1848 "title": "Enabled",
1849 "description":
1850 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1851 })
1852 )
1853 }).annotate({
1854 "title": "ComputerMouseMoveConfig",
1855 "description": "``mouse_move``'s config overrides.",
1856 "identifier": "ComputerMouseMoveConfig"
1857 })
1858 export type ComputerRightClickConfig = {
1859 readonly "defer_loading"?: boolean | null
1860 readonly "enabled"?: boolean | null
1861 }
1862 export const ComputerRightClickConfig = Schema.Struct({
1863 "defer_loading": Schema.optionalKey(
1864 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1865 "title": "Defer Loading",
1866 "description":
1867 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1868 })
1869 ),
1870 "enabled": Schema.optionalKey(
1871 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1872 "title": "Enabled",
1873 "description":
1874 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1875 })
1876 )
1877 }).annotate({
1878 "title": "ComputerRightClickConfig",
1879 "description": "``right_click``'s config overrides.",
1880 "identifier": "ComputerRightClickConfig"
1881 })
1882 export type ComputerScreenshotConfig = {
1883 readonly "defer_loading"?: boolean | null
1884 readonly "enabled"?: boolean | null
1885 }
1886 export const ComputerScreenshotConfig = Schema.Struct({
1887 "defer_loading": Schema.optionalKey(
1888 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1889 "title": "Defer Loading",
1890 "description":
1891 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1892 })
1893 ),
1894 "enabled": Schema.optionalKey(
1895 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1896 "title": "Enabled",
1897 "description":
1898 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1899 })
1900 )
1901 }).annotate({
1902 "title": "ComputerScreenshotConfig",
1903 "description": "``screenshot``'s config overrides.",
1904 "identifier": "ComputerScreenshotConfig"
1905 })
1906 export type ComputerScrollConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
1907 export const ComputerScrollConfig = Schema.Struct({
1908 "defer_loading": Schema.optionalKey(
1909 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1910 "title": "Defer Loading",
1911 "description":
1912 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1913 })
1914 ),
1915 "enabled": Schema.optionalKey(
1916 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1917 "title": "Enabled",
1918 "description":
1919 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1920 })
1921 )
1922 }).annotate({
1923 "title": "ComputerScrollConfig",
1924 "description": "``scroll``'s config overrides.",
1925 "identifier": "ComputerScrollConfig"
1926 })
1927 export type ComputerTripleClickConfig = {
1928 readonly "defer_loading"?: boolean | null
1929 readonly "enabled"?: boolean | null
1930 }
1931 export const ComputerTripleClickConfig = Schema.Struct({
1932 "defer_loading": Schema.optionalKey(
1933 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1934 "title": "Defer Loading",
1935 "description":
1936 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1937 })
1938 ),
1939 "enabled": Schema.optionalKey(
1940 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1941 "title": "Enabled",
1942 "description":
1943 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1944 })
1945 )
1946 }).annotate({
1947 "title": "ComputerTripleClickConfig",
1948 "description": "``triple_click``'s config overrides.",
1949 "identifier": "ComputerTripleClickConfig"
1950 })
1951 export type ComputerTypeConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
1952 export const ComputerTypeConfig = Schema.Struct({
1953 "defer_loading": Schema.optionalKey(
1954 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1955 "title": "Defer Loading",
1956 "description":
1957 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1958 })
1959 ),
1960 "enabled": Schema.optionalKey(
1961 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1962 "title": "Enabled",
1963 "description":
1964 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1965 })
1966 )
1967 }).annotate({
1968 "title": "ComputerTypeConfig",
1969 "description": "``type``'s config overrides.",
1970 "identifier": "ComputerTypeConfig"
1971 })
1972 export type ComputerWaitConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
1973 export const ComputerWaitConfig = Schema.Struct({
1974 "defer_loading": Schema.optionalKey(
1975 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1976 "title": "Defer Loading",
1977 "description":
1978 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
1979 })
1980 ),
1981 "enabled": Schema.optionalKey(
1982 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1983 "title": "Enabled",
1984 "description":
1985 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
1986 })
1987 )
1988 }).annotate({
1989 "title": "ComputerWaitConfig",
1990 "description": "``wait``'s config overrides.",
1991 "identifier": "ComputerWaitConfig"
1992 })
1993 export type ComputerZoomConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
1994 export const ComputerZoomConfig = Schema.Struct({
1995 "defer_loading": Schema.optionalKey(
1996 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
1997 "title": "Defer Loading",
1998 "description":
1999 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
2000 })
2001 ),
2002 "enabled": Schema.optionalKey(
2003 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
2004 "title": "Enabled",
2005 "description":
2006 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
2007 })
2008 )
2009 }).annotate({
2010 "title": "ComputerZoomConfig",
2011 "description": "``zoom``'s config overrides.",
2012 "identifier": "ComputerZoomConfig"
2013 })
2014 export type UserLocation = {
2015 readonly "city"?: string | null
2016 readonly "country"?: string | null
2017 readonly "region"?: string | null
2018 readonly "timezone"?: string | null
2019 readonly "type": "approximate"
2020 }
2021 export const UserLocation = Schema.Struct({
2022 "city": Schema.optionalKey(
2023 Schema.Union([
2024 Schema.String.check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(
2025 Schema.isMaxCodePoints(255).annotate({ "expected": "a string with at most 255 code points" })
2026 ),
2027 Schema.Null
2028 ]).annotate({ "title": "City", "description": "The city of the user." })
2029 ),
2030 "country": Schema.optionalKey(
2031 Schema.Union([
2032 Schema.String.check(Schema.isMinCodePoints(2).annotate({ "expected": "a string with at least 2 code points" }))
2033 .check(Schema.isMaxCodePoints(2).annotate({ "expected": "a string with at most 2 code points" })),
2034 Schema.Null
2035 ]).annotate({
2036 "title": "Country",
2037 "description": "The two letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the user."
2038 })
2039 ),
2040 "region": Schema.optionalKey(
2041 Schema.Union([
2042 Schema.String.check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(
2043 Schema.isMaxCodePoints(255).annotate({ "expected": "a string with at most 255 code points" })
2044 ),
2045 Schema.Null
2046 ]).annotate({ "title": "Region", "description": "The region of the user." })
2047 ),
2048 "timezone": Schema.optionalKey(
2049 Schema.Union([
2050 Schema.String.check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(
2051 Schema.isMaxCodePoints(255).annotate({ "expected": "a string with at most 255 code points" })
2052 ),
2053 Schema.Null
2054 ]).annotate({
2055 "title": "Timezone",
2056 "description": "The [IANA timezone](https://nodatime.org/TimeZones) of the user."
2057 })
2058 ),
2059 "type": Schema.Literal("approximate").annotate({ "title": "Type" })
2060 }).annotate({ "title": "UserLocation", "identifier": "UserLocation" })
2061 export type WebFetchUrlSourceAll = { readonly "type": "all" }
2062 export const WebFetchUrlSourceAll = Schema.Struct({ "type": Schema.Literal("all").annotate({ "title": "Type" }) })
2063 .annotate({
2064 "title": "WebFetchUrlSourceAll",
2065 "description":
2066 "The ``url_sources`` variant under which a source contributes in\nfull: every result of the tool filter's source, or all user input.",
2067 "identifier": "WebFetchUrlSourceAll"
2068 })
2069 export type WebFetchUrlSourceNone = { readonly "type": "none" }
2070 export const WebFetchUrlSourceNone = Schema.Struct({ "type": Schema.Literal("none").annotate({ "title": "Type" }) })
2071 .annotate({
2072 "title": "WebFetchUrlSourceNone",
2073 "description":
2074 "The ``url_sources`` variant under which a source contributes nothing:\nno result of the tool filter's source, or no user input.",
2075 "identifier": "WebFetchUrlSourceNone"
2076 })
2077 export type WebFetchUrlSourceToolReference = { readonly "name": string; readonly "type": "tool_reference" }
2078 export const WebFetchUrlSourceToolReference = Schema.Struct({
2079 "name": Schema.String.annotate({ "title": "Name" }),
2080 "type": Schema.Literal("tool_reference").annotate({ "title": "Type" })
2081 }).annotate({
2082 "title": "WebFetchUrlSourceToolReference",
2083 "description": "One entry of a tool filter's ``tools``: it must name a tool declared\nin this request's ``tools[]``.",
2084 "identifier": "WebFetchUrlSourceToolReference"
2085 })
2086 export type ResponseCharLocationCitation = {
2087 readonly "cited_text": string
2088 readonly "document_index": number
2089 readonly "document_title": string | null
2090 readonly "end_char_index": number
2091 readonly "file_id": string | null
2092 readonly "start_char_index": number
2093 readonly "type": "char_location"
2094 }
2095 export const ResponseCharLocationCitation = Schema.Struct({
2096 "cited_text": Schema.String.annotate({ "title": "Cited Text" }),
2097 "document_index": Schema.Number.annotate({ "title": "Document Index" }).check(
2098 Schema.isInt().annotate({ "expected": "an integer" })
2099 ).check(Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })),
2100 "document_title": Schema.Union([Schema.String, Schema.Null]).annotate({ "title": "Document Title" }),
2101 "end_char_index": Schema.Number.annotate({ "title": "End Char Index" }).check(
2102 Schema.isInt().annotate({ "expected": "an integer" })
2103 ),
2104 "file_id": Schema.Union([Schema.String, Schema.Null]).annotate({ "title": "File Id", "default": null }),
2105 "start_char_index": Schema.Number.annotate({ "title": "Start Char Index" }).check(
2106 Schema.isInt().annotate({ "expected": "an integer" })
2107 ).check(Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })),
2108 "type": Schema.Literal("char_location").annotate({ "title": "Type", "default": "char_location" })
2109 }).annotate({ "title": "ResponseCharLocationCitation", "identifier": "ResponseCharLocationCitation" })
2110 export type ResponsePageLocationCitation = {
2111 readonly "cited_text": string
2112 readonly "document_index": number
2113 readonly "document_title": string | null
2114 readonly "end_page_number": number
2115 readonly "file_id": string | null
2116 readonly "start_page_number": number
2117 readonly "type": "page_location"
2118 }
2119 export const ResponsePageLocationCitation = Schema.Struct({
2120 "cited_text": Schema.String.annotate({ "title": "Cited Text" }),
2121 "document_index": Schema.Number.annotate({ "title": "Document Index" }).check(
2122 Schema.isInt().annotate({ "expected": "an integer" })
2123 ).check(Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })),
2124 "document_title": Schema.Union([Schema.String, Schema.Null]).annotate({ "title": "Document Title" }),
2125 "end_page_number": Schema.Number.annotate({ "title": "End Page Number" }).check(
2126 Schema.isInt().annotate({ "expected": "an integer" })
2127 ),
2128 "file_id": Schema.Union([Schema.String, Schema.Null]).annotate({ "title": "File Id", "default": null }),
2129 "start_page_number": Schema.Number.annotate({ "title": "Start Page Number" }).check(
2130 Schema.isInt().annotate({ "expected": "an integer" })
2131 ).check(Schema.isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" })),
2132 "type": Schema.Literal("page_location").annotate({ "title": "Type", "default": "page_location" })
2133 }).annotate({ "title": "ResponsePageLocationCitation", "identifier": "ResponsePageLocationCitation" })
2134 export type ResponseContentBlockLocationCitation = {
2135 readonly "cited_text": string
2136 readonly "document_index": number
2137 readonly "document_title": string | null
2138 readonly "end_block_index": number
2139 readonly "file_id": string | null
2140 readonly "start_block_index": number
2141 readonly "type": "content_block_location"
2142 }
2143 export const ResponseContentBlockLocationCitation = Schema.Struct({
2144 "cited_text": Schema.String.annotate({
2145 "title": "Cited Text",
2146 "description":
2147 "The full text of the cited block range, concatenated.\n\nAlways equals the contents of `content[start_block_index:end_block_index]` joined together. The text block is the minimal citable unit; this field is never a substring of a single block. Not counted toward output tokens, and not counted toward input tokens when sent back in subsequent turns."
2148 }),
2149 "document_index": Schema.Number.annotate({ "title": "Document Index" }).check(
2150 Schema.isInt().annotate({ "expected": "an integer" })
2151 ).check(Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })),
2152 "document_title": Schema.Union([Schema.String, Schema.Null]).annotate({ "title": "Document Title" }),
2153 "end_block_index": Schema.Number.annotate({
2154 "title": "End Block Index",
2155 "description":
2156 "Exclusive 0-based end index of the cited block range in the source's `content` array.\n\nAlways greater than `start_block_index`; a single-block citation has `end_block_index = start_block_index + 1`."
2157 }).check(Schema.isInt().annotate({ "expected": "an integer" })),
2158 "file_id": Schema.Union([Schema.String, Schema.Null]).annotate({ "title": "File Id", "default": null }),
2159 "start_block_index": Schema.Number.annotate({
2160 "title": "Start Block Index",
2161 "description": "0-based index of the first cited block in the source's `content` array."
2162 }).check(Schema.isInt().annotate({ "expected": "an integer" })).check(
2163 Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })
2164 ),
2165 "type": Schema.Literal("content_block_location").annotate({ "title": "Type", "default": "content_block_location" })
2166 }).annotate({ "title": "ResponseContentBlockLocationCitation", "identifier": "ResponseContentBlockLocationCitation" })
2167 export type ResponseWebSearchResultLocationCitation = {
2168 readonly "cited_text": string
2169 readonly "encrypted_index": string
2170 readonly "title": string | null
2171 readonly "type": "web_search_result_location"
2172 readonly "url": string
2173 }
2174 export const ResponseWebSearchResultLocationCitation = Schema.Struct({
2175 "cited_text": Schema.String.annotate({ "title": "Cited Text" }),
2176 "encrypted_index": Schema.String.annotate({ "title": "Encrypted Index" }),
2177 "title": Schema.Union([
2178 Schema.String.check(Schema.isMaxCodePoints(512).annotate({ "expected": "a string with at most 512 code points" })),
2179 Schema.Null
2180 ]).annotate({ "title": "Title" }),
2181 "type": Schema.Literal("web_search_result_location").annotate({
2182 "title": "Type",
2183 "default": "web_search_result_location"
2184 }),
2185 "url": Schema.String.annotate({ "title": "Url" })
2186 }).annotate({
2187 "title": "ResponseWebSearchResultLocationCitation",
2188 "identifier": "ResponseWebSearchResultLocationCitation"
2189 })
2190 export type ResponseSearchResultLocationCitation = {
2191 readonly "cited_text": string
2192 readonly "end_block_index": number
2193 readonly "search_result_index": number
2194 readonly "source": string
2195 readonly "start_block_index": number
2196 readonly "title": string | null
2197 readonly "type": "search_result_location"
2198 }
2199 export const ResponseSearchResultLocationCitation = Schema.Struct({
2200 "cited_text": Schema.String.annotate({
2201 "title": "Cited Text",
2202 "description":
2203 "The full text of the cited block range, concatenated.\n\nAlways equals the contents of `content[start_block_index:end_block_index]` joined together. The text block is the minimal citable unit; this field is never a substring of a single block. Not counted toward output tokens, and not counted toward input tokens when sent back in subsequent turns."
2204 }),
2205 "end_block_index": Schema.Number.annotate({
2206 "title": "End Block Index",
2207 "description":
2208 "Exclusive 0-based end index of the cited block range in the source's `content` array.\n\nAlways greater than `start_block_index`; a single-block citation has `end_block_index = start_block_index + 1`."
2209 }).check(Schema.isInt().annotate({ "expected": "an integer" })),
2210 "search_result_index": Schema.Number.annotate({
2211 "title": "Search Result Index",
2212 "description":
2213 "0-based index of the cited search result among all `search_result` content blocks in the request, in the order they appear across messages and tool results.\n\nCounted separately from `document_index`; server-side web search results are not included in this count."
2214 }).check(Schema.isInt().annotate({ "expected": "an integer" })).check(
2215 Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })
2216 ),
2217 "source": Schema.String.annotate({ "title": "Source" }),
2218 "start_block_index": Schema.Number.annotate({
2219 "title": "Start Block Index",
2220 "description": "0-based index of the first cited block in the source's `content` array."
2221 }).check(Schema.isInt().annotate({ "expected": "an integer" })).check(
2222 Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })
2223 ),
2224 "title": Schema.Union([Schema.String, Schema.Null]).annotate({ "title": "Title" }),
2225 "type": Schema.Literal("search_result_location").annotate({ "title": "Type", "default": "search_result_location" })
2226 }).annotate({ "title": "ResponseSearchResultLocationCitation", "identifier": "ResponseSearchResultLocationCitation" })
2227 export type ResponseThinkingBlock = {
2228 readonly "signature": string
2229 readonly "thinking": string
2230 readonly "type": "thinking"
2231 }
2232 export const ResponseThinkingBlock = Schema.Struct({
2233 "signature": Schema.String.annotate({
2234 "title": "Signature",
2235 "description":
2236 "A value used to verify that this thinking block was generated by Claude when it is passed back to the API.\n\nThis is an opaque field and should not be interpreted or parsed. When passing thinking blocks back to the API (required when using tools with extended thinking), pass them back exactly as received, with this field intact.\n\nSee [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking) for details."
2237 }),
2238 "thinking": Schema.String.annotate({
2239 "title": "Thinking",
2240 "description": "The text of Claude's thinking process for this block."
2241 }),
2242 "type": Schema.Literal("thinking").annotate({ "title": "Type", "default": "thinking" })
2243 }).annotate({ "title": "ResponseThinkingBlock", "identifier": "ResponseThinkingBlock" })
2244 export type ResponseRedactedThinkingBlock = { readonly "data": string; readonly "type": "redacted_thinking" }
2245 export const ResponseRedactedThinkingBlock = Schema.Struct({
2246 "data": Schema.String.annotate({
2247 "title": "Data",
2248 "description":
2249 "The contents of this redacted thinking block, returned when portions of the model's thinking were safety-redacted. This field is opaque and encrypted, with no readable content.\n\nPass `redacted_thinking` blocks back to the API unchanged when continuing a multi-turn conversation.\n\nSee [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking#redacted-thinking-blocks) for details."
2250 }),
2251 "type": Schema.Literal("redacted_thinking").annotate({ "title": "Type", "default": "redacted_thinking" })
2252 }).annotate({ "title": "ResponseRedactedThinkingBlock", "identifier": "ResponseRedactedThinkingBlock" })
2253 export type ResponseWebSearchResultBlock = {
2254 readonly "encrypted_content": string
2255 readonly "page_age": string | null
2256 readonly "title": string
2257 readonly "type": "web_search_result"
2258 readonly "url": string
2259 }
2260 export const ResponseWebSearchResultBlock = Schema.Struct({
2261 "encrypted_content": Schema.String.annotate({ "title": "Encrypted Content" }),
2262 "page_age": Schema.Union([Schema.String, Schema.Null]).annotate({ "title": "Page Age", "default": null }),
2263 "title": Schema.String.annotate({ "title": "Title" }),
2264 "type": Schema.Literal("web_search_result").annotate({ "title": "Type", "default": "web_search_result" }),
2265 "url": Schema.String.annotate({ "title": "Url" })
2266 }).annotate({ "title": "ResponseWebSearchResultBlock", "identifier": "ResponseWebSearchResultBlock" })
2267 export type ResponseCitationsConfig = { readonly "enabled": boolean }
2268 export const ResponseCitationsConfig = Schema.Struct({
2269 "enabled": Schema.Boolean.annotate({ "title": "Enabled", "default": false })
2270 }).annotate({ "title": "ResponseCitationsConfig", "identifier": "ResponseCitationsConfig" })
2271 export type ResponseCodeExecutionOutputBlock = { readonly "file_id": string; readonly "type": "code_execution_output" }
2272 export const ResponseCodeExecutionOutputBlock = Schema.Struct({
2273 "file_id": Schema.String.annotate({ "title": "File Id" }),
2274 "type": Schema.Literal("code_execution_output").annotate({ "title": "Type", "default": "code_execution_output" })
2275 }).annotate({ "title": "ResponseCodeExecutionOutputBlock", "identifier": "ResponseCodeExecutionOutputBlock" })
2276 export type ResponseBashCodeExecutionOutputBlock = {
2277 readonly "file_id": string
2278 readonly "type": "bash_code_execution_output"
2279 }
2280 export const ResponseBashCodeExecutionOutputBlock = Schema.Struct({
2281 "file_id": Schema.String.annotate({ "title": "File Id" }),
2282 "type": Schema.Literal("bash_code_execution_output").annotate({
2283 "title": "Type",
2284 "default": "bash_code_execution_output"
2285 })
2286 }).annotate({ "title": "ResponseBashCodeExecutionOutputBlock", "identifier": "ResponseBashCodeExecutionOutputBlock" })
2287 export type ResponseTextEditorCodeExecutionViewResultBlock = {
2288 readonly "content": string
2289 readonly "file_type": "text" | "image" | "pdf"
2290 readonly "num_lines": number | null
2291 readonly "start_line": number | null
2292 readonly "total_lines": number | null
2293 readonly "type": "text_editor_code_execution_view_result"
2294 }
2295 export const ResponseTextEditorCodeExecutionViewResultBlock = Schema.Struct({
2296 "content": Schema.String.annotate({ "title": "Content" }),
2297 "file_type": Schema.Literals(["text", "image", "pdf"]).annotate({ "title": "File Type" }),
2298 "num_lines": Schema.Union([Schema.Number.check(Schema.isInt().annotate({ "expected": "an integer" })), Schema.Null])
2299 .annotate({ "title": "Num Lines", "default": null }),
2300 "start_line": Schema.Union([Schema.Number.check(Schema.isInt().annotate({ "expected": "an integer" })), Schema.Null])
2301 .annotate({ "title": "Start Line", "default": null }),
2302 "total_lines": Schema.Union([Schema.Number.check(Schema.isInt().annotate({ "expected": "an integer" })), Schema.Null])
2303 .annotate({ "title": "Total Lines", "default": null }),
2304 "type": Schema.Literal("text_editor_code_execution_view_result").annotate({
2305 "title": "Type",
2306 "default": "text_editor_code_execution_view_result"
2307 })
2308 }).annotate({
2309 "title": "ResponseTextEditorCodeExecutionViewResultBlock",
2310 "identifier": "ResponseTextEditorCodeExecutionViewResultBlock"
2311 })
2312 export type ResponseTextEditorCodeExecutionCreateResultBlock = {
2313 readonly "is_file_update": boolean
2314 readonly "type": "text_editor_code_execution_create_result"
2315 }
2316 export const ResponseTextEditorCodeExecutionCreateResultBlock = Schema.Struct({
2317 "is_file_update": Schema.Boolean.annotate({ "title": "Is File Update" }),
2318 "type": Schema.Literal("text_editor_code_execution_create_result").annotate({
2319 "title": "Type",
2320 "default": "text_editor_code_execution_create_result"
2321 })
2322 }).annotate({
2323 "title": "ResponseTextEditorCodeExecutionCreateResultBlock",
2324 "identifier": "ResponseTextEditorCodeExecutionCreateResultBlock"
2325 })
2326 export type ResponseTextEditorCodeExecutionStrReplaceResultBlock = {
2327 readonly "lines": ReadonlyArray<string> | null
2328 readonly "new_lines": number | null
2329 readonly "new_start": number | null
2330 readonly "old_lines": number | null
2331 readonly "old_start": number | null
2332 readonly "type": "text_editor_code_execution_str_replace_result"
2333 }
2334 export const ResponseTextEditorCodeExecutionStrReplaceResultBlock = Schema.Struct({
2335 "lines": Schema.Union([Schema.Array(Schema.String), Schema.Null]).annotate({ "title": "Lines", "default": null }),
2336 "new_lines": Schema.Union([Schema.Number.check(Schema.isInt().annotate({ "expected": "an integer" })), Schema.Null])
2337 .annotate({ "title": "New Lines", "default": null }),
2338 "new_start": Schema.Union([Schema.Number.check(Schema.isInt().annotate({ "expected": "an integer" })), Schema.Null])
2339 .annotate({ "title": "New Start", "default": null }),
2340 "old_lines": Schema.Union([Schema.Number.check(Schema.isInt().annotate({ "expected": "an integer" })), Schema.Null])
2341 .annotate({ "title": "Old Lines", "default": null }),
2342 "old_start": Schema.Union([Schema.Number.check(Schema.isInt().annotate({ "expected": "an integer" })), Schema.Null])
2343 .annotate({ "title": "Old Start", "default": null }),
2344 "type": Schema.Literal("text_editor_code_execution_str_replace_result").annotate({
2345 "title": "Type",
2346 "default": "text_editor_code_execution_str_replace_result"
2347 })
2348 }).annotate({
2349 "title": "ResponseTextEditorCodeExecutionStrReplaceResultBlock",
2350 "identifier": "ResponseTextEditorCodeExecutionStrReplaceResultBlock"
2351 })
2352 export type ResponseToolReferenceBlock = { readonly "tool_name": string; readonly "type": "tool_reference" }
2353 export const ResponseToolReferenceBlock = Schema.Struct({
2354 "tool_name": Schema.String.annotate({ "title": "Tool Name" }).check(
2355 Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })
2356 ).check(Schema.isMaxCodePoints(256).annotate({ "expected": "a string with at most 256 code points" })).check(
2357 Schema.isPattern(new RegExp("^[a-zA-Z0-9_-]{1,256}$", "u")).annotate({
2358 "expected": "a string matching the RegExp ^[a-zA-Z0-9_-]{1,256}$"
2359 })
2360 ),
2361 "type": Schema.Literal("tool_reference").annotate({ "title": "Type", "default": "tool_reference" })
2362 }).annotate({ "title": "ResponseToolReferenceBlock", "identifier": "ResponseToolReferenceBlock" })
2363 export type ResponseContainerUploadBlock = { readonly "file_id": string; readonly "type": "container_upload" }
2364 export const ResponseContainerUploadBlock = Schema.Struct({
2365 "file_id": Schema.String.annotate({ "title": "File Id" }),
2366 "type": Schema.Literal("container_upload").annotate({ "title": "Type", "default": "container_upload" })
2367 }).annotate({
2368 "title": "ResponseContainerUploadBlock",
2369 "description": "Response model for a file uploaded to the container.",
2370 "identifier": "ResponseContainerUploadBlock"
2371 })
2372 export type StopReason =
2373 | "end_turn"
2374 | "max_tokens"
2375 | "stop_sequence"
2376 | "tool_use"
2377 | "pause_turn"
2378 | "refusal"
2379 | "model_context_window_exceeded"
2380 export const StopReason = Schema.Literals([
2381 "end_turn",
2382 "max_tokens",
2383 "stop_sequence",
2384 "tool_use",
2385 "pause_turn",
2386 "refusal",
2387 "model_context_window_exceeded"
2388 ]).annotate({ "identifier": "StopReason" })
2389 export type RefusalCategory = "cyber" | "bio" | "frontier_llm" | "reasoning_extraction" | "general_harms"
2390 export const RefusalCategory = Schema.Union([
2391 Schema.Literal("cyber").annotate({
2392 "description":
2393 "The request could enable cyber harm, such as malware or exploit development. Benign cybersecurity work can also trigger this category."
2394 }),
2395 Schema.Literal("bio").annotate({
2396 "description":
2397 "The request could enable biological harm, such as dangerous lab methods. Beneficial life sciences work can also trigger this category."
2398 }),
2399 Schema.Literal("frontier_llm").annotate({
2400 "description":
2401 "The request could assist the development of competing AI models, which is restricted under [Anthropic's commercial terms](https://www.anthropic.com/legal/commercial-terms). Benign machine learning work can also trigger this category."
2402 }),
2403 Schema.Literal("reasoning_extraction").annotate({
2404 "description":
2405 "The request asks the model to reproduce its internal reasoning in the response text. To get reasoning in a structured form instead, use [adaptive thinking](https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking)."
2406 }),
2407 Schema.Literal("general_harms").annotate({
2408 "description":
2409 "The request could be related to an area that was determined as harmful. Benign work might sometimes trigger this category."
2410 })
2411 ]).annotate({
2412 "title": "RefusalCategory",
2413 "description": "The policy category that triggered a refusal.",
2414 "identifier": "RefusalCategory"
2415 })
2416 export type CacheCreation = {
2417 readonly "ephemeral_1h_input_tokens": number
2418 readonly "ephemeral_5m_input_tokens": number
2419 }
2420 export const CacheCreation = Schema.Struct({
2421 "ephemeral_1h_input_tokens": Schema.Number.annotate({
2422 "title": "Ephemeral 1H Input Tokens",
2423 "description": "The number of input tokens used to create the 1 hour cache entry.",
2424 "default": 0
2425 }).check(Schema.isInt().annotate({ "expected": "an integer" })).check(
2426 Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })
2427 ),
2428 "ephemeral_5m_input_tokens": Schema.Number.annotate({
2429 "title": "Ephemeral 5M Input Tokens",
2430 "description": "The number of input tokens used to create the 5 minute cache entry.",
2431 "default": 0
2432 }).check(Schema.isInt().annotate({ "expected": "an integer" })).check(
2433 Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })
2434 )
2435 }).annotate({ "title": "CacheCreation", "identifier": "CacheCreation" })
2436 export type OutputTokensDetails = { readonly "thinking_tokens": number }
2437 export const OutputTokensDetails = Schema.Struct({
2438 "thinking_tokens": Schema.Number.annotate({
2439 "title": "Thinking Tokens",
2440 "description":
2441 "Number of output tokens the model generated as internal reasoning, including\nthe thinking-block delimiter tokens.\n\nReflects the raw reasoning the model produced, not the (possibly shorter)\nsummarized thinking text returned in the response body. Computed by\nre-tokenizing the raw reasoning text, so it may differ from the model's exact\ngeneration count by a small number of tokens. Always ≤ `output_tokens`;\n`output_tokens - thinking_tokens` approximates the non-reasoning output.",
2442 "default": 0
2443 }).check(Schema.isInt().annotate({ "expected": "an integer" })).check(
2444 Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })
2445 )
2446 }).annotate({ "title": "OutputTokensDetails", "identifier": "OutputTokensDetails" })
2447 export type ServerToolUsage = { readonly "web_fetch_requests": number; readonly "web_search_requests": number }
2448 export const ServerToolUsage = Schema.Struct({
2449 "web_fetch_requests": Schema.Number.annotate({
2450 "title": "Web Fetch Requests",
2451 "description": "The number of web fetch tool requests.",
2452 "default": 0
2453 }).check(Schema.isInt().annotate({ "expected": "an integer" })).check(
2454 Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })
2455 ),
2456 "web_search_requests": Schema.Number.annotate({
2457 "title": "Web Search Requests",
2458 "description": "The number of web search tool requests.",
2459 "default": 0
2460 }).check(Schema.isInt().annotate({ "expected": "an integer" })).check(
2461 Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })
2462 )
2463 }).annotate({ "title": "ServerToolUsage", "identifier": "ServerToolUsage" })
2464 export type CacheMissModelChanged = { readonly "cache_missed_input_tokens": number; readonly "type": "model_changed" }
2465 export const CacheMissModelChanged = Schema.Struct({
2466 "cache_missed_input_tokens": Schema.Number.annotate({
2467 "title": "Cache Missed Input Tokens",
2468 "description":
2469 "Approximate number of input tokens that would have been read from cache had the prefix matched the previous request."
2470 }).check(Schema.isInt().annotate({ "expected": "an integer" })),
2471 "type": Schema.Literal("model_changed").annotate({ "title": "Type", "default": "model_changed" })
2472 }).annotate({ "title": "CacheMissModelChanged", "identifier": "CacheMissModelChanged" })
2473 export type CacheMissSystemChanged = { readonly "cache_missed_input_tokens": number; readonly "type": "system_changed" }
2474 export const CacheMissSystemChanged = Schema.Struct({
2475 "cache_missed_input_tokens": Schema.Number.annotate({
2476 "title": "Cache Missed Input Tokens",
2477 "description":
2478 "Approximate number of input tokens that would have been read from cache had the prefix matched the previous request."
2479 }).check(Schema.isInt().annotate({ "expected": "an integer" })),
2480 "type": Schema.Literal("system_changed").annotate({ "title": "Type", "default": "system_changed" })
2481 }).annotate({ "title": "CacheMissSystemChanged", "identifier": "CacheMissSystemChanged" })
2482 export type CacheMissToolsChanged = { readonly "cache_missed_input_tokens": number; readonly "type": "tools_changed" }
2483 export const CacheMissToolsChanged = Schema.Struct({
2484 "cache_missed_input_tokens": Schema.Number.annotate({
2485 "title": "Cache Missed Input Tokens",
2486 "description":
2487 "Approximate number of input tokens that would have been read from cache had the prefix matched the previous request."
2488 }).check(Schema.isInt().annotate({ "expected": "an integer" })),
2489 "type": Schema.Literal("tools_changed").annotate({ "title": "Type", "default": "tools_changed" })
2490 }).annotate({ "title": "CacheMissToolsChanged", "identifier": "CacheMissToolsChanged" })
2491 export type CacheMissMessagesChanged = {
2492 readonly "cache_missed_input_tokens": number
2493 readonly "type": "messages_changed"
2494 }
2495 export const CacheMissMessagesChanged = Schema.Struct({
2496 "cache_missed_input_tokens": Schema.Number.annotate({
2497 "title": "Cache Missed Input Tokens",
2498 "description":
2499 "Approximate number of input tokens that would have been read from cache had the prefix matched the previous request."
2500 }).check(Schema.isInt().annotate({ "expected": "an integer" })),
2501 "type": Schema.Literal("messages_changed").annotate({ "title": "Type", "default": "messages_changed" })
2502 }).annotate({ "title": "CacheMissMessagesChanged", "identifier": "CacheMissMessagesChanged" })
2503 export type CacheMissPreviousMessageNotFound = { readonly "type": "previous_message_not_found" }
2504 export const CacheMissPreviousMessageNotFound = Schema.Struct({
2505 "type": Schema.Literal("previous_message_not_found").annotate({
2506 "title": "Type",
2507 "default": "previous_message_not_found"
2508 })
2509 }).annotate({ "title": "CacheMissPreviousMessageNotFound", "identifier": "CacheMissPreviousMessageNotFound" })
2510 export type CacheMissUnavailable = { readonly "type": "unavailable" }
2511 export const CacheMissUnavailable = Schema.Struct({
2512 "type": Schema.Literal("unavailable").annotate({ "title": "Type", "default": "unavailable" })
2513 }).annotate({ "title": "CacheMissUnavailable", "identifier": "CacheMissUnavailable" })
2514 export type ContainerSkill = {
2515 readonly "skill_id": string
2516 readonly "type": "anthropic" | "custom"
2517 readonly "version": string
2518 }
2519 export const ContainerSkill = Schema.Struct({
2520 "skill_id": Schema.String.annotate({ "title": "Skill Id", "description": "Skill ID" }).check(
2521 Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })
2522 ).check(Schema.isMaxCodePoints(64).annotate({ "expected": "a string with at most 64 code points" })),
2523 "type": Schema.Literals(["anthropic", "custom"]).annotate({
2524 "title": "Type",
2525 "description": "Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)"
2526 }),
2527 "version": Schema.String.annotate({
2528 "title": "Version",
2529 "description": "The resolved version: a skill version ID for custom skills."
2530 }).check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(
2531 Schema.isMaxCodePoints(64).annotate({ "expected": "a string with at most 64 code points" })
2532 )
2533 }).annotate({
2534 "title": "ContainerSkill",
2535 "description": "A skill that was loaded in a container (response model).",
2536 "identifier": "ContainerSkill"
2537 })
2538 export type InvalidRequestError = { readonly "message": string; readonly "type": "invalid_request_error" }
2539 export const InvalidRequestError = Schema.Struct({
2540 "message": Schema.String.annotate({ "title": "Message", "default": "Invalid request" }),
2541 "type": Schema.Literal("invalid_request_error").annotate({ "title": "Type", "default": "invalid_request_error" })
2542 }).annotate({ "title": "InvalidRequestError", "identifier": "InvalidRequestError" })
2543 export type AuthenticationError = { readonly "message": string; readonly "type": "authentication_error" }
2544 export const AuthenticationError = Schema.Struct({
2545 "message": Schema.String.annotate({ "title": "Message", "default": "Authentication error" }),
2546 "type": Schema.Literal("authentication_error").annotate({ "title": "Type", "default": "authentication_error" })
2547 }).annotate({ "title": "AuthenticationError", "identifier": "AuthenticationError" })
2548 export type BillingError = { readonly "message": string; readonly "type": "billing_error" }
2549 export const BillingError = Schema.Struct({
2550 "message": Schema.String.annotate({ "title": "Message", "default": "Billing error" }),
2551 "type": Schema.Literal("billing_error").annotate({ "title": "Type", "default": "billing_error" })
2552 }).annotate({ "title": "BillingError", "identifier": "BillingError" })
2553 export type PermissionError = { readonly "message": string; readonly "type": "permission_error" }
2554 export const PermissionError = Schema.Struct({
2555 "message": Schema.String.annotate({ "title": "Message", "default": "Permission denied" }),
2556 "type": Schema.Literal("permission_error").annotate({ "title": "Type", "default": "permission_error" })
2557 }).annotate({ "title": "PermissionError", "identifier": "PermissionError" })
2558 export type NotFoundError = { readonly "message": string; readonly "type": "not_found_error" }
2559 export const NotFoundError = Schema.Struct({
2560 "message": Schema.String.annotate({ "title": "Message", "default": "Not found" }),
2561 "type": Schema.Literal("not_found_error").annotate({ "title": "Type", "default": "not_found_error" })
2562 }).annotate({ "title": "NotFoundError", "identifier": "NotFoundError" })
2563 export type RateLimitError = { readonly "message": string; readonly "type": "rate_limit_error" }
2564 export const RateLimitError = Schema.Struct({
2565 "message": Schema.String.annotate({ "title": "Message", "default": "Rate limited" }),
2566 "type": Schema.Literal("rate_limit_error").annotate({ "title": "Type", "default": "rate_limit_error" })
2567 }).annotate({ "title": "RateLimitError", "identifier": "RateLimitError" })
2568 export type GatewayTimeoutError = { readonly "message": string; readonly "type": "timeout_error" }
2569 export const GatewayTimeoutError = Schema.Struct({
2570 "message": Schema.String.annotate({ "title": "Message", "default": "Request timeout" }),
2571 "type": Schema.Literal("timeout_error").annotate({ "title": "Type", "default": "timeout_error" })
2572 }).annotate({ "title": "GatewayTimeoutError", "identifier": "GatewayTimeoutError" })
2573 export type APIError = { readonly "message": string; readonly "type": "api_error" }
2574 export const APIError = Schema.Struct({
2575 "message": Schema.String.annotate({ "title": "Message", "default": "Internal server error" }),
2576 "type": Schema.Literal("api_error").annotate({ "title": "Type", "default": "api_error" })
2577 }).annotate({ "title": "APIError", "identifier": "APIError" })
2578 export type OverloadedError = { readonly "message": string; readonly "type": "overloaded_error" }
2579 export const OverloadedError = Schema.Struct({
2580 "message": Schema.String.annotate({ "title": "Message", "default": "Overloaded" }),
2581 "type": Schema.Literal("overloaded_error").annotate({ "title": "Type", "default": "overloaded_error" })
2582 }).annotate({ "title": "OverloadedError", "identifier": "OverloadedError" })
2583 export type AnthropicBeta =
2584 | string
2585 | "message-batches-2024-09-24"
2586 | "prompt-caching-2024-07-31"
2587 | "computer-use-2024-10-22"
2588 | "computer-use-2025-01-24"
2589 | "pdfs-2024-09-25"
2590 | "token-counting-2024-11-01"
2591 | "token-efficient-tools-2025-02-19"
2592 | "output-128k-2025-02-19"
2593 | "files-api-2025-04-14"
2594 | "mcp-client-2025-04-04"
2595 | "mcp-client-2025-11-20"
2596 | "dev-full-thinking-2025-05-14"
2597 | "interleaved-thinking-2025-05-14"
2598 | "code-execution-2025-05-22"
2599 | "extended-cache-ttl-2025-04-11"
2600 | "context-1m-2025-08-07"
2601 | "context-management-2025-06-27"
2602 | "model-context-window-exceeded-2025-08-26"
2603 | "skills-2025-10-02"
2604 | "fast-mode-2026-02-01"
2605 | "output-300k-2026-03-24"
2606 | "user-profiles-2026-03-24"
2607 | "user-profiles-2026-08-18"
2608 | "user-profiles-2026-09-04"
2609 | "advisor-tool-2026-03-01"
2610 | "managed-agents-2026-04-01"
2611 | "cache-diagnosis-2026-04-07"
2612 | "dreaming-2026-04-21"
2613 | "thinking-token-count-2026-05-13"
2614 | "server-side-fallback-2026-06-01"
2615 | "server-side-fallback-2026-07-01"
2616 | "fallback-credit-2026-06-01"
2617 | "fallback-credit-2026-07-01"
2618 | "agent-memory-2026-07-22"
2619 | "mid-conversation-tool-changes-2026-07-01"
2620 | "compact-2026-01-12"
2621 | "computer-use-2025-11-24"
2622 | "mcp-tunnels-2026-06-22"
2623 | "structured-outputs-2025-11-13"
2624 | "task-budgets-2026-03-13"
2625 | "thinking-display-updates-2026-08-18"
2626 | "ce-user-management-2026-07-13"
2627 | "mid-conversation-output-config-2026-07-01"
2628 | "thinking-binding-controls-2026-08-01"
2629 | "mid-conversation-system-clear-at-2026-08-21"
2630 | "compact-2026-09-04"
2631 | "inline-tools-2026-09-15"
2632 | "mcp-client-2026-09-15"
2633 | "ce-plugins-2026-09-01"
2634 | "spend-limit-reads-2026-09-26"
2635 | "telemetry-destinations-2026-08-11"
2636 export const AnthropicBeta = Schema.Union([
2637 Schema.String,
2638 Schema.Literals([
2639 "message-batches-2024-09-24",
2640 "prompt-caching-2024-07-31",
2641 "computer-use-2024-10-22",
2642 "computer-use-2025-01-24",
2643 "pdfs-2024-09-25",
2644 "token-counting-2024-11-01",
2645 "token-efficient-tools-2025-02-19",
2646 "output-128k-2025-02-19",
2647 "files-api-2025-04-14",
2648 "mcp-client-2025-04-04",
2649 "mcp-client-2025-11-20",
2650 "dev-full-thinking-2025-05-14",
2651 "interleaved-thinking-2025-05-14",
2652 "code-execution-2025-05-22",
2653 "extended-cache-ttl-2025-04-11",
2654 "context-1m-2025-08-07",
2655 "context-management-2025-06-27",
2656 "model-context-window-exceeded-2025-08-26",
2657 "skills-2025-10-02",
2658 "fast-mode-2026-02-01",
2659 "output-300k-2026-03-24",
2660 "user-profiles-2026-03-24",
2661 "user-profiles-2026-08-18",
2662 "user-profiles-2026-09-04",
2663 "advisor-tool-2026-03-01",
2664 "managed-agents-2026-04-01",
2665 "cache-diagnosis-2026-04-07",
2666 "dreaming-2026-04-21",
2667 "thinking-token-count-2026-05-13",
2668 "server-side-fallback-2026-06-01",
2669 "server-side-fallback-2026-07-01",
2670 "fallback-credit-2026-06-01",
2671 "fallback-credit-2026-07-01",
2672 "agent-memory-2026-07-22",
2673 "mid-conversation-tool-changes-2026-07-01",
2674 "compact-2026-01-12",
2675 "computer-use-2025-11-24",
2676 "mcp-tunnels-2026-06-22",
2677 "structured-outputs-2025-11-13",
2678 "task-budgets-2026-03-13",
2679 "thinking-display-updates-2026-08-18",
2680 "ce-user-management-2026-07-13",
2681 "mid-conversation-output-config-2026-07-01",
2682 "thinking-binding-controls-2026-08-01",
2683 "mid-conversation-system-clear-at-2026-08-21",
2684 "compact-2026-09-04",
2685 "inline-tools-2026-09-15",
2686 "mcp-client-2026-09-15",
2687 "ce-plugins-2026-09-01",
2688 "spend-limit-reads-2026-09-26",
2689 "telemetry-destinations-2026-08-11"
2690 ])
2691 ]).annotate({ "identifier": "AnthropicBeta" })
2692 export type CapabilitySupport = { readonly "supported": boolean }
2693 export const CapabilitySupport = Schema.Struct({
2694 "supported": Schema.Boolean.annotate({
2695 "title": "Supported",
2696 "description": "Whether this capability is supported by the model."
2697 })
2698 }).annotate({
2699 "title": "CapabilitySupport",
2700 "description": "Indicates whether a capability is supported.",
2701 "identifier": "CapabilitySupport"
2702 })
2703 export type ModelLine = "haiku" | "sonnet" | "opus" | "fable" | "mythos"
2704 export const ModelLine = Schema.Literals(["haiku", "sonnet", "opus", "fable", "mythos"]).annotate({
2705 "title": "ModelLine",
2706 "description": "A Claude model line, such as `opus` or `sonnet`. More lines may be added as new values.",
2707 "identifier": "ModelLine"
2708 })
2709 export type RequestCounts = {
2710 readonly "canceled": number
2711 readonly "errored": number
2712 readonly "expired": number
2713 readonly "processing": number
2714 readonly "succeeded": number
2715 }
2716 export const RequestCounts = Schema.Struct({
2717 "canceled": Schema.Number.annotate({
2718 "title": "Canceled",
2719 "description":
2720 "Number of requests in the Message Batch that have been canceled.\n\nThis is zero until processing of the entire Message Batch has ended.",
2721 "default": 0
2722 }).check(Schema.isInt().annotate({ "expected": "an integer" })),
2723 "errored": Schema.Number.annotate({
2724 "title": "Errored",
2725 "description":
2726 "Number of requests in the Message Batch that encountered an error.\n\nThis is zero until processing of the entire Message Batch has ended.",
2727 "default": 0
2728 }).check(Schema.isInt().annotate({ "expected": "an integer" })),
2729 "expired": Schema.Number.annotate({
2730 "title": "Expired",
2731 "description":
2732 "Number of requests in the Message Batch that have expired.\n\nThis is zero until processing of the entire Message Batch has ended.",
2733 "default": 0
2734 }).check(Schema.isInt().annotate({ "expected": "an integer" })),
2735 "processing": Schema.Number.annotate({
2736 "title": "Processing",
2737 "description": "Number of requests in the Message Batch that are processing.",
2738 "default": 0
2739 }).check(Schema.isInt().annotate({ "expected": "an integer" })),
2740 "succeeded": Schema.Number.annotate({
2741 "title": "Succeeded",
2742 "description":
2743 "Number of requests in the Message Batch that have completed successfully.\n\nThis is zero until processing of the entire Message Batch has ended.",
2744 "default": 0
2745 }).check(Schema.isInt().annotate({ "expected": "an integer" }))
2746 }).annotate({ "title": "RequestCounts", "identifier": "RequestCounts" })
2747 export type DeleteMessageBatchResponse = { readonly "id": string; readonly "type": "message_batch_deleted" }
2748 export const DeleteMessageBatchResponse = Schema.Struct({
2749 "id": Schema.String.annotate({ "title": "Id", "description": "ID of the Message Batch." }),
2750 "type": Schema.Literal("message_batch_deleted").annotate({
2751 "title": "Type",
2752 "description": "Deleted object type.\n\nFor Message Batches, this is always `\"message_batch_deleted\"`.",
2753 "default": "message_batch_deleted"
2754 })
2755 }).annotate({ "title": "DeleteMessageBatchResponse", "identifier": "DeleteMessageBatchResponse" })
2756 export type CountMessageTokensResponse = { readonly "input_tokens": number }
2757 export const CountMessageTokensResponse = Schema.Struct({
2758 "input_tokens": Schema.Number.annotate({
2759 "title": "Input Tokens",
2760 "description": "The total number of tokens across the provided list of messages, system prompt, and tools."
2761 }).check(Schema.isInt().annotate({ "expected": "an integer" }))
2762 }).annotate({ "title": "CountMessageTokensResponse", "identifier": "CountMessageTokensResponse" })
2763 export type FileMetadataSchema = {
2764 readonly "created_at": string
2765 readonly "downloadable"?: boolean
2766 readonly "expires_at"?: string | null
2767 readonly "filename": string
2768 readonly "id": string
2769 readonly "mime_type": string
2770 readonly "size_bytes": number
2771 readonly "type": "file"
2772 }
2773 export const FileMetadataSchema = Schema.Struct({
2774 "created_at": Schema.String.annotate({
2775 "title": "Created At",
2776 "description": "RFC 3339 datetime string representing when the file was created.",
2777 "format": "date-time"
2778 }),
2779 "downloadable": Schema.optionalKey(
2780 Schema.Boolean.annotate({
2781 "title": "Downloadable",
2782 "description": "Whether the file can be downloaded.",
2783 "default": false
2784 })
2785 ),
2786 "expires_at": Schema.optionalKey(
2787 Schema.Union([Schema.String.annotate({ "format": "date-time" }), Schema.Null]).annotate({
2788 "title": "Expires At",
2789 "description":
2790 "RFC 3339 datetime string representing when the file will expire and become unavailable for download. Null if the file does not expire. For files uploaded with `expires_in_seconds`, this is the upload time plus that value.",
2791 "default": null
2792 })
2793 ),
2794 "filename": Schema.String.annotate({ "title": "Filename", "description": "Original filename of the uploaded file." })
2795 .check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(
2796 Schema.isMaxCodePoints(500).annotate({ "expected": "a string with at most 500 code points" })
2797 ),
2798 "id": Schema.String.annotate({
2799 "title": "Id",
2800 "description": "Unique object identifier.\n\nThe format and length of IDs may change over time."
2801 }),
2802 "mime_type": Schema.String.annotate({ "title": "Mime Type", "description": "MIME type of the file." }).check(
2803 Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })
2804 ).check(Schema.isMaxCodePoints(255).annotate({ "expected": "a string with at most 255 code points" })),
2805 "size_bytes": Schema.Number.annotate({ "title": "Size Bytes", "description": "Size of the file in bytes." }).check(
2806 Schema.isInt().annotate({ "expected": "an integer" })
2807 ).check(Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })),
2808 "type": Schema.Literal("file").annotate({
2809 "title": "Type",
2810 "description": "Object type.\n\nFor files, this is always `\"file\"`."
2811 })
2812 }).annotate({ "title": "FileMetadataSchema", "identifier": "FileMetadataSchema" })
2813 export type __ClientMultipartFile = globalThis.File | globalThis.Blob
2814 export const __ClientMultipartFile = Schema.instanceOf(globalThis.Blob, { expected: "File | Blob" })
2815 export type FileDeleteResponse = { readonly "id": string; readonly "type"?: "file_deleted" }
2816 export const FileDeleteResponse = Schema.Struct({
2817 "id": Schema.String.annotate({ "title": "Id", "description": "ID of the deleted file." }),
2818 "type": Schema.optionalKey(
2819 Schema.Literal("file_deleted").annotate({
2820 "title": "Type",
2821 "description": "Deleted object type.\n\nFor file deletion, this is always `\"file_deleted\"`.",
2822 "default": "file_deleted"
2823 })
2824 )
2825 }).annotate({ "title": "FileDeleteResponse", "identifier": "FileDeleteResponse" })
2826 export type SkillSource = { readonly "type": "custom" | "anthropic" | "anthropic_example" | "plugin" }
2827 export const SkillSource = Schema.Struct({
2828 "type": Schema.Literals(["custom", "anthropic", "anthropic_example", "plugin"]).annotate({
2829 "title": "Type",
2830 "description":
2831 "Where the Skill comes from.\n\nPossible values:\n* `\"custom\"`: authored by the platform user; private to their workspace\n* `\"anthropic\"`: published by Anthropic; shared and read-only\n* `\"anthropic_example\"`: Anthropic-published sample Skill\n* `\"plugin\"`: resolved from an installed plugin"
2832 })
2833 }).annotate({ "title": "SkillSource", "identifier": "SkillSource" })
2834 export type DeletedSkill = { readonly "id": string; readonly "type": "skill_deleted" }
2835 export const DeletedSkill = Schema.Struct({
2836 "id": Schema.String.annotate({
2837 "title": "Id",
2838 "description": "Unique identifier for the skill.\n\nThe format and length of IDs may change over time."
2839 }),
2840 "type": Schema.Literal("skill_deleted").annotate({
2841 "title": "Type",
2842 "description": "Deleted object type.\n\nFor Skills, this is always `\"skill_deleted\"`.",
2843 "default": "skill_deleted"
2844 })
2845 }).annotate({ "title": "DeletedSkill", "identifier": "DeletedSkill" })
2846 export type SkillVersionResource = {
2847 readonly "created_at": string
2848 readonly "description": string
2849 readonly "id": string
2850 readonly "name": string
2851 readonly "skill_id": string
2852 readonly "type": "skill_version"
2853 }
2854 export const SkillVersionResource = Schema.Struct({
2855 "created_at": Schema.String.annotate({
2856 "title": "Created At",
2857 "description": "ISO 8601 timestamp of when the skill was created.",
2858 "format": "date-time"
2859 }),
2860 "description": Schema.String.annotate({
2861 "title": "Description",
2862 "description": "Description of the skill version.\n\nThis is extracted from the SKILL.md file in the skill upload."
2863 }),
2864 "id": Schema.String.annotate({
2865 "title": "Id",
2866 "description":
2867 "Unique identifier for this Skill Version. The id addresses the version in\npaths and pins it in references."
2868 }),
2869 "name": Schema.String.annotate({
2870 "title": "Name",
2871 "description":
2872 "The Skill's immutable kebab-case slug, set at creation from the first\nupload's SKILL.md frontmatter `name` (or its enclosing directory). Every\nlater upload must resolve to the same value. Also the top-level directory\nof the Skill's mounted files and the base name of a downloaded archive."
2873 }),
2874 "skill_id": Schema.String.annotate({
2875 "title": "Skill Id",
2876 "description": "Unique identifier for the skill.\n\nThe format and length of IDs may change over time."
2877 }),
2878 "type": Schema.Literal("skill_version").annotate({
2879 "title": "Type",
2880 "description": "Object type.\n\nFor Skill Versions, this is always `\"skill_version\"`.",
2881 "default": "skill_version"
2882 })
2883 }).annotate({ "title": "SkillVersion", "identifier": "SkillVersionResource" })
2884 export type DeletedSkillVersion = { readonly "id": string; readonly "type": "skill_version_deleted" }
2885 export const DeletedSkillVersion = Schema.Struct({
2886 "id": Schema.String.annotate({
2887 "title": "Id",
2888 "description":
2889 "Unique identifier for this Skill Version. The id addresses the version in\npaths and pins it in references."
2890 }),
2891 "type": Schema.Literal("skill_version_deleted").annotate({
2892 "title": "Type",
2893 "description": "Deleted object type.\n\nFor Skill Versions, this is always `\"skill_version_deleted\"`.",
2894 "default": "skill_version_deleted"
2895 })
2896 }).annotate({ "title": "DeletedSkillVersion", "identifier": "DeletedSkillVersion" })
2897 export type BetaCacheControlEphemeral = { readonly "ttl"?: "5m" | "1h"; readonly "type": "ephemeral" }
2898 export const BetaCacheControlEphemeral = Schema.Struct({
2899 "ttl": Schema.optionalKey(
2900 Schema.Literals(["5m", "1h"]).annotate({
2901 "title": "Ttl",
2902 "description":
2903 "The time-to-live for the cache control breakpoint.\n\nThis may be one the following values:\n- `5m`: 5 minutes\n- `1h`: 1 hour\n\nDefaults to `5m`. See [prompt caching pricing](https://platform.claude.com/docs/en/build-with-claude/prompt-caching) for details."
2904 })
2905 ),
2906 "type": Schema.Literal("ephemeral").annotate({ "title": "Type" })
2907 }).annotate({ "title": "CacheControlEphemeral", "identifier": "BetaCacheControlEphemeral" })
2908 export type BetaRequestCharLocationCitation = {
2909 readonly "cited_text": string
2910 readonly "document_index": number
2911 readonly "document_title": string | null
2912 readonly "end_char_index": number
2913 readonly "start_char_index": number
2914 readonly "type": "char_location"
2915 }
2916 export const BetaRequestCharLocationCitation = Schema.Struct({
2917 "cited_text": Schema.String.annotate({ "title": "Cited Text" }),
2918 "document_index": Schema.Number.annotate({ "title": "Document Index" }).check(
2919 Schema.isInt().annotate({ "expected": "an integer" })
2920 ).check(Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })),
2921 "document_title": Schema.Union([
2922 Schema.String.check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(
2923 Schema.isMaxCodePoints(500).annotate({ "expected": "a string with at most 500 code points" })
2924 ),
2925 Schema.Null
2926 ]).annotate({ "title": "Document Title" }),
2927 "end_char_index": Schema.Number.annotate({ "title": "End Char Index" }).check(
2928 Schema.isInt().annotate({ "expected": "an integer" })
2929 ),
2930 "start_char_index": Schema.Number.annotate({ "title": "Start Char Index" }).check(
2931 Schema.isInt().annotate({ "expected": "an integer" })
2932 ).check(Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })),
2933 "type": Schema.Literal("char_location").annotate({ "title": "Type" })
2934 }).annotate({ "title": "RequestCharLocationCitation", "identifier": "BetaRequestCharLocationCitation" })
2935 export type BetaRequestPageLocationCitation = {
2936 readonly "cited_text": string
2937 readonly "document_index": number
2938 readonly "document_title": string | null
2939 readonly "end_page_number": number
2940 readonly "start_page_number": number
2941 readonly "type": "page_location"
2942 }
2943 export const BetaRequestPageLocationCitation = Schema.Struct({
2944 "cited_text": Schema.String.annotate({ "title": "Cited Text" }),
2945 "document_index": Schema.Number.annotate({ "title": "Document Index" }).check(
2946 Schema.isInt().annotate({ "expected": "an integer" })
2947 ).check(Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })),
2948 "document_title": Schema.Union([
2949 Schema.String.check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(
2950 Schema.isMaxCodePoints(500).annotate({ "expected": "a string with at most 500 code points" })
2951 ),
2952 Schema.Null
2953 ]).annotate({ "title": "Document Title" }),
2954 "end_page_number": Schema.Number.annotate({ "title": "End Page Number" }).check(
2955 Schema.isInt().annotate({ "expected": "an integer" })
2956 ),
2957 "start_page_number": Schema.Number.annotate({ "title": "Start Page Number" }).check(
2958 Schema.isInt().annotate({ "expected": "an integer" })
2959 ).check(Schema.isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" })),
2960 "type": Schema.Literal("page_location").annotate({ "title": "Type" })
2961 }).annotate({ "title": "RequestPageLocationCitation", "identifier": "BetaRequestPageLocationCitation" })
2962 export type BetaRequestContentBlockLocationCitation = {
2963 readonly "cited_text": string
2964 readonly "document_index": number
2965 readonly "document_title": string | null
2966 readonly "end_block_index": number
2967 readonly "start_block_index": number
2968 readonly "type": "content_block_location"
2969 }
2970 export const BetaRequestContentBlockLocationCitation = Schema.Struct({
2971 "cited_text": Schema.String.annotate({
2972 "title": "Cited Text",
2973 "description":
2974 "The full text of the cited block range, concatenated.\n\nAlways equals the contents of `content[start_block_index:end_block_index]` joined together. The text block is the minimal citable unit; this field is never a substring of a single block. Not counted toward output tokens, and not counted toward input tokens when sent back in subsequent turns."
2975 }),
2976 "document_index": Schema.Number.annotate({ "title": "Document Index" }).check(
2977 Schema.isInt().annotate({ "expected": "an integer" })
2978 ).check(Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })),
2979 "document_title": Schema.Union([
2980 Schema.String.check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(
2981 Schema.isMaxCodePoints(500).annotate({ "expected": "a string with at most 500 code points" })
2982 ),
2983 Schema.Null
2984 ]).annotate({ "title": "Document Title" }),
2985 "end_block_index": Schema.Number.annotate({
2986 "title": "End Block Index",
2987 "description":
2988 "Exclusive 0-based end index of the cited block range in the source's `content` array.\n\nAlways greater than `start_block_index`; a single-block citation has `end_block_index = start_block_index + 1`."
2989 }).check(Schema.isInt().annotate({ "expected": "an integer" })),
2990 "start_block_index": Schema.Number.annotate({
2991 "title": "Start Block Index",
2992 "description": "0-based index of the first cited block in the source's `content` array."
2993 }).check(Schema.isInt().annotate({ "expected": "an integer" })).check(
2994 Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })
2995 ),
2996 "type": Schema.Literal("content_block_location").annotate({ "title": "Type" })
2997 }).annotate({ "title": "RequestContentBlockLocationCitation", "identifier": "BetaRequestContentBlockLocationCitation" })
2998 export type BetaRequestWebSearchResultLocationCitation = {
2999 readonly "cited_text": string
3000 readonly "encrypted_index": string
3001 readonly "title": string | null
3002 readonly "type": "web_search_result_location"
3003 readonly "url": string
3004 }
3005 export const BetaRequestWebSearchResultLocationCitation = Schema.Struct({
3006 "cited_text": Schema.String.annotate({ "title": "Cited Text" }),
3007 "encrypted_index": Schema.String.annotate({ "title": "Encrypted Index" }),
3008 "title": Schema.Union([
3009 Schema.String.check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(
3010 Schema.isMaxCodePoints(512).annotate({ "expected": "a string with at most 512 code points" })
3011 ),
3012 Schema.Null
3013 ]).annotate({ "title": "Title" }),
3014 "type": Schema.Literal("web_search_result_location").annotate({ "title": "Type" }),
3015 "url": Schema.String.annotate({ "title": "Url" }).check(
3016 Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })
3017 )
3018 }).annotate({
3019 "title": "RequestWebSearchResultLocationCitation",
3020 "identifier": "BetaRequestWebSearchResultLocationCitation"
3021 })
3022 export type BetaRequestSearchResultLocationCitation = {
3023 readonly "cited_text": string
3024 readonly "end_block_index": number
3025 readonly "search_result_index": number
3026 readonly "source": string
3027 readonly "start_block_index": number
3028 readonly "title": string | null
3029 readonly "type": "search_result_location"
3030 }
3031 export const BetaRequestSearchResultLocationCitation = Schema.Struct({
3032 "cited_text": Schema.String.annotate({
3033 "title": "Cited Text",
3034 "description":
3035 "The full text of the cited block range, concatenated.\n\nAlways equals the contents of `content[start_block_index:end_block_index]` joined together. The text block is the minimal citable unit; this field is never a substring of a single block. Not counted toward output tokens, and not counted toward input tokens when sent back in subsequent turns."
3036 }),
3037 "end_block_index": Schema.Number.annotate({
3038 "title": "End Block Index",
3039 "description":
3040 "Exclusive 0-based end index of the cited block range in the source's `content` array.\n\nAlways greater than `start_block_index`; a single-block citation has `end_block_index = start_block_index + 1`."
3041 }).check(Schema.isInt().annotate({ "expected": "an integer" })),
3042 "search_result_index": Schema.Number.annotate({
3043 "title": "Search Result Index",
3044 "description":
3045 "0-based index of the cited search result among all `search_result` content blocks in the request, in the order they appear across messages and tool results.\n\nCounted separately from `document_index`; server-side web search results are not included in this count."
3046 }).check(Schema.isInt().annotate({ "expected": "an integer" })).check(
3047 Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })
3048 ),
3049 "source": Schema.String.annotate({ "title": "Source" }),
3050 "start_block_index": Schema.Number.annotate({
3051 "title": "Start Block Index",
3052 "description": "0-based index of the first cited block in the source's `content` array."
3053 }).check(Schema.isInt().annotate({ "expected": "an integer" })).check(
3054 Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })
3055 ),
3056 "title": Schema.Union([Schema.String, Schema.Null]).annotate({ "title": "Title" }),
3057 "type": Schema.Literal("search_result_location").annotate({ "title": "Type" })
3058 }).annotate({ "title": "RequestSearchResultLocationCitation", "identifier": "BetaRequestSearchResultLocationCitation" })
3059 export type BetaBase64ImageSource = {
3060 readonly "data": string
3061 readonly "media_type": "image/jpeg" | "image/png" | "image/gif" | "image/webp"
3062 readonly "type": "base64"
3063 }
3064 export const BetaBase64ImageSource = Schema.Struct({
3065 "data": Schema.String.annotate({ "title": "Data", "format": "byte" }),
3066 "media_type": Schema.Literals(["image/jpeg", "image/png", "image/gif", "image/webp"]).annotate({
3067 "title": "Media Type"
3068 }),
3069 "type": Schema.Literal("base64").annotate({ "title": "Type" })
3070 }).annotate({ "title": "Base64ImageSource", "identifier": "BetaBase64ImageSource" })
3071 export type BetaURLImageSource = { readonly "type": "url"; readonly "url": string }
3072 export const BetaURLImageSource = Schema.Struct({
3073 "type": Schema.Literal("url").annotate({ "title": "Type" }),
3074 "url": Schema.String.annotate({ "title": "Url" })
3075 }).annotate({ "title": "URLImageSource", "identifier": "BetaURLImageSource" })
3076 export type BetaFileImageSource = { readonly "file_id": string; readonly "type": "file" }
3077 export const BetaFileImageSource = Schema.Struct({
3078 "file_id": Schema.String.annotate({ "title": "File Id" }),
3079 "type": Schema.Literal("file").annotate({ "title": "Type" })
3080 }).annotate({ "title": "FileImageSource", "identifier": "BetaFileImageSource" })
3081 export type BetaRequestImageTransformations = { readonly "oversized_image"?: "downsize" | "error" }
3082 export const BetaRequestImageTransformations = Schema.Struct({
3083 "oversized_image": Schema.optionalKey(
3084 Schema.Literals(["downsize", "error"]).annotate({
3085 "title": "Oversized Image",
3086 "description":
3087 "What the server does when this image exceeds the model's maximum image size. `\"downsize\"` (the default) scales the image down to fit, which changes the dimensions the model observes without telling you. `\"error\"` instead rejects the request with a 400 error naming the image's dimensions and the largest dimensions that fit, so you can scale the image deliberately — your image is never silently scaled down."
3088 })
3089 )
3090 }).annotate({
3091 "title": "RequestImageTransformations",
3092 "description":
3093 "Configures the transformations the server applies to this image before the model observes it. Each key names a condition the server transforms images for; its value selects the transformation applied. Omitted keys keep their default behavior, and an empty object is equivalent to omitting the field.",
3094 "identifier": "BetaRequestImageTransformations"
3095 })
3096 export type BetaRequestCitationsConfig = { readonly "enabled"?: boolean }
3097 export const BetaRequestCitationsConfig = Schema.Struct({
3098 "enabled": Schema.optionalKey(Schema.Boolean.annotate({ "title": "Enabled" }))
3099 }).annotate({ "title": "RequestCitationsConfig", "identifier": "BetaRequestCitationsConfig" })
3100 export type BetaBase64PDFSource = {
3101 readonly "data": string
3102 readonly "media_type": "application/pdf"
3103 readonly "type": "base64"
3104 }
3105 export const BetaBase64PDFSource = Schema.Struct({
3106 "data": Schema.String.annotate({ "title": "Data", "format": "byte" }),
3107 "media_type": Schema.Literal("application/pdf").annotate({ "title": "Media Type" }),
3108 "type": Schema.Literal("base64").annotate({ "title": "Type" })
3109 }).annotate({ "title": "Base64PDFSource", "identifier": "BetaBase64PDFSource" })
3110 export type BetaPlainTextSource = {
3111 readonly "data": string
3112 readonly "media_type": "text/plain"
3113 readonly "type": "text"
3114 }
3115 export const BetaPlainTextSource = Schema.Struct({
3116 "data": Schema.String.annotate({ "title": "Data" }),
3117 "media_type": Schema.Literal("text/plain").annotate({ "title": "Media Type" }),
3118 "type": Schema.Literal("text").annotate({ "title": "Type" })
3119 }).annotate({ "title": "PlainTextSource", "identifier": "BetaPlainTextSource" })
3120 export type BetaURLPDFSource = { readonly "type": "url"; readonly "url": string }
3121 export const BetaURLPDFSource = Schema.Struct({
3122 "type": Schema.Literal("url").annotate({ "title": "Type" }),
3123 "url": Schema.String.annotate({ "title": "Url" })
3124 }).annotate({ "title": "URLPDFSource", "identifier": "BetaURLPDFSource" })
3125 export type BetaFileDocumentSource = { readonly "file_id": string; readonly "type": "file" }
3126 export const BetaFileDocumentSource = Schema.Struct({
3127 "file_id": Schema.String.annotate({ "title": "File Id" }),
3128 "type": Schema.Literal("file").annotate({ "title": "Type" })
3129 }).annotate({ "title": "FileDocumentSource", "identifier": "BetaFileDocumentSource" })
3130 export type BetaRequestThinkingBlock = {
3131 readonly "signature": string
3132 readonly "thinking": string
3133 readonly "type": "thinking"
3134 }
3135 export const BetaRequestThinkingBlock = Schema.Struct({
3136 "signature": Schema.String.annotate({
3137 "title": "Signature",
3138 "description":
3139 "The `signature` value of this thinking block, exactly as returned by the API in a previous response. Used to verify that the block was generated by Claude.\n\nThinking blocks must be passed back unmodified and in their original order; a modified block results in a 400 `invalid_request_error`."
3140 }),
3141 "thinking": Schema.String.annotate({
3142 "title": "Thinking",
3143 "description": "The `thinking` text of this block as returned by the API."
3144 }),
3145 "type": Schema.Literal("thinking").annotate({ "title": "Type" })
3146 }).annotate({ "title": "RequestThinkingBlock", "identifier": "BetaRequestThinkingBlock" })
3147 export type BetaRequestRedactedThinkingBlock = { readonly "data": string; readonly "type": "redacted_thinking" }
3148 export const BetaRequestRedactedThinkingBlock = Schema.Struct({
3149 "data": Schema.String.annotate({
3150 "title": "Data",
3151 "description":
3152 "The `data` value of this redacted thinking block, exactly as returned by the API in a previous response. Opaque and encrypted; pass it back unchanged."
3153 }),
3154 "type": Schema.Literal("redacted_thinking").annotate({ "title": "Type" })
3155 }).annotate({ "title": "RequestRedactedThinkingBlock", "identifier": "BetaRequestRedactedThinkingBlock" })
3156 export type BetaDirectCaller = { readonly "type": "direct" }
3157 export const BetaDirectCaller = Schema.Struct({ "type": Schema.Literal("direct").annotate({ "title": "Type" }) })
3158 .annotate({
3159 "title": "DirectCaller",
3160 "description": "Tool invocation directly from the model.",
3161 "identifier": "BetaDirectCaller"
3162 })
3163 export type BetaServerToolCaller = { readonly "tool_id": string; readonly "type": "code_execution_20250825" }
3164 export const BetaServerToolCaller = Schema.Struct({
3165 "tool_id": Schema.String.annotate({ "title": "Tool Id" }).check(
3166 Schema.isPattern(new RegExp("^srvtoolu_[a-zA-Z0-9_]+$", "u")).annotate({
3167 "expected": "a string matching the RegExp ^srvtoolu_[a-zA-Z0-9_]+$"
3168 })
3169 ),
3170 "type": Schema.Literal("code_execution_20250825").annotate({ "title": "Type" })
3171 }).annotate({
3172 "title": "ServerToolCaller",
3173 "description": "Tool invocation generated by a server-side tool.",
3174 "identifier": "BetaServerToolCaller"
3175 })
3176 export type BetaServerToolCaller_20260120 = { readonly "tool_id": string; readonly "type": "code_execution_20260120" }
3177 export const BetaServerToolCaller_20260120 = Schema.Struct({
3178 "tool_id": Schema.String.annotate({ "title": "Tool Id" }).check(
3179 Schema.isPattern(new RegExp("^srvtoolu_[a-zA-Z0-9_]+$", "u")).annotate({
3180 "expected": "a string matching the RegExp ^srvtoolu_[a-zA-Z0-9_]+$"
3181 })
3182 ),
3183 "type": Schema.Literal("code_execution_20260120").annotate({ "title": "Type" })
3184 }).annotate({ "title": "ServerToolCaller_20260120", "identifier": "BetaServerToolCaller_20260120" })
3185 export type BetaBrowserStateChangeTabOpened = { readonly "tab_id": string; readonly "type": "tab_opened" }
3186 export const BetaBrowserStateChangeTabOpened = Schema.Struct({
3187 "tab_id": Schema.String.annotate({
3188 "title": "Tab Id",
3189 "description": "The `tab_id` of the opened tab, present in `tabs`."
3190 }).check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(
3191 Schema.isMaxCodePoints(4096).annotate({ "expected": "a string with at most 4096 code points" })
3192 ).check(
3193 Schema.isPattern(new RegExp("^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$", "u")).annotate({
3194 "expected": "a string matching the RegExp ^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$"
3195 })
3196 ),
3197 "type": Schema.Literal("tab_opened").annotate({ "title": "Type" })
3198 }).annotate({
3199 "title": "BrowserStateChangeTabOpened",
3200 "description":
3201 "A tab this call's execution opened that remains open at its end —\nthe creation delta of the `tabs` inventory, not an event log.\n\nCarries only the `tab_id`; the tab's `title` and `url` live on its\n`tabs` entry, which must include the same `tab_id`. A tab opened\nduring a failed call gets no deferred `tab_opened`; it simply appears\nin the next result's `tabs` inventory.",
3202 "identifier": "BetaBrowserStateChangeTabOpened"
3203 })
3204 export type BetaBrowserStateChangeDownloadStarted = {
3205 readonly "download_id": string
3206 readonly "type": "download_started"
3207 readonly "url": string
3208 }
3209 export const BetaBrowserStateChangeDownloadStarted = Schema.Struct({
3210 "download_id": Schema.String.annotate({
3211 "title": "Download Id",
3212 "description": "The caller-assigned identifier for this download, stable across the state changes reporting it."
3213 }).check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(
3214 Schema.isMaxCodePoints(4096).annotate({ "expected": "a string with at most 4096 code points" })
3215 ).check(
3216 Schema.isPattern(new RegExp("^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$", "u")).annotate({
3217 "expected": "a string matching the RegExp ^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$"
3218 })
3219 ),
3220 "type": Schema.Literal("download_started").annotate({ "title": "Type" }),
3221 "url": Schema.String.annotate({
3222 "title": "Url",
3223 "description": "The final post-redirect URL the download was served from."
3224 }).check(Schema.isMaxCodePoints(4096).annotate({ "expected": "a string with at most 4096 code points" })).check(
3225 Schema.isPattern(new RegExp("^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$", "u")).annotate({
3226 "expected": "a string matching the RegExp ^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$"
3227 })
3228 )
3229 }).annotate({
3230 "title": "BrowserStateChangeDownloadStarted",
3231 "description": "A file download that started during this call.",
3232 "identifier": "BetaBrowserStateChangeDownloadStarted"
3233 })
3234 export type BetaBrowserStateChangeDownloadCompleted = {
3235 readonly "download_id": string
3236 readonly "path"?: string | null
3237 readonly "size_bytes"?: number | null
3238 readonly "type": "download_completed"
3239 readonly "url": string
3240 }
3241 export const BetaBrowserStateChangeDownloadCompleted = Schema.Struct({
3242 "download_id": Schema.String.annotate({
3243 "title": "Download Id",
3244 "description": "The caller-assigned identifier for this download, stable across the state changes reporting it."
3245 }).check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(
3246 Schema.isMaxCodePoints(4096).annotate({ "expected": "a string with at most 4096 code points" })
3247 ).check(
3248 Schema.isPattern(new RegExp("^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$", "u")).annotate({
3249 "expected": "a string matching the RegExp ^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$"
3250 })
3251 ),
3252 "path": Schema.optionalKey(
3253 Schema.Union([
3254 Schema.String.check(
3255 Schema.isMaxCodePoints(4096).annotate({ "expected": "a string with at most 4096 code points" })
3256 ).check(
3257 Schema.isPattern(new RegExp("^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$", "u")).annotate({
3258 "expected": "a string matching the RegExp ^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$",
3259 "title": "Path",
3260 "description":
3261 "Where the executor saved the file, on the executor's filesystem. Only included when another tool in the same environment can read the file at that path."
3262 })
3263 ),
3264 Schema.Null.annotate({
3265 "title": "Path",
3266 "description":
3267 "Where the executor saved the file, on the executor's filesystem. Only included when another tool in the same environment can read the file at that path."
3268 })
3269 ])
3270 ),
3271 "size_bytes": Schema.optionalKey(
3272 Schema.Union([
3273 Schema.Number.check(Schema.isInt().annotate({ "expected": "an integer" })).check(
3274 Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })
3275 ),
3276 Schema.Null
3277 ]).annotate({ "title": "Size Bytes", "description": "The completed download's size." })
3278 ),
3279 "type": Schema.Literal("download_completed").annotate({ "title": "Type" }),
3280 "url": Schema.String.annotate({
3281 "title": "Url",
3282 "description": "The final post-redirect URL the download was served from."
3283 }).check(Schema.isMaxCodePoints(4096).annotate({ "expected": "a string with at most 4096 code points" })).check(
3284 Schema.isPattern(new RegExp("^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$", "u")).annotate({
3285 "expected": "a string matching the RegExp ^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$"
3286 })
3287 )
3288 }).annotate({
3289 "title": "BrowserStateChangeDownloadCompleted",
3290 "description":
3291 "A file download that finished during this call, reported with the\nsame `download_id` as its `download_started` — or without a prior\n`download_started`, when the download finished during the call that\nstarted it (at most one state change per `download_id` per result).",
3292 "identifier": "BetaBrowserStateChangeDownloadCompleted"
3293 })
3294 export type BetaBrowserStateChangeDownloadFailed = {
3295 readonly "download_id": string
3296 readonly "error"?: string | null
3297 readonly "type": "download_failed"
3298 readonly "url": string
3299 }
3300 export const BetaBrowserStateChangeDownloadFailed = Schema.Struct({
3301 "download_id": Schema.String.annotate({
3302 "title": "Download Id",
3303 "description": "The caller-assigned identifier for this download, stable across the state changes reporting it."
3304 }).check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(
3305 Schema.isMaxCodePoints(4096).annotate({ "expected": "a string with at most 4096 code points" })
3306 ).check(
3307 Schema.isPattern(new RegExp("^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$", "u")).annotate({
3308 "expected": "a string matching the RegExp ^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$"
3309 })
3310 ),
3311 "error": Schema.optionalKey(
3312 Schema.Union([
3313 Schema.String.check(
3314 Schema.isMaxCodePoints(4096).annotate({ "expected": "a string with at most 4096 code points" })
3315 ).check(
3316 Schema.isPattern(new RegExp("^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$", "u")).annotate({
3317 "expected": "a string matching the RegExp ^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$",
3318 "title": "Error",
3319 "description": "The failure or cancellation detail, when known."
3320 })
3321 ),
3322 Schema.Null.annotate({ "title": "Error", "description": "The failure or cancellation detail, when known." })
3323 ])
3324 ),
3325 "type": Schema.Literal("download_failed").annotate({ "title": "Type" }),
3326 "url": Schema.String.annotate({
3327 "title": "Url",
3328 "description": "The final post-redirect URL the download was served from."
3329 }).check(Schema.isMaxCodePoints(4096).annotate({ "expected": "a string with at most 4096 code points" })).check(
3330 Schema.isPattern(new RegExp("^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$", "u")).annotate({
3331 "expected": "a string matching the RegExp ^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$"
3332 })
3333 )
3334 }).annotate({
3335 "title": "BrowserStateChangeDownloadFailed",
3336 "description": "A file download that failed — or was cancelled — during this call.",
3337 "identifier": "BetaBrowserStateChangeDownloadFailed"
3338 })
3339 export type BetaBrowserStateTabEntry = {
3340 readonly "active"?: boolean
3341 readonly "tab_id": string
3342 readonly "title": string
3343 readonly "url": string
3344 }
3345 export const BetaBrowserStateTabEntry = Schema.Struct({
3346 "active": Schema.optionalKey(
3347 Schema.Boolean.annotate({
3348 "title": "Active",
3349 "description":
3350 "Whether this tab is the active tab after this call. Whenever `tabs` is non-empty, exactly one entry is marked `active: true`."
3351 })
3352 ),
3353 "tab_id": Schema.String.annotate({
3354 "title": "Tab Id",
3355 "description": "The caller-assigned identifier for this tab, unique within the inventory."
3356 }).check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(
3357 Schema.isMaxCodePoints(4096).annotate({ "expected": "a string with at most 4096 code points" })
3358 ).check(
3359 Schema.isPattern(new RegExp("^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$", "u")).annotate({
3360 "expected": "a string matching the RegExp ^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$"
3361 })
3362 ),
3363 "title": Schema.String.annotate({
3364 "title": "Title",
3365 "description": "The title of the page the tab is showing. May be empty."
3366 }).check(Schema.isMaxCodePoints(4096).annotate({ "expected": "a string with at most 4096 code points" })).check(
3367 Schema.isPattern(new RegExp("^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$", "u")).annotate({
3368 "expected": "a string matching the RegExp ^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$"
3369 })
3370 ),
3371 "url": Schema.String.annotate({
3372 "title": "Url",
3373 "description": "The URL of the page the tab is showing. May be empty."
3374 }).check(Schema.isMaxCodePoints(4096).annotate({ "expected": "a string with at most 4096 code points" })).check(
3375 Schema.isPattern(new RegExp("^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$", "u")).annotate({
3376 "expected": "a string matching the RegExp ^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$"
3377 })
3378 )
3379 }).annotate({
3380 "title": "BrowserStateTabEntry",
3381 "description":
3382 "One open browser tab reported in a `browser_state` block's `tabs`\ninventory.\n\n`tab_id` is the caller-assigned identifier for the tab; `title` and\n`url` describe the page the tab is currently showing and may be empty\nstrings (a blank tab legitimately has both empty). `active` marks the\ntab that is active after this call; whenever `tabs` is non-empty,\nexactly one entry is marked.",
3383 "identifier": "BetaBrowserStateTabEntry"
3384 })
3385 export type BetaRequestWebSearchResultBlock = {
3386 readonly "encrypted_content": string
3387 readonly "page_age"?: string | null
3388 readonly "title": string
3389 readonly "type": "web_search_result"
3390 readonly "url": string
3391 }
3392 export const BetaRequestWebSearchResultBlock = Schema.Struct({
3393 "encrypted_content": Schema.String.annotate({ "title": "Encrypted Content" }),
3394 "page_age": Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]).annotate({ "title": "Page Age" })),
3395 "title": Schema.String.annotate({ "title": "Title" }),
3396 "type": Schema.Literal("web_search_result").annotate({ "title": "Type" }),
3397 "url": Schema.String.annotate({ "title": "Url" })
3398 }).annotate({ "title": "RequestWebSearchResultBlock", "identifier": "BetaRequestWebSearchResultBlock" })
3399 export type BetaWebSearchToolResultErrorCode =
3400 | "invalid_tool_input"
3401 | "unavailable"
3402 | "max_uses_exceeded"
3403 | "too_many_requests"
3404 | "query_too_long"
3405 | "request_too_large"
3406 export const BetaWebSearchToolResultErrorCode = Schema.Literals([
3407 "invalid_tool_input",
3408 "unavailable",
3409 "max_uses_exceeded",
3410 "too_many_requests",
3411 "query_too_long",
3412 "request_too_large"
3413 ]).annotate({ "title": "WebSearchToolResultErrorCode", "identifier": "BetaWebSearchToolResultErrorCode" })
3414 export type BetaWebFetchToolResultErrorCode =
3415 | "invalid_tool_input"
3416 | "url_too_long"
3417 | "url_not_allowed"
3418 | "url_not_in_prior_context"
3419 | "url_not_accessible"
3420 | "unsupported_content_type"
3421 | "too_many_requests"
3422 | "max_uses_exceeded"
3423 | "unavailable"
3424 | "content_too_large"
3425 export const BetaWebFetchToolResultErrorCode = Schema.Literals([
3426 "invalid_tool_input",
3427 "url_too_long",
3428 "url_not_allowed",
3429 "url_not_in_prior_context",
3430 "url_not_accessible",
3431 "unsupported_content_type",
3432 "too_many_requests",
3433 "max_uses_exceeded",
3434 "unavailable",
3435 "content_too_large"
3436 ]).annotate({ "title": "WebFetchToolResultErrorCode", "identifier": "BetaWebFetchToolResultErrorCode" })
3437 export type BetaAdvisorToolResultErrorCode =
3438 | "max_uses_exceeded"
3439 | "prompt_too_long"
3440 | "too_many_requests"
3441 | "overloaded"
3442 | "unavailable"
3443 | "execution_time_exceeded"
3444 | "model_not_found"
3445 export const BetaAdvisorToolResultErrorCode = Schema.Literals([
3446 "max_uses_exceeded",
3447 "prompt_too_long",
3448 "too_many_requests",
3449 "overloaded",
3450 "unavailable",
3451 "execution_time_exceeded",
3452 "model_not_found"
3453 ]).annotate({ "title": "AdvisorToolResultErrorCode", "identifier": "BetaAdvisorToolResultErrorCode" })
3454 export type BetaRequestAdvisorResultBlock = {
3455 readonly "stop_reason"?: string | null
3456 readonly "text": string
3457 readonly "type": "advisor_result"
3458 }
3459 export const BetaRequestAdvisorResultBlock = Schema.Struct({
3460 "stop_reason": Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]).annotate({ "title": "Stop Reason" })),
3461 "text": Schema.String.annotate({ "title": "Text" }),
3462 "type": Schema.Literal("advisor_result").annotate({ "title": "Type" })
3463 }).annotate({ "title": "RequestAdvisorResultBlock", "identifier": "BetaRequestAdvisorResultBlock" })
3464 export type BetaRequestAdvisorRedactedResultBlock = {
3465 readonly "encrypted_content": string
3466 readonly "stop_reason"?: string | null
3467 readonly "type": "advisor_redacted_result"
3468 }
3469 export const BetaRequestAdvisorRedactedResultBlock = Schema.Struct({
3470 "encrypted_content": Schema.String.annotate({
3471 "title": "Encrypted Content",
3472 "description": "Opaque blob produced by a prior response; must be round-tripped verbatim."
3473 }),
3474 "stop_reason": Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]).annotate({ "title": "Stop Reason" })),
3475 "type": Schema.Literal("advisor_redacted_result").annotate({ "title": "Type" })
3476 }).annotate({ "title": "RequestAdvisorRedactedResultBlock", "identifier": "BetaRequestAdvisorRedactedResultBlock" })
3477 export type BetaCodeExecutionToolResultErrorCode =
3478 | "invalid_tool_input"
3479 | "unavailable"
3480 | "too_many_requests"
3481 | "execution_time_exceeded"
3482 export const BetaCodeExecutionToolResultErrorCode = Schema.Literals([
3483 "invalid_tool_input",
3484 "unavailable",
3485 "too_many_requests",
3486 "execution_time_exceeded"
3487 ]).annotate({ "title": "CodeExecutionToolResultErrorCode", "identifier": "BetaCodeExecutionToolResultErrorCode" })
3488 export type BetaRequestCodeExecutionOutputBlock = {
3489 readonly "file_id": string
3490 readonly "type": "code_execution_output"
3491 }
3492 export const BetaRequestCodeExecutionOutputBlock = Schema.Struct({
3493 "file_id": Schema.String.annotate({ "title": "File Id" }),
3494 "type": Schema.Literal("code_execution_output").annotate({ "title": "Type" })
3495 }).annotate({ "title": "RequestCodeExecutionOutputBlock", "identifier": "BetaRequestCodeExecutionOutputBlock" })
3496 export type BetaBashCodeExecutionToolResultErrorCode =
3497 | "invalid_tool_input"
3498 | "unavailable"
3499 | "too_many_requests"
3500 | "execution_time_exceeded"
3501 | "output_file_too_large"
3502 export const BetaBashCodeExecutionToolResultErrorCode = Schema.Literals([
3503 "invalid_tool_input",
3504 "unavailable",
3505 "too_many_requests",
3506 "execution_time_exceeded",
3507 "output_file_too_large"
3508 ]).annotate({
3509 "title": "BashCodeExecutionToolResultErrorCode",
3510 "identifier": "BetaBashCodeExecutionToolResultErrorCode"
3511 })
3512 export type BetaRequestBashCodeExecutionOutputBlock = {
3513 readonly "file_id": string
3514 readonly "type": "bash_code_execution_output"
3515 }
3516 export const BetaRequestBashCodeExecutionOutputBlock = Schema.Struct({
3517 "file_id": Schema.String.annotate({ "title": "File Id" }),
3518 "type": Schema.Literal("bash_code_execution_output").annotate({ "title": "Type" })
3519 }).annotate({ "title": "RequestBashCodeExecutionOutputBlock", "identifier": "BetaRequestBashCodeExecutionOutputBlock" })
3520 export type BetaTextEditorCodeExecutionToolResultErrorCode =
3521 | "invalid_tool_input"
3522 | "unavailable"
3523 | "too_many_requests"
3524 | "execution_time_exceeded"
3525 | "file_not_found"
3526 export const BetaTextEditorCodeExecutionToolResultErrorCode = Schema.Literals([
3527 "invalid_tool_input",
3528 "unavailable",
3529 "too_many_requests",
3530 "execution_time_exceeded",
3531 "file_not_found"
3532 ]).annotate({
3533 "title": "TextEditorCodeExecutionToolResultErrorCode",
3534 "identifier": "BetaTextEditorCodeExecutionToolResultErrorCode"
3535 })
3536 export type BetaRequestTextEditorCodeExecutionViewResultBlock = {
3537 readonly "content": string
3538 readonly "file_type": "text" | "image" | "pdf"
3539 readonly "num_lines"?: number | null
3540 readonly "start_line"?: number | null
3541 readonly "total_lines"?: number | null
3542 readonly "type": "text_editor_code_execution_view_result"
3543 }
3544 export const BetaRequestTextEditorCodeExecutionViewResultBlock = Schema.Struct({
3545 "content": Schema.String.annotate({ "title": "Content" }),
3546 "file_type": Schema.Literals(["text", "image", "pdf"]).annotate({ "title": "File Type" }),
3547 "num_lines": Schema.optionalKey(
3548 Schema.Union([Schema.Number.check(Schema.isInt().annotate({ "expected": "an integer" })), Schema.Null]).annotate({
3549 "title": "Num Lines"
3550 })
3551 ),
3552 "start_line": Schema.optionalKey(
3553 Schema.Union([Schema.Number.check(Schema.isInt().annotate({ "expected": "an integer" })), Schema.Null]).annotate({
3554 "title": "Start Line"
3555 })
3556 ),
3557 "total_lines": Schema.optionalKey(
3558 Schema.Union([Schema.Number.check(Schema.isInt().annotate({ "expected": "an integer" })), Schema.Null]).annotate({
3559 "title": "Total Lines"
3560 })
3561 ),
3562 "type": Schema.Literal("text_editor_code_execution_view_result").annotate({ "title": "Type" })
3563 }).annotate({
3564 "title": "RequestTextEditorCodeExecutionViewResultBlock",
3565 "identifier": "BetaRequestTextEditorCodeExecutionViewResultBlock"
3566 })
3567 export type BetaRequestTextEditorCodeExecutionCreateResultBlock = {
3568 readonly "is_file_update": boolean
3569 readonly "type": "text_editor_code_execution_create_result"
3570 }
3571 export const BetaRequestTextEditorCodeExecutionCreateResultBlock = Schema.Struct({
3572 "is_file_update": Schema.Boolean.annotate({ "title": "Is File Update" }),
3573 "type": Schema.Literal("text_editor_code_execution_create_result").annotate({ "title": "Type" })
3574 }).annotate({
3575 "title": "RequestTextEditorCodeExecutionCreateResultBlock",
3576 "identifier": "BetaRequestTextEditorCodeExecutionCreateResultBlock"
3577 })
3578 export type BetaRequestTextEditorCodeExecutionStrReplaceResultBlock = {
3579 readonly "lines"?: ReadonlyArray<string> | null
3580 readonly "new_lines"?: number | null
3581 readonly "new_start"?: number | null
3582 readonly "old_lines"?: number | null
3583 readonly "old_start"?: number | null
3584 readonly "type": "text_editor_code_execution_str_replace_result"
3585 }
3586 export const BetaRequestTextEditorCodeExecutionStrReplaceResultBlock = Schema.Struct({
3587 "lines": Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null]).annotate({ "title": "Lines" })),
3588 "new_lines": Schema.optionalKey(
3589 Schema.Union([Schema.Number.check(Schema.isInt().annotate({ "expected": "an integer" })), Schema.Null]).annotate({
3590 "title": "New Lines"
3591 })
3592 ),
3593 "new_start": Schema.optionalKey(
3594 Schema.Union([Schema.Number.check(Schema.isInt().annotate({ "expected": "an integer" })), Schema.Null]).annotate({
3595 "title": "New Start"
3596 })
3597 ),
3598 "old_lines": Schema.optionalKey(
3599 Schema.Union([Schema.Number.check(Schema.isInt().annotate({ "expected": "an integer" })), Schema.Null]).annotate({
3600 "title": "Old Lines"
3601 })
3602 ),
3603 "old_start": Schema.optionalKey(
3604 Schema.Union([Schema.Number.check(Schema.isInt().annotate({ "expected": "an integer" })), Schema.Null]).annotate({
3605 "title": "Old Start"
3606 })
3607 ),
3608 "type": Schema.Literal("text_editor_code_execution_str_replace_result").annotate({ "title": "Type" })
3609 }).annotate({
3610 "title": "RequestTextEditorCodeExecutionStrReplaceResultBlock",
3611 "identifier": "BetaRequestTextEditorCodeExecutionStrReplaceResultBlock"
3612 })
3613 export type BetaToolSearchToolResultErrorCode =
3614 | "invalid_tool_input"
3615 | "unavailable"
3616 | "too_many_requests"
3617 | "execution_time_exceeded"
3618 export const BetaToolSearchToolResultErrorCode = Schema.Literals([
3619 "invalid_tool_input",
3620 "unavailable",
3621 "too_many_requests",
3622 "execution_time_exceeded"
3623 ]).annotate({ "title": "ToolSearchToolResultErrorCode", "identifier": "BetaToolSearchToolResultErrorCode" })
3624 export type BetaToolChangeToolReference = { readonly "name": string; readonly "type": "tool_reference" }
3625 export const BetaToolChangeToolReference = Schema.Struct({
3626 "name": Schema.String.annotate({ "title": "Name" }).check(
3627 Schema.isPattern(new RegExp("^[a-zA-Z0-9_-]{1,128}$", "u")).annotate({
3628 "expected": "a string matching the RegExp ^[a-zA-Z0-9_-]{1,128}$"
3629 })
3630 ),
3631 "type": Schema.Literal("tool_reference").annotate({ "title": "Type" })
3632 }).annotate({
3633 "title": "ToolChangeToolReference",
3634 "description":
3635 "Reference to a single tool, by the name the model uses to call it: a\ntool declared in ``tools`` or defined by an earlier ``tool_addition``\nblock. Does not accept the composed ``{server}_{name}`` form the server\nassigns to MCP-resolved tools; use ``mcp_tool_reference`` or\n``mcp_toolset_reference`` for those.",
3636 "identifier": "BetaToolChangeToolReference"
3637 })
3638 export type BetaToolChangeMCPToolReference = {
3639 readonly "name": string
3640 readonly "server_name": string
3641 readonly "type": "mcp_tool_reference"
3642 }
3643 export const BetaToolChangeMCPToolReference = Schema.Struct({
3644 "name": Schema.String.annotate({ "title": "Name" }),
3645 "server_name": Schema.String.annotate({ "title": "Server Name" }),
3646 "type": Schema.Literal("mcp_tool_reference").annotate({ "title": "Type" })
3647 }).annotate({
3648 "title": "ToolChangeMCPToolReference",
3649 "description":
3650 "Reference to a single MCP tool by its server and remote name; the\nsame ``server_name``/``name`` pair ``mcp_tool_use`` carries.",
3651 "identifier": "BetaToolChangeMCPToolReference"
3652 })
3653 export type BetaToolChangeMCPToolsetReference = {
3654 readonly "server_name": string
3655 readonly "type": "mcp_toolset_reference"
3656 }
3657 export const BetaToolChangeMCPToolsetReference = Schema.Struct({
3658 "server_name": Schema.String.annotate({ "title": "Server Name" }),
3659 "type": Schema.Literal("mcp_toolset_reference").annotate({ "title": "Type" })
3660 }).annotate({
3661 "title": "ToolChangeMCPToolsetReference",
3662 "description": "Reference to every tool in the named MCP server's toolset.",
3663 "identifier": "BetaToolChangeMCPToolsetReference"
3664 })
3665 export type BetaInputSchema = {
3666 readonly "properties"?: { readonly [x: string]: Schema.Json } | null
3667 readonly "required"?: ReadonlyArray<string> | null
3668 readonly "type": "object"
3669 } & { readonly [x: string]: Schema.Json }
3670 export const BetaInputSchema = Schema.StructWithRest(
3671 Schema.Struct({
3672 "properties": Schema.optionalKey(
3673 Schema.Union([Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" })), Schema.Null])
3674 .annotate({ "title": "Properties" })
3675 ),
3676 "required": Schema.optionalKey(
3677 Schema.Union([Schema.Array(Schema.String), Schema.Null]).annotate({ "title": "Required" })
3678 ),
3679 "type": Schema.Literal("object").annotate({ "title": "Type" })
3680 }),
3681 [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]
3682 ).annotate({ "title": "InputSchema", "identifier": "BetaInputSchema" })
3683 export type BetaAllowedCaller =
3684 | "direct"
3685 | "code_execution_20250825"
3686 | "code_execution_20260120"
3687 | "code_execution_20260521"
3688 export const BetaAllowedCaller = Schema.Literals([
3689 "direct",
3690 "code_execution_20250825",
3691 "code_execution_20260120",
3692 "code_execution_20260521"
3693 ]).annotate({
3694 "title": "AllowedCaller",
3695 "description":
3696 "Specifies who can invoke a tool.\n\nValues:\n direct: The model can call this tool directly.\n code_execution_20250825: The tool can be called from the code execution environment (v1).\n code_execution_20260120: The tool can be called from the code execution environment (v2 with persistence).\n code_execution_20260521: The tool can be called from the code execution environment (v2 with persistence).",
3697 "identifier": "BetaAllowedCaller"
3698 })
3699 export type BetaJsonValue = unknown
3700 export const BetaJsonValue = Schema.Unknown
3701 export type BetaBrowserCloseTabConfig = {
3702 readonly "defer_loading"?: boolean | null
3703 readonly "enabled"?: boolean | null
3704 }
3705 export const BetaBrowserCloseTabConfig = Schema.Struct({
3706 "defer_loading": Schema.optionalKey(
3707 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
3708 "title": "Defer Loading",
3709 "description":
3710 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
3711 })
3712 ),
3713 "enabled": Schema.optionalKey(
3714 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
3715 "title": "Enabled",
3716 "description":
3717 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
3718 })
3719 )
3720 }).annotate({
3721 "title": "BrowserCloseTabConfig",
3722 "description": "``close_tab``'s config overrides.",
3723 "identifier": "BetaBrowserCloseTabConfig"
3724 })
3725 export type BetaBrowserDoubleClickConfig = {
3726 readonly "defer_loading"?: boolean | null
3727 readonly "enabled"?: boolean | null
3728 }
3729 export const BetaBrowserDoubleClickConfig = Schema.Struct({
3730 "defer_loading": Schema.optionalKey(
3731 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
3732 "title": "Defer Loading",
3733 "description":
3734 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
3735 })
3736 ),
3737 "enabled": Schema.optionalKey(
3738 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
3739 "title": "Enabled",
3740 "description":
3741 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
3742 })
3743 )
3744 }).annotate({
3745 "title": "BrowserDoubleClickConfig",
3746 "description": "``double_click``'s config overrides.",
3747 "identifier": "BetaBrowserDoubleClickConfig"
3748 })
3749 export type BetaBrowserFileUploadConfig = {
3750 readonly "defer_loading"?: boolean | null
3751 readonly "enabled"?: boolean | null
3752 }
3753 export const BetaBrowserFileUploadConfig = Schema.Struct({
3754 "defer_loading": Schema.optionalKey(
3755 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
3756 "title": "Defer Loading",
3757 "description":
3758 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
3759 })
3760 ),
3761 "enabled": Schema.optionalKey(
3762 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
3763 "title": "Enabled",
3764 "description":
3765 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
3766 })
3767 )
3768 }).annotate({
3769 "title": "BrowserFileUploadConfig",
3770 "description": "``file_upload``'s config overrides.",
3771 "identifier": "BetaBrowserFileUploadConfig"
3772 })
3773 export type BetaBrowserFindConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
3774 export const BetaBrowserFindConfig = Schema.Struct({
3775 "defer_loading": Schema.optionalKey(
3776 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
3777 "title": "Defer Loading",
3778 "description":
3779 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
3780 })
3781 ),
3782 "enabled": Schema.optionalKey(
3783 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
3784 "title": "Enabled",
3785 "description":
3786 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
3787 })
3788 )
3789 }).annotate({
3790 "title": "BrowserFindConfig",
3791 "description": "``find``'s config overrides.",
3792 "identifier": "BetaBrowserFindConfig"
3793 })
3794 export type BetaBrowserFormInputConfig = {
3795 readonly "defer_loading"?: boolean | null
3796 readonly "enabled"?: boolean | null
3797 }
3798 export const BetaBrowserFormInputConfig = Schema.Struct({
3799 "defer_loading": Schema.optionalKey(
3800 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
3801 "title": "Defer Loading",
3802 "description":
3803 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
3804 })
3805 ),
3806 "enabled": Schema.optionalKey(
3807 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
3808 "title": "Enabled",
3809 "description":
3810 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
3811 })
3812 )
3813 }).annotate({
3814 "title": "BrowserFormInputConfig",
3815 "description": "``form_input``'s config overrides.",
3816 "identifier": "BetaBrowserFormInputConfig"
3817 })
3818 export type BetaBrowserGetPageTextConfig = {
3819 readonly "defer_loading"?: boolean | null
3820 readonly "enabled"?: boolean | null
3821 }
3822 export const BetaBrowserGetPageTextConfig = Schema.Struct({
3823 "defer_loading": Schema.optionalKey(
3824 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
3825 "title": "Defer Loading",
3826 "description":
3827 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
3828 })
3829 ),
3830 "enabled": Schema.optionalKey(
3831 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
3832 "title": "Enabled",
3833 "description":
3834 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
3835 })
3836 )
3837 }).annotate({
3838 "title": "BrowserGetPageTextConfig",
3839 "description": "``get_page_text``'s config overrides.",
3840 "identifier": "BetaBrowserGetPageTextConfig"
3841 })
3842 export type BetaBrowserHoldKeyConfig = {
3843 readonly "defer_loading"?: boolean | null
3844 readonly "enabled"?: boolean | null
3845 }
3846 export const BetaBrowserHoldKeyConfig = Schema.Struct({
3847 "defer_loading": Schema.optionalKey(
3848 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
3849 "title": "Defer Loading",
3850 "description":
3851 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
3852 })
3853 ),
3854 "enabled": Schema.optionalKey(
3855 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
3856 "title": "Enabled",
3857 "description":
3858 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
3859 })
3860 )
3861 }).annotate({
3862 "title": "BrowserHoldKeyConfig",
3863 "description": "``hold_key``'s config overrides.",
3864 "identifier": "BetaBrowserHoldKeyConfig"
3865 })
3866 export type BetaBrowserHoverConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
3867 export const BetaBrowserHoverConfig = Schema.Struct({
3868 "defer_loading": Schema.optionalKey(
3869 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
3870 "title": "Defer Loading",
3871 "description":
3872 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
3873 })
3874 ),
3875 "enabled": Schema.optionalKey(
3876 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
3877 "title": "Enabled",
3878 "description":
3879 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
3880 })
3881 )
3882 }).annotate({
3883 "title": "BrowserHoverConfig",
3884 "description": "``hover``'s config overrides.",
3885 "identifier": "BetaBrowserHoverConfig"
3886 })
3887 export type BetaBrowserJavascriptExecConfig = {
3888 readonly "defer_loading"?: boolean | null
3889 readonly "enabled"?: boolean | null
3890 }
3891 export const BetaBrowserJavascriptExecConfig = Schema.Struct({
3892 "defer_loading": Schema.optionalKey(
3893 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
3894 "title": "Defer Loading",
3895 "description":
3896 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
3897 })
3898 ),
3899 "enabled": Schema.optionalKey(
3900 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
3901 "title": "Enabled",
3902 "description":
3903 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
3904 })
3905 )
3906 }).annotate({
3907 "title": "BrowserJavascriptExecConfig",
3908 "description": "``javascript_exec``'s config overrides.",
3909 "identifier": "BetaBrowserJavascriptExecConfig"
3910 })
3911 export type BetaBrowserKeyConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
3912 export const BetaBrowserKeyConfig = Schema.Struct({
3913 "defer_loading": Schema.optionalKey(
3914 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
3915 "title": "Defer Loading",
3916 "description":
3917 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
3918 })
3919 ),
3920 "enabled": Schema.optionalKey(
3921 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
3922 "title": "Enabled",
3923 "description":
3924 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
3925 })
3926 )
3927 }).annotate({
3928 "title": "BrowserKeyConfig",
3929 "description": "``key``'s config overrides.",
3930 "identifier": "BetaBrowserKeyConfig"
3931 })
3932 export type BetaBrowserLeftClickConfig = {
3933 readonly "defer_loading"?: boolean | null
3934 readonly "enabled"?: boolean | null
3935 }
3936 export const BetaBrowserLeftClickConfig = Schema.Struct({
3937 "defer_loading": Schema.optionalKey(
3938 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
3939 "title": "Defer Loading",
3940 "description":
3941 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
3942 })
3943 ),
3944 "enabled": Schema.optionalKey(
3945 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
3946 "title": "Enabled",
3947 "description":
3948 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
3949 })
3950 )
3951 }).annotate({
3952 "title": "BrowserLeftClickConfig",
3953 "description": "``left_click``'s config overrides.",
3954 "identifier": "BetaBrowserLeftClickConfig"
3955 })
3956 export type BetaBrowserLeftClickDragConfig = {
3957 readonly "defer_loading"?: boolean | null
3958 readonly "enabled"?: boolean | null
3959 }
3960 export const BetaBrowserLeftClickDragConfig = Schema.Struct({
3961 "defer_loading": Schema.optionalKey(
3962 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
3963 "title": "Defer Loading",
3964 "description":
3965 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
3966 })
3967 ),
3968 "enabled": Schema.optionalKey(
3969 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
3970 "title": "Enabled",
3971 "description":
3972 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
3973 })
3974 )
3975 }).annotate({
3976 "title": "BrowserLeftClickDragConfig",
3977 "description": "``left_click_drag``'s config overrides.",
3978 "identifier": "BetaBrowserLeftClickDragConfig"
3979 })
3980 export type BetaBrowserLeftMouseDownConfig = {
3981 readonly "defer_loading"?: boolean | null
3982 readonly "enabled"?: boolean | null
3983 }
3984 export const BetaBrowserLeftMouseDownConfig = Schema.Struct({
3985 "defer_loading": Schema.optionalKey(
3986 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
3987 "title": "Defer Loading",
3988 "description":
3989 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
3990 })
3991 ),
3992 "enabled": Schema.optionalKey(
3993 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
3994 "title": "Enabled",
3995 "description":
3996 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
3997 })
3998 )
3999 }).annotate({
4000 "title": "BrowserLeftMouseDownConfig",
4001 "description": "``left_mouse_down``'s config overrides.",
4002 "identifier": "BetaBrowserLeftMouseDownConfig"
4003 })
4004 export type BetaBrowserLeftMouseUpConfig = {
4005 readonly "defer_loading"?: boolean | null
4006 readonly "enabled"?: boolean | null
4007 }
4008 export const BetaBrowserLeftMouseUpConfig = Schema.Struct({
4009 "defer_loading": Schema.optionalKey(
4010 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4011 "title": "Defer Loading",
4012 "description":
4013 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4014 })
4015 ),
4016 "enabled": Schema.optionalKey(
4017 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4018 "title": "Enabled",
4019 "description":
4020 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4021 })
4022 )
4023 }).annotate({
4024 "title": "BrowserLeftMouseUpConfig",
4025 "description": "``left_mouse_up``'s config overrides.",
4026 "identifier": "BetaBrowserLeftMouseUpConfig"
4027 })
4028 export type BetaBrowserListTabsConfig = {
4029 readonly "defer_loading"?: boolean | null
4030 readonly "enabled"?: boolean | null
4031 }
4032 export const BetaBrowserListTabsConfig = Schema.Struct({
4033 "defer_loading": Schema.optionalKey(
4034 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4035 "title": "Defer Loading",
4036 "description":
4037 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4038 })
4039 ),
4040 "enabled": Schema.optionalKey(
4041 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4042 "title": "Enabled",
4043 "description":
4044 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4045 })
4046 )
4047 }).annotate({
4048 "title": "BrowserListTabsConfig",
4049 "description": "``list_tabs``'s config overrides.",
4050 "identifier": "BetaBrowserListTabsConfig"
4051 })
4052 export type BetaBrowserMiddleClickConfig = {
4053 readonly "defer_loading"?: boolean | null
4054 readonly "enabled"?: boolean | null
4055 }
4056 export const BetaBrowserMiddleClickConfig = Schema.Struct({
4057 "defer_loading": Schema.optionalKey(
4058 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4059 "title": "Defer Loading",
4060 "description":
4061 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4062 })
4063 ),
4064 "enabled": Schema.optionalKey(
4065 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4066 "title": "Enabled",
4067 "description":
4068 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4069 })
4070 )
4071 }).annotate({
4072 "title": "BrowserMiddleClickConfig",
4073 "description": "``middle_click``'s config overrides.",
4074 "identifier": "BetaBrowserMiddleClickConfig"
4075 })
4076 export type BetaBrowserMouseMoveConfig = {
4077 readonly "defer_loading"?: boolean | null
4078 readonly "enabled"?: boolean | null
4079 }
4080 export const BetaBrowserMouseMoveConfig = Schema.Struct({
4081 "defer_loading": Schema.optionalKey(
4082 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4083 "title": "Defer Loading",
4084 "description":
4085 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4086 })
4087 ),
4088 "enabled": Schema.optionalKey(
4089 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4090 "title": "Enabled",
4091 "description":
4092 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4093 })
4094 )
4095 }).annotate({
4096 "title": "BrowserMouseMoveConfig",
4097 "description": "``mouse_move``'s config overrides.",
4098 "identifier": "BetaBrowserMouseMoveConfig"
4099 })
4100 export type BetaBrowserNavigateConfig = {
4101 readonly "defer_loading"?: boolean | null
4102 readonly "enabled"?: boolean | null
4103 }
4104 export const BetaBrowserNavigateConfig = Schema.Struct({
4105 "defer_loading": Schema.optionalKey(
4106 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4107 "title": "Defer Loading",
4108 "description":
4109 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4110 })
4111 ),
4112 "enabled": Schema.optionalKey(
4113 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4114 "title": "Enabled",
4115 "description":
4116 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4117 })
4118 )
4119 }).annotate({
4120 "title": "BrowserNavigateConfig",
4121 "description": "``navigate``'s config overrides.",
4122 "identifier": "BetaBrowserNavigateConfig"
4123 })
4124 export type BetaBrowserNewTabConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
4125 export const BetaBrowserNewTabConfig = Schema.Struct({
4126 "defer_loading": Schema.optionalKey(
4127 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4128 "title": "Defer Loading",
4129 "description":
4130 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4131 })
4132 ),
4133 "enabled": Schema.optionalKey(
4134 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4135 "title": "Enabled",
4136 "description":
4137 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4138 })
4139 )
4140 }).annotate({
4141 "title": "BrowserNewTabConfig",
4142 "description": "``new_tab``'s config overrides.",
4143 "identifier": "BetaBrowserNewTabConfig"
4144 })
4145 export type BetaBrowserReadConsoleConfig = {
4146 readonly "defer_loading"?: boolean | null
4147 readonly "enabled"?: boolean | null
4148 }
4149 export const BetaBrowserReadConsoleConfig = Schema.Struct({
4150 "defer_loading": Schema.optionalKey(
4151 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4152 "title": "Defer Loading",
4153 "description":
4154 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4155 })
4156 ),
4157 "enabled": Schema.optionalKey(
4158 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4159 "title": "Enabled",
4160 "description":
4161 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4162 })
4163 )
4164 }).annotate({
4165 "title": "BrowserReadConsoleConfig",
4166 "description": "``read_console``'s config overrides.",
4167 "identifier": "BetaBrowserReadConsoleConfig"
4168 })
4169 export type BetaBrowserReadNetworkConfig = {
4170 readonly "defer_loading"?: boolean | null
4171 readonly "enabled"?: boolean | null
4172 }
4173 export const BetaBrowserReadNetworkConfig = Schema.Struct({
4174 "defer_loading": Schema.optionalKey(
4175 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4176 "title": "Defer Loading",
4177 "description":
4178 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4179 })
4180 ),
4181 "enabled": Schema.optionalKey(
4182 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4183 "title": "Enabled",
4184 "description":
4185 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4186 })
4187 )
4188 }).annotate({
4189 "title": "BrowserReadNetworkConfig",
4190 "description": "``read_network``'s config overrides.",
4191 "identifier": "BetaBrowserReadNetworkConfig"
4192 })
4193 export type BetaBrowserReadPageConfig = {
4194 readonly "defer_loading"?: boolean | null
4195 readonly "enabled"?: boolean | null
4196 }
4197 export const BetaBrowserReadPageConfig = Schema.Struct({
4198 "defer_loading": Schema.optionalKey(
4199 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4200 "title": "Defer Loading",
4201 "description":
4202 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4203 })
4204 ),
4205 "enabled": Schema.optionalKey(
4206 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4207 "title": "Enabled",
4208 "description":
4209 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4210 })
4211 )
4212 }).annotate({
4213 "title": "BrowserReadPageConfig",
4214 "description": "``read_page``'s config overrides.",
4215 "identifier": "BetaBrowserReadPageConfig"
4216 })
4217 export type BetaBrowserRightClickConfig = {
4218 readonly "defer_loading"?: boolean | null
4219 readonly "enabled"?: boolean | null
4220 }
4221 export const BetaBrowserRightClickConfig = Schema.Struct({
4222 "defer_loading": Schema.optionalKey(
4223 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4224 "title": "Defer Loading",
4225 "description":
4226 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4227 })
4228 ),
4229 "enabled": Schema.optionalKey(
4230 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4231 "title": "Enabled",
4232 "description":
4233 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4234 })
4235 )
4236 }).annotate({
4237 "title": "BrowserRightClickConfig",
4238 "description": "``right_click``'s config overrides.",
4239 "identifier": "BetaBrowserRightClickConfig"
4240 })
4241 export type BetaBrowserScreenshotConfig = {
4242 readonly "defer_loading"?: boolean | null
4243 readonly "enabled"?: boolean | null
4244 }
4245 export const BetaBrowserScreenshotConfig = Schema.Struct({
4246 "defer_loading": Schema.optionalKey(
4247 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4248 "title": "Defer Loading",
4249 "description":
4250 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4251 })
4252 ),
4253 "enabled": Schema.optionalKey(
4254 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4255 "title": "Enabled",
4256 "description":
4257 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4258 })
4259 )
4260 }).annotate({
4261 "title": "BrowserScreenshotConfig",
4262 "description": "``screenshot``'s config overrides.",
4263 "identifier": "BetaBrowserScreenshotConfig"
4264 })
4265 export type BetaBrowserScrollConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
4266 export const BetaBrowserScrollConfig = Schema.Struct({
4267 "defer_loading": Schema.optionalKey(
4268 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4269 "title": "Defer Loading",
4270 "description":
4271 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4272 })
4273 ),
4274 "enabled": Schema.optionalKey(
4275 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4276 "title": "Enabled",
4277 "description":
4278 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4279 })
4280 )
4281 }).annotate({
4282 "title": "BrowserScrollConfig",
4283 "description": "``scroll``'s config overrides.",
4284 "identifier": "BetaBrowserScrollConfig"
4285 })
4286 export type BetaBrowserScrollToConfig = {
4287 readonly "defer_loading"?: boolean | null
4288 readonly "enabled"?: boolean | null
4289 }
4290 export const BetaBrowserScrollToConfig = Schema.Struct({
4291 "defer_loading": Schema.optionalKey(
4292 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4293 "title": "Defer Loading",
4294 "description":
4295 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4296 })
4297 ),
4298 "enabled": Schema.optionalKey(
4299 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4300 "title": "Enabled",
4301 "description":
4302 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4303 })
4304 )
4305 }).annotate({
4306 "title": "BrowserScrollToConfig",
4307 "description": "``scroll_to``'s config overrides.",
4308 "identifier": "BetaBrowserScrollToConfig"
4309 })
4310 export type BetaBrowserSwitchTabConfig = {
4311 readonly "defer_loading"?: boolean | null
4312 readonly "enabled"?: boolean | null
4313 }
4314 export const BetaBrowserSwitchTabConfig = Schema.Struct({
4315 "defer_loading": Schema.optionalKey(
4316 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4317 "title": "Defer Loading",
4318 "description":
4319 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4320 })
4321 ),
4322 "enabled": Schema.optionalKey(
4323 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4324 "title": "Enabled",
4325 "description":
4326 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4327 })
4328 )
4329 }).annotate({
4330 "title": "BrowserSwitchTabConfig",
4331 "description": "``switch_tab``'s config overrides.",
4332 "identifier": "BetaBrowserSwitchTabConfig"
4333 })
4334 export type BetaBrowserTripleClickConfig = {
4335 readonly "defer_loading"?: boolean | null
4336 readonly "enabled"?: boolean | null
4337 }
4338 export const BetaBrowserTripleClickConfig = Schema.Struct({
4339 "defer_loading": Schema.optionalKey(
4340 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4341 "title": "Defer Loading",
4342 "description":
4343 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4344 })
4345 ),
4346 "enabled": Schema.optionalKey(
4347 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4348 "title": "Enabled",
4349 "description":
4350 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4351 })
4352 )
4353 }).annotate({
4354 "title": "BrowserTripleClickConfig",
4355 "description": "``triple_click``'s config overrides.",
4356 "identifier": "BetaBrowserTripleClickConfig"
4357 })
4358 export type BetaBrowserTypeConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
4359 export const BetaBrowserTypeConfig = Schema.Struct({
4360 "defer_loading": Schema.optionalKey(
4361 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4362 "title": "Defer Loading",
4363 "description":
4364 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4365 })
4366 ),
4367 "enabled": Schema.optionalKey(
4368 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4369 "title": "Enabled",
4370 "description":
4371 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4372 })
4373 )
4374 }).annotate({
4375 "title": "BrowserTypeConfig",
4376 "description": "``type``'s config overrides.",
4377 "identifier": "BetaBrowserTypeConfig"
4378 })
4379 export type BetaBrowserWaitConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
4380 export const BetaBrowserWaitConfig = Schema.Struct({
4381 "defer_loading": Schema.optionalKey(
4382 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4383 "title": "Defer Loading",
4384 "description":
4385 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4386 })
4387 ),
4388 "enabled": Schema.optionalKey(
4389 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4390 "title": "Enabled",
4391 "description":
4392 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4393 })
4394 )
4395 }).annotate({
4396 "title": "BrowserWaitConfig",
4397 "description": "``wait``'s config overrides.",
4398 "identifier": "BetaBrowserWaitConfig"
4399 })
4400 export type BetaBrowserZoomConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
4401 export const BetaBrowserZoomConfig = Schema.Struct({
4402 "defer_loading": Schema.optionalKey(
4403 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4404 "title": "Defer Loading",
4405 "description":
4406 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4407 })
4408 ),
4409 "enabled": Schema.optionalKey(
4410 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4411 "title": "Enabled",
4412 "description":
4413 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4414 })
4415 )
4416 }).annotate({
4417 "title": "BrowserZoomConfig",
4418 "description": "``zoom``'s config overrides.",
4419 "identifier": "BetaBrowserZoomConfig"
4420 })
4421 export type BetaComputerCursorPositionConfig = {
4422 readonly "defer_loading"?: boolean | null
4423 readonly "enabled"?: boolean | null
4424 }
4425 export const BetaComputerCursorPositionConfig = Schema.Struct({
4426 "defer_loading": Schema.optionalKey(
4427 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4428 "title": "Defer Loading",
4429 "description":
4430 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4431 })
4432 ),
4433 "enabled": Schema.optionalKey(
4434 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4435 "title": "Enabled",
4436 "description":
4437 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4438 })
4439 )
4440 }).annotate({
4441 "title": "ComputerCursorPositionConfig",
4442 "description": "``cursor_position``'s config overrides.",
4443 "identifier": "BetaComputerCursorPositionConfig"
4444 })
4445 export type BetaComputerDoubleClickConfig = {
4446 readonly "defer_loading"?: boolean | null
4447 readonly "enabled"?: boolean | null
4448 }
4449 export const BetaComputerDoubleClickConfig = Schema.Struct({
4450 "defer_loading": Schema.optionalKey(
4451 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4452 "title": "Defer Loading",
4453 "description":
4454 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4455 })
4456 ),
4457 "enabled": Schema.optionalKey(
4458 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4459 "title": "Enabled",
4460 "description":
4461 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4462 })
4463 )
4464 }).annotate({
4465 "title": "ComputerDoubleClickConfig",
4466 "description": "``double_click``'s config overrides.",
4467 "identifier": "BetaComputerDoubleClickConfig"
4468 })
4469 export type BetaComputerHoldKeyConfig = {
4470 readonly "defer_loading"?: boolean | null
4471 readonly "enabled"?: boolean | null
4472 }
4473 export const BetaComputerHoldKeyConfig = Schema.Struct({
4474 "defer_loading": Schema.optionalKey(
4475 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4476 "title": "Defer Loading",
4477 "description":
4478 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4479 })
4480 ),
4481 "enabled": Schema.optionalKey(
4482 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4483 "title": "Enabled",
4484 "description":
4485 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4486 })
4487 )
4488 }).annotate({
4489 "title": "ComputerHoldKeyConfig",
4490 "description": "``hold_key``'s config overrides.",
4491 "identifier": "BetaComputerHoldKeyConfig"
4492 })
4493 export type BetaComputerKeyConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
4494 export const BetaComputerKeyConfig = Schema.Struct({
4495 "defer_loading": Schema.optionalKey(
4496 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4497 "title": "Defer Loading",
4498 "description":
4499 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4500 })
4501 ),
4502 "enabled": Schema.optionalKey(
4503 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4504 "title": "Enabled",
4505 "description":
4506 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4507 })
4508 )
4509 }).annotate({
4510 "title": "ComputerKeyConfig",
4511 "description": "``key``'s config overrides.",
4512 "identifier": "BetaComputerKeyConfig"
4513 })
4514 export type BetaComputerLeftClickConfig = {
4515 readonly "defer_loading"?: boolean | null
4516 readonly "enabled"?: boolean | null
4517 }
4518 export const BetaComputerLeftClickConfig = Schema.Struct({
4519 "defer_loading": Schema.optionalKey(
4520 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4521 "title": "Defer Loading",
4522 "description":
4523 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4524 })
4525 ),
4526 "enabled": Schema.optionalKey(
4527 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4528 "title": "Enabled",
4529 "description":
4530 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4531 })
4532 )
4533 }).annotate({
4534 "title": "ComputerLeftClickConfig",
4535 "description": "``left_click``'s config overrides.",
4536 "identifier": "BetaComputerLeftClickConfig"
4537 })
4538 export type BetaComputerLeftClickDragConfig = {
4539 readonly "defer_loading"?: boolean | null
4540 readonly "enabled"?: boolean | null
4541 }
4542 export const BetaComputerLeftClickDragConfig = Schema.Struct({
4543 "defer_loading": Schema.optionalKey(
4544 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4545 "title": "Defer Loading",
4546 "description":
4547 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4548 })
4549 ),
4550 "enabled": Schema.optionalKey(
4551 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4552 "title": "Enabled",
4553 "description":
4554 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4555 })
4556 )
4557 }).annotate({
4558 "title": "ComputerLeftClickDragConfig",
4559 "description": "``left_click_drag``'s config overrides.",
4560 "identifier": "BetaComputerLeftClickDragConfig"
4561 })
4562 export type BetaComputerLeftMouseDownConfig = {
4563 readonly "defer_loading"?: boolean | null
4564 readonly "enabled"?: boolean | null
4565 }
4566 export const BetaComputerLeftMouseDownConfig = Schema.Struct({
4567 "defer_loading": Schema.optionalKey(
4568 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4569 "title": "Defer Loading",
4570 "description":
4571 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4572 })
4573 ),
4574 "enabled": Schema.optionalKey(
4575 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4576 "title": "Enabled",
4577 "description":
4578 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4579 })
4580 )
4581 }).annotate({
4582 "title": "ComputerLeftMouseDownConfig",
4583 "description": "``left_mouse_down``'s config overrides.",
4584 "identifier": "BetaComputerLeftMouseDownConfig"
4585 })
4586 export type BetaComputerLeftMouseUpConfig = {
4587 readonly "defer_loading"?: boolean | null
4588 readonly "enabled"?: boolean | null
4589 }
4590 export const BetaComputerLeftMouseUpConfig = Schema.Struct({
4591 "defer_loading": Schema.optionalKey(
4592 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4593 "title": "Defer Loading",
4594 "description":
4595 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4596 })
4597 ),
4598 "enabled": Schema.optionalKey(
4599 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4600 "title": "Enabled",
4601 "description":
4602 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4603 })
4604 )
4605 }).annotate({
4606 "title": "ComputerLeftMouseUpConfig",
4607 "description": "``left_mouse_up``'s config overrides.",
4608 "identifier": "BetaComputerLeftMouseUpConfig"
4609 })
4610 export type BetaComputerMiddleClickConfig = {
4611 readonly "defer_loading"?: boolean | null
4612 readonly "enabled"?: boolean | null
4613 }
4614 export const BetaComputerMiddleClickConfig = Schema.Struct({
4615 "defer_loading": Schema.optionalKey(
4616 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4617 "title": "Defer Loading",
4618 "description":
4619 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4620 })
4621 ),
4622 "enabled": Schema.optionalKey(
4623 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4624 "title": "Enabled",
4625 "description":
4626 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4627 })
4628 )
4629 }).annotate({
4630 "title": "ComputerMiddleClickConfig",
4631 "description": "``middle_click``'s config overrides.",
4632 "identifier": "BetaComputerMiddleClickConfig"
4633 })
4634 export type BetaComputerMouseMoveConfig = {
4635 readonly "defer_loading"?: boolean | null
4636 readonly "enabled"?: boolean | null
4637 }
4638 export const BetaComputerMouseMoveConfig = Schema.Struct({
4639 "defer_loading": Schema.optionalKey(
4640 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4641 "title": "Defer Loading",
4642 "description":
4643 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4644 })
4645 ),
4646 "enabled": Schema.optionalKey(
4647 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4648 "title": "Enabled",
4649 "description":
4650 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4651 })
4652 )
4653 }).annotate({
4654 "title": "ComputerMouseMoveConfig",
4655 "description": "``mouse_move``'s config overrides.",
4656 "identifier": "BetaComputerMouseMoveConfig"
4657 })
4658 export type BetaComputerRightClickConfig = {
4659 readonly "defer_loading"?: boolean | null
4660 readonly "enabled"?: boolean | null
4661 }
4662 export const BetaComputerRightClickConfig = Schema.Struct({
4663 "defer_loading": Schema.optionalKey(
4664 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4665 "title": "Defer Loading",
4666 "description":
4667 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4668 })
4669 ),
4670 "enabled": Schema.optionalKey(
4671 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4672 "title": "Enabled",
4673 "description":
4674 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4675 })
4676 )
4677 }).annotate({
4678 "title": "ComputerRightClickConfig",
4679 "description": "``right_click``'s config overrides.",
4680 "identifier": "BetaComputerRightClickConfig"
4681 })
4682 export type BetaComputerScreenshotConfig = {
4683 readonly "defer_loading"?: boolean | null
4684 readonly "enabled"?: boolean | null
4685 }
4686 export const BetaComputerScreenshotConfig = Schema.Struct({
4687 "defer_loading": Schema.optionalKey(
4688 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4689 "title": "Defer Loading",
4690 "description":
4691 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4692 })
4693 ),
4694 "enabled": Schema.optionalKey(
4695 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4696 "title": "Enabled",
4697 "description":
4698 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4699 })
4700 )
4701 }).annotate({
4702 "title": "ComputerScreenshotConfig",
4703 "description": "``screenshot``'s config overrides.",
4704 "identifier": "BetaComputerScreenshotConfig"
4705 })
4706 export type BetaComputerScrollConfig = {
4707 readonly "defer_loading"?: boolean | null
4708 readonly "enabled"?: boolean | null
4709 }
4710 export const BetaComputerScrollConfig = Schema.Struct({
4711 "defer_loading": Schema.optionalKey(
4712 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4713 "title": "Defer Loading",
4714 "description":
4715 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4716 })
4717 ),
4718 "enabled": Schema.optionalKey(
4719 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4720 "title": "Enabled",
4721 "description":
4722 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4723 })
4724 )
4725 }).annotate({
4726 "title": "ComputerScrollConfig",
4727 "description": "``scroll``'s config overrides.",
4728 "identifier": "BetaComputerScrollConfig"
4729 })
4730 export type BetaComputerTripleClickConfig = {
4731 readonly "defer_loading"?: boolean | null
4732 readonly "enabled"?: boolean | null
4733 }
4734 export const BetaComputerTripleClickConfig = Schema.Struct({
4735 "defer_loading": Schema.optionalKey(
4736 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4737 "title": "Defer Loading",
4738 "description":
4739 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4740 })
4741 ),
4742 "enabled": Schema.optionalKey(
4743 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4744 "title": "Enabled",
4745 "description":
4746 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4747 })
4748 )
4749 }).annotate({
4750 "title": "ComputerTripleClickConfig",
4751 "description": "``triple_click``'s config overrides.",
4752 "identifier": "BetaComputerTripleClickConfig"
4753 })
4754 export type BetaComputerTypeConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
4755 export const BetaComputerTypeConfig = Schema.Struct({
4756 "defer_loading": Schema.optionalKey(
4757 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4758 "title": "Defer Loading",
4759 "description":
4760 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4761 })
4762 ),
4763 "enabled": Schema.optionalKey(
4764 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4765 "title": "Enabled",
4766 "description":
4767 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4768 })
4769 )
4770 }).annotate({
4771 "title": "ComputerTypeConfig",
4772 "description": "``type``'s config overrides.",
4773 "identifier": "BetaComputerTypeConfig"
4774 })
4775 export type BetaComputerWaitConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
4776 export const BetaComputerWaitConfig = Schema.Struct({
4777 "defer_loading": Schema.optionalKey(
4778 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4779 "title": "Defer Loading",
4780 "description":
4781 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4782 })
4783 ),
4784 "enabled": Schema.optionalKey(
4785 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4786 "title": "Enabled",
4787 "description":
4788 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4789 })
4790 )
4791 }).annotate({
4792 "title": "ComputerWaitConfig",
4793 "description": "``wait``'s config overrides.",
4794 "identifier": "BetaComputerWaitConfig"
4795 })
4796 export type BetaComputerZoomConfig = { readonly "defer_loading"?: boolean | null; readonly "enabled"?: boolean | null }
4797 export const BetaComputerZoomConfig = Schema.Struct({
4798 "defer_loading": Schema.optionalKey(
4799 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4800 "title": "Defer Loading",
4801 "description":
4802 "Defer loading for this member. Must resolve to the same value on every enabled member of the toolset."
4803 })
4804 ),
4805 "enabled": Schema.optionalKey(
4806 Schema.Union([Schema.Boolean, Schema.Null]).annotate({
4807 "title": "Enabled",
4808 "description":
4809 "Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema."
4810 })
4811 )
4812 }).annotate({
4813 "title": "ComputerZoomConfig",
4814 "description": "``zoom``'s config overrides.",
4815 "identifier": "BetaComputerZoomConfig"
4816 })
4817 export type BetaUserLocation = {
4818 readonly "city"?: string | null
4819 readonly "country"?: string | null
4820 readonly "region"?: string | null
4821 readonly "timezone"?: string | null
4822 readonly "type": "approximate"
4823 }
4824 export const BetaUserLocation = Schema.Struct({
4825 "city": Schema.optionalKey(
4826 Schema.Union([
4827 Schema.String.check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(
4828 Schema.isMaxCodePoints(255).annotate({ "expected": "a string with at most 255 code points" })
4829 ),
4830 Schema.Null
4831 ]).annotate({ "title": "City", "description": "The city of the user." })
4832 ),
4833 "country": Schema.optionalKey(
4834 Schema.Union([
4835 Schema.String.check(Schema.isMinCodePoints(2).annotate({ "expected": "a string with at least 2 code points" }))
4836 .check(Schema.isMaxCodePoints(2).annotate({ "expected": "a string with at most 2 code points" })),
4837 Schema.Null
4838 ]).annotate({
4839 "title": "Country",
4840 "description": "The two letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the user."
4841 })
4842 ),
4843 "region": Schema.optionalKey(
4844 Schema.Union([
4845 Schema.String.check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(
4846 Schema.isMaxCodePoints(255).annotate({ "expected": "a string with at most 255 code points" })
4847 ),
4848 Schema.Null
4849 ]).annotate({ "title": "Region", "description": "The region of the user." })
4850 ),
4851 "timezone": Schema.optionalKey(
4852 Schema.Union([
4853 Schema.String.check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(
4854 Schema.isMaxCodePoints(255).annotate({ "expected": "a string with at most 255 code points" })
4855 ),
4856 Schema.Null
4857 ]).annotate({
4858 "title": "Timezone",
4859 "description": "The [IANA timezone](https://nodatime.org/TimeZones) of the user."
4860 })
4861 ),
4862 "type": Schema.Literal("approximate").annotate({ "title": "Type" })
4863 }).annotate({ "title": "UserLocation", "identifier": "BetaUserLocation" })
4864 export type BetaWebFetchUrlSourceAll = { readonly "type": "all" }
4865 export const BetaWebFetchUrlSourceAll = Schema.Struct({ "type": Schema.Literal("all").annotate({ "title": "Type" }) })
4866 .annotate({
4867 "title": "WebFetchUrlSourceAll",
4868 "description":
4869 "The ``url_sources`` variant under which a source contributes in\nfull: every result of the tool filter's source, or all user input.",
4870 "identifier": "BetaWebFetchUrlSourceAll"
4871 })
4872 export type BetaWebFetchUrlSourceNone = { readonly "type": "none" }
4873 export const BetaWebFetchUrlSourceNone = Schema.Struct({ "type": Schema.Literal("none").annotate({ "title": "Type" }) })
4874 .annotate({
4875 "title": "WebFetchUrlSourceNone",
4876 "description":
4877 "The ``url_sources`` variant under which a source contributes nothing:\nno result of the tool filter's source, or no user input.",
4878 "identifier": "BetaWebFetchUrlSourceNone"
4879 })
4880 export type BetaWebFetchUrlSourceToolReference = { readonly "name": string; readonly "type": "tool_reference" }
4881 export const BetaWebFetchUrlSourceToolReference = Schema.Struct({
4882 "name": Schema.String.annotate({ "title": "Name" }),
4883 "type": Schema.Literal("tool_reference").annotate({ "title": "Type" })
4884 }).annotate({
4885 "title": "WebFetchUrlSourceToolReference",
4886 "description": "One entry of a tool filter's ``tools``: it must name a tool declared\nin this request's ``tools[]``.",
4887 "identifier": "BetaWebFetchUrlSourceToolReference"
4888 })
4889 export type BetaMCPToolConfig = { readonly "defer_loading"?: boolean; readonly "enabled"?: boolean }
4890 export const BetaMCPToolConfig = Schema.Struct({
4891 "defer_loading": Schema.optionalKey(Schema.Boolean.annotate({ "title": "Defer Loading" })),
4892 "enabled": Schema.optionalKey(Schema.Boolean.annotate({ "title": "Enabled" }))
4893 }).annotate({
4894 "title": "MCPToolConfig",
4895 "description": "Configuration for a specific tool in an MCP toolset.",
4896 "identifier": "BetaMCPToolConfig"
4897 })
4898 export type BetaMCPToolDefaultConfig = { readonly "defer_loading"?: boolean; readonly "enabled"?: boolean }
4899 export const BetaMCPToolDefaultConfig = Schema.Struct({
4900 "defer_loading": Schema.optionalKey(Schema.Boolean.annotate({ "title": "Defer Loading" })),
4901 "enabled": Schema.optionalKey(Schema.Boolean.annotate({ "title": "Enabled" }))
4902 }).annotate({
4903 "title": "MCPToolDefaultConfig",
4904 "description": "Default configuration for tools in an MCP toolset.",
4905 "identifier": "BetaMCPToolDefaultConfig"
4906 })
4907 export type BetaEffortLevel = "low" | "medium" | "high" | "xhigh" | "max"
4908 export const BetaEffortLevel = Schema.Literals(["low", "medium", "high", "xhigh", "max"]).annotate({
4909 "title": "EffortLevel",
4910 "description": "All possible effort levels.",
4911 "identifier": "BetaEffortLevel"
4912 })
4913 export type BetaSummarizeCompaction = { readonly "instructions"?: string | null; readonly "type": "summarize" }
4914 export const BetaSummarizeCompaction = Schema.Struct({
4915 "instructions": Schema.optionalKey(
4916 Schema.Union([
4917 Schema.String.check(
4918 Schema.isMaxCodePoints(16384).annotate({ "expected": "a string with at most 16384 code points" })
4919 ),
4920 Schema.Null
4921 ]).annotate({
4922 "title": "Instructions",
4923 "description":
4924 "Replaces the server's default summarization prompt for this request. An empty or whitespace-only value counts as absent."
4925 })
4926 ),
4927 "type": Schema.Literal("summarize").annotate({ "title": "Type" })
4928 }).annotate({
4929 "title": "SummarizeCompaction",
4930 "description":
4931 "Compact the whole conversation and return a signed `compaction` block,\nalone, that a later request sends back first in `messages`, in place of\nthe messages it summarizes. There is no trigger and no pause flag: sending\nthe parameter compacts, and nothing is sampled after the block.\n\nThe summarization prompt is the server's own unless `instructions` are\ngiven, which then replace it for this request; a value that is empty or\nonly whitespace counts as absent.",
4932 "identifier": "BetaSummarizeCompaction"
4933 })
4934 export type BetaSkillParams = {
4935 readonly "skill_id": string
4936 readonly "type": "anthropic" | "custom"
4937 readonly "version"?: string
4938 }
4939 export const BetaSkillParams = Schema.Struct({
4940 "skill_id": Schema.String.annotate({ "title": "Skill Id", "description": "Skill ID" }).check(
4941 Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })
4942 ).check(Schema.isMaxCodePoints(64).annotate({ "expected": "a string with at most 64 code points" })),
4943 "type": Schema.Literals(["anthropic", "custom"]).annotate({
4944 "title": "Type",
4945 "description": "Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)"
4946 }),
4947 "version": Schema.optionalKey(
4948 Schema.String.annotate({ "title": "Version", "description": "Skill version or 'latest' for most recent version" })
4949 .check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(
4950 Schema.isMaxCodePoints(64).annotate({ "expected": "a string with at most 64 code points" })
4951 )
4952 )
4953 }).annotate({
4954 "title": "SkillParams",
4955 "description": "Specification for a skill to be loaded in a container (request model).",
4956 "identifier": "BetaSkillParams"
4957 })
4958 export type BetaInputTokensClearAtLeast = { readonly "type": "input_tokens"; readonly "value": number }
4959 export const BetaInputTokensClearAtLeast = Schema.Struct({
4960 "type": Schema.Literal("input_tokens").annotate({ "title": "Type" }),
4961 "value": Schema.Number.annotate({ "title": "Value" }).check(Schema.isInt().annotate({ "expected": "an integer" }))
4962 .check(Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" }))
4963 }).annotate({ "title": "InputTokensClearAtLeast", "identifier": "BetaInputTokensClearAtLeast" })
4964 export type BetaToolUsesKeep = { readonly "type": "tool_uses"; readonly "value": number }
4965 export const BetaToolUsesKeep = Schema.Struct({
4966 "type": Schema.Literal("tool_uses").annotate({ "title": "Type" }),
4967 "value": Schema.Number.annotate({ "title": "Value" }).check(Schema.isInt().annotate({ "expected": "an integer" }))
4968 .check(Schema.isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" }))
4969 }).annotate({ "title": "ToolUsesKeep", "identifier": "BetaToolUsesKeep" })
4970 export type BetaInputTokensTrigger = { readonly "type": "input_tokens"; readonly "value": number }
4971 export const BetaInputTokensTrigger = Schema.Struct({
4972 "type": Schema.Literal("input_tokens").annotate({ "title": "Type" }),
4973 "value": Schema.Number.annotate({ "title": "Value" }).check(Schema.isInt().annotate({ "expected": "an integer" }))
4974 .check(Schema.isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" }))
4975 }).annotate({ "title": "InputTokensTrigger", "identifier": "BetaInputTokensTrigger" })
4976 export type BetaToolUsesTrigger = { readonly "type": "tool_uses"; readonly "value": number }
4977 export const BetaToolUsesTrigger = Schema.Struct({
4978 "type": Schema.Literal("tool_uses").annotate({ "title": "Type" }),
4979 "value": Schema.Number.annotate({ "title": "Value" }).check(Schema.isInt().annotate({ "expected": "an integer" }))
4980 .check(Schema.isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" }))
4981 }).annotate({ "title": "ToolUsesTrigger", "identifier": "BetaToolUsesTrigger" })
4982 export type BetaThinkingTurns = { readonly "type": "thinking_turns"; readonly "value": number }
4983 export const BetaThinkingTurns = Schema.Struct({
4984 "type": Schema.Literal("thinking_turns").annotate({ "title": "Type" }),
4985 "value": Schema.Number.annotate({ "title": "Value" }).check(Schema.isInt().annotate({ "expected": "an integer" }))
4986 .check(Schema.isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" }))
4987 }).annotate({ "title": "ThinkingTurns", "identifier": "BetaThinkingTurns" })
4988 export type BetaAllThinkingTurns = { readonly "type": "all" }
4989 export const BetaAllThinkingTurns = Schema.Struct({ "type": Schema.Literal("all").annotate({ "title": "Type" }) })
4990 .annotate({ "title": "AllThinkingTurns", "identifier": "BetaAllThinkingTurns" })
4991 export type BetaDiagnosticsParam = { readonly "previous_message_id"?: string | null }
4992 export const BetaDiagnosticsParam = Schema.Struct({
4993 "previous_message_id": Schema.optionalKey(
4994 Schema.Union([
4995 Schema.String.check(
4996 Schema.isMaxCodePoints(256).annotate({ "expected": "a string with at most 256 code points" })
4997 ),
4998 Schema.Null
4999 ]).annotate({
5000 "title": "Previous Message Id",
Showing first 5,000 of 21,044 lines. View raw