@orq-ai/node 4.17.0-rc.46 → 4.17.0-rc.47
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/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/cachewritetokensdetails.d.ts +11 -0
- package/models/components/cachewritetokensdetails.d.ts.map +1 -0
- package/models/components/cachewritetokensdetails.js +57 -0
- package/models/components/cachewritetokensdetails.js.map +1 -0
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/inputtokensdetails.d.ts +2 -0
- package/models/components/inputtokensdetails.d.ts.map +1 -1
- package/models/components/inputtokensdetails.js +3 -0
- package/models/components/inputtokensdetails.js.map +1 -1
- package/models/components/openaipromptcacheoptions.d.ts +1 -0
- package/models/components/openaipromptcacheoptions.d.ts.map +1 -1
- package/models/components/openaipromptcacheoptions.js +1 -0
- package/models/components/openaipromptcacheoptions.js.map +1 -1
- package/models/components/pricing.d.ts +2 -0
- package/models/components/pricing.d.ts.map +1 -1
- package/models/components/pricing.js +4 -0
- package/models/components/pricing.js.map +1 -1
- package/models/components/pricingvariant.d.ts +2 -0
- package/models/components/pricingvariant.d.ts.map +1 -1
- package/models/components/pricingvariant.js +4 -0
- package/models/components/pricingvariant.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createrouterresponse.d.ts +107 -8
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +81 -9
- package/models/operations/createrouterresponse.js.map +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listdeploymentversions.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +8 -8
- package/src/lib/config.ts +2 -2
- package/src/models/components/cachewritetokensdetails.ts +39 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/inputtokensdetails.ts +7 -0
- package/src/models/components/openaipromptcacheoptions.ts +1 -0
- package/src/models/components/pricing.ts +6 -0
- package/src/models/components/pricingvariant.ts +6 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createrouterresponse.ts +222 -17
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listdeploymentversions.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
|
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
unknown
|
|
42
42
|
> = z.object({
|
|
43
|
-
_id: z.string().default("
|
|
43
|
+
_id: z.string().default("reasoning_01m5ec3xazmx11jcc5pf949f24"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -83,7 +83,7 @@ export type CreateRouterResponseCacheControl = {
|
|
|
83
83
|
*
|
|
84
84
|
* Defaults to `5m`. Only supported by Anthropic Claude models.
|
|
85
85
|
*/
|
|
86
|
-
export const
|
|
86
|
+
export const CreateRouterResponse2ResponsesRequestRequestBodyInputTtl = {
|
|
87
87
|
Fivem: "5m",
|
|
88
88
|
Oneh: "1h",
|
|
89
89
|
} as const;
|
|
@@ -97,9 +97,8 @@ export const CreateRouterResponse2ResponsesRequestTtl = {
|
|
|
97
97
|
*
|
|
98
98
|
* Defaults to `5m`. Only supported by Anthropic Claude models.
|
|
99
99
|
*/
|
|
100
|
-
export type
|
|
101
|
-
typeof
|
|
102
|
-
>;
|
|
100
|
+
export type CreateRouterResponse2ResponsesRequestRequestBodyInputTtl =
|
|
101
|
+
ClosedEnum<typeof CreateRouterResponse2ResponsesRequestRequestBodyInputTtl>;
|
|
103
102
|
|
|
104
103
|
/**
|
|
105
104
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
@@ -124,13 +123,35 @@ export type CreateRouterResponse2ResponsesRequestCacheControl = {
|
|
|
124
123
|
*
|
|
125
124
|
* Defaults to `5m`. Only supported by Anthropic Claude models.
|
|
126
125
|
*/
|
|
127
|
-
ttl?:
|
|
126
|
+
ttl?: CreateRouterResponse2ResponsesRequestRequestBodyInputTtl | undefined;
|
|
128
127
|
/**
|
|
129
128
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
130
129
|
*/
|
|
131
130
|
type: CreateRouterResponse2ResponsesRequestRequestBodyInputType;
|
|
132
131
|
};
|
|
133
132
|
|
|
133
|
+
export const CreateRouterResponse2ResponsesMode = {
|
|
134
|
+
Explicit: "explicit",
|
|
135
|
+
} as const;
|
|
136
|
+
export type CreateRouterResponse2ResponsesMode = ClosedEnum<
|
|
137
|
+
typeof CreateRouterResponse2ResponsesMode
|
|
138
|
+
>;
|
|
139
|
+
|
|
140
|
+
export const CreateRouterResponse2ResponsesRequestRequestBodyInput2Ttl = {
|
|
141
|
+
Thirtym: "30m",
|
|
142
|
+
Twelveh: "12h",
|
|
143
|
+
} as const;
|
|
144
|
+
export type CreateRouterResponse2ResponsesRequestRequestBodyInput2Ttl =
|
|
145
|
+
ClosedEnum<typeof CreateRouterResponse2ResponsesRequestRequestBodyInput2Ttl>;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* An explicit OpenAI cache boundary for GPT-5.6 and later. Omitted ttl inherits prompt_cache_options.ttl.
|
|
149
|
+
*/
|
|
150
|
+
export type CreateRouterResponse2PromptCacheBreakpoint = {
|
|
151
|
+
mode: CreateRouterResponse2ResponsesMode;
|
|
152
|
+
ttl?: CreateRouterResponse2ResponsesRequestRequestBodyInput2Ttl | undefined;
|
|
153
|
+
};
|
|
154
|
+
|
|
134
155
|
/**
|
|
135
156
|
* A file content part. Provide file_id, file_data (base64), or file_url.
|
|
136
157
|
*/
|
|
@@ -156,6 +177,12 @@ export type TwoFile = {
|
|
|
156
177
|
* The MIME type of the file (e.g., application/pdf).
|
|
157
178
|
*/
|
|
158
179
|
mimeType?: string | undefined;
|
|
180
|
+
/**
|
|
181
|
+
* An explicit OpenAI cache boundary for GPT-5.6 and later. Omitted ttl inherits prompt_cache_options.ttl.
|
|
182
|
+
*/
|
|
183
|
+
promptCacheBreakpoint?:
|
|
184
|
+
| CreateRouterResponse2PromptCacheBreakpoint
|
|
185
|
+
| undefined;
|
|
159
186
|
type: "input_file";
|
|
160
187
|
};
|
|
161
188
|
|
|
@@ -169,7 +196,7 @@ export type TwoFile = {
|
|
|
169
196
|
*
|
|
170
197
|
* Defaults to `5m`. Only supported by Anthropic Claude models.
|
|
171
198
|
*/
|
|
172
|
-
export const
|
|
199
|
+
export const CreateRouterResponse2ResponsesRequestTtl = {
|
|
173
200
|
Fivem: "5m",
|
|
174
201
|
Oneh: "1h",
|
|
175
202
|
} as const;
|
|
@@ -183,8 +210,8 @@ export const CreateRouterResponse2ResponsesTtl = {
|
|
|
183
210
|
*
|
|
184
211
|
* Defaults to `5m`. Only supported by Anthropic Claude models.
|
|
185
212
|
*/
|
|
186
|
-
export type
|
|
187
|
-
typeof
|
|
213
|
+
export type CreateRouterResponse2ResponsesRequestTtl = ClosedEnum<
|
|
214
|
+
typeof CreateRouterResponse2ResponsesRequestTtl
|
|
188
215
|
>;
|
|
189
216
|
|
|
190
217
|
/**
|
|
@@ -211,7 +238,7 @@ export type CreateRouterResponse2ResponsesCacheControl = {
|
|
|
211
238
|
*
|
|
212
239
|
* Defaults to `5m`. Only supported by Anthropic Claude models.
|
|
213
240
|
*/
|
|
214
|
-
ttl?:
|
|
241
|
+
ttl?: CreateRouterResponse2ResponsesRequestTtl | undefined;
|
|
215
242
|
/**
|
|
216
243
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
217
244
|
*/
|
|
@@ -231,6 +258,29 @@ export const Detail = {
|
|
|
231
258
|
*/
|
|
232
259
|
export type Detail = ClosedEnum<typeof Detail>;
|
|
233
260
|
|
|
261
|
+
export const CreateRouterResponse2Mode = {
|
|
262
|
+
Explicit: "explicit",
|
|
263
|
+
} as const;
|
|
264
|
+
export type CreateRouterResponse2Mode = ClosedEnum<
|
|
265
|
+
typeof CreateRouterResponse2Mode
|
|
266
|
+
>;
|
|
267
|
+
|
|
268
|
+
export const CreateRouterResponse2ResponsesRequestRequestBodyTtl = {
|
|
269
|
+
Thirtym: "30m",
|
|
270
|
+
Twelveh: "12h",
|
|
271
|
+
} as const;
|
|
272
|
+
export type CreateRouterResponse2ResponsesRequestRequestBodyTtl = ClosedEnum<
|
|
273
|
+
typeof CreateRouterResponse2ResponsesRequestRequestBodyTtl
|
|
274
|
+
>;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* An explicit OpenAI cache boundary for GPT-5.6 and later. Omitted ttl inherits prompt_cache_options.ttl.
|
|
278
|
+
*/
|
|
279
|
+
export type TwoPromptCacheBreakpoint = {
|
|
280
|
+
mode: CreateRouterResponse2Mode;
|
|
281
|
+
ttl?: CreateRouterResponse2ResponsesRequestRequestBodyTtl | undefined;
|
|
282
|
+
};
|
|
283
|
+
|
|
234
284
|
/**
|
|
235
285
|
* An image content part.
|
|
236
286
|
*/
|
|
@@ -248,6 +298,10 @@ export type TwoImage = {
|
|
|
248
298
|
* The URL of the image.
|
|
249
299
|
*/
|
|
250
300
|
imageUrl?: string | undefined;
|
|
301
|
+
/**
|
|
302
|
+
* An explicit OpenAI cache boundary for GPT-5.6 and later. Omitted ttl inherits prompt_cache_options.ttl.
|
|
303
|
+
*/
|
|
304
|
+
promptCacheBreakpoint?: TwoPromptCacheBreakpoint | undefined;
|
|
251
305
|
type: "input_image";
|
|
252
306
|
};
|
|
253
307
|
|
|
@@ -310,11 +364,36 @@ export type CreateRouterResponse2CacheControl = {
|
|
|
310
364
|
type: CreateRouterResponse2Type;
|
|
311
365
|
};
|
|
312
366
|
|
|
367
|
+
export const TwoMode = {
|
|
368
|
+
Explicit: "explicit",
|
|
369
|
+
} as const;
|
|
370
|
+
export type TwoMode = ClosedEnum<typeof TwoMode>;
|
|
371
|
+
|
|
372
|
+
export const CreateRouterResponse2ResponsesTtl = {
|
|
373
|
+
Thirtym: "30m",
|
|
374
|
+
Twelveh: "12h",
|
|
375
|
+
} as const;
|
|
376
|
+
export type CreateRouterResponse2ResponsesTtl = ClosedEnum<
|
|
377
|
+
typeof CreateRouterResponse2ResponsesTtl
|
|
378
|
+
>;
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* An explicit OpenAI cache boundary for GPT-5.6 and later. Omitted ttl inherits prompt_cache_options.ttl.
|
|
382
|
+
*/
|
|
383
|
+
export type PromptCacheBreakpoint = {
|
|
384
|
+
mode: TwoMode;
|
|
385
|
+
ttl?: CreateRouterResponse2ResponsesTtl | undefined;
|
|
386
|
+
};
|
|
387
|
+
|
|
313
388
|
/**
|
|
314
389
|
* A text content part.
|
|
315
390
|
*/
|
|
316
391
|
export type TwoText = {
|
|
317
392
|
cacheControl?: CreateRouterResponse2CacheControl | undefined;
|
|
393
|
+
/**
|
|
394
|
+
* An explicit OpenAI cache boundary for GPT-5.6 and later. Omitted ttl inherits prompt_cache_options.ttl.
|
|
395
|
+
*/
|
|
396
|
+
promptCacheBreakpoint?: PromptCacheBreakpoint | undefined;
|
|
318
397
|
/**
|
|
319
398
|
* The text content.
|
|
320
399
|
*/
|
|
@@ -1222,9 +1301,10 @@ export function createRouterResponseCacheControlToJSON(
|
|
|
1222
1301
|
}
|
|
1223
1302
|
|
|
1224
1303
|
/** @internal */
|
|
1225
|
-
export const
|
|
1226
|
-
z.ZodNativeEnum<
|
|
1227
|
-
|
|
1304
|
+
export const CreateRouterResponse2ResponsesRequestRequestBodyInputTtl$outboundSchema:
|
|
1305
|
+
z.ZodNativeEnum<
|
|
1306
|
+
typeof CreateRouterResponse2ResponsesRequestRequestBodyInputTtl
|
|
1307
|
+
> = z.nativeEnum(CreateRouterResponse2ResponsesRequestRequestBodyInputTtl);
|
|
1228
1308
|
|
|
1229
1309
|
/** @internal */
|
|
1230
1310
|
export const CreateRouterResponse2ResponsesRequestRequestBodyInputType$outboundSchema:
|
|
@@ -1245,7 +1325,8 @@ export const CreateRouterResponse2ResponsesRequestCacheControl$outboundSchema:
|
|
|
1245
1325
|
z.ZodTypeDef,
|
|
1246
1326
|
CreateRouterResponse2ResponsesRequestCacheControl
|
|
1247
1327
|
> = z.object({
|
|
1248
|
-
ttl:
|
|
1328
|
+
ttl: CreateRouterResponse2ResponsesRequestRequestBodyInputTtl$outboundSchema
|
|
1329
|
+
.default("5m"),
|
|
1249
1330
|
type:
|
|
1250
1331
|
CreateRouterResponse2ResponsesRequestRequestBodyInputType$outboundSchema,
|
|
1251
1332
|
});
|
|
@@ -1261,6 +1342,47 @@ export function createRouterResponse2ResponsesRequestCacheControlToJSON(
|
|
|
1261
1342
|
);
|
|
1262
1343
|
}
|
|
1263
1344
|
|
|
1345
|
+
/** @internal */
|
|
1346
|
+
export const CreateRouterResponse2ResponsesMode$outboundSchema: z.ZodNativeEnum<
|
|
1347
|
+
typeof CreateRouterResponse2ResponsesMode
|
|
1348
|
+
> = z.nativeEnum(CreateRouterResponse2ResponsesMode);
|
|
1349
|
+
|
|
1350
|
+
/** @internal */
|
|
1351
|
+
export const CreateRouterResponse2ResponsesRequestRequestBodyInput2Ttl$outboundSchema:
|
|
1352
|
+
z.ZodNativeEnum<
|
|
1353
|
+
typeof CreateRouterResponse2ResponsesRequestRequestBodyInput2Ttl
|
|
1354
|
+
> = z.nativeEnum(CreateRouterResponse2ResponsesRequestRequestBodyInput2Ttl);
|
|
1355
|
+
|
|
1356
|
+
/** @internal */
|
|
1357
|
+
export type CreateRouterResponse2PromptCacheBreakpoint$Outbound = {
|
|
1358
|
+
mode: string;
|
|
1359
|
+
ttl?: string | undefined;
|
|
1360
|
+
};
|
|
1361
|
+
|
|
1362
|
+
/** @internal */
|
|
1363
|
+
export const CreateRouterResponse2PromptCacheBreakpoint$outboundSchema:
|
|
1364
|
+
z.ZodType<
|
|
1365
|
+
CreateRouterResponse2PromptCacheBreakpoint$Outbound,
|
|
1366
|
+
z.ZodTypeDef,
|
|
1367
|
+
CreateRouterResponse2PromptCacheBreakpoint
|
|
1368
|
+
> = z.object({
|
|
1369
|
+
mode: CreateRouterResponse2ResponsesMode$outboundSchema,
|
|
1370
|
+
ttl:
|
|
1371
|
+
CreateRouterResponse2ResponsesRequestRequestBodyInput2Ttl$outboundSchema
|
|
1372
|
+
.optional(),
|
|
1373
|
+
});
|
|
1374
|
+
|
|
1375
|
+
export function createRouterResponse2PromptCacheBreakpointToJSON(
|
|
1376
|
+
createRouterResponse2PromptCacheBreakpoint:
|
|
1377
|
+
CreateRouterResponse2PromptCacheBreakpoint,
|
|
1378
|
+
): string {
|
|
1379
|
+
return JSON.stringify(
|
|
1380
|
+
CreateRouterResponse2PromptCacheBreakpoint$outboundSchema.parse(
|
|
1381
|
+
createRouterResponse2PromptCacheBreakpoint,
|
|
1382
|
+
),
|
|
1383
|
+
);
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1264
1386
|
/** @internal */
|
|
1265
1387
|
export type TwoFile$Outbound = {
|
|
1266
1388
|
cache_control?:
|
|
@@ -1271,6 +1393,9 @@ export type TwoFile$Outbound = {
|
|
|
1271
1393
|
file_url?: string | undefined;
|
|
1272
1394
|
filename?: string | undefined;
|
|
1273
1395
|
mime_type?: string | undefined;
|
|
1396
|
+
prompt_cache_breakpoint?:
|
|
1397
|
+
| CreateRouterResponse2PromptCacheBreakpoint$Outbound
|
|
1398
|
+
| undefined;
|
|
1274
1399
|
type: "input_file";
|
|
1275
1400
|
};
|
|
1276
1401
|
|
|
@@ -1288,6 +1413,9 @@ export const TwoFile$outboundSchema: z.ZodType<
|
|
|
1288
1413
|
fileUrl: z.string().optional(),
|
|
1289
1414
|
filename: z.string().optional(),
|
|
1290
1415
|
mimeType: z.string().optional(),
|
|
1416
|
+
promptCacheBreakpoint: z.lazy(() =>
|
|
1417
|
+
CreateRouterResponse2PromptCacheBreakpoint$outboundSchema
|
|
1418
|
+
).optional(),
|
|
1291
1419
|
type: z.literal("input_file"),
|
|
1292
1420
|
}).transform((v) => {
|
|
1293
1421
|
return remap$(v, {
|
|
@@ -1296,6 +1424,7 @@ export const TwoFile$outboundSchema: z.ZodType<
|
|
|
1296
1424
|
fileId: "file_id",
|
|
1297
1425
|
fileUrl: "file_url",
|
|
1298
1426
|
mimeType: "mime_type",
|
|
1427
|
+
promptCacheBreakpoint: "prompt_cache_breakpoint",
|
|
1299
1428
|
});
|
|
1300
1429
|
});
|
|
1301
1430
|
|
|
@@ -1304,9 +1433,9 @@ export function twoFileToJSON(twoFile: TwoFile): string {
|
|
|
1304
1433
|
}
|
|
1305
1434
|
|
|
1306
1435
|
/** @internal */
|
|
1307
|
-
export const
|
|
1308
|
-
typeof
|
|
1309
|
-
|
|
1436
|
+
export const CreateRouterResponse2ResponsesRequestTtl$outboundSchema:
|
|
1437
|
+
z.ZodNativeEnum<typeof CreateRouterResponse2ResponsesRequestTtl> = z
|
|
1438
|
+
.nativeEnum(CreateRouterResponse2ResponsesRequestTtl);
|
|
1310
1439
|
|
|
1311
1440
|
/** @internal */
|
|
1312
1441
|
export const CreateRouterResponse2ResponsesRequestType$outboundSchema:
|
|
@@ -1326,7 +1455,7 @@ export const CreateRouterResponse2ResponsesCacheControl$outboundSchema:
|
|
|
1326
1455
|
z.ZodTypeDef,
|
|
1327
1456
|
CreateRouterResponse2ResponsesCacheControl
|
|
1328
1457
|
> = z.object({
|
|
1329
|
-
ttl:
|
|
1458
|
+
ttl: CreateRouterResponse2ResponsesRequestTtl$outboundSchema.default("5m"),
|
|
1330
1459
|
type: CreateRouterResponse2ResponsesRequestType$outboundSchema,
|
|
1331
1460
|
});
|
|
1332
1461
|
|
|
@@ -1345,6 +1474,41 @@ export function createRouterResponse2ResponsesCacheControlToJSON(
|
|
|
1345
1474
|
export const Detail$outboundSchema: z.ZodNativeEnum<typeof Detail> = z
|
|
1346
1475
|
.nativeEnum(Detail);
|
|
1347
1476
|
|
|
1477
|
+
/** @internal */
|
|
1478
|
+
export const CreateRouterResponse2Mode$outboundSchema: z.ZodNativeEnum<
|
|
1479
|
+
typeof CreateRouterResponse2Mode
|
|
1480
|
+
> = z.nativeEnum(CreateRouterResponse2Mode);
|
|
1481
|
+
|
|
1482
|
+
/** @internal */
|
|
1483
|
+
export const CreateRouterResponse2ResponsesRequestRequestBodyTtl$outboundSchema:
|
|
1484
|
+
z.ZodNativeEnum<typeof CreateRouterResponse2ResponsesRequestRequestBodyTtl> =
|
|
1485
|
+
z.nativeEnum(CreateRouterResponse2ResponsesRequestRequestBodyTtl);
|
|
1486
|
+
|
|
1487
|
+
/** @internal */
|
|
1488
|
+
export type TwoPromptCacheBreakpoint$Outbound = {
|
|
1489
|
+
mode: string;
|
|
1490
|
+
ttl?: string | undefined;
|
|
1491
|
+
};
|
|
1492
|
+
|
|
1493
|
+
/** @internal */
|
|
1494
|
+
export const TwoPromptCacheBreakpoint$outboundSchema: z.ZodType<
|
|
1495
|
+
TwoPromptCacheBreakpoint$Outbound,
|
|
1496
|
+
z.ZodTypeDef,
|
|
1497
|
+
TwoPromptCacheBreakpoint
|
|
1498
|
+
> = z.object({
|
|
1499
|
+
mode: CreateRouterResponse2Mode$outboundSchema,
|
|
1500
|
+
ttl: CreateRouterResponse2ResponsesRequestRequestBodyTtl$outboundSchema
|
|
1501
|
+
.optional(),
|
|
1502
|
+
});
|
|
1503
|
+
|
|
1504
|
+
export function twoPromptCacheBreakpointToJSON(
|
|
1505
|
+
twoPromptCacheBreakpoint: TwoPromptCacheBreakpoint,
|
|
1506
|
+
): string {
|
|
1507
|
+
return JSON.stringify(
|
|
1508
|
+
TwoPromptCacheBreakpoint$outboundSchema.parse(twoPromptCacheBreakpoint),
|
|
1509
|
+
);
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1348
1512
|
/** @internal */
|
|
1349
1513
|
export type TwoImage$Outbound = {
|
|
1350
1514
|
cache_control?:
|
|
@@ -1353,6 +1517,7 @@ export type TwoImage$Outbound = {
|
|
|
1353
1517
|
detail?: string | undefined;
|
|
1354
1518
|
file_id?: string | undefined;
|
|
1355
1519
|
image_url?: string | undefined;
|
|
1520
|
+
prompt_cache_breakpoint?: TwoPromptCacheBreakpoint$Outbound | undefined;
|
|
1356
1521
|
type: "input_image";
|
|
1357
1522
|
};
|
|
1358
1523
|
|
|
@@ -1368,12 +1533,15 @@ export const TwoImage$outboundSchema: z.ZodType<
|
|
|
1368
1533
|
detail: Detail$outboundSchema.optional(),
|
|
1369
1534
|
fileId: z.string().optional(),
|
|
1370
1535
|
imageUrl: z.string().optional(),
|
|
1536
|
+
promptCacheBreakpoint: z.lazy(() => TwoPromptCacheBreakpoint$outboundSchema)
|
|
1537
|
+
.optional(),
|
|
1371
1538
|
type: z.literal("input_image"),
|
|
1372
1539
|
}).transform((v) => {
|
|
1373
1540
|
return remap$(v, {
|
|
1374
1541
|
cacheControl: "cache_control",
|
|
1375
1542
|
fileId: "file_id",
|
|
1376
1543
|
imageUrl: "image_url",
|
|
1544
|
+
promptCacheBreakpoint: "prompt_cache_breakpoint",
|
|
1377
1545
|
});
|
|
1378
1546
|
});
|
|
1379
1547
|
|
|
@@ -1417,9 +1585,43 @@ export function createRouterResponse2CacheControlToJSON(
|
|
|
1417
1585
|
);
|
|
1418
1586
|
}
|
|
1419
1587
|
|
|
1588
|
+
/** @internal */
|
|
1589
|
+
export const TwoMode$outboundSchema: z.ZodNativeEnum<typeof TwoMode> = z
|
|
1590
|
+
.nativeEnum(TwoMode);
|
|
1591
|
+
|
|
1592
|
+
/** @internal */
|
|
1593
|
+
export const CreateRouterResponse2ResponsesTtl$outboundSchema: z.ZodNativeEnum<
|
|
1594
|
+
typeof CreateRouterResponse2ResponsesTtl
|
|
1595
|
+
> = z.nativeEnum(CreateRouterResponse2ResponsesTtl);
|
|
1596
|
+
|
|
1597
|
+
/** @internal */
|
|
1598
|
+
export type PromptCacheBreakpoint$Outbound = {
|
|
1599
|
+
mode: string;
|
|
1600
|
+
ttl?: string | undefined;
|
|
1601
|
+
};
|
|
1602
|
+
|
|
1603
|
+
/** @internal */
|
|
1604
|
+
export const PromptCacheBreakpoint$outboundSchema: z.ZodType<
|
|
1605
|
+
PromptCacheBreakpoint$Outbound,
|
|
1606
|
+
z.ZodTypeDef,
|
|
1607
|
+
PromptCacheBreakpoint
|
|
1608
|
+
> = z.object({
|
|
1609
|
+
mode: TwoMode$outboundSchema,
|
|
1610
|
+
ttl: CreateRouterResponse2ResponsesTtl$outboundSchema.optional(),
|
|
1611
|
+
});
|
|
1612
|
+
|
|
1613
|
+
export function promptCacheBreakpointToJSON(
|
|
1614
|
+
promptCacheBreakpoint: PromptCacheBreakpoint,
|
|
1615
|
+
): string {
|
|
1616
|
+
return JSON.stringify(
|
|
1617
|
+
PromptCacheBreakpoint$outboundSchema.parse(promptCacheBreakpoint),
|
|
1618
|
+
);
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1420
1621
|
/** @internal */
|
|
1421
1622
|
export type TwoText$Outbound = {
|
|
1422
1623
|
cache_control?: CreateRouterResponse2CacheControl$Outbound | undefined;
|
|
1624
|
+
prompt_cache_breakpoint?: PromptCacheBreakpoint$Outbound | undefined;
|
|
1423
1625
|
text: string;
|
|
1424
1626
|
type: "input_text";
|
|
1425
1627
|
};
|
|
@@ -1432,11 +1634,14 @@ export const TwoText$outboundSchema: z.ZodType<
|
|
|
1432
1634
|
> = z.object({
|
|
1433
1635
|
cacheControl: z.lazy(() => CreateRouterResponse2CacheControl$outboundSchema)
|
|
1434
1636
|
.optional(),
|
|
1637
|
+
promptCacheBreakpoint: z.lazy(() => PromptCacheBreakpoint$outboundSchema)
|
|
1638
|
+
.optional(),
|
|
1435
1639
|
text: z.string(),
|
|
1436
1640
|
type: z.literal("input_text"),
|
|
1437
1641
|
}).transform((v) => {
|
|
1438
1642
|
return remap$(v, {
|
|
1439
1643
|
cacheControl: "cache_control",
|
|
1644
|
+
promptCacheBreakpoint: "prompt_cache_breakpoint",
|
|
1440
1645
|
});
|
|
1441
1646
|
});
|
|
1442
1647
|
|
|
@@ -1575,7 +1575,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1575
1575
|
z.ZodTypeDef,
|
|
1576
1576
|
unknown
|
|
1577
1577
|
> = z.object({
|
|
1578
|
-
_id: z.string().default("
|
|
1578
|
+
_id: z.string().default("tool_01M5EC3XEB5N79WXXQ9AE4DP11"),
|
|
1579
1579
|
path: z.string(),
|
|
1580
1580
|
key: z.string(),
|
|
1581
1581
|
display_name: z.string().optional(),
|
|
@@ -1761,7 +1761,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1761
1761
|
z.ZodTypeDef,
|
|
1762
1762
|
unknown
|
|
1763
1763
|
> = z.object({
|
|
1764
|
-
_id: z.string().default("
|
|
1764
|
+
_id: z.string().default("tool_01M5EC3XEAQ34HMF3B64S64HN5"),
|
|
1765
1765
|
path: z.string(),
|
|
1766
1766
|
key: z.string(),
|
|
1767
1767
|
display_name: z.string().optional(),
|
|
@@ -1854,7 +1854,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1854
1854
|
z.ZodTypeDef,
|
|
1855
1855
|
unknown
|
|
1856
1856
|
> = z.object({
|
|
1857
|
-
_id: z.string().default("
|
|
1857
|
+
_id: z.string().default("tool_01M5EC3XE8M4BD9XZ0DZPZ254V"),
|
|
1858
1858
|
path: z.string(),
|
|
1859
1859
|
key: z.string(),
|
|
1860
1860
|
display_name: z.string().optional(),
|
|
@@ -1955,7 +1955,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1955
1955
|
z.ZodTypeDef,
|
|
1956
1956
|
unknown
|
|
1957
1957
|
> = z.object({
|
|
1958
|
-
_id: z.string().default("
|
|
1958
|
+
_id: z.string().default("tool_01M5EC3XE8R8F2RT7M6JN2TZQ4"),
|
|
1959
1959
|
path: z.string(),
|
|
1960
1960
|
key: z.string(),
|
|
1961
1961
|
display_name: z.string().optional(),
|
|
@@ -639,7 +639,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
639
639
|
z.ZodTypeDef,
|
|
640
640
|
unknown
|
|
641
641
|
> = z.object({
|
|
642
|
-
_id: z.string().default("
|
|
642
|
+
_id: z.string().default("tool_01M5EC3XE550CAFNFHWGTGJAMD"),
|
|
643
643
|
path: z.string(),
|
|
644
644
|
key: z.string(),
|
|
645
645
|
display_name: z.string().optional(),
|
|
@@ -821,7 +821,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
821
821
|
z.ZodTypeDef,
|
|
822
822
|
unknown
|
|
823
823
|
> = z.object({
|
|
824
|
-
_id: z.string().default("
|
|
824
|
+
_id: z.string().default("tool_01M5EC3XE43CPAW4S7KS0SJK3K"),
|
|
825
825
|
path: z.string(),
|
|
826
826
|
key: z.string(),
|
|
827
827
|
display_name: z.string().optional(),
|
|
@@ -914,7 +914,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
914
914
|
z.ZodTypeDef,
|
|
915
915
|
unknown
|
|
916
916
|
> = z.object({
|
|
917
|
-
_id: z.string().default("
|
|
917
|
+
_id: z.string().default("tool_01M5EC3XE3QHF80HSTW2WMBDJT"),
|
|
918
918
|
path: z.string(),
|
|
919
919
|
key: z.string(),
|
|
920
920
|
display_name: z.string().optional(),
|
|
@@ -1012,7 +1012,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1012
1012
|
z.ZodTypeDef,
|
|
1013
1013
|
unknown
|
|
1014
1014
|
> = z.object({
|
|
1015
|
-
_id: z.string().default("
|
|
1015
|
+
_id: z.string().default("tool_01M5EC3XE3NNKZ2R23HB05H22S"),
|
|
1016
1016
|
path: z.string(),
|
|
1017
1017
|
key: z.string(),
|
|
1018
1018
|
display_name: z.string().optional(),
|
|
@@ -140,7 +140,7 @@ export const GetV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
140
140
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
141
141
|
.optional(),
|
|
142
142
|
updated: z.string().datetime({ offset: true }).default(
|
|
143
|
-
"2026-10-
|
|
143
|
+
"2026-10-21T04:39:31.242Z",
|
|
144
144
|
).transform(v => new Date(v)),
|
|
145
145
|
filter_type: z.literal("name"),
|
|
146
146
|
filter_value: z.string(),
|
|
@@ -185,7 +185,7 @@ export const GetV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
185
185
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
186
186
|
.optional(),
|
|
187
187
|
updated: z.string().datetime({ offset: true }).default(
|
|
188
|
-
"2026-10-
|
|
188
|
+
"2026-10-21T04:39:31.242Z",
|
|
189
189
|
).transform(v => new Date(v)),
|
|
190
190
|
filter_type: z.literal("span_type"),
|
|
191
191
|
filter_values: z.array(z.string()),
|
|
@@ -141,7 +141,7 @@ export const GetV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
141
141
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
142
142
|
.optional(),
|
|
143
143
|
updated: z.string().datetime({ offset: true }).default(
|
|
144
|
-
"2026-10-
|
|
144
|
+
"2026-10-21T04:39:31.242Z",
|
|
145
145
|
).transform(v => new Date(v)),
|
|
146
146
|
filter_type: z.literal("name"),
|
|
147
147
|
filter_value: z.string(),
|
|
@@ -186,7 +186,7 @@ export const GetV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
186
186
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
187
187
|
.optional(),
|
|
188
188
|
updated: z.string().datetime({ offset: true }).default(
|
|
189
|
-
"2026-10-
|
|
189
|
+
"2026-10-21T04:39:31.242Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(z.string()),
|
|
@@ -2525,7 +2525,7 @@ export const ListDeploymentVersionsKnowledgeBases$inboundSchema: z.ZodType<
|
|
|
2525
2525
|
z.ZodTypeDef,
|
|
2526
2526
|
unknown
|
|
2527
2527
|
> = z.object({
|
|
2528
|
-
id: z.string().default("
|
|
2528
|
+
id: z.string().default("01M5EC3XA07S3K08CNSJ6VN60S"),
|
|
2529
2529
|
knowledge_id: z.string(),
|
|
2530
2530
|
configuration: z.union([
|
|
2531
2531
|
z.lazy(() => KnowledgeBaseLastUserMessage$inboundSchema),
|
|
@@ -318,7 +318,7 @@ export const PatchV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
318
318
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
319
319
|
.optional(),
|
|
320
320
|
updated: z.string().datetime({ offset: true }).default(
|
|
321
|
-
"2026-10-
|
|
321
|
+
"2026-10-21T04:39:31.242Z",
|
|
322
322
|
).transform(v => new Date(v)),
|
|
323
323
|
filter_type: z.literal("name"),
|
|
324
324
|
filter_value: z.string(),
|
|
@@ -364,7 +364,7 @@ export const PatchV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
364
364
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
365
365
|
.optional(),
|
|
366
366
|
updated: z.string().datetime({ offset: true }).default(
|
|
367
|
-
"2026-10-
|
|
367
|
+
"2026-10-21T04:39:31.242Z",
|
|
368
368
|
).transform(v => new Date(v)),
|
|
369
369
|
filter_type: z.literal("span_type"),
|
|
370
370
|
filter_values: z.array(z.string()),
|
|
@@ -257,7 +257,7 @@ export const PostV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
257
257
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
258
258
|
.optional(),
|
|
259
259
|
updated: z.string().datetime({ offset: true }).default(
|
|
260
|
-
"2026-10-
|
|
260
|
+
"2026-10-21T04:39:31.242Z",
|
|
261
261
|
).transform(v => new Date(v)),
|
|
262
262
|
filter_type: z.literal("name"),
|
|
263
263
|
filter_value: z.string(),
|
|
@@ -302,7 +302,7 @@ export const PostV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
302
302
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
303
303
|
.optional(),
|
|
304
304
|
updated: z.string().datetime({ offset: true }).default(
|
|
305
|
-
"2026-10-
|
|
305
|
+
"2026-10-21T04:39:31.242Z",
|
|
306
306
|
).transform(v => new Date(v)),
|
|
307
307
|
filter_type: z.literal("span_type"),
|
|
308
308
|
filter_values: z.array(z.string()),
|
|
@@ -624,7 +624,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
624
624
|
z.ZodTypeDef,
|
|
625
625
|
unknown
|
|
626
626
|
> = z.object({
|
|
627
|
-
_id: z.string().default("
|
|
627
|
+
_id: z.string().default("tool_01M5EC3XENB5NE1XGEG6KACERS"),
|
|
628
628
|
path: z.string(),
|
|
629
629
|
key: z.string(),
|
|
630
630
|
display_name: z.string().optional(),
|
|
@@ -820,7 +820,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
820
820
|
z.ZodTypeDef,
|
|
821
821
|
unknown
|
|
822
822
|
> = z.object({
|
|
823
|
-
_id: z.string().default("
|
|
823
|
+
_id: z.string().default("tool_01M5EC3XEM8VP25QBKKQ799X72"),
|
|
824
824
|
path: z.string(),
|
|
825
825
|
key: z.string(),
|
|
826
826
|
display_name: z.string().optional(),
|
|
@@ -916,7 +916,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
916
916
|
z.ZodTypeDef,
|
|
917
917
|
unknown
|
|
918
918
|
> = z.object({
|
|
919
|
-
_id: z.string().default("
|
|
919
|
+
_id: z.string().default("tool_01M5EC3XEMMFJGA12RFJC08X3E"),
|
|
920
920
|
path: z.string(),
|
|
921
921
|
key: z.string(),
|
|
922
922
|
display_name: z.string().optional(),
|
|
@@ -1022,7 +1022,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1022
1022
|
z.ZodTypeDef,
|
|
1023
1023
|
unknown
|
|
1024
1024
|
> = z.object({
|
|
1025
|
-
_id: z.string().default("
|
|
1025
|
+
_id: z.string().default("tool_01M5EC3XEK0H7CWY09HQYPQC75"),
|
|
1026
1026
|
path: z.string(),
|
|
1027
1027
|
key: z.string(),
|
|
1028
1028
|
display_name: z.string().optional(),
|
|
@@ -3904,7 +3904,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
3904
3904
|
z.ZodTypeDef,
|
|
3905
3905
|
Tools
|
|
3906
3906
|
> = z.object({
|
|
3907
|
-
id: z.string().default("
|
|
3907
|
+
id: z.string().default("01M5EC3XCBW9P1ZBKDKKRXA5SG"),
|
|
3908
3908
|
name: z.string(),
|
|
3909
3909
|
description: z.string().optional(),
|
|
3910
3910
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -3963,7 +3963,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
3963
3963
|
z.ZodTypeDef,
|
|
3964
3964
|
AgentToolInputRunTools
|
|
3965
3965
|
> = z.object({
|
|
3966
|
-
id: z.string().default("
|
|
3966
|
+
id: z.string().default("01M5EC3XCW2HJ6XPHVMHB7WS8P"),
|
|
3967
3967
|
name: z.string(),
|
|
3968
3968
|
description: z.string().optional(),
|
|
3969
3969
|
schema: z.lazy(() =>
|
|
@@ -1764,7 +1764,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1764
1764
|
z.ZodTypeDef,
|
|
1765
1765
|
unknown
|
|
1766
1766
|
> = z.object({
|
|
1767
|
-
_id: z.string().default("
|
|
1767
|
+
_id: z.string().default("tool_01M5EC3XEFGRVMAMW82TH0B2MR"),
|
|
1768
1768
|
path: z.string(),
|
|
1769
1769
|
key: z.string(),
|
|
1770
1770
|
display_name: z.string().optional(),
|
|
@@ -1959,7 +1959,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1959
1959
|
z.ZodTypeDef,
|
|
1960
1960
|
unknown
|
|
1961
1961
|
> = z.object({
|
|
1962
|
-
_id: z.string().default("
|
|
1962
|
+
_id: z.string().default("tool_01M5EC3XEE69EJTVQC9X3RJV3D"),
|
|
1963
1963
|
path: z.string(),
|
|
1964
1964
|
key: z.string(),
|
|
1965
1965
|
display_name: z.string().optional(),
|
|
@@ -2054,7 +2054,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2054
2054
|
z.ZodTypeDef,
|
|
2055
2055
|
unknown
|
|
2056
2056
|
> = z.object({
|
|
2057
|
-
_id: z.string().default("
|
|
2057
|
+
_id: z.string().default("tool_01M5EC3XEDS07FG2BV1N741RDP"),
|
|
2058
2058
|
path: z.string(),
|
|
2059
2059
|
key: z.string(),
|
|
2060
2060
|
display_name: z.string().optional(),
|
|
@@ -2157,7 +2157,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2157
2157
|
z.ZodTypeDef,
|
|
2158
2158
|
unknown
|
|
2159
2159
|
> = z.object({
|
|
2160
|
-
_id: z.string().default("
|
|
2160
|
+
_id: z.string().default("tool_01M5EC3XEDKDCF7AKEEYH9ZH9R"),
|
|
2161
2161
|
path: z.string(),
|
|
2162
2162
|
key: z.string(),
|
|
2163
2163
|
display_name: z.string().optional(),
|