@orq-ai/node 3.6.16 → 3.6.17
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 +188 -188
- package/bin/mcp-server.js.map +35 -35
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/security.d.ts +2 -2
- package/lib/security.d.ts.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/deployments.d.ts +8 -8
- package/models/components/deployments.d.ts.map +1 -1
- package/models/components/deployments.js +8 -8
- package/models/components/deployments.js.map +1 -1
- package/models/operations/bulkcreatedatapoints.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createprompt.d.ts +12 -12
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +12 -12
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/deploymentcreatemetric.d.ts +8 -8
- package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
- package/models/operations/deploymentcreatemetric.js +8 -8
- package/models/operations/deploymentcreatemetric.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +14 -14
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +14 -14
- 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 +6 -6
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +6 -6
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +12 -12
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +12 -12
- 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 +6 -6
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +6 -6
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getoneprompt.d.ts +6 -6
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +6 -6
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +6 -6
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +6 -6
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listpromptversions.d.ts +6 -6
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +6 -6
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateprompt.d.ts +12 -12
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +12 -12
- package/models/operations/updateprompt.js.map +1 -1
- package/package.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/security.ts +2 -2
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -1
- package/packages/orq-rc/src/models/components/deployments.ts +16 -16
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +18 -18
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +121 -121
- package/packages/orq-rc/src/models/operations/createfeedback.ts +16 -16
- package/packages/orq-rc/src/models/operations/createprompt.ts +39 -39
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +22 -18
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +30 -30
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +13 -13
- package/packages/orq-rc/src/models/operations/deployments.ts +14 -14
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +26 -26
- package/packages/orq-rc/src/models/operations/evalsageappropriate.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsfactcheckingknowledgebase.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsgrammar.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalslocalization.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalspii.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsragascoherence.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsragasconciseness.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsragascontextprecision.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsragascorrectness.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsragasfaithfulness.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsragasharmfulness.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsragasmaliciousness.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsragasresponserelevancy.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalssentimentclassification.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalssummarization.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalstoneofvoice.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalstranslation.ts +4 -4
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getallprompts.ts +22 -22
- package/packages/orq-rc/src/models/operations/getevals.ts +339 -364
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +22 -22
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +22 -22
- package/packages/orq-rc/src/models/operations/invokeeval.ts +251 -223
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +16 -12
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +22 -22
- package/packages/orq-rc/src/models/operations/postv2modelslitellmimport.ts +18 -18
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +10 -10
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +21 -19
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +139 -139
- package/packages/orq-rc/src/models/operations/updateprompt.ts +61 -106
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/deployments.ts +16 -16
- package/src/models/operations/bulkcreatedatapoints.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createprompt.ts +27 -27
- package/src/models/operations/deploymentcreatemetric.ts +22 -18
- package/src/models/operations/deploymentgetconfig.ts +30 -30
- package/src/models/operations/deploymentinvoke.ts +13 -13
- package/src/models/operations/deployments.ts +14 -14
- package/src/models/operations/deploymentstream.ts +26 -26
- 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 +14 -14
- package/src/models/operations/getoneprompt.ts +14 -14
- package/src/models/operations/getpromptversion.ts +14 -14
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listpromptversions.ts +14 -14
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateprompt.ts +28 -28
|
@@ -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
|
/**
|
|
@@ -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
|
};
|
|
@@ -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
|
|
|
@@ -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-17T14:04:18.596Z",
|
|
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-17T14:04:18.596Z"))
|
|
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-17T14:04:18.596Z",
|
|
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-17T14:04:18.596Z"))
|
|
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-17T14:04:18.596Z",
|
|
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-17T14:04:18.596Z"))
|
|
288
288
|
.transform(v => v.toISOString()),
|
|
289
289
|
}).transform((v) => {
|
|
290
290
|
return remap$(v, {
|
|
@@ -87,7 +87,7 @@ export type GetAllPromptsResponseFormatType = ClosedEnum<
|
|
|
87
87
|
|
|
88
88
|
export type GetAllPromptsResponseFormatJsonSchema = {
|
|
89
89
|
name: string;
|
|
90
|
-
strict
|
|
90
|
+
strict?: boolean | undefined;
|
|
91
91
|
schema: { [k: string]: any };
|
|
92
92
|
};
|
|
93
93
|
|
|
@@ -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
|
/**
|
|
@@ -776,14 +776,14 @@ export const GetAllPromptsResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
|
776
776
|
unknown
|
|
777
777
|
> = z.object({
|
|
778
778
|
name: z.string(),
|
|
779
|
-
strict: z.boolean(),
|
|
779
|
+
strict: z.boolean().optional(),
|
|
780
780
|
schema: z.record(z.any()),
|
|
781
781
|
});
|
|
782
782
|
|
|
783
783
|
/** @internal */
|
|
784
784
|
export type GetAllPromptsResponseFormatJsonSchema$Outbound = {
|
|
785
785
|
name: string;
|
|
786
|
-
strict
|
|
786
|
+
strict?: boolean | undefined;
|
|
787
787
|
schema: { [k: string]: any };
|
|
788
788
|
};
|
|
789
789
|
|
|
@@ -794,7 +794,7 @@ export const GetAllPromptsResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
|
794
794
|
GetAllPromptsResponseFormatJsonSchema
|
|
795
795
|
> = z.object({
|
|
796
796
|
name: z.string(),
|
|
797
|
-
strict: z.boolean(),
|
|
797
|
+
strict: z.boolean().optional(),
|
|
798
798
|
schema: z.record(z.any()),
|
|
799
799
|
});
|
|
800
800
|
|
|
@@ -911,14 +911,14 @@ export const GetAllPromptsResponseFormat$inboundSchema: z.ZodType<
|
|
|
911
911
|
z.ZodTypeDef,
|
|
912
912
|
unknown
|
|
913
913
|
> = z.union([
|
|
914
|
-
z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
|
|
915
914
|
z.lazy(() => GetAllPromptsResponseFormat1$inboundSchema),
|
|
915
|
+
z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
|
|
916
916
|
]);
|
|
917
917
|
|
|
918
918
|
/** @internal */
|
|
919
919
|
export type GetAllPromptsResponseFormat$Outbound =
|
|
920
|
-
|
|
|
921
|
-
|
|
|
920
|
+
| GetAllPromptsResponseFormat1$Outbound
|
|
921
|
+
| GetAllPromptsResponseFormat2$Outbound;
|
|
922
922
|
|
|
923
923
|
/** @internal */
|
|
924
924
|
export const GetAllPromptsResponseFormat$outboundSchema: z.ZodType<
|
|
@@ -926,8 +926,8 @@ export const GetAllPromptsResponseFormat$outboundSchema: z.ZodType<
|
|
|
926
926
|
z.ZodTypeDef,
|
|
927
927
|
GetAllPromptsResponseFormat
|
|
928
928
|
> = z.union([
|
|
929
|
-
z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
|
|
930
929
|
z.lazy(() => GetAllPromptsResponseFormat1$outboundSchema),
|
|
930
|
+
z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
|
|
931
931
|
]);
|
|
932
932
|
|
|
933
933
|
/**
|
|
@@ -1046,8 +1046,8 @@ export const GetAllPromptsModelParameters$inboundSchema: z.ZodType<
|
|
|
1046
1046
|
style: z.string().optional(),
|
|
1047
1047
|
responseFormat: z.nullable(
|
|
1048
1048
|
z.union([
|
|
1049
|
-
z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
|
|
1050
1049
|
z.lazy(() => GetAllPromptsResponseFormat1$inboundSchema),
|
|
1050
|
+
z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
|
|
1051
1051
|
]),
|
|
1052
1052
|
).optional(),
|
|
1053
1053
|
photoRealVersion: GetAllPromptsPhotoRealVersion$inboundSchema.optional(),
|
|
@@ -1075,8 +1075,8 @@ export type GetAllPromptsModelParameters$Outbound = {
|
|
|
1075
1075
|
quality?: string | undefined;
|
|
1076
1076
|
style?: string | undefined;
|
|
1077
1077
|
responseFormat?:
|
|
1078
|
-
| GetAllPromptsResponseFormat2$Outbound
|
|
1079
1078
|
| GetAllPromptsResponseFormat1$Outbound
|
|
1079
|
+
| GetAllPromptsResponseFormat2$Outbound
|
|
1080
1080
|
| null
|
|
1081
1081
|
| undefined;
|
|
1082
1082
|
photoRealVersion?: string | undefined;
|
|
@@ -1105,8 +1105,8 @@ export const GetAllPromptsModelParameters$outboundSchema: z.ZodType<
|
|
|
1105
1105
|
style: z.string().optional(),
|
|
1106
1106
|
responseFormat: z.nullable(
|
|
1107
1107
|
z.union([
|
|
1108
|
-
z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
|
|
1109
1108
|
z.lazy(() => GetAllPromptsResponseFormat1$outboundSchema),
|
|
1109
|
+
z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
|
|
1110
1110
|
]),
|
|
1111
1111
|
).optional(),
|
|
1112
1112
|
photoRealVersion: GetAllPromptsPhotoRealVersion$outboundSchema.optional(),
|
|
@@ -74,7 +74,7 @@ export type GetOnePromptResponseFormatType = ClosedEnum<
|
|
|
74
74
|
|
|
75
75
|
export type GetOnePromptResponseFormatJsonSchema = {
|
|
76
76
|
name: string;
|
|
77
|
-
strict
|
|
77
|
+
strict?: boolean | undefined;
|
|
78
78
|
schema: { [k: string]: any };
|
|
79
79
|
};
|
|
80
80
|
|
|
@@ -95,8 +95,8 @@ export type GetOnePromptResponseFormat1 = {
|
|
|
95
95
|
* 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.
|
|
96
96
|
*/
|
|
97
97
|
export type GetOnePromptResponseFormat =
|
|
98
|
-
|
|
|
99
|
-
|
|
|
98
|
+
| GetOnePromptResponseFormat1
|
|
99
|
+
| GetOnePromptResponseFormat2;
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
102
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
@@ -205,8 +205,8 @@ export type GetOnePromptModelParameters = {
|
|
|
205
205
|
* 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.
|
|
206
206
|
*/
|
|
207
207
|
responseFormat?:
|
|
208
|
-
| GetOnePromptResponseFormat2
|
|
209
208
|
| GetOnePromptResponseFormat1
|
|
209
|
+
| GetOnePromptResponseFormat2
|
|
210
210
|
| null
|
|
211
211
|
| undefined;
|
|
212
212
|
/**
|
|
@@ -720,14 +720,14 @@ export const GetOnePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
|
720
720
|
unknown
|
|
721
721
|
> = z.object({
|
|
722
722
|
name: z.string(),
|
|
723
|
-
strict: z.boolean(),
|
|
723
|
+
strict: z.boolean().optional(),
|
|
724
724
|
schema: z.record(z.any()),
|
|
725
725
|
});
|
|
726
726
|
|
|
727
727
|
/** @internal */
|
|
728
728
|
export type GetOnePromptResponseFormatJsonSchema$Outbound = {
|
|
729
729
|
name: string;
|
|
730
|
-
strict
|
|
730
|
+
strict?: boolean | undefined;
|
|
731
731
|
schema: { [k: string]: any };
|
|
732
732
|
};
|
|
733
733
|
|
|
@@ -738,7 +738,7 @@ export const GetOnePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
|
738
738
|
GetOnePromptResponseFormatJsonSchema
|
|
739
739
|
> = z.object({
|
|
740
740
|
name: z.string(),
|
|
741
|
-
strict: z.boolean(),
|
|
741
|
+
strict: z.boolean().optional(),
|
|
742
742
|
schema: z.record(z.any()),
|
|
743
743
|
});
|
|
744
744
|
|
|
@@ -851,14 +851,14 @@ export const GetOnePromptResponseFormat$inboundSchema: z.ZodType<
|
|
|
851
851
|
z.ZodTypeDef,
|
|
852
852
|
unknown
|
|
853
853
|
> = z.union([
|
|
854
|
-
z.lazy(() => GetOnePromptResponseFormat2$inboundSchema),
|
|
855
854
|
z.lazy(() => GetOnePromptResponseFormat1$inboundSchema),
|
|
855
|
+
z.lazy(() => GetOnePromptResponseFormat2$inboundSchema),
|
|
856
856
|
]);
|
|
857
857
|
|
|
858
858
|
/** @internal */
|
|
859
859
|
export type GetOnePromptResponseFormat$Outbound =
|
|
860
|
-
|
|
|
861
|
-
|
|
|
860
|
+
| GetOnePromptResponseFormat1$Outbound
|
|
861
|
+
| GetOnePromptResponseFormat2$Outbound;
|
|
862
862
|
|
|
863
863
|
/** @internal */
|
|
864
864
|
export const GetOnePromptResponseFormat$outboundSchema: z.ZodType<
|
|
@@ -866,8 +866,8 @@ export const GetOnePromptResponseFormat$outboundSchema: z.ZodType<
|
|
|
866
866
|
z.ZodTypeDef,
|
|
867
867
|
GetOnePromptResponseFormat
|
|
868
868
|
> = z.union([
|
|
869
|
-
z.lazy(() => GetOnePromptResponseFormat2$outboundSchema),
|
|
870
869
|
z.lazy(() => GetOnePromptResponseFormat1$outboundSchema),
|
|
870
|
+
z.lazy(() => GetOnePromptResponseFormat2$outboundSchema),
|
|
871
871
|
]);
|
|
872
872
|
|
|
873
873
|
/**
|
|
@@ -984,8 +984,8 @@ export const GetOnePromptModelParameters$inboundSchema: z.ZodType<
|
|
|
984
984
|
style: z.string().optional(),
|
|
985
985
|
responseFormat: z.nullable(
|
|
986
986
|
z.union([
|
|
987
|
-
z.lazy(() => GetOnePromptResponseFormat2$inboundSchema),
|
|
988
987
|
z.lazy(() => GetOnePromptResponseFormat1$inboundSchema),
|
|
988
|
+
z.lazy(() => GetOnePromptResponseFormat2$inboundSchema),
|
|
989
989
|
]),
|
|
990
990
|
).optional(),
|
|
991
991
|
photoRealVersion: GetOnePromptPhotoRealVersion$inboundSchema.optional(),
|
|
@@ -1013,8 +1013,8 @@ export type GetOnePromptModelParameters$Outbound = {
|
|
|
1013
1013
|
quality?: string | undefined;
|
|
1014
1014
|
style?: string | undefined;
|
|
1015
1015
|
responseFormat?:
|
|
1016
|
-
| GetOnePromptResponseFormat2$Outbound
|
|
1017
1016
|
| GetOnePromptResponseFormat1$Outbound
|
|
1017
|
+
| GetOnePromptResponseFormat2$Outbound
|
|
1018
1018
|
| null
|
|
1019
1019
|
| undefined;
|
|
1020
1020
|
photoRealVersion?: string | undefined;
|
|
@@ -1043,8 +1043,8 @@ export const GetOnePromptModelParameters$outboundSchema: z.ZodType<
|
|
|
1043
1043
|
style: z.string().optional(),
|
|
1044
1044
|
responseFormat: z.nullable(
|
|
1045
1045
|
z.union([
|
|
1046
|
-
z.lazy(() => GetOnePromptResponseFormat2$outboundSchema),
|
|
1047
1046
|
z.lazy(() => GetOnePromptResponseFormat1$outboundSchema),
|
|
1047
|
+
z.lazy(() => GetOnePromptResponseFormat2$outboundSchema),
|
|
1048
1048
|
]),
|
|
1049
1049
|
).optional(),
|
|
1050
1050
|
photoRealVersion: GetOnePromptPhotoRealVersion$outboundSchema.optional(),
|
|
@@ -75,7 +75,7 @@ export type GetPromptVersionResponseFormatType = ClosedEnum<
|
|
|
75
75
|
|
|
76
76
|
export type GetPromptVersionResponseFormatJsonSchema = {
|
|
77
77
|
name: string;
|
|
78
|
-
strict
|
|
78
|
+
strict?: boolean | undefined;
|
|
79
79
|
schema: { [k: string]: any };
|
|
80
80
|
};
|
|
81
81
|
|
|
@@ -96,8 +96,8 @@ export type GetPromptVersionResponseFormat1 = {
|
|
|
96
96
|
* 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.
|
|
97
97
|
*/
|
|
98
98
|
export type GetPromptVersionResponseFormat =
|
|
99
|
-
|
|
|
100
|
-
|
|
|
99
|
+
| GetPromptVersionResponseFormat1
|
|
100
|
+
| GetPromptVersionResponseFormat2;
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
103
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
@@ -206,8 +206,8 @@ export type GetPromptVersionModelParameters = {
|
|
|
206
206
|
* 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.
|
|
207
207
|
*/
|
|
208
208
|
responseFormat?:
|
|
209
|
-
| GetPromptVersionResponseFormat2
|
|
210
209
|
| GetPromptVersionResponseFormat1
|
|
210
|
+
| GetPromptVersionResponseFormat2
|
|
211
211
|
| null
|
|
212
212
|
| undefined;
|
|
213
213
|
/**
|
|
@@ -711,14 +711,14 @@ export const GetPromptVersionResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
|
711
711
|
unknown
|
|
712
712
|
> = z.object({
|
|
713
713
|
name: z.string(),
|
|
714
|
-
strict: z.boolean(),
|
|
714
|
+
strict: z.boolean().optional(),
|
|
715
715
|
schema: z.record(z.any()),
|
|
716
716
|
});
|
|
717
717
|
|
|
718
718
|
/** @internal */
|
|
719
719
|
export type GetPromptVersionResponseFormatJsonSchema$Outbound = {
|
|
720
720
|
name: string;
|
|
721
|
-
strict
|
|
721
|
+
strict?: boolean | undefined;
|
|
722
722
|
schema: { [k: string]: any };
|
|
723
723
|
};
|
|
724
724
|
|
|
@@ -729,7 +729,7 @@ export const GetPromptVersionResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
|
729
729
|
GetPromptVersionResponseFormatJsonSchema
|
|
730
730
|
> = z.object({
|
|
731
731
|
name: z.string(),
|
|
732
|
-
strict: z.boolean(),
|
|
732
|
+
strict: z.boolean().optional(),
|
|
733
733
|
schema: z.record(z.any()),
|
|
734
734
|
});
|
|
735
735
|
|
|
@@ -852,14 +852,14 @@ export const GetPromptVersionResponseFormat$inboundSchema: z.ZodType<
|
|
|
852
852
|
z.ZodTypeDef,
|
|
853
853
|
unknown
|
|
854
854
|
> = z.union([
|
|
855
|
-
z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
|
|
856
855
|
z.lazy(() => GetPromptVersionResponseFormat1$inboundSchema),
|
|
856
|
+
z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
|
|
857
857
|
]);
|
|
858
858
|
|
|
859
859
|
/** @internal */
|
|
860
860
|
export type GetPromptVersionResponseFormat$Outbound =
|
|
861
|
-
|
|
|
862
|
-
|
|
|
861
|
+
| GetPromptVersionResponseFormat1$Outbound
|
|
862
|
+
| GetPromptVersionResponseFormat2$Outbound;
|
|
863
863
|
|
|
864
864
|
/** @internal */
|
|
865
865
|
export const GetPromptVersionResponseFormat$outboundSchema: z.ZodType<
|
|
@@ -867,8 +867,8 @@ export const GetPromptVersionResponseFormat$outboundSchema: z.ZodType<
|
|
|
867
867
|
z.ZodTypeDef,
|
|
868
868
|
GetPromptVersionResponseFormat
|
|
869
869
|
> = z.union([
|
|
870
|
-
z.lazy(() => GetPromptVersionResponseFormat2$outboundSchema),
|
|
871
870
|
z.lazy(() => GetPromptVersionResponseFormat1$outboundSchema),
|
|
871
|
+
z.lazy(() => GetPromptVersionResponseFormat2$outboundSchema),
|
|
872
872
|
]);
|
|
873
873
|
|
|
874
874
|
/**
|
|
@@ -987,8 +987,8 @@ export const GetPromptVersionModelParameters$inboundSchema: z.ZodType<
|
|
|
987
987
|
style: z.string().optional(),
|
|
988
988
|
responseFormat: z.nullable(
|
|
989
989
|
z.union([
|
|
990
|
-
z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
|
|
991
990
|
z.lazy(() => GetPromptVersionResponseFormat1$inboundSchema),
|
|
991
|
+
z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
|
|
992
992
|
]),
|
|
993
993
|
).optional(),
|
|
994
994
|
photoRealVersion: GetPromptVersionPhotoRealVersion$inboundSchema.optional(),
|
|
@@ -1016,8 +1016,8 @@ export type GetPromptVersionModelParameters$Outbound = {
|
|
|
1016
1016
|
quality?: string | undefined;
|
|
1017
1017
|
style?: string | undefined;
|
|
1018
1018
|
responseFormat?:
|
|
1019
|
-
| GetPromptVersionResponseFormat2$Outbound
|
|
1020
1019
|
| GetPromptVersionResponseFormat1$Outbound
|
|
1020
|
+
| GetPromptVersionResponseFormat2$Outbound
|
|
1021
1021
|
| null
|
|
1022
1022
|
| undefined;
|
|
1023
1023
|
photoRealVersion?: string | undefined;
|
|
@@ -1046,8 +1046,8 @@ export const GetPromptVersionModelParameters$outboundSchema: z.ZodType<
|
|
|
1046
1046
|
style: z.string().optional(),
|
|
1047
1047
|
responseFormat: z.nullable(
|
|
1048
1048
|
z.union([
|
|
1049
|
-
z.lazy(() => GetPromptVersionResponseFormat2$outboundSchema),
|
|
1050
1049
|
z.lazy(() => GetPromptVersionResponseFormat1$outboundSchema),
|
|
1050
|
+
z.lazy(() => GetPromptVersionResponseFormat2$outboundSchema),
|
|
1051
1051
|
]),
|
|
1052
1052
|
).optional(),
|
|
1053
1053
|
photoRealVersion: GetPromptVersionPhotoRealVersion$outboundSchema.optional(),
|
|
@@ -1117,7 +1117,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
1117
1117
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1118
1118
|
.optional(),
|
|
1119
1119
|
updated: z.string().datetime({ offset: true }).default(
|
|
1120
|
-
"2025-06-
|
|
1120
|
+
"2025-06-17T14:04:15.852Z",
|
|
1121
1121
|
).transform(v => new Date(v)),
|
|
1122
1122
|
}).transform((v) => {
|
|
1123
1123
|
return remap$(v, {
|
|
@@ -1160,7 +1160,7 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
|
|
|
1160
1160
|
createdById: z.string().optional(),
|
|
1161
1161
|
updatedById: z.string().optional(),
|
|
1162
1162
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
1163
|
-
updated: z.date().default(() => new Date("2025-06-
|
|
1163
|
+
updated: z.date().default(() => new Date("2025-06-17T14:04:15.852Z"))
|
|
1164
1164
|
.transform(v => v.toISOString()),
|
|
1165
1165
|
}).transform((v) => {
|
|
1166
1166
|
return remap$(v, {
|