@orq-ai/node 4.0.0-rc.5 → 4.0.0-rc.8

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 (154) hide show
  1. package/bin/mcp-server.js +7488 -544
  2. package/bin/mcp-server.js.map +52 -52
  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/createagent.d.ts +4141 -865
  10. package/models/operations/createagent.d.ts.map +1 -1
  11. package/models/operations/createagent.js +3767 -768
  12. package/models/operations/createagent.js.map +1 -1
  13. package/models/operations/createbudget.js +2 -2
  14. package/models/operations/createcontact.js +2 -2
  15. package/models/operations/createdataset.js +2 -2
  16. package/models/operations/createdatasetitem.js +8 -8
  17. package/models/operations/createdatasource.js +2 -2
  18. package/models/operations/createeval.js +28 -28
  19. package/models/operations/creatememorystore.d.ts +42 -42
  20. package/models/operations/creatememorystore.d.ts.map +1 -1
  21. package/models/operations/creatememorystore.js +61 -63
  22. package/models/operations/creatememorystore.js.map +1 -1
  23. package/models/operations/createprompt.d.ts +263 -263
  24. package/models/operations/createprompt.d.ts.map +1 -1
  25. package/models/operations/createprompt.js +345 -345
  26. package/models/operations/createprompt.js.map +1 -1
  27. package/models/operations/createtool.js +10 -10
  28. package/models/operations/deploymentgetconfig.d.ts +19 -19
  29. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  30. package/models/operations/deploymentgetconfig.js +22 -22
  31. package/models/operations/deploymentgetconfig.js.map +1 -1
  32. package/models/operations/deployments.d.ts +4 -4
  33. package/models/operations/deployments.d.ts.map +1 -1
  34. package/models/operations/deployments.js +4 -4
  35. package/models/operations/deployments.js.map +1 -1
  36. package/models/operations/duplicatetool.js +10 -10
  37. package/models/operations/fileget.js +2 -2
  38. package/models/operations/filelist.js +2 -2
  39. package/models/operations/fileupload.js +2 -2
  40. package/models/operations/getagent.d.ts +1614 -11
  41. package/models/operations/getagent.d.ts.map +1 -1
  42. package/models/operations/getagent.js +1475 -9
  43. package/models/operations/getagent.js.map +1 -1
  44. package/models/operations/getallprompts.d.ts +4 -4
  45. package/models/operations/getallprompts.d.ts.map +1 -1
  46. package/models/operations/getallprompts.js +4 -4
  47. package/models/operations/getallprompts.js.map +1 -1
  48. package/models/operations/getalltools.js +10 -10
  49. package/models/operations/getbudget.js +2 -2
  50. package/models/operations/getevals.js +28 -28
  51. package/models/operations/getoneprompt.d.ts +4 -4
  52. package/models/operations/getoneprompt.d.ts.map +1 -1
  53. package/models/operations/getoneprompt.js +4 -4
  54. package/models/operations/getoneprompt.js.map +1 -1
  55. package/models/operations/getpromptversion.d.ts +4 -4
  56. package/models/operations/getpromptversion.d.ts.map +1 -1
  57. package/models/operations/getpromptversion.js +4 -4
  58. package/models/operations/getpromptversion.js.map +1 -1
  59. package/models/operations/listagents.d.ts +1614 -11
  60. package/models/operations/listagents.d.ts.map +1 -1
  61. package/models/operations/listagents.js +1481 -9
  62. package/models/operations/listagents.js.map +1 -1
  63. package/models/operations/listagenttasks.d.ts +1614 -11
  64. package/models/operations/listagenttasks.d.ts.map +1 -1
  65. package/models/operations/listagenttasks.js +1479 -9
  66. package/models/operations/listagenttasks.js.map +1 -1
  67. package/models/operations/listbudgets.js +2 -2
  68. package/models/operations/listcontacts.js +2 -2
  69. package/models/operations/listdatasetdatapoints.js +8 -8
  70. package/models/operations/listdatasets.js +2 -2
  71. package/models/operations/listdatasources.js +2 -2
  72. package/models/operations/listpromptversions.d.ts +4 -4
  73. package/models/operations/listpromptversions.d.ts.map +1 -1
  74. package/models/operations/listpromptversions.js +4 -4
  75. package/models/operations/listpromptversions.js.map +1 -1
  76. package/models/operations/retrievecontact.js +2 -2
  77. package/models/operations/retrievedatapoint.js +8 -8
  78. package/models/operations/retrievedataset.js +2 -2
  79. package/models/operations/retrievedatasource.js +2 -2
  80. package/models/operations/retrievetool.js +10 -10
  81. package/models/operations/runagent.d.ts +2176 -503
  82. package/models/operations/runagent.d.ts.map +1 -1
  83. package/models/operations/runagent.js +1534 -9
  84. package/models/operations/runagent.js.map +1 -1
  85. package/models/operations/streamrunagent.d.ts +2128 -455
  86. package/models/operations/streamrunagent.d.ts.map +1 -1
  87. package/models/operations/streamrunagent.js +1630 -89
  88. package/models/operations/streamrunagent.js.map +1 -1
  89. package/models/operations/updateagent.d.ts +4129 -853
  90. package/models/operations/updateagent.d.ts.map +1 -1
  91. package/models/operations/updateagent.js +3837 -825
  92. package/models/operations/updateagent.js.map +1 -1
  93. package/models/operations/updatebudget.js +2 -2
  94. package/models/operations/updatecontact.js +2 -2
  95. package/models/operations/updatedatapoint.js +8 -8
  96. package/models/operations/updatedataset.js +2 -2
  97. package/models/operations/updatedatasource.js +2 -2
  98. package/models/operations/updateeval.js +28 -28
  99. package/models/operations/updateprompt.d.ts +8 -8
  100. package/models/operations/updateprompt.d.ts.map +1 -1
  101. package/models/operations/updateprompt.js +8 -8
  102. package/models/operations/updateprompt.js.map +1 -1
  103. package/models/operations/updatetool.js +10 -10
  104. package/package.json +1 -1
  105. package/src/lib/config.ts +3 -3
  106. package/src/mcp-server/mcp-server.ts +1 -1
  107. package/src/mcp-server/server.ts +1 -1
  108. package/src/models/operations/createagent.ts +7853 -1626
  109. package/src/models/operations/createbudget.ts +2 -2
  110. package/src/models/operations/createcontact.ts +2 -2
  111. package/src/models/operations/createdataset.ts +2 -2
  112. package/src/models/operations/createdatasetitem.ts +8 -8
  113. package/src/models/operations/createdatasource.ts +2 -2
  114. package/src/models/operations/createeval.ts +28 -28
  115. package/src/models/operations/creatememorystore.ts +120 -103
  116. package/src/models/operations/createprompt.ts +742 -621
  117. package/src/models/operations/createtool.ts +10 -10
  118. package/src/models/operations/deploymentgetconfig.ts +60 -44
  119. package/src/models/operations/deployments.ts +25 -20
  120. package/src/models/operations/duplicatetool.ts +10 -10
  121. package/src/models/operations/fileget.ts +2 -2
  122. package/src/models/operations/filelist.ts +2 -2
  123. package/src/models/operations/fileupload.ts +2 -2
  124. package/src/models/operations/getagent.ts +3274 -246
  125. package/src/models/operations/getallprompts.ts +30 -20
  126. package/src/models/operations/getalltools.ts +10 -10
  127. package/src/models/operations/getbudget.ts +2 -2
  128. package/src/models/operations/getevals.ts +28 -28
  129. package/src/models/operations/getoneprompt.ts +28 -20
  130. package/src/models/operations/getpromptversion.ts +30 -20
  131. package/src/models/operations/listagents.ts +3351 -270
  132. package/src/models/operations/listagenttasks.ts +3347 -180
  133. package/src/models/operations/listbudgets.ts +2 -2
  134. package/src/models/operations/listcontacts.ts +2 -2
  135. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  136. package/src/models/operations/listdatasets.ts +2 -2
  137. package/src/models/operations/listdatasources.ts +2 -2
  138. package/src/models/operations/listpromptversions.ts +30 -20
  139. package/src/models/operations/retrievecontact.ts +2 -2
  140. package/src/models/operations/retrievedatapoint.ts +8 -8
  141. package/src/models/operations/retrievedataset.ts +2 -2
  142. package/src/models/operations/retrievedatasource.ts +2 -2
  143. package/src/models/operations/retrievetool.ts +10 -10
  144. package/src/models/operations/runagent.ts +3799 -610
  145. package/src/models/operations/streamrunagent.ts +3945 -605
  146. package/src/models/operations/updateagent.ts +8331 -1757
  147. package/src/models/operations/updatebudget.ts +2 -2
  148. package/src/models/operations/updatecontact.ts +2 -2
  149. package/src/models/operations/updatedatapoint.ts +8 -8
  150. package/src/models/operations/updatedataset.ts +2 -2
  151. package/src/models/operations/updatedatasource.ts +2 -2
  152. package/src/models/operations/updateeval.ts +28 -28
  153. package/src/models/operations/updateprompt.ts +58 -40
  154. package/src/models/operations/updatetool.ts +10 -10
@@ -164,7 +164,7 @@ export type CreatePromptContent2 =
164
164
  | CreatePrompt23;
165
165
 
166
166
  /**
167
- * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
167
+ * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts. Can be null for tool messages in certain scenarios.
168
168
  */
169
169
  export type CreatePromptContent =
170
170
  | string
@@ -196,9 +196,12 @@ export type CreatePromptMessages = {
196
196
  */
197
197
  role: CreatePromptRole;
198
198
  /**
199
- * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
199
+ * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts. Can be null for tool messages in certain scenarios.
200
200
  */
201
- content: string | Array<CreatePrompt21 | CreatePrompt22 | CreatePrompt23>;
201
+ content:
202
+ | string
203
+ | Array<CreatePrompt21 | CreatePrompt22 | CreatePrompt23>
204
+ | null;
202
205
  toolCalls?: Array<CreatePromptToolCalls> | undefined;
203
206
  toolCallId?: string | undefined;
204
207
  };
@@ -242,43 +245,45 @@ export const ResponseFormat4 = {
242
245
  } as const;
243
246
  export type ResponseFormat4 = ClosedEnum<typeof ResponseFormat4>;
244
247
 
245
- export const CreatePromptResponseFormatPromptsType = {
248
+ export const CreatePromptResponseFormatPromptsRequestType = {
246
249
  Text: "text",
247
250
  } as const;
248
- export type CreatePromptResponseFormatPromptsType = ClosedEnum<
249
- typeof CreatePromptResponseFormatPromptsType
251
+ export type CreatePromptResponseFormatPromptsRequestType = ClosedEnum<
252
+ typeof CreatePromptResponseFormatPromptsRequestType
250
253
  >;
251
254
 
252
- export type ResponseFormat3 = {
253
- type: CreatePromptResponseFormatPromptsType;
255
+ export type CreatePromptResponseFormat3 = {
256
+ type: CreatePromptResponseFormatPromptsRequestType;
254
257
  };
255
258
 
256
- export const CreatePromptResponseFormatType = {
259
+ export const CreatePromptResponseFormatPromptsType = {
257
260
  JsonObject: "json_object",
258
261
  } as const;
259
- export type CreatePromptResponseFormatType = ClosedEnum<
260
- typeof CreatePromptResponseFormatType
262
+ export type CreatePromptResponseFormatPromptsType = ClosedEnum<
263
+ typeof CreatePromptResponseFormatPromptsType
261
264
  >;
262
265
 
263
- export type ResponseFormat2 = {
264
- type: CreatePromptResponseFormatType;
266
+ export type CreatePromptResponseFormat2 = {
267
+ type: CreatePromptResponseFormatPromptsType;
265
268
  };
266
269
 
267
- export const ResponseFormatType = {
270
+ export const CreatePromptResponseFormatType = {
268
271
  JsonSchema: "json_schema",
269
272
  } as const;
270
- export type ResponseFormatType = ClosedEnum<typeof ResponseFormatType>;
273
+ export type CreatePromptResponseFormatType = ClosedEnum<
274
+ typeof CreatePromptResponseFormatType
275
+ >;
271
276
 
272
- export type JsonSchema = {
277
+ export type CreatePromptResponseFormatJsonSchema = {
273
278
  name: string;
274
279
  description?: string | undefined;
275
280
  strict?: boolean | undefined;
276
281
  schema: { [k: string]: any };
277
282
  };
278
283
 
279
- export type ResponseFormat1 = {
280
- type: ResponseFormatType;
281
- jsonSchema: JsonSchema;
284
+ export type CreatePromptResponseFormat1 = {
285
+ type: CreatePromptResponseFormatType;
286
+ jsonSchema: CreatePromptResponseFormatJsonSchema;
282
287
  };
283
288
 
284
289
  /**
@@ -292,10 +297,10 @@ export type ResponseFormat1 = {
292
297
  *
293
298
  * 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.
294
299
  */
295
- export type ResponseFormat =
296
- | ResponseFormat1
297
- | ResponseFormat2
298
- | ResponseFormat3
300
+ export type CreatePromptResponseFormat =
301
+ | CreatePromptResponseFormat1
302
+ | CreatePromptResponseFormat2
303
+ | CreatePromptResponseFormat3
299
304
  | ResponseFormat4
300
305
  | Five
301
306
  | Six;
@@ -416,9 +421,9 @@ export type ModelParameters = {
416
421
  * 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.
417
422
  */
418
423
  responseFormat?:
419
- | ResponseFormat1
420
- | ResponseFormat2
421
- | ResponseFormat3
424
+ | CreatePromptResponseFormat1
425
+ | CreatePromptResponseFormat2
426
+ | CreatePromptResponseFormat3
422
427
  | ResponseFormat4
423
428
  | Five
424
429
  | Six
@@ -924,15 +929,15 @@ export type CreatePromptPromptsMessages =
924
929
  | CreatePromptMessagesUserMessage
925
930
  | CreatePromptMessagesAssistantMessage;
926
931
 
927
- export const CreatePromptResponseFormatPromptsRequestRequestBodyPromptType = {
932
+ export const CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type = {
928
933
  JsonSchema: "json_schema",
929
934
  } as const;
930
- export type CreatePromptResponseFormatPromptsRequestRequestBodyPromptType =
935
+ export type CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type =
931
936
  ClosedEnum<
932
- typeof CreatePromptResponseFormatPromptsRequestRequestBodyPromptType
937
+ typeof CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type
933
938
  >;
934
939
 
935
- export type ResponseFormatJsonSchema = {
940
+ export type CreatePromptResponseFormatPromptsJsonSchema = {
936
941
  /**
937
942
  * A description of what the response format is for, used by the model to determine how to respond in the format.
938
943
  */
@@ -951,39 +956,40 @@ export type ResponseFormatJsonSchema = {
951
956
  strict?: boolean | undefined;
952
957
  };
953
958
 
954
- export type CreatePromptResponseFormat3 = {
955
- type: CreatePromptResponseFormatPromptsRequestRequestBodyPromptType;
956
- jsonSchema: ResponseFormatJsonSchema;
959
+ export type CreatePromptResponseFormatPrompts3 = {
960
+ type: CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type;
961
+ jsonSchema: CreatePromptResponseFormatPromptsJsonSchema;
957
962
  };
958
963
 
959
- export const CreatePromptResponseFormatPromptsRequestRequestBodyType = {
964
+ export const CreatePromptResponseFormatPromptsRequestRequestBodyPromptType = {
960
965
  JsonObject: "json_object",
961
966
  } as const;
962
- export type CreatePromptResponseFormatPromptsRequestRequestBodyType =
963
- ClosedEnum<typeof CreatePromptResponseFormatPromptsRequestRequestBodyType>;
967
+ export type CreatePromptResponseFormatPromptsRequestRequestBodyPromptType =
968
+ ClosedEnum<
969
+ typeof CreatePromptResponseFormatPromptsRequestRequestBodyPromptType
970
+ >;
964
971
 
965
- export type CreatePromptResponseFormat2 = {
966
- type: CreatePromptResponseFormatPromptsRequestRequestBodyType;
972
+ export type CreatePromptResponseFormatPrompts2 = {
973
+ type: CreatePromptResponseFormatPromptsRequestRequestBodyPromptType;
967
974
  };
968
975
 
969
- export const CreatePromptResponseFormatPromptsRequestType = {
976
+ export const CreatePromptResponseFormatPromptsRequestRequestBodyType = {
970
977
  Text: "text",
971
978
  } as const;
972
- export type CreatePromptResponseFormatPromptsRequestType = ClosedEnum<
973
- typeof CreatePromptResponseFormatPromptsRequestType
974
- >;
979
+ export type CreatePromptResponseFormatPromptsRequestRequestBodyType =
980
+ ClosedEnum<typeof CreatePromptResponseFormatPromptsRequestRequestBodyType>;
975
981
 
976
- export type CreatePromptResponseFormat1 = {
977
- type: CreatePromptResponseFormatPromptsRequestType;
982
+ export type CreatePromptResponseFormatPrompts1 = {
983
+ type: CreatePromptResponseFormatPromptsRequestRequestBodyType;
978
984
  };
979
985
 
980
986
  /**
981
987
  * An object specifying the format that the model must output
982
988
  */
983
- export type CreatePromptResponseFormat =
984
- | CreatePromptResponseFormat3
985
- | CreatePromptResponseFormat1
986
- | CreatePromptResponseFormat2;
989
+ export type CreatePromptPromptsResponseFormat =
990
+ | CreatePromptResponseFormatPrompts3
991
+ | CreatePromptResponseFormatPrompts1
992
+ | CreatePromptResponseFormatPrompts2;
987
993
 
988
994
  /**
989
995
  * Prompt configuration with model and messages. Either this field or `prompt_config` must be provided.
@@ -1018,9 +1024,9 @@ export type PromptInput = {
1018
1024
  * An object specifying the format that the model must output
1019
1025
  */
1020
1026
  responseFormat?:
1021
- | CreatePromptResponseFormat3
1022
- | CreatePromptResponseFormat1
1023
- | CreatePromptResponseFormat2
1027
+ | CreatePromptResponseFormatPrompts3
1028
+ | CreatePromptResponseFormatPrompts1
1029
+ | CreatePromptResponseFormatPrompts2
1024
1030
  | undefined;
1025
1031
  };
1026
1032
 
@@ -1137,7 +1143,7 @@ export type CreatePromptResponseFormatPromptsResponse200ApplicationJSONType =
1137
1143
  typeof CreatePromptResponseFormatPromptsResponse200ApplicationJSONType
1138
1144
  >;
1139
1145
 
1140
- export type CreatePromptResponseFormatPrompts3 = {
1146
+ export type CreatePromptResponseFormatPromptsResponse3 = {
1141
1147
  type: CreatePromptResponseFormatPromptsResponse200ApplicationJSONType;
1142
1148
  };
1143
1149
 
@@ -1148,7 +1154,7 @@ export type CreatePromptResponseFormatPromptsResponse200Type = ClosedEnum<
1148
1154
  typeof CreatePromptResponseFormatPromptsResponse200Type
1149
1155
  >;
1150
1156
 
1151
- export type CreatePromptResponseFormatPrompts2 = {
1157
+ export type CreatePromptResponseFormatPromptsResponse2 = {
1152
1158
  type: CreatePromptResponseFormatPromptsResponse200Type;
1153
1159
  };
1154
1160
 
@@ -1159,16 +1165,16 @@ export type CreatePromptResponseFormatPromptsResponseType = ClosedEnum<
1159
1165
  typeof CreatePromptResponseFormatPromptsResponseType
1160
1166
  >;
1161
1167
 
1162
- export type CreatePromptResponseFormatJsonSchema = {
1168
+ export type CreatePromptResponseFormatPromptsResponseJsonSchema = {
1163
1169
  name: string;
1164
1170
  description?: string | undefined;
1165
1171
  strict?: boolean | undefined;
1166
1172
  schema: { [k: string]: any };
1167
1173
  };
1168
1174
 
1169
- export type CreatePromptResponseFormatPrompts1 = {
1175
+ export type CreatePromptResponseFormatPromptsResponse1 = {
1170
1176
  type: CreatePromptResponseFormatPromptsResponseType;
1171
- jsonSchema: CreatePromptResponseFormatJsonSchema;
1177
+ jsonSchema: CreatePromptResponseFormatPromptsResponseJsonSchema;
1172
1178
  };
1173
1179
 
1174
1180
  /**
@@ -1182,10 +1188,10 @@ export type CreatePromptResponseFormatPrompts1 = {
1182
1188
  *
1183
1189
  * 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.
1184
1190
  */
1185
- export type CreatePromptPromptsResponseFormat =
1186
- | CreatePromptResponseFormatPrompts1
1187
- | CreatePromptResponseFormatPrompts2
1188
- | CreatePromptResponseFormatPrompts3
1191
+ export type CreatePromptPromptsResponseResponseFormat =
1192
+ | CreatePromptResponseFormatPromptsResponse1
1193
+ | CreatePromptResponseFormatPromptsResponse2
1194
+ | CreatePromptResponseFormatPromptsResponse3
1189
1195
  | CreatePromptResponseFormat4
1190
1196
  | CreatePromptResponseFormat5
1191
1197
  | CreatePromptResponseFormat6;
@@ -1312,9 +1318,9 @@ export type CreatePromptModelParameters = {
1312
1318
  * 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.
1313
1319
  */
1314
1320
  responseFormat?:
1315
- | CreatePromptResponseFormatPrompts1
1316
- | CreatePromptResponseFormatPrompts2
1317
- | CreatePromptResponseFormatPrompts3
1321
+ | CreatePromptResponseFormatPromptsResponse1
1322
+ | CreatePromptResponseFormatPromptsResponse2
1323
+ | CreatePromptResponseFormatPromptsResponse3
1318
1324
  | CreatePromptResponseFormat4
1319
1325
  | CreatePromptResponseFormat5
1320
1326
  | CreatePromptResponseFormat6
@@ -1480,7 +1486,7 @@ export type CreatePromptContentPromptsResponse2 =
1480
1486
  | CreatePrompt2PromptsResponse3;
1481
1487
 
1482
1488
  /**
1483
- * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
1489
+ * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts. Can be null for tool messages in certain scenarios.
1484
1490
  */
1485
1491
  export type CreatePromptPromptsContent =
1486
1492
  | string
@@ -1518,7 +1524,7 @@ export type CreatePromptPromptsResponseMessages = {
1518
1524
  */
1519
1525
  role: CreatePromptPromptsRole;
1520
1526
  /**
1521
- * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
1527
+ * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts. Can be null for tool messages in certain scenarios.
1522
1528
  */
1523
1529
  content:
1524
1530
  | string
@@ -1526,7 +1532,8 @@ export type CreatePromptPromptsResponseMessages = {
1526
1532
  | CreatePrompt2PromptsResponse1
1527
1533
  | CreatePrompt2PromptsResponse2
1528
1534
  | CreatePrompt2PromptsResponse3
1529
- >;
1535
+ >
1536
+ | null;
1530
1537
  toolCalls?: Array<CreatePromptPromptsToolCalls> | undefined;
1531
1538
  toolCallId?: string | undefined;
1532
1539
  };
@@ -2396,14 +2403,16 @@ export const CreatePromptMessages$inboundSchema: z.ZodType<
2396
2403
  unknown
2397
2404
  > = z.object({
2398
2405
  role: CreatePromptRole$inboundSchema,
2399
- content: z.union([
2400
- z.string(),
2401
- z.array(z.union([
2402
- z.lazy(() => CreatePrompt21$inboundSchema),
2403
- z.lazy(() => CreatePrompt22$inboundSchema),
2404
- z.lazy(() => CreatePrompt23$inboundSchema),
2405
- ])),
2406
- ]),
2406
+ content: z.nullable(
2407
+ z.union([
2408
+ z.string(),
2409
+ z.array(z.union([
2410
+ z.lazy(() => CreatePrompt21$inboundSchema),
2411
+ z.lazy(() => CreatePrompt22$inboundSchema),
2412
+ z.lazy(() => CreatePrompt23$inboundSchema),
2413
+ ])),
2414
+ ]),
2415
+ ),
2407
2416
  tool_calls: z.array(z.lazy(() => CreatePromptToolCalls$inboundSchema))
2408
2417
  .optional(),
2409
2418
  tool_call_id: z.string().optional(),
@@ -2423,7 +2432,8 @@ export type CreatePromptMessages$Outbound = {
2423
2432
  | CreatePrompt21$Outbound
2424
2433
  | CreatePrompt22$Outbound
2425
2434
  | CreatePrompt23$Outbound
2426
- >;
2435
+ >
2436
+ | null;
2427
2437
  tool_calls?: Array<CreatePromptToolCalls$Outbound> | undefined;
2428
2438
  tool_call_id?: string | undefined;
2429
2439
  };
@@ -2435,14 +2445,16 @@ export const CreatePromptMessages$outboundSchema: z.ZodType<
2435
2445
  CreatePromptMessages
2436
2446
  > = z.object({
2437
2447
  role: CreatePromptRole$outboundSchema,
2438
- content: z.union([
2439
- z.string(),
2440
- z.array(z.union([
2441
- z.lazy(() => CreatePrompt21$outboundSchema),
2442
- z.lazy(() => CreatePrompt22$outboundSchema),
2443
- z.lazy(() => CreatePrompt23$outboundSchema),
2444
- ])),
2445
- ]),
2448
+ content: z.nullable(
2449
+ z.union([
2450
+ z.string(),
2451
+ z.array(z.union([
2452
+ z.lazy(() => CreatePrompt21$outboundSchema),
2453
+ z.lazy(() => CreatePrompt22$outboundSchema),
2454
+ z.lazy(() => CreatePrompt23$outboundSchema),
2455
+ ])),
2456
+ ]),
2457
+ ),
2446
2458
  toolCalls: z.array(z.lazy(() => CreatePromptToolCalls$outboundSchema))
2447
2459
  .optional(),
2448
2460
  toolCallId: z.string().optional(),
@@ -2565,178 +2577,188 @@ export namespace ResponseFormat4$ {
2565
2577
  }
2566
2578
 
2567
2579
  /** @internal */
2568
- export const CreatePromptResponseFormatPromptsType$inboundSchema:
2569
- z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType> = z.nativeEnum(
2570
- CreatePromptResponseFormatPromptsType,
2571
- );
2580
+ export const CreatePromptResponseFormatPromptsRequestType$inboundSchema:
2581
+ z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsRequestType> = z
2582
+ .nativeEnum(CreatePromptResponseFormatPromptsRequestType);
2572
2583
 
2573
2584
  /** @internal */
2574
- export const CreatePromptResponseFormatPromptsType$outboundSchema:
2575
- z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType> =
2576
- CreatePromptResponseFormatPromptsType$inboundSchema;
2585
+ export const CreatePromptResponseFormatPromptsRequestType$outboundSchema:
2586
+ z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsRequestType> =
2587
+ CreatePromptResponseFormatPromptsRequestType$inboundSchema;
2577
2588
 
2578
2589
  /**
2579
2590
  * @internal
2580
2591
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2581
2592
  */
2582
- export namespace CreatePromptResponseFormatPromptsType$ {
2583
- /** @deprecated use `CreatePromptResponseFormatPromptsType$inboundSchema` instead. */
2593
+ export namespace CreatePromptResponseFormatPromptsRequestType$ {
2594
+ /** @deprecated use `CreatePromptResponseFormatPromptsRequestType$inboundSchema` instead. */
2584
2595
  export const inboundSchema =
2585
- CreatePromptResponseFormatPromptsType$inboundSchema;
2586
- /** @deprecated use `CreatePromptResponseFormatPromptsType$outboundSchema` instead. */
2596
+ CreatePromptResponseFormatPromptsRequestType$inboundSchema;
2597
+ /** @deprecated use `CreatePromptResponseFormatPromptsRequestType$outboundSchema` instead. */
2587
2598
  export const outboundSchema =
2588
- CreatePromptResponseFormatPromptsType$outboundSchema;
2599
+ CreatePromptResponseFormatPromptsRequestType$outboundSchema;
2589
2600
  }
2590
2601
 
2591
2602
  /** @internal */
2592
- export const ResponseFormat3$inboundSchema: z.ZodType<
2593
- ResponseFormat3,
2603
+ export const CreatePromptResponseFormat3$inboundSchema: z.ZodType<
2604
+ CreatePromptResponseFormat3,
2594
2605
  z.ZodTypeDef,
2595
2606
  unknown
2596
2607
  > = z.object({
2597
- type: CreatePromptResponseFormatPromptsType$inboundSchema,
2608
+ type: CreatePromptResponseFormatPromptsRequestType$inboundSchema,
2598
2609
  });
2599
2610
 
2600
2611
  /** @internal */
2601
- export type ResponseFormat3$Outbound = {
2612
+ export type CreatePromptResponseFormat3$Outbound = {
2602
2613
  type: string;
2603
2614
  };
2604
2615
 
2605
2616
  /** @internal */
2606
- export const ResponseFormat3$outboundSchema: z.ZodType<
2607
- ResponseFormat3$Outbound,
2617
+ export const CreatePromptResponseFormat3$outboundSchema: z.ZodType<
2618
+ CreatePromptResponseFormat3$Outbound,
2608
2619
  z.ZodTypeDef,
2609
- ResponseFormat3
2620
+ CreatePromptResponseFormat3
2610
2621
  > = z.object({
2611
- type: CreatePromptResponseFormatPromptsType$outboundSchema,
2622
+ type: CreatePromptResponseFormatPromptsRequestType$outboundSchema,
2612
2623
  });
2613
2624
 
2614
2625
  /**
2615
2626
  * @internal
2616
2627
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2617
2628
  */
2618
- export namespace ResponseFormat3$ {
2619
- /** @deprecated use `ResponseFormat3$inboundSchema` instead. */
2620
- export const inboundSchema = ResponseFormat3$inboundSchema;
2621
- /** @deprecated use `ResponseFormat3$outboundSchema` instead. */
2622
- export const outboundSchema = ResponseFormat3$outboundSchema;
2623
- /** @deprecated use `ResponseFormat3$Outbound` instead. */
2624
- export type Outbound = ResponseFormat3$Outbound;
2629
+ export namespace CreatePromptResponseFormat3$ {
2630
+ /** @deprecated use `CreatePromptResponseFormat3$inboundSchema` instead. */
2631
+ export const inboundSchema = CreatePromptResponseFormat3$inboundSchema;
2632
+ /** @deprecated use `CreatePromptResponseFormat3$outboundSchema` instead. */
2633
+ export const outboundSchema = CreatePromptResponseFormat3$outboundSchema;
2634
+ /** @deprecated use `CreatePromptResponseFormat3$Outbound` instead. */
2635
+ export type Outbound = CreatePromptResponseFormat3$Outbound;
2625
2636
  }
2626
2637
 
2627
- export function responseFormat3ToJSON(
2628
- responseFormat3: ResponseFormat3,
2638
+ export function createPromptResponseFormat3ToJSON(
2639
+ createPromptResponseFormat3: CreatePromptResponseFormat3,
2629
2640
  ): string {
2630
- return JSON.stringify(ResponseFormat3$outboundSchema.parse(responseFormat3));
2641
+ return JSON.stringify(
2642
+ CreatePromptResponseFormat3$outboundSchema.parse(
2643
+ createPromptResponseFormat3,
2644
+ ),
2645
+ );
2631
2646
  }
2632
2647
 
2633
- export function responseFormat3FromJSON(
2648
+ export function createPromptResponseFormat3FromJSON(
2634
2649
  jsonString: string,
2635
- ): SafeParseResult<ResponseFormat3, SDKValidationError> {
2650
+ ): SafeParseResult<CreatePromptResponseFormat3, SDKValidationError> {
2636
2651
  return safeParse(
2637
2652
  jsonString,
2638
- (x) => ResponseFormat3$inboundSchema.parse(JSON.parse(x)),
2639
- `Failed to parse 'ResponseFormat3' from JSON`,
2653
+ (x) => CreatePromptResponseFormat3$inboundSchema.parse(JSON.parse(x)),
2654
+ `Failed to parse 'CreatePromptResponseFormat3' from JSON`,
2640
2655
  );
2641
2656
  }
2642
2657
 
2643
2658
  /** @internal */
2644
- export const CreatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
2645
- typeof CreatePromptResponseFormatType
2646
- > = z.nativeEnum(CreatePromptResponseFormatType);
2659
+ export const CreatePromptResponseFormatPromptsType$inboundSchema:
2660
+ z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType> = z.nativeEnum(
2661
+ CreatePromptResponseFormatPromptsType,
2662
+ );
2647
2663
 
2648
2664
  /** @internal */
2649
- export const CreatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
2650
- typeof CreatePromptResponseFormatType
2651
- > = CreatePromptResponseFormatType$inboundSchema;
2665
+ export const CreatePromptResponseFormatPromptsType$outboundSchema:
2666
+ z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType> =
2667
+ CreatePromptResponseFormatPromptsType$inboundSchema;
2652
2668
 
2653
2669
  /**
2654
2670
  * @internal
2655
2671
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2656
2672
  */
2657
- export namespace CreatePromptResponseFormatType$ {
2658
- /** @deprecated use `CreatePromptResponseFormatType$inboundSchema` instead. */
2659
- export const inboundSchema = CreatePromptResponseFormatType$inboundSchema;
2660
- /** @deprecated use `CreatePromptResponseFormatType$outboundSchema` instead. */
2661
- export const outboundSchema = CreatePromptResponseFormatType$outboundSchema;
2673
+ export namespace CreatePromptResponseFormatPromptsType$ {
2674
+ /** @deprecated use `CreatePromptResponseFormatPromptsType$inboundSchema` instead. */
2675
+ export const inboundSchema =
2676
+ CreatePromptResponseFormatPromptsType$inboundSchema;
2677
+ /** @deprecated use `CreatePromptResponseFormatPromptsType$outboundSchema` instead. */
2678
+ export const outboundSchema =
2679
+ CreatePromptResponseFormatPromptsType$outboundSchema;
2662
2680
  }
2663
2681
 
2664
2682
  /** @internal */
2665
- export const ResponseFormat2$inboundSchema: z.ZodType<
2666
- ResponseFormat2,
2683
+ export const CreatePromptResponseFormat2$inboundSchema: z.ZodType<
2684
+ CreatePromptResponseFormat2,
2667
2685
  z.ZodTypeDef,
2668
2686
  unknown
2669
2687
  > = z.object({
2670
- type: CreatePromptResponseFormatType$inboundSchema,
2688
+ type: CreatePromptResponseFormatPromptsType$inboundSchema,
2671
2689
  });
2672
2690
 
2673
2691
  /** @internal */
2674
- export type ResponseFormat2$Outbound = {
2692
+ export type CreatePromptResponseFormat2$Outbound = {
2675
2693
  type: string;
2676
2694
  };
2677
2695
 
2678
2696
  /** @internal */
2679
- export const ResponseFormat2$outboundSchema: z.ZodType<
2680
- ResponseFormat2$Outbound,
2697
+ export const CreatePromptResponseFormat2$outboundSchema: z.ZodType<
2698
+ CreatePromptResponseFormat2$Outbound,
2681
2699
  z.ZodTypeDef,
2682
- ResponseFormat2
2700
+ CreatePromptResponseFormat2
2683
2701
  > = z.object({
2684
- type: CreatePromptResponseFormatType$outboundSchema,
2702
+ type: CreatePromptResponseFormatPromptsType$outboundSchema,
2685
2703
  });
2686
2704
 
2687
2705
  /**
2688
2706
  * @internal
2689
2707
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2690
2708
  */
2691
- export namespace ResponseFormat2$ {
2692
- /** @deprecated use `ResponseFormat2$inboundSchema` instead. */
2693
- export const inboundSchema = ResponseFormat2$inboundSchema;
2694
- /** @deprecated use `ResponseFormat2$outboundSchema` instead. */
2695
- export const outboundSchema = ResponseFormat2$outboundSchema;
2696
- /** @deprecated use `ResponseFormat2$Outbound` instead. */
2697
- export type Outbound = ResponseFormat2$Outbound;
2709
+ export namespace CreatePromptResponseFormat2$ {
2710
+ /** @deprecated use `CreatePromptResponseFormat2$inboundSchema` instead. */
2711
+ export const inboundSchema = CreatePromptResponseFormat2$inboundSchema;
2712
+ /** @deprecated use `CreatePromptResponseFormat2$outboundSchema` instead. */
2713
+ export const outboundSchema = CreatePromptResponseFormat2$outboundSchema;
2714
+ /** @deprecated use `CreatePromptResponseFormat2$Outbound` instead. */
2715
+ export type Outbound = CreatePromptResponseFormat2$Outbound;
2698
2716
  }
2699
2717
 
2700
- export function responseFormat2ToJSON(
2701
- responseFormat2: ResponseFormat2,
2718
+ export function createPromptResponseFormat2ToJSON(
2719
+ createPromptResponseFormat2: CreatePromptResponseFormat2,
2702
2720
  ): string {
2703
- return JSON.stringify(ResponseFormat2$outboundSchema.parse(responseFormat2));
2721
+ return JSON.stringify(
2722
+ CreatePromptResponseFormat2$outboundSchema.parse(
2723
+ createPromptResponseFormat2,
2724
+ ),
2725
+ );
2704
2726
  }
2705
2727
 
2706
- export function responseFormat2FromJSON(
2728
+ export function createPromptResponseFormat2FromJSON(
2707
2729
  jsonString: string,
2708
- ): SafeParseResult<ResponseFormat2, SDKValidationError> {
2730
+ ): SafeParseResult<CreatePromptResponseFormat2, SDKValidationError> {
2709
2731
  return safeParse(
2710
2732
  jsonString,
2711
- (x) => ResponseFormat2$inboundSchema.parse(JSON.parse(x)),
2712
- `Failed to parse 'ResponseFormat2' from JSON`,
2733
+ (x) => CreatePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
2734
+ `Failed to parse 'CreatePromptResponseFormat2' from JSON`,
2713
2735
  );
2714
2736
  }
2715
2737
 
2716
2738
  /** @internal */
2717
- export const ResponseFormatType$inboundSchema: z.ZodNativeEnum<
2718
- typeof ResponseFormatType
2719
- > = z.nativeEnum(ResponseFormatType);
2739
+ export const CreatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
2740
+ typeof CreatePromptResponseFormatType
2741
+ > = z.nativeEnum(CreatePromptResponseFormatType);
2720
2742
 
2721
2743
  /** @internal */
2722
- export const ResponseFormatType$outboundSchema: z.ZodNativeEnum<
2723
- typeof ResponseFormatType
2724
- > = ResponseFormatType$inboundSchema;
2744
+ export const CreatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
2745
+ typeof CreatePromptResponseFormatType
2746
+ > = CreatePromptResponseFormatType$inboundSchema;
2725
2747
 
2726
2748
  /**
2727
2749
  * @internal
2728
2750
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2729
2751
  */
2730
- export namespace ResponseFormatType$ {
2731
- /** @deprecated use `ResponseFormatType$inboundSchema` instead. */
2732
- export const inboundSchema = ResponseFormatType$inboundSchema;
2733
- /** @deprecated use `ResponseFormatType$outboundSchema` instead. */
2734
- export const outboundSchema = ResponseFormatType$outboundSchema;
2752
+ export namespace CreatePromptResponseFormatType$ {
2753
+ /** @deprecated use `CreatePromptResponseFormatType$inboundSchema` instead. */
2754
+ export const inboundSchema = CreatePromptResponseFormatType$inboundSchema;
2755
+ /** @deprecated use `CreatePromptResponseFormatType$outboundSchema` instead. */
2756
+ export const outboundSchema = CreatePromptResponseFormatType$outboundSchema;
2735
2757
  }
2736
2758
 
2737
2759
  /** @internal */
2738
- export const JsonSchema$inboundSchema: z.ZodType<
2739
- JsonSchema,
2760
+ export const CreatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
2761
+ CreatePromptResponseFormatJsonSchema,
2740
2762
  z.ZodTypeDef,
2741
2763
  unknown
2742
2764
  > = z.object({
@@ -2747,7 +2769,7 @@ export const JsonSchema$inboundSchema: z.ZodType<
2747
2769
  });
2748
2770
 
2749
2771
  /** @internal */
2750
- export type JsonSchema$Outbound = {
2772
+ export type CreatePromptResponseFormatJsonSchema$Outbound = {
2751
2773
  name: string;
2752
2774
  description?: string | undefined;
2753
2775
  strict?: boolean | undefined;
@@ -2755,10 +2777,10 @@ export type JsonSchema$Outbound = {
2755
2777
  };
2756
2778
 
2757
2779
  /** @internal */
2758
- export const JsonSchema$outboundSchema: z.ZodType<
2759
- JsonSchema$Outbound,
2780
+ export const CreatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
2781
+ CreatePromptResponseFormatJsonSchema$Outbound,
2760
2782
  z.ZodTypeDef,
2761
- JsonSchema
2783
+ CreatePromptResponseFormatJsonSchema
2762
2784
  > = z.object({
2763
2785
  name: z.string(),
2764
2786
  description: z.string().optional(),
@@ -2770,57 +2792,66 @@ export const JsonSchema$outboundSchema: z.ZodType<
2770
2792
  * @internal
2771
2793
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2772
2794
  */
2773
- export namespace JsonSchema$ {
2774
- /** @deprecated use `JsonSchema$inboundSchema` instead. */
2775
- export const inboundSchema = JsonSchema$inboundSchema;
2776
- /** @deprecated use `JsonSchema$outboundSchema` instead. */
2777
- export const outboundSchema = JsonSchema$outboundSchema;
2778
- /** @deprecated use `JsonSchema$Outbound` instead. */
2779
- export type Outbound = JsonSchema$Outbound;
2795
+ export namespace CreatePromptResponseFormatJsonSchema$ {
2796
+ /** @deprecated use `CreatePromptResponseFormatJsonSchema$inboundSchema` instead. */
2797
+ export const inboundSchema =
2798
+ CreatePromptResponseFormatJsonSchema$inboundSchema;
2799
+ /** @deprecated use `CreatePromptResponseFormatJsonSchema$outboundSchema` instead. */
2800
+ export const outboundSchema =
2801
+ CreatePromptResponseFormatJsonSchema$outboundSchema;
2802
+ /** @deprecated use `CreatePromptResponseFormatJsonSchema$Outbound` instead. */
2803
+ export type Outbound = CreatePromptResponseFormatJsonSchema$Outbound;
2780
2804
  }
2781
2805
 
2782
- export function jsonSchemaToJSON(jsonSchema: JsonSchema): string {
2783
- return JSON.stringify(JsonSchema$outboundSchema.parse(jsonSchema));
2806
+ export function createPromptResponseFormatJsonSchemaToJSON(
2807
+ createPromptResponseFormatJsonSchema: CreatePromptResponseFormatJsonSchema,
2808
+ ): string {
2809
+ return JSON.stringify(
2810
+ CreatePromptResponseFormatJsonSchema$outboundSchema.parse(
2811
+ createPromptResponseFormatJsonSchema,
2812
+ ),
2813
+ );
2784
2814
  }
2785
2815
 
2786
- export function jsonSchemaFromJSON(
2816
+ export function createPromptResponseFormatJsonSchemaFromJSON(
2787
2817
  jsonString: string,
2788
- ): SafeParseResult<JsonSchema, SDKValidationError> {
2818
+ ): SafeParseResult<CreatePromptResponseFormatJsonSchema, SDKValidationError> {
2789
2819
  return safeParse(
2790
2820
  jsonString,
2791
- (x) => JsonSchema$inboundSchema.parse(JSON.parse(x)),
2792
- `Failed to parse 'JsonSchema' from JSON`,
2821
+ (x) =>
2822
+ CreatePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
2823
+ `Failed to parse 'CreatePromptResponseFormatJsonSchema' from JSON`,
2793
2824
  );
2794
2825
  }
2795
2826
 
2796
2827
  /** @internal */
2797
- export const ResponseFormat1$inboundSchema: z.ZodType<
2798
- ResponseFormat1,
2828
+ export const CreatePromptResponseFormat1$inboundSchema: z.ZodType<
2829
+ CreatePromptResponseFormat1,
2799
2830
  z.ZodTypeDef,
2800
2831
  unknown
2801
2832
  > = z.object({
2802
- type: ResponseFormatType$inboundSchema,
2803
- json_schema: z.lazy(() => JsonSchema$inboundSchema),
2804
- }).transform((v) => {
2833
+ type: CreatePromptResponseFormatType$inboundSchema,
2834
+ json_schema: z.lazy(() => CreatePromptResponseFormatJsonSchema$inboundSchema),
2835
+ }).transform((v) => {
2805
2836
  return remap$(v, {
2806
2837
  "json_schema": "jsonSchema",
2807
2838
  });
2808
2839
  });
2809
2840
 
2810
2841
  /** @internal */
2811
- export type ResponseFormat1$Outbound = {
2842
+ export type CreatePromptResponseFormat1$Outbound = {
2812
2843
  type: string;
2813
- json_schema: JsonSchema$Outbound;
2844
+ json_schema: CreatePromptResponseFormatJsonSchema$Outbound;
2814
2845
  };
2815
2846
 
2816
2847
  /** @internal */
2817
- export const ResponseFormat1$outboundSchema: z.ZodType<
2818
- ResponseFormat1$Outbound,
2848
+ export const CreatePromptResponseFormat1$outboundSchema: z.ZodType<
2849
+ CreatePromptResponseFormat1$Outbound,
2819
2850
  z.ZodTypeDef,
2820
- ResponseFormat1
2851
+ CreatePromptResponseFormat1
2821
2852
  > = z.object({
2822
- type: ResponseFormatType$outboundSchema,
2823
- jsonSchema: z.lazy(() => JsonSchema$outboundSchema),
2853
+ type: CreatePromptResponseFormatType$outboundSchema,
2854
+ jsonSchema: z.lazy(() => CreatePromptResponseFormatJsonSchema$outboundSchema),
2824
2855
  }).transform((v) => {
2825
2856
  return remap$(v, {
2826
2857
  jsonSchema: "json_schema",
@@ -2831,63 +2862,67 @@ export const ResponseFormat1$outboundSchema: z.ZodType<
2831
2862
  * @internal
2832
2863
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2833
2864
  */
2834
- export namespace ResponseFormat1$ {
2835
- /** @deprecated use `ResponseFormat1$inboundSchema` instead. */
2836
- export const inboundSchema = ResponseFormat1$inboundSchema;
2837
- /** @deprecated use `ResponseFormat1$outboundSchema` instead. */
2838
- export const outboundSchema = ResponseFormat1$outboundSchema;
2839
- /** @deprecated use `ResponseFormat1$Outbound` instead. */
2840
- export type Outbound = ResponseFormat1$Outbound;
2865
+ export namespace CreatePromptResponseFormat1$ {
2866
+ /** @deprecated use `CreatePromptResponseFormat1$inboundSchema` instead. */
2867
+ export const inboundSchema = CreatePromptResponseFormat1$inboundSchema;
2868
+ /** @deprecated use `CreatePromptResponseFormat1$outboundSchema` instead. */
2869
+ export const outboundSchema = CreatePromptResponseFormat1$outboundSchema;
2870
+ /** @deprecated use `CreatePromptResponseFormat1$Outbound` instead. */
2871
+ export type Outbound = CreatePromptResponseFormat1$Outbound;
2841
2872
  }
2842
2873
 
2843
- export function responseFormat1ToJSON(
2844
- responseFormat1: ResponseFormat1,
2874
+ export function createPromptResponseFormat1ToJSON(
2875
+ createPromptResponseFormat1: CreatePromptResponseFormat1,
2845
2876
  ): string {
2846
- return JSON.stringify(ResponseFormat1$outboundSchema.parse(responseFormat1));
2877
+ return JSON.stringify(
2878
+ CreatePromptResponseFormat1$outboundSchema.parse(
2879
+ createPromptResponseFormat1,
2880
+ ),
2881
+ );
2847
2882
  }
2848
2883
 
2849
- export function responseFormat1FromJSON(
2884
+ export function createPromptResponseFormat1FromJSON(
2850
2885
  jsonString: string,
2851
- ): SafeParseResult<ResponseFormat1, SDKValidationError> {
2886
+ ): SafeParseResult<CreatePromptResponseFormat1, SDKValidationError> {
2852
2887
  return safeParse(
2853
2888
  jsonString,
2854
- (x) => ResponseFormat1$inboundSchema.parse(JSON.parse(x)),
2855
- `Failed to parse 'ResponseFormat1' from JSON`,
2889
+ (x) => CreatePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)),
2890
+ `Failed to parse 'CreatePromptResponseFormat1' from JSON`,
2856
2891
  );
2857
2892
  }
2858
2893
 
2859
2894
  /** @internal */
2860
- export const ResponseFormat$inboundSchema: z.ZodType<
2861
- ResponseFormat,
2895
+ export const CreatePromptResponseFormat$inboundSchema: z.ZodType<
2896
+ CreatePromptResponseFormat,
2862
2897
  z.ZodTypeDef,
2863
2898
  unknown
2864
2899
  > = z.union([
2865
- z.lazy(() => ResponseFormat1$inboundSchema),
2866
- z.lazy(() => ResponseFormat2$inboundSchema),
2867
- z.lazy(() => ResponseFormat3$inboundSchema),
2900
+ z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
2901
+ z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
2902
+ z.lazy(() => CreatePromptResponseFormat3$inboundSchema),
2868
2903
  ResponseFormat4$inboundSchema,
2869
2904
  Five$inboundSchema,
2870
2905
  Six$inboundSchema,
2871
2906
  ]);
2872
2907
 
2873
2908
  /** @internal */
2874
- export type ResponseFormat$Outbound =
2875
- | ResponseFormat1$Outbound
2876
- | ResponseFormat2$Outbound
2877
- | ResponseFormat3$Outbound
2909
+ export type CreatePromptResponseFormat$Outbound =
2910
+ | CreatePromptResponseFormat1$Outbound
2911
+ | CreatePromptResponseFormat2$Outbound
2912
+ | CreatePromptResponseFormat3$Outbound
2878
2913
  | string
2879
2914
  | string
2880
2915
  | string;
2881
2916
 
2882
2917
  /** @internal */
2883
- export const ResponseFormat$outboundSchema: z.ZodType<
2884
- ResponseFormat$Outbound,
2918
+ export const CreatePromptResponseFormat$outboundSchema: z.ZodType<
2919
+ CreatePromptResponseFormat$Outbound,
2885
2920
  z.ZodTypeDef,
2886
- ResponseFormat
2921
+ CreatePromptResponseFormat
2887
2922
  > = z.union([
2888
- z.lazy(() => ResponseFormat1$outboundSchema),
2889
- z.lazy(() => ResponseFormat2$outboundSchema),
2890
- z.lazy(() => ResponseFormat3$outboundSchema),
2923
+ z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
2924
+ z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
2925
+ z.lazy(() => CreatePromptResponseFormat3$outboundSchema),
2891
2926
  ResponseFormat4$outboundSchema,
2892
2927
  Five$outboundSchema,
2893
2928
  Six$outboundSchema,
@@ -2897,26 +2932,30 @@ export const ResponseFormat$outboundSchema: z.ZodType<
2897
2932
  * @internal
2898
2933
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2899
2934
  */
2900
- export namespace ResponseFormat$ {
2901
- /** @deprecated use `ResponseFormat$inboundSchema` instead. */
2902
- export const inboundSchema = ResponseFormat$inboundSchema;
2903
- /** @deprecated use `ResponseFormat$outboundSchema` instead. */
2904
- export const outboundSchema = ResponseFormat$outboundSchema;
2905
- /** @deprecated use `ResponseFormat$Outbound` instead. */
2906
- export type Outbound = ResponseFormat$Outbound;
2935
+ export namespace CreatePromptResponseFormat$ {
2936
+ /** @deprecated use `CreatePromptResponseFormat$inboundSchema` instead. */
2937
+ export const inboundSchema = CreatePromptResponseFormat$inboundSchema;
2938
+ /** @deprecated use `CreatePromptResponseFormat$outboundSchema` instead. */
2939
+ export const outboundSchema = CreatePromptResponseFormat$outboundSchema;
2940
+ /** @deprecated use `CreatePromptResponseFormat$Outbound` instead. */
2941
+ export type Outbound = CreatePromptResponseFormat$Outbound;
2907
2942
  }
2908
2943
 
2909
- export function responseFormatToJSON(responseFormat: ResponseFormat): string {
2910
- return JSON.stringify(ResponseFormat$outboundSchema.parse(responseFormat));
2944
+ export function createPromptResponseFormatToJSON(
2945
+ createPromptResponseFormat: CreatePromptResponseFormat,
2946
+ ): string {
2947
+ return JSON.stringify(
2948
+ CreatePromptResponseFormat$outboundSchema.parse(createPromptResponseFormat),
2949
+ );
2911
2950
  }
2912
2951
 
2913
- export function responseFormatFromJSON(
2952
+ export function createPromptResponseFormatFromJSON(
2914
2953
  jsonString: string,
2915
- ): SafeParseResult<ResponseFormat, SDKValidationError> {
2954
+ ): SafeParseResult<CreatePromptResponseFormat, SDKValidationError> {
2916
2955
  return safeParse(
2917
2956
  jsonString,
2918
- (x) => ResponseFormat$inboundSchema.parse(JSON.parse(x)),
2919
- `Failed to parse 'ResponseFormat' from JSON`,
2957
+ (x) => CreatePromptResponseFormat$inboundSchema.parse(JSON.parse(x)),
2958
+ `Failed to parse 'CreatePromptResponseFormat' from JSON`,
2920
2959
  );
2921
2960
  }
2922
2961
 
@@ -3022,9 +3061,9 @@ export const ModelParameters$inboundSchema: z.ZodType<
3022
3061
  style: z.string().optional(),
3023
3062
  responseFormat: z.nullable(
3024
3063
  z.union([
3025
- z.lazy(() => ResponseFormat1$inboundSchema),
3026
- z.lazy(() => ResponseFormat2$inboundSchema),
3027
- z.lazy(() => ResponseFormat3$inboundSchema),
3064
+ z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
3065
+ z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
3066
+ z.lazy(() => CreatePromptResponseFormat3$inboundSchema),
3028
3067
  ResponseFormat4$inboundSchema,
3029
3068
  Five$inboundSchema,
3030
3069
  Six$inboundSchema,
@@ -3056,9 +3095,9 @@ export type ModelParameters$Outbound = {
3056
3095
  quality?: string | undefined;
3057
3096
  style?: string | undefined;
3058
3097
  responseFormat?:
3059
- | ResponseFormat1$Outbound
3060
- | ResponseFormat2$Outbound
3061
- | ResponseFormat3$Outbound
3098
+ | CreatePromptResponseFormat1$Outbound
3099
+ | CreatePromptResponseFormat2$Outbound
3100
+ | CreatePromptResponseFormat3$Outbound
3062
3101
  | string
3063
3102
  | string
3064
3103
  | string
@@ -3091,9 +3130,9 @@ export const ModelParameters$outboundSchema: z.ZodType<
3091
3130
  style: z.string().optional(),
3092
3131
  responseFormat: z.nullable(
3093
3132
  z.union([
3094
- z.lazy(() => ResponseFormat1$outboundSchema),
3095
- z.lazy(() => ResponseFormat2$outboundSchema),
3096
- z.lazy(() => ResponseFormat3$outboundSchema),
3133
+ z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
3134
+ z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
3135
+ z.lazy(() => CreatePromptResponseFormat3$outboundSchema),
3097
3136
  ResponseFormat4$outboundSchema,
3098
3137
  Five$outboundSchema,
3099
3138
  Six$outboundSchema,
@@ -5379,47 +5418,48 @@ export function createPromptPromptsMessagesFromJSON(
5379
5418
  }
5380
5419
 
5381
5420
  /** @internal */
5382
- export const CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$inboundSchema:
5421
+ export const CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type$inboundSchema:
5383
5422
  z.ZodNativeEnum<
5384
- typeof CreatePromptResponseFormatPromptsRequestRequestBodyPromptType
5423
+ typeof CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type
5385
5424
  > = z.nativeEnum(
5386
- CreatePromptResponseFormatPromptsRequestRequestBodyPromptType,
5425
+ CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type,
5387
5426
  );
5388
5427
 
5389
5428
  /** @internal */
5390
- export const CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$outboundSchema:
5429
+ export const CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type$outboundSchema:
5391
5430
  z.ZodNativeEnum<
5392
- typeof CreatePromptResponseFormatPromptsRequestRequestBodyPromptType
5431
+ typeof CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type
5393
5432
  > =
5394
- CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$inboundSchema;
5433
+ CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type$inboundSchema;
5395
5434
 
5396
5435
  /**
5397
5436
  * @internal
5398
5437
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5399
5438
  */
5400
- export namespace CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$ {
5401
- /** @deprecated use `CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$inboundSchema` instead. */
5439
+ export namespace CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type$ {
5440
+ /** @deprecated use `CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type$inboundSchema` instead. */
5402
5441
  export const inboundSchema =
5403
- CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$inboundSchema;
5404
- /** @deprecated use `CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$outboundSchema` instead. */
5442
+ CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type$inboundSchema;
5443
+ /** @deprecated use `CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type$outboundSchema` instead. */
5405
5444
  export const outboundSchema =
5406
- CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$outboundSchema;
5445
+ CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type$outboundSchema;
5407
5446
  }
5408
5447
 
5409
5448
  /** @internal */
5410
- export const ResponseFormatJsonSchema$inboundSchema: z.ZodType<
5411
- ResponseFormatJsonSchema,
5412
- z.ZodTypeDef,
5413
- unknown
5414
- > = z.object({
5415
- description: z.string().optional(),
5416
- name: z.string(),
5417
- schema: z.any().optional(),
5418
- strict: z.boolean().optional(),
5419
- });
5449
+ export const CreatePromptResponseFormatPromptsJsonSchema$inboundSchema:
5450
+ z.ZodType<
5451
+ CreatePromptResponseFormatPromptsJsonSchema,
5452
+ z.ZodTypeDef,
5453
+ unknown
5454
+ > = z.object({
5455
+ description: z.string().optional(),
5456
+ name: z.string(),
5457
+ schema: z.any().optional(),
5458
+ strict: z.boolean().optional(),
5459
+ });
5420
5460
 
5421
5461
  /** @internal */
5422
- export type ResponseFormatJsonSchema$Outbound = {
5462
+ export type CreatePromptResponseFormatPromptsJsonSchema$Outbound = {
5423
5463
  description?: string | undefined;
5424
5464
  name: string;
5425
5465
  schema?: any | undefined;
@@ -5427,57 +5467,71 @@ export type ResponseFormatJsonSchema$Outbound = {
5427
5467
  };
5428
5468
 
5429
5469
  /** @internal */
5430
- export const ResponseFormatJsonSchema$outboundSchema: z.ZodType<
5431
- ResponseFormatJsonSchema$Outbound,
5432
- z.ZodTypeDef,
5433
- ResponseFormatJsonSchema
5434
- > = z.object({
5435
- description: z.string().optional(),
5436
- name: z.string(),
5437
- schema: z.any().optional(),
5438
- strict: z.boolean().optional(),
5439
- });
5470
+ export const CreatePromptResponseFormatPromptsJsonSchema$outboundSchema:
5471
+ z.ZodType<
5472
+ CreatePromptResponseFormatPromptsJsonSchema$Outbound,
5473
+ z.ZodTypeDef,
5474
+ CreatePromptResponseFormatPromptsJsonSchema
5475
+ > = z.object({
5476
+ description: z.string().optional(),
5477
+ name: z.string(),
5478
+ schema: z.any().optional(),
5479
+ strict: z.boolean().optional(),
5480
+ });
5440
5481
 
5441
5482
  /**
5442
5483
  * @internal
5443
5484
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5444
5485
  */
5445
- export namespace ResponseFormatJsonSchema$ {
5446
- /** @deprecated use `ResponseFormatJsonSchema$inboundSchema` instead. */
5447
- export const inboundSchema = ResponseFormatJsonSchema$inboundSchema;
5448
- /** @deprecated use `ResponseFormatJsonSchema$outboundSchema` instead. */
5449
- export const outboundSchema = ResponseFormatJsonSchema$outboundSchema;
5450
- /** @deprecated use `ResponseFormatJsonSchema$Outbound` instead. */
5451
- export type Outbound = ResponseFormatJsonSchema$Outbound;
5486
+ export namespace CreatePromptResponseFormatPromptsJsonSchema$ {
5487
+ /** @deprecated use `CreatePromptResponseFormatPromptsJsonSchema$inboundSchema` instead. */
5488
+ export const inboundSchema =
5489
+ CreatePromptResponseFormatPromptsJsonSchema$inboundSchema;
5490
+ /** @deprecated use `CreatePromptResponseFormatPromptsJsonSchema$outboundSchema` instead. */
5491
+ export const outboundSchema =
5492
+ CreatePromptResponseFormatPromptsJsonSchema$outboundSchema;
5493
+ /** @deprecated use `CreatePromptResponseFormatPromptsJsonSchema$Outbound` instead. */
5494
+ export type Outbound = CreatePromptResponseFormatPromptsJsonSchema$Outbound;
5452
5495
  }
5453
5496
 
5454
- export function responseFormatJsonSchemaToJSON(
5455
- responseFormatJsonSchema: ResponseFormatJsonSchema,
5497
+ export function createPromptResponseFormatPromptsJsonSchemaToJSON(
5498
+ createPromptResponseFormatPromptsJsonSchema:
5499
+ CreatePromptResponseFormatPromptsJsonSchema,
5456
5500
  ): string {
5457
5501
  return JSON.stringify(
5458
- ResponseFormatJsonSchema$outboundSchema.parse(responseFormatJsonSchema),
5502
+ CreatePromptResponseFormatPromptsJsonSchema$outboundSchema.parse(
5503
+ createPromptResponseFormatPromptsJsonSchema,
5504
+ ),
5459
5505
  );
5460
5506
  }
5461
5507
 
5462
- export function responseFormatJsonSchemaFromJSON(
5508
+ export function createPromptResponseFormatPromptsJsonSchemaFromJSON(
5463
5509
  jsonString: string,
5464
- ): SafeParseResult<ResponseFormatJsonSchema, SDKValidationError> {
5510
+ ): SafeParseResult<
5511
+ CreatePromptResponseFormatPromptsJsonSchema,
5512
+ SDKValidationError
5513
+ > {
5465
5514
  return safeParse(
5466
5515
  jsonString,
5467
- (x) => ResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
5468
- `Failed to parse 'ResponseFormatJsonSchema' from JSON`,
5516
+ (x) =>
5517
+ CreatePromptResponseFormatPromptsJsonSchema$inboundSchema.parse(
5518
+ JSON.parse(x),
5519
+ ),
5520
+ `Failed to parse 'CreatePromptResponseFormatPromptsJsonSchema' from JSON`,
5469
5521
  );
5470
5522
  }
5471
5523
 
5472
5524
  /** @internal */
5473
- export const CreatePromptResponseFormat3$inboundSchema: z.ZodType<
5474
- CreatePromptResponseFormat3,
5525
+ export const CreatePromptResponseFormatPrompts3$inboundSchema: z.ZodType<
5526
+ CreatePromptResponseFormatPrompts3,
5475
5527
  z.ZodTypeDef,
5476
5528
  unknown
5477
5529
  > = z.object({
5478
5530
  type:
5479
- CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$inboundSchema,
5480
- json_schema: z.lazy(() => ResponseFormatJsonSchema$inboundSchema),
5531
+ CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type$inboundSchema,
5532
+ json_schema: z.lazy(() =>
5533
+ CreatePromptResponseFormatPromptsJsonSchema$inboundSchema
5534
+ ),
5481
5535
  }).transform((v) => {
5482
5536
  return remap$(v, {
5483
5537
  "json_schema": "jsonSchema",
@@ -5485,20 +5539,22 @@ export const CreatePromptResponseFormat3$inboundSchema: z.ZodType<
5485
5539
  });
5486
5540
 
5487
5541
  /** @internal */
5488
- export type CreatePromptResponseFormat3$Outbound = {
5542
+ export type CreatePromptResponseFormatPrompts3$Outbound = {
5489
5543
  type: string;
5490
- json_schema: ResponseFormatJsonSchema$Outbound;
5544
+ json_schema: CreatePromptResponseFormatPromptsJsonSchema$Outbound;
5491
5545
  };
5492
5546
 
5493
5547
  /** @internal */
5494
- export const CreatePromptResponseFormat3$outboundSchema: z.ZodType<
5495
- CreatePromptResponseFormat3$Outbound,
5548
+ export const CreatePromptResponseFormatPrompts3$outboundSchema: z.ZodType<
5549
+ CreatePromptResponseFormatPrompts3$Outbound,
5496
5550
  z.ZodTypeDef,
5497
- CreatePromptResponseFormat3
5551
+ CreatePromptResponseFormatPrompts3
5498
5552
  > = z.object({
5499
5553
  type:
5500
- CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$outboundSchema,
5501
- jsonSchema: z.lazy(() => ResponseFormatJsonSchema$outboundSchema),
5554
+ CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type$outboundSchema,
5555
+ jsonSchema: z.lazy(() =>
5556
+ CreatePromptResponseFormatPromptsJsonSchema$outboundSchema
5557
+ ),
5502
5558
  }).transform((v) => {
5503
5559
  return remap$(v, {
5504
5560
  jsonSchema: "json_schema",
@@ -5509,251 +5565,267 @@ export const CreatePromptResponseFormat3$outboundSchema: z.ZodType<
5509
5565
  * @internal
5510
5566
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5511
5567
  */
5512
- export namespace CreatePromptResponseFormat3$ {
5513
- /** @deprecated use `CreatePromptResponseFormat3$inboundSchema` instead. */
5514
- export const inboundSchema = CreatePromptResponseFormat3$inboundSchema;
5515
- /** @deprecated use `CreatePromptResponseFormat3$outboundSchema` instead. */
5516
- export const outboundSchema = CreatePromptResponseFormat3$outboundSchema;
5517
- /** @deprecated use `CreatePromptResponseFormat3$Outbound` instead. */
5518
- export type Outbound = CreatePromptResponseFormat3$Outbound;
5568
+ export namespace CreatePromptResponseFormatPrompts3$ {
5569
+ /** @deprecated use `CreatePromptResponseFormatPrompts3$inboundSchema` instead. */
5570
+ export const inboundSchema = CreatePromptResponseFormatPrompts3$inboundSchema;
5571
+ /** @deprecated use `CreatePromptResponseFormatPrompts3$outboundSchema` instead. */
5572
+ export const outboundSchema =
5573
+ CreatePromptResponseFormatPrompts3$outboundSchema;
5574
+ /** @deprecated use `CreatePromptResponseFormatPrompts3$Outbound` instead. */
5575
+ export type Outbound = CreatePromptResponseFormatPrompts3$Outbound;
5519
5576
  }
5520
5577
 
5521
- export function createPromptResponseFormat3ToJSON(
5522
- createPromptResponseFormat3: CreatePromptResponseFormat3,
5578
+ export function createPromptResponseFormatPrompts3ToJSON(
5579
+ createPromptResponseFormatPrompts3: CreatePromptResponseFormatPrompts3,
5523
5580
  ): string {
5524
5581
  return JSON.stringify(
5525
- CreatePromptResponseFormat3$outboundSchema.parse(
5526
- createPromptResponseFormat3,
5582
+ CreatePromptResponseFormatPrompts3$outboundSchema.parse(
5583
+ createPromptResponseFormatPrompts3,
5527
5584
  ),
5528
5585
  );
5529
5586
  }
5530
5587
 
5531
- export function createPromptResponseFormat3FromJSON(
5588
+ export function createPromptResponseFormatPrompts3FromJSON(
5532
5589
  jsonString: string,
5533
- ): SafeParseResult<CreatePromptResponseFormat3, SDKValidationError> {
5590
+ ): SafeParseResult<CreatePromptResponseFormatPrompts3, SDKValidationError> {
5534
5591
  return safeParse(
5535
5592
  jsonString,
5536
- (x) => CreatePromptResponseFormat3$inboundSchema.parse(JSON.parse(x)),
5537
- `Failed to parse 'CreatePromptResponseFormat3' from JSON`,
5593
+ (x) =>
5594
+ CreatePromptResponseFormatPrompts3$inboundSchema.parse(JSON.parse(x)),
5595
+ `Failed to parse 'CreatePromptResponseFormatPrompts3' from JSON`,
5538
5596
  );
5539
5597
  }
5540
5598
 
5541
5599
  /** @internal */
5542
- export const CreatePromptResponseFormatPromptsRequestRequestBodyType$inboundSchema:
5600
+ export const CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$inboundSchema:
5543
5601
  z.ZodNativeEnum<
5544
- typeof CreatePromptResponseFormatPromptsRequestRequestBodyType
5545
- > = z.nativeEnum(CreatePromptResponseFormatPromptsRequestRequestBodyType);
5602
+ typeof CreatePromptResponseFormatPromptsRequestRequestBodyPromptType
5603
+ > = z.nativeEnum(
5604
+ CreatePromptResponseFormatPromptsRequestRequestBodyPromptType,
5605
+ );
5546
5606
 
5547
5607
  /** @internal */
5548
- export const CreatePromptResponseFormatPromptsRequestRequestBodyType$outboundSchema:
5608
+ export const CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$outboundSchema:
5549
5609
  z.ZodNativeEnum<
5550
- typeof CreatePromptResponseFormatPromptsRequestRequestBodyType
5551
- > = CreatePromptResponseFormatPromptsRequestRequestBodyType$inboundSchema;
5610
+ typeof CreatePromptResponseFormatPromptsRequestRequestBodyPromptType
5611
+ > =
5612
+ CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$inboundSchema;
5552
5613
 
5553
5614
  /**
5554
5615
  * @internal
5555
5616
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5556
5617
  */
5557
- export namespace CreatePromptResponseFormatPromptsRequestRequestBodyType$ {
5558
- /** @deprecated use `CreatePromptResponseFormatPromptsRequestRequestBodyType$inboundSchema` instead. */
5618
+ export namespace CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$ {
5619
+ /** @deprecated use `CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$inboundSchema` instead. */
5559
5620
  export const inboundSchema =
5560
- CreatePromptResponseFormatPromptsRequestRequestBodyType$inboundSchema;
5561
- /** @deprecated use `CreatePromptResponseFormatPromptsRequestRequestBodyType$outboundSchema` instead. */
5621
+ CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$inboundSchema;
5622
+ /** @deprecated use `CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$outboundSchema` instead. */
5562
5623
  export const outboundSchema =
5563
- CreatePromptResponseFormatPromptsRequestRequestBodyType$outboundSchema;
5624
+ CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$outboundSchema;
5564
5625
  }
5565
5626
 
5566
5627
  /** @internal */
5567
- export const CreatePromptResponseFormat2$inboundSchema: z.ZodType<
5568
- CreatePromptResponseFormat2,
5628
+ export const CreatePromptResponseFormatPrompts2$inboundSchema: z.ZodType<
5629
+ CreatePromptResponseFormatPrompts2,
5569
5630
  z.ZodTypeDef,
5570
5631
  unknown
5571
5632
  > = z.object({
5572
- type: CreatePromptResponseFormatPromptsRequestRequestBodyType$inboundSchema,
5633
+ type:
5634
+ CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$inboundSchema,
5573
5635
  });
5574
5636
 
5575
5637
  /** @internal */
5576
- export type CreatePromptResponseFormat2$Outbound = {
5638
+ export type CreatePromptResponseFormatPrompts2$Outbound = {
5577
5639
  type: string;
5578
5640
  };
5579
5641
 
5580
5642
  /** @internal */
5581
- export const CreatePromptResponseFormat2$outboundSchema: z.ZodType<
5582
- CreatePromptResponseFormat2$Outbound,
5643
+ export const CreatePromptResponseFormatPrompts2$outboundSchema: z.ZodType<
5644
+ CreatePromptResponseFormatPrompts2$Outbound,
5583
5645
  z.ZodTypeDef,
5584
- CreatePromptResponseFormat2
5646
+ CreatePromptResponseFormatPrompts2
5585
5647
  > = z.object({
5586
- type: CreatePromptResponseFormatPromptsRequestRequestBodyType$outboundSchema,
5648
+ type:
5649
+ CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$outboundSchema,
5587
5650
  });
5588
5651
 
5589
5652
  /**
5590
5653
  * @internal
5591
5654
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5592
5655
  */
5593
- export namespace CreatePromptResponseFormat2$ {
5594
- /** @deprecated use `CreatePromptResponseFormat2$inboundSchema` instead. */
5595
- export const inboundSchema = CreatePromptResponseFormat2$inboundSchema;
5596
- /** @deprecated use `CreatePromptResponseFormat2$outboundSchema` instead. */
5597
- export const outboundSchema = CreatePromptResponseFormat2$outboundSchema;
5598
- /** @deprecated use `CreatePromptResponseFormat2$Outbound` instead. */
5599
- export type Outbound = CreatePromptResponseFormat2$Outbound;
5656
+ export namespace CreatePromptResponseFormatPrompts2$ {
5657
+ /** @deprecated use `CreatePromptResponseFormatPrompts2$inboundSchema` instead. */
5658
+ export const inboundSchema = CreatePromptResponseFormatPrompts2$inboundSchema;
5659
+ /** @deprecated use `CreatePromptResponseFormatPrompts2$outboundSchema` instead. */
5660
+ export const outboundSchema =
5661
+ CreatePromptResponseFormatPrompts2$outboundSchema;
5662
+ /** @deprecated use `CreatePromptResponseFormatPrompts2$Outbound` instead. */
5663
+ export type Outbound = CreatePromptResponseFormatPrompts2$Outbound;
5600
5664
  }
5601
5665
 
5602
- export function createPromptResponseFormat2ToJSON(
5603
- createPromptResponseFormat2: CreatePromptResponseFormat2,
5666
+ export function createPromptResponseFormatPrompts2ToJSON(
5667
+ createPromptResponseFormatPrompts2: CreatePromptResponseFormatPrompts2,
5604
5668
  ): string {
5605
5669
  return JSON.stringify(
5606
- CreatePromptResponseFormat2$outboundSchema.parse(
5607
- createPromptResponseFormat2,
5670
+ CreatePromptResponseFormatPrompts2$outboundSchema.parse(
5671
+ createPromptResponseFormatPrompts2,
5608
5672
  ),
5609
5673
  );
5610
5674
  }
5611
5675
 
5612
- export function createPromptResponseFormat2FromJSON(
5676
+ export function createPromptResponseFormatPrompts2FromJSON(
5613
5677
  jsonString: string,
5614
- ): SafeParseResult<CreatePromptResponseFormat2, SDKValidationError> {
5678
+ ): SafeParseResult<CreatePromptResponseFormatPrompts2, SDKValidationError> {
5615
5679
  return safeParse(
5616
5680
  jsonString,
5617
- (x) => CreatePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
5618
- `Failed to parse 'CreatePromptResponseFormat2' from JSON`,
5681
+ (x) =>
5682
+ CreatePromptResponseFormatPrompts2$inboundSchema.parse(JSON.parse(x)),
5683
+ `Failed to parse 'CreatePromptResponseFormatPrompts2' from JSON`,
5619
5684
  );
5620
5685
  }
5621
5686
 
5622
5687
  /** @internal */
5623
- export const CreatePromptResponseFormatPromptsRequestType$inboundSchema:
5624
- z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsRequestType> = z
5625
- .nativeEnum(CreatePromptResponseFormatPromptsRequestType);
5688
+ export const CreatePromptResponseFormatPromptsRequestRequestBodyType$inboundSchema:
5689
+ z.ZodNativeEnum<
5690
+ typeof CreatePromptResponseFormatPromptsRequestRequestBodyType
5691
+ > = z.nativeEnum(CreatePromptResponseFormatPromptsRequestRequestBodyType);
5626
5692
 
5627
5693
  /** @internal */
5628
- export const CreatePromptResponseFormatPromptsRequestType$outboundSchema:
5629
- z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsRequestType> =
5630
- CreatePromptResponseFormatPromptsRequestType$inboundSchema;
5694
+ export const CreatePromptResponseFormatPromptsRequestRequestBodyType$outboundSchema:
5695
+ z.ZodNativeEnum<
5696
+ typeof CreatePromptResponseFormatPromptsRequestRequestBodyType
5697
+ > = CreatePromptResponseFormatPromptsRequestRequestBodyType$inboundSchema;
5631
5698
 
5632
5699
  /**
5633
5700
  * @internal
5634
5701
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5635
5702
  */
5636
- export namespace CreatePromptResponseFormatPromptsRequestType$ {
5637
- /** @deprecated use `CreatePromptResponseFormatPromptsRequestType$inboundSchema` instead. */
5703
+ export namespace CreatePromptResponseFormatPromptsRequestRequestBodyType$ {
5704
+ /** @deprecated use `CreatePromptResponseFormatPromptsRequestRequestBodyType$inboundSchema` instead. */
5638
5705
  export const inboundSchema =
5639
- CreatePromptResponseFormatPromptsRequestType$inboundSchema;
5640
- /** @deprecated use `CreatePromptResponseFormatPromptsRequestType$outboundSchema` instead. */
5706
+ CreatePromptResponseFormatPromptsRequestRequestBodyType$inboundSchema;
5707
+ /** @deprecated use `CreatePromptResponseFormatPromptsRequestRequestBodyType$outboundSchema` instead. */
5641
5708
  export const outboundSchema =
5642
- CreatePromptResponseFormatPromptsRequestType$outboundSchema;
5709
+ CreatePromptResponseFormatPromptsRequestRequestBodyType$outboundSchema;
5643
5710
  }
5644
5711
 
5645
5712
  /** @internal */
5646
- export const CreatePromptResponseFormat1$inboundSchema: z.ZodType<
5647
- CreatePromptResponseFormat1,
5713
+ export const CreatePromptResponseFormatPrompts1$inboundSchema: z.ZodType<
5714
+ CreatePromptResponseFormatPrompts1,
5648
5715
  z.ZodTypeDef,
5649
5716
  unknown
5650
5717
  > = z.object({
5651
- type: CreatePromptResponseFormatPromptsRequestType$inboundSchema,
5718
+ type: CreatePromptResponseFormatPromptsRequestRequestBodyType$inboundSchema,
5652
5719
  });
5653
5720
 
5654
5721
  /** @internal */
5655
- export type CreatePromptResponseFormat1$Outbound = {
5722
+ export type CreatePromptResponseFormatPrompts1$Outbound = {
5656
5723
  type: string;
5657
5724
  };
5658
5725
 
5659
5726
  /** @internal */
5660
- export const CreatePromptResponseFormat1$outboundSchema: z.ZodType<
5661
- CreatePromptResponseFormat1$Outbound,
5727
+ export const CreatePromptResponseFormatPrompts1$outboundSchema: z.ZodType<
5728
+ CreatePromptResponseFormatPrompts1$Outbound,
5662
5729
  z.ZodTypeDef,
5663
- CreatePromptResponseFormat1
5730
+ CreatePromptResponseFormatPrompts1
5664
5731
  > = z.object({
5665
- type: CreatePromptResponseFormatPromptsRequestType$outboundSchema,
5732
+ type: CreatePromptResponseFormatPromptsRequestRequestBodyType$outboundSchema,
5666
5733
  });
5667
5734
 
5668
5735
  /**
5669
5736
  * @internal
5670
5737
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5671
5738
  */
5672
- export namespace CreatePromptResponseFormat1$ {
5673
- /** @deprecated use `CreatePromptResponseFormat1$inboundSchema` instead. */
5674
- export const inboundSchema = CreatePromptResponseFormat1$inboundSchema;
5675
- /** @deprecated use `CreatePromptResponseFormat1$outboundSchema` instead. */
5676
- export const outboundSchema = CreatePromptResponseFormat1$outboundSchema;
5677
- /** @deprecated use `CreatePromptResponseFormat1$Outbound` instead. */
5678
- export type Outbound = CreatePromptResponseFormat1$Outbound;
5739
+ export namespace CreatePromptResponseFormatPrompts1$ {
5740
+ /** @deprecated use `CreatePromptResponseFormatPrompts1$inboundSchema` instead. */
5741
+ export const inboundSchema = CreatePromptResponseFormatPrompts1$inboundSchema;
5742
+ /** @deprecated use `CreatePromptResponseFormatPrompts1$outboundSchema` instead. */
5743
+ export const outboundSchema =
5744
+ CreatePromptResponseFormatPrompts1$outboundSchema;
5745
+ /** @deprecated use `CreatePromptResponseFormatPrompts1$Outbound` instead. */
5746
+ export type Outbound = CreatePromptResponseFormatPrompts1$Outbound;
5679
5747
  }
5680
5748
 
5681
- export function createPromptResponseFormat1ToJSON(
5682
- createPromptResponseFormat1: CreatePromptResponseFormat1,
5749
+ export function createPromptResponseFormatPrompts1ToJSON(
5750
+ createPromptResponseFormatPrompts1: CreatePromptResponseFormatPrompts1,
5683
5751
  ): string {
5684
5752
  return JSON.stringify(
5685
- CreatePromptResponseFormat1$outboundSchema.parse(
5686
- createPromptResponseFormat1,
5753
+ CreatePromptResponseFormatPrompts1$outboundSchema.parse(
5754
+ createPromptResponseFormatPrompts1,
5687
5755
  ),
5688
5756
  );
5689
5757
  }
5690
5758
 
5691
- export function createPromptResponseFormat1FromJSON(
5759
+ export function createPromptResponseFormatPrompts1FromJSON(
5692
5760
  jsonString: string,
5693
- ): SafeParseResult<CreatePromptResponseFormat1, SDKValidationError> {
5761
+ ): SafeParseResult<CreatePromptResponseFormatPrompts1, SDKValidationError> {
5694
5762
  return safeParse(
5695
5763
  jsonString,
5696
- (x) => CreatePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)),
5697
- `Failed to parse 'CreatePromptResponseFormat1' from JSON`,
5764
+ (x) =>
5765
+ CreatePromptResponseFormatPrompts1$inboundSchema.parse(JSON.parse(x)),
5766
+ `Failed to parse 'CreatePromptResponseFormatPrompts1' from JSON`,
5698
5767
  );
5699
5768
  }
5700
5769
 
5701
5770
  /** @internal */
5702
- export const CreatePromptResponseFormat$inboundSchema: z.ZodType<
5703
- CreatePromptResponseFormat,
5771
+ export const CreatePromptPromptsResponseFormat$inboundSchema: z.ZodType<
5772
+ CreatePromptPromptsResponseFormat,
5704
5773
  z.ZodTypeDef,
5705
5774
  unknown
5706
5775
  > = z.union([
5707
- z.lazy(() => CreatePromptResponseFormat3$inboundSchema),
5708
- z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
5709
- z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
5776
+ z.lazy(() => CreatePromptResponseFormatPrompts3$inboundSchema),
5777
+ z.lazy(() => CreatePromptResponseFormatPrompts1$inboundSchema),
5778
+ z.lazy(() => CreatePromptResponseFormatPrompts2$inboundSchema),
5710
5779
  ]);
5711
5780
 
5712
5781
  /** @internal */
5713
- export type CreatePromptResponseFormat$Outbound =
5714
- | CreatePromptResponseFormat3$Outbound
5715
- | CreatePromptResponseFormat1$Outbound
5716
- | CreatePromptResponseFormat2$Outbound;
5782
+ export type CreatePromptPromptsResponseFormat$Outbound =
5783
+ | CreatePromptResponseFormatPrompts3$Outbound
5784
+ | CreatePromptResponseFormatPrompts1$Outbound
5785
+ | CreatePromptResponseFormatPrompts2$Outbound;
5717
5786
 
5718
5787
  /** @internal */
5719
- export const CreatePromptResponseFormat$outboundSchema: z.ZodType<
5720
- CreatePromptResponseFormat$Outbound,
5788
+ export const CreatePromptPromptsResponseFormat$outboundSchema: z.ZodType<
5789
+ CreatePromptPromptsResponseFormat$Outbound,
5721
5790
  z.ZodTypeDef,
5722
- CreatePromptResponseFormat
5791
+ CreatePromptPromptsResponseFormat
5723
5792
  > = z.union([
5724
- z.lazy(() => CreatePromptResponseFormat3$outboundSchema),
5725
- z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
5726
- z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
5793
+ z.lazy(() => CreatePromptResponseFormatPrompts3$outboundSchema),
5794
+ z.lazy(() => CreatePromptResponseFormatPrompts1$outboundSchema),
5795
+ z.lazy(() => CreatePromptResponseFormatPrompts2$outboundSchema),
5727
5796
  ]);
5728
5797
 
5729
5798
  /**
5730
5799
  * @internal
5731
5800
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5732
5801
  */
5733
- export namespace CreatePromptResponseFormat$ {
5734
- /** @deprecated use `CreatePromptResponseFormat$inboundSchema` instead. */
5735
- export const inboundSchema = CreatePromptResponseFormat$inboundSchema;
5736
- /** @deprecated use `CreatePromptResponseFormat$outboundSchema` instead. */
5737
- export const outboundSchema = CreatePromptResponseFormat$outboundSchema;
5738
- /** @deprecated use `CreatePromptResponseFormat$Outbound` instead. */
5739
- export type Outbound = CreatePromptResponseFormat$Outbound;
5802
+ export namespace CreatePromptPromptsResponseFormat$ {
5803
+ /** @deprecated use `CreatePromptPromptsResponseFormat$inboundSchema` instead. */
5804
+ export const inboundSchema = CreatePromptPromptsResponseFormat$inboundSchema;
5805
+ /** @deprecated use `CreatePromptPromptsResponseFormat$outboundSchema` instead. */
5806
+ export const outboundSchema =
5807
+ CreatePromptPromptsResponseFormat$outboundSchema;
5808
+ /** @deprecated use `CreatePromptPromptsResponseFormat$Outbound` instead. */
5809
+ export type Outbound = CreatePromptPromptsResponseFormat$Outbound;
5740
5810
  }
5741
5811
 
5742
- export function createPromptResponseFormatToJSON(
5743
- createPromptResponseFormat: CreatePromptResponseFormat,
5812
+ export function createPromptPromptsResponseFormatToJSON(
5813
+ createPromptPromptsResponseFormat: CreatePromptPromptsResponseFormat,
5744
5814
  ): string {
5745
5815
  return JSON.stringify(
5746
- CreatePromptResponseFormat$outboundSchema.parse(createPromptResponseFormat),
5816
+ CreatePromptPromptsResponseFormat$outboundSchema.parse(
5817
+ createPromptPromptsResponseFormat,
5818
+ ),
5747
5819
  );
5748
5820
  }
5749
5821
 
5750
- export function createPromptResponseFormatFromJSON(
5822
+ export function createPromptPromptsResponseFormatFromJSON(
5751
5823
  jsonString: string,
5752
- ): SafeParseResult<CreatePromptResponseFormat, SDKValidationError> {
5824
+ ): SafeParseResult<CreatePromptPromptsResponseFormat, SDKValidationError> {
5753
5825
  return safeParse(
5754
5826
  jsonString,
5755
- (x) => CreatePromptResponseFormat$inboundSchema.parse(JSON.parse(x)),
5756
- `Failed to parse 'CreatePromptResponseFormat' from JSON`,
5827
+ (x) => CreatePromptPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)),
5828
+ `Failed to parse 'CreatePromptPromptsResponseFormat' from JSON`,
5757
5829
  );
5758
5830
  }
5759
5831
 
@@ -5775,9 +5847,9 @@ export const PromptInput$inboundSchema: z.ZodType<
5775
5847
  temperature: z.nullable(z.number()).optional(),
5776
5848
  max_tokens: z.nullable(z.number().int()).optional(),
5777
5849
  response_format: z.union([
5778
- z.lazy(() => CreatePromptResponseFormat3$inboundSchema),
5779
- z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
5780
- z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
5850
+ z.lazy(() => CreatePromptResponseFormatPrompts3$inboundSchema),
5851
+ z.lazy(() => CreatePromptResponseFormatPrompts1$inboundSchema),
5852
+ z.lazy(() => CreatePromptResponseFormatPrompts2$inboundSchema),
5781
5853
  ]).optional(),
5782
5854
  }).transform((v) => {
5783
5855
  return remap$(v, {
@@ -5798,9 +5870,9 @@ export type PromptInput$Outbound = {
5798
5870
  temperature?: number | null | undefined;
5799
5871
  max_tokens?: number | null | undefined;
5800
5872
  response_format?:
5801
- | CreatePromptResponseFormat3$Outbound
5802
- | CreatePromptResponseFormat1$Outbound
5803
- | CreatePromptResponseFormat2$Outbound
5873
+ | CreatePromptResponseFormatPrompts3$Outbound
5874
+ | CreatePromptResponseFormatPrompts1$Outbound
5875
+ | CreatePromptResponseFormatPrompts2$Outbound
5804
5876
  | undefined;
5805
5877
  };
5806
5878
 
@@ -5822,9 +5894,9 @@ export const PromptInput$outboundSchema: z.ZodType<
5822
5894
  temperature: z.nullable(z.number()).optional(),
5823
5895
  maxTokens: z.nullable(z.number().int()).optional(),
5824
5896
  responseFormat: z.union([
5825
- z.lazy(() => CreatePromptResponseFormat3$outboundSchema),
5826
- z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
5827
- z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
5897
+ z.lazy(() => CreatePromptResponseFormatPrompts3$outboundSchema),
5898
+ z.lazy(() => CreatePromptResponseFormatPrompts1$outboundSchema),
5899
+ z.lazy(() => CreatePromptResponseFormatPrompts2$outboundSchema),
5828
5900
  ]).optional(),
5829
5901
  }).transform((v) => {
5830
5902
  return remap$(v, {
@@ -6094,62 +6166,68 @@ export namespace CreatePromptResponseFormatPromptsResponse200ApplicationJSONType
6094
6166
  }
6095
6167
 
6096
6168
  /** @internal */
6097
- export const CreatePromptResponseFormatPrompts3$inboundSchema: z.ZodType<
6098
- CreatePromptResponseFormatPrompts3,
6099
- z.ZodTypeDef,
6100
- unknown
6101
- > = z.object({
6102
- type:
6103
- CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema,
6104
- });
6169
+ export const CreatePromptResponseFormatPromptsResponse3$inboundSchema:
6170
+ z.ZodType<CreatePromptResponseFormatPromptsResponse3, z.ZodTypeDef, unknown> =
6171
+ z.object({
6172
+ type:
6173
+ CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema,
6174
+ });
6105
6175
 
6106
6176
  /** @internal */
6107
- export type CreatePromptResponseFormatPrompts3$Outbound = {
6177
+ export type CreatePromptResponseFormatPromptsResponse3$Outbound = {
6108
6178
  type: string;
6109
6179
  };
6110
6180
 
6111
6181
  /** @internal */
6112
- export const CreatePromptResponseFormatPrompts3$outboundSchema: z.ZodType<
6113
- CreatePromptResponseFormatPrompts3$Outbound,
6114
- z.ZodTypeDef,
6115
- CreatePromptResponseFormatPrompts3
6116
- > = z.object({
6117
- type:
6118
- CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema,
6119
- });
6182
+ export const CreatePromptResponseFormatPromptsResponse3$outboundSchema:
6183
+ z.ZodType<
6184
+ CreatePromptResponseFormatPromptsResponse3$Outbound,
6185
+ z.ZodTypeDef,
6186
+ CreatePromptResponseFormatPromptsResponse3
6187
+ > = z.object({
6188
+ type:
6189
+ CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema,
6190
+ });
6120
6191
 
6121
6192
  /**
6122
6193
  * @internal
6123
6194
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6124
6195
  */
6125
- export namespace CreatePromptResponseFormatPrompts3$ {
6126
- /** @deprecated use `CreatePromptResponseFormatPrompts3$inboundSchema` instead. */
6127
- export const inboundSchema = CreatePromptResponseFormatPrompts3$inboundSchema;
6128
- /** @deprecated use `CreatePromptResponseFormatPrompts3$outboundSchema` instead. */
6196
+ export namespace CreatePromptResponseFormatPromptsResponse3$ {
6197
+ /** @deprecated use `CreatePromptResponseFormatPromptsResponse3$inboundSchema` instead. */
6198
+ export const inboundSchema =
6199
+ CreatePromptResponseFormatPromptsResponse3$inboundSchema;
6200
+ /** @deprecated use `CreatePromptResponseFormatPromptsResponse3$outboundSchema` instead. */
6129
6201
  export const outboundSchema =
6130
- CreatePromptResponseFormatPrompts3$outboundSchema;
6131
- /** @deprecated use `CreatePromptResponseFormatPrompts3$Outbound` instead. */
6132
- export type Outbound = CreatePromptResponseFormatPrompts3$Outbound;
6202
+ CreatePromptResponseFormatPromptsResponse3$outboundSchema;
6203
+ /** @deprecated use `CreatePromptResponseFormatPromptsResponse3$Outbound` instead. */
6204
+ export type Outbound = CreatePromptResponseFormatPromptsResponse3$Outbound;
6133
6205
  }
6134
6206
 
6135
- export function createPromptResponseFormatPrompts3ToJSON(
6136
- createPromptResponseFormatPrompts3: CreatePromptResponseFormatPrompts3,
6207
+ export function createPromptResponseFormatPromptsResponse3ToJSON(
6208
+ createPromptResponseFormatPromptsResponse3:
6209
+ CreatePromptResponseFormatPromptsResponse3,
6137
6210
  ): string {
6138
6211
  return JSON.stringify(
6139
- CreatePromptResponseFormatPrompts3$outboundSchema.parse(
6140
- createPromptResponseFormatPrompts3,
6212
+ CreatePromptResponseFormatPromptsResponse3$outboundSchema.parse(
6213
+ createPromptResponseFormatPromptsResponse3,
6141
6214
  ),
6142
6215
  );
6143
6216
  }
6144
6217
 
6145
- export function createPromptResponseFormatPrompts3FromJSON(
6218
+ export function createPromptResponseFormatPromptsResponse3FromJSON(
6146
6219
  jsonString: string,
6147
- ): SafeParseResult<CreatePromptResponseFormatPrompts3, SDKValidationError> {
6220
+ ): SafeParseResult<
6221
+ CreatePromptResponseFormatPromptsResponse3,
6222
+ SDKValidationError
6223
+ > {
6148
6224
  return safeParse(
6149
6225
  jsonString,
6150
6226
  (x) =>
6151
- CreatePromptResponseFormatPrompts3$inboundSchema.parse(JSON.parse(x)),
6152
- `Failed to parse 'CreatePromptResponseFormatPrompts3' from JSON`,
6227
+ CreatePromptResponseFormatPromptsResponse3$inboundSchema.parse(
6228
+ JSON.parse(x),
6229
+ ),
6230
+ `Failed to parse 'CreatePromptResponseFormatPromptsResponse3' from JSON`,
6153
6231
  );
6154
6232
  }
6155
6233
 
@@ -6177,60 +6255,66 @@ export namespace CreatePromptResponseFormatPromptsResponse200Type$ {
6177
6255
  }
6178
6256
 
6179
6257
  /** @internal */
6180
- export const CreatePromptResponseFormatPrompts2$inboundSchema: z.ZodType<
6181
- CreatePromptResponseFormatPrompts2,
6182
- z.ZodTypeDef,
6183
- unknown
6184
- > = z.object({
6185
- type: CreatePromptResponseFormatPromptsResponse200Type$inboundSchema,
6186
- });
6258
+ export const CreatePromptResponseFormatPromptsResponse2$inboundSchema:
6259
+ z.ZodType<CreatePromptResponseFormatPromptsResponse2, z.ZodTypeDef, unknown> =
6260
+ z.object({
6261
+ type: CreatePromptResponseFormatPromptsResponse200Type$inboundSchema,
6262
+ });
6187
6263
 
6188
6264
  /** @internal */
6189
- export type CreatePromptResponseFormatPrompts2$Outbound = {
6265
+ export type CreatePromptResponseFormatPromptsResponse2$Outbound = {
6190
6266
  type: string;
6191
6267
  };
6192
6268
 
6193
6269
  /** @internal */
6194
- export const CreatePromptResponseFormatPrompts2$outboundSchema: z.ZodType<
6195
- CreatePromptResponseFormatPrompts2$Outbound,
6196
- z.ZodTypeDef,
6197
- CreatePromptResponseFormatPrompts2
6198
- > = z.object({
6199
- type: CreatePromptResponseFormatPromptsResponse200Type$outboundSchema,
6200
- });
6270
+ export const CreatePromptResponseFormatPromptsResponse2$outboundSchema:
6271
+ z.ZodType<
6272
+ CreatePromptResponseFormatPromptsResponse2$Outbound,
6273
+ z.ZodTypeDef,
6274
+ CreatePromptResponseFormatPromptsResponse2
6275
+ > = z.object({
6276
+ type: CreatePromptResponseFormatPromptsResponse200Type$outboundSchema,
6277
+ });
6201
6278
 
6202
6279
  /**
6203
6280
  * @internal
6204
6281
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6205
6282
  */
6206
- export namespace CreatePromptResponseFormatPrompts2$ {
6207
- /** @deprecated use `CreatePromptResponseFormatPrompts2$inboundSchema` instead. */
6208
- export const inboundSchema = CreatePromptResponseFormatPrompts2$inboundSchema;
6209
- /** @deprecated use `CreatePromptResponseFormatPrompts2$outboundSchema` instead. */
6283
+ export namespace CreatePromptResponseFormatPromptsResponse2$ {
6284
+ /** @deprecated use `CreatePromptResponseFormatPromptsResponse2$inboundSchema` instead. */
6285
+ export const inboundSchema =
6286
+ CreatePromptResponseFormatPromptsResponse2$inboundSchema;
6287
+ /** @deprecated use `CreatePromptResponseFormatPromptsResponse2$outboundSchema` instead. */
6210
6288
  export const outboundSchema =
6211
- CreatePromptResponseFormatPrompts2$outboundSchema;
6212
- /** @deprecated use `CreatePromptResponseFormatPrompts2$Outbound` instead. */
6213
- export type Outbound = CreatePromptResponseFormatPrompts2$Outbound;
6289
+ CreatePromptResponseFormatPromptsResponse2$outboundSchema;
6290
+ /** @deprecated use `CreatePromptResponseFormatPromptsResponse2$Outbound` instead. */
6291
+ export type Outbound = CreatePromptResponseFormatPromptsResponse2$Outbound;
6214
6292
  }
6215
6293
 
6216
- export function createPromptResponseFormatPrompts2ToJSON(
6217
- createPromptResponseFormatPrompts2: CreatePromptResponseFormatPrompts2,
6294
+ export function createPromptResponseFormatPromptsResponse2ToJSON(
6295
+ createPromptResponseFormatPromptsResponse2:
6296
+ CreatePromptResponseFormatPromptsResponse2,
6218
6297
  ): string {
6219
6298
  return JSON.stringify(
6220
- CreatePromptResponseFormatPrompts2$outboundSchema.parse(
6221
- createPromptResponseFormatPrompts2,
6299
+ CreatePromptResponseFormatPromptsResponse2$outboundSchema.parse(
6300
+ createPromptResponseFormatPromptsResponse2,
6222
6301
  ),
6223
6302
  );
6224
6303
  }
6225
6304
 
6226
- export function createPromptResponseFormatPrompts2FromJSON(
6305
+ export function createPromptResponseFormatPromptsResponse2FromJSON(
6227
6306
  jsonString: string,
6228
- ): SafeParseResult<CreatePromptResponseFormatPrompts2, SDKValidationError> {
6307
+ ): SafeParseResult<
6308
+ CreatePromptResponseFormatPromptsResponse2,
6309
+ SDKValidationError
6310
+ > {
6229
6311
  return safeParse(
6230
6312
  jsonString,
6231
6313
  (x) =>
6232
- CreatePromptResponseFormatPrompts2$inboundSchema.parse(JSON.parse(x)),
6233
- `Failed to parse 'CreatePromptResponseFormatPrompts2' from JSON`,
6314
+ CreatePromptResponseFormatPromptsResponse2$inboundSchema.parse(
6315
+ JSON.parse(x),
6316
+ ),
6317
+ `Failed to parse 'CreatePromptResponseFormatPromptsResponse2' from JSON`,
6234
6318
  );
6235
6319
  }
6236
6320
 
@@ -6258,19 +6342,20 @@ export namespace CreatePromptResponseFormatPromptsResponseType$ {
6258
6342
  }
6259
6343
 
6260
6344
  /** @internal */
6261
- export const CreatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
6262
- CreatePromptResponseFormatJsonSchema,
6263
- z.ZodTypeDef,
6264
- unknown
6265
- > = z.object({
6266
- name: z.string(),
6267
- description: z.string().optional(),
6268
- strict: z.boolean().optional(),
6269
- schema: z.record(z.any()),
6270
- });
6345
+ export const CreatePromptResponseFormatPromptsResponseJsonSchema$inboundSchema:
6346
+ z.ZodType<
6347
+ CreatePromptResponseFormatPromptsResponseJsonSchema,
6348
+ z.ZodTypeDef,
6349
+ unknown
6350
+ > = z.object({
6351
+ name: z.string(),
6352
+ description: z.string().optional(),
6353
+ strict: z.boolean().optional(),
6354
+ schema: z.record(z.any()),
6355
+ });
6271
6356
 
6272
6357
  /** @internal */
6273
- export type CreatePromptResponseFormatJsonSchema$Outbound = {
6358
+ export type CreatePromptResponseFormatPromptsResponseJsonSchema$Outbound = {
6274
6359
  name: string;
6275
6360
  description?: string | undefined;
6276
6361
  strict?: boolean | undefined;
@@ -6278,190 +6363,217 @@ export type CreatePromptResponseFormatJsonSchema$Outbound = {
6278
6363
  };
6279
6364
 
6280
6365
  /** @internal */
6281
- export const CreatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
6282
- CreatePromptResponseFormatJsonSchema$Outbound,
6283
- z.ZodTypeDef,
6284
- CreatePromptResponseFormatJsonSchema
6285
- > = z.object({
6286
- name: z.string(),
6287
- description: z.string().optional(),
6288
- strict: z.boolean().optional(),
6289
- schema: z.record(z.any()),
6290
- });
6366
+ export const CreatePromptResponseFormatPromptsResponseJsonSchema$outboundSchema:
6367
+ z.ZodType<
6368
+ CreatePromptResponseFormatPromptsResponseJsonSchema$Outbound,
6369
+ z.ZodTypeDef,
6370
+ CreatePromptResponseFormatPromptsResponseJsonSchema
6371
+ > = z.object({
6372
+ name: z.string(),
6373
+ description: z.string().optional(),
6374
+ strict: z.boolean().optional(),
6375
+ schema: z.record(z.any()),
6376
+ });
6291
6377
 
6292
6378
  /**
6293
6379
  * @internal
6294
6380
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6295
6381
  */
6296
- export namespace CreatePromptResponseFormatJsonSchema$ {
6297
- /** @deprecated use `CreatePromptResponseFormatJsonSchema$inboundSchema` instead. */
6382
+ export namespace CreatePromptResponseFormatPromptsResponseJsonSchema$ {
6383
+ /** @deprecated use `CreatePromptResponseFormatPromptsResponseJsonSchema$inboundSchema` instead. */
6298
6384
  export const inboundSchema =
6299
- CreatePromptResponseFormatJsonSchema$inboundSchema;
6300
- /** @deprecated use `CreatePromptResponseFormatJsonSchema$outboundSchema` instead. */
6385
+ CreatePromptResponseFormatPromptsResponseJsonSchema$inboundSchema;
6386
+ /** @deprecated use `CreatePromptResponseFormatPromptsResponseJsonSchema$outboundSchema` instead. */
6301
6387
  export const outboundSchema =
6302
- CreatePromptResponseFormatJsonSchema$outboundSchema;
6303
- /** @deprecated use `CreatePromptResponseFormatJsonSchema$Outbound` instead. */
6304
- export type Outbound = CreatePromptResponseFormatJsonSchema$Outbound;
6388
+ CreatePromptResponseFormatPromptsResponseJsonSchema$outboundSchema;
6389
+ /** @deprecated use `CreatePromptResponseFormatPromptsResponseJsonSchema$Outbound` instead. */
6390
+ export type Outbound =
6391
+ CreatePromptResponseFormatPromptsResponseJsonSchema$Outbound;
6305
6392
  }
6306
6393
 
6307
- export function createPromptResponseFormatJsonSchemaToJSON(
6308
- createPromptResponseFormatJsonSchema: CreatePromptResponseFormatJsonSchema,
6394
+ export function createPromptResponseFormatPromptsResponseJsonSchemaToJSON(
6395
+ createPromptResponseFormatPromptsResponseJsonSchema:
6396
+ CreatePromptResponseFormatPromptsResponseJsonSchema,
6309
6397
  ): string {
6310
6398
  return JSON.stringify(
6311
- CreatePromptResponseFormatJsonSchema$outboundSchema.parse(
6312
- createPromptResponseFormatJsonSchema,
6399
+ CreatePromptResponseFormatPromptsResponseJsonSchema$outboundSchema.parse(
6400
+ createPromptResponseFormatPromptsResponseJsonSchema,
6313
6401
  ),
6314
6402
  );
6315
6403
  }
6316
6404
 
6317
- export function createPromptResponseFormatJsonSchemaFromJSON(
6405
+ export function createPromptResponseFormatPromptsResponseJsonSchemaFromJSON(
6318
6406
  jsonString: string,
6319
- ): SafeParseResult<CreatePromptResponseFormatJsonSchema, SDKValidationError> {
6407
+ ): SafeParseResult<
6408
+ CreatePromptResponseFormatPromptsResponseJsonSchema,
6409
+ SDKValidationError
6410
+ > {
6320
6411
  return safeParse(
6321
6412
  jsonString,
6322
6413
  (x) =>
6323
- CreatePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
6324
- `Failed to parse 'CreatePromptResponseFormatJsonSchema' from JSON`,
6414
+ CreatePromptResponseFormatPromptsResponseJsonSchema$inboundSchema.parse(
6415
+ JSON.parse(x),
6416
+ ),
6417
+ `Failed to parse 'CreatePromptResponseFormatPromptsResponseJsonSchema' from JSON`,
6325
6418
  );
6326
6419
  }
6327
6420
 
6328
6421
  /** @internal */
6329
- export const CreatePromptResponseFormatPrompts1$inboundSchema: z.ZodType<
6330
- CreatePromptResponseFormatPrompts1,
6331
- z.ZodTypeDef,
6332
- unknown
6333
- > = z.object({
6334
- type: CreatePromptResponseFormatPromptsResponseType$inboundSchema,
6335
- json_schema: z.lazy(() => CreatePromptResponseFormatJsonSchema$inboundSchema),
6336
- }).transform((v) => {
6337
- return remap$(v, {
6338
- "json_schema": "jsonSchema",
6339
- });
6340
- });
6422
+ export const CreatePromptResponseFormatPromptsResponse1$inboundSchema:
6423
+ z.ZodType<CreatePromptResponseFormatPromptsResponse1, z.ZodTypeDef, unknown> =
6424
+ z.object({
6425
+ type: CreatePromptResponseFormatPromptsResponseType$inboundSchema,
6426
+ json_schema: z.lazy(() =>
6427
+ CreatePromptResponseFormatPromptsResponseJsonSchema$inboundSchema
6428
+ ),
6429
+ }).transform((v) => {
6430
+ return remap$(v, {
6431
+ "json_schema": "jsonSchema",
6432
+ });
6433
+ });
6341
6434
 
6342
6435
  /** @internal */
6343
- export type CreatePromptResponseFormatPrompts1$Outbound = {
6436
+ export type CreatePromptResponseFormatPromptsResponse1$Outbound = {
6344
6437
  type: string;
6345
- json_schema: CreatePromptResponseFormatJsonSchema$Outbound;
6438
+ json_schema: CreatePromptResponseFormatPromptsResponseJsonSchema$Outbound;
6346
6439
  };
6347
6440
 
6348
6441
  /** @internal */
6349
- export const CreatePromptResponseFormatPrompts1$outboundSchema: z.ZodType<
6350
- CreatePromptResponseFormatPrompts1$Outbound,
6351
- z.ZodTypeDef,
6352
- CreatePromptResponseFormatPrompts1
6353
- > = z.object({
6354
- type: CreatePromptResponseFormatPromptsResponseType$outboundSchema,
6355
- jsonSchema: z.lazy(() => CreatePromptResponseFormatJsonSchema$outboundSchema),
6356
- }).transform((v) => {
6357
- return remap$(v, {
6358
- jsonSchema: "json_schema",
6442
+ export const CreatePromptResponseFormatPromptsResponse1$outboundSchema:
6443
+ z.ZodType<
6444
+ CreatePromptResponseFormatPromptsResponse1$Outbound,
6445
+ z.ZodTypeDef,
6446
+ CreatePromptResponseFormatPromptsResponse1
6447
+ > = z.object({
6448
+ type: CreatePromptResponseFormatPromptsResponseType$outboundSchema,
6449
+ jsonSchema: z.lazy(() =>
6450
+ CreatePromptResponseFormatPromptsResponseJsonSchema$outboundSchema
6451
+ ),
6452
+ }).transform((v) => {
6453
+ return remap$(v, {
6454
+ jsonSchema: "json_schema",
6455
+ });
6359
6456
  });
6360
- });
6361
6457
 
6362
6458
  /**
6363
6459
  * @internal
6364
6460
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6365
6461
  */
6366
- export namespace CreatePromptResponseFormatPrompts1$ {
6367
- /** @deprecated use `CreatePromptResponseFormatPrompts1$inboundSchema` instead. */
6368
- export const inboundSchema = CreatePromptResponseFormatPrompts1$inboundSchema;
6369
- /** @deprecated use `CreatePromptResponseFormatPrompts1$outboundSchema` instead. */
6462
+ export namespace CreatePromptResponseFormatPromptsResponse1$ {
6463
+ /** @deprecated use `CreatePromptResponseFormatPromptsResponse1$inboundSchema` instead. */
6464
+ export const inboundSchema =
6465
+ CreatePromptResponseFormatPromptsResponse1$inboundSchema;
6466
+ /** @deprecated use `CreatePromptResponseFormatPromptsResponse1$outboundSchema` instead. */
6370
6467
  export const outboundSchema =
6371
- CreatePromptResponseFormatPrompts1$outboundSchema;
6372
- /** @deprecated use `CreatePromptResponseFormatPrompts1$Outbound` instead. */
6373
- export type Outbound = CreatePromptResponseFormatPrompts1$Outbound;
6468
+ CreatePromptResponseFormatPromptsResponse1$outboundSchema;
6469
+ /** @deprecated use `CreatePromptResponseFormatPromptsResponse1$Outbound` instead. */
6470
+ export type Outbound = CreatePromptResponseFormatPromptsResponse1$Outbound;
6374
6471
  }
6375
6472
 
6376
- export function createPromptResponseFormatPrompts1ToJSON(
6377
- createPromptResponseFormatPrompts1: CreatePromptResponseFormatPrompts1,
6473
+ export function createPromptResponseFormatPromptsResponse1ToJSON(
6474
+ createPromptResponseFormatPromptsResponse1:
6475
+ CreatePromptResponseFormatPromptsResponse1,
6378
6476
  ): string {
6379
6477
  return JSON.stringify(
6380
- CreatePromptResponseFormatPrompts1$outboundSchema.parse(
6381
- createPromptResponseFormatPrompts1,
6478
+ CreatePromptResponseFormatPromptsResponse1$outboundSchema.parse(
6479
+ createPromptResponseFormatPromptsResponse1,
6382
6480
  ),
6383
6481
  );
6384
6482
  }
6385
6483
 
6386
- export function createPromptResponseFormatPrompts1FromJSON(
6484
+ export function createPromptResponseFormatPromptsResponse1FromJSON(
6387
6485
  jsonString: string,
6388
- ): SafeParseResult<CreatePromptResponseFormatPrompts1, SDKValidationError> {
6486
+ ): SafeParseResult<
6487
+ CreatePromptResponseFormatPromptsResponse1,
6488
+ SDKValidationError
6489
+ > {
6389
6490
  return safeParse(
6390
6491
  jsonString,
6391
6492
  (x) =>
6392
- CreatePromptResponseFormatPrompts1$inboundSchema.parse(JSON.parse(x)),
6393
- `Failed to parse 'CreatePromptResponseFormatPrompts1' from JSON`,
6493
+ CreatePromptResponseFormatPromptsResponse1$inboundSchema.parse(
6494
+ JSON.parse(x),
6495
+ ),
6496
+ `Failed to parse 'CreatePromptResponseFormatPromptsResponse1' from JSON`,
6394
6497
  );
6395
6498
  }
6396
6499
 
6397
6500
  /** @internal */
6398
- export const CreatePromptPromptsResponseFormat$inboundSchema: z.ZodType<
6399
- CreatePromptPromptsResponseFormat,
6501
+ export const CreatePromptPromptsResponseResponseFormat$inboundSchema: z.ZodType<
6502
+ CreatePromptPromptsResponseResponseFormat,
6400
6503
  z.ZodTypeDef,
6401
6504
  unknown
6402
6505
  > = z.union([
6403
- z.lazy(() => CreatePromptResponseFormatPrompts1$inboundSchema),
6404
- z.lazy(() => CreatePromptResponseFormatPrompts2$inboundSchema),
6405
- z.lazy(() => CreatePromptResponseFormatPrompts3$inboundSchema),
6506
+ z.lazy(() => CreatePromptResponseFormatPromptsResponse1$inboundSchema),
6507
+ z.lazy(() => CreatePromptResponseFormatPromptsResponse2$inboundSchema),
6508
+ z.lazy(() => CreatePromptResponseFormatPromptsResponse3$inboundSchema),
6406
6509
  CreatePromptResponseFormat4$inboundSchema,
6407
6510
  CreatePromptResponseFormat5$inboundSchema,
6408
6511
  CreatePromptResponseFormat6$inboundSchema,
6409
6512
  ]);
6410
6513
 
6411
6514
  /** @internal */
6412
- export type CreatePromptPromptsResponseFormat$Outbound =
6413
- | CreatePromptResponseFormatPrompts1$Outbound
6414
- | CreatePromptResponseFormatPrompts2$Outbound
6415
- | CreatePromptResponseFormatPrompts3$Outbound
6515
+ export type CreatePromptPromptsResponseResponseFormat$Outbound =
6516
+ | CreatePromptResponseFormatPromptsResponse1$Outbound
6517
+ | CreatePromptResponseFormatPromptsResponse2$Outbound
6518
+ | CreatePromptResponseFormatPromptsResponse3$Outbound
6416
6519
  | string
6417
6520
  | string
6418
6521
  | string;
6419
6522
 
6420
6523
  /** @internal */
6421
- export const CreatePromptPromptsResponseFormat$outboundSchema: z.ZodType<
6422
- CreatePromptPromptsResponseFormat$Outbound,
6423
- z.ZodTypeDef,
6424
- CreatePromptPromptsResponseFormat
6425
- > = z.union([
6426
- z.lazy(() => CreatePromptResponseFormatPrompts1$outboundSchema),
6427
- z.lazy(() => CreatePromptResponseFormatPrompts2$outboundSchema),
6428
- z.lazy(() => CreatePromptResponseFormatPrompts3$outboundSchema),
6429
- CreatePromptResponseFormat4$outboundSchema,
6430
- CreatePromptResponseFormat5$outboundSchema,
6431
- CreatePromptResponseFormat6$outboundSchema,
6432
- ]);
6524
+ export const CreatePromptPromptsResponseResponseFormat$outboundSchema:
6525
+ z.ZodType<
6526
+ CreatePromptPromptsResponseResponseFormat$Outbound,
6527
+ z.ZodTypeDef,
6528
+ CreatePromptPromptsResponseResponseFormat
6529
+ > = z.union([
6530
+ z.lazy(() => CreatePromptResponseFormatPromptsResponse1$outboundSchema),
6531
+ z.lazy(() => CreatePromptResponseFormatPromptsResponse2$outboundSchema),
6532
+ z.lazy(() => CreatePromptResponseFormatPromptsResponse3$outboundSchema),
6533
+ CreatePromptResponseFormat4$outboundSchema,
6534
+ CreatePromptResponseFormat5$outboundSchema,
6535
+ CreatePromptResponseFormat6$outboundSchema,
6536
+ ]);
6433
6537
 
6434
6538
  /**
6435
6539
  * @internal
6436
6540
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6437
6541
  */
6438
- export namespace CreatePromptPromptsResponseFormat$ {
6439
- /** @deprecated use `CreatePromptPromptsResponseFormat$inboundSchema` instead. */
6440
- export const inboundSchema = CreatePromptPromptsResponseFormat$inboundSchema;
6441
- /** @deprecated use `CreatePromptPromptsResponseFormat$outboundSchema` instead. */
6542
+ export namespace CreatePromptPromptsResponseResponseFormat$ {
6543
+ /** @deprecated use `CreatePromptPromptsResponseResponseFormat$inboundSchema` instead. */
6544
+ export const inboundSchema =
6545
+ CreatePromptPromptsResponseResponseFormat$inboundSchema;
6546
+ /** @deprecated use `CreatePromptPromptsResponseResponseFormat$outboundSchema` instead. */
6442
6547
  export const outboundSchema =
6443
- CreatePromptPromptsResponseFormat$outboundSchema;
6444
- /** @deprecated use `CreatePromptPromptsResponseFormat$Outbound` instead. */
6445
- export type Outbound = CreatePromptPromptsResponseFormat$Outbound;
6548
+ CreatePromptPromptsResponseResponseFormat$outboundSchema;
6549
+ /** @deprecated use `CreatePromptPromptsResponseResponseFormat$Outbound` instead. */
6550
+ export type Outbound = CreatePromptPromptsResponseResponseFormat$Outbound;
6446
6551
  }
6447
6552
 
6448
- export function createPromptPromptsResponseFormatToJSON(
6449
- createPromptPromptsResponseFormat: CreatePromptPromptsResponseFormat,
6553
+ export function createPromptPromptsResponseResponseFormatToJSON(
6554
+ createPromptPromptsResponseResponseFormat:
6555
+ CreatePromptPromptsResponseResponseFormat,
6450
6556
  ): string {
6451
6557
  return JSON.stringify(
6452
- CreatePromptPromptsResponseFormat$outboundSchema.parse(
6453
- createPromptPromptsResponseFormat,
6558
+ CreatePromptPromptsResponseResponseFormat$outboundSchema.parse(
6559
+ createPromptPromptsResponseResponseFormat,
6454
6560
  ),
6455
6561
  );
6456
6562
  }
6457
6563
 
6458
- export function createPromptPromptsResponseFormatFromJSON(
6564
+ export function createPromptPromptsResponseResponseFormatFromJSON(
6459
6565
  jsonString: string,
6460
- ): SafeParseResult<CreatePromptPromptsResponseFormat, SDKValidationError> {
6566
+ ): SafeParseResult<
6567
+ CreatePromptPromptsResponseResponseFormat,
6568
+ SDKValidationError
6569
+ > {
6461
6570
  return safeParse(
6462
6571
  jsonString,
6463
- (x) => CreatePromptPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)),
6464
- `Failed to parse 'CreatePromptPromptsResponseFormat' from JSON`,
6572
+ (x) =>
6573
+ CreatePromptPromptsResponseResponseFormat$inboundSchema.parse(
6574
+ JSON.parse(x),
6575
+ ),
6576
+ `Failed to parse 'CreatePromptPromptsResponseResponseFormat' from JSON`,
6465
6577
  );
6466
6578
  }
6467
6579
 
@@ -6569,9 +6681,9 @@ export const CreatePromptModelParameters$inboundSchema: z.ZodType<
6569
6681
  style: z.string().optional(),
6570
6682
  responseFormat: z.nullable(
6571
6683
  z.union([
6572
- z.lazy(() => CreatePromptResponseFormatPrompts1$inboundSchema),
6573
- z.lazy(() => CreatePromptResponseFormatPrompts2$inboundSchema),
6574
- z.lazy(() => CreatePromptResponseFormatPrompts3$inboundSchema),
6684
+ z.lazy(() => CreatePromptResponseFormatPromptsResponse1$inboundSchema),
6685
+ z.lazy(() => CreatePromptResponseFormatPromptsResponse2$inboundSchema),
6686
+ z.lazy(() => CreatePromptResponseFormatPromptsResponse3$inboundSchema),
6575
6687
  CreatePromptResponseFormat4$inboundSchema,
6576
6688
  CreatePromptResponseFormat5$inboundSchema,
6577
6689
  CreatePromptResponseFormat6$inboundSchema,
@@ -6603,9 +6715,9 @@ export type CreatePromptModelParameters$Outbound = {
6603
6715
  quality?: string | undefined;
6604
6716
  style?: string | undefined;
6605
6717
  responseFormat?:
6606
- | CreatePromptResponseFormatPrompts1$Outbound
6607
- | CreatePromptResponseFormatPrompts2$Outbound
6608
- | CreatePromptResponseFormatPrompts3$Outbound
6718
+ | CreatePromptResponseFormatPromptsResponse1$Outbound
6719
+ | CreatePromptResponseFormatPromptsResponse2$Outbound
6720
+ | CreatePromptResponseFormatPromptsResponse3$Outbound
6609
6721
  | string
6610
6722
  | string
6611
6723
  | string
@@ -6638,9 +6750,9 @@ export const CreatePromptModelParameters$outboundSchema: z.ZodType<
6638
6750
  style: z.string().optional(),
6639
6751
  responseFormat: z.nullable(
6640
6752
  z.union([
6641
- z.lazy(() => CreatePromptResponseFormatPrompts1$outboundSchema),
6642
- z.lazy(() => CreatePromptResponseFormatPrompts2$outboundSchema),
6643
- z.lazy(() => CreatePromptResponseFormatPrompts3$outboundSchema),
6753
+ z.lazy(() => CreatePromptResponseFormatPromptsResponse1$outboundSchema),
6754
+ z.lazy(() => CreatePromptResponseFormatPromptsResponse2$outboundSchema),
6755
+ z.lazy(() => CreatePromptResponseFormatPromptsResponse3$outboundSchema),
6644
6756
  CreatePromptResponseFormat4$outboundSchema,
6645
6757
  CreatePromptResponseFormat5$outboundSchema,
6646
6758
  CreatePromptResponseFormat6$outboundSchema,
@@ -7406,14 +7518,18 @@ export const CreatePromptPromptsResponseMessages$inboundSchema: z.ZodType<
7406
7518
  unknown
7407
7519
  > = z.object({
7408
7520
  role: CreatePromptPromptsRole$inboundSchema,
7409
- content: z.union([
7410
- z.string(),
7411
- z.array(z.union([
7412
- z.lazy(() => CreatePrompt2PromptsResponse1$inboundSchema),
7413
- z.lazy(() => CreatePrompt2PromptsResponse2$inboundSchema),
7414
- z.lazy(() => CreatePrompt2PromptsResponse3$inboundSchema),
7415
- ])),
7416
- ]),
7521
+ content: z.nullable(
7522
+ z.union([
7523
+ z.string(),
7524
+ z.array(
7525
+ z.union([
7526
+ z.lazy(() => CreatePrompt2PromptsResponse1$inboundSchema),
7527
+ z.lazy(() => CreatePrompt2PromptsResponse2$inboundSchema),
7528
+ z.lazy(() => CreatePrompt2PromptsResponse3$inboundSchema),
7529
+ ]),
7530
+ ),
7531
+ ]),
7532
+ ),
7417
7533
  tool_calls: z.array(z.lazy(() => CreatePromptPromptsToolCalls$inboundSchema))
7418
7534
  .optional(),
7419
7535
  tool_call_id: z.string().optional(),
@@ -7433,7 +7549,8 @@ export type CreatePromptPromptsResponseMessages$Outbound = {
7433
7549
  | CreatePrompt2PromptsResponse1$Outbound
7434
7550
  | CreatePrompt2PromptsResponse2$Outbound
7435
7551
  | CreatePrompt2PromptsResponse3$Outbound
7436
- >;
7552
+ >
7553
+ | null;
7437
7554
  tool_calls?: Array<CreatePromptPromptsToolCalls$Outbound> | undefined;
7438
7555
  tool_call_id?: string | undefined;
7439
7556
  };
@@ -7445,14 +7562,18 @@ export const CreatePromptPromptsResponseMessages$outboundSchema: z.ZodType<
7445
7562
  CreatePromptPromptsResponseMessages
7446
7563
  > = z.object({
7447
7564
  role: CreatePromptPromptsRole$outboundSchema,
7448
- content: z.union([
7449
- z.string(),
7450
- z.array(z.union([
7451
- z.lazy(() => CreatePrompt2PromptsResponse1$outboundSchema),
7452
- z.lazy(() => CreatePrompt2PromptsResponse2$outboundSchema),
7453
- z.lazy(() => CreatePrompt2PromptsResponse3$outboundSchema),
7454
- ])),
7455
- ]),
7565
+ content: z.nullable(
7566
+ z.union([
7567
+ z.string(),
7568
+ z.array(
7569
+ z.union([
7570
+ z.lazy(() => CreatePrompt2PromptsResponse1$outboundSchema),
7571
+ z.lazy(() => CreatePrompt2PromptsResponse2$outboundSchema),
7572
+ z.lazy(() => CreatePrompt2PromptsResponse3$outboundSchema),
7573
+ ]),
7574
+ ),
7575
+ ]),
7576
+ ),
7456
7577
  toolCalls: z.array(z.lazy(() => CreatePromptPromptsToolCalls$outboundSchema))
7457
7578
  .optional(),
7458
7579
  toolCallId: z.string().optional(),