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