@orq-ai/node 3.8.0-rc.30 → 3.8.0-rc.31

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 (123) hide show
  1. package/bin/mcp-server.js +542 -542
  2. package/bin/mcp-server.js.map +40 -40
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +3 -3
  5. package/lib/config.js +3 -3
  6. package/mcp-server/mcp-server.js +1 -1
  7. package/mcp-server/server.js +1 -1
  8. package/models/components/deployments.d.ts +8 -8
  9. package/models/components/deployments.d.ts.map +1 -1
  10. package/models/components/deployments.js +8 -8
  11. package/models/components/deployments.js.map +1 -1
  12. package/models/operations/createcontact.js +2 -2
  13. package/models/operations/createdataset.js +2 -2
  14. package/models/operations/createdatasetitem.d.ts +8 -8
  15. package/models/operations/createdatasetitem.d.ts.map +1 -1
  16. package/models/operations/createdatasetitem.js +10 -10
  17. package/models/operations/createdatasetitem.js.map +1 -1
  18. package/models/operations/createdatasource.js +2 -2
  19. package/models/operations/createeval.d.ts +36 -36
  20. package/models/operations/createeval.d.ts.map +1 -1
  21. package/models/operations/createeval.js +56 -56
  22. package/models/operations/createeval.js.map +1 -1
  23. package/models/operations/createprompt.d.ts +8 -8
  24. package/models/operations/createprompt.js +8 -8
  25. package/models/operations/deploymentcreatemetric.d.ts +8 -8
  26. package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
  27. package/models/operations/deploymentcreatemetric.js +8 -8
  28. package/models/operations/deploymentcreatemetric.js.map +1 -1
  29. package/models/operations/deploymentgetconfig.d.ts +12 -12
  30. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  31. package/models/operations/deploymentgetconfig.js +12 -12
  32. package/models/operations/deploymentgetconfig.js.map +1 -1
  33. package/models/operations/deploymentinvoke.d.ts +4 -4
  34. package/models/operations/deploymentinvoke.js +8 -8
  35. package/models/operations/deployments.d.ts +4 -4
  36. package/models/operations/deployments.js +4 -4
  37. package/models/operations/deploymentstream.d.ts +12 -12
  38. package/models/operations/deploymentstream.d.ts.map +1 -1
  39. package/models/operations/deploymentstream.js +12 -12
  40. package/models/operations/deploymentstream.js.map +1 -1
  41. package/models/operations/fileget.js +2 -2
  42. package/models/operations/filelist.js +2 -2
  43. package/models/operations/fileupload.js +2 -2
  44. package/models/operations/getallprompts.d.ts +4 -4
  45. package/models/operations/getallprompts.js +4 -4
  46. package/models/operations/getevals.d.ts +36 -36
  47. package/models/operations/getevals.d.ts.map +1 -1
  48. package/models/operations/getevals.js +108 -108
  49. package/models/operations/getevals.js.map +1 -1
  50. package/models/operations/getoneprompt.d.ts +4 -4
  51. package/models/operations/getoneprompt.js +4 -4
  52. package/models/operations/getpromptversion.d.ts +4 -4
  53. package/models/operations/getpromptversion.js +4 -4
  54. package/models/operations/listcontacts.js +2 -2
  55. package/models/operations/listdatasetdatapoints.d.ts +4 -4
  56. package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
  57. package/models/operations/listdatasetdatapoints.js +6 -6
  58. package/models/operations/listdatasetdatapoints.js.map +1 -1
  59. package/models/operations/listdatasets.js +2 -2
  60. package/models/operations/listdatasources.js +2 -2
  61. package/models/operations/listpromptversions.d.ts +4 -4
  62. package/models/operations/listpromptversions.js +4 -4
  63. package/models/operations/postv2modelslitellmimport.d.ts +4 -4
  64. package/models/operations/postv2modelslitellmimport.js +8 -8
  65. package/models/operations/retrievecontact.js +2 -2
  66. package/models/operations/retrievedatapoint.d.ts +4 -4
  67. package/models/operations/retrievedatapoint.d.ts.map +1 -1
  68. package/models/operations/retrievedatapoint.js +6 -6
  69. package/models/operations/retrievedatapoint.js.map +1 -1
  70. package/models/operations/retrievedataset.js +2 -2
  71. package/models/operations/retrievedatasource.js +2 -2
  72. package/models/operations/updatecontact.js +2 -2
  73. package/models/operations/updatedatapoint.d.ts +8 -8
  74. package/models/operations/updatedatapoint.d.ts.map +1 -1
  75. package/models/operations/updatedatapoint.js +10 -10
  76. package/models/operations/updatedatapoint.js.map +1 -1
  77. package/models/operations/updatedataset.js +2 -2
  78. package/models/operations/updatedatasource.js +2 -2
  79. package/models/operations/updateeval.d.ts +38 -38
  80. package/models/operations/updateeval.d.ts.map +1 -1
  81. package/models/operations/updateeval.js +60 -60
  82. package/models/operations/updateeval.js.map +1 -1
  83. package/models/operations/updateprompt.d.ts +8 -8
  84. package/models/operations/updateprompt.js +8 -8
  85. package/package.json +1 -1
  86. package/src/lib/config.ts +3 -3
  87. package/src/mcp-server/mcp-server.ts +1 -1
  88. package/src/mcp-server/server.ts +1 -1
  89. package/src/models/components/deployments.ts +16 -16
  90. package/src/models/operations/createcontact.ts +2 -2
  91. package/src/models/operations/createdataset.ts +2 -2
  92. package/src/models/operations/createdatasetitem.ts +18 -18
  93. package/src/models/operations/createdatasource.ts +2 -2
  94. package/src/models/operations/createeval.ts +121 -121
  95. package/src/models/operations/createprompt.ts +19 -19
  96. package/src/models/operations/deploymentcreatemetric.ts +22 -18
  97. package/src/models/operations/deploymentgetconfig.ts +26 -26
  98. package/src/models/operations/deploymentinvoke.ts +13 -13
  99. package/src/models/operations/deployments.ts +10 -10
  100. package/src/models/operations/deploymentstream.ts +26 -26
  101. package/src/models/operations/fileget.ts +2 -2
  102. package/src/models/operations/filelist.ts +2 -2
  103. package/src/models/operations/fileupload.ts +2 -2
  104. package/src/models/operations/getallprompts.ts +10 -10
  105. package/src/models/operations/getevals.ts +220 -220
  106. package/src/models/operations/getoneprompt.ts +10 -10
  107. package/src/models/operations/getpromptversion.ts +10 -10
  108. package/src/models/operations/listcontacts.ts +2 -2
  109. package/src/models/operations/listdatasetdatapoints.ts +16 -12
  110. package/src/models/operations/listdatasets.ts +2 -2
  111. package/src/models/operations/listdatasources.ts +2 -2
  112. package/src/models/operations/listpromptversions.ts +10 -10
  113. package/src/models/operations/postv2modelslitellmimport.ts +18 -18
  114. package/src/models/operations/retrievecontact.ts +2 -2
  115. package/src/models/operations/retrievedatapoint.ts +10 -10
  116. package/src/models/operations/retrievedataset.ts +2 -2
  117. package/src/models/operations/retrievedatasource.ts +2 -2
  118. package/src/models/operations/updatecontact.ts +2 -2
  119. package/src/models/operations/updatedatapoint.ts +21 -19
  120. package/src/models/operations/updatedataset.ts +2 -2
  121. package/src/models/operations/updatedatasource.ts +2 -2
  122. package/src/models/operations/updateeval.ts +139 -139
  123. package/src/models/operations/updateprompt.ts +20 -20
@@ -164,8 +164,8 @@ export type DeploymentsResponseFormat1 = {
164
164
  * 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.
165
165
  */
166
166
  export type DeploymentsResponseFormat =
167
- | DeploymentsResponseFormat2
168
- | DeploymentsResponseFormat1;
167
+ | DeploymentsResponseFormat1
168
+ | DeploymentsResponseFormat2;
169
169
 
170
170
  /**
171
171
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
@@ -274,8 +274,8 @@ export type DeploymentsModelParameters = {
274
274
  * 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.
275
275
  */
276
276
  responseFormat?:
277
- | DeploymentsResponseFormat2
278
277
  | DeploymentsResponseFormat1
278
+ | DeploymentsResponseFormat2
279
279
  | null
280
280
  | undefined;
281
281
  /**
@@ -1104,14 +1104,14 @@ export const DeploymentsResponseFormat$inboundSchema: z.ZodType<
1104
1104
  z.ZodTypeDef,
1105
1105
  unknown
1106
1106
  > = z.union([
1107
- z.lazy(() => DeploymentsResponseFormat2$inboundSchema),
1108
1107
  z.lazy(() => DeploymentsResponseFormat1$inboundSchema),
1108
+ z.lazy(() => DeploymentsResponseFormat2$inboundSchema),
1109
1109
  ]);
1110
1110
 
1111
1111
  /** @internal */
1112
1112
  export type DeploymentsResponseFormat$Outbound =
1113
- | DeploymentsResponseFormat2$Outbound
1114
- | DeploymentsResponseFormat1$Outbound;
1113
+ | DeploymentsResponseFormat1$Outbound
1114
+ | DeploymentsResponseFormat2$Outbound;
1115
1115
 
1116
1116
  /** @internal */
1117
1117
  export const DeploymentsResponseFormat$outboundSchema: z.ZodType<
@@ -1119,8 +1119,8 @@ export const DeploymentsResponseFormat$outboundSchema: z.ZodType<
1119
1119
  z.ZodTypeDef,
1120
1120
  DeploymentsResponseFormat
1121
1121
  > = z.union([
1122
- z.lazy(() => DeploymentsResponseFormat2$outboundSchema),
1123
1122
  z.lazy(() => DeploymentsResponseFormat1$outboundSchema),
1123
+ z.lazy(() => DeploymentsResponseFormat2$outboundSchema),
1124
1124
  ]);
1125
1125
 
1126
1126
  /**
@@ -1237,8 +1237,8 @@ export const DeploymentsModelParameters$inboundSchema: z.ZodType<
1237
1237
  style: z.string().optional(),
1238
1238
  responseFormat: z.nullable(
1239
1239
  z.union([
1240
- z.lazy(() => DeploymentsResponseFormat2$inboundSchema),
1241
1240
  z.lazy(() => DeploymentsResponseFormat1$inboundSchema),
1241
+ z.lazy(() => DeploymentsResponseFormat2$inboundSchema),
1242
1242
  ]),
1243
1243
  ).optional(),
1244
1244
  photoRealVersion: DeploymentsPhotoRealVersion$inboundSchema.optional(),
@@ -1266,8 +1266,8 @@ export type DeploymentsModelParameters$Outbound = {
1266
1266
  quality?: string | undefined;
1267
1267
  style?: string | undefined;
1268
1268
  responseFormat?:
1269
- | DeploymentsResponseFormat2$Outbound
1270
1269
  | DeploymentsResponseFormat1$Outbound
1270
+ | DeploymentsResponseFormat2$Outbound
1271
1271
  | null
1272
1272
  | undefined;
1273
1273
  photoRealVersion?: string | undefined;
@@ -1296,8 +1296,8 @@ export const DeploymentsModelParameters$outboundSchema: z.ZodType<
1296
1296
  style: z.string().optional(),
1297
1297
  responseFormat: z.nullable(
1298
1298
  z.union([
1299
- z.lazy(() => DeploymentsResponseFormat2$outboundSchema),
1300
1299
  z.lazy(() => DeploymentsResponseFormat1$outboundSchema),
1300
+ z.lazy(() => DeploymentsResponseFormat2$outboundSchema),
1301
1301
  ]),
1302
1302
  ).optional(),
1303
1303
  photoRealVersion: DeploymentsPhotoRealVersion$outboundSchema.optional(),
@@ -450,10 +450,10 @@ export type PrefixMessagesDeveloperMessage = {
450
450
  };
451
451
 
452
452
  export type DeploymentStreamPrefixMessages =
453
+ | PrefixMessagesToolMessage
453
454
  | PrefixMessagesDeveloperMessage
454
455
  | PrefixMessagesSystemMessage
455
456
  | PrefixMessagesUserMessage
456
- | PrefixMessagesToolMessage
457
457
  | PrefixMessagesAssistantMessage;
458
458
 
459
459
  /**
@@ -892,10 +892,10 @@ export type DeploymentStreamMessagesDeveloperMessage = {
892
892
  };
893
893
 
894
894
  export type DeploymentStreamMessages =
895
+ | DeploymentStreamMessagesToolMessage
895
896
  | DeploymentStreamMessagesDeveloperMessage
896
897
  | DeploymentStreamMessagesSystemMessage
897
898
  | DeploymentStreamMessagesUserMessage
898
- | DeploymentStreamMessagesToolMessage
899
899
  | DeploymentStreamMessagesAssistantMessage;
900
900
 
901
901
  /**
@@ -1263,10 +1263,10 @@ export type DeploymentStreamRequestBody = {
1263
1263
  */
1264
1264
  prefixMessages?:
1265
1265
  | Array<
1266
+ | PrefixMessagesToolMessage
1266
1267
  | PrefixMessagesDeveloperMessage
1267
1268
  | PrefixMessagesSystemMessage
1268
1269
  | PrefixMessagesUserMessage
1269
- | PrefixMessagesToolMessage
1270
1270
  | PrefixMessagesAssistantMessage
1271
1271
  >
1272
1272
  | undefined;
@@ -1275,10 +1275,10 @@ export type DeploymentStreamRequestBody = {
1275
1275
  */
1276
1276
  messages?:
1277
1277
  | Array<
1278
+ | DeploymentStreamMessagesToolMessage
1278
1279
  | DeploymentStreamMessagesDeveloperMessage
1279
1280
  | DeploymentStreamMessagesSystemMessage
1280
1281
  | DeploymentStreamMessagesUserMessage
1281
- | DeploymentStreamMessagesToolMessage
1282
1282
  | DeploymentStreamMessagesAssistantMessage
1283
1283
  >
1284
1284
  | undefined;
@@ -1473,16 +1473,16 @@ export type DeploymentStreamMessage1 = {
1473
1473
  };
1474
1474
 
1475
1475
  export type DeploymentStreamMessage =
1476
+ | DeploymentStreamMessage1
1476
1477
  | DeploymentStreamMessage2
1477
- | DeploymentStreamMessage3
1478
- | DeploymentStreamMessage1;
1478
+ | DeploymentStreamMessage3;
1479
1479
 
1480
1480
  export type DeploymentStreamChoices = {
1481
1481
  index: number;
1482
1482
  message?:
1483
+ | DeploymentStreamMessage1
1483
1484
  | DeploymentStreamMessage2
1484
1485
  | DeploymentStreamMessage3
1485
- | DeploymentStreamMessage1
1486
1486
  | undefined;
1487
1487
  finishReason?: string | null | undefined;
1488
1488
  };
@@ -3487,19 +3487,19 @@ export const DeploymentStreamPrefixMessages$inboundSchema: z.ZodType<
3487
3487
  z.ZodTypeDef,
3488
3488
  unknown
3489
3489
  > = z.union([
3490
+ z.lazy(() => PrefixMessagesToolMessage$inboundSchema),
3490
3491
  z.lazy(() => PrefixMessagesDeveloperMessage$inboundSchema),
3491
3492
  z.lazy(() => PrefixMessagesSystemMessage$inboundSchema),
3492
3493
  z.lazy(() => PrefixMessagesUserMessage$inboundSchema),
3493
- z.lazy(() => PrefixMessagesToolMessage$inboundSchema),
3494
3494
  z.lazy(() => PrefixMessagesAssistantMessage$inboundSchema),
3495
3495
  ]);
3496
3496
 
3497
3497
  /** @internal */
3498
3498
  export type DeploymentStreamPrefixMessages$Outbound =
3499
+ | PrefixMessagesToolMessage$Outbound
3499
3500
  | PrefixMessagesDeveloperMessage$Outbound
3500
3501
  | PrefixMessagesSystemMessage$Outbound
3501
3502
  | PrefixMessagesUserMessage$Outbound
3502
- | PrefixMessagesToolMessage$Outbound
3503
3503
  | PrefixMessagesAssistantMessage$Outbound;
3504
3504
 
3505
3505
  /** @internal */
@@ -3508,10 +3508,10 @@ export const DeploymentStreamPrefixMessages$outboundSchema: z.ZodType<
3508
3508
  z.ZodTypeDef,
3509
3509
  DeploymentStreamPrefixMessages
3510
3510
  > = z.union([
3511
+ z.lazy(() => PrefixMessagesToolMessage$outboundSchema),
3511
3512
  z.lazy(() => PrefixMessagesDeveloperMessage$outboundSchema),
3512
3513
  z.lazy(() => PrefixMessagesSystemMessage$outboundSchema),
3513
3514
  z.lazy(() => PrefixMessagesUserMessage$outboundSchema),
3514
- z.lazy(() => PrefixMessagesToolMessage$outboundSchema),
3515
3515
  z.lazy(() => PrefixMessagesAssistantMessage$outboundSchema),
3516
3516
  ]);
3517
3517
 
@@ -5474,19 +5474,19 @@ export const DeploymentStreamMessages$inboundSchema: z.ZodType<
5474
5474
  z.ZodTypeDef,
5475
5475
  unknown
5476
5476
  > = z.union([
5477
+ z.lazy(() => DeploymentStreamMessagesToolMessage$inboundSchema),
5477
5478
  z.lazy(() => DeploymentStreamMessagesDeveloperMessage$inboundSchema),
5478
5479
  z.lazy(() => DeploymentStreamMessagesSystemMessage$inboundSchema),
5479
5480
  z.lazy(() => DeploymentStreamMessagesUserMessage$inboundSchema),
5480
- z.lazy(() => DeploymentStreamMessagesToolMessage$inboundSchema),
5481
5481
  z.lazy(() => DeploymentStreamMessagesAssistantMessage$inboundSchema),
5482
5482
  ]);
5483
5483
 
5484
5484
  /** @internal */
5485
5485
  export type DeploymentStreamMessages$Outbound =
5486
+ | DeploymentStreamMessagesToolMessage$Outbound
5486
5487
  | DeploymentStreamMessagesDeveloperMessage$Outbound
5487
5488
  | DeploymentStreamMessagesSystemMessage$Outbound
5488
5489
  | DeploymentStreamMessagesUserMessage$Outbound
5489
- | DeploymentStreamMessagesToolMessage$Outbound
5490
5490
  | DeploymentStreamMessagesAssistantMessage$Outbound;
5491
5491
 
5492
5492
  /** @internal */
@@ -5495,10 +5495,10 @@ export const DeploymentStreamMessages$outboundSchema: z.ZodType<
5495
5495
  z.ZodTypeDef,
5496
5496
  DeploymentStreamMessages
5497
5497
  > = z.union([
5498
+ z.lazy(() => DeploymentStreamMessagesToolMessage$outboundSchema),
5498
5499
  z.lazy(() => DeploymentStreamMessagesDeveloperMessage$outboundSchema),
5499
5500
  z.lazy(() => DeploymentStreamMessagesSystemMessage$outboundSchema),
5500
5501
  z.lazy(() => DeploymentStreamMessagesUserMessage$outboundSchema),
5501
- z.lazy(() => DeploymentStreamMessagesToolMessage$outboundSchema),
5502
5502
  z.lazy(() => DeploymentStreamMessagesAssistantMessage$outboundSchema),
5503
5503
  ]);
5504
5504
 
@@ -8408,19 +8408,19 @@ export const DeploymentStreamRequestBody$inboundSchema: z.ZodType<
8408
8408
  context: z.record(z.any()).optional(),
8409
8409
  prefix_messages: z.array(
8410
8410
  z.union([
8411
+ z.lazy(() => PrefixMessagesToolMessage$inboundSchema),
8411
8412
  z.lazy(() => PrefixMessagesDeveloperMessage$inboundSchema),
8412
8413
  z.lazy(() => PrefixMessagesSystemMessage$inboundSchema),
8413
8414
  z.lazy(() => PrefixMessagesUserMessage$inboundSchema),
8414
- z.lazy(() => PrefixMessagesToolMessage$inboundSchema),
8415
8415
  z.lazy(() => PrefixMessagesAssistantMessage$inboundSchema),
8416
8416
  ]),
8417
8417
  ).optional(),
8418
8418
  messages: z.array(
8419
8419
  z.union([
8420
+ z.lazy(() => DeploymentStreamMessagesToolMessage$inboundSchema),
8420
8421
  z.lazy(() => DeploymentStreamMessagesDeveloperMessage$inboundSchema),
8421
8422
  z.lazy(() => DeploymentStreamMessagesSystemMessage$inboundSchema),
8422
8423
  z.lazy(() => DeploymentStreamMessagesUserMessage$inboundSchema),
8423
- z.lazy(() => DeploymentStreamMessagesToolMessage$inboundSchema),
8424
8424
  z.lazy(() => DeploymentStreamMessagesAssistantMessage$inboundSchema),
8425
8425
  ]),
8426
8426
  ).optional(),
@@ -8466,19 +8466,19 @@ export type DeploymentStreamRequestBody$Outbound = {
8466
8466
  context?: { [k: string]: any } | undefined;
8467
8467
  prefix_messages?:
8468
8468
  | Array<
8469
+ | PrefixMessagesToolMessage$Outbound
8469
8470
  | PrefixMessagesDeveloperMessage$Outbound
8470
8471
  | PrefixMessagesSystemMessage$Outbound
8471
8472
  | PrefixMessagesUserMessage$Outbound
8472
- | PrefixMessagesToolMessage$Outbound
8473
8473
  | PrefixMessagesAssistantMessage$Outbound
8474
8474
  >
8475
8475
  | undefined;
8476
8476
  messages?:
8477
8477
  | Array<
8478
+ | DeploymentStreamMessagesToolMessage$Outbound
8478
8479
  | DeploymentStreamMessagesDeveloperMessage$Outbound
8479
8480
  | DeploymentStreamMessagesSystemMessage$Outbound
8480
8481
  | DeploymentStreamMessagesUserMessage$Outbound
8481
- | DeploymentStreamMessagesToolMessage$Outbound
8482
8482
  | DeploymentStreamMessagesAssistantMessage$Outbound
8483
8483
  >
8484
8484
  | undefined;
@@ -8517,19 +8517,19 @@ export const DeploymentStreamRequestBody$outboundSchema: z.ZodType<
8517
8517
  context: z.record(z.any()).optional(),
8518
8518
  prefixMessages: z.array(
8519
8519
  z.union([
8520
+ z.lazy(() => PrefixMessagesToolMessage$outboundSchema),
8520
8521
  z.lazy(() => PrefixMessagesDeveloperMessage$outboundSchema),
8521
8522
  z.lazy(() => PrefixMessagesSystemMessage$outboundSchema),
8522
8523
  z.lazy(() => PrefixMessagesUserMessage$outboundSchema),
8523
- z.lazy(() => PrefixMessagesToolMessage$outboundSchema),
8524
8524
  z.lazy(() => PrefixMessagesAssistantMessage$outboundSchema),
8525
8525
  ]),
8526
8526
  ).optional(),
8527
8527
  messages: z.array(
8528
8528
  z.union([
8529
+ z.lazy(() => DeploymentStreamMessagesToolMessage$outboundSchema),
8529
8530
  z.lazy(() => DeploymentStreamMessagesDeveloperMessage$outboundSchema),
8530
8531
  z.lazy(() => DeploymentStreamMessagesSystemMessage$outboundSchema),
8531
8532
  z.lazy(() => DeploymentStreamMessagesUserMessage$outboundSchema),
8532
- z.lazy(() => DeploymentStreamMessagesToolMessage$outboundSchema),
8533
8533
  z.lazy(() => DeploymentStreamMessagesAssistantMessage$outboundSchema),
8534
8534
  ]),
8535
8535
  ).optional(),
@@ -9048,16 +9048,16 @@ export const DeploymentStreamMessage$inboundSchema: z.ZodType<
9048
9048
  z.ZodTypeDef,
9049
9049
  unknown
9050
9050
  > = z.union([
9051
+ z.lazy(() => DeploymentStreamMessage1$inboundSchema),
9051
9052
  z.lazy(() => DeploymentStreamMessage2$inboundSchema),
9052
9053
  z.lazy(() => DeploymentStreamMessage3$inboundSchema),
9053
- z.lazy(() => DeploymentStreamMessage1$inboundSchema),
9054
9054
  ]);
9055
9055
 
9056
9056
  /** @internal */
9057
9057
  export type DeploymentStreamMessage$Outbound =
9058
+ | DeploymentStreamMessage1$Outbound
9058
9059
  | DeploymentStreamMessage2$Outbound
9059
- | DeploymentStreamMessage3$Outbound
9060
- | DeploymentStreamMessage1$Outbound;
9060
+ | DeploymentStreamMessage3$Outbound;
9061
9061
 
9062
9062
  /** @internal */
9063
9063
  export const DeploymentStreamMessage$outboundSchema: z.ZodType<
@@ -9065,9 +9065,9 @@ export const DeploymentStreamMessage$outboundSchema: z.ZodType<
9065
9065
  z.ZodTypeDef,
9066
9066
  DeploymentStreamMessage
9067
9067
  > = z.union([
9068
+ z.lazy(() => DeploymentStreamMessage1$outboundSchema),
9068
9069
  z.lazy(() => DeploymentStreamMessage2$outboundSchema),
9069
9070
  z.lazy(() => DeploymentStreamMessage3$outboundSchema),
9070
- z.lazy(() => DeploymentStreamMessage1$outboundSchema),
9071
9071
  ]);
9072
9072
 
9073
9073
  /**
@@ -9109,9 +9109,9 @@ export const DeploymentStreamChoices$inboundSchema: z.ZodType<
9109
9109
  > = z.object({
9110
9110
  index: z.number(),
9111
9111
  message: z.union([
9112
+ z.lazy(() => DeploymentStreamMessage1$inboundSchema),
9112
9113
  z.lazy(() => DeploymentStreamMessage2$inboundSchema),
9113
9114
  z.lazy(() => DeploymentStreamMessage3$inboundSchema),
9114
- z.lazy(() => DeploymentStreamMessage1$inboundSchema),
9115
9115
  ]).optional(),
9116
9116
  finish_reason: z.nullable(z.string()).optional(),
9117
9117
  }).transform((v) => {
@@ -9124,9 +9124,9 @@ export const DeploymentStreamChoices$inboundSchema: z.ZodType<
9124
9124
  export type DeploymentStreamChoices$Outbound = {
9125
9125
  index: number;
9126
9126
  message?:
9127
+ | DeploymentStreamMessage1$Outbound
9127
9128
  | DeploymentStreamMessage2$Outbound
9128
9129
  | DeploymentStreamMessage3$Outbound
9129
- | DeploymentStreamMessage1$Outbound
9130
9130
  | undefined;
9131
9131
  finish_reason?: string | null | undefined;
9132
9132
  };
@@ -9139,9 +9139,9 @@ export const DeploymentStreamChoices$outboundSchema: z.ZodType<
9139
9139
  > = z.object({
9140
9140
  index: z.number(),
9141
9141
  message: z.union([
9142
+ z.lazy(() => DeploymentStreamMessage1$outboundSchema),
9142
9143
  z.lazy(() => DeploymentStreamMessage2$outboundSchema),
9143
9144
  z.lazy(() => DeploymentStreamMessage3$outboundSchema),
9144
- z.lazy(() => DeploymentStreamMessage1$outboundSchema),
9145
9145
  ]).optional(),
9146
9146
  finishReason: z.nullable(z.string()).optional(),
9147
9147
  }).transform((v) => {
@@ -146,7 +146,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
146
146
  file_name: z.string(),
147
147
  workspace_id: z.string(),
148
148
  created: z.string().datetime({ offset: true }).default(
149
- "2025-06-16T13:25:10.063Z",
149
+ "2025-06-17T09:09:49.841Z",
150
150
  ).transform(v => new Date(v)),
151
151
  }).transform((v) => {
152
152
  return remap$(v, {
@@ -180,7 +180,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
180
180
  bytes: z.number(),
181
181
  fileName: z.string(),
182
182
  workspaceId: z.string(),
183
- created: z.date().default(() => new Date("2025-06-16T13:25:10.063Z"))
183
+ created: z.date().default(() => new Date("2025-06-17T09:09:49.841Z"))
184
184
  .transform(v => v.toISOString()),
185
185
  }).transform((v) => {
186
186
  return remap$(v, {
@@ -196,7 +196,7 @@ export const FileListData$inboundSchema: z.ZodType<
196
196
  file_name: z.string(),
197
197
  workspace_id: z.string(),
198
198
  created: z.string().datetime({ offset: true }).default(
199
- "2025-06-16T13:25:10.063Z",
199
+ "2025-06-17T09:09:49.841Z",
200
200
  ).transform(v => new Date(v)),
201
201
  }).transform((v) => {
202
202
  return remap$(v, {
@@ -230,7 +230,7 @@ export const FileListData$outboundSchema: z.ZodType<
230
230
  bytes: z.number(),
231
231
  fileName: z.string(),
232
232
  workspaceId: z.string(),
233
- created: z.date().default(() => new Date("2025-06-16T13:25:10.063Z"))
233
+ created: z.date().default(() => new Date("2025-06-17T09:09:49.841Z"))
234
234
  .transform(v => v.toISOString()),
235
235
  }).transform((v) => {
236
236
  return remap$(v, {
@@ -250,7 +250,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
250
250
  file_name: z.string(),
251
251
  workspace_id: z.string(),
252
252
  created: z.string().datetime({ offset: true }).default(
253
- "2025-06-16T13:25:10.063Z",
253
+ "2025-06-17T09:09:49.841Z",
254
254
  ).transform(v => new Date(v)),
255
255
  }).transform((v) => {
256
256
  return remap$(v, {
@@ -284,7 +284,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
284
284
  bytes: z.number(),
285
285
  fileName: z.string(),
286
286
  workspaceId: z.string(),
287
- created: z.date().default(() => new Date("2025-06-16T13:25:10.063Z"))
287
+ created: z.date().default(() => new Date("2025-06-17T09:09:49.841Z"))
288
288
  .transform(v => v.toISOString()),
289
289
  }).transform((v) => {
290
290
  return remap$(v, {
@@ -108,8 +108,8 @@ export type GetAllPromptsResponseFormat1 = {
108
108
  * 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.
109
109
  */
110
110
  export type GetAllPromptsResponseFormat =
111
- | GetAllPromptsResponseFormat2
112
- | GetAllPromptsResponseFormat1;
111
+ | GetAllPromptsResponseFormat1
112
+ | GetAllPromptsResponseFormat2;
113
113
 
114
114
  /**
115
115
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
@@ -218,8 +218,8 @@ export type GetAllPromptsModelParameters = {
218
218
  * 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.
219
219
  */
220
220
  responseFormat?:
221
- | GetAllPromptsResponseFormat2
222
221
  | GetAllPromptsResponseFormat1
222
+ | GetAllPromptsResponseFormat2
223
223
  | null
224
224
  | undefined;
225
225
  /**
@@ -912,14 +912,14 @@ export const GetAllPromptsResponseFormat$inboundSchema: z.ZodType<
912
912
  z.ZodTypeDef,
913
913
  unknown
914
914
  > = z.union([
915
- z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
916
915
  z.lazy(() => GetAllPromptsResponseFormat1$inboundSchema),
916
+ z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
917
917
  ]);
918
918
 
919
919
  /** @internal */
920
920
  export type GetAllPromptsResponseFormat$Outbound =
921
- | GetAllPromptsResponseFormat2$Outbound
922
- | GetAllPromptsResponseFormat1$Outbound;
921
+ | GetAllPromptsResponseFormat1$Outbound
922
+ | GetAllPromptsResponseFormat2$Outbound;
923
923
 
924
924
  /** @internal */
925
925
  export const GetAllPromptsResponseFormat$outboundSchema: z.ZodType<
@@ -927,8 +927,8 @@ export const GetAllPromptsResponseFormat$outboundSchema: z.ZodType<
927
927
  z.ZodTypeDef,
928
928
  GetAllPromptsResponseFormat
929
929
  > = z.union([
930
- z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
931
930
  z.lazy(() => GetAllPromptsResponseFormat1$outboundSchema),
931
+ z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
932
932
  ]);
933
933
 
934
934
  /**
@@ -1047,8 +1047,8 @@ export const GetAllPromptsModelParameters$inboundSchema: z.ZodType<
1047
1047
  style: z.string().optional(),
1048
1048
  responseFormat: z.nullable(
1049
1049
  z.union([
1050
- z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
1051
1050
  z.lazy(() => GetAllPromptsResponseFormat1$inboundSchema),
1051
+ z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
1052
1052
  ]),
1053
1053
  ).optional(),
1054
1054
  photoRealVersion: GetAllPromptsPhotoRealVersion$inboundSchema.optional(),
@@ -1076,8 +1076,8 @@ export type GetAllPromptsModelParameters$Outbound = {
1076
1076
  quality?: string | undefined;
1077
1077
  style?: string | undefined;
1078
1078
  responseFormat?:
1079
- | GetAllPromptsResponseFormat2$Outbound
1080
1079
  | GetAllPromptsResponseFormat1$Outbound
1080
+ | GetAllPromptsResponseFormat2$Outbound
1081
1081
  | null
1082
1082
  | undefined;
1083
1083
  photoRealVersion?: string | undefined;
@@ -1106,8 +1106,8 @@ export const GetAllPromptsModelParameters$outboundSchema: z.ZodType<
1106
1106
  style: z.string().optional(),
1107
1107
  responseFormat: z.nullable(
1108
1108
  z.union([
1109
- z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
1110
1109
  z.lazy(() => GetAllPromptsResponseFormat1$outboundSchema),
1110
+ z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
1111
1111
  ]),
1112
1112
  ).optional(),
1113
1113
  photoRealVersion: GetAllPromptsPhotoRealVersion$outboundSchema.optional(),