@orq-ai/node 4.2.0-rc.44 → 4.2.0-rc.45

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 (151) hide show
  1. package/README.md +2 -1
  2. package/bin/mcp-server.js +4769 -1624
  3. package/bin/mcp-server.js.map +57 -56
  4. package/examples/package-lock.json +1 -1
  5. package/funcs/promptsDelete.d.ts +2 -1
  6. package/funcs/promptsDelete.d.ts.map +1 -1
  7. package/funcs/promptsDelete.js +7 -3
  8. package/funcs/promptsDelete.js.map +1 -1
  9. package/jsr.json +1 -1
  10. package/lib/config.d.ts +2 -2
  11. package/lib/config.js +2 -2
  12. package/mcp-server/mcp-server.js +1 -1
  13. package/mcp-server/server.js +1 -1
  14. package/models/components/conversationresponse.js +2 -2
  15. package/models/components/conversationwithmessagesresponse.js +2 -2
  16. package/models/components/partdoneevent.js +2 -2
  17. package/models/components/reasoningpart.js +2 -2
  18. package/models/errors/deleteprompt.d.ts +29 -0
  19. package/models/errors/deleteprompt.d.ts.map +1 -0
  20. package/models/errors/deleteprompt.js +74 -0
  21. package/models/errors/deleteprompt.js.map +1 -0
  22. package/models/errors/index.d.ts +1 -0
  23. package/models/errors/index.d.ts.map +1 -1
  24. package/models/errors/index.js +1 -0
  25. package/models/errors/index.js.map +1 -1
  26. package/models/operations/createcontact.js +2 -2
  27. package/models/operations/createconversation.js +2 -2
  28. package/models/operations/createconversationresponse.js +4 -4
  29. package/models/operations/createdataset.js +2 -2
  30. package/models/operations/createdatasetitem.js +8 -8
  31. package/models/operations/createdatasource.js +2 -2
  32. package/models/operations/createeval.d.ts +16 -16
  33. package/models/operations/createeval.d.ts.map +1 -1
  34. package/models/operations/createeval.js +56 -53
  35. package/models/operations/createeval.js.map +1 -1
  36. package/models/operations/createidentity.js +2 -2
  37. package/models/operations/createprompt.d.ts +1746 -976
  38. package/models/operations/createprompt.d.ts.map +1 -1
  39. package/models/operations/createprompt.js +2032 -1282
  40. package/models/operations/createprompt.js.map +1 -1
  41. package/models/operations/createtool.js +12 -12
  42. package/models/operations/deploymentgetconfig.d.ts +88 -88
  43. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  44. package/models/operations/deploymentgetconfig.js +131 -130
  45. package/models/operations/deploymentgetconfig.js.map +1 -1
  46. package/models/operations/deploymentinvoke.d.ts +5 -5
  47. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  48. package/models/operations/deploymentinvoke.js +7 -6
  49. package/models/operations/deploymentinvoke.js.map +1 -1
  50. package/models/operations/fileget.js +2 -2
  51. package/models/operations/filelist.js +2 -2
  52. package/models/operations/fileupload.js +2 -2
  53. package/models/operations/generateconversationname.js +2 -2
  54. package/models/operations/getallprompts.d.ts +1051 -42
  55. package/models/operations/getallprompts.d.ts.map +1 -1
  56. package/models/operations/getallprompts.js +1069 -48
  57. package/models/operations/getallprompts.js.map +1 -1
  58. package/models/operations/getalltools.js +12 -12
  59. package/models/operations/getevals.js +28 -28
  60. package/models/operations/getoneprompt.d.ts +1051 -42
  61. package/models/operations/getoneprompt.d.ts.map +1 -1
  62. package/models/operations/getoneprompt.js +1071 -47
  63. package/models/operations/getoneprompt.js.map +1 -1
  64. package/models/operations/getpromptversion.d.ts +1051 -42
  65. package/models/operations/getpromptversion.d.ts.map +1 -1
  66. package/models/operations/getpromptversion.js +1070 -48
  67. package/models/operations/getpromptversion.js.map +1 -1
  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/listidentities.js +2 -2
  73. package/models/operations/listpromptversions.d.ts +1051 -42
  74. package/models/operations/listpromptversions.d.ts.map +1 -1
  75. package/models/operations/listpromptversions.js +1070 -47
  76. package/models/operations/listpromptversions.js.map +1 -1
  77. package/models/operations/retrievecontact.js +2 -2
  78. package/models/operations/retrievedatapoint.js +8 -8
  79. package/models/operations/retrievedataset.js +2 -2
  80. package/models/operations/retrievedatasource.js +2 -2
  81. package/models/operations/retrieveidentity.js +2 -2
  82. package/models/operations/retrievetool.js +12 -12
  83. package/models/operations/runagent.js +2 -2
  84. package/models/operations/streamrunagent.js +2 -2
  85. package/models/operations/updatecontact.js +2 -2
  86. package/models/operations/updateconversation.js +2 -2
  87. package/models/operations/updatedatapoint.js +8 -8
  88. package/models/operations/updatedataset.js +2 -2
  89. package/models/operations/updatedatasource.js +2 -2
  90. package/models/operations/updateeval.js +28 -28
  91. package/models/operations/updateidentity.js +2 -2
  92. package/models/operations/updateprompt.d.ts +2112 -1413
  93. package/models/operations/updateprompt.d.ts.map +1 -1
  94. package/models/operations/updateprompt.js +2200 -1525
  95. package/models/operations/updateprompt.js.map +1 -1
  96. package/models/operations/updatetool.js +14 -14
  97. package/package.json +1 -1
  98. package/src/funcs/promptsDelete.ts +12 -3
  99. package/src/lib/config.ts +2 -2
  100. package/src/mcp-server/mcp-server.ts +1 -1
  101. package/src/mcp-server/server.ts +1 -1
  102. package/src/models/components/conversationresponse.ts +2 -2
  103. package/src/models/components/conversationwithmessagesresponse.ts +2 -2
  104. package/src/models/components/partdoneevent.ts +2 -2
  105. package/src/models/components/reasoningpart.ts +2 -2
  106. package/src/models/errors/deleteprompt.ts +67 -0
  107. package/src/models/errors/index.ts +1 -0
  108. package/src/models/operations/createcontact.ts +2 -2
  109. package/src/models/operations/createconversation.ts +2 -2
  110. package/src/models/operations/createconversationresponse.ts +4 -4
  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 +76 -96
  115. package/src/models/operations/createidentity.ts +2 -2
  116. package/src/models/operations/createprompt.ts +5179 -3019
  117. package/src/models/operations/createtool.ts +12 -12
  118. package/src/models/operations/deploymentgetconfig.ts +252 -337
  119. package/src/models/operations/deploymentinvoke.ts +9 -13
  120. package/src/models/operations/fileget.ts +2 -2
  121. package/src/models/operations/filelist.ts +2 -2
  122. package/src/models/operations/fileupload.ts +2 -2
  123. package/src/models/operations/generateconversationname.ts +2 -2
  124. package/src/models/operations/getallprompts.ts +3543 -850
  125. package/src/models/operations/getalltools.ts +12 -12
  126. package/src/models/operations/getevals.ts +28 -28
  127. package/src/models/operations/getoneprompt.ts +3463 -786
  128. package/src/models/operations/getpromptversion.ts +3579 -835
  129. package/src/models/operations/listcontacts.ts +2 -2
  130. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  131. package/src/models/operations/listdatasets.ts +2 -2
  132. package/src/models/operations/listdatasources.ts +2 -2
  133. package/src/models/operations/listidentities.ts +2 -2
  134. package/src/models/operations/listpromptversions.ts +3644 -864
  135. package/src/models/operations/retrievecontact.ts +2 -2
  136. package/src/models/operations/retrievedatapoint.ts +8 -8
  137. package/src/models/operations/retrievedataset.ts +2 -2
  138. package/src/models/operations/retrievedatasource.ts +2 -2
  139. package/src/models/operations/retrieveidentity.ts +2 -2
  140. package/src/models/operations/retrievetool.ts +12 -12
  141. package/src/models/operations/runagent.ts +2 -2
  142. package/src/models/operations/streamrunagent.ts +2 -2
  143. package/src/models/operations/updatecontact.ts +2 -2
  144. package/src/models/operations/updateconversation.ts +2 -2
  145. package/src/models/operations/updatedatapoint.ts +8 -8
  146. package/src/models/operations/updatedataset.ts +2 -2
  147. package/src/models/operations/updatedatasource.ts +2 -2
  148. package/src/models/operations/updateeval.ts +28 -28
  149. package/src/models/operations/updateidentity.ts +2 -2
  150. package/src/models/operations/updateprompt.ts +5281 -3301
  151. package/src/models/operations/updatetool.ts +14 -14
@@ -1156,7 +1156,7 @@ export type DeploymentGetConfigRole = ClosedEnum<
1156
1156
  typeof DeploymentGetConfigRole
1157
1157
  >;
1158
1158
 
1159
- export type DeploymentGetConfig2File = {
1159
+ export type TwoFile = {
1160
1160
  /**
1161
1161
  * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
1162
1162
  */
@@ -1175,15 +1175,15 @@ export type DeploymentGetConfig2File = {
1175
1175
  filename?: string | undefined;
1176
1176
  };
1177
1177
 
1178
- export type DeploymentGetConfig23 = {
1178
+ export type Two3 = {
1179
1179
  /**
1180
1180
  * The type of the content part. Always `file`.
1181
1181
  */
1182
1182
  type: "file";
1183
- file: DeploymentGetConfig2File;
1183
+ file: TwoFile;
1184
1184
  };
1185
1185
 
1186
- export type DeploymentGetConfig2ImageUrl = {
1186
+ export type TwoImageUrl = {
1187
1187
  /**
1188
1188
  * The orq.ai id of the image
1189
1189
  */
@@ -1203,30 +1203,28 @@ export type DeploymentGetConfig2ImageUrl = {
1203
1203
  */
1204
1204
  export type DeploymentGetConfig22 = {
1205
1205
  type: "image_url";
1206
- imageUrl: DeploymentGetConfig2ImageUrl;
1206
+ imageUrl: TwoImageUrl;
1207
1207
  };
1208
1208
 
1209
1209
  /**
1210
1210
  * Text content part of a prompt message
1211
1211
  */
1212
- export type DeploymentGetConfig21 = {
1212
+ export type Two1 = {
1213
1213
  type: "text";
1214
1214
  text: string;
1215
1215
  };
1216
1216
 
1217
1217
  export type DeploymentGetConfigContentDeploymentsResponse2 =
1218
- | DeploymentGetConfig21
1218
+ | Two1
1219
1219
  | DeploymentGetConfig22
1220
- | DeploymentGetConfig23;
1220
+ | Two3;
1221
1221
 
1222
1222
  /**
1223
1223
  * 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.
1224
1224
  */
1225
1225
  export type DeploymentGetConfigContent =
1226
1226
  | string
1227
- | Array<
1228
- DeploymentGetConfig21 | DeploymentGetConfig22 | DeploymentGetConfig23
1229
- >;
1227
+ | Array<Two1 | DeploymentGetConfig22 | Two3>;
1230
1228
 
1231
1229
  export const DeploymentGetConfigDeploymentsResponseType = {
1232
1230
  Function: "function",
@@ -1258,12 +1256,7 @@ export type DeploymentGetConfigDeploymentsMessages = {
1258
1256
  /**
1259
1257
  * 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.
1260
1258
  */
1261
- content:
1262
- | string
1263
- | Array<
1264
- DeploymentGetConfig21 | DeploymentGetConfig22 | DeploymentGetConfig23
1265
- >
1266
- | null;
1259
+ content: string | Array<Two1 | DeploymentGetConfig22 | Two3> | null;
1267
1260
  toolCalls?: Array<DeploymentGetConfigToolCalls> | undefined;
1268
1261
  toolCallId?: string | null | undefined;
1269
1262
  };
@@ -1284,26 +1277,22 @@ export type DeploymentGetConfigFormat = ClosedEnum<
1284
1277
  typeof DeploymentGetConfigFormat
1285
1278
  >;
1286
1279
 
1287
- export const DeploymentGetConfigResponseFormat6 = {
1280
+ export const ResponseFormat6 = {
1288
1281
  Json: "json",
1289
1282
  Text: "text",
1290
1283
  Srt: "srt",
1291
1284
  VerboseJson: "verbose_json",
1292
1285
  Vtt: "vtt",
1293
1286
  } as const;
1294
- export type DeploymentGetConfigResponseFormat6 = ClosedEnum<
1295
- typeof DeploymentGetConfigResponseFormat6
1296
- >;
1287
+ export type ResponseFormat6 = ClosedEnum<typeof ResponseFormat6>;
1297
1288
 
1298
- export const DeploymentGetConfigResponseFormat5 = {
1289
+ export const ResponseFormat5 = {
1299
1290
  Url: "url",
1300
1291
  Base64Json: "base64_json",
1301
1292
  } as const;
1302
- export type DeploymentGetConfigResponseFormat5 = ClosedEnum<
1303
- typeof DeploymentGetConfigResponseFormat5
1304
- >;
1293
+ export type ResponseFormat5 = ClosedEnum<typeof ResponseFormat5>;
1305
1294
 
1306
- export const DeploymentGetConfigResponseFormat4 = {
1295
+ export const ResponseFormat4 = {
1307
1296
  Mp3: "mp3",
1308
1297
  Opus: "opus",
1309
1298
  Aac: "aac",
@@ -1311,9 +1300,7 @@ export const DeploymentGetConfigResponseFormat4 = {
1311
1300
  Wav: "wav",
1312
1301
  Pcm: "pcm",
1313
1302
  } as const;
1314
- export type DeploymentGetConfigResponseFormat4 = ClosedEnum<
1315
- typeof DeploymentGetConfigResponseFormat4
1316
- >;
1303
+ export type ResponseFormat4 = ClosedEnum<typeof ResponseFormat4>;
1317
1304
 
1318
1305
  export const DeploymentGetConfigResponseFormatDeploymentsType = {
1319
1306
  Text: "text",
@@ -1322,7 +1309,7 @@ export type DeploymentGetConfigResponseFormatDeploymentsType = ClosedEnum<
1322
1309
  typeof DeploymentGetConfigResponseFormatDeploymentsType
1323
1310
  >;
1324
1311
 
1325
- export type DeploymentGetConfigResponseFormat3 = {
1312
+ export type ResponseFormat3 = {
1326
1313
  type: DeploymentGetConfigResponseFormatDeploymentsType;
1327
1314
  };
1328
1315
 
@@ -1333,7 +1320,7 @@ export type DeploymentGetConfigResponseFormatType = ClosedEnum<
1333
1320
  typeof DeploymentGetConfigResponseFormatType
1334
1321
  >;
1335
1322
 
1336
- export type DeploymentGetConfigResponseFormat2 = {
1323
+ export type ResponseFormat2 = {
1337
1324
  type: DeploymentGetConfigResponseFormatType;
1338
1325
  };
1339
1326
 
@@ -1350,7 +1337,7 @@ export type DeploymentGetConfigResponseFormatJsonSchema = {
1350
1337
  schema: { [k: string]: any };
1351
1338
  };
1352
1339
 
1353
- export type DeploymentGetConfigResponseFormat1 = {
1340
+ export type ResponseFormat1 = {
1354
1341
  type: DeploymentGetConfigResponseFormatDeploymentsResponseType;
1355
1342
  displayName?: string | undefined;
1356
1343
  jsonSchema: DeploymentGetConfigResponseFormatJsonSchema;
@@ -1368,40 +1355,36 @@ export type DeploymentGetConfigResponseFormat1 = {
1368
1355
  * 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.
1369
1356
  */
1370
1357
  export type DeploymentGetConfigResponseFormat =
1371
- | DeploymentGetConfigResponseFormat1
1372
- | DeploymentGetConfigResponseFormat2
1373
- | DeploymentGetConfigResponseFormat3
1374
- | DeploymentGetConfigResponseFormat4
1375
- | DeploymentGetConfigResponseFormat5
1376
- | DeploymentGetConfigResponseFormat6;
1358
+ | ResponseFormat1
1359
+ | ResponseFormat2
1360
+ | ResponseFormat3
1361
+ | ResponseFormat4
1362
+ | ResponseFormat5
1363
+ | ResponseFormat6;
1377
1364
 
1378
1365
  /**
1379
1366
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
1380
1367
  */
1381
- export const DeploymentGetConfigPhotoRealVersion = {
1368
+ export const PhotoRealVersion = {
1382
1369
  V1: "v1",
1383
1370
  V2: "v2",
1384
1371
  } as const;
1385
1372
  /**
1386
1373
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
1387
1374
  */
1388
- export type DeploymentGetConfigPhotoRealVersion = ClosedEnum<
1389
- typeof DeploymentGetConfigPhotoRealVersion
1390
- >;
1375
+ export type PhotoRealVersion = ClosedEnum<typeof PhotoRealVersion>;
1391
1376
 
1392
1377
  /**
1393
1378
  * The format to return the embeddings
1394
1379
  */
1395
- export const DeploymentGetConfigEncodingFormat = {
1380
+ export const EncodingFormat = {
1396
1381
  Float: "float",
1397
1382
  Base64: "base64",
1398
1383
  } as const;
1399
1384
  /**
1400
1385
  * The format to return the embeddings
1401
1386
  */
1402
- export type DeploymentGetConfigEncodingFormat = ClosedEnum<
1403
- typeof DeploymentGetConfigEncodingFormat
1404
- >;
1387
+ export type EncodingFormat = ClosedEnum<typeof EncodingFormat>;
1405
1388
 
1406
1389
  /**
1407
1390
  * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
@@ -1424,7 +1407,7 @@ export type DeploymentGetConfigReasoningEffort = ClosedEnum<
1424
1407
  /**
1425
1408
  * Controls the verbosity of the model output.
1426
1409
  */
1427
- export const DeploymentGetConfigVerbosity = {
1410
+ export const Verbosity = {
1428
1411
  Low: "low",
1429
1412
  Medium: "medium",
1430
1413
  High: "high",
@@ -1432,23 +1415,19 @@ export const DeploymentGetConfigVerbosity = {
1432
1415
  /**
1433
1416
  * Controls the verbosity of the model output.
1434
1417
  */
1435
- export type DeploymentGetConfigVerbosity = ClosedEnum<
1436
- typeof DeploymentGetConfigVerbosity
1437
- >;
1418
+ export type Verbosity = ClosedEnum<typeof Verbosity>;
1438
1419
 
1439
1420
  /**
1440
1421
  * The level of thinking to use for the model. Only supported by `Google AI`
1441
1422
  */
1442
- export const DeploymentGetConfigThinkingLevel = {
1423
+ export const ThinkingLevel = {
1443
1424
  Low: "low",
1444
1425
  High: "high",
1445
1426
  } as const;
1446
1427
  /**
1447
1428
  * The level of thinking to use for the model. Only supported by `Google AI`
1448
1429
  */
1449
- export type DeploymentGetConfigThinkingLevel = ClosedEnum<
1450
- typeof DeploymentGetConfigThinkingLevel
1451
- >;
1430
+ export type ThinkingLevel = ClosedEnum<typeof ThinkingLevel>;
1452
1431
 
1453
1432
  /**
1454
1433
  * Model Parameters: Not all parameters apply to every model
@@ -1514,22 +1493,22 @@ export type DeploymentGetConfigParameters = {
1514
1493
  * 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.
1515
1494
  */
1516
1495
  responseFormat?:
1517
- | DeploymentGetConfigResponseFormat1
1518
- | DeploymentGetConfigResponseFormat2
1519
- | DeploymentGetConfigResponseFormat3
1520
- | DeploymentGetConfigResponseFormat4
1521
- | DeploymentGetConfigResponseFormat5
1522
- | DeploymentGetConfigResponseFormat6
1496
+ | ResponseFormat1
1497
+ | ResponseFormat2
1498
+ | ResponseFormat3
1499
+ | ResponseFormat4
1500
+ | ResponseFormat5
1501
+ | ResponseFormat6
1523
1502
  | null
1524
1503
  | undefined;
1525
1504
  /**
1526
1505
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
1527
1506
  */
1528
- photoRealVersion?: DeploymentGetConfigPhotoRealVersion | undefined;
1507
+ photoRealVersion?: PhotoRealVersion | undefined;
1529
1508
  /**
1530
1509
  * The format to return the embeddings
1531
1510
  */
1532
- encodingFormat?: DeploymentGetConfigEncodingFormat | undefined;
1511
+ encodingFormat?: EncodingFormat | undefined;
1533
1512
  /**
1534
1513
  * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
1535
1514
  */
@@ -1541,11 +1520,11 @@ export type DeploymentGetConfigParameters = {
1541
1520
  /**
1542
1521
  * Controls the verbosity of the model output.
1543
1522
  */
1544
- verbosity?: DeploymentGetConfigVerbosity | undefined;
1523
+ verbosity?: Verbosity | undefined;
1545
1524
  /**
1546
1525
  * The level of thinking to use for the model. Only supported by `Google AI`
1547
1526
  */
1548
- thinkingLevel?: DeploymentGetConfigThinkingLevel | undefined;
1527
+ thinkingLevel?: ThinkingLevel | undefined;
1549
1528
  };
1550
1529
 
1551
1530
  /**
@@ -5831,22 +5810,19 @@ export const DeploymentGetConfigRole$outboundSchema: z.ZodNativeEnum<
5831
5810
  > = DeploymentGetConfigRole$inboundSchema;
5832
5811
 
5833
5812
  /** @internal */
5834
- export const DeploymentGetConfig2File$inboundSchema: z.ZodType<
5835
- DeploymentGetConfig2File,
5836
- z.ZodTypeDef,
5837
- unknown
5838
- > = z.object({
5839
- file_data: z.string().optional(),
5840
- uri: z.string().optional(),
5841
- mimeType: z.string().optional(),
5842
- filename: z.string().optional(),
5843
- }).transform((v) => {
5844
- return remap$(v, {
5845
- "file_data": "fileData",
5813
+ export const TwoFile$inboundSchema: z.ZodType<TwoFile, z.ZodTypeDef, unknown> =
5814
+ z.object({
5815
+ file_data: z.string().optional(),
5816
+ uri: z.string().optional(),
5817
+ mimeType: z.string().optional(),
5818
+ filename: z.string().optional(),
5819
+ }).transform((v) => {
5820
+ return remap$(v, {
5821
+ "file_data": "fileData",
5822
+ });
5846
5823
  });
5847
- });
5848
5824
  /** @internal */
5849
- export type DeploymentGetConfig2File$Outbound = {
5825
+ export type TwoFile$Outbound = {
5850
5826
  file_data?: string | undefined;
5851
5827
  uri?: string | undefined;
5852
5828
  mimeType?: string | undefined;
@@ -5854,10 +5830,10 @@ export type DeploymentGetConfig2File$Outbound = {
5854
5830
  };
5855
5831
 
5856
5832
  /** @internal */
5857
- export const DeploymentGetConfig2File$outboundSchema: z.ZodType<
5858
- DeploymentGetConfig2File$Outbound,
5833
+ export const TwoFile$outboundSchema: z.ZodType<
5834
+ TwoFile$Outbound,
5859
5835
  z.ZodTypeDef,
5860
- DeploymentGetConfig2File
5836
+ TwoFile
5861
5837
  > = z.object({
5862
5838
  fileData: z.string().optional(),
5863
5839
  uri: z.string().optional(),
@@ -5869,68 +5845,54 @@ export const DeploymentGetConfig2File$outboundSchema: z.ZodType<
5869
5845
  });
5870
5846
  });
5871
5847
 
5872
- export function deploymentGetConfig2FileToJSON(
5873
- deploymentGetConfig2File: DeploymentGetConfig2File,
5874
- ): string {
5875
- return JSON.stringify(
5876
- DeploymentGetConfig2File$outboundSchema.parse(deploymentGetConfig2File),
5877
- );
5848
+ export function twoFileToJSON(twoFile: TwoFile): string {
5849
+ return JSON.stringify(TwoFile$outboundSchema.parse(twoFile));
5878
5850
  }
5879
- export function deploymentGetConfig2FileFromJSON(
5851
+ export function twoFileFromJSON(
5880
5852
  jsonString: string,
5881
- ): SafeParseResult<DeploymentGetConfig2File, SDKValidationError> {
5853
+ ): SafeParseResult<TwoFile, SDKValidationError> {
5882
5854
  return safeParse(
5883
5855
  jsonString,
5884
- (x) => DeploymentGetConfig2File$inboundSchema.parse(JSON.parse(x)),
5885
- `Failed to parse 'DeploymentGetConfig2File' from JSON`,
5856
+ (x) => TwoFile$inboundSchema.parse(JSON.parse(x)),
5857
+ `Failed to parse 'TwoFile' from JSON`,
5886
5858
  );
5887
5859
  }
5888
5860
 
5889
5861
  /** @internal */
5890
- export const DeploymentGetConfig23$inboundSchema: z.ZodType<
5891
- DeploymentGetConfig23,
5892
- z.ZodTypeDef,
5893
- unknown
5894
- > = z.object({
5895
- type: z.literal("file"),
5896
- file: z.lazy(() => DeploymentGetConfig2File$inboundSchema),
5897
- });
5862
+ export const Two3$inboundSchema: z.ZodType<Two3, z.ZodTypeDef, unknown> = z
5863
+ .object({
5864
+ type: z.literal("file"),
5865
+ file: z.lazy(() => TwoFile$inboundSchema),
5866
+ });
5898
5867
  /** @internal */
5899
- export type DeploymentGetConfig23$Outbound = {
5868
+ export type Two3$Outbound = {
5900
5869
  type: "file";
5901
- file: DeploymentGetConfig2File$Outbound;
5870
+ file: TwoFile$Outbound;
5902
5871
  };
5903
5872
 
5904
5873
  /** @internal */
5905
- export const DeploymentGetConfig23$outboundSchema: z.ZodType<
5906
- DeploymentGetConfig23$Outbound,
5907
- z.ZodTypeDef,
5908
- DeploymentGetConfig23
5909
- > = z.object({
5910
- type: z.literal("file"),
5911
- file: z.lazy(() => DeploymentGetConfig2File$outboundSchema),
5912
- });
5874
+ export const Two3$outboundSchema: z.ZodType<Two3$Outbound, z.ZodTypeDef, Two3> =
5875
+ z.object({
5876
+ type: z.literal("file"),
5877
+ file: z.lazy(() => TwoFile$outboundSchema),
5878
+ });
5913
5879
 
5914
- export function deploymentGetConfig23ToJSON(
5915
- deploymentGetConfig23: DeploymentGetConfig23,
5916
- ): string {
5917
- return JSON.stringify(
5918
- DeploymentGetConfig23$outboundSchema.parse(deploymentGetConfig23),
5919
- );
5880
+ export function two3ToJSON(two3: Two3): string {
5881
+ return JSON.stringify(Two3$outboundSchema.parse(two3));
5920
5882
  }
5921
- export function deploymentGetConfig23FromJSON(
5883
+ export function two3FromJSON(
5922
5884
  jsonString: string,
5923
- ): SafeParseResult<DeploymentGetConfig23, SDKValidationError> {
5885
+ ): SafeParseResult<Two3, SDKValidationError> {
5924
5886
  return safeParse(
5925
5887
  jsonString,
5926
- (x) => DeploymentGetConfig23$inboundSchema.parse(JSON.parse(x)),
5927
- `Failed to parse 'DeploymentGetConfig23' from JSON`,
5888
+ (x) => Two3$inboundSchema.parse(JSON.parse(x)),
5889
+ `Failed to parse 'Two3' from JSON`,
5928
5890
  );
5929
5891
  }
5930
5892
 
5931
5893
  /** @internal */
5932
- export const DeploymentGetConfig2ImageUrl$inboundSchema: z.ZodType<
5933
- DeploymentGetConfig2ImageUrl,
5894
+ export const TwoImageUrl$inboundSchema: z.ZodType<
5895
+ TwoImageUrl,
5934
5896
  z.ZodTypeDef,
5935
5897
  unknown
5936
5898
  > = z.object({
@@ -5939,39 +5901,33 @@ export const DeploymentGetConfig2ImageUrl$inboundSchema: z.ZodType<
5939
5901
  detail: z.string().optional(),
5940
5902
  });
5941
5903
  /** @internal */
5942
- export type DeploymentGetConfig2ImageUrl$Outbound = {
5904
+ export type TwoImageUrl$Outbound = {
5943
5905
  id?: string | undefined;
5944
5906
  url: string;
5945
5907
  detail?: string | undefined;
5946
5908
  };
5947
5909
 
5948
5910
  /** @internal */
5949
- export const DeploymentGetConfig2ImageUrl$outboundSchema: z.ZodType<
5950
- DeploymentGetConfig2ImageUrl$Outbound,
5911
+ export const TwoImageUrl$outboundSchema: z.ZodType<
5912
+ TwoImageUrl$Outbound,
5951
5913
  z.ZodTypeDef,
5952
- DeploymentGetConfig2ImageUrl
5914
+ TwoImageUrl
5953
5915
  > = z.object({
5954
5916
  id: z.string().optional(),
5955
5917
  url: z.string(),
5956
5918
  detail: z.string().optional(),
5957
5919
  });
5958
5920
 
5959
- export function deploymentGetConfig2ImageUrlToJSON(
5960
- deploymentGetConfig2ImageUrl: DeploymentGetConfig2ImageUrl,
5961
- ): string {
5962
- return JSON.stringify(
5963
- DeploymentGetConfig2ImageUrl$outboundSchema.parse(
5964
- deploymentGetConfig2ImageUrl,
5965
- ),
5966
- );
5921
+ export function twoImageUrlToJSON(twoImageUrl: TwoImageUrl): string {
5922
+ return JSON.stringify(TwoImageUrl$outboundSchema.parse(twoImageUrl));
5967
5923
  }
5968
- export function deploymentGetConfig2ImageUrlFromJSON(
5924
+ export function twoImageUrlFromJSON(
5969
5925
  jsonString: string,
5970
- ): SafeParseResult<DeploymentGetConfig2ImageUrl, SDKValidationError> {
5926
+ ): SafeParseResult<TwoImageUrl, SDKValidationError> {
5971
5927
  return safeParse(
5972
5928
  jsonString,
5973
- (x) => DeploymentGetConfig2ImageUrl$inboundSchema.parse(JSON.parse(x)),
5974
- `Failed to parse 'DeploymentGetConfig2ImageUrl' from JSON`,
5929
+ (x) => TwoImageUrl$inboundSchema.parse(JSON.parse(x)),
5930
+ `Failed to parse 'TwoImageUrl' from JSON`,
5975
5931
  );
5976
5932
  }
5977
5933
 
@@ -5982,7 +5938,7 @@ export const DeploymentGetConfig22$inboundSchema: z.ZodType<
5982
5938
  unknown
5983
5939
  > = z.object({
5984
5940
  type: z.literal("image_url"),
5985
- image_url: z.lazy(() => DeploymentGetConfig2ImageUrl$inboundSchema),
5941
+ image_url: z.lazy(() => TwoImageUrl$inboundSchema),
5986
5942
  }).transform((v) => {
5987
5943
  return remap$(v, {
5988
5944
  "image_url": "imageUrl",
@@ -5991,7 +5947,7 @@ export const DeploymentGetConfig22$inboundSchema: z.ZodType<
5991
5947
  /** @internal */
5992
5948
  export type DeploymentGetConfig22$Outbound = {
5993
5949
  type: "image_url";
5994
- image_url: DeploymentGetConfig2ImageUrl$Outbound;
5950
+ image_url: TwoImageUrl$Outbound;
5995
5951
  };
5996
5952
 
5997
5953
  /** @internal */
@@ -6001,7 +5957,7 @@ export const DeploymentGetConfig22$outboundSchema: z.ZodType<
6001
5957
  DeploymentGetConfig22
6002
5958
  > = z.object({
6003
5959
  type: z.literal("image_url"),
6004
- imageUrl: z.lazy(() => DeploymentGetConfig2ImageUrl$outboundSchema),
5960
+ imageUrl: z.lazy(() => TwoImageUrl$outboundSchema),
6005
5961
  }).transform((v) => {
6006
5962
  return remap$(v, {
6007
5963
  imageUrl: "image_url",
@@ -6026,44 +5982,34 @@ export function deploymentGetConfig22FromJSON(
6026
5982
  }
6027
5983
 
6028
5984
  /** @internal */
6029
- export const DeploymentGetConfig21$inboundSchema: z.ZodType<
6030
- DeploymentGetConfig21,
6031
- z.ZodTypeDef,
6032
- unknown
6033
- > = z.object({
6034
- type: z.literal("text"),
6035
- text: z.string(),
6036
- });
5985
+ export const Two1$inboundSchema: z.ZodType<Two1, z.ZodTypeDef, unknown> = z
5986
+ .object({
5987
+ type: z.literal("text"),
5988
+ text: z.string(),
5989
+ });
6037
5990
  /** @internal */
6038
- export type DeploymentGetConfig21$Outbound = {
5991
+ export type Two1$Outbound = {
6039
5992
  type: "text";
6040
5993
  text: string;
6041
5994
  };
6042
5995
 
6043
5996
  /** @internal */
6044
- export const DeploymentGetConfig21$outboundSchema: z.ZodType<
6045
- DeploymentGetConfig21$Outbound,
6046
- z.ZodTypeDef,
6047
- DeploymentGetConfig21
6048
- > = z.object({
6049
- type: z.literal("text"),
6050
- text: z.string(),
6051
- });
5997
+ export const Two1$outboundSchema: z.ZodType<Two1$Outbound, z.ZodTypeDef, Two1> =
5998
+ z.object({
5999
+ type: z.literal("text"),
6000
+ text: z.string(),
6001
+ });
6052
6002
 
6053
- export function deploymentGetConfig21ToJSON(
6054
- deploymentGetConfig21: DeploymentGetConfig21,
6055
- ): string {
6056
- return JSON.stringify(
6057
- DeploymentGetConfig21$outboundSchema.parse(deploymentGetConfig21),
6058
- );
6003
+ export function two1ToJSON(two1: Two1): string {
6004
+ return JSON.stringify(Two1$outboundSchema.parse(two1));
6059
6005
  }
6060
- export function deploymentGetConfig21FromJSON(
6006
+ export function two1FromJSON(
6061
6007
  jsonString: string,
6062
- ): SafeParseResult<DeploymentGetConfig21, SDKValidationError> {
6008
+ ): SafeParseResult<Two1, SDKValidationError> {
6063
6009
  return safeParse(
6064
6010
  jsonString,
6065
- (x) => DeploymentGetConfig21$inboundSchema.parse(JSON.parse(x)),
6066
- `Failed to parse 'DeploymentGetConfig21' from JSON`,
6011
+ (x) => Two1$inboundSchema.parse(JSON.parse(x)),
6012
+ `Failed to parse 'Two1' from JSON`,
6067
6013
  );
6068
6014
  }
6069
6015
 
@@ -6074,15 +6020,15 @@ export const DeploymentGetConfigContentDeploymentsResponse2$inboundSchema:
6074
6020
  z.ZodTypeDef,
6075
6021
  unknown
6076
6022
  > = z.union([
6077
- z.lazy(() => DeploymentGetConfig21$inboundSchema),
6023
+ z.lazy(() => Two1$inboundSchema),
6078
6024
  z.lazy(() => DeploymentGetConfig22$inboundSchema),
6079
- z.lazy(() => DeploymentGetConfig23$inboundSchema),
6025
+ z.lazy(() => Two3$inboundSchema),
6080
6026
  ]);
6081
6027
  /** @internal */
6082
6028
  export type DeploymentGetConfigContentDeploymentsResponse2$Outbound =
6083
- | DeploymentGetConfig21$Outbound
6029
+ | Two1$Outbound
6084
6030
  | DeploymentGetConfig22$Outbound
6085
- | DeploymentGetConfig23$Outbound;
6031
+ | Two3$Outbound;
6086
6032
 
6087
6033
  /** @internal */
6088
6034
  export const DeploymentGetConfigContentDeploymentsResponse2$outboundSchema:
@@ -6091,9 +6037,9 @@ export const DeploymentGetConfigContentDeploymentsResponse2$outboundSchema:
6091
6037
  z.ZodTypeDef,
6092
6038
  DeploymentGetConfigContentDeploymentsResponse2
6093
6039
  > = z.union([
6094
- z.lazy(() => DeploymentGetConfig21$outboundSchema),
6040
+ z.lazy(() => Two1$outboundSchema),
6095
6041
  z.lazy(() => DeploymentGetConfig22$outboundSchema),
6096
- z.lazy(() => DeploymentGetConfig23$outboundSchema),
6042
+ z.lazy(() => Two3$outboundSchema),
6097
6043
  ]);
6098
6044
 
6099
6045
  export function deploymentGetConfigContentDeploymentsResponse2ToJSON(
@@ -6130,19 +6076,15 @@ export const DeploymentGetConfigContent$inboundSchema: z.ZodType<
6130
6076
  > = z.union([
6131
6077
  z.string(),
6132
6078
  z.array(z.union([
6133
- z.lazy(() => DeploymentGetConfig21$inboundSchema),
6079
+ z.lazy(() => Two1$inboundSchema),
6134
6080
  z.lazy(() => DeploymentGetConfig22$inboundSchema),
6135
- z.lazy(() => DeploymentGetConfig23$inboundSchema),
6081
+ z.lazy(() => Two3$inboundSchema),
6136
6082
  ])),
6137
6083
  ]);
6138
6084
  /** @internal */
6139
6085
  export type DeploymentGetConfigContent$Outbound =
6140
6086
  | string
6141
- | Array<
6142
- | DeploymentGetConfig21$Outbound
6143
- | DeploymentGetConfig22$Outbound
6144
- | DeploymentGetConfig23$Outbound
6145
- >;
6087
+ | Array<Two1$Outbound | DeploymentGetConfig22$Outbound | Two3$Outbound>;
6146
6088
 
6147
6089
  /** @internal */
6148
6090
  export const DeploymentGetConfigContent$outboundSchema: z.ZodType<
@@ -6152,9 +6094,9 @@ export const DeploymentGetConfigContent$outboundSchema: z.ZodType<
6152
6094
  > = z.union([
6153
6095
  z.string(),
6154
6096
  z.array(z.union([
6155
- z.lazy(() => DeploymentGetConfig21$outboundSchema),
6097
+ z.lazy(() => Two1$outboundSchema),
6156
6098
  z.lazy(() => DeploymentGetConfig22$outboundSchema),
6157
- z.lazy(() => DeploymentGetConfig23$outboundSchema),
6099
+ z.lazy(() => Two3$outboundSchema),
6158
6100
  ])),
6159
6101
  ]);
6160
6102
 
@@ -6290,13 +6232,11 @@ export const DeploymentGetConfigDeploymentsMessages$inboundSchema: z.ZodType<
6290
6232
  content: z.nullable(
6291
6233
  z.union([
6292
6234
  z.string(),
6293
- z.array(
6294
- z.union([
6295
- z.lazy(() => DeploymentGetConfig21$inboundSchema),
6296
- z.lazy(() => DeploymentGetConfig22$inboundSchema),
6297
- z.lazy(() => DeploymentGetConfig23$inboundSchema),
6298
- ]),
6299
- ),
6235
+ z.array(z.union([
6236
+ z.lazy(() => Two1$inboundSchema),
6237
+ z.lazy(() => DeploymentGetConfig22$inboundSchema),
6238
+ z.lazy(() => Two3$inboundSchema),
6239
+ ])),
6300
6240
  ]),
6301
6241
  ),
6302
6242
  tool_calls: z.array(z.lazy(() => DeploymentGetConfigToolCalls$inboundSchema))
@@ -6313,11 +6253,7 @@ export type DeploymentGetConfigDeploymentsMessages$Outbound = {
6313
6253
  role: string;
6314
6254
  content:
6315
6255
  | string
6316
- | Array<
6317
- | DeploymentGetConfig21$Outbound
6318
- | DeploymentGetConfig22$Outbound
6319
- | DeploymentGetConfig23$Outbound
6320
- >
6256
+ | Array<Two1$Outbound | DeploymentGetConfig22$Outbound | Two3$Outbound>
6321
6257
  | null;
6322
6258
  tool_calls?: Array<DeploymentGetConfigToolCalls$Outbound> | undefined;
6323
6259
  tool_call_id?: string | null | undefined;
@@ -6333,13 +6269,11 @@ export const DeploymentGetConfigDeploymentsMessages$outboundSchema: z.ZodType<
6333
6269
  content: z.nullable(
6334
6270
  z.union([
6335
6271
  z.string(),
6336
- z.array(
6337
- z.union([
6338
- z.lazy(() => DeploymentGetConfig21$outboundSchema),
6339
- z.lazy(() => DeploymentGetConfig22$outboundSchema),
6340
- z.lazy(() => DeploymentGetConfig23$outboundSchema),
6341
- ]),
6342
- ),
6272
+ z.array(z.union([
6273
+ z.lazy(() => Two1$outboundSchema),
6274
+ z.lazy(() => DeploymentGetConfig22$outboundSchema),
6275
+ z.lazy(() => Two3$outboundSchema),
6276
+ ])),
6343
6277
  ]),
6344
6278
  ),
6345
6279
  toolCalls: z.array(z.lazy(() => DeploymentGetConfigToolCalls$outboundSchema))
@@ -6383,31 +6317,31 @@ export const DeploymentGetConfigFormat$outboundSchema: z.ZodNativeEnum<
6383
6317
  > = DeploymentGetConfigFormat$inboundSchema;
6384
6318
 
6385
6319
  /** @internal */
6386
- export const DeploymentGetConfigResponseFormat6$inboundSchema: z.ZodNativeEnum<
6387
- typeof DeploymentGetConfigResponseFormat6
6388
- > = z.nativeEnum(DeploymentGetConfigResponseFormat6);
6320
+ export const ResponseFormat6$inboundSchema: z.ZodNativeEnum<
6321
+ typeof ResponseFormat6
6322
+ > = z.nativeEnum(ResponseFormat6);
6389
6323
  /** @internal */
6390
- export const DeploymentGetConfigResponseFormat6$outboundSchema: z.ZodNativeEnum<
6391
- typeof DeploymentGetConfigResponseFormat6
6392
- > = DeploymentGetConfigResponseFormat6$inboundSchema;
6324
+ export const ResponseFormat6$outboundSchema: z.ZodNativeEnum<
6325
+ typeof ResponseFormat6
6326
+ > = ResponseFormat6$inboundSchema;
6393
6327
 
6394
6328
  /** @internal */
6395
- export const DeploymentGetConfigResponseFormat5$inboundSchema: z.ZodNativeEnum<
6396
- typeof DeploymentGetConfigResponseFormat5
6397
- > = z.nativeEnum(DeploymentGetConfigResponseFormat5);
6329
+ export const ResponseFormat5$inboundSchema: z.ZodNativeEnum<
6330
+ typeof ResponseFormat5
6331
+ > = z.nativeEnum(ResponseFormat5);
6398
6332
  /** @internal */
6399
- export const DeploymentGetConfigResponseFormat5$outboundSchema: z.ZodNativeEnum<
6400
- typeof DeploymentGetConfigResponseFormat5
6401
- > = DeploymentGetConfigResponseFormat5$inboundSchema;
6333
+ export const ResponseFormat5$outboundSchema: z.ZodNativeEnum<
6334
+ typeof ResponseFormat5
6335
+ > = ResponseFormat5$inboundSchema;
6402
6336
 
6403
6337
  /** @internal */
6404
- export const DeploymentGetConfigResponseFormat4$inboundSchema: z.ZodNativeEnum<
6405
- typeof DeploymentGetConfigResponseFormat4
6406
- > = z.nativeEnum(DeploymentGetConfigResponseFormat4);
6338
+ export const ResponseFormat4$inboundSchema: z.ZodNativeEnum<
6339
+ typeof ResponseFormat4
6340
+ > = z.nativeEnum(ResponseFormat4);
6407
6341
  /** @internal */
6408
- export const DeploymentGetConfigResponseFormat4$outboundSchema: z.ZodNativeEnum<
6409
- typeof DeploymentGetConfigResponseFormat4
6410
- > = DeploymentGetConfigResponseFormat4$inboundSchema;
6342
+ export const ResponseFormat4$outboundSchema: z.ZodNativeEnum<
6343
+ typeof ResponseFormat4
6344
+ > = ResponseFormat4$inboundSchema;
6411
6345
 
6412
6346
  /** @internal */
6413
6347
  export const DeploymentGetConfigResponseFormatDeploymentsType$inboundSchema:
@@ -6419,44 +6353,39 @@ export const DeploymentGetConfigResponseFormatDeploymentsType$outboundSchema:
6419
6353
  DeploymentGetConfigResponseFormatDeploymentsType$inboundSchema;
6420
6354
 
6421
6355
  /** @internal */
6422
- export const DeploymentGetConfigResponseFormat3$inboundSchema: z.ZodType<
6423
- DeploymentGetConfigResponseFormat3,
6356
+ export const ResponseFormat3$inboundSchema: z.ZodType<
6357
+ ResponseFormat3,
6424
6358
  z.ZodTypeDef,
6425
6359
  unknown
6426
6360
  > = z.object({
6427
6361
  type: DeploymentGetConfigResponseFormatDeploymentsType$inboundSchema,
6428
6362
  });
6429
6363
  /** @internal */
6430
- export type DeploymentGetConfigResponseFormat3$Outbound = {
6364
+ export type ResponseFormat3$Outbound = {
6431
6365
  type: string;
6432
6366
  };
6433
6367
 
6434
6368
  /** @internal */
6435
- export const DeploymentGetConfigResponseFormat3$outboundSchema: z.ZodType<
6436
- DeploymentGetConfigResponseFormat3$Outbound,
6369
+ export const ResponseFormat3$outboundSchema: z.ZodType<
6370
+ ResponseFormat3$Outbound,
6437
6371
  z.ZodTypeDef,
6438
- DeploymentGetConfigResponseFormat3
6372
+ ResponseFormat3
6439
6373
  > = z.object({
6440
6374
  type: DeploymentGetConfigResponseFormatDeploymentsType$outboundSchema,
6441
6375
  });
6442
6376
 
6443
- export function deploymentGetConfigResponseFormat3ToJSON(
6444
- deploymentGetConfigResponseFormat3: DeploymentGetConfigResponseFormat3,
6377
+ export function responseFormat3ToJSON(
6378
+ responseFormat3: ResponseFormat3,
6445
6379
  ): string {
6446
- return JSON.stringify(
6447
- DeploymentGetConfigResponseFormat3$outboundSchema.parse(
6448
- deploymentGetConfigResponseFormat3,
6449
- ),
6450
- );
6380
+ return JSON.stringify(ResponseFormat3$outboundSchema.parse(responseFormat3));
6451
6381
  }
6452
- export function deploymentGetConfigResponseFormat3FromJSON(
6382
+ export function responseFormat3FromJSON(
6453
6383
  jsonString: string,
6454
- ): SafeParseResult<DeploymentGetConfigResponseFormat3, SDKValidationError> {
6384
+ ): SafeParseResult<ResponseFormat3, SDKValidationError> {
6455
6385
  return safeParse(
6456
6386
  jsonString,
6457
- (x) =>
6458
- DeploymentGetConfigResponseFormat3$inboundSchema.parse(JSON.parse(x)),
6459
- `Failed to parse 'DeploymentGetConfigResponseFormat3' from JSON`,
6387
+ (x) => ResponseFormat3$inboundSchema.parse(JSON.parse(x)),
6388
+ `Failed to parse 'ResponseFormat3' from JSON`,
6460
6389
  );
6461
6390
  }
6462
6391
 
@@ -6471,44 +6400,39 @@ export const DeploymentGetConfigResponseFormatType$outboundSchema:
6471
6400
  DeploymentGetConfigResponseFormatType$inboundSchema;
6472
6401
 
6473
6402
  /** @internal */
6474
- export const DeploymentGetConfigResponseFormat2$inboundSchema: z.ZodType<
6475
- DeploymentGetConfigResponseFormat2,
6403
+ export const ResponseFormat2$inboundSchema: z.ZodType<
6404
+ ResponseFormat2,
6476
6405
  z.ZodTypeDef,
6477
6406
  unknown
6478
6407
  > = z.object({
6479
6408
  type: DeploymentGetConfigResponseFormatType$inboundSchema,
6480
6409
  });
6481
6410
  /** @internal */
6482
- export type DeploymentGetConfigResponseFormat2$Outbound = {
6411
+ export type ResponseFormat2$Outbound = {
6483
6412
  type: string;
6484
6413
  };
6485
6414
 
6486
6415
  /** @internal */
6487
- export const DeploymentGetConfigResponseFormat2$outboundSchema: z.ZodType<
6488
- DeploymentGetConfigResponseFormat2$Outbound,
6416
+ export const ResponseFormat2$outboundSchema: z.ZodType<
6417
+ ResponseFormat2$Outbound,
6489
6418
  z.ZodTypeDef,
6490
- DeploymentGetConfigResponseFormat2
6419
+ ResponseFormat2
6491
6420
  > = z.object({
6492
6421
  type: DeploymentGetConfigResponseFormatType$outboundSchema,
6493
6422
  });
6494
6423
 
6495
- export function deploymentGetConfigResponseFormat2ToJSON(
6496
- deploymentGetConfigResponseFormat2: DeploymentGetConfigResponseFormat2,
6424
+ export function responseFormat2ToJSON(
6425
+ responseFormat2: ResponseFormat2,
6497
6426
  ): string {
6498
- return JSON.stringify(
6499
- DeploymentGetConfigResponseFormat2$outboundSchema.parse(
6500
- deploymentGetConfigResponseFormat2,
6501
- ),
6502
- );
6427
+ return JSON.stringify(ResponseFormat2$outboundSchema.parse(responseFormat2));
6503
6428
  }
6504
- export function deploymentGetConfigResponseFormat2FromJSON(
6429
+ export function responseFormat2FromJSON(
6505
6430
  jsonString: string,
6506
- ): SafeParseResult<DeploymentGetConfigResponseFormat2, SDKValidationError> {
6431
+ ): SafeParseResult<ResponseFormat2, SDKValidationError> {
6507
6432
  return safeParse(
6508
6433
  jsonString,
6509
- (x) =>
6510
- DeploymentGetConfigResponseFormat2$inboundSchema.parse(JSON.parse(x)),
6511
- `Failed to parse 'DeploymentGetConfigResponseFormat2' from JSON`,
6434
+ (x) => ResponseFormat2$inboundSchema.parse(JSON.parse(x)),
6435
+ `Failed to parse 'ResponseFormat2' from JSON`,
6512
6436
  );
6513
6437
  }
6514
6438
 
@@ -6583,8 +6507,8 @@ export function deploymentGetConfigResponseFormatJsonSchemaFromJSON(
6583
6507
  }
6584
6508
 
6585
6509
  /** @internal */
6586
- export const DeploymentGetConfigResponseFormat1$inboundSchema: z.ZodType<
6587
- DeploymentGetConfigResponseFormat1,
6510
+ export const ResponseFormat1$inboundSchema: z.ZodType<
6511
+ ResponseFormat1,
6588
6512
  z.ZodTypeDef,
6589
6513
  unknown
6590
6514
  > = z.object({
@@ -6600,17 +6524,17 @@ export const DeploymentGetConfigResponseFormat1$inboundSchema: z.ZodType<
6600
6524
  });
6601
6525
  });
6602
6526
  /** @internal */
6603
- export type DeploymentGetConfigResponseFormat1$Outbound = {
6527
+ export type ResponseFormat1$Outbound = {
6604
6528
  type: string;
6605
6529
  display_name?: string | undefined;
6606
6530
  json_schema: DeploymentGetConfigResponseFormatJsonSchema$Outbound;
6607
6531
  };
6608
6532
 
6609
6533
  /** @internal */
6610
- export const DeploymentGetConfigResponseFormat1$outboundSchema: z.ZodType<
6611
- DeploymentGetConfigResponseFormat1$Outbound,
6534
+ export const ResponseFormat1$outboundSchema: z.ZodType<
6535
+ ResponseFormat1$Outbound,
6612
6536
  z.ZodTypeDef,
6613
- DeploymentGetConfigResponseFormat1
6537
+ ResponseFormat1
6614
6538
  > = z.object({
6615
6539
  type: DeploymentGetConfigResponseFormatDeploymentsResponseType$outboundSchema,
6616
6540
  displayName: z.string().optional(),
@@ -6624,23 +6548,18 @@ export const DeploymentGetConfigResponseFormat1$outboundSchema: z.ZodType<
6624
6548
  });
6625
6549
  });
6626
6550
 
6627
- export function deploymentGetConfigResponseFormat1ToJSON(
6628
- deploymentGetConfigResponseFormat1: DeploymentGetConfigResponseFormat1,
6551
+ export function responseFormat1ToJSON(
6552
+ responseFormat1: ResponseFormat1,
6629
6553
  ): string {
6630
- return JSON.stringify(
6631
- DeploymentGetConfigResponseFormat1$outboundSchema.parse(
6632
- deploymentGetConfigResponseFormat1,
6633
- ),
6634
- );
6554
+ return JSON.stringify(ResponseFormat1$outboundSchema.parse(responseFormat1));
6635
6555
  }
6636
- export function deploymentGetConfigResponseFormat1FromJSON(
6556
+ export function responseFormat1FromJSON(
6637
6557
  jsonString: string,
6638
- ): SafeParseResult<DeploymentGetConfigResponseFormat1, SDKValidationError> {
6558
+ ): SafeParseResult<ResponseFormat1, SDKValidationError> {
6639
6559
  return safeParse(
6640
6560
  jsonString,
6641
- (x) =>
6642
- DeploymentGetConfigResponseFormat1$inboundSchema.parse(JSON.parse(x)),
6643
- `Failed to parse 'DeploymentGetConfigResponseFormat1' from JSON`,
6561
+ (x) => ResponseFormat1$inboundSchema.parse(JSON.parse(x)),
6562
+ `Failed to parse 'ResponseFormat1' from JSON`,
6644
6563
  );
6645
6564
  }
6646
6565
 
@@ -6650,18 +6569,18 @@ export const DeploymentGetConfigResponseFormat$inboundSchema: z.ZodType<
6650
6569
  z.ZodTypeDef,
6651
6570
  unknown
6652
6571
  > = z.union([
6653
- z.lazy(() => DeploymentGetConfigResponseFormat1$inboundSchema),
6654
- z.lazy(() => DeploymentGetConfigResponseFormat2$inboundSchema),
6655
- z.lazy(() => DeploymentGetConfigResponseFormat3$inboundSchema),
6656
- DeploymentGetConfigResponseFormat4$inboundSchema,
6657
- DeploymentGetConfigResponseFormat5$inboundSchema,
6658
- DeploymentGetConfigResponseFormat6$inboundSchema,
6572
+ z.lazy(() => ResponseFormat1$inboundSchema),
6573
+ z.lazy(() => ResponseFormat2$inboundSchema),
6574
+ z.lazy(() => ResponseFormat3$inboundSchema),
6575
+ ResponseFormat4$inboundSchema,
6576
+ ResponseFormat5$inboundSchema,
6577
+ ResponseFormat6$inboundSchema,
6659
6578
  ]);
6660
6579
  /** @internal */
6661
6580
  export type DeploymentGetConfigResponseFormat$Outbound =
6662
- | DeploymentGetConfigResponseFormat1$Outbound
6663
- | DeploymentGetConfigResponseFormat2$Outbound
6664
- | DeploymentGetConfigResponseFormat3$Outbound
6581
+ | ResponseFormat1$Outbound
6582
+ | ResponseFormat2$Outbound
6583
+ | ResponseFormat3$Outbound
6665
6584
  | string
6666
6585
  | string
6667
6586
  | string;
@@ -6672,12 +6591,12 @@ export const DeploymentGetConfigResponseFormat$outboundSchema: z.ZodType<
6672
6591
  z.ZodTypeDef,
6673
6592
  DeploymentGetConfigResponseFormat
6674
6593
  > = z.union([
6675
- z.lazy(() => DeploymentGetConfigResponseFormat1$outboundSchema),
6676
- z.lazy(() => DeploymentGetConfigResponseFormat2$outboundSchema),
6677
- z.lazy(() => DeploymentGetConfigResponseFormat3$outboundSchema),
6678
- DeploymentGetConfigResponseFormat4$outboundSchema,
6679
- DeploymentGetConfigResponseFormat5$outboundSchema,
6680
- DeploymentGetConfigResponseFormat6$outboundSchema,
6594
+ z.lazy(() => ResponseFormat1$outboundSchema),
6595
+ z.lazy(() => ResponseFormat2$outboundSchema),
6596
+ z.lazy(() => ResponseFormat3$outboundSchema),
6597
+ ResponseFormat4$outboundSchema,
6598
+ ResponseFormat5$outboundSchema,
6599
+ ResponseFormat6$outboundSchema,
6681
6600
  ]);
6682
6601
 
6683
6602
  export function deploymentGetConfigResponseFormatToJSON(
@@ -6700,22 +6619,22 @@ export function deploymentGetConfigResponseFormatFromJSON(
6700
6619
  }
6701
6620
 
6702
6621
  /** @internal */
6703
- export const DeploymentGetConfigPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
6704
- typeof DeploymentGetConfigPhotoRealVersion
6705
- > = z.nativeEnum(DeploymentGetConfigPhotoRealVersion);
6622
+ export const PhotoRealVersion$inboundSchema: z.ZodNativeEnum<
6623
+ typeof PhotoRealVersion
6624
+ > = z.nativeEnum(PhotoRealVersion);
6706
6625
  /** @internal */
6707
- export const DeploymentGetConfigPhotoRealVersion$outboundSchema:
6708
- z.ZodNativeEnum<typeof DeploymentGetConfigPhotoRealVersion> =
6709
- DeploymentGetConfigPhotoRealVersion$inboundSchema;
6626
+ export const PhotoRealVersion$outboundSchema: z.ZodNativeEnum<
6627
+ typeof PhotoRealVersion
6628
+ > = PhotoRealVersion$inboundSchema;
6710
6629
 
6711
6630
  /** @internal */
6712
- export const DeploymentGetConfigEncodingFormat$inboundSchema: z.ZodNativeEnum<
6713
- typeof DeploymentGetConfigEncodingFormat
6714
- > = z.nativeEnum(DeploymentGetConfigEncodingFormat);
6631
+ export const EncodingFormat$inboundSchema: z.ZodNativeEnum<
6632
+ typeof EncodingFormat
6633
+ > = z.nativeEnum(EncodingFormat);
6715
6634
  /** @internal */
6716
- export const DeploymentGetConfigEncodingFormat$outboundSchema: z.ZodNativeEnum<
6717
- typeof DeploymentGetConfigEncodingFormat
6718
- > = DeploymentGetConfigEncodingFormat$inboundSchema;
6635
+ export const EncodingFormat$outboundSchema: z.ZodNativeEnum<
6636
+ typeof EncodingFormat
6637
+ > = EncodingFormat$inboundSchema;
6719
6638
 
6720
6639
  /** @internal */
6721
6640
  export const DeploymentGetConfigReasoningEffort$inboundSchema: z.ZodNativeEnum<
@@ -6727,22 +6646,20 @@ export const DeploymentGetConfigReasoningEffort$outboundSchema: z.ZodNativeEnum<
6727
6646
  > = DeploymentGetConfigReasoningEffort$inboundSchema;
6728
6647
 
6729
6648
  /** @internal */
6730
- export const DeploymentGetConfigVerbosity$inboundSchema: z.ZodNativeEnum<
6731
- typeof DeploymentGetConfigVerbosity
6732
- > = z.nativeEnum(DeploymentGetConfigVerbosity);
6649
+ export const Verbosity$inboundSchema: z.ZodNativeEnum<typeof Verbosity> = z
6650
+ .nativeEnum(Verbosity);
6733
6651
  /** @internal */
6734
- export const DeploymentGetConfigVerbosity$outboundSchema: z.ZodNativeEnum<
6735
- typeof DeploymentGetConfigVerbosity
6736
- > = DeploymentGetConfigVerbosity$inboundSchema;
6652
+ export const Verbosity$outboundSchema: z.ZodNativeEnum<typeof Verbosity> =
6653
+ Verbosity$inboundSchema;
6737
6654
 
6738
6655
  /** @internal */
6739
- export const DeploymentGetConfigThinkingLevel$inboundSchema: z.ZodNativeEnum<
6740
- typeof DeploymentGetConfigThinkingLevel
6741
- > = z.nativeEnum(DeploymentGetConfigThinkingLevel);
6656
+ export const ThinkingLevel$inboundSchema: z.ZodNativeEnum<
6657
+ typeof ThinkingLevel
6658
+ > = z.nativeEnum(ThinkingLevel);
6742
6659
  /** @internal */
6743
- export const DeploymentGetConfigThinkingLevel$outboundSchema: z.ZodNativeEnum<
6744
- typeof DeploymentGetConfigThinkingLevel
6745
- > = DeploymentGetConfigThinkingLevel$inboundSchema;
6660
+ export const ThinkingLevel$outboundSchema: z.ZodNativeEnum<
6661
+ typeof ThinkingLevel
6662
+ > = ThinkingLevel$inboundSchema;
6746
6663
 
6747
6664
  /** @internal */
6748
6665
  export const DeploymentGetConfigParameters$inboundSchema: z.ZodType<
@@ -6764,21 +6681,20 @@ export const DeploymentGetConfigParameters$inboundSchema: z.ZodType<
6764
6681
  style: z.string().optional(),
6765
6682
  responseFormat: z.nullable(
6766
6683
  z.union([
6767
- z.lazy(() => DeploymentGetConfigResponseFormat1$inboundSchema),
6768
- z.lazy(() => DeploymentGetConfigResponseFormat2$inboundSchema),
6769
- z.lazy(() => DeploymentGetConfigResponseFormat3$inboundSchema),
6770
- DeploymentGetConfigResponseFormat4$inboundSchema,
6771
- DeploymentGetConfigResponseFormat5$inboundSchema,
6772
- DeploymentGetConfigResponseFormat6$inboundSchema,
6684
+ z.lazy(() => ResponseFormat1$inboundSchema),
6685
+ z.lazy(() => ResponseFormat2$inboundSchema),
6686
+ z.lazy(() => ResponseFormat3$inboundSchema),
6687
+ ResponseFormat4$inboundSchema,
6688
+ ResponseFormat5$inboundSchema,
6689
+ ResponseFormat6$inboundSchema,
6773
6690
  ]),
6774
6691
  ).optional(),
6775
- photoRealVersion: DeploymentGetConfigPhotoRealVersion$inboundSchema
6776
- .optional(),
6777
- encoding_format: DeploymentGetConfigEncodingFormat$inboundSchema.optional(),
6692
+ photoRealVersion: PhotoRealVersion$inboundSchema.optional(),
6693
+ encoding_format: EncodingFormat$inboundSchema.optional(),
6778
6694
  reasoningEffort: DeploymentGetConfigReasoningEffort$inboundSchema.optional(),
6779
6695
  budgetTokens: z.number().optional(),
6780
- verbosity: DeploymentGetConfigVerbosity$inboundSchema.optional(),
6781
- thinkingLevel: DeploymentGetConfigThinkingLevel$inboundSchema.optional(),
6696
+ verbosity: Verbosity$inboundSchema.optional(),
6697
+ thinkingLevel: ThinkingLevel$inboundSchema.optional(),
6782
6698
  }).transform((v) => {
6783
6699
  return remap$(v, {
6784
6700
  "encoding_format": "encodingFormat",
@@ -6799,9 +6715,9 @@ export type DeploymentGetConfigParameters$Outbound = {
6799
6715
  quality?: string | undefined;
6800
6716
  style?: string | undefined;
6801
6717
  responseFormat?:
6802
- | DeploymentGetConfigResponseFormat1$Outbound
6803
- | DeploymentGetConfigResponseFormat2$Outbound
6804
- | DeploymentGetConfigResponseFormat3$Outbound
6718
+ | ResponseFormat1$Outbound
6719
+ | ResponseFormat2$Outbound
6720
+ | ResponseFormat3$Outbound
6805
6721
  | string
6806
6722
  | string
6807
6723
  | string
@@ -6835,21 +6751,20 @@ export const DeploymentGetConfigParameters$outboundSchema: z.ZodType<
6835
6751
  style: z.string().optional(),
6836
6752
  responseFormat: z.nullable(
6837
6753
  z.union([
6838
- z.lazy(() => DeploymentGetConfigResponseFormat1$outboundSchema),
6839
- z.lazy(() => DeploymentGetConfigResponseFormat2$outboundSchema),
6840
- z.lazy(() => DeploymentGetConfigResponseFormat3$outboundSchema),
6841
- DeploymentGetConfigResponseFormat4$outboundSchema,
6842
- DeploymentGetConfigResponseFormat5$outboundSchema,
6843
- DeploymentGetConfigResponseFormat6$outboundSchema,
6754
+ z.lazy(() => ResponseFormat1$outboundSchema),
6755
+ z.lazy(() => ResponseFormat2$outboundSchema),
6756
+ z.lazy(() => ResponseFormat3$outboundSchema),
6757
+ ResponseFormat4$outboundSchema,
6758
+ ResponseFormat5$outboundSchema,
6759
+ ResponseFormat6$outboundSchema,
6844
6760
  ]),
6845
6761
  ).optional(),
6846
- photoRealVersion: DeploymentGetConfigPhotoRealVersion$outboundSchema
6847
- .optional(),
6848
- encodingFormat: DeploymentGetConfigEncodingFormat$outboundSchema.optional(),
6762
+ photoRealVersion: PhotoRealVersion$outboundSchema.optional(),
6763
+ encodingFormat: EncodingFormat$outboundSchema.optional(),
6849
6764
  reasoningEffort: DeploymentGetConfigReasoningEffort$outboundSchema.optional(),
6850
6765
  budgetTokens: z.number().optional(),
6851
- verbosity: DeploymentGetConfigVerbosity$outboundSchema.optional(),
6852
- thinkingLevel: DeploymentGetConfigThinkingLevel$outboundSchema.optional(),
6766
+ verbosity: Verbosity$outboundSchema.optional(),
6767
+ thinkingLevel: ThinkingLevel$outboundSchema.optional(),
6853
6768
  }).transform((v) => {
6854
6769
  return remap$(v, {
6855
6770
  encodingFormat: "encoding_format",