@orq-ai/node 3.8.0-rc.30 → 3.8.0-rc.32
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/bin/mcp-server.js +570 -570
- package/bin/mcp-server.js.map +40 -40
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/deployments.d.ts +12 -12
- package/models/components/deployments.d.ts.map +1 -1
- package/models/components/deployments.js +12 -12
- package/models/components/deployments.js.map +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.d.ts +12 -12
- package/models/operations/createdatasetitem.d.ts.map +1 -1
- package/models/operations/createdatasetitem.js +14 -14
- package/models/operations/createdatasetitem.js.map +1 -1
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.d.ts +36 -36
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +56 -56
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createprompt.d.ts +8 -8
- package/models/operations/createprompt.js +8 -8
- package/models/operations/deploymentcreatemetric.d.ts +12 -12
- package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
- package/models/operations/deploymentcreatemetric.js +12 -12
- package/models/operations/deploymentcreatemetric.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +16 -16
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +16 -16
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +4 -4
- package/models/operations/deploymentinvoke.js +8 -8
- package/models/operations/deployments.d.ts +4 -4
- package/models/operations/deployments.js +4 -4
- package/models/operations/deploymentstream.d.ts +16 -16
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +16 -16
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getallprompts.d.ts +4 -4
- package/models/operations/getallprompts.js +4 -4
- package/models/operations/getevals.d.ts +36 -36
- package/models/operations/getevals.d.ts.map +1 -1
- package/models/operations/getevals.js +108 -108
- package/models/operations/getevals.js.map +1 -1
- package/models/operations/getoneprompt.d.ts +4 -4
- package/models/operations/getoneprompt.js +4 -4
- package/models/operations/getpromptversion.d.ts +4 -4
- package/models/operations/getpromptversion.js +4 -4
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.d.ts +6 -6
- package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasetdatapoints.js.map +1 -1
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listpromptversions.d.ts +4 -4
- package/models/operations/listpromptversions.js +4 -4
- package/models/operations/postv2modelslitellmimport.d.ts +4 -4
- package/models/operations/postv2modelslitellmimport.js +8 -8
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.d.ts +6 -6
- package/models/operations/retrievedatapoint.d.ts.map +1 -1
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedatapoint.js.map +1 -1
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.d.ts +12 -12
- package/models/operations/updatedatapoint.d.ts.map +1 -1
- package/models/operations/updatedatapoint.js +14 -14
- package/models/operations/updatedatapoint.js.map +1 -1
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.d.ts +38 -38
- package/models/operations/updateeval.d.ts.map +1 -1
- package/models/operations/updateeval.js +60 -60
- package/models/operations/updateeval.js.map +1 -1
- package/models/operations/updateprompt.d.ts +8 -8
- package/models/operations/updateprompt.js +8 -8
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/deployments.ts +24 -24
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +26 -26
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +121 -121
- package/src/models/operations/createprompt.ts +19 -19
- package/src/models/operations/deploymentcreatemetric.ts +30 -26
- package/src/models/operations/deploymentgetconfig.ts +34 -34
- package/src/models/operations/deploymentinvoke.ts +13 -13
- package/src/models/operations/deployments.ts +10 -10
- package/src/models/operations/deploymentstream.ts +34 -34
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getallprompts.ts +10 -10
- package/src/models/operations/getevals.ts +220 -220
- package/src/models/operations/getoneprompt.ts +10 -10
- package/src/models/operations/getpromptversion.ts +10 -10
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +20 -16
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listpromptversions.ts +10 -10
- package/src/models/operations/postv2modelslitellmimport.ts +18 -18
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +14 -14
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +29 -27
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +139 -139
- package/src/models/operations/updateprompt.ts +20 -20
- package/src/types/constdatetime.ts +1 -1
- package/types/constdatetime.js +1 -1
|
@@ -257,7 +257,7 @@ export type DeploymentStream2File = {
|
|
|
257
257
|
/**
|
|
258
258
|
* The name of the file, used when passing the file to the model as a string.
|
|
259
259
|
*/
|
|
260
|
-
filename
|
|
260
|
+
filename: string;
|
|
261
261
|
};
|
|
262
262
|
|
|
263
263
|
export type DeploymentStream24 = {
|
|
@@ -450,10 +450,10 @@ export type PrefixMessagesDeveloperMessage = {
|
|
|
450
450
|
};
|
|
451
451
|
|
|
452
452
|
export type DeploymentStreamPrefixMessages =
|
|
453
|
+
| PrefixMessagesToolMessage
|
|
453
454
|
| PrefixMessagesDeveloperMessage
|
|
454
455
|
| PrefixMessagesSystemMessage
|
|
455
456
|
| PrefixMessagesUserMessage
|
|
456
|
-
| PrefixMessagesToolMessage
|
|
457
457
|
| PrefixMessagesAssistantMessage;
|
|
458
458
|
|
|
459
459
|
/**
|
|
@@ -695,7 +695,7 @@ export type DeploymentStream2DeploymentsFile = {
|
|
|
695
695
|
/**
|
|
696
696
|
* The name of the file, used when passing the file to the model as a string.
|
|
697
697
|
*/
|
|
698
|
-
filename
|
|
698
|
+
filename: string;
|
|
699
699
|
};
|
|
700
700
|
|
|
701
701
|
export type DeploymentStream2Deployments4 = {
|
|
@@ -892,10 +892,10 @@ export type DeploymentStreamMessagesDeveloperMessage = {
|
|
|
892
892
|
};
|
|
893
893
|
|
|
894
894
|
export type DeploymentStreamMessages =
|
|
895
|
+
| DeploymentStreamMessagesToolMessage
|
|
895
896
|
| DeploymentStreamMessagesDeveloperMessage
|
|
896
897
|
| DeploymentStreamMessagesSystemMessage
|
|
897
898
|
| DeploymentStreamMessagesUserMessage
|
|
898
|
-
| DeploymentStreamMessagesToolMessage
|
|
899
899
|
| DeploymentStreamMessagesAssistantMessage;
|
|
900
900
|
|
|
901
901
|
/**
|
|
@@ -1263,10 +1263,10 @@ export type DeploymentStreamRequestBody = {
|
|
|
1263
1263
|
*/
|
|
1264
1264
|
prefixMessages?:
|
|
1265
1265
|
| Array<
|
|
1266
|
+
| PrefixMessagesToolMessage
|
|
1266
1267
|
| PrefixMessagesDeveloperMessage
|
|
1267
1268
|
| PrefixMessagesSystemMessage
|
|
1268
1269
|
| PrefixMessagesUserMessage
|
|
1269
|
-
| PrefixMessagesToolMessage
|
|
1270
1270
|
| PrefixMessagesAssistantMessage
|
|
1271
1271
|
>
|
|
1272
1272
|
| undefined;
|
|
@@ -1275,10 +1275,10 @@ export type DeploymentStreamRequestBody = {
|
|
|
1275
1275
|
*/
|
|
1276
1276
|
messages?:
|
|
1277
1277
|
| Array<
|
|
1278
|
+
| DeploymentStreamMessagesToolMessage
|
|
1278
1279
|
| DeploymentStreamMessagesDeveloperMessage
|
|
1279
1280
|
| DeploymentStreamMessagesSystemMessage
|
|
1280
1281
|
| DeploymentStreamMessagesUserMessage
|
|
1281
|
-
| DeploymentStreamMessagesToolMessage
|
|
1282
1282
|
| DeploymentStreamMessagesAssistantMessage
|
|
1283
1283
|
>
|
|
1284
1284
|
| undefined;
|
|
@@ -1473,16 +1473,16 @@ export type DeploymentStreamMessage1 = {
|
|
|
1473
1473
|
};
|
|
1474
1474
|
|
|
1475
1475
|
export type DeploymentStreamMessage =
|
|
1476
|
+
| DeploymentStreamMessage1
|
|
1476
1477
|
| DeploymentStreamMessage2
|
|
1477
|
-
| DeploymentStreamMessage3
|
|
1478
|
-
| DeploymentStreamMessage1;
|
|
1478
|
+
| DeploymentStreamMessage3;
|
|
1479
1479
|
|
|
1480
1480
|
export type DeploymentStreamChoices = {
|
|
1481
1481
|
index: number;
|
|
1482
1482
|
message?:
|
|
1483
|
+
| DeploymentStreamMessage1
|
|
1483
1484
|
| DeploymentStreamMessage2
|
|
1484
1485
|
| DeploymentStreamMessage3
|
|
1485
|
-
| DeploymentStreamMessage1
|
|
1486
1486
|
| undefined;
|
|
1487
1487
|
finishReason?: string | null | undefined;
|
|
1488
1488
|
};
|
|
@@ -2566,7 +2566,7 @@ export const DeploymentStream2File$inboundSchema: z.ZodType<
|
|
|
2566
2566
|
unknown
|
|
2567
2567
|
> = z.object({
|
|
2568
2568
|
file_data: z.string(),
|
|
2569
|
-
filename: z.string()
|
|
2569
|
+
filename: z.string(),
|
|
2570
2570
|
}).transform((v) => {
|
|
2571
2571
|
return remap$(v, {
|
|
2572
2572
|
"file_data": "fileData",
|
|
@@ -2576,7 +2576,7 @@ export const DeploymentStream2File$inboundSchema: z.ZodType<
|
|
|
2576
2576
|
/** @internal */
|
|
2577
2577
|
export type DeploymentStream2File$Outbound = {
|
|
2578
2578
|
file_data: string;
|
|
2579
|
-
filename
|
|
2579
|
+
filename: string;
|
|
2580
2580
|
};
|
|
2581
2581
|
|
|
2582
2582
|
/** @internal */
|
|
@@ -2586,7 +2586,7 @@ export const DeploymentStream2File$outboundSchema: z.ZodType<
|
|
|
2586
2586
|
DeploymentStream2File
|
|
2587
2587
|
> = z.object({
|
|
2588
2588
|
fileData: z.string(),
|
|
2589
|
-
filename: z.string()
|
|
2589
|
+
filename: z.string(),
|
|
2590
2590
|
}).transform((v) => {
|
|
2591
2591
|
return remap$(v, {
|
|
2592
2592
|
fileData: "file_data",
|
|
@@ -3487,19 +3487,19 @@ export const DeploymentStreamPrefixMessages$inboundSchema: z.ZodType<
|
|
|
3487
3487
|
z.ZodTypeDef,
|
|
3488
3488
|
unknown
|
|
3489
3489
|
> = z.union([
|
|
3490
|
+
z.lazy(() => PrefixMessagesToolMessage$inboundSchema),
|
|
3490
3491
|
z.lazy(() => PrefixMessagesDeveloperMessage$inboundSchema),
|
|
3491
3492
|
z.lazy(() => PrefixMessagesSystemMessage$inboundSchema),
|
|
3492
3493
|
z.lazy(() => PrefixMessagesUserMessage$inboundSchema),
|
|
3493
|
-
z.lazy(() => PrefixMessagesToolMessage$inboundSchema),
|
|
3494
3494
|
z.lazy(() => PrefixMessagesAssistantMessage$inboundSchema),
|
|
3495
3495
|
]);
|
|
3496
3496
|
|
|
3497
3497
|
/** @internal */
|
|
3498
3498
|
export type DeploymentStreamPrefixMessages$Outbound =
|
|
3499
|
+
| PrefixMessagesToolMessage$Outbound
|
|
3499
3500
|
| PrefixMessagesDeveloperMessage$Outbound
|
|
3500
3501
|
| PrefixMessagesSystemMessage$Outbound
|
|
3501
3502
|
| PrefixMessagesUserMessage$Outbound
|
|
3502
|
-
| PrefixMessagesToolMessage$Outbound
|
|
3503
3503
|
| PrefixMessagesAssistantMessage$Outbound;
|
|
3504
3504
|
|
|
3505
3505
|
/** @internal */
|
|
@@ -3508,10 +3508,10 @@ export const DeploymentStreamPrefixMessages$outboundSchema: z.ZodType<
|
|
|
3508
3508
|
z.ZodTypeDef,
|
|
3509
3509
|
DeploymentStreamPrefixMessages
|
|
3510
3510
|
> = z.union([
|
|
3511
|
+
z.lazy(() => PrefixMessagesToolMessage$outboundSchema),
|
|
3511
3512
|
z.lazy(() => PrefixMessagesDeveloperMessage$outboundSchema),
|
|
3512
3513
|
z.lazy(() => PrefixMessagesSystemMessage$outboundSchema),
|
|
3513
3514
|
z.lazy(() => PrefixMessagesUserMessage$outboundSchema),
|
|
3514
|
-
z.lazy(() => PrefixMessagesToolMessage$outboundSchema),
|
|
3515
3515
|
z.lazy(() => PrefixMessagesAssistantMessage$outboundSchema),
|
|
3516
3516
|
]);
|
|
3517
3517
|
|
|
@@ -4484,7 +4484,7 @@ export const DeploymentStream2DeploymentsFile$inboundSchema: z.ZodType<
|
|
|
4484
4484
|
unknown
|
|
4485
4485
|
> = z.object({
|
|
4486
4486
|
file_data: z.string(),
|
|
4487
|
-
filename: z.string()
|
|
4487
|
+
filename: z.string(),
|
|
4488
4488
|
}).transform((v) => {
|
|
4489
4489
|
return remap$(v, {
|
|
4490
4490
|
"file_data": "fileData",
|
|
@@ -4494,7 +4494,7 @@ export const DeploymentStream2DeploymentsFile$inboundSchema: z.ZodType<
|
|
|
4494
4494
|
/** @internal */
|
|
4495
4495
|
export type DeploymentStream2DeploymentsFile$Outbound = {
|
|
4496
4496
|
file_data: string;
|
|
4497
|
-
filename
|
|
4497
|
+
filename: string;
|
|
4498
4498
|
};
|
|
4499
4499
|
|
|
4500
4500
|
/** @internal */
|
|
@@ -4504,7 +4504,7 @@ export const DeploymentStream2DeploymentsFile$outboundSchema: z.ZodType<
|
|
|
4504
4504
|
DeploymentStream2DeploymentsFile
|
|
4505
4505
|
> = z.object({
|
|
4506
4506
|
fileData: z.string(),
|
|
4507
|
-
filename: z.string()
|
|
4507
|
+
filename: z.string(),
|
|
4508
4508
|
}).transform((v) => {
|
|
4509
4509
|
return remap$(v, {
|
|
4510
4510
|
fileData: "file_data",
|
|
@@ -5474,19 +5474,19 @@ export const DeploymentStreamMessages$inboundSchema: z.ZodType<
|
|
|
5474
5474
|
z.ZodTypeDef,
|
|
5475
5475
|
unknown
|
|
5476
5476
|
> = z.union([
|
|
5477
|
+
z.lazy(() => DeploymentStreamMessagesToolMessage$inboundSchema),
|
|
5477
5478
|
z.lazy(() => DeploymentStreamMessagesDeveloperMessage$inboundSchema),
|
|
5478
5479
|
z.lazy(() => DeploymentStreamMessagesSystemMessage$inboundSchema),
|
|
5479
5480
|
z.lazy(() => DeploymentStreamMessagesUserMessage$inboundSchema),
|
|
5480
|
-
z.lazy(() => DeploymentStreamMessagesToolMessage$inboundSchema),
|
|
5481
5481
|
z.lazy(() => DeploymentStreamMessagesAssistantMessage$inboundSchema),
|
|
5482
5482
|
]);
|
|
5483
5483
|
|
|
5484
5484
|
/** @internal */
|
|
5485
5485
|
export type DeploymentStreamMessages$Outbound =
|
|
5486
|
+
| DeploymentStreamMessagesToolMessage$Outbound
|
|
5486
5487
|
| DeploymentStreamMessagesDeveloperMessage$Outbound
|
|
5487
5488
|
| DeploymentStreamMessagesSystemMessage$Outbound
|
|
5488
5489
|
| DeploymentStreamMessagesUserMessage$Outbound
|
|
5489
|
-
| DeploymentStreamMessagesToolMessage$Outbound
|
|
5490
5490
|
| DeploymentStreamMessagesAssistantMessage$Outbound;
|
|
5491
5491
|
|
|
5492
5492
|
/** @internal */
|
|
@@ -5495,10 +5495,10 @@ export const DeploymentStreamMessages$outboundSchema: z.ZodType<
|
|
|
5495
5495
|
z.ZodTypeDef,
|
|
5496
5496
|
DeploymentStreamMessages
|
|
5497
5497
|
> = z.union([
|
|
5498
|
+
z.lazy(() => DeploymentStreamMessagesToolMessage$outboundSchema),
|
|
5498
5499
|
z.lazy(() => DeploymentStreamMessagesDeveloperMessage$outboundSchema),
|
|
5499
5500
|
z.lazy(() => DeploymentStreamMessagesSystemMessage$outboundSchema),
|
|
5500
5501
|
z.lazy(() => DeploymentStreamMessagesUserMessage$outboundSchema),
|
|
5501
|
-
z.lazy(() => DeploymentStreamMessagesToolMessage$outboundSchema),
|
|
5502
5502
|
z.lazy(() => DeploymentStreamMessagesAssistantMessage$outboundSchema),
|
|
5503
5503
|
]);
|
|
5504
5504
|
|
|
@@ -8408,19 +8408,19 @@ export const DeploymentStreamRequestBody$inboundSchema: z.ZodType<
|
|
|
8408
8408
|
context: z.record(z.any()).optional(),
|
|
8409
8409
|
prefix_messages: z.array(
|
|
8410
8410
|
z.union([
|
|
8411
|
+
z.lazy(() => PrefixMessagesToolMessage$inboundSchema),
|
|
8411
8412
|
z.lazy(() => PrefixMessagesDeveloperMessage$inboundSchema),
|
|
8412
8413
|
z.lazy(() => PrefixMessagesSystemMessage$inboundSchema),
|
|
8413
8414
|
z.lazy(() => PrefixMessagesUserMessage$inboundSchema),
|
|
8414
|
-
z.lazy(() => PrefixMessagesToolMessage$inboundSchema),
|
|
8415
8415
|
z.lazy(() => PrefixMessagesAssistantMessage$inboundSchema),
|
|
8416
8416
|
]),
|
|
8417
8417
|
).optional(),
|
|
8418
8418
|
messages: z.array(
|
|
8419
8419
|
z.union([
|
|
8420
|
+
z.lazy(() => DeploymentStreamMessagesToolMessage$inboundSchema),
|
|
8420
8421
|
z.lazy(() => DeploymentStreamMessagesDeveloperMessage$inboundSchema),
|
|
8421
8422
|
z.lazy(() => DeploymentStreamMessagesSystemMessage$inboundSchema),
|
|
8422
8423
|
z.lazy(() => DeploymentStreamMessagesUserMessage$inboundSchema),
|
|
8423
|
-
z.lazy(() => DeploymentStreamMessagesToolMessage$inboundSchema),
|
|
8424
8424
|
z.lazy(() => DeploymentStreamMessagesAssistantMessage$inboundSchema),
|
|
8425
8425
|
]),
|
|
8426
8426
|
).optional(),
|
|
@@ -8466,19 +8466,19 @@ export type DeploymentStreamRequestBody$Outbound = {
|
|
|
8466
8466
|
context?: { [k: string]: any } | undefined;
|
|
8467
8467
|
prefix_messages?:
|
|
8468
8468
|
| Array<
|
|
8469
|
+
| PrefixMessagesToolMessage$Outbound
|
|
8469
8470
|
| PrefixMessagesDeveloperMessage$Outbound
|
|
8470
8471
|
| PrefixMessagesSystemMessage$Outbound
|
|
8471
8472
|
| PrefixMessagesUserMessage$Outbound
|
|
8472
|
-
| PrefixMessagesToolMessage$Outbound
|
|
8473
8473
|
| PrefixMessagesAssistantMessage$Outbound
|
|
8474
8474
|
>
|
|
8475
8475
|
| undefined;
|
|
8476
8476
|
messages?:
|
|
8477
8477
|
| Array<
|
|
8478
|
+
| DeploymentStreamMessagesToolMessage$Outbound
|
|
8478
8479
|
| DeploymentStreamMessagesDeveloperMessage$Outbound
|
|
8479
8480
|
| DeploymentStreamMessagesSystemMessage$Outbound
|
|
8480
8481
|
| DeploymentStreamMessagesUserMessage$Outbound
|
|
8481
|
-
| DeploymentStreamMessagesToolMessage$Outbound
|
|
8482
8482
|
| DeploymentStreamMessagesAssistantMessage$Outbound
|
|
8483
8483
|
>
|
|
8484
8484
|
| undefined;
|
|
@@ -8517,19 +8517,19 @@ export const DeploymentStreamRequestBody$outboundSchema: z.ZodType<
|
|
|
8517
8517
|
context: z.record(z.any()).optional(),
|
|
8518
8518
|
prefixMessages: z.array(
|
|
8519
8519
|
z.union([
|
|
8520
|
+
z.lazy(() => PrefixMessagesToolMessage$outboundSchema),
|
|
8520
8521
|
z.lazy(() => PrefixMessagesDeveloperMessage$outboundSchema),
|
|
8521
8522
|
z.lazy(() => PrefixMessagesSystemMessage$outboundSchema),
|
|
8522
8523
|
z.lazy(() => PrefixMessagesUserMessage$outboundSchema),
|
|
8523
|
-
z.lazy(() => PrefixMessagesToolMessage$outboundSchema),
|
|
8524
8524
|
z.lazy(() => PrefixMessagesAssistantMessage$outboundSchema),
|
|
8525
8525
|
]),
|
|
8526
8526
|
).optional(),
|
|
8527
8527
|
messages: z.array(
|
|
8528
8528
|
z.union([
|
|
8529
|
+
z.lazy(() => DeploymentStreamMessagesToolMessage$outboundSchema),
|
|
8529
8530
|
z.lazy(() => DeploymentStreamMessagesDeveloperMessage$outboundSchema),
|
|
8530
8531
|
z.lazy(() => DeploymentStreamMessagesSystemMessage$outboundSchema),
|
|
8531
8532
|
z.lazy(() => DeploymentStreamMessagesUserMessage$outboundSchema),
|
|
8532
|
-
z.lazy(() => DeploymentStreamMessagesToolMessage$outboundSchema),
|
|
8533
8533
|
z.lazy(() => DeploymentStreamMessagesAssistantMessage$outboundSchema),
|
|
8534
8534
|
]),
|
|
8535
8535
|
).optional(),
|
|
@@ -9048,16 +9048,16 @@ export const DeploymentStreamMessage$inboundSchema: z.ZodType<
|
|
|
9048
9048
|
z.ZodTypeDef,
|
|
9049
9049
|
unknown
|
|
9050
9050
|
> = z.union([
|
|
9051
|
+
z.lazy(() => DeploymentStreamMessage1$inboundSchema),
|
|
9051
9052
|
z.lazy(() => DeploymentStreamMessage2$inboundSchema),
|
|
9052
9053
|
z.lazy(() => DeploymentStreamMessage3$inboundSchema),
|
|
9053
|
-
z.lazy(() => DeploymentStreamMessage1$inboundSchema),
|
|
9054
9054
|
]);
|
|
9055
9055
|
|
|
9056
9056
|
/** @internal */
|
|
9057
9057
|
export type DeploymentStreamMessage$Outbound =
|
|
9058
|
+
| DeploymentStreamMessage1$Outbound
|
|
9058
9059
|
| DeploymentStreamMessage2$Outbound
|
|
9059
|
-
| DeploymentStreamMessage3$Outbound
|
|
9060
|
-
| DeploymentStreamMessage1$Outbound;
|
|
9060
|
+
| DeploymentStreamMessage3$Outbound;
|
|
9061
9061
|
|
|
9062
9062
|
/** @internal */
|
|
9063
9063
|
export const DeploymentStreamMessage$outboundSchema: z.ZodType<
|
|
@@ -9065,9 +9065,9 @@ export const DeploymentStreamMessage$outboundSchema: z.ZodType<
|
|
|
9065
9065
|
z.ZodTypeDef,
|
|
9066
9066
|
DeploymentStreamMessage
|
|
9067
9067
|
> = z.union([
|
|
9068
|
+
z.lazy(() => DeploymentStreamMessage1$outboundSchema),
|
|
9068
9069
|
z.lazy(() => DeploymentStreamMessage2$outboundSchema),
|
|
9069
9070
|
z.lazy(() => DeploymentStreamMessage3$outboundSchema),
|
|
9070
|
-
z.lazy(() => DeploymentStreamMessage1$outboundSchema),
|
|
9071
9071
|
]);
|
|
9072
9072
|
|
|
9073
9073
|
/**
|
|
@@ -9109,9 +9109,9 @@ export const DeploymentStreamChoices$inboundSchema: z.ZodType<
|
|
|
9109
9109
|
> = z.object({
|
|
9110
9110
|
index: z.number(),
|
|
9111
9111
|
message: z.union([
|
|
9112
|
+
z.lazy(() => DeploymentStreamMessage1$inboundSchema),
|
|
9112
9113
|
z.lazy(() => DeploymentStreamMessage2$inboundSchema),
|
|
9113
9114
|
z.lazy(() => DeploymentStreamMessage3$inboundSchema),
|
|
9114
|
-
z.lazy(() => DeploymentStreamMessage1$inboundSchema),
|
|
9115
9115
|
]).optional(),
|
|
9116
9116
|
finish_reason: z.nullable(z.string()).optional(),
|
|
9117
9117
|
}).transform((v) => {
|
|
@@ -9124,9 +9124,9 @@ export const DeploymentStreamChoices$inboundSchema: z.ZodType<
|
|
|
9124
9124
|
export type DeploymentStreamChoices$Outbound = {
|
|
9125
9125
|
index: number;
|
|
9126
9126
|
message?:
|
|
9127
|
+
| DeploymentStreamMessage1$Outbound
|
|
9127
9128
|
| DeploymentStreamMessage2$Outbound
|
|
9128
9129
|
| DeploymentStreamMessage3$Outbound
|
|
9129
|
-
| DeploymentStreamMessage1$Outbound
|
|
9130
9130
|
| undefined;
|
|
9131
9131
|
finish_reason?: string | null | undefined;
|
|
9132
9132
|
};
|
|
@@ -9139,9 +9139,9 @@ export const DeploymentStreamChoices$outboundSchema: z.ZodType<
|
|
|
9139
9139
|
> = z.object({
|
|
9140
9140
|
index: z.number(),
|
|
9141
9141
|
message: z.union([
|
|
9142
|
+
z.lazy(() => DeploymentStreamMessage1$outboundSchema),
|
|
9142
9143
|
z.lazy(() => DeploymentStreamMessage2$outboundSchema),
|
|
9143
9144
|
z.lazy(() => DeploymentStreamMessage3$outboundSchema),
|
|
9144
|
-
z.lazy(() => DeploymentStreamMessage1$outboundSchema),
|
|
9145
9145
|
]).optional(),
|
|
9146
9146
|
finishReason: z.nullable(z.string()).optional(),
|
|
9147
9147
|
}).transform((v) => {
|
|
@@ -146,7 +146,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
|
|
|
146
146
|
file_name: z.string(),
|
|
147
147
|
workspace_id: z.string(),
|
|
148
148
|
created: z.string().datetime({ offset: true }).default(
|
|
149
|
-
"2025-06-
|
|
149
|
+
"2025-06-17T22:56:21.116Z",
|
|
150
150
|
).transform(v => new Date(v)),
|
|
151
151
|
}).transform((v) => {
|
|
152
152
|
return remap$(v, {
|
|
@@ -180,7 +180,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
|
|
|
180
180
|
bytes: z.number(),
|
|
181
181
|
fileName: z.string(),
|
|
182
182
|
workspaceId: z.string(),
|
|
183
|
-
created: z.date().default(() => new Date("2025-06-
|
|
183
|
+
created: z.date().default(() => new Date("2025-06-17T22:56:21.116Z"))
|
|
184
184
|
.transform(v => v.toISOString()),
|
|
185
185
|
}).transform((v) => {
|
|
186
186
|
return remap$(v, {
|
|
@@ -196,7 +196,7 @@ export const FileListData$inboundSchema: z.ZodType<
|
|
|
196
196
|
file_name: z.string(),
|
|
197
197
|
workspace_id: z.string(),
|
|
198
198
|
created: z.string().datetime({ offset: true }).default(
|
|
199
|
-
"2025-06-
|
|
199
|
+
"2025-06-17T22:56:21.116Z",
|
|
200
200
|
).transform(v => new Date(v)),
|
|
201
201
|
}).transform((v) => {
|
|
202
202
|
return remap$(v, {
|
|
@@ -230,7 +230,7 @@ export const FileListData$outboundSchema: z.ZodType<
|
|
|
230
230
|
bytes: z.number(),
|
|
231
231
|
fileName: z.string(),
|
|
232
232
|
workspaceId: z.string(),
|
|
233
|
-
created: z.date().default(() => new Date("2025-06-
|
|
233
|
+
created: z.date().default(() => new Date("2025-06-17T22:56:21.116Z"))
|
|
234
234
|
.transform(v => v.toISOString()),
|
|
235
235
|
}).transform((v) => {
|
|
236
236
|
return remap$(v, {
|
|
@@ -250,7 +250,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
|
|
|
250
250
|
file_name: z.string(),
|
|
251
251
|
workspace_id: z.string(),
|
|
252
252
|
created: z.string().datetime({ offset: true }).default(
|
|
253
|
-
"2025-06-
|
|
253
|
+
"2025-06-17T22:56:21.116Z",
|
|
254
254
|
).transform(v => new Date(v)),
|
|
255
255
|
}).transform((v) => {
|
|
256
256
|
return remap$(v, {
|
|
@@ -284,7 +284,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
|
|
|
284
284
|
bytes: z.number(),
|
|
285
285
|
fileName: z.string(),
|
|
286
286
|
workspaceId: z.string(),
|
|
287
|
-
created: z.date().default(() => new Date("2025-06-
|
|
287
|
+
created: z.date().default(() => new Date("2025-06-17T22:56:21.116Z"))
|
|
288
288
|
.transform(v => v.toISOString()),
|
|
289
289
|
}).transform((v) => {
|
|
290
290
|
return remap$(v, {
|
|
@@ -108,8 +108,8 @@ export type GetAllPromptsResponseFormat1 = {
|
|
|
108
108
|
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
109
109
|
*/
|
|
110
110
|
export type GetAllPromptsResponseFormat =
|
|
111
|
-
|
|
|
112
|
-
|
|
|
111
|
+
| GetAllPromptsResponseFormat1
|
|
112
|
+
| GetAllPromptsResponseFormat2;
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
115
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
@@ -218,8 +218,8 @@ export type GetAllPromptsModelParameters = {
|
|
|
218
218
|
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
219
219
|
*/
|
|
220
220
|
responseFormat?:
|
|
221
|
-
| GetAllPromptsResponseFormat2
|
|
222
221
|
| GetAllPromptsResponseFormat1
|
|
222
|
+
| GetAllPromptsResponseFormat2
|
|
223
223
|
| null
|
|
224
224
|
| undefined;
|
|
225
225
|
/**
|
|
@@ -912,14 +912,14 @@ export const GetAllPromptsResponseFormat$inboundSchema: z.ZodType<
|
|
|
912
912
|
z.ZodTypeDef,
|
|
913
913
|
unknown
|
|
914
914
|
> = z.union([
|
|
915
|
-
z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
|
|
916
915
|
z.lazy(() => GetAllPromptsResponseFormat1$inboundSchema),
|
|
916
|
+
z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
|
|
917
917
|
]);
|
|
918
918
|
|
|
919
919
|
/** @internal */
|
|
920
920
|
export type GetAllPromptsResponseFormat$Outbound =
|
|
921
|
-
|
|
|
922
|
-
|
|
|
921
|
+
| GetAllPromptsResponseFormat1$Outbound
|
|
922
|
+
| GetAllPromptsResponseFormat2$Outbound;
|
|
923
923
|
|
|
924
924
|
/** @internal */
|
|
925
925
|
export const GetAllPromptsResponseFormat$outboundSchema: z.ZodType<
|
|
@@ -927,8 +927,8 @@ export const GetAllPromptsResponseFormat$outboundSchema: z.ZodType<
|
|
|
927
927
|
z.ZodTypeDef,
|
|
928
928
|
GetAllPromptsResponseFormat
|
|
929
929
|
> = z.union([
|
|
930
|
-
z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
|
|
931
930
|
z.lazy(() => GetAllPromptsResponseFormat1$outboundSchema),
|
|
931
|
+
z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
|
|
932
932
|
]);
|
|
933
933
|
|
|
934
934
|
/**
|
|
@@ -1047,8 +1047,8 @@ export const GetAllPromptsModelParameters$inboundSchema: z.ZodType<
|
|
|
1047
1047
|
style: z.string().optional(),
|
|
1048
1048
|
responseFormat: z.nullable(
|
|
1049
1049
|
z.union([
|
|
1050
|
-
z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
|
|
1051
1050
|
z.lazy(() => GetAllPromptsResponseFormat1$inboundSchema),
|
|
1051
|
+
z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
|
|
1052
1052
|
]),
|
|
1053
1053
|
).optional(),
|
|
1054
1054
|
photoRealVersion: GetAllPromptsPhotoRealVersion$inboundSchema.optional(),
|
|
@@ -1076,8 +1076,8 @@ export type GetAllPromptsModelParameters$Outbound = {
|
|
|
1076
1076
|
quality?: string | undefined;
|
|
1077
1077
|
style?: string | undefined;
|
|
1078
1078
|
responseFormat?:
|
|
1079
|
-
| GetAllPromptsResponseFormat2$Outbound
|
|
1080
1079
|
| GetAllPromptsResponseFormat1$Outbound
|
|
1080
|
+
| GetAllPromptsResponseFormat2$Outbound
|
|
1081
1081
|
| null
|
|
1082
1082
|
| undefined;
|
|
1083
1083
|
photoRealVersion?: string | undefined;
|
|
@@ -1106,8 +1106,8 @@ export const GetAllPromptsModelParameters$outboundSchema: z.ZodType<
|
|
|
1106
1106
|
style: z.string().optional(),
|
|
1107
1107
|
responseFormat: z.nullable(
|
|
1108
1108
|
z.union([
|
|
1109
|
-
z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
|
|
1110
1109
|
z.lazy(() => GetAllPromptsResponseFormat1$outboundSchema),
|
|
1110
|
+
z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
|
|
1111
1111
|
]),
|
|
1112
1112
|
).optional(),
|
|
1113
1113
|
photoRealVersion: GetAllPromptsPhotoRealVersion$outboundSchema.optional(),
|