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

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 (188) hide show
  1. package/bin/mcp-server.js +764 -1540
  2. package/bin/mcp-server.js.map +58 -58
  3. package/docs/sdks/agents/README.md +4 -6
  4. package/examples/package-lock.json +1 -1
  5. package/funcs/agentsDuplicate.d.ts +1 -1
  6. package/funcs/agentsDuplicate.js +5 -4
  7. package/funcs/agentsDuplicate.js.map +1 -1
  8. package/jsr.json +1 -1
  9. package/lib/config.d.ts +2 -2
  10. package/lib/config.js +2 -2
  11. package/mcp-server/mcp-server.js +1 -1
  12. package/mcp-server/server.js +1 -1
  13. package/mcp-server/tools/agentsDuplicate.js +1 -1
  14. package/mcp-server/tools/agentsDuplicate.js.map +1 -1
  15. package/models/operations/createagent.d.ts +90 -10
  16. package/models/operations/createagent.d.ts.map +1 -1
  17. package/models/operations/createagent.js +87 -20
  18. package/models/operations/createagent.js.map +1 -1
  19. package/models/operations/createbudget.js +2 -2
  20. package/models/operations/createcontact.js +2 -2
  21. package/models/operations/createdataset.js +2 -2
  22. package/models/operations/createdatasetitem.js +8 -8
  23. package/models/operations/createdatasource.js +2 -2
  24. package/models/operations/createeval.d.ts +106 -106
  25. package/models/operations/createeval.d.ts.map +1 -1
  26. package/models/operations/createeval.js +242 -234
  27. package/models/operations/createeval.js.map +1 -1
  28. package/models/operations/creatememorystore.d.ts +10 -391
  29. package/models/operations/creatememorystore.d.ts.map +1 -1
  30. package/models/operations/creatememorystore.js +5 -565
  31. package/models/operations/creatememorystore.js.map +1 -1
  32. package/models/operations/createprompt.d.ts +40 -0
  33. package/models/operations/createprompt.d.ts.map +1 -1
  34. package/models/operations/createprompt.js +33 -7
  35. package/models/operations/createprompt.js.map +1 -1
  36. package/models/operations/createtool.js +12 -12
  37. package/models/operations/deploymentgetconfig.d.ts +20 -0
  38. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  39. package/models/operations/deploymentgetconfig.js +22 -8
  40. package/models/operations/deploymentgetconfig.js.map +1 -1
  41. package/models/operations/deployments.d.ts +20 -0
  42. package/models/operations/deployments.d.ts.map +1 -1
  43. package/models/operations/deployments.js +16 -3
  44. package/models/operations/deployments.js.map +1 -1
  45. package/models/operations/duplicateagent.d.ts +66 -3
  46. package/models/operations/duplicateagent.d.ts.map +1 -1
  47. package/models/operations/duplicateagent.js +77 -5
  48. package/models/operations/duplicateagent.js.map +1 -1
  49. package/models/operations/duplicatetool.js +12 -12
  50. package/models/operations/fileget.js +2 -2
  51. package/models/operations/filelist.js +2 -2
  52. package/models/operations/fileupload.js +2 -2
  53. package/models/operations/getagent.d.ts +40 -0
  54. package/models/operations/getagent.d.ts.map +1 -1
  55. package/models/operations/getagent.js +36 -3
  56. package/models/operations/getagent.js.map +1 -1
  57. package/models/operations/getallmemorystores.d.ts +5 -195
  58. package/models/operations/getallmemorystores.d.ts.map +1 -1
  59. package/models/operations/getallmemorystores.js +3 -273
  60. package/models/operations/getallmemorystores.js.map +1 -1
  61. package/models/operations/getallprompts.d.ts +20 -0
  62. package/models/operations/getallprompts.d.ts.map +1 -1
  63. package/models/operations/getallprompts.js +16 -3
  64. package/models/operations/getallprompts.js.map +1 -1
  65. package/models/operations/getalltools.js +12 -12
  66. package/models/operations/getbudget.js +2 -2
  67. package/models/operations/getevals.js +28 -28
  68. package/models/operations/getoneprompt.d.ts +20 -0
  69. package/models/operations/getoneprompt.d.ts.map +1 -1
  70. package/models/operations/getoneprompt.js +16 -3
  71. package/models/operations/getoneprompt.js.map +1 -1
  72. package/models/operations/getpromptversion.d.ts +20 -0
  73. package/models/operations/getpromptversion.d.ts.map +1 -1
  74. package/models/operations/getpromptversion.js +16 -2
  75. package/models/operations/getpromptversion.js.map +1 -1
  76. package/models/operations/listagents.d.ts +40 -0
  77. package/models/operations/listagents.d.ts.map +1 -1
  78. package/models/operations/listagents.js +37 -4
  79. package/models/operations/listagents.js.map +1 -1
  80. package/models/operations/listbudgets.js +2 -2
  81. package/models/operations/listcontacts.js +2 -2
  82. package/models/operations/listdatasetdatapoints.js +8 -8
  83. package/models/operations/listdatasets.js +2 -2
  84. package/models/operations/listdatasources.d.ts +5 -5
  85. package/models/operations/listdatasources.d.ts.map +1 -1
  86. package/models/operations/listdatasources.js +4 -4
  87. package/models/operations/listdatasources.js.map +1 -1
  88. package/models/operations/listpromptversions.d.ts +20 -0
  89. package/models/operations/listpromptversions.d.ts.map +1 -1
  90. package/models/operations/listpromptversions.js +16 -3
  91. package/models/operations/listpromptversions.js.map +1 -1
  92. package/models/operations/retrievecontact.js +2 -2
  93. package/models/operations/retrievedatapoint.js +8 -8
  94. package/models/operations/retrievedataset.js +2 -2
  95. package/models/operations/retrievedatasource.js +2 -2
  96. package/models/operations/retrievememorystore.d.ts +5 -196
  97. package/models/operations/retrievememorystore.d.ts.map +1 -1
  98. package/models/operations/retrievememorystore.js +3 -273
  99. package/models/operations/retrievememorystore.js.map +1 -1
  100. package/models/operations/retrievetool.js +12 -12
  101. package/models/operations/runagent.d.ts +40 -0
  102. package/models/operations/runagent.d.ts.map +1 -1
  103. package/models/operations/runagent.js +45 -10
  104. package/models/operations/runagent.js.map +1 -1
  105. package/models/operations/streamrunagent.d.ts +40 -0
  106. package/models/operations/streamrunagent.d.ts.map +1 -1
  107. package/models/operations/streamrunagent.js +44 -9
  108. package/models/operations/streamrunagent.js.map +1 -1
  109. package/models/operations/syncmcptool.js +12 -12
  110. package/models/operations/updateagent.d.ts +80 -0
  111. package/models/operations/updateagent.d.ts.map +1 -1
  112. package/models/operations/updateagent.js +73 -8
  113. package/models/operations/updateagent.js.map +1 -1
  114. package/models/operations/updatebudget.js +2 -2
  115. package/models/operations/updatecontact.js +2 -2
  116. package/models/operations/updatedatapoint.js +8 -8
  117. package/models/operations/updatedataset.js +2 -2
  118. package/models/operations/updatedatasource.js +2 -2
  119. package/models/operations/updateeval.js +28 -28
  120. package/models/operations/updatememorystore.d.ts +5 -195
  121. package/models/operations/updatememorystore.d.ts.map +1 -1
  122. package/models/operations/updatememorystore.js +3 -290
  123. package/models/operations/updatememorystore.js.map +1 -1
  124. package/models/operations/updateprompt.d.ts +40 -0
  125. package/models/operations/updateprompt.d.ts.map +1 -1
  126. package/models/operations/updateprompt.js +33 -7
  127. package/models/operations/updateprompt.js.map +1 -1
  128. package/models/operations/updatetool.js +14 -14
  129. package/package.json +1 -1
  130. package/sdk/agents.d.ts +1 -1
  131. package/sdk/agents.js +1 -1
  132. package/src/funcs/agentsDuplicate.ts +6 -5
  133. package/src/lib/config.ts +2 -2
  134. package/src/mcp-server/mcp-server.ts +1 -1
  135. package/src/mcp-server/server.ts +1 -1
  136. package/src/mcp-server/tools/agentsDuplicate.ts +1 -1
  137. package/src/models/operations/createagent.ts +170 -43
  138. package/src/models/operations/createbudget.ts +2 -2
  139. package/src/models/operations/createcontact.ts +2 -2
  140. package/src/models/operations/createdataset.ts +2 -2
  141. package/src/models/operations/createdatasetitem.ts +8 -8
  142. package/src/models/operations/createdatasource.ts +2 -2
  143. package/src/models/operations/createeval.ts +423 -524
  144. package/src/models/operations/creatememorystore.ts +14 -1094
  145. package/src/models/operations/createprompt.ts +60 -0
  146. package/src/models/operations/createtool.ts +12 -12
  147. package/src/models/operations/deploymentgetconfig.ts +30 -0
  148. package/src/models/operations/deployments.ts +30 -0
  149. package/src/models/operations/duplicateagent.ts +153 -5
  150. package/src/models/operations/duplicatetool.ts +12 -12
  151. package/src/models/operations/fileget.ts +2 -2
  152. package/src/models/operations/filelist.ts +2 -2
  153. package/src/models/operations/fileupload.ts +2 -2
  154. package/src/models/operations/getagent.ts +65 -0
  155. package/src/models/operations/getallmemorystores.ts +7 -595
  156. package/src/models/operations/getallprompts.ts +30 -0
  157. package/src/models/operations/getalltools.ts +12 -12
  158. package/src/models/operations/getbudget.ts +2 -2
  159. package/src/models/operations/getevals.ts +28 -28
  160. package/src/models/operations/getoneprompt.ts +30 -0
  161. package/src/models/operations/getpromptversion.ts +30 -0
  162. package/src/models/operations/listagents.ts +68 -0
  163. package/src/models/operations/listbudgets.ts +2 -2
  164. package/src/models/operations/listcontacts.ts +2 -2
  165. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  166. package/src/models/operations/listdatasets.ts +2 -2
  167. package/src/models/operations/listdatasources.ts +9 -9
  168. package/src/models/operations/listpromptversions.ts +30 -0
  169. package/src/models/operations/retrievecontact.ts +2 -2
  170. package/src/models/operations/retrievedatapoint.ts +8 -8
  171. package/src/models/operations/retrievedataset.ts +2 -2
  172. package/src/models/operations/retrievedatasource.ts +2 -2
  173. package/src/models/operations/retrievememorystore.ts +7 -596
  174. package/src/models/operations/retrievetool.ts +12 -12
  175. package/src/models/operations/runagent.ts +71 -2
  176. package/src/models/operations/streamrunagent.ts +76 -2
  177. package/src/models/operations/syncmcptool.ts +12 -12
  178. package/src/models/operations/updateagent.ts +141 -0
  179. package/src/models/operations/updatebudget.ts +2 -2
  180. package/src/models/operations/updatecontact.ts +2 -2
  181. package/src/models/operations/updatedatapoint.ts +8 -8
  182. package/src/models/operations/updatedataset.ts +2 -2
  183. package/src/models/operations/updatedatasource.ts +2 -2
  184. package/src/models/operations/updateeval.ts +28 -28
  185. package/src/models/operations/updatememorystore.ts +7 -527
  186. package/src/models/operations/updateprompt.ts +60 -0
  187. package/src/models/operations/updatetool.ts +14 -14
  188. package/src/sdk/agents.ts +1 -1
@@ -359,6 +359,20 @@ export const Verbosity = {
359
359
  */
360
360
  export type Verbosity = ClosedEnum<typeof Verbosity>;
361
361
 
362
+ /**
363
+ * The level of thinking to use for the model. Only supported by `Google AI`
364
+ */
365
+ export const CreatePromptThinkingLevel = {
366
+ Low: "low",
367
+ High: "high",
368
+ } as const;
369
+ /**
370
+ * The level of thinking to use for the model. Only supported by `Google AI`
371
+ */
372
+ export type CreatePromptThinkingLevel = ClosedEnum<
373
+ typeof CreatePromptThinkingLevel
374
+ >;
375
+
362
376
  /**
363
377
  * Optional model parameters like temperature and maxTokens.
364
378
  */
@@ -451,6 +465,10 @@ export type ModelParameters = {
451
465
  * Controls the verbosity of the model output.
452
466
  */
453
467
  verbosity?: Verbosity | undefined;
468
+ /**
469
+ * The level of thinking to use for the model. Only supported by `Google AI`
470
+ */
471
+ thinkingLevel?: CreatePromptThinkingLevel | undefined;
454
472
  };
455
473
 
456
474
  /**
@@ -1273,6 +1291,20 @@ export const CreatePromptVerbosity = {
1273
1291
  */
1274
1292
  export type CreatePromptVerbosity = ClosedEnum<typeof CreatePromptVerbosity>;
1275
1293
 
1294
+ /**
1295
+ * The level of thinking to use for the model. Only supported by `Google AI`
1296
+ */
1297
+ export const CreatePromptPromptsThinkingLevel = {
1298
+ Low: "low",
1299
+ High: "high",
1300
+ } as const;
1301
+ /**
1302
+ * The level of thinking to use for the model. Only supported by `Google AI`
1303
+ */
1304
+ export type CreatePromptPromptsThinkingLevel = ClosedEnum<
1305
+ typeof CreatePromptPromptsThinkingLevel
1306
+ >;
1307
+
1276
1308
  /**
1277
1309
  * Model Parameters: Not all parameters apply to every model
1278
1310
  */
@@ -1365,6 +1397,10 @@ export type CreatePromptModelParameters = {
1365
1397
  * Controls the verbosity of the model output.
1366
1398
  */
1367
1399
  verbosity?: CreatePromptVerbosity | undefined;
1400
+ /**
1401
+ * The level of thinking to use for the model. Only supported by `Google AI`
1402
+ */
1403
+ thinkingLevel?: CreatePromptPromptsThinkingLevel | undefined;
1368
1404
  };
1369
1405
 
1370
1406
  export const CreatePromptProvider = {
@@ -2591,6 +2627,15 @@ export const Verbosity$inboundSchema: z.ZodNativeEnum<typeof Verbosity> = z
2591
2627
  export const Verbosity$outboundSchema: z.ZodNativeEnum<typeof Verbosity> =
2592
2628
  Verbosity$inboundSchema;
2593
2629
 
2630
+ /** @internal */
2631
+ export const CreatePromptThinkingLevel$inboundSchema: z.ZodNativeEnum<
2632
+ typeof CreatePromptThinkingLevel
2633
+ > = z.nativeEnum(CreatePromptThinkingLevel);
2634
+ /** @internal */
2635
+ export const CreatePromptThinkingLevel$outboundSchema: z.ZodNativeEnum<
2636
+ typeof CreatePromptThinkingLevel
2637
+ > = CreatePromptThinkingLevel$inboundSchema;
2638
+
2594
2639
  /** @internal */
2595
2640
  export const ModelParameters$inboundSchema: z.ZodType<
2596
2641
  ModelParameters,
@@ -2624,6 +2669,7 @@ export const ModelParameters$inboundSchema: z.ZodType<
2624
2669
  reasoningEffort: ReasoningEffort$inboundSchema.optional(),
2625
2670
  budgetTokens: z.number().optional(),
2626
2671
  verbosity: Verbosity$inboundSchema.optional(),
2672
+ thinkingLevel: CreatePromptThinkingLevel$inboundSchema.optional(),
2627
2673
  }).transform((v) => {
2628
2674
  return remap$(v, {
2629
2675
  "encoding_format": "encodingFormat",
@@ -2657,6 +2703,7 @@ export type ModelParameters$Outbound = {
2657
2703
  reasoningEffort?: string | undefined;
2658
2704
  budgetTokens?: number | undefined;
2659
2705
  verbosity?: string | undefined;
2706
+ thinkingLevel?: string | undefined;
2660
2707
  };
2661
2708
 
2662
2709
  /** @internal */
@@ -2692,6 +2739,7 @@ export const ModelParameters$outboundSchema: z.ZodType<
2692
2739
  reasoningEffort: ReasoningEffort$outboundSchema.optional(),
2693
2740
  budgetTokens: z.number().optional(),
2694
2741
  verbosity: Verbosity$outboundSchema.optional(),
2742
+ thinkingLevel: CreatePromptThinkingLevel$outboundSchema.optional(),
2695
2743
  }).transform((v) => {
2696
2744
  return remap$(v, {
2697
2745
  encodingFormat: "encoding_format",
@@ -5163,6 +5211,15 @@ export const CreatePromptVerbosity$outboundSchema: z.ZodNativeEnum<
5163
5211
  typeof CreatePromptVerbosity
5164
5212
  > = CreatePromptVerbosity$inboundSchema;
5165
5213
 
5214
+ /** @internal */
5215
+ export const CreatePromptPromptsThinkingLevel$inboundSchema: z.ZodNativeEnum<
5216
+ typeof CreatePromptPromptsThinkingLevel
5217
+ > = z.nativeEnum(CreatePromptPromptsThinkingLevel);
5218
+ /** @internal */
5219
+ export const CreatePromptPromptsThinkingLevel$outboundSchema: z.ZodNativeEnum<
5220
+ typeof CreatePromptPromptsThinkingLevel
5221
+ > = CreatePromptPromptsThinkingLevel$inboundSchema;
5222
+
5166
5223
  /** @internal */
5167
5224
  export const CreatePromptModelParameters$inboundSchema: z.ZodType<
5168
5225
  CreatePromptModelParameters,
@@ -5196,6 +5253,7 @@ export const CreatePromptModelParameters$inboundSchema: z.ZodType<
5196
5253
  reasoningEffort: CreatePromptReasoningEffort$inboundSchema.optional(),
5197
5254
  budgetTokens: z.number().optional(),
5198
5255
  verbosity: CreatePromptVerbosity$inboundSchema.optional(),
5256
+ thinkingLevel: CreatePromptPromptsThinkingLevel$inboundSchema.optional(),
5199
5257
  }).transform((v) => {
5200
5258
  return remap$(v, {
5201
5259
  "encoding_format": "encodingFormat",
@@ -5229,6 +5287,7 @@ export type CreatePromptModelParameters$Outbound = {
5229
5287
  reasoningEffort?: string | undefined;
5230
5288
  budgetTokens?: number | undefined;
5231
5289
  verbosity?: string | undefined;
5290
+ thinkingLevel?: string | undefined;
5232
5291
  };
5233
5292
 
5234
5293
  /** @internal */
@@ -5264,6 +5323,7 @@ export const CreatePromptModelParameters$outboundSchema: z.ZodType<
5264
5323
  reasoningEffort: CreatePromptReasoningEffort$outboundSchema.optional(),
5265
5324
  budgetTokens: z.number().optional(),
5266
5325
  verbosity: CreatePromptVerbosity$outboundSchema.optional(),
5326
+ thinkingLevel: CreatePromptPromptsThinkingLevel$outboundSchema.optional(),
5267
5327
  }).transform((v) => {
5268
5328
  return remap$(v, {
5269
5329
  encodingFormat: "encoding_format",
@@ -2571,7 +2571,7 @@ export const ResponseBody5$inboundSchema: z.ZodType<
2571
2571
  z.ZodTypeDef,
2572
2572
  unknown
2573
2573
  > = z.object({
2574
- _id: z.string().default("tool_01KABAYFXA5V5Q720GR9SZ8229"),
2574
+ _id: z.string().default("tool_01KADNRAHXRWBTQ8WQWVNPWN4S"),
2575
2575
  path: z.string(),
2576
2576
  key: z.string(),
2577
2577
  display_name: z.string().optional(),
@@ -2625,7 +2625,7 @@ export const ResponseBody5$outboundSchema: z.ZodType<
2625
2625
  z.ZodTypeDef,
2626
2626
  ResponseBody5
2627
2627
  > = z.object({
2628
- id: z.string().default("tool_01KABAYFXA5V5Q720GR9SZ8229"),
2628
+ id: z.string().default("tool_01KADNRAHXRWBTQ8WQWVNPWN4S"),
2629
2629
  path: z.string(),
2630
2630
  key: z.string(),
2631
2631
  displayName: z.string().optional(),
@@ -2795,7 +2795,7 @@ export const ResponseBodyTools$inboundSchema: z.ZodType<
2795
2795
  z.ZodTypeDef,
2796
2796
  unknown
2797
2797
  > = z.object({
2798
- id: z.string().default("01KABAYFX8FVHYNBDQFCWMYJ5K"),
2798
+ id: z.string().default("01KADNRAHWR5PSGQDXJSTY64RP"),
2799
2799
  name: z.string(),
2800
2800
  description: z.string().optional(),
2801
2801
  schema: z.lazy(() => CreateToolResponseBodySchema$inboundSchema),
@@ -2814,7 +2814,7 @@ export const ResponseBodyTools$outboundSchema: z.ZodType<
2814
2814
  z.ZodTypeDef,
2815
2815
  ResponseBodyTools
2816
2816
  > = z.object({
2817
- id: z.string().default("01KABAYFX8FVHYNBDQFCWMYJ5K"),
2817
+ id: z.string().default("01KADNRAHWR5PSGQDXJSTY64RP"),
2818
2818
  name: z.string(),
2819
2819
  description: z.string().optional(),
2820
2820
  schema: z.lazy(() => CreateToolResponseBodySchema$outboundSchema),
@@ -2909,7 +2909,7 @@ export const ResponseBody4$inboundSchema: z.ZodType<
2909
2909
  z.ZodTypeDef,
2910
2910
  unknown
2911
2911
  > = z.object({
2912
- _id: z.string().default("tool_01KABAYFX6PSRQF0K6TW9TX2BH"),
2912
+ _id: z.string().default("tool_01KADNRAHT6J7NH060SYSDPT6E"),
2913
2913
  path: z.string(),
2914
2914
  key: z.string(),
2915
2915
  display_name: z.string().optional(),
@@ -2962,7 +2962,7 @@ export const ResponseBody4$outboundSchema: z.ZodType<
2962
2962
  z.ZodTypeDef,
2963
2963
  ResponseBody4
2964
2964
  > = z.object({
2965
- id: z.string().default("tool_01KABAYFX6PSRQF0K6TW9TX2BH"),
2965
+ id: z.string().default("tool_01KADNRAHT6J7NH060SYSDPT6E"),
2966
2966
  path: z.string(),
2967
2967
  key: z.string(),
2968
2968
  displayName: z.string().optional(),
@@ -3318,7 +3318,7 @@ export const ResponseBody3$inboundSchema: z.ZodType<
3318
3318
  z.ZodTypeDef,
3319
3319
  unknown
3320
3320
  > = z.object({
3321
- _id: z.string().default("tool_01KABAYFX3V8NC3QKYZ1A388QR"),
3321
+ _id: z.string().default("tool_01KADNRAHPC8QAJ0WAB1AMZ3FZ"),
3322
3322
  path: z.string(),
3323
3323
  key: z.string(),
3324
3324
  display_name: z.string().optional(),
@@ -3369,7 +3369,7 @@ export const ResponseBody3$outboundSchema: z.ZodType<
3369
3369
  z.ZodTypeDef,
3370
3370
  ResponseBody3
3371
3371
  > = z.object({
3372
- id: z.string().default("tool_01KABAYFX3V8NC3QKYZ1A388QR"),
3372
+ id: z.string().default("tool_01KADNRAHPC8QAJ0WAB1AMZ3FZ"),
3373
3373
  path: z.string(),
3374
3374
  key: z.string(),
3375
3375
  displayName: z.string().optional(),
@@ -3539,7 +3539,7 @@ export const ResponseBody2$inboundSchema: z.ZodType<
3539
3539
  z.ZodTypeDef,
3540
3540
  unknown
3541
3541
  > = z.object({
3542
- _id: z.string().default("tool_01KABAYFX1RPZ0BA6W03ZE3GZM"),
3542
+ _id: z.string().default("tool_01KADNRAHMVB6VZSTXG3V57M9T"),
3543
3543
  path: z.string(),
3544
3544
  key: z.string(),
3545
3545
  display_name: z.string().optional(),
@@ -3591,7 +3591,7 @@ export const ResponseBody2$outboundSchema: z.ZodType<
3591
3591
  z.ZodTypeDef,
3592
3592
  ResponseBody2
3593
3593
  > = z.object({
3594
- id: z.string().default("tool_01KABAYFX1RPZ0BA6W03ZE3GZM"),
3594
+ id: z.string().default("tool_01KADNRAHMVB6VZSTXG3V57M9T"),
3595
3595
  path: z.string(),
3596
3596
  key: z.string(),
3597
3597
  displayName: z.string().optional(),
@@ -3777,7 +3777,7 @@ export const ResponseBody1$inboundSchema: z.ZodType<
3777
3777
  z.ZodTypeDef,
3778
3778
  unknown
3779
3779
  > = z.object({
3780
- _id: z.string().default("tool_01KABAYFWYRDYXA5GGHYZ2C945"),
3780
+ _id: z.string().default("tool_01KADNRAHHHRJ8SS45B9AFZNP5"),
3781
3781
  path: z.string(),
3782
3782
  key: z.string(),
3783
3783
  display_name: z.string().optional(),
@@ -3828,7 +3828,7 @@ export const ResponseBody1$outboundSchema: z.ZodType<
3828
3828
  z.ZodTypeDef,
3829
3829
  ResponseBody1
3830
3830
  > = z.object({
3831
- id: z.string().default("tool_01KABAYFWYRDYXA5GGHYZ2C945"),
3831
+ id: z.string().default("tool_01KADNRAHHHRJ8SS45B9AFZNP5"),
3832
3832
  path: z.string(),
3833
3833
  key: z.string(),
3834
3834
  displayName: z.string().optional(),
@@ -1704,6 +1704,20 @@ export type DeploymentGetConfigVerbosity = ClosedEnum<
1704
1704
  typeof DeploymentGetConfigVerbosity
1705
1705
  >;
1706
1706
 
1707
+ /**
1708
+ * The level of thinking to use for the model. Only supported by `Google AI`
1709
+ */
1710
+ export const DeploymentGetConfigThinkingLevel = {
1711
+ Low: "low",
1712
+ High: "high",
1713
+ } as const;
1714
+ /**
1715
+ * The level of thinking to use for the model. Only supported by `Google AI`
1716
+ */
1717
+ export type DeploymentGetConfigThinkingLevel = ClosedEnum<
1718
+ typeof DeploymentGetConfigThinkingLevel
1719
+ >;
1720
+
1707
1721
  /**
1708
1722
  * Model Parameters: Not all parameters apply to every model
1709
1723
  */
@@ -1796,6 +1810,10 @@ export type DeploymentGetConfigParameters = {
1796
1810
  * Controls the verbosity of the model output.
1797
1811
  */
1798
1812
  verbosity?: DeploymentGetConfigVerbosity | undefined;
1813
+ /**
1814
+ * The level of thinking to use for the model. Only supported by `Google AI`
1815
+ */
1816
+ thinkingLevel?: DeploymentGetConfigThinkingLevel | undefined;
1799
1817
  };
1800
1818
 
1801
1819
  /**
@@ -7734,6 +7752,15 @@ export const DeploymentGetConfigVerbosity$outboundSchema: z.ZodNativeEnum<
7734
7752
  typeof DeploymentGetConfigVerbosity
7735
7753
  > = DeploymentGetConfigVerbosity$inboundSchema;
7736
7754
 
7755
+ /** @internal */
7756
+ export const DeploymentGetConfigThinkingLevel$inboundSchema: z.ZodNativeEnum<
7757
+ typeof DeploymentGetConfigThinkingLevel
7758
+ > = z.nativeEnum(DeploymentGetConfigThinkingLevel);
7759
+ /** @internal */
7760
+ export const DeploymentGetConfigThinkingLevel$outboundSchema: z.ZodNativeEnum<
7761
+ typeof DeploymentGetConfigThinkingLevel
7762
+ > = DeploymentGetConfigThinkingLevel$inboundSchema;
7763
+
7737
7764
  /** @internal */
7738
7765
  export const DeploymentGetConfigParameters$inboundSchema: z.ZodType<
7739
7766
  DeploymentGetConfigParameters,
@@ -7768,6 +7795,7 @@ export const DeploymentGetConfigParameters$inboundSchema: z.ZodType<
7768
7795
  reasoningEffort: DeploymentGetConfigReasoningEffort$inboundSchema.optional(),
7769
7796
  budgetTokens: z.number().optional(),
7770
7797
  verbosity: DeploymentGetConfigVerbosity$inboundSchema.optional(),
7798
+ thinkingLevel: DeploymentGetConfigThinkingLevel$inboundSchema.optional(),
7771
7799
  }).transform((v) => {
7772
7800
  return remap$(v, {
7773
7801
  "encoding_format": "encodingFormat",
@@ -7801,6 +7829,7 @@ export type DeploymentGetConfigParameters$Outbound = {
7801
7829
  reasoningEffort?: string | undefined;
7802
7830
  budgetTokens?: number | undefined;
7803
7831
  verbosity?: string | undefined;
7832
+ thinkingLevel?: string | undefined;
7804
7833
  };
7805
7834
 
7806
7835
  /** @internal */
@@ -7837,6 +7866,7 @@ export const DeploymentGetConfigParameters$outboundSchema: z.ZodType<
7837
7866
  reasoningEffort: DeploymentGetConfigReasoningEffort$outboundSchema.optional(),
7838
7867
  budgetTokens: z.number().optional(),
7839
7868
  verbosity: DeploymentGetConfigVerbosity$outboundSchema.optional(),
7869
+ thinkingLevel: DeploymentGetConfigThinkingLevel$outboundSchema.optional(),
7840
7870
  }).transform((v) => {
7841
7871
  return remap$(v, {
7842
7872
  encodingFormat: "encoding_format",
@@ -275,6 +275,20 @@ export const DeploymentsVerbosity = {
275
275
  */
276
276
  export type DeploymentsVerbosity = ClosedEnum<typeof DeploymentsVerbosity>;
277
277
 
278
+ /**
279
+ * The level of thinking to use for the model. Only supported by `Google AI`
280
+ */
281
+ export const DeploymentsThinkingLevel = {
282
+ Low: "low",
283
+ High: "high",
284
+ } as const;
285
+ /**
286
+ * The level of thinking to use for the model. Only supported by `Google AI`
287
+ */
288
+ export type DeploymentsThinkingLevel = ClosedEnum<
289
+ typeof DeploymentsThinkingLevel
290
+ >;
291
+
278
292
  /**
279
293
  * Model Parameters: Not all parameters apply to every model
280
294
  */
@@ -367,6 +381,10 @@ export type DeploymentsModelParameters = {
367
381
  * Controls the verbosity of the model output.
368
382
  */
369
383
  verbosity?: DeploymentsVerbosity | undefined;
384
+ /**
385
+ * The level of thinking to use for the model. Only supported by `Google AI`
386
+ */
387
+ thinkingLevel?: DeploymentsThinkingLevel | undefined;
370
388
  };
371
389
 
372
390
  export const DeploymentsProvider = {
@@ -1172,6 +1190,15 @@ export const DeploymentsVerbosity$outboundSchema: z.ZodNativeEnum<
1172
1190
  typeof DeploymentsVerbosity
1173
1191
  > = DeploymentsVerbosity$inboundSchema;
1174
1192
 
1193
+ /** @internal */
1194
+ export const DeploymentsThinkingLevel$inboundSchema: z.ZodNativeEnum<
1195
+ typeof DeploymentsThinkingLevel
1196
+ > = z.nativeEnum(DeploymentsThinkingLevel);
1197
+ /** @internal */
1198
+ export const DeploymentsThinkingLevel$outboundSchema: z.ZodNativeEnum<
1199
+ typeof DeploymentsThinkingLevel
1200
+ > = DeploymentsThinkingLevel$inboundSchema;
1201
+
1175
1202
  /** @internal */
1176
1203
  export const DeploymentsModelParameters$inboundSchema: z.ZodType<
1177
1204
  DeploymentsModelParameters,
@@ -1205,6 +1232,7 @@ export const DeploymentsModelParameters$inboundSchema: z.ZodType<
1205
1232
  reasoningEffort: DeploymentsReasoningEffort$inboundSchema.optional(),
1206
1233
  budgetTokens: z.number().optional(),
1207
1234
  verbosity: DeploymentsVerbosity$inboundSchema.optional(),
1235
+ thinkingLevel: DeploymentsThinkingLevel$inboundSchema.optional(),
1208
1236
  }).transform((v) => {
1209
1237
  return remap$(v, {
1210
1238
  "encoding_format": "encodingFormat",
@@ -1238,6 +1266,7 @@ export type DeploymentsModelParameters$Outbound = {
1238
1266
  reasoningEffort?: string | undefined;
1239
1267
  budgetTokens?: number | undefined;
1240
1268
  verbosity?: string | undefined;
1269
+ thinkingLevel?: string | undefined;
1241
1270
  };
1242
1271
 
1243
1272
  /** @internal */
@@ -1273,6 +1302,7 @@ export const DeploymentsModelParameters$outboundSchema: z.ZodType<
1273
1302
  reasoningEffort: DeploymentsReasoningEffort$outboundSchema.optional(),
1274
1303
  budgetTokens: z.number().optional(),
1275
1304
  verbosity: DeploymentsVerbosity$outboundSchema.optional(),
1305
+ thinkingLevel: DeploymentsThinkingLevel$outboundSchema.optional(),
1276
1306
  }).transform((v) => {
1277
1307
  return remap$(v, {
1278
1308
  encodingFormat: "encoding_format",
@@ -9,11 +9,23 @@ import { ClosedEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
+ export type DuplicateAgentRequestBody = {
13
+ /**
14
+ * The unique key for the duplicated agent
15
+ */
16
+ key: string;
17
+ /**
18
+ * The display name for the duplicated agent
19
+ */
20
+ displayName?: string | undefined;
21
+ };
22
+
12
23
  export type DuplicateAgentRequest = {
13
24
  /**
14
- * The ID of the agent to duplicate
25
+ * The key of the agent to duplicate
15
26
  */
16
- id: string;
27
+ agentKey: string;
28
+ requestBody?: DuplicateAgentRequestBody | undefined;
17
29
  };
18
30
 
19
31
  /**
@@ -313,6 +325,20 @@ export const DuplicateAgentType = {
313
325
  */
314
326
  export type DuplicateAgentType = ClosedEnum<typeof DuplicateAgentType>;
315
327
 
328
+ /**
329
+ * 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.
330
+ */
331
+ export const DuplicateAgentThinkingLevel = {
332
+ Low: "low",
333
+ High: "high",
334
+ } as const;
335
+ /**
336
+ * 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.
337
+ */
338
+ export type DuplicateAgentThinkingLevel = ClosedEnum<
339
+ typeof DuplicateAgentThinkingLevel
340
+ >;
341
+
316
342
  export type DuplicateAgentThinking = {
317
343
  /**
318
344
  * Enables or disables the thinking mode capability
@@ -322,6 +348,10 @@ export type DuplicateAgentThinking = {
322
348
  * 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`.
323
349
  */
324
350
  budgetTokens: number;
351
+ /**
352
+ * 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.
353
+ */
354
+ thinkingLevel?: DuplicateAgentThinkingLevel | undefined;
325
355
  };
326
356
 
327
357
  /**
@@ -649,6 +679,20 @@ export type DuplicateAgentFallbackModelConfigurationType = ClosedEnum<
649
679
  typeof DuplicateAgentFallbackModelConfigurationType
650
680
  >;
651
681
 
682
+ /**
683
+ * 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.
684
+ */
685
+ export const DuplicateAgentFallbackModelConfigurationThinkingLevel = {
686
+ Low: "low",
687
+ High: "high",
688
+ } as const;
689
+ /**
690
+ * 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.
691
+ */
692
+ export type DuplicateAgentFallbackModelConfigurationThinkingLevel = ClosedEnum<
693
+ typeof DuplicateAgentFallbackModelConfigurationThinkingLevel
694
+ >;
695
+
652
696
  export type DuplicateAgentFallbackModelConfigurationThinking = {
653
697
  /**
654
698
  * Enables or disables the thinking mode capability
@@ -658,6 +702,12 @@ export type DuplicateAgentFallbackModelConfigurationThinking = {
658
702
  * 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`.
659
703
  */
660
704
  budgetTokens: number;
705
+ /**
706
+ * 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.
707
+ */
708
+ thinkingLevel?:
709
+ | DuplicateAgentFallbackModelConfigurationThinkingLevel
710
+ | undefined;
661
711
  };
662
712
 
663
713
  /**
@@ -938,17 +988,74 @@ export type DuplicateAgentResponseBody = {
938
988
  knowledgeBases?: Array<DuplicateAgentKnowledgeBases> | undefined;
939
989
  };
940
990
 
991
+ /** @internal */
992
+ export const DuplicateAgentRequestBody$inboundSchema: z.ZodType<
993
+ DuplicateAgentRequestBody,
994
+ z.ZodTypeDef,
995
+ unknown
996
+ > = z.object({
997
+ key: z.string(),
998
+ display_name: z.string().optional(),
999
+ }).transform((v) => {
1000
+ return remap$(v, {
1001
+ "display_name": "displayName",
1002
+ });
1003
+ });
1004
+ /** @internal */
1005
+ export type DuplicateAgentRequestBody$Outbound = {
1006
+ key: string;
1007
+ display_name?: string | undefined;
1008
+ };
1009
+
1010
+ /** @internal */
1011
+ export const DuplicateAgentRequestBody$outboundSchema: z.ZodType<
1012
+ DuplicateAgentRequestBody$Outbound,
1013
+ z.ZodTypeDef,
1014
+ DuplicateAgentRequestBody
1015
+ > = z.object({
1016
+ key: z.string(),
1017
+ displayName: z.string().optional(),
1018
+ }).transform((v) => {
1019
+ return remap$(v, {
1020
+ displayName: "display_name",
1021
+ });
1022
+ });
1023
+
1024
+ export function duplicateAgentRequestBodyToJSON(
1025
+ duplicateAgentRequestBody: DuplicateAgentRequestBody,
1026
+ ): string {
1027
+ return JSON.stringify(
1028
+ DuplicateAgentRequestBody$outboundSchema.parse(duplicateAgentRequestBody),
1029
+ );
1030
+ }
1031
+ export function duplicateAgentRequestBodyFromJSON(
1032
+ jsonString: string,
1033
+ ): SafeParseResult<DuplicateAgentRequestBody, SDKValidationError> {
1034
+ return safeParse(
1035
+ jsonString,
1036
+ (x) => DuplicateAgentRequestBody$inboundSchema.parse(JSON.parse(x)),
1037
+ `Failed to parse 'DuplicateAgentRequestBody' from JSON`,
1038
+ );
1039
+ }
1040
+
941
1041
  /** @internal */
942
1042
  export const DuplicateAgentRequest$inboundSchema: z.ZodType<
943
1043
  DuplicateAgentRequest,
944
1044
  z.ZodTypeDef,
945
1045
  unknown
946
1046
  > = z.object({
947
- id: z.string(),
1047
+ agent_key: z.string(),
1048
+ RequestBody: z.lazy(() => DuplicateAgentRequestBody$inboundSchema).optional(),
1049
+ }).transform((v) => {
1050
+ return remap$(v, {
1051
+ "agent_key": "agentKey",
1052
+ "RequestBody": "requestBody",
1053
+ });
948
1054
  });
949
1055
  /** @internal */
950
1056
  export type DuplicateAgentRequest$Outbound = {
951
- id: string;
1057
+ agent_key: string;
1058
+ RequestBody?: DuplicateAgentRequestBody$Outbound | undefined;
952
1059
  };
953
1060
 
954
1061
  /** @internal */
@@ -957,7 +1064,14 @@ export const DuplicateAgentRequest$outboundSchema: z.ZodType<
957
1064
  z.ZodTypeDef,
958
1065
  DuplicateAgentRequest
959
1066
  > = z.object({
960
- id: z.string(),
1067
+ agentKey: z.string(),
1068
+ requestBody: z.lazy(() => DuplicateAgentRequestBody$outboundSchema)
1069
+ .optional(),
1070
+ }).transform((v) => {
1071
+ return remap$(v, {
1072
+ agentKey: "agent_key",
1073
+ requestBody: "RequestBody",
1074
+ });
961
1075
  });
962
1076
 
963
1077
  export function duplicateAgentRequestToJSON(
@@ -1740,6 +1854,15 @@ export const DuplicateAgentType$outboundSchema: z.ZodNativeEnum<
1740
1854
  typeof DuplicateAgentType
1741
1855
  > = DuplicateAgentType$inboundSchema;
1742
1856
 
1857
+ /** @internal */
1858
+ export const DuplicateAgentThinkingLevel$inboundSchema: z.ZodNativeEnum<
1859
+ typeof DuplicateAgentThinkingLevel
1860
+ > = z.nativeEnum(DuplicateAgentThinkingLevel);
1861
+ /** @internal */
1862
+ export const DuplicateAgentThinkingLevel$outboundSchema: z.ZodNativeEnum<
1863
+ typeof DuplicateAgentThinkingLevel
1864
+ > = DuplicateAgentThinkingLevel$inboundSchema;
1865
+
1743
1866
  /** @internal */
1744
1867
  export const DuplicateAgentThinking$inboundSchema: z.ZodType<
1745
1868
  DuplicateAgentThinking,
@@ -1748,15 +1871,18 @@ export const DuplicateAgentThinking$inboundSchema: z.ZodType<
1748
1871
  > = z.object({
1749
1872
  type: DuplicateAgentType$inboundSchema,
1750
1873
  budget_tokens: z.number(),
1874
+ thinking_level: DuplicateAgentThinkingLevel$inboundSchema.optional(),
1751
1875
  }).transform((v) => {
1752
1876
  return remap$(v, {
1753
1877
  "budget_tokens": "budgetTokens",
1878
+ "thinking_level": "thinkingLevel",
1754
1879
  });
1755
1880
  });
1756
1881
  /** @internal */
1757
1882
  export type DuplicateAgentThinking$Outbound = {
1758
1883
  type: string;
1759
1884
  budget_tokens: number;
1885
+ thinking_level?: string | undefined;
1760
1886
  };
1761
1887
 
1762
1888
  /** @internal */
@@ -1767,9 +1893,11 @@ export const DuplicateAgentThinking$outboundSchema: z.ZodType<
1767
1893
  > = z.object({
1768
1894
  type: DuplicateAgentType$outboundSchema,
1769
1895
  budgetTokens: z.number(),
1896
+ thinkingLevel: DuplicateAgentThinkingLevel$outboundSchema.optional(),
1770
1897
  }).transform((v) => {
1771
1898
  return remap$(v, {
1772
1899
  budgetTokens: "budget_tokens",
1900
+ thinkingLevel: "thinking_level",
1773
1901
  });
1774
1902
  });
1775
1903
 
@@ -2643,6 +2771,17 @@ export const DuplicateAgentFallbackModelConfigurationType$outboundSchema:
2643
2771
  z.ZodNativeEnum<typeof DuplicateAgentFallbackModelConfigurationType> =
2644
2772
  DuplicateAgentFallbackModelConfigurationType$inboundSchema;
2645
2773
 
2774
+ /** @internal */
2775
+ export const DuplicateAgentFallbackModelConfigurationThinkingLevel$inboundSchema:
2776
+ z.ZodNativeEnum<
2777
+ typeof DuplicateAgentFallbackModelConfigurationThinkingLevel
2778
+ > = z.nativeEnum(DuplicateAgentFallbackModelConfigurationThinkingLevel);
2779
+ /** @internal */
2780
+ export const DuplicateAgentFallbackModelConfigurationThinkingLevel$outboundSchema:
2781
+ z.ZodNativeEnum<
2782
+ typeof DuplicateAgentFallbackModelConfigurationThinkingLevel
2783
+ > = DuplicateAgentFallbackModelConfigurationThinkingLevel$inboundSchema;
2784
+
2646
2785
  /** @internal */
2647
2786
  export const DuplicateAgentFallbackModelConfigurationThinking$inboundSchema:
2648
2787
  z.ZodType<
@@ -2652,15 +2791,20 @@ export const DuplicateAgentFallbackModelConfigurationThinking$inboundSchema:
2652
2791
  > = z.object({
2653
2792
  type: DuplicateAgentFallbackModelConfigurationType$inboundSchema,
2654
2793
  budget_tokens: z.number(),
2794
+ thinking_level:
2795
+ DuplicateAgentFallbackModelConfigurationThinkingLevel$inboundSchema
2796
+ .optional(),
2655
2797
  }).transform((v) => {
2656
2798
  return remap$(v, {
2657
2799
  "budget_tokens": "budgetTokens",
2800
+ "thinking_level": "thinkingLevel",
2658
2801
  });
2659
2802
  });
2660
2803
  /** @internal */
2661
2804
  export type DuplicateAgentFallbackModelConfigurationThinking$Outbound = {
2662
2805
  type: string;
2663
2806
  budget_tokens: number;
2807
+ thinking_level?: string | undefined;
2664
2808
  };
2665
2809
 
2666
2810
  /** @internal */
@@ -2672,9 +2816,13 @@ export const DuplicateAgentFallbackModelConfigurationThinking$outboundSchema:
2672
2816
  > = z.object({
2673
2817
  type: DuplicateAgentFallbackModelConfigurationType$outboundSchema,
2674
2818
  budgetTokens: z.number(),
2819
+ thinkingLevel:
2820
+ DuplicateAgentFallbackModelConfigurationThinkingLevel$outboundSchema
2821
+ .optional(),
2675
2822
  }).transform((v) => {
2676
2823
  return remap$(v, {
2677
2824
  budgetTokens: "budget_tokens",
2825
+ thinkingLevel: "thinking_level",
2678
2826
  });
2679
2827
  });
2680
2828