@orq-ai/node 3.8.0-rc.30 → 3.8.0-rc.31
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 +542 -542
- 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 +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/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.d.ts +8 -8
- package/models/operations/createdatasetitem.d.ts.map +1 -1
- package/models/operations/createdatasetitem.js +10 -10
- 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 +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 +12 -12
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +12 -12
- 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 +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 +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 +4 -4
- package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
- package/models/operations/listdatasetdatapoints.js +6 -6
- 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 +4 -4
- package/models/operations/retrievedatapoint.d.ts.map +1 -1
- package/models/operations/retrievedatapoint.js +6 -6
- 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 +8 -8
- package/models/operations/updatedatapoint.d.ts.map +1 -1
- package/models/operations/updatedatapoint.js +10 -10
- 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 +16 -16
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +18 -18
- 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 +22 -18
- package/src/models/operations/deploymentgetconfig.ts +26 -26
- package/src/models/operations/deploymentinvoke.ts +13 -13
- package/src/models/operations/deployments.ts +10 -10
- 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 +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 +16 -12
- 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 +10 -10
- 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 +21 -19
- 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
|
@@ -80,7 +80,7 @@ export type ResponseFormat1 = {
|
|
|
80
80
|
*
|
|
81
81
|
* 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.
|
|
82
82
|
*/
|
|
83
|
-
export type ResponseFormat =
|
|
83
|
+
export type ResponseFormat = ResponseFormat1 | ResponseFormat2;
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
86
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
@@ -182,7 +182,7 @@ export type ModelParameters = {
|
|
|
182
182
|
*
|
|
183
183
|
* 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.
|
|
184
184
|
*/
|
|
185
|
-
responseFormat?:
|
|
185
|
+
responseFormat?: ResponseFormat1 | ResponseFormat2 | null | undefined;
|
|
186
186
|
/**
|
|
187
187
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
188
188
|
*/
|
|
@@ -532,8 +532,8 @@ export type CreatePromptResponseFormat1 = {
|
|
|
532
532
|
* 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.
|
|
533
533
|
*/
|
|
534
534
|
export type CreatePromptResponseFormat =
|
|
535
|
-
|
|
|
536
|
-
|
|
|
535
|
+
| CreatePromptResponseFormat1
|
|
536
|
+
| CreatePromptResponseFormat2;
|
|
537
537
|
|
|
538
538
|
/**
|
|
539
539
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
@@ -642,8 +642,8 @@ export type CreatePromptModelParameters = {
|
|
|
642
642
|
* 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.
|
|
643
643
|
*/
|
|
644
644
|
responseFormat?:
|
|
645
|
-
| CreatePromptResponseFormat2
|
|
646
645
|
| CreatePromptResponseFormat1
|
|
646
|
+
| CreatePromptResponseFormat2
|
|
647
647
|
| null
|
|
648
648
|
| undefined;
|
|
649
649
|
/**
|
|
@@ -1202,14 +1202,14 @@ export const ResponseFormat$inboundSchema: z.ZodType<
|
|
|
1202
1202
|
z.ZodTypeDef,
|
|
1203
1203
|
unknown
|
|
1204
1204
|
> = z.union([
|
|
1205
|
-
z.lazy(() => ResponseFormat2$inboundSchema),
|
|
1206
1205
|
z.lazy(() => ResponseFormat1$inboundSchema),
|
|
1206
|
+
z.lazy(() => ResponseFormat2$inboundSchema),
|
|
1207
1207
|
]);
|
|
1208
1208
|
|
|
1209
1209
|
/** @internal */
|
|
1210
1210
|
export type ResponseFormat$Outbound =
|
|
1211
|
-
|
|
|
1212
|
-
|
|
|
1211
|
+
| ResponseFormat1$Outbound
|
|
1212
|
+
| ResponseFormat2$Outbound;
|
|
1213
1213
|
|
|
1214
1214
|
/** @internal */
|
|
1215
1215
|
export const ResponseFormat$outboundSchema: z.ZodType<
|
|
@@ -1217,8 +1217,8 @@ export const ResponseFormat$outboundSchema: z.ZodType<
|
|
|
1217
1217
|
z.ZodTypeDef,
|
|
1218
1218
|
ResponseFormat
|
|
1219
1219
|
> = z.union([
|
|
1220
|
-
z.lazy(() => ResponseFormat2$outboundSchema),
|
|
1221
1220
|
z.lazy(() => ResponseFormat1$outboundSchema),
|
|
1221
|
+
z.lazy(() => ResponseFormat2$outboundSchema),
|
|
1222
1222
|
]);
|
|
1223
1223
|
|
|
1224
1224
|
/**
|
|
@@ -1331,8 +1331,8 @@ export const ModelParameters$inboundSchema: z.ZodType<
|
|
|
1331
1331
|
style: z.string().optional(),
|
|
1332
1332
|
responseFormat: z.nullable(
|
|
1333
1333
|
z.union([
|
|
1334
|
-
z.lazy(() => ResponseFormat2$inboundSchema),
|
|
1335
1334
|
z.lazy(() => ResponseFormat1$inboundSchema),
|
|
1335
|
+
z.lazy(() => ResponseFormat2$inboundSchema),
|
|
1336
1336
|
]),
|
|
1337
1337
|
).optional(),
|
|
1338
1338
|
photoRealVersion: PhotoRealVersion$inboundSchema.optional(),
|
|
@@ -1360,8 +1360,8 @@ export type ModelParameters$Outbound = {
|
|
|
1360
1360
|
quality?: string | undefined;
|
|
1361
1361
|
style?: string | undefined;
|
|
1362
1362
|
responseFormat?:
|
|
1363
|
-
| ResponseFormat2$Outbound
|
|
1364
1363
|
| ResponseFormat1$Outbound
|
|
1364
|
+
| ResponseFormat2$Outbound
|
|
1365
1365
|
| null
|
|
1366
1366
|
| undefined;
|
|
1367
1367
|
photoRealVersion?: string | undefined;
|
|
@@ -1390,8 +1390,8 @@ export const ModelParameters$outboundSchema: z.ZodType<
|
|
|
1390
1390
|
style: z.string().optional(),
|
|
1391
1391
|
responseFormat: z.nullable(
|
|
1392
1392
|
z.union([
|
|
1393
|
-
z.lazy(() => ResponseFormat2$outboundSchema),
|
|
1394
1393
|
z.lazy(() => ResponseFormat1$outboundSchema),
|
|
1394
|
+
z.lazy(() => ResponseFormat2$outboundSchema),
|
|
1395
1395
|
]),
|
|
1396
1396
|
).optional(),
|
|
1397
1397
|
photoRealVersion: PhotoRealVersion$outboundSchema.optional(),
|
|
@@ -2747,14 +2747,14 @@ export const CreatePromptResponseFormat$inboundSchema: z.ZodType<
|
|
|
2747
2747
|
z.ZodTypeDef,
|
|
2748
2748
|
unknown
|
|
2749
2749
|
> = z.union([
|
|
2750
|
-
z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
|
|
2751
2750
|
z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
|
|
2751
|
+
z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
|
|
2752
2752
|
]);
|
|
2753
2753
|
|
|
2754
2754
|
/** @internal */
|
|
2755
2755
|
export type CreatePromptResponseFormat$Outbound =
|
|
2756
|
-
|
|
|
2757
|
-
|
|
|
2756
|
+
| CreatePromptResponseFormat1$Outbound
|
|
2757
|
+
| CreatePromptResponseFormat2$Outbound;
|
|
2758
2758
|
|
|
2759
2759
|
/** @internal */
|
|
2760
2760
|
export const CreatePromptResponseFormat$outboundSchema: z.ZodType<
|
|
@@ -2762,8 +2762,8 @@ export const CreatePromptResponseFormat$outboundSchema: z.ZodType<
|
|
|
2762
2762
|
z.ZodTypeDef,
|
|
2763
2763
|
CreatePromptResponseFormat
|
|
2764
2764
|
> = z.union([
|
|
2765
|
-
z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
|
|
2766
2765
|
z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
|
|
2766
|
+
z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
|
|
2767
2767
|
]);
|
|
2768
2768
|
|
|
2769
2769
|
/**
|
|
@@ -2880,8 +2880,8 @@ export const CreatePromptModelParameters$inboundSchema: z.ZodType<
|
|
|
2880
2880
|
style: z.string().optional(),
|
|
2881
2881
|
responseFormat: z.nullable(
|
|
2882
2882
|
z.union([
|
|
2883
|
-
z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
|
|
2884
2883
|
z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
|
|
2884
|
+
z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
|
|
2885
2885
|
]),
|
|
2886
2886
|
).optional(),
|
|
2887
2887
|
photoRealVersion: CreatePromptPhotoRealVersion$inboundSchema.optional(),
|
|
@@ -2909,8 +2909,8 @@ export type CreatePromptModelParameters$Outbound = {
|
|
|
2909
2909
|
quality?: string | undefined;
|
|
2910
2910
|
style?: string | undefined;
|
|
2911
2911
|
responseFormat?:
|
|
2912
|
-
| CreatePromptResponseFormat2$Outbound
|
|
2913
2912
|
| CreatePromptResponseFormat1$Outbound
|
|
2913
|
+
| CreatePromptResponseFormat2$Outbound
|
|
2914
2914
|
| null
|
|
2915
2915
|
| undefined;
|
|
2916
2916
|
photoRealVersion?: string | undefined;
|
|
@@ -2939,8 +2939,8 @@ export const CreatePromptModelParameters$outboundSchema: z.ZodType<
|
|
|
2939
2939
|
style: z.string().optional(),
|
|
2940
2940
|
responseFormat: z.nullable(
|
|
2941
2941
|
z.union([
|
|
2942
|
-
z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
|
|
2943
2942
|
z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
|
|
2943
|
+
z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
|
|
2944
2944
|
]),
|
|
2945
2945
|
).optional(),
|
|
2946
2946
|
photoRealVersion: CreatePromptPhotoRealVersion$outboundSchema.optional(),
|
|
@@ -480,10 +480,10 @@ export type DeploymentCreateMetricMessagesDeveloperMessage = {
|
|
|
480
480
|
};
|
|
481
481
|
|
|
482
482
|
export type DeploymentCreateMetricMessages =
|
|
483
|
+
| DeploymentCreateMetricMessagesToolMessage
|
|
483
484
|
| DeploymentCreateMetricMessagesDeveloperMessage
|
|
484
485
|
| DeploymentCreateMetricMessagesSystemMessage
|
|
485
486
|
| DeploymentCreateMetricMessagesUserMessage
|
|
486
|
-
| DeploymentCreateMetricMessagesToolMessage
|
|
487
487
|
| DeploymentCreateMetricMessagesAssistantMessage;
|
|
488
488
|
|
|
489
489
|
/**
|
|
@@ -929,10 +929,10 @@ export type ChoicesDeveloperMessage = {
|
|
|
929
929
|
};
|
|
930
930
|
|
|
931
931
|
export type Choices =
|
|
932
|
+
| ChoicesToolMessage
|
|
932
933
|
| ChoicesDeveloperMessage
|
|
933
934
|
| ChoicesSystemMessage
|
|
934
935
|
| ChoicesUserMessage
|
|
935
|
-
| ChoicesToolMessage
|
|
936
936
|
| ChoicesAssistantMessage;
|
|
937
937
|
|
|
938
938
|
/**
|
|
@@ -963,10 +963,10 @@ export type DeploymentCreateMetricRequestBody = {
|
|
|
963
963
|
*/
|
|
964
964
|
messages?:
|
|
965
965
|
| Array<
|
|
966
|
+
| DeploymentCreateMetricMessagesToolMessage
|
|
966
967
|
| DeploymentCreateMetricMessagesDeveloperMessage
|
|
967
968
|
| DeploymentCreateMetricMessagesSystemMessage
|
|
968
969
|
| DeploymentCreateMetricMessagesUserMessage
|
|
969
|
-
| DeploymentCreateMetricMessagesToolMessage
|
|
970
970
|
| DeploymentCreateMetricMessagesAssistantMessage
|
|
971
971
|
>
|
|
972
972
|
| undefined;
|
|
@@ -975,10 +975,10 @@ export type DeploymentCreateMetricRequestBody = {
|
|
|
975
975
|
*/
|
|
976
976
|
choices?:
|
|
977
977
|
| Array<
|
|
978
|
+
| ChoicesToolMessage
|
|
978
979
|
| ChoicesDeveloperMessage
|
|
979
980
|
| ChoicesSystemMessage
|
|
980
981
|
| ChoicesUserMessage
|
|
981
|
-
| ChoicesToolMessage
|
|
982
982
|
| ChoicesAssistantMessage
|
|
983
983
|
>
|
|
984
984
|
| undefined;
|
|
@@ -3065,19 +3065,19 @@ export const DeploymentCreateMetricMessages$inboundSchema: z.ZodType<
|
|
|
3065
3065
|
z.ZodTypeDef,
|
|
3066
3066
|
unknown
|
|
3067
3067
|
> = z.union([
|
|
3068
|
+
z.lazy(() => DeploymentCreateMetricMessagesToolMessage$inboundSchema),
|
|
3068
3069
|
z.lazy(() => DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema),
|
|
3069
3070
|
z.lazy(() => DeploymentCreateMetricMessagesSystemMessage$inboundSchema),
|
|
3070
3071
|
z.lazy(() => DeploymentCreateMetricMessagesUserMessage$inboundSchema),
|
|
3071
|
-
z.lazy(() => DeploymentCreateMetricMessagesToolMessage$inboundSchema),
|
|
3072
3072
|
z.lazy(() => DeploymentCreateMetricMessagesAssistantMessage$inboundSchema),
|
|
3073
3073
|
]);
|
|
3074
3074
|
|
|
3075
3075
|
/** @internal */
|
|
3076
3076
|
export type DeploymentCreateMetricMessages$Outbound =
|
|
3077
|
+
| DeploymentCreateMetricMessagesToolMessage$Outbound
|
|
3077
3078
|
| DeploymentCreateMetricMessagesDeveloperMessage$Outbound
|
|
3078
3079
|
| DeploymentCreateMetricMessagesSystemMessage$Outbound
|
|
3079
3080
|
| DeploymentCreateMetricMessagesUserMessage$Outbound
|
|
3080
|
-
| DeploymentCreateMetricMessagesToolMessage$Outbound
|
|
3081
3081
|
| DeploymentCreateMetricMessagesAssistantMessage$Outbound;
|
|
3082
3082
|
|
|
3083
3083
|
/** @internal */
|
|
@@ -3086,10 +3086,10 @@ export const DeploymentCreateMetricMessages$outboundSchema: z.ZodType<
|
|
|
3086
3086
|
z.ZodTypeDef,
|
|
3087
3087
|
DeploymentCreateMetricMessages
|
|
3088
3088
|
> = z.union([
|
|
3089
|
+
z.lazy(() => DeploymentCreateMetricMessagesToolMessage$outboundSchema),
|
|
3089
3090
|
z.lazy(() => DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema),
|
|
3090
3091
|
z.lazy(() => DeploymentCreateMetricMessagesSystemMessage$outboundSchema),
|
|
3091
3092
|
z.lazy(() => DeploymentCreateMetricMessagesUserMessage$outboundSchema),
|
|
3092
|
-
z.lazy(() => DeploymentCreateMetricMessagesToolMessage$outboundSchema),
|
|
3093
3093
|
z.lazy(() => DeploymentCreateMetricMessagesAssistantMessage$outboundSchema),
|
|
3094
3094
|
]);
|
|
3095
3095
|
|
|
@@ -5076,19 +5076,19 @@ export function choicesDeveloperMessageFromJSON(
|
|
|
5076
5076
|
/** @internal */
|
|
5077
5077
|
export const Choices$inboundSchema: z.ZodType<Choices, z.ZodTypeDef, unknown> =
|
|
5078
5078
|
z.union([
|
|
5079
|
+
z.lazy(() => ChoicesToolMessage$inboundSchema),
|
|
5079
5080
|
z.lazy(() => ChoicesDeveloperMessage$inboundSchema),
|
|
5080
5081
|
z.lazy(() => ChoicesSystemMessage$inboundSchema),
|
|
5081
5082
|
z.lazy(() => ChoicesUserMessage$inboundSchema),
|
|
5082
|
-
z.lazy(() => ChoicesToolMessage$inboundSchema),
|
|
5083
5083
|
z.lazy(() => ChoicesAssistantMessage$inboundSchema),
|
|
5084
5084
|
]);
|
|
5085
5085
|
|
|
5086
5086
|
/** @internal */
|
|
5087
5087
|
export type Choices$Outbound =
|
|
5088
|
+
| ChoicesToolMessage$Outbound
|
|
5088
5089
|
| ChoicesDeveloperMessage$Outbound
|
|
5089
5090
|
| ChoicesSystemMessage$Outbound
|
|
5090
5091
|
| ChoicesUserMessage$Outbound
|
|
5091
|
-
| ChoicesToolMessage$Outbound
|
|
5092
5092
|
| ChoicesAssistantMessage$Outbound;
|
|
5093
5093
|
|
|
5094
5094
|
/** @internal */
|
|
@@ -5097,10 +5097,10 @@ export const Choices$outboundSchema: z.ZodType<
|
|
|
5097
5097
|
z.ZodTypeDef,
|
|
5098
5098
|
Choices
|
|
5099
5099
|
> = z.union([
|
|
5100
|
+
z.lazy(() => ChoicesToolMessage$outboundSchema),
|
|
5100
5101
|
z.lazy(() => ChoicesDeveloperMessage$outboundSchema),
|
|
5101
5102
|
z.lazy(() => ChoicesSystemMessage$outboundSchema),
|
|
5102
5103
|
z.lazy(() => ChoicesUserMessage$outboundSchema),
|
|
5103
|
-
z.lazy(() => ChoicesToolMessage$outboundSchema),
|
|
5104
5104
|
z.lazy(() => ChoicesAssistantMessage$outboundSchema),
|
|
5105
5105
|
]);
|
|
5106
5106
|
|
|
@@ -5192,12 +5192,14 @@ export const DeploymentCreateMetricRequestBody$inboundSchema: z.ZodType<
|
|
|
5192
5192
|
performance: z.lazy(() => Performance$inboundSchema).optional(),
|
|
5193
5193
|
messages: z.array(
|
|
5194
5194
|
z.union([
|
|
5195
|
+
z.lazy(() => DeploymentCreateMetricMessagesToolMessage$inboundSchema),
|
|
5195
5196
|
z.lazy(() =>
|
|
5196
5197
|
DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema
|
|
5197
5198
|
),
|
|
5198
|
-
z.lazy(() =>
|
|
5199
|
+
z.lazy(() =>
|
|
5200
|
+
DeploymentCreateMetricMessagesSystemMessage$inboundSchema
|
|
5201
|
+
),
|
|
5199
5202
|
z.lazy(() => DeploymentCreateMetricMessagesUserMessage$inboundSchema),
|
|
5200
|
-
z.lazy(() => DeploymentCreateMetricMessagesToolMessage$inboundSchema),
|
|
5201
5203
|
z.lazy(() =>
|
|
5202
5204
|
DeploymentCreateMetricMessagesAssistantMessage$inboundSchema
|
|
5203
5205
|
),
|
|
@@ -5205,10 +5207,10 @@ export const DeploymentCreateMetricRequestBody$inboundSchema: z.ZodType<
|
|
|
5205
5207
|
).optional(),
|
|
5206
5208
|
choices: z.array(
|
|
5207
5209
|
z.union([
|
|
5210
|
+
z.lazy(() => ChoicesToolMessage$inboundSchema),
|
|
5208
5211
|
z.lazy(() => ChoicesDeveloperMessage$inboundSchema),
|
|
5209
5212
|
z.lazy(() => ChoicesSystemMessage$inboundSchema),
|
|
5210
5213
|
z.lazy(() => ChoicesUserMessage$inboundSchema),
|
|
5211
|
-
z.lazy(() => ChoicesToolMessage$inboundSchema),
|
|
5212
5214
|
z.lazy(() => ChoicesAssistantMessage$inboundSchema),
|
|
5213
5215
|
]),
|
|
5214
5216
|
).optional(),
|
|
@@ -5222,19 +5224,19 @@ export type DeploymentCreateMetricRequestBody$Outbound = {
|
|
|
5222
5224
|
performance?: Performance$Outbound | undefined;
|
|
5223
5225
|
messages?:
|
|
5224
5226
|
| Array<
|
|
5227
|
+
| DeploymentCreateMetricMessagesToolMessage$Outbound
|
|
5225
5228
|
| DeploymentCreateMetricMessagesDeveloperMessage$Outbound
|
|
5226
5229
|
| DeploymentCreateMetricMessagesSystemMessage$Outbound
|
|
5227
5230
|
| DeploymentCreateMetricMessagesUserMessage$Outbound
|
|
5228
|
-
| DeploymentCreateMetricMessagesToolMessage$Outbound
|
|
5229
5231
|
| DeploymentCreateMetricMessagesAssistantMessage$Outbound
|
|
5230
5232
|
>
|
|
5231
5233
|
| undefined;
|
|
5232
5234
|
choices?:
|
|
5233
5235
|
| Array<
|
|
5236
|
+
| ChoicesToolMessage$Outbound
|
|
5234
5237
|
| ChoicesDeveloperMessage$Outbound
|
|
5235
5238
|
| ChoicesSystemMessage$Outbound
|
|
5236
5239
|
| ChoicesUserMessage$Outbound
|
|
5237
|
-
| ChoicesToolMessage$Outbound
|
|
5238
5240
|
| ChoicesAssistantMessage$Outbound
|
|
5239
5241
|
>
|
|
5240
5242
|
| undefined;
|
|
@@ -5252,12 +5254,14 @@ export const DeploymentCreateMetricRequestBody$outboundSchema: z.ZodType<
|
|
|
5252
5254
|
performance: z.lazy(() => Performance$outboundSchema).optional(),
|
|
5253
5255
|
messages: z.array(
|
|
5254
5256
|
z.union([
|
|
5257
|
+
z.lazy(() => DeploymentCreateMetricMessagesToolMessage$outboundSchema),
|
|
5255
5258
|
z.lazy(() =>
|
|
5256
5259
|
DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema
|
|
5257
5260
|
),
|
|
5258
|
-
z.lazy(() =>
|
|
5261
|
+
z.lazy(() =>
|
|
5262
|
+
DeploymentCreateMetricMessagesSystemMessage$outboundSchema
|
|
5263
|
+
),
|
|
5259
5264
|
z.lazy(() => DeploymentCreateMetricMessagesUserMessage$outboundSchema),
|
|
5260
|
-
z.lazy(() => DeploymentCreateMetricMessagesToolMessage$outboundSchema),
|
|
5261
5265
|
z.lazy(() =>
|
|
5262
5266
|
DeploymentCreateMetricMessagesAssistantMessage$outboundSchema
|
|
5263
5267
|
),
|
|
@@ -5265,10 +5269,10 @@ export const DeploymentCreateMetricRequestBody$outboundSchema: z.ZodType<
|
|
|
5265
5269
|
).optional(),
|
|
5266
5270
|
choices: z.array(
|
|
5267
5271
|
z.union([
|
|
5272
|
+
z.lazy(() => ChoicesToolMessage$outboundSchema),
|
|
5268
5273
|
z.lazy(() => ChoicesDeveloperMessage$outboundSchema),
|
|
5269
5274
|
z.lazy(() => ChoicesSystemMessage$outboundSchema),
|
|
5270
5275
|
z.lazy(() => ChoicesUserMessage$outboundSchema),
|
|
5271
|
-
z.lazy(() => ChoicesToolMessage$outboundSchema),
|
|
5272
5276
|
z.lazy(() => ChoicesAssistantMessage$outboundSchema),
|
|
5273
5277
|
]),
|
|
5274
5278
|
).optional(),
|
|
@@ -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;
|
|
@@ -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(),
|
|
@@ -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) => {
|