@orq-ai/node 3.6.15 → 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
|
@@ -399,10 +399,10 @@ export type DeveloperMessage = {
|
|
|
399
399
|
};
|
|
400
400
|
|
|
401
401
|
export type PrefixMessages =
|
|
402
|
+
| ToolMessage
|
|
402
403
|
| DeveloperMessage
|
|
403
404
|
| SystemMessage
|
|
404
405
|
| UserMessage
|
|
405
|
-
| ToolMessage
|
|
406
406
|
| AssistantMessage;
|
|
407
407
|
|
|
408
408
|
/**
|
|
@@ -820,10 +820,10 @@ export type MessagesDeveloperMessage = {
|
|
|
820
820
|
};
|
|
821
821
|
|
|
822
822
|
export type Messages =
|
|
823
|
+
| MessagesToolMessage
|
|
823
824
|
| MessagesDeveloperMessage
|
|
824
825
|
| MessagesSystemMessage
|
|
825
826
|
| MessagesUserMessage
|
|
826
|
-
| MessagesToolMessage
|
|
827
827
|
| MessagesAssistantMessage;
|
|
828
828
|
|
|
829
829
|
/**
|
|
@@ -1179,10 +1179,10 @@ export type DeploymentGetConfigRequestBody = {
|
|
|
1179
1179
|
*/
|
|
1180
1180
|
prefixMessages?:
|
|
1181
1181
|
| Array<
|
|
1182
|
+
| ToolMessage
|
|
1182
1183
|
| DeveloperMessage
|
|
1183
1184
|
| SystemMessage
|
|
1184
1185
|
| UserMessage
|
|
1185
|
-
| ToolMessage
|
|
1186
1186
|
| AssistantMessage
|
|
1187
1187
|
>
|
|
1188
1188
|
| undefined;
|
|
@@ -1191,10 +1191,10 @@ export type DeploymentGetConfigRequestBody = {
|
|
|
1191
1191
|
*/
|
|
1192
1192
|
messages?:
|
|
1193
1193
|
| Array<
|
|
1194
|
+
| MessagesToolMessage
|
|
1194
1195
|
| MessagesDeveloperMessage
|
|
1195
1196
|
| MessagesSystemMessage
|
|
1196
1197
|
| MessagesUserMessage
|
|
1197
|
-
| MessagesToolMessage
|
|
1198
1198
|
| MessagesAssistantMessage
|
|
1199
1199
|
>
|
|
1200
1200
|
| undefined;
|
|
@@ -1436,7 +1436,7 @@ export type DeploymentGetConfigResponseFormatDeploymentsType = ClosedEnum<
|
|
|
1436
1436
|
|
|
1437
1437
|
export type DeploymentGetConfigResponseFormatJsonSchema = {
|
|
1438
1438
|
name: string;
|
|
1439
|
-
strict
|
|
1439
|
+
strict?: boolean | undefined;
|
|
1440
1440
|
schema: { [k: string]: any };
|
|
1441
1441
|
};
|
|
1442
1442
|
|
|
@@ -1457,8 +1457,8 @@ export type DeploymentGetConfigResponseFormat1 = {
|
|
|
1457
1457
|
* 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.
|
|
1458
1458
|
*/
|
|
1459
1459
|
export type DeploymentGetConfigResponseFormat =
|
|
1460
|
-
|
|
|
1461
|
-
|
|
|
1460
|
+
| DeploymentGetConfigResponseFormat1
|
|
1461
|
+
| DeploymentGetConfigResponseFormat2;
|
|
1462
1462
|
|
|
1463
1463
|
/**
|
|
1464
1464
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
@@ -1567,8 +1567,8 @@ export type DeploymentGetConfigParameters = {
|
|
|
1567
1567
|
* 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.
|
|
1568
1568
|
*/
|
|
1569
1569
|
responseFormat?:
|
|
1570
|
-
| DeploymentGetConfigResponseFormat2
|
|
1571
1570
|
| DeploymentGetConfigResponseFormat1
|
|
1571
|
+
| DeploymentGetConfigResponseFormat2
|
|
1572
1572
|
| null
|
|
1573
1573
|
| undefined;
|
|
1574
1574
|
/**
|
|
@@ -3306,19 +3306,19 @@ export const PrefixMessages$inboundSchema: z.ZodType<
|
|
|
3306
3306
|
z.ZodTypeDef,
|
|
3307
3307
|
unknown
|
|
3308
3308
|
> = z.union([
|
|
3309
|
+
z.lazy(() => ToolMessage$inboundSchema),
|
|
3309
3310
|
z.lazy(() => DeveloperMessage$inboundSchema),
|
|
3310
3311
|
z.lazy(() => SystemMessage$inboundSchema),
|
|
3311
3312
|
z.lazy(() => UserMessage$inboundSchema),
|
|
3312
|
-
z.lazy(() => ToolMessage$inboundSchema),
|
|
3313
3313
|
z.lazy(() => AssistantMessage$inboundSchema),
|
|
3314
3314
|
]);
|
|
3315
3315
|
|
|
3316
3316
|
/** @internal */
|
|
3317
3317
|
export type PrefixMessages$Outbound =
|
|
3318
|
+
| ToolMessage$Outbound
|
|
3318
3319
|
| DeveloperMessage$Outbound
|
|
3319
3320
|
| SystemMessage$Outbound
|
|
3320
3321
|
| UserMessage$Outbound
|
|
3321
|
-
| ToolMessage$Outbound
|
|
3322
3322
|
| AssistantMessage$Outbound;
|
|
3323
3323
|
|
|
3324
3324
|
/** @internal */
|
|
@@ -3327,10 +3327,10 @@ export const PrefixMessages$outboundSchema: z.ZodType<
|
|
|
3327
3327
|
z.ZodTypeDef,
|
|
3328
3328
|
PrefixMessages
|
|
3329
3329
|
> = z.union([
|
|
3330
|
+
z.lazy(() => ToolMessage$outboundSchema),
|
|
3330
3331
|
z.lazy(() => DeveloperMessage$outboundSchema),
|
|
3331
3332
|
z.lazy(() => SystemMessage$outboundSchema),
|
|
3332
3333
|
z.lazy(() => UserMessage$outboundSchema),
|
|
3333
|
-
z.lazy(() => ToolMessage$outboundSchema),
|
|
3334
3334
|
z.lazy(() => AssistantMessage$outboundSchema),
|
|
3335
3335
|
]);
|
|
3336
3336
|
|
|
@@ -5088,19 +5088,19 @@ export const Messages$inboundSchema: z.ZodType<
|
|
|
5088
5088
|
z.ZodTypeDef,
|
|
5089
5089
|
unknown
|
|
5090
5090
|
> = z.union([
|
|
5091
|
+
z.lazy(() => MessagesToolMessage$inboundSchema),
|
|
5091
5092
|
z.lazy(() => MessagesDeveloperMessage$inboundSchema),
|
|
5092
5093
|
z.lazy(() => MessagesSystemMessage$inboundSchema),
|
|
5093
5094
|
z.lazy(() => MessagesUserMessage$inboundSchema),
|
|
5094
|
-
z.lazy(() => MessagesToolMessage$inboundSchema),
|
|
5095
5095
|
z.lazy(() => MessagesAssistantMessage$inboundSchema),
|
|
5096
5096
|
]);
|
|
5097
5097
|
|
|
5098
5098
|
/** @internal */
|
|
5099
5099
|
export type Messages$Outbound =
|
|
5100
|
+
| MessagesToolMessage$Outbound
|
|
5100
5101
|
| MessagesDeveloperMessage$Outbound
|
|
5101
5102
|
| MessagesSystemMessage$Outbound
|
|
5102
5103
|
| MessagesUserMessage$Outbound
|
|
5103
|
-
| MessagesToolMessage$Outbound
|
|
5104
5104
|
| MessagesAssistantMessage$Outbound;
|
|
5105
5105
|
|
|
5106
5106
|
/** @internal */
|
|
@@ -5109,10 +5109,10 @@ export const Messages$outboundSchema: z.ZodType<
|
|
|
5109
5109
|
z.ZodTypeDef,
|
|
5110
5110
|
Messages
|
|
5111
5111
|
> = z.union([
|
|
5112
|
+
z.lazy(() => MessagesToolMessage$outboundSchema),
|
|
5112
5113
|
z.lazy(() => MessagesDeveloperMessage$outboundSchema),
|
|
5113
5114
|
z.lazy(() => MessagesSystemMessage$outboundSchema),
|
|
5114
5115
|
z.lazy(() => MessagesUserMessage$outboundSchema),
|
|
5115
|
-
z.lazy(() => MessagesToolMessage$outboundSchema),
|
|
5116
5116
|
z.lazy(() => MessagesAssistantMessage$outboundSchema),
|
|
5117
5117
|
]);
|
|
5118
5118
|
|
|
@@ -7650,19 +7650,19 @@ export const DeploymentGetConfigRequestBody$inboundSchema: z.ZodType<
|
|
|
7650
7650
|
context: z.record(z.any()).optional(),
|
|
7651
7651
|
prefix_messages: z.array(
|
|
7652
7652
|
z.union([
|
|
7653
|
+
z.lazy(() => ToolMessage$inboundSchema),
|
|
7653
7654
|
z.lazy(() => DeveloperMessage$inboundSchema),
|
|
7654
7655
|
z.lazy(() => SystemMessage$inboundSchema),
|
|
7655
7656
|
z.lazy(() => UserMessage$inboundSchema),
|
|
7656
|
-
z.lazy(() => ToolMessage$inboundSchema),
|
|
7657
7657
|
z.lazy(() => AssistantMessage$inboundSchema),
|
|
7658
7658
|
]),
|
|
7659
7659
|
).optional(),
|
|
7660
7660
|
messages: z.array(
|
|
7661
7661
|
z.union([
|
|
7662
|
+
z.lazy(() => MessagesToolMessage$inboundSchema),
|
|
7662
7663
|
z.lazy(() => MessagesDeveloperMessage$inboundSchema),
|
|
7663
7664
|
z.lazy(() => MessagesSystemMessage$inboundSchema),
|
|
7664
7665
|
z.lazy(() => MessagesUserMessage$inboundSchema),
|
|
7665
|
-
z.lazy(() => MessagesToolMessage$inboundSchema),
|
|
7666
7666
|
z.lazy(() => MessagesAssistantMessage$inboundSchema),
|
|
7667
7667
|
]),
|
|
7668
7668
|
).optional(),
|
|
@@ -7704,19 +7704,19 @@ export type DeploymentGetConfigRequestBody$Outbound = {
|
|
|
7704
7704
|
context?: { [k: string]: any } | undefined;
|
|
7705
7705
|
prefix_messages?:
|
|
7706
7706
|
| Array<
|
|
7707
|
+
| ToolMessage$Outbound
|
|
7707
7708
|
| DeveloperMessage$Outbound
|
|
7708
7709
|
| SystemMessage$Outbound
|
|
7709
7710
|
| UserMessage$Outbound
|
|
7710
|
-
| ToolMessage$Outbound
|
|
7711
7711
|
| AssistantMessage$Outbound
|
|
7712
7712
|
>
|
|
7713
7713
|
| undefined;
|
|
7714
7714
|
messages?:
|
|
7715
7715
|
| Array<
|
|
7716
|
+
| MessagesToolMessage$Outbound
|
|
7716
7717
|
| MessagesDeveloperMessage$Outbound
|
|
7717
7718
|
| MessagesSystemMessage$Outbound
|
|
7718
7719
|
| MessagesUserMessage$Outbound
|
|
7719
|
-
| MessagesToolMessage$Outbound
|
|
7720
7720
|
| MessagesAssistantMessage$Outbound
|
|
7721
7721
|
>
|
|
7722
7722
|
| undefined;
|
|
@@ -7751,19 +7751,19 @@ export const DeploymentGetConfigRequestBody$outboundSchema: z.ZodType<
|
|
|
7751
7751
|
context: z.record(z.any()).optional(),
|
|
7752
7752
|
prefixMessages: z.array(
|
|
7753
7753
|
z.union([
|
|
7754
|
+
z.lazy(() => ToolMessage$outboundSchema),
|
|
7754
7755
|
z.lazy(() => DeveloperMessage$outboundSchema),
|
|
7755
7756
|
z.lazy(() => SystemMessage$outboundSchema),
|
|
7756
7757
|
z.lazy(() => UserMessage$outboundSchema),
|
|
7757
|
-
z.lazy(() => ToolMessage$outboundSchema),
|
|
7758
7758
|
z.lazy(() => AssistantMessage$outboundSchema),
|
|
7759
7759
|
]),
|
|
7760
7760
|
).optional(),
|
|
7761
7761
|
messages: z.array(
|
|
7762
7762
|
z.union([
|
|
7763
|
+
z.lazy(() => MessagesToolMessage$outboundSchema),
|
|
7763
7764
|
z.lazy(() => MessagesDeveloperMessage$outboundSchema),
|
|
7764
7765
|
z.lazy(() => MessagesSystemMessage$outboundSchema),
|
|
7765
7766
|
z.lazy(() => MessagesUserMessage$outboundSchema),
|
|
7766
|
-
z.lazy(() => MessagesToolMessage$outboundSchema),
|
|
7767
7767
|
z.lazy(() => MessagesAssistantMessage$outboundSchema),
|
|
7768
7768
|
]),
|
|
7769
7769
|
).optional(),
|
|
@@ -8780,14 +8780,14 @@ export const DeploymentGetConfigResponseFormatJsonSchema$inboundSchema:
|
|
|
8780
8780
|
unknown
|
|
8781
8781
|
> = z.object({
|
|
8782
8782
|
name: z.string(),
|
|
8783
|
-
strict: z.boolean(),
|
|
8783
|
+
strict: z.boolean().optional(),
|
|
8784
8784
|
schema: z.record(z.any()),
|
|
8785
8785
|
});
|
|
8786
8786
|
|
|
8787
8787
|
/** @internal */
|
|
8788
8788
|
export type DeploymentGetConfigResponseFormatJsonSchema$Outbound = {
|
|
8789
8789
|
name: string;
|
|
8790
|
-
strict
|
|
8790
|
+
strict?: boolean | undefined;
|
|
8791
8791
|
schema: { [k: string]: any };
|
|
8792
8792
|
};
|
|
8793
8793
|
|
|
@@ -8799,7 +8799,7 @@ export const DeploymentGetConfigResponseFormatJsonSchema$outboundSchema:
|
|
|
8799
8799
|
DeploymentGetConfigResponseFormatJsonSchema
|
|
8800
8800
|
> = z.object({
|
|
8801
8801
|
name: z.string(),
|
|
8802
|
-
strict: z.boolean(),
|
|
8802
|
+
strict: z.boolean().optional(),
|
|
8803
8803
|
schema: z.record(z.any()),
|
|
8804
8804
|
});
|
|
8805
8805
|
|
|
@@ -8924,14 +8924,14 @@ export const DeploymentGetConfigResponseFormat$inboundSchema: z.ZodType<
|
|
|
8924
8924
|
z.ZodTypeDef,
|
|
8925
8925
|
unknown
|
|
8926
8926
|
> = z.union([
|
|
8927
|
-
z.lazy(() => DeploymentGetConfigResponseFormat2$inboundSchema),
|
|
8928
8927
|
z.lazy(() => DeploymentGetConfigResponseFormat1$inboundSchema),
|
|
8928
|
+
z.lazy(() => DeploymentGetConfigResponseFormat2$inboundSchema),
|
|
8929
8929
|
]);
|
|
8930
8930
|
|
|
8931
8931
|
/** @internal */
|
|
8932
8932
|
export type DeploymentGetConfigResponseFormat$Outbound =
|
|
8933
|
-
|
|
|
8934
|
-
|
|
|
8933
|
+
| DeploymentGetConfigResponseFormat1$Outbound
|
|
8934
|
+
| DeploymentGetConfigResponseFormat2$Outbound;
|
|
8935
8935
|
|
|
8936
8936
|
/** @internal */
|
|
8937
8937
|
export const DeploymentGetConfigResponseFormat$outboundSchema: z.ZodType<
|
|
@@ -8939,8 +8939,8 @@ export const DeploymentGetConfigResponseFormat$outboundSchema: z.ZodType<
|
|
|
8939
8939
|
z.ZodTypeDef,
|
|
8940
8940
|
DeploymentGetConfigResponseFormat
|
|
8941
8941
|
> = z.union([
|
|
8942
|
-
z.lazy(() => DeploymentGetConfigResponseFormat2$outboundSchema),
|
|
8943
8942
|
z.lazy(() => DeploymentGetConfigResponseFormat1$outboundSchema),
|
|
8943
|
+
z.lazy(() => DeploymentGetConfigResponseFormat2$outboundSchema),
|
|
8944
8944
|
]);
|
|
8945
8945
|
|
|
8946
8946
|
/**
|
|
@@ -9064,8 +9064,8 @@ export const DeploymentGetConfigParameters$inboundSchema: z.ZodType<
|
|
|
9064
9064
|
style: z.string().optional(),
|
|
9065
9065
|
responseFormat: z.nullable(
|
|
9066
9066
|
z.union([
|
|
9067
|
-
z.lazy(() => DeploymentGetConfigResponseFormat2$inboundSchema),
|
|
9068
9067
|
z.lazy(() => DeploymentGetConfigResponseFormat1$inboundSchema),
|
|
9068
|
+
z.lazy(() => DeploymentGetConfigResponseFormat2$inboundSchema),
|
|
9069
9069
|
]),
|
|
9070
9070
|
).optional(),
|
|
9071
9071
|
photoRealVersion: DeploymentGetConfigPhotoRealVersion$inboundSchema
|
|
@@ -9094,8 +9094,8 @@ export type DeploymentGetConfigParameters$Outbound = {
|
|
|
9094
9094
|
quality?: string | undefined;
|
|
9095
9095
|
style?: string | undefined;
|
|
9096
9096
|
responseFormat?:
|
|
9097
|
-
| DeploymentGetConfigResponseFormat2$Outbound
|
|
9098
9097
|
| DeploymentGetConfigResponseFormat1$Outbound
|
|
9098
|
+
| DeploymentGetConfigResponseFormat2$Outbound
|
|
9099
9099
|
| null
|
|
9100
9100
|
| undefined;
|
|
9101
9101
|
photoRealVersion?: string | undefined;
|
|
@@ -9124,8 +9124,8 @@ export const DeploymentGetConfigParameters$outboundSchema: z.ZodType<
|
|
|
9124
9124
|
style: z.string().optional(),
|
|
9125
9125
|
responseFormat: z.nullable(
|
|
9126
9126
|
z.union([
|
|
9127
|
-
z.lazy(() => DeploymentGetConfigResponseFormat2$outboundSchema),
|
|
9128
9127
|
z.lazy(() => DeploymentGetConfigResponseFormat1$outboundSchema),
|
|
9128
|
+
z.lazy(() => DeploymentGetConfigResponseFormat2$outboundSchema),
|
|
9129
9129
|
]),
|
|
9130
9130
|
).optional(),
|
|
9131
9131
|
photoRealVersion: DeploymentGetConfigPhotoRealVersion$outboundSchema
|
|
@@ -247,11 +247,11 @@ export type Message1 = {
|
|
|
247
247
|
redactedReasoning?: string | undefined;
|
|
248
248
|
};
|
|
249
249
|
|
|
250
|
-
export type Message =
|
|
250
|
+
export type Message = Message1 | Message2 | Message3;
|
|
251
251
|
|
|
252
252
|
export type DeploymentInvokeChoices = {
|
|
253
253
|
index: number;
|
|
254
|
-
message:
|
|
254
|
+
message: Message1 | Message2 | Message3;
|
|
255
255
|
finishReason?: string | null | undefined;
|
|
256
256
|
};
|
|
257
257
|
|
|
@@ -1026,16 +1026,16 @@ export function message1FromJSON(
|
|
|
1026
1026
|
/** @internal */
|
|
1027
1027
|
export const Message$inboundSchema: z.ZodType<Message, z.ZodTypeDef, unknown> =
|
|
1028
1028
|
z.union([
|
|
1029
|
-
z.lazy(() => Message3$inboundSchema),
|
|
1030
|
-
z.lazy(() => Message2$inboundSchema),
|
|
1031
1029
|
z.lazy(() => Message1$inboundSchema),
|
|
1030
|
+
z.lazy(() => Message2$inboundSchema),
|
|
1031
|
+
z.lazy(() => Message3$inboundSchema),
|
|
1032
1032
|
]);
|
|
1033
1033
|
|
|
1034
1034
|
/** @internal */
|
|
1035
1035
|
export type Message$Outbound =
|
|
1036
|
-
|
|
|
1036
|
+
| Message1$Outbound
|
|
1037
1037
|
| Message2$Outbound
|
|
1038
|
-
|
|
|
1038
|
+
| Message3$Outbound;
|
|
1039
1039
|
|
|
1040
1040
|
/** @internal */
|
|
1041
1041
|
export const Message$outboundSchema: z.ZodType<
|
|
@@ -1043,9 +1043,9 @@ export const Message$outboundSchema: z.ZodType<
|
|
|
1043
1043
|
z.ZodTypeDef,
|
|
1044
1044
|
Message
|
|
1045
1045
|
> = z.union([
|
|
1046
|
-
z.lazy(() => Message3$outboundSchema),
|
|
1047
|
-
z.lazy(() => Message2$outboundSchema),
|
|
1048
1046
|
z.lazy(() => Message1$outboundSchema),
|
|
1047
|
+
z.lazy(() => Message2$outboundSchema),
|
|
1048
|
+
z.lazy(() => Message3$outboundSchema),
|
|
1049
1049
|
]);
|
|
1050
1050
|
|
|
1051
1051
|
/**
|
|
@@ -1083,9 +1083,9 @@ export const DeploymentInvokeChoices$inboundSchema: z.ZodType<
|
|
|
1083
1083
|
> = z.object({
|
|
1084
1084
|
index: z.number(),
|
|
1085
1085
|
message: z.union([
|
|
1086
|
-
z.lazy(() => Message3$inboundSchema),
|
|
1087
|
-
z.lazy(() => Message2$inboundSchema),
|
|
1088
1086
|
z.lazy(() => Message1$inboundSchema),
|
|
1087
|
+
z.lazy(() => Message2$inboundSchema),
|
|
1088
|
+
z.lazy(() => Message3$inboundSchema),
|
|
1089
1089
|
]),
|
|
1090
1090
|
finish_reason: z.nullable(z.string()).optional(),
|
|
1091
1091
|
}).transform((v) => {
|
|
@@ -1097,7 +1097,7 @@ export const DeploymentInvokeChoices$inboundSchema: z.ZodType<
|
|
|
1097
1097
|
/** @internal */
|
|
1098
1098
|
export type DeploymentInvokeChoices$Outbound = {
|
|
1099
1099
|
index: number;
|
|
1100
|
-
message:
|
|
1100
|
+
message: Message1$Outbound | Message2$Outbound | Message3$Outbound;
|
|
1101
1101
|
finish_reason?: string | null | undefined;
|
|
1102
1102
|
};
|
|
1103
1103
|
|
|
@@ -1109,9 +1109,9 @@ export const DeploymentInvokeChoices$outboundSchema: z.ZodType<
|
|
|
1109
1109
|
> = z.object({
|
|
1110
1110
|
index: z.number(),
|
|
1111
1111
|
message: z.union([
|
|
1112
|
-
z.lazy(() => Message3$outboundSchema),
|
|
1113
|
-
z.lazy(() => Message2$outboundSchema),
|
|
1114
1112
|
z.lazy(() => Message1$outboundSchema),
|
|
1113
|
+
z.lazy(() => Message2$outboundSchema),
|
|
1114
|
+
z.lazy(() => Message3$outboundSchema),
|
|
1115
1115
|
]),
|
|
1116
1116
|
finishReason: z.nullable(z.string()).optional(),
|
|
1117
1117
|
}).transform((v) => {
|
|
@@ -143,7 +143,7 @@ export type DeploymentsResponseFormatDeploymentsType = ClosedEnum<
|
|
|
143
143
|
|
|
144
144
|
export type DeploymentsResponseFormatJsonSchema = {
|
|
145
145
|
name: string;
|
|
146
|
-
strict
|
|
146
|
+
strict?: boolean | undefined;
|
|
147
147
|
schema: { [k: string]: any };
|
|
148
148
|
};
|
|
149
149
|
|
|
@@ -164,8 +164,8 @@ export type DeploymentsResponseFormat1 = {
|
|
|
164
164
|
* 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.
|
|
165
165
|
*/
|
|
166
166
|
export type DeploymentsResponseFormat =
|
|
167
|
-
|
|
|
168
|
-
|
|
|
167
|
+
| DeploymentsResponseFormat1
|
|
168
|
+
| DeploymentsResponseFormat2;
|
|
169
169
|
|
|
170
170
|
/**
|
|
171
171
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
@@ -274,8 +274,8 @@ export type DeploymentsModelParameters = {
|
|
|
274
274
|
* 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.
|
|
275
275
|
*/
|
|
276
276
|
responseFormat?:
|
|
277
|
-
| DeploymentsResponseFormat2
|
|
278
277
|
| DeploymentsResponseFormat1
|
|
278
|
+
| DeploymentsResponseFormat2
|
|
279
279
|
| null
|
|
280
280
|
| undefined;
|
|
281
281
|
/**
|
|
@@ -975,14 +975,14 @@ export const DeploymentsResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
|
975
975
|
unknown
|
|
976
976
|
> = z.object({
|
|
977
977
|
name: z.string(),
|
|
978
|
-
strict: z.boolean(),
|
|
978
|
+
strict: z.boolean().optional(),
|
|
979
979
|
schema: z.record(z.any()),
|
|
980
980
|
});
|
|
981
981
|
|
|
982
982
|
/** @internal */
|
|
983
983
|
export type DeploymentsResponseFormatJsonSchema$Outbound = {
|
|
984
984
|
name: string;
|
|
985
|
-
strict
|
|
985
|
+
strict?: boolean | undefined;
|
|
986
986
|
schema: { [k: string]: any };
|
|
987
987
|
};
|
|
988
988
|
|
|
@@ -993,7 +993,7 @@ export const DeploymentsResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
|
993
993
|
DeploymentsResponseFormatJsonSchema
|
|
994
994
|
> = z.object({
|
|
995
995
|
name: z.string(),
|
|
996
|
-
strict: z.boolean(),
|
|
996
|
+
strict: z.boolean().optional(),
|
|
997
997
|
schema: z.record(z.any()),
|
|
998
998
|
});
|
|
999
999
|
|
|
@@ -1104,14 +1104,14 @@ export const DeploymentsResponseFormat$inboundSchema: z.ZodType<
|
|
|
1104
1104
|
z.ZodTypeDef,
|
|
1105
1105
|
unknown
|
|
1106
1106
|
> = z.union([
|
|
1107
|
-
z.lazy(() => DeploymentsResponseFormat2$inboundSchema),
|
|
1108
1107
|
z.lazy(() => DeploymentsResponseFormat1$inboundSchema),
|
|
1108
|
+
z.lazy(() => DeploymentsResponseFormat2$inboundSchema),
|
|
1109
1109
|
]);
|
|
1110
1110
|
|
|
1111
1111
|
/** @internal */
|
|
1112
1112
|
export type DeploymentsResponseFormat$Outbound =
|
|
1113
|
-
|
|
|
1114
|
-
|
|
|
1113
|
+
| DeploymentsResponseFormat1$Outbound
|
|
1114
|
+
| DeploymentsResponseFormat2$Outbound;
|
|
1115
1115
|
|
|
1116
1116
|
/** @internal */
|
|
1117
1117
|
export const DeploymentsResponseFormat$outboundSchema: z.ZodType<
|
|
@@ -1119,8 +1119,8 @@ export const DeploymentsResponseFormat$outboundSchema: z.ZodType<
|
|
|
1119
1119
|
z.ZodTypeDef,
|
|
1120
1120
|
DeploymentsResponseFormat
|
|
1121
1121
|
> = z.union([
|
|
1122
|
-
z.lazy(() => DeploymentsResponseFormat2$outboundSchema),
|
|
1123
1122
|
z.lazy(() => DeploymentsResponseFormat1$outboundSchema),
|
|
1123
|
+
z.lazy(() => DeploymentsResponseFormat2$outboundSchema),
|
|
1124
1124
|
]);
|
|
1125
1125
|
|
|
1126
1126
|
/**
|
|
@@ -1237,8 +1237,8 @@ export const DeploymentsModelParameters$inboundSchema: z.ZodType<
|
|
|
1237
1237
|
style: z.string().optional(),
|
|
1238
1238
|
responseFormat: z.nullable(
|
|
1239
1239
|
z.union([
|
|
1240
|
-
z.lazy(() => DeploymentsResponseFormat2$inboundSchema),
|
|
1241
1240
|
z.lazy(() => DeploymentsResponseFormat1$inboundSchema),
|
|
1241
|
+
z.lazy(() => DeploymentsResponseFormat2$inboundSchema),
|
|
1242
1242
|
]),
|
|
1243
1243
|
).optional(),
|
|
1244
1244
|
photoRealVersion: DeploymentsPhotoRealVersion$inboundSchema.optional(),
|
|
@@ -1266,8 +1266,8 @@ export type DeploymentsModelParameters$Outbound = {
|
|
|
1266
1266
|
quality?: string | undefined;
|
|
1267
1267
|
style?: string | undefined;
|
|
1268
1268
|
responseFormat?:
|
|
1269
|
-
| DeploymentsResponseFormat2$Outbound
|
|
1270
1269
|
| DeploymentsResponseFormat1$Outbound
|
|
1270
|
+
| DeploymentsResponseFormat2$Outbound
|
|
1271
1271
|
| null
|
|
1272
1272
|
| undefined;
|
|
1273
1273
|
photoRealVersion?: string | undefined;
|
|
@@ -1296,8 +1296,8 @@ export const DeploymentsModelParameters$outboundSchema: z.ZodType<
|
|
|
1296
1296
|
style: z.string().optional(),
|
|
1297
1297
|
responseFormat: z.nullable(
|
|
1298
1298
|
z.union([
|
|
1299
|
-
z.lazy(() => DeploymentsResponseFormat2$outboundSchema),
|
|
1300
1299
|
z.lazy(() => DeploymentsResponseFormat1$outboundSchema),
|
|
1300
|
+
z.lazy(() => DeploymentsResponseFormat2$outboundSchema),
|
|
1301
1301
|
]),
|
|
1302
1302
|
).optional(),
|
|
1303
1303
|
photoRealVersion: DeploymentsPhotoRealVersion$outboundSchema.optional(),
|