@orq-ai/node 3.13.9 → 3.13.11

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 (292) hide show
  1. package/README.md +107 -93
  2. package/bin/mcp-server.js +43652 -40649
  3. package/bin/mcp-server.js.map +117 -98
  4. package/docs/sdks/agents/README.md +566 -0
  5. package/examples/package-lock.json +1 -1
  6. package/funcs/agentsCreate.d.ts +18 -0
  7. package/funcs/agentsCreate.d.ts.map +1 -0
  8. package/funcs/agentsCreate.js +120 -0
  9. package/funcs/agentsCreate.js.map +1 -0
  10. package/funcs/agentsDelete.d.ts +18 -0
  11. package/funcs/agentsDelete.d.ts.map +1 -0
  12. package/funcs/agentsDelete.js +124 -0
  13. package/funcs/agentsDelete.js.map +1 -0
  14. package/funcs/agentsInvoke.d.ts +17 -0
  15. package/funcs/agentsInvoke.d.ts.map +1 -0
  16. package/funcs/agentsInvoke.js +120 -0
  17. package/funcs/agentsInvoke.js.map +1 -0
  18. package/funcs/agentsStream.d.ts +19 -0
  19. package/funcs/agentsStream.d.ts.map +1 -0
  20. package/funcs/agentsStream.js +134 -0
  21. package/funcs/agentsStream.js.map +1 -0
  22. package/funcs/agentsUpdate.d.ts +18 -0
  23. package/funcs/agentsUpdate.d.ts.map +1 -0
  24. package/funcs/agentsUpdate.js +124 -0
  25. package/funcs/agentsUpdate.js.map +1 -0
  26. package/jsr.json +1 -1
  27. package/lib/config.d.ts +2 -2
  28. package/lib/config.js +2 -2
  29. package/lib/config.js.map +1 -1
  30. package/mcp-server/mcp-server.js +1 -1
  31. package/mcp-server/mcp-server.js.map +1 -1
  32. package/mcp-server/server.d.ts.map +1 -1
  33. package/mcp-server/server.js +11 -1
  34. package/mcp-server/server.js.map +1 -1
  35. package/mcp-server/tools/agentsCreate.d.ts +8 -0
  36. package/mcp-server/tools/agentsCreate.d.ts.map +1 -0
  37. package/mcp-server/tools/agentsCreate.js +64 -0
  38. package/mcp-server/tools/agentsCreate.js.map +1 -0
  39. package/mcp-server/tools/agentsDelete.d.ts +8 -0
  40. package/mcp-server/tools/agentsDelete.d.ts.map +1 -0
  41. package/mcp-server/tools/agentsDelete.js +63 -0
  42. package/mcp-server/tools/agentsDelete.js.map +1 -0
  43. package/mcp-server/tools/agentsInvoke.d.ts +8 -0
  44. package/mcp-server/tools/agentsInvoke.d.ts.map +1 -0
  45. package/mcp-server/tools/agentsInvoke.js +64 -0
  46. package/mcp-server/tools/agentsInvoke.js.map +1 -0
  47. package/mcp-server/tools/agentsStream.d.ts +8 -0
  48. package/mcp-server/tools/agentsStream.d.ts.map +1 -0
  49. package/mcp-server/tools/agentsStream.js +64 -0
  50. package/mcp-server/tools/agentsStream.js.map +1 -0
  51. package/mcp-server/tools/agentsUpdate.d.ts +8 -0
  52. package/mcp-server/tools/agentsUpdate.d.ts.map +1 -0
  53. package/mcp-server/tools/agentsUpdate.js +64 -0
  54. package/mcp-server/tools/agentsUpdate.js.map +1 -0
  55. package/models/errors/createagent.d.ts +41 -0
  56. package/models/errors/createagent.d.ts.map +1 -0
  57. package/models/errors/createagent.js +85 -0
  58. package/models/errors/createagent.js.map +1 -0
  59. package/models/errors/deleteagent.d.ts +41 -0
  60. package/models/errors/deleteagent.d.ts.map +1 -0
  61. package/models/errors/deleteagent.js +85 -0
  62. package/models/errors/deleteagent.js.map +1 -0
  63. package/models/errors/index.d.ts +4 -0
  64. package/models/errors/index.d.ts.map +1 -1
  65. package/models/errors/index.js +4 -0
  66. package/models/errors/index.js.map +1 -1
  67. package/models/errors/streamagent.d.ts +41 -0
  68. package/models/errors/streamagent.d.ts.map +1 -0
  69. package/models/errors/streamagent.js +85 -0
  70. package/models/errors/streamagent.js.map +1 -0
  71. package/models/errors/updateagent.d.ts +41 -0
  72. package/models/errors/updateagent.d.ts.map +1 -0
  73. package/models/errors/updateagent.js +85 -0
  74. package/models/errors/updateagent.js.map +1 -0
  75. package/models/operations/createagent.d.ts +1504 -0
  76. package/models/operations/createagent.d.ts.map +1 -0
  77. package/models/operations/createagent.js +1530 -0
  78. package/models/operations/createagent.js.map +1 -0
  79. package/models/operations/createbudget.js +2 -2
  80. package/models/operations/createcontact.js +2 -2
  81. package/models/operations/createdataset.js +2 -2
  82. package/models/operations/createdatasetitem.js +2 -2
  83. package/models/operations/createdatasource.js +2 -2
  84. package/models/operations/createeval.js +28 -28
  85. package/models/operations/createtool.d.ts +20 -20
  86. package/models/operations/createtool.d.ts.map +1 -1
  87. package/models/operations/createtool.js +34 -34
  88. package/models/operations/createtool.js.map +1 -1
  89. package/models/operations/deleteagent.d.ts +32 -0
  90. package/models/operations/deleteagent.d.ts.map +1 -0
  91. package/models/operations/deleteagent.js +78 -0
  92. package/models/operations/deleteagent.js.map +1 -0
  93. package/models/operations/duplicatetool.d.ts +10 -10
  94. package/models/operations/duplicatetool.d.ts.map +1 -1
  95. package/models/operations/duplicatetool.js +20 -20
  96. package/models/operations/duplicatetool.js.map +1 -1
  97. package/models/operations/fileget.js +2 -2
  98. package/models/operations/filelist.js +2 -2
  99. package/models/operations/fileupload.js +2 -2
  100. package/models/operations/getagent.d.ts +44 -175
  101. package/models/operations/getagent.d.ts.map +1 -1
  102. package/models/operations/getagent.js +51 -184
  103. package/models/operations/getagent.js.map +1 -1
  104. package/models/operations/getalltools.d.ts +10 -10
  105. package/models/operations/getalltools.d.ts.map +1 -1
  106. package/models/operations/getalltools.js +20 -20
  107. package/models/operations/getalltools.js.map +1 -1
  108. package/models/operations/getbudget.js +2 -2
  109. package/models/operations/getevals.js +28 -28
  110. package/models/operations/index.d.ts +5 -0
  111. package/models/operations/index.d.ts.map +1 -1
  112. package/models/operations/index.js +5 -0
  113. package/models/operations/index.js.map +1 -1
  114. package/models/operations/invokeagent.d.ts +912 -0
  115. package/models/operations/invokeagent.d.ts.map +1 -0
  116. package/models/operations/invokeagent.js +824 -0
  117. package/models/operations/invokeagent.js.map +1 -0
  118. package/models/operations/listagents.d.ts +6 -137
  119. package/models/operations/listagents.d.ts.map +1 -1
  120. package/models/operations/listagents.js +3 -139
  121. package/models/operations/listagents.js.map +1 -1
  122. package/models/operations/listagenttasks.d.ts +5 -0
  123. package/models/operations/listagenttasks.d.ts.map +1 -1
  124. package/models/operations/listagenttasks.js +2 -0
  125. package/models/operations/listagenttasks.js.map +1 -1
  126. package/models/operations/listbudgets.js +2 -2
  127. package/models/operations/listcontacts.js +2 -2
  128. package/models/operations/listdatasetdatapoints.js +2 -2
  129. package/models/operations/listdatasets.js +2 -2
  130. package/models/operations/listdatasources.js +2 -2
  131. package/models/operations/retrievecontact.js +2 -2
  132. package/models/operations/retrievedatapoint.js +2 -2
  133. package/models/operations/retrievedataset.js +2 -2
  134. package/models/operations/retrievedatasource.js +2 -2
  135. package/models/operations/retrievetool.d.ts +10 -10
  136. package/models/operations/retrievetool.d.ts.map +1 -1
  137. package/models/operations/retrievetool.js +20 -20
  138. package/models/operations/retrievetool.js.map +1 -1
  139. package/models/operations/runagent.d.ts +640 -721
  140. package/models/operations/runagent.d.ts.map +1 -1
  141. package/models/operations/runagent.js +817 -928
  142. package/models/operations/runagent.js.map +1 -1
  143. package/models/operations/streamagent.d.ts +676 -0
  144. package/models/operations/streamagent.d.ts.map +1 -0
  145. package/models/operations/streamagent.js +670 -0
  146. package/models/operations/streamagent.js.map +1 -0
  147. package/models/operations/streamrunagent.d.ts +567 -648
  148. package/models/operations/streamrunagent.d.ts.map +1 -1
  149. package/models/operations/streamrunagent.js +721 -835
  150. package/models/operations/streamrunagent.js.map +1 -1
  151. package/models/operations/updateagent.d.ts +1515 -0
  152. package/models/operations/updateagent.d.ts.map +1 -0
  153. package/models/operations/updateagent.js +1576 -0
  154. package/models/operations/updateagent.js.map +1 -0
  155. package/models/operations/updatebudget.js +2 -2
  156. package/models/operations/updatecontact.js +2 -2
  157. package/models/operations/updatedatapoint.js +2 -2
  158. package/models/operations/updatedataset.js +2 -2
  159. package/models/operations/updatedatasource.js +2 -2
  160. package/models/operations/updateeval.js +28 -28
  161. package/models/operations/updatetool.d.ts +18 -18
  162. package/models/operations/updatetool.d.ts.map +1 -1
  163. package/models/operations/updatetool.js +36 -36
  164. package/models/operations/updatetool.js.map +1 -1
  165. package/package.json +1 -1
  166. package/packages/orq-rc/README.md +103 -94
  167. package/packages/orq-rc/docs/sdks/agents/README.md +297 -0
  168. package/packages/orq-rc/examples/package-lock.json +1 -1
  169. package/packages/orq-rc/jsr.json +1 -1
  170. package/packages/orq-rc/package-lock.json +2 -2
  171. package/packages/orq-rc/package.json +1 -1
  172. package/packages/orq-rc/src/funcs/agentsCreate.ts +172 -0
  173. package/packages/orq-rc/src/funcs/agentsDelete.ts +176 -0
  174. package/packages/orq-rc/src/funcs/agentsUpdate.ts +176 -0
  175. package/packages/orq-rc/src/lib/config.ts +2 -2
  176. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  177. package/packages/orq-rc/src/mcp-server/server.ts +7 -1
  178. package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +37 -0
  179. package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +35 -0
  180. package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +37 -0
  181. package/packages/orq-rc/src/models/errors/createagent.ts +80 -0
  182. package/packages/orq-rc/src/models/errors/deleteagent.ts +80 -0
  183. package/packages/orq-rc/src/models/errors/index.ts +3 -0
  184. package/packages/orq-rc/src/models/errors/updateagent.ts +80 -0
  185. package/packages/orq-rc/src/models/operations/createagent.ts +3027 -0
  186. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  187. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  188. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  189. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
  190. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  191. package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
  192. package/packages/orq-rc/src/models/operations/createtool.ts +50 -50
  193. package/packages/orq-rc/src/models/operations/deleteagent.ts +78 -0
  194. package/packages/orq-rc/src/models/operations/duplicatetool.ts +30 -30
  195. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  196. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  197. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  198. package/packages/orq-rc/src/models/operations/getagent.ts +87 -387
  199. package/packages/orq-rc/src/models/operations/getalltools.ts +33 -33
  200. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  201. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  202. package/packages/orq-rc/src/models/operations/index.ts +3 -0
  203. package/packages/orq-rc/src/models/operations/invokeagent.ts +12 -4
  204. package/packages/orq-rc/src/models/operations/listagents.ts +8 -321
  205. package/packages/orq-rc/src/models/operations/listagenttasks.ts +7 -0
  206. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  207. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  208. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
  209. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  210. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  211. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  212. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
  213. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  214. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  215. package/packages/orq-rc/src/models/operations/retrievetool.ts +30 -30
  216. package/packages/orq-rc/src/models/operations/runagent.ts +1003 -1113
  217. package/packages/orq-rc/src/models/operations/streamagent.ts +4 -2
  218. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1276 -1427
  219. package/packages/orq-rc/src/models/operations/updateagent.ts +3239 -0
  220. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  221. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  222. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
  223. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  224. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  225. package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
  226. package/packages/orq-rc/src/models/operations/updatetool.ts +56 -56
  227. package/packages/orq-rc/src/sdk/agents.ts +54 -0
  228. package/sdk/agents.d.ts +35 -0
  229. package/sdk/agents.d.ts.map +1 -1
  230. package/sdk/agents.js +50 -0
  231. package/sdk/agents.js.map +1 -1
  232. package/src/funcs/agentsCreate.ts +172 -0
  233. package/src/funcs/agentsDelete.ts +176 -0
  234. package/src/funcs/agentsInvoke.ts +167 -0
  235. package/src/funcs/agentsStream.ts +191 -0
  236. package/src/funcs/agentsUpdate.ts +176 -0
  237. package/src/lib/config.ts +2 -2
  238. package/src/mcp-server/mcp-server.ts +1 -1
  239. package/src/mcp-server/server.ts +11 -1
  240. package/src/mcp-server/tools/agentsCreate.ts +37 -0
  241. package/src/mcp-server/tools/agentsDelete.ts +35 -0
  242. package/src/mcp-server/tools/agentsInvoke.ts +37 -0
  243. package/src/mcp-server/tools/agentsStream.ts +37 -0
  244. package/src/mcp-server/tools/agentsUpdate.ts +37 -0
  245. package/src/models/errors/createagent.ts +80 -0
  246. package/src/models/errors/deleteagent.ts +80 -0
  247. package/src/models/errors/index.ts +4 -0
  248. package/src/models/errors/streamagent.ts +80 -0
  249. package/src/models/errors/updateagent.ts +80 -0
  250. package/src/models/operations/createagent.ts +3021 -0
  251. package/src/models/operations/createbudget.ts +2 -2
  252. package/src/models/operations/createcontact.ts +2 -2
  253. package/src/models/operations/createdataset.ts +2 -2
  254. package/src/models/operations/createdatasetitem.ts +2 -2
  255. package/src/models/operations/createdatasource.ts +2 -2
  256. package/src/models/operations/createeval.ts +28 -28
  257. package/src/models/operations/createtool.ts +54 -54
  258. package/src/models/operations/deleteagent.ts +78 -0
  259. package/src/models/operations/duplicatetool.ts +30 -30
  260. package/src/models/operations/fileget.ts +2 -2
  261. package/src/models/operations/filelist.ts +2 -2
  262. package/src/models/operations/fileupload.ts +2 -2
  263. package/src/models/operations/getagent.ts +87 -387
  264. package/src/models/operations/getalltools.ts +30 -30
  265. package/src/models/operations/getbudget.ts +2 -2
  266. package/src/models/operations/getevals.ts +28 -28
  267. package/src/models/operations/index.ts +5 -0
  268. package/src/models/operations/invokeagent.ts +1569 -0
  269. package/src/models/operations/listagents.ts +8 -321
  270. package/src/models/operations/listagenttasks.ts +7 -0
  271. package/src/models/operations/listbudgets.ts +2 -2
  272. package/src/models/operations/listcontacts.ts +2 -2
  273. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  274. package/src/models/operations/listdatasets.ts +2 -2
  275. package/src/models/operations/listdatasources.ts +2 -2
  276. package/src/models/operations/retrievecontact.ts +2 -2
  277. package/src/models/operations/retrievedatapoint.ts +2 -2
  278. package/src/models/operations/retrievedataset.ts +2 -2
  279. package/src/models/operations/retrievedatasource.ts +2 -2
  280. package/src/models/operations/retrievetool.ts +30 -30
  281. package/src/models/operations/runagent.ts +1441 -1488
  282. package/src/models/operations/streamagent.ts +1367 -0
  283. package/src/models/operations/streamrunagent.ts +1542 -1657
  284. package/src/models/operations/updateagent.ts +3227 -0
  285. package/src/models/operations/updatebudget.ts +2 -2
  286. package/src/models/operations/updatecontact.ts +2 -2
  287. package/src/models/operations/updatedatapoint.ts +2 -2
  288. package/src/models/operations/updatedataset.ts +2 -2
  289. package/src/models/operations/updatedatasource.ts +2 -2
  290. package/src/models/operations/updateeval.ts +28 -28
  291. package/src/models/operations/updatetool.ts +60 -60
  292. package/src/sdk/agents.ts +90 -0
@@ -0,0 +1,3239 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ /**
13
+ * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
14
+ */
15
+ export const UpdateAgentToolApprovalRequired = {
16
+ All: "all",
17
+ RespectTool: "respect_tool",
18
+ None: "none",
19
+ } as const;
20
+ /**
21
+ * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
22
+ */
23
+ export type UpdateAgentToolApprovalRequired = ClosedEnum<
24
+ typeof UpdateAgentToolApprovalRequired
25
+ >;
26
+
27
+ /**
28
+ * Function tool type
29
+ */
30
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type =
31
+ {
32
+ Function: "function",
33
+ } as const;
34
+ /**
35
+ * Function tool type
36
+ */
37
+ export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type =
38
+ ClosedEnum<
39
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type
40
+ >;
41
+
42
+ /**
43
+ * Calls custom function tools defined in the agent configuration. Must reference a pre-created function tool by key or id.
44
+ */
45
+ export type AgentToolInputCRUDFunctionTool = {
46
+ /**
47
+ * Function tool type
48
+ */
49
+ type:
50
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type;
51
+ /**
52
+ * The key of the pre-created function tool
53
+ */
54
+ key?: string | undefined;
55
+ /**
56
+ * The ID of the pre-created function tool
57
+ */
58
+ id?: string | undefined;
59
+ /**
60
+ * Whether this tool requires approval before execution
61
+ */
62
+ requiresApproval?: boolean | undefined;
63
+ };
64
+
65
+ /**
66
+ * Code execution tool type
67
+ */
68
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type =
69
+ {
70
+ Code: "code",
71
+ } as const;
72
+ /**
73
+ * Code execution tool type
74
+ */
75
+ export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type =
76
+ ClosedEnum<
77
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type
78
+ >;
79
+
80
+ /**
81
+ * Executes code snippets in a sandboxed environment. Must reference a pre-created code tool by key or id.
82
+ */
83
+ export type AgentToolInputCRUDCodeExecutionTool = {
84
+ /**
85
+ * Code execution tool type
86
+ */
87
+ type:
88
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type;
89
+ /**
90
+ * The key of the pre-created code tool
91
+ */
92
+ key?: string | undefined;
93
+ /**
94
+ * The ID of the pre-created code tool
95
+ */
96
+ id?: string | undefined;
97
+ /**
98
+ * Whether this tool requires approval before execution
99
+ */
100
+ requiresApproval?: boolean | undefined;
101
+ };
102
+
103
+ /**
104
+ * HTTP tool type
105
+ */
106
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type =
107
+ {
108
+ Http: "http",
109
+ } as const;
110
+ /**
111
+ * HTTP tool type
112
+ */
113
+ export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type =
114
+ ClosedEnum<
115
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type
116
+ >;
117
+
118
+ /**
119
+ * Executes HTTP requests to interact with external APIs and web services. Must reference a pre-created HTTP tool by key or id.
120
+ */
121
+ export type AgentToolInputCRUDHTTPTool = {
122
+ /**
123
+ * HTTP tool type
124
+ */
125
+ type:
126
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type;
127
+ /**
128
+ * The key of the pre-created HTTP tool
129
+ */
130
+ key?: string | undefined;
131
+ /**
132
+ * The ID of the pre-created HTTP tool
133
+ */
134
+ id?: string | undefined;
135
+ /**
136
+ * Whether this tool requires approval before execution
137
+ */
138
+ requiresApproval?: boolean | undefined;
139
+ };
140
+
141
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type =
142
+ {
143
+ CurrentDate: "current_date",
144
+ } as const;
145
+ export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type =
146
+ ClosedEnum<
147
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type
148
+ >;
149
+
150
+ /**
151
+ * Returns the current date and time
152
+ */
153
+ export type AgentToolInputCRUDCurrentDateTool = {
154
+ type:
155
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type;
156
+ /**
157
+ * Whether this tool requires approval before execution
158
+ */
159
+ requiresApproval?: boolean | undefined;
160
+ };
161
+
162
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type =
163
+ {
164
+ QueryKnowledgeBase: "query_knowledge_base",
165
+ } as const;
166
+ export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type =
167
+ ClosedEnum<
168
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type
169
+ >;
170
+
171
+ /**
172
+ * Queries knowledge bases for information
173
+ */
174
+ export type AgentToolInputCRUDQueryKnowledgeBaseTool = {
175
+ type:
176
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type;
177
+ /**
178
+ * Whether this tool requires approval before execution
179
+ */
180
+ requiresApproval?: boolean | undefined;
181
+ };
182
+
183
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type =
184
+ {
185
+ RetrieveKnowledgeBases: "retrieve_knowledge_bases",
186
+ } as const;
187
+ export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type =
188
+ ClosedEnum<
189
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type
190
+ >;
191
+
192
+ /**
193
+ * Lists available knowledge bases
194
+ */
195
+ export type AgentToolInputCRUDRetrieveKnowledgeBasesTool = {
196
+ type: UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type;
197
+ /**
198
+ * Whether this tool requires approval before execution
199
+ */
200
+ requiresApproval?: boolean | undefined;
201
+ };
202
+
203
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type =
204
+ {
205
+ DeleteMemoryDocument: "delete_memory_document",
206
+ } as const;
207
+ export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type =
208
+ ClosedEnum<
209
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type
210
+ >;
211
+
212
+ /**
213
+ * Deletes documents from memory stores
214
+ */
215
+ export type AgentToolInputCRUDDeleteMemoryDocumentTool = {
216
+ type: UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type;
217
+ /**
218
+ * Whether this tool requires approval before execution
219
+ */
220
+ requiresApproval?: boolean | undefined;
221
+ };
222
+
223
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type =
224
+ {
225
+ RetrieveMemoryStores: "retrieve_memory_stores",
226
+ } as const;
227
+ export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type =
228
+ ClosedEnum<
229
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type
230
+ >;
231
+
232
+ /**
233
+ * Lists available memory stores
234
+ */
235
+ export type AgentToolInputCRUDRetrieveMemoryStoresTool = {
236
+ type: UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type;
237
+ /**
238
+ * Whether this tool requires approval before execution
239
+ */
240
+ requiresApproval?: boolean | undefined;
241
+ };
242
+
243
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType =
244
+ {
245
+ WriteMemoryStore: "write_memory_store",
246
+ } as const;
247
+ export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType =
248
+ ClosedEnum<
249
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType
250
+ >;
251
+
252
+ /**
253
+ * Writes information to agent memory stores
254
+ */
255
+ export type AgentToolInputCRUDWriteMemoryStoreTool = {
256
+ type: UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType;
257
+ /**
258
+ * Whether this tool requires approval before execution
259
+ */
260
+ requiresApproval?: boolean | undefined;
261
+ };
262
+
263
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType =
264
+ {
265
+ QueryMemoryStore: "query_memory_store",
266
+ } as const;
267
+ export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType =
268
+ ClosedEnum<
269
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType
270
+ >;
271
+
272
+ /**
273
+ * Queries agent memory stores for context
274
+ */
275
+ export type AgentToolInputCRUDQueryMemoryStoreTool = {
276
+ type: UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType;
277
+ /**
278
+ * Whether this tool requires approval before execution
279
+ */
280
+ requiresApproval?: boolean | undefined;
281
+ };
282
+
283
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType = {
284
+ RetrieveAgents: "retrieve_agents",
285
+ } as const;
286
+ export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType =
287
+ ClosedEnum<typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType>;
288
+
289
+ /**
290
+ * Retrieves available agents in the system
291
+ */
292
+ export type AgentToolInputCRUDRetrieveAgentsTool = {
293
+ type: UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType;
294
+ /**
295
+ * Whether this tool requires approval before execution
296
+ */
297
+ requiresApproval?: boolean | undefined;
298
+ };
299
+
300
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestType = {
301
+ CallSubAgent: "call_sub_agent",
302
+ } as const;
303
+ export type UpdateAgentAgentToolInputCRUDAgentsRequestType = ClosedEnum<
304
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestType
305
+ >;
306
+
307
+ /**
308
+ * Delegates tasks to specialized sub-agents
309
+ */
310
+ export type AgentToolInputCRUDCallSubAgentTool = {
311
+ type: UpdateAgentAgentToolInputCRUDAgentsRequestType;
312
+ /**
313
+ * Whether this tool requires approval before execution
314
+ */
315
+ requiresApproval?: boolean | undefined;
316
+ };
317
+
318
+ export const UpdateAgentAgentToolInputCRUDAgentsType = {
319
+ WebScraper: "web_scraper",
320
+ } as const;
321
+ export type UpdateAgentAgentToolInputCRUDAgentsType = ClosedEnum<
322
+ typeof UpdateAgentAgentToolInputCRUDAgentsType
323
+ >;
324
+
325
+ /**
326
+ * Scrapes and extracts content from web pages
327
+ */
328
+ export type AgentToolInputCRUDWebScraperTool = {
329
+ type: UpdateAgentAgentToolInputCRUDAgentsType;
330
+ /**
331
+ * Whether this tool requires approval before execution
332
+ */
333
+ requiresApproval?: boolean | undefined;
334
+ };
335
+
336
+ export const UpdateAgentAgentToolInputCRUDType = {
337
+ GoogleSearch: "google_search",
338
+ } as const;
339
+ export type UpdateAgentAgentToolInputCRUDType = ClosedEnum<
340
+ typeof UpdateAgentAgentToolInputCRUDType
341
+ >;
342
+
343
+ /**
344
+ * Performs Google searches to retrieve web content
345
+ */
346
+ export type AgentToolInputCRUDGoogleSearchTool = {
347
+ type: UpdateAgentAgentToolInputCRUDType;
348
+ /**
349
+ * Whether this tool requires approval before execution
350
+ */
351
+ requiresApproval?: boolean | undefined;
352
+ };
353
+
354
+ /**
355
+ * Tool configuration for agent create/update operations. Built-in tools only require a type, while custom tools must reference pre-created tools by key or id.
356
+ */
357
+ export type UpdateAgentAgentToolInputCRUD =
358
+ | AgentToolInputCRUDGoogleSearchTool
359
+ | AgentToolInputCRUDWebScraperTool
360
+ | AgentToolInputCRUDCallSubAgentTool
361
+ | AgentToolInputCRUDRetrieveAgentsTool
362
+ | AgentToolInputCRUDQueryMemoryStoreTool
363
+ | AgentToolInputCRUDWriteMemoryStoreTool
364
+ | AgentToolInputCRUDRetrieveMemoryStoresTool
365
+ | AgentToolInputCRUDDeleteMemoryDocumentTool
366
+ | AgentToolInputCRUDRetrieveKnowledgeBasesTool
367
+ | AgentToolInputCRUDQueryKnowledgeBaseTool
368
+ | AgentToolInputCRUDCurrentDateTool
369
+ | AgentToolInputCRUDHTTPTool
370
+ | AgentToolInputCRUDCodeExecutionTool
371
+ | AgentToolInputCRUDFunctionTool;
372
+
373
+ export type UpdateAgentSettings = {
374
+ /**
375
+ * Maximum iterations(llm calls) before the agent will stop executing.
376
+ */
377
+ maxIterations?: number | undefined;
378
+ /**
379
+ * Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned.
380
+ */
381
+ maxExecutionTime?: number | undefined;
382
+ /**
383
+ * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
384
+ */
385
+ toolApprovalRequired?: UpdateAgentToolApprovalRequired | undefined;
386
+ /**
387
+ * Tools available to the agent. Built-in tools only need a type, while custom tools (http, code, function) must reference pre-created tools by key or id.
388
+ */
389
+ tools?:
390
+ | Array<
391
+ | AgentToolInputCRUDGoogleSearchTool
392
+ | AgentToolInputCRUDWebScraperTool
393
+ | AgentToolInputCRUDCallSubAgentTool
394
+ | AgentToolInputCRUDRetrieveAgentsTool
395
+ | AgentToolInputCRUDQueryMemoryStoreTool
396
+ | AgentToolInputCRUDWriteMemoryStoreTool
397
+ | AgentToolInputCRUDRetrieveMemoryStoresTool
398
+ | AgentToolInputCRUDDeleteMemoryDocumentTool
399
+ | AgentToolInputCRUDRetrieveKnowledgeBasesTool
400
+ | AgentToolInputCRUDQueryKnowledgeBaseTool
401
+ | AgentToolInputCRUDCurrentDateTool
402
+ | AgentToolInputCRUDHTTPTool
403
+ | AgentToolInputCRUDCodeExecutionTool
404
+ | AgentToolInputCRUDFunctionTool
405
+ >
406
+ | undefined;
407
+ };
408
+
409
+ export type UpdateAgentKnowledgeBases = {
410
+ /**
411
+ * Unique identifier of the knowledge base to search
412
+ */
413
+ knowledgeId: string;
414
+ };
415
+
416
+ /**
417
+ * Request body for updating an existing agent via the API. Uses simplified tool input format.
418
+ */
419
+ export type UpdateAgentRequestBody = {
420
+ key?: string | undefined;
421
+ projectId?: string | undefined;
422
+ role?: string | undefined;
423
+ description?: string | undefined;
424
+ instructions?: string | undefined;
425
+ /**
426
+ * A custom system prompt template for the agent. If omitted, the default template is used.
427
+ */
428
+ systemPrompt?: string | undefined;
429
+ /**
430
+ * The primary language model that powers the agent (e.g., "anthropic/claude-3-sonnet-20240229")
431
+ */
432
+ model?: string | undefined;
433
+ /**
434
+ * Optional array of fallback model IDs to use when the primary model fails. Models are tried in order. All models must support tool calling capabilities.
435
+ */
436
+ fallbackModels?: Array<string> | undefined;
437
+ settings?: UpdateAgentSettings | undefined;
438
+ /**
439
+ * Entity storage path in the format: `project/folder/subfolder/...`
440
+ *
441
+ * @remarks
442
+ *
443
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
444
+ *
445
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
446
+ */
447
+ path?: string | undefined;
448
+ memoryStores?: Array<string> | undefined;
449
+ knowledgeBases?: Array<UpdateAgentKnowledgeBases> | undefined;
450
+ };
451
+
452
+ export type UpdateAgentRequest = {
453
+ /**
454
+ * The unique key of the agent to update
455
+ */
456
+ agentKey: string;
457
+ requestBody?: UpdateAgentRequestBody | undefined;
458
+ };
459
+
460
+ /**
461
+ * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
462
+ */
463
+ export const UpdateAgentStatus = {
464
+ Live: "live",
465
+ Draft: "draft",
466
+ Pending: "pending",
467
+ Published: "published",
468
+ } as const;
469
+ /**
470
+ * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
471
+ */
472
+ export type UpdateAgentStatus = ClosedEnum<typeof UpdateAgentStatus>;
473
+
474
+ /**
475
+ * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
476
+ */
477
+ export const UpdateAgentAgentsToolApprovalRequired = {
478
+ All: "all",
479
+ RespectTool: "respect_tool",
480
+ None: "none",
481
+ } as const;
482
+ /**
483
+ * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
484
+ */
485
+ export type UpdateAgentAgentsToolApprovalRequired = ClosedEnum<
486
+ typeof UpdateAgentAgentsToolApprovalRequired
487
+ >;
488
+
489
+ export type UpdateAgentConditions = {
490
+ /**
491
+ * The argument of the tool call to evaluate
492
+ */
493
+ condition: string;
494
+ /**
495
+ * The operator to use
496
+ */
497
+ operator: string;
498
+ /**
499
+ * The value to compare against
500
+ */
501
+ value: string;
502
+ };
503
+
504
+ export type UpdateAgentTools = {
505
+ /**
506
+ * The id of the resource
507
+ */
508
+ id: string;
509
+ /**
510
+ * Optional tool key for custom tools
511
+ */
512
+ key?: string | undefined;
513
+ actionType: string;
514
+ displayName?: string | undefined;
515
+ requiresApproval?: boolean | undefined;
516
+ conditions?: Array<UpdateAgentConditions> | undefined;
517
+ /**
518
+ * The id of the resource
519
+ */
520
+ mcpServer?: string | undefined;
521
+ /**
522
+ * Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
523
+ */
524
+ timeout?: number | undefined;
525
+ };
526
+
527
+ export type UpdateAgentAgentsSettings = {
528
+ /**
529
+ * Maximum iterations(llm calls) before the agent will stop executing.
530
+ */
531
+ maxIterations?: number | undefined;
532
+ /**
533
+ * Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned.
534
+ */
535
+ maxExecutionTime?: number | undefined;
536
+ /**
537
+ * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
538
+ */
539
+ toolApprovalRequired?: UpdateAgentAgentsToolApprovalRequired | undefined;
540
+ tools: Array<UpdateAgentTools>;
541
+ };
542
+
543
+ export type UpdateAgentModel = {
544
+ /**
545
+ * The database ID of the primary model
546
+ */
547
+ id: string;
548
+ /**
549
+ * Optional integration ID for custom model configurations
550
+ */
551
+ integrationId?: string | null | undefined;
552
+ /**
553
+ * Optional array of fallback model IDs that will be used automatically in order if the primary model fails
554
+ */
555
+ fallbackModels?: Array<string> | null | undefined;
556
+ /**
557
+ * Maximum number of tokens for model responses
558
+ */
559
+ maxTokens?: number | undefined;
560
+ /**
561
+ * Temperature setting for model responses
562
+ */
563
+ temperature?: number | undefined;
564
+ };
565
+
566
+ export type UpdateAgentTeamOfAgents = {
567
+ /**
568
+ * The unique key of the agent within the workspace
569
+ */
570
+ key: string;
571
+ /**
572
+ * The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
573
+ */
574
+ role?: string | undefined;
575
+ };
576
+
577
+ export type UpdateAgentMetrics = {
578
+ totalCost?: number | undefined;
579
+ };
580
+
581
+ export type UpdateAgentAgentsKnowledgeBases = {
582
+ /**
583
+ * Unique identifier of the knowledge base to search
584
+ */
585
+ knowledgeId: string;
586
+ };
587
+
588
+ export const UpdateAgentHiddenPanels = {
589
+ Model: "model",
590
+ Tools: "tools",
591
+ KnowledgeBases: "knowledge_bases",
592
+ Variables: "variables",
593
+ RuntimeConstraints: "runtime_constraints",
594
+ } as const;
595
+ export type UpdateAgentHiddenPanels = ClosedEnum<
596
+ typeof UpdateAgentHiddenPanels
597
+ >;
598
+
599
+ /**
600
+ * Agent updated successfully
601
+ */
602
+ export type UpdateAgentResponseBody = {
603
+ id: string;
604
+ key: string;
605
+ workspaceId: string;
606
+ projectId: string;
607
+ createdById?: string | null | undefined;
608
+ updatedById?: string | null | undefined;
609
+ created?: string | undefined;
610
+ updated?: string | undefined;
611
+ role: string;
612
+ description: string;
613
+ systemPrompt?: string | undefined;
614
+ instructions: string;
615
+ /**
616
+ * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
617
+ */
618
+ status: UpdateAgentStatus;
619
+ settings?: UpdateAgentAgentsSettings | undefined;
620
+ model: UpdateAgentModel;
621
+ versionHash?: string | undefined;
622
+ /**
623
+ * Entity storage path in the format: `project/folder/subfolder/...`
624
+ *
625
+ * @remarks
626
+ *
627
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
628
+ *
629
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
630
+ */
631
+ path: string;
632
+ memoryStores: Array<string>;
633
+ /**
634
+ * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
635
+ */
636
+ teamOfAgents: Array<UpdateAgentTeamOfAgents>;
637
+ metrics?: UpdateAgentMetrics | undefined;
638
+ /**
639
+ * Extracted variables from agent instructions
640
+ */
641
+ variables?: { [k: string]: any } | undefined;
642
+ /**
643
+ * Agent knowledge bases reference
644
+ */
645
+ knowledgeBases?: Array<UpdateAgentAgentsKnowledgeBases> | undefined;
646
+ /**
647
+ * List of hidden collapsed panels in configuration. Duplicates are not allowed.
648
+ */
649
+ hiddenPanels?: Array<UpdateAgentHiddenPanels> | undefined;
650
+ };
651
+
652
+ /** @internal */
653
+ export const UpdateAgentToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
654
+ typeof UpdateAgentToolApprovalRequired
655
+ > = z.nativeEnum(UpdateAgentToolApprovalRequired);
656
+
657
+ /** @internal */
658
+ export const UpdateAgentToolApprovalRequired$outboundSchema: z.ZodNativeEnum<
659
+ typeof UpdateAgentToolApprovalRequired
660
+ > = UpdateAgentToolApprovalRequired$inboundSchema;
661
+
662
+ /**
663
+ * @internal
664
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
665
+ */
666
+ export namespace UpdateAgentToolApprovalRequired$ {
667
+ /** @deprecated use `UpdateAgentToolApprovalRequired$inboundSchema` instead. */
668
+ export const inboundSchema = UpdateAgentToolApprovalRequired$inboundSchema;
669
+ /** @deprecated use `UpdateAgentToolApprovalRequired$outboundSchema` instead. */
670
+ export const outboundSchema = UpdateAgentToolApprovalRequired$outboundSchema;
671
+ }
672
+
673
+ /** @internal */
674
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$inboundSchema:
675
+ z.ZodNativeEnum<
676
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type
677
+ > = z.nativeEnum(
678
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type,
679
+ );
680
+
681
+ /** @internal */
682
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$outboundSchema:
683
+ z.ZodNativeEnum<
684
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type
685
+ > =
686
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
687
+
688
+ /**
689
+ * @internal
690
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
691
+ */
692
+ export namespace UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$ {
693
+ /** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$inboundSchema` instead. */
694
+ export const inboundSchema =
695
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
696
+ /** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$outboundSchema` instead. */
697
+ export const outboundSchema =
698
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$outboundSchema;
699
+ }
700
+
701
+ /** @internal */
702
+ export const AgentToolInputCRUDFunctionTool$inboundSchema: z.ZodType<
703
+ AgentToolInputCRUDFunctionTool,
704
+ z.ZodTypeDef,
705
+ unknown
706
+ > = z.object({
707
+ type:
708
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$inboundSchema,
709
+ key: z.string().optional(),
710
+ id: z.string().optional(),
711
+ requires_approval: z.boolean().default(false),
712
+ }).transform((v) => {
713
+ return remap$(v, {
714
+ "requires_approval": "requiresApproval",
715
+ });
716
+ });
717
+
718
+ /** @internal */
719
+ export type AgentToolInputCRUDFunctionTool$Outbound = {
720
+ type: string;
721
+ key?: string | undefined;
722
+ id?: string | undefined;
723
+ requires_approval: boolean;
724
+ };
725
+
726
+ /** @internal */
727
+ export const AgentToolInputCRUDFunctionTool$outboundSchema: z.ZodType<
728
+ AgentToolInputCRUDFunctionTool$Outbound,
729
+ z.ZodTypeDef,
730
+ AgentToolInputCRUDFunctionTool
731
+ > = z.object({
732
+ type:
733
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$outboundSchema,
734
+ key: z.string().optional(),
735
+ id: z.string().optional(),
736
+ requiresApproval: z.boolean().default(false),
737
+ }).transform((v) => {
738
+ return remap$(v, {
739
+ requiresApproval: "requires_approval",
740
+ });
741
+ });
742
+
743
+ /**
744
+ * @internal
745
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
746
+ */
747
+ export namespace AgentToolInputCRUDFunctionTool$ {
748
+ /** @deprecated use `AgentToolInputCRUDFunctionTool$inboundSchema` instead. */
749
+ export const inboundSchema = AgentToolInputCRUDFunctionTool$inboundSchema;
750
+ /** @deprecated use `AgentToolInputCRUDFunctionTool$outboundSchema` instead. */
751
+ export const outboundSchema = AgentToolInputCRUDFunctionTool$outboundSchema;
752
+ /** @deprecated use `AgentToolInputCRUDFunctionTool$Outbound` instead. */
753
+ export type Outbound = AgentToolInputCRUDFunctionTool$Outbound;
754
+ }
755
+
756
+ export function agentToolInputCRUDFunctionToolToJSON(
757
+ agentToolInputCRUDFunctionTool: AgentToolInputCRUDFunctionTool,
758
+ ): string {
759
+ return JSON.stringify(
760
+ AgentToolInputCRUDFunctionTool$outboundSchema.parse(
761
+ agentToolInputCRUDFunctionTool,
762
+ ),
763
+ );
764
+ }
765
+
766
+ export function agentToolInputCRUDFunctionToolFromJSON(
767
+ jsonString: string,
768
+ ): SafeParseResult<AgentToolInputCRUDFunctionTool, SDKValidationError> {
769
+ return safeParse(
770
+ jsonString,
771
+ (x) => AgentToolInputCRUDFunctionTool$inboundSchema.parse(JSON.parse(x)),
772
+ `Failed to parse 'AgentToolInputCRUDFunctionTool' from JSON`,
773
+ );
774
+ }
775
+
776
+ /** @internal */
777
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$inboundSchema:
778
+ z.ZodNativeEnum<
779
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type
780
+ > = z.nativeEnum(
781
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type,
782
+ );
783
+
784
+ /** @internal */
785
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$outboundSchema:
786
+ z.ZodNativeEnum<
787
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type
788
+ > =
789
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
790
+
791
+ /**
792
+ * @internal
793
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
794
+ */
795
+ export namespace UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$ {
796
+ /** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$inboundSchema` instead. */
797
+ export const inboundSchema =
798
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
799
+ /** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$outboundSchema` instead. */
800
+ export const outboundSchema =
801
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$outboundSchema;
802
+ }
803
+
804
+ /** @internal */
805
+ export const AgentToolInputCRUDCodeExecutionTool$inboundSchema: z.ZodType<
806
+ AgentToolInputCRUDCodeExecutionTool,
807
+ z.ZodTypeDef,
808
+ unknown
809
+ > = z.object({
810
+ type:
811
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$inboundSchema,
812
+ key: z.string().optional(),
813
+ id: z.string().optional(),
814
+ requires_approval: z.boolean().default(false),
815
+ }).transform((v) => {
816
+ return remap$(v, {
817
+ "requires_approval": "requiresApproval",
818
+ });
819
+ });
820
+
821
+ /** @internal */
822
+ export type AgentToolInputCRUDCodeExecutionTool$Outbound = {
823
+ type: string;
824
+ key?: string | undefined;
825
+ id?: string | undefined;
826
+ requires_approval: boolean;
827
+ };
828
+
829
+ /** @internal */
830
+ export const AgentToolInputCRUDCodeExecutionTool$outboundSchema: z.ZodType<
831
+ AgentToolInputCRUDCodeExecutionTool$Outbound,
832
+ z.ZodTypeDef,
833
+ AgentToolInputCRUDCodeExecutionTool
834
+ > = z.object({
835
+ type:
836
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$outboundSchema,
837
+ key: z.string().optional(),
838
+ id: z.string().optional(),
839
+ requiresApproval: z.boolean().default(false),
840
+ }).transform((v) => {
841
+ return remap$(v, {
842
+ requiresApproval: "requires_approval",
843
+ });
844
+ });
845
+
846
+ /**
847
+ * @internal
848
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
849
+ */
850
+ export namespace AgentToolInputCRUDCodeExecutionTool$ {
851
+ /** @deprecated use `AgentToolInputCRUDCodeExecutionTool$inboundSchema` instead. */
852
+ export const inboundSchema =
853
+ AgentToolInputCRUDCodeExecutionTool$inboundSchema;
854
+ /** @deprecated use `AgentToolInputCRUDCodeExecutionTool$outboundSchema` instead. */
855
+ export const outboundSchema =
856
+ AgentToolInputCRUDCodeExecutionTool$outboundSchema;
857
+ /** @deprecated use `AgentToolInputCRUDCodeExecutionTool$Outbound` instead. */
858
+ export type Outbound = AgentToolInputCRUDCodeExecutionTool$Outbound;
859
+ }
860
+
861
+ export function agentToolInputCRUDCodeExecutionToolToJSON(
862
+ agentToolInputCRUDCodeExecutionTool: AgentToolInputCRUDCodeExecutionTool,
863
+ ): string {
864
+ return JSON.stringify(
865
+ AgentToolInputCRUDCodeExecutionTool$outboundSchema.parse(
866
+ agentToolInputCRUDCodeExecutionTool,
867
+ ),
868
+ );
869
+ }
870
+
871
+ export function agentToolInputCRUDCodeExecutionToolFromJSON(
872
+ jsonString: string,
873
+ ): SafeParseResult<AgentToolInputCRUDCodeExecutionTool, SDKValidationError> {
874
+ return safeParse(
875
+ jsonString,
876
+ (x) =>
877
+ AgentToolInputCRUDCodeExecutionTool$inboundSchema.parse(JSON.parse(x)),
878
+ `Failed to parse 'AgentToolInputCRUDCodeExecutionTool' from JSON`,
879
+ );
880
+ }
881
+
882
+ /** @internal */
883
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$inboundSchema:
884
+ z.ZodNativeEnum<
885
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type
886
+ > = z.nativeEnum(
887
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type,
888
+ );
889
+
890
+ /** @internal */
891
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$outboundSchema:
892
+ z.ZodNativeEnum<
893
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type
894
+ > =
895
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
896
+
897
+ /**
898
+ * @internal
899
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
900
+ */
901
+ export namespace UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$ {
902
+ /** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$inboundSchema` instead. */
903
+ export const inboundSchema =
904
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
905
+ /** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$outboundSchema` instead. */
906
+ export const outboundSchema =
907
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$outboundSchema;
908
+ }
909
+
910
+ /** @internal */
911
+ export const AgentToolInputCRUDHTTPTool$inboundSchema: z.ZodType<
912
+ AgentToolInputCRUDHTTPTool,
913
+ z.ZodTypeDef,
914
+ unknown
915
+ > = z.object({
916
+ type:
917
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$inboundSchema,
918
+ key: z.string().optional(),
919
+ id: z.string().optional(),
920
+ requires_approval: z.boolean().default(false),
921
+ }).transform((v) => {
922
+ return remap$(v, {
923
+ "requires_approval": "requiresApproval",
924
+ });
925
+ });
926
+
927
+ /** @internal */
928
+ export type AgentToolInputCRUDHTTPTool$Outbound = {
929
+ type: string;
930
+ key?: string | undefined;
931
+ id?: string | undefined;
932
+ requires_approval: boolean;
933
+ };
934
+
935
+ /** @internal */
936
+ export const AgentToolInputCRUDHTTPTool$outboundSchema: z.ZodType<
937
+ AgentToolInputCRUDHTTPTool$Outbound,
938
+ z.ZodTypeDef,
939
+ AgentToolInputCRUDHTTPTool
940
+ > = z.object({
941
+ type:
942
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$outboundSchema,
943
+ key: z.string().optional(),
944
+ id: z.string().optional(),
945
+ requiresApproval: z.boolean().default(false),
946
+ }).transform((v) => {
947
+ return remap$(v, {
948
+ requiresApproval: "requires_approval",
949
+ });
950
+ });
951
+
952
+ /**
953
+ * @internal
954
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
955
+ */
956
+ export namespace AgentToolInputCRUDHTTPTool$ {
957
+ /** @deprecated use `AgentToolInputCRUDHTTPTool$inboundSchema` instead. */
958
+ export const inboundSchema = AgentToolInputCRUDHTTPTool$inboundSchema;
959
+ /** @deprecated use `AgentToolInputCRUDHTTPTool$outboundSchema` instead. */
960
+ export const outboundSchema = AgentToolInputCRUDHTTPTool$outboundSchema;
961
+ /** @deprecated use `AgentToolInputCRUDHTTPTool$Outbound` instead. */
962
+ export type Outbound = AgentToolInputCRUDHTTPTool$Outbound;
963
+ }
964
+
965
+ export function agentToolInputCRUDHTTPToolToJSON(
966
+ agentToolInputCRUDHTTPTool: AgentToolInputCRUDHTTPTool,
967
+ ): string {
968
+ return JSON.stringify(
969
+ AgentToolInputCRUDHTTPTool$outboundSchema.parse(agentToolInputCRUDHTTPTool),
970
+ );
971
+ }
972
+
973
+ export function agentToolInputCRUDHTTPToolFromJSON(
974
+ jsonString: string,
975
+ ): SafeParseResult<AgentToolInputCRUDHTTPTool, SDKValidationError> {
976
+ return safeParse(
977
+ jsonString,
978
+ (x) => AgentToolInputCRUDHTTPTool$inboundSchema.parse(JSON.parse(x)),
979
+ `Failed to parse 'AgentToolInputCRUDHTTPTool' from JSON`,
980
+ );
981
+ }
982
+
983
+ /** @internal */
984
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$inboundSchema:
985
+ z.ZodNativeEnum<
986
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type
987
+ > = z.nativeEnum(
988
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type,
989
+ );
990
+
991
+ /** @internal */
992
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$outboundSchema:
993
+ z.ZodNativeEnum<
994
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type
995
+ > =
996
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
997
+
998
+ /**
999
+ * @internal
1000
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1001
+ */
1002
+ export namespace UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$ {
1003
+ /** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$inboundSchema` instead. */
1004
+ export const inboundSchema =
1005
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
1006
+ /** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$outboundSchema` instead. */
1007
+ export const outboundSchema =
1008
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$outboundSchema;
1009
+ }
1010
+
1011
+ /** @internal */
1012
+ export const AgentToolInputCRUDCurrentDateTool$inboundSchema: z.ZodType<
1013
+ AgentToolInputCRUDCurrentDateTool,
1014
+ z.ZodTypeDef,
1015
+ unknown
1016
+ > = z.object({
1017
+ type:
1018
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$inboundSchema,
1019
+ requires_approval: z.boolean().default(false),
1020
+ }).transform((v) => {
1021
+ return remap$(v, {
1022
+ "requires_approval": "requiresApproval",
1023
+ });
1024
+ });
1025
+
1026
+ /** @internal */
1027
+ export type AgentToolInputCRUDCurrentDateTool$Outbound = {
1028
+ type: string;
1029
+ requires_approval: boolean;
1030
+ };
1031
+
1032
+ /** @internal */
1033
+ export const AgentToolInputCRUDCurrentDateTool$outboundSchema: z.ZodType<
1034
+ AgentToolInputCRUDCurrentDateTool$Outbound,
1035
+ z.ZodTypeDef,
1036
+ AgentToolInputCRUDCurrentDateTool
1037
+ > = z.object({
1038
+ type:
1039
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$outboundSchema,
1040
+ requiresApproval: z.boolean().default(false),
1041
+ }).transform((v) => {
1042
+ return remap$(v, {
1043
+ requiresApproval: "requires_approval",
1044
+ });
1045
+ });
1046
+
1047
+ /**
1048
+ * @internal
1049
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1050
+ */
1051
+ export namespace AgentToolInputCRUDCurrentDateTool$ {
1052
+ /** @deprecated use `AgentToolInputCRUDCurrentDateTool$inboundSchema` instead. */
1053
+ export const inboundSchema = AgentToolInputCRUDCurrentDateTool$inboundSchema;
1054
+ /** @deprecated use `AgentToolInputCRUDCurrentDateTool$outboundSchema` instead. */
1055
+ export const outboundSchema =
1056
+ AgentToolInputCRUDCurrentDateTool$outboundSchema;
1057
+ /** @deprecated use `AgentToolInputCRUDCurrentDateTool$Outbound` instead. */
1058
+ export type Outbound = AgentToolInputCRUDCurrentDateTool$Outbound;
1059
+ }
1060
+
1061
+ export function agentToolInputCRUDCurrentDateToolToJSON(
1062
+ agentToolInputCRUDCurrentDateTool: AgentToolInputCRUDCurrentDateTool,
1063
+ ): string {
1064
+ return JSON.stringify(
1065
+ AgentToolInputCRUDCurrentDateTool$outboundSchema.parse(
1066
+ agentToolInputCRUDCurrentDateTool,
1067
+ ),
1068
+ );
1069
+ }
1070
+
1071
+ export function agentToolInputCRUDCurrentDateToolFromJSON(
1072
+ jsonString: string,
1073
+ ): SafeParseResult<AgentToolInputCRUDCurrentDateTool, SDKValidationError> {
1074
+ return safeParse(
1075
+ jsonString,
1076
+ (x) => AgentToolInputCRUDCurrentDateTool$inboundSchema.parse(JSON.parse(x)),
1077
+ `Failed to parse 'AgentToolInputCRUDCurrentDateTool' from JSON`,
1078
+ );
1079
+ }
1080
+
1081
+ /** @internal */
1082
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$inboundSchema:
1083
+ z.ZodNativeEnum<
1084
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type
1085
+ > = z.nativeEnum(
1086
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type,
1087
+ );
1088
+
1089
+ /** @internal */
1090
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$outboundSchema:
1091
+ z.ZodNativeEnum<
1092
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type
1093
+ > =
1094
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
1095
+
1096
+ /**
1097
+ * @internal
1098
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1099
+ */
1100
+ export namespace UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$ {
1101
+ /** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$inboundSchema` instead. */
1102
+ export const inboundSchema =
1103
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
1104
+ /** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$outboundSchema` instead. */
1105
+ export const outboundSchema =
1106
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$outboundSchema;
1107
+ }
1108
+
1109
+ /** @internal */
1110
+ export const AgentToolInputCRUDQueryKnowledgeBaseTool$inboundSchema: z.ZodType<
1111
+ AgentToolInputCRUDQueryKnowledgeBaseTool,
1112
+ z.ZodTypeDef,
1113
+ unknown
1114
+ > = z.object({
1115
+ type:
1116
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$inboundSchema,
1117
+ requires_approval: z.boolean().default(false),
1118
+ }).transform((v) => {
1119
+ return remap$(v, {
1120
+ "requires_approval": "requiresApproval",
1121
+ });
1122
+ });
1123
+
1124
+ /** @internal */
1125
+ export type AgentToolInputCRUDQueryKnowledgeBaseTool$Outbound = {
1126
+ type: string;
1127
+ requires_approval: boolean;
1128
+ };
1129
+
1130
+ /** @internal */
1131
+ export const AgentToolInputCRUDQueryKnowledgeBaseTool$outboundSchema: z.ZodType<
1132
+ AgentToolInputCRUDQueryKnowledgeBaseTool$Outbound,
1133
+ z.ZodTypeDef,
1134
+ AgentToolInputCRUDQueryKnowledgeBaseTool
1135
+ > = z.object({
1136
+ type:
1137
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$outboundSchema,
1138
+ requiresApproval: z.boolean().default(false),
1139
+ }).transform((v) => {
1140
+ return remap$(v, {
1141
+ requiresApproval: "requires_approval",
1142
+ });
1143
+ });
1144
+
1145
+ /**
1146
+ * @internal
1147
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1148
+ */
1149
+ export namespace AgentToolInputCRUDQueryKnowledgeBaseTool$ {
1150
+ /** @deprecated use `AgentToolInputCRUDQueryKnowledgeBaseTool$inboundSchema` instead. */
1151
+ export const inboundSchema =
1152
+ AgentToolInputCRUDQueryKnowledgeBaseTool$inboundSchema;
1153
+ /** @deprecated use `AgentToolInputCRUDQueryKnowledgeBaseTool$outboundSchema` instead. */
1154
+ export const outboundSchema =
1155
+ AgentToolInputCRUDQueryKnowledgeBaseTool$outboundSchema;
1156
+ /** @deprecated use `AgentToolInputCRUDQueryKnowledgeBaseTool$Outbound` instead. */
1157
+ export type Outbound = AgentToolInputCRUDQueryKnowledgeBaseTool$Outbound;
1158
+ }
1159
+
1160
+ export function agentToolInputCRUDQueryKnowledgeBaseToolToJSON(
1161
+ agentToolInputCRUDQueryKnowledgeBaseTool:
1162
+ AgentToolInputCRUDQueryKnowledgeBaseTool,
1163
+ ): string {
1164
+ return JSON.stringify(
1165
+ AgentToolInputCRUDQueryKnowledgeBaseTool$outboundSchema.parse(
1166
+ agentToolInputCRUDQueryKnowledgeBaseTool,
1167
+ ),
1168
+ );
1169
+ }
1170
+
1171
+ export function agentToolInputCRUDQueryKnowledgeBaseToolFromJSON(
1172
+ jsonString: string,
1173
+ ): SafeParseResult<
1174
+ AgentToolInputCRUDQueryKnowledgeBaseTool,
1175
+ SDKValidationError
1176
+ > {
1177
+ return safeParse(
1178
+ jsonString,
1179
+ (x) =>
1180
+ AgentToolInputCRUDQueryKnowledgeBaseTool$inboundSchema.parse(
1181
+ JSON.parse(x),
1182
+ ),
1183
+ `Failed to parse 'AgentToolInputCRUDQueryKnowledgeBaseTool' from JSON`,
1184
+ );
1185
+ }
1186
+
1187
+ /** @internal */
1188
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$inboundSchema:
1189
+ z.ZodNativeEnum<
1190
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type
1191
+ > = z.nativeEnum(
1192
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type,
1193
+ );
1194
+
1195
+ /** @internal */
1196
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$outboundSchema:
1197
+ z.ZodNativeEnum<
1198
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type
1199
+ > =
1200
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
1201
+
1202
+ /**
1203
+ * @internal
1204
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1205
+ */
1206
+ export namespace UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$ {
1207
+ /** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$inboundSchema` instead. */
1208
+ export const inboundSchema =
1209
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
1210
+ /** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$outboundSchema` instead. */
1211
+ export const outboundSchema =
1212
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$outboundSchema;
1213
+ }
1214
+
1215
+ /** @internal */
1216
+ export const AgentToolInputCRUDRetrieveKnowledgeBasesTool$inboundSchema:
1217
+ z.ZodType<
1218
+ AgentToolInputCRUDRetrieveKnowledgeBasesTool,
1219
+ z.ZodTypeDef,
1220
+ unknown
1221
+ > = z.object({
1222
+ type:
1223
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$inboundSchema,
1224
+ requires_approval: z.boolean().default(false),
1225
+ }).transform((v) => {
1226
+ return remap$(v, {
1227
+ "requires_approval": "requiresApproval",
1228
+ });
1229
+ });
1230
+
1231
+ /** @internal */
1232
+ export type AgentToolInputCRUDRetrieveKnowledgeBasesTool$Outbound = {
1233
+ type: string;
1234
+ requires_approval: boolean;
1235
+ };
1236
+
1237
+ /** @internal */
1238
+ export const AgentToolInputCRUDRetrieveKnowledgeBasesTool$outboundSchema:
1239
+ z.ZodType<
1240
+ AgentToolInputCRUDRetrieveKnowledgeBasesTool$Outbound,
1241
+ z.ZodTypeDef,
1242
+ AgentToolInputCRUDRetrieveKnowledgeBasesTool
1243
+ > = z.object({
1244
+ type:
1245
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$outboundSchema,
1246
+ requiresApproval: z.boolean().default(false),
1247
+ }).transform((v) => {
1248
+ return remap$(v, {
1249
+ requiresApproval: "requires_approval",
1250
+ });
1251
+ });
1252
+
1253
+ /**
1254
+ * @internal
1255
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1256
+ */
1257
+ export namespace AgentToolInputCRUDRetrieveKnowledgeBasesTool$ {
1258
+ /** @deprecated use `AgentToolInputCRUDRetrieveKnowledgeBasesTool$inboundSchema` instead. */
1259
+ export const inboundSchema =
1260
+ AgentToolInputCRUDRetrieveKnowledgeBasesTool$inboundSchema;
1261
+ /** @deprecated use `AgentToolInputCRUDRetrieveKnowledgeBasesTool$outboundSchema` instead. */
1262
+ export const outboundSchema =
1263
+ AgentToolInputCRUDRetrieveKnowledgeBasesTool$outboundSchema;
1264
+ /** @deprecated use `AgentToolInputCRUDRetrieveKnowledgeBasesTool$Outbound` instead. */
1265
+ export type Outbound = AgentToolInputCRUDRetrieveKnowledgeBasesTool$Outbound;
1266
+ }
1267
+
1268
+ export function agentToolInputCRUDRetrieveKnowledgeBasesToolToJSON(
1269
+ agentToolInputCRUDRetrieveKnowledgeBasesTool:
1270
+ AgentToolInputCRUDRetrieveKnowledgeBasesTool,
1271
+ ): string {
1272
+ return JSON.stringify(
1273
+ AgentToolInputCRUDRetrieveKnowledgeBasesTool$outboundSchema.parse(
1274
+ agentToolInputCRUDRetrieveKnowledgeBasesTool,
1275
+ ),
1276
+ );
1277
+ }
1278
+
1279
+ export function agentToolInputCRUDRetrieveKnowledgeBasesToolFromJSON(
1280
+ jsonString: string,
1281
+ ): SafeParseResult<
1282
+ AgentToolInputCRUDRetrieveKnowledgeBasesTool,
1283
+ SDKValidationError
1284
+ > {
1285
+ return safeParse(
1286
+ jsonString,
1287
+ (x) =>
1288
+ AgentToolInputCRUDRetrieveKnowledgeBasesTool$inboundSchema.parse(
1289
+ JSON.parse(x),
1290
+ ),
1291
+ `Failed to parse 'AgentToolInputCRUDRetrieveKnowledgeBasesTool' from JSON`,
1292
+ );
1293
+ }
1294
+
1295
+ /** @internal */
1296
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$inboundSchema:
1297
+ z.ZodNativeEnum<
1298
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type
1299
+ > = z.nativeEnum(
1300
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type,
1301
+ );
1302
+
1303
+ /** @internal */
1304
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$outboundSchema:
1305
+ z.ZodNativeEnum<
1306
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type
1307
+ > =
1308
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
1309
+
1310
+ /**
1311
+ * @internal
1312
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1313
+ */
1314
+ export namespace UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$ {
1315
+ /** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$inboundSchema` instead. */
1316
+ export const inboundSchema =
1317
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
1318
+ /** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$outboundSchema` instead. */
1319
+ export const outboundSchema =
1320
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$outboundSchema;
1321
+ }
1322
+
1323
+ /** @internal */
1324
+ export const AgentToolInputCRUDDeleteMemoryDocumentTool$inboundSchema:
1325
+ z.ZodType<AgentToolInputCRUDDeleteMemoryDocumentTool, z.ZodTypeDef, unknown> =
1326
+ z.object({
1327
+ type:
1328
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$inboundSchema,
1329
+ requires_approval: z.boolean().default(false),
1330
+ }).transform((v) => {
1331
+ return remap$(v, {
1332
+ "requires_approval": "requiresApproval",
1333
+ });
1334
+ });
1335
+
1336
+ /** @internal */
1337
+ export type AgentToolInputCRUDDeleteMemoryDocumentTool$Outbound = {
1338
+ type: string;
1339
+ requires_approval: boolean;
1340
+ };
1341
+
1342
+ /** @internal */
1343
+ export const AgentToolInputCRUDDeleteMemoryDocumentTool$outboundSchema:
1344
+ z.ZodType<
1345
+ AgentToolInputCRUDDeleteMemoryDocumentTool$Outbound,
1346
+ z.ZodTypeDef,
1347
+ AgentToolInputCRUDDeleteMemoryDocumentTool
1348
+ > = z.object({
1349
+ type:
1350
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$outboundSchema,
1351
+ requiresApproval: z.boolean().default(false),
1352
+ }).transform((v) => {
1353
+ return remap$(v, {
1354
+ requiresApproval: "requires_approval",
1355
+ });
1356
+ });
1357
+
1358
+ /**
1359
+ * @internal
1360
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1361
+ */
1362
+ export namespace AgentToolInputCRUDDeleteMemoryDocumentTool$ {
1363
+ /** @deprecated use `AgentToolInputCRUDDeleteMemoryDocumentTool$inboundSchema` instead. */
1364
+ export const inboundSchema =
1365
+ AgentToolInputCRUDDeleteMemoryDocumentTool$inboundSchema;
1366
+ /** @deprecated use `AgentToolInputCRUDDeleteMemoryDocumentTool$outboundSchema` instead. */
1367
+ export const outboundSchema =
1368
+ AgentToolInputCRUDDeleteMemoryDocumentTool$outboundSchema;
1369
+ /** @deprecated use `AgentToolInputCRUDDeleteMemoryDocumentTool$Outbound` instead. */
1370
+ export type Outbound = AgentToolInputCRUDDeleteMemoryDocumentTool$Outbound;
1371
+ }
1372
+
1373
+ export function agentToolInputCRUDDeleteMemoryDocumentToolToJSON(
1374
+ agentToolInputCRUDDeleteMemoryDocumentTool:
1375
+ AgentToolInputCRUDDeleteMemoryDocumentTool,
1376
+ ): string {
1377
+ return JSON.stringify(
1378
+ AgentToolInputCRUDDeleteMemoryDocumentTool$outboundSchema.parse(
1379
+ agentToolInputCRUDDeleteMemoryDocumentTool,
1380
+ ),
1381
+ );
1382
+ }
1383
+
1384
+ export function agentToolInputCRUDDeleteMemoryDocumentToolFromJSON(
1385
+ jsonString: string,
1386
+ ): SafeParseResult<
1387
+ AgentToolInputCRUDDeleteMemoryDocumentTool,
1388
+ SDKValidationError
1389
+ > {
1390
+ return safeParse(
1391
+ jsonString,
1392
+ (x) =>
1393
+ AgentToolInputCRUDDeleteMemoryDocumentTool$inboundSchema.parse(
1394
+ JSON.parse(x),
1395
+ ),
1396
+ `Failed to parse 'AgentToolInputCRUDDeleteMemoryDocumentTool' from JSON`,
1397
+ );
1398
+ }
1399
+
1400
+ /** @internal */
1401
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$inboundSchema:
1402
+ z.ZodNativeEnum<
1403
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type
1404
+ > = z.nativeEnum(
1405
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type,
1406
+ );
1407
+
1408
+ /** @internal */
1409
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$outboundSchema:
1410
+ z.ZodNativeEnum<
1411
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type
1412
+ > =
1413
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$inboundSchema;
1414
+
1415
+ /**
1416
+ * @internal
1417
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1418
+ */
1419
+ export namespace UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$ {
1420
+ /** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$inboundSchema` instead. */
1421
+ export const inboundSchema =
1422
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$inboundSchema;
1423
+ /** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$outboundSchema` instead. */
1424
+ export const outboundSchema =
1425
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$outboundSchema;
1426
+ }
1427
+
1428
+ /** @internal */
1429
+ export const AgentToolInputCRUDRetrieveMemoryStoresTool$inboundSchema:
1430
+ z.ZodType<AgentToolInputCRUDRetrieveMemoryStoresTool, z.ZodTypeDef, unknown> =
1431
+ z.object({
1432
+ type:
1433
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$inboundSchema,
1434
+ requires_approval: z.boolean().default(false),
1435
+ }).transform((v) => {
1436
+ return remap$(v, {
1437
+ "requires_approval": "requiresApproval",
1438
+ });
1439
+ });
1440
+
1441
+ /** @internal */
1442
+ export type AgentToolInputCRUDRetrieveMemoryStoresTool$Outbound = {
1443
+ type: string;
1444
+ requires_approval: boolean;
1445
+ };
1446
+
1447
+ /** @internal */
1448
+ export const AgentToolInputCRUDRetrieveMemoryStoresTool$outboundSchema:
1449
+ z.ZodType<
1450
+ AgentToolInputCRUDRetrieveMemoryStoresTool$Outbound,
1451
+ z.ZodTypeDef,
1452
+ AgentToolInputCRUDRetrieveMemoryStoresTool
1453
+ > = z.object({
1454
+ type:
1455
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$outboundSchema,
1456
+ requiresApproval: z.boolean().default(false),
1457
+ }).transform((v) => {
1458
+ return remap$(v, {
1459
+ requiresApproval: "requires_approval",
1460
+ });
1461
+ });
1462
+
1463
+ /**
1464
+ * @internal
1465
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1466
+ */
1467
+ export namespace AgentToolInputCRUDRetrieveMemoryStoresTool$ {
1468
+ /** @deprecated use `AgentToolInputCRUDRetrieveMemoryStoresTool$inboundSchema` instead. */
1469
+ export const inboundSchema =
1470
+ AgentToolInputCRUDRetrieveMemoryStoresTool$inboundSchema;
1471
+ /** @deprecated use `AgentToolInputCRUDRetrieveMemoryStoresTool$outboundSchema` instead. */
1472
+ export const outboundSchema =
1473
+ AgentToolInputCRUDRetrieveMemoryStoresTool$outboundSchema;
1474
+ /** @deprecated use `AgentToolInputCRUDRetrieveMemoryStoresTool$Outbound` instead. */
1475
+ export type Outbound = AgentToolInputCRUDRetrieveMemoryStoresTool$Outbound;
1476
+ }
1477
+
1478
+ export function agentToolInputCRUDRetrieveMemoryStoresToolToJSON(
1479
+ agentToolInputCRUDRetrieveMemoryStoresTool:
1480
+ AgentToolInputCRUDRetrieveMemoryStoresTool,
1481
+ ): string {
1482
+ return JSON.stringify(
1483
+ AgentToolInputCRUDRetrieveMemoryStoresTool$outboundSchema.parse(
1484
+ agentToolInputCRUDRetrieveMemoryStoresTool,
1485
+ ),
1486
+ );
1487
+ }
1488
+
1489
+ export function agentToolInputCRUDRetrieveMemoryStoresToolFromJSON(
1490
+ jsonString: string,
1491
+ ): SafeParseResult<
1492
+ AgentToolInputCRUDRetrieveMemoryStoresTool,
1493
+ SDKValidationError
1494
+ > {
1495
+ return safeParse(
1496
+ jsonString,
1497
+ (x) =>
1498
+ AgentToolInputCRUDRetrieveMemoryStoresTool$inboundSchema.parse(
1499
+ JSON.parse(x),
1500
+ ),
1501
+ `Failed to parse 'AgentToolInputCRUDRetrieveMemoryStoresTool' from JSON`,
1502
+ );
1503
+ }
1504
+
1505
+ /** @internal */
1506
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$inboundSchema:
1507
+ z.ZodNativeEnum<
1508
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType
1509
+ > = z.nativeEnum(
1510
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType,
1511
+ );
1512
+
1513
+ /** @internal */
1514
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$outboundSchema:
1515
+ z.ZodNativeEnum<
1516
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType
1517
+ > =
1518
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$inboundSchema;
1519
+
1520
+ /**
1521
+ * @internal
1522
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1523
+ */
1524
+ export namespace UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$ {
1525
+ /** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$inboundSchema` instead. */
1526
+ export const inboundSchema =
1527
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$inboundSchema;
1528
+ /** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$outboundSchema` instead. */
1529
+ export const outboundSchema =
1530
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$outboundSchema;
1531
+ }
1532
+
1533
+ /** @internal */
1534
+ export const AgentToolInputCRUDWriteMemoryStoreTool$inboundSchema: z.ZodType<
1535
+ AgentToolInputCRUDWriteMemoryStoreTool,
1536
+ z.ZodTypeDef,
1537
+ unknown
1538
+ > = z.object({
1539
+ type:
1540
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$inboundSchema,
1541
+ requires_approval: z.boolean().default(false),
1542
+ }).transform((v) => {
1543
+ return remap$(v, {
1544
+ "requires_approval": "requiresApproval",
1545
+ });
1546
+ });
1547
+
1548
+ /** @internal */
1549
+ export type AgentToolInputCRUDWriteMemoryStoreTool$Outbound = {
1550
+ type: string;
1551
+ requires_approval: boolean;
1552
+ };
1553
+
1554
+ /** @internal */
1555
+ export const AgentToolInputCRUDWriteMemoryStoreTool$outboundSchema: z.ZodType<
1556
+ AgentToolInputCRUDWriteMemoryStoreTool$Outbound,
1557
+ z.ZodTypeDef,
1558
+ AgentToolInputCRUDWriteMemoryStoreTool
1559
+ > = z.object({
1560
+ type:
1561
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$outboundSchema,
1562
+ requiresApproval: z.boolean().default(false),
1563
+ }).transform((v) => {
1564
+ return remap$(v, {
1565
+ requiresApproval: "requires_approval",
1566
+ });
1567
+ });
1568
+
1569
+ /**
1570
+ * @internal
1571
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1572
+ */
1573
+ export namespace AgentToolInputCRUDWriteMemoryStoreTool$ {
1574
+ /** @deprecated use `AgentToolInputCRUDWriteMemoryStoreTool$inboundSchema` instead. */
1575
+ export const inboundSchema =
1576
+ AgentToolInputCRUDWriteMemoryStoreTool$inboundSchema;
1577
+ /** @deprecated use `AgentToolInputCRUDWriteMemoryStoreTool$outboundSchema` instead. */
1578
+ export const outboundSchema =
1579
+ AgentToolInputCRUDWriteMemoryStoreTool$outboundSchema;
1580
+ /** @deprecated use `AgentToolInputCRUDWriteMemoryStoreTool$Outbound` instead. */
1581
+ export type Outbound = AgentToolInputCRUDWriteMemoryStoreTool$Outbound;
1582
+ }
1583
+
1584
+ export function agentToolInputCRUDWriteMemoryStoreToolToJSON(
1585
+ agentToolInputCRUDWriteMemoryStoreTool:
1586
+ AgentToolInputCRUDWriteMemoryStoreTool,
1587
+ ): string {
1588
+ return JSON.stringify(
1589
+ AgentToolInputCRUDWriteMemoryStoreTool$outboundSchema.parse(
1590
+ agentToolInputCRUDWriteMemoryStoreTool,
1591
+ ),
1592
+ );
1593
+ }
1594
+
1595
+ export function agentToolInputCRUDWriteMemoryStoreToolFromJSON(
1596
+ jsonString: string,
1597
+ ): SafeParseResult<AgentToolInputCRUDWriteMemoryStoreTool, SDKValidationError> {
1598
+ return safeParse(
1599
+ jsonString,
1600
+ (x) =>
1601
+ AgentToolInputCRUDWriteMemoryStoreTool$inboundSchema.parse(JSON.parse(x)),
1602
+ `Failed to parse 'AgentToolInputCRUDWriteMemoryStoreTool' from JSON`,
1603
+ );
1604
+ }
1605
+
1606
+ /** @internal */
1607
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$inboundSchema:
1608
+ z.ZodNativeEnum<
1609
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType
1610
+ > = z.nativeEnum(
1611
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType,
1612
+ );
1613
+
1614
+ /** @internal */
1615
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$outboundSchema:
1616
+ z.ZodNativeEnum<
1617
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType
1618
+ > =
1619
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$inboundSchema;
1620
+
1621
+ /**
1622
+ * @internal
1623
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1624
+ */
1625
+ export namespace UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$ {
1626
+ /** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$inboundSchema` instead. */
1627
+ export const inboundSchema =
1628
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$inboundSchema;
1629
+ /** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$outboundSchema` instead. */
1630
+ export const outboundSchema =
1631
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$outboundSchema;
1632
+ }
1633
+
1634
+ /** @internal */
1635
+ export const AgentToolInputCRUDQueryMemoryStoreTool$inboundSchema: z.ZodType<
1636
+ AgentToolInputCRUDQueryMemoryStoreTool,
1637
+ z.ZodTypeDef,
1638
+ unknown
1639
+ > = z.object({
1640
+ type:
1641
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$inboundSchema,
1642
+ requires_approval: z.boolean().default(false),
1643
+ }).transform((v) => {
1644
+ return remap$(v, {
1645
+ "requires_approval": "requiresApproval",
1646
+ });
1647
+ });
1648
+
1649
+ /** @internal */
1650
+ export type AgentToolInputCRUDQueryMemoryStoreTool$Outbound = {
1651
+ type: string;
1652
+ requires_approval: boolean;
1653
+ };
1654
+
1655
+ /** @internal */
1656
+ export const AgentToolInputCRUDQueryMemoryStoreTool$outboundSchema: z.ZodType<
1657
+ AgentToolInputCRUDQueryMemoryStoreTool$Outbound,
1658
+ z.ZodTypeDef,
1659
+ AgentToolInputCRUDQueryMemoryStoreTool
1660
+ > = z.object({
1661
+ type:
1662
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$outboundSchema,
1663
+ requiresApproval: z.boolean().default(false),
1664
+ }).transform((v) => {
1665
+ return remap$(v, {
1666
+ requiresApproval: "requires_approval",
1667
+ });
1668
+ });
1669
+
1670
+ /**
1671
+ * @internal
1672
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1673
+ */
1674
+ export namespace AgentToolInputCRUDQueryMemoryStoreTool$ {
1675
+ /** @deprecated use `AgentToolInputCRUDQueryMemoryStoreTool$inboundSchema` instead. */
1676
+ export const inboundSchema =
1677
+ AgentToolInputCRUDQueryMemoryStoreTool$inboundSchema;
1678
+ /** @deprecated use `AgentToolInputCRUDQueryMemoryStoreTool$outboundSchema` instead. */
1679
+ export const outboundSchema =
1680
+ AgentToolInputCRUDQueryMemoryStoreTool$outboundSchema;
1681
+ /** @deprecated use `AgentToolInputCRUDQueryMemoryStoreTool$Outbound` instead. */
1682
+ export type Outbound = AgentToolInputCRUDQueryMemoryStoreTool$Outbound;
1683
+ }
1684
+
1685
+ export function agentToolInputCRUDQueryMemoryStoreToolToJSON(
1686
+ agentToolInputCRUDQueryMemoryStoreTool:
1687
+ AgentToolInputCRUDQueryMemoryStoreTool,
1688
+ ): string {
1689
+ return JSON.stringify(
1690
+ AgentToolInputCRUDQueryMemoryStoreTool$outboundSchema.parse(
1691
+ agentToolInputCRUDQueryMemoryStoreTool,
1692
+ ),
1693
+ );
1694
+ }
1695
+
1696
+ export function agentToolInputCRUDQueryMemoryStoreToolFromJSON(
1697
+ jsonString: string,
1698
+ ): SafeParseResult<AgentToolInputCRUDQueryMemoryStoreTool, SDKValidationError> {
1699
+ return safeParse(
1700
+ jsonString,
1701
+ (x) =>
1702
+ AgentToolInputCRUDQueryMemoryStoreTool$inboundSchema.parse(JSON.parse(x)),
1703
+ `Failed to parse 'AgentToolInputCRUDQueryMemoryStoreTool' from JSON`,
1704
+ );
1705
+ }
1706
+
1707
+ /** @internal */
1708
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$inboundSchema:
1709
+ z.ZodNativeEnum<
1710
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType
1711
+ > = z.nativeEnum(UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType);
1712
+
1713
+ /** @internal */
1714
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$outboundSchema:
1715
+ z.ZodNativeEnum<
1716
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType
1717
+ > = UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$inboundSchema;
1718
+
1719
+ /**
1720
+ * @internal
1721
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1722
+ */
1723
+ export namespace UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$ {
1724
+ /** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$inboundSchema` instead. */
1725
+ export const inboundSchema =
1726
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$inboundSchema;
1727
+ /** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$outboundSchema` instead. */
1728
+ export const outboundSchema =
1729
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$outboundSchema;
1730
+ }
1731
+
1732
+ /** @internal */
1733
+ export const AgentToolInputCRUDRetrieveAgentsTool$inboundSchema: z.ZodType<
1734
+ AgentToolInputCRUDRetrieveAgentsTool,
1735
+ z.ZodTypeDef,
1736
+ unknown
1737
+ > = z.object({
1738
+ type: UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$inboundSchema,
1739
+ requires_approval: z.boolean().default(false),
1740
+ }).transform((v) => {
1741
+ return remap$(v, {
1742
+ "requires_approval": "requiresApproval",
1743
+ });
1744
+ });
1745
+
1746
+ /** @internal */
1747
+ export type AgentToolInputCRUDRetrieveAgentsTool$Outbound = {
1748
+ type: string;
1749
+ requires_approval: boolean;
1750
+ };
1751
+
1752
+ /** @internal */
1753
+ export const AgentToolInputCRUDRetrieveAgentsTool$outboundSchema: z.ZodType<
1754
+ AgentToolInputCRUDRetrieveAgentsTool$Outbound,
1755
+ z.ZodTypeDef,
1756
+ AgentToolInputCRUDRetrieveAgentsTool
1757
+ > = z.object({
1758
+ type:
1759
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$outboundSchema,
1760
+ requiresApproval: z.boolean().default(false),
1761
+ }).transform((v) => {
1762
+ return remap$(v, {
1763
+ requiresApproval: "requires_approval",
1764
+ });
1765
+ });
1766
+
1767
+ /**
1768
+ * @internal
1769
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1770
+ */
1771
+ export namespace AgentToolInputCRUDRetrieveAgentsTool$ {
1772
+ /** @deprecated use `AgentToolInputCRUDRetrieveAgentsTool$inboundSchema` instead. */
1773
+ export const inboundSchema =
1774
+ AgentToolInputCRUDRetrieveAgentsTool$inboundSchema;
1775
+ /** @deprecated use `AgentToolInputCRUDRetrieveAgentsTool$outboundSchema` instead. */
1776
+ export const outboundSchema =
1777
+ AgentToolInputCRUDRetrieveAgentsTool$outboundSchema;
1778
+ /** @deprecated use `AgentToolInputCRUDRetrieveAgentsTool$Outbound` instead. */
1779
+ export type Outbound = AgentToolInputCRUDRetrieveAgentsTool$Outbound;
1780
+ }
1781
+
1782
+ export function agentToolInputCRUDRetrieveAgentsToolToJSON(
1783
+ agentToolInputCRUDRetrieveAgentsTool: AgentToolInputCRUDRetrieveAgentsTool,
1784
+ ): string {
1785
+ return JSON.stringify(
1786
+ AgentToolInputCRUDRetrieveAgentsTool$outboundSchema.parse(
1787
+ agentToolInputCRUDRetrieveAgentsTool,
1788
+ ),
1789
+ );
1790
+ }
1791
+
1792
+ export function agentToolInputCRUDRetrieveAgentsToolFromJSON(
1793
+ jsonString: string,
1794
+ ): SafeParseResult<AgentToolInputCRUDRetrieveAgentsTool, SDKValidationError> {
1795
+ return safeParse(
1796
+ jsonString,
1797
+ (x) =>
1798
+ AgentToolInputCRUDRetrieveAgentsTool$inboundSchema.parse(JSON.parse(x)),
1799
+ `Failed to parse 'AgentToolInputCRUDRetrieveAgentsTool' from JSON`,
1800
+ );
1801
+ }
1802
+
1803
+ /** @internal */
1804
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestType$inboundSchema:
1805
+ z.ZodNativeEnum<typeof UpdateAgentAgentToolInputCRUDAgentsRequestType> = z
1806
+ .nativeEnum(UpdateAgentAgentToolInputCRUDAgentsRequestType);
1807
+
1808
+ /** @internal */
1809
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestType$outboundSchema:
1810
+ z.ZodNativeEnum<typeof UpdateAgentAgentToolInputCRUDAgentsRequestType> =
1811
+ UpdateAgentAgentToolInputCRUDAgentsRequestType$inboundSchema;
1812
+
1813
+ /**
1814
+ * @internal
1815
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1816
+ */
1817
+ export namespace UpdateAgentAgentToolInputCRUDAgentsRequestType$ {
1818
+ /** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestType$inboundSchema` instead. */
1819
+ export const inboundSchema =
1820
+ UpdateAgentAgentToolInputCRUDAgentsRequestType$inboundSchema;
1821
+ /** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestType$outboundSchema` instead. */
1822
+ export const outboundSchema =
1823
+ UpdateAgentAgentToolInputCRUDAgentsRequestType$outboundSchema;
1824
+ }
1825
+
1826
+ /** @internal */
1827
+ export const AgentToolInputCRUDCallSubAgentTool$inboundSchema: z.ZodType<
1828
+ AgentToolInputCRUDCallSubAgentTool,
1829
+ z.ZodTypeDef,
1830
+ unknown
1831
+ > = z.object({
1832
+ type: UpdateAgentAgentToolInputCRUDAgentsRequestType$inboundSchema,
1833
+ requires_approval: z.boolean().default(false),
1834
+ }).transform((v) => {
1835
+ return remap$(v, {
1836
+ "requires_approval": "requiresApproval",
1837
+ });
1838
+ });
1839
+
1840
+ /** @internal */
1841
+ export type AgentToolInputCRUDCallSubAgentTool$Outbound = {
1842
+ type: string;
1843
+ requires_approval: boolean;
1844
+ };
1845
+
1846
+ /** @internal */
1847
+ export const AgentToolInputCRUDCallSubAgentTool$outboundSchema: z.ZodType<
1848
+ AgentToolInputCRUDCallSubAgentTool$Outbound,
1849
+ z.ZodTypeDef,
1850
+ AgentToolInputCRUDCallSubAgentTool
1851
+ > = z.object({
1852
+ type: UpdateAgentAgentToolInputCRUDAgentsRequestType$outboundSchema,
1853
+ requiresApproval: z.boolean().default(false),
1854
+ }).transform((v) => {
1855
+ return remap$(v, {
1856
+ requiresApproval: "requires_approval",
1857
+ });
1858
+ });
1859
+
1860
+ /**
1861
+ * @internal
1862
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1863
+ */
1864
+ export namespace AgentToolInputCRUDCallSubAgentTool$ {
1865
+ /** @deprecated use `AgentToolInputCRUDCallSubAgentTool$inboundSchema` instead. */
1866
+ export const inboundSchema = AgentToolInputCRUDCallSubAgentTool$inboundSchema;
1867
+ /** @deprecated use `AgentToolInputCRUDCallSubAgentTool$outboundSchema` instead. */
1868
+ export const outboundSchema =
1869
+ AgentToolInputCRUDCallSubAgentTool$outboundSchema;
1870
+ /** @deprecated use `AgentToolInputCRUDCallSubAgentTool$Outbound` instead. */
1871
+ export type Outbound = AgentToolInputCRUDCallSubAgentTool$Outbound;
1872
+ }
1873
+
1874
+ export function agentToolInputCRUDCallSubAgentToolToJSON(
1875
+ agentToolInputCRUDCallSubAgentTool: AgentToolInputCRUDCallSubAgentTool,
1876
+ ): string {
1877
+ return JSON.stringify(
1878
+ AgentToolInputCRUDCallSubAgentTool$outboundSchema.parse(
1879
+ agentToolInputCRUDCallSubAgentTool,
1880
+ ),
1881
+ );
1882
+ }
1883
+
1884
+ export function agentToolInputCRUDCallSubAgentToolFromJSON(
1885
+ jsonString: string,
1886
+ ): SafeParseResult<AgentToolInputCRUDCallSubAgentTool, SDKValidationError> {
1887
+ return safeParse(
1888
+ jsonString,
1889
+ (x) =>
1890
+ AgentToolInputCRUDCallSubAgentTool$inboundSchema.parse(JSON.parse(x)),
1891
+ `Failed to parse 'AgentToolInputCRUDCallSubAgentTool' from JSON`,
1892
+ );
1893
+ }
1894
+
1895
+ /** @internal */
1896
+ export const UpdateAgentAgentToolInputCRUDAgentsType$inboundSchema:
1897
+ z.ZodNativeEnum<typeof UpdateAgentAgentToolInputCRUDAgentsType> = z
1898
+ .nativeEnum(UpdateAgentAgentToolInputCRUDAgentsType);
1899
+
1900
+ /** @internal */
1901
+ export const UpdateAgentAgentToolInputCRUDAgentsType$outboundSchema:
1902
+ z.ZodNativeEnum<typeof UpdateAgentAgentToolInputCRUDAgentsType> =
1903
+ UpdateAgentAgentToolInputCRUDAgentsType$inboundSchema;
1904
+
1905
+ /**
1906
+ * @internal
1907
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1908
+ */
1909
+ export namespace UpdateAgentAgentToolInputCRUDAgentsType$ {
1910
+ /** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsType$inboundSchema` instead. */
1911
+ export const inboundSchema =
1912
+ UpdateAgentAgentToolInputCRUDAgentsType$inboundSchema;
1913
+ /** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsType$outboundSchema` instead. */
1914
+ export const outboundSchema =
1915
+ UpdateAgentAgentToolInputCRUDAgentsType$outboundSchema;
1916
+ }
1917
+
1918
+ /** @internal */
1919
+ export const AgentToolInputCRUDWebScraperTool$inboundSchema: z.ZodType<
1920
+ AgentToolInputCRUDWebScraperTool,
1921
+ z.ZodTypeDef,
1922
+ unknown
1923
+ > = z.object({
1924
+ type: UpdateAgentAgentToolInputCRUDAgentsType$inboundSchema,
1925
+ requires_approval: z.boolean().default(false),
1926
+ }).transform((v) => {
1927
+ return remap$(v, {
1928
+ "requires_approval": "requiresApproval",
1929
+ });
1930
+ });
1931
+
1932
+ /** @internal */
1933
+ export type AgentToolInputCRUDWebScraperTool$Outbound = {
1934
+ type: string;
1935
+ requires_approval: boolean;
1936
+ };
1937
+
1938
+ /** @internal */
1939
+ export const AgentToolInputCRUDWebScraperTool$outboundSchema: z.ZodType<
1940
+ AgentToolInputCRUDWebScraperTool$Outbound,
1941
+ z.ZodTypeDef,
1942
+ AgentToolInputCRUDWebScraperTool
1943
+ > = z.object({
1944
+ type: UpdateAgentAgentToolInputCRUDAgentsType$outboundSchema,
1945
+ requiresApproval: z.boolean().default(false),
1946
+ }).transform((v) => {
1947
+ return remap$(v, {
1948
+ requiresApproval: "requires_approval",
1949
+ });
1950
+ });
1951
+
1952
+ /**
1953
+ * @internal
1954
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1955
+ */
1956
+ export namespace AgentToolInputCRUDWebScraperTool$ {
1957
+ /** @deprecated use `AgentToolInputCRUDWebScraperTool$inboundSchema` instead. */
1958
+ export const inboundSchema = AgentToolInputCRUDWebScraperTool$inboundSchema;
1959
+ /** @deprecated use `AgentToolInputCRUDWebScraperTool$outboundSchema` instead. */
1960
+ export const outboundSchema = AgentToolInputCRUDWebScraperTool$outboundSchema;
1961
+ /** @deprecated use `AgentToolInputCRUDWebScraperTool$Outbound` instead. */
1962
+ export type Outbound = AgentToolInputCRUDWebScraperTool$Outbound;
1963
+ }
1964
+
1965
+ export function agentToolInputCRUDWebScraperToolToJSON(
1966
+ agentToolInputCRUDWebScraperTool: AgentToolInputCRUDWebScraperTool,
1967
+ ): string {
1968
+ return JSON.stringify(
1969
+ AgentToolInputCRUDWebScraperTool$outboundSchema.parse(
1970
+ agentToolInputCRUDWebScraperTool,
1971
+ ),
1972
+ );
1973
+ }
1974
+
1975
+ export function agentToolInputCRUDWebScraperToolFromJSON(
1976
+ jsonString: string,
1977
+ ): SafeParseResult<AgentToolInputCRUDWebScraperTool, SDKValidationError> {
1978
+ return safeParse(
1979
+ jsonString,
1980
+ (x) => AgentToolInputCRUDWebScraperTool$inboundSchema.parse(JSON.parse(x)),
1981
+ `Failed to parse 'AgentToolInputCRUDWebScraperTool' from JSON`,
1982
+ );
1983
+ }
1984
+
1985
+ /** @internal */
1986
+ export const UpdateAgentAgentToolInputCRUDType$inboundSchema: z.ZodNativeEnum<
1987
+ typeof UpdateAgentAgentToolInputCRUDType
1988
+ > = z.nativeEnum(UpdateAgentAgentToolInputCRUDType);
1989
+
1990
+ /** @internal */
1991
+ export const UpdateAgentAgentToolInputCRUDType$outboundSchema: z.ZodNativeEnum<
1992
+ typeof UpdateAgentAgentToolInputCRUDType
1993
+ > = UpdateAgentAgentToolInputCRUDType$inboundSchema;
1994
+
1995
+ /**
1996
+ * @internal
1997
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1998
+ */
1999
+ export namespace UpdateAgentAgentToolInputCRUDType$ {
2000
+ /** @deprecated use `UpdateAgentAgentToolInputCRUDType$inboundSchema` instead. */
2001
+ export const inboundSchema = UpdateAgentAgentToolInputCRUDType$inboundSchema;
2002
+ /** @deprecated use `UpdateAgentAgentToolInputCRUDType$outboundSchema` instead. */
2003
+ export const outboundSchema =
2004
+ UpdateAgentAgentToolInputCRUDType$outboundSchema;
2005
+ }
2006
+
2007
+ /** @internal */
2008
+ export const AgentToolInputCRUDGoogleSearchTool$inboundSchema: z.ZodType<
2009
+ AgentToolInputCRUDGoogleSearchTool,
2010
+ z.ZodTypeDef,
2011
+ unknown
2012
+ > = z.object({
2013
+ type: UpdateAgentAgentToolInputCRUDType$inboundSchema,
2014
+ requires_approval: z.boolean().default(false),
2015
+ }).transform((v) => {
2016
+ return remap$(v, {
2017
+ "requires_approval": "requiresApproval",
2018
+ });
2019
+ });
2020
+
2021
+ /** @internal */
2022
+ export type AgentToolInputCRUDGoogleSearchTool$Outbound = {
2023
+ type: string;
2024
+ requires_approval: boolean;
2025
+ };
2026
+
2027
+ /** @internal */
2028
+ export const AgentToolInputCRUDGoogleSearchTool$outboundSchema: z.ZodType<
2029
+ AgentToolInputCRUDGoogleSearchTool$Outbound,
2030
+ z.ZodTypeDef,
2031
+ AgentToolInputCRUDGoogleSearchTool
2032
+ > = z.object({
2033
+ type: UpdateAgentAgentToolInputCRUDType$outboundSchema,
2034
+ requiresApproval: z.boolean().default(false),
2035
+ }).transform((v) => {
2036
+ return remap$(v, {
2037
+ requiresApproval: "requires_approval",
2038
+ });
2039
+ });
2040
+
2041
+ /**
2042
+ * @internal
2043
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2044
+ */
2045
+ export namespace AgentToolInputCRUDGoogleSearchTool$ {
2046
+ /** @deprecated use `AgentToolInputCRUDGoogleSearchTool$inboundSchema` instead. */
2047
+ export const inboundSchema = AgentToolInputCRUDGoogleSearchTool$inboundSchema;
2048
+ /** @deprecated use `AgentToolInputCRUDGoogleSearchTool$outboundSchema` instead. */
2049
+ export const outboundSchema =
2050
+ AgentToolInputCRUDGoogleSearchTool$outboundSchema;
2051
+ /** @deprecated use `AgentToolInputCRUDGoogleSearchTool$Outbound` instead. */
2052
+ export type Outbound = AgentToolInputCRUDGoogleSearchTool$Outbound;
2053
+ }
2054
+
2055
+ export function agentToolInputCRUDGoogleSearchToolToJSON(
2056
+ agentToolInputCRUDGoogleSearchTool: AgentToolInputCRUDGoogleSearchTool,
2057
+ ): string {
2058
+ return JSON.stringify(
2059
+ AgentToolInputCRUDGoogleSearchTool$outboundSchema.parse(
2060
+ agentToolInputCRUDGoogleSearchTool,
2061
+ ),
2062
+ );
2063
+ }
2064
+
2065
+ export function agentToolInputCRUDGoogleSearchToolFromJSON(
2066
+ jsonString: string,
2067
+ ): SafeParseResult<AgentToolInputCRUDGoogleSearchTool, SDKValidationError> {
2068
+ return safeParse(
2069
+ jsonString,
2070
+ (x) =>
2071
+ AgentToolInputCRUDGoogleSearchTool$inboundSchema.parse(JSON.parse(x)),
2072
+ `Failed to parse 'AgentToolInputCRUDGoogleSearchTool' from JSON`,
2073
+ );
2074
+ }
2075
+
2076
+ /** @internal */
2077
+ export const UpdateAgentAgentToolInputCRUD$inboundSchema: z.ZodType<
2078
+ UpdateAgentAgentToolInputCRUD,
2079
+ z.ZodTypeDef,
2080
+ unknown
2081
+ > = z.union([
2082
+ z.lazy(() => AgentToolInputCRUDGoogleSearchTool$inboundSchema),
2083
+ z.lazy(() => AgentToolInputCRUDWebScraperTool$inboundSchema),
2084
+ z.lazy(() => AgentToolInputCRUDCallSubAgentTool$inboundSchema),
2085
+ z.lazy(() => AgentToolInputCRUDRetrieveAgentsTool$inboundSchema),
2086
+ z.lazy(() => AgentToolInputCRUDQueryMemoryStoreTool$inboundSchema),
2087
+ z.lazy(() => AgentToolInputCRUDWriteMemoryStoreTool$inboundSchema),
2088
+ z.lazy(() => AgentToolInputCRUDRetrieveMemoryStoresTool$inboundSchema),
2089
+ z.lazy(() => AgentToolInputCRUDDeleteMemoryDocumentTool$inboundSchema),
2090
+ z.lazy(() => AgentToolInputCRUDRetrieveKnowledgeBasesTool$inboundSchema),
2091
+ z.lazy(() => AgentToolInputCRUDQueryKnowledgeBaseTool$inboundSchema),
2092
+ z.lazy(() => AgentToolInputCRUDCurrentDateTool$inboundSchema),
2093
+ z.lazy(() => AgentToolInputCRUDHTTPTool$inboundSchema),
2094
+ z.lazy(() => AgentToolInputCRUDCodeExecutionTool$inboundSchema),
2095
+ z.lazy(() => AgentToolInputCRUDFunctionTool$inboundSchema),
2096
+ ]);
2097
+
2098
+ /** @internal */
2099
+ export type UpdateAgentAgentToolInputCRUD$Outbound =
2100
+ | AgentToolInputCRUDGoogleSearchTool$Outbound
2101
+ | AgentToolInputCRUDWebScraperTool$Outbound
2102
+ | AgentToolInputCRUDCallSubAgentTool$Outbound
2103
+ | AgentToolInputCRUDRetrieveAgentsTool$Outbound
2104
+ | AgentToolInputCRUDQueryMemoryStoreTool$Outbound
2105
+ | AgentToolInputCRUDWriteMemoryStoreTool$Outbound
2106
+ | AgentToolInputCRUDRetrieveMemoryStoresTool$Outbound
2107
+ | AgentToolInputCRUDDeleteMemoryDocumentTool$Outbound
2108
+ | AgentToolInputCRUDRetrieveKnowledgeBasesTool$Outbound
2109
+ | AgentToolInputCRUDQueryKnowledgeBaseTool$Outbound
2110
+ | AgentToolInputCRUDCurrentDateTool$Outbound
2111
+ | AgentToolInputCRUDHTTPTool$Outbound
2112
+ | AgentToolInputCRUDCodeExecutionTool$Outbound
2113
+ | AgentToolInputCRUDFunctionTool$Outbound;
2114
+
2115
+ /** @internal */
2116
+ export const UpdateAgentAgentToolInputCRUD$outboundSchema: z.ZodType<
2117
+ UpdateAgentAgentToolInputCRUD$Outbound,
2118
+ z.ZodTypeDef,
2119
+ UpdateAgentAgentToolInputCRUD
2120
+ > = z.union([
2121
+ z.lazy(() => AgentToolInputCRUDGoogleSearchTool$outboundSchema),
2122
+ z.lazy(() => AgentToolInputCRUDWebScraperTool$outboundSchema),
2123
+ z.lazy(() => AgentToolInputCRUDCallSubAgentTool$outboundSchema),
2124
+ z.lazy(() => AgentToolInputCRUDRetrieveAgentsTool$outboundSchema),
2125
+ z.lazy(() => AgentToolInputCRUDQueryMemoryStoreTool$outboundSchema),
2126
+ z.lazy(() => AgentToolInputCRUDWriteMemoryStoreTool$outboundSchema),
2127
+ z.lazy(() => AgentToolInputCRUDRetrieveMemoryStoresTool$outboundSchema),
2128
+ z.lazy(() => AgentToolInputCRUDDeleteMemoryDocumentTool$outboundSchema),
2129
+ z.lazy(() => AgentToolInputCRUDRetrieveKnowledgeBasesTool$outboundSchema),
2130
+ z.lazy(() => AgentToolInputCRUDQueryKnowledgeBaseTool$outboundSchema),
2131
+ z.lazy(() => AgentToolInputCRUDCurrentDateTool$outboundSchema),
2132
+ z.lazy(() => AgentToolInputCRUDHTTPTool$outboundSchema),
2133
+ z.lazy(() => AgentToolInputCRUDCodeExecutionTool$outboundSchema),
2134
+ z.lazy(() => AgentToolInputCRUDFunctionTool$outboundSchema),
2135
+ ]);
2136
+
2137
+ /**
2138
+ * @internal
2139
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2140
+ */
2141
+ export namespace UpdateAgentAgentToolInputCRUD$ {
2142
+ /** @deprecated use `UpdateAgentAgentToolInputCRUD$inboundSchema` instead. */
2143
+ export const inboundSchema = UpdateAgentAgentToolInputCRUD$inboundSchema;
2144
+ /** @deprecated use `UpdateAgentAgentToolInputCRUD$outboundSchema` instead. */
2145
+ export const outboundSchema = UpdateAgentAgentToolInputCRUD$outboundSchema;
2146
+ /** @deprecated use `UpdateAgentAgentToolInputCRUD$Outbound` instead. */
2147
+ export type Outbound = UpdateAgentAgentToolInputCRUD$Outbound;
2148
+ }
2149
+
2150
+ export function updateAgentAgentToolInputCRUDToJSON(
2151
+ updateAgentAgentToolInputCRUD: UpdateAgentAgentToolInputCRUD,
2152
+ ): string {
2153
+ return JSON.stringify(
2154
+ UpdateAgentAgentToolInputCRUD$outboundSchema.parse(
2155
+ updateAgentAgentToolInputCRUD,
2156
+ ),
2157
+ );
2158
+ }
2159
+
2160
+ export function updateAgentAgentToolInputCRUDFromJSON(
2161
+ jsonString: string,
2162
+ ): SafeParseResult<UpdateAgentAgentToolInputCRUD, SDKValidationError> {
2163
+ return safeParse(
2164
+ jsonString,
2165
+ (x) => UpdateAgentAgentToolInputCRUD$inboundSchema.parse(JSON.parse(x)),
2166
+ `Failed to parse 'UpdateAgentAgentToolInputCRUD' from JSON`,
2167
+ );
2168
+ }
2169
+
2170
+ /** @internal */
2171
+ export const UpdateAgentSettings$inboundSchema: z.ZodType<
2172
+ UpdateAgentSettings,
2173
+ z.ZodTypeDef,
2174
+ unknown
2175
+ > = z.object({
2176
+ max_iterations: z.number().int().default(15),
2177
+ max_execution_time: z.number().int().default(300),
2178
+ tool_approval_required: UpdateAgentToolApprovalRequired$inboundSchema.default(
2179
+ "respect_tool",
2180
+ ),
2181
+ tools: z.array(
2182
+ z.union([
2183
+ z.lazy(() => AgentToolInputCRUDGoogleSearchTool$inboundSchema),
2184
+ z.lazy(() => AgentToolInputCRUDWebScraperTool$inboundSchema),
2185
+ z.lazy(() => AgentToolInputCRUDCallSubAgentTool$inboundSchema),
2186
+ z.lazy(() => AgentToolInputCRUDRetrieveAgentsTool$inboundSchema),
2187
+ z.lazy(() => AgentToolInputCRUDQueryMemoryStoreTool$inboundSchema),
2188
+ z.lazy(() => AgentToolInputCRUDWriteMemoryStoreTool$inboundSchema),
2189
+ z.lazy(() => AgentToolInputCRUDRetrieveMemoryStoresTool$inboundSchema),
2190
+ z.lazy(() => AgentToolInputCRUDDeleteMemoryDocumentTool$inboundSchema),
2191
+ z.lazy(() => AgentToolInputCRUDRetrieveKnowledgeBasesTool$inboundSchema),
2192
+ z.lazy(() => AgentToolInputCRUDQueryKnowledgeBaseTool$inboundSchema),
2193
+ z.lazy(() => AgentToolInputCRUDCurrentDateTool$inboundSchema),
2194
+ z.lazy(() => AgentToolInputCRUDHTTPTool$inboundSchema),
2195
+ z.lazy(() => AgentToolInputCRUDCodeExecutionTool$inboundSchema),
2196
+ z.lazy(() => AgentToolInputCRUDFunctionTool$inboundSchema),
2197
+ ]),
2198
+ ).optional(),
2199
+ }).transform((v) => {
2200
+ return remap$(v, {
2201
+ "max_iterations": "maxIterations",
2202
+ "max_execution_time": "maxExecutionTime",
2203
+ "tool_approval_required": "toolApprovalRequired",
2204
+ });
2205
+ });
2206
+
2207
+ /** @internal */
2208
+ export type UpdateAgentSettings$Outbound = {
2209
+ max_iterations: number;
2210
+ max_execution_time: number;
2211
+ tool_approval_required: string;
2212
+ tools?:
2213
+ | Array<
2214
+ | AgentToolInputCRUDGoogleSearchTool$Outbound
2215
+ | AgentToolInputCRUDWebScraperTool$Outbound
2216
+ | AgentToolInputCRUDCallSubAgentTool$Outbound
2217
+ | AgentToolInputCRUDRetrieveAgentsTool$Outbound
2218
+ | AgentToolInputCRUDQueryMemoryStoreTool$Outbound
2219
+ | AgentToolInputCRUDWriteMemoryStoreTool$Outbound
2220
+ | AgentToolInputCRUDRetrieveMemoryStoresTool$Outbound
2221
+ | AgentToolInputCRUDDeleteMemoryDocumentTool$Outbound
2222
+ | AgentToolInputCRUDRetrieveKnowledgeBasesTool$Outbound
2223
+ | AgentToolInputCRUDQueryKnowledgeBaseTool$Outbound
2224
+ | AgentToolInputCRUDCurrentDateTool$Outbound
2225
+ | AgentToolInputCRUDHTTPTool$Outbound
2226
+ | AgentToolInputCRUDCodeExecutionTool$Outbound
2227
+ | AgentToolInputCRUDFunctionTool$Outbound
2228
+ >
2229
+ | undefined;
2230
+ };
2231
+
2232
+ /** @internal */
2233
+ export const UpdateAgentSettings$outboundSchema: z.ZodType<
2234
+ UpdateAgentSettings$Outbound,
2235
+ z.ZodTypeDef,
2236
+ UpdateAgentSettings
2237
+ > = z.object({
2238
+ maxIterations: z.number().int().default(15),
2239
+ maxExecutionTime: z.number().int().default(300),
2240
+ toolApprovalRequired: UpdateAgentToolApprovalRequired$outboundSchema.default(
2241
+ "respect_tool",
2242
+ ),
2243
+ tools: z.array(
2244
+ z.union([
2245
+ z.lazy(() => AgentToolInputCRUDGoogleSearchTool$outboundSchema),
2246
+ z.lazy(() => AgentToolInputCRUDWebScraperTool$outboundSchema),
2247
+ z.lazy(() => AgentToolInputCRUDCallSubAgentTool$outboundSchema),
2248
+ z.lazy(() => AgentToolInputCRUDRetrieveAgentsTool$outboundSchema),
2249
+ z.lazy(() => AgentToolInputCRUDQueryMemoryStoreTool$outboundSchema),
2250
+ z.lazy(() => AgentToolInputCRUDWriteMemoryStoreTool$outboundSchema),
2251
+ z.lazy(() => AgentToolInputCRUDRetrieveMemoryStoresTool$outboundSchema),
2252
+ z.lazy(() => AgentToolInputCRUDDeleteMemoryDocumentTool$outboundSchema),
2253
+ z.lazy(() => AgentToolInputCRUDRetrieveKnowledgeBasesTool$outboundSchema),
2254
+ z.lazy(() => AgentToolInputCRUDQueryKnowledgeBaseTool$outboundSchema),
2255
+ z.lazy(() => AgentToolInputCRUDCurrentDateTool$outboundSchema),
2256
+ z.lazy(() => AgentToolInputCRUDHTTPTool$outboundSchema),
2257
+ z.lazy(() => AgentToolInputCRUDCodeExecutionTool$outboundSchema),
2258
+ z.lazy(() => AgentToolInputCRUDFunctionTool$outboundSchema),
2259
+ ]),
2260
+ ).optional(),
2261
+ }).transform((v) => {
2262
+ return remap$(v, {
2263
+ maxIterations: "max_iterations",
2264
+ maxExecutionTime: "max_execution_time",
2265
+ toolApprovalRequired: "tool_approval_required",
2266
+ });
2267
+ });
2268
+
2269
+ /**
2270
+ * @internal
2271
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2272
+ */
2273
+ export namespace UpdateAgentSettings$ {
2274
+ /** @deprecated use `UpdateAgentSettings$inboundSchema` instead. */
2275
+ export const inboundSchema = UpdateAgentSettings$inboundSchema;
2276
+ /** @deprecated use `UpdateAgentSettings$outboundSchema` instead. */
2277
+ export const outboundSchema = UpdateAgentSettings$outboundSchema;
2278
+ /** @deprecated use `UpdateAgentSettings$Outbound` instead. */
2279
+ export type Outbound = UpdateAgentSettings$Outbound;
2280
+ }
2281
+
2282
+ export function updateAgentSettingsToJSON(
2283
+ updateAgentSettings: UpdateAgentSettings,
2284
+ ): string {
2285
+ return JSON.stringify(
2286
+ UpdateAgentSettings$outboundSchema.parse(updateAgentSettings),
2287
+ );
2288
+ }
2289
+
2290
+ export function updateAgentSettingsFromJSON(
2291
+ jsonString: string,
2292
+ ): SafeParseResult<UpdateAgentSettings, SDKValidationError> {
2293
+ return safeParse(
2294
+ jsonString,
2295
+ (x) => UpdateAgentSettings$inboundSchema.parse(JSON.parse(x)),
2296
+ `Failed to parse 'UpdateAgentSettings' from JSON`,
2297
+ );
2298
+ }
2299
+
2300
+ /** @internal */
2301
+ export const UpdateAgentKnowledgeBases$inboundSchema: z.ZodType<
2302
+ UpdateAgentKnowledgeBases,
2303
+ z.ZodTypeDef,
2304
+ unknown
2305
+ > = z.object({
2306
+ knowledge_id: z.string(),
2307
+ }).transform((v) => {
2308
+ return remap$(v, {
2309
+ "knowledge_id": "knowledgeId",
2310
+ });
2311
+ });
2312
+
2313
+ /** @internal */
2314
+ export type UpdateAgentKnowledgeBases$Outbound = {
2315
+ knowledge_id: string;
2316
+ };
2317
+
2318
+ /** @internal */
2319
+ export const UpdateAgentKnowledgeBases$outboundSchema: z.ZodType<
2320
+ UpdateAgentKnowledgeBases$Outbound,
2321
+ z.ZodTypeDef,
2322
+ UpdateAgentKnowledgeBases
2323
+ > = z.object({
2324
+ knowledgeId: z.string(),
2325
+ }).transform((v) => {
2326
+ return remap$(v, {
2327
+ knowledgeId: "knowledge_id",
2328
+ });
2329
+ });
2330
+
2331
+ /**
2332
+ * @internal
2333
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2334
+ */
2335
+ export namespace UpdateAgentKnowledgeBases$ {
2336
+ /** @deprecated use `UpdateAgentKnowledgeBases$inboundSchema` instead. */
2337
+ export const inboundSchema = UpdateAgentKnowledgeBases$inboundSchema;
2338
+ /** @deprecated use `UpdateAgentKnowledgeBases$outboundSchema` instead. */
2339
+ export const outboundSchema = UpdateAgentKnowledgeBases$outboundSchema;
2340
+ /** @deprecated use `UpdateAgentKnowledgeBases$Outbound` instead. */
2341
+ export type Outbound = UpdateAgentKnowledgeBases$Outbound;
2342
+ }
2343
+
2344
+ export function updateAgentKnowledgeBasesToJSON(
2345
+ updateAgentKnowledgeBases: UpdateAgentKnowledgeBases,
2346
+ ): string {
2347
+ return JSON.stringify(
2348
+ UpdateAgentKnowledgeBases$outboundSchema.parse(updateAgentKnowledgeBases),
2349
+ );
2350
+ }
2351
+
2352
+ export function updateAgentKnowledgeBasesFromJSON(
2353
+ jsonString: string,
2354
+ ): SafeParseResult<UpdateAgentKnowledgeBases, SDKValidationError> {
2355
+ return safeParse(
2356
+ jsonString,
2357
+ (x) => UpdateAgentKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
2358
+ `Failed to parse 'UpdateAgentKnowledgeBases' from JSON`,
2359
+ );
2360
+ }
2361
+
2362
+ /** @internal */
2363
+ export const UpdateAgentRequestBody$inboundSchema: z.ZodType<
2364
+ UpdateAgentRequestBody,
2365
+ z.ZodTypeDef,
2366
+ unknown
2367
+ > = z.object({
2368
+ key: z.string().optional(),
2369
+ project_id: z.string().optional(),
2370
+ role: z.string().optional(),
2371
+ description: z.string().optional(),
2372
+ instructions: z.string().optional(),
2373
+ system_prompt: z.string().optional(),
2374
+ model: z.string().optional(),
2375
+ fallback_models: z.array(z.string()).optional(),
2376
+ settings: z.lazy(() => UpdateAgentSettings$inboundSchema).optional(),
2377
+ path: z.string().optional(),
2378
+ memory_stores: z.array(z.string()).optional(),
2379
+ knowledge_bases: z.array(
2380
+ z.lazy(() => UpdateAgentKnowledgeBases$inboundSchema),
2381
+ ).optional(),
2382
+ }).transform((v) => {
2383
+ return remap$(v, {
2384
+ "project_id": "projectId",
2385
+ "system_prompt": "systemPrompt",
2386
+ "fallback_models": "fallbackModels",
2387
+ "memory_stores": "memoryStores",
2388
+ "knowledge_bases": "knowledgeBases",
2389
+ });
2390
+ });
2391
+
2392
+ /** @internal */
2393
+ export type UpdateAgentRequestBody$Outbound = {
2394
+ key?: string | undefined;
2395
+ project_id?: string | undefined;
2396
+ role?: string | undefined;
2397
+ description?: string | undefined;
2398
+ instructions?: string | undefined;
2399
+ system_prompt?: string | undefined;
2400
+ model?: string | undefined;
2401
+ fallback_models?: Array<string> | undefined;
2402
+ settings?: UpdateAgentSettings$Outbound | undefined;
2403
+ path?: string | undefined;
2404
+ memory_stores?: Array<string> | undefined;
2405
+ knowledge_bases?: Array<UpdateAgentKnowledgeBases$Outbound> | undefined;
2406
+ };
2407
+
2408
+ /** @internal */
2409
+ export const UpdateAgentRequestBody$outboundSchema: z.ZodType<
2410
+ UpdateAgentRequestBody$Outbound,
2411
+ z.ZodTypeDef,
2412
+ UpdateAgentRequestBody
2413
+ > = z.object({
2414
+ key: z.string().optional(),
2415
+ projectId: z.string().optional(),
2416
+ role: z.string().optional(),
2417
+ description: z.string().optional(),
2418
+ instructions: z.string().optional(),
2419
+ systemPrompt: z.string().optional(),
2420
+ model: z.string().optional(),
2421
+ fallbackModels: z.array(z.string()).optional(),
2422
+ settings: z.lazy(() => UpdateAgentSettings$outboundSchema).optional(),
2423
+ path: z.string().optional(),
2424
+ memoryStores: z.array(z.string()).optional(),
2425
+ knowledgeBases: z.array(
2426
+ z.lazy(() => UpdateAgentKnowledgeBases$outboundSchema),
2427
+ ).optional(),
2428
+ }).transform((v) => {
2429
+ return remap$(v, {
2430
+ projectId: "project_id",
2431
+ systemPrompt: "system_prompt",
2432
+ fallbackModels: "fallback_models",
2433
+ memoryStores: "memory_stores",
2434
+ knowledgeBases: "knowledge_bases",
2435
+ });
2436
+ });
2437
+
2438
+ /**
2439
+ * @internal
2440
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2441
+ */
2442
+ export namespace UpdateAgentRequestBody$ {
2443
+ /** @deprecated use `UpdateAgentRequestBody$inboundSchema` instead. */
2444
+ export const inboundSchema = UpdateAgentRequestBody$inboundSchema;
2445
+ /** @deprecated use `UpdateAgentRequestBody$outboundSchema` instead. */
2446
+ export const outboundSchema = UpdateAgentRequestBody$outboundSchema;
2447
+ /** @deprecated use `UpdateAgentRequestBody$Outbound` instead. */
2448
+ export type Outbound = UpdateAgentRequestBody$Outbound;
2449
+ }
2450
+
2451
+ export function updateAgentRequestBodyToJSON(
2452
+ updateAgentRequestBody: UpdateAgentRequestBody,
2453
+ ): string {
2454
+ return JSON.stringify(
2455
+ UpdateAgentRequestBody$outboundSchema.parse(updateAgentRequestBody),
2456
+ );
2457
+ }
2458
+
2459
+ export function updateAgentRequestBodyFromJSON(
2460
+ jsonString: string,
2461
+ ): SafeParseResult<UpdateAgentRequestBody, SDKValidationError> {
2462
+ return safeParse(
2463
+ jsonString,
2464
+ (x) => UpdateAgentRequestBody$inboundSchema.parse(JSON.parse(x)),
2465
+ `Failed to parse 'UpdateAgentRequestBody' from JSON`,
2466
+ );
2467
+ }
2468
+
2469
+ /** @internal */
2470
+ export const UpdateAgentRequest$inboundSchema: z.ZodType<
2471
+ UpdateAgentRequest,
2472
+ z.ZodTypeDef,
2473
+ unknown
2474
+ > = z.object({
2475
+ agent_key: z.string(),
2476
+ RequestBody: z.lazy(() => UpdateAgentRequestBody$inboundSchema).optional(),
2477
+ }).transform((v) => {
2478
+ return remap$(v, {
2479
+ "agent_key": "agentKey",
2480
+ "RequestBody": "requestBody",
2481
+ });
2482
+ });
2483
+
2484
+ /** @internal */
2485
+ export type UpdateAgentRequest$Outbound = {
2486
+ agent_key: string;
2487
+ RequestBody?: UpdateAgentRequestBody$Outbound | undefined;
2488
+ };
2489
+
2490
+ /** @internal */
2491
+ export const UpdateAgentRequest$outboundSchema: z.ZodType<
2492
+ UpdateAgentRequest$Outbound,
2493
+ z.ZodTypeDef,
2494
+ UpdateAgentRequest
2495
+ > = z.object({
2496
+ agentKey: z.string(),
2497
+ requestBody: z.lazy(() => UpdateAgentRequestBody$outboundSchema).optional(),
2498
+ }).transform((v) => {
2499
+ return remap$(v, {
2500
+ agentKey: "agent_key",
2501
+ requestBody: "RequestBody",
2502
+ });
2503
+ });
2504
+
2505
+ /**
2506
+ * @internal
2507
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2508
+ */
2509
+ export namespace UpdateAgentRequest$ {
2510
+ /** @deprecated use `UpdateAgentRequest$inboundSchema` instead. */
2511
+ export const inboundSchema = UpdateAgentRequest$inboundSchema;
2512
+ /** @deprecated use `UpdateAgentRequest$outboundSchema` instead. */
2513
+ export const outboundSchema = UpdateAgentRequest$outboundSchema;
2514
+ /** @deprecated use `UpdateAgentRequest$Outbound` instead. */
2515
+ export type Outbound = UpdateAgentRequest$Outbound;
2516
+ }
2517
+
2518
+ export function updateAgentRequestToJSON(
2519
+ updateAgentRequest: UpdateAgentRequest,
2520
+ ): string {
2521
+ return JSON.stringify(
2522
+ UpdateAgentRequest$outboundSchema.parse(updateAgentRequest),
2523
+ );
2524
+ }
2525
+
2526
+ export function updateAgentRequestFromJSON(
2527
+ jsonString: string,
2528
+ ): SafeParseResult<UpdateAgentRequest, SDKValidationError> {
2529
+ return safeParse(
2530
+ jsonString,
2531
+ (x) => UpdateAgentRequest$inboundSchema.parse(JSON.parse(x)),
2532
+ `Failed to parse 'UpdateAgentRequest' from JSON`,
2533
+ );
2534
+ }
2535
+
2536
+ /** @internal */
2537
+ export const UpdateAgentStatus$inboundSchema: z.ZodNativeEnum<
2538
+ typeof UpdateAgentStatus
2539
+ > = z.nativeEnum(UpdateAgentStatus);
2540
+
2541
+ /** @internal */
2542
+ export const UpdateAgentStatus$outboundSchema: z.ZodNativeEnum<
2543
+ typeof UpdateAgentStatus
2544
+ > = UpdateAgentStatus$inboundSchema;
2545
+
2546
+ /**
2547
+ * @internal
2548
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2549
+ */
2550
+ export namespace UpdateAgentStatus$ {
2551
+ /** @deprecated use `UpdateAgentStatus$inboundSchema` instead. */
2552
+ export const inboundSchema = UpdateAgentStatus$inboundSchema;
2553
+ /** @deprecated use `UpdateAgentStatus$outboundSchema` instead. */
2554
+ export const outboundSchema = UpdateAgentStatus$outboundSchema;
2555
+ }
2556
+
2557
+ /** @internal */
2558
+ export const UpdateAgentAgentsToolApprovalRequired$inboundSchema:
2559
+ z.ZodNativeEnum<typeof UpdateAgentAgentsToolApprovalRequired> = z.nativeEnum(
2560
+ UpdateAgentAgentsToolApprovalRequired,
2561
+ );
2562
+
2563
+ /** @internal */
2564
+ export const UpdateAgentAgentsToolApprovalRequired$outboundSchema:
2565
+ z.ZodNativeEnum<typeof UpdateAgentAgentsToolApprovalRequired> =
2566
+ UpdateAgentAgentsToolApprovalRequired$inboundSchema;
2567
+
2568
+ /**
2569
+ * @internal
2570
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2571
+ */
2572
+ export namespace UpdateAgentAgentsToolApprovalRequired$ {
2573
+ /** @deprecated use `UpdateAgentAgentsToolApprovalRequired$inboundSchema` instead. */
2574
+ export const inboundSchema =
2575
+ UpdateAgentAgentsToolApprovalRequired$inboundSchema;
2576
+ /** @deprecated use `UpdateAgentAgentsToolApprovalRequired$outboundSchema` instead. */
2577
+ export const outboundSchema =
2578
+ UpdateAgentAgentsToolApprovalRequired$outboundSchema;
2579
+ }
2580
+
2581
+ /** @internal */
2582
+ export const UpdateAgentConditions$inboundSchema: z.ZodType<
2583
+ UpdateAgentConditions,
2584
+ z.ZodTypeDef,
2585
+ unknown
2586
+ > = z.object({
2587
+ condition: z.string(),
2588
+ operator: z.string(),
2589
+ value: z.string(),
2590
+ });
2591
+
2592
+ /** @internal */
2593
+ export type UpdateAgentConditions$Outbound = {
2594
+ condition: string;
2595
+ operator: string;
2596
+ value: string;
2597
+ };
2598
+
2599
+ /** @internal */
2600
+ export const UpdateAgentConditions$outboundSchema: z.ZodType<
2601
+ UpdateAgentConditions$Outbound,
2602
+ z.ZodTypeDef,
2603
+ UpdateAgentConditions
2604
+ > = z.object({
2605
+ condition: z.string(),
2606
+ operator: z.string(),
2607
+ value: z.string(),
2608
+ });
2609
+
2610
+ /**
2611
+ * @internal
2612
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2613
+ */
2614
+ export namespace UpdateAgentConditions$ {
2615
+ /** @deprecated use `UpdateAgentConditions$inboundSchema` instead. */
2616
+ export const inboundSchema = UpdateAgentConditions$inboundSchema;
2617
+ /** @deprecated use `UpdateAgentConditions$outboundSchema` instead. */
2618
+ export const outboundSchema = UpdateAgentConditions$outboundSchema;
2619
+ /** @deprecated use `UpdateAgentConditions$Outbound` instead. */
2620
+ export type Outbound = UpdateAgentConditions$Outbound;
2621
+ }
2622
+
2623
+ export function updateAgentConditionsToJSON(
2624
+ updateAgentConditions: UpdateAgentConditions,
2625
+ ): string {
2626
+ return JSON.stringify(
2627
+ UpdateAgentConditions$outboundSchema.parse(updateAgentConditions),
2628
+ );
2629
+ }
2630
+
2631
+ export function updateAgentConditionsFromJSON(
2632
+ jsonString: string,
2633
+ ): SafeParseResult<UpdateAgentConditions, SDKValidationError> {
2634
+ return safeParse(
2635
+ jsonString,
2636
+ (x) => UpdateAgentConditions$inboundSchema.parse(JSON.parse(x)),
2637
+ `Failed to parse 'UpdateAgentConditions' from JSON`,
2638
+ );
2639
+ }
2640
+
2641
+ /** @internal */
2642
+ export const UpdateAgentTools$inboundSchema: z.ZodType<
2643
+ UpdateAgentTools,
2644
+ z.ZodTypeDef,
2645
+ unknown
2646
+ > = z.object({
2647
+ id: z.string(),
2648
+ key: z.string().optional(),
2649
+ action_type: z.string(),
2650
+ display_name: z.string().optional(),
2651
+ requires_approval: z.boolean().default(false),
2652
+ conditions: z.array(z.lazy(() => UpdateAgentConditions$inboundSchema))
2653
+ .optional(),
2654
+ mcpServer: z.string().optional(),
2655
+ timeout: z.number().default(120),
2656
+ }).transform((v) => {
2657
+ return remap$(v, {
2658
+ "action_type": "actionType",
2659
+ "display_name": "displayName",
2660
+ "requires_approval": "requiresApproval",
2661
+ });
2662
+ });
2663
+
2664
+ /** @internal */
2665
+ export type UpdateAgentTools$Outbound = {
2666
+ id: string;
2667
+ key?: string | undefined;
2668
+ action_type: string;
2669
+ display_name?: string | undefined;
2670
+ requires_approval: boolean;
2671
+ conditions?: Array<UpdateAgentConditions$Outbound> | undefined;
2672
+ mcpServer?: string | undefined;
2673
+ timeout: number;
2674
+ };
2675
+
2676
+ /** @internal */
2677
+ export const UpdateAgentTools$outboundSchema: z.ZodType<
2678
+ UpdateAgentTools$Outbound,
2679
+ z.ZodTypeDef,
2680
+ UpdateAgentTools
2681
+ > = z.object({
2682
+ id: z.string(),
2683
+ key: z.string().optional(),
2684
+ actionType: z.string(),
2685
+ displayName: z.string().optional(),
2686
+ requiresApproval: z.boolean().default(false),
2687
+ conditions: z.array(z.lazy(() => UpdateAgentConditions$outboundSchema))
2688
+ .optional(),
2689
+ mcpServer: z.string().optional(),
2690
+ timeout: z.number().default(120),
2691
+ }).transform((v) => {
2692
+ return remap$(v, {
2693
+ actionType: "action_type",
2694
+ displayName: "display_name",
2695
+ requiresApproval: "requires_approval",
2696
+ });
2697
+ });
2698
+
2699
+ /**
2700
+ * @internal
2701
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2702
+ */
2703
+ export namespace UpdateAgentTools$ {
2704
+ /** @deprecated use `UpdateAgentTools$inboundSchema` instead. */
2705
+ export const inboundSchema = UpdateAgentTools$inboundSchema;
2706
+ /** @deprecated use `UpdateAgentTools$outboundSchema` instead. */
2707
+ export const outboundSchema = UpdateAgentTools$outboundSchema;
2708
+ /** @deprecated use `UpdateAgentTools$Outbound` instead. */
2709
+ export type Outbound = UpdateAgentTools$Outbound;
2710
+ }
2711
+
2712
+ export function updateAgentToolsToJSON(
2713
+ updateAgentTools: UpdateAgentTools,
2714
+ ): string {
2715
+ return JSON.stringify(
2716
+ UpdateAgentTools$outboundSchema.parse(updateAgentTools),
2717
+ );
2718
+ }
2719
+
2720
+ export function updateAgentToolsFromJSON(
2721
+ jsonString: string,
2722
+ ): SafeParseResult<UpdateAgentTools, SDKValidationError> {
2723
+ return safeParse(
2724
+ jsonString,
2725
+ (x) => UpdateAgentTools$inboundSchema.parse(JSON.parse(x)),
2726
+ `Failed to parse 'UpdateAgentTools' from JSON`,
2727
+ );
2728
+ }
2729
+
2730
+ /** @internal */
2731
+ export const UpdateAgentAgentsSettings$inboundSchema: z.ZodType<
2732
+ UpdateAgentAgentsSettings,
2733
+ z.ZodTypeDef,
2734
+ unknown
2735
+ > = z.object({
2736
+ max_iterations: z.number().int().default(15),
2737
+ max_execution_time: z.number().int().default(300),
2738
+ tool_approval_required: UpdateAgentAgentsToolApprovalRequired$inboundSchema
2739
+ .default("respect_tool"),
2740
+ tools: z.array(z.lazy(() => UpdateAgentTools$inboundSchema)),
2741
+ }).transform((v) => {
2742
+ return remap$(v, {
2743
+ "max_iterations": "maxIterations",
2744
+ "max_execution_time": "maxExecutionTime",
2745
+ "tool_approval_required": "toolApprovalRequired",
2746
+ });
2747
+ });
2748
+
2749
+ /** @internal */
2750
+ export type UpdateAgentAgentsSettings$Outbound = {
2751
+ max_iterations: number;
2752
+ max_execution_time: number;
2753
+ tool_approval_required: string;
2754
+ tools: Array<UpdateAgentTools$Outbound>;
2755
+ };
2756
+
2757
+ /** @internal */
2758
+ export const UpdateAgentAgentsSettings$outboundSchema: z.ZodType<
2759
+ UpdateAgentAgentsSettings$Outbound,
2760
+ z.ZodTypeDef,
2761
+ UpdateAgentAgentsSettings
2762
+ > = z.object({
2763
+ maxIterations: z.number().int().default(15),
2764
+ maxExecutionTime: z.number().int().default(300),
2765
+ toolApprovalRequired: UpdateAgentAgentsToolApprovalRequired$outboundSchema
2766
+ .default("respect_tool"),
2767
+ tools: z.array(z.lazy(() => UpdateAgentTools$outboundSchema)),
2768
+ }).transform((v) => {
2769
+ return remap$(v, {
2770
+ maxIterations: "max_iterations",
2771
+ maxExecutionTime: "max_execution_time",
2772
+ toolApprovalRequired: "tool_approval_required",
2773
+ });
2774
+ });
2775
+
2776
+ /**
2777
+ * @internal
2778
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2779
+ */
2780
+ export namespace UpdateAgentAgentsSettings$ {
2781
+ /** @deprecated use `UpdateAgentAgentsSettings$inboundSchema` instead. */
2782
+ export const inboundSchema = UpdateAgentAgentsSettings$inboundSchema;
2783
+ /** @deprecated use `UpdateAgentAgentsSettings$outboundSchema` instead. */
2784
+ export const outboundSchema = UpdateAgentAgentsSettings$outboundSchema;
2785
+ /** @deprecated use `UpdateAgentAgentsSettings$Outbound` instead. */
2786
+ export type Outbound = UpdateAgentAgentsSettings$Outbound;
2787
+ }
2788
+
2789
+ export function updateAgentAgentsSettingsToJSON(
2790
+ updateAgentAgentsSettings: UpdateAgentAgentsSettings,
2791
+ ): string {
2792
+ return JSON.stringify(
2793
+ UpdateAgentAgentsSettings$outboundSchema.parse(updateAgentAgentsSettings),
2794
+ );
2795
+ }
2796
+
2797
+ export function updateAgentAgentsSettingsFromJSON(
2798
+ jsonString: string,
2799
+ ): SafeParseResult<UpdateAgentAgentsSettings, SDKValidationError> {
2800
+ return safeParse(
2801
+ jsonString,
2802
+ (x) => UpdateAgentAgentsSettings$inboundSchema.parse(JSON.parse(x)),
2803
+ `Failed to parse 'UpdateAgentAgentsSettings' from JSON`,
2804
+ );
2805
+ }
2806
+
2807
+ /** @internal */
2808
+ export const UpdateAgentModel$inboundSchema: z.ZodType<
2809
+ UpdateAgentModel,
2810
+ z.ZodTypeDef,
2811
+ unknown
2812
+ > = z.object({
2813
+ id: z.string(),
2814
+ integration_id: z.nullable(z.string()).optional(),
2815
+ fallback_models: z.nullable(z.array(z.string())).optional(),
2816
+ max_tokens: z.number().int().optional(),
2817
+ temperature: z.number().optional(),
2818
+ }).transform((v) => {
2819
+ return remap$(v, {
2820
+ "integration_id": "integrationId",
2821
+ "fallback_models": "fallbackModels",
2822
+ "max_tokens": "maxTokens",
2823
+ });
2824
+ });
2825
+
2826
+ /** @internal */
2827
+ export type UpdateAgentModel$Outbound = {
2828
+ id: string;
2829
+ integration_id?: string | null | undefined;
2830
+ fallback_models?: Array<string> | null | undefined;
2831
+ max_tokens?: number | undefined;
2832
+ temperature?: number | undefined;
2833
+ };
2834
+
2835
+ /** @internal */
2836
+ export const UpdateAgentModel$outboundSchema: z.ZodType<
2837
+ UpdateAgentModel$Outbound,
2838
+ z.ZodTypeDef,
2839
+ UpdateAgentModel
2840
+ > = z.object({
2841
+ id: z.string(),
2842
+ integrationId: z.nullable(z.string()).optional(),
2843
+ fallbackModels: z.nullable(z.array(z.string())).optional(),
2844
+ maxTokens: z.number().int().optional(),
2845
+ temperature: z.number().optional(),
2846
+ }).transform((v) => {
2847
+ return remap$(v, {
2848
+ integrationId: "integration_id",
2849
+ fallbackModels: "fallback_models",
2850
+ maxTokens: "max_tokens",
2851
+ });
2852
+ });
2853
+
2854
+ /**
2855
+ * @internal
2856
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2857
+ */
2858
+ export namespace UpdateAgentModel$ {
2859
+ /** @deprecated use `UpdateAgentModel$inboundSchema` instead. */
2860
+ export const inboundSchema = UpdateAgentModel$inboundSchema;
2861
+ /** @deprecated use `UpdateAgentModel$outboundSchema` instead. */
2862
+ export const outboundSchema = UpdateAgentModel$outboundSchema;
2863
+ /** @deprecated use `UpdateAgentModel$Outbound` instead. */
2864
+ export type Outbound = UpdateAgentModel$Outbound;
2865
+ }
2866
+
2867
+ export function updateAgentModelToJSON(
2868
+ updateAgentModel: UpdateAgentModel,
2869
+ ): string {
2870
+ return JSON.stringify(
2871
+ UpdateAgentModel$outboundSchema.parse(updateAgentModel),
2872
+ );
2873
+ }
2874
+
2875
+ export function updateAgentModelFromJSON(
2876
+ jsonString: string,
2877
+ ): SafeParseResult<UpdateAgentModel, SDKValidationError> {
2878
+ return safeParse(
2879
+ jsonString,
2880
+ (x) => UpdateAgentModel$inboundSchema.parse(JSON.parse(x)),
2881
+ `Failed to parse 'UpdateAgentModel' from JSON`,
2882
+ );
2883
+ }
2884
+
2885
+ /** @internal */
2886
+ export const UpdateAgentTeamOfAgents$inboundSchema: z.ZodType<
2887
+ UpdateAgentTeamOfAgents,
2888
+ z.ZodTypeDef,
2889
+ unknown
2890
+ > = z.object({
2891
+ key: z.string(),
2892
+ role: z.string().optional(),
2893
+ });
2894
+
2895
+ /** @internal */
2896
+ export type UpdateAgentTeamOfAgents$Outbound = {
2897
+ key: string;
2898
+ role?: string | undefined;
2899
+ };
2900
+
2901
+ /** @internal */
2902
+ export const UpdateAgentTeamOfAgents$outboundSchema: z.ZodType<
2903
+ UpdateAgentTeamOfAgents$Outbound,
2904
+ z.ZodTypeDef,
2905
+ UpdateAgentTeamOfAgents
2906
+ > = z.object({
2907
+ key: z.string(),
2908
+ role: z.string().optional(),
2909
+ });
2910
+
2911
+ /**
2912
+ * @internal
2913
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2914
+ */
2915
+ export namespace UpdateAgentTeamOfAgents$ {
2916
+ /** @deprecated use `UpdateAgentTeamOfAgents$inboundSchema` instead. */
2917
+ export const inboundSchema = UpdateAgentTeamOfAgents$inboundSchema;
2918
+ /** @deprecated use `UpdateAgentTeamOfAgents$outboundSchema` instead. */
2919
+ export const outboundSchema = UpdateAgentTeamOfAgents$outboundSchema;
2920
+ /** @deprecated use `UpdateAgentTeamOfAgents$Outbound` instead. */
2921
+ export type Outbound = UpdateAgentTeamOfAgents$Outbound;
2922
+ }
2923
+
2924
+ export function updateAgentTeamOfAgentsToJSON(
2925
+ updateAgentTeamOfAgents: UpdateAgentTeamOfAgents,
2926
+ ): string {
2927
+ return JSON.stringify(
2928
+ UpdateAgentTeamOfAgents$outboundSchema.parse(updateAgentTeamOfAgents),
2929
+ );
2930
+ }
2931
+
2932
+ export function updateAgentTeamOfAgentsFromJSON(
2933
+ jsonString: string,
2934
+ ): SafeParseResult<UpdateAgentTeamOfAgents, SDKValidationError> {
2935
+ return safeParse(
2936
+ jsonString,
2937
+ (x) => UpdateAgentTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
2938
+ `Failed to parse 'UpdateAgentTeamOfAgents' from JSON`,
2939
+ );
2940
+ }
2941
+
2942
+ /** @internal */
2943
+ export const UpdateAgentMetrics$inboundSchema: z.ZodType<
2944
+ UpdateAgentMetrics,
2945
+ z.ZodTypeDef,
2946
+ unknown
2947
+ > = z.object({
2948
+ total_cost: z.number().default(0),
2949
+ }).transform((v) => {
2950
+ return remap$(v, {
2951
+ "total_cost": "totalCost",
2952
+ });
2953
+ });
2954
+
2955
+ /** @internal */
2956
+ export type UpdateAgentMetrics$Outbound = {
2957
+ total_cost: number;
2958
+ };
2959
+
2960
+ /** @internal */
2961
+ export const UpdateAgentMetrics$outboundSchema: z.ZodType<
2962
+ UpdateAgentMetrics$Outbound,
2963
+ z.ZodTypeDef,
2964
+ UpdateAgentMetrics
2965
+ > = z.object({
2966
+ totalCost: z.number().default(0),
2967
+ }).transform((v) => {
2968
+ return remap$(v, {
2969
+ totalCost: "total_cost",
2970
+ });
2971
+ });
2972
+
2973
+ /**
2974
+ * @internal
2975
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2976
+ */
2977
+ export namespace UpdateAgentMetrics$ {
2978
+ /** @deprecated use `UpdateAgentMetrics$inboundSchema` instead. */
2979
+ export const inboundSchema = UpdateAgentMetrics$inboundSchema;
2980
+ /** @deprecated use `UpdateAgentMetrics$outboundSchema` instead. */
2981
+ export const outboundSchema = UpdateAgentMetrics$outboundSchema;
2982
+ /** @deprecated use `UpdateAgentMetrics$Outbound` instead. */
2983
+ export type Outbound = UpdateAgentMetrics$Outbound;
2984
+ }
2985
+
2986
+ export function updateAgentMetricsToJSON(
2987
+ updateAgentMetrics: UpdateAgentMetrics,
2988
+ ): string {
2989
+ return JSON.stringify(
2990
+ UpdateAgentMetrics$outboundSchema.parse(updateAgentMetrics),
2991
+ );
2992
+ }
2993
+
2994
+ export function updateAgentMetricsFromJSON(
2995
+ jsonString: string,
2996
+ ): SafeParseResult<UpdateAgentMetrics, SDKValidationError> {
2997
+ return safeParse(
2998
+ jsonString,
2999
+ (x) => UpdateAgentMetrics$inboundSchema.parse(JSON.parse(x)),
3000
+ `Failed to parse 'UpdateAgentMetrics' from JSON`,
3001
+ );
3002
+ }
3003
+
3004
+ /** @internal */
3005
+ export const UpdateAgentAgentsKnowledgeBases$inboundSchema: z.ZodType<
3006
+ UpdateAgentAgentsKnowledgeBases,
3007
+ z.ZodTypeDef,
3008
+ unknown
3009
+ > = z.object({
3010
+ knowledge_id: z.string(),
3011
+ }).transform((v) => {
3012
+ return remap$(v, {
3013
+ "knowledge_id": "knowledgeId",
3014
+ });
3015
+ });
3016
+
3017
+ /** @internal */
3018
+ export type UpdateAgentAgentsKnowledgeBases$Outbound = {
3019
+ knowledge_id: string;
3020
+ };
3021
+
3022
+ /** @internal */
3023
+ export const UpdateAgentAgentsKnowledgeBases$outboundSchema: z.ZodType<
3024
+ UpdateAgentAgentsKnowledgeBases$Outbound,
3025
+ z.ZodTypeDef,
3026
+ UpdateAgentAgentsKnowledgeBases
3027
+ > = z.object({
3028
+ knowledgeId: z.string(),
3029
+ }).transform((v) => {
3030
+ return remap$(v, {
3031
+ knowledgeId: "knowledge_id",
3032
+ });
3033
+ });
3034
+
3035
+ /**
3036
+ * @internal
3037
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3038
+ */
3039
+ export namespace UpdateAgentAgentsKnowledgeBases$ {
3040
+ /** @deprecated use `UpdateAgentAgentsKnowledgeBases$inboundSchema` instead. */
3041
+ export const inboundSchema = UpdateAgentAgentsKnowledgeBases$inboundSchema;
3042
+ /** @deprecated use `UpdateAgentAgentsKnowledgeBases$outboundSchema` instead. */
3043
+ export const outboundSchema = UpdateAgentAgentsKnowledgeBases$outboundSchema;
3044
+ /** @deprecated use `UpdateAgentAgentsKnowledgeBases$Outbound` instead. */
3045
+ export type Outbound = UpdateAgentAgentsKnowledgeBases$Outbound;
3046
+ }
3047
+
3048
+ export function updateAgentAgentsKnowledgeBasesToJSON(
3049
+ updateAgentAgentsKnowledgeBases: UpdateAgentAgentsKnowledgeBases,
3050
+ ): string {
3051
+ return JSON.stringify(
3052
+ UpdateAgentAgentsKnowledgeBases$outboundSchema.parse(
3053
+ updateAgentAgentsKnowledgeBases,
3054
+ ),
3055
+ );
3056
+ }
3057
+
3058
+ export function updateAgentAgentsKnowledgeBasesFromJSON(
3059
+ jsonString: string,
3060
+ ): SafeParseResult<UpdateAgentAgentsKnowledgeBases, SDKValidationError> {
3061
+ return safeParse(
3062
+ jsonString,
3063
+ (x) => UpdateAgentAgentsKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
3064
+ `Failed to parse 'UpdateAgentAgentsKnowledgeBases' from JSON`,
3065
+ );
3066
+ }
3067
+
3068
+ /** @internal */
3069
+ export const UpdateAgentHiddenPanels$inboundSchema: z.ZodNativeEnum<
3070
+ typeof UpdateAgentHiddenPanels
3071
+ > = z.nativeEnum(UpdateAgentHiddenPanels);
3072
+
3073
+ /** @internal */
3074
+ export const UpdateAgentHiddenPanels$outboundSchema: z.ZodNativeEnum<
3075
+ typeof UpdateAgentHiddenPanels
3076
+ > = UpdateAgentHiddenPanels$inboundSchema;
3077
+
3078
+ /**
3079
+ * @internal
3080
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3081
+ */
3082
+ export namespace UpdateAgentHiddenPanels$ {
3083
+ /** @deprecated use `UpdateAgentHiddenPanels$inboundSchema` instead. */
3084
+ export const inboundSchema = UpdateAgentHiddenPanels$inboundSchema;
3085
+ /** @deprecated use `UpdateAgentHiddenPanels$outboundSchema` instead. */
3086
+ export const outboundSchema = UpdateAgentHiddenPanels$outboundSchema;
3087
+ }
3088
+
3089
+ /** @internal */
3090
+ export const UpdateAgentResponseBody$inboundSchema: z.ZodType<
3091
+ UpdateAgentResponseBody,
3092
+ z.ZodTypeDef,
3093
+ unknown
3094
+ > = z.object({
3095
+ _id: z.string(),
3096
+ key: z.string(),
3097
+ workspace_id: z.string(),
3098
+ project_id: z.string(),
3099
+ created_by_id: z.nullable(z.string()).optional(),
3100
+ updated_by_id: z.nullable(z.string()).optional(),
3101
+ created: z.string().optional(),
3102
+ updated: z.string().optional(),
3103
+ role: z.string(),
3104
+ description: z.string(),
3105
+ system_prompt: z.string().optional(),
3106
+ instructions: z.string(),
3107
+ status: UpdateAgentStatus$inboundSchema,
3108
+ settings: z.lazy(() => UpdateAgentAgentsSettings$inboundSchema).optional(),
3109
+ model: z.lazy(() => UpdateAgentModel$inboundSchema),
3110
+ version_hash: z.string().optional(),
3111
+ path: z.string(),
3112
+ memory_stores: z.array(z.string()),
3113
+ team_of_agents: z.array(z.lazy(() => UpdateAgentTeamOfAgents$inboundSchema)),
3114
+ metrics: z.lazy(() => UpdateAgentMetrics$inboundSchema).optional(),
3115
+ variables: z.record(z.any()).optional(),
3116
+ knowledge_bases: z.array(
3117
+ z.lazy(() => UpdateAgentAgentsKnowledgeBases$inboundSchema),
3118
+ ).optional(),
3119
+ hidden_panels: z.array(UpdateAgentHiddenPanels$inboundSchema).optional(),
3120
+ }).transform((v) => {
3121
+ return remap$(v, {
3122
+ "_id": "id",
3123
+ "workspace_id": "workspaceId",
3124
+ "project_id": "projectId",
3125
+ "created_by_id": "createdById",
3126
+ "updated_by_id": "updatedById",
3127
+ "system_prompt": "systemPrompt",
3128
+ "version_hash": "versionHash",
3129
+ "memory_stores": "memoryStores",
3130
+ "team_of_agents": "teamOfAgents",
3131
+ "knowledge_bases": "knowledgeBases",
3132
+ "hidden_panels": "hiddenPanels",
3133
+ });
3134
+ });
3135
+
3136
+ /** @internal */
3137
+ export type UpdateAgentResponseBody$Outbound = {
3138
+ _id: string;
3139
+ key: string;
3140
+ workspace_id: string;
3141
+ project_id: string;
3142
+ created_by_id?: string | null | undefined;
3143
+ updated_by_id?: string | null | undefined;
3144
+ created?: string | undefined;
3145
+ updated?: string | undefined;
3146
+ role: string;
3147
+ description: string;
3148
+ system_prompt?: string | undefined;
3149
+ instructions: string;
3150
+ status: string;
3151
+ settings?: UpdateAgentAgentsSettings$Outbound | undefined;
3152
+ model: UpdateAgentModel$Outbound;
3153
+ version_hash?: string | undefined;
3154
+ path: string;
3155
+ memory_stores: Array<string>;
3156
+ team_of_agents: Array<UpdateAgentTeamOfAgents$Outbound>;
3157
+ metrics?: UpdateAgentMetrics$Outbound | undefined;
3158
+ variables?: { [k: string]: any } | undefined;
3159
+ knowledge_bases?: Array<UpdateAgentAgentsKnowledgeBases$Outbound> | undefined;
3160
+ hidden_panels?: Array<string> | undefined;
3161
+ };
3162
+
3163
+ /** @internal */
3164
+ export const UpdateAgentResponseBody$outboundSchema: z.ZodType<
3165
+ UpdateAgentResponseBody$Outbound,
3166
+ z.ZodTypeDef,
3167
+ UpdateAgentResponseBody
3168
+ > = z.object({
3169
+ id: z.string(),
3170
+ key: z.string(),
3171
+ workspaceId: z.string(),
3172
+ projectId: z.string(),
3173
+ createdById: z.nullable(z.string()).optional(),
3174
+ updatedById: z.nullable(z.string()).optional(),
3175
+ created: z.string().optional(),
3176
+ updated: z.string().optional(),
3177
+ role: z.string(),
3178
+ description: z.string(),
3179
+ systemPrompt: z.string().optional(),
3180
+ instructions: z.string(),
3181
+ status: UpdateAgentStatus$outboundSchema,
3182
+ settings: z.lazy(() => UpdateAgentAgentsSettings$outboundSchema).optional(),
3183
+ model: z.lazy(() => UpdateAgentModel$outboundSchema),
3184
+ versionHash: z.string().optional(),
3185
+ path: z.string(),
3186
+ memoryStores: z.array(z.string()),
3187
+ teamOfAgents: z.array(z.lazy(() => UpdateAgentTeamOfAgents$outboundSchema)),
3188
+ metrics: z.lazy(() => UpdateAgentMetrics$outboundSchema).optional(),
3189
+ variables: z.record(z.any()).optional(),
3190
+ knowledgeBases: z.array(
3191
+ z.lazy(() => UpdateAgentAgentsKnowledgeBases$outboundSchema),
3192
+ ).optional(),
3193
+ hiddenPanels: z.array(UpdateAgentHiddenPanels$outboundSchema).optional(),
3194
+ }).transform((v) => {
3195
+ return remap$(v, {
3196
+ id: "_id",
3197
+ workspaceId: "workspace_id",
3198
+ projectId: "project_id",
3199
+ createdById: "created_by_id",
3200
+ updatedById: "updated_by_id",
3201
+ systemPrompt: "system_prompt",
3202
+ versionHash: "version_hash",
3203
+ memoryStores: "memory_stores",
3204
+ teamOfAgents: "team_of_agents",
3205
+ knowledgeBases: "knowledge_bases",
3206
+ hiddenPanels: "hidden_panels",
3207
+ });
3208
+ });
3209
+
3210
+ /**
3211
+ * @internal
3212
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3213
+ */
3214
+ export namespace UpdateAgentResponseBody$ {
3215
+ /** @deprecated use `UpdateAgentResponseBody$inboundSchema` instead. */
3216
+ export const inboundSchema = UpdateAgentResponseBody$inboundSchema;
3217
+ /** @deprecated use `UpdateAgentResponseBody$outboundSchema` instead. */
3218
+ export const outboundSchema = UpdateAgentResponseBody$outboundSchema;
3219
+ /** @deprecated use `UpdateAgentResponseBody$Outbound` instead. */
3220
+ export type Outbound = UpdateAgentResponseBody$Outbound;
3221
+ }
3222
+
3223
+ export function updateAgentResponseBodyToJSON(
3224
+ updateAgentResponseBody: UpdateAgentResponseBody,
3225
+ ): string {
3226
+ return JSON.stringify(
3227
+ UpdateAgentResponseBody$outboundSchema.parse(updateAgentResponseBody),
3228
+ );
3229
+ }
3230
+
3231
+ export function updateAgentResponseBodyFromJSON(
3232
+ jsonString: string,
3233
+ ): SafeParseResult<UpdateAgentResponseBody, SDKValidationError> {
3234
+ return safeParse(
3235
+ jsonString,
3236
+ (x) => UpdateAgentResponseBody$inboundSchema.parse(JSON.parse(x)),
3237
+ `Failed to parse 'UpdateAgentResponseBody' from JSON`,
3238
+ );
3239
+ }