@orq-ai/node 3.10.16 → 3.10.19
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 +418 -188
- package/bin/mcp-server.js.map +35 -35
- package/examples/contactsCreate.example.ts +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- 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/createeval.js +16 -16
- package/models/operations/createprompt.d.ts +118 -24
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +130 -30
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +59 -12
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +73 -24
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deployments.d.ts +59 -12
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +66 -16
- package/models/operations/deployments.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 +51 -4
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +53 -3
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getevals.js +28 -28
- package/models/operations/getoneprompt.d.ts +51 -4
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +53 -3
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +51 -4
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +53 -3
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/listcontacts.js +2 -2
- 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 +51 -4
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +52 -3
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- 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.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateprompt.d.ts +102 -8
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +105 -5
- package/models/operations/updateprompt.js.map +1 -1
- package/package.json +1 -1
- package/packages/orq-rc/docs/sdks/contacts/README.md +1 -1
- package/packages/orq-rc/docs/sdks/datasets/README.md +1 -1
- package/packages/orq-rc/docs/sdks/knowledge/README.md +1 -1
- package/packages/orq-rc/examples/contactsCreate.example.ts +1 -1
- package/packages/orq-rc/examples/package-lock.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/funcs/contactsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +5 -4
- package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +4 -4
- package/packages/orq-rc/src/lib/config.ts +3 -3
- 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/mcp-server/tools/contactsCreate.ts +1 -1
- package/packages/orq-rc/src/models/operations/createchunk.ts +54 -44
- 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 +46 -63
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/createprompt.ts +246 -40
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +121 -20
- package/packages/orq-rc/src/models/operations/deployments.ts +115 -19
- 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 +100 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +100 -2
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +100 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
- 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 +101 -2
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
- 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 +2 -2
- 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 +16 -16
- package/packages/orq-rc/src/models/operations/updateprompt.ts +210 -4
- package/packages/orq-rc/src/sdk/contacts.ts +1 -1
- package/packages/orq-rc/src/sdk/datasets.ts +1 -1
- package/packages/orq-rc/src/sdk/knowledge.ts +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/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/createeval.ts +16 -16
- package/src/models/operations/createprompt.ts +246 -40
- package/src/models/operations/deploymentgetconfig.ts +121 -20
- package/src/models/operations/deployments.ts +115 -19
- 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 +100 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/getoneprompt.ts +100 -2
- package/src/models/operations/getpromptversion.ts +100 -2
- package/src/models/operations/listcontacts.ts +2 -2
- 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 +101 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- 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/updatecontact.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/updateeval.ts +16 -16
- package/src/models/operations/updateprompt.ts +210 -4
|
@@ -42,6 +42,17 @@ export const CreatePromptFormat = {
|
|
|
42
42
|
*/
|
|
43
43
|
export type CreatePromptFormat = ClosedEnum<typeof CreatePromptFormat>;
|
|
44
44
|
|
|
45
|
+
export const CreatePromptResponseFormatPromptsType = {
|
|
46
|
+
Text: "text",
|
|
47
|
+
} as const;
|
|
48
|
+
export type CreatePromptResponseFormatPromptsType = ClosedEnum<
|
|
49
|
+
typeof CreatePromptResponseFormatPromptsType
|
|
50
|
+
>;
|
|
51
|
+
|
|
52
|
+
export type ResponseFormat3 = {
|
|
53
|
+
type: CreatePromptResponseFormatPromptsType;
|
|
54
|
+
};
|
|
55
|
+
|
|
45
56
|
export const CreatePromptResponseFormatType = {
|
|
46
57
|
JsonObject: "json_object",
|
|
47
58
|
} as const;
|
|
@@ -80,7 +91,10 @@ export type ResponseFormat1 = {
|
|
|
80
91
|
*
|
|
81
92
|
* 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
93
|
*/
|
|
83
|
-
export type ResponseFormat =
|
|
94
|
+
export type ResponseFormat =
|
|
95
|
+
| ResponseFormat1
|
|
96
|
+
| ResponseFormat2
|
|
97
|
+
| ResponseFormat3;
|
|
84
98
|
|
|
85
99
|
/**
|
|
86
100
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
@@ -196,7 +210,12 @@ export type ModelParameters = {
|
|
|
196
210
|
*
|
|
197
211
|
* 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.
|
|
198
212
|
*/
|
|
199
|
-
responseFormat?:
|
|
213
|
+
responseFormat?:
|
|
214
|
+
| ResponseFormat1
|
|
215
|
+
| ResponseFormat2
|
|
216
|
+
| ResponseFormat3
|
|
217
|
+
| null
|
|
218
|
+
| undefined;
|
|
200
219
|
/**
|
|
201
220
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
202
221
|
*/
|
|
@@ -511,22 +530,34 @@ export type CreatePromptPromptsFormat = ClosedEnum<
|
|
|
511
530
|
typeof CreatePromptPromptsFormat
|
|
512
531
|
>;
|
|
513
532
|
|
|
514
|
-
export const
|
|
533
|
+
export const CreatePromptResponseFormatPromptsResponse200ApplicationJSONType = {
|
|
534
|
+
Text: "text",
|
|
535
|
+
} as const;
|
|
536
|
+
export type CreatePromptResponseFormatPromptsResponse200ApplicationJSONType =
|
|
537
|
+
ClosedEnum<
|
|
538
|
+
typeof CreatePromptResponseFormatPromptsResponse200ApplicationJSONType
|
|
539
|
+
>;
|
|
540
|
+
|
|
541
|
+
export type CreatePromptResponseFormat3 = {
|
|
542
|
+
type: CreatePromptResponseFormatPromptsResponse200ApplicationJSONType;
|
|
543
|
+
};
|
|
544
|
+
|
|
545
|
+
export const CreatePromptResponseFormatPromptsResponse200Type = {
|
|
515
546
|
JsonObject: "json_object",
|
|
516
547
|
} as const;
|
|
517
|
-
export type
|
|
518
|
-
typeof
|
|
548
|
+
export type CreatePromptResponseFormatPromptsResponse200Type = ClosedEnum<
|
|
549
|
+
typeof CreatePromptResponseFormatPromptsResponse200Type
|
|
519
550
|
>;
|
|
520
551
|
|
|
521
552
|
export type CreatePromptResponseFormat2 = {
|
|
522
|
-
type:
|
|
553
|
+
type: CreatePromptResponseFormatPromptsResponse200Type;
|
|
523
554
|
};
|
|
524
555
|
|
|
525
|
-
export const
|
|
556
|
+
export const CreatePromptResponseFormatPromptsResponseType = {
|
|
526
557
|
JsonSchema: "json_schema",
|
|
527
558
|
} as const;
|
|
528
|
-
export type
|
|
529
|
-
typeof
|
|
559
|
+
export type CreatePromptResponseFormatPromptsResponseType = ClosedEnum<
|
|
560
|
+
typeof CreatePromptResponseFormatPromptsResponseType
|
|
530
561
|
>;
|
|
531
562
|
|
|
532
563
|
export type CreatePromptResponseFormatJsonSchema = {
|
|
@@ -536,7 +567,7 @@ export type CreatePromptResponseFormatJsonSchema = {
|
|
|
536
567
|
};
|
|
537
568
|
|
|
538
569
|
export type CreatePromptResponseFormat1 = {
|
|
539
|
-
type:
|
|
570
|
+
type: CreatePromptResponseFormatPromptsResponseType;
|
|
540
571
|
jsonSchema: CreatePromptResponseFormatJsonSchema;
|
|
541
572
|
};
|
|
542
573
|
|
|
@@ -553,7 +584,8 @@ export type CreatePromptResponseFormat1 = {
|
|
|
553
584
|
*/
|
|
554
585
|
export type CreatePromptResponseFormat =
|
|
555
586
|
| CreatePromptResponseFormat1
|
|
556
|
-
| CreatePromptResponseFormat2
|
|
587
|
+
| CreatePromptResponseFormat2
|
|
588
|
+
| CreatePromptResponseFormat3;
|
|
557
589
|
|
|
558
590
|
/**
|
|
559
591
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
@@ -678,6 +710,7 @@ export type CreatePromptModelParameters = {
|
|
|
678
710
|
responseFormat?:
|
|
679
711
|
| CreatePromptResponseFormat1
|
|
680
712
|
| CreatePromptResponseFormat2
|
|
713
|
+
| CreatePromptResponseFormat3
|
|
681
714
|
| null
|
|
682
715
|
| undefined;
|
|
683
716
|
/**
|
|
@@ -1023,6 +1056,82 @@ export namespace CreatePromptFormat$ {
|
|
|
1023
1056
|
export const outboundSchema = CreatePromptFormat$outboundSchema;
|
|
1024
1057
|
}
|
|
1025
1058
|
|
|
1059
|
+
/** @internal */
|
|
1060
|
+
export const CreatePromptResponseFormatPromptsType$inboundSchema:
|
|
1061
|
+
z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType> = z.nativeEnum(
|
|
1062
|
+
CreatePromptResponseFormatPromptsType,
|
|
1063
|
+
);
|
|
1064
|
+
|
|
1065
|
+
/** @internal */
|
|
1066
|
+
export const CreatePromptResponseFormatPromptsType$outboundSchema:
|
|
1067
|
+
z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType> =
|
|
1068
|
+
CreatePromptResponseFormatPromptsType$inboundSchema;
|
|
1069
|
+
|
|
1070
|
+
/**
|
|
1071
|
+
* @internal
|
|
1072
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1073
|
+
*/
|
|
1074
|
+
export namespace CreatePromptResponseFormatPromptsType$ {
|
|
1075
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsType$inboundSchema` instead. */
|
|
1076
|
+
export const inboundSchema =
|
|
1077
|
+
CreatePromptResponseFormatPromptsType$inboundSchema;
|
|
1078
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsType$outboundSchema` instead. */
|
|
1079
|
+
export const outboundSchema =
|
|
1080
|
+
CreatePromptResponseFormatPromptsType$outboundSchema;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
/** @internal */
|
|
1084
|
+
export const ResponseFormat3$inboundSchema: z.ZodType<
|
|
1085
|
+
ResponseFormat3,
|
|
1086
|
+
z.ZodTypeDef,
|
|
1087
|
+
unknown
|
|
1088
|
+
> = z.object({
|
|
1089
|
+
type: CreatePromptResponseFormatPromptsType$inboundSchema,
|
|
1090
|
+
});
|
|
1091
|
+
|
|
1092
|
+
/** @internal */
|
|
1093
|
+
export type ResponseFormat3$Outbound = {
|
|
1094
|
+
type: string;
|
|
1095
|
+
};
|
|
1096
|
+
|
|
1097
|
+
/** @internal */
|
|
1098
|
+
export const ResponseFormat3$outboundSchema: z.ZodType<
|
|
1099
|
+
ResponseFormat3$Outbound,
|
|
1100
|
+
z.ZodTypeDef,
|
|
1101
|
+
ResponseFormat3
|
|
1102
|
+
> = z.object({
|
|
1103
|
+
type: CreatePromptResponseFormatPromptsType$outboundSchema,
|
|
1104
|
+
});
|
|
1105
|
+
|
|
1106
|
+
/**
|
|
1107
|
+
* @internal
|
|
1108
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1109
|
+
*/
|
|
1110
|
+
export namespace ResponseFormat3$ {
|
|
1111
|
+
/** @deprecated use `ResponseFormat3$inboundSchema` instead. */
|
|
1112
|
+
export const inboundSchema = ResponseFormat3$inboundSchema;
|
|
1113
|
+
/** @deprecated use `ResponseFormat3$outboundSchema` instead. */
|
|
1114
|
+
export const outboundSchema = ResponseFormat3$outboundSchema;
|
|
1115
|
+
/** @deprecated use `ResponseFormat3$Outbound` instead. */
|
|
1116
|
+
export type Outbound = ResponseFormat3$Outbound;
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
export function responseFormat3ToJSON(
|
|
1120
|
+
responseFormat3: ResponseFormat3,
|
|
1121
|
+
): string {
|
|
1122
|
+
return JSON.stringify(ResponseFormat3$outboundSchema.parse(responseFormat3));
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
export function responseFormat3FromJSON(
|
|
1126
|
+
jsonString: string,
|
|
1127
|
+
): SafeParseResult<ResponseFormat3, SDKValidationError> {
|
|
1128
|
+
return safeParse(
|
|
1129
|
+
jsonString,
|
|
1130
|
+
(x) => ResponseFormat3$inboundSchema.parse(JSON.parse(x)),
|
|
1131
|
+
`Failed to parse 'ResponseFormat3' from JSON`,
|
|
1132
|
+
);
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1026
1135
|
/** @internal */
|
|
1027
1136
|
export const CreatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
|
|
1028
1137
|
typeof CreatePromptResponseFormatType
|
|
@@ -1244,12 +1353,14 @@ export const ResponseFormat$inboundSchema: z.ZodType<
|
|
|
1244
1353
|
> = z.union([
|
|
1245
1354
|
z.lazy(() => ResponseFormat1$inboundSchema),
|
|
1246
1355
|
z.lazy(() => ResponseFormat2$inboundSchema),
|
|
1356
|
+
z.lazy(() => ResponseFormat3$inboundSchema),
|
|
1247
1357
|
]);
|
|
1248
1358
|
|
|
1249
1359
|
/** @internal */
|
|
1250
1360
|
export type ResponseFormat$Outbound =
|
|
1251
1361
|
| ResponseFormat1$Outbound
|
|
1252
|
-
| ResponseFormat2$Outbound
|
|
1362
|
+
| ResponseFormat2$Outbound
|
|
1363
|
+
| ResponseFormat3$Outbound;
|
|
1253
1364
|
|
|
1254
1365
|
/** @internal */
|
|
1255
1366
|
export const ResponseFormat$outboundSchema: z.ZodType<
|
|
@@ -1259,6 +1370,7 @@ export const ResponseFormat$outboundSchema: z.ZodType<
|
|
|
1259
1370
|
> = z.union([
|
|
1260
1371
|
z.lazy(() => ResponseFormat1$outboundSchema),
|
|
1261
1372
|
z.lazy(() => ResponseFormat2$outboundSchema),
|
|
1373
|
+
z.lazy(() => ResponseFormat3$outboundSchema),
|
|
1262
1374
|
]);
|
|
1263
1375
|
|
|
1264
1376
|
/**
|
|
@@ -1392,6 +1504,7 @@ export const ModelParameters$inboundSchema: z.ZodType<
|
|
|
1392
1504
|
z.union([
|
|
1393
1505
|
z.lazy(() => ResponseFormat1$inboundSchema),
|
|
1394
1506
|
z.lazy(() => ResponseFormat2$inboundSchema),
|
|
1507
|
+
z.lazy(() => ResponseFormat3$inboundSchema),
|
|
1395
1508
|
]),
|
|
1396
1509
|
).optional(),
|
|
1397
1510
|
photoRealVersion: PhotoRealVersion$inboundSchema.optional(),
|
|
@@ -1422,6 +1535,7 @@ export type ModelParameters$Outbound = {
|
|
|
1422
1535
|
responseFormat?:
|
|
1423
1536
|
| ResponseFormat1$Outbound
|
|
1424
1537
|
| ResponseFormat2$Outbound
|
|
1538
|
+
| ResponseFormat3$Outbound
|
|
1425
1539
|
| null
|
|
1426
1540
|
| undefined;
|
|
1427
1541
|
photoRealVersion?: string | undefined;
|
|
@@ -1453,6 +1567,7 @@ export const ModelParameters$outboundSchema: z.ZodType<
|
|
|
1453
1567
|
z.union([
|
|
1454
1568
|
z.lazy(() => ResponseFormat1$outboundSchema),
|
|
1455
1569
|
z.lazy(() => ResponseFormat2$outboundSchema),
|
|
1570
|
+
z.lazy(() => ResponseFormat3$outboundSchema),
|
|
1456
1571
|
]),
|
|
1457
1572
|
).optional(),
|
|
1458
1573
|
photoRealVersion: PhotoRealVersion$outboundSchema.optional(),
|
|
@@ -2569,26 +2684,112 @@ export namespace CreatePromptPromptsFormat$ {
|
|
|
2569
2684
|
}
|
|
2570
2685
|
|
|
2571
2686
|
/** @internal */
|
|
2572
|
-
export const
|
|
2573
|
-
z.ZodNativeEnum<
|
|
2574
|
-
|
|
2687
|
+
export const CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema:
|
|
2688
|
+
z.ZodNativeEnum<
|
|
2689
|
+
typeof CreatePromptResponseFormatPromptsResponse200ApplicationJSONType
|
|
2690
|
+
> = z.nativeEnum(
|
|
2691
|
+
CreatePromptResponseFormatPromptsResponse200ApplicationJSONType,
|
|
2692
|
+
);
|
|
2575
2693
|
|
|
2576
2694
|
/** @internal */
|
|
2577
|
-
export const
|
|
2578
|
-
z.ZodNativeEnum<
|
|
2579
|
-
|
|
2695
|
+
export const CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema:
|
|
2696
|
+
z.ZodNativeEnum<
|
|
2697
|
+
typeof CreatePromptResponseFormatPromptsResponse200ApplicationJSONType
|
|
2698
|
+
> =
|
|
2699
|
+
CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema;
|
|
2580
2700
|
|
|
2581
2701
|
/**
|
|
2582
2702
|
* @internal
|
|
2583
2703
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2584
2704
|
*/
|
|
2585
|
-
export namespace
|
|
2586
|
-
/** @deprecated use `
|
|
2705
|
+
export namespace CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$ {
|
|
2706
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema` instead. */
|
|
2587
2707
|
export const inboundSchema =
|
|
2588
|
-
|
|
2589
|
-
/** @deprecated use `
|
|
2708
|
+
CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema;
|
|
2709
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema` instead. */
|
|
2590
2710
|
export const outboundSchema =
|
|
2591
|
-
|
|
2711
|
+
CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema;
|
|
2712
|
+
}
|
|
2713
|
+
|
|
2714
|
+
/** @internal */
|
|
2715
|
+
export const CreatePromptResponseFormat3$inboundSchema: z.ZodType<
|
|
2716
|
+
CreatePromptResponseFormat3,
|
|
2717
|
+
z.ZodTypeDef,
|
|
2718
|
+
unknown
|
|
2719
|
+
> = z.object({
|
|
2720
|
+
type:
|
|
2721
|
+
CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema,
|
|
2722
|
+
});
|
|
2723
|
+
|
|
2724
|
+
/** @internal */
|
|
2725
|
+
export type CreatePromptResponseFormat3$Outbound = {
|
|
2726
|
+
type: string;
|
|
2727
|
+
};
|
|
2728
|
+
|
|
2729
|
+
/** @internal */
|
|
2730
|
+
export const CreatePromptResponseFormat3$outboundSchema: z.ZodType<
|
|
2731
|
+
CreatePromptResponseFormat3$Outbound,
|
|
2732
|
+
z.ZodTypeDef,
|
|
2733
|
+
CreatePromptResponseFormat3
|
|
2734
|
+
> = z.object({
|
|
2735
|
+
type:
|
|
2736
|
+
CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema,
|
|
2737
|
+
});
|
|
2738
|
+
|
|
2739
|
+
/**
|
|
2740
|
+
* @internal
|
|
2741
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2742
|
+
*/
|
|
2743
|
+
export namespace CreatePromptResponseFormat3$ {
|
|
2744
|
+
/** @deprecated use `CreatePromptResponseFormat3$inboundSchema` instead. */
|
|
2745
|
+
export const inboundSchema = CreatePromptResponseFormat3$inboundSchema;
|
|
2746
|
+
/** @deprecated use `CreatePromptResponseFormat3$outboundSchema` instead. */
|
|
2747
|
+
export const outboundSchema = CreatePromptResponseFormat3$outboundSchema;
|
|
2748
|
+
/** @deprecated use `CreatePromptResponseFormat3$Outbound` instead. */
|
|
2749
|
+
export type Outbound = CreatePromptResponseFormat3$Outbound;
|
|
2750
|
+
}
|
|
2751
|
+
|
|
2752
|
+
export function createPromptResponseFormat3ToJSON(
|
|
2753
|
+
createPromptResponseFormat3: CreatePromptResponseFormat3,
|
|
2754
|
+
): string {
|
|
2755
|
+
return JSON.stringify(
|
|
2756
|
+
CreatePromptResponseFormat3$outboundSchema.parse(
|
|
2757
|
+
createPromptResponseFormat3,
|
|
2758
|
+
),
|
|
2759
|
+
);
|
|
2760
|
+
}
|
|
2761
|
+
|
|
2762
|
+
export function createPromptResponseFormat3FromJSON(
|
|
2763
|
+
jsonString: string,
|
|
2764
|
+
): SafeParseResult<CreatePromptResponseFormat3, SDKValidationError> {
|
|
2765
|
+
return safeParse(
|
|
2766
|
+
jsonString,
|
|
2767
|
+
(x) => CreatePromptResponseFormat3$inboundSchema.parse(JSON.parse(x)),
|
|
2768
|
+
`Failed to parse 'CreatePromptResponseFormat3' from JSON`,
|
|
2769
|
+
);
|
|
2770
|
+
}
|
|
2771
|
+
|
|
2772
|
+
/** @internal */
|
|
2773
|
+
export const CreatePromptResponseFormatPromptsResponse200Type$inboundSchema:
|
|
2774
|
+
z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponse200Type> = z
|
|
2775
|
+
.nativeEnum(CreatePromptResponseFormatPromptsResponse200Type);
|
|
2776
|
+
|
|
2777
|
+
/** @internal */
|
|
2778
|
+
export const CreatePromptResponseFormatPromptsResponse200Type$outboundSchema:
|
|
2779
|
+
z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponse200Type> =
|
|
2780
|
+
CreatePromptResponseFormatPromptsResponse200Type$inboundSchema;
|
|
2781
|
+
|
|
2782
|
+
/**
|
|
2783
|
+
* @internal
|
|
2784
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2785
|
+
*/
|
|
2786
|
+
export namespace CreatePromptResponseFormatPromptsResponse200Type$ {
|
|
2787
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponse200Type$inboundSchema` instead. */
|
|
2788
|
+
export const inboundSchema =
|
|
2789
|
+
CreatePromptResponseFormatPromptsResponse200Type$inboundSchema;
|
|
2790
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponse200Type$outboundSchema` instead. */
|
|
2791
|
+
export const outboundSchema =
|
|
2792
|
+
CreatePromptResponseFormatPromptsResponse200Type$outboundSchema;
|
|
2592
2793
|
}
|
|
2593
2794
|
|
|
2594
2795
|
/** @internal */
|
|
@@ -2597,7 +2798,7 @@ export const CreatePromptResponseFormat2$inboundSchema: z.ZodType<
|
|
|
2597
2798
|
z.ZodTypeDef,
|
|
2598
2799
|
unknown
|
|
2599
2800
|
> = z.object({
|
|
2600
|
-
type:
|
|
2801
|
+
type: CreatePromptResponseFormatPromptsResponse200Type$inboundSchema,
|
|
2601
2802
|
});
|
|
2602
2803
|
|
|
2603
2804
|
/** @internal */
|
|
@@ -2611,7 +2812,7 @@ export const CreatePromptResponseFormat2$outboundSchema: z.ZodType<
|
|
|
2611
2812
|
z.ZodTypeDef,
|
|
2612
2813
|
CreatePromptResponseFormat2
|
|
2613
2814
|
> = z.object({
|
|
2614
|
-
type:
|
|
2815
|
+
type: CreatePromptResponseFormatPromptsResponse200Type$outboundSchema,
|
|
2615
2816
|
});
|
|
2616
2817
|
|
|
2617
2818
|
/**
|
|
@@ -2648,27 +2849,26 @@ export function createPromptResponseFormat2FromJSON(
|
|
|
2648
2849
|
}
|
|
2649
2850
|
|
|
2650
2851
|
/** @internal */
|
|
2651
|
-
export const
|
|
2652
|
-
z.ZodNativeEnum<typeof
|
|
2653
|
-
|
|
2654
|
-
);
|
|
2852
|
+
export const CreatePromptResponseFormatPromptsResponseType$inboundSchema:
|
|
2853
|
+
z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType> = z
|
|
2854
|
+
.nativeEnum(CreatePromptResponseFormatPromptsResponseType);
|
|
2655
2855
|
|
|
2656
2856
|
/** @internal */
|
|
2657
|
-
export const
|
|
2658
|
-
z.ZodNativeEnum<typeof
|
|
2659
|
-
|
|
2857
|
+
export const CreatePromptResponseFormatPromptsResponseType$outboundSchema:
|
|
2858
|
+
z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType> =
|
|
2859
|
+
CreatePromptResponseFormatPromptsResponseType$inboundSchema;
|
|
2660
2860
|
|
|
2661
2861
|
/**
|
|
2662
2862
|
* @internal
|
|
2663
2863
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2664
2864
|
*/
|
|
2665
|
-
export namespace
|
|
2666
|
-
/** @deprecated use `
|
|
2865
|
+
export namespace CreatePromptResponseFormatPromptsResponseType$ {
|
|
2866
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
|
|
2667
2867
|
export const inboundSchema =
|
|
2668
|
-
|
|
2669
|
-
/** @deprecated use `
|
|
2868
|
+
CreatePromptResponseFormatPromptsResponseType$inboundSchema;
|
|
2869
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
|
|
2670
2870
|
export const outboundSchema =
|
|
2671
|
-
|
|
2871
|
+
CreatePromptResponseFormatPromptsResponseType$outboundSchema;
|
|
2672
2872
|
}
|
|
2673
2873
|
|
|
2674
2874
|
/** @internal */
|
|
@@ -2742,7 +2942,7 @@ export const CreatePromptResponseFormat1$inboundSchema: z.ZodType<
|
|
|
2742
2942
|
z.ZodTypeDef,
|
|
2743
2943
|
unknown
|
|
2744
2944
|
> = z.object({
|
|
2745
|
-
type:
|
|
2945
|
+
type: CreatePromptResponseFormatPromptsResponseType$inboundSchema,
|
|
2746
2946
|
json_schema: z.lazy(() => CreatePromptResponseFormatJsonSchema$inboundSchema),
|
|
2747
2947
|
}).transform((v) => {
|
|
2748
2948
|
return remap$(v, {
|
|
@@ -2762,7 +2962,7 @@ export const CreatePromptResponseFormat1$outboundSchema: z.ZodType<
|
|
|
2762
2962
|
z.ZodTypeDef,
|
|
2763
2963
|
CreatePromptResponseFormat1
|
|
2764
2964
|
> = z.object({
|
|
2765
|
-
type:
|
|
2965
|
+
type: CreatePromptResponseFormatPromptsResponseType$outboundSchema,
|
|
2766
2966
|
jsonSchema: z.lazy(() => CreatePromptResponseFormatJsonSchema$outboundSchema),
|
|
2767
2967
|
}).transform((v) => {
|
|
2768
2968
|
return remap$(v, {
|
|
@@ -2811,12 +3011,14 @@ export const CreatePromptResponseFormat$inboundSchema: z.ZodType<
|
|
|
2811
3011
|
> = z.union([
|
|
2812
3012
|
z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
|
|
2813
3013
|
z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
|
|
3014
|
+
z.lazy(() => CreatePromptResponseFormat3$inboundSchema),
|
|
2814
3015
|
]);
|
|
2815
3016
|
|
|
2816
3017
|
/** @internal */
|
|
2817
3018
|
export type CreatePromptResponseFormat$Outbound =
|
|
2818
3019
|
| CreatePromptResponseFormat1$Outbound
|
|
2819
|
-
| CreatePromptResponseFormat2$Outbound
|
|
3020
|
+
| CreatePromptResponseFormat2$Outbound
|
|
3021
|
+
| CreatePromptResponseFormat3$Outbound;
|
|
2820
3022
|
|
|
2821
3023
|
/** @internal */
|
|
2822
3024
|
export const CreatePromptResponseFormat$outboundSchema: z.ZodType<
|
|
@@ -2826,6 +3028,7 @@ export const CreatePromptResponseFormat$outboundSchema: z.ZodType<
|
|
|
2826
3028
|
> = z.union([
|
|
2827
3029
|
z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
|
|
2828
3030
|
z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
|
|
3031
|
+
z.lazy(() => CreatePromptResponseFormat3$outboundSchema),
|
|
2829
3032
|
]);
|
|
2830
3033
|
|
|
2831
3034
|
/**
|
|
@@ -2965,6 +3168,7 @@ export const CreatePromptModelParameters$inboundSchema: z.ZodType<
|
|
|
2965
3168
|
z.union([
|
|
2966
3169
|
z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
|
|
2967
3170
|
z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
|
|
3171
|
+
z.lazy(() => CreatePromptResponseFormat3$inboundSchema),
|
|
2968
3172
|
]),
|
|
2969
3173
|
).optional(),
|
|
2970
3174
|
photoRealVersion: CreatePromptPhotoRealVersion$inboundSchema.optional(),
|
|
@@ -2995,6 +3199,7 @@ export type CreatePromptModelParameters$Outbound = {
|
|
|
2995
3199
|
responseFormat?:
|
|
2996
3200
|
| CreatePromptResponseFormat1$Outbound
|
|
2997
3201
|
| CreatePromptResponseFormat2$Outbound
|
|
3202
|
+
| CreatePromptResponseFormat3$Outbound
|
|
2998
3203
|
| null
|
|
2999
3204
|
| undefined;
|
|
3000
3205
|
photoRealVersion?: string | undefined;
|
|
@@ -3026,6 +3231,7 @@ export const CreatePromptModelParameters$outboundSchema: z.ZodType<
|
|
|
3026
3231
|
z.union([
|
|
3027
3232
|
z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
|
|
3028
3233
|
z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
|
|
3234
|
+
z.lazy(() => CreatePromptResponseFormat3$outboundSchema),
|
|
3029
3235
|
]),
|
|
3030
3236
|
).optional(),
|
|
3031
3237
|
photoRealVersion: CreatePromptPhotoRealVersion$outboundSchema.optional(),
|