@orq-ai/node 3.6.15 → 3.6.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/bin/mcp-server.js +188 -188
  2. package/bin/mcp-server.js.map +35 -35
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +3 -3
  5. package/lib/config.js +3 -3
  6. package/lib/security.d.ts +2 -2
  7. package/lib/security.d.ts.map +1 -1
  8. package/mcp-server/mcp-server.js +1 -1
  9. package/mcp-server/server.js +1 -1
  10. package/models/components/deployments.d.ts +8 -8
  11. package/models/components/deployments.d.ts.map +1 -1
  12. package/models/components/deployments.js +8 -8
  13. package/models/components/deployments.js.map +1 -1
  14. package/models/operations/bulkcreatedatapoints.js +2 -2
  15. package/models/operations/createcontact.js +2 -2
  16. package/models/operations/createdataset.js +2 -2
  17. package/models/operations/createdatasetitem.js +2 -2
  18. package/models/operations/createdatasource.js +2 -2
  19. package/models/operations/createprompt.d.ts +12 -12
  20. package/models/operations/createprompt.d.ts.map +1 -1
  21. package/models/operations/createprompt.js +12 -12
  22. package/models/operations/createprompt.js.map +1 -1
  23. package/models/operations/deploymentcreatemetric.d.ts +8 -8
  24. package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
  25. package/models/operations/deploymentcreatemetric.js +8 -8
  26. package/models/operations/deploymentcreatemetric.js.map +1 -1
  27. package/models/operations/deploymentgetconfig.d.ts +14 -14
  28. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  29. package/models/operations/deploymentgetconfig.js +14 -14
  30. package/models/operations/deploymentgetconfig.js.map +1 -1
  31. package/models/operations/deploymentinvoke.d.ts +4 -4
  32. package/models/operations/deploymentinvoke.js +8 -8
  33. package/models/operations/deployments.d.ts +6 -6
  34. package/models/operations/deployments.d.ts.map +1 -1
  35. package/models/operations/deployments.js +6 -6
  36. package/models/operations/deployments.js.map +1 -1
  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 +6 -6
  45. package/models/operations/getallprompts.d.ts.map +1 -1
  46. package/models/operations/getallprompts.js +6 -6
  47. package/models/operations/getallprompts.js.map +1 -1
  48. package/models/operations/getoneprompt.d.ts +6 -6
  49. package/models/operations/getoneprompt.d.ts.map +1 -1
  50. package/models/operations/getoneprompt.js +6 -6
  51. package/models/operations/getoneprompt.js.map +1 -1
  52. package/models/operations/getpromptversion.d.ts +6 -6
  53. package/models/operations/getpromptversion.d.ts.map +1 -1
  54. package/models/operations/getpromptversion.js +6 -6
  55. package/models/operations/getpromptversion.js.map +1 -1
  56. package/models/operations/listdatasetdatapoints.js +2 -2
  57. package/models/operations/listdatasets.js +2 -2
  58. package/models/operations/listdatasources.js +2 -2
  59. package/models/operations/listpromptversions.d.ts +6 -6
  60. package/models/operations/listpromptversions.d.ts.map +1 -1
  61. package/models/operations/listpromptversions.js +6 -6
  62. package/models/operations/listpromptversions.js.map +1 -1
  63. package/models/operations/retrievedatapoint.js +2 -2
  64. package/models/operations/retrievedataset.js +2 -2
  65. package/models/operations/retrievedatasource.js +2 -2
  66. package/models/operations/updatedatapoint.js +2 -2
  67. package/models/operations/updatedataset.js +2 -2
  68. package/models/operations/updatedatasource.js +2 -2
  69. package/models/operations/updateprompt.d.ts +12 -12
  70. package/models/operations/updateprompt.d.ts.map +1 -1
  71. package/models/operations/updateprompt.js +12 -12
  72. package/models/operations/updateprompt.js.map +1 -1
  73. package/package.json +1 -1
  74. package/packages/orq-rc/jsr.json +1 -1
  75. package/packages/orq-rc/package-lock.json +2 -2
  76. package/packages/orq-rc/package.json +1 -1
  77. package/packages/orq-rc/src/lib/config.ts +3 -3
  78. package/packages/orq-rc/src/lib/security.ts +2 -2
  79. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  80. package/packages/orq-rc/src/mcp-server/server.ts +1 -1
  81. package/packages/orq-rc/src/models/components/deployments.ts +16 -16
  82. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  83. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  84. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +18 -18
  85. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  86. package/packages/orq-rc/src/models/operations/createeval.ts +121 -121
  87. package/packages/orq-rc/src/models/operations/createfeedback.ts +16 -16
  88. package/packages/orq-rc/src/models/operations/createprompt.ts +39 -39
  89. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +22 -18
  90. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +30 -30
  91. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +13 -13
  92. package/packages/orq-rc/src/models/operations/deployments.ts +14 -14
  93. package/packages/orq-rc/src/models/operations/deploymentstream.ts +26 -26
  94. package/packages/orq-rc/src/models/operations/evalsageappropriate.ts +4 -4
  95. package/packages/orq-rc/src/models/operations/evalsfactcheckingknowledgebase.ts +4 -4
  96. package/packages/orq-rc/src/models/operations/evalsgrammar.ts +4 -4
  97. package/packages/orq-rc/src/models/operations/evalslocalization.ts +4 -4
  98. package/packages/orq-rc/src/models/operations/evalspii.ts +4 -4
  99. package/packages/orq-rc/src/models/operations/evalsragascoherence.ts +4 -4
  100. package/packages/orq-rc/src/models/operations/evalsragasconciseness.ts +4 -4
  101. package/packages/orq-rc/src/models/operations/evalsragascontextprecision.ts +4 -4
  102. package/packages/orq-rc/src/models/operations/evalsragascorrectness.ts +4 -4
  103. package/packages/orq-rc/src/models/operations/evalsragasfaithfulness.ts +4 -4
  104. package/packages/orq-rc/src/models/operations/evalsragasharmfulness.ts +4 -4
  105. package/packages/orq-rc/src/models/operations/evalsragasmaliciousness.ts +4 -4
  106. package/packages/orq-rc/src/models/operations/evalsragasresponserelevancy.ts +4 -4
  107. package/packages/orq-rc/src/models/operations/evalssentimentclassification.ts +4 -4
  108. package/packages/orq-rc/src/models/operations/evalssummarization.ts +4 -4
  109. package/packages/orq-rc/src/models/operations/evalstoneofvoice.ts +4 -4
  110. package/packages/orq-rc/src/models/operations/evalstranslation.ts +4 -4
  111. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  112. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  113. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  114. package/packages/orq-rc/src/models/operations/getallprompts.ts +22 -22
  115. package/packages/orq-rc/src/models/operations/getevals.ts +339 -364
  116. package/packages/orq-rc/src/models/operations/getoneprompt.ts +22 -22
  117. package/packages/orq-rc/src/models/operations/getpromptversion.ts +22 -22
  118. package/packages/orq-rc/src/models/operations/invokeeval.ts +251 -223
  119. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  120. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +16 -12
  121. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  122. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  123. package/packages/orq-rc/src/models/operations/listpromptversions.ts +22 -22
  124. package/packages/orq-rc/src/models/operations/postv2modelslitellmimport.ts +18 -18
  125. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  126. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +10 -10
  127. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  128. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  129. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  130. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +21 -19
  131. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  132. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  133. package/packages/orq-rc/src/models/operations/updateeval.ts +139 -139
  134. package/packages/orq-rc/src/models/operations/updateprompt.ts +61 -106
  135. package/src/lib/config.ts +3 -3
  136. package/src/lib/security.ts +2 -2
  137. package/src/mcp-server/mcp-server.ts +1 -1
  138. package/src/mcp-server/server.ts +1 -1
  139. package/src/models/components/deployments.ts +16 -16
  140. package/src/models/operations/bulkcreatedatapoints.ts +2 -2
  141. package/src/models/operations/createcontact.ts +2 -2
  142. package/src/models/operations/createdataset.ts +2 -2
  143. package/src/models/operations/createdatasetitem.ts +2 -2
  144. package/src/models/operations/createdatasource.ts +2 -2
  145. package/src/models/operations/createprompt.ts +27 -27
  146. package/src/models/operations/deploymentcreatemetric.ts +22 -18
  147. package/src/models/operations/deploymentgetconfig.ts +30 -30
  148. package/src/models/operations/deploymentinvoke.ts +13 -13
  149. package/src/models/operations/deployments.ts +14 -14
  150. package/src/models/operations/deploymentstream.ts +26 -26
  151. package/src/models/operations/fileget.ts +2 -2
  152. package/src/models/operations/filelist.ts +2 -2
  153. package/src/models/operations/fileupload.ts +2 -2
  154. package/src/models/operations/getallprompts.ts +14 -14
  155. package/src/models/operations/getoneprompt.ts +14 -14
  156. package/src/models/operations/getpromptversion.ts +14 -14
  157. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  158. package/src/models/operations/listdatasets.ts +2 -2
  159. package/src/models/operations/listdatasources.ts +2 -2
  160. package/src/models/operations/listpromptversions.ts +14 -14
  161. package/src/models/operations/retrievedatapoint.ts +2 -2
  162. package/src/models/operations/retrievedataset.ts +2 -2
  163. package/src/models/operations/retrievedatasource.ts +2 -2
  164. package/src/models/operations/updatedatapoint.ts +2 -2
  165. package/src/models/operations/updatedataset.ts +2 -2
  166. package/src/models/operations/updatedatasource.ts +2 -2
  167. package/src/models/operations/updateprompt.ts +28 -28
@@ -2147,7 +2147,7 @@ export const ResponseBody$inboundSchema: z.ZodType<
2147
2147
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2148
2148
  .optional(),
2149
2149
  updated: z.string().datetime({ offset: true }).default(
2150
- "2025-06-12T09:34:17.054Z",
2150
+ "2025-06-17T14:04:15.852Z",
2151
2151
  ).transform(v => new Date(v)),
2152
2152
  }).transform((v) => {
2153
2153
  return remap$(v, {
@@ -2191,7 +2191,7 @@ export const ResponseBody$outboundSchema: z.ZodType<
2191
2191
  createdById: z.string().optional(),
2192
2192
  updatedById: z.string().optional(),
2193
2193
  created: z.date().transform(v => v.toISOString()).optional(),
2194
- updated: z.date().default(() => new Date("2025-06-12T09:34:17.054Z"))
2194
+ updated: z.date().default(() => new Date("2025-06-17T14:04:15.852Z"))
2195
2195
  .transform(v => v.toISOString()),
2196
2196
  }).transform((v) => {
2197
2197
  return remap$(v, {
@@ -177,7 +177,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
177
177
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
178
178
  .optional(),
179
179
  updated: z.string().datetime({ offset: true }).default(
180
- "2025-06-12T09:34:17.054Z",
180
+ "2025-06-17T14:04:15.852Z",
181
181
  ).transform(v => new Date(v)),
182
182
  }).transform((v) => {
183
183
  return remap$(v, {
@@ -214,7 +214,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
214
214
  tags: z.array(z.string()).optional(),
215
215
  metadata: z.record(z.any()).optional(),
216
216
  created: z.date().transform(v => v.toISOString()).optional(),
217
- updated: z.date().default(() => new Date("2025-06-12T09:34:17.054Z"))
217
+ updated: z.date().default(() => new Date("2025-06-17T14:04:15.852Z"))
218
218
  .transform(v => v.toISOString()),
219
219
  }).transform((v) => {
220
220
  return remap$(v, {
@@ -211,7 +211,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
211
211
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
212
212
  .optional(),
213
213
  updated: z.string().datetime({ offset: true }).default(
214
- "2025-06-12T09:34:17.054Z",
214
+ "2025-06-17T14:04:15.852Z",
215
215
  ).transform(v => new Date(v)),
216
216
  }).transform((v) => {
217
217
  return remap$(v, {
@@ -251,7 +251,7 @@ export const CreateDatasetResponseBody$outboundSchema: z.ZodType<
251
251
  updatedById: z.string().optional(),
252
252
  metadata: z.lazy(() => CreateDatasetMetadata$outboundSchema),
253
253
  created: z.date().transform(v => v.toISOString()).optional(),
254
- updated: z.date().default(() => new Date("2025-06-12T09:34:17.054Z"))
254
+ updated: z.date().default(() => new Date("2025-06-17T14:04:15.852Z"))
255
255
  .transform(v => v.toISOString()),
256
256
  }).transform((v) => {
257
257
  return remap$(v, {
@@ -2058,7 +2058,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
2058
2058
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2059
2059
  .optional(),
2060
2060
  updated: z.string().datetime({ offset: true }).default(
2061
- "2025-06-12T09:34:17.054Z",
2061
+ "2025-06-17T14:04:15.852Z",
2062
2062
  ).transform(v => new Date(v)),
2063
2063
  }).transform((v) => {
2064
2064
  return remap$(v, {
@@ -2102,7 +2102,7 @@ export const CreateDatasetItemResponseBody$outboundSchema: z.ZodType<
2102
2102
  createdById: z.string().optional(),
2103
2103
  updatedById: z.string().optional(),
2104
2104
  created: z.date().transform(v => v.toISOString()).optional(),
2105
- updated: z.date().default(() => new Date("2025-06-12T09:34:17.054Z"))
2105
+ updated: z.date().default(() => new Date("2025-06-17T14:04:15.852Z"))
2106
2106
  .transform(v => v.toISOString()),
2107
2107
  }).transform((v) => {
2108
2108
  return remap$(v, {
@@ -751,7 +751,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
751
751
  z.ZodTypeDef,
752
752
  unknown
753
753
  > = z.object({
754
- _id: z.string().default("01JXHQV57KY126FDXQ52FXA3TV"),
754
+ _id: z.string().default("01JXZ393735CZ3XTN2TXA59QV8"),
755
755
  display_name: z.string(),
756
756
  description: z.string().optional(),
757
757
  status: CreateDatasourceStatus$inboundSchema,
@@ -795,7 +795,7 @@ export const CreateDatasourceResponseBody$outboundSchema: z.ZodType<
795
795
  z.ZodTypeDef,
796
796
  CreateDatasourceResponseBody
797
797
  > = z.object({
798
- id: z.string().default("01JXHQV57KY126FDXQ52FXA3TV"),
798
+ id: z.string().default("01JXZ393735CZ3XTN2TXA59QV8"),
799
799
  displayName: z.string(),
800
800
  description: z.string().optional(),
801
801
  status: CreateDatasourceStatus$outboundSchema,
@@ -60,7 +60,7 @@ export type ResponseFormatType = ClosedEnum<typeof ResponseFormatType>;
60
60
 
61
61
  export type JsonSchema = {
62
62
  name: string;
63
- strict: boolean;
63
+ strict?: boolean | undefined;
64
64
  schema: { [k: string]: any };
65
65
  };
66
66
 
@@ -80,7 +80,7 @@ export type ResponseFormat1 = {
80
80
  *
81
81
  * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
82
82
  */
83
- export type ResponseFormat = ResponseFormat2 | ResponseFormat1;
83
+ export type ResponseFormat = ResponseFormat1 | ResponseFormat2;
84
84
 
85
85
  /**
86
86
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
@@ -182,7 +182,7 @@ export type ModelParameters = {
182
182
  *
183
183
  * 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.
184
184
  */
185
- responseFormat?: ResponseFormat2 | ResponseFormat1 | null | undefined;
185
+ responseFormat?: ResponseFormat1 | ResponseFormat2 | null | undefined;
186
186
  /**
187
187
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
188
188
  */
@@ -510,7 +510,7 @@ export type CreatePromptResponseFormatPromptsType = ClosedEnum<
510
510
 
511
511
  export type CreatePromptResponseFormatJsonSchema = {
512
512
  name: string;
513
- strict: boolean;
513
+ strict?: boolean | undefined;
514
514
  schema: { [k: string]: any };
515
515
  };
516
516
 
@@ -531,8 +531,8 @@ export type CreatePromptResponseFormat1 = {
531
531
  * 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.
532
532
  */
533
533
  export type CreatePromptResponseFormat =
534
- | CreatePromptResponseFormat2
535
- | CreatePromptResponseFormat1;
534
+ | CreatePromptResponseFormat1
535
+ | CreatePromptResponseFormat2;
536
536
 
537
537
  /**
538
538
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
@@ -641,8 +641,8 @@ export type CreatePromptModelParameters = {
641
641
  * 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.
642
642
  */
643
643
  responseFormat?:
644
- | CreatePromptResponseFormat2
645
644
  | CreatePromptResponseFormat1
645
+ | CreatePromptResponseFormat2
646
646
  | null
647
647
  | undefined;
648
648
  /**
@@ -1082,14 +1082,14 @@ export const JsonSchema$inboundSchema: z.ZodType<
1082
1082
  unknown
1083
1083
  > = z.object({
1084
1084
  name: z.string(),
1085
- strict: z.boolean(),
1085
+ strict: z.boolean().optional(),
1086
1086
  schema: z.record(z.any()),
1087
1087
  });
1088
1088
 
1089
1089
  /** @internal */
1090
1090
  export type JsonSchema$Outbound = {
1091
1091
  name: string;
1092
- strict: boolean;
1092
+ strict?: boolean | undefined;
1093
1093
  schema: { [k: string]: any };
1094
1094
  };
1095
1095
 
@@ -1100,7 +1100,7 @@ export const JsonSchema$outboundSchema: z.ZodType<
1100
1100
  JsonSchema
1101
1101
  > = z.object({
1102
1102
  name: z.string(),
1103
- strict: z.boolean(),
1103
+ strict: z.boolean().optional(),
1104
1104
  schema: z.record(z.any()),
1105
1105
  });
1106
1106
 
@@ -1200,14 +1200,14 @@ export const ResponseFormat$inboundSchema: z.ZodType<
1200
1200
  z.ZodTypeDef,
1201
1201
  unknown
1202
1202
  > = z.union([
1203
- z.lazy(() => ResponseFormat2$inboundSchema),
1204
1203
  z.lazy(() => ResponseFormat1$inboundSchema),
1204
+ z.lazy(() => ResponseFormat2$inboundSchema),
1205
1205
  ]);
1206
1206
 
1207
1207
  /** @internal */
1208
1208
  export type ResponseFormat$Outbound =
1209
- | ResponseFormat2$Outbound
1210
- | ResponseFormat1$Outbound;
1209
+ | ResponseFormat1$Outbound
1210
+ | ResponseFormat2$Outbound;
1211
1211
 
1212
1212
  /** @internal */
1213
1213
  export const ResponseFormat$outboundSchema: z.ZodType<
@@ -1215,8 +1215,8 @@ export const ResponseFormat$outboundSchema: z.ZodType<
1215
1215
  z.ZodTypeDef,
1216
1216
  ResponseFormat
1217
1217
  > = z.union([
1218
- z.lazy(() => ResponseFormat2$outboundSchema),
1219
1218
  z.lazy(() => ResponseFormat1$outboundSchema),
1219
+ z.lazy(() => ResponseFormat2$outboundSchema),
1220
1220
  ]);
1221
1221
 
1222
1222
  /**
@@ -1329,8 +1329,8 @@ export const ModelParameters$inboundSchema: z.ZodType<
1329
1329
  style: z.string().optional(),
1330
1330
  responseFormat: z.nullable(
1331
1331
  z.union([
1332
- z.lazy(() => ResponseFormat2$inboundSchema),
1333
1332
  z.lazy(() => ResponseFormat1$inboundSchema),
1333
+ z.lazy(() => ResponseFormat2$inboundSchema),
1334
1334
  ]),
1335
1335
  ).optional(),
1336
1336
  photoRealVersion: PhotoRealVersion$inboundSchema.optional(),
@@ -1358,8 +1358,8 @@ export type ModelParameters$Outbound = {
1358
1358
  quality?: string | undefined;
1359
1359
  style?: string | undefined;
1360
1360
  responseFormat?:
1361
- | ResponseFormat2$Outbound
1362
1361
  | ResponseFormat1$Outbound
1362
+ | ResponseFormat2$Outbound
1363
1363
  | null
1364
1364
  | undefined;
1365
1365
  photoRealVersion?: string | undefined;
@@ -1388,8 +1388,8 @@ export const ModelParameters$outboundSchema: z.ZodType<
1388
1388
  style: z.string().optional(),
1389
1389
  responseFormat: z.nullable(
1390
1390
  z.union([
1391
- z.lazy(() => ResponseFormat2$outboundSchema),
1392
1391
  z.lazy(() => ResponseFormat1$outboundSchema),
1392
+ z.lazy(() => ResponseFormat2$outboundSchema),
1393
1393
  ]),
1394
1394
  ).optional(),
1395
1395
  photoRealVersion: PhotoRealVersion$outboundSchema.optional(),
@@ -2614,14 +2614,14 @@ export const CreatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
2614
2614
  unknown
2615
2615
  > = z.object({
2616
2616
  name: z.string(),
2617
- strict: z.boolean(),
2617
+ strict: z.boolean().optional(),
2618
2618
  schema: z.record(z.any()),
2619
2619
  });
2620
2620
 
2621
2621
  /** @internal */
2622
2622
  export type CreatePromptResponseFormatJsonSchema$Outbound = {
2623
2623
  name: string;
2624
- strict: boolean;
2624
+ strict?: boolean | undefined;
2625
2625
  schema: { [k: string]: any };
2626
2626
  };
2627
2627
 
@@ -2632,7 +2632,7 @@ export const CreatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
2632
2632
  CreatePromptResponseFormatJsonSchema
2633
2633
  > = z.object({
2634
2634
  name: z.string(),
2635
- strict: z.boolean(),
2635
+ strict: z.boolean().optional(),
2636
2636
  schema: z.record(z.any()),
2637
2637
  });
2638
2638
 
@@ -2745,14 +2745,14 @@ export const CreatePromptResponseFormat$inboundSchema: z.ZodType<
2745
2745
  z.ZodTypeDef,
2746
2746
  unknown
2747
2747
  > = z.union([
2748
- z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
2749
2748
  z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
2749
+ z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
2750
2750
  ]);
2751
2751
 
2752
2752
  /** @internal */
2753
2753
  export type CreatePromptResponseFormat$Outbound =
2754
- | CreatePromptResponseFormat2$Outbound
2755
- | CreatePromptResponseFormat1$Outbound;
2754
+ | CreatePromptResponseFormat1$Outbound
2755
+ | CreatePromptResponseFormat2$Outbound;
2756
2756
 
2757
2757
  /** @internal */
2758
2758
  export const CreatePromptResponseFormat$outboundSchema: z.ZodType<
@@ -2760,8 +2760,8 @@ export const CreatePromptResponseFormat$outboundSchema: z.ZodType<
2760
2760
  z.ZodTypeDef,
2761
2761
  CreatePromptResponseFormat
2762
2762
  > = z.union([
2763
- z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
2764
2763
  z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
2764
+ z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
2765
2765
  ]);
2766
2766
 
2767
2767
  /**
@@ -2878,8 +2878,8 @@ export const CreatePromptModelParameters$inboundSchema: z.ZodType<
2878
2878
  style: z.string().optional(),
2879
2879
  responseFormat: z.nullable(
2880
2880
  z.union([
2881
- z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
2882
2881
  z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
2882
+ z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
2883
2883
  ]),
2884
2884
  ).optional(),
2885
2885
  photoRealVersion: CreatePromptPhotoRealVersion$inboundSchema.optional(),
@@ -2907,8 +2907,8 @@ export type CreatePromptModelParameters$Outbound = {
2907
2907
  quality?: string | undefined;
2908
2908
  style?: string | undefined;
2909
2909
  responseFormat?:
2910
- | CreatePromptResponseFormat2$Outbound
2911
2910
  | CreatePromptResponseFormat1$Outbound
2911
+ | CreatePromptResponseFormat2$Outbound
2912
2912
  | null
2913
2913
  | undefined;
2914
2914
  photoRealVersion?: string | undefined;
@@ -2937,8 +2937,8 @@ export const CreatePromptModelParameters$outboundSchema: z.ZodType<
2937
2937
  style: z.string().optional(),
2938
2938
  responseFormat: z.nullable(
2939
2939
  z.union([
2940
- z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
2941
2940
  z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
2941
+ z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
2942
2942
  ]),
2943
2943
  ).optional(),
2944
2944
  photoRealVersion: CreatePromptPhotoRealVersion$outboundSchema.optional(),
@@ -480,10 +480,10 @@ export type DeploymentCreateMetricMessagesDeveloperMessage = {
480
480
  };
481
481
 
482
482
  export type DeploymentCreateMetricMessages =
483
+ | DeploymentCreateMetricMessagesToolMessage
483
484
  | DeploymentCreateMetricMessagesDeveloperMessage
484
485
  | DeploymentCreateMetricMessagesSystemMessage
485
486
  | DeploymentCreateMetricMessagesUserMessage
486
- | DeploymentCreateMetricMessagesToolMessage
487
487
  | DeploymentCreateMetricMessagesAssistantMessage;
488
488
 
489
489
  /**
@@ -929,10 +929,10 @@ export type ChoicesDeveloperMessage = {
929
929
  };
930
930
 
931
931
  export type Choices =
932
+ | ChoicesToolMessage
932
933
  | ChoicesDeveloperMessage
933
934
  | ChoicesSystemMessage
934
935
  | ChoicesUserMessage
935
- | ChoicesToolMessage
936
936
  | ChoicesAssistantMessage;
937
937
 
938
938
  /**
@@ -963,10 +963,10 @@ export type DeploymentCreateMetricRequestBody = {
963
963
  */
964
964
  messages?:
965
965
  | Array<
966
+ | DeploymentCreateMetricMessagesToolMessage
966
967
  | DeploymentCreateMetricMessagesDeveloperMessage
967
968
  | DeploymentCreateMetricMessagesSystemMessage
968
969
  | DeploymentCreateMetricMessagesUserMessage
969
- | DeploymentCreateMetricMessagesToolMessage
970
970
  | DeploymentCreateMetricMessagesAssistantMessage
971
971
  >
972
972
  | undefined;
@@ -975,10 +975,10 @@ export type DeploymentCreateMetricRequestBody = {
975
975
  */
976
976
  choices?:
977
977
  | Array<
978
+ | ChoicesToolMessage
978
979
  | ChoicesDeveloperMessage
979
980
  | ChoicesSystemMessage
980
981
  | ChoicesUserMessage
981
- | ChoicesToolMessage
982
982
  | ChoicesAssistantMessage
983
983
  >
984
984
  | undefined;
@@ -3065,19 +3065,19 @@ export const DeploymentCreateMetricMessages$inboundSchema: z.ZodType<
3065
3065
  z.ZodTypeDef,
3066
3066
  unknown
3067
3067
  > = z.union([
3068
+ z.lazy(() => DeploymentCreateMetricMessagesToolMessage$inboundSchema),
3068
3069
  z.lazy(() => DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema),
3069
3070
  z.lazy(() => DeploymentCreateMetricMessagesSystemMessage$inboundSchema),
3070
3071
  z.lazy(() => DeploymentCreateMetricMessagesUserMessage$inboundSchema),
3071
- z.lazy(() => DeploymentCreateMetricMessagesToolMessage$inboundSchema),
3072
3072
  z.lazy(() => DeploymentCreateMetricMessagesAssistantMessage$inboundSchema),
3073
3073
  ]);
3074
3074
 
3075
3075
  /** @internal */
3076
3076
  export type DeploymentCreateMetricMessages$Outbound =
3077
+ | DeploymentCreateMetricMessagesToolMessage$Outbound
3077
3078
  | DeploymentCreateMetricMessagesDeveloperMessage$Outbound
3078
3079
  | DeploymentCreateMetricMessagesSystemMessage$Outbound
3079
3080
  | DeploymentCreateMetricMessagesUserMessage$Outbound
3080
- | DeploymentCreateMetricMessagesToolMessage$Outbound
3081
3081
  | DeploymentCreateMetricMessagesAssistantMessage$Outbound;
3082
3082
 
3083
3083
  /** @internal */
@@ -3086,10 +3086,10 @@ export const DeploymentCreateMetricMessages$outboundSchema: z.ZodType<
3086
3086
  z.ZodTypeDef,
3087
3087
  DeploymentCreateMetricMessages
3088
3088
  > = z.union([
3089
+ z.lazy(() => DeploymentCreateMetricMessagesToolMessage$outboundSchema),
3089
3090
  z.lazy(() => DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema),
3090
3091
  z.lazy(() => DeploymentCreateMetricMessagesSystemMessage$outboundSchema),
3091
3092
  z.lazy(() => DeploymentCreateMetricMessagesUserMessage$outboundSchema),
3092
- z.lazy(() => DeploymentCreateMetricMessagesToolMessage$outboundSchema),
3093
3093
  z.lazy(() => DeploymentCreateMetricMessagesAssistantMessage$outboundSchema),
3094
3094
  ]);
3095
3095
 
@@ -5076,19 +5076,19 @@ export function choicesDeveloperMessageFromJSON(
5076
5076
  /** @internal */
5077
5077
  export const Choices$inboundSchema: z.ZodType<Choices, z.ZodTypeDef, unknown> =
5078
5078
  z.union([
5079
+ z.lazy(() => ChoicesToolMessage$inboundSchema),
5079
5080
  z.lazy(() => ChoicesDeveloperMessage$inboundSchema),
5080
5081
  z.lazy(() => ChoicesSystemMessage$inboundSchema),
5081
5082
  z.lazy(() => ChoicesUserMessage$inboundSchema),
5082
- z.lazy(() => ChoicesToolMessage$inboundSchema),
5083
5083
  z.lazy(() => ChoicesAssistantMessage$inboundSchema),
5084
5084
  ]);
5085
5085
 
5086
5086
  /** @internal */
5087
5087
  export type Choices$Outbound =
5088
+ | ChoicesToolMessage$Outbound
5088
5089
  | ChoicesDeveloperMessage$Outbound
5089
5090
  | ChoicesSystemMessage$Outbound
5090
5091
  | ChoicesUserMessage$Outbound
5091
- | ChoicesToolMessage$Outbound
5092
5092
  | ChoicesAssistantMessage$Outbound;
5093
5093
 
5094
5094
  /** @internal */
@@ -5097,10 +5097,10 @@ export const Choices$outboundSchema: z.ZodType<
5097
5097
  z.ZodTypeDef,
5098
5098
  Choices
5099
5099
  > = z.union([
5100
+ z.lazy(() => ChoicesToolMessage$outboundSchema),
5100
5101
  z.lazy(() => ChoicesDeveloperMessage$outboundSchema),
5101
5102
  z.lazy(() => ChoicesSystemMessage$outboundSchema),
5102
5103
  z.lazy(() => ChoicesUserMessage$outboundSchema),
5103
- z.lazy(() => ChoicesToolMessage$outboundSchema),
5104
5104
  z.lazy(() => ChoicesAssistantMessage$outboundSchema),
5105
5105
  ]);
5106
5106
 
@@ -5192,12 +5192,14 @@ export const DeploymentCreateMetricRequestBody$inboundSchema: z.ZodType<
5192
5192
  performance: z.lazy(() => Performance$inboundSchema).optional(),
5193
5193
  messages: z.array(
5194
5194
  z.union([
5195
+ z.lazy(() => DeploymentCreateMetricMessagesToolMessage$inboundSchema),
5195
5196
  z.lazy(() =>
5196
5197
  DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema
5197
5198
  ),
5198
- z.lazy(() => DeploymentCreateMetricMessagesSystemMessage$inboundSchema),
5199
+ z.lazy(() =>
5200
+ DeploymentCreateMetricMessagesSystemMessage$inboundSchema
5201
+ ),
5199
5202
  z.lazy(() => DeploymentCreateMetricMessagesUserMessage$inboundSchema),
5200
- z.lazy(() => DeploymentCreateMetricMessagesToolMessage$inboundSchema),
5201
5203
  z.lazy(() =>
5202
5204
  DeploymentCreateMetricMessagesAssistantMessage$inboundSchema
5203
5205
  ),
@@ -5205,10 +5207,10 @@ export const DeploymentCreateMetricRequestBody$inboundSchema: z.ZodType<
5205
5207
  ).optional(),
5206
5208
  choices: z.array(
5207
5209
  z.union([
5210
+ z.lazy(() => ChoicesToolMessage$inboundSchema),
5208
5211
  z.lazy(() => ChoicesDeveloperMessage$inboundSchema),
5209
5212
  z.lazy(() => ChoicesSystemMessage$inboundSchema),
5210
5213
  z.lazy(() => ChoicesUserMessage$inboundSchema),
5211
- z.lazy(() => ChoicesToolMessage$inboundSchema),
5212
5214
  z.lazy(() => ChoicesAssistantMessage$inboundSchema),
5213
5215
  ]),
5214
5216
  ).optional(),
@@ -5222,19 +5224,19 @@ export type DeploymentCreateMetricRequestBody$Outbound = {
5222
5224
  performance?: Performance$Outbound | undefined;
5223
5225
  messages?:
5224
5226
  | Array<
5227
+ | DeploymentCreateMetricMessagesToolMessage$Outbound
5225
5228
  | DeploymentCreateMetricMessagesDeveloperMessage$Outbound
5226
5229
  | DeploymentCreateMetricMessagesSystemMessage$Outbound
5227
5230
  | DeploymentCreateMetricMessagesUserMessage$Outbound
5228
- | DeploymentCreateMetricMessagesToolMessage$Outbound
5229
5231
  | DeploymentCreateMetricMessagesAssistantMessage$Outbound
5230
5232
  >
5231
5233
  | undefined;
5232
5234
  choices?:
5233
5235
  | Array<
5236
+ | ChoicesToolMessage$Outbound
5234
5237
  | ChoicesDeveloperMessage$Outbound
5235
5238
  | ChoicesSystemMessage$Outbound
5236
5239
  | ChoicesUserMessage$Outbound
5237
- | ChoicesToolMessage$Outbound
5238
5240
  | ChoicesAssistantMessage$Outbound
5239
5241
  >
5240
5242
  | undefined;
@@ -5252,12 +5254,14 @@ export const DeploymentCreateMetricRequestBody$outboundSchema: z.ZodType<
5252
5254
  performance: z.lazy(() => Performance$outboundSchema).optional(),
5253
5255
  messages: z.array(
5254
5256
  z.union([
5257
+ z.lazy(() => DeploymentCreateMetricMessagesToolMessage$outboundSchema),
5255
5258
  z.lazy(() =>
5256
5259
  DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema
5257
5260
  ),
5258
- z.lazy(() => DeploymentCreateMetricMessagesSystemMessage$outboundSchema),
5261
+ z.lazy(() =>
5262
+ DeploymentCreateMetricMessagesSystemMessage$outboundSchema
5263
+ ),
5259
5264
  z.lazy(() => DeploymentCreateMetricMessagesUserMessage$outboundSchema),
5260
- z.lazy(() => DeploymentCreateMetricMessagesToolMessage$outboundSchema),
5261
5265
  z.lazy(() =>
5262
5266
  DeploymentCreateMetricMessagesAssistantMessage$outboundSchema
5263
5267
  ),
@@ -5265,10 +5269,10 @@ export const DeploymentCreateMetricRequestBody$outboundSchema: z.ZodType<
5265
5269
  ).optional(),
5266
5270
  choices: z.array(
5267
5271
  z.union([
5272
+ z.lazy(() => ChoicesToolMessage$outboundSchema),
5268
5273
  z.lazy(() => ChoicesDeveloperMessage$outboundSchema),
5269
5274
  z.lazy(() => ChoicesSystemMessage$outboundSchema),
5270
5275
  z.lazy(() => ChoicesUserMessage$outboundSchema),
5271
- z.lazy(() => ChoicesToolMessage$outboundSchema),
5272
5276
  z.lazy(() => ChoicesAssistantMessage$outboundSchema),
5273
5277
  ]),
5274
5278
  ).optional(),