@orq-ai/node 4.16.14 → 4.16.15
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/reasoningpart.js +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/postv2feedbackevaluation.js +4 -4
- 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 +3 -3
- package/packages/orq-rc/src/funcs/mcpGatewaysList.ts +0 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +6 -0
- package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +6 -0
- package/packages/orq-rc/src/models/components/cachewritetokensdetails.ts +39 -0
- package/packages/orq-rc/src/models/components/filecontentpartschema.ts +1 -1
- package/packages/orq-rc/src/models/components/index.ts +2 -1
- package/packages/orq-rc/src/models/components/inputtokensdetails.ts +7 -0
- package/packages/orq-rc/src/models/components/litellmmodel.ts +4 -0
- package/packages/orq-rc/src/models/components/mcpgateway.ts +0 -6
- package/packages/orq-rc/src/models/components/mcptoolinput.ts +7 -7
- package/packages/orq-rc/src/models/components/modelconfigurationresponse.ts +3 -0
- package/packages/orq-rc/src/models/components/modelmetadata.ts +6 -0
- package/packages/orq-rc/src/models/components/openaipromptcacheoptions.ts +1 -0
- package/packages/orq-rc/src/models/components/pricing.ts +6 -0
- package/packages/orq-rc/src/models/components/pricingvariant.ts +6 -0
- package/packages/orq-rc/src/models/components/privatemodelconfiguration.ts +39 -0
- package/packages/orq-rc/src/models/components/publicresponseresource.ts +1 -1
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/redactresponse.ts +1 -1
- package/packages/orq-rc/src/models/components/updatemcpgatewayrequest.ts +0 -7
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +6 -0
- package/packages/orq-rc/src/models/operations/createprompt.ts +1 -1
- package/packages/orq-rc/src/models/operations/createrouterresponse.ts +225 -20
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +1 -1
- package/packages/orq-rc/src/models/operations/deployments.ts +1 -1
- package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -1
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +1 -1
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -1
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/listagents.ts +6 -0
- package/packages/orq-rc/src/models/operations/listdeploymentversions.ts +2 -2
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -1
- package/packages/orq-rc/src/models/operations/mcpgatewaylist.ts +0 -7
- package/packages/orq-rc/src/models/operations/modelcreate.ts +3 -0
- package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +6 -0
- package/packages/orq-rc/src/models/operations/modelcreateopenailike.ts +6 -0
- package/packages/orq-rc/src/models/operations/modelcreatevertex.ts +7 -0
- package/packages/orq-rc/src/models/operations/modelupdate.ts +7 -0
- package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +3 -0
- package/packages/orq-rc/src/models/operations/modelupdateopenailike.ts +3 -0
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +6 -0
- package/packages/orq-rc/src/models/operations/retrieveresponse.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateagent.ts +6 -0
- package/packages/orq-rc/src/models/operations/updateprompt.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/src/lib/config.ts +2 -2
- package/src/models/components/reasoningpart.ts +1 -1
- 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/postv2feedbackevaluation.ts +4 -4
- 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
- package/packages/orq-rc/src/models/components/mcpgatewaystatus.ts +0 -21
|
@@ -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
|
*/
|
|
@@ -947,11 +1026,11 @@ export type CreateRouterResponseRequestBody = {
|
|
|
947
1026
|
maxToolCalls?: number | undefined;
|
|
948
1027
|
memory?: components.MemoryParam | undefined;
|
|
949
1028
|
/**
|
|
950
|
-
* Developer-defined key-value pairs attached to the response (OpenAI spec: Map<string, string
|
|
1029
|
+
* Developer-defined key-value pairs attached to the response (OpenAI spec: `Map<string, string>`). Non-string values are rejected with a 400.
|
|
951
1030
|
*/
|
|
952
1031
|
metadata?: { [k: string]: string } | undefined;
|
|
953
1032
|
/**
|
|
954
|
-
* The model to use in provider/model format (e.g. openai/gpt-4o). Use agent/<key
|
|
1033
|
+
* The model to use in provider/model format (e.g. openai/gpt-4o). Use `agent/<key>` to invoke a pre-configured agent from the orq.ai platform.
|
|
955
1034
|
*/
|
|
956
1035
|
model?: string | undefined;
|
|
957
1036
|
/**
|
|
@@ -1132,7 +1211,7 @@ export type CreateRouterResponseResponseBody = {
|
|
|
1132
1211
|
maxToolCalls: number | null;
|
|
1133
1212
|
memory?: components.MemoryParam | undefined;
|
|
1134
1213
|
/**
|
|
1135
|
-
* Developer-defined key-value pairs attached to the response (OpenAI spec: Map<string, string
|
|
1214
|
+
* Developer-defined key-value pairs attached to the response (OpenAI spec: `Map<string, string>`).
|
|
1136
1215
|
*/
|
|
1137
1216
|
metadata: { [k: string]: string };
|
|
1138
1217
|
model: string;
|
|
@@ -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_01M5FMZ1T2DCDE0G8BB70Y83W4"),
|
|
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_01M5FMZ1T1NVW2CPC7DBJRP1F3"),
|
|
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_01M5FMZ1T1G82ZFVSJ44Z9223Q"),
|
|
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_01M5FMZ1T06BMYCQPYWQ1VHSW8"),
|
|
1959
1959
|
path: z.string(),
|
|
1960
1960
|
key: z.string(),
|
|
1961
1961
|
display_name: z.string().optional(),
|
|
@@ -1220,7 +1220,7 @@ export type DeploymentGetConfigRole = ClosedEnum<
|
|
|
1220
1220
|
|
|
1221
1221
|
export type DeploymentGetConfig2File = {
|
|
1222
1222
|
/**
|
|
1223
|
-
* The file data as a data URI string in the format
|
|
1223
|
+
* The file data as a data URI string in the format `data:<mime-type>;base64,<base64-encoded-data>`. Example: `data:image/png;base64,iVBORw0KGgoAAAANS...`
|
|
1224
1224
|
*/
|
|
1225
1225
|
fileData?: string | undefined;
|
|
1226
1226
|
/**
|
|
@@ -528,7 +528,7 @@ export type DeploymentsRole = ClosedEnum<typeof DeploymentsRole>;
|
|
|
528
528
|
|
|
529
529
|
export type Deployments2File = {
|
|
530
530
|
/**
|
|
531
|
-
* The file data as a data URI string in the format
|
|
531
|
+
* The file data as a data URI string in the format `data:<mime-type>;base64,<base64-encoded-data>`. Example: `data:image/png;base64,iVBORw0KGgoAAAANS...`
|
|
532
532
|
*/
|
|
533
533
|
fileData?: string | undefined;
|
|
534
534
|
/**
|
|
@@ -479,7 +479,7 @@ export type GetAllPromptsRole = ClosedEnum<typeof GetAllPromptsRole>;
|
|
|
479
479
|
|
|
480
480
|
export type GetAllPrompts2File = {
|
|
481
481
|
/**
|
|
482
|
-
* The file data as a data URI string in the format
|
|
482
|
+
* The file data as a data URI string in the format `data:<mime-type>;base64,<base64-encoded-data>`. Example: `data:image/png;base64,iVBORw0KGgoAAAANS...`
|
|
483
483
|
*/
|
|
484
484
|
fileData?: string | undefined;
|
|
485
485
|
/**
|
|
@@ -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_01M5FMZ1SVF52E82BH4JHQXJ1X"),
|
|
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_01M5FMZ1ST7VDBFQGK1MCH3KGF"),
|
|
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_01M5FMZ1STRE9JVTHRS74V2SFB"),
|
|
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_01M5FMZ1SSXC86TJX5PAWGRM1Y"),
|
|
1016
1016
|
path: z.string(),
|
|
1017
1017
|
key: z.string(),
|
|
1018
1018
|
display_name: z.string().optional(),
|
|
@@ -463,7 +463,7 @@ export type GetOnePromptRole = ClosedEnum<typeof GetOnePromptRole>;
|
|
|
463
463
|
|
|
464
464
|
export type GetOnePrompt2File = {
|
|
465
465
|
/**
|
|
466
|
-
* The file data as a data URI string in the format
|
|
466
|
+
* The file data as a data URI string in the format `data:<mime-type>;base64,<base64-encoded-data>`. Example: `data:image/png;base64,iVBORw0KGgoAAAANS...`
|
|
467
467
|
*/
|
|
468
468
|
fileData?: string | undefined;
|
|
469
469
|
/**
|
|
@@ -471,7 +471,7 @@ export type GetPromptVersionRole = ClosedEnum<typeof GetPromptVersionRole>;
|
|
|
471
471
|
|
|
472
472
|
export type GetPromptVersion2File = {
|
|
473
473
|
/**
|
|
474
|
-
* The file data as a data URI string in the format
|
|
474
|
+
* The file data as a data URI string in the format `data:<mime-type>;base64,<base64-encoded-data>`. Example: `data:image/png;base64,iVBORw0KGgoAAAANS...`
|
|
475
475
|
*/
|
|
476
476
|
fileData?: string | undefined;
|
|
477
477
|
/**
|
|
@@ -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-21T16:33:23.690Z",
|
|
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-21T16:33:23.690Z",
|
|
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-21T16:33:23.690Z",
|
|
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-21T16:33:23.690Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(z.string()),
|
|
@@ -166,6 +166,10 @@ export type ListAgentsTools = {
|
|
|
166
166
|
* Nested tool ID for MCP tools (identifies specific tool within MCP server)
|
|
167
167
|
*/
|
|
168
168
|
toolId?: string | undefined;
|
|
169
|
+
/**
|
|
170
|
+
* Set by the API on MCP tools resolved from a whole MCP server or gateway; they are resolved again on every save.
|
|
171
|
+
*/
|
|
172
|
+
wholeServer?: boolean | undefined;
|
|
169
173
|
conditions?: Array<ListAgentsConditions> | undefined;
|
|
170
174
|
/**
|
|
171
175
|
* Tool execution timeout in seconds for this agent (max: 10 minutes). Overrides the timeout configured on the tool definition.
|
|
@@ -1528,6 +1532,7 @@ export const ListAgentsTools$inboundSchema: z.ZodType<
|
|
|
1528
1532
|
configuration: z.record(z.any()).optional(),
|
|
1529
1533
|
requires_approval: z.boolean().default(false),
|
|
1530
1534
|
tool_id: z.string().optional(),
|
|
1535
|
+
whole_server: z.boolean().optional(),
|
|
1531
1536
|
conditions: z.array(z.lazy(() => ListAgentsConditions$inboundSchema))
|
|
1532
1537
|
.optional(),
|
|
1533
1538
|
timeout: z.number().optional(),
|
|
@@ -1537,6 +1542,7 @@ export const ListAgentsTools$inboundSchema: z.ZodType<
|
|
|
1537
1542
|
"display_name": "displayName",
|
|
1538
1543
|
"requires_approval": "requiresApproval",
|
|
1539
1544
|
"tool_id": "toolId",
|
|
1545
|
+
"whole_server": "wholeServer",
|
|
1540
1546
|
});
|
|
1541
1547
|
});
|
|
1542
1548
|
|
|
@@ -489,7 +489,7 @@ export type ListDeploymentVersionsRole = ClosedEnum<
|
|
|
489
489
|
|
|
490
490
|
export type ListDeploymentVersions2File = {
|
|
491
491
|
/**
|
|
492
|
-
* The file data as a data URI string in the format
|
|
492
|
+
* The file data as a data URI string in the format `data:<mime-type>;base64,<base64-encoded-data>`. Example: `data:image/png;base64,iVBORw0KGgoAAAANS...`
|
|
493
493
|
*/
|
|
494
494
|
fileData?: string | undefined;
|
|
495
495
|
/**
|
|
@@ -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("01M5FMZ1NRXNGEKJH1W65V2VQ5"),
|
|
2529
2529
|
knowledge_id: z.string(),
|
|
2530
2530
|
configuration: z.union([
|
|
2531
2531
|
z.lazy(() => KnowledgeBaseLastUserMessage$inboundSchema),
|
|
@@ -485,7 +485,7 @@ export type ListPromptVersionsRole = ClosedEnum<typeof ListPromptVersionsRole>;
|
|
|
485
485
|
|
|
486
486
|
export type ListPromptVersions2File = {
|
|
487
487
|
/**
|
|
488
|
-
* The file data as a data URI string in the format
|
|
488
|
+
* The file data as a data URI string in the format `data:<mime-type>;base64,<base64-encoded-data>`. Example: `data:image/png;base64,iVBORw0KGgoAAAANS...`
|
|
489
489
|
*/
|
|
490
490
|
fileData?: string | undefined;
|
|
491
491
|
/**
|