@orq-ai/node 4.1.0-rc.33 → 4.1.0-rc.35

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 (219) hide show
  1. package/README.md +27 -23
  2. package/bin/mcp-server.js +6400 -6141
  3. package/bin/mcp-server.js.map +66 -58
  4. package/examples/package-lock.json +1 -1
  5. package/funcs/conversationsGenerateName.d.ts +18 -0
  6. package/funcs/conversationsGenerateName.d.ts.map +1 -0
  7. package/funcs/conversationsGenerateName.js +128 -0
  8. package/funcs/conversationsGenerateName.js.map +1 -0
  9. package/jsr.json +1 -1
  10. package/lib/config.d.ts +3 -3
  11. package/lib/config.js +3 -3
  12. package/mcp-server/mcp-server.js +1 -1
  13. package/mcp-server/server.d.ts.map +1 -1
  14. package/mcp-server/server.js +3 -1
  15. package/mcp-server/server.js.map +1 -1
  16. package/mcp-server/tools/conversationsGenerateName.d.ts +10 -0
  17. package/mcp-server/tools/conversationsGenerateName.d.ts.map +1 -0
  18. package/mcp-server/tools/conversationsGenerateName.js +66 -0
  19. package/mcp-server/tools/conversationsGenerateName.js.map +1 -0
  20. package/models/components/agentresponsemessage.d.ts +56 -0
  21. package/models/components/agentresponsemessage.d.ts.map +1 -0
  22. package/models/components/agentresponsemessage.js +116 -0
  23. package/models/components/agentresponsemessage.js.map +1 -0
  24. package/models/components/agentstartedstreamingevent.d.ts +6 -6
  25. package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
  26. package/models/components/agentstartedstreamingevent.js +11 -12
  27. package/models/components/agentstartedstreamingevent.js.map +1 -1
  28. package/models/components/conversationresponse.d.ts +39 -5
  29. package/models/components/conversationresponse.d.ts.map +1 -1
  30. package/models/components/conversationresponse.js +52 -8
  31. package/models/components/conversationresponse.js.map +1 -1
  32. package/models/components/createagentresponse.d.ts +124 -0
  33. package/models/components/createagentresponse.d.ts.map +1 -0
  34. package/models/components/createagentresponse.js +191 -0
  35. package/models/components/createagentresponse.js.map +1 -0
  36. package/models/components/index.d.ts +4 -0
  37. package/models/components/index.d.ts.map +1 -1
  38. package/models/components/index.js +4 -0
  39. package/models/components/index.js.map +1 -1
  40. package/models/components/invokedeploymentrequest.d.ts +8 -8
  41. package/models/components/invokedeploymentrequest.d.ts.map +1 -1
  42. package/models/components/invokedeploymentrequest.js +13 -11
  43. package/models/components/invokedeploymentrequest.js.map +1 -1
  44. package/models/components/partdoneevent.js +2 -2
  45. package/models/components/reasoningpart.js +2 -2
  46. package/models/components/responsedoneevent.d.ts +24 -24
  47. package/models/components/responsedoneevent.d.ts.map +1 -1
  48. package/models/components/responsedoneevent.js +31 -32
  49. package/models/components/responsedoneevent.js.map +1 -1
  50. package/models/components/thinkingconfigdisabledschema.d.ts +23 -0
  51. package/models/components/thinkingconfigdisabledschema.d.ts.map +1 -0
  52. package/models/components/thinkingconfigdisabledschema.js +58 -0
  53. package/models/components/thinkingconfigdisabledschema.js.map +1 -0
  54. package/models/components/thinkingconfigenabledschema.d.ts +49 -0
  55. package/models/components/thinkingconfigenabledschema.d.ts.map +1 -0
  56. package/models/components/thinkingconfigenabledschema.js +84 -0
  57. package/models/components/thinkingconfigenabledschema.js.map +1 -0
  58. package/models/errors/generateconversationname.d.ts +55 -0
  59. package/models/errors/generateconversationname.d.ts.map +1 -0
  60. package/models/errors/generateconversationname.js +106 -0
  61. package/models/errors/generateconversationname.js.map +1 -0
  62. package/models/errors/index.d.ts +1 -0
  63. package/models/errors/index.d.ts.map +1 -1
  64. package/models/errors/index.js +1 -0
  65. package/models/errors/index.js.map +1 -1
  66. package/models/operations/createagentrequest.d.ts +17 -204
  67. package/models/operations/createagentrequest.d.ts.map +1 -1
  68. package/models/operations/createagentrequest.js +75 -194
  69. package/models/operations/createagentrequest.js.map +1 -1
  70. package/models/operations/createagentresponserequest.d.ts +22 -166
  71. package/models/operations/createagentresponserequest.d.ts.map +1 -1
  72. package/models/operations/createagentresponserequest.js +32 -227
  73. package/models/operations/createagentresponserequest.js.map +1 -1
  74. package/models/operations/createbudget.js +2 -2
  75. package/models/operations/createcontact.js +2 -2
  76. package/models/operations/createconversation.d.ts +62 -8
  77. package/models/operations/createconversation.d.ts.map +1 -1
  78. package/models/operations/createconversation.js +94 -10
  79. package/models/operations/createconversation.js.map +1 -1
  80. package/models/operations/createdataset.js +2 -2
  81. package/models/operations/createdatasetitem.js +8 -8
  82. package/models/operations/createdatasource.js +2 -2
  83. package/models/operations/createeval.js +28 -28
  84. package/models/operations/createprompt.d.ts +10 -10
  85. package/models/operations/createprompt.d.ts.map +1 -1
  86. package/models/operations/createprompt.js +13 -13
  87. package/models/operations/createprompt.js.map +1 -1
  88. package/models/operations/createtool.js +12 -12
  89. package/models/operations/fileget.js +2 -2
  90. package/models/operations/filelist.js +2 -2
  91. package/models/operations/fileupload.js +2 -2
  92. package/models/operations/generateconversationname.d.ts +136 -0
  93. package/models/operations/generateconversationname.d.ts.map +1 -0
  94. package/models/operations/generateconversationname.js +179 -0
  95. package/models/operations/generateconversationname.js.map +1 -0
  96. package/models/operations/getalltools.js +12 -12
  97. package/models/operations/getbudget.js +2 -2
  98. package/models/operations/getevals.js +28 -28
  99. package/models/operations/index.d.ts +1 -0
  100. package/models/operations/index.d.ts.map +1 -1
  101. package/models/operations/index.js +1 -0
  102. package/models/operations/index.js.map +1 -1
  103. package/models/operations/invokeagent.d.ts +6 -6
  104. package/models/operations/invokeagent.d.ts.map +1 -1
  105. package/models/operations/invokeagent.js +10 -9
  106. package/models/operations/invokeagent.js.map +1 -1
  107. package/models/operations/listagents.d.ts +9 -102
  108. package/models/operations/listagents.d.ts.map +1 -1
  109. package/models/operations/listagents.js +38 -97
  110. package/models/operations/listagents.js.map +1 -1
  111. package/models/operations/listbudgets.js +2 -2
  112. package/models/operations/listcontacts.js +2 -2
  113. package/models/operations/listdatasetdatapoints.js +8 -8
  114. package/models/operations/listdatasets.js +2 -2
  115. package/models/operations/listdatasources.js +2 -2
  116. package/models/operations/retrieveagentrequest.d.ts +9 -102
  117. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  118. package/models/operations/retrieveagentrequest.js +38 -97
  119. package/models/operations/retrieveagentrequest.js.map +1 -1
  120. package/models/operations/retrievecontact.js +2 -2
  121. package/models/operations/retrieveconversation.d.ts +39 -5
  122. package/models/operations/retrieveconversation.d.ts.map +1 -1
  123. package/models/operations/retrieveconversation.js +53 -8
  124. package/models/operations/retrieveconversation.js.map +1 -1
  125. package/models/operations/retrievedatapoint.js +8 -8
  126. package/models/operations/retrievedataset.js +2 -2
  127. package/models/operations/retrievedatasource.js +2 -2
  128. package/models/operations/retrievetool.js +12 -12
  129. package/models/operations/runagent.d.ts +8 -102
  130. package/models/operations/runagent.d.ts.map +1 -1
  131. package/models/operations/runagent.js +41 -104
  132. package/models/operations/runagent.js.map +1 -1
  133. package/models/operations/streamrunagent.d.ts +8 -102
  134. package/models/operations/streamrunagent.d.ts.map +1 -1
  135. package/models/operations/streamrunagent.js +41 -103
  136. package/models/operations/streamrunagent.js.map +1 -1
  137. package/models/operations/updateagent.d.ts +17 -204
  138. package/models/operations/updateagent.d.ts.map +1 -1
  139. package/models/operations/updateagent.js +75 -193
  140. package/models/operations/updateagent.js.map +1 -1
  141. package/models/operations/updatebudget.js +2 -2
  142. package/models/operations/updatecontact.js +2 -2
  143. package/models/operations/updateconversation.d.ts +63 -6
  144. package/models/operations/updateconversation.d.ts.map +1 -1
  145. package/models/operations/updateconversation.js +93 -9
  146. package/models/operations/updateconversation.js.map +1 -1
  147. package/models/operations/updatedatapoint.js +8 -8
  148. package/models/operations/updatedataset.js +2 -2
  149. package/models/operations/updatedatasource.js +2 -2
  150. package/models/operations/updateeval.js +28 -28
  151. package/models/operations/updatetool.js +14 -14
  152. package/package.json +1 -1
  153. package/sdk/conversations.d.ts +7 -0
  154. package/sdk/conversations.d.ts.map +1 -1
  155. package/sdk/conversations.js +10 -0
  156. package/sdk/conversations.js.map +1 -1
  157. package/src/funcs/conversationsGenerateName.ts +194 -0
  158. package/src/lib/config.ts +3 -3
  159. package/src/mcp-server/mcp-server.ts +1 -1
  160. package/src/mcp-server/server.ts +3 -1
  161. package/src/mcp-server/tools/conversationsGenerateName.ts +40 -0
  162. package/src/models/components/agentresponsemessage.ts +185 -0
  163. package/src/models/components/agentstartedstreamingevent.ts +30 -21
  164. package/src/models/components/conversationresponse.ts +100 -12
  165. package/src/models/components/createagentresponse.ts +340 -0
  166. package/src/models/components/index.ts +4 -0
  167. package/src/models/components/invokedeploymentrequest.ts +25 -17
  168. package/src/models/components/partdoneevent.ts +2 -2
  169. package/src/models/components/reasoningpart.ts +2 -2
  170. package/src/models/components/responsedoneevent.ts +93 -68
  171. package/src/models/components/thinkingconfigdisabledschema.ts +59 -0
  172. package/src/models/components/thinkingconfigenabledschema.ts +106 -0
  173. package/src/models/errors/generateconversationname.ts +132 -0
  174. package/src/models/errors/index.ts +1 -0
  175. package/src/models/operations/createagentrequest.ts +123 -369
  176. package/src/models/operations/createagentresponserequest.ts +71 -513
  177. package/src/models/operations/createbudget.ts +2 -2
  178. package/src/models/operations/createcontact.ts +2 -2
  179. package/src/models/operations/createconversation.ts +192 -17
  180. package/src/models/operations/createdataset.ts +2 -2
  181. package/src/models/operations/createdatasetitem.ts +8 -8
  182. package/src/models/operations/createdatasource.ts +2 -2
  183. package/src/models/operations/createeval.ts +28 -28
  184. package/src/models/operations/createprompt.ts +23 -25
  185. package/src/models/operations/createtool.ts +12 -12
  186. package/src/models/operations/fileget.ts +2 -2
  187. package/src/models/operations/filelist.ts +2 -2
  188. package/src/models/operations/fileupload.ts +2 -2
  189. package/src/models/operations/generateconversationname.ts +341 -0
  190. package/src/models/operations/getalltools.ts +12 -12
  191. package/src/models/operations/getbudget.ts +2 -2
  192. package/src/models/operations/getevals.ts +28 -28
  193. package/src/models/operations/index.ts +1 -0
  194. package/src/models/operations/invokeagent.ts +19 -26
  195. package/src/models/operations/listagents.ts +63 -186
  196. package/src/models/operations/listbudgets.ts +2 -2
  197. package/src/models/operations/listcontacts.ts +2 -2
  198. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  199. package/src/models/operations/listdatasets.ts +2 -2
  200. package/src/models/operations/listdatasources.ts +2 -2
  201. package/src/models/operations/retrieveagentrequest.ts +61 -194
  202. package/src/models/operations/retrievecontact.ts +2 -2
  203. package/src/models/operations/retrieveconversation.ts +107 -12
  204. package/src/models/operations/retrievedatapoint.ts +8 -8
  205. package/src/models/operations/retrievedataset.ts +2 -2
  206. package/src/models/operations/retrievedatasource.ts +2 -2
  207. package/src/models/operations/retrievetool.ts +12 -12
  208. package/src/models/operations/runagent.ts +64 -194
  209. package/src/models/operations/streamrunagent.ts +62 -201
  210. package/src/models/operations/updateagent.ts +123 -379
  211. package/src/models/operations/updatebudget.ts +2 -2
  212. package/src/models/operations/updatecontact.ts +2 -2
  213. package/src/models/operations/updateconversation.ts +192 -14
  214. package/src/models/operations/updatedatapoint.ts +8 -8
  215. package/src/models/operations/updatedataset.ts +2 -2
  216. package/src/models/operations/updatedatasource.ts +2 -2
  217. package/src/models/operations/updateeval.ts +28 -28
  218. package/src/models/operations/updatetool.ts +14 -14
  219. package/src/sdk/conversations.ts +20 -0
@@ -7,6 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { ClosedEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import * as components from "../components/index.js";
10
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
12
 
12
13
  /**
@@ -128,48 +129,9 @@ export type ModelConfigurationStreamOptions = {
128
129
  includeUsage?: boolean | undefined;
129
130
  };
130
131
 
131
- /**
132
- * Enables or disables the thinking mode capability
133
- */
134
- export const UpdateAgentModelConfigurationType = {
135
- Enabled: "enabled",
136
- Disabled: "disabled",
137
- } as const;
138
- /**
139
- * Enables or disables the thinking mode capability
140
- */
141
- export type UpdateAgentModelConfigurationType = ClosedEnum<
142
- typeof UpdateAgentModelConfigurationType
143
- >;
144
-
145
- /**
146
- * 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.
147
- */
148
- export const ModelConfigurationThinkingLevel = {
149
- Low: "low",
150
- High: "high",
151
- } as const;
152
- /**
153
- * 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.
154
- */
155
- export type ModelConfigurationThinkingLevel = ClosedEnum<
156
- typeof ModelConfigurationThinkingLevel
157
- >;
158
-
159
- export type ModelConfigurationThinking = {
160
- /**
161
- * Enables or disables the thinking mode capability
162
- */
163
- type: UpdateAgentModelConfigurationType;
164
- /**
165
- * 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`.
166
- */
167
- budgetTokens: number;
168
- /**
169
- * 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.
170
- */
171
- thinkingLevel?: ModelConfigurationThinkingLevel | undefined;
172
- };
132
+ export type ModelConfigurationThinking =
133
+ | components.ThinkingConfigDisabledSchema
134
+ | components.ThinkingConfigEnabledSchema;
173
135
 
174
136
  /**
175
137
  * The type of the tool. Currently, only function is supported.
@@ -289,7 +251,10 @@ export type ModelConfigurationParameters = {
289
251
  * Options for streaming response. Only set this when you set stream: true.
290
252
  */
291
253
  streamOptions?: ModelConfigurationStreamOptions | null | undefined;
292
- thinking?: ModelConfigurationThinking | undefined;
254
+ thinking?:
255
+ | components.ThinkingConfigDisabledSchema
256
+ | components.ThinkingConfigEnabledSchema
257
+ | undefined;
293
258
  /**
294
259
  * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
295
260
  */
@@ -476,50 +441,9 @@ export type UpdateAgentFallbackModelConfigurationStreamOptions = {
476
441
  includeUsage?: boolean | undefined;
477
442
  };
478
443
 
479
- /**
480
- * Enables or disables the thinking mode capability
481
- */
482
- export const UpdateAgentFallbackModelConfigurationType = {
483
- Enabled: "enabled",
484
- Disabled: "disabled",
485
- } as const;
486
- /**
487
- * Enables or disables the thinking mode capability
488
- */
489
- export type UpdateAgentFallbackModelConfigurationType = ClosedEnum<
490
- typeof UpdateAgentFallbackModelConfigurationType
491
- >;
492
-
493
- /**
494
- * 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.
495
- */
496
- export const UpdateAgentFallbackModelConfigurationThinkingLevel = {
497
- Low: "low",
498
- High: "high",
499
- } as const;
500
- /**
501
- * 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.
502
- */
503
- export type UpdateAgentFallbackModelConfigurationThinkingLevel = ClosedEnum<
504
- typeof UpdateAgentFallbackModelConfigurationThinkingLevel
505
- >;
506
-
507
- export type UpdateAgentFallbackModelConfigurationThinking = {
508
- /**
509
- * Enables or disables the thinking mode capability
510
- */
511
- type: UpdateAgentFallbackModelConfigurationType;
512
- /**
513
- * 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`.
514
- */
515
- budgetTokens: number;
516
- /**
517
- * 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.
518
- */
519
- thinkingLevel?:
520
- | UpdateAgentFallbackModelConfigurationThinkingLevel
521
- | undefined;
522
- };
444
+ export type UpdateAgentFallbackModelConfigurationThinking =
445
+ | components.ThinkingConfigDisabledSchema
446
+ | components.ThinkingConfigEnabledSchema;
523
447
 
524
448
  /**
525
449
  * The type of the tool. Currently, only function is supported.
@@ -644,7 +568,10 @@ export type UpdateAgentFallbackModelConfigurationParameters = {
644
568
  | UpdateAgentFallbackModelConfigurationStreamOptions
645
569
  | null
646
570
  | undefined;
647
- thinking?: UpdateAgentFallbackModelConfigurationThinking | undefined;
571
+ thinking?:
572
+ | components.ThinkingConfigDisabledSchema
573
+ | components.ThinkingConfigEnabledSchema
574
+ | undefined;
648
575
  /**
649
576
  * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
650
577
  */
@@ -1391,46 +1318,9 @@ export type UpdateAgentStreamOptions = {
1391
1318
  includeUsage?: boolean | undefined;
1392
1319
  };
1393
1320
 
1394
- /**
1395
- * Enables or disables the thinking mode capability
1396
- */
1397
- export const UpdateAgentType = {
1398
- Enabled: "enabled",
1399
- Disabled: "disabled",
1400
- } as const;
1401
- /**
1402
- * Enables or disables the thinking mode capability
1403
- */
1404
- export type UpdateAgentType = ClosedEnum<typeof UpdateAgentType>;
1405
-
1406
- /**
1407
- * 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.
1408
- */
1409
- export const UpdateAgentThinkingLevel = {
1410
- Low: "low",
1411
- High: "high",
1412
- } as const;
1413
- /**
1414
- * 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.
1415
- */
1416
- export type UpdateAgentThinkingLevel = ClosedEnum<
1417
- typeof UpdateAgentThinkingLevel
1418
- >;
1419
-
1420
- export type UpdateAgentThinking = {
1421
- /**
1422
- * Enables or disables the thinking mode capability
1423
- */
1424
- type: UpdateAgentType;
1425
- /**
1426
- * 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`.
1427
- */
1428
- budgetTokens: number;
1429
- /**
1430
- * 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.
1431
- */
1432
- thinkingLevel?: UpdateAgentThinkingLevel | undefined;
1433
- };
1321
+ export type UpdateAgentThinking =
1322
+ | components.ThinkingConfigDisabledSchema
1323
+ | components.ThinkingConfigEnabledSchema;
1434
1324
 
1435
1325
  /**
1436
1326
  * The type of the tool. Currently, only function is supported.
@@ -1550,7 +1440,10 @@ export type UpdateAgentParameters = {
1550
1440
  * Options for streaming response. Only set this when you set stream: true.
1551
1441
  */
1552
1442
  streamOptions?: UpdateAgentStreamOptions | null | undefined;
1553
- thinking?: UpdateAgentThinking | undefined;
1443
+ thinking?:
1444
+ | components.ThinkingConfigDisabledSchema
1445
+ | components.ThinkingConfigEnabledSchema
1446
+ | undefined;
1554
1447
  /**
1555
1448
  * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
1556
1449
  */
@@ -1718,49 +1611,9 @@ export type UpdateAgentFallbackModelConfigurationAgentsStreamOptions = {
1718
1611
  includeUsage?: boolean | undefined;
1719
1612
  };
1720
1613
 
1721
- /**
1722
- * Enables or disables the thinking mode capability
1723
- */
1724
- export const UpdateAgentFallbackModelConfigurationAgentsType = {
1725
- Enabled: "enabled",
1726
- Disabled: "disabled",
1727
- } as const;
1728
- /**
1729
- * Enables or disables the thinking mode capability
1730
- */
1731
- export type UpdateAgentFallbackModelConfigurationAgentsType = ClosedEnum<
1732
- typeof UpdateAgentFallbackModelConfigurationAgentsType
1733
- >;
1734
-
1735
- /**
1736
- * 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.
1737
- */
1738
- export const UpdateAgentFallbackModelConfigurationAgentsThinkingLevel = {
1739
- Low: "low",
1740
- High: "high",
1741
- } as const;
1742
- /**
1743
- * 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.
1744
- */
1745
- export type UpdateAgentFallbackModelConfigurationAgentsThinkingLevel =
1746
- ClosedEnum<typeof UpdateAgentFallbackModelConfigurationAgentsThinkingLevel>;
1747
-
1748
- export type UpdateAgentFallbackModelConfigurationAgentsThinking = {
1749
- /**
1750
- * Enables or disables the thinking mode capability
1751
- */
1752
- type: UpdateAgentFallbackModelConfigurationAgentsType;
1753
- /**
1754
- * 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`.
1755
- */
1756
- budgetTokens: number;
1757
- /**
1758
- * 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.
1759
- */
1760
- thinkingLevel?:
1761
- | UpdateAgentFallbackModelConfigurationAgentsThinkingLevel
1762
- | undefined;
1763
- };
1614
+ export type UpdateAgentFallbackModelConfigurationAgentsThinking =
1615
+ | components.ThinkingConfigDisabledSchema
1616
+ | components.ThinkingConfigEnabledSchema;
1764
1617
 
1765
1618
  /**
1766
1619
  * The type of the tool. Currently, only function is supported.
@@ -1885,7 +1738,10 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters = {
1885
1738
  | UpdateAgentFallbackModelConfigurationAgentsStreamOptions
1886
1739
  | null
1887
1740
  | undefined;
1888
- thinking?: UpdateAgentFallbackModelConfigurationAgentsThinking | undefined;
1741
+ thinking?:
1742
+ | components.ThinkingConfigDisabledSchema
1743
+ | components.ThinkingConfigEnabledSchema
1744
+ | undefined;
1889
1745
  /**
1890
1746
  * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
1891
1747
  */
@@ -2434,61 +2290,29 @@ export function modelConfigurationStreamOptionsFromJSON(
2434
2290
  );
2435
2291
  }
2436
2292
 
2437
- /** @internal */
2438
- export const UpdateAgentModelConfigurationType$inboundSchema: z.ZodNativeEnum<
2439
- typeof UpdateAgentModelConfigurationType
2440
- > = z.nativeEnum(UpdateAgentModelConfigurationType);
2441
- /** @internal */
2442
- export const UpdateAgentModelConfigurationType$outboundSchema: z.ZodNativeEnum<
2443
- typeof UpdateAgentModelConfigurationType
2444
- > = UpdateAgentModelConfigurationType$inboundSchema;
2445
-
2446
- /** @internal */
2447
- export const ModelConfigurationThinkingLevel$inboundSchema: z.ZodNativeEnum<
2448
- typeof ModelConfigurationThinkingLevel
2449
- > = z.nativeEnum(ModelConfigurationThinkingLevel);
2450
- /** @internal */
2451
- export const ModelConfigurationThinkingLevel$outboundSchema: z.ZodNativeEnum<
2452
- typeof ModelConfigurationThinkingLevel
2453
- > = ModelConfigurationThinkingLevel$inboundSchema;
2454
-
2455
2293
  /** @internal */
2456
2294
  export const ModelConfigurationThinking$inboundSchema: z.ZodType<
2457
2295
  ModelConfigurationThinking,
2458
2296
  z.ZodTypeDef,
2459
2297
  unknown
2460
- > = z.object({
2461
- type: UpdateAgentModelConfigurationType$inboundSchema,
2462
- budget_tokens: z.number(),
2463
- thinking_level: ModelConfigurationThinkingLevel$inboundSchema.optional(),
2464
- }).transform((v) => {
2465
- return remap$(v, {
2466
- "budget_tokens": "budgetTokens",
2467
- "thinking_level": "thinkingLevel",
2468
- });
2469
- });
2298
+ > = z.union([
2299
+ components.ThinkingConfigDisabledSchema$inboundSchema,
2300
+ components.ThinkingConfigEnabledSchema$inboundSchema,
2301
+ ]);
2470
2302
  /** @internal */
2471
- export type ModelConfigurationThinking$Outbound = {
2472
- type: string;
2473
- budget_tokens: number;
2474
- thinking_level?: string | undefined;
2475
- };
2303
+ export type ModelConfigurationThinking$Outbound =
2304
+ | components.ThinkingConfigDisabledSchema$Outbound
2305
+ | components.ThinkingConfigEnabledSchema$Outbound;
2476
2306
 
2477
2307
  /** @internal */
2478
2308
  export const ModelConfigurationThinking$outboundSchema: z.ZodType<
2479
2309
  ModelConfigurationThinking$Outbound,
2480
2310
  z.ZodTypeDef,
2481
2311
  ModelConfigurationThinking
2482
- > = z.object({
2483
- type: UpdateAgentModelConfigurationType$outboundSchema,
2484
- budgetTokens: z.number(),
2485
- thinkingLevel: ModelConfigurationThinkingLevel$outboundSchema.optional(),
2486
- }).transform((v) => {
2487
- return remap$(v, {
2488
- budgetTokens: "budget_tokens",
2489
- thinkingLevel: "thinking_level",
2490
- });
2491
- });
2312
+ > = z.union([
2313
+ components.ThinkingConfigDisabledSchema$outboundSchema,
2314
+ components.ThinkingConfigEnabledSchema$outboundSchema,
2315
+ ]);
2492
2316
 
2493
2317
  export function modelConfigurationThinkingToJSON(
2494
2318
  modelConfigurationThinking: ModelConfigurationThinking,
@@ -2688,7 +2512,10 @@ export const ModelConfigurationParameters$inboundSchema: z.ZodType<
2688
2512
  stream_options: z.nullable(
2689
2513
  z.lazy(() => ModelConfigurationStreamOptions$inboundSchema),
2690
2514
  ).optional(),
2691
- thinking: z.lazy(() => ModelConfigurationThinking$inboundSchema).optional(),
2515
+ thinking: z.union([
2516
+ components.ThinkingConfigDisabledSchema$inboundSchema,
2517
+ components.ThinkingConfigEnabledSchema$inboundSchema,
2518
+ ]).optional(),
2692
2519
  temperature: z.nullable(z.number()).optional(),
2693
2520
  top_p: z.nullable(z.number()).optional(),
2694
2521
  top_k: z.nullable(z.number()).optional(),
@@ -2735,7 +2562,10 @@ export type ModelConfigurationParameters$Outbound = {
2735
2562
  seed?: number | null | undefined;
2736
2563
  stop?: string | Array<string> | null | undefined;
2737
2564
  stream_options?: ModelConfigurationStreamOptions$Outbound | null | undefined;
2738
- thinking?: ModelConfigurationThinking$Outbound | undefined;
2565
+ thinking?:
2566
+ | components.ThinkingConfigDisabledSchema$Outbound
2567
+ | components.ThinkingConfigEnabledSchema$Outbound
2568
+ | undefined;
2739
2569
  temperature?: number | null | undefined;
2740
2570
  top_p?: number | null | undefined;
2741
2571
  top_k?: number | null | undefined;
@@ -2772,7 +2602,10 @@ export const ModelConfigurationParameters$outboundSchema: z.ZodType<
2772
2602
  streamOptions: z.nullable(
2773
2603
  z.lazy(() => ModelConfigurationStreamOptions$outboundSchema),
2774
2604
  ).optional(),
2775
- thinking: z.lazy(() => ModelConfigurationThinking$outboundSchema).optional(),
2605
+ thinking: z.union([
2606
+ components.ThinkingConfigDisabledSchema$outboundSchema,
2607
+ components.ThinkingConfigEnabledSchema$outboundSchema,
2608
+ ]).optional(),
2776
2609
  temperature: z.nullable(z.number()).optional(),
2777
2610
  topP: z.nullable(z.number()).optional(),
2778
2611
  topK: z.nullable(z.number()).optional(),
@@ -3406,48 +3239,20 @@ export function updateAgentFallbackModelConfigurationStreamOptionsFromJSON(
3406
3239
  );
3407
3240
  }
3408
3241
 
3409
- /** @internal */
3410
- export const UpdateAgentFallbackModelConfigurationType$inboundSchema:
3411
- z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationType> = z
3412
- .nativeEnum(UpdateAgentFallbackModelConfigurationType);
3413
- /** @internal */
3414
- export const UpdateAgentFallbackModelConfigurationType$outboundSchema:
3415
- z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationType> =
3416
- UpdateAgentFallbackModelConfigurationType$inboundSchema;
3417
-
3418
- /** @internal */
3419
- export const UpdateAgentFallbackModelConfigurationThinkingLevel$inboundSchema:
3420
- z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationThinkingLevel> = z
3421
- .nativeEnum(UpdateAgentFallbackModelConfigurationThinkingLevel);
3422
- /** @internal */
3423
- export const UpdateAgentFallbackModelConfigurationThinkingLevel$outboundSchema:
3424
- z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationThinkingLevel> =
3425
- UpdateAgentFallbackModelConfigurationThinkingLevel$inboundSchema;
3426
-
3427
3242
  /** @internal */
3428
3243
  export const UpdateAgentFallbackModelConfigurationThinking$inboundSchema:
3429
3244
  z.ZodType<
3430
3245
  UpdateAgentFallbackModelConfigurationThinking,
3431
3246
  z.ZodTypeDef,
3432
3247
  unknown
3433
- > = z.object({
3434
- type: UpdateAgentFallbackModelConfigurationType$inboundSchema,
3435
- budget_tokens: z.number(),
3436
- thinking_level:
3437
- UpdateAgentFallbackModelConfigurationThinkingLevel$inboundSchema
3438
- .optional(),
3439
- }).transform((v) => {
3440
- return remap$(v, {
3441
- "budget_tokens": "budgetTokens",
3442
- "thinking_level": "thinkingLevel",
3443
- });
3444
- });
3248
+ > = z.union([
3249
+ components.ThinkingConfigDisabledSchema$inboundSchema,
3250
+ components.ThinkingConfigEnabledSchema$inboundSchema,
3251
+ ]);
3445
3252
  /** @internal */
3446
- export type UpdateAgentFallbackModelConfigurationThinking$Outbound = {
3447
- type: string;
3448
- budget_tokens: number;
3449
- thinking_level?: string | undefined;
3450
- };
3253
+ export type UpdateAgentFallbackModelConfigurationThinking$Outbound =
3254
+ | components.ThinkingConfigDisabledSchema$Outbound
3255
+ | components.ThinkingConfigEnabledSchema$Outbound;
3451
3256
 
3452
3257
  /** @internal */
3453
3258
  export const UpdateAgentFallbackModelConfigurationThinking$outboundSchema:
@@ -3455,18 +3260,10 @@ export const UpdateAgentFallbackModelConfigurationThinking$outboundSchema:
3455
3260
  UpdateAgentFallbackModelConfigurationThinking$Outbound,
3456
3261
  z.ZodTypeDef,
3457
3262
  UpdateAgentFallbackModelConfigurationThinking
3458
- > = z.object({
3459
- type: UpdateAgentFallbackModelConfigurationType$outboundSchema,
3460
- budgetTokens: z.number(),
3461
- thinkingLevel:
3462
- UpdateAgentFallbackModelConfigurationThinkingLevel$outboundSchema
3463
- .optional(),
3464
- }).transform((v) => {
3465
- return remap$(v, {
3466
- budgetTokens: "budget_tokens",
3467
- thinkingLevel: "thinking_level",
3468
- });
3469
- });
3263
+ > = z.union([
3264
+ components.ThinkingConfigDisabledSchema$outboundSchema,
3265
+ components.ThinkingConfigEnabledSchema$outboundSchema,
3266
+ ]);
3470
3267
 
3471
3268
  export function updateAgentFallbackModelConfigurationThinkingToJSON(
3472
3269
  updateAgentFallbackModelConfigurationThinking:
@@ -3692,9 +3489,10 @@ export const UpdateAgentFallbackModelConfigurationParameters$inboundSchema:
3692
3489
  UpdateAgentFallbackModelConfigurationStreamOptions$inboundSchema
3693
3490
  ),
3694
3491
  ).optional(),
3695
- thinking: z.lazy(() =>
3696
- UpdateAgentFallbackModelConfigurationThinking$inboundSchema
3697
- ).optional(),
3492
+ thinking: z.union([
3493
+ components.ThinkingConfigDisabledSchema$inboundSchema,
3494
+ components.ThinkingConfigEnabledSchema$inboundSchema,
3495
+ ]).optional(),
3698
3496
  temperature: z.nullable(z.number()).optional(),
3699
3497
  top_p: z.nullable(z.number()).optional(),
3700
3498
  top_k: z.nullable(z.number()).optional(),
@@ -3748,7 +3546,10 @@ export type UpdateAgentFallbackModelConfigurationParameters$Outbound = {
3748
3546
  | UpdateAgentFallbackModelConfigurationStreamOptions$Outbound
3749
3547
  | null
3750
3548
  | undefined;
3751
- thinking?: UpdateAgentFallbackModelConfigurationThinking$Outbound | undefined;
3549
+ thinking?:
3550
+ | components.ThinkingConfigDisabledSchema$Outbound
3551
+ | components.ThinkingConfigEnabledSchema$Outbound
3552
+ | undefined;
3752
3553
  temperature?: number | null | undefined;
3753
3554
  top_p?: number | null | undefined;
3754
3555
  top_k?: number | null | undefined;
@@ -3790,9 +3591,10 @@ export const UpdateAgentFallbackModelConfigurationParameters$outboundSchema:
3790
3591
  UpdateAgentFallbackModelConfigurationStreamOptions$outboundSchema
3791
3592
  ),
3792
3593
  ).optional(),
3793
- thinking: z.lazy(() =>
3794
- UpdateAgentFallbackModelConfigurationThinking$outboundSchema
3795
- ).optional(),
3594
+ thinking: z.union([
3595
+ components.ThinkingConfigDisabledSchema$outboundSchema,
3596
+ components.ThinkingConfigEnabledSchema$outboundSchema,
3597
+ ]).optional(),
3796
3598
  temperature: z.nullable(z.number()).optional(),
3797
3599
  topP: z.nullable(z.number()).optional(),
3798
3600
  topK: z.nullable(z.number()).optional(),
@@ -5010,7 +4812,7 @@ export const UpdateAgentSettings$inboundSchema: z.ZodType<
5010
4812
  unknown
5011
4813
  > = z.object({
5012
4814
  max_iterations: z.number().int().default(100),
5013
- max_execution_time: z.number().int().default(300),
4815
+ max_execution_time: z.number().int().default(600),
5014
4816
  tool_approval_required: UpdateAgentToolApprovalRequired$inboundSchema.default(
5015
4817
  "respect_tool",
5016
4818
  ),
@@ -5079,7 +4881,7 @@ export const UpdateAgentSettings$outboundSchema: z.ZodType<
5079
4881
  UpdateAgentSettings
5080
4882
  > = z.object({
5081
4883
  maxIterations: z.number().int().default(100),
5082
- maxExecutionTime: z.number().int().default(300),
4884
+ maxExecutionTime: z.number().int().default(600),
5083
4885
  toolApprovalRequired: UpdateAgentToolApprovalRequired$outboundSchema.default(
5084
4886
  "respect_tool",
5085
4887
  ),
@@ -5682,7 +5484,7 @@ export const UpdateAgentAgentsSettings$inboundSchema: z.ZodType<
5682
5484
  unknown
5683
5485
  > = z.object({
5684
5486
  max_iterations: z.number().int().default(100),
5685
- max_execution_time: z.number().int().default(300),
5487
+ max_execution_time: z.number().int().default(600),
5686
5488
  tool_approval_required: UpdateAgentAgentsToolApprovalRequired$inboundSchema
5687
5489
  .default("respect_tool"),
5688
5490
  tools: z.array(z.lazy(() => UpdateAgentTools$inboundSchema)).optional(),
@@ -5714,7 +5516,7 @@ export const UpdateAgentAgentsSettings$outboundSchema: z.ZodType<
5714
5516
  UpdateAgentAgentsSettings
5715
5517
  > = z.object({
5716
5518
  maxIterations: z.number().int().default(100),
5717
- maxExecutionTime: z.number().int().default(300),
5519
+ maxExecutionTime: z.number().int().default(600),
5718
5520
  toolApprovalRequired: UpdateAgentAgentsToolApprovalRequired$outboundSchema
5719
5521
  .default("respect_tool"),
5720
5522
  tools: z.array(z.lazy(() => UpdateAgentTools$outboundSchema)).optional(),
@@ -6159,61 +5961,29 @@ export function updateAgentStreamOptionsFromJSON(
6159
5961
  );
6160
5962
  }
6161
5963
 
6162
- /** @internal */
6163
- export const UpdateAgentType$inboundSchema: z.ZodNativeEnum<
6164
- typeof UpdateAgentType
6165
- > = z.nativeEnum(UpdateAgentType);
6166
- /** @internal */
6167
- export const UpdateAgentType$outboundSchema: z.ZodNativeEnum<
6168
- typeof UpdateAgentType
6169
- > = UpdateAgentType$inboundSchema;
6170
-
6171
- /** @internal */
6172
- export const UpdateAgentThinkingLevel$inboundSchema: z.ZodNativeEnum<
6173
- typeof UpdateAgentThinkingLevel
6174
- > = z.nativeEnum(UpdateAgentThinkingLevel);
6175
- /** @internal */
6176
- export const UpdateAgentThinkingLevel$outboundSchema: z.ZodNativeEnum<
6177
- typeof UpdateAgentThinkingLevel
6178
- > = UpdateAgentThinkingLevel$inboundSchema;
6179
-
6180
5964
  /** @internal */
6181
5965
  export const UpdateAgentThinking$inboundSchema: z.ZodType<
6182
5966
  UpdateAgentThinking,
6183
5967
  z.ZodTypeDef,
6184
5968
  unknown
6185
- > = z.object({
6186
- type: UpdateAgentType$inboundSchema,
6187
- budget_tokens: z.number(),
6188
- thinking_level: UpdateAgentThinkingLevel$inboundSchema.optional(),
6189
- }).transform((v) => {
6190
- return remap$(v, {
6191
- "budget_tokens": "budgetTokens",
6192
- "thinking_level": "thinkingLevel",
6193
- });
6194
- });
5969
+ > = z.union([
5970
+ components.ThinkingConfigDisabledSchema$inboundSchema,
5971
+ components.ThinkingConfigEnabledSchema$inboundSchema,
5972
+ ]);
6195
5973
  /** @internal */
6196
- export type UpdateAgentThinking$Outbound = {
6197
- type: string;
6198
- budget_tokens: number;
6199
- thinking_level?: string | undefined;
6200
- };
5974
+ export type UpdateAgentThinking$Outbound =
5975
+ | components.ThinkingConfigDisabledSchema$Outbound
5976
+ | components.ThinkingConfigEnabledSchema$Outbound;
6201
5977
 
6202
5978
  /** @internal */
6203
5979
  export const UpdateAgentThinking$outboundSchema: z.ZodType<
6204
5980
  UpdateAgentThinking$Outbound,
6205
5981
  z.ZodTypeDef,
6206
5982
  UpdateAgentThinking
6207
- > = z.object({
6208
- type: UpdateAgentType$outboundSchema,
6209
- budgetTokens: z.number(),
6210
- thinkingLevel: UpdateAgentThinkingLevel$outboundSchema.optional(),
6211
- }).transform((v) => {
6212
- return remap$(v, {
6213
- budgetTokens: "budget_tokens",
6214
- thinkingLevel: "thinking_level",
6215
- });
6216
- });
5983
+ > = z.union([
5984
+ components.ThinkingConfigDisabledSchema$outboundSchema,
5985
+ components.ThinkingConfigEnabledSchema$outboundSchema,
5986
+ ]);
6217
5987
 
6218
5988
  export function updateAgentThinkingToJSON(
6219
5989
  updateAgentThinking: UpdateAgentThinking,
@@ -6430,7 +6200,10 @@ export const UpdateAgentParameters$inboundSchema: z.ZodType<
6430
6200
  stream_options: z.nullable(
6431
6201
  z.lazy(() => UpdateAgentStreamOptions$inboundSchema),
6432
6202
  ).optional(),
6433
- thinking: z.lazy(() => UpdateAgentThinking$inboundSchema).optional(),
6203
+ thinking: z.union([
6204
+ components.ThinkingConfigDisabledSchema$inboundSchema,
6205
+ components.ThinkingConfigEnabledSchema$inboundSchema,
6206
+ ]).optional(),
6434
6207
  temperature: z.nullable(z.number()).optional(),
6435
6208
  top_p: z.nullable(z.number()).optional(),
6436
6209
  top_k: z.nullable(z.number()).optional(),
@@ -6477,7 +6250,10 @@ export type UpdateAgentParameters$Outbound = {
6477
6250
  seed?: number | null | undefined;
6478
6251
  stop?: string | Array<string> | null | undefined;
6479
6252
  stream_options?: UpdateAgentStreamOptions$Outbound | null | undefined;
6480
- thinking?: UpdateAgentThinking$Outbound | undefined;
6253
+ thinking?:
6254
+ | components.ThinkingConfigDisabledSchema$Outbound
6255
+ | components.ThinkingConfigEnabledSchema$Outbound
6256
+ | undefined;
6481
6257
  temperature?: number | null | undefined;
6482
6258
  top_p?: number | null | undefined;
6483
6259
  top_k?: number | null | undefined;
@@ -6519,7 +6295,10 @@ export const UpdateAgentParameters$outboundSchema: z.ZodType<
6519
6295
  streamOptions: z.nullable(
6520
6296
  z.lazy(() => UpdateAgentStreamOptions$outboundSchema),
6521
6297
  ).optional(),
6522
- thinking: z.lazy(() => UpdateAgentThinking$outboundSchema).optional(),
6298
+ thinking: z.union([
6299
+ components.ThinkingConfigDisabledSchema$outboundSchema,
6300
+ components.ThinkingConfigEnabledSchema$outboundSchema,
6301
+ ]).optional(),
6523
6302
  temperature: z.nullable(z.number()).optional(),
6524
6303
  topP: z.nullable(z.number()).optional(),
6525
6304
  topK: z.nullable(z.number()).optional(),
@@ -7076,50 +6855,20 @@ export function updateAgentFallbackModelConfigurationAgentsStreamOptionsFromJSON
7076
6855
  );
7077
6856
  }
7078
6857
 
7079
- /** @internal */
7080
- export const UpdateAgentFallbackModelConfigurationAgentsType$inboundSchema:
7081
- z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationAgentsType> = z
7082
- .nativeEnum(UpdateAgentFallbackModelConfigurationAgentsType);
7083
- /** @internal */
7084
- export const UpdateAgentFallbackModelConfigurationAgentsType$outboundSchema:
7085
- z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationAgentsType> =
7086
- UpdateAgentFallbackModelConfigurationAgentsType$inboundSchema;
7087
-
7088
- /** @internal */
7089
- export const UpdateAgentFallbackModelConfigurationAgentsThinkingLevel$inboundSchema:
7090
- z.ZodNativeEnum<
7091
- typeof UpdateAgentFallbackModelConfigurationAgentsThinkingLevel
7092
- > = z.nativeEnum(UpdateAgentFallbackModelConfigurationAgentsThinkingLevel);
7093
- /** @internal */
7094
- export const UpdateAgentFallbackModelConfigurationAgentsThinkingLevel$outboundSchema:
7095
- z.ZodNativeEnum<
7096
- typeof UpdateAgentFallbackModelConfigurationAgentsThinkingLevel
7097
- > = UpdateAgentFallbackModelConfigurationAgentsThinkingLevel$inboundSchema;
7098
-
7099
6858
  /** @internal */
7100
6859
  export const UpdateAgentFallbackModelConfigurationAgentsThinking$inboundSchema:
7101
6860
  z.ZodType<
7102
6861
  UpdateAgentFallbackModelConfigurationAgentsThinking,
7103
6862
  z.ZodTypeDef,
7104
6863
  unknown
7105
- > = z.object({
7106
- type: UpdateAgentFallbackModelConfigurationAgentsType$inboundSchema,
7107
- budget_tokens: z.number(),
7108
- thinking_level:
7109
- UpdateAgentFallbackModelConfigurationAgentsThinkingLevel$inboundSchema
7110
- .optional(),
7111
- }).transform((v) => {
7112
- return remap$(v, {
7113
- "budget_tokens": "budgetTokens",
7114
- "thinking_level": "thinkingLevel",
7115
- });
7116
- });
6864
+ > = z.union([
6865
+ components.ThinkingConfigDisabledSchema$inboundSchema,
6866
+ components.ThinkingConfigEnabledSchema$inboundSchema,
6867
+ ]);
7117
6868
  /** @internal */
7118
- export type UpdateAgentFallbackModelConfigurationAgentsThinking$Outbound = {
7119
- type: string;
7120
- budget_tokens: number;
7121
- thinking_level?: string | undefined;
7122
- };
6869
+ export type UpdateAgentFallbackModelConfigurationAgentsThinking$Outbound =
6870
+ | components.ThinkingConfigDisabledSchema$Outbound
6871
+ | components.ThinkingConfigEnabledSchema$Outbound;
7123
6872
 
7124
6873
  /** @internal */
7125
6874
  export const UpdateAgentFallbackModelConfigurationAgentsThinking$outboundSchema:
@@ -7127,18 +6876,10 @@ export const UpdateAgentFallbackModelConfigurationAgentsThinking$outboundSchema:
7127
6876
  UpdateAgentFallbackModelConfigurationAgentsThinking$Outbound,
7128
6877
  z.ZodTypeDef,
7129
6878
  UpdateAgentFallbackModelConfigurationAgentsThinking
7130
- > = z.object({
7131
- type: UpdateAgentFallbackModelConfigurationAgentsType$outboundSchema,
7132
- budgetTokens: z.number(),
7133
- thinkingLevel:
7134
- UpdateAgentFallbackModelConfigurationAgentsThinkingLevel$outboundSchema
7135
- .optional(),
7136
- }).transform((v) => {
7137
- return remap$(v, {
7138
- budgetTokens: "budget_tokens",
7139
- thinkingLevel: "thinking_level",
7140
- });
7141
- });
6879
+ > = z.union([
6880
+ components.ThinkingConfigDisabledSchema$outboundSchema,
6881
+ components.ThinkingConfigEnabledSchema$outboundSchema,
6882
+ ]);
7142
6883
 
7143
6884
  export function updateAgentFallbackModelConfigurationAgentsThinkingToJSON(
7144
6885
  updateAgentFallbackModelConfigurationAgentsThinking:
@@ -7391,9 +7132,10 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema
7391
7132
  UpdateAgentFallbackModelConfigurationAgentsStreamOptions$inboundSchema
7392
7133
  ),
7393
7134
  ).optional(),
7394
- thinking: z.lazy(() =>
7395
- UpdateAgentFallbackModelConfigurationAgentsThinking$inboundSchema
7396
- ).optional(),
7135
+ thinking: z.union([
7136
+ components.ThinkingConfigDisabledSchema$inboundSchema,
7137
+ components.ThinkingConfigEnabledSchema$inboundSchema,
7138
+ ]).optional(),
7397
7139
  temperature: z.nullable(z.number()).optional(),
7398
7140
  top_p: z.nullable(z.number()).optional(),
7399
7141
  top_k: z.nullable(z.number()).optional(),
@@ -7450,7 +7192,8 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters$Outbound = {
7450
7192
  | null
7451
7193
  | undefined;
7452
7194
  thinking?:
7453
- | UpdateAgentFallbackModelConfigurationAgentsThinking$Outbound
7195
+ | components.ThinkingConfigDisabledSchema$Outbound
7196
+ | components.ThinkingConfigEnabledSchema$Outbound
7454
7197
  | undefined;
7455
7198
  temperature?: number | null | undefined;
7456
7199
  top_p?: number | null | undefined;
@@ -7502,9 +7245,10 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$outboundSchem
7502
7245
  UpdateAgentFallbackModelConfigurationAgentsStreamOptions$outboundSchema
7503
7246
  ),
7504
7247
  ).optional(),
7505
- thinking: z.lazy(() =>
7506
- UpdateAgentFallbackModelConfigurationAgentsThinking$outboundSchema
7507
- ).optional(),
7248
+ thinking: z.union([
7249
+ components.ThinkingConfigDisabledSchema$outboundSchema,
7250
+ components.ThinkingConfigEnabledSchema$outboundSchema,
7251
+ ]).optional(),
7508
7252
  temperature: z.nullable(z.number()).optional(),
7509
7253
  topP: z.nullable(z.number()).optional(),
7510
7254
  topK: z.nullable(z.number()).optional(),