@orq-ai/node 3.6.16 → 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
@@ -253,7 +253,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
253
253
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
254
254
  .optional(),
255
255
  updated: z.string().datetime({ offset: true }).default(
256
- "2025-06-12T09:58:41.410Z",
256
+ "2025-06-17T14:04:15.852Z",
257
257
  ).transform(v => new Date(v)),
258
258
  }).transform((v) => {
259
259
  return remap$(v, {
@@ -293,7 +293,7 @@ export const ListDatasetsData$outboundSchema: z.ZodType<
293
293
  updatedById: z.string().optional(),
294
294
  metadata: z.lazy(() => ListDatasetsMetadata$outboundSchema),
295
295
  created: z.date().transform(v => v.toISOString()).optional(),
296
- updated: z.date().default(() => new Date("2025-06-12T09:58:41.410Z"))
296
+ updated: z.date().default(() => new Date("2025-06-17T14:04:15.852Z"))
297
297
  .transform(v => v.toISOString()),
298
298
  }).transform((v) => {
299
299
  return remap$(v, {
@@ -278,7 +278,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
278
278
  z.ZodTypeDef,
279
279
  unknown
280
280
  > = z.object({
281
- _id: z.string().default("01JXHS7VE9KJX4X0E3DNM5GTNK"),
281
+ _id: z.string().default("01JXZ39371E6R8WT4BH2QYN1MY"),
282
282
  display_name: z.string(),
283
283
  description: z.string().optional(),
284
284
  status: ListDatasourcesStatus$inboundSchema,
@@ -322,7 +322,7 @@ export const ListDatasourcesData$outboundSchema: z.ZodType<
322
322
  z.ZodTypeDef,
323
323
  ListDatasourcesData
324
324
  > = z.object({
325
- id: z.string().default("01JXHS7VE9KJX4X0E3DNM5GTNK"),
325
+ id: z.string().default("01JXZ39371E6R8WT4BH2QYN1MY"),
326
326
  displayName: z.string(),
327
327
  description: z.string().optional(),
328
328
  status: ListDatasourcesStatus$outboundSchema,
@@ -89,7 +89,7 @@ export type ListPromptVersionsResponseFormatType = ClosedEnum<
89
89
 
90
90
  export type ListPromptVersionsResponseFormatJsonSchema = {
91
91
  name: string;
92
- strict: boolean;
92
+ strict?: boolean | undefined;
93
93
  schema: { [k: string]: any };
94
94
  };
95
95
 
@@ -110,8 +110,8 @@ export type ListPromptVersionsResponseFormat1 = {
110
110
  * 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.
111
111
  */
112
112
  export type ListPromptVersionsResponseFormat =
113
- | ListPromptVersionsResponseFormat2
114
- | ListPromptVersionsResponseFormat1;
113
+ | ListPromptVersionsResponseFormat1
114
+ | ListPromptVersionsResponseFormat2;
115
115
 
116
116
  /**
117
117
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
@@ -220,8 +220,8 @@ export type ListPromptVersionsModelParameters = {
220
220
  * 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.
221
221
  */
222
222
  responseFormat?:
223
- | ListPromptVersionsResponseFormat2
224
223
  | ListPromptVersionsResponseFormat1
224
+ | ListPromptVersionsResponseFormat2
225
225
  | null
226
226
  | undefined;
227
227
  /**
@@ -763,14 +763,14 @@ export const ListPromptVersionsResponseFormatJsonSchema$inboundSchema:
763
763
  z.ZodType<ListPromptVersionsResponseFormatJsonSchema, z.ZodTypeDef, unknown> =
764
764
  z.object({
765
765
  name: z.string(),
766
- strict: z.boolean(),
766
+ strict: z.boolean().optional(),
767
767
  schema: z.record(z.any()),
768
768
  });
769
769
 
770
770
  /** @internal */
771
771
  export type ListPromptVersionsResponseFormatJsonSchema$Outbound = {
772
772
  name: string;
773
- strict: boolean;
773
+ strict?: boolean | undefined;
774
774
  schema: { [k: string]: any };
775
775
  };
776
776
 
@@ -782,7 +782,7 @@ export const ListPromptVersionsResponseFormatJsonSchema$outboundSchema:
782
782
  ListPromptVersionsResponseFormatJsonSchema
783
783
  > = z.object({
784
784
  name: z.string(),
785
- strict: z.boolean(),
785
+ strict: z.boolean().optional(),
786
786
  schema: z.record(z.any()),
787
787
  });
788
788
 
@@ -906,14 +906,14 @@ export const ListPromptVersionsResponseFormat$inboundSchema: z.ZodType<
906
906
  z.ZodTypeDef,
907
907
  unknown
908
908
  > = z.union([
909
- z.lazy(() => ListPromptVersionsResponseFormat2$inboundSchema),
910
909
  z.lazy(() => ListPromptVersionsResponseFormat1$inboundSchema),
910
+ z.lazy(() => ListPromptVersionsResponseFormat2$inboundSchema),
911
911
  ]);
912
912
 
913
913
  /** @internal */
914
914
  export type ListPromptVersionsResponseFormat$Outbound =
915
- | ListPromptVersionsResponseFormat2$Outbound
916
- | ListPromptVersionsResponseFormat1$Outbound;
915
+ | ListPromptVersionsResponseFormat1$Outbound
916
+ | ListPromptVersionsResponseFormat2$Outbound;
917
917
 
918
918
  /** @internal */
919
919
  export const ListPromptVersionsResponseFormat$outboundSchema: z.ZodType<
@@ -921,8 +921,8 @@ export const ListPromptVersionsResponseFormat$outboundSchema: z.ZodType<
921
921
  z.ZodTypeDef,
922
922
  ListPromptVersionsResponseFormat
923
923
  > = z.union([
924
- z.lazy(() => ListPromptVersionsResponseFormat2$outboundSchema),
925
924
  z.lazy(() => ListPromptVersionsResponseFormat1$outboundSchema),
925
+ z.lazy(() => ListPromptVersionsResponseFormat2$outboundSchema),
926
926
  ]);
927
927
 
928
928
  /**
@@ -1043,8 +1043,8 @@ export const ListPromptVersionsModelParameters$inboundSchema: z.ZodType<
1043
1043
  style: z.string().optional(),
1044
1044
  responseFormat: z.nullable(
1045
1045
  z.union([
1046
- z.lazy(() => ListPromptVersionsResponseFormat2$inboundSchema),
1047
1046
  z.lazy(() => ListPromptVersionsResponseFormat1$inboundSchema),
1047
+ z.lazy(() => ListPromptVersionsResponseFormat2$inboundSchema),
1048
1048
  ]),
1049
1049
  ).optional(),
1050
1050
  photoRealVersion: ListPromptVersionsPhotoRealVersion$inboundSchema.optional(),
@@ -1072,8 +1072,8 @@ export type ListPromptVersionsModelParameters$Outbound = {
1072
1072
  quality?: string | undefined;
1073
1073
  style?: string | undefined;
1074
1074
  responseFormat?:
1075
- | ListPromptVersionsResponseFormat2$Outbound
1076
1075
  | ListPromptVersionsResponseFormat1$Outbound
1076
+ | ListPromptVersionsResponseFormat2$Outbound
1077
1077
  | null
1078
1078
  | undefined;
1079
1079
  photoRealVersion?: string | undefined;
@@ -1102,8 +1102,8 @@ export const ListPromptVersionsModelParameters$outboundSchema: z.ZodType<
1102
1102
  style: z.string().optional(),
1103
1103
  responseFormat: z.nullable(
1104
1104
  z.union([
1105
- z.lazy(() => ListPromptVersionsResponseFormat2$outboundSchema),
1106
1105
  z.lazy(() => ListPromptVersionsResponseFormat1$outboundSchema),
1106
+ z.lazy(() => ListPromptVersionsResponseFormat2$outboundSchema),
1107
1107
  ]),
1108
1108
  ).optional(),
1109
1109
  photoRealVersion: ListPromptVersionsPhotoRealVersion$outboundSchema
@@ -1036,7 +1036,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
1036
1036
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
1037
1037
  .optional(),
1038
1038
  updated: z.string().datetime({ offset: true }).default(
1039
- "2025-06-12T09:58:41.410Z",
1039
+ "2025-06-17T14:04:15.852Z",
1040
1040
  ).transform(v => new Date(v)),
1041
1041
  }).transform((v) => {
1042
1042
  return remap$(v, {
@@ -1079,7 +1079,7 @@ export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
1079
1079
  createdById: z.string().optional(),
1080
1080
  updatedById: z.string().optional(),
1081
1081
  created: z.date().transform(v => v.toISOString()).optional(),
1082
- updated: z.date().default(() => new Date("2025-06-12T09:58:41.410Z"))
1082
+ updated: z.date().default(() => new Date("2025-06-17T14:04:15.852Z"))
1083
1083
  .transform(v => v.toISOString()),
1084
1084
  }).transform((v) => {
1085
1085
  return remap$(v, {
@@ -201,7 +201,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
201
201
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
202
202
  .optional(),
203
203
  updated: z.string().datetime({ offset: true }).default(
204
- "2025-06-12T09:58:41.410Z",
204
+ "2025-06-17T14:04:15.852Z",
205
205
  ).transform(v => new Date(v)),
206
206
  }).transform((v) => {
207
207
  return remap$(v, {
@@ -241,7 +241,7 @@ export const RetrieveDatasetResponseBody$outboundSchema: z.ZodType<
241
241
  updatedById: z.string().optional(),
242
242
  metadata: z.lazy(() => RetrieveDatasetMetadata$outboundSchema),
243
243
  created: z.date().transform(v => v.toISOString()).optional(),
244
- updated: z.date().default(() => new Date("2025-06-12T09:58:41.410Z"))
244
+ updated: z.date().default(() => new Date("2025-06-17T14:04:15.852Z"))
245
245
  .transform(v => v.toISOString()),
246
246
  }).transform((v) => {
247
247
  return remap$(v, {
@@ -172,7 +172,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
172
172
  z.ZodTypeDef,
173
173
  unknown
174
174
  > = z.object({
175
- _id: z.string().default("01JXHS7VEAFHT71FNB8145Q8PT"),
175
+ _id: z.string().default("01JXZ39372T3AMW7JKHKQH383S"),
176
176
  display_name: z.string(),
177
177
  description: z.string().optional(),
178
178
  status: RetrieveDatasourceStatus$inboundSchema,
@@ -216,7 +216,7 @@ export const RetrieveDatasourceResponseBody$outboundSchema: z.ZodType<
216
216
  z.ZodTypeDef,
217
217
  RetrieveDatasourceResponseBody
218
218
  > = z.object({
219
- id: z.string().default("01JXHS7VEAFHT71FNB8145Q8PT"),
219
+ id: z.string().default("01JXZ39372T3AMW7JKHKQH383S"),
220
220
  displayName: z.string(),
221
221
  description: z.string().optional(),
222
222
  status: RetrieveDatasourceStatus$outboundSchema,
@@ -2048,7 +2048,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
2048
2048
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2049
2049
  .optional(),
2050
2050
  updated: z.string().datetime({ offset: true }).default(
2051
- "2025-06-12T09:58:41.410Z",
2051
+ "2025-06-17T14:04:15.852Z",
2052
2052
  ).transform(v => new Date(v)),
2053
2053
  }).transform((v) => {
2054
2054
  return remap$(v, {
@@ -2092,7 +2092,7 @@ export const UpdateDatapointResponseBody$outboundSchema: z.ZodType<
2092
2092
  createdById: z.string().optional(),
2093
2093
  updatedById: z.string().optional(),
2094
2094
  created: z.date().transform(v => v.toISOString()).optional(),
2095
- updated: z.date().default(() => new Date("2025-06-12T09:58:41.410Z"))
2095
+ updated: z.date().default(() => new Date("2025-06-17T14:04:15.852Z"))
2096
2096
  .transform(v => v.toISOString()),
2097
2097
  }).transform((v) => {
2098
2098
  return remap$(v, {
@@ -302,7 +302,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
302
302
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
303
303
  .optional(),
304
304
  updated: z.string().datetime({ offset: true }).default(
305
- "2025-06-12T09:58:41.410Z",
305
+ "2025-06-17T14:04:15.852Z",
306
306
  ).transform(v => new Date(v)),
307
307
  }).transform((v) => {
308
308
  return remap$(v, {
@@ -347,7 +347,7 @@ export const UpdateDatasetResponseBody$outboundSchema: z.ZodType<
347
347
  parentId: z.string().optional(),
348
348
  version: z.string().optional(),
349
349
  created: z.date().transform(v => v.toISOString()).optional(),
350
- updated: z.date().default(() => new Date("2025-06-12T09:58:41.410Z"))
350
+ updated: z.date().default(() => new Date("2025-06-17T14:04:15.852Z"))
351
351
  .transform(v => v.toISOString()),
352
352
  }).transform((v) => {
353
353
  return remap$(v, {
@@ -244,7 +244,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
244
244
  z.ZodTypeDef,
245
245
  unknown
246
246
  > = z.object({
247
- _id: z.string().default("01JXHS7VECG45P00YRBBTC4WBA"),
247
+ _id: z.string().default("01JXZ39374J4QQ59SHB61VXKWK"),
248
248
  display_name: z.string(),
249
249
  description: z.string().optional(),
250
250
  status: UpdateDatasourceStatus$inboundSchema,
@@ -288,7 +288,7 @@ export const UpdateDatasourceResponseBody$outboundSchema: z.ZodType<
288
288
  z.ZodTypeDef,
289
289
  UpdateDatasourceResponseBody
290
290
  > = z.object({
291
- id: z.string().default("01JXHS7VECG45P00YRBBTC4WBA"),
291
+ id: z.string().default("01JXZ39374J4QQ59SHB61VXKWK"),
292
292
  displayName: z.string(),
293
293
  description: z.string().optional(),
294
294
  status: UpdateDatasourceStatus$outboundSchema,
@@ -62,7 +62,7 @@ export type UpdatePromptResponseFormatType = ClosedEnum<
62
62
 
63
63
  export type ResponseFormatJsonSchema = {
64
64
  name: string;
65
- strict: boolean;
65
+ strict?: boolean | undefined;
66
66
  schema: { [k: string]: any };
67
67
  };
68
68
 
@@ -83,8 +83,8 @@ export type UpdatePromptResponseFormat1 = {
83
83
  * 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.
84
84
  */
85
85
  export type UpdatePromptResponseFormat =
86
- | UpdatePromptResponseFormat2
87
- | UpdatePromptResponseFormat1;
86
+ | UpdatePromptResponseFormat1
87
+ | UpdatePromptResponseFormat2;
88
88
 
89
89
  /**
90
90
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
@@ -193,8 +193,8 @@ export type UpdatePromptModelParameters = {
193
193
  * 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.
194
194
  */
195
195
  responseFormat?:
196
- | UpdatePromptResponseFormat2
197
196
  | UpdatePromptResponseFormat1
197
+ | UpdatePromptResponseFormat2
198
198
  | null
199
199
  | undefined;
200
200
  /**
@@ -540,7 +540,7 @@ export type UpdatePromptResponseFormatPromptsResponseType = ClosedEnum<
540
540
 
541
541
  export type UpdatePromptResponseFormatJsonSchema = {
542
542
  name: string;
543
- strict: boolean;
543
+ strict?: boolean | undefined;
544
544
  schema: { [k: string]: any };
545
545
  };
546
546
 
@@ -561,8 +561,8 @@ export type UpdatePromptResponseFormatPrompts1 = {
561
561
  * 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.
562
562
  */
563
563
  export type UpdatePromptPromptsResponseFormat =
564
- | UpdatePromptResponseFormatPrompts2
565
- | UpdatePromptResponseFormatPrompts1;
564
+ | UpdatePromptResponseFormatPrompts1
565
+ | UpdatePromptResponseFormatPrompts2;
566
566
 
567
567
  /**
568
568
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
@@ -671,8 +671,8 @@ export type UpdatePromptPromptsModelParameters = {
671
671
  * 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.
672
672
  */
673
673
  responseFormat?:
674
- | UpdatePromptResponseFormatPrompts2
675
674
  | UpdatePromptResponseFormatPrompts1
675
+ | UpdatePromptResponseFormatPrompts2
676
676
  | null
677
677
  | undefined;
678
678
  /**
@@ -1127,14 +1127,14 @@ export const ResponseFormatJsonSchema$inboundSchema: z.ZodType<
1127
1127
  unknown
1128
1128
  > = z.object({
1129
1129
  name: z.string(),
1130
- strict: z.boolean(),
1130
+ strict: z.boolean().optional(),
1131
1131
  schema: z.record(z.any()),
1132
1132
  });
1133
1133
 
1134
1134
  /** @internal */
1135
1135
  export type ResponseFormatJsonSchema$Outbound = {
1136
1136
  name: string;
1137
- strict: boolean;
1137
+ strict?: boolean | undefined;
1138
1138
  schema: { [k: string]: any };
1139
1139
  };
1140
1140
 
@@ -1145,7 +1145,7 @@ export const ResponseFormatJsonSchema$outboundSchema: z.ZodType<
1145
1145
  ResponseFormatJsonSchema
1146
1146
  > = z.object({
1147
1147
  name: z.string(),
1148
- strict: z.boolean(),
1148
+ strict: z.boolean().optional(),
1149
1149
  schema: z.record(z.any()),
1150
1150
  });
1151
1151
 
@@ -1253,14 +1253,14 @@ export const UpdatePromptResponseFormat$inboundSchema: z.ZodType<
1253
1253
  z.ZodTypeDef,
1254
1254
  unknown
1255
1255
  > = z.union([
1256
- z.lazy(() => UpdatePromptResponseFormat2$inboundSchema),
1257
1256
  z.lazy(() => UpdatePromptResponseFormat1$inboundSchema),
1257
+ z.lazy(() => UpdatePromptResponseFormat2$inboundSchema),
1258
1258
  ]);
1259
1259
 
1260
1260
  /** @internal */
1261
1261
  export type UpdatePromptResponseFormat$Outbound =
1262
- | UpdatePromptResponseFormat2$Outbound
1263
- | UpdatePromptResponseFormat1$Outbound;
1262
+ | UpdatePromptResponseFormat1$Outbound
1263
+ | UpdatePromptResponseFormat2$Outbound;
1264
1264
 
1265
1265
  /** @internal */
1266
1266
  export const UpdatePromptResponseFormat$outboundSchema: z.ZodType<
@@ -1268,8 +1268,8 @@ export const UpdatePromptResponseFormat$outboundSchema: z.ZodType<
1268
1268
  z.ZodTypeDef,
1269
1269
  UpdatePromptResponseFormat
1270
1270
  > = z.union([
1271
- z.lazy(() => UpdatePromptResponseFormat2$outboundSchema),
1272
1271
  z.lazy(() => UpdatePromptResponseFormat1$outboundSchema),
1272
+ z.lazy(() => UpdatePromptResponseFormat2$outboundSchema),
1273
1273
  ]);
1274
1274
 
1275
1275
  /**
@@ -1386,8 +1386,8 @@ export const UpdatePromptModelParameters$inboundSchema: z.ZodType<
1386
1386
  style: z.string().optional(),
1387
1387
  responseFormat: z.nullable(
1388
1388
  z.union([
1389
- z.lazy(() => UpdatePromptResponseFormat2$inboundSchema),
1390
1389
  z.lazy(() => UpdatePromptResponseFormat1$inboundSchema),
1390
+ z.lazy(() => UpdatePromptResponseFormat2$inboundSchema),
1391
1391
  ]),
1392
1392
  ).optional(),
1393
1393
  photoRealVersion: UpdatePromptPhotoRealVersion$inboundSchema.optional(),
@@ -1415,8 +1415,8 @@ export type UpdatePromptModelParameters$Outbound = {
1415
1415
  quality?: string | undefined;
1416
1416
  style?: string | undefined;
1417
1417
  responseFormat?:
1418
- | UpdatePromptResponseFormat2$Outbound
1419
1418
  | UpdatePromptResponseFormat1$Outbound
1419
+ | UpdatePromptResponseFormat2$Outbound
1420
1420
  | null
1421
1421
  | undefined;
1422
1422
  photoRealVersion?: string | undefined;
@@ -1445,8 +1445,8 @@ export const UpdatePromptModelParameters$outboundSchema: z.ZodType<
1445
1445
  style: z.string().optional(),
1446
1446
  responseFormat: z.nullable(
1447
1447
  z.union([
1448
- z.lazy(() => UpdatePromptResponseFormat2$outboundSchema),
1449
1448
  z.lazy(() => UpdatePromptResponseFormat1$outboundSchema),
1449
+ z.lazy(() => UpdatePromptResponseFormat2$outboundSchema),
1450
1450
  ]),
1451
1451
  ).optional(),
1452
1452
  photoRealVersion: UpdatePromptPhotoRealVersion$outboundSchema.optional(),
@@ -2779,14 +2779,14 @@ export const UpdatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
2779
2779
  unknown
2780
2780
  > = z.object({
2781
2781
  name: z.string(),
2782
- strict: z.boolean(),
2782
+ strict: z.boolean().optional(),
2783
2783
  schema: z.record(z.any()),
2784
2784
  });
2785
2785
 
2786
2786
  /** @internal */
2787
2787
  export type UpdatePromptResponseFormatJsonSchema$Outbound = {
2788
2788
  name: string;
2789
- strict: boolean;
2789
+ strict?: boolean | undefined;
2790
2790
  schema: { [k: string]: any };
2791
2791
  };
2792
2792
 
@@ -2797,7 +2797,7 @@ export const UpdatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
2797
2797
  UpdatePromptResponseFormatJsonSchema
2798
2798
  > = z.object({
2799
2799
  name: z.string(),
2800
- strict: z.boolean(),
2800
+ strict: z.boolean().optional(),
2801
2801
  schema: z.record(z.any()),
2802
2802
  });
2803
2803
 
@@ -2912,14 +2912,14 @@ export const UpdatePromptPromptsResponseFormat$inboundSchema: z.ZodType<
2912
2912
  z.ZodTypeDef,
2913
2913
  unknown
2914
2914
  > = z.union([
2915
- z.lazy(() => UpdatePromptResponseFormatPrompts2$inboundSchema),
2916
2915
  z.lazy(() => UpdatePromptResponseFormatPrompts1$inboundSchema),
2916
+ z.lazy(() => UpdatePromptResponseFormatPrompts2$inboundSchema),
2917
2917
  ]);
2918
2918
 
2919
2919
  /** @internal */
2920
2920
  export type UpdatePromptPromptsResponseFormat$Outbound =
2921
- | UpdatePromptResponseFormatPrompts2$Outbound
2922
- | UpdatePromptResponseFormatPrompts1$Outbound;
2921
+ | UpdatePromptResponseFormatPrompts1$Outbound
2922
+ | UpdatePromptResponseFormatPrompts2$Outbound;
2923
2923
 
2924
2924
  /** @internal */
2925
2925
  export const UpdatePromptPromptsResponseFormat$outboundSchema: z.ZodType<
@@ -2927,8 +2927,8 @@ export const UpdatePromptPromptsResponseFormat$outboundSchema: z.ZodType<
2927
2927
  z.ZodTypeDef,
2928
2928
  UpdatePromptPromptsResponseFormat
2929
2929
  > = z.union([
2930
- z.lazy(() => UpdatePromptResponseFormatPrompts2$outboundSchema),
2931
2930
  z.lazy(() => UpdatePromptResponseFormatPrompts1$outboundSchema),
2931
+ z.lazy(() => UpdatePromptResponseFormatPrompts2$outboundSchema),
2932
2932
  ]);
2933
2933
 
2934
2934
  /**
@@ -3052,8 +3052,8 @@ export const UpdatePromptPromptsModelParameters$inboundSchema: z.ZodType<
3052
3052
  style: z.string().optional(),
3053
3053
  responseFormat: z.nullable(
3054
3054
  z.union([
3055
- z.lazy(() => UpdatePromptResponseFormatPrompts2$inboundSchema),
3056
3055
  z.lazy(() => UpdatePromptResponseFormatPrompts1$inboundSchema),
3056
+ z.lazy(() => UpdatePromptResponseFormatPrompts2$inboundSchema),
3057
3057
  ]),
3058
3058
  ).optional(),
3059
3059
  photoRealVersion: UpdatePromptPromptsPhotoRealVersion$inboundSchema
@@ -3082,8 +3082,8 @@ export type UpdatePromptPromptsModelParameters$Outbound = {
3082
3082
  quality?: string | undefined;
3083
3083
  style?: string | undefined;
3084
3084
  responseFormat?:
3085
- | UpdatePromptResponseFormatPrompts2$Outbound
3086
3085
  | UpdatePromptResponseFormatPrompts1$Outbound
3086
+ | UpdatePromptResponseFormatPrompts2$Outbound
3087
3087
  | null
3088
3088
  | undefined;
3089
3089
  photoRealVersion?: string | undefined;
@@ -3112,8 +3112,8 @@ export const UpdatePromptPromptsModelParameters$outboundSchema: z.ZodType<
3112
3112
  style: z.string().optional(),
3113
3113
  responseFormat: z.nullable(
3114
3114
  z.union([
3115
- z.lazy(() => UpdatePromptResponseFormatPrompts2$outboundSchema),
3116
3115
  z.lazy(() => UpdatePromptResponseFormatPrompts1$outboundSchema),
3116
+ z.lazy(() => UpdatePromptResponseFormatPrompts2$outboundSchema),
3117
3117
  ]),
3118
3118
  ).optional(),
3119
3119
  photoRealVersion: UpdatePromptPromptsPhotoRealVersion$outboundSchema