@orq-ai/node 3.10.16 → 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.
Files changed (132) hide show
  1. package/bin/mcp-server.js +608 -378
  2. package/bin/mcp-server.js.map +35 -35
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.js +3 -3
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/operations/createcontact.js +2 -2
  10. package/models/operations/createdataset.js +2 -2
  11. package/models/operations/createdatasetitem.js +2 -2
  12. package/models/operations/createdatasource.js +2 -2
  13. package/models/operations/createeval.js +16 -16
  14. package/models/operations/createprompt.d.ts +163 -69
  15. package/models/operations/createprompt.d.ts.map +1 -1
  16. package/models/operations/createprompt.js +196 -96
  17. package/models/operations/createprompt.js.map +1 -1
  18. package/models/operations/deploymentgetconfig.d.ts +82 -35
  19. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  20. package/models/operations/deploymentgetconfig.js +106 -57
  21. package/models/operations/deploymentgetconfig.js.map +1 -1
  22. package/models/operations/deployments.d.ts +82 -35
  23. package/models/operations/deployments.d.ts.map +1 -1
  24. package/models/operations/deployments.js +99 -49
  25. package/models/operations/deployments.js.map +1 -1
  26. package/models/operations/fileget.js +2 -2
  27. package/models/operations/filelist.js +2 -2
  28. package/models/operations/fileupload.js +2 -2
  29. package/models/operations/getallprompts.d.ts +81 -34
  30. package/models/operations/getallprompts.d.ts.map +1 -1
  31. package/models/operations/getallprompts.js +99 -49
  32. package/models/operations/getallprompts.js.map +1 -1
  33. package/models/operations/getevals.js +28 -28
  34. package/models/operations/getoneprompt.d.ts +81 -34
  35. package/models/operations/getoneprompt.d.ts.map +1 -1
  36. package/models/operations/getoneprompt.js +99 -49
  37. package/models/operations/getoneprompt.js.map +1 -1
  38. package/models/operations/getpromptversion.d.ts +81 -34
  39. package/models/operations/getpromptversion.d.ts.map +1 -1
  40. package/models/operations/getpromptversion.js +100 -50
  41. package/models/operations/getpromptversion.js.map +1 -1
  42. package/models/operations/listcontacts.js +2 -2
  43. package/models/operations/listdatasetdatapoints.js +2 -2
  44. package/models/operations/listdatasets.js +2 -2
  45. package/models/operations/listdatasources.js +2 -2
  46. package/models/operations/listpromptversions.d.ts +81 -34
  47. package/models/operations/listpromptversions.d.ts.map +1 -1
  48. package/models/operations/listpromptversions.js +99 -50
  49. package/models/operations/listpromptversions.js.map +1 -1
  50. package/models/operations/retrievecontact.js +2 -2
  51. package/models/operations/retrievedatapoint.js +2 -2
  52. package/models/operations/retrievedataset.js +2 -2
  53. package/models/operations/retrievedatasource.js +2 -2
  54. package/models/operations/updatecontact.js +2 -2
  55. package/models/operations/updatedatapoint.js +2 -2
  56. package/models/operations/updatedataset.js +2 -2
  57. package/models/operations/updatedatasource.js +2 -2
  58. package/models/operations/updateeval.js +16 -16
  59. package/models/operations/updateprompt.d.ts +162 -68
  60. package/models/operations/updateprompt.d.ts.map +1 -1
  61. package/models/operations/updateprompt.js +197 -97
  62. package/models/operations/updateprompt.js.map +1 -1
  63. package/package.json +1 -1
  64. package/packages/orq-rc/docs/sdks/datasets/README.md +1 -1
  65. package/packages/orq-rc/docs/sdks/knowledge/README.md +1 -1
  66. package/packages/orq-rc/examples/package-lock.json +1 -1
  67. package/packages/orq-rc/jsr.json +1 -1
  68. package/packages/orq-rc/package-lock.json +2 -2
  69. package/packages/orq-rc/package.json +1 -1
  70. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +5 -4
  71. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +4 -4
  72. package/packages/orq-rc/src/lib/config.ts +3 -3
  73. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  74. package/packages/orq-rc/src/mcp-server/server.ts +1 -1
  75. package/packages/orq-rc/src/models/operations/createchunk.ts +54 -44
  76. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  77. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  78. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +46 -63
  79. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  80. package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
  81. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  82. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  83. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  84. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  85. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  86. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  87. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  88. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  89. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  90. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  91. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  92. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  93. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  94. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  95. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  96. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  97. package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
  98. package/packages/orq-rc/src/sdk/datasets.ts +1 -1
  99. package/packages/orq-rc/src/sdk/knowledge.ts +1 -1
  100. package/src/lib/config.ts +3 -3
  101. package/src/mcp-server/mcp-server.ts +1 -1
  102. package/src/mcp-server/server.ts +1 -1
  103. package/src/models/operations/createcontact.ts +2 -2
  104. package/src/models/operations/createdataset.ts +2 -2
  105. package/src/models/operations/createdatasetitem.ts +2 -2
  106. package/src/models/operations/createdatasource.ts +2 -2
  107. package/src/models/operations/createeval.ts +16 -16
  108. package/src/models/operations/createprompt.ts +347 -141
  109. package/src/models/operations/deploymentgetconfig.ts +173 -72
  110. package/src/models/operations/deployments.ts +168 -72
  111. package/src/models/operations/fileget.ts +2 -2
  112. package/src/models/operations/filelist.ts +2 -2
  113. package/src/models/operations/fileupload.ts +2 -2
  114. package/src/models/operations/getallprompts.ts +169 -71
  115. package/src/models/operations/getevals.ts +28 -28
  116. package/src/models/operations/getoneprompt.ts +169 -71
  117. package/src/models/operations/getpromptversion.ts +168 -70
  118. package/src/models/operations/listcontacts.ts +2 -2
  119. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  120. package/src/models/operations/listdatasets.ts +2 -2
  121. package/src/models/operations/listdatasources.ts +2 -2
  122. package/src/models/operations/listpromptversions.ts +170 -71
  123. package/src/models/operations/retrievecontact.ts +2 -2
  124. package/src/models/operations/retrievedatapoint.ts +2 -2
  125. package/src/models/operations/retrievedataset.ts +2 -2
  126. package/src/models/operations/retrievedatasource.ts +2 -2
  127. package/src/models/operations/updatecontact.ts +2 -2
  128. package/src/models/operations/updatedatapoint.ts +2 -2
  129. package/src/models/operations/updatedataset.ts +2 -2
  130. package/src/models/operations/updatedatasource.ts +2 -2
  131. package/src/models/operations/updateeval.ts +16 -16
  132. package/src/models/operations/updateprompt.ts +347 -141
@@ -42,21 +42,23 @@ export const CreatePromptFormat = {
42
42
  */
43
43
  export type CreatePromptFormat = ClosedEnum<typeof CreatePromptFormat>;
44
44
 
45
- export const CreatePromptResponseFormatType = {
45
+ export const CreatePromptResponseFormatPromptsType = {
46
46
  JsonObject: "json_object",
47
47
  } as const;
48
- export type CreatePromptResponseFormatType = ClosedEnum<
49
- typeof CreatePromptResponseFormatType
48
+ export type CreatePromptResponseFormatPromptsType = ClosedEnum<
49
+ typeof CreatePromptResponseFormatPromptsType
50
50
  >;
51
51
 
52
- export type ResponseFormat2 = {
53
- type: CreatePromptResponseFormatType;
52
+ export type ResponseFormat3 = {
53
+ type: CreatePromptResponseFormatPromptsType;
54
54
  };
55
55
 
56
- export const ResponseFormatType = {
56
+ export const CreatePromptResponseFormatType = {
57
57
  JsonSchema: "json_schema",
58
58
  } as const;
59
- export type ResponseFormatType = ClosedEnum<typeof ResponseFormatType>;
59
+ export type CreatePromptResponseFormatType = ClosedEnum<
60
+ typeof CreatePromptResponseFormatType
61
+ >;
60
62
 
61
63
  export type JsonSchema = {
62
64
  name: string;
@@ -64,9 +66,18 @@ export type JsonSchema = {
64
66
  schema: { [k: string]: any };
65
67
  };
66
68
 
69
+ export type ResponseFormat2 = {
70
+ type: CreatePromptResponseFormatType;
71
+ jsonSchema: JsonSchema;
72
+ };
73
+
74
+ export const ResponseFormatType = {
75
+ Text: "text",
76
+ } as const;
77
+ export type ResponseFormatType = ClosedEnum<typeof ResponseFormatType>;
78
+
67
79
  export type ResponseFormat1 = {
68
80
  type: ResponseFormatType;
69
- jsonSchema: JsonSchema;
70
81
  };
71
82
 
72
83
  /**
@@ -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 = ResponseFormat1 | ResponseFormat2;
94
+ export type ResponseFormat =
95
+ | ResponseFormat2
96
+ | ResponseFormat1
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?: ResponseFormat1 | ResponseFormat2 | null | undefined;
213
+ responseFormat?:
214
+ | ResponseFormat2
215
+ | ResponseFormat1
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,23 @@ export type CreatePromptPromptsFormat = ClosedEnum<
511
530
  typeof CreatePromptPromptsFormat
512
531
  >;
513
532
 
514
- export const CreatePromptResponseFormatPromptsResponseType = {
533
+ export const CreatePromptResponseFormatPromptsResponse200ApplicationJSONType = {
515
534
  JsonObject: "json_object",
516
535
  } as const;
517
- export type CreatePromptResponseFormatPromptsResponseType = ClosedEnum<
518
- typeof CreatePromptResponseFormatPromptsResponseType
519
- >;
536
+ export type CreatePromptResponseFormatPromptsResponse200ApplicationJSONType =
537
+ ClosedEnum<
538
+ typeof CreatePromptResponseFormatPromptsResponse200ApplicationJSONType
539
+ >;
520
540
 
521
- export type CreatePromptResponseFormat2 = {
522
- type: CreatePromptResponseFormatPromptsResponseType;
541
+ export type CreatePromptResponseFormat3 = {
542
+ type: CreatePromptResponseFormatPromptsResponse200ApplicationJSONType;
523
543
  };
524
544
 
525
- export const CreatePromptResponseFormatPromptsType = {
545
+ export const CreatePromptResponseFormatPromptsResponse200Type = {
526
546
  JsonSchema: "json_schema",
527
547
  } as const;
528
- export type CreatePromptResponseFormatPromptsType = ClosedEnum<
529
- typeof CreatePromptResponseFormatPromptsType
548
+ export type CreatePromptResponseFormatPromptsResponse200Type = ClosedEnum<
549
+ typeof CreatePromptResponseFormatPromptsResponse200Type
530
550
  >;
531
551
 
532
552
  export type CreatePromptResponseFormatJsonSchema = {
@@ -535,11 +555,22 @@ export type CreatePromptResponseFormatJsonSchema = {
535
555
  schema: { [k: string]: any };
536
556
  };
537
557
 
538
- export type CreatePromptResponseFormat1 = {
539
- type: CreatePromptResponseFormatPromptsType;
558
+ export type CreatePromptResponseFormat2 = {
559
+ type: CreatePromptResponseFormatPromptsResponse200Type;
540
560
  jsonSchema: CreatePromptResponseFormatJsonSchema;
541
561
  };
542
562
 
563
+ export const CreatePromptResponseFormatPromptsResponseType = {
564
+ Text: "text",
565
+ } as const;
566
+ export type CreatePromptResponseFormatPromptsResponseType = ClosedEnum<
567
+ typeof CreatePromptResponseFormatPromptsResponseType
568
+ >;
569
+
570
+ export type CreatePromptResponseFormat1 = {
571
+ type: CreatePromptResponseFormatPromptsResponseType;
572
+ };
573
+
543
574
  /**
544
575
  * An object specifying the format that the model must output.
545
576
  *
@@ -552,8 +583,9 @@ export type CreatePromptResponseFormat1 = {
552
583
  * 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.
553
584
  */
554
585
  export type CreatePromptResponseFormat =
586
+ | CreatePromptResponseFormat2
555
587
  | CreatePromptResponseFormat1
556
- | 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
@@ -676,8 +708,9 @@ export type CreatePromptModelParameters = {
676
708
  * 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.
677
709
  */
678
710
  responseFormat?:
679
- | CreatePromptResponseFormat1
680
711
  | CreatePromptResponseFormat2
712
+ | CreatePromptResponseFormat1
713
+ | CreatePromptResponseFormat3
681
714
  | null
682
715
  | undefined;
683
716
  /**
@@ -1024,97 +1057,100 @@ export namespace CreatePromptFormat$ {
1024
1057
  }
1025
1058
 
1026
1059
  /** @internal */
1027
- export const CreatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
1028
- typeof CreatePromptResponseFormatType
1029
- > = z.nativeEnum(CreatePromptResponseFormatType);
1060
+ export const CreatePromptResponseFormatPromptsType$inboundSchema:
1061
+ z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType> = z.nativeEnum(
1062
+ CreatePromptResponseFormatPromptsType,
1063
+ );
1030
1064
 
1031
1065
  /** @internal */
1032
- export const CreatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
1033
- typeof CreatePromptResponseFormatType
1034
- > = CreatePromptResponseFormatType$inboundSchema;
1066
+ export const CreatePromptResponseFormatPromptsType$outboundSchema:
1067
+ z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType> =
1068
+ CreatePromptResponseFormatPromptsType$inboundSchema;
1035
1069
 
1036
1070
  /**
1037
1071
  * @internal
1038
1072
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1039
1073
  */
1040
- export namespace CreatePromptResponseFormatType$ {
1041
- /** @deprecated use `CreatePromptResponseFormatType$inboundSchema` instead. */
1042
- export const inboundSchema = CreatePromptResponseFormatType$inboundSchema;
1043
- /** @deprecated use `CreatePromptResponseFormatType$outboundSchema` instead. */
1044
- export const outboundSchema = CreatePromptResponseFormatType$outboundSchema;
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;
1045
1081
  }
1046
1082
 
1047
1083
  /** @internal */
1048
- export const ResponseFormat2$inboundSchema: z.ZodType<
1049
- ResponseFormat2,
1084
+ export const ResponseFormat3$inboundSchema: z.ZodType<
1085
+ ResponseFormat3,
1050
1086
  z.ZodTypeDef,
1051
1087
  unknown
1052
1088
  > = z.object({
1053
- type: CreatePromptResponseFormatType$inboundSchema,
1089
+ type: CreatePromptResponseFormatPromptsType$inboundSchema,
1054
1090
  });
1055
1091
 
1056
1092
  /** @internal */
1057
- export type ResponseFormat2$Outbound = {
1093
+ export type ResponseFormat3$Outbound = {
1058
1094
  type: string;
1059
1095
  };
1060
1096
 
1061
1097
  /** @internal */
1062
- export const ResponseFormat2$outboundSchema: z.ZodType<
1063
- ResponseFormat2$Outbound,
1098
+ export const ResponseFormat3$outboundSchema: z.ZodType<
1099
+ ResponseFormat3$Outbound,
1064
1100
  z.ZodTypeDef,
1065
- ResponseFormat2
1101
+ ResponseFormat3
1066
1102
  > = z.object({
1067
- type: CreatePromptResponseFormatType$outboundSchema,
1103
+ type: CreatePromptResponseFormatPromptsType$outboundSchema,
1068
1104
  });
1069
1105
 
1070
1106
  /**
1071
1107
  * @internal
1072
1108
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1073
1109
  */
1074
- export namespace ResponseFormat2$ {
1075
- /** @deprecated use `ResponseFormat2$inboundSchema` instead. */
1076
- export const inboundSchema = ResponseFormat2$inboundSchema;
1077
- /** @deprecated use `ResponseFormat2$outboundSchema` instead. */
1078
- export const outboundSchema = ResponseFormat2$outboundSchema;
1079
- /** @deprecated use `ResponseFormat2$Outbound` instead. */
1080
- export type Outbound = ResponseFormat2$Outbound;
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;
1081
1117
  }
1082
1118
 
1083
- export function responseFormat2ToJSON(
1084
- responseFormat2: ResponseFormat2,
1119
+ export function responseFormat3ToJSON(
1120
+ responseFormat3: ResponseFormat3,
1085
1121
  ): string {
1086
- return JSON.stringify(ResponseFormat2$outboundSchema.parse(responseFormat2));
1122
+ return JSON.stringify(ResponseFormat3$outboundSchema.parse(responseFormat3));
1087
1123
  }
1088
1124
 
1089
- export function responseFormat2FromJSON(
1125
+ export function responseFormat3FromJSON(
1090
1126
  jsonString: string,
1091
- ): SafeParseResult<ResponseFormat2, SDKValidationError> {
1127
+ ): SafeParseResult<ResponseFormat3, SDKValidationError> {
1092
1128
  return safeParse(
1093
1129
  jsonString,
1094
- (x) => ResponseFormat2$inboundSchema.parse(JSON.parse(x)),
1095
- `Failed to parse 'ResponseFormat2' from JSON`,
1130
+ (x) => ResponseFormat3$inboundSchema.parse(JSON.parse(x)),
1131
+ `Failed to parse 'ResponseFormat3' from JSON`,
1096
1132
  );
1097
1133
  }
1098
1134
 
1099
1135
  /** @internal */
1100
- export const ResponseFormatType$inboundSchema: z.ZodNativeEnum<
1101
- typeof ResponseFormatType
1102
- > = z.nativeEnum(ResponseFormatType);
1136
+ export const CreatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
1137
+ typeof CreatePromptResponseFormatType
1138
+ > = z.nativeEnum(CreatePromptResponseFormatType);
1103
1139
 
1104
1140
  /** @internal */
1105
- export const ResponseFormatType$outboundSchema: z.ZodNativeEnum<
1106
- typeof ResponseFormatType
1107
- > = ResponseFormatType$inboundSchema;
1141
+ export const CreatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
1142
+ typeof CreatePromptResponseFormatType
1143
+ > = CreatePromptResponseFormatType$inboundSchema;
1108
1144
 
1109
1145
  /**
1110
1146
  * @internal
1111
1147
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1112
1148
  */
1113
- export namespace ResponseFormatType$ {
1114
- /** @deprecated use `ResponseFormatType$inboundSchema` instead. */
1115
- export const inboundSchema = ResponseFormatType$inboundSchema;
1116
- /** @deprecated use `ResponseFormatType$outboundSchema` instead. */
1117
- export const outboundSchema = ResponseFormatType$outboundSchema;
1149
+ export namespace CreatePromptResponseFormatType$ {
1150
+ /** @deprecated use `CreatePromptResponseFormatType$inboundSchema` instead. */
1151
+ export const inboundSchema = CreatePromptResponseFormatType$inboundSchema;
1152
+ /** @deprecated use `CreatePromptResponseFormatType$outboundSchema` instead. */
1153
+ export const outboundSchema = CreatePromptResponseFormatType$outboundSchema;
1118
1154
  }
1119
1155
 
1120
1156
  /** @internal */
@@ -1174,12 +1210,12 @@ export function jsonSchemaFromJSON(
1174
1210
  }
1175
1211
 
1176
1212
  /** @internal */
1177
- export const ResponseFormat1$inboundSchema: z.ZodType<
1178
- ResponseFormat1,
1213
+ export const ResponseFormat2$inboundSchema: z.ZodType<
1214
+ ResponseFormat2,
1179
1215
  z.ZodTypeDef,
1180
1216
  unknown
1181
1217
  > = z.object({
1182
- type: ResponseFormatType$inboundSchema,
1218
+ type: CreatePromptResponseFormatType$inboundSchema,
1183
1219
  json_schema: z.lazy(() => JsonSchema$inboundSchema),
1184
1220
  }).transform((v) => {
1185
1221
  return remap$(v, {
@@ -1188,18 +1224,18 @@ export const ResponseFormat1$inboundSchema: z.ZodType<
1188
1224
  });
1189
1225
 
1190
1226
  /** @internal */
1191
- export type ResponseFormat1$Outbound = {
1227
+ export type ResponseFormat2$Outbound = {
1192
1228
  type: string;
1193
1229
  json_schema: JsonSchema$Outbound;
1194
1230
  };
1195
1231
 
1196
1232
  /** @internal */
1197
- export const ResponseFormat1$outboundSchema: z.ZodType<
1198
- ResponseFormat1$Outbound,
1233
+ export const ResponseFormat2$outboundSchema: z.ZodType<
1234
+ ResponseFormat2$Outbound,
1199
1235
  z.ZodTypeDef,
1200
- ResponseFormat1
1236
+ ResponseFormat2
1201
1237
  > = z.object({
1202
- type: ResponseFormatType$outboundSchema,
1238
+ type: CreatePromptResponseFormatType$outboundSchema,
1203
1239
  jsonSchema: z.lazy(() => JsonSchema$outboundSchema),
1204
1240
  }).transform((v) => {
1205
1241
  return remap$(v, {
@@ -1207,6 +1243,79 @@ export const ResponseFormat1$outboundSchema: z.ZodType<
1207
1243
  });
1208
1244
  });
1209
1245
 
1246
+ /**
1247
+ * @internal
1248
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1249
+ */
1250
+ export namespace ResponseFormat2$ {
1251
+ /** @deprecated use `ResponseFormat2$inboundSchema` instead. */
1252
+ export const inboundSchema = ResponseFormat2$inboundSchema;
1253
+ /** @deprecated use `ResponseFormat2$outboundSchema` instead. */
1254
+ export const outboundSchema = ResponseFormat2$outboundSchema;
1255
+ /** @deprecated use `ResponseFormat2$Outbound` instead. */
1256
+ export type Outbound = ResponseFormat2$Outbound;
1257
+ }
1258
+
1259
+ export function responseFormat2ToJSON(
1260
+ responseFormat2: ResponseFormat2,
1261
+ ): string {
1262
+ return JSON.stringify(ResponseFormat2$outboundSchema.parse(responseFormat2));
1263
+ }
1264
+
1265
+ export function responseFormat2FromJSON(
1266
+ jsonString: string,
1267
+ ): SafeParseResult<ResponseFormat2, SDKValidationError> {
1268
+ return safeParse(
1269
+ jsonString,
1270
+ (x) => ResponseFormat2$inboundSchema.parse(JSON.parse(x)),
1271
+ `Failed to parse 'ResponseFormat2' from JSON`,
1272
+ );
1273
+ }
1274
+
1275
+ /** @internal */
1276
+ export const ResponseFormatType$inboundSchema: z.ZodNativeEnum<
1277
+ typeof ResponseFormatType
1278
+ > = z.nativeEnum(ResponseFormatType);
1279
+
1280
+ /** @internal */
1281
+ export const ResponseFormatType$outboundSchema: z.ZodNativeEnum<
1282
+ typeof ResponseFormatType
1283
+ > = ResponseFormatType$inboundSchema;
1284
+
1285
+ /**
1286
+ * @internal
1287
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1288
+ */
1289
+ export namespace ResponseFormatType$ {
1290
+ /** @deprecated use `ResponseFormatType$inboundSchema` instead. */
1291
+ export const inboundSchema = ResponseFormatType$inboundSchema;
1292
+ /** @deprecated use `ResponseFormatType$outboundSchema` instead. */
1293
+ export const outboundSchema = ResponseFormatType$outboundSchema;
1294
+ }
1295
+
1296
+ /** @internal */
1297
+ export const ResponseFormat1$inboundSchema: z.ZodType<
1298
+ ResponseFormat1,
1299
+ z.ZodTypeDef,
1300
+ unknown
1301
+ > = z.object({
1302
+ type: ResponseFormatType$inboundSchema,
1303
+ });
1304
+
1305
+ /** @internal */
1306
+ export type ResponseFormat1$Outbound = {
1307
+ type: string;
1308
+ };
1309
+
1310
+ /** @internal */
1311
+ export const ResponseFormat1$outboundSchema: z.ZodType<
1312
+ ResponseFormat1$Outbound,
1313
+ z.ZodTypeDef,
1314
+ ResponseFormat1
1315
+ > = z.object({
1316
+ type: ResponseFormatType$outboundSchema,
1317
+ });
1318
+
1210
1319
  /**
1211
1320
  * @internal
1212
1321
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
@@ -1242,14 +1351,16 @@ export const ResponseFormat$inboundSchema: z.ZodType<
1242
1351
  z.ZodTypeDef,
1243
1352
  unknown
1244
1353
  > = z.union([
1245
- z.lazy(() => ResponseFormat1$inboundSchema),
1246
1354
  z.lazy(() => ResponseFormat2$inboundSchema),
1355
+ z.lazy(() => ResponseFormat1$inboundSchema),
1356
+ z.lazy(() => ResponseFormat3$inboundSchema),
1247
1357
  ]);
1248
1358
 
1249
1359
  /** @internal */
1250
1360
  export type ResponseFormat$Outbound =
1361
+ | ResponseFormat2$Outbound
1251
1362
  | ResponseFormat1$Outbound
1252
- | ResponseFormat2$Outbound;
1363
+ | ResponseFormat3$Outbound;
1253
1364
 
1254
1365
  /** @internal */
1255
1366
  export const ResponseFormat$outboundSchema: z.ZodType<
@@ -1257,8 +1368,9 @@ export const ResponseFormat$outboundSchema: z.ZodType<
1257
1368
  z.ZodTypeDef,
1258
1369
  ResponseFormat
1259
1370
  > = z.union([
1260
- z.lazy(() => ResponseFormat1$outboundSchema),
1261
1371
  z.lazy(() => ResponseFormat2$outboundSchema),
1372
+ z.lazy(() => ResponseFormat1$outboundSchema),
1373
+ z.lazy(() => ResponseFormat3$outboundSchema),
1262
1374
  ]);
1263
1375
 
1264
1376
  /**
@@ -1390,8 +1502,9 @@ export const ModelParameters$inboundSchema: z.ZodType<
1390
1502
  style: z.string().optional(),
1391
1503
  responseFormat: z.nullable(
1392
1504
  z.union([
1393
- z.lazy(() => ResponseFormat1$inboundSchema),
1394
1505
  z.lazy(() => ResponseFormat2$inboundSchema),
1506
+ z.lazy(() => ResponseFormat1$inboundSchema),
1507
+ z.lazy(() => ResponseFormat3$inboundSchema),
1395
1508
  ]),
1396
1509
  ).optional(),
1397
1510
  photoRealVersion: PhotoRealVersion$inboundSchema.optional(),
@@ -1420,8 +1533,9 @@ export type ModelParameters$Outbound = {
1420
1533
  quality?: string | undefined;
1421
1534
  style?: string | undefined;
1422
1535
  responseFormat?:
1423
- | ResponseFormat1$Outbound
1424
1536
  | ResponseFormat2$Outbound
1537
+ | ResponseFormat1$Outbound
1538
+ | ResponseFormat3$Outbound
1425
1539
  | null
1426
1540
  | undefined;
1427
1541
  photoRealVersion?: string | undefined;
@@ -1451,8 +1565,9 @@ export const ModelParameters$outboundSchema: z.ZodType<
1451
1565
  style: z.string().optional(),
1452
1566
  responseFormat: z.nullable(
1453
1567
  z.union([
1454
- z.lazy(() => ResponseFormat1$outboundSchema),
1455
1568
  z.lazy(() => ResponseFormat2$outboundSchema),
1569
+ z.lazy(() => ResponseFormat1$outboundSchema),
1570
+ z.lazy(() => ResponseFormat3$outboundSchema),
1456
1571
  ]),
1457
1572
  ).optional(),
1458
1573
  photoRealVersion: PhotoRealVersion$outboundSchema.optional(),
@@ -2569,106 +2684,112 @@ export namespace CreatePromptPromptsFormat$ {
2569
2684
  }
2570
2685
 
2571
2686
  /** @internal */
2572
- export const CreatePromptResponseFormatPromptsResponseType$inboundSchema:
2573
- z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType> = z
2574
- .nativeEnum(CreatePromptResponseFormatPromptsResponseType);
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 CreatePromptResponseFormatPromptsResponseType$outboundSchema:
2578
- z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType> =
2579
- CreatePromptResponseFormatPromptsResponseType$inboundSchema;
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 CreatePromptResponseFormatPromptsResponseType$ {
2586
- /** @deprecated use `CreatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
2705
+ export namespace CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$ {
2706
+ /** @deprecated use `CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema` instead. */
2587
2707
  export const inboundSchema =
2588
- CreatePromptResponseFormatPromptsResponseType$inboundSchema;
2589
- /** @deprecated use `CreatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
2708
+ CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema;
2709
+ /** @deprecated use `CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema` instead. */
2590
2710
  export const outboundSchema =
2591
- CreatePromptResponseFormatPromptsResponseType$outboundSchema;
2711
+ CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema;
2592
2712
  }
2593
2713
 
2594
2714
  /** @internal */
2595
- export const CreatePromptResponseFormat2$inboundSchema: z.ZodType<
2596
- CreatePromptResponseFormat2,
2715
+ export const CreatePromptResponseFormat3$inboundSchema: z.ZodType<
2716
+ CreatePromptResponseFormat3,
2597
2717
  z.ZodTypeDef,
2598
2718
  unknown
2599
2719
  > = z.object({
2600
- type: CreatePromptResponseFormatPromptsResponseType$inboundSchema,
2720
+ type:
2721
+ CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema,
2601
2722
  });
2602
2723
 
2603
2724
  /** @internal */
2604
- export type CreatePromptResponseFormat2$Outbound = {
2725
+ export type CreatePromptResponseFormat3$Outbound = {
2605
2726
  type: string;
2606
2727
  };
2607
2728
 
2608
2729
  /** @internal */
2609
- export const CreatePromptResponseFormat2$outboundSchema: z.ZodType<
2610
- CreatePromptResponseFormat2$Outbound,
2730
+ export const CreatePromptResponseFormat3$outboundSchema: z.ZodType<
2731
+ CreatePromptResponseFormat3$Outbound,
2611
2732
  z.ZodTypeDef,
2612
- CreatePromptResponseFormat2
2733
+ CreatePromptResponseFormat3
2613
2734
  > = z.object({
2614
- type: CreatePromptResponseFormatPromptsResponseType$outboundSchema,
2735
+ type:
2736
+ CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema,
2615
2737
  });
2616
2738
 
2617
2739
  /**
2618
2740
  * @internal
2619
2741
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2620
2742
  */
2621
- export namespace CreatePromptResponseFormat2$ {
2622
- /** @deprecated use `CreatePromptResponseFormat2$inboundSchema` instead. */
2623
- export const inboundSchema = CreatePromptResponseFormat2$inboundSchema;
2624
- /** @deprecated use `CreatePromptResponseFormat2$outboundSchema` instead. */
2625
- export const outboundSchema = CreatePromptResponseFormat2$outboundSchema;
2626
- /** @deprecated use `CreatePromptResponseFormat2$Outbound` instead. */
2627
- export type Outbound = CreatePromptResponseFormat2$Outbound;
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;
2628
2750
  }
2629
2751
 
2630
- export function createPromptResponseFormat2ToJSON(
2631
- createPromptResponseFormat2: CreatePromptResponseFormat2,
2752
+ export function createPromptResponseFormat3ToJSON(
2753
+ createPromptResponseFormat3: CreatePromptResponseFormat3,
2632
2754
  ): string {
2633
2755
  return JSON.stringify(
2634
- CreatePromptResponseFormat2$outboundSchema.parse(
2635
- createPromptResponseFormat2,
2756
+ CreatePromptResponseFormat3$outboundSchema.parse(
2757
+ createPromptResponseFormat3,
2636
2758
  ),
2637
2759
  );
2638
2760
  }
2639
2761
 
2640
- export function createPromptResponseFormat2FromJSON(
2762
+ export function createPromptResponseFormat3FromJSON(
2641
2763
  jsonString: string,
2642
- ): SafeParseResult<CreatePromptResponseFormat2, SDKValidationError> {
2764
+ ): SafeParseResult<CreatePromptResponseFormat3, SDKValidationError> {
2643
2765
  return safeParse(
2644
2766
  jsonString,
2645
- (x) => CreatePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
2646
- `Failed to parse 'CreatePromptResponseFormat2' from JSON`,
2767
+ (x) => CreatePromptResponseFormat3$inboundSchema.parse(JSON.parse(x)),
2768
+ `Failed to parse 'CreatePromptResponseFormat3' from JSON`,
2647
2769
  );
2648
2770
  }
2649
2771
 
2650
2772
  /** @internal */
2651
- export const CreatePromptResponseFormatPromptsType$inboundSchema:
2652
- z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType> = z.nativeEnum(
2653
- CreatePromptResponseFormatPromptsType,
2654
- );
2773
+ export const CreatePromptResponseFormatPromptsResponse200Type$inboundSchema:
2774
+ z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponse200Type> = z
2775
+ .nativeEnum(CreatePromptResponseFormatPromptsResponse200Type);
2655
2776
 
2656
2777
  /** @internal */
2657
- export const CreatePromptResponseFormatPromptsType$outboundSchema:
2658
- z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType> =
2659
- CreatePromptResponseFormatPromptsType$inboundSchema;
2778
+ export const CreatePromptResponseFormatPromptsResponse200Type$outboundSchema:
2779
+ z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponse200Type> =
2780
+ CreatePromptResponseFormatPromptsResponse200Type$inboundSchema;
2660
2781
 
2661
2782
  /**
2662
2783
  * @internal
2663
2784
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2664
2785
  */
2665
- export namespace CreatePromptResponseFormatPromptsType$ {
2666
- /** @deprecated use `CreatePromptResponseFormatPromptsType$inboundSchema` instead. */
2786
+ export namespace CreatePromptResponseFormatPromptsResponse200Type$ {
2787
+ /** @deprecated use `CreatePromptResponseFormatPromptsResponse200Type$inboundSchema` instead. */
2667
2788
  export const inboundSchema =
2668
- CreatePromptResponseFormatPromptsType$inboundSchema;
2669
- /** @deprecated use `CreatePromptResponseFormatPromptsType$outboundSchema` instead. */
2789
+ CreatePromptResponseFormatPromptsResponse200Type$inboundSchema;
2790
+ /** @deprecated use `CreatePromptResponseFormatPromptsResponse200Type$outboundSchema` instead. */
2670
2791
  export const outboundSchema =
2671
- CreatePromptResponseFormatPromptsType$outboundSchema;
2792
+ CreatePromptResponseFormatPromptsResponse200Type$outboundSchema;
2672
2793
  }
2673
2794
 
2674
2795
  /** @internal */
@@ -2737,12 +2858,12 @@ export function createPromptResponseFormatJsonSchemaFromJSON(
2737
2858
  }
2738
2859
 
2739
2860
  /** @internal */
2740
- export const CreatePromptResponseFormat1$inboundSchema: z.ZodType<
2741
- CreatePromptResponseFormat1,
2861
+ export const CreatePromptResponseFormat2$inboundSchema: z.ZodType<
2862
+ CreatePromptResponseFormat2,
2742
2863
  z.ZodTypeDef,
2743
2864
  unknown
2744
2865
  > = z.object({
2745
- type: CreatePromptResponseFormatPromptsType$inboundSchema,
2866
+ type: CreatePromptResponseFormatPromptsResponse200Type$inboundSchema,
2746
2867
  json_schema: z.lazy(() => CreatePromptResponseFormatJsonSchema$inboundSchema),
2747
2868
  }).transform((v) => {
2748
2869
  return remap$(v, {
@@ -2751,18 +2872,18 @@ export const CreatePromptResponseFormat1$inboundSchema: z.ZodType<
2751
2872
  });
2752
2873
 
2753
2874
  /** @internal */
2754
- export type CreatePromptResponseFormat1$Outbound = {
2875
+ export type CreatePromptResponseFormat2$Outbound = {
2755
2876
  type: string;
2756
2877
  json_schema: CreatePromptResponseFormatJsonSchema$Outbound;
2757
2878
  };
2758
2879
 
2759
2880
  /** @internal */
2760
- export const CreatePromptResponseFormat1$outboundSchema: z.ZodType<
2761
- CreatePromptResponseFormat1$Outbound,
2881
+ export const CreatePromptResponseFormat2$outboundSchema: z.ZodType<
2882
+ CreatePromptResponseFormat2$Outbound,
2762
2883
  z.ZodTypeDef,
2763
- CreatePromptResponseFormat1
2884
+ CreatePromptResponseFormat2
2764
2885
  > = z.object({
2765
- type: CreatePromptResponseFormatPromptsType$outboundSchema,
2886
+ type: CreatePromptResponseFormatPromptsResponse200Type$outboundSchema,
2766
2887
  jsonSchema: z.lazy(() => CreatePromptResponseFormatJsonSchema$outboundSchema),
2767
2888
  }).transform((v) => {
2768
2889
  return remap$(v, {
@@ -2770,6 +2891,85 @@ export const CreatePromptResponseFormat1$outboundSchema: z.ZodType<
2770
2891
  });
2771
2892
  });
2772
2893
 
2894
+ /**
2895
+ * @internal
2896
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2897
+ */
2898
+ export namespace CreatePromptResponseFormat2$ {
2899
+ /** @deprecated use `CreatePromptResponseFormat2$inboundSchema` instead. */
2900
+ export const inboundSchema = CreatePromptResponseFormat2$inboundSchema;
2901
+ /** @deprecated use `CreatePromptResponseFormat2$outboundSchema` instead. */
2902
+ export const outboundSchema = CreatePromptResponseFormat2$outboundSchema;
2903
+ /** @deprecated use `CreatePromptResponseFormat2$Outbound` instead. */
2904
+ export type Outbound = CreatePromptResponseFormat2$Outbound;
2905
+ }
2906
+
2907
+ export function createPromptResponseFormat2ToJSON(
2908
+ createPromptResponseFormat2: CreatePromptResponseFormat2,
2909
+ ): string {
2910
+ return JSON.stringify(
2911
+ CreatePromptResponseFormat2$outboundSchema.parse(
2912
+ createPromptResponseFormat2,
2913
+ ),
2914
+ );
2915
+ }
2916
+
2917
+ export function createPromptResponseFormat2FromJSON(
2918
+ jsonString: string,
2919
+ ): SafeParseResult<CreatePromptResponseFormat2, SDKValidationError> {
2920
+ return safeParse(
2921
+ jsonString,
2922
+ (x) => CreatePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
2923
+ `Failed to parse 'CreatePromptResponseFormat2' from JSON`,
2924
+ );
2925
+ }
2926
+
2927
+ /** @internal */
2928
+ export const CreatePromptResponseFormatPromptsResponseType$inboundSchema:
2929
+ z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType> = z
2930
+ .nativeEnum(CreatePromptResponseFormatPromptsResponseType);
2931
+
2932
+ /** @internal */
2933
+ export const CreatePromptResponseFormatPromptsResponseType$outboundSchema:
2934
+ z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType> =
2935
+ CreatePromptResponseFormatPromptsResponseType$inboundSchema;
2936
+
2937
+ /**
2938
+ * @internal
2939
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2940
+ */
2941
+ export namespace CreatePromptResponseFormatPromptsResponseType$ {
2942
+ /** @deprecated use `CreatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
2943
+ export const inboundSchema =
2944
+ CreatePromptResponseFormatPromptsResponseType$inboundSchema;
2945
+ /** @deprecated use `CreatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
2946
+ export const outboundSchema =
2947
+ CreatePromptResponseFormatPromptsResponseType$outboundSchema;
2948
+ }
2949
+
2950
+ /** @internal */
2951
+ export const CreatePromptResponseFormat1$inboundSchema: z.ZodType<
2952
+ CreatePromptResponseFormat1,
2953
+ z.ZodTypeDef,
2954
+ unknown
2955
+ > = z.object({
2956
+ type: CreatePromptResponseFormatPromptsResponseType$inboundSchema,
2957
+ });
2958
+
2959
+ /** @internal */
2960
+ export type CreatePromptResponseFormat1$Outbound = {
2961
+ type: string;
2962
+ };
2963
+
2964
+ /** @internal */
2965
+ export const CreatePromptResponseFormat1$outboundSchema: z.ZodType<
2966
+ CreatePromptResponseFormat1$Outbound,
2967
+ z.ZodTypeDef,
2968
+ CreatePromptResponseFormat1
2969
+ > = z.object({
2970
+ type: CreatePromptResponseFormatPromptsResponseType$outboundSchema,
2971
+ });
2972
+
2773
2973
  /**
2774
2974
  * @internal
2775
2975
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
@@ -2809,14 +3009,16 @@ export const CreatePromptResponseFormat$inboundSchema: z.ZodType<
2809
3009
  z.ZodTypeDef,
2810
3010
  unknown
2811
3011
  > = z.union([
2812
- z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
2813
3012
  z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
3013
+ z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
3014
+ z.lazy(() => CreatePromptResponseFormat3$inboundSchema),
2814
3015
  ]);
2815
3016
 
2816
3017
  /** @internal */
2817
3018
  export type CreatePromptResponseFormat$Outbound =
3019
+ | CreatePromptResponseFormat2$Outbound
2818
3020
  | CreatePromptResponseFormat1$Outbound
2819
- | CreatePromptResponseFormat2$Outbound;
3021
+ | CreatePromptResponseFormat3$Outbound;
2820
3022
 
2821
3023
  /** @internal */
2822
3024
  export const CreatePromptResponseFormat$outboundSchema: z.ZodType<
@@ -2824,8 +3026,9 @@ export const CreatePromptResponseFormat$outboundSchema: z.ZodType<
2824
3026
  z.ZodTypeDef,
2825
3027
  CreatePromptResponseFormat
2826
3028
  > = z.union([
2827
- z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
2828
3029
  z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
3030
+ z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
3031
+ z.lazy(() => CreatePromptResponseFormat3$outboundSchema),
2829
3032
  ]);
2830
3033
 
2831
3034
  /**
@@ -2963,8 +3166,9 @@ export const CreatePromptModelParameters$inboundSchema: z.ZodType<
2963
3166
  style: z.string().optional(),
2964
3167
  responseFormat: z.nullable(
2965
3168
  z.union([
2966
- z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
2967
3169
  z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
3170
+ z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
3171
+ z.lazy(() => CreatePromptResponseFormat3$inboundSchema),
2968
3172
  ]),
2969
3173
  ).optional(),
2970
3174
  photoRealVersion: CreatePromptPhotoRealVersion$inboundSchema.optional(),
@@ -2993,8 +3197,9 @@ export type CreatePromptModelParameters$Outbound = {
2993
3197
  quality?: string | undefined;
2994
3198
  style?: string | undefined;
2995
3199
  responseFormat?:
2996
- | CreatePromptResponseFormat1$Outbound
2997
3200
  | CreatePromptResponseFormat2$Outbound
3201
+ | CreatePromptResponseFormat1$Outbound
3202
+ | CreatePromptResponseFormat3$Outbound
2998
3203
  | null
2999
3204
  | undefined;
3000
3205
  photoRealVersion?: string | undefined;
@@ -3024,8 +3229,9 @@ export const CreatePromptModelParameters$outboundSchema: z.ZodType<
3024
3229
  style: z.string().optional(),
3025
3230
  responseFormat: z.nullable(
3026
3231
  z.union([
3027
- z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
3028
3232
  z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
3233
+ z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
3234
+ z.lazy(() => CreatePromptResponseFormat3$outboundSchema),
3029
3235
  ]),
3030
3236
  ).optional(),
3031
3237
  photoRealVersion: CreatePromptPhotoRealVersion$outboundSchema.optional(),