@orq-ai/node 4.2.0-rc.61 → 4.2.0-rc.64
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/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/conversationresponse.js +1 -1
- package/models/components/conversationwithmessagesresponse.js +1 -1
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createagentrequest.d.ts +66 -22
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +50 -17
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +39 -13
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +27 -9
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createcompletion.d.ts +19 -6
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +13 -4
- package/models/operations/createcompletion.js.map +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createconversation.js +1 -1
- package/models/operations/createconversationresponse.js +2 -2
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createembedding.d.ts +19 -6
- package/models/operations/createembedding.d.ts.map +1 -1
- package/models/operations/createembedding.js +13 -4
- package/models/operations/createembedding.js.map +1 -1
- package/models/operations/createeval.js +14 -14
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createimage.d.ts +19 -6
- package/models/operations/createimage.d.ts.map +1 -1
- package/models/operations/createimage.js +12 -4
- package/models/operations/createimage.js.map +1 -1
- package/models/operations/createimageedit.d.ts +19 -6
- package/models/operations/createimageedit.d.ts.map +1 -1
- package/models/operations/createimageedit.js +13 -4
- package/models/operations/createimageedit.js.map +1 -1
- package/models/operations/createimagevariation.d.ts +19 -6
- package/models/operations/createimagevariation.d.ts.map +1 -1
- package/models/operations/createimagevariation.js +13 -4
- package/models/operations/createimagevariation.js.map +1 -1
- package/models/operations/createprompt.d.ts +33 -11
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +26 -9
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/creatererank.d.ts +19 -6
- package/models/operations/creatererank.d.ts.map +1 -1
- package/models/operations/creatererank.js +12 -4
- package/models/operations/creatererank.js.map +1 -1
- package/models/operations/createspeech.d.ts +19 -6
- package/models/operations/createspeech.d.ts.map +1 -1
- package/models/operations/createspeech.js +12 -4
- package/models/operations/createspeech.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/createtranscription.d.ts +24 -6
- package/models/operations/createtranscription.d.ts.map +1 -1
- package/models/operations/createtranscription.js +14 -4
- package/models/operations/createtranscription.js.map +1 -1
- package/models/operations/createtranslation.d.ts +24 -6
- package/models/operations/createtranslation.d.ts.map +1 -1
- package/models/operations/createtranslation.js +14 -4
- package/models/operations/createtranslation.js.map +1 -1
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/generateconversationname.js +1 -1
- package/models/operations/getallprompts.d.ts +13 -4
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +13 -5
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +14 -14
- package/models/operations/getoneprompt.d.ts +13 -4
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +13 -5
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +13 -4
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +14 -5
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/listagents.d.ts +26 -8
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +25 -9
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listcontacts.js +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/listpromptversions.d.ts +13 -4
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +14 -5
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrieveagentrequest.d.ts +26 -8
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +25 -8
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievecontact.js +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.d.ts +40 -14
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +27 -11
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +40 -14
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +28 -10
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +66 -22
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +50 -17
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatecontact.js +1 -1
- package/models/operations/updateconversation.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +14 -14
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updateprompt.d.ts +33 -11
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +26 -9
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/conversationresponse.ts +1 -1
- package/src/models/components/conversationwithmessagesresponse.ts +1 -1
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createagentrequest.ts +152 -40
- package/src/models/operations/createchatcompletion.ts +94 -24
- package/src/models/operations/createcompletion.ts +43 -11
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createconversation.ts +1 -1
- package/src/models/operations/createconversationresponse.ts +2 -2
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createembedding.ts +43 -11
- package/src/models/operations/createeval.ts +14 -14
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createimage.ts +40 -9
- package/src/models/operations/createimageedit.ts +43 -11
- package/src/models/operations/createimagevariation.ts +44 -11
- package/src/models/operations/createprompt.ts +78 -19
- package/src/models/operations/creatererank.ts +40 -9
- package/src/models/operations/createspeech.ts +40 -9
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/createtranscription.ts +49 -11
- package/src/models/operations/createtranslation.ts +49 -11
- package/src/models/operations/fileget.ts +1 -1
- package/src/models/operations/filelist.ts +1 -1
- package/src/models/operations/fileupload.ts +1 -1
- package/src/models/operations/generateconversationname.ts +1 -1
- package/src/models/operations/getallprompts.ts +33 -7
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +14 -14
- package/src/models/operations/getoneprompt.ts +33 -7
- package/src/models/operations/getpromptversion.ts +37 -9
- package/src/models/operations/listagents.ts +70 -17
- package/src/models/operations/listcontacts.ts +1 -1
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/listpromptversions.ts +37 -9
- package/src/models/operations/retrieveagentrequest.ts +80 -17
- package/src/models/operations/retrievecontact.ts +1 -1
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +84 -24
- package/src/models/operations/streamrunagent.ts +90 -25
- package/src/models/operations/updateagent.ts +171 -38
- package/src/models/operations/updatecontact.ts +1 -1
- package/src/models/operations/updateconversation.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +14 -14
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updateprompt.ts +78 -19
- package/src/models/operations/updatetool.ts +7 -7
|
@@ -103,8 +103,7 @@ export type CreateTranslationLoadBalancerType = ClosedEnum<
|
|
|
103
103
|
typeof CreateTranslationLoadBalancerType
|
|
104
104
|
>;
|
|
105
105
|
|
|
106
|
-
export type
|
|
107
|
-
type: CreateTranslationLoadBalancerType;
|
|
106
|
+
export type CreateTranslationLoadBalancerModels = {
|
|
108
107
|
/**
|
|
109
108
|
* Model identifier for load balancing
|
|
110
109
|
*/
|
|
@@ -115,6 +114,14 @@ export type CreateTranslationLoadBalancer1 = {
|
|
|
115
114
|
weight?: number | undefined;
|
|
116
115
|
};
|
|
117
116
|
|
|
117
|
+
export type CreateTranslationLoadBalancer1 = {
|
|
118
|
+
type: CreateTranslationLoadBalancerType;
|
|
119
|
+
models: Array<CreateTranslationLoadBalancerModels>;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Array of models with weights for load balancing requests
|
|
124
|
+
*/
|
|
118
125
|
export type CreateTranslationLoadBalancer = CreateTranslationLoadBalancer1;
|
|
119
126
|
|
|
120
127
|
/**
|
|
@@ -128,6 +135,10 @@ export type CreateTranslationTimeout = {
|
|
|
128
135
|
};
|
|
129
136
|
|
|
130
137
|
export type CreateTranslationOrq = {
|
|
138
|
+
/**
|
|
139
|
+
* The name to display on the trace. If not specified, the default system name will be used.
|
|
140
|
+
*/
|
|
141
|
+
name?: string | undefined;
|
|
131
142
|
/**
|
|
132
143
|
* Array of fallback models to use if primary model fails
|
|
133
144
|
*/
|
|
@@ -144,7 +155,7 @@ export type CreateTranslationOrq = {
|
|
|
144
155
|
/**
|
|
145
156
|
* Array of models with weights for load balancing requests
|
|
146
157
|
*/
|
|
147
|
-
loadBalancer?:
|
|
158
|
+
loadBalancer?: CreateTranslationLoadBalancer1 | undefined;
|
|
148
159
|
/**
|
|
149
160
|
* Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
|
|
150
161
|
*/
|
|
@@ -347,12 +358,37 @@ export const CreateTranslationLoadBalancerType$outboundSchema: z.ZodNativeEnum<
|
|
|
347
358
|
> = z.nativeEnum(CreateTranslationLoadBalancerType);
|
|
348
359
|
|
|
349
360
|
/** @internal */
|
|
350
|
-
export type
|
|
351
|
-
type: string;
|
|
361
|
+
export type CreateTranslationLoadBalancerModels$Outbound = {
|
|
352
362
|
model: string;
|
|
353
363
|
weight: number;
|
|
354
364
|
};
|
|
355
365
|
|
|
366
|
+
/** @internal */
|
|
367
|
+
export const CreateTranslationLoadBalancerModels$outboundSchema: z.ZodType<
|
|
368
|
+
CreateTranslationLoadBalancerModels$Outbound,
|
|
369
|
+
z.ZodTypeDef,
|
|
370
|
+
CreateTranslationLoadBalancerModels
|
|
371
|
+
> = z.object({
|
|
372
|
+
model: z.string(),
|
|
373
|
+
weight: z.number().default(0.5),
|
|
374
|
+
});
|
|
375
|
+
|
|
376
|
+
export function createTranslationLoadBalancerModelsToJSON(
|
|
377
|
+
createTranslationLoadBalancerModels: CreateTranslationLoadBalancerModels,
|
|
378
|
+
): string {
|
|
379
|
+
return JSON.stringify(
|
|
380
|
+
CreateTranslationLoadBalancerModels$outboundSchema.parse(
|
|
381
|
+
createTranslationLoadBalancerModels,
|
|
382
|
+
),
|
|
383
|
+
);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/** @internal */
|
|
387
|
+
export type CreateTranslationLoadBalancer1$Outbound = {
|
|
388
|
+
type: string;
|
|
389
|
+
models: Array<CreateTranslationLoadBalancerModels$Outbound>;
|
|
390
|
+
};
|
|
391
|
+
|
|
356
392
|
/** @internal */
|
|
357
393
|
export const CreateTranslationLoadBalancer1$outboundSchema: z.ZodType<
|
|
358
394
|
CreateTranslationLoadBalancer1$Outbound,
|
|
@@ -360,8 +396,9 @@ export const CreateTranslationLoadBalancer1$outboundSchema: z.ZodType<
|
|
|
360
396
|
CreateTranslationLoadBalancer1
|
|
361
397
|
> = z.object({
|
|
362
398
|
type: CreateTranslationLoadBalancerType$outboundSchema,
|
|
363
|
-
|
|
364
|
-
|
|
399
|
+
models: z.array(
|
|
400
|
+
z.lazy(() => CreateTranslationLoadBalancerModels$outboundSchema),
|
|
401
|
+
),
|
|
365
402
|
});
|
|
366
403
|
|
|
367
404
|
export function createTranslationLoadBalancer1ToJSON(
|
|
@@ -423,11 +460,12 @@ export function createTranslationTimeoutToJSON(
|
|
|
423
460
|
|
|
424
461
|
/** @internal */
|
|
425
462
|
export type CreateTranslationOrq$Outbound = {
|
|
463
|
+
name?: string | undefined;
|
|
426
464
|
fallbacks?: Array<CreateTranslationFallbacks$Outbound> | undefined;
|
|
427
465
|
retry?: CreateTranslationRetry$Outbound | undefined;
|
|
428
466
|
identity?: components.PublicContact$Outbound | undefined;
|
|
429
467
|
contact?: CreateTranslationContact$Outbound | undefined;
|
|
430
|
-
load_balancer?:
|
|
468
|
+
load_balancer?: CreateTranslationLoadBalancer1$Outbound | undefined;
|
|
431
469
|
timeout?: CreateTranslationTimeout$Outbound | undefined;
|
|
432
470
|
};
|
|
433
471
|
|
|
@@ -437,14 +475,14 @@ export const CreateTranslationOrq$outboundSchema: z.ZodType<
|
|
|
437
475
|
z.ZodTypeDef,
|
|
438
476
|
CreateTranslationOrq
|
|
439
477
|
> = z.object({
|
|
478
|
+
name: z.string().optional(),
|
|
440
479
|
fallbacks: z.array(z.lazy(() => CreateTranslationFallbacks$outboundSchema))
|
|
441
480
|
.optional(),
|
|
442
481
|
retry: z.lazy(() => CreateTranslationRetry$outboundSchema).optional(),
|
|
443
482
|
identity: components.PublicContact$outboundSchema.optional(),
|
|
444
483
|
contact: z.lazy(() => CreateTranslationContact$outboundSchema).optional(),
|
|
445
|
-
loadBalancer: z.
|
|
446
|
-
|
|
447
|
-
).optional(),
|
|
484
|
+
loadBalancer: z.lazy(() => CreateTranslationLoadBalancer1$outboundSchema)
|
|
485
|
+
.optional(),
|
|
448
486
|
timeout: z.lazy(() => CreateTranslationTimeout$outboundSchema).optional(),
|
|
449
487
|
}).transform((v) => {
|
|
450
488
|
return remap$(v, {
|
|
@@ -94,7 +94,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
|
|
|
94
94
|
file_name: z.string(),
|
|
95
95
|
workspace_id: z.string(),
|
|
96
96
|
created: z.string().datetime({ offset: true }).default(
|
|
97
|
-
"2026-01-
|
|
97
|
+
"2026-01-23T05:38:09.460Z",
|
|
98
98
|
).transform(v => new Date(v)),
|
|
99
99
|
}).transform((v) => {
|
|
100
100
|
return remap$(v, {
|
|
@@ -125,7 +125,7 @@ export const FileListData$inboundSchema: z.ZodType<
|
|
|
125
125
|
file_name: z.string(),
|
|
126
126
|
workspace_id: z.string(),
|
|
127
127
|
created: z.string().datetime({ offset: true }).default(
|
|
128
|
-
"2026-01-
|
|
128
|
+
"2026-01-23T05:38:09.460Z",
|
|
129
129
|
).transform(v => new Date(v)),
|
|
130
130
|
}).transform((v) => {
|
|
131
131
|
return remap$(v, {
|
|
@@ -148,7 +148,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
|
|
|
148
148
|
file_name: z.string(),
|
|
149
149
|
workspace_id: z.string(),
|
|
150
150
|
created: z.string().datetime({ offset: true }).default(
|
|
151
|
-
"2026-01-
|
|
151
|
+
"2026-01-23T05:38:09.460Z",
|
|
152
152
|
).transform(v => new Date(v)),
|
|
153
153
|
}).transform((v) => {
|
|
154
154
|
return remap$(v, {
|
|
@@ -180,7 +180,7 @@ export const GenerateConversationNameResponseBody$inboundSchema: z.ZodType<
|
|
|
180
180
|
z.ZodTypeDef,
|
|
181
181
|
unknown
|
|
182
182
|
> = z.object({
|
|
183
|
-
_id: z.string().default("
|
|
183
|
+
_id: z.string().default("conv_01kfmnrkkhmt82j53yep4x5f6y"),
|
|
184
184
|
kind: GenerateConversationNameKind$inboundSchema,
|
|
185
185
|
displayName: z.string(),
|
|
186
186
|
createdAt: z.number(),
|
|
@@ -812,8 +812,7 @@ export type GetAllPromptsLoadBalancerType = ClosedEnum<
|
|
|
812
812
|
typeof GetAllPromptsLoadBalancerType
|
|
813
813
|
>;
|
|
814
814
|
|
|
815
|
-
export type
|
|
816
|
-
type: GetAllPromptsLoadBalancerType;
|
|
815
|
+
export type GetAllPromptsLoadBalancerModels = {
|
|
817
816
|
/**
|
|
818
817
|
* Model identifier for load balancing
|
|
819
818
|
*/
|
|
@@ -824,6 +823,14 @@ export type GetAllPromptsLoadBalancer1 = {
|
|
|
824
823
|
weight: number;
|
|
825
824
|
};
|
|
826
825
|
|
|
826
|
+
export type GetAllPromptsLoadBalancer1 = {
|
|
827
|
+
type: GetAllPromptsLoadBalancerType;
|
|
828
|
+
models: Array<GetAllPromptsLoadBalancerModels>;
|
|
829
|
+
};
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* Load balancer configuration for the request.
|
|
833
|
+
*/
|
|
827
834
|
export type GetAllPromptsLoadBalancer = GetAllPromptsLoadBalancer1;
|
|
828
835
|
|
|
829
836
|
/**
|
|
@@ -1287,9 +1294,9 @@ export type GetAllPromptsPromptField = {
|
|
|
1287
1294
|
*/
|
|
1288
1295
|
cache?: GetAllPromptsCache | undefined;
|
|
1289
1296
|
/**
|
|
1290
|
-
*
|
|
1297
|
+
* Load balancer configuration for the request.
|
|
1291
1298
|
*/
|
|
1292
|
-
loadBalancer?:
|
|
1299
|
+
loadBalancer?: GetAllPromptsLoadBalancer1 | undefined;
|
|
1293
1300
|
/**
|
|
1294
1301
|
* Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
|
|
1295
1302
|
*/
|
|
@@ -2384,6 +2391,26 @@ export const GetAllPromptsLoadBalancerType$inboundSchema: z.ZodNativeEnum<
|
|
|
2384
2391
|
typeof GetAllPromptsLoadBalancerType
|
|
2385
2392
|
> = z.nativeEnum(GetAllPromptsLoadBalancerType);
|
|
2386
2393
|
|
|
2394
|
+
/** @internal */
|
|
2395
|
+
export const GetAllPromptsLoadBalancerModels$inboundSchema: z.ZodType<
|
|
2396
|
+
GetAllPromptsLoadBalancerModels,
|
|
2397
|
+
z.ZodTypeDef,
|
|
2398
|
+
unknown
|
|
2399
|
+
> = z.object({
|
|
2400
|
+
model: z.string(),
|
|
2401
|
+
weight: z.number().default(0.5),
|
|
2402
|
+
});
|
|
2403
|
+
|
|
2404
|
+
export function getAllPromptsLoadBalancerModelsFromJSON(
|
|
2405
|
+
jsonString: string,
|
|
2406
|
+
): SafeParseResult<GetAllPromptsLoadBalancerModels, SDKValidationError> {
|
|
2407
|
+
return safeParse(
|
|
2408
|
+
jsonString,
|
|
2409
|
+
(x) => GetAllPromptsLoadBalancerModels$inboundSchema.parse(JSON.parse(x)),
|
|
2410
|
+
`Failed to parse 'GetAllPromptsLoadBalancerModels' from JSON`,
|
|
2411
|
+
);
|
|
2412
|
+
}
|
|
2413
|
+
|
|
2387
2414
|
/** @internal */
|
|
2388
2415
|
export const GetAllPromptsLoadBalancer1$inboundSchema: z.ZodType<
|
|
2389
2416
|
GetAllPromptsLoadBalancer1,
|
|
@@ -2391,8 +2418,7 @@ export const GetAllPromptsLoadBalancer1$inboundSchema: z.ZodType<
|
|
|
2391
2418
|
unknown
|
|
2392
2419
|
> = z.object({
|
|
2393
2420
|
type: GetAllPromptsLoadBalancerType$inboundSchema,
|
|
2394
|
-
|
|
2395
|
-
weight: z.number().default(0.5),
|
|
2421
|
+
models: z.array(z.lazy(() => GetAllPromptsLoadBalancerModels$inboundSchema)),
|
|
2396
2422
|
});
|
|
2397
2423
|
|
|
2398
2424
|
export function getAllPromptsLoadBalancer1FromJSON(
|
|
@@ -2989,7 +3015,7 @@ export const GetAllPromptsPromptField$inboundSchema: z.ZodType<
|
|
|
2989
3015
|
.optional(),
|
|
2990
3016
|
retry: z.lazy(() => GetAllPromptsRetry$inboundSchema).optional(),
|
|
2991
3017
|
cache: z.lazy(() => GetAllPromptsCache$inboundSchema).optional(),
|
|
2992
|
-
load_balancer: z.
|
|
3018
|
+
load_balancer: z.lazy(() => GetAllPromptsLoadBalancer1$inboundSchema)
|
|
2993
3019
|
.optional(),
|
|
2994
3020
|
timeout: z.lazy(() => GetAllPromptsTimeout$inboundSchema).optional(),
|
|
2995
3021
|
messages: z.array(
|
|
@@ -768,7 +768,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
768
768
|
z.ZodTypeDef,
|
|
769
769
|
unknown
|
|
770
770
|
> = z.object({
|
|
771
|
-
_id: z.string().default("
|
|
771
|
+
_id: z.string().default("tool_01KFMNRM3SVWTNXF29GA83V9B0"),
|
|
772
772
|
path: z.string(),
|
|
773
773
|
key: z.string(),
|
|
774
774
|
display_name: z.string().optional(),
|
|
@@ -867,7 +867,7 @@ export const DataTools$inboundSchema: z.ZodType<
|
|
|
867
867
|
z.ZodTypeDef,
|
|
868
868
|
unknown
|
|
869
869
|
> = z.object({
|
|
870
|
-
id: z.string().default("
|
|
870
|
+
id: z.string().default("01KFMNRM3H7M96R3Z42XVQQEB6"),
|
|
871
871
|
name: z.string(),
|
|
872
872
|
description: z.string().optional(),
|
|
873
873
|
schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
|
|
@@ -918,7 +918,7 @@ export const DataMCPTool$inboundSchema: z.ZodType<
|
|
|
918
918
|
z.ZodTypeDef,
|
|
919
919
|
unknown
|
|
920
920
|
> = z.object({
|
|
921
|
-
_id: z.string().default("
|
|
921
|
+
_id: z.string().default("tool_01KFMNRM39FAG07TF7CS3TGEAC"),
|
|
922
922
|
path: z.string(),
|
|
923
923
|
key: z.string(),
|
|
924
924
|
display_name: z.string().optional(),
|
|
@@ -1105,7 +1105,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
1105
1105
|
z.ZodTypeDef,
|
|
1106
1106
|
unknown
|
|
1107
1107
|
> = z.object({
|
|
1108
|
-
_id: z.string().default("
|
|
1108
|
+
_id: z.string().default("tool_01KFMNRM2RAVJKBCM2YK9W1ZF9"),
|
|
1109
1109
|
path: z.string(),
|
|
1110
1110
|
key: z.string(),
|
|
1111
1111
|
display_name: z.string().optional(),
|
|
@@ -1200,7 +1200,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1200
1200
|
z.ZodTypeDef,
|
|
1201
1201
|
unknown
|
|
1202
1202
|
> = z.object({
|
|
1203
|
-
_id: z.string().default("
|
|
1203
|
+
_id: z.string().default("tool_01KFMNRM28T8TDS05XC0A5WRW9"),
|
|
1204
1204
|
path: z.string(),
|
|
1205
1205
|
key: z.string(),
|
|
1206
1206
|
display_name: z.string().optional(),
|
|
@@ -1304,7 +1304,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1304
1304
|
z.ZodTypeDef,
|
|
1305
1305
|
unknown
|
|
1306
1306
|
> = z.object({
|
|
1307
|
-
_id: z.string().default("
|
|
1307
|
+
_id: z.string().default("tool_01KFMNRM20ESZVVWANA6PGPK82"),
|
|
1308
1308
|
path: z.string(),
|
|
1309
1309
|
key: z.string(),
|
|
1310
1310
|
display_name: z.string().optional(),
|
|
@@ -760,8 +760,8 @@ export const DataTypescript$inboundSchema: z.ZodType<
|
|
|
760
760
|
> = z.object({
|
|
761
761
|
_id: z.string(),
|
|
762
762
|
description: z.string(),
|
|
763
|
-
created: z.string().default("2026-01-
|
|
764
|
-
updated: z.string().default("2026-01-
|
|
763
|
+
created: z.string().default("2026-01-23T05:38:08.301Z"),
|
|
764
|
+
updated: z.string().default("2026-01-23T05:38:08.301Z"),
|
|
765
765
|
guardrail_config: z.union([
|
|
766
766
|
z.lazy(() =>
|
|
767
767
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
|
|
@@ -902,8 +902,8 @@ export const DataRagas$inboundSchema: z.ZodType<
|
|
|
902
902
|
> = z.object({
|
|
903
903
|
_id: z.string(),
|
|
904
904
|
description: z.string(),
|
|
905
|
-
created: z.string().default("2026-01-
|
|
906
|
-
updated: z.string().default("2026-01-
|
|
905
|
+
created: z.string().default("2026-01-23T05:38:08.301Z"),
|
|
906
|
+
updated: z.string().default("2026-01-23T05:38:08.301Z"),
|
|
907
907
|
guardrail_config: z.union([
|
|
908
908
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Boolean$inboundSchema),
|
|
909
909
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
@@ -1703,8 +1703,8 @@ export const DataFunction$inboundSchema: z.ZodType<
|
|
|
1703
1703
|
> = z.object({
|
|
1704
1704
|
_id: z.string(),
|
|
1705
1705
|
description: z.string(),
|
|
1706
|
-
created: z.string().default("2026-01-
|
|
1707
|
-
updated: z.string().default("2026-01-
|
|
1706
|
+
created: z.string().default("2026-01-23T05:38:08.301Z"),
|
|
1707
|
+
updated: z.string().default("2026-01-23T05:38:08.301Z"),
|
|
1708
1708
|
guardrail_config: z.union([
|
|
1709
1709
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
1710
1710
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
@@ -1852,8 +1852,8 @@ export const DataPython$inboundSchema: z.ZodType<
|
|
|
1852
1852
|
> = z.object({
|
|
1853
1853
|
_id: z.string(),
|
|
1854
1854
|
description: z.string(),
|
|
1855
|
-
created: z.string().default("2026-01-
|
|
1856
|
-
updated: z.string().default("2026-01-
|
|
1855
|
+
created: z.string().default("2026-01-23T05:38:08.301Z"),
|
|
1856
|
+
updated: z.string().default("2026-01-23T05:38:08.301Z"),
|
|
1857
1857
|
guardrail_config: z.union([
|
|
1858
1858
|
z.lazy(() => GetEvalsGuardrailConfigEvalsBoolean$inboundSchema),
|
|
1859
1859
|
z.lazy(() => GetEvalsGuardrailConfigEvalsNumber$inboundSchema),
|
|
@@ -1968,8 +1968,8 @@ export const DataHTTP$inboundSchema: z.ZodType<
|
|
|
1968
1968
|
> = z.object({
|
|
1969
1969
|
_id: z.string(),
|
|
1970
1970
|
description: z.string(),
|
|
1971
|
-
created: z.string().default("2026-01-
|
|
1972
|
-
updated: z.string().default("2026-01-
|
|
1971
|
+
created: z.string().default("2026-01-23T05:38:08.301Z"),
|
|
1972
|
+
updated: z.string().default("2026-01-23T05:38:08.301Z"),
|
|
1973
1973
|
guardrail_config: z.union([
|
|
1974
1974
|
z.lazy(() => GetEvalsGuardrailConfigBoolean$inboundSchema),
|
|
1975
1975
|
z.lazy(() => GetEvalsGuardrailConfigNumber$inboundSchema),
|
|
@@ -2103,8 +2103,8 @@ export const DataJSON$inboundSchema: z.ZodType<
|
|
|
2103
2103
|
> = z.object({
|
|
2104
2104
|
_id: z.string(),
|
|
2105
2105
|
description: z.string(),
|
|
2106
|
-
created: z.string().default("2026-01-
|
|
2107
|
-
updated: z.string().default("2026-01-
|
|
2106
|
+
created: z.string().default("2026-01-23T05:38:08.301Z"),
|
|
2107
|
+
updated: z.string().default("2026-01-23T05:38:08.301Z"),
|
|
2108
2108
|
guardrail_config: z.union([
|
|
2109
2109
|
z.lazy(() =>
|
|
2110
2110
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataBoolean$inboundSchema
|
|
@@ -2242,8 +2242,8 @@ export const DataLLM$inboundSchema: z.ZodType<DataLLM, z.ZodTypeDef, unknown> =
|
|
|
2242
2242
|
z.object({
|
|
2243
2243
|
_id: z.string(),
|
|
2244
2244
|
description: z.string(),
|
|
2245
|
-
created: z.string().default("2026-01-
|
|
2246
|
-
updated: z.string().default("2026-01-
|
|
2245
|
+
created: z.string().default("2026-01-23T05:38:08.301Z"),
|
|
2246
|
+
updated: z.string().default("2026-01-23T05:38:08.301Z"),
|
|
2247
2247
|
guardrail_config: z.union([
|
|
2248
2248
|
z.lazy(() =>
|
|
2249
2249
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
|
|
@@ -796,8 +796,7 @@ export type GetOnePromptLoadBalancerType = ClosedEnum<
|
|
|
796
796
|
typeof GetOnePromptLoadBalancerType
|
|
797
797
|
>;
|
|
798
798
|
|
|
799
|
-
export type
|
|
800
|
-
type: GetOnePromptLoadBalancerType;
|
|
799
|
+
export type GetOnePromptLoadBalancerModels = {
|
|
801
800
|
/**
|
|
802
801
|
* Model identifier for load balancing
|
|
803
802
|
*/
|
|
@@ -808,6 +807,14 @@ export type GetOnePromptLoadBalancer1 = {
|
|
|
808
807
|
weight: number;
|
|
809
808
|
};
|
|
810
809
|
|
|
810
|
+
export type GetOnePromptLoadBalancer1 = {
|
|
811
|
+
type: GetOnePromptLoadBalancerType;
|
|
812
|
+
models: Array<GetOnePromptLoadBalancerModels>;
|
|
813
|
+
};
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* Load balancer configuration for the request.
|
|
817
|
+
*/
|
|
811
818
|
export type GetOnePromptLoadBalancer = GetOnePromptLoadBalancer1;
|
|
812
819
|
|
|
813
820
|
/**
|
|
@@ -1271,9 +1278,9 @@ export type GetOnePromptPromptField = {
|
|
|
1271
1278
|
*/
|
|
1272
1279
|
cache?: GetOnePromptCache | undefined;
|
|
1273
1280
|
/**
|
|
1274
|
-
*
|
|
1281
|
+
* Load balancer configuration for the request.
|
|
1275
1282
|
*/
|
|
1276
|
-
loadBalancer?:
|
|
1283
|
+
loadBalancer?: GetOnePromptLoadBalancer1 | undefined;
|
|
1277
1284
|
/**
|
|
1278
1285
|
* Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
|
|
1279
1286
|
*/
|
|
@@ -2344,6 +2351,26 @@ export const GetOnePromptLoadBalancerType$inboundSchema: z.ZodNativeEnum<
|
|
|
2344
2351
|
typeof GetOnePromptLoadBalancerType
|
|
2345
2352
|
> = z.nativeEnum(GetOnePromptLoadBalancerType);
|
|
2346
2353
|
|
|
2354
|
+
/** @internal */
|
|
2355
|
+
export const GetOnePromptLoadBalancerModels$inboundSchema: z.ZodType<
|
|
2356
|
+
GetOnePromptLoadBalancerModels,
|
|
2357
|
+
z.ZodTypeDef,
|
|
2358
|
+
unknown
|
|
2359
|
+
> = z.object({
|
|
2360
|
+
model: z.string(),
|
|
2361
|
+
weight: z.number().default(0.5),
|
|
2362
|
+
});
|
|
2363
|
+
|
|
2364
|
+
export function getOnePromptLoadBalancerModelsFromJSON(
|
|
2365
|
+
jsonString: string,
|
|
2366
|
+
): SafeParseResult<GetOnePromptLoadBalancerModels, SDKValidationError> {
|
|
2367
|
+
return safeParse(
|
|
2368
|
+
jsonString,
|
|
2369
|
+
(x) => GetOnePromptLoadBalancerModels$inboundSchema.parse(JSON.parse(x)),
|
|
2370
|
+
`Failed to parse 'GetOnePromptLoadBalancerModels' from JSON`,
|
|
2371
|
+
);
|
|
2372
|
+
}
|
|
2373
|
+
|
|
2347
2374
|
/** @internal */
|
|
2348
2375
|
export const GetOnePromptLoadBalancer1$inboundSchema: z.ZodType<
|
|
2349
2376
|
GetOnePromptLoadBalancer1,
|
|
@@ -2351,8 +2378,7 @@ export const GetOnePromptLoadBalancer1$inboundSchema: z.ZodType<
|
|
|
2351
2378
|
unknown
|
|
2352
2379
|
> = z.object({
|
|
2353
2380
|
type: GetOnePromptLoadBalancerType$inboundSchema,
|
|
2354
|
-
|
|
2355
|
-
weight: z.number().default(0.5),
|
|
2381
|
+
models: z.array(z.lazy(() => GetOnePromptLoadBalancerModels$inboundSchema)),
|
|
2356
2382
|
});
|
|
2357
2383
|
|
|
2358
2384
|
export function getOnePromptLoadBalancer1FromJSON(
|
|
@@ -2939,7 +2965,7 @@ export const GetOnePromptPromptField$inboundSchema: z.ZodType<
|
|
|
2939
2965
|
.optional(),
|
|
2940
2966
|
retry: z.lazy(() => GetOnePromptRetry$inboundSchema).optional(),
|
|
2941
2967
|
cache: z.lazy(() => GetOnePromptCache$inboundSchema).optional(),
|
|
2942
|
-
load_balancer: z.
|
|
2968
|
+
load_balancer: z.lazy(() => GetOnePromptLoadBalancer1$inboundSchema)
|
|
2943
2969
|
.optional(),
|
|
2944
2970
|
timeout: z.lazy(() => GetOnePromptTimeout$inboundSchema).optional(),
|
|
2945
2971
|
messages: z.array(
|
|
@@ -804,8 +804,7 @@ export type GetPromptVersionLoadBalancerType = ClosedEnum<
|
|
|
804
804
|
typeof GetPromptVersionLoadBalancerType
|
|
805
805
|
>;
|
|
806
806
|
|
|
807
|
-
export type
|
|
808
|
-
type: GetPromptVersionLoadBalancerType;
|
|
807
|
+
export type GetPromptVersionLoadBalancerModels = {
|
|
809
808
|
/**
|
|
810
809
|
* Model identifier for load balancing
|
|
811
810
|
*/
|
|
@@ -816,6 +815,14 @@ export type GetPromptVersionLoadBalancer1 = {
|
|
|
816
815
|
weight: number;
|
|
817
816
|
};
|
|
818
817
|
|
|
818
|
+
export type GetPromptVersionLoadBalancer1 = {
|
|
819
|
+
type: GetPromptVersionLoadBalancerType;
|
|
820
|
+
models: Array<GetPromptVersionLoadBalancerModels>;
|
|
821
|
+
};
|
|
822
|
+
|
|
823
|
+
/**
|
|
824
|
+
* Load balancer configuration for the request.
|
|
825
|
+
*/
|
|
819
826
|
export type GetPromptVersionLoadBalancer = GetPromptVersionLoadBalancer1;
|
|
820
827
|
|
|
821
828
|
/**
|
|
@@ -1282,9 +1289,9 @@ export type GetPromptVersionPromptField = {
|
|
|
1282
1289
|
*/
|
|
1283
1290
|
cache?: GetPromptVersionCache | undefined;
|
|
1284
1291
|
/**
|
|
1285
|
-
*
|
|
1292
|
+
* Load balancer configuration for the request.
|
|
1286
1293
|
*/
|
|
1287
|
-
loadBalancer?:
|
|
1294
|
+
loadBalancer?: GetPromptVersionLoadBalancer1 | undefined;
|
|
1288
1295
|
/**
|
|
1289
1296
|
* Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
|
|
1290
1297
|
*/
|
|
@@ -2369,6 +2376,27 @@ export const GetPromptVersionLoadBalancerType$inboundSchema: z.ZodNativeEnum<
|
|
|
2369
2376
|
typeof GetPromptVersionLoadBalancerType
|
|
2370
2377
|
> = z.nativeEnum(GetPromptVersionLoadBalancerType);
|
|
2371
2378
|
|
|
2379
|
+
/** @internal */
|
|
2380
|
+
export const GetPromptVersionLoadBalancerModels$inboundSchema: z.ZodType<
|
|
2381
|
+
GetPromptVersionLoadBalancerModels,
|
|
2382
|
+
z.ZodTypeDef,
|
|
2383
|
+
unknown
|
|
2384
|
+
> = z.object({
|
|
2385
|
+
model: z.string(),
|
|
2386
|
+
weight: z.number().default(0.5),
|
|
2387
|
+
});
|
|
2388
|
+
|
|
2389
|
+
export function getPromptVersionLoadBalancerModelsFromJSON(
|
|
2390
|
+
jsonString: string,
|
|
2391
|
+
): SafeParseResult<GetPromptVersionLoadBalancerModels, SDKValidationError> {
|
|
2392
|
+
return safeParse(
|
|
2393
|
+
jsonString,
|
|
2394
|
+
(x) =>
|
|
2395
|
+
GetPromptVersionLoadBalancerModels$inboundSchema.parse(JSON.parse(x)),
|
|
2396
|
+
`Failed to parse 'GetPromptVersionLoadBalancerModels' from JSON`,
|
|
2397
|
+
);
|
|
2398
|
+
}
|
|
2399
|
+
|
|
2372
2400
|
/** @internal */
|
|
2373
2401
|
export const GetPromptVersionLoadBalancer1$inboundSchema: z.ZodType<
|
|
2374
2402
|
GetPromptVersionLoadBalancer1,
|
|
@@ -2376,8 +2404,9 @@ export const GetPromptVersionLoadBalancer1$inboundSchema: z.ZodType<
|
|
|
2376
2404
|
unknown
|
|
2377
2405
|
> = z.object({
|
|
2378
2406
|
type: GetPromptVersionLoadBalancerType$inboundSchema,
|
|
2379
|
-
|
|
2380
|
-
|
|
2407
|
+
models: z.array(
|
|
2408
|
+
z.lazy(() => GetPromptVersionLoadBalancerModels$inboundSchema),
|
|
2409
|
+
),
|
|
2381
2410
|
});
|
|
2382
2411
|
|
|
2383
2412
|
export function getPromptVersionLoadBalancer1FromJSON(
|
|
@@ -2988,9 +3017,8 @@ export const GetPromptVersionPromptField$inboundSchema: z.ZodType<
|
|
|
2988
3017
|
.optional(),
|
|
2989
3018
|
retry: z.lazy(() => GetPromptVersionRetry$inboundSchema).optional(),
|
|
2990
3019
|
cache: z.lazy(() => GetPromptVersionCache$inboundSchema).optional(),
|
|
2991
|
-
load_balancer: z.
|
|
2992
|
-
|
|
2993
|
-
).optional(),
|
|
3020
|
+
load_balancer: z.lazy(() => GetPromptVersionLoadBalancer1$inboundSchema)
|
|
3021
|
+
.optional(),
|
|
2994
3022
|
timeout: z.lazy(() => GetPromptVersionTimeout$inboundSchema).optional(),
|
|
2995
3023
|
messages: z.array(
|
|
2996
3024
|
z.union([
|