@opencode/ai 0.0.0-dev-21920 → 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/package.json +3 -3
|
@@ -48,7 +48,7 @@ export declare const routes: (Route<{
|
|
|
48
48
|
readonly text: string;
|
|
49
49
|
readonly cache_control?: {
|
|
50
50
|
readonly type: "ephemeral";
|
|
51
|
-
readonly ttl?:
|
|
51
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
52
52
|
} | undefined;
|
|
53
53
|
}[] | undefined;
|
|
54
54
|
readonly messages: readonly ({
|
|
@@ -58,7 +58,7 @@ export declare const routes: (Route<{
|
|
|
58
58
|
readonly text: string;
|
|
59
59
|
readonly cache_control?: {
|
|
60
60
|
readonly type: "ephemeral";
|
|
61
|
-
readonly ttl?:
|
|
61
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
62
62
|
} | undefined;
|
|
63
63
|
} | {
|
|
64
64
|
readonly type: "image";
|
|
@@ -75,7 +75,7 @@ export declare const routes: (Route<{
|
|
|
75
75
|
};
|
|
76
76
|
readonly cache_control?: {
|
|
77
77
|
readonly type: "ephemeral";
|
|
78
|
-
readonly ttl?:
|
|
78
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
79
79
|
} | undefined;
|
|
80
80
|
readonly transformations?: {
|
|
81
81
|
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
@@ -95,7 +95,7 @@ export declare const routes: (Route<{
|
|
|
95
95
|
};
|
|
96
96
|
readonly cache_control?: {
|
|
97
97
|
readonly type: "ephemeral";
|
|
98
|
-
readonly ttl?:
|
|
98
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
99
99
|
} | undefined;
|
|
100
100
|
} | {
|
|
101
101
|
readonly type: "document";
|
|
@@ -116,7 +116,7 @@ export declare const routes: (Route<{
|
|
|
116
116
|
};
|
|
117
117
|
readonly cache_control?: {
|
|
118
118
|
readonly type: "ephemeral";
|
|
119
|
-
readonly ttl?:
|
|
119
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
120
120
|
} | undefined;
|
|
121
121
|
readonly title?: string | undefined;
|
|
122
122
|
readonly context?: string | undefined;
|
|
@@ -131,7 +131,7 @@ export declare const routes: (Route<{
|
|
|
131
131
|
readonly text: string;
|
|
132
132
|
readonly cache_control?: {
|
|
133
133
|
readonly type: "ephemeral";
|
|
134
|
-
readonly ttl?:
|
|
134
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
135
135
|
} | undefined;
|
|
136
136
|
} | {
|
|
137
137
|
readonly type: "image";
|
|
@@ -148,7 +148,7 @@ export declare const routes: (Route<{
|
|
|
148
148
|
};
|
|
149
149
|
readonly cache_control?: {
|
|
150
150
|
readonly type: "ephemeral";
|
|
151
|
-
readonly ttl?:
|
|
151
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
152
152
|
} | undefined;
|
|
153
153
|
readonly transformations?: {
|
|
154
154
|
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
@@ -168,7 +168,7 @@ export declare const routes: (Route<{
|
|
|
168
168
|
};
|
|
169
169
|
readonly cache_control?: {
|
|
170
170
|
readonly type: "ephemeral";
|
|
171
|
-
readonly ttl?:
|
|
171
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
172
172
|
} | undefined;
|
|
173
173
|
} | {
|
|
174
174
|
readonly type: "document";
|
|
@@ -189,7 +189,7 @@ export declare const routes: (Route<{
|
|
|
189
189
|
};
|
|
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
|
readonly title?: string | undefined;
|
|
195
195
|
readonly context?: string | undefined;
|
|
@@ -200,7 +200,7 @@ export declare const routes: (Route<{
|
|
|
200
200
|
readonly is_error?: boolean | undefined;
|
|
201
201
|
readonly cache_control?: {
|
|
202
202
|
readonly type: "ephemeral";
|
|
203
|
-
readonly ttl?:
|
|
203
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
204
204
|
} | undefined;
|
|
205
205
|
})[];
|
|
206
206
|
} | {
|
|
@@ -213,7 +213,7 @@ export declare const routes: (Route<{
|
|
|
213
213
|
readonly text: string;
|
|
214
214
|
readonly cache_control?: {
|
|
215
215
|
readonly type: "ephemeral";
|
|
216
|
-
readonly ttl?:
|
|
216
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
217
217
|
} | undefined;
|
|
218
218
|
} | {
|
|
219
219
|
readonly type: "thinking";
|
|
@@ -221,14 +221,14 @@ export declare const routes: (Route<{
|
|
|
221
221
|
readonly signature: string;
|
|
222
222
|
readonly cache_control?: {
|
|
223
223
|
readonly type: "ephemeral";
|
|
224
|
-
readonly ttl?:
|
|
224
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
225
225
|
} | undefined;
|
|
226
226
|
} | {
|
|
227
227
|
readonly type: "redacted_thinking";
|
|
228
228
|
readonly data: string;
|
|
229
229
|
readonly cache_control?: {
|
|
230
230
|
readonly type: "ephemeral";
|
|
231
|
-
readonly ttl?:
|
|
231
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
232
232
|
} | undefined;
|
|
233
233
|
} | {
|
|
234
234
|
readonly type: "tool_use";
|
|
@@ -237,7 +237,7 @@ export declare const routes: (Route<{
|
|
|
237
237
|
readonly input: unknown;
|
|
238
238
|
readonly cache_control?: {
|
|
239
239
|
readonly type: "ephemeral";
|
|
240
|
-
readonly ttl?:
|
|
240
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
241
241
|
} | undefined;
|
|
242
242
|
} | {
|
|
243
243
|
readonly type: "server_tool_use";
|
|
@@ -246,7 +246,7 @@ export declare const routes: (Route<{
|
|
|
246
246
|
readonly input: unknown;
|
|
247
247
|
readonly cache_control?: {
|
|
248
248
|
readonly type: "ephemeral";
|
|
249
|
-
readonly ttl?:
|
|
249
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
250
250
|
} | undefined;
|
|
251
251
|
} | {
|
|
252
252
|
readonly type: "code_execution_tool_result" | "web_fetch_tool_result" | "web_search_tool_result";
|
|
@@ -254,7 +254,7 @@ export declare const routes: (Route<{
|
|
|
254
254
|
readonly content: unknown;
|
|
255
255
|
readonly cache_control?: {
|
|
256
256
|
readonly type: "ephemeral";
|
|
257
|
-
readonly ttl?:
|
|
257
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
258
258
|
} | undefined;
|
|
259
259
|
})[];
|
|
260
260
|
} | {
|
|
@@ -264,7 +264,7 @@ export declare const routes: (Route<{
|
|
|
264
264
|
readonly text: string;
|
|
265
265
|
readonly cache_control?: {
|
|
266
266
|
readonly type: "ephemeral";
|
|
267
|
-
readonly ttl?:
|
|
267
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
268
268
|
} | undefined;
|
|
269
269
|
}[];
|
|
270
270
|
readonly output_config?: {
|
|
@@ -279,7 +279,7 @@ export declare const routes: (Route<{
|
|
|
279
279
|
};
|
|
280
280
|
readonly cache_control?: {
|
|
281
281
|
readonly type: "ephemeral";
|
|
282
|
-
readonly ttl?:
|
|
282
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
283
283
|
} | undefined;
|
|
284
284
|
}[] | undefined;
|
|
285
285
|
readonly tool_choice?: {
|
|
@@ -323,7 +323,7 @@ export declare const routes: (Route<{
|
|
|
323
323
|
} | undefined;
|
|
324
324
|
readonly cache_control?: {
|
|
325
325
|
readonly type: "ephemeral";
|
|
326
|
-
readonly ttl?:
|
|
326
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
327
327
|
} | undefined;
|
|
328
328
|
readonly container?: string | {
|
|
329
329
|
readonly id?: string | null | undefined;
|
|
@@ -638,6 +638,10 @@ export declare const routes: (Route<{
|
|
|
638
638
|
} | undefined;
|
|
639
639
|
readonly store?: boolean | undefined;
|
|
640
640
|
readonly prompt_cache_key?: string | undefined;
|
|
641
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
642
|
+
readonly prompt_cache_options?: {
|
|
643
|
+
readonly ttl?: string | undefined;
|
|
644
|
+
} | undefined;
|
|
641
645
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
642
646
|
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
643
647
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
@@ -36,7 +36,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
36
36
|
readonly content: readonly ({
|
|
37
37
|
readonly cachePoint: {
|
|
38
38
|
readonly type: "default";
|
|
39
|
-
readonly ttl?:
|
|
39
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
40
40
|
};
|
|
41
41
|
} | {
|
|
42
42
|
readonly image: {
|
|
@@ -86,7 +86,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
86
86
|
readonly content: readonly ({
|
|
87
87
|
readonly cachePoint: {
|
|
88
88
|
readonly type: "default";
|
|
89
|
-
readonly ttl?:
|
|
89
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
90
90
|
};
|
|
91
91
|
} | {
|
|
92
92
|
readonly text: string;
|
|
@@ -110,7 +110,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
110
110
|
readonly system?: readonly ({
|
|
111
111
|
readonly cachePoint: {
|
|
112
112
|
readonly type: "default";
|
|
113
|
-
readonly ttl?:
|
|
113
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
114
114
|
};
|
|
115
115
|
} | {
|
|
116
116
|
readonly text: string;
|
|
@@ -125,7 +125,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
125
125
|
readonly tools: readonly ({
|
|
126
126
|
readonly cachePoint: {
|
|
127
127
|
readonly type: "default";
|
|
128
|
-
readonly ttl?:
|
|
128
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
129
129
|
};
|
|
130
130
|
} | {
|
|
131
131
|
readonly toolSpec: {
|
|
@@ -40,7 +40,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
40
40
|
readonly text: string;
|
|
41
41
|
readonly cache_control?: {
|
|
42
42
|
readonly type: "ephemeral";
|
|
43
|
-
readonly ttl?:
|
|
43
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
44
44
|
} | undefined;
|
|
45
45
|
}[] | undefined;
|
|
46
46
|
readonly messages: readonly ({
|
|
@@ -50,7 +50,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
50
50
|
readonly text: string;
|
|
51
51
|
readonly cache_control?: {
|
|
52
52
|
readonly type: "ephemeral";
|
|
53
|
-
readonly ttl?:
|
|
53
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
54
54
|
} | undefined;
|
|
55
55
|
} | {
|
|
56
56
|
readonly type: "image";
|
|
@@ -67,7 +67,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
67
67
|
};
|
|
68
68
|
readonly cache_control?: {
|
|
69
69
|
readonly type: "ephemeral";
|
|
70
|
-
readonly ttl?:
|
|
70
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
71
71
|
} | undefined;
|
|
72
72
|
readonly transformations?: {
|
|
73
73
|
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
@@ -87,7 +87,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
87
87
|
};
|
|
88
88
|
readonly cache_control?: {
|
|
89
89
|
readonly type: "ephemeral";
|
|
90
|
-
readonly ttl?:
|
|
90
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
91
91
|
} | undefined;
|
|
92
92
|
} | {
|
|
93
93
|
readonly type: "document";
|
|
@@ -108,7 +108,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
108
108
|
};
|
|
109
109
|
readonly cache_control?: {
|
|
110
110
|
readonly type: "ephemeral";
|
|
111
|
-
readonly ttl?:
|
|
111
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
112
112
|
} | undefined;
|
|
113
113
|
readonly title?: string | undefined;
|
|
114
114
|
readonly context?: string | undefined;
|
|
@@ -123,7 +123,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
123
123
|
readonly text: string;
|
|
124
124
|
readonly cache_control?: {
|
|
125
125
|
readonly type: "ephemeral";
|
|
126
|
-
readonly ttl?:
|
|
126
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
127
127
|
} | undefined;
|
|
128
128
|
} | {
|
|
129
129
|
readonly type: "image";
|
|
@@ -140,7 +140,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
140
140
|
};
|
|
141
141
|
readonly cache_control?: {
|
|
142
142
|
readonly type: "ephemeral";
|
|
143
|
-
readonly ttl?:
|
|
143
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
144
144
|
} | undefined;
|
|
145
145
|
readonly transformations?: {
|
|
146
146
|
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
@@ -160,7 +160,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
160
160
|
};
|
|
161
161
|
readonly cache_control?: {
|
|
162
162
|
readonly type: "ephemeral";
|
|
163
|
-
readonly ttl?:
|
|
163
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
164
164
|
} | undefined;
|
|
165
165
|
} | {
|
|
166
166
|
readonly type: "document";
|
|
@@ -181,7 +181,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
181
181
|
};
|
|
182
182
|
readonly cache_control?: {
|
|
183
183
|
readonly type: "ephemeral";
|
|
184
|
-
readonly ttl?:
|
|
184
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
185
185
|
} | undefined;
|
|
186
186
|
readonly title?: string | undefined;
|
|
187
187
|
readonly context?: string | undefined;
|
|
@@ -192,7 +192,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
192
192
|
readonly is_error?: boolean | undefined;
|
|
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
|
})[];
|
|
198
198
|
} | {
|
|
@@ -205,7 +205,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
205
205
|
readonly text: string;
|
|
206
206
|
readonly cache_control?: {
|
|
207
207
|
readonly type: "ephemeral";
|
|
208
|
-
readonly ttl?:
|
|
208
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
209
209
|
} | undefined;
|
|
210
210
|
} | {
|
|
211
211
|
readonly type: "thinking";
|
|
@@ -213,14 +213,14 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
213
213
|
readonly signature: string;
|
|
214
214
|
readonly cache_control?: {
|
|
215
215
|
readonly type: "ephemeral";
|
|
216
|
-
readonly ttl?:
|
|
216
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
217
217
|
} | undefined;
|
|
218
218
|
} | {
|
|
219
219
|
readonly type: "redacted_thinking";
|
|
220
220
|
readonly data: string;
|
|
221
221
|
readonly cache_control?: {
|
|
222
222
|
readonly type: "ephemeral";
|
|
223
|
-
readonly ttl?:
|
|
223
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
224
224
|
} | undefined;
|
|
225
225
|
} | {
|
|
226
226
|
readonly type: "tool_use";
|
|
@@ -229,7 +229,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
229
229
|
readonly input: unknown;
|
|
230
230
|
readonly cache_control?: {
|
|
231
231
|
readonly type: "ephemeral";
|
|
232
|
-
readonly ttl?:
|
|
232
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
233
233
|
} | undefined;
|
|
234
234
|
} | {
|
|
235
235
|
readonly type: "server_tool_use";
|
|
@@ -238,7 +238,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
238
238
|
readonly input: unknown;
|
|
239
239
|
readonly cache_control?: {
|
|
240
240
|
readonly type: "ephemeral";
|
|
241
|
-
readonly ttl?:
|
|
241
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
242
242
|
} | undefined;
|
|
243
243
|
} | {
|
|
244
244
|
readonly type: "code_execution_tool_result" | "web_fetch_tool_result" | "web_search_tool_result";
|
|
@@ -246,7 +246,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
246
246
|
readonly content: unknown;
|
|
247
247
|
readonly cache_control?: {
|
|
248
248
|
readonly type: "ephemeral";
|
|
249
|
-
readonly ttl?:
|
|
249
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
250
250
|
} | undefined;
|
|
251
251
|
})[];
|
|
252
252
|
} | {
|
|
@@ -256,7 +256,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
256
256
|
readonly text: string;
|
|
257
257
|
readonly cache_control?: {
|
|
258
258
|
readonly type: "ephemeral";
|
|
259
|
-
readonly ttl?:
|
|
259
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
260
260
|
} | undefined;
|
|
261
261
|
}[];
|
|
262
262
|
readonly output_config?: {
|
|
@@ -271,7 +271,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
271
271
|
};
|
|
272
272
|
readonly cache_control?: {
|
|
273
273
|
readonly type: "ephemeral";
|
|
274
|
-
readonly ttl?:
|
|
274
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
275
275
|
} | undefined;
|
|
276
276
|
}[] | undefined;
|
|
277
277
|
readonly tool_choice?: {
|
|
@@ -315,7 +315,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
315
315
|
} | undefined;
|
|
316
316
|
readonly cache_control?: {
|
|
317
317
|
readonly type: "ephemeral";
|
|
318
|
-
readonly ttl?:
|
|
318
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
319
319
|
} | undefined;
|
|
320
320
|
readonly container?: string | {
|
|
321
321
|
readonly id?: string | null | undefined;
|
|
@@ -25,7 +25,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
25
25
|
readonly text: string;
|
|
26
26
|
readonly cache_control?: {
|
|
27
27
|
readonly type: "ephemeral";
|
|
28
|
-
readonly ttl?:
|
|
28
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
29
29
|
} | undefined;
|
|
30
30
|
}[] | undefined;
|
|
31
31
|
readonly messages: readonly ({
|
|
@@ -35,7 +35,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
35
35
|
readonly text: string;
|
|
36
36
|
readonly cache_control?: {
|
|
37
37
|
readonly type: "ephemeral";
|
|
38
|
-
readonly ttl?:
|
|
38
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
39
39
|
} | undefined;
|
|
40
40
|
} | {
|
|
41
41
|
readonly type: "image";
|
|
@@ -52,7 +52,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
52
52
|
};
|
|
53
53
|
readonly cache_control?: {
|
|
54
54
|
readonly type: "ephemeral";
|
|
55
|
-
readonly ttl?:
|
|
55
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
56
56
|
} | undefined;
|
|
57
57
|
readonly transformations?: {
|
|
58
58
|
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
@@ -72,7 +72,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
72
72
|
};
|
|
73
73
|
readonly cache_control?: {
|
|
74
74
|
readonly type: "ephemeral";
|
|
75
|
-
readonly ttl?:
|
|
75
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
76
76
|
} | undefined;
|
|
77
77
|
} | {
|
|
78
78
|
readonly type: "document";
|
|
@@ -93,7 +93,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
93
93
|
};
|
|
94
94
|
readonly cache_control?: {
|
|
95
95
|
readonly type: "ephemeral";
|
|
96
|
-
readonly ttl?:
|
|
96
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
97
97
|
} | undefined;
|
|
98
98
|
readonly title?: string | undefined;
|
|
99
99
|
readonly context?: string | undefined;
|
|
@@ -108,7 +108,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
108
108
|
readonly text: string;
|
|
109
109
|
readonly cache_control?: {
|
|
110
110
|
readonly type: "ephemeral";
|
|
111
|
-
readonly ttl?:
|
|
111
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
112
112
|
} | undefined;
|
|
113
113
|
} | {
|
|
114
114
|
readonly type: "image";
|
|
@@ -125,7 +125,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
125
125
|
};
|
|
126
126
|
readonly cache_control?: {
|
|
127
127
|
readonly type: "ephemeral";
|
|
128
|
-
readonly ttl?:
|
|
128
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
129
129
|
} | undefined;
|
|
130
130
|
readonly transformations?: {
|
|
131
131
|
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
@@ -145,7 +145,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
145
145
|
};
|
|
146
146
|
readonly cache_control?: {
|
|
147
147
|
readonly type: "ephemeral";
|
|
148
|
-
readonly ttl?:
|
|
148
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
149
149
|
} | undefined;
|
|
150
150
|
} | {
|
|
151
151
|
readonly type: "document";
|
|
@@ -166,7 +166,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
166
166
|
};
|
|
167
167
|
readonly cache_control?: {
|
|
168
168
|
readonly type: "ephemeral";
|
|
169
|
-
readonly ttl?:
|
|
169
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
170
170
|
} | undefined;
|
|
171
171
|
readonly title?: string | undefined;
|
|
172
172
|
readonly context?: string | undefined;
|
|
@@ -177,7 +177,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
177
177
|
readonly is_error?: boolean | undefined;
|
|
178
178
|
readonly cache_control?: {
|
|
179
179
|
readonly type: "ephemeral";
|
|
180
|
-
readonly ttl?:
|
|
180
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
181
181
|
} | undefined;
|
|
182
182
|
})[];
|
|
183
183
|
} | {
|
|
@@ -190,7 +190,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
190
190
|
readonly text: string;
|
|
191
191
|
readonly cache_control?: {
|
|
192
192
|
readonly type: "ephemeral";
|
|
193
|
-
readonly ttl?:
|
|
193
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
194
194
|
} | undefined;
|
|
195
195
|
} | {
|
|
196
196
|
readonly type: "thinking";
|
|
@@ -198,14 +198,14 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
198
198
|
readonly signature: string;
|
|
199
199
|
readonly cache_control?: {
|
|
200
200
|
readonly type: "ephemeral";
|
|
201
|
-
readonly ttl?:
|
|
201
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
202
202
|
} | undefined;
|
|
203
203
|
} | {
|
|
204
204
|
readonly type: "redacted_thinking";
|
|
205
205
|
readonly data: string;
|
|
206
206
|
readonly cache_control?: {
|
|
207
207
|
readonly type: "ephemeral";
|
|
208
|
-
readonly ttl?:
|
|
208
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
209
209
|
} | undefined;
|
|
210
210
|
} | {
|
|
211
211
|
readonly type: "tool_use";
|
|
@@ -214,7 +214,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
214
214
|
readonly input: unknown;
|
|
215
215
|
readonly cache_control?: {
|
|
216
216
|
readonly type: "ephemeral";
|
|
217
|
-
readonly ttl?:
|
|
217
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
218
218
|
} | undefined;
|
|
219
219
|
} | {
|
|
220
220
|
readonly type: "server_tool_use";
|
|
@@ -223,7 +223,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
223
223
|
readonly input: unknown;
|
|
224
224
|
readonly cache_control?: {
|
|
225
225
|
readonly type: "ephemeral";
|
|
226
|
-
readonly ttl?:
|
|
226
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
227
227
|
} | undefined;
|
|
228
228
|
} | {
|
|
229
229
|
readonly type: "code_execution_tool_result" | "web_fetch_tool_result" | "web_search_tool_result";
|
|
@@ -231,7 +231,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
231
231
|
readonly content: unknown;
|
|
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
|
} | {
|
|
@@ -241,7 +241,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
241
241
|
readonly text: string;
|
|
242
242
|
readonly cache_control?: {
|
|
243
243
|
readonly type: "ephemeral";
|
|
244
|
-
readonly ttl?:
|
|
244
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
245
245
|
} | undefined;
|
|
246
246
|
}[];
|
|
247
247
|
readonly output_config?: {
|
|
@@ -256,7 +256,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
256
256
|
};
|
|
257
257
|
readonly cache_control?: {
|
|
258
258
|
readonly type: "ephemeral";
|
|
259
|
-
readonly ttl?:
|
|
259
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
260
260
|
} | undefined;
|
|
261
261
|
}[] | undefined;
|
|
262
262
|
readonly tool_choice?: {
|
|
@@ -300,7 +300,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
300
300
|
} | undefined;
|
|
301
301
|
readonly cache_control?: {
|
|
302
302
|
readonly type: "ephemeral";
|
|
303
|
-
readonly ttl?:
|
|
303
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
304
304
|
} | undefined;
|
|
305
305
|
readonly container?: string | {
|
|
306
306
|
readonly id?: string | null | undefined;
|
|
@@ -173,6 +173,10 @@ declare const responsesRoute: Route<{
|
|
|
173
173
|
readonly top_p?: number | undefined;
|
|
174
174
|
readonly presence_penalty?: number | undefined;
|
|
175
175
|
readonly frequency_penalty?: number | undefined;
|
|
176
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
177
|
+
readonly prompt_cache_options?: {
|
|
178
|
+
readonly ttl?: string | undefined;
|
|
179
|
+
} | undefined;
|
|
176
180
|
readonly tools?: readonly ({
|
|
177
181
|
readonly type: "namespace";
|
|
178
182
|
readonly name: string;
|
|
@@ -353,6 +357,10 @@ export declare const routes: (Route<{
|
|
|
353
357
|
} | undefined;
|
|
354
358
|
readonly store?: boolean | undefined;
|
|
355
359
|
readonly prompt_cache_key?: string | undefined;
|
|
360
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
361
|
+
readonly prompt_cache_options?: {
|
|
362
|
+
readonly ttl?: string | undefined;
|
|
363
|
+
} | undefined;
|
|
356
364
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
357
365
|
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
358
366
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
@@ -522,6 +530,10 @@ export declare const routes: (Route<{
|
|
|
522
530
|
readonly top_p?: number | undefined;
|
|
523
531
|
readonly presence_penalty?: number | undefined;
|
|
524
532
|
readonly frequency_penalty?: number | undefined;
|
|
533
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
534
|
+
readonly prompt_cache_options?: {
|
|
535
|
+
readonly ttl?: string | undefined;
|
|
536
|
+
} | undefined;
|
|
525
537
|
readonly tools?: readonly ({
|
|
526
538
|
readonly type: "namespace";
|
|
527
539
|
readonly name: string;
|
|
@@ -137,6 +137,10 @@ export declare const route: Route<{
|
|
|
137
137
|
} | undefined;
|
|
138
138
|
readonly store?: boolean | undefined;
|
|
139
139
|
readonly prompt_cache_key?: string | undefined;
|
|
140
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
141
|
+
readonly prompt_cache_options?: {
|
|
142
|
+
readonly ttl?: string | undefined;
|
|
143
|
+
} | undefined;
|
|
140
144
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
141
145
|
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
142
146
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
@@ -276,6 +280,10 @@ export declare const routes: Route<{
|
|
|
276
280
|
} | undefined;
|
|
277
281
|
readonly store?: boolean | undefined;
|
|
278
282
|
readonly prompt_cache_key?: string | undefined;
|
|
283
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
284
|
+
readonly prompt_cache_options?: {
|
|
285
|
+
readonly ttl?: string | undefined;
|
|
286
|
+
} | undefined;
|
|
279
287
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
280
288
|
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
281
289
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
@@ -133,6 +133,10 @@ export declare const route: Route<{
|
|
|
133
133
|
} | undefined;
|
|
134
134
|
readonly store?: boolean | undefined;
|
|
135
135
|
readonly prompt_cache_key?: string | undefined;
|
|
136
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
137
|
+
readonly prompt_cache_options?: {
|
|
138
|
+
readonly ttl?: string | undefined;
|
|
139
|
+
} | undefined;
|
|
136
140
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
137
141
|
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
138
142
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
@@ -272,6 +276,10 @@ export declare const routes: Route<{
|
|
|
272
276
|
} | undefined;
|
|
273
277
|
readonly store?: boolean | undefined;
|
|
274
278
|
readonly prompt_cache_key?: string | undefined;
|
|
279
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
280
|
+
readonly prompt_cache_options?: {
|
|
281
|
+
readonly ttl?: string | undefined;
|
|
282
|
+
} | undefined;
|
|
275
283
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
276
284
|
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
277
285
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|