@orq-ai/node 4.2.0-rc.61 → 4.2.0-rc.64

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 (192) hide show
  1. package/examples/package-lock.json +1 -1
  2. package/jsr.json +1 -1
  3. package/lib/config.d.ts +3 -3
  4. package/lib/config.js +3 -3
  5. package/models/components/conversationresponse.js +1 -1
  6. package/models/components/conversationwithmessagesresponse.js +1 -1
  7. package/models/components/partdoneevent.js +1 -1
  8. package/models/components/reasoningpart.js +1 -1
  9. package/models/operations/createagentrequest.d.ts +66 -22
  10. package/models/operations/createagentrequest.d.ts.map +1 -1
  11. package/models/operations/createagentrequest.js +50 -17
  12. package/models/operations/createagentrequest.js.map +1 -1
  13. package/models/operations/createchatcompletion.d.ts +39 -13
  14. package/models/operations/createchatcompletion.d.ts.map +1 -1
  15. package/models/operations/createchatcompletion.js +27 -9
  16. package/models/operations/createchatcompletion.js.map +1 -1
  17. package/models/operations/createcompletion.d.ts +19 -6
  18. package/models/operations/createcompletion.d.ts.map +1 -1
  19. package/models/operations/createcompletion.js +13 -4
  20. package/models/operations/createcompletion.js.map +1 -1
  21. package/models/operations/createcontact.js +1 -1
  22. package/models/operations/createconversation.js +1 -1
  23. package/models/operations/createconversationresponse.js +2 -2
  24. package/models/operations/createdataset.js +1 -1
  25. package/models/operations/createdatasetitem.js +4 -4
  26. package/models/operations/createdatasource.js +1 -1
  27. package/models/operations/createembedding.d.ts +19 -6
  28. package/models/operations/createembedding.d.ts.map +1 -1
  29. package/models/operations/createembedding.js +13 -4
  30. package/models/operations/createembedding.js.map +1 -1
  31. package/models/operations/createeval.js +14 -14
  32. package/models/operations/createidentity.js +1 -1
  33. package/models/operations/createimage.d.ts +19 -6
  34. package/models/operations/createimage.d.ts.map +1 -1
  35. package/models/operations/createimage.js +12 -4
  36. package/models/operations/createimage.js.map +1 -1
  37. package/models/operations/createimageedit.d.ts +19 -6
  38. package/models/operations/createimageedit.d.ts.map +1 -1
  39. package/models/operations/createimageedit.js +13 -4
  40. package/models/operations/createimageedit.js.map +1 -1
  41. package/models/operations/createimagevariation.d.ts +19 -6
  42. package/models/operations/createimagevariation.d.ts.map +1 -1
  43. package/models/operations/createimagevariation.js +13 -4
  44. package/models/operations/createimagevariation.js.map +1 -1
  45. package/models/operations/createprompt.d.ts +33 -11
  46. package/models/operations/createprompt.d.ts.map +1 -1
  47. package/models/operations/createprompt.js +26 -9
  48. package/models/operations/createprompt.js.map +1 -1
  49. package/models/operations/creatererank.d.ts +19 -6
  50. package/models/operations/creatererank.d.ts.map +1 -1
  51. package/models/operations/creatererank.js +12 -4
  52. package/models/operations/creatererank.js.map +1 -1
  53. package/models/operations/createspeech.d.ts +19 -6
  54. package/models/operations/createspeech.d.ts.map +1 -1
  55. package/models/operations/createspeech.js +12 -4
  56. package/models/operations/createspeech.js.map +1 -1
  57. package/models/operations/createtool.js +6 -6
  58. package/models/operations/createtranscription.d.ts +24 -6
  59. package/models/operations/createtranscription.d.ts.map +1 -1
  60. package/models/operations/createtranscription.js +14 -4
  61. package/models/operations/createtranscription.js.map +1 -1
  62. package/models/operations/createtranslation.d.ts +24 -6
  63. package/models/operations/createtranslation.d.ts.map +1 -1
  64. package/models/operations/createtranslation.js +14 -4
  65. package/models/operations/createtranslation.js.map +1 -1
  66. package/models/operations/fileget.js +1 -1
  67. package/models/operations/filelist.js +1 -1
  68. package/models/operations/fileupload.js +1 -1
  69. package/models/operations/generateconversationname.js +1 -1
  70. package/models/operations/getallprompts.d.ts +13 -4
  71. package/models/operations/getallprompts.d.ts.map +1 -1
  72. package/models/operations/getallprompts.js +13 -5
  73. package/models/operations/getallprompts.js.map +1 -1
  74. package/models/operations/getalltools.js +6 -6
  75. package/models/operations/getevals.js +14 -14
  76. package/models/operations/getoneprompt.d.ts +13 -4
  77. package/models/operations/getoneprompt.d.ts.map +1 -1
  78. package/models/operations/getoneprompt.js +13 -5
  79. package/models/operations/getoneprompt.js.map +1 -1
  80. package/models/operations/getpromptversion.d.ts +13 -4
  81. package/models/operations/getpromptversion.d.ts.map +1 -1
  82. package/models/operations/getpromptversion.js +14 -5
  83. package/models/operations/getpromptversion.js.map +1 -1
  84. package/models/operations/listagents.d.ts +26 -8
  85. package/models/operations/listagents.d.ts.map +1 -1
  86. package/models/operations/listagents.js +25 -9
  87. package/models/operations/listagents.js.map +1 -1
  88. package/models/operations/listcontacts.js +1 -1
  89. package/models/operations/listdatasetdatapoints.js +4 -4
  90. package/models/operations/listdatasets.js +1 -1
  91. package/models/operations/listdatasources.js +1 -1
  92. package/models/operations/listidentities.js +1 -1
  93. package/models/operations/listpromptversions.d.ts +13 -4
  94. package/models/operations/listpromptversions.d.ts.map +1 -1
  95. package/models/operations/listpromptversions.js +14 -5
  96. package/models/operations/listpromptversions.js.map +1 -1
  97. package/models/operations/retrieveagentrequest.d.ts +26 -8
  98. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  99. package/models/operations/retrieveagentrequest.js +25 -8
  100. package/models/operations/retrieveagentrequest.js.map +1 -1
  101. package/models/operations/retrievecontact.js +1 -1
  102. package/models/operations/retrievedatapoint.js +4 -4
  103. package/models/operations/retrievedataset.js +1 -1
  104. package/models/operations/retrievedatasource.js +1 -1
  105. package/models/operations/retrieveidentity.js +1 -1
  106. package/models/operations/retrievetool.js +6 -6
  107. package/models/operations/runagent.d.ts +40 -14
  108. package/models/operations/runagent.d.ts.map +1 -1
  109. package/models/operations/runagent.js +27 -11
  110. package/models/operations/runagent.js.map +1 -1
  111. package/models/operations/streamrunagent.d.ts +40 -14
  112. package/models/operations/streamrunagent.d.ts.map +1 -1
  113. package/models/operations/streamrunagent.js +28 -10
  114. package/models/operations/streamrunagent.js.map +1 -1
  115. package/models/operations/updateagent.d.ts +66 -22
  116. package/models/operations/updateagent.d.ts.map +1 -1
  117. package/models/operations/updateagent.js +50 -17
  118. package/models/operations/updateagent.js.map +1 -1
  119. package/models/operations/updatecontact.js +1 -1
  120. package/models/operations/updateconversation.js +1 -1
  121. package/models/operations/updatedatapoint.js +4 -4
  122. package/models/operations/updatedataset.js +1 -1
  123. package/models/operations/updatedatasource.js +1 -1
  124. package/models/operations/updateeval.js +14 -14
  125. package/models/operations/updateidentity.js +1 -1
  126. package/models/operations/updateprompt.d.ts +33 -11
  127. package/models/operations/updateprompt.d.ts.map +1 -1
  128. package/models/operations/updateprompt.js +26 -9
  129. package/models/operations/updateprompt.js.map +1 -1
  130. package/models/operations/updatetool.js +7 -7
  131. package/package.json +1 -1
  132. package/src/lib/config.ts +3 -3
  133. package/src/models/components/conversationresponse.ts +1 -1
  134. package/src/models/components/conversationwithmessagesresponse.ts +1 -1
  135. package/src/models/components/partdoneevent.ts +1 -1
  136. package/src/models/components/reasoningpart.ts +1 -1
  137. package/src/models/operations/createagentrequest.ts +152 -40
  138. package/src/models/operations/createchatcompletion.ts +94 -24
  139. package/src/models/operations/createcompletion.ts +43 -11
  140. package/src/models/operations/createcontact.ts +1 -1
  141. package/src/models/operations/createconversation.ts +1 -1
  142. package/src/models/operations/createconversationresponse.ts +2 -2
  143. package/src/models/operations/createdataset.ts +1 -1
  144. package/src/models/operations/createdatasetitem.ts +4 -4
  145. package/src/models/operations/createdatasource.ts +1 -1
  146. package/src/models/operations/createembedding.ts +43 -11
  147. package/src/models/operations/createeval.ts +14 -14
  148. package/src/models/operations/createidentity.ts +1 -1
  149. package/src/models/operations/createimage.ts +40 -9
  150. package/src/models/operations/createimageedit.ts +43 -11
  151. package/src/models/operations/createimagevariation.ts +44 -11
  152. package/src/models/operations/createprompt.ts +78 -19
  153. package/src/models/operations/creatererank.ts +40 -9
  154. package/src/models/operations/createspeech.ts +40 -9
  155. package/src/models/operations/createtool.ts +6 -6
  156. package/src/models/operations/createtranscription.ts +49 -11
  157. package/src/models/operations/createtranslation.ts +49 -11
  158. package/src/models/operations/fileget.ts +1 -1
  159. package/src/models/operations/filelist.ts +1 -1
  160. package/src/models/operations/fileupload.ts +1 -1
  161. package/src/models/operations/generateconversationname.ts +1 -1
  162. package/src/models/operations/getallprompts.ts +33 -7
  163. package/src/models/operations/getalltools.ts +6 -6
  164. package/src/models/operations/getevals.ts +14 -14
  165. package/src/models/operations/getoneprompt.ts +33 -7
  166. package/src/models/operations/getpromptversion.ts +37 -9
  167. package/src/models/operations/listagents.ts +70 -17
  168. package/src/models/operations/listcontacts.ts +1 -1
  169. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  170. package/src/models/operations/listdatasets.ts +1 -1
  171. package/src/models/operations/listdatasources.ts +1 -1
  172. package/src/models/operations/listidentities.ts +1 -1
  173. package/src/models/operations/listpromptversions.ts +37 -9
  174. package/src/models/operations/retrieveagentrequest.ts +80 -17
  175. package/src/models/operations/retrievecontact.ts +1 -1
  176. package/src/models/operations/retrievedatapoint.ts +4 -4
  177. package/src/models/operations/retrievedataset.ts +1 -1
  178. package/src/models/operations/retrievedatasource.ts +1 -1
  179. package/src/models/operations/retrieveidentity.ts +1 -1
  180. package/src/models/operations/retrievetool.ts +6 -6
  181. package/src/models/operations/runagent.ts +84 -24
  182. package/src/models/operations/streamrunagent.ts +90 -25
  183. package/src/models/operations/updateagent.ts +171 -38
  184. package/src/models/operations/updatecontact.ts +1 -1
  185. package/src/models/operations/updateconversation.ts +1 -1
  186. package/src/models/operations/updatedatapoint.ts +4 -4
  187. package/src/models/operations/updatedataset.ts +1 -1
  188. package/src/models/operations/updatedatasource.ts +1 -1
  189. package/src/models/operations/updateeval.ts +14 -14
  190. package/src/models/operations/updateidentity.ts +1 -1
  191. package/src/models/operations/updateprompt.ts +78 -19
  192. package/src/models/operations/updatetool.ts +7 -7
@@ -465,8 +465,7 @@ export type ListAgentsLoadBalancerType = ClosedEnum<
465
465
  typeof ListAgentsLoadBalancerType
466
466
  >;
467
467
 
468
- export type ListAgentsLoadBalancer1 = {
469
- type: ListAgentsLoadBalancerType;
468
+ export type ListAgentsLoadBalancerModels = {
470
469
  /**
471
470
  * Model identifier for load balancing
472
471
  */
@@ -477,6 +476,14 @@ export type ListAgentsLoadBalancer1 = {
477
476
  weight: number;
478
477
  };
479
478
 
479
+ export type ListAgentsLoadBalancer1 = {
480
+ type: ListAgentsLoadBalancerType;
481
+ models: Array<ListAgentsLoadBalancerModels>;
482
+ };
483
+
484
+ /**
485
+ * Load balancer configuration for the request.
486
+ */
480
487
  export type ListAgentsLoadBalancer = ListAgentsLoadBalancer1;
481
488
 
482
489
  /**
@@ -611,9 +618,9 @@ export type ListAgentsParameters = {
611
618
  */
612
619
  cache?: ListAgentsCache | undefined;
613
620
  /**
614
- * Array of models with weights for load balancing requests
621
+ * Load balancer configuration for the request.
615
622
  */
616
- loadBalancer?: Array<ListAgentsLoadBalancer1> | undefined;
623
+ loadBalancer?: ListAgentsLoadBalancer1 | undefined;
617
624
  /**
618
625
  * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
619
626
  */
@@ -930,8 +937,7 @@ export type ListAgentsLoadBalancerAgentsType = ClosedEnum<
930
937
  typeof ListAgentsLoadBalancerAgentsType
931
938
  >;
932
939
 
933
- export type ListAgentsLoadBalancerAgents1 = {
934
- type: ListAgentsLoadBalancerAgentsType;
940
+ export type ListAgentsLoadBalancerAgentsModels = {
935
941
  /**
936
942
  * Model identifier for load balancing
937
943
  */
@@ -942,6 +948,14 @@ export type ListAgentsLoadBalancerAgents1 = {
942
948
  weight: number;
943
949
  };
944
950
 
951
+ export type ListAgentsLoadBalancerAgents1 = {
952
+ type: ListAgentsLoadBalancerAgentsType;
953
+ models: Array<ListAgentsLoadBalancerAgentsModels>;
954
+ };
955
+
956
+ /**
957
+ * Load balancer configuration for the request.
958
+ */
945
959
  export type ListAgentsFallbackModelConfigurationLoadBalancer =
946
960
  ListAgentsLoadBalancerAgents1;
947
961
 
@@ -1090,9 +1104,9 @@ export type ListAgentsFallbackModelConfigurationParameters = {
1090
1104
  */
1091
1105
  cache?: ListAgentsFallbackModelConfigurationCache | undefined;
1092
1106
  /**
1093
- * Array of models with weights for load balancing requests
1107
+ * Load balancer configuration for the request.
1094
1108
  */
1095
- loadBalancer?: Array<ListAgentsLoadBalancerAgents1> | undefined;
1109
+ loadBalancer?: ListAgentsLoadBalancerAgents1 | undefined;
1096
1110
  /**
1097
1111
  * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
1098
1112
  */
@@ -1858,6 +1872,26 @@ export const ListAgentsLoadBalancerType$inboundSchema: z.ZodNativeEnum<
1858
1872
  typeof ListAgentsLoadBalancerType
1859
1873
  > = z.nativeEnum(ListAgentsLoadBalancerType);
1860
1874
 
1875
+ /** @internal */
1876
+ export const ListAgentsLoadBalancerModels$inboundSchema: z.ZodType<
1877
+ ListAgentsLoadBalancerModels,
1878
+ z.ZodTypeDef,
1879
+ unknown
1880
+ > = z.object({
1881
+ model: z.string(),
1882
+ weight: z.number().default(0.5),
1883
+ });
1884
+
1885
+ export function listAgentsLoadBalancerModelsFromJSON(
1886
+ jsonString: string,
1887
+ ): SafeParseResult<ListAgentsLoadBalancerModels, SDKValidationError> {
1888
+ return safeParse(
1889
+ jsonString,
1890
+ (x) => ListAgentsLoadBalancerModels$inboundSchema.parse(JSON.parse(x)),
1891
+ `Failed to parse 'ListAgentsLoadBalancerModels' from JSON`,
1892
+ );
1893
+ }
1894
+
1861
1895
  /** @internal */
1862
1896
  export const ListAgentsLoadBalancer1$inboundSchema: z.ZodType<
1863
1897
  ListAgentsLoadBalancer1,
@@ -1865,8 +1899,7 @@ export const ListAgentsLoadBalancer1$inboundSchema: z.ZodType<
1865
1899
  unknown
1866
1900
  > = z.object({
1867
1901
  type: ListAgentsLoadBalancerType$inboundSchema,
1868
- model: z.string(),
1869
- weight: z.number().default(0.5),
1902
+ models: z.array(z.lazy(() => ListAgentsLoadBalancerModels$inboundSchema)),
1870
1903
  });
1871
1904
 
1872
1905
  export function listAgentsLoadBalancer1FromJSON(
@@ -1965,8 +1998,7 @@ export const ListAgentsParameters$inboundSchema: z.ZodType<
1965
1998
  .optional(),
1966
1999
  retry: z.lazy(() => ListAgentsAgentsRetry$inboundSchema).optional(),
1967
2000
  cache: z.lazy(() => ListAgentsCache$inboundSchema).optional(),
1968
- load_balancer: z.array(z.lazy(() => ListAgentsLoadBalancer1$inboundSchema))
1969
- .optional(),
2001
+ load_balancer: z.lazy(() => ListAgentsLoadBalancer1$inboundSchema).optional(),
1970
2002
  timeout: z.lazy(() => ListAgentsTimeout$inboundSchema).optional(),
1971
2003
  }).transform((v) => {
1972
2004
  return remap$(v, {
@@ -2512,6 +2544,27 @@ export const ListAgentsLoadBalancerAgentsType$inboundSchema: z.ZodNativeEnum<
2512
2544
  typeof ListAgentsLoadBalancerAgentsType
2513
2545
  > = z.nativeEnum(ListAgentsLoadBalancerAgentsType);
2514
2546
 
2547
+ /** @internal */
2548
+ export const ListAgentsLoadBalancerAgentsModels$inboundSchema: z.ZodType<
2549
+ ListAgentsLoadBalancerAgentsModels,
2550
+ z.ZodTypeDef,
2551
+ unknown
2552
+ > = z.object({
2553
+ model: z.string(),
2554
+ weight: z.number().default(0.5),
2555
+ });
2556
+
2557
+ export function listAgentsLoadBalancerAgentsModelsFromJSON(
2558
+ jsonString: string,
2559
+ ): SafeParseResult<ListAgentsLoadBalancerAgentsModels, SDKValidationError> {
2560
+ return safeParse(
2561
+ jsonString,
2562
+ (x) =>
2563
+ ListAgentsLoadBalancerAgentsModels$inboundSchema.parse(JSON.parse(x)),
2564
+ `Failed to parse 'ListAgentsLoadBalancerAgentsModels' from JSON`,
2565
+ );
2566
+ }
2567
+
2515
2568
  /** @internal */
2516
2569
  export const ListAgentsLoadBalancerAgents1$inboundSchema: z.ZodType<
2517
2570
  ListAgentsLoadBalancerAgents1,
@@ -2519,8 +2572,9 @@ export const ListAgentsLoadBalancerAgents1$inboundSchema: z.ZodType<
2519
2572
  unknown
2520
2573
  > = z.object({
2521
2574
  type: ListAgentsLoadBalancerAgentsType$inboundSchema,
2522
- model: z.string(),
2523
- weight: z.number().default(0.5),
2575
+ models: z.array(
2576
+ z.lazy(() => ListAgentsLoadBalancerAgentsModels$inboundSchema),
2577
+ ),
2524
2578
  });
2525
2579
 
2526
2580
  export function listAgentsLoadBalancerAgents1FromJSON(
@@ -2650,9 +2704,8 @@ export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
2650
2704
  ).optional(),
2651
2705
  cache: z.lazy(() => ListAgentsFallbackModelConfigurationCache$inboundSchema)
2652
2706
  .optional(),
2653
- load_balancer: z.array(
2654
- z.lazy(() => ListAgentsLoadBalancerAgents1$inboundSchema),
2655
- ).optional(),
2707
+ load_balancer: z.lazy(() => ListAgentsLoadBalancerAgents1$inboundSchema)
2708
+ .optional(),
2656
2709
  timeout: z.lazy(() =>
2657
2710
  ListAgentsFallbackModelConfigurationTimeout$inboundSchema
2658
2711
  ).optional(),
@@ -226,7 +226,7 @@ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
226
226
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
227
227
  .optional(),
228
228
  updated: z.string().datetime({ offset: true }).default(
229
- "2026-01-22T11:24:22.432Z",
229
+ "2026-01-23T05:38:05.558Z",
230
230
  ).transform(v => new Date(v)),
231
231
  metrics: z.lazy(() => ListContactsMetrics$inboundSchema),
232
232
  }).transform((v) => {
@@ -1270,7 +1270,7 @@ export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
1270
1270
  ),
1271
1271
  reviewed_by_id: z.string(),
1272
1272
  reviewed_at: z.string().datetime({ offset: true }).default(
1273
- "2026-01-22T11:24:35.993Z",
1273
+ "2026-01-23T05:38:20.434Z",
1274
1274
  ).transform(v => new Date(v)),
1275
1275
  type: z.literal("string_array"),
1276
1276
  values: z.array(z.string()),
@@ -1320,7 +1320,7 @@ export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
1320
1320
  source: ListDatasetDatapointsEvaluationsSource$inboundSchema.default("orq"),
1321
1321
  reviewed_by_id: z.string(),
1322
1322
  reviewed_at: z.string().datetime({ offset: true }).default(
1323
- "2026-01-22T11:24:35.992Z",
1323
+ "2026-01-23T05:38:20.434Z",
1324
1324
  ).transform(v => new Date(v)),
1325
1325
  type: z.literal("number"),
1326
1326
  value: z.number(),
@@ -1369,7 +1369,7 @@ export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
1369
1369
  .default("orq"),
1370
1370
  reviewed_by_id: z.string(),
1371
1371
  reviewed_at: z.string().datetime({ offset: true }).default(
1372
- "2026-01-22T11:24:35.992Z",
1372
+ "2026-01-23T05:38:20.433Z",
1373
1373
  ).transform(v => new Date(v)),
1374
1374
  type: z.literal("string"),
1375
1375
  value: z.string(),
@@ -1448,7 +1448,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
1448
1448
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
1449
1449
  .optional(),
1450
1450
  updated: z.string().datetime({ offset: true }).default(
1451
- "2026-01-22T11:24:22.432Z",
1451
+ "2026-01-23T05:38:05.558Z",
1452
1452
  ).transform(v => new Date(v)),
1453
1453
  }).transform((v) => {
1454
1454
  return remap$(v, {
@@ -156,7 +156,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
156
156
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
157
157
  .optional(),
158
158
  updated: z.string().datetime({ offset: true }).default(
159
- "2026-01-22T11:24:22.432Z",
159
+ "2026-01-23T05:38:05.558Z",
160
160
  ).transform(v => new Date(v)),
161
161
  }).transform((v) => {
162
162
  return remap$(v, {
@@ -176,7 +176,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
176
176
  z.ZodTypeDef,
177
177
  unknown
178
178
  > = z.object({
179
- _id: z.string().default("01KFJQ5Y5VPWTG2ZWAS4Q83YW3"),
179
+ _id: z.string().default("01KFMNRMHN68X8285P59NRZJG1"),
180
180
  display_name: z.string(),
181
181
  description: z.string().optional(),
182
182
  status: ListDatasourcesStatus$inboundSchema,
@@ -227,7 +227,7 @@ export const ListIdentitiesData$inboundSchema: z.ZodType<
227
227
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
228
228
  .optional(),
229
229
  updated: z.string().datetime({ offset: true }).default(
230
- "2026-01-22T11:24:22.432Z",
230
+ "2026-01-23T05:38:05.558Z",
231
231
  ).transform(v => new Date(v)),
232
232
  metrics: z.lazy(() => ListIdentitiesMetrics$inboundSchema),
233
233
  }).transform((v) => {
@@ -820,8 +820,7 @@ export type ListPromptVersionsLoadBalancerType = ClosedEnum<
820
820
  typeof ListPromptVersionsLoadBalancerType
821
821
  >;
822
822
 
823
- export type ListPromptVersionsLoadBalancer1 = {
824
- type: ListPromptVersionsLoadBalancerType;
823
+ export type ListPromptVersionsLoadBalancerModels = {
825
824
  /**
826
825
  * Model identifier for load balancing
827
826
  */
@@ -832,6 +831,14 @@ export type ListPromptVersionsLoadBalancer1 = {
832
831
  weight: number;
833
832
  };
834
833
 
834
+ export type ListPromptVersionsLoadBalancer1 = {
835
+ type: ListPromptVersionsLoadBalancerType;
836
+ models: Array<ListPromptVersionsLoadBalancerModels>;
837
+ };
838
+
839
+ /**
840
+ * Load balancer configuration for the request.
841
+ */
835
842
  export type ListPromptVersionsLoadBalancer = ListPromptVersionsLoadBalancer1;
836
843
 
837
844
  /**
@@ -1297,9 +1304,9 @@ export type ListPromptVersionsPromptField = {
1297
1304
  */
1298
1305
  cache?: ListPromptVersionsCache | undefined;
1299
1306
  /**
1300
- * Array of models with weights for load balancing requests
1307
+ * Load balancer configuration for the request.
1301
1308
  */
1302
- loadBalancer?: Array<ListPromptVersionsLoadBalancer1> | undefined;
1309
+ loadBalancer?: ListPromptVersionsLoadBalancer1 | undefined;
1303
1310
  /**
1304
1311
  * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
1305
1312
  */
@@ -2402,6 +2409,27 @@ export const ListPromptVersionsLoadBalancerType$inboundSchema: z.ZodNativeEnum<
2402
2409
  typeof ListPromptVersionsLoadBalancerType
2403
2410
  > = z.nativeEnum(ListPromptVersionsLoadBalancerType);
2404
2411
 
2412
+ /** @internal */
2413
+ export const ListPromptVersionsLoadBalancerModels$inboundSchema: z.ZodType<
2414
+ ListPromptVersionsLoadBalancerModels,
2415
+ z.ZodTypeDef,
2416
+ unknown
2417
+ > = z.object({
2418
+ model: z.string(),
2419
+ weight: z.number().default(0.5),
2420
+ });
2421
+
2422
+ export function listPromptVersionsLoadBalancerModelsFromJSON(
2423
+ jsonString: string,
2424
+ ): SafeParseResult<ListPromptVersionsLoadBalancerModels, SDKValidationError> {
2425
+ return safeParse(
2426
+ jsonString,
2427
+ (x) =>
2428
+ ListPromptVersionsLoadBalancerModels$inboundSchema.parse(JSON.parse(x)),
2429
+ `Failed to parse 'ListPromptVersionsLoadBalancerModels' from JSON`,
2430
+ );
2431
+ }
2432
+
2405
2433
  /** @internal */
2406
2434
  export const ListPromptVersionsLoadBalancer1$inboundSchema: z.ZodType<
2407
2435
  ListPromptVersionsLoadBalancer1,
@@ -2409,8 +2437,9 @@ export const ListPromptVersionsLoadBalancer1$inboundSchema: z.ZodType<
2409
2437
  unknown
2410
2438
  > = z.object({
2411
2439
  type: ListPromptVersionsLoadBalancerType$inboundSchema,
2412
- model: z.string(),
2413
- weight: z.number().default(0.5),
2440
+ models: z.array(
2441
+ z.lazy(() => ListPromptVersionsLoadBalancerModels$inboundSchema),
2442
+ ),
2414
2443
  });
2415
2444
 
2416
2445
  export function listPromptVersionsLoadBalancer1FromJSON(
@@ -3038,9 +3067,8 @@ export const ListPromptVersionsPromptField$inboundSchema: z.ZodType<
3038
3067
  .optional(),
3039
3068
  retry: z.lazy(() => ListPromptVersionsRetry$inboundSchema).optional(),
3040
3069
  cache: z.lazy(() => ListPromptVersionsCache$inboundSchema).optional(),
3041
- load_balancer: z.array(
3042
- z.lazy(() => ListPromptVersionsLoadBalancer1$inboundSchema),
3043
- ).optional(),
3070
+ load_balancer: z.lazy(() => ListPromptVersionsLoadBalancer1$inboundSchema)
3071
+ .optional(),
3044
3072
  timeout: z.lazy(() => ListPromptVersionsTimeout$inboundSchema).optional(),
3045
3073
  messages: z.array(
3046
3074
  z.union([
@@ -468,8 +468,7 @@ export type RetrieveAgentRequestLoadBalancerType = ClosedEnum<
468
468
  typeof RetrieveAgentRequestLoadBalancerType
469
469
  >;
470
470
 
471
- export type RetrieveAgentRequestLoadBalancer1 = {
472
- type: RetrieveAgentRequestLoadBalancerType;
471
+ export type RetrieveAgentRequestLoadBalancerModels = {
473
472
  /**
474
473
  * Model identifier for load balancing
475
474
  */
@@ -480,6 +479,14 @@ export type RetrieveAgentRequestLoadBalancer1 = {
480
479
  weight: number;
481
480
  };
482
481
 
482
+ export type RetrieveAgentRequestLoadBalancer1 = {
483
+ type: RetrieveAgentRequestLoadBalancerType;
484
+ models: Array<RetrieveAgentRequestLoadBalancerModels>;
485
+ };
486
+
487
+ /**
488
+ * Load balancer configuration for the request.
489
+ */
483
490
  export type RetrieveAgentRequestLoadBalancer =
484
491
  RetrieveAgentRequestLoadBalancer1;
485
492
 
@@ -618,9 +625,9 @@ export type RetrieveAgentRequestParameters = {
618
625
  */
619
626
  cache?: RetrieveAgentRequestCache | undefined;
620
627
  /**
621
- * Array of models with weights for load balancing requests
628
+ * Load balancer configuration for the request.
622
629
  */
623
- loadBalancer?: Array<RetrieveAgentRequestLoadBalancer1> | undefined;
630
+ loadBalancer?: RetrieveAgentRequestLoadBalancer1 | undefined;
624
631
  /**
625
632
  * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
626
633
  */
@@ -940,8 +947,7 @@ export type RetrieveAgentRequestLoadBalancerAgentsType = ClosedEnum<
940
947
  typeof RetrieveAgentRequestLoadBalancerAgentsType
941
948
  >;
942
949
 
943
- export type RetrieveAgentRequestLoadBalancerAgents1 = {
944
- type: RetrieveAgentRequestLoadBalancerAgentsType;
950
+ export type RetrieveAgentRequestLoadBalancerAgentsModels = {
945
951
  /**
946
952
  * Model identifier for load balancing
947
953
  */
@@ -952,6 +958,14 @@ export type RetrieveAgentRequestLoadBalancerAgents1 = {
952
958
  weight: number;
953
959
  };
954
960
 
961
+ export type RetrieveAgentRequestLoadBalancerAgents1 = {
962
+ type: RetrieveAgentRequestLoadBalancerAgentsType;
963
+ models: Array<RetrieveAgentRequestLoadBalancerAgentsModels>;
964
+ };
965
+
966
+ /**
967
+ * Load balancer configuration for the request.
968
+ */
955
969
  export type RetrieveAgentRequestFallbackModelConfigurationLoadBalancer =
956
970
  RetrieveAgentRequestLoadBalancerAgents1;
957
971
 
@@ -1105,9 +1119,9 @@ export type RetrieveAgentRequestFallbackModelConfigurationParameters = {
1105
1119
  */
1106
1120
  cache?: RetrieveAgentRequestFallbackModelConfigurationCache | undefined;
1107
1121
  /**
1108
- * Array of models with weights for load balancing requests
1122
+ * Load balancer configuration for the request.
1109
1123
  */
1110
- loadBalancer?: Array<RetrieveAgentRequestLoadBalancerAgents1> | undefined;
1124
+ loadBalancer?: RetrieveAgentRequestLoadBalancerAgents1 | undefined;
1111
1125
  /**
1112
1126
  * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
1113
1127
  */
@@ -1890,6 +1904,27 @@ export const RetrieveAgentRequestLoadBalancerType$inboundSchema:
1890
1904
  RetrieveAgentRequestLoadBalancerType,
1891
1905
  );
1892
1906
 
1907
+ /** @internal */
1908
+ export const RetrieveAgentRequestLoadBalancerModels$inboundSchema: z.ZodType<
1909
+ RetrieveAgentRequestLoadBalancerModels,
1910
+ z.ZodTypeDef,
1911
+ unknown
1912
+ > = z.object({
1913
+ model: z.string(),
1914
+ weight: z.number().default(0.5),
1915
+ });
1916
+
1917
+ export function retrieveAgentRequestLoadBalancerModelsFromJSON(
1918
+ jsonString: string,
1919
+ ): SafeParseResult<RetrieveAgentRequestLoadBalancerModels, SDKValidationError> {
1920
+ return safeParse(
1921
+ jsonString,
1922
+ (x) =>
1923
+ RetrieveAgentRequestLoadBalancerModels$inboundSchema.parse(JSON.parse(x)),
1924
+ `Failed to parse 'RetrieveAgentRequestLoadBalancerModels' from JSON`,
1925
+ );
1926
+ }
1927
+
1893
1928
  /** @internal */
1894
1929
  export const RetrieveAgentRequestLoadBalancer1$inboundSchema: z.ZodType<
1895
1930
  RetrieveAgentRequestLoadBalancer1,
@@ -1897,8 +1932,9 @@ export const RetrieveAgentRequestLoadBalancer1$inboundSchema: z.ZodType<
1897
1932
  unknown
1898
1933
  > = z.object({
1899
1934
  type: RetrieveAgentRequestLoadBalancerType$inboundSchema,
1900
- model: z.string(),
1901
- weight: z.number().default(0.5),
1935
+ models: z.array(
1936
+ z.lazy(() => RetrieveAgentRequestLoadBalancerModels$inboundSchema),
1937
+ ),
1902
1938
  });
1903
1939
 
1904
1940
  export function retrieveAgentRequestLoadBalancer1FromJSON(
@@ -2002,9 +2038,8 @@ export const RetrieveAgentRequestParameters$inboundSchema: z.ZodType<
2002
2038
  .optional(),
2003
2039
  retry: z.lazy(() => RetrieveAgentRequestAgentsRetry$inboundSchema).optional(),
2004
2040
  cache: z.lazy(() => RetrieveAgentRequestCache$inboundSchema).optional(),
2005
- load_balancer: z.array(
2006
- z.lazy(() => RetrieveAgentRequestLoadBalancer1$inboundSchema),
2007
- ).optional(),
2041
+ load_balancer: z.lazy(() => RetrieveAgentRequestLoadBalancer1$inboundSchema)
2042
+ .optional(),
2008
2043
  timeout: z.lazy(() => RetrieveAgentRequestTimeout$inboundSchema).optional(),
2009
2044
  }).transform((v) => {
2010
2045
  return remap$(v, {
@@ -2575,6 +2610,33 @@ export const RetrieveAgentRequestLoadBalancerAgentsType$inboundSchema:
2575
2610
  z.ZodNativeEnum<typeof RetrieveAgentRequestLoadBalancerAgentsType> = z
2576
2611
  .nativeEnum(RetrieveAgentRequestLoadBalancerAgentsType);
2577
2612
 
2613
+ /** @internal */
2614
+ export const RetrieveAgentRequestLoadBalancerAgentsModels$inboundSchema:
2615
+ z.ZodType<
2616
+ RetrieveAgentRequestLoadBalancerAgentsModels,
2617
+ z.ZodTypeDef,
2618
+ unknown
2619
+ > = z.object({
2620
+ model: z.string(),
2621
+ weight: z.number().default(0.5),
2622
+ });
2623
+
2624
+ export function retrieveAgentRequestLoadBalancerAgentsModelsFromJSON(
2625
+ jsonString: string,
2626
+ ): SafeParseResult<
2627
+ RetrieveAgentRequestLoadBalancerAgentsModels,
2628
+ SDKValidationError
2629
+ > {
2630
+ return safeParse(
2631
+ jsonString,
2632
+ (x) =>
2633
+ RetrieveAgentRequestLoadBalancerAgentsModels$inboundSchema.parse(
2634
+ JSON.parse(x),
2635
+ ),
2636
+ `Failed to parse 'RetrieveAgentRequestLoadBalancerAgentsModels' from JSON`,
2637
+ );
2638
+ }
2639
+
2578
2640
  /** @internal */
2579
2641
  export const RetrieveAgentRequestLoadBalancerAgents1$inboundSchema: z.ZodType<
2580
2642
  RetrieveAgentRequestLoadBalancerAgents1,
@@ -2582,8 +2644,9 @@ export const RetrieveAgentRequestLoadBalancerAgents1$inboundSchema: z.ZodType<
2582
2644
  unknown
2583
2645
  > = z.object({
2584
2646
  type: RetrieveAgentRequestLoadBalancerAgentsType$inboundSchema,
2585
- model: z.string(),
2586
- weight: z.number().default(0.5),
2647
+ models: z.array(
2648
+ z.lazy(() => RetrieveAgentRequestLoadBalancerAgentsModels$inboundSchema),
2649
+ ),
2587
2650
  });
2588
2651
 
2589
2652
  export function retrieveAgentRequestLoadBalancerAgents1FromJSON(
@@ -2727,8 +2790,8 @@ export const RetrieveAgentRequestFallbackModelConfigurationParameters$inboundSch
2727
2790
  cache: z.lazy(() =>
2728
2791
  RetrieveAgentRequestFallbackModelConfigurationCache$inboundSchema
2729
2792
  ).optional(),
2730
- load_balancer: z.array(
2731
- z.lazy(() => RetrieveAgentRequestLoadBalancerAgents1$inboundSchema),
2793
+ load_balancer: z.lazy(() =>
2794
+ RetrieveAgentRequestLoadBalancerAgents1$inboundSchema
2732
2795
  ).optional(),
2733
2796
  timeout: z.lazy(() =>
2734
2797
  RetrieveAgentRequestFallbackModelConfigurationTimeout$inboundSchema
@@ -95,7 +95,7 @@ export const RetrieveContactResponseBody$inboundSchema: z.ZodType<
95
95
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
96
96
  .optional(),
97
97
  updated: z.string().datetime({ offset: true }).default(
98
- "2026-01-22T11:24:22.432Z",
98
+ "2026-01-23T05:38:05.558Z",
99
99
  ).transform(v => new Date(v)),
100
100
  }).transform((v) => {
101
101
  return remap$(v, {
@@ -1207,7 +1207,7 @@ export const RetrieveDatapointEvaluations3$inboundSchema: z.ZodType<
1207
1207
  .default("orq"),
1208
1208
  reviewed_by_id: z.string(),
1209
1209
  reviewed_at: z.string().datetime({ offset: true }).default(
1210
- "2026-01-22T11:24:36.001Z",
1210
+ "2026-01-23T05:38:20.450Z",
1211
1211
  ).transform(v => new Date(v)),
1212
1212
  type: z.literal("string_array"),
1213
1213
  values: z.array(z.string()),
@@ -1255,7 +1255,7 @@ export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
1255
1255
  ),
1256
1256
  reviewed_by_id: z.string(),
1257
1257
  reviewed_at: z.string().datetime({ offset: true }).default(
1258
- "2026-01-22T11:24:36.000Z",
1258
+ "2026-01-23T05:38:20.441Z",
1259
1259
  ).transform(v => new Date(v)),
1260
1260
  type: z.literal("number"),
1261
1261
  value: z.number(),
@@ -1300,7 +1300,7 @@ export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
1300
1300
  source: RetrieveDatapointEvaluationsSource$inboundSchema.default("orq"),
1301
1301
  reviewed_by_id: z.string(),
1302
1302
  reviewed_at: z.string().datetime({ offset: true }).default(
1303
- "2026-01-22T11:24:36.000Z",
1303
+ "2026-01-23T05:38:20.440Z",
1304
1304
  ).transform(v => new Date(v)),
1305
1305
  type: z.literal("string"),
1306
1306
  value: z.string(),
@@ -1377,7 +1377,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
1377
1377
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
1378
1378
  .optional(),
1379
1379
  updated: z.string().datetime({ offset: true }).default(
1380
- "2026-01-22T11:24:22.432Z",
1380
+ "2026-01-23T05:38:05.558Z",
1381
1381
  ).transform(v => new Date(v)),
1382
1382
  }).transform((v) => {
1383
1383
  return remap$(v, {
@@ -126,7 +126,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
126
126
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
127
127
  .optional(),
128
128
  updated: z.string().datetime({ offset: true }).default(
129
- "2026-01-22T11:24:22.432Z",
129
+ "2026-01-23T05:38:05.558Z",
130
130
  ).transform(v => new Date(v)),
131
131
  }).transform((v) => {
132
132
  return remap$(v, {
@@ -118,7 +118,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
118
118
  z.ZodTypeDef,
119
119
  unknown
120
120
  > = z.object({
121
- _id: z.string().default("01KFJQ5Y5YRESXSXM7PRHR6QA9"),
121
+ _id: z.string().default("01KFMNRMHPZT5R88V83F2108MX"),
122
122
  display_name: z.string(),
123
123
  description: z.string().optional(),
124
124
  status: RetrieveDatasourceStatus$inboundSchema,
@@ -95,7 +95,7 @@ export const RetrieveIdentityResponseBody$inboundSchema: z.ZodType<
95
95
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
96
96
  .optional(),
97
97
  updated: z.string().datetime({ offset: true }).default(
98
- "2026-01-22T11:24:22.432Z",
98
+ "2026-01-23T05:38:05.558Z",
99
99
  ).transform(v => new Date(v)),
100
100
  }).transform((v) => {
101
101
  return remap$(v, {
@@ -754,7 +754,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
754
754
  z.ZodTypeDef,
755
755
  unknown
756
756
  > = z.object({
757
- _id: z.string().default("tool_01KFJQ5Y1Q9DKMSC6QXHQ2R098"),
757
+ _id: z.string().default("tool_01KFMNRMDV2N496TA3J4NGFG7C"),
758
758
  path: z.string(),
759
759
  key: z.string(),
760
760
  display_name: z.string().optional(),
@@ -862,7 +862,7 @@ export const RetrieveToolResponseBodyTools$inboundSchema: z.ZodType<
862
862
  z.ZodTypeDef,
863
863
  unknown
864
864
  > = z.object({
865
- id: z.string().default("01KFJQ5Y1PR9XD90JNHVAHDQVW"),
865
+ id: z.string().default("01KFMNRMDTABHZQTEN02PWVT6D"),
866
866
  name: z.string(),
867
867
  description: z.string().optional(),
868
868
  schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$inboundSchema),
@@ -918,7 +918,7 @@ export const RetrieveToolResponseBodyMCPTool$inboundSchema: z.ZodType<
918
918
  z.ZodTypeDef,
919
919
  unknown
920
920
  > = z.object({
921
- _id: z.string().default("tool_01KFJQ5Y1N0Y9WAQXQQ9E7T2G6"),
921
+ _id: z.string().default("tool_01KFMNRMDQMTZED9VZCZDB85R9"),
922
922
  path: z.string(),
923
923
  key: z.string(),
924
924
  display_name: z.string().optional(),
@@ -1111,7 +1111,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
1111
1111
  z.ZodTypeDef,
1112
1112
  unknown
1113
1113
  > = z.object({
1114
- _id: z.string().default("tool_01KFJQ5Y1HR1Y7KH1G2TCNTVFS"),
1114
+ _id: z.string().default("tool_01KFMNRMDK3WBEDTRERBHDAG7Y"),
1115
1115
  path: z.string(),
1116
1116
  key: z.string(),
1117
1117
  display_name: z.string().optional(),
@@ -1209,7 +1209,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
1209
1209
  z.ZodTypeDef,
1210
1210
  unknown
1211
1211
  > = z.object({
1212
- _id: z.string().default("tool_01KFJQ5Y1F6G687JVQK64G3N2R"),
1212
+ _id: z.string().default("tool_01KFMNRMDFFGNBK4CHE5MD0SW4"),
1213
1213
  path: z.string(),
1214
1214
  key: z.string(),
1215
1215
  display_name: z.string().optional(),
@@ -1317,7 +1317,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
1317
1317
  z.ZodTypeDef,
1318
1318
  unknown
1319
1319
  > = z.object({
1320
- _id: z.string().default("tool_01KFJQ5Y1DFKPNEZ3J9B4GG7NG"),
1320
+ _id: z.string().default("tool_01KFMNRMDBD75KHNWPEENDD6KK"),
1321
1321
  path: z.string(),
1322
1322
  key: z.string(),
1323
1323
  display_name: z.string().optional(),