@orq-ai/node 4.0.0-rc.45 → 4.0.0-rc.46

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 (177) hide show
  1. package/bin/mcp-server.js +727 -1532
  2. package/bin/mcp-server.js.map +56 -56
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +2 -2
  6. package/lib/config.js +2 -2
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/operations/createagent.d.ts +88 -8
  10. package/models/operations/createagent.d.ts.map +1 -1
  11. package/models/operations/createagent.js +85 -18
  12. package/models/operations/createagent.js.map +1 -1
  13. package/models/operations/createbudget.js +2 -2
  14. package/models/operations/createcontact.js +2 -2
  15. package/models/operations/createdataset.js +2 -2
  16. package/models/operations/createdatasetitem.js +8 -8
  17. package/models/operations/createdatasource.js +2 -2
  18. package/models/operations/createeval.d.ts +106 -106
  19. package/models/operations/createeval.d.ts.map +1 -1
  20. package/models/operations/createeval.js +242 -234
  21. package/models/operations/createeval.js.map +1 -1
  22. package/models/operations/creatememorystore.d.ts +10 -391
  23. package/models/operations/creatememorystore.d.ts.map +1 -1
  24. package/models/operations/creatememorystore.js +5 -565
  25. package/models/operations/creatememorystore.js.map +1 -1
  26. package/models/operations/createprompt.d.ts +40 -0
  27. package/models/operations/createprompt.d.ts.map +1 -1
  28. package/models/operations/createprompt.js +33 -7
  29. package/models/operations/createprompt.js.map +1 -1
  30. package/models/operations/createtool.js +12 -12
  31. package/models/operations/deploymentgetconfig.d.ts +20 -0
  32. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  33. package/models/operations/deploymentgetconfig.js +22 -8
  34. package/models/operations/deploymentgetconfig.js.map +1 -1
  35. package/models/operations/deployments.d.ts +20 -0
  36. package/models/operations/deployments.d.ts.map +1 -1
  37. package/models/operations/deployments.js +16 -3
  38. package/models/operations/deployments.js.map +1 -1
  39. package/models/operations/duplicateagent.d.ts +40 -0
  40. package/models/operations/duplicateagent.d.ts.map +1 -1
  41. package/models/operations/duplicateagent.js +36 -3
  42. package/models/operations/duplicateagent.js.map +1 -1
  43. package/models/operations/duplicatetool.js +12 -12
  44. package/models/operations/fileget.js +2 -2
  45. package/models/operations/filelist.js +2 -2
  46. package/models/operations/fileupload.js +2 -2
  47. package/models/operations/getagent.d.ts +40 -0
  48. package/models/operations/getagent.d.ts.map +1 -1
  49. package/models/operations/getagent.js +36 -3
  50. package/models/operations/getagent.js.map +1 -1
  51. package/models/operations/getallmemorystores.d.ts +5 -195
  52. package/models/operations/getallmemorystores.d.ts.map +1 -1
  53. package/models/operations/getallmemorystores.js +3 -273
  54. package/models/operations/getallmemorystores.js.map +1 -1
  55. package/models/operations/getallprompts.d.ts +20 -0
  56. package/models/operations/getallprompts.d.ts.map +1 -1
  57. package/models/operations/getallprompts.js +16 -3
  58. package/models/operations/getallprompts.js.map +1 -1
  59. package/models/operations/getalltools.js +12 -12
  60. package/models/operations/getbudget.js +2 -2
  61. package/models/operations/getevals.js +28 -28
  62. package/models/operations/getoneprompt.d.ts +20 -0
  63. package/models/operations/getoneprompt.d.ts.map +1 -1
  64. package/models/operations/getoneprompt.js +16 -3
  65. package/models/operations/getoneprompt.js.map +1 -1
  66. package/models/operations/getpromptversion.d.ts +20 -0
  67. package/models/operations/getpromptversion.d.ts.map +1 -1
  68. package/models/operations/getpromptversion.js +16 -2
  69. package/models/operations/getpromptversion.js.map +1 -1
  70. package/models/operations/listagents.d.ts +40 -0
  71. package/models/operations/listagents.d.ts.map +1 -1
  72. package/models/operations/listagents.js +37 -4
  73. package/models/operations/listagents.js.map +1 -1
  74. package/models/operations/listbudgets.js +2 -2
  75. package/models/operations/listcontacts.js +2 -2
  76. package/models/operations/listdatasetdatapoints.js +8 -8
  77. package/models/operations/listdatasets.js +2 -2
  78. package/models/operations/listdatasources.d.ts +5 -5
  79. package/models/operations/listdatasources.d.ts.map +1 -1
  80. package/models/operations/listdatasources.js +4 -4
  81. package/models/operations/listdatasources.js.map +1 -1
  82. package/models/operations/listpromptversions.d.ts +20 -0
  83. package/models/operations/listpromptversions.d.ts.map +1 -1
  84. package/models/operations/listpromptversions.js +16 -3
  85. package/models/operations/listpromptversions.js.map +1 -1
  86. package/models/operations/retrievecontact.js +2 -2
  87. package/models/operations/retrievedatapoint.js +8 -8
  88. package/models/operations/retrievedataset.js +2 -2
  89. package/models/operations/retrievedatasource.js +2 -2
  90. package/models/operations/retrievememorystore.d.ts +5 -196
  91. package/models/operations/retrievememorystore.d.ts.map +1 -1
  92. package/models/operations/retrievememorystore.js +3 -273
  93. package/models/operations/retrievememorystore.js.map +1 -1
  94. package/models/operations/retrievetool.js +12 -12
  95. package/models/operations/runagent.d.ts +40 -0
  96. package/models/operations/runagent.d.ts.map +1 -1
  97. package/models/operations/runagent.js +45 -10
  98. package/models/operations/runagent.js.map +1 -1
  99. package/models/operations/streamrunagent.d.ts +40 -0
  100. package/models/operations/streamrunagent.d.ts.map +1 -1
  101. package/models/operations/streamrunagent.js +44 -9
  102. package/models/operations/streamrunagent.js.map +1 -1
  103. package/models/operations/syncmcptool.js +12 -12
  104. package/models/operations/updateagent.d.ts +80 -0
  105. package/models/operations/updateagent.d.ts.map +1 -1
  106. package/models/operations/updateagent.js +73 -8
  107. package/models/operations/updateagent.js.map +1 -1
  108. package/models/operations/updatebudget.js +2 -2
  109. package/models/operations/updatecontact.js +2 -2
  110. package/models/operations/updatedatapoint.js +8 -8
  111. package/models/operations/updatedataset.js +2 -2
  112. package/models/operations/updatedatasource.js +2 -2
  113. package/models/operations/updateeval.js +28 -28
  114. package/models/operations/updatememorystore.d.ts +5 -195
  115. package/models/operations/updatememorystore.d.ts.map +1 -1
  116. package/models/operations/updatememorystore.js +3 -290
  117. package/models/operations/updatememorystore.js.map +1 -1
  118. package/models/operations/updateprompt.d.ts +40 -0
  119. package/models/operations/updateprompt.d.ts.map +1 -1
  120. package/models/operations/updateprompt.js +33 -7
  121. package/models/operations/updateprompt.js.map +1 -1
  122. package/models/operations/updatetool.js +14 -14
  123. package/package.json +1 -1
  124. package/src/lib/config.ts +2 -2
  125. package/src/mcp-server/mcp-server.ts +1 -1
  126. package/src/mcp-server/server.ts +1 -1
  127. package/src/models/operations/createagent.ts +166 -39
  128. package/src/models/operations/createbudget.ts +2 -2
  129. package/src/models/operations/createcontact.ts +2 -2
  130. package/src/models/operations/createdataset.ts +2 -2
  131. package/src/models/operations/createdatasetitem.ts +8 -8
  132. package/src/models/operations/createdatasource.ts +2 -2
  133. package/src/models/operations/createeval.ts +423 -524
  134. package/src/models/operations/creatememorystore.ts +14 -1094
  135. package/src/models/operations/createprompt.ts +60 -0
  136. package/src/models/operations/createtool.ts +12 -12
  137. package/src/models/operations/deploymentgetconfig.ts +30 -0
  138. package/src/models/operations/deployments.ts +30 -0
  139. package/src/models/operations/duplicateagent.ts +72 -0
  140. package/src/models/operations/duplicatetool.ts +12 -12
  141. package/src/models/operations/fileget.ts +2 -2
  142. package/src/models/operations/filelist.ts +2 -2
  143. package/src/models/operations/fileupload.ts +2 -2
  144. package/src/models/operations/getagent.ts +65 -0
  145. package/src/models/operations/getallmemorystores.ts +7 -595
  146. package/src/models/operations/getallprompts.ts +30 -0
  147. package/src/models/operations/getalltools.ts +12 -12
  148. package/src/models/operations/getbudget.ts +2 -2
  149. package/src/models/operations/getevals.ts +28 -28
  150. package/src/models/operations/getoneprompt.ts +30 -0
  151. package/src/models/operations/getpromptversion.ts +30 -0
  152. package/src/models/operations/listagents.ts +68 -0
  153. package/src/models/operations/listbudgets.ts +2 -2
  154. package/src/models/operations/listcontacts.ts +2 -2
  155. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  156. package/src/models/operations/listdatasets.ts +2 -2
  157. package/src/models/operations/listdatasources.ts +9 -9
  158. package/src/models/operations/listpromptversions.ts +30 -0
  159. package/src/models/operations/retrievecontact.ts +2 -2
  160. package/src/models/operations/retrievedatapoint.ts +8 -8
  161. package/src/models/operations/retrievedataset.ts +2 -2
  162. package/src/models/operations/retrievedatasource.ts +2 -2
  163. package/src/models/operations/retrievememorystore.ts +7 -596
  164. package/src/models/operations/retrievetool.ts +12 -12
  165. package/src/models/operations/runagent.ts +71 -2
  166. package/src/models/operations/streamrunagent.ts +76 -2
  167. package/src/models/operations/syncmcptool.ts +12 -12
  168. package/src/models/operations/updateagent.ts +141 -0
  169. package/src/models/operations/updatebudget.ts +2 -2
  170. package/src/models/operations/updatecontact.ts +2 -2
  171. package/src/models/operations/updatedatapoint.ts +8 -8
  172. package/src/models/operations/updatedataset.ts +2 -2
  173. package/src/models/operations/updatedatasource.ts +2 -2
  174. package/src/models/operations/updateeval.ts +28 -28
  175. package/src/models/operations/updatememorystore.ts +7 -527
  176. package/src/models/operations/updateprompt.ts +60 -0
  177. package/src/models/operations/updatetool.ts +14 -14
@@ -154,6 +154,18 @@ export const ModelConfigurationType = {
154
154
  */
155
155
  export type ModelConfigurationType = ClosedEnum<typeof ModelConfigurationType>;
156
156
 
157
+ /**
158
+ * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
159
+ */
160
+ export const ThinkingLevel = {
161
+ Low: "low",
162
+ High: "high",
163
+ } as const;
164
+ /**
165
+ * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
166
+ */
167
+ export type ThinkingLevel = ClosedEnum<typeof ThinkingLevel>;
168
+
157
169
  export type Thinking = {
158
170
  /**
159
171
  * Enables or disables the thinking mode capability
@@ -163,6 +175,10 @@ export type Thinking = {
163
175
  * Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
164
176
  */
165
177
  budgetTokens: number;
178
+ /**
179
+ * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
180
+ */
181
+ thinkingLevel?: ThinkingLevel | undefined;
166
182
  };
167
183
 
168
184
  /**
@@ -495,6 +511,20 @@ export type FallbackModelConfigurationType = ClosedEnum<
495
511
  typeof FallbackModelConfigurationType
496
512
  >;
497
513
 
514
+ /**
515
+ * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
516
+ */
517
+ export const FallbackModelConfigurationThinkingLevel = {
518
+ Low: "low",
519
+ High: "high",
520
+ } as const;
521
+ /**
522
+ * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
523
+ */
524
+ export type FallbackModelConfigurationThinkingLevel = ClosedEnum<
525
+ typeof FallbackModelConfigurationThinkingLevel
526
+ >;
527
+
498
528
  export type FallbackModelConfigurationThinking = {
499
529
  /**
500
530
  * Enables or disables the thinking mode capability
@@ -504,6 +534,10 @@ export type FallbackModelConfigurationThinking = {
504
534
  * Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
505
535
  */
506
536
  budgetTokens: number;
537
+ /**
538
+ * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
539
+ */
540
+ thinkingLevel?: FallbackModelConfigurationThinkingLevel | undefined;
507
541
  };
508
542
 
509
543
  /**
@@ -1542,6 +1576,20 @@ export const CreateAgentType = {
1542
1576
  */
1543
1577
  export type CreateAgentType = ClosedEnum<typeof CreateAgentType>;
1544
1578
 
1579
+ /**
1580
+ * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
1581
+ */
1582
+ export const CreateAgentThinkingLevel = {
1583
+ Low: "low",
1584
+ High: "high",
1585
+ } as const;
1586
+ /**
1587
+ * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
1588
+ */
1589
+ export type CreateAgentThinkingLevel = ClosedEnum<
1590
+ typeof CreateAgentThinkingLevel
1591
+ >;
1592
+
1545
1593
  export type CreateAgentThinking = {
1546
1594
  /**
1547
1595
  * Enables or disables the thinking mode capability
@@ -1551,6 +1599,10 @@ export type CreateAgentThinking = {
1551
1599
  * Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
1552
1600
  */
1553
1601
  budgetTokens: number;
1602
+ /**
1603
+ * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
1604
+ */
1605
+ thinkingLevel?: CreateAgentThinkingLevel | undefined;
1554
1606
  };
1555
1607
 
1556
1608
  /**
@@ -1881,6 +1933,20 @@ export type CreateAgentFallbackModelConfigurationType = ClosedEnum<
1881
1933
  typeof CreateAgentFallbackModelConfigurationType
1882
1934
  >;
1883
1935
 
1936
+ /**
1937
+ * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
1938
+ */
1939
+ export const CreateAgentFallbackModelConfigurationThinkingLevel = {
1940
+ Low: "low",
1941
+ High: "high",
1942
+ } as const;
1943
+ /**
1944
+ * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
1945
+ */
1946
+ export type CreateAgentFallbackModelConfigurationThinkingLevel = ClosedEnum<
1947
+ typeof CreateAgentFallbackModelConfigurationThinkingLevel
1948
+ >;
1949
+
1884
1950
  export type CreateAgentFallbackModelConfigurationThinking = {
1885
1951
  /**
1886
1952
  * Enables or disables the thinking mode capability
@@ -1890,6 +1956,12 @@ export type CreateAgentFallbackModelConfigurationThinking = {
1890
1956
  * Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
1891
1957
  */
1892
1958
  budgetTokens: number;
1959
+ /**
1960
+ * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
1961
+ */
1962
+ thinkingLevel?:
1963
+ | CreateAgentFallbackModelConfigurationThinkingLevel
1964
+ | undefined;
1893
1965
  };
1894
1966
 
1895
1967
  /**
@@ -2069,7 +2141,7 @@ export type CreateAgentFallbackModelConfiguration =
2069
2141
  | CreateAgentFallbackModelConfiguration2
2070
2142
  | string;
2071
2143
 
2072
- export type CreateAgentModel = {
2144
+ export type Model = {
2073
2145
  /**
2074
2146
  * The database ID of the primary model
2075
2147
  */
@@ -2138,7 +2210,7 @@ export type CreateAgentResponseBody = {
2138
2210
  */
2139
2211
  status: CreateAgentStatus;
2140
2212
  settings?: CreateAgentSettings | undefined;
2141
- model: CreateAgentModel;
2213
+ model: Model;
2142
2214
  versionHash?: string | undefined;
2143
2215
  /**
2144
2216
  * Entity storage path in the format: `project/folder/subfolder/...`
@@ -2528,6 +2600,15 @@ export const ModelConfigurationType$outboundSchema: z.ZodNativeEnum<
2528
2600
  typeof ModelConfigurationType
2529
2601
  > = ModelConfigurationType$inboundSchema;
2530
2602
 
2603
+ /** @internal */
2604
+ export const ThinkingLevel$inboundSchema: z.ZodNativeEnum<
2605
+ typeof ThinkingLevel
2606
+ > = z.nativeEnum(ThinkingLevel);
2607
+ /** @internal */
2608
+ export const ThinkingLevel$outboundSchema: z.ZodNativeEnum<
2609
+ typeof ThinkingLevel
2610
+ > = ThinkingLevel$inboundSchema;
2611
+
2531
2612
  /** @internal */
2532
2613
  export const Thinking$inboundSchema: z.ZodType<
2533
2614
  Thinking,
@@ -2536,15 +2617,18 @@ export const Thinking$inboundSchema: z.ZodType<
2536
2617
  > = z.object({
2537
2618
  type: ModelConfigurationType$inboundSchema,
2538
2619
  budget_tokens: z.number(),
2620
+ thinking_level: ThinkingLevel$inboundSchema.optional(),
2539
2621
  }).transform((v) => {
2540
2622
  return remap$(v, {
2541
2623
  "budget_tokens": "budgetTokens",
2624
+ "thinking_level": "thinkingLevel",
2542
2625
  });
2543
2626
  });
2544
2627
  /** @internal */
2545
2628
  export type Thinking$Outbound = {
2546
2629
  type: string;
2547
2630
  budget_tokens: number;
2631
+ thinking_level?: string | undefined;
2548
2632
  };
2549
2633
 
2550
2634
  /** @internal */
@@ -2555,9 +2639,11 @@ export const Thinking$outboundSchema: z.ZodType<
2555
2639
  > = z.object({
2556
2640
  type: ModelConfigurationType$outboundSchema,
2557
2641
  budgetTokens: z.number(),
2642
+ thinkingLevel: ThinkingLevel$outboundSchema.optional(),
2558
2643
  }).transform((v) => {
2559
2644
  return remap$(v, {
2560
2645
  budgetTokens: "budget_tokens",
2646
+ thinkingLevel: "thinking_level",
2561
2647
  });
2562
2648
  });
2563
2649
 
@@ -3421,6 +3507,15 @@ export const FallbackModelConfigurationType$outboundSchema: z.ZodNativeEnum<
3421
3507
  typeof FallbackModelConfigurationType
3422
3508
  > = FallbackModelConfigurationType$inboundSchema;
3423
3509
 
3510
+ /** @internal */
3511
+ export const FallbackModelConfigurationThinkingLevel$inboundSchema:
3512
+ z.ZodNativeEnum<typeof FallbackModelConfigurationThinkingLevel> = z
3513
+ .nativeEnum(FallbackModelConfigurationThinkingLevel);
3514
+ /** @internal */
3515
+ export const FallbackModelConfigurationThinkingLevel$outboundSchema:
3516
+ z.ZodNativeEnum<typeof FallbackModelConfigurationThinkingLevel> =
3517
+ FallbackModelConfigurationThinkingLevel$inboundSchema;
3518
+
3424
3519
  /** @internal */
3425
3520
  export const FallbackModelConfigurationThinking$inboundSchema: z.ZodType<
3426
3521
  FallbackModelConfigurationThinking,
@@ -3429,15 +3524,19 @@ export const FallbackModelConfigurationThinking$inboundSchema: z.ZodType<
3429
3524
  > = z.object({
3430
3525
  type: FallbackModelConfigurationType$inboundSchema,
3431
3526
  budget_tokens: z.number(),
3527
+ thinking_level: FallbackModelConfigurationThinkingLevel$inboundSchema
3528
+ .optional(),
3432
3529
  }).transform((v) => {
3433
3530
  return remap$(v, {
3434
3531
  "budget_tokens": "budgetTokens",
3532
+ "thinking_level": "thinkingLevel",
3435
3533
  });
3436
3534
  });
3437
3535
  /** @internal */
3438
3536
  export type FallbackModelConfigurationThinking$Outbound = {
3439
3537
  type: string;
3440
3538
  budget_tokens: number;
3539
+ thinking_level?: string | undefined;
3441
3540
  };
3442
3541
 
3443
3542
  /** @internal */
@@ -3448,9 +3547,12 @@ export const FallbackModelConfigurationThinking$outboundSchema: z.ZodType<
3448
3547
  > = z.object({
3449
3548
  type: FallbackModelConfigurationType$outboundSchema,
3450
3549
  budgetTokens: z.number(),
3550
+ thinkingLevel: FallbackModelConfigurationThinkingLevel$outboundSchema
3551
+ .optional(),
3451
3552
  }).transform((v) => {
3452
3553
  return remap$(v, {
3453
3554
  budgetTokens: "budget_tokens",
3555
+ thinkingLevel: "thinking_level",
3454
3556
  });
3455
3557
  });
3456
3558
 
@@ -6133,6 +6235,15 @@ export const CreateAgentType$outboundSchema: z.ZodNativeEnum<
6133
6235
  typeof CreateAgentType
6134
6236
  > = CreateAgentType$inboundSchema;
6135
6237
 
6238
+ /** @internal */
6239
+ export const CreateAgentThinkingLevel$inboundSchema: z.ZodNativeEnum<
6240
+ typeof CreateAgentThinkingLevel
6241
+ > = z.nativeEnum(CreateAgentThinkingLevel);
6242
+ /** @internal */
6243
+ export const CreateAgentThinkingLevel$outboundSchema: z.ZodNativeEnum<
6244
+ typeof CreateAgentThinkingLevel
6245
+ > = CreateAgentThinkingLevel$inboundSchema;
6246
+
6136
6247
  /** @internal */
6137
6248
  export const CreateAgentThinking$inboundSchema: z.ZodType<
6138
6249
  CreateAgentThinking,
@@ -6141,15 +6252,18 @@ export const CreateAgentThinking$inboundSchema: z.ZodType<
6141
6252
  > = z.object({
6142
6253
  type: CreateAgentType$inboundSchema,
6143
6254
  budget_tokens: z.number(),
6255
+ thinking_level: CreateAgentThinkingLevel$inboundSchema.optional(),
6144
6256
  }).transform((v) => {
6145
6257
  return remap$(v, {
6146
6258
  "budget_tokens": "budgetTokens",
6259
+ "thinking_level": "thinkingLevel",
6147
6260
  });
6148
6261
  });
6149
6262
  /** @internal */
6150
6263
  export type CreateAgentThinking$Outbound = {
6151
6264
  type: string;
6152
6265
  budget_tokens: number;
6266
+ thinking_level?: string | undefined;
6153
6267
  };
6154
6268
 
6155
6269
  /** @internal */
@@ -6160,9 +6274,11 @@ export const CreateAgentThinking$outboundSchema: z.ZodType<
6160
6274
  > = z.object({
6161
6275
  type: CreateAgentType$outboundSchema,
6162
6276
  budgetTokens: z.number(),
6277
+ thinkingLevel: CreateAgentThinkingLevel$outboundSchema.optional(),
6163
6278
  }).transform((v) => {
6164
6279
  return remap$(v, {
6165
6280
  budgetTokens: "budget_tokens",
6281
+ thinkingLevel: "thinking_level",
6166
6282
  });
6167
6283
  });
6168
6284
 
@@ -7049,6 +7165,15 @@ export const CreateAgentFallbackModelConfigurationType$outboundSchema:
7049
7165
  z.ZodNativeEnum<typeof CreateAgentFallbackModelConfigurationType> =
7050
7166
  CreateAgentFallbackModelConfigurationType$inboundSchema;
7051
7167
 
7168
+ /** @internal */
7169
+ export const CreateAgentFallbackModelConfigurationThinkingLevel$inboundSchema:
7170
+ z.ZodNativeEnum<typeof CreateAgentFallbackModelConfigurationThinkingLevel> = z
7171
+ .nativeEnum(CreateAgentFallbackModelConfigurationThinkingLevel);
7172
+ /** @internal */
7173
+ export const CreateAgentFallbackModelConfigurationThinkingLevel$outboundSchema:
7174
+ z.ZodNativeEnum<typeof CreateAgentFallbackModelConfigurationThinkingLevel> =
7175
+ CreateAgentFallbackModelConfigurationThinkingLevel$inboundSchema;
7176
+
7052
7177
  /** @internal */
7053
7178
  export const CreateAgentFallbackModelConfigurationThinking$inboundSchema:
7054
7179
  z.ZodType<
@@ -7058,15 +7183,20 @@ export const CreateAgentFallbackModelConfigurationThinking$inboundSchema:
7058
7183
  > = z.object({
7059
7184
  type: CreateAgentFallbackModelConfigurationType$inboundSchema,
7060
7185
  budget_tokens: z.number(),
7186
+ thinking_level:
7187
+ CreateAgentFallbackModelConfigurationThinkingLevel$inboundSchema
7188
+ .optional(),
7061
7189
  }).transform((v) => {
7062
7190
  return remap$(v, {
7063
7191
  "budget_tokens": "budgetTokens",
7192
+ "thinking_level": "thinkingLevel",
7064
7193
  });
7065
7194
  });
7066
7195
  /** @internal */
7067
7196
  export type CreateAgentFallbackModelConfigurationThinking$Outbound = {
7068
7197
  type: string;
7069
7198
  budget_tokens: number;
7199
+ thinking_level?: string | undefined;
7070
7200
  };
7071
7201
 
7072
7202
  /** @internal */
@@ -7078,9 +7208,13 @@ export const CreateAgentFallbackModelConfigurationThinking$outboundSchema:
7078
7208
  > = z.object({
7079
7209
  type: CreateAgentFallbackModelConfigurationType$outboundSchema,
7080
7210
  budgetTokens: z.number(),
7211
+ thinkingLevel:
7212
+ CreateAgentFallbackModelConfigurationThinkingLevel$outboundSchema
7213
+ .optional(),
7081
7214
  }).transform((v) => {
7082
7215
  return remap$(v, {
7083
7216
  budgetTokens: "budget_tokens",
7217
+ thinkingLevel: "thinking_level",
7084
7218
  });
7085
7219
  });
7086
7220
 
@@ -7577,29 +7711,26 @@ export function createAgentFallbackModelConfigurationFromJSON(
7577
7711
  }
7578
7712
 
7579
7713
  /** @internal */
7580
- export const CreateAgentModel$inboundSchema: z.ZodType<
7581
- CreateAgentModel,
7582
- z.ZodTypeDef,
7583
- unknown
7584
- > = z.object({
7585
- id: z.string(),
7586
- integration_id: z.nullable(z.string()).optional(),
7587
- parameters: z.lazy(() => CreateAgentParameters$inboundSchema).optional(),
7588
- retry: z.lazy(() => CreateAgentRetry$inboundSchema).optional(),
7589
- fallback_models: z.nullable(
7590
- z.array(z.union([
7591
- z.lazy(() => CreateAgentFallbackModelConfiguration2$inboundSchema),
7592
- z.string(),
7593
- ])),
7594
- ).optional(),
7595
- }).transform((v) => {
7596
- return remap$(v, {
7597
- "integration_id": "integrationId",
7598
- "fallback_models": "fallbackModels",
7714
+ export const Model$inboundSchema: z.ZodType<Model, z.ZodTypeDef, unknown> = z
7715
+ .object({
7716
+ id: z.string(),
7717
+ integration_id: z.nullable(z.string()).optional(),
7718
+ parameters: z.lazy(() => CreateAgentParameters$inboundSchema).optional(),
7719
+ retry: z.lazy(() => CreateAgentRetry$inboundSchema).optional(),
7720
+ fallback_models: z.nullable(
7721
+ z.array(z.union([
7722
+ z.lazy(() => CreateAgentFallbackModelConfiguration2$inboundSchema),
7723
+ z.string(),
7724
+ ])),
7725
+ ).optional(),
7726
+ }).transform((v) => {
7727
+ return remap$(v, {
7728
+ "integration_id": "integrationId",
7729
+ "fallback_models": "fallbackModels",
7730
+ });
7599
7731
  });
7600
- });
7601
7732
  /** @internal */
7602
- export type CreateAgentModel$Outbound = {
7733
+ export type Model$Outbound = {
7603
7734
  id: string;
7604
7735
  integration_id?: string | null | undefined;
7605
7736
  parameters?: CreateAgentParameters$Outbound | undefined;
@@ -7611,10 +7742,10 @@ export type CreateAgentModel$Outbound = {
7611
7742
  };
7612
7743
 
7613
7744
  /** @internal */
7614
- export const CreateAgentModel$outboundSchema: z.ZodType<
7615
- CreateAgentModel$Outbound,
7745
+ export const Model$outboundSchema: z.ZodType<
7746
+ Model$Outbound,
7616
7747
  z.ZodTypeDef,
7617
- CreateAgentModel
7748
+ Model
7618
7749
  > = z.object({
7619
7750
  id: z.string(),
7620
7751
  integrationId: z.nullable(z.string()).optional(),
@@ -7633,20 +7764,16 @@ export const CreateAgentModel$outboundSchema: z.ZodType<
7633
7764
  });
7634
7765
  });
7635
7766
 
7636
- export function createAgentModelToJSON(
7637
- createAgentModel: CreateAgentModel,
7638
- ): string {
7639
- return JSON.stringify(
7640
- CreateAgentModel$outboundSchema.parse(createAgentModel),
7641
- );
7767
+ export function modelToJSON(model: Model): string {
7768
+ return JSON.stringify(Model$outboundSchema.parse(model));
7642
7769
  }
7643
- export function createAgentModelFromJSON(
7770
+ export function modelFromJSON(
7644
7771
  jsonString: string,
7645
- ): SafeParseResult<CreateAgentModel, SDKValidationError> {
7772
+ ): SafeParseResult<Model, SDKValidationError> {
7646
7773
  return safeParse(
7647
7774
  jsonString,
7648
- (x) => CreateAgentModel$inboundSchema.parse(JSON.parse(x)),
7649
- `Failed to parse 'CreateAgentModel' from JSON`,
7775
+ (x) => Model$inboundSchema.parse(JSON.parse(x)),
7776
+ `Failed to parse 'Model' from JSON`,
7650
7777
  );
7651
7778
  }
7652
7779
 
@@ -7799,7 +7926,7 @@ export const CreateAgentResponseBody$inboundSchema: z.ZodType<
7799
7926
  instructions: z.string(),
7800
7927
  status: CreateAgentStatus$inboundSchema,
7801
7928
  settings: z.lazy(() => CreateAgentSettings$inboundSchema).optional(),
7802
- model: z.lazy(() => CreateAgentModel$inboundSchema),
7929
+ model: z.lazy(() => Model$inboundSchema),
7803
7930
  version_hash: z.string().optional(),
7804
7931
  path: z.string(),
7805
7932
  memory_stores: z.array(z.string()),
@@ -7839,7 +7966,7 @@ export type CreateAgentResponseBody$Outbound = {
7839
7966
  instructions: string;
7840
7967
  status: string;
7841
7968
  settings?: CreateAgentSettings$Outbound | undefined;
7842
- model: CreateAgentModel$Outbound;
7969
+ model: Model$Outbound;
7843
7970
  version_hash?: string | undefined;
7844
7971
  path: string;
7845
7972
  memory_stores: Array<string>;
@@ -7869,7 +7996,7 @@ export const CreateAgentResponseBody$outboundSchema: z.ZodType<
7869
7996
  instructions: z.string(),
7870
7997
  status: CreateAgentStatus$outboundSchema,
7871
7998
  settings: z.lazy(() => CreateAgentSettings$outboundSchema).optional(),
7872
- model: z.lazy(() => CreateAgentModel$outboundSchema),
7999
+ model: z.lazy(() => Model$outboundSchema),
7873
8000
  versionHash: z.string().optional(),
7874
8001
  path: z.string(),
7875
8002
  memoryStores: z.array(z.string()),
@@ -516,7 +516,7 @@ export const CreateBudgetResponseBody$inboundSchema: z.ZodType<
516
516
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
517
517
  .optional(),
518
518
  updated: z.string().datetime({ offset: true }).default(
519
- "2025-11-18T11:17:28.089Z",
519
+ "2025-11-19T04:09:03.217Z",
520
520
  ).transform(v => new Date(v)),
521
521
  }).transform((v) => {
522
522
  return remap$(v, {
@@ -553,7 +553,7 @@ export const CreateBudgetResponseBody$outboundSchema: z.ZodType<
553
553
  isActive: z.boolean(),
554
554
  consumption: z.lazy(() => Consumption$outboundSchema).optional(),
555
555
  created: z.date().transform(v => v.toISOString()).optional(),
556
- updated: z.date().default(() => new Date("2025-11-18T11:17:28.089Z"))
556
+ updated: z.date().default(() => new Date("2025-11-19T04:09:03.217Z"))
557
557
  .transform(v => v.toISOString()),
558
558
  }).transform((v) => {
559
559
  return remap$(v, {
@@ -167,7 +167,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
167
167
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
168
168
  .optional(),
169
169
  updated: z.string().datetime({ offset: true }).default(
170
- "2025-11-18T11:17:27.739Z",
170
+ "2025-11-19T04:09:02.872Z",
171
171
  ).transform(v => new Date(v)),
172
172
  }).transform((v) => {
173
173
  return remap$(v, {
@@ -207,7 +207,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
207
207
  tags: z.array(z.string()).optional(),
208
208
  metadata: z.record(z.any()).optional(),
209
209
  created: z.date().transform(v => v.toISOString()).optional(),
210
- updated: z.date().default(() => new Date("2025-11-18T11:17:27.739Z"))
210
+ updated: z.date().default(() => new Date("2025-11-19T04:09:02.872Z"))
211
211
  .transform(v => v.toISOString()),
212
212
  }).transform((v) => {
213
213
  return remap$(v, {
@@ -187,7 +187,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
187
187
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
188
188
  .optional(),
189
189
  updated: z.string().datetime({ offset: true }).default(
190
- "2025-11-18T11:17:27.739Z",
190
+ "2025-11-19T04:09:02.872Z",
191
191
  ).transform(v => new Date(v)),
192
192
  }).transform((v) => {
193
193
  return remap$(v, {
@@ -226,7 +226,7 @@ export const CreateDatasetResponseBody$outboundSchema: z.ZodType<
226
226
  createdById: z.string().optional(),
227
227
  updatedById: z.string().optional(),
228
228
  created: z.date().transform(v => v.toISOString()).optional(),
229
- updated: z.date().default(() => new Date("2025-11-18T11:17:27.739Z"))
229
+ updated: z.date().default(() => new Date("2025-11-19T04:09:02.872Z"))
230
230
  .transform(v => v.toISOString()),
231
231
  }).transform((v) => {
232
232
  return remap$(v, {
@@ -4929,7 +4929,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
4929
4929
  source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
4930
4930
  reviewed_by_id: z.string(),
4931
4931
  reviewed_at: z.string().datetime({ offset: true }).default(
4932
- "2025-11-18T11:17:39.129Z",
4932
+ "2025-11-19T04:09:14.335Z",
4933
4933
  ).transform(v => new Date(v)),
4934
4934
  type: CreateDatasetItemEvaluationsDatasetsType$inboundSchema,
4935
4935
  values: z.array(z.string()),
@@ -4964,7 +4964,7 @@ export const Evaluations3$outboundSchema: z.ZodType<
4964
4964
  humanReviewId: z.string(),
4965
4965
  source: CreateDatasetItemEvaluationsSource$outboundSchema.default("orq"),
4966
4966
  reviewedById: z.string(),
4967
- reviewedAt: z.date().default(() => new Date("2025-11-18T11:17:39.129Z"))
4967
+ reviewedAt: z.date().default(() => new Date("2025-11-19T04:09:14.335Z"))
4968
4968
  .transform(v => v.toISOString()),
4969
4969
  type: CreateDatasetItemEvaluationsDatasetsType$outboundSchema,
4970
4970
  values: z.array(z.string()),
@@ -5029,7 +5029,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
5029
5029
  source: EvaluationsSource$inboundSchema.default("orq"),
5030
5030
  reviewed_by_id: z.string(),
5031
5031
  reviewed_at: z.string().datetime({ offset: true }).default(
5032
- "2025-11-18T11:17:39.128Z",
5032
+ "2025-11-19T04:09:14.334Z",
5033
5033
  ).transform(v => new Date(v)),
5034
5034
  type: CreateDatasetItemEvaluationsType$inboundSchema,
5035
5035
  value: z.number(),
@@ -5064,7 +5064,7 @@ export const Evaluations2$outboundSchema: z.ZodType<
5064
5064
  humanReviewId: z.string(),
5065
5065
  source: EvaluationsSource$outboundSchema.default("orq"),
5066
5066
  reviewedById: z.string(),
5067
- reviewedAt: z.date().default(() => new Date("2025-11-18T11:17:39.128Z"))
5067
+ reviewedAt: z.date().default(() => new Date("2025-11-19T04:09:14.334Z"))
5068
5068
  .transform(v => v.toISOString()),
5069
5069
  type: CreateDatasetItemEvaluationsType$outboundSchema,
5070
5070
  value: z.number(),
@@ -5127,7 +5127,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
5127
5127
  source: Source$inboundSchema.default("orq"),
5128
5128
  reviewed_by_id: z.string(),
5129
5129
  reviewed_at: z.string().datetime({ offset: true }).default(
5130
- "2025-11-18T11:17:39.127Z",
5130
+ "2025-11-19T04:09:14.334Z",
5131
5131
  ).transform(v => new Date(v)),
5132
5132
  type: EvaluationsType$inboundSchema,
5133
5133
  value: z.string(),
@@ -5162,7 +5162,7 @@ export const Evaluations1$outboundSchema: z.ZodType<
5162
5162
  humanReviewId: z.string(),
5163
5163
  source: Source$outboundSchema.default("orq"),
5164
5164
  reviewedById: z.string(),
5165
- reviewedAt: z.date().default(() => new Date("2025-11-18T11:17:39.127Z"))
5165
+ reviewedAt: z.date().default(() => new Date("2025-11-19T04:09:14.334Z"))
5166
5166
  .transform(v => v.toISOString()),
5167
5167
  type: EvaluationsType$outboundSchema,
5168
5168
  value: z.string(),
@@ -5267,7 +5267,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
5267
5267
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
5268
5268
  .optional(),
5269
5269
  updated: z.string().datetime({ offset: true }).default(
5270
- "2025-11-18T11:17:27.739Z",
5270
+ "2025-11-19T04:09:02.872Z",
5271
5271
  ).transform(v => new Date(v)),
5272
5272
  }).transform((v) => {
5273
5273
  return remap$(v, {
@@ -5345,7 +5345,7 @@ export const CreateDatasetItemResponseBody$outboundSchema: z.ZodType<
5345
5345
  createdById: z.string().optional(),
5346
5346
  updatedById: z.string().optional(),
5347
5347
  created: z.date().transform(v => v.toISOString()).optional(),
5348
- updated: z.date().default(() => new Date("2025-11-18T11:17:27.739Z"))
5348
+ updated: z.date().default(() => new Date("2025-11-19T04:09:02.872Z"))
5349
5349
  .transform(v => v.toISOString()),
5350
5350
  }).transform((v) => {
5351
5351
  return remap$(v, {
@@ -608,7 +608,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
608
608
  z.ZodTypeDef,
609
609
  unknown
610
610
  > = z.object({
611
- _id: z.string().default("01KABAYG2CXRD08HBXHEK5625B"),
611
+ _id: z.string().default("01KAD4TRQPMKBR5TECQJ9XYBQW"),
612
612
  display_name: z.string(),
613
613
  description: z.string().optional(),
614
614
  status: CreateDatasourceStatus$inboundSchema,
@@ -651,7 +651,7 @@ export const CreateDatasourceResponseBody$outboundSchema: z.ZodType<
651
651
  z.ZodTypeDef,
652
652
  CreateDatasourceResponseBody
653
653
  > = z.object({
654
- id: z.string().default("01KABAYG2CXRD08HBXHEK5625B"),
654
+ id: z.string().default("01KAD4TRQPMKBR5TECQJ9XYBQW"),
655
655
  displayName: z.string(),
656
656
  description: z.string().optional(),
657
657
  status: CreateDatasourceStatus$outboundSchema,