@orq-ai/node 3.14.37 → 3.14.39

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 (121) hide show
  1. package/bin/mcp-server.js +210 -210
  2. package/bin/mcp-server.js.map +35 -35
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.js +3 -3
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/operations/createbudget.js +2 -2
  10. package/models/operations/createcontact.js +2 -2
  11. package/models/operations/createdataset.js +2 -2
  12. package/models/operations/createdatasetitem.js +8 -8
  13. package/models/operations/createdatasource.js +2 -2
  14. package/models/operations/createeval.js +28 -28
  15. package/models/operations/createtool.js +10 -10
  16. package/models/operations/duplicatetool.js +10 -10
  17. package/models/operations/fileget.js +2 -2
  18. package/models/operations/filelist.js +2 -2
  19. package/models/operations/fileupload.js +2 -2
  20. package/models/operations/getalltools.js +10 -10
  21. package/models/operations/getbudget.js +2 -2
  22. package/models/operations/getevals.js +28 -28
  23. package/models/operations/listbudgets.js +2 -2
  24. package/models/operations/listcontacts.js +2 -2
  25. package/models/operations/listdatasetdatapoints.js +8 -8
  26. package/models/operations/listdatasets.js +2 -2
  27. package/models/operations/listdatasources.js +2 -2
  28. package/models/operations/retrievecontact.js +2 -2
  29. package/models/operations/retrievedatapoint.js +8 -8
  30. package/models/operations/retrievedataset.js +2 -2
  31. package/models/operations/retrievedatasource.js +2 -2
  32. package/models/operations/retrievetool.js +10 -10
  33. package/models/operations/updatebudget.js +2 -2
  34. package/models/operations/updatecontact.js +2 -2
  35. package/models/operations/updatedatapoint.js +8 -8
  36. package/models/operations/updatedataset.js +2 -2
  37. package/models/operations/updatedatasource.js +2 -2
  38. package/models/operations/updateeval.js +28 -28
  39. package/models/operations/updatetool.js +10 -10
  40. package/package.json +1 -1
  41. package/packages/orq-rc/docs/sdks/agents/README.md +2 -0
  42. package/packages/orq-rc/examples/package-lock.json +2 -10
  43. package/packages/orq-rc/jsr.json +1 -1
  44. package/packages/orq-rc/package-lock.json +3 -27
  45. package/packages/orq-rc/package.json +3 -6
  46. package/packages/orq-rc/src/lib/config.ts +3 -3
  47. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  48. package/packages/orq-rc/src/mcp-server/server.ts +1 -1
  49. package/packages/orq-rc/src/models/operations/createagent.ts +138 -3
  50. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  51. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  52. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  53. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
  54. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  55. package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
  56. package/packages/orq-rc/src/models/operations/createtool.ts +10 -10
  57. package/packages/orq-rc/src/models/operations/duplicateagent.ts +71 -0
  58. package/packages/orq-rc/src/models/operations/duplicatetool.ts +10 -10
  59. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  60. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  61. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  62. package/packages/orq-rc/src/models/operations/getagent.ts +67 -0
  63. package/packages/orq-rc/src/models/operations/getalltools.ts +10 -10
  64. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  65. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  66. package/packages/orq-rc/src/models/operations/listagents.ts +69 -0
  67. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  68. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  69. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
  70. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  71. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  72. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  73. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
  74. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  75. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  76. package/packages/orq-rc/src/models/operations/retrievetool.ts +10 -10
  77. package/packages/orq-rc/src/models/operations/runagent.ts +75 -1
  78. package/packages/orq-rc/src/models/operations/streamrunagent.ts +77 -1
  79. package/packages/orq-rc/src/models/operations/syncmcptool.ts +10 -10
  80. package/packages/orq-rc/src/models/operations/updateagent.ts +145 -3
  81. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  82. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  83. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
  84. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  85. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  86. package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
  87. package/packages/orq-rc/src/models/operations/updatetool.ts +10 -10
  88. package/src/lib/config.ts +3 -3
  89. package/src/mcp-server/mcp-server.ts +1 -1
  90. package/src/mcp-server/server.ts +1 -1
  91. package/src/models/operations/createbudget.ts +2 -2
  92. package/src/models/operations/createcontact.ts +2 -2
  93. package/src/models/operations/createdataset.ts +2 -2
  94. package/src/models/operations/createdatasetitem.ts +8 -8
  95. package/src/models/operations/createdatasource.ts +2 -2
  96. package/src/models/operations/createeval.ts +28 -28
  97. package/src/models/operations/createtool.ts +10 -10
  98. package/src/models/operations/duplicatetool.ts +10 -10
  99. package/src/models/operations/fileget.ts +2 -2
  100. package/src/models/operations/filelist.ts +2 -2
  101. package/src/models/operations/fileupload.ts +2 -2
  102. package/src/models/operations/getalltools.ts +10 -10
  103. package/src/models/operations/getbudget.ts +2 -2
  104. package/src/models/operations/getevals.ts +28 -28
  105. package/src/models/operations/listbudgets.ts +2 -2
  106. package/src/models/operations/listcontacts.ts +2 -2
  107. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  108. package/src/models/operations/listdatasets.ts +2 -2
  109. package/src/models/operations/listdatasources.ts +2 -2
  110. package/src/models/operations/retrievecontact.ts +2 -2
  111. package/src/models/operations/retrievedatapoint.ts +8 -8
  112. package/src/models/operations/retrievedataset.ts +2 -2
  113. package/src/models/operations/retrievedatasource.ts +2 -2
  114. package/src/models/operations/retrievetool.ts +10 -10
  115. package/src/models/operations/updatebudget.ts +2 -2
  116. package/src/models/operations/updatecontact.ts +2 -2
  117. package/src/models/operations/updatedatapoint.ts +8 -8
  118. package/src/models/operations/updatedataset.ts +2 -2
  119. package/src/models/operations/updatedatasource.ts +2 -2
  120. package/src/models/operations/updateeval.ts +28 -28
  121. package/src/models/operations/updatetool.ts +10 -10
@@ -333,10 +333,24 @@ export type StreamRunAgentModelConfigurationParameters = {
333
333
  | undefined;
334
334
  };
335
335
 
336
+ /**
337
+ * Retry configuration for model requests. Retries are triggered for specific HTTP status codes (e.g., 500, 429, 502, 503, 504). Supports configurable retry count (1-5) and custom status codes.
338
+ */
339
+ export type StreamRunAgentModelConfigurationRetry = {
340
+ /**
341
+ * Number of retry attempts (1-5)
342
+ */
343
+ count?: number | undefined;
344
+ /**
345
+ * HTTP status codes that trigger retry logic
346
+ */
347
+ onCodes?: Array<number> | undefined;
348
+ };
349
+
336
350
  /**
337
351
  * @remarks
338
352
  *
339
- * Model configuration with parameters.
353
+ * Model configuration with parameters and retry settings.
340
354
  */
341
355
  export type StreamRunAgentModelConfiguration2 = {
342
356
  /**
@@ -347,6 +361,10 @@ export type StreamRunAgentModelConfiguration2 = {
347
361
  * Model behavior parameters that control how the model generates responses. Common parameters: `temperature` (0-1, randomness), `max_completion_tokens` (max output length), `top_p` (sampling diversity). Advanced: `frequency_penalty`, `presence_penalty`, `response_format` (JSON/structured), `reasoning_effort`, `seed` (reproducibility). Support varies by model - consult AI Gateway documentation.
348
362
  */
349
363
  parameters?: StreamRunAgentModelConfigurationParameters | undefined;
364
+ /**
365
+ * Retry configuration for model requests. Retries are triggered for specific HTTP status codes (e.g., 500, 429, 502, 503, 504). Supports configurable retry count (1-5) and custom status codes.
366
+ */
367
+ retry?: StreamRunAgentModelConfigurationRetry | undefined;
350
368
  };
351
369
 
352
370
  /**
@@ -2616,6 +2634,59 @@ export function streamRunAgentModelConfigurationParametersFromJSON(
2616
2634
  );
2617
2635
  }
2618
2636
 
2637
+ /** @internal */
2638
+ export const StreamRunAgentModelConfigurationRetry$inboundSchema: z.ZodType<
2639
+ StreamRunAgentModelConfigurationRetry,
2640
+ z.ZodTypeDef,
2641
+ unknown
2642
+ > = z.object({
2643
+ count: z.number().default(3),
2644
+ on_codes: z.array(z.number()).optional(),
2645
+ }).transform((v) => {
2646
+ return remap$(v, {
2647
+ "on_codes": "onCodes",
2648
+ });
2649
+ });
2650
+ /** @internal */
2651
+ export type StreamRunAgentModelConfigurationRetry$Outbound = {
2652
+ count: number;
2653
+ on_codes?: Array<number> | undefined;
2654
+ };
2655
+
2656
+ /** @internal */
2657
+ export const StreamRunAgentModelConfigurationRetry$outboundSchema: z.ZodType<
2658
+ StreamRunAgentModelConfigurationRetry$Outbound,
2659
+ z.ZodTypeDef,
2660
+ StreamRunAgentModelConfigurationRetry
2661
+ > = z.object({
2662
+ count: z.number().default(3),
2663
+ onCodes: z.array(z.number()).optional(),
2664
+ }).transform((v) => {
2665
+ return remap$(v, {
2666
+ onCodes: "on_codes",
2667
+ });
2668
+ });
2669
+
2670
+ export function streamRunAgentModelConfigurationRetryToJSON(
2671
+ streamRunAgentModelConfigurationRetry: StreamRunAgentModelConfigurationRetry,
2672
+ ): string {
2673
+ return JSON.stringify(
2674
+ StreamRunAgentModelConfigurationRetry$outboundSchema.parse(
2675
+ streamRunAgentModelConfigurationRetry,
2676
+ ),
2677
+ );
2678
+ }
2679
+ export function streamRunAgentModelConfigurationRetryFromJSON(
2680
+ jsonString: string,
2681
+ ): SafeParseResult<StreamRunAgentModelConfigurationRetry, SDKValidationError> {
2682
+ return safeParse(
2683
+ jsonString,
2684
+ (x) =>
2685
+ StreamRunAgentModelConfigurationRetry$inboundSchema.parse(JSON.parse(x)),
2686
+ `Failed to parse 'StreamRunAgentModelConfigurationRetry' from JSON`,
2687
+ );
2688
+ }
2689
+
2619
2690
  /** @internal */
2620
2691
  export const StreamRunAgentModelConfiguration2$inboundSchema: z.ZodType<
2621
2692
  StreamRunAgentModelConfiguration2,
@@ -2626,11 +2697,14 @@ export const StreamRunAgentModelConfiguration2$inboundSchema: z.ZodType<
2626
2697
  parameters: z.lazy(() =>
2627
2698
  StreamRunAgentModelConfigurationParameters$inboundSchema
2628
2699
  ).optional(),
2700
+ retry: z.lazy(() => StreamRunAgentModelConfigurationRetry$inboundSchema)
2701
+ .optional(),
2629
2702
  });
2630
2703
  /** @internal */
2631
2704
  export type StreamRunAgentModelConfiguration2$Outbound = {
2632
2705
  id: string;
2633
2706
  parameters?: StreamRunAgentModelConfigurationParameters$Outbound | undefined;
2707
+ retry?: StreamRunAgentModelConfigurationRetry$Outbound | undefined;
2634
2708
  };
2635
2709
 
2636
2710
  /** @internal */
@@ -2643,6 +2717,8 @@ export const StreamRunAgentModelConfiguration2$outboundSchema: z.ZodType<
2643
2717
  parameters: z.lazy(() =>
2644
2718
  StreamRunAgentModelConfigurationParameters$outboundSchema
2645
2719
  ).optional(),
2720
+ retry: z.lazy(() => StreamRunAgentModelConfigurationRetry$outboundSchema)
2721
+ .optional(),
2646
2722
  });
2647
2723
 
2648
2724
  export function streamRunAgentModelConfiguration2ToJSON(
@@ -978,7 +978,7 @@ export const SyncMcpToolResponseBody5$inboundSchema: z.ZodType<
978
978
  z.ZodTypeDef,
979
979
  unknown
980
980
  > = z.object({
981
- _id: z.string().default("tool_01KA114QVVB69RG52TT3RQ724P"),
981
+ _id: z.string().default("tool_01KA3CD2EWMA13W49J1T6JH6DW"),
982
982
  path: z.string(),
983
983
  key: z.string(),
984
984
  display_name: z.string().optional(),
@@ -1037,7 +1037,7 @@ export const SyncMcpToolResponseBody5$outboundSchema: z.ZodType<
1037
1037
  z.ZodTypeDef,
1038
1038
  SyncMcpToolResponseBody5
1039
1039
  > = z.object({
1040
- id: z.string().default("tool_01KA114QVVB69RG52TT3RQ724P"),
1040
+ id: z.string().default("tool_01KA3CD2EWMA13W49J1T6JH6DW"),
1041
1041
  path: z.string(),
1042
1042
  key: z.string(),
1043
1043
  displayName: z.string().optional(),
@@ -1388,7 +1388,7 @@ export const SyncMcpToolResponseBody4$inboundSchema: z.ZodType<
1388
1388
  z.ZodTypeDef,
1389
1389
  unknown
1390
1390
  > = z.object({
1391
- _id: z.string().default("tool_01KA114QVSK53MQBXZTHNHHGZ7"),
1391
+ _id: z.string().default("tool_01KA3CD2ET45XAMJ36T47FRV1Z"),
1392
1392
  path: z.string(),
1393
1393
  key: z.string(),
1394
1394
  display_name: z.string().optional(),
@@ -1445,7 +1445,7 @@ export const SyncMcpToolResponseBody4$outboundSchema: z.ZodType<
1445
1445
  z.ZodTypeDef,
1446
1446
  SyncMcpToolResponseBody4
1447
1447
  > = z.object({
1448
- id: z.string().default("tool_01KA114QVSK53MQBXZTHNHHGZ7"),
1448
+ id: z.string().default("tool_01KA3CD2ET45XAMJ36T47FRV1Z"),
1449
1449
  path: z.string(),
1450
1450
  key: z.string(),
1451
1451
  displayName: z.string().optional(),
@@ -1873,7 +1873,7 @@ export const SyncMcpToolResponseBody3$inboundSchema: z.ZodType<
1873
1873
  z.ZodTypeDef,
1874
1874
  unknown
1875
1875
  > = z.object({
1876
- _id: z.string().default("tool_01KA114QVP260BXZK3PGP9B2CA"),
1876
+ _id: z.string().default("tool_01KA3CD2ESRPA40YBJ0ED0A5CA"),
1877
1877
  path: z.string(),
1878
1878
  key: z.string(),
1879
1879
  display_name: z.string().optional(),
@@ -1928,7 +1928,7 @@ export const SyncMcpToolResponseBody3$outboundSchema: z.ZodType<
1928
1928
  z.ZodTypeDef,
1929
1929
  SyncMcpToolResponseBody3
1930
1930
  > = z.object({
1931
- id: z.string().default("tool_01KA114QVP260BXZK3PGP9B2CA"),
1931
+ id: z.string().default("tool_01KA3CD2ESRPA40YBJ0ED0A5CA"),
1932
1932
  path: z.string(),
1933
1933
  key: z.string(),
1934
1934
  displayName: z.string().optional(),
@@ -2157,7 +2157,7 @@ export const SyncMcpToolResponseBody2$inboundSchema: z.ZodType<
2157
2157
  z.ZodTypeDef,
2158
2158
  unknown
2159
2159
  > = z.object({
2160
- _id: z.string().default("tool_01KA114QVK508N4J3C540HPBG9"),
2160
+ _id: z.string().default("tool_01KA3CD2EQX7246HYJZZNC9W8T"),
2161
2161
  path: z.string(),
2162
2162
  key: z.string(),
2163
2163
  display_name: z.string().optional(),
@@ -2211,7 +2211,7 @@ export const SyncMcpToolResponseBody2$outboundSchema: z.ZodType<
2211
2211
  z.ZodTypeDef,
2212
2212
  SyncMcpToolResponseBody2
2213
2213
  > = z.object({
2214
- id: z.string().default("tool_01KA114QVK508N4J3C540HPBG9"),
2214
+ id: z.string().default("tool_01KA3CD2EQX7246HYJZZNC9W8T"),
2215
2215
  path: z.string(),
2216
2216
  key: z.string(),
2217
2217
  displayName: z.string().optional(),
@@ -2450,7 +2450,7 @@ export const SyncMcpToolResponseBody1$inboundSchema: z.ZodType<
2450
2450
  z.ZodTypeDef,
2451
2451
  unknown
2452
2452
  > = z.object({
2453
- _id: z.string().default("tool_01KA114QVHBHXSG1HVG7PF59GQ"),
2453
+ _id: z.string().default("tool_01KA3CD2EP46WE8283NS8ZYHPT"),
2454
2454
  path: z.string(),
2455
2455
  key: z.string(),
2456
2456
  display_name: z.string().optional(),
@@ -2503,7 +2503,7 @@ export const SyncMcpToolResponseBody1$outboundSchema: z.ZodType<
2503
2503
  z.ZodTypeDef,
2504
2504
  SyncMcpToolResponseBody1
2505
2505
  > = z.object({
2506
- id: z.string().default("tool_01KA114QVHBHXSG1HVG7PF59GQ"),
2506
+ id: z.string().default("tool_01KA3CD2EP46WE8283NS8ZYHPT"),
2507
2507
  path: z.string(),
2508
2508
  key: z.string(),
2509
2509
  displayName: z.string().optional(),
@@ -319,10 +319,24 @@ export type ModelConfigurationParameters = {
319
319
  modalities?: Array<ModelConfigurationModalities> | null | undefined;
320
320
  };
321
321
 
322
+ /**
323
+ * Retry configuration for model requests. Retries are triggered for specific HTTP status codes (e.g., 500, 429, 502, 503, 504). Supports configurable retry count (1-5) and custom status codes.
324
+ */
325
+ export type ModelConfigurationRetry = {
326
+ /**
327
+ * Number of retry attempts (1-5)
328
+ */
329
+ count?: number | undefined;
330
+ /**
331
+ * HTTP status codes that trigger retry logic
332
+ */
333
+ onCodes?: Array<number> | undefined;
334
+ };
335
+
322
336
  /**
323
337
  * @remarks
324
338
  *
325
- * Model configuration with parameters.
339
+ * Model configuration with parameters and retry settings.
326
340
  */
327
341
  export type UpdateAgentModelConfiguration2 = {
328
342
  /**
@@ -333,10 +347,14 @@ export type UpdateAgentModelConfiguration2 = {
333
347
  * Model behavior parameters that control how the model generates responses. Common parameters: `temperature` (0-1, randomness), `max_completion_tokens` (max output length), `top_p` (sampling diversity). Advanced: `frequency_penalty`, `presence_penalty`, `response_format` (JSON/structured), `reasoning_effort`, `seed` (reproducibility). Support varies by model - consult AI Gateway documentation.
334
348
  */
335
349
  parameters?: ModelConfigurationParameters | undefined;
350
+ /**
351
+ * Retry configuration for model requests. Retries are triggered for specific HTTP status codes (e.g., 500, 429, 502, 503, 504). Supports configurable retry count (1-5) and custom status codes.
352
+ */
353
+ retry?: ModelConfigurationRetry | undefined;
336
354
  };
337
355
 
338
356
  /**
339
- * Model configuration for agent execution. Can be a simple model ID string or a configuration object with optional behavior parameters.
357
+ * Model configuration for agent execution. Can be a simple model ID string or a configuration object with optional behavior parameters and retry settings.
340
358
  */
341
359
  export type UpdateAgentModelConfiguration =
342
360
  | UpdateAgentModelConfiguration2
@@ -1219,7 +1237,7 @@ export type UpdateAgentRequestBody = {
1219
1237
  */
1220
1238
  systemPrompt?: string | undefined;
1221
1239
  /**
1222
- * Model configuration for agent execution. Can be a simple model ID string or a configuration object with optional behavior parameters.
1240
+ * Model configuration for agent execution. Can be a simple model ID string or a configuration object with optional behavior parameters and retry settings.
1223
1241
  */
1224
1242
  model?: UpdateAgentModelConfiguration2 | string | undefined;
1225
1243
  /**
@@ -1719,6 +1737,20 @@ export type UpdateAgentParameters = {
1719
1737
  modalities?: Array<UpdateAgentModalities> | null | undefined;
1720
1738
  };
1721
1739
 
1740
+ /**
1741
+ * Retry configuration for model requests. Allows customizing retry count (1-5) and HTTP status codes that trigger retries. Default codes: [429]. Common codes: 500 (internal error), 429 (rate limit), 502/503/504 (gateway errors).
1742
+ */
1743
+ export type UpdateAgentRetry = {
1744
+ /**
1745
+ * Number of retry attempts (1-5)
1746
+ */
1747
+ count?: number | undefined;
1748
+ /**
1749
+ * HTTP status codes that trigger retry logic
1750
+ */
1751
+ onCodes?: Array<number> | undefined;
1752
+ };
1753
+
1722
1754
  /**
1723
1755
  * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
1724
1756
  */
@@ -2090,6 +2122,10 @@ export type UpdateAgentModel = {
2090
2122
  * Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-1, controls randomness), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults.
2091
2123
  */
2092
2124
  parameters?: UpdateAgentParameters | undefined;
2125
+ /**
2126
+ * Retry configuration for model requests. Allows customizing retry count (1-5) and HTTP status codes that trigger retries. Default codes: [429]. Common codes: 500 (internal error), 429 (rate limit), 502/503/504 (gateway errors).
2127
+ */
2128
+ retry?: UpdateAgentRetry | undefined;
2093
2129
  /**
2094
2130
  * Optional array of fallback models (string IDs or config objects) that will be used automatically in order if the primary model fails
2095
2131
  */
@@ -2960,6 +2996,56 @@ export function modelConfigurationParametersFromJSON(
2960
2996
  );
2961
2997
  }
2962
2998
 
2999
+ /** @internal */
3000
+ export const ModelConfigurationRetry$inboundSchema: z.ZodType<
3001
+ ModelConfigurationRetry,
3002
+ z.ZodTypeDef,
3003
+ unknown
3004
+ > = z.object({
3005
+ count: z.number().default(3),
3006
+ on_codes: z.array(z.number()).optional(),
3007
+ }).transform((v) => {
3008
+ return remap$(v, {
3009
+ "on_codes": "onCodes",
3010
+ });
3011
+ });
3012
+ /** @internal */
3013
+ export type ModelConfigurationRetry$Outbound = {
3014
+ count: number;
3015
+ on_codes?: Array<number> | undefined;
3016
+ };
3017
+
3018
+ /** @internal */
3019
+ export const ModelConfigurationRetry$outboundSchema: z.ZodType<
3020
+ ModelConfigurationRetry$Outbound,
3021
+ z.ZodTypeDef,
3022
+ ModelConfigurationRetry
3023
+ > = z.object({
3024
+ count: z.number().default(3),
3025
+ onCodes: z.array(z.number()).optional(),
3026
+ }).transform((v) => {
3027
+ return remap$(v, {
3028
+ onCodes: "on_codes",
3029
+ });
3030
+ });
3031
+
3032
+ export function modelConfigurationRetryToJSON(
3033
+ modelConfigurationRetry: ModelConfigurationRetry,
3034
+ ): string {
3035
+ return JSON.stringify(
3036
+ ModelConfigurationRetry$outboundSchema.parse(modelConfigurationRetry),
3037
+ );
3038
+ }
3039
+ export function modelConfigurationRetryFromJSON(
3040
+ jsonString: string,
3041
+ ): SafeParseResult<ModelConfigurationRetry, SDKValidationError> {
3042
+ return safeParse(
3043
+ jsonString,
3044
+ (x) => ModelConfigurationRetry$inboundSchema.parse(JSON.parse(x)),
3045
+ `Failed to parse 'ModelConfigurationRetry' from JSON`,
3046
+ );
3047
+ }
3048
+
2963
3049
  /** @internal */
2964
3050
  export const UpdateAgentModelConfiguration2$inboundSchema: z.ZodType<
2965
3051
  UpdateAgentModelConfiguration2,
@@ -2969,11 +3055,13 @@ export const UpdateAgentModelConfiguration2$inboundSchema: z.ZodType<
2969
3055
  id: z.string(),
2970
3056
  parameters: z.lazy(() => ModelConfigurationParameters$inboundSchema)
2971
3057
  .optional(),
3058
+ retry: z.lazy(() => ModelConfigurationRetry$inboundSchema).optional(),
2972
3059
  });
2973
3060
  /** @internal */
2974
3061
  export type UpdateAgentModelConfiguration2$Outbound = {
2975
3062
  id: string;
2976
3063
  parameters?: ModelConfigurationParameters$Outbound | undefined;
3064
+ retry?: ModelConfigurationRetry$Outbound | undefined;
2977
3065
  };
2978
3066
 
2979
3067
  /** @internal */
@@ -2985,6 +3073,7 @@ export const UpdateAgentModelConfiguration2$outboundSchema: z.ZodType<
2985
3073
  id: z.string(),
2986
3074
  parameters: z.lazy(() => ModelConfigurationParameters$outboundSchema)
2987
3075
  .optional(),
3076
+ retry: z.lazy(() => ModelConfigurationRetry$outboundSchema).optional(),
2988
3077
  });
2989
3078
 
2990
3079
  export function updateAgentModelConfiguration2ToJSON(
@@ -6895,6 +6984,56 @@ export function updateAgentParametersFromJSON(
6895
6984
  );
6896
6985
  }
6897
6986
 
6987
+ /** @internal */
6988
+ export const UpdateAgentRetry$inboundSchema: z.ZodType<
6989
+ UpdateAgentRetry,
6990
+ z.ZodTypeDef,
6991
+ unknown
6992
+ > = z.object({
6993
+ count: z.number().default(3),
6994
+ on_codes: z.array(z.number()).optional(),
6995
+ }).transform((v) => {
6996
+ return remap$(v, {
6997
+ "on_codes": "onCodes",
6998
+ });
6999
+ });
7000
+ /** @internal */
7001
+ export type UpdateAgentRetry$Outbound = {
7002
+ count: number;
7003
+ on_codes?: Array<number> | undefined;
7004
+ };
7005
+
7006
+ /** @internal */
7007
+ export const UpdateAgentRetry$outboundSchema: z.ZodType<
7008
+ UpdateAgentRetry$Outbound,
7009
+ z.ZodTypeDef,
7010
+ UpdateAgentRetry
7011
+ > = z.object({
7012
+ count: z.number().default(3),
7013
+ onCodes: z.array(z.number()).optional(),
7014
+ }).transform((v) => {
7015
+ return remap$(v, {
7016
+ onCodes: "on_codes",
7017
+ });
7018
+ });
7019
+
7020
+ export function updateAgentRetryToJSON(
7021
+ updateAgentRetry: UpdateAgentRetry,
7022
+ ): string {
7023
+ return JSON.stringify(
7024
+ UpdateAgentRetry$outboundSchema.parse(updateAgentRetry),
7025
+ );
7026
+ }
7027
+ export function updateAgentRetryFromJSON(
7028
+ jsonString: string,
7029
+ ): SafeParseResult<UpdateAgentRetry, SDKValidationError> {
7030
+ return safeParse(
7031
+ jsonString,
7032
+ (x) => UpdateAgentRetry$inboundSchema.parse(JSON.parse(x)),
7033
+ `Failed to parse 'UpdateAgentRetry' from JSON`,
7034
+ );
7035
+ }
7036
+
6898
7037
  /** @internal */
6899
7038
  export const UpdateAgentFallbackModelConfigurationAgentsVoice$inboundSchema:
6900
7039
  z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationAgentsVoice> = z
@@ -7990,6 +8129,7 @@ export const UpdateAgentModel$inboundSchema: z.ZodType<
7990
8129
  id: z.string(),
7991
8130
  integration_id: z.nullable(z.string()).optional(),
7992
8131
  parameters: z.lazy(() => UpdateAgentParameters$inboundSchema).optional(),
8132
+ retry: z.lazy(() => UpdateAgentRetry$inboundSchema).optional(),
7993
8133
  fallback_models: z.nullable(
7994
8134
  z.array(z.union([
7995
8135
  z.lazy(() => UpdateAgentFallbackModelConfigurationAgents2$inboundSchema),
@@ -8007,6 +8147,7 @@ export type UpdateAgentModel$Outbound = {
8007
8147
  id: string;
8008
8148
  integration_id?: string | null | undefined;
8009
8149
  parameters?: UpdateAgentParameters$Outbound | undefined;
8150
+ retry?: UpdateAgentRetry$Outbound | undefined;
8010
8151
  fallback_models?:
8011
8152
  | Array<UpdateAgentFallbackModelConfigurationAgents2$Outbound | string>
8012
8153
  | null
@@ -8022,6 +8163,7 @@ export const UpdateAgentModel$outboundSchema: z.ZodType<
8022
8163
  id: z.string(),
8023
8164
  integrationId: z.nullable(z.string()).optional(),
8024
8165
  parameters: z.lazy(() => UpdateAgentParameters$outboundSchema).optional(),
8166
+ retry: z.lazy(() => UpdateAgentRetry$outboundSchema).optional(),
8025
8167
  fallbackModels: z.nullable(
8026
8168
  z.array(z.union([
8027
8169
  z.lazy(() => UpdateAgentFallbackModelConfigurationAgents2$outboundSchema),
@@ -436,7 +436,7 @@ export const UpdateBudgetResponseBody$inboundSchema: z.ZodType<
436
436
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
437
437
  .optional(),
438
438
  updated: z.string().datetime({ offset: true }).default(
439
- "2025-11-14T11:13:39.771Z",
439
+ "2025-11-15T09:08:59.189Z",
440
440
  ).transform(v => new Date(v)),
441
441
  }).transform((v) => {
442
442
  return remap$(v, {
@@ -473,7 +473,7 @@ export const UpdateBudgetResponseBody$outboundSchema: z.ZodType<
473
473
  isActive: z.boolean(),
474
474
  consumption: z.lazy(() => UpdateBudgetConsumption$outboundSchema).optional(),
475
475
  created: z.date().transform(v => v.toISOString()).optional(),
476
- updated: z.date().default(() => new Date("2025-11-14T11:13:39.771Z"))
476
+ updated: z.date().default(() => new Date("2025-11-15T09:08:59.189Z"))
477
477
  .transform(v => v.toISOString()),
478
478
  }).transform((v) => {
479
479
  return remap$(v, {
@@ -214,7 +214,7 @@ export const UpdateContactResponseBody$inboundSchema: z.ZodType<
214
214
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
215
215
  .optional(),
216
216
  updated: z.string().datetime({ offset: true }).default(
217
- "2025-11-14T11:13:39.457Z",
217
+ "2025-11-15T09:08:58.855Z",
218
218
  ).transform(v => new Date(v)),
219
219
  }).transform((v) => {
220
220
  return remap$(v, {
@@ -251,7 +251,7 @@ export const UpdateContactResponseBody$outboundSchema: z.ZodType<
251
251
  tags: z.array(z.string()).optional(),
252
252
  metadata: z.record(z.any()).optional(),
253
253
  created: z.date().transform(v => v.toISOString()).optional(),
254
- updated: z.date().default(() => new Date("2025-11-14T11:13:39.457Z"))
254
+ updated: z.date().default(() => new Date("2025-11-15T09:08:58.855Z"))
255
255
  .transform(v => v.toISOString()),
256
256
  }).transform((v) => {
257
257
  return remap$(v, {
@@ -4893,7 +4893,7 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
4893
4893
  .default("orq"),
4894
4894
  reviewed_by_id: z.string(),
4895
4895
  reviewed_at: z.string().datetime({ offset: true }).default(
4896
- "2025-11-14T11:13:54.008Z",
4896
+ "2025-11-15T09:09:09.966Z",
4897
4897
  ).transform(v => new Date(v)),
4898
4898
  type: UpdateDatapointEvaluationsDatasetsResponseType$inboundSchema,
4899
4899
  values: z.array(z.string()),
@@ -4930,7 +4930,7 @@ export const UpdateDatapointEvaluations3$outboundSchema: z.ZodType<
4930
4930
  source: UpdateDatapointEvaluationsDatasetsResponseSource$outboundSchema
4931
4931
  .default("orq"),
4932
4932
  reviewedById: z.string(),
4933
- reviewedAt: z.date().default(() => new Date("2025-11-14T11:13:54.008Z"))
4933
+ reviewedAt: z.date().default(() => new Date("2025-11-15T09:09:09.966Z"))
4934
4934
  .transform(v => v.toISOString()),
4935
4935
  type: UpdateDatapointEvaluationsDatasetsResponseType$outboundSchema,
4936
4936
  values: z.array(z.string()),
@@ -5003,7 +5003,7 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
5003
5003
  source: UpdateDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
5004
5004
  reviewed_by_id: z.string(),
5005
5005
  reviewed_at: z.string().datetime({ offset: true }).default(
5006
- "2025-11-14T11:13:54.008Z",
5006
+ "2025-11-15T09:09:09.966Z",
5007
5007
  ).transform(v => new Date(v)),
5008
5008
  type: UpdateDatapointEvaluationsDatasetsType$inboundSchema,
5009
5009
  value: z.number(),
@@ -5041,7 +5041,7 @@ export const UpdateDatapointEvaluations2$outboundSchema: z.ZodType<
5041
5041
  "orq",
5042
5042
  ),
5043
5043
  reviewedById: z.string(),
5044
- reviewedAt: z.date().default(() => new Date("2025-11-14T11:13:54.008Z"))
5044
+ reviewedAt: z.date().default(() => new Date("2025-11-15T09:09:09.966Z"))
5045
5045
  .transform(v => v.toISOString()),
5046
5046
  type: UpdateDatapointEvaluationsDatasetsType$outboundSchema,
5047
5047
  value: z.number(),
@@ -5112,7 +5112,7 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
5112
5112
  source: UpdateDatapointEvaluationsSource$inboundSchema.default("orq"),
5113
5113
  reviewed_by_id: z.string(),
5114
5114
  reviewed_at: z.string().datetime({ offset: true }).default(
5115
- "2025-11-14T11:13:54.007Z",
5115
+ "2025-11-15T09:09:09.965Z",
5116
5116
  ).transform(v => new Date(v)),
5117
5117
  type: UpdateDatapointEvaluationsType$inboundSchema,
5118
5118
  value: z.string(),
@@ -5147,7 +5147,7 @@ export const UpdateDatapointEvaluations1$outboundSchema: z.ZodType<
5147
5147
  humanReviewId: z.string(),
5148
5148
  source: UpdateDatapointEvaluationsSource$outboundSchema.default("orq"),
5149
5149
  reviewedById: z.string(),
5150
- reviewedAt: z.date().default(() => new Date("2025-11-14T11:13:54.007Z"))
5150
+ reviewedAt: z.date().default(() => new Date("2025-11-15T09:09:09.965Z"))
5151
5151
  .transform(v => v.toISOString()),
5152
5152
  type: UpdateDatapointEvaluationsType$outboundSchema,
5153
5153
  value: z.string(),
@@ -5262,7 +5262,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
5262
5262
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
5263
5263
  .optional(),
5264
5264
  updated: z.string().datetime({ offset: true }).default(
5265
- "2025-11-14T11:13:39.457Z",
5265
+ "2025-11-15T09:08:58.855Z",
5266
5266
  ).transform(v => new Date(v)),
5267
5267
  }).transform((v) => {
5268
5268
  return remap$(v, {
@@ -5340,7 +5340,7 @@ export const UpdateDatapointResponseBody$outboundSchema: z.ZodType<
5340
5340
  createdById: z.string().optional(),
5341
5341
  updatedById: z.string().optional(),
5342
5342
  created: z.date().transform(v => v.toISOString()).optional(),
5343
- updated: z.date().default(() => new Date("2025-11-14T11:13:39.457Z"))
5343
+ updated: z.date().default(() => new Date("2025-11-15T09:08:58.855Z"))
5344
5344
  .transform(v => v.toISOString()),
5345
5345
  }).transform((v) => {
5346
5346
  return remap$(v, {
@@ -256,7 +256,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
256
256
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
257
257
  .optional(),
258
258
  updated: z.string().datetime({ offset: true }).default(
259
- "2025-11-14T11:13:39.457Z",
259
+ "2025-11-15T09:08:58.855Z",
260
260
  ).transform(v => new Date(v)),
261
261
  }).transform((v) => {
262
262
  return remap$(v, {
@@ -295,7 +295,7 @@ export const UpdateDatasetResponseBody$outboundSchema: z.ZodType<
295
295
  createdById: z.string().optional(),
296
296
  updatedById: z.string().optional(),
297
297
  created: z.date().transform(v => v.toISOString()).optional(),
298
- updated: z.date().default(() => new Date("2025-11-14T11:13:39.457Z"))
298
+ updated: z.date().default(() => new Date("2025-11-15T09:08:58.855Z"))
299
299
  .transform(v => v.toISOString()),
300
300
  }).transform((v) => {
301
301
  return remap$(v, {
@@ -202,7 +202,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
202
202
  z.ZodTypeDef,
203
203
  unknown
204
204
  > = z.object({
205
- _id: z.string().default("01KA114R49VZ58298CKZPFJDZ2"),
205
+ _id: z.string().default("01KA3CD2JCTV9NAHERKAT1GJ1K"),
206
206
  display_name: z.string(),
207
207
  description: z.string().optional(),
208
208
  status: UpdateDatasourceStatus$inboundSchema,
@@ -245,7 +245,7 @@ export const UpdateDatasourceResponseBody$outboundSchema: z.ZodType<
245
245
  z.ZodTypeDef,
246
246
  UpdateDatasourceResponseBody
247
247
  > = z.object({
248
- id: z.string().default("01KA114R49VZ58298CKZPFJDZ2"),
248
+ id: z.string().default("01KA3CD2JCTV9NAHERKAT1GJ1K"),
249
249
  displayName: z.string(),
250
250
  description: z.string().optional(),
251
251
  status: UpdateDatasourceStatus$outboundSchema,