@orq-ai/node 3.10.15 → 3.10.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 +608 -378
- package/bin/mcp-server.js.map +35 -35
- 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 +163 -69
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +196 -96
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +82 -35
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +106 -57
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deployments.d.ts +82 -35
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +99 -49
- 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 +81 -34
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +99 -49
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getevals.js +28 -28
- package/models/operations/getoneprompt.d.ts +81 -34
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +99 -49
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +81 -34
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +100 -50
- 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 +81 -34
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +99 -50
- 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 +162 -68
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +197 -97
- package/models/operations/updateprompt.js.map +1 -1
- package/package.json +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/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/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/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/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/getevals.ts +28 -28
- 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/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/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 +347 -141
- package/src/models/operations/deploymentgetconfig.ts +173 -72
- package/src/models/operations/deployments.ts +168 -72
- 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 +169 -71
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/getoneprompt.ts +169 -71
- package/src/models/operations/getpromptversion.ts +168 -70
- 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 +170 -71
- 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 +347 -141
|
@@ -23,22 +23,22 @@ export const UpdatePromptFormat = {
|
|
|
23
23
|
*/
|
|
24
24
|
export type UpdatePromptFormat = ClosedEnum<typeof UpdatePromptFormat>;
|
|
25
25
|
|
|
26
|
-
export const
|
|
26
|
+
export const UpdatePromptResponseFormatPromptsRequestType = {
|
|
27
27
|
JsonObject: "json_object",
|
|
28
28
|
} as const;
|
|
29
|
-
export type
|
|
30
|
-
typeof
|
|
29
|
+
export type UpdatePromptResponseFormatPromptsRequestType = ClosedEnum<
|
|
30
|
+
typeof UpdatePromptResponseFormatPromptsRequestType
|
|
31
31
|
>;
|
|
32
32
|
|
|
33
|
-
export type
|
|
34
|
-
type:
|
|
33
|
+
export type UpdatePromptResponseFormat3 = {
|
|
34
|
+
type: UpdatePromptResponseFormatPromptsRequestType;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
export const
|
|
37
|
+
export const UpdatePromptResponseFormatPromptsType = {
|
|
38
38
|
JsonSchema: "json_schema",
|
|
39
39
|
} as const;
|
|
40
|
-
export type
|
|
41
|
-
typeof
|
|
40
|
+
export type UpdatePromptResponseFormatPromptsType = ClosedEnum<
|
|
41
|
+
typeof UpdatePromptResponseFormatPromptsType
|
|
42
42
|
>;
|
|
43
43
|
|
|
44
44
|
export type ResponseFormatJsonSchema = {
|
|
@@ -47,9 +47,20 @@ export type ResponseFormatJsonSchema = {
|
|
|
47
47
|
schema: { [k: string]: any };
|
|
48
48
|
};
|
|
49
49
|
|
|
50
|
+
export type UpdatePromptResponseFormat2 = {
|
|
51
|
+
type: UpdatePromptResponseFormatPromptsType;
|
|
52
|
+
jsonSchema: ResponseFormatJsonSchema;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export const UpdatePromptResponseFormatType = {
|
|
56
|
+
Text: "text",
|
|
57
|
+
} as const;
|
|
58
|
+
export type UpdatePromptResponseFormatType = ClosedEnum<
|
|
59
|
+
typeof UpdatePromptResponseFormatType
|
|
60
|
+
>;
|
|
61
|
+
|
|
50
62
|
export type UpdatePromptResponseFormat1 = {
|
|
51
63
|
type: UpdatePromptResponseFormatType;
|
|
52
|
-
jsonSchema: ResponseFormatJsonSchema;
|
|
53
64
|
};
|
|
54
65
|
|
|
55
66
|
/**
|
|
@@ -64,8 +75,9 @@ export type UpdatePromptResponseFormat1 = {
|
|
|
64
75
|
* 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.
|
|
65
76
|
*/
|
|
66
77
|
export type UpdatePromptResponseFormat =
|
|
78
|
+
| UpdatePromptResponseFormat2
|
|
67
79
|
| UpdatePromptResponseFormat1
|
|
68
|
-
|
|
|
80
|
+
| UpdatePromptResponseFormat3;
|
|
69
81
|
|
|
70
82
|
/**
|
|
71
83
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
@@ -188,8 +200,9 @@ export type UpdatePromptModelParameters = {
|
|
|
188
200
|
* 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.
|
|
189
201
|
*/
|
|
190
202
|
responseFormat?:
|
|
191
|
-
| UpdatePromptResponseFormat1
|
|
192
203
|
| UpdatePromptResponseFormat2
|
|
204
|
+
| UpdatePromptResponseFormat1
|
|
205
|
+
| UpdatePromptResponseFormat3
|
|
193
206
|
| null
|
|
194
207
|
| undefined;
|
|
195
208
|
/**
|
|
@@ -512,33 +525,45 @@ export type UpdatePromptPromptsFormat = ClosedEnum<
|
|
|
512
525
|
typeof UpdatePromptPromptsFormat
|
|
513
526
|
>;
|
|
514
527
|
|
|
515
|
-
export const
|
|
528
|
+
export const UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType = {
|
|
516
529
|
JsonObject: "json_object",
|
|
517
530
|
} as const;
|
|
531
|
+
export type UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType =
|
|
532
|
+
ClosedEnum<
|
|
533
|
+
typeof UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType
|
|
534
|
+
>;
|
|
535
|
+
|
|
536
|
+
export type UpdatePromptResponseFormatPrompts3 = {
|
|
537
|
+
type: UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType;
|
|
538
|
+
};
|
|
539
|
+
|
|
540
|
+
export const UpdatePromptResponseFormatPromptsResponse200Type = {
|
|
541
|
+
JsonSchema: "json_schema",
|
|
542
|
+
} as const;
|
|
518
543
|
export type UpdatePromptResponseFormatPromptsResponse200Type = ClosedEnum<
|
|
519
544
|
typeof UpdatePromptResponseFormatPromptsResponse200Type
|
|
520
545
|
>;
|
|
521
546
|
|
|
547
|
+
export type UpdatePromptResponseFormatJsonSchema = {
|
|
548
|
+
name: string;
|
|
549
|
+
strict?: boolean | undefined;
|
|
550
|
+
schema: { [k: string]: any };
|
|
551
|
+
};
|
|
552
|
+
|
|
522
553
|
export type UpdatePromptResponseFormatPrompts2 = {
|
|
523
554
|
type: UpdatePromptResponseFormatPromptsResponse200Type;
|
|
555
|
+
jsonSchema: UpdatePromptResponseFormatJsonSchema;
|
|
524
556
|
};
|
|
525
557
|
|
|
526
558
|
export const UpdatePromptResponseFormatPromptsResponseType = {
|
|
527
|
-
|
|
559
|
+
Text: "text",
|
|
528
560
|
} as const;
|
|
529
561
|
export type UpdatePromptResponseFormatPromptsResponseType = ClosedEnum<
|
|
530
562
|
typeof UpdatePromptResponseFormatPromptsResponseType
|
|
531
563
|
>;
|
|
532
564
|
|
|
533
|
-
export type UpdatePromptResponseFormatJsonSchema = {
|
|
534
|
-
name: string;
|
|
535
|
-
strict?: boolean | undefined;
|
|
536
|
-
schema: { [k: string]: any };
|
|
537
|
-
};
|
|
538
|
-
|
|
539
565
|
export type UpdatePromptResponseFormatPrompts1 = {
|
|
540
566
|
type: UpdatePromptResponseFormatPromptsResponseType;
|
|
541
|
-
jsonSchema: UpdatePromptResponseFormatJsonSchema;
|
|
542
567
|
};
|
|
543
568
|
|
|
544
569
|
/**
|
|
@@ -553,8 +578,9 @@ export type UpdatePromptResponseFormatPrompts1 = {
|
|
|
553
578
|
* 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.
|
|
554
579
|
*/
|
|
555
580
|
export type UpdatePromptPromptsResponseFormat =
|
|
581
|
+
| UpdatePromptResponseFormatPrompts2
|
|
556
582
|
| UpdatePromptResponseFormatPrompts1
|
|
557
|
-
|
|
|
583
|
+
| UpdatePromptResponseFormatPrompts3;
|
|
558
584
|
|
|
559
585
|
/**
|
|
560
586
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
@@ -679,8 +705,9 @@ export type UpdatePromptPromptsModelParameters = {
|
|
|
679
705
|
* 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.
|
|
680
706
|
*/
|
|
681
707
|
responseFormat?:
|
|
682
|
-
| UpdatePromptResponseFormatPrompts1
|
|
683
708
|
| UpdatePromptResponseFormatPrompts2
|
|
709
|
+
| UpdatePromptResponseFormatPrompts1
|
|
710
|
+
| UpdatePromptResponseFormatPrompts3
|
|
684
711
|
| null
|
|
685
712
|
| undefined;
|
|
686
713
|
/**
|
|
@@ -1014,104 +1041,106 @@ export namespace UpdatePromptFormat$ {
|
|
|
1014
1041
|
}
|
|
1015
1042
|
|
|
1016
1043
|
/** @internal */
|
|
1017
|
-
export const
|
|
1018
|
-
z.ZodNativeEnum<typeof
|
|
1019
|
-
|
|
1020
|
-
);
|
|
1044
|
+
export const UpdatePromptResponseFormatPromptsRequestType$inboundSchema:
|
|
1045
|
+
z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsRequestType> = z
|
|
1046
|
+
.nativeEnum(UpdatePromptResponseFormatPromptsRequestType);
|
|
1021
1047
|
|
|
1022
1048
|
/** @internal */
|
|
1023
|
-
export const
|
|
1024
|
-
z.ZodNativeEnum<typeof
|
|
1025
|
-
|
|
1049
|
+
export const UpdatePromptResponseFormatPromptsRequestType$outboundSchema:
|
|
1050
|
+
z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsRequestType> =
|
|
1051
|
+
UpdatePromptResponseFormatPromptsRequestType$inboundSchema;
|
|
1026
1052
|
|
|
1027
1053
|
/**
|
|
1028
1054
|
* @internal
|
|
1029
1055
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1030
1056
|
*/
|
|
1031
|
-
export namespace
|
|
1032
|
-
/** @deprecated use `
|
|
1057
|
+
export namespace UpdatePromptResponseFormatPromptsRequestType$ {
|
|
1058
|
+
/** @deprecated use `UpdatePromptResponseFormatPromptsRequestType$inboundSchema` instead. */
|
|
1033
1059
|
export const inboundSchema =
|
|
1034
|
-
|
|
1035
|
-
/** @deprecated use `
|
|
1060
|
+
UpdatePromptResponseFormatPromptsRequestType$inboundSchema;
|
|
1061
|
+
/** @deprecated use `UpdatePromptResponseFormatPromptsRequestType$outboundSchema` instead. */
|
|
1036
1062
|
export const outboundSchema =
|
|
1037
|
-
|
|
1063
|
+
UpdatePromptResponseFormatPromptsRequestType$outboundSchema;
|
|
1038
1064
|
}
|
|
1039
1065
|
|
|
1040
1066
|
/** @internal */
|
|
1041
|
-
export const
|
|
1042
|
-
|
|
1067
|
+
export const UpdatePromptResponseFormat3$inboundSchema: z.ZodType<
|
|
1068
|
+
UpdatePromptResponseFormat3,
|
|
1043
1069
|
z.ZodTypeDef,
|
|
1044
1070
|
unknown
|
|
1045
1071
|
> = z.object({
|
|
1046
|
-
type:
|
|
1072
|
+
type: UpdatePromptResponseFormatPromptsRequestType$inboundSchema,
|
|
1047
1073
|
});
|
|
1048
1074
|
|
|
1049
1075
|
/** @internal */
|
|
1050
|
-
export type
|
|
1076
|
+
export type UpdatePromptResponseFormat3$Outbound = {
|
|
1051
1077
|
type: string;
|
|
1052
1078
|
};
|
|
1053
1079
|
|
|
1054
1080
|
/** @internal */
|
|
1055
|
-
export const
|
|
1056
|
-
|
|
1081
|
+
export const UpdatePromptResponseFormat3$outboundSchema: z.ZodType<
|
|
1082
|
+
UpdatePromptResponseFormat3$Outbound,
|
|
1057
1083
|
z.ZodTypeDef,
|
|
1058
|
-
|
|
1084
|
+
UpdatePromptResponseFormat3
|
|
1059
1085
|
> = z.object({
|
|
1060
|
-
type:
|
|
1086
|
+
type: UpdatePromptResponseFormatPromptsRequestType$outboundSchema,
|
|
1061
1087
|
});
|
|
1062
1088
|
|
|
1063
1089
|
/**
|
|
1064
1090
|
* @internal
|
|
1065
1091
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1066
1092
|
*/
|
|
1067
|
-
export namespace
|
|
1068
|
-
/** @deprecated use `
|
|
1069
|
-
export const inboundSchema =
|
|
1070
|
-
/** @deprecated use `
|
|
1071
|
-
export const outboundSchema =
|
|
1072
|
-
/** @deprecated use `
|
|
1073
|
-
export type Outbound =
|
|
1093
|
+
export namespace UpdatePromptResponseFormat3$ {
|
|
1094
|
+
/** @deprecated use `UpdatePromptResponseFormat3$inboundSchema` instead. */
|
|
1095
|
+
export const inboundSchema = UpdatePromptResponseFormat3$inboundSchema;
|
|
1096
|
+
/** @deprecated use `UpdatePromptResponseFormat3$outboundSchema` instead. */
|
|
1097
|
+
export const outboundSchema = UpdatePromptResponseFormat3$outboundSchema;
|
|
1098
|
+
/** @deprecated use `UpdatePromptResponseFormat3$Outbound` instead. */
|
|
1099
|
+
export type Outbound = UpdatePromptResponseFormat3$Outbound;
|
|
1074
1100
|
}
|
|
1075
1101
|
|
|
1076
|
-
export function
|
|
1077
|
-
|
|
1102
|
+
export function updatePromptResponseFormat3ToJSON(
|
|
1103
|
+
updatePromptResponseFormat3: UpdatePromptResponseFormat3,
|
|
1078
1104
|
): string {
|
|
1079
1105
|
return JSON.stringify(
|
|
1080
|
-
|
|
1081
|
-
|
|
1106
|
+
UpdatePromptResponseFormat3$outboundSchema.parse(
|
|
1107
|
+
updatePromptResponseFormat3,
|
|
1082
1108
|
),
|
|
1083
1109
|
);
|
|
1084
1110
|
}
|
|
1085
1111
|
|
|
1086
|
-
export function
|
|
1112
|
+
export function updatePromptResponseFormat3FromJSON(
|
|
1087
1113
|
jsonString: string,
|
|
1088
|
-
): SafeParseResult<
|
|
1114
|
+
): SafeParseResult<UpdatePromptResponseFormat3, SDKValidationError> {
|
|
1089
1115
|
return safeParse(
|
|
1090
1116
|
jsonString,
|
|
1091
|
-
(x) =>
|
|
1092
|
-
`Failed to parse '
|
|
1117
|
+
(x) => UpdatePromptResponseFormat3$inboundSchema.parse(JSON.parse(x)),
|
|
1118
|
+
`Failed to parse 'UpdatePromptResponseFormat3' from JSON`,
|
|
1093
1119
|
);
|
|
1094
1120
|
}
|
|
1095
1121
|
|
|
1096
1122
|
/** @internal */
|
|
1097
|
-
export const
|
|
1098
|
-
typeof
|
|
1099
|
-
|
|
1123
|
+
export const UpdatePromptResponseFormatPromptsType$inboundSchema:
|
|
1124
|
+
z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsType> = z.nativeEnum(
|
|
1125
|
+
UpdatePromptResponseFormatPromptsType,
|
|
1126
|
+
);
|
|
1100
1127
|
|
|
1101
1128
|
/** @internal */
|
|
1102
|
-
export const
|
|
1103
|
-
typeof
|
|
1104
|
-
|
|
1129
|
+
export const UpdatePromptResponseFormatPromptsType$outboundSchema:
|
|
1130
|
+
z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsType> =
|
|
1131
|
+
UpdatePromptResponseFormatPromptsType$inboundSchema;
|
|
1105
1132
|
|
|
1106
1133
|
/**
|
|
1107
1134
|
* @internal
|
|
1108
1135
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1109
1136
|
*/
|
|
1110
|
-
export namespace
|
|
1111
|
-
/** @deprecated use `
|
|
1112
|
-
export const inboundSchema =
|
|
1113
|
-
|
|
1114
|
-
|
|
1137
|
+
export namespace UpdatePromptResponseFormatPromptsType$ {
|
|
1138
|
+
/** @deprecated use `UpdatePromptResponseFormatPromptsType$inboundSchema` instead. */
|
|
1139
|
+
export const inboundSchema =
|
|
1140
|
+
UpdatePromptResponseFormatPromptsType$inboundSchema;
|
|
1141
|
+
/** @deprecated use `UpdatePromptResponseFormatPromptsType$outboundSchema` instead. */
|
|
1142
|
+
export const outboundSchema =
|
|
1143
|
+
UpdatePromptResponseFormatPromptsType$outboundSchema;
|
|
1115
1144
|
}
|
|
1116
1145
|
|
|
1117
1146
|
/** @internal */
|
|
@@ -1175,12 +1204,12 @@ export function responseFormatJsonSchemaFromJSON(
|
|
|
1175
1204
|
}
|
|
1176
1205
|
|
|
1177
1206
|
/** @internal */
|
|
1178
|
-
export const
|
|
1179
|
-
|
|
1207
|
+
export const UpdatePromptResponseFormat2$inboundSchema: z.ZodType<
|
|
1208
|
+
UpdatePromptResponseFormat2,
|
|
1180
1209
|
z.ZodTypeDef,
|
|
1181
1210
|
unknown
|
|
1182
1211
|
> = z.object({
|
|
1183
|
-
type:
|
|
1212
|
+
type: UpdatePromptResponseFormatPromptsType$inboundSchema,
|
|
1184
1213
|
json_schema: z.lazy(() => ResponseFormatJsonSchema$inboundSchema),
|
|
1185
1214
|
}).transform((v) => {
|
|
1186
1215
|
return remap$(v, {
|
|
@@ -1189,18 +1218,18 @@ export const UpdatePromptResponseFormat1$inboundSchema: z.ZodType<
|
|
|
1189
1218
|
});
|
|
1190
1219
|
|
|
1191
1220
|
/** @internal */
|
|
1192
|
-
export type
|
|
1221
|
+
export type UpdatePromptResponseFormat2$Outbound = {
|
|
1193
1222
|
type: string;
|
|
1194
1223
|
json_schema: ResponseFormatJsonSchema$Outbound;
|
|
1195
1224
|
};
|
|
1196
1225
|
|
|
1197
1226
|
/** @internal */
|
|
1198
|
-
export const
|
|
1199
|
-
|
|
1227
|
+
export const UpdatePromptResponseFormat2$outboundSchema: z.ZodType<
|
|
1228
|
+
UpdatePromptResponseFormat2$Outbound,
|
|
1200
1229
|
z.ZodTypeDef,
|
|
1201
|
-
|
|
1230
|
+
UpdatePromptResponseFormat2
|
|
1202
1231
|
> = z.object({
|
|
1203
|
-
type:
|
|
1232
|
+
type: UpdatePromptResponseFormatPromptsType$outboundSchema,
|
|
1204
1233
|
jsonSchema: z.lazy(() => ResponseFormatJsonSchema$outboundSchema),
|
|
1205
1234
|
}).transform((v) => {
|
|
1206
1235
|
return remap$(v, {
|
|
@@ -1208,6 +1237,83 @@ export const UpdatePromptResponseFormat1$outboundSchema: z.ZodType<
|
|
|
1208
1237
|
});
|
|
1209
1238
|
});
|
|
1210
1239
|
|
|
1240
|
+
/**
|
|
1241
|
+
* @internal
|
|
1242
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1243
|
+
*/
|
|
1244
|
+
export namespace UpdatePromptResponseFormat2$ {
|
|
1245
|
+
/** @deprecated use `UpdatePromptResponseFormat2$inboundSchema` instead. */
|
|
1246
|
+
export const inboundSchema = UpdatePromptResponseFormat2$inboundSchema;
|
|
1247
|
+
/** @deprecated use `UpdatePromptResponseFormat2$outboundSchema` instead. */
|
|
1248
|
+
export const outboundSchema = UpdatePromptResponseFormat2$outboundSchema;
|
|
1249
|
+
/** @deprecated use `UpdatePromptResponseFormat2$Outbound` instead. */
|
|
1250
|
+
export type Outbound = UpdatePromptResponseFormat2$Outbound;
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
export function updatePromptResponseFormat2ToJSON(
|
|
1254
|
+
updatePromptResponseFormat2: UpdatePromptResponseFormat2,
|
|
1255
|
+
): string {
|
|
1256
|
+
return JSON.stringify(
|
|
1257
|
+
UpdatePromptResponseFormat2$outboundSchema.parse(
|
|
1258
|
+
updatePromptResponseFormat2,
|
|
1259
|
+
),
|
|
1260
|
+
);
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
export function updatePromptResponseFormat2FromJSON(
|
|
1264
|
+
jsonString: string,
|
|
1265
|
+
): SafeParseResult<UpdatePromptResponseFormat2, SDKValidationError> {
|
|
1266
|
+
return safeParse(
|
|
1267
|
+
jsonString,
|
|
1268
|
+
(x) => UpdatePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
|
|
1269
|
+
`Failed to parse 'UpdatePromptResponseFormat2' from JSON`,
|
|
1270
|
+
);
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
/** @internal */
|
|
1274
|
+
export const UpdatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
|
|
1275
|
+
typeof UpdatePromptResponseFormatType
|
|
1276
|
+
> = z.nativeEnum(UpdatePromptResponseFormatType);
|
|
1277
|
+
|
|
1278
|
+
/** @internal */
|
|
1279
|
+
export const UpdatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
|
|
1280
|
+
typeof UpdatePromptResponseFormatType
|
|
1281
|
+
> = UpdatePromptResponseFormatType$inboundSchema;
|
|
1282
|
+
|
|
1283
|
+
/**
|
|
1284
|
+
* @internal
|
|
1285
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1286
|
+
*/
|
|
1287
|
+
export namespace UpdatePromptResponseFormatType$ {
|
|
1288
|
+
/** @deprecated use `UpdatePromptResponseFormatType$inboundSchema` instead. */
|
|
1289
|
+
export const inboundSchema = UpdatePromptResponseFormatType$inboundSchema;
|
|
1290
|
+
/** @deprecated use `UpdatePromptResponseFormatType$outboundSchema` instead. */
|
|
1291
|
+
export const outboundSchema = UpdatePromptResponseFormatType$outboundSchema;
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
/** @internal */
|
|
1295
|
+
export const UpdatePromptResponseFormat1$inboundSchema: z.ZodType<
|
|
1296
|
+
UpdatePromptResponseFormat1,
|
|
1297
|
+
z.ZodTypeDef,
|
|
1298
|
+
unknown
|
|
1299
|
+
> = z.object({
|
|
1300
|
+
type: UpdatePromptResponseFormatType$inboundSchema,
|
|
1301
|
+
});
|
|
1302
|
+
|
|
1303
|
+
/** @internal */
|
|
1304
|
+
export type UpdatePromptResponseFormat1$Outbound = {
|
|
1305
|
+
type: string;
|
|
1306
|
+
};
|
|
1307
|
+
|
|
1308
|
+
/** @internal */
|
|
1309
|
+
export const UpdatePromptResponseFormat1$outboundSchema: z.ZodType<
|
|
1310
|
+
UpdatePromptResponseFormat1$Outbound,
|
|
1311
|
+
z.ZodTypeDef,
|
|
1312
|
+
UpdatePromptResponseFormat1
|
|
1313
|
+
> = z.object({
|
|
1314
|
+
type: UpdatePromptResponseFormatType$outboundSchema,
|
|
1315
|
+
});
|
|
1316
|
+
|
|
1211
1317
|
/**
|
|
1212
1318
|
* @internal
|
|
1213
1319
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
@@ -1247,14 +1353,16 @@ export const UpdatePromptResponseFormat$inboundSchema: z.ZodType<
|
|
|
1247
1353
|
z.ZodTypeDef,
|
|
1248
1354
|
unknown
|
|
1249
1355
|
> = z.union([
|
|
1250
|
-
z.lazy(() => UpdatePromptResponseFormat1$inboundSchema),
|
|
1251
1356
|
z.lazy(() => UpdatePromptResponseFormat2$inboundSchema),
|
|
1357
|
+
z.lazy(() => UpdatePromptResponseFormat1$inboundSchema),
|
|
1358
|
+
z.lazy(() => UpdatePromptResponseFormat3$inboundSchema),
|
|
1252
1359
|
]);
|
|
1253
1360
|
|
|
1254
1361
|
/** @internal */
|
|
1255
1362
|
export type UpdatePromptResponseFormat$Outbound =
|
|
1363
|
+
| UpdatePromptResponseFormat2$Outbound
|
|
1256
1364
|
| UpdatePromptResponseFormat1$Outbound
|
|
1257
|
-
|
|
|
1365
|
+
| UpdatePromptResponseFormat3$Outbound;
|
|
1258
1366
|
|
|
1259
1367
|
/** @internal */
|
|
1260
1368
|
export const UpdatePromptResponseFormat$outboundSchema: z.ZodType<
|
|
@@ -1262,8 +1370,9 @@ export const UpdatePromptResponseFormat$outboundSchema: z.ZodType<
|
|
|
1262
1370
|
z.ZodTypeDef,
|
|
1263
1371
|
UpdatePromptResponseFormat
|
|
1264
1372
|
> = z.union([
|
|
1265
|
-
z.lazy(() => UpdatePromptResponseFormat1$outboundSchema),
|
|
1266
1373
|
z.lazy(() => UpdatePromptResponseFormat2$outboundSchema),
|
|
1374
|
+
z.lazy(() => UpdatePromptResponseFormat1$outboundSchema),
|
|
1375
|
+
z.lazy(() => UpdatePromptResponseFormat3$outboundSchema),
|
|
1267
1376
|
]);
|
|
1268
1377
|
|
|
1269
1378
|
/**
|
|
@@ -1401,8 +1510,9 @@ export const UpdatePromptModelParameters$inboundSchema: z.ZodType<
|
|
|
1401
1510
|
style: z.string().optional(),
|
|
1402
1511
|
responseFormat: z.nullable(
|
|
1403
1512
|
z.union([
|
|
1404
|
-
z.lazy(() => UpdatePromptResponseFormat1$inboundSchema),
|
|
1405
1513
|
z.lazy(() => UpdatePromptResponseFormat2$inboundSchema),
|
|
1514
|
+
z.lazy(() => UpdatePromptResponseFormat1$inboundSchema),
|
|
1515
|
+
z.lazy(() => UpdatePromptResponseFormat3$inboundSchema),
|
|
1406
1516
|
]),
|
|
1407
1517
|
).optional(),
|
|
1408
1518
|
photoRealVersion: UpdatePromptPhotoRealVersion$inboundSchema.optional(),
|
|
@@ -1431,8 +1541,9 @@ export type UpdatePromptModelParameters$Outbound = {
|
|
|
1431
1541
|
quality?: string | undefined;
|
|
1432
1542
|
style?: string | undefined;
|
|
1433
1543
|
responseFormat?:
|
|
1434
|
-
| UpdatePromptResponseFormat1$Outbound
|
|
1435
1544
|
| UpdatePromptResponseFormat2$Outbound
|
|
1545
|
+
| UpdatePromptResponseFormat1$Outbound
|
|
1546
|
+
| UpdatePromptResponseFormat3$Outbound
|
|
1436
1547
|
| null
|
|
1437
1548
|
| undefined;
|
|
1438
1549
|
photoRealVersion?: string | undefined;
|
|
@@ -1462,8 +1573,9 @@ export const UpdatePromptModelParameters$outboundSchema: z.ZodType<
|
|
|
1462
1573
|
style: z.string().optional(),
|
|
1463
1574
|
responseFormat: z.nullable(
|
|
1464
1575
|
z.union([
|
|
1465
|
-
z.lazy(() => UpdatePromptResponseFormat1$outboundSchema),
|
|
1466
1576
|
z.lazy(() => UpdatePromptResponseFormat2$outboundSchema),
|
|
1577
|
+
z.lazy(() => UpdatePromptResponseFormat1$outboundSchema),
|
|
1578
|
+
z.lazy(() => UpdatePromptResponseFormat3$outboundSchema),
|
|
1467
1579
|
]),
|
|
1468
1580
|
).optional(),
|
|
1469
1581
|
photoRealVersion: UpdatePromptPhotoRealVersion$outboundSchema.optional(),
|
|
@@ -2692,107 +2804,114 @@ export namespace UpdatePromptPromptsFormat$ {
|
|
|
2692
2804
|
}
|
|
2693
2805
|
|
|
2694
2806
|
/** @internal */
|
|
2695
|
-
export const
|
|
2696
|
-
z.ZodNativeEnum<
|
|
2697
|
-
|
|
2807
|
+
export const UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema:
|
|
2808
|
+
z.ZodNativeEnum<
|
|
2809
|
+
typeof UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType
|
|
2810
|
+
> = z.nativeEnum(
|
|
2811
|
+
UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType,
|
|
2812
|
+
);
|
|
2698
2813
|
|
|
2699
2814
|
/** @internal */
|
|
2700
|
-
export const
|
|
2701
|
-
z.ZodNativeEnum<
|
|
2702
|
-
|
|
2815
|
+
export const UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema:
|
|
2816
|
+
z.ZodNativeEnum<
|
|
2817
|
+
typeof UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType
|
|
2818
|
+
> =
|
|
2819
|
+
UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema;
|
|
2703
2820
|
|
|
2704
2821
|
/**
|
|
2705
2822
|
* @internal
|
|
2706
2823
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2707
2824
|
*/
|
|
2708
|
-
export namespace
|
|
2709
|
-
/** @deprecated use `
|
|
2825
|
+
export namespace UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$ {
|
|
2826
|
+
/** @deprecated use `UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema` instead. */
|
|
2710
2827
|
export const inboundSchema =
|
|
2711
|
-
|
|
2712
|
-
/** @deprecated use `
|
|
2828
|
+
UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema;
|
|
2829
|
+
/** @deprecated use `UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema` instead. */
|
|
2713
2830
|
export const outboundSchema =
|
|
2714
|
-
|
|
2831
|
+
UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema;
|
|
2715
2832
|
}
|
|
2716
2833
|
|
|
2717
2834
|
/** @internal */
|
|
2718
|
-
export const
|
|
2719
|
-
|
|
2835
|
+
export const UpdatePromptResponseFormatPrompts3$inboundSchema: z.ZodType<
|
|
2836
|
+
UpdatePromptResponseFormatPrompts3,
|
|
2720
2837
|
z.ZodTypeDef,
|
|
2721
2838
|
unknown
|
|
2722
2839
|
> = z.object({
|
|
2723
|
-
type:
|
|
2840
|
+
type:
|
|
2841
|
+
UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema,
|
|
2724
2842
|
});
|
|
2725
2843
|
|
|
2726
2844
|
/** @internal */
|
|
2727
|
-
export type
|
|
2845
|
+
export type UpdatePromptResponseFormatPrompts3$Outbound = {
|
|
2728
2846
|
type: string;
|
|
2729
2847
|
};
|
|
2730
2848
|
|
|
2731
2849
|
/** @internal */
|
|
2732
|
-
export const
|
|
2733
|
-
|
|
2850
|
+
export const UpdatePromptResponseFormatPrompts3$outboundSchema: z.ZodType<
|
|
2851
|
+
UpdatePromptResponseFormatPrompts3$Outbound,
|
|
2734
2852
|
z.ZodTypeDef,
|
|
2735
|
-
|
|
2853
|
+
UpdatePromptResponseFormatPrompts3
|
|
2736
2854
|
> = z.object({
|
|
2737
|
-
type:
|
|
2855
|
+
type:
|
|
2856
|
+
UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema,
|
|
2738
2857
|
});
|
|
2739
2858
|
|
|
2740
2859
|
/**
|
|
2741
2860
|
* @internal
|
|
2742
2861
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2743
2862
|
*/
|
|
2744
|
-
export namespace
|
|
2745
|
-
/** @deprecated use `
|
|
2746
|
-
export const inboundSchema =
|
|
2747
|
-
/** @deprecated use `
|
|
2863
|
+
export namespace UpdatePromptResponseFormatPrompts3$ {
|
|
2864
|
+
/** @deprecated use `UpdatePromptResponseFormatPrompts3$inboundSchema` instead. */
|
|
2865
|
+
export const inboundSchema = UpdatePromptResponseFormatPrompts3$inboundSchema;
|
|
2866
|
+
/** @deprecated use `UpdatePromptResponseFormatPrompts3$outboundSchema` instead. */
|
|
2748
2867
|
export const outboundSchema =
|
|
2749
|
-
|
|
2750
|
-
/** @deprecated use `
|
|
2751
|
-
export type Outbound =
|
|
2868
|
+
UpdatePromptResponseFormatPrompts3$outboundSchema;
|
|
2869
|
+
/** @deprecated use `UpdatePromptResponseFormatPrompts3$Outbound` instead. */
|
|
2870
|
+
export type Outbound = UpdatePromptResponseFormatPrompts3$Outbound;
|
|
2752
2871
|
}
|
|
2753
2872
|
|
|
2754
|
-
export function
|
|
2755
|
-
|
|
2873
|
+
export function updatePromptResponseFormatPrompts3ToJSON(
|
|
2874
|
+
updatePromptResponseFormatPrompts3: UpdatePromptResponseFormatPrompts3,
|
|
2756
2875
|
): string {
|
|
2757
2876
|
return JSON.stringify(
|
|
2758
|
-
|
|
2759
|
-
|
|
2877
|
+
UpdatePromptResponseFormatPrompts3$outboundSchema.parse(
|
|
2878
|
+
updatePromptResponseFormatPrompts3,
|
|
2760
2879
|
),
|
|
2761
2880
|
);
|
|
2762
2881
|
}
|
|
2763
2882
|
|
|
2764
|
-
export function
|
|
2883
|
+
export function updatePromptResponseFormatPrompts3FromJSON(
|
|
2765
2884
|
jsonString: string,
|
|
2766
|
-
): SafeParseResult<
|
|
2885
|
+
): SafeParseResult<UpdatePromptResponseFormatPrompts3, SDKValidationError> {
|
|
2767
2886
|
return safeParse(
|
|
2768
2887
|
jsonString,
|
|
2769
2888
|
(x) =>
|
|
2770
|
-
|
|
2771
|
-
`Failed to parse '
|
|
2889
|
+
UpdatePromptResponseFormatPrompts3$inboundSchema.parse(JSON.parse(x)),
|
|
2890
|
+
`Failed to parse 'UpdatePromptResponseFormatPrompts3' from JSON`,
|
|
2772
2891
|
);
|
|
2773
2892
|
}
|
|
2774
2893
|
|
|
2775
2894
|
/** @internal */
|
|
2776
|
-
export const
|
|
2777
|
-
z.ZodNativeEnum<typeof
|
|
2778
|
-
.nativeEnum(
|
|
2895
|
+
export const UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema:
|
|
2896
|
+
z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponse200Type> = z
|
|
2897
|
+
.nativeEnum(UpdatePromptResponseFormatPromptsResponse200Type);
|
|
2779
2898
|
|
|
2780
2899
|
/** @internal */
|
|
2781
|
-
export const
|
|
2782
|
-
z.ZodNativeEnum<typeof
|
|
2783
|
-
|
|
2900
|
+
export const UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema:
|
|
2901
|
+
z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponse200Type> =
|
|
2902
|
+
UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema;
|
|
2784
2903
|
|
|
2785
2904
|
/**
|
|
2786
2905
|
* @internal
|
|
2787
2906
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2788
2907
|
*/
|
|
2789
|
-
export namespace
|
|
2790
|
-
/** @deprecated use `
|
|
2908
|
+
export namespace UpdatePromptResponseFormatPromptsResponse200Type$ {
|
|
2909
|
+
/** @deprecated use `UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema` instead. */
|
|
2791
2910
|
export const inboundSchema =
|
|
2792
|
-
|
|
2793
|
-
/** @deprecated use `
|
|
2911
|
+
UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema;
|
|
2912
|
+
/** @deprecated use `UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema` instead. */
|
|
2794
2913
|
export const outboundSchema =
|
|
2795
|
-
|
|
2914
|
+
UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema;
|
|
2796
2915
|
}
|
|
2797
2916
|
|
|
2798
2917
|
/** @internal */
|
|
@@ -2861,12 +2980,12 @@ export function updatePromptResponseFormatJsonSchemaFromJSON(
|
|
|
2861
2980
|
}
|
|
2862
2981
|
|
|
2863
2982
|
/** @internal */
|
|
2864
|
-
export const
|
|
2865
|
-
|
|
2983
|
+
export const UpdatePromptResponseFormatPrompts2$inboundSchema: z.ZodType<
|
|
2984
|
+
UpdatePromptResponseFormatPrompts2,
|
|
2866
2985
|
z.ZodTypeDef,
|
|
2867
2986
|
unknown
|
|
2868
2987
|
> = z.object({
|
|
2869
|
-
type:
|
|
2988
|
+
type: UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema,
|
|
2870
2989
|
json_schema: z.lazy(() => UpdatePromptResponseFormatJsonSchema$inboundSchema),
|
|
2871
2990
|
}).transform((v) => {
|
|
2872
2991
|
return remap$(v, {
|
|
@@ -2875,18 +2994,18 @@ export const UpdatePromptResponseFormatPrompts1$inboundSchema: z.ZodType<
|
|
|
2875
2994
|
});
|
|
2876
2995
|
|
|
2877
2996
|
/** @internal */
|
|
2878
|
-
export type
|
|
2997
|
+
export type UpdatePromptResponseFormatPrompts2$Outbound = {
|
|
2879
2998
|
type: string;
|
|
2880
2999
|
json_schema: UpdatePromptResponseFormatJsonSchema$Outbound;
|
|
2881
3000
|
};
|
|
2882
3001
|
|
|
2883
3002
|
/** @internal */
|
|
2884
|
-
export const
|
|
2885
|
-
|
|
3003
|
+
export const UpdatePromptResponseFormatPrompts2$outboundSchema: z.ZodType<
|
|
3004
|
+
UpdatePromptResponseFormatPrompts2$Outbound,
|
|
2886
3005
|
z.ZodTypeDef,
|
|
2887
|
-
|
|
3006
|
+
UpdatePromptResponseFormatPrompts2
|
|
2888
3007
|
> = z.object({
|
|
2889
|
-
type:
|
|
3008
|
+
type: UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema,
|
|
2890
3009
|
jsonSchema: z.lazy(() => UpdatePromptResponseFormatJsonSchema$outboundSchema),
|
|
2891
3010
|
}).transform((v) => {
|
|
2892
3011
|
return remap$(v, {
|
|
@@ -2894,6 +3013,87 @@ export const UpdatePromptResponseFormatPrompts1$outboundSchema: z.ZodType<
|
|
|
2894
3013
|
});
|
|
2895
3014
|
});
|
|
2896
3015
|
|
|
3016
|
+
/**
|
|
3017
|
+
* @internal
|
|
3018
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3019
|
+
*/
|
|
3020
|
+
export namespace UpdatePromptResponseFormatPrompts2$ {
|
|
3021
|
+
/** @deprecated use `UpdatePromptResponseFormatPrompts2$inboundSchema` instead. */
|
|
3022
|
+
export const inboundSchema = UpdatePromptResponseFormatPrompts2$inboundSchema;
|
|
3023
|
+
/** @deprecated use `UpdatePromptResponseFormatPrompts2$outboundSchema` instead. */
|
|
3024
|
+
export const outboundSchema =
|
|
3025
|
+
UpdatePromptResponseFormatPrompts2$outboundSchema;
|
|
3026
|
+
/** @deprecated use `UpdatePromptResponseFormatPrompts2$Outbound` instead. */
|
|
3027
|
+
export type Outbound = UpdatePromptResponseFormatPrompts2$Outbound;
|
|
3028
|
+
}
|
|
3029
|
+
|
|
3030
|
+
export function updatePromptResponseFormatPrompts2ToJSON(
|
|
3031
|
+
updatePromptResponseFormatPrompts2: UpdatePromptResponseFormatPrompts2,
|
|
3032
|
+
): string {
|
|
3033
|
+
return JSON.stringify(
|
|
3034
|
+
UpdatePromptResponseFormatPrompts2$outboundSchema.parse(
|
|
3035
|
+
updatePromptResponseFormatPrompts2,
|
|
3036
|
+
),
|
|
3037
|
+
);
|
|
3038
|
+
}
|
|
3039
|
+
|
|
3040
|
+
export function updatePromptResponseFormatPrompts2FromJSON(
|
|
3041
|
+
jsonString: string,
|
|
3042
|
+
): SafeParseResult<UpdatePromptResponseFormatPrompts2, SDKValidationError> {
|
|
3043
|
+
return safeParse(
|
|
3044
|
+
jsonString,
|
|
3045
|
+
(x) =>
|
|
3046
|
+
UpdatePromptResponseFormatPrompts2$inboundSchema.parse(JSON.parse(x)),
|
|
3047
|
+
`Failed to parse 'UpdatePromptResponseFormatPrompts2' from JSON`,
|
|
3048
|
+
);
|
|
3049
|
+
}
|
|
3050
|
+
|
|
3051
|
+
/** @internal */
|
|
3052
|
+
export const UpdatePromptResponseFormatPromptsResponseType$inboundSchema:
|
|
3053
|
+
z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponseType> = z
|
|
3054
|
+
.nativeEnum(UpdatePromptResponseFormatPromptsResponseType);
|
|
3055
|
+
|
|
3056
|
+
/** @internal */
|
|
3057
|
+
export const UpdatePromptResponseFormatPromptsResponseType$outboundSchema:
|
|
3058
|
+
z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponseType> =
|
|
3059
|
+
UpdatePromptResponseFormatPromptsResponseType$inboundSchema;
|
|
3060
|
+
|
|
3061
|
+
/**
|
|
3062
|
+
* @internal
|
|
3063
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3064
|
+
*/
|
|
3065
|
+
export namespace UpdatePromptResponseFormatPromptsResponseType$ {
|
|
3066
|
+
/** @deprecated use `UpdatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
|
|
3067
|
+
export const inboundSchema =
|
|
3068
|
+
UpdatePromptResponseFormatPromptsResponseType$inboundSchema;
|
|
3069
|
+
/** @deprecated use `UpdatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
|
|
3070
|
+
export const outboundSchema =
|
|
3071
|
+
UpdatePromptResponseFormatPromptsResponseType$outboundSchema;
|
|
3072
|
+
}
|
|
3073
|
+
|
|
3074
|
+
/** @internal */
|
|
3075
|
+
export const UpdatePromptResponseFormatPrompts1$inboundSchema: z.ZodType<
|
|
3076
|
+
UpdatePromptResponseFormatPrompts1,
|
|
3077
|
+
z.ZodTypeDef,
|
|
3078
|
+
unknown
|
|
3079
|
+
> = z.object({
|
|
3080
|
+
type: UpdatePromptResponseFormatPromptsResponseType$inboundSchema,
|
|
3081
|
+
});
|
|
3082
|
+
|
|
3083
|
+
/** @internal */
|
|
3084
|
+
export type UpdatePromptResponseFormatPrompts1$Outbound = {
|
|
3085
|
+
type: string;
|
|
3086
|
+
};
|
|
3087
|
+
|
|
3088
|
+
/** @internal */
|
|
3089
|
+
export const UpdatePromptResponseFormatPrompts1$outboundSchema: z.ZodType<
|
|
3090
|
+
UpdatePromptResponseFormatPrompts1$Outbound,
|
|
3091
|
+
z.ZodTypeDef,
|
|
3092
|
+
UpdatePromptResponseFormatPrompts1
|
|
3093
|
+
> = z.object({
|
|
3094
|
+
type: UpdatePromptResponseFormatPromptsResponseType$outboundSchema,
|
|
3095
|
+
});
|
|
3096
|
+
|
|
2897
3097
|
/**
|
|
2898
3098
|
* @internal
|
|
2899
3099
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
@@ -2935,14 +3135,16 @@ export const UpdatePromptPromptsResponseFormat$inboundSchema: z.ZodType<
|
|
|
2935
3135
|
z.ZodTypeDef,
|
|
2936
3136
|
unknown
|
|
2937
3137
|
> = z.union([
|
|
2938
|
-
z.lazy(() => UpdatePromptResponseFormatPrompts1$inboundSchema),
|
|
2939
3138
|
z.lazy(() => UpdatePromptResponseFormatPrompts2$inboundSchema),
|
|
3139
|
+
z.lazy(() => UpdatePromptResponseFormatPrompts1$inboundSchema),
|
|
3140
|
+
z.lazy(() => UpdatePromptResponseFormatPrompts3$inboundSchema),
|
|
2940
3141
|
]);
|
|
2941
3142
|
|
|
2942
3143
|
/** @internal */
|
|
2943
3144
|
export type UpdatePromptPromptsResponseFormat$Outbound =
|
|
3145
|
+
| UpdatePromptResponseFormatPrompts2$Outbound
|
|
2944
3146
|
| UpdatePromptResponseFormatPrompts1$Outbound
|
|
2945
|
-
|
|
|
3147
|
+
| UpdatePromptResponseFormatPrompts3$Outbound;
|
|
2946
3148
|
|
|
2947
3149
|
/** @internal */
|
|
2948
3150
|
export const UpdatePromptPromptsResponseFormat$outboundSchema: z.ZodType<
|
|
@@ -2950,8 +3152,9 @@ export const UpdatePromptPromptsResponseFormat$outboundSchema: z.ZodType<
|
|
|
2950
3152
|
z.ZodTypeDef,
|
|
2951
3153
|
UpdatePromptPromptsResponseFormat
|
|
2952
3154
|
> = z.union([
|
|
2953
|
-
z.lazy(() => UpdatePromptResponseFormatPrompts1$outboundSchema),
|
|
2954
3155
|
z.lazy(() => UpdatePromptResponseFormatPrompts2$outboundSchema),
|
|
3156
|
+
z.lazy(() => UpdatePromptResponseFormatPrompts1$outboundSchema),
|
|
3157
|
+
z.lazy(() => UpdatePromptResponseFormatPrompts3$outboundSchema),
|
|
2955
3158
|
]);
|
|
2956
3159
|
|
|
2957
3160
|
/**
|
|
@@ -3096,8 +3299,9 @@ export const UpdatePromptPromptsModelParameters$inboundSchema: z.ZodType<
|
|
|
3096
3299
|
style: z.string().optional(),
|
|
3097
3300
|
responseFormat: z.nullable(
|
|
3098
3301
|
z.union([
|
|
3099
|
-
z.lazy(() => UpdatePromptResponseFormatPrompts1$inboundSchema),
|
|
3100
3302
|
z.lazy(() => UpdatePromptResponseFormatPrompts2$inboundSchema),
|
|
3303
|
+
z.lazy(() => UpdatePromptResponseFormatPrompts1$inboundSchema),
|
|
3304
|
+
z.lazy(() => UpdatePromptResponseFormatPrompts3$inboundSchema),
|
|
3101
3305
|
]),
|
|
3102
3306
|
).optional(),
|
|
3103
3307
|
photoRealVersion: UpdatePromptPromptsPhotoRealVersion$inboundSchema
|
|
@@ -3127,8 +3331,9 @@ export type UpdatePromptPromptsModelParameters$Outbound = {
|
|
|
3127
3331
|
quality?: string | undefined;
|
|
3128
3332
|
style?: string | undefined;
|
|
3129
3333
|
responseFormat?:
|
|
3130
|
-
| UpdatePromptResponseFormatPrompts1$Outbound
|
|
3131
3334
|
| UpdatePromptResponseFormatPrompts2$Outbound
|
|
3335
|
+
| UpdatePromptResponseFormatPrompts1$Outbound
|
|
3336
|
+
| UpdatePromptResponseFormatPrompts3$Outbound
|
|
3132
3337
|
| null
|
|
3133
3338
|
| undefined;
|
|
3134
3339
|
photoRealVersion?: string | undefined;
|
|
@@ -3158,8 +3363,9 @@ export const UpdatePromptPromptsModelParameters$outboundSchema: z.ZodType<
|
|
|
3158
3363
|
style: z.string().optional(),
|
|
3159
3364
|
responseFormat: z.nullable(
|
|
3160
3365
|
z.union([
|
|
3161
|
-
z.lazy(() => UpdatePromptResponseFormatPrompts1$outboundSchema),
|
|
3162
3366
|
z.lazy(() => UpdatePromptResponseFormatPrompts2$outboundSchema),
|
|
3367
|
+
z.lazy(() => UpdatePromptResponseFormatPrompts1$outboundSchema),
|
|
3368
|
+
z.lazy(() => UpdatePromptResponseFormatPrompts3$outboundSchema),
|
|
3163
3369
|
]),
|
|
3164
3370
|
).optional(),
|
|
3165
3371
|
photoRealVersion: UpdatePromptPromptsPhotoRealVersion$outboundSchema
|