@opencode/ai 0.0.0-dev-21915 → 0.0.0-dev-21922
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -2
- package/dist/cache-policy.d.ts +4 -0
- package/dist/cache-policy.js +20 -6
- package/dist/protocols/alibaba-chat.d.ts +4 -0
- package/dist/protocols/alibaba-messages.d.ts +19 -19
- package/dist/protocols/anthropic-messages.d.ts +59 -59
- package/dist/protocols/anthropic-messages.js +3 -5
- package/dist/protocols/bedrock-converse.d.ts +12 -12
- package/dist/protocols/meta-messages.d.ts +19 -19
- package/dist/protocols/meta-messages.js +2 -1
- package/dist/protocols/openai-chat.d.ts +585 -1
- package/dist/protocols/openai-chat.js +7 -2
- package/dist/protocols/openai-compatible-chat.d.ts +4 -0
- package/dist/protocols/openai-responses.d.ts +24 -0
- package/dist/protocols/openai-responses.js +5 -0
- package/dist/protocols/utils/bedrock-cache.d.ts +2 -2
- package/dist/protocols/utils/bedrock-cache.js +7 -6
- package/dist/protocols/utils/cache.d.ts +14 -3
- package/dist/protocols/utils/cache.js +11 -4
- package/dist/protocols/venice-chat.d.ts +3 -0
- package/dist/protocols/venice-chat.js +1 -1
- package/dist/protocols/zai-chat.d.ts +4 -0
- package/dist/protocols/zai-messages.d.ts +19 -19
- package/dist/providers/alibaba.d.ts +23 -19
- package/dist/providers/amazon-bedrock-mantle.d.ts +23 -19
- package/dist/providers/amazon-bedrock.d.ts +4 -4
- package/dist/providers/anthropic-compatible.d.ts +19 -19
- package/dist/providers/anthropic.d.ts +19 -19
- package/dist/providers/azure.d.ts +12 -0
- package/dist/providers/baseten.d.ts +8 -0
- package/dist/providers/cerebras.d.ts +8 -0
- package/dist/providers/cloudflare-ai-gateway.d.ts +54 -38
- package/dist/providers/cloudflare-workers-ai.d.ts +8 -0
- package/dist/providers/cohere.d.ts +8 -0
- package/dist/providers/deepinfra.d.ts +8 -0
- package/dist/providers/deepseek.d.ts +8 -0
- package/dist/providers/digitalocean.d.ts +12 -0
- package/dist/providers/fireworks.d.ts +8 -0
- package/dist/providers/google-vertex-chat.d.ts +4 -0
- package/dist/providers/google-vertex-messages.d.ts +19 -19
- package/dist/providers/groq.d.ts +8 -0
- package/dist/providers/meta.d.ts +23 -19
- package/dist/providers/minimax.d.ts +23 -19
- package/dist/providers/moonshot.d.ts +23 -19
- package/dist/providers/openai-compatible.d.ts +4 -0
- package/dist/providers/openai.d.ts +8 -0
- package/dist/providers/openrouter.d.ts +16 -0
- package/dist/providers/togetherai.d.ts +8 -0
- package/dist/providers/venice.d.ts +3 -0
- package/dist/providers/xai.d.ts +4 -0
- package/dist/providers/zai-coding-plan.d.ts +23 -19
- package/dist/providers/zai.d.ts +4 -0
- package/dist/schema/messages.d.ts +2 -2
- package/dist/schema/options.d.ts +5 -3
- package/dist/schema/options.js +8 -3
- package/dist/utils/media-type.js +4 -0
- package/package.json +3 -3
|
@@ -37,7 +37,7 @@ export declare const routes: Route<{
|
|
|
37
37
|
readonly text: string;
|
|
38
38
|
readonly cache_control?: {
|
|
39
39
|
readonly type: "ephemeral";
|
|
40
|
-
readonly ttl?:
|
|
40
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
41
41
|
} | undefined;
|
|
42
42
|
}[] | undefined;
|
|
43
43
|
readonly messages: readonly ({
|
|
@@ -47,7 +47,7 @@ export declare const routes: Route<{
|
|
|
47
47
|
readonly text: string;
|
|
48
48
|
readonly cache_control?: {
|
|
49
49
|
readonly type: "ephemeral";
|
|
50
|
-
readonly ttl?:
|
|
50
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
51
51
|
} | undefined;
|
|
52
52
|
} | {
|
|
53
53
|
readonly type: "image";
|
|
@@ -64,7 +64,7 @@ export declare const routes: Route<{
|
|
|
64
64
|
};
|
|
65
65
|
readonly cache_control?: {
|
|
66
66
|
readonly type: "ephemeral";
|
|
67
|
-
readonly ttl?:
|
|
67
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
68
68
|
} | undefined;
|
|
69
69
|
readonly transformations?: {
|
|
70
70
|
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
@@ -84,7 +84,7 @@ export declare const routes: Route<{
|
|
|
84
84
|
};
|
|
85
85
|
readonly cache_control?: {
|
|
86
86
|
readonly type: "ephemeral";
|
|
87
|
-
readonly ttl?:
|
|
87
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
88
88
|
} | undefined;
|
|
89
89
|
} | {
|
|
90
90
|
readonly type: "document";
|
|
@@ -105,7 +105,7 @@ export declare const routes: Route<{
|
|
|
105
105
|
};
|
|
106
106
|
readonly cache_control?: {
|
|
107
107
|
readonly type: "ephemeral";
|
|
108
|
-
readonly ttl?:
|
|
108
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
109
109
|
} | undefined;
|
|
110
110
|
readonly title?: string | undefined;
|
|
111
111
|
readonly context?: string | undefined;
|
|
@@ -120,7 +120,7 @@ export declare const routes: Route<{
|
|
|
120
120
|
readonly text: string;
|
|
121
121
|
readonly cache_control?: {
|
|
122
122
|
readonly type: "ephemeral";
|
|
123
|
-
readonly ttl?:
|
|
123
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
124
124
|
} | undefined;
|
|
125
125
|
} | {
|
|
126
126
|
readonly type: "image";
|
|
@@ -137,7 +137,7 @@ export declare const routes: Route<{
|
|
|
137
137
|
};
|
|
138
138
|
readonly cache_control?: {
|
|
139
139
|
readonly type: "ephemeral";
|
|
140
|
-
readonly ttl?:
|
|
140
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
141
141
|
} | undefined;
|
|
142
142
|
readonly transformations?: {
|
|
143
143
|
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
@@ -157,7 +157,7 @@ export declare const routes: Route<{
|
|
|
157
157
|
};
|
|
158
158
|
readonly cache_control?: {
|
|
159
159
|
readonly type: "ephemeral";
|
|
160
|
-
readonly ttl?:
|
|
160
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
161
161
|
} | undefined;
|
|
162
162
|
} | {
|
|
163
163
|
readonly type: "document";
|
|
@@ -178,7 +178,7 @@ export declare const routes: Route<{
|
|
|
178
178
|
};
|
|
179
179
|
readonly cache_control?: {
|
|
180
180
|
readonly type: "ephemeral";
|
|
181
|
-
readonly ttl?:
|
|
181
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
182
182
|
} | undefined;
|
|
183
183
|
readonly title?: string | undefined;
|
|
184
184
|
readonly context?: string | undefined;
|
|
@@ -189,7 +189,7 @@ export declare const routes: Route<{
|
|
|
189
189
|
readonly is_error?: boolean | undefined;
|
|
190
190
|
readonly cache_control?: {
|
|
191
191
|
readonly type: "ephemeral";
|
|
192
|
-
readonly ttl?:
|
|
192
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
193
193
|
} | undefined;
|
|
194
194
|
})[];
|
|
195
195
|
} | {
|
|
@@ -202,7 +202,7 @@ export declare const routes: Route<{
|
|
|
202
202
|
readonly text: string;
|
|
203
203
|
readonly cache_control?: {
|
|
204
204
|
readonly type: "ephemeral";
|
|
205
|
-
readonly ttl?:
|
|
205
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
206
206
|
} | undefined;
|
|
207
207
|
} | {
|
|
208
208
|
readonly type: "thinking";
|
|
@@ -210,14 +210,14 @@ export declare const routes: Route<{
|
|
|
210
210
|
readonly signature: string;
|
|
211
211
|
readonly cache_control?: {
|
|
212
212
|
readonly type: "ephemeral";
|
|
213
|
-
readonly ttl?:
|
|
213
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
214
214
|
} | undefined;
|
|
215
215
|
} | {
|
|
216
216
|
readonly type: "redacted_thinking";
|
|
217
217
|
readonly data: string;
|
|
218
218
|
readonly cache_control?: {
|
|
219
219
|
readonly type: "ephemeral";
|
|
220
|
-
readonly ttl?:
|
|
220
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
221
221
|
} | undefined;
|
|
222
222
|
} | {
|
|
223
223
|
readonly type: "tool_use";
|
|
@@ -226,7 +226,7 @@ export declare const routes: Route<{
|
|
|
226
226
|
readonly input: unknown;
|
|
227
227
|
readonly cache_control?: {
|
|
228
228
|
readonly type: "ephemeral";
|
|
229
|
-
readonly ttl?:
|
|
229
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
230
230
|
} | undefined;
|
|
231
231
|
} | {
|
|
232
232
|
readonly type: "server_tool_use";
|
|
@@ -235,7 +235,7 @@ export declare const routes: Route<{
|
|
|
235
235
|
readonly input: unknown;
|
|
236
236
|
readonly cache_control?: {
|
|
237
237
|
readonly type: "ephemeral";
|
|
238
|
-
readonly ttl?:
|
|
238
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
239
239
|
} | undefined;
|
|
240
240
|
} | {
|
|
241
241
|
readonly type: "code_execution_tool_result" | "web_fetch_tool_result" | "web_search_tool_result";
|
|
@@ -243,7 +243,7 @@ export declare const routes: Route<{
|
|
|
243
243
|
readonly content: unknown;
|
|
244
244
|
readonly cache_control?: {
|
|
245
245
|
readonly type: "ephemeral";
|
|
246
|
-
readonly ttl?:
|
|
246
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
247
247
|
} | undefined;
|
|
248
248
|
})[];
|
|
249
249
|
} | {
|
|
@@ -253,7 +253,7 @@ export declare const routes: Route<{
|
|
|
253
253
|
readonly text: string;
|
|
254
254
|
readonly cache_control?: {
|
|
255
255
|
readonly type: "ephemeral";
|
|
256
|
-
readonly ttl?:
|
|
256
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
257
257
|
} | undefined;
|
|
258
258
|
}[];
|
|
259
259
|
readonly output_config?: {
|
|
@@ -268,7 +268,7 @@ export declare const routes: Route<{
|
|
|
268
268
|
};
|
|
269
269
|
readonly cache_control?: {
|
|
270
270
|
readonly type: "ephemeral";
|
|
271
|
-
readonly ttl?:
|
|
271
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
272
272
|
} | undefined;
|
|
273
273
|
}[] | undefined;
|
|
274
274
|
readonly tool_choice?: {
|
|
@@ -312,7 +312,7 @@ export declare const routes: Route<{
|
|
|
312
312
|
} | undefined;
|
|
313
313
|
readonly cache_control?: {
|
|
314
314
|
readonly type: "ephemeral";
|
|
315
|
-
readonly ttl?:
|
|
315
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
316
316
|
} | undefined;
|
|
317
317
|
readonly container?: string | {
|
|
318
318
|
readonly id?: string | null | undefined;
|
package/dist/providers/groq.d.ts
CHANGED
|
@@ -142,6 +142,10 @@ export declare const protocol: Protocol<{
|
|
|
142
142
|
} | undefined;
|
|
143
143
|
readonly store?: boolean | undefined;
|
|
144
144
|
readonly prompt_cache_key?: string | undefined;
|
|
145
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
146
|
+
readonly prompt_cache_options?: {
|
|
147
|
+
readonly ttl?: string | undefined;
|
|
148
|
+
} | undefined;
|
|
145
149
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
146
150
|
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
147
151
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
@@ -356,6 +360,10 @@ export declare const route: Route<{
|
|
|
356
360
|
} | undefined;
|
|
357
361
|
readonly store?: boolean | undefined;
|
|
358
362
|
readonly prompt_cache_key?: string | undefined;
|
|
363
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
364
|
+
readonly prompt_cache_options?: {
|
|
365
|
+
readonly ttl?: string | undefined;
|
|
366
|
+
} | undefined;
|
|
359
367
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
360
368
|
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
361
369
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
package/dist/providers/meta.d.ts
CHANGED
|
@@ -339,6 +339,10 @@ export declare const routes: (Route<{
|
|
|
339
339
|
} | undefined;
|
|
340
340
|
readonly store?: boolean | undefined;
|
|
341
341
|
readonly prompt_cache_key?: string | undefined;
|
|
342
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
343
|
+
readonly prompt_cache_options?: {
|
|
344
|
+
readonly ttl?: string | undefined;
|
|
345
|
+
} | undefined;
|
|
342
346
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
343
347
|
readonly verbosity?: OpenString<"high" | "low" | "medium"> | undefined;
|
|
344
348
|
readonly service_tier?: OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
@@ -374,7 +378,7 @@ export declare const routes: (Route<{
|
|
|
374
378
|
readonly text: string;
|
|
375
379
|
readonly cache_control?: {
|
|
376
380
|
readonly type: "ephemeral";
|
|
377
|
-
readonly ttl?:
|
|
381
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
378
382
|
} | undefined;
|
|
379
383
|
}[] | undefined;
|
|
380
384
|
readonly messages: readonly ({
|
|
@@ -384,7 +388,7 @@ export declare const routes: (Route<{
|
|
|
384
388
|
readonly text: string;
|
|
385
389
|
readonly cache_control?: {
|
|
386
390
|
readonly type: "ephemeral";
|
|
387
|
-
readonly ttl?:
|
|
391
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
388
392
|
} | undefined;
|
|
389
393
|
} | {
|
|
390
394
|
readonly type: "image";
|
|
@@ -401,7 +405,7 @@ export declare const routes: (Route<{
|
|
|
401
405
|
};
|
|
402
406
|
readonly cache_control?: {
|
|
403
407
|
readonly type: "ephemeral";
|
|
404
|
-
readonly ttl?:
|
|
408
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
405
409
|
} | undefined;
|
|
406
410
|
readonly transformations?: {
|
|
407
411
|
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
@@ -421,7 +425,7 @@ export declare const routes: (Route<{
|
|
|
421
425
|
};
|
|
422
426
|
readonly cache_control?: {
|
|
423
427
|
readonly type: "ephemeral";
|
|
424
|
-
readonly ttl?:
|
|
428
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
425
429
|
} | undefined;
|
|
426
430
|
} | {
|
|
427
431
|
readonly type: "document";
|
|
@@ -442,7 +446,7 @@ export declare const routes: (Route<{
|
|
|
442
446
|
};
|
|
443
447
|
readonly cache_control?: {
|
|
444
448
|
readonly type: "ephemeral";
|
|
445
|
-
readonly ttl?:
|
|
449
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
446
450
|
} | undefined;
|
|
447
451
|
readonly title?: string | undefined;
|
|
448
452
|
readonly context?: string | undefined;
|
|
@@ -457,7 +461,7 @@ export declare const routes: (Route<{
|
|
|
457
461
|
readonly text: string;
|
|
458
462
|
readonly cache_control?: {
|
|
459
463
|
readonly type: "ephemeral";
|
|
460
|
-
readonly ttl?:
|
|
464
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
461
465
|
} | undefined;
|
|
462
466
|
} | {
|
|
463
467
|
readonly type: "image";
|
|
@@ -474,7 +478,7 @@ export declare const routes: (Route<{
|
|
|
474
478
|
};
|
|
475
479
|
readonly cache_control?: {
|
|
476
480
|
readonly type: "ephemeral";
|
|
477
|
-
readonly ttl?:
|
|
481
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
478
482
|
} | undefined;
|
|
479
483
|
readonly transformations?: {
|
|
480
484
|
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
@@ -494,7 +498,7 @@ export declare const routes: (Route<{
|
|
|
494
498
|
};
|
|
495
499
|
readonly cache_control?: {
|
|
496
500
|
readonly type: "ephemeral";
|
|
497
|
-
readonly ttl?:
|
|
501
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
498
502
|
} | undefined;
|
|
499
503
|
} | {
|
|
500
504
|
readonly type: "document";
|
|
@@ -515,7 +519,7 @@ export declare const routes: (Route<{
|
|
|
515
519
|
};
|
|
516
520
|
readonly cache_control?: {
|
|
517
521
|
readonly type: "ephemeral";
|
|
518
|
-
readonly ttl?:
|
|
522
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
519
523
|
} | undefined;
|
|
520
524
|
readonly title?: string | undefined;
|
|
521
525
|
readonly context?: string | undefined;
|
|
@@ -526,7 +530,7 @@ export declare const routes: (Route<{
|
|
|
526
530
|
readonly is_error?: boolean | undefined;
|
|
527
531
|
readonly cache_control?: {
|
|
528
532
|
readonly type: "ephemeral";
|
|
529
|
-
readonly ttl?:
|
|
533
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
530
534
|
} | undefined;
|
|
531
535
|
})[];
|
|
532
536
|
} | {
|
|
@@ -539,7 +543,7 @@ export declare const routes: (Route<{
|
|
|
539
543
|
readonly text: string;
|
|
540
544
|
readonly cache_control?: {
|
|
541
545
|
readonly type: "ephemeral";
|
|
542
|
-
readonly ttl?:
|
|
546
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
543
547
|
} | undefined;
|
|
544
548
|
} | {
|
|
545
549
|
readonly type: "thinking";
|
|
@@ -547,14 +551,14 @@ export declare const routes: (Route<{
|
|
|
547
551
|
readonly signature: string;
|
|
548
552
|
readonly cache_control?: {
|
|
549
553
|
readonly type: "ephemeral";
|
|
550
|
-
readonly ttl?:
|
|
554
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
551
555
|
} | undefined;
|
|
552
556
|
} | {
|
|
553
557
|
readonly type: "redacted_thinking";
|
|
554
558
|
readonly data: string;
|
|
555
559
|
readonly cache_control?: {
|
|
556
560
|
readonly type: "ephemeral";
|
|
557
|
-
readonly ttl?:
|
|
561
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
558
562
|
} | undefined;
|
|
559
563
|
} | {
|
|
560
564
|
readonly type: "tool_use";
|
|
@@ -563,7 +567,7 @@ export declare const routes: (Route<{
|
|
|
563
567
|
readonly input: unknown;
|
|
564
568
|
readonly cache_control?: {
|
|
565
569
|
readonly type: "ephemeral";
|
|
566
|
-
readonly ttl?:
|
|
570
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
567
571
|
} | undefined;
|
|
568
572
|
} | {
|
|
569
573
|
readonly type: "server_tool_use";
|
|
@@ -572,7 +576,7 @@ export declare const routes: (Route<{
|
|
|
572
576
|
readonly input: unknown;
|
|
573
577
|
readonly cache_control?: {
|
|
574
578
|
readonly type: "ephemeral";
|
|
575
|
-
readonly ttl?:
|
|
579
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
576
580
|
} | undefined;
|
|
577
581
|
} | {
|
|
578
582
|
readonly type: "code_execution_tool_result" | "web_fetch_tool_result" | "web_search_tool_result";
|
|
@@ -580,7 +584,7 @@ export declare const routes: (Route<{
|
|
|
580
584
|
readonly content: unknown;
|
|
581
585
|
readonly cache_control?: {
|
|
582
586
|
readonly type: "ephemeral";
|
|
583
|
-
readonly ttl?:
|
|
587
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
584
588
|
} | undefined;
|
|
585
589
|
})[];
|
|
586
590
|
} | {
|
|
@@ -590,7 +594,7 @@ export declare const routes: (Route<{
|
|
|
590
594
|
readonly text: string;
|
|
591
595
|
readonly cache_control?: {
|
|
592
596
|
readonly type: "ephemeral";
|
|
593
|
-
readonly ttl?:
|
|
597
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
594
598
|
} | undefined;
|
|
595
599
|
}[];
|
|
596
600
|
readonly output_config?: {
|
|
@@ -638,7 +642,7 @@ export declare const routes: (Route<{
|
|
|
638
642
|
} | undefined;
|
|
639
643
|
readonly cache_control?: {
|
|
640
644
|
readonly type: "ephemeral";
|
|
641
|
-
readonly ttl?:
|
|
645
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
642
646
|
} | undefined;
|
|
643
647
|
readonly container?: string | {
|
|
644
648
|
readonly id?: string | null | undefined;
|
|
@@ -670,7 +674,7 @@ export declare const routes: (Route<{
|
|
|
670
674
|
};
|
|
671
675
|
readonly cache_control?: {
|
|
672
676
|
readonly type: "ephemeral";
|
|
673
|
-
readonly ttl?:
|
|
677
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
674
678
|
} | undefined;
|
|
675
679
|
})[] | undefined;
|
|
676
680
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>)[];
|
|
@@ -51,7 +51,7 @@ export declare const routes: (Route<{
|
|
|
51
51
|
readonly text: string;
|
|
52
52
|
readonly cache_control?: {
|
|
53
53
|
readonly type: "ephemeral";
|
|
54
|
-
readonly ttl?:
|
|
54
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
55
55
|
} | undefined;
|
|
56
56
|
}[] | undefined;
|
|
57
57
|
readonly messages: readonly ({
|
|
@@ -61,7 +61,7 @@ export declare const routes: (Route<{
|
|
|
61
61
|
readonly text: string;
|
|
62
62
|
readonly cache_control?: {
|
|
63
63
|
readonly type: "ephemeral";
|
|
64
|
-
readonly ttl?:
|
|
64
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
65
65
|
} | undefined;
|
|
66
66
|
} | {
|
|
67
67
|
readonly type: "image";
|
|
@@ -78,7 +78,7 @@ export declare const routes: (Route<{
|
|
|
78
78
|
};
|
|
79
79
|
readonly cache_control?: {
|
|
80
80
|
readonly type: "ephemeral";
|
|
81
|
-
readonly ttl?:
|
|
81
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
82
82
|
} | undefined;
|
|
83
83
|
readonly transformations?: {
|
|
84
84
|
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
@@ -98,7 +98,7 @@ export declare const routes: (Route<{
|
|
|
98
98
|
};
|
|
99
99
|
readonly cache_control?: {
|
|
100
100
|
readonly type: "ephemeral";
|
|
101
|
-
readonly ttl?:
|
|
101
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
102
102
|
} | undefined;
|
|
103
103
|
} | {
|
|
104
104
|
readonly type: "document";
|
|
@@ -119,7 +119,7 @@ export declare const routes: (Route<{
|
|
|
119
119
|
};
|
|
120
120
|
readonly cache_control?: {
|
|
121
121
|
readonly type: "ephemeral";
|
|
122
|
-
readonly ttl?:
|
|
122
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
123
123
|
} | undefined;
|
|
124
124
|
readonly title?: string | undefined;
|
|
125
125
|
readonly context?: string | undefined;
|
|
@@ -134,7 +134,7 @@ export declare const routes: (Route<{
|
|
|
134
134
|
readonly text: string;
|
|
135
135
|
readonly cache_control?: {
|
|
136
136
|
readonly type: "ephemeral";
|
|
137
|
-
readonly ttl?:
|
|
137
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
138
138
|
} | undefined;
|
|
139
139
|
} | {
|
|
140
140
|
readonly type: "image";
|
|
@@ -151,7 +151,7 @@ export declare const routes: (Route<{
|
|
|
151
151
|
};
|
|
152
152
|
readonly cache_control?: {
|
|
153
153
|
readonly type: "ephemeral";
|
|
154
|
-
readonly ttl?:
|
|
154
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
155
155
|
} | undefined;
|
|
156
156
|
readonly transformations?: {
|
|
157
157
|
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
@@ -171,7 +171,7 @@ export declare const routes: (Route<{
|
|
|
171
171
|
};
|
|
172
172
|
readonly cache_control?: {
|
|
173
173
|
readonly type: "ephemeral";
|
|
174
|
-
readonly ttl?:
|
|
174
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
175
175
|
} | undefined;
|
|
176
176
|
} | {
|
|
177
177
|
readonly type: "document";
|
|
@@ -192,7 +192,7 @@ export declare const routes: (Route<{
|
|
|
192
192
|
};
|
|
193
193
|
readonly cache_control?: {
|
|
194
194
|
readonly type: "ephemeral";
|
|
195
|
-
readonly ttl?:
|
|
195
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
196
196
|
} | undefined;
|
|
197
197
|
readonly title?: string | undefined;
|
|
198
198
|
readonly context?: string | undefined;
|
|
@@ -203,7 +203,7 @@ export declare const routes: (Route<{
|
|
|
203
203
|
readonly is_error?: boolean | undefined;
|
|
204
204
|
readonly cache_control?: {
|
|
205
205
|
readonly type: "ephemeral";
|
|
206
|
-
readonly ttl?:
|
|
206
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
207
207
|
} | undefined;
|
|
208
208
|
})[];
|
|
209
209
|
} | {
|
|
@@ -216,7 +216,7 @@ export declare const routes: (Route<{
|
|
|
216
216
|
readonly text: string;
|
|
217
217
|
readonly cache_control?: {
|
|
218
218
|
readonly type: "ephemeral";
|
|
219
|
-
readonly ttl?:
|
|
219
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
220
220
|
} | undefined;
|
|
221
221
|
} | {
|
|
222
222
|
readonly type: "thinking";
|
|
@@ -224,14 +224,14 @@ export declare const routes: (Route<{
|
|
|
224
224
|
readonly signature: string;
|
|
225
225
|
readonly cache_control?: {
|
|
226
226
|
readonly type: "ephemeral";
|
|
227
|
-
readonly ttl?:
|
|
227
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
228
228
|
} | undefined;
|
|
229
229
|
} | {
|
|
230
230
|
readonly type: "redacted_thinking";
|
|
231
231
|
readonly data: string;
|
|
232
232
|
readonly cache_control?: {
|
|
233
233
|
readonly type: "ephemeral";
|
|
234
|
-
readonly ttl?:
|
|
234
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
235
235
|
} | undefined;
|
|
236
236
|
} | {
|
|
237
237
|
readonly type: "tool_use";
|
|
@@ -240,7 +240,7 @@ export declare const routes: (Route<{
|
|
|
240
240
|
readonly input: unknown;
|
|
241
241
|
readonly cache_control?: {
|
|
242
242
|
readonly type: "ephemeral";
|
|
243
|
-
readonly ttl?:
|
|
243
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
244
244
|
} | undefined;
|
|
245
245
|
} | {
|
|
246
246
|
readonly type: "server_tool_use";
|
|
@@ -249,7 +249,7 @@ export declare const routes: (Route<{
|
|
|
249
249
|
readonly input: unknown;
|
|
250
250
|
readonly cache_control?: {
|
|
251
251
|
readonly type: "ephemeral";
|
|
252
|
-
readonly ttl?:
|
|
252
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
253
253
|
} | undefined;
|
|
254
254
|
} | {
|
|
255
255
|
readonly type: "code_execution_tool_result" | "web_fetch_tool_result" | "web_search_tool_result";
|
|
@@ -257,7 +257,7 @@ export declare const routes: (Route<{
|
|
|
257
257
|
readonly content: unknown;
|
|
258
258
|
readonly cache_control?: {
|
|
259
259
|
readonly type: "ephemeral";
|
|
260
|
-
readonly ttl?:
|
|
260
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
261
261
|
} | undefined;
|
|
262
262
|
})[];
|
|
263
263
|
} | {
|
|
@@ -267,7 +267,7 @@ export declare const routes: (Route<{
|
|
|
267
267
|
readonly text: string;
|
|
268
268
|
readonly cache_control?: {
|
|
269
269
|
readonly type: "ephemeral";
|
|
270
|
-
readonly ttl?:
|
|
270
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
271
271
|
} | undefined;
|
|
272
272
|
}[];
|
|
273
273
|
readonly output_config?: {
|
|
@@ -282,7 +282,7 @@ export declare const routes: (Route<{
|
|
|
282
282
|
};
|
|
283
283
|
readonly cache_control?: {
|
|
284
284
|
readonly type: "ephemeral";
|
|
285
|
-
readonly ttl?:
|
|
285
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
286
286
|
} | undefined;
|
|
287
287
|
}[] | undefined;
|
|
288
288
|
readonly tool_choice?: {
|
|
@@ -326,7 +326,7 @@ export declare const routes: (Route<{
|
|
|
326
326
|
} | undefined;
|
|
327
327
|
readonly cache_control?: {
|
|
328
328
|
readonly type: "ephemeral";
|
|
329
|
-
readonly ttl?:
|
|
329
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
330
330
|
} | undefined;
|
|
331
331
|
readonly container?: string | {
|
|
332
332
|
readonly id?: string | null | undefined;
|
|
@@ -641,6 +641,10 @@ export declare const routes: (Route<{
|
|
|
641
641
|
} | undefined;
|
|
642
642
|
readonly store?: boolean | undefined;
|
|
643
643
|
readonly prompt_cache_key?: string | undefined;
|
|
644
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
645
|
+
readonly prompt_cache_options?: {
|
|
646
|
+
readonly ttl?: string | undefined;
|
|
647
|
+
} | undefined;
|
|
644
648
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
645
649
|
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
646
650
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|