@archastro/sdk 0.4.0 → 0.5.2

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 (273) hide show
  1. package/dist/auth.d.ts +1 -1
  2. package/dist/auth.d.ts.map +1 -1
  3. package/dist/auth.js +8 -8
  4. package/dist/auth.js.map +1 -1
  5. package/dist/channels/api_activity_feed_channel.d.ts +11 -3
  6. package/dist/channels/api_activity_feed_channel.d.ts.map +1 -1
  7. package/dist/channels/api_activity_feed_channel.js +24 -4
  8. package/dist/channels/api_activity_feed_channel.js.map +1 -1
  9. package/dist/channels/api_chat_channel.d.ts +53 -7
  10. package/dist/channels/api_chat_channel.d.ts.map +1 -1
  11. package/dist/channels/api_chat_channel.js +56 -8
  12. package/dist/channels/api_chat_channel.js.map +1 -1
  13. package/dist/channels/api_object_channel.d.ts +9 -3
  14. package/dist/channels/api_object_channel.d.ts.map +1 -1
  15. package/dist/channels/api_object_channel.js +22 -4
  16. package/dist/channels/api_object_channel.js.map +1 -1
  17. package/dist/client.d.ts +6 -0
  18. package/dist/client.d.ts.map +1 -1
  19. package/dist/client.js +7 -1
  20. package/dist/client.js.map +1 -1
  21. package/dist/phx_channel/channel.d.ts +10 -1
  22. package/dist/phx_channel/channel.d.ts.map +1 -1
  23. package/dist/phx_channel/channel.js +5 -5
  24. package/dist/phx_channel/channel.js.map +1 -1
  25. package/dist/phx_channel/socket.d.ts +0 -1
  26. package/dist/phx_channel/socket.d.ts.map +1 -1
  27. package/dist/phx_channel/socket.js +15 -12
  28. package/dist/phx_channel/socket.js.map +1 -1
  29. package/dist/types/agents.d.ts +987 -1388
  30. package/dist/types/agents.d.ts.map +1 -1
  31. package/dist/types/agents.js +104 -153
  32. package/dist/types/agents.js.map +1 -1
  33. package/dist/types/ai.d.ts +8 -76
  34. package/dist/types/ai.d.ts.map +1 -1
  35. package/dist/types/ai.js +1 -21
  36. package/dist/types/ai.js.map +1 -1
  37. package/dist/types/artifacts.d.ts +4 -83
  38. package/dist/types/artifacts.d.ts.map +1 -1
  39. package/dist/types/artifacts.js +1 -15
  40. package/dist/types/artifacts.js.map +1 -1
  41. package/dist/types/automations.d.ts +2 -68
  42. package/dist/types/automations.d.ts.map +1 -1
  43. package/dist/types/automations.js +1 -26
  44. package/dist/types/automations.js.map +1 -1
  45. package/dist/types/common.d.ts +1716 -6242
  46. package/dist/types/common.d.ts.map +1 -1
  47. package/dist/types/common.js +247 -1202
  48. package/dist/types/common.js.map +1 -1
  49. package/dist/types/config.d.ts +10 -62
  50. package/dist/types/config.d.ts.map +1 -1
  51. package/dist/types/config.js +3 -25
  52. package/dist/types/config.js.map +1 -1
  53. package/dist/types/index.d.ts +1 -6
  54. package/dist/types/index.d.ts.map +1 -1
  55. package/dist/types/index.js +2 -7
  56. package/dist/types/index.js.map +1 -1
  57. package/dist/types/invites.d.ts +63 -0
  58. package/dist/types/invites.d.ts.map +1 -0
  59. package/dist/types/invites.js +18 -0
  60. package/dist/types/invites.js.map +1 -0
  61. package/dist/types/teams.d.ts +97 -389
  62. package/dist/types/teams.d.ts.map +1 -1
  63. package/dist/types/teams.js +5 -37
  64. package/dist/types/teams.js.map +1 -1
  65. package/dist/types/threads.d.ts +52 -682
  66. package/dist/types/threads.d.ts.map +1 -1
  67. package/dist/types/threads.js +7 -114
  68. package/dist/types/threads.js.map +1 -1
  69. package/dist/types/users.d.ts +63 -63
  70. package/dist/types/users.d.ts.map +1 -1
  71. package/dist/types/users.js +3 -15
  72. package/dist/types/users.js.map +1 -1
  73. package/dist/v1/resources/activity_feed.d.ts +83 -0
  74. package/dist/v1/resources/activity_feed.d.ts.map +1 -0
  75. package/dist/v1/resources/activity_feed.js +13 -0
  76. package/dist/v1/resources/activity_feed.js.map +1 -0
  77. package/dist/v1/resources/agent_computers.d.ts +5 -2
  78. package/dist/v1/resources/agent_computers.d.ts.map +1 -1
  79. package/dist/v1/resources/agent_computers.js +4 -4
  80. package/dist/v1/resources/agent_computers.js.map +1 -1
  81. package/dist/v1/resources/agent_installations.d.ts +9 -4
  82. package/dist/v1/resources/agent_installations.d.ts.map +1 -1
  83. package/dist/v1/resources/agent_installations.js +7 -7
  84. package/dist/v1/resources/agent_installations.js.map +1 -1
  85. package/dist/v1/resources/agent_routines.d.ts +73 -10
  86. package/dist/v1/resources/agent_routines.d.ts.map +1 -1
  87. package/dist/v1/resources/agent_routines.js +13 -13
  88. package/dist/v1/resources/agent_routines.js.map +1 -1
  89. package/dist/v1/resources/agent_sessions.d.ts +23 -6
  90. package/dist/v1/resources/agent_sessions.d.ts.map +1 -1
  91. package/dist/v1/resources/agent_sessions.js +8 -8
  92. package/dist/v1/resources/agent_sessions.js.map +1 -1
  93. package/dist/v1/resources/agent_skills.d.ts +14 -6
  94. package/dist/v1/resources/agent_skills.d.ts.map +1 -1
  95. package/dist/v1/resources/agent_skills.js +10 -10
  96. package/dist/v1/resources/agent_skills.js.map +1 -1
  97. package/dist/v1/resources/agent_tools.d.ts +17 -6
  98. package/dist/v1/resources/agent_tools.d.ts.map +1 -1
  99. package/dist/v1/resources/agent_tools.js +11 -11
  100. package/dist/v1/resources/agent_tools.js.map +1 -1
  101. package/dist/v1/resources/agents.d.ts +191 -22
  102. package/dist/v1/resources/agents.d.ts.map +1 -1
  103. package/dist/v1/resources/agents.js +22 -22
  104. package/dist/v1/resources/agents.js.map +1 -1
  105. package/dist/v1/resources/ai.d.ts +67 -3
  106. package/dist/v1/resources/ai.d.ts.map +1 -1
  107. package/dist/v1/resources/ai.js +4 -4
  108. package/dist/v1/resources/ai.js.map +1 -1
  109. package/dist/v1/resources/artifacts.d.ts +9 -2
  110. package/dist/v1/resources/artifacts.d.ts.map +1 -1
  111. package/dist/v1/resources/artifacts.js +4 -4
  112. package/dist/v1/resources/artifacts.js.map +1 -1
  113. package/dist/v1/resources/automations.d.ts +4 -1
  114. package/dist/v1/resources/automations.d.ts.map +1 -1
  115. package/dist/v1/resources/automations.js +1 -1
  116. package/dist/v1/resources/automations.js.map +1 -1
  117. package/dist/v1/resources/config.d.ts +70 -22
  118. package/dist/v1/resources/config.d.ts.map +1 -1
  119. package/dist/v1/resources/config.js +20 -20
  120. package/dist/v1/resources/config.js.map +1 -1
  121. package/dist/v1/resources/custom_objects.d.ts +5 -1
  122. package/dist/v1/resources/custom_objects.d.ts.map +1 -1
  123. package/dist/v1/resources/custom_objects.js +1 -1
  124. package/dist/v1/resources/custom_objects.js.map +1 -1
  125. package/dist/v1/resources/index.d.ts +3 -0
  126. package/dist/v1/resources/index.d.ts.map +1 -1
  127. package/dist/v1/resources/index.js +4 -1
  128. package/dist/v1/resources/index.js.map +1 -1
  129. package/dist/v1/resources/invites.d.ts +10 -0
  130. package/dist/v1/resources/invites.d.ts.map +1 -0
  131. package/dist/v1/resources/invites.js +13 -0
  132. package/dist/v1/resources/invites.js.map +1 -0
  133. package/dist/v1/resources/kv.d.ts +27 -0
  134. package/dist/v1/resources/kv.d.ts.map +1 -0
  135. package/dist/v1/resources/kv.js +25 -0
  136. package/dist/v1/resources/kv.js.map +1 -0
  137. package/dist/v1/resources/orgs.js +1 -1
  138. package/dist/v1/resources/orgs.js.map +1 -1
  139. package/dist/v1/resources/team_memberships.d.ts +1 -1
  140. package/dist/v1/resources/team_memberships.d.ts.map +1 -1
  141. package/dist/v1/resources/team_memberships.js +4 -4
  142. package/dist/v1/resources/team_memberships.js.map +1 -1
  143. package/dist/v1/resources/teams.d.ts +108 -27
  144. package/dist/v1/resources/teams.d.ts.map +1 -1
  145. package/dist/v1/resources/teams.js +13 -13
  146. package/dist/v1/resources/teams.js.map +1 -1
  147. package/dist/v1/resources/thread_messages.d.ts +7 -3
  148. package/dist/v1/resources/thread_messages.d.ts.map +1 -1
  149. package/dist/v1/resources/thread_messages.js +4 -4
  150. package/dist/v1/resources/thread_messages.js.map +1 -1
  151. package/dist/v1/resources/threads.d.ts +71 -45
  152. package/dist/v1/resources/threads.d.ts.map +1 -1
  153. package/dist/v1/resources/threads.js +19 -19
  154. package/dist/v1/resources/threads.js.map +1 -1
  155. package/dist/v1/resources/users.d.ts +43 -6
  156. package/dist/v1/resources/users.d.ts.map +1 -1
  157. package/dist/v1/resources/users.js +7 -4
  158. package/dist/v1/resources/users.js.map +1 -1
  159. package/dist/v1.d.ts +6 -0
  160. package/dist/v1.d.ts.map +1 -1
  161. package/dist/v1.js +10 -1
  162. package/dist/v1.js.map +1 -1
  163. package/package.json +6 -2
  164. package/LICENSE +0 -21
  165. package/README.md +0 -165
  166. package/dist/types/api.d.ts +0 -169
  167. package/dist/types/api.d.ts.map +0 -1
  168. package/dist/types/api.js +0 -49
  169. package/dist/types/api.js.map +0 -1
  170. package/dist/types/chat.d.ts +0 -272
  171. package/dist/types/chat.d.ts.map +0 -1
  172. package/dist/types/chat.js +0 -14
  173. package/dist/types/chat.js.map +0 -1
  174. package/dist/types/device.d.ts +0 -26
  175. package/dist/types/device.d.ts.map +0 -1
  176. package/dist/types/device.js +0 -14
  177. package/dist/types/device.js.map +0 -1
  178. package/dist/types/invite.d.ts +0 -17
  179. package/dist/types/invite.d.ts.map +0 -1
  180. package/dist/types/invite.js +0 -11
  181. package/dist/types/invite.js.map +0 -1
  182. package/dist/types/me.d.ts +0 -257
  183. package/dist/types/me.d.ts.map +0 -1
  184. package/dist/types/me.js +0 -42
  185. package/dist/types/me.js.map +0 -1
  186. package/dist/types/members.d.ts +0 -99
  187. package/dist/types/members.d.ts.map +0 -1
  188. package/dist/types/members.js +0 -36
  189. package/dist/types/members.js.map +0 -1
  190. package/dist/types/messages.d.ts +0 -517
  191. package/dist/types/messages.d.ts.map +0 -1
  192. package/dist/types/messages.js +0 -50
  193. package/dist/types/messages.js.map +0 -1
  194. package/dist/types/oauth.d.ts +0 -206
  195. package/dist/types/oauth.d.ts.map +0 -1
  196. package/dist/types/oauth.js +0 -51
  197. package/dist/types/oauth.js.map +0 -1
  198. package/dist/types/orgs.d.ts +0 -193
  199. package/dist/types/orgs.d.ts.map +0 -1
  200. package/dist/types/orgs.js +0 -69
  201. package/dist/types/orgs.js.map +0 -1
  202. package/dist/types/picture.d.ts +0 -20
  203. package/dist/types/picture.d.ts.map +0 -1
  204. package/dist/types/picture.js +0 -14
  205. package/dist/types/picture.js.map +0 -1
  206. package/dist/types/profile.d.ts +0 -17
  207. package/dist/types/profile.d.ts.map +0 -1
  208. package/dist/types/profile.js +0 -11
  209. package/dist/types/profile.js.map +0 -1
  210. package/dist/types/reactions.d.ts +0 -29
  211. package/dist/types/reactions.d.ts.map +0 -1
  212. package/dist/types/reactions.js +0 -15
  213. package/dist/types/reactions.js.map +0 -1
  214. package/dist/types/runs.d.ts +0 -46
  215. package/dist/types/runs.d.ts.map +0 -1
  216. package/dist/types/runs.js +0 -15
  217. package/dist/types/runs.js.map +0 -1
  218. package/dist/types/schedules.d.ts +0 -32
  219. package/dist/types/schedules.d.ts.map +0 -1
  220. package/dist/types/schedules.js +0 -16
  221. package/dist/types/schedules.js.map +0 -1
  222. package/dist/types/system.d.ts +0 -23
  223. package/dist/types/system.d.ts.map +0 -1
  224. package/dist/types/system.js +0 -13
  225. package/dist/types/system.js.map +0 -1
  226. package/dist/v1/resources/ai_chat_completions.d.ts +0 -49
  227. package/dist/v1/resources/ai_chat_completions.d.ts.map +0 -1
  228. package/dist/v1/resources/ai_chat_completions.js +0 -14
  229. package/dist/v1/resources/ai_chat_completions.js.map +0 -1
  230. package/dist/v1/resources/ai_chat_models.d.ts +0 -12
  231. package/dist/v1/resources/ai_chat_models.d.ts.map +0 -1
  232. package/dist/v1/resources/ai_chat_models.js +0 -14
  233. package/dist/v1/resources/ai_chat_models.js.map +0 -1
  234. package/dist/v1/resources/ai_image_edits.d.ts +0 -20
  235. package/dist/v1/resources/ai_image_edits.d.ts.map +0 -1
  236. package/dist/v1/resources/ai_image_edits.js +0 -14
  237. package/dist/v1/resources/ai_image_edits.js.map +0 -1
  238. package/dist/v1/resources/ai_image_generations.d.ts +0 -20
  239. package/dist/v1/resources/ai_image_generations.d.ts.map +0 -1
  240. package/dist/v1/resources/ai_image_generations.js +0 -14
  241. package/dist/v1/resources/ai_image_generations.js.map +0 -1
  242. package/dist/v1/resources/ai_image_models.d.ts +0 -12
  243. package/dist/v1/resources/ai_image_models.d.ts.map +0 -1
  244. package/dist/v1/resources/ai_image_models.js +0 -14
  245. package/dist/v1/resources/ai_image_models.js.map +0 -1
  246. package/dist/v1/resources/api.d.ts +0 -1026
  247. package/dist/v1/resources/api.d.ts.map +0 -1
  248. package/dist/v1/resources/api.js +0 -944
  249. package/dist/v1/resources/api.js.map +0 -1
  250. package/dist/v1/resources/completions.d.ts +0 -49
  251. package/dist/v1/resources/completions.d.ts.map +0 -1
  252. package/dist/v1/resources/completions.js +0 -14
  253. package/dist/v1/resources/completions.js.map +0 -1
  254. package/dist/v1/resources/edits.d.ts +0 -20
  255. package/dist/v1/resources/edits.d.ts.map +0 -1
  256. package/dist/v1/resources/edits.js +0 -14
  257. package/dist/v1/resources/edits.js.map +0 -1
  258. package/dist/v1/resources/generations.d.ts +0 -20
  259. package/dist/v1/resources/generations.d.ts.map +0 -1
  260. package/dist/v1/resources/generations.js +0 -14
  261. package/dist/v1/resources/generations.js.map +0 -1
  262. package/dist/v1/resources/invoke.d.ts +0 -29
  263. package/dist/v1/resources/invoke.d.ts.map +0 -1
  264. package/dist/v1/resources/invoke.js +0 -23
  265. package/dist/v1/resources/invoke.js.map +0 -1
  266. package/dist/v1/resources/models.d.ts +0 -12
  267. package/dist/v1/resources/models.d.ts.map +0 -1
  268. package/dist/v1/resources/models.js +0 -14
  269. package/dist/v1/resources/models.js.map +0 -1
  270. package/dist/v1/resources/oauth.d.ts +0 -25
  271. package/dist/v1/resources/oauth.d.ts.map +0 -1
  272. package/dist/v1/resources/oauth.js +0 -41
  273. package/dist/v1/resources/oauth.js.map +0 -1
@@ -87,8 +87,8 @@ export declare const agentSchema: z.ZodObject<{
87
87
  }, "strip", z.ZodTypeAny, {
88
88
  id: string;
89
89
  email?: string | undefined;
90
- metadata?: Record<string, unknown> | undefined;
91
90
  name?: string | undefined;
91
+ metadata?: Record<string, unknown> | undefined;
92
92
  org?: string | undefined;
93
93
  sandbox?: string | undefined;
94
94
  created_at?: string | undefined;
@@ -119,8 +119,8 @@ export declare const agentSchema: z.ZodObject<{
119
119
  }, {
120
120
  id: string;
121
121
  email?: string | undefined;
122
- metadata?: Record<string, unknown> | undefined;
123
122
  name?: string | undefined;
123
+ metadata?: Record<string, unknown> | undefined;
124
124
  org?: string | undefined;
125
125
  sandbox?: string | undefined;
126
126
  created_at?: string | undefined;
@@ -150,6 +150,138 @@ export declare const agentSchema: z.ZodObject<{
150
150
  phone_number?: string | undefined;
151
151
  }>;
152
152
  export type Agent = z.infer<typeof agentSchema>;
153
+ /** API schema for an agent computer. */
154
+ export declare const agentComputerSchema: z.ZodObject<{
155
+ agent: z.ZodOptional<z.ZodString>;
156
+ app: z.ZodOptional<z.ZodString>;
157
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
158
+ created_at: z.ZodOptional<z.ZodString>;
159
+ error_message: z.ZodOptional<z.ZodString>;
160
+ id: z.ZodString;
161
+ last_active_at: z.ZodOptional<z.ZodString>;
162
+ lookup_key: z.ZodOptional<z.ZodString>;
163
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
164
+ name: z.ZodOptional<z.ZodString>;
165
+ region: z.ZodOptional<z.ZodString>;
166
+ sprite_url: z.ZodOptional<z.ZodString>;
167
+ status: z.ZodOptional<z.ZodString>;
168
+ updated_at: z.ZodOptional<z.ZodString>;
169
+ }, "strip", z.ZodTypeAny, {
170
+ id: string;
171
+ status?: string | undefined;
172
+ name?: string | undefined;
173
+ metadata?: Record<string, unknown> | undefined;
174
+ created_at?: string | undefined;
175
+ updated_at?: string | undefined;
176
+ agent?: string | undefined;
177
+ config?: Record<string, unknown> | undefined;
178
+ lookup_key?: string | undefined;
179
+ app?: string | undefined;
180
+ error_message?: string | undefined;
181
+ last_active_at?: string | undefined;
182
+ region?: string | undefined;
183
+ sprite_url?: string | undefined;
184
+ }, {
185
+ id: string;
186
+ status?: string | undefined;
187
+ name?: string | undefined;
188
+ metadata?: Record<string, unknown> | undefined;
189
+ created_at?: string | undefined;
190
+ updated_at?: string | undefined;
191
+ agent?: string | undefined;
192
+ config?: Record<string, unknown> | undefined;
193
+ lookup_key?: string | undefined;
194
+ app?: string | undefined;
195
+ error_message?: string | undefined;
196
+ last_active_at?: string | undefined;
197
+ region?: string | undefined;
198
+ sprite_url?: string | undefined;
199
+ }>;
200
+ export type AgentComputer = z.infer<typeof agentComputerSchema>;
201
+ /** List response for agent computers. */
202
+ export declare const agentComputerListResponseSchema: z.ZodObject<{
203
+ data: z.ZodArray<z.ZodObject<{
204
+ agent: z.ZodOptional<z.ZodString>;
205
+ app: z.ZodOptional<z.ZodString>;
206
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
207
+ created_at: z.ZodOptional<z.ZodString>;
208
+ error_message: z.ZodOptional<z.ZodString>;
209
+ id: z.ZodString;
210
+ last_active_at: z.ZodOptional<z.ZodString>;
211
+ lookup_key: z.ZodOptional<z.ZodString>;
212
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
213
+ name: z.ZodOptional<z.ZodString>;
214
+ region: z.ZodOptional<z.ZodString>;
215
+ sprite_url: z.ZodOptional<z.ZodString>;
216
+ status: z.ZodOptional<z.ZodString>;
217
+ updated_at: z.ZodOptional<z.ZodString>;
218
+ }, "strip", z.ZodTypeAny, {
219
+ id: string;
220
+ status?: string | undefined;
221
+ name?: string | undefined;
222
+ metadata?: Record<string, unknown> | undefined;
223
+ created_at?: string | undefined;
224
+ updated_at?: string | undefined;
225
+ agent?: string | undefined;
226
+ config?: Record<string, unknown> | undefined;
227
+ lookup_key?: string | undefined;
228
+ app?: string | undefined;
229
+ error_message?: string | undefined;
230
+ last_active_at?: string | undefined;
231
+ region?: string | undefined;
232
+ sprite_url?: string | undefined;
233
+ }, {
234
+ id: string;
235
+ status?: string | undefined;
236
+ name?: string | undefined;
237
+ metadata?: Record<string, unknown> | undefined;
238
+ created_at?: string | undefined;
239
+ updated_at?: string | undefined;
240
+ agent?: string | undefined;
241
+ config?: Record<string, unknown> | undefined;
242
+ lookup_key?: string | undefined;
243
+ app?: string | undefined;
244
+ error_message?: string | undefined;
245
+ last_active_at?: string | undefined;
246
+ region?: string | undefined;
247
+ sprite_url?: string | undefined;
248
+ }>, "many">;
249
+ }, "strip", z.ZodTypeAny, {
250
+ data: {
251
+ id: string;
252
+ status?: string | undefined;
253
+ name?: string | undefined;
254
+ metadata?: Record<string, unknown> | undefined;
255
+ created_at?: string | undefined;
256
+ updated_at?: string | undefined;
257
+ agent?: string | undefined;
258
+ config?: Record<string, unknown> | undefined;
259
+ lookup_key?: string | undefined;
260
+ app?: string | undefined;
261
+ error_message?: string | undefined;
262
+ last_active_at?: string | undefined;
263
+ region?: string | undefined;
264
+ sprite_url?: string | undefined;
265
+ }[];
266
+ }, {
267
+ data: {
268
+ id: string;
269
+ status?: string | undefined;
270
+ name?: string | undefined;
271
+ metadata?: Record<string, unknown> | undefined;
272
+ created_at?: string | undefined;
273
+ updated_at?: string | undefined;
274
+ agent?: string | undefined;
275
+ config?: Record<string, unknown> | undefined;
276
+ lookup_key?: string | undefined;
277
+ app?: string | undefined;
278
+ error_message?: string | undefined;
279
+ last_active_at?: string | undefined;
280
+ region?: string | undefined;
281
+ sprite_url?: string | undefined;
282
+ }[];
283
+ }>;
284
+ export type AgentComputerListResponse = z.infer<typeof agentComputerListResponseSchema>;
153
285
  /** API schema for an agent export response.
154
286
 
155
287
  Contains the reconstructed AgentTemplate and all dependent config files
@@ -189,7 +321,9 @@ export declare const agentExportSchema: z.ZodObject<{
189
321
  lookup_key: z.ZodOptional<z.ZodString>;
190
322
  mime_type: z.ZodOptional<z.ZodString>;
191
323
  org: z.ZodOptional<z.ZodString>;
324
+ parent: z.ZodOptional<z.ZodString>;
192
325
  raw_content: z.ZodOptional<z.ZodString>;
326
+ relative_path: z.ZodOptional<z.ZodString>;
193
327
  sandbox: z.ZodOptional<z.ZodString>;
194
328
  team: z.ZodOptional<z.ZodString>;
195
329
  updated_at: z.ZodOptional<z.ZodString>;
@@ -205,8 +339,6 @@ export declare const agentExportSchema: z.ZodObject<{
205
339
  user?: string | undefined;
206
340
  updated_at?: string | undefined;
207
341
  team?: string | undefined;
208
- lookup_key?: string | undefined;
209
- raw_content?: string | undefined;
210
342
  current_version?: {
211
343
  id: string;
212
344
  version_number: number;
@@ -217,6 +349,10 @@ export declare const agentExportSchema: z.ZodObject<{
217
349
  change_description?: string | undefined;
218
350
  } | undefined;
219
351
  is_archived?: boolean | undefined;
352
+ lookup_key?: string | undefined;
353
+ parent?: string | undefined;
354
+ raw_content?: string | undefined;
355
+ relative_path?: string | undefined;
220
356
  virtual_path?: string | undefined;
221
357
  }, {
222
358
  id: string;
@@ -228,8 +364,6 @@ export declare const agentExportSchema: z.ZodObject<{
228
364
  user?: string | undefined;
229
365
  updated_at?: string | undefined;
230
366
  team?: string | undefined;
231
- lookup_key?: string | undefined;
232
- raw_content?: string | undefined;
233
367
  current_version?: {
234
368
  id: string;
235
369
  version_number: number;
@@ -240,6 +374,10 @@ export declare const agentExportSchema: z.ZodObject<{
240
374
  change_description?: string | undefined;
241
375
  } | undefined;
242
376
  is_archived?: boolean | undefined;
377
+ lookup_key?: string | undefined;
378
+ parent?: string | undefined;
379
+ raw_content?: string | undefined;
380
+ relative_path?: string | undefined;
243
381
  virtual_path?: string | undefined;
244
382
  }>, "many">;
245
383
  template: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -254,8 +392,6 @@ export declare const agentExportSchema: z.ZodObject<{
254
392
  user?: string | undefined;
255
393
  updated_at?: string | undefined;
256
394
  team?: string | undefined;
257
- lookup_key?: string | undefined;
258
- raw_content?: string | undefined;
259
395
  current_version?: {
260
396
  id: string;
261
397
  version_number: number;
@@ -266,6 +402,10 @@ export declare const agentExportSchema: z.ZodObject<{
266
402
  change_description?: string | undefined;
267
403
  } | undefined;
268
404
  is_archived?: boolean | undefined;
405
+ lookup_key?: string | undefined;
406
+ parent?: string | undefined;
407
+ raw_content?: string | undefined;
408
+ relative_path?: string | undefined;
269
409
  virtual_path?: string | undefined;
270
410
  }[];
271
411
  template: Record<string, unknown>;
@@ -280,8 +420,6 @@ export declare const agentExportSchema: z.ZodObject<{
280
420
  user?: string | undefined;
281
421
  updated_at?: string | undefined;
282
422
  team?: string | undefined;
283
- lookup_key?: string | undefined;
284
- raw_content?: string | undefined;
285
423
  current_version?: {
286
424
  id: string;
287
425
  version_number: number;
@@ -292,507 +430,17 @@ export declare const agentExportSchema: z.ZodObject<{
292
430
  change_description?: string | undefined;
293
431
  } | undefined;
294
432
  is_archived?: boolean | undefined;
433
+ lookup_key?: string | undefined;
434
+ parent?: string | undefined;
435
+ raw_content?: string | undefined;
436
+ relative_path?: string | undefined;
295
437
  virtual_path?: string | undefined;
296
438
  }[];
297
439
  template: Record<string, unknown>;
298
440
  }>;
299
441
  export type AgentExport = z.infer<typeof agentExportSchema>;
300
- /** API schema for an agent session. */
301
- export declare const agentSessionSchema: z.ZodObject<{
302
- agent: z.ZodOptional<z.ZodString>;
303
- completed_at: z.ZodOptional<z.ZodString>;
304
- created_at: z.ZodOptional<z.ZodString>;
305
- error: z.ZodOptional<z.ZodString>;
306
- id: z.ZodString;
307
- inbox: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
308
- instructions: z.ZodOptional<z.ZodString>;
309
- is_system_session: z.ZodOptional<z.ZodBoolean>;
310
- max_runs_per_turn: z.ZodOptional<z.ZodNumber>;
311
- max_tokens: z.ZodOptional<z.ZodNumber>;
312
- max_turns: z.ZodOptional<z.ZodNumber>;
313
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
314
- name: z.ZodOptional<z.ZodString>;
315
- result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
316
- started_at: z.ZodOptional<z.ZodString>;
317
- status: z.ZodOptional<z.ZodString>;
318
- trajectory: z.ZodOptional<z.ZodString>;
319
- }, "strip", z.ZodTypeAny, {
320
- id: string;
321
- error?: string | undefined;
322
- status?: string | undefined;
323
- metadata?: Record<string, unknown> | undefined;
324
- name?: string | undefined;
325
- created_at?: string | undefined;
326
- agent?: string | undefined;
327
- completed_at?: string | undefined;
328
- started_at?: string | undefined;
329
- trajectory?: string | undefined;
330
- inbox?: Record<string, unknown>[] | undefined;
331
- instructions?: string | undefined;
332
- is_system_session?: boolean | undefined;
333
- max_runs_per_turn?: number | undefined;
334
- max_tokens?: number | undefined;
335
- max_turns?: number | undefined;
336
- result?: Record<string, unknown> | undefined;
337
- }, {
338
- id: string;
339
- error?: string | undefined;
340
- status?: string | undefined;
341
- metadata?: Record<string, unknown> | undefined;
342
- name?: string | undefined;
343
- created_at?: string | undefined;
344
- agent?: string | undefined;
345
- completed_at?: string | undefined;
346
- started_at?: string | undefined;
347
- trajectory?: string | undefined;
348
- inbox?: Record<string, unknown>[] | undefined;
349
- instructions?: string | undefined;
350
- is_system_session?: boolean | undefined;
351
- max_runs_per_turn?: number | undefined;
352
- max_tokens?: number | undefined;
353
- max_turns?: number | undefined;
354
- result?: Record<string, unknown> | undefined;
355
- }>;
356
- export type AgentSession = z.infer<typeof agentSessionSchema>;
357
- /** List response for agent sessions. */
358
- export declare const agentSessionListResponseSchema: z.ZodObject<{
359
- data: z.ZodArray<z.ZodObject<{
360
- agent: z.ZodOptional<z.ZodString>;
361
- completed_at: z.ZodOptional<z.ZodString>;
362
- created_at: z.ZodOptional<z.ZodString>;
363
- error: z.ZodOptional<z.ZodString>;
364
- id: z.ZodString;
365
- inbox: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
366
- instructions: z.ZodOptional<z.ZodString>;
367
- is_system_session: z.ZodOptional<z.ZodBoolean>;
368
- max_runs_per_turn: z.ZodOptional<z.ZodNumber>;
369
- max_tokens: z.ZodOptional<z.ZodNumber>;
370
- max_turns: z.ZodOptional<z.ZodNumber>;
371
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
372
- name: z.ZodOptional<z.ZodString>;
373
- result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
374
- started_at: z.ZodOptional<z.ZodString>;
375
- status: z.ZodOptional<z.ZodString>;
376
- trajectory: z.ZodOptional<z.ZodString>;
377
- }, "strip", z.ZodTypeAny, {
378
- id: string;
379
- error?: string | undefined;
380
- status?: string | undefined;
381
- metadata?: Record<string, unknown> | undefined;
382
- name?: string | undefined;
383
- created_at?: string | undefined;
384
- agent?: string | undefined;
385
- completed_at?: string | undefined;
386
- started_at?: string | undefined;
387
- trajectory?: string | undefined;
388
- inbox?: Record<string, unknown>[] | undefined;
389
- instructions?: string | undefined;
390
- is_system_session?: boolean | undefined;
391
- max_runs_per_turn?: number | undefined;
392
- max_tokens?: number | undefined;
393
- max_turns?: number | undefined;
394
- result?: Record<string, unknown> | undefined;
395
- }, {
396
- id: string;
397
- error?: string | undefined;
398
- status?: string | undefined;
399
- metadata?: Record<string, unknown> | undefined;
400
- name?: string | undefined;
401
- created_at?: string | undefined;
402
- agent?: string | undefined;
403
- completed_at?: string | undefined;
404
- started_at?: string | undefined;
405
- trajectory?: string | undefined;
406
- inbox?: Record<string, unknown>[] | undefined;
407
- instructions?: string | undefined;
408
- is_system_session?: boolean | undefined;
409
- max_runs_per_turn?: number | undefined;
410
- max_tokens?: number | undefined;
411
- max_turns?: number | undefined;
412
- result?: Record<string, unknown> | undefined;
413
- }>, "many">;
414
- }, "strip", z.ZodTypeAny, {
415
- data: {
416
- id: string;
417
- error?: string | undefined;
418
- status?: string | undefined;
419
- metadata?: Record<string, unknown> | undefined;
420
- name?: string | undefined;
421
- created_at?: string | undefined;
422
- agent?: string | undefined;
423
- completed_at?: string | undefined;
424
- started_at?: string | undefined;
425
- trajectory?: string | undefined;
426
- inbox?: Record<string, unknown>[] | undefined;
427
- instructions?: string | undefined;
428
- is_system_session?: boolean | undefined;
429
- max_runs_per_turn?: number | undefined;
430
- max_tokens?: number | undefined;
431
- max_turns?: number | undefined;
432
- result?: Record<string, unknown> | undefined;
433
- }[];
434
- }, {
435
- data: {
436
- id: string;
437
- error?: string | undefined;
438
- status?: string | undefined;
439
- metadata?: Record<string, unknown> | undefined;
440
- name?: string | undefined;
441
- created_at?: string | undefined;
442
- agent?: string | undefined;
443
- completed_at?: string | undefined;
444
- started_at?: string | undefined;
445
- trajectory?: string | undefined;
446
- inbox?: Record<string, unknown>[] | undefined;
447
- instructions?: string | undefined;
448
- is_system_session?: boolean | undefined;
449
- max_runs_per_turn?: number | undefined;
450
- max_tokens?: number | undefined;
451
- max_turns?: number | undefined;
452
- result?: Record<string, unknown> | undefined;
453
- }[];
454
- }>;
455
- export type AgentSessionListResponse = z.infer<typeof agentSessionListResponseSchema>;
456
- /** API schema for the result of running an agent tool via impersonation. */
457
- export declare const agentImpersonationToolRunResultSchema: z.ZodObject<{
458
- duration_ms: z.ZodNumber;
459
- result: z.ZodRecord<z.ZodString, z.ZodUnknown>;
460
- }, "strip", z.ZodTypeAny, {
461
- duration_ms: number;
462
- result: Record<string, unknown>;
463
- }, {
464
- duration_ms: number;
465
- result: Record<string, unknown>;
466
- }>;
467
- export type AgentImpersonationToolRunResult = z.infer<typeof agentImpersonationToolRunResultSchema>;
468
- /** API schema for an agent tool. */
469
- export declare const agentToolSchema: z.ZodObject<{
470
- agent: z.ZodOptional<z.ZodString>;
471
- app: z.ZodOptional<z.ZodString>;
472
- builtin_tool_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
473
- builtin_tool_key: z.ZodOptional<z.ZodString>;
474
- config: z.ZodOptional<z.ZodString>;
475
- created_at: z.ZodOptional<z.ZodString>;
476
- description: z.ZodOptional<z.ZodString>;
477
- handler_type: z.ZodOptional<z.ZodString>;
478
- id: z.ZodString;
479
- instruction: z.ZodOptional<z.ZodString>;
480
- kind: z.ZodOptional<z.ZodString>;
481
- lookup_key: z.ZodOptional<z.ZodString>;
482
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
483
- name: z.ZodOptional<z.ZodString>;
484
- parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
485
- parameters_config: z.ZodOptional<z.ZodString>;
486
- status: z.ZodOptional<z.ZodString>;
487
- updated_at: z.ZodOptional<z.ZodString>;
488
- }, "strip", z.ZodTypeAny, {
489
- id: string;
490
- status?: string | undefined;
491
- metadata?: Record<string, unknown> | undefined;
492
- name?: string | undefined;
493
- created_at?: string | undefined;
494
- updated_at?: string | undefined;
495
- description?: string | undefined;
496
- agent?: string | undefined;
497
- lookup_key?: string | undefined;
498
- kind?: string | undefined;
499
- config?: string | undefined;
500
- app?: string | undefined;
501
- instruction?: string | undefined;
502
- parameters?: Record<string, unknown> | undefined;
503
- builtin_tool_config?: Record<string, unknown> | undefined;
504
- builtin_tool_key?: string | undefined;
505
- handler_type?: string | undefined;
506
- parameters_config?: string | undefined;
507
- }, {
508
- id: string;
509
- status?: string | undefined;
510
- metadata?: Record<string, unknown> | undefined;
511
- name?: string | undefined;
512
- created_at?: string | undefined;
513
- updated_at?: string | undefined;
514
- description?: string | undefined;
515
- agent?: string | undefined;
516
- lookup_key?: string | undefined;
517
- kind?: string | undefined;
518
- config?: string | undefined;
519
- app?: string | undefined;
520
- instruction?: string | undefined;
521
- parameters?: Record<string, unknown> | undefined;
522
- builtin_tool_config?: Record<string, unknown> | undefined;
523
- builtin_tool_key?: string | undefined;
524
- handler_type?: string | undefined;
525
- parameters_config?: string | undefined;
526
- }>;
527
- export type AgentTool = z.infer<typeof agentToolSchema>;
528
- /** API schema for an agent skill. */
529
- export declare const agentSkillSchema: z.ZodObject<{
530
- agent: z.ZodOptional<z.ZodString>;
531
- app: z.ZodOptional<z.ZodString>;
532
- config: z.ZodOptional<z.ZodString>;
533
- created_at: z.ZodOptional<z.ZodString>;
534
- id: z.ZodString;
535
- instruction: z.ZodOptional<z.ZodString>;
536
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
537
- status: z.ZodOptional<z.ZodString>;
538
- updated_at: z.ZodOptional<z.ZodString>;
539
- }, "strip", z.ZodTypeAny, {
540
- id: string;
541
- status?: string | undefined;
542
- metadata?: Record<string, unknown> | undefined;
543
- created_at?: string | undefined;
544
- updated_at?: string | undefined;
545
- agent?: string | undefined;
546
- config?: string | undefined;
547
- app?: string | undefined;
548
- instruction?: string | undefined;
549
- }, {
550
- id: string;
551
- status?: string | undefined;
552
- metadata?: Record<string, unknown> | undefined;
553
- created_at?: string | undefined;
554
- updated_at?: string | undefined;
555
- agent?: string | undefined;
556
- config?: string | undefined;
557
- app?: string | undefined;
558
- instruction?: string | undefined;
559
- }>;
560
- export type AgentSkill = z.infer<typeof agentSkillSchema>;
561
- /** API schema for an agent computer. */
562
- export declare const agentComputerSchema: z.ZodObject<{
563
- agent: z.ZodOptional<z.ZodString>;
564
- app: z.ZodOptional<z.ZodString>;
565
- config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
566
- created_at: z.ZodOptional<z.ZodString>;
567
- error_message: z.ZodOptional<z.ZodString>;
568
- id: z.ZodString;
569
- last_active_at: z.ZodOptional<z.ZodString>;
570
- lookup_key: z.ZodOptional<z.ZodString>;
571
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
572
- name: z.ZodOptional<z.ZodString>;
573
- region: z.ZodOptional<z.ZodString>;
574
- sprite_url: z.ZodOptional<z.ZodString>;
575
- status: z.ZodOptional<z.ZodString>;
576
- updated_at: z.ZodOptional<z.ZodString>;
577
- }, "strip", z.ZodTypeAny, {
578
- id: string;
579
- status?: string | undefined;
580
- metadata?: Record<string, unknown> | undefined;
581
- name?: string | undefined;
582
- created_at?: string | undefined;
583
- updated_at?: string | undefined;
584
- agent?: string | undefined;
585
- error_message?: string | undefined;
586
- lookup_key?: string | undefined;
587
- config?: Record<string, unknown> | undefined;
588
- app?: string | undefined;
589
- last_active_at?: string | undefined;
590
- region?: string | undefined;
591
- sprite_url?: string | undefined;
592
- }, {
593
- id: string;
594
- status?: string | undefined;
595
- metadata?: Record<string, unknown> | undefined;
596
- name?: string | undefined;
597
- created_at?: string | undefined;
598
- updated_at?: string | undefined;
599
- agent?: string | undefined;
600
- error_message?: string | undefined;
601
- lookup_key?: string | undefined;
602
- config?: Record<string, unknown> | undefined;
603
- app?: string | undefined;
604
- last_active_at?: string | undefined;
605
- region?: string | undefined;
606
- sprite_url?: string | undefined;
607
- }>;
608
- export type AgentComputer = z.infer<typeof agentComputerSchema>;
609
- /** API schema for an agent conversation history session. */
610
- export declare const agentConversationHistorySchema: z.ZodObject<{
611
- created_at: z.ZodOptional<z.ZodString>;
612
- last_interaction_at: z.ZodOptional<z.ZodString>;
613
- name: z.ZodOptional<z.ZodString>;
614
- org: z.ZodOptional<z.ZodString>;
615
- sandbox: z.ZodOptional<z.ZodString>;
616
- session: z.ZodOptional<z.ZodString>;
617
- }, "strip", z.ZodTypeAny, {
618
- name?: string | undefined;
619
- org?: string | undefined;
620
- sandbox?: string | undefined;
621
- created_at?: string | undefined;
622
- last_interaction_at?: string | undefined;
623
- session?: string | undefined;
624
- }, {
625
- name?: string | undefined;
626
- org?: string | undefined;
627
- sandbox?: string | undefined;
628
- created_at?: string | undefined;
629
- last_interaction_at?: string | undefined;
630
- session?: string | undefined;
631
- }>;
632
- export type AgentConversationHistory = z.infer<typeof agentConversationHistorySchema>;
633
- /** List response for agent computers. */
634
- export declare const agentComputerListResponseSchema: z.ZodObject<{
635
- data: z.ZodArray<z.ZodObject<{
636
- agent: z.ZodOptional<z.ZodString>;
637
- app: z.ZodOptional<z.ZodString>;
638
- config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
639
- created_at: z.ZodOptional<z.ZodString>;
640
- error_message: z.ZodOptional<z.ZodString>;
641
- id: z.ZodString;
642
- last_active_at: z.ZodOptional<z.ZodString>;
643
- lookup_key: z.ZodOptional<z.ZodString>;
644
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
645
- name: z.ZodOptional<z.ZodString>;
646
- region: z.ZodOptional<z.ZodString>;
647
- sprite_url: z.ZodOptional<z.ZodString>;
648
- status: z.ZodOptional<z.ZodString>;
649
- updated_at: z.ZodOptional<z.ZodString>;
650
- }, "strip", z.ZodTypeAny, {
651
- id: string;
652
- status?: string | undefined;
653
- metadata?: Record<string, unknown> | undefined;
654
- name?: string | undefined;
655
- created_at?: string | undefined;
656
- updated_at?: string | undefined;
657
- agent?: string | undefined;
658
- error_message?: string | undefined;
659
- lookup_key?: string | undefined;
660
- config?: Record<string, unknown> | undefined;
661
- app?: string | undefined;
662
- last_active_at?: string | undefined;
663
- region?: string | undefined;
664
- sprite_url?: string | undefined;
665
- }, {
666
- id: string;
667
- status?: string | undefined;
668
- metadata?: Record<string, unknown> | undefined;
669
- name?: string | undefined;
670
- created_at?: string | undefined;
671
- updated_at?: string | undefined;
672
- agent?: string | undefined;
673
- error_message?: string | undefined;
674
- lookup_key?: string | undefined;
675
- config?: Record<string, unknown> | undefined;
676
- app?: string | undefined;
677
- last_active_at?: string | undefined;
678
- region?: string | undefined;
679
- sprite_url?: string | undefined;
680
- }>, "many">;
681
- }, "strip", z.ZodTypeAny, {
682
- data: {
683
- id: string;
684
- status?: string | undefined;
685
- metadata?: Record<string, unknown> | undefined;
686
- name?: string | undefined;
687
- created_at?: string | undefined;
688
- updated_at?: string | undefined;
689
- agent?: string | undefined;
690
- error_message?: string | undefined;
691
- lookup_key?: string | undefined;
692
- config?: Record<string, unknown> | undefined;
693
- app?: string | undefined;
694
- last_active_at?: string | undefined;
695
- region?: string | undefined;
696
- sprite_url?: string | undefined;
697
- }[];
698
- }, {
699
- data: {
700
- id: string;
701
- status?: string | undefined;
702
- metadata?: Record<string, unknown> | undefined;
703
- name?: string | undefined;
704
- created_at?: string | undefined;
705
- updated_at?: string | undefined;
706
- agent?: string | undefined;
707
- error_message?: string | undefined;
708
- lookup_key?: string | undefined;
709
- config?: Record<string, unknown> | undefined;
710
- app?: string | undefined;
711
- last_active_at?: string | undefined;
712
- region?: string | undefined;
713
- sprite_url?: string | undefined;
714
- }[];
715
- }>;
716
- export type AgentComputerListResponse = z.infer<typeof agentComputerListResponseSchema>;
717
- /** API schema for an agent impersonation skill file entry. */
718
- export declare const agentImpersonationSkillFileSchema: z.ZodObject<{
719
- content_type: z.ZodOptional<z.ZodString>;
720
- download_url: z.ZodString;
721
- path: z.ZodString;
722
- }, "strip", z.ZodTypeAny, {
723
- path: string;
724
- download_url: string;
725
- content_type?: string | undefined;
726
- }, {
727
- path: string;
728
- download_url: string;
729
- content_type?: string | undefined;
730
- }>;
731
- export type AgentImpersonationSkillFile = z.infer<typeof agentImpersonationSkillFileSchema>;
732
- /** API schema for an agent impersonation skill manifest. */
733
- export declare const agentImpersonationSkillManifestSchema: z.ZodObject<{
734
- description: z.ZodOptional<z.ZodString>;
735
- entrypoint: z.ZodString;
736
- files: z.ZodArray<z.ZodObject<{
737
- content_type: z.ZodOptional<z.ZodString>;
738
- download_url: z.ZodString;
739
- path: z.ZodString;
740
- }, "strip", z.ZodTypeAny, {
741
- path: string;
742
- download_url: string;
743
- content_type?: string | undefined;
744
- }, {
745
- path: string;
746
- download_url: string;
747
- content_type?: string | undefined;
748
- }>, "many">;
749
- id: z.ZodString;
750
- name: z.ZodString;
751
- slug: z.ZodString;
752
- }, "strip", z.ZodTypeAny, {
753
- id: string;
754
- name: string;
755
- slug: string;
756
- files: {
757
- path: string;
758
- download_url: string;
759
- content_type?: string | undefined;
760
- }[];
761
- entrypoint: string;
762
- description?: string | undefined;
763
- }, {
764
- id: string;
765
- name: string;
766
- slug: string;
767
- files: {
768
- path: string;
769
- download_url: string;
770
- content_type?: string | undefined;
771
- }[];
772
- entrypoint: string;
773
- description?: string | undefined;
774
- }>;
775
- export type AgentImpersonationSkillManifest = z.infer<typeof agentImpersonationSkillManifestSchema>;
776
- /** API schema for an agent impersonation skill summary. */
777
- export declare const agentImpersonationSkillSummarySchema: z.ZodObject<{
778
- description: z.ZodOptional<z.ZodString>;
779
- id: z.ZodString;
780
- name: z.ZodString;
781
- slug: z.ZodString;
782
- }, "strip", z.ZodTypeAny, {
783
- id: string;
784
- name: string;
785
- slug: string;
786
- description?: string | undefined;
787
- }, {
788
- id: string;
789
- name: string;
790
- slug: string;
791
- description?: string | undefined;
792
- }>;
793
- export type AgentImpersonationSkillSummary = z.infer<typeof agentImpersonationSkillSummarySchema>;
794
- /** Paginated list response for agents. */
795
- export declare const agentListResponseSchema: z.ZodObject<{
442
+ /** Paginated list response for agents. */
443
+ export declare const agentListResponseSchema: z.ZodObject<{
796
444
  data: z.ZodArray<z.ZodObject<{
797
445
  acl: z.ZodOptional<z.ZodObject<{
798
446
  add: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -880,8 +528,40 @@ export declare const agentListResponseSchema: z.ZodObject<{
880
528
  }, "strip", z.ZodTypeAny, {
881
529
  id: string;
882
530
  email?: string | undefined;
531
+ name?: string | undefined;
883
532
  metadata?: Record<string, unknown> | undefined;
533
+ org?: string | undefined;
534
+ sandbox?: string | undefined;
535
+ created_at?: string | undefined;
536
+ user?: string | undefined;
537
+ updated_at?: string | undefined;
538
+ team?: string | undefined;
539
+ lookup_key?: string | undefined;
540
+ acl?: {
541
+ add?: {
542
+ actions: string[];
543
+ principal_type: string;
544
+ principal?: string | undefined;
545
+ }[] | undefined;
546
+ grants?: {
547
+ actions: string[];
548
+ principal_type: string;
549
+ principal?: string | undefined;
550
+ }[] | undefined;
551
+ remove?: {
552
+ principal_type: string;
553
+ principal?: string | undefined;
554
+ }[] | undefined;
555
+ } | undefined;
556
+ app?: string | undefined;
557
+ default_model?: string | undefined;
558
+ identity?: string | undefined;
559
+ phone_number?: string | undefined;
560
+ }, {
561
+ id: string;
562
+ email?: string | undefined;
884
563
  name?: string | undefined;
564
+ metadata?: Record<string, unknown> | undefined;
885
565
  org?: string | undefined;
886
566
  sandbox?: string | undefined;
887
567
  created_at?: string | undefined;
@@ -909,11 +589,19 @@ export declare const agentListResponseSchema: z.ZodObject<{
909
589
  default_model?: string | undefined;
910
590
  identity?: string | undefined;
911
591
  phone_number?: string | undefined;
912
- }, {
592
+ }>, "many">;
593
+ has_next: z.ZodOptional<z.ZodBoolean>;
594
+ has_prev: z.ZodOptional<z.ZodBoolean>;
595
+ page: z.ZodOptional<z.ZodNumber>;
596
+ page_size: z.ZodOptional<z.ZodNumber>;
597
+ total_entries: z.ZodOptional<z.ZodNumber>;
598
+ total_pages: z.ZodOptional<z.ZodNumber>;
599
+ }, "strip", z.ZodTypeAny, {
600
+ data: {
913
601
  id: string;
914
602
  email?: string | undefined;
915
- metadata?: Record<string, unknown> | undefined;
916
603
  name?: string | undefined;
604
+ metadata?: Record<string, unknown> | undefined;
917
605
  org?: string | undefined;
918
606
  sandbox?: string | undefined;
919
607
  created_at?: string | undefined;
@@ -941,19 +629,19 @@ export declare const agentListResponseSchema: z.ZodObject<{
941
629
  default_model?: string | undefined;
942
630
  identity?: string | undefined;
943
631
  phone_number?: string | undefined;
944
- }>, "many">;
945
- has_next: z.ZodOptional<z.ZodBoolean>;
946
- has_prev: z.ZodOptional<z.ZodBoolean>;
947
- page: z.ZodOptional<z.ZodNumber>;
948
- page_size: z.ZodOptional<z.ZodNumber>;
949
- total_entries: z.ZodOptional<z.ZodNumber>;
950
- total_pages: z.ZodOptional<z.ZodNumber>;
951
- }, "strip", z.ZodTypeAny, {
632
+ }[];
633
+ has_next?: boolean | undefined;
634
+ has_prev?: boolean | undefined;
635
+ page?: number | undefined;
636
+ page_size?: number | undefined;
637
+ total_entries?: number | undefined;
638
+ total_pages?: number | undefined;
639
+ }, {
952
640
  data: {
953
641
  id: string;
954
642
  email?: string | undefined;
955
- metadata?: Record<string, unknown> | undefined;
956
643
  name?: string | undefined;
644
+ metadata?: Record<string, unknown> | undefined;
957
645
  org?: string | undefined;
958
646
  sandbox?: string | undefined;
959
647
  created_at?: string | undefined;
@@ -976,32 +664,286 @@ export declare const agentListResponseSchema: z.ZodObject<{
976
664
  principal_type: string;
977
665
  principal?: string | undefined;
978
666
  }[] | undefined;
979
- } | undefined;
980
- app?: string | undefined;
981
- default_model?: string | undefined;
982
- identity?: string | undefined;
983
- phone_number?: string | undefined;
984
- }[];
985
- has_next?: boolean | undefined;
986
- has_prev?: boolean | undefined;
987
- page?: number | undefined;
988
- page_size?: number | undefined;
989
- total_entries?: number | undefined;
990
- total_pages?: number | undefined;
991
- }, {
992
- data: {
993
- id: string;
994
- email?: string | undefined;
995
- metadata?: Record<string, unknown> | undefined;
996
- name?: string | undefined;
997
- org?: string | undefined;
998
- sandbox?: string | undefined;
999
- created_at?: string | undefined;
1000
- user?: string | undefined;
1001
- updated_at?: string | undefined;
1002
- team?: string | undefined;
1003
- lookup_key?: string | undefined;
1004
- acl?: {
667
+ } | undefined;
668
+ app?: string | undefined;
669
+ default_model?: string | undefined;
670
+ identity?: string | undefined;
671
+ phone_number?: string | undefined;
672
+ }[];
673
+ has_next?: boolean | undefined;
674
+ has_prev?: boolean | undefined;
675
+ page?: number | undefined;
676
+ page_size?: number | undefined;
677
+ total_entries?: number | undefined;
678
+ total_pages?: number | undefined;
679
+ }>;
680
+ export type AgentListResponse = z.infer<typeof agentListResponseSchema>;
681
+ /** API schema for an agent routine. */
682
+ export declare const agentRoutineSchema: z.ZodObject<{
683
+ acl: z.ZodOptional<z.ZodObject<{
684
+ add: z.ZodOptional<z.ZodArray<z.ZodObject<{
685
+ actions: z.ZodArray<z.ZodString, "many">;
686
+ principal: z.ZodOptional<z.ZodString>;
687
+ principal_type: z.ZodString;
688
+ }, "strip", z.ZodTypeAny, {
689
+ actions: string[];
690
+ principal_type: string;
691
+ principal?: string | undefined;
692
+ }, {
693
+ actions: string[];
694
+ principal_type: string;
695
+ principal?: string | undefined;
696
+ }>, "many">>;
697
+ grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
698
+ actions: z.ZodArray<z.ZodString, "many">;
699
+ principal: z.ZodOptional<z.ZodString>;
700
+ principal_type: z.ZodString;
701
+ }, "strip", z.ZodTypeAny, {
702
+ actions: string[];
703
+ principal_type: string;
704
+ principal?: string | undefined;
705
+ }, {
706
+ actions: string[];
707
+ principal_type: string;
708
+ principal?: string | undefined;
709
+ }>, "many">>;
710
+ remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
711
+ principal: z.ZodOptional<z.ZodString>;
712
+ principal_type: z.ZodString;
713
+ }, "strip", z.ZodTypeAny, {
714
+ principal_type: string;
715
+ principal?: string | undefined;
716
+ }, {
717
+ principal_type: string;
718
+ principal?: string | undefined;
719
+ }>, "many">>;
720
+ }, "strip", z.ZodTypeAny, {
721
+ add?: {
722
+ actions: string[];
723
+ principal_type: string;
724
+ principal?: string | undefined;
725
+ }[] | undefined;
726
+ grants?: {
727
+ actions: string[];
728
+ principal_type: string;
729
+ principal?: string | undefined;
730
+ }[] | undefined;
731
+ remove?: {
732
+ principal_type: string;
733
+ principal?: string | undefined;
734
+ }[] | undefined;
735
+ }, {
736
+ add?: {
737
+ actions: string[];
738
+ principal_type: string;
739
+ principal?: string | undefined;
740
+ }[] | undefined;
741
+ grants?: {
742
+ actions: string[];
743
+ principal_type: string;
744
+ principal?: string | undefined;
745
+ }[] | undefined;
746
+ remove?: {
747
+ principal_type: string;
748
+ principal?: string | undefined;
749
+ }[] | undefined;
750
+ }>>;
751
+ agent: z.ZodOptional<z.ZodString>;
752
+ app: z.ZodOptional<z.ZodString>;
753
+ config: z.ZodOptional<z.ZodString>;
754
+ created_at: z.ZodOptional<z.ZodString>;
755
+ description: z.ZodOptional<z.ZodString>;
756
+ event_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
757
+ event_type: z.ZodOptional<z.ZodString>;
758
+ handler_type: z.ZodOptional<z.ZodString>;
759
+ id: z.ZodString;
760
+ lookup_key: z.ZodOptional<z.ZodString>;
761
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
762
+ name: z.ZodOptional<z.ZodString>;
763
+ preset_config: z.ZodOptional<z.ZodObject<{
764
+ instructions: z.ZodOptional<z.ZodString>;
765
+ llm: z.ZodOptional<z.ZodObject<{
766
+ model: z.ZodOptional<z.ZodString>;
767
+ }, "strip", z.ZodTypeAny, {
768
+ model?: string | undefined;
769
+ }, {
770
+ model?: string | undefined;
771
+ }>>;
772
+ session_mode: z.ZodOptional<z.ZodString>;
773
+ session_scope: z.ZodOptional<z.ZodString>;
774
+ structured_message_template_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
775
+ }, "strip", z.ZodTypeAny, {
776
+ instructions?: string | undefined;
777
+ llm?: {
778
+ model?: string | undefined;
779
+ } | undefined;
780
+ session_mode?: string | undefined;
781
+ session_scope?: string | undefined;
782
+ structured_message_template_ids?: string[] | undefined;
783
+ }, {
784
+ instructions?: string | undefined;
785
+ llm?: {
786
+ model?: string | undefined;
787
+ } | undefined;
788
+ session_mode?: string | undefined;
789
+ session_scope?: string | undefined;
790
+ structured_message_template_ids?: string[] | undefined;
791
+ }>>;
792
+ preset_name: z.ZodOptional<z.ZodString>;
793
+ schedule: z.ZodOptional<z.ZodString>;
794
+ script: z.ZodOptional<z.ZodString>;
795
+ status: z.ZodOptional<z.ZodString>;
796
+ steps: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
797
+ trigger_context: z.ZodOptional<z.ZodString>;
798
+ updated_at: z.ZodOptional<z.ZodString>;
799
+ }, "strip", z.ZodTypeAny, {
800
+ id: string;
801
+ status?: string | undefined;
802
+ name?: string | undefined;
803
+ metadata?: Record<string, unknown> | undefined;
804
+ created_at?: string | undefined;
805
+ updated_at?: string | undefined;
806
+ description?: string | undefined;
807
+ agent?: string | undefined;
808
+ config?: string | undefined;
809
+ lookup_key?: string | undefined;
810
+ acl?: {
811
+ add?: {
812
+ actions: string[];
813
+ principal_type: string;
814
+ principal?: string | undefined;
815
+ }[] | undefined;
816
+ grants?: {
817
+ actions: string[];
818
+ principal_type: string;
819
+ principal?: string | undefined;
820
+ }[] | undefined;
821
+ remove?: {
822
+ principal_type: string;
823
+ principal?: string | undefined;
824
+ }[] | undefined;
825
+ } | undefined;
826
+ app?: string | undefined;
827
+ event_config?: Record<string, unknown> | undefined;
828
+ event_type?: string | undefined;
829
+ handler_type?: string | undefined;
830
+ preset_config?: {
831
+ instructions?: string | undefined;
832
+ llm?: {
833
+ model?: string | undefined;
834
+ } | undefined;
835
+ session_mode?: string | undefined;
836
+ session_scope?: string | undefined;
837
+ structured_message_template_ids?: string[] | undefined;
838
+ } | undefined;
839
+ preset_name?: string | undefined;
840
+ schedule?: string | undefined;
841
+ script?: string | undefined;
842
+ steps?: Record<string, unknown>[] | undefined;
843
+ trigger_context?: string | undefined;
844
+ }, {
845
+ id: string;
846
+ status?: string | undefined;
847
+ name?: string | undefined;
848
+ metadata?: Record<string, unknown> | undefined;
849
+ created_at?: string | undefined;
850
+ updated_at?: string | undefined;
851
+ description?: string | undefined;
852
+ agent?: string | undefined;
853
+ config?: string | undefined;
854
+ lookup_key?: string | undefined;
855
+ acl?: {
856
+ add?: {
857
+ actions: string[];
858
+ principal_type: string;
859
+ principal?: string | undefined;
860
+ }[] | undefined;
861
+ grants?: {
862
+ actions: string[];
863
+ principal_type: string;
864
+ principal?: string | undefined;
865
+ }[] | undefined;
866
+ remove?: {
867
+ principal_type: string;
868
+ principal?: string | undefined;
869
+ }[] | undefined;
870
+ } | undefined;
871
+ app?: string | undefined;
872
+ event_config?: Record<string, unknown> | undefined;
873
+ event_type?: string | undefined;
874
+ handler_type?: string | undefined;
875
+ preset_config?: {
876
+ instructions?: string | undefined;
877
+ llm?: {
878
+ model?: string | undefined;
879
+ } | undefined;
880
+ session_mode?: string | undefined;
881
+ session_scope?: string | undefined;
882
+ structured_message_template_ids?: string[] | undefined;
883
+ } | undefined;
884
+ preset_name?: string | undefined;
885
+ schedule?: string | undefined;
886
+ script?: string | undefined;
887
+ steps?: Record<string, unknown>[] | undefined;
888
+ trigger_context?: string | undefined;
889
+ }>;
890
+ export type AgentRoutine = z.infer<typeof agentRoutineSchema>;
891
+ /** List response for agent routines. */
892
+ export declare const agentRoutineListResponseSchema: z.ZodObject<{
893
+ data: z.ZodArray<z.ZodObject<{
894
+ acl: z.ZodOptional<z.ZodObject<{
895
+ add: z.ZodOptional<z.ZodArray<z.ZodObject<{
896
+ actions: z.ZodArray<z.ZodString, "many">;
897
+ principal: z.ZodOptional<z.ZodString>;
898
+ principal_type: z.ZodString;
899
+ }, "strip", z.ZodTypeAny, {
900
+ actions: string[];
901
+ principal_type: string;
902
+ principal?: string | undefined;
903
+ }, {
904
+ actions: string[];
905
+ principal_type: string;
906
+ principal?: string | undefined;
907
+ }>, "many">>;
908
+ grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
909
+ actions: z.ZodArray<z.ZodString, "many">;
910
+ principal: z.ZodOptional<z.ZodString>;
911
+ principal_type: z.ZodString;
912
+ }, "strip", z.ZodTypeAny, {
913
+ actions: string[];
914
+ principal_type: string;
915
+ principal?: string | undefined;
916
+ }, {
917
+ actions: string[];
918
+ principal_type: string;
919
+ principal?: string | undefined;
920
+ }>, "many">>;
921
+ remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
922
+ principal: z.ZodOptional<z.ZodString>;
923
+ principal_type: z.ZodString;
924
+ }, "strip", z.ZodTypeAny, {
925
+ principal_type: string;
926
+ principal?: string | undefined;
927
+ }, {
928
+ principal_type: string;
929
+ principal?: string | undefined;
930
+ }>, "many">>;
931
+ }, "strip", z.ZodTypeAny, {
932
+ add?: {
933
+ actions: string[];
934
+ principal_type: string;
935
+ principal?: string | undefined;
936
+ }[] | undefined;
937
+ grants?: {
938
+ actions: string[];
939
+ principal_type: string;
940
+ principal?: string | undefined;
941
+ }[] | undefined;
942
+ remove?: {
943
+ principal_type: string;
944
+ principal?: string | undefined;
945
+ }[] | undefined;
946
+ }, {
1005
947
  add?: {
1006
948
  actions: string[];
1007
949
  principal_type: string;
@@ -1016,181 +958,242 @@ export declare const agentListResponseSchema: z.ZodObject<{
1016
958
  principal_type: string;
1017
959
  principal?: string | undefined;
1018
960
  }[] | undefined;
1019
- } | undefined;
1020
- app?: string | undefined;
1021
- default_model?: string | undefined;
1022
- identity?: string | undefined;
1023
- phone_number?: string | undefined;
1024
- }[];
1025
- has_next?: boolean | undefined;
1026
- has_prev?: boolean | undefined;
1027
- page?: number | undefined;
1028
- page_size?: number | undefined;
1029
- total_entries?: number | undefined;
1030
- total_pages?: number | undefined;
1031
- }>;
1032
- export type AgentListResponse = z.infer<typeof agentListResponseSchema>;
1033
- /** List response for agent tools. */
1034
- export declare const agentToolListResponseSchema: z.ZodObject<{
1035
- data: z.ZodArray<z.ZodObject<{
961
+ }>>;
1036
962
  agent: z.ZodOptional<z.ZodString>;
1037
963
  app: z.ZodOptional<z.ZodString>;
1038
- builtin_tool_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1039
- builtin_tool_key: z.ZodOptional<z.ZodString>;
1040
964
  config: z.ZodOptional<z.ZodString>;
1041
965
  created_at: z.ZodOptional<z.ZodString>;
1042
966
  description: z.ZodOptional<z.ZodString>;
967
+ event_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
968
+ event_type: z.ZodOptional<z.ZodString>;
1043
969
  handler_type: z.ZodOptional<z.ZodString>;
1044
970
  id: z.ZodString;
1045
- instruction: z.ZodOptional<z.ZodString>;
1046
- kind: z.ZodOptional<z.ZodString>;
1047
971
  lookup_key: z.ZodOptional<z.ZodString>;
1048
972
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1049
973
  name: z.ZodOptional<z.ZodString>;
1050
- parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1051
- parameters_config: z.ZodOptional<z.ZodString>;
974
+ preset_config: z.ZodOptional<z.ZodObject<{
975
+ instructions: z.ZodOptional<z.ZodString>;
976
+ llm: z.ZodOptional<z.ZodObject<{
977
+ model: z.ZodOptional<z.ZodString>;
978
+ }, "strip", z.ZodTypeAny, {
979
+ model?: string | undefined;
980
+ }, {
981
+ model?: string | undefined;
982
+ }>>;
983
+ session_mode: z.ZodOptional<z.ZodString>;
984
+ session_scope: z.ZodOptional<z.ZodString>;
985
+ structured_message_template_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
986
+ }, "strip", z.ZodTypeAny, {
987
+ instructions?: string | undefined;
988
+ llm?: {
989
+ model?: string | undefined;
990
+ } | undefined;
991
+ session_mode?: string | undefined;
992
+ session_scope?: string | undefined;
993
+ structured_message_template_ids?: string[] | undefined;
994
+ }, {
995
+ instructions?: string | undefined;
996
+ llm?: {
997
+ model?: string | undefined;
998
+ } | undefined;
999
+ session_mode?: string | undefined;
1000
+ session_scope?: string | undefined;
1001
+ structured_message_template_ids?: string[] | undefined;
1002
+ }>>;
1003
+ preset_name: z.ZodOptional<z.ZodString>;
1004
+ schedule: z.ZodOptional<z.ZodString>;
1005
+ script: z.ZodOptional<z.ZodString>;
1052
1006
  status: z.ZodOptional<z.ZodString>;
1007
+ steps: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
1008
+ trigger_context: z.ZodOptional<z.ZodString>;
1053
1009
  updated_at: z.ZodOptional<z.ZodString>;
1054
1010
  }, "strip", z.ZodTypeAny, {
1055
1011
  id: string;
1056
1012
  status?: string | undefined;
1057
- metadata?: Record<string, unknown> | undefined;
1058
1013
  name?: string | undefined;
1014
+ metadata?: Record<string, unknown> | undefined;
1059
1015
  created_at?: string | undefined;
1060
1016
  updated_at?: string | undefined;
1061
1017
  description?: string | undefined;
1062
1018
  agent?: string | undefined;
1063
- lookup_key?: string | undefined;
1064
- kind?: string | undefined;
1065
1019
  config?: string | undefined;
1020
+ lookup_key?: string | undefined;
1021
+ acl?: {
1022
+ add?: {
1023
+ actions: string[];
1024
+ principal_type: string;
1025
+ principal?: string | undefined;
1026
+ }[] | undefined;
1027
+ grants?: {
1028
+ actions: string[];
1029
+ principal_type: string;
1030
+ principal?: string | undefined;
1031
+ }[] | undefined;
1032
+ remove?: {
1033
+ principal_type: string;
1034
+ principal?: string | undefined;
1035
+ }[] | undefined;
1036
+ } | undefined;
1066
1037
  app?: string | undefined;
1067
- instruction?: string | undefined;
1068
- parameters?: Record<string, unknown> | undefined;
1069
- builtin_tool_config?: Record<string, unknown> | undefined;
1070
- builtin_tool_key?: string | undefined;
1038
+ event_config?: Record<string, unknown> | undefined;
1039
+ event_type?: string | undefined;
1071
1040
  handler_type?: string | undefined;
1072
- parameters_config?: string | undefined;
1041
+ preset_config?: {
1042
+ instructions?: string | undefined;
1043
+ llm?: {
1044
+ model?: string | undefined;
1045
+ } | undefined;
1046
+ session_mode?: string | undefined;
1047
+ session_scope?: string | undefined;
1048
+ structured_message_template_ids?: string[] | undefined;
1049
+ } | undefined;
1050
+ preset_name?: string | undefined;
1051
+ schedule?: string | undefined;
1052
+ script?: string | undefined;
1053
+ steps?: Record<string, unknown>[] | undefined;
1054
+ trigger_context?: string | undefined;
1073
1055
  }, {
1074
1056
  id: string;
1075
1057
  status?: string | undefined;
1076
- metadata?: Record<string, unknown> | undefined;
1077
1058
  name?: string | undefined;
1059
+ metadata?: Record<string, unknown> | undefined;
1078
1060
  created_at?: string | undefined;
1079
1061
  updated_at?: string | undefined;
1080
1062
  description?: string | undefined;
1081
1063
  agent?: string | undefined;
1082
- lookup_key?: string | undefined;
1083
- kind?: string | undefined;
1084
1064
  config?: string | undefined;
1065
+ lookup_key?: string | undefined;
1066
+ acl?: {
1067
+ add?: {
1068
+ actions: string[];
1069
+ principal_type: string;
1070
+ principal?: string | undefined;
1071
+ }[] | undefined;
1072
+ grants?: {
1073
+ actions: string[];
1074
+ principal_type: string;
1075
+ principal?: string | undefined;
1076
+ }[] | undefined;
1077
+ remove?: {
1078
+ principal_type: string;
1079
+ principal?: string | undefined;
1080
+ }[] | undefined;
1081
+ } | undefined;
1085
1082
  app?: string | undefined;
1086
- instruction?: string | undefined;
1087
- parameters?: Record<string, unknown> | undefined;
1088
- builtin_tool_config?: Record<string, unknown> | undefined;
1089
- builtin_tool_key?: string | undefined;
1083
+ event_config?: Record<string, unknown> | undefined;
1084
+ event_type?: string | undefined;
1090
1085
  handler_type?: string | undefined;
1091
- parameters_config?: string | undefined;
1086
+ preset_config?: {
1087
+ instructions?: string | undefined;
1088
+ llm?: {
1089
+ model?: string | undefined;
1090
+ } | undefined;
1091
+ session_mode?: string | undefined;
1092
+ session_scope?: string | undefined;
1093
+ structured_message_template_ids?: string[] | undefined;
1094
+ } | undefined;
1095
+ preset_name?: string | undefined;
1096
+ schedule?: string | undefined;
1097
+ script?: string | undefined;
1098
+ steps?: Record<string, unknown>[] | undefined;
1099
+ trigger_context?: string | undefined;
1092
1100
  }>, "many">;
1093
1101
  }, "strip", z.ZodTypeAny, {
1094
1102
  data: {
1095
1103
  id: string;
1096
1104
  status?: string | undefined;
1097
- metadata?: Record<string, unknown> | undefined;
1098
1105
  name?: string | undefined;
1106
+ metadata?: Record<string, unknown> | undefined;
1099
1107
  created_at?: string | undefined;
1100
1108
  updated_at?: string | undefined;
1101
1109
  description?: string | undefined;
1102
1110
  agent?: string | undefined;
1103
- lookup_key?: string | undefined;
1104
- kind?: string | undefined;
1105
1111
  config?: string | undefined;
1112
+ lookup_key?: string | undefined;
1113
+ acl?: {
1114
+ add?: {
1115
+ actions: string[];
1116
+ principal_type: string;
1117
+ principal?: string | undefined;
1118
+ }[] | undefined;
1119
+ grants?: {
1120
+ actions: string[];
1121
+ principal_type: string;
1122
+ principal?: string | undefined;
1123
+ }[] | undefined;
1124
+ remove?: {
1125
+ principal_type: string;
1126
+ principal?: string | undefined;
1127
+ }[] | undefined;
1128
+ } | undefined;
1106
1129
  app?: string | undefined;
1107
- instruction?: string | undefined;
1108
- parameters?: Record<string, unknown> | undefined;
1109
- builtin_tool_config?: Record<string, unknown> | undefined;
1110
- builtin_tool_key?: string | undefined;
1130
+ event_config?: Record<string, unknown> | undefined;
1131
+ event_type?: string | undefined;
1111
1132
  handler_type?: string | undefined;
1112
- parameters_config?: string | undefined;
1133
+ preset_config?: {
1134
+ instructions?: string | undefined;
1135
+ llm?: {
1136
+ model?: string | undefined;
1137
+ } | undefined;
1138
+ session_mode?: string | undefined;
1139
+ session_scope?: string | undefined;
1140
+ structured_message_template_ids?: string[] | undefined;
1141
+ } | undefined;
1142
+ preset_name?: string | undefined;
1143
+ schedule?: string | undefined;
1144
+ script?: string | undefined;
1145
+ steps?: Record<string, unknown>[] | undefined;
1146
+ trigger_context?: string | undefined;
1113
1147
  }[];
1114
1148
  }, {
1115
1149
  data: {
1116
1150
  id: string;
1117
1151
  status?: string | undefined;
1118
- metadata?: Record<string, unknown> | undefined;
1119
1152
  name?: string | undefined;
1153
+ metadata?: Record<string, unknown> | undefined;
1120
1154
  created_at?: string | undefined;
1121
1155
  updated_at?: string | undefined;
1122
1156
  description?: string | undefined;
1123
1157
  agent?: string | undefined;
1124
- lookup_key?: string | undefined;
1125
- kind?: string | undefined;
1126
1158
  config?: string | undefined;
1127
- app?: string | undefined;
1128
- instruction?: string | undefined;
1129
- parameters?: Record<string, unknown> | undefined;
1130
- builtin_tool_config?: Record<string, unknown> | undefined;
1131
- builtin_tool_key?: string | undefined;
1132
- handler_type?: string | undefined;
1133
- parameters_config?: string | undefined;
1134
- }[];
1135
- }>;
1136
- export type AgentToolListResponse = z.infer<typeof agentToolListResponseSchema>;
1137
- /** API schema for an agent schedule. */
1138
- export declare const agentScheduleSchema: z.ZodObject<{
1139
- agent: z.ZodOptional<z.ZodString>;
1140
- app: z.ZodOptional<z.ZodString>;
1141
- created_at: z.ZodOptional<z.ZodString>;
1142
- cron_expression: z.ZodOptional<z.ZodString>;
1143
- id: z.ZodString;
1144
- instructions: z.ZodOptional<z.ZodString>;
1145
- last_run_at: z.ZodOptional<z.ZodString>;
1146
- max_runs: z.ZodOptional<z.ZodNumber>;
1147
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1148
- next_run_at: z.ZodOptional<z.ZodString>;
1149
- run_count: z.ZodOptional<z.ZodNumber>;
1150
- schedule_type: z.ZodOptional<z.ZodString>;
1151
- scheduled_at: z.ZodOptional<z.ZodString>;
1152
- status: z.ZodOptional<z.ZodString>;
1153
- thread: z.ZodOptional<z.ZodString>;
1154
- timezone: z.ZodOptional<z.ZodString>;
1155
- updated_at: z.ZodOptional<z.ZodString>;
1156
- }, "strip", z.ZodTypeAny, {
1157
- id: string;
1158
- timezone?: string | undefined;
1159
- status?: string | undefined;
1160
- metadata?: Record<string, unknown> | undefined;
1161
- created_at?: string | undefined;
1162
- thread?: string | undefined;
1163
- updated_at?: string | undefined;
1164
- agent?: string | undefined;
1165
- app?: string | undefined;
1166
- instructions?: string | undefined;
1167
- cron_expression?: string | undefined;
1168
- last_run_at?: string | undefined;
1169
- max_runs?: number | undefined;
1170
- next_run_at?: string | undefined;
1171
- run_count?: number | undefined;
1172
- schedule_type?: string | undefined;
1173
- scheduled_at?: string | undefined;
1174
- }, {
1175
- id: string;
1176
- timezone?: string | undefined;
1177
- status?: string | undefined;
1178
- metadata?: Record<string, unknown> | undefined;
1179
- created_at?: string | undefined;
1180
- thread?: string | undefined;
1181
- updated_at?: string | undefined;
1182
- agent?: string | undefined;
1183
- app?: string | undefined;
1184
- instructions?: string | undefined;
1185
- cron_expression?: string | undefined;
1186
- last_run_at?: string | undefined;
1187
- max_runs?: number | undefined;
1188
- next_run_at?: string | undefined;
1189
- run_count?: number | undefined;
1190
- schedule_type?: string | undefined;
1191
- scheduled_at?: string | undefined;
1159
+ lookup_key?: string | undefined;
1160
+ acl?: {
1161
+ add?: {
1162
+ actions: string[];
1163
+ principal_type: string;
1164
+ principal?: string | undefined;
1165
+ }[] | undefined;
1166
+ grants?: {
1167
+ actions: string[];
1168
+ principal_type: string;
1169
+ principal?: string | undefined;
1170
+ }[] | undefined;
1171
+ remove?: {
1172
+ principal_type: string;
1173
+ principal?: string | undefined;
1174
+ }[] | undefined;
1175
+ } | undefined;
1176
+ app?: string | undefined;
1177
+ event_config?: Record<string, unknown> | undefined;
1178
+ event_type?: string | undefined;
1179
+ handler_type?: string | undefined;
1180
+ preset_config?: {
1181
+ instructions?: string | undefined;
1182
+ llm?: {
1183
+ model?: string | undefined;
1184
+ } | undefined;
1185
+ session_mode?: string | undefined;
1186
+ session_scope?: string | undefined;
1187
+ structured_message_template_ids?: string[] | undefined;
1188
+ } | undefined;
1189
+ preset_name?: string | undefined;
1190
+ schedule?: string | undefined;
1191
+ script?: string | undefined;
1192
+ steps?: Record<string, unknown>[] | undefined;
1193
+ trigger_context?: string | undefined;
1194
+ }[];
1192
1195
  }>;
1193
- export type AgentSchedule = z.infer<typeof agentScheduleSchema>;
1196
+ export type AgentRoutineListResponse = z.infer<typeof agentRoutineListResponseSchema>;
1194
1197
  /** API schema for an agent routine run. */
1195
1198
  export declare const agentRoutineRunSchema: z.ZodObject<{
1196
1199
  acl: z.ZodOptional<z.ZodObject<{
@@ -1293,9 +1296,8 @@ export declare const agentRoutineRunSchema: z.ZodObject<{
1293
1296
  metadata?: Record<string, unknown> | undefined;
1294
1297
  created_at?: string | undefined;
1295
1298
  updated_at?: string | undefined;
1296
- payload?: Record<string, unknown> | undefined;
1297
1299
  agent?: string | undefined;
1298
- duration_ms?: number | undefined;
1300
+ payload?: Record<string, unknown> | undefined;
1299
1301
  acl?: {
1300
1302
  add?: {
1301
1303
  actions: string[];
@@ -1313,6 +1315,7 @@ export declare const agentRoutineRunSchema: z.ZodObject<{
1313
1315
  }[] | undefined;
1314
1316
  } | undefined;
1315
1317
  app?: string | undefined;
1318
+ duration_ms?: number | undefined;
1316
1319
  event_id?: string | undefined;
1317
1320
  result?: Record<string, unknown> | undefined;
1318
1321
  routine?: string | undefined;
@@ -1328,9 +1331,8 @@ export declare const agentRoutineRunSchema: z.ZodObject<{
1328
1331
  metadata?: Record<string, unknown> | undefined;
1329
1332
  created_at?: string | undefined;
1330
1333
  updated_at?: string | undefined;
1331
- payload?: Record<string, unknown> | undefined;
1332
1334
  agent?: string | undefined;
1333
- duration_ms?: number | undefined;
1335
+ payload?: Record<string, unknown> | undefined;
1334
1336
  acl?: {
1335
1337
  add?: {
1336
1338
  actions: string[];
@@ -1348,6 +1350,7 @@ export declare const agentRoutineRunSchema: z.ZodObject<{
1348
1350
  }[] | undefined;
1349
1351
  } | undefined;
1350
1352
  app?: string | undefined;
1353
+ duration_ms?: number | undefined;
1351
1354
  event_id?: string | undefined;
1352
1355
  result?: Record<string, unknown> | undefined;
1353
1356
  routine?: string | undefined;
@@ -1464,9 +1467,8 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
1464
1467
  metadata?: Record<string, unknown> | undefined;
1465
1468
  created_at?: string | undefined;
1466
1469
  updated_at?: string | undefined;
1467
- payload?: Record<string, unknown> | undefined;
1468
1470
  agent?: string | undefined;
1469
- duration_ms?: number | undefined;
1471
+ payload?: Record<string, unknown> | undefined;
1470
1472
  acl?: {
1471
1473
  add?: {
1472
1474
  actions: string[];
@@ -1484,6 +1486,7 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
1484
1486
  }[] | undefined;
1485
1487
  } | undefined;
1486
1488
  app?: string | undefined;
1489
+ duration_ms?: number | undefined;
1487
1490
  event_id?: string | undefined;
1488
1491
  result?: Record<string, unknown> | undefined;
1489
1492
  routine?: string | undefined;
@@ -1499,9 +1502,8 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
1499
1502
  metadata?: Record<string, unknown> | undefined;
1500
1503
  created_at?: string | undefined;
1501
1504
  updated_at?: string | undefined;
1502
- payload?: Record<string, unknown> | undefined;
1503
1505
  agent?: string | undefined;
1504
- duration_ms?: number | undefined;
1506
+ payload?: Record<string, unknown> | undefined;
1505
1507
  acl?: {
1506
1508
  add?: {
1507
1509
  actions: string[];
@@ -1519,6 +1521,7 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
1519
1521
  }[] | undefined;
1520
1522
  } | undefined;
1521
1523
  app?: string | undefined;
1524
+ duration_ms?: number | undefined;
1522
1525
  event_id?: string | undefined;
1523
1526
  result?: Record<string, unknown> | undefined;
1524
1527
  routine?: string | undefined;
@@ -1536,9 +1539,8 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
1536
1539
  metadata?: Record<string, unknown> | undefined;
1537
1540
  created_at?: string | undefined;
1538
1541
  updated_at?: string | undefined;
1539
- payload?: Record<string, unknown> | undefined;
1540
1542
  agent?: string | undefined;
1541
- duration_ms?: number | undefined;
1543
+ payload?: Record<string, unknown> | undefined;
1542
1544
  acl?: {
1543
1545
  add?: {
1544
1546
  actions: string[];
@@ -1556,6 +1558,7 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
1556
1558
  }[] | undefined;
1557
1559
  } | undefined;
1558
1560
  app?: string | undefined;
1561
+ duration_ms?: number | undefined;
1559
1562
  event_id?: string | undefined;
1560
1563
  result?: Record<string, unknown> | undefined;
1561
1564
  routine?: string | undefined;
@@ -1575,9 +1578,8 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
1575
1578
  metadata?: Record<string, unknown> | undefined;
1576
1579
  created_at?: string | undefined;
1577
1580
  updated_at?: string | undefined;
1578
- payload?: Record<string, unknown> | undefined;
1579
1581
  agent?: string | undefined;
1580
- duration_ms?: number | undefined;
1582
+ payload?: Record<string, unknown> | undefined;
1581
1583
  acl?: {
1582
1584
  add?: {
1583
1585
  actions: string[];
@@ -1595,6 +1597,7 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
1595
1597
  }[] | undefined;
1596
1598
  } | undefined;
1597
1599
  app?: string | undefined;
1600
+ duration_ms?: number | undefined;
1598
1601
  event_id?: string | undefined;
1599
1602
  result?: Record<string, unknown> | undefined;
1600
1603
  routine?: string | undefined;
@@ -1609,877 +1612,473 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
1609
1612
  before_cursor?: string | undefined;
1610
1613
  }>;
1611
1614
  export type AgentRoutineRunListResponse = z.infer<typeof agentRoutineRunListResponseSchema>;
1612
- /** API schema for a full agent impersonation manifest. */
1613
- export declare const agentImpersonationManifestSchema: z.ZodObject<{
1614
- agent: z.ZodObject<{
1615
- acl: z.ZodOptional<z.ZodObject<{
1616
- add: z.ZodOptional<z.ZodArray<z.ZodObject<{
1617
- actions: z.ZodArray<z.ZodString, "many">;
1618
- principal: z.ZodOptional<z.ZodString>;
1619
- principal_type: z.ZodString;
1620
- }, "strip", z.ZodTypeAny, {
1621
- actions: string[];
1622
- principal_type: string;
1623
- principal?: string | undefined;
1624
- }, {
1625
- actions: string[];
1626
- principal_type: string;
1627
- principal?: string | undefined;
1628
- }>, "many">>;
1629
- grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1630
- actions: z.ZodArray<z.ZodString, "many">;
1631
- principal: z.ZodOptional<z.ZodString>;
1632
- principal_type: z.ZodString;
1633
- }, "strip", z.ZodTypeAny, {
1634
- actions: string[];
1635
- principal_type: string;
1636
- principal?: string | undefined;
1637
- }, {
1638
- actions: string[];
1639
- principal_type: string;
1640
- principal?: string | undefined;
1641
- }>, "many">>;
1642
- remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
1643
- principal: z.ZodOptional<z.ZodString>;
1644
- principal_type: z.ZodString;
1645
- }, "strip", z.ZodTypeAny, {
1646
- principal_type: string;
1647
- principal?: string | undefined;
1648
- }, {
1649
- principal_type: string;
1650
- principal?: string | undefined;
1651
- }>, "many">>;
1652
- }, "strip", z.ZodTypeAny, {
1653
- add?: {
1654
- actions: string[];
1655
- principal_type: string;
1656
- principal?: string | undefined;
1657
- }[] | undefined;
1658
- grants?: {
1659
- actions: string[];
1660
- principal_type: string;
1661
- principal?: string | undefined;
1662
- }[] | undefined;
1663
- remove?: {
1664
- principal_type: string;
1665
- principal?: string | undefined;
1666
- }[] | undefined;
1667
- }, {
1668
- add?: {
1669
- actions: string[];
1670
- principal_type: string;
1671
- principal?: string | undefined;
1672
- }[] | undefined;
1673
- grants?: {
1674
- actions: string[];
1675
- principal_type: string;
1676
- principal?: string | undefined;
1677
- }[] | undefined;
1678
- remove?: {
1679
- principal_type: string;
1680
- principal?: string | undefined;
1681
- }[] | undefined;
1682
- }>>;
1683
- app: z.ZodOptional<z.ZodString>;
1684
- created_at: z.ZodOptional<z.ZodString>;
1685
- default_model: z.ZodOptional<z.ZodString>;
1686
- email: z.ZodOptional<z.ZodString>;
1687
- id: z.ZodString;
1688
- identity: z.ZodOptional<z.ZodString>;
1689
- lookup_key: z.ZodOptional<z.ZodString>;
1690
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1691
- name: z.ZodOptional<z.ZodString>;
1692
- org: z.ZodOptional<z.ZodString>;
1693
- phone_number: z.ZodOptional<z.ZodString>;
1694
- sandbox: z.ZodOptional<z.ZodString>;
1695
- team: z.ZodOptional<z.ZodString>;
1696
- updated_at: z.ZodOptional<z.ZodString>;
1697
- user: z.ZodOptional<z.ZodString>;
1698
- }, "strip", z.ZodTypeAny, {
1699
- id: string;
1700
- email?: string | undefined;
1701
- metadata?: Record<string, unknown> | undefined;
1702
- name?: string | undefined;
1703
- org?: string | undefined;
1704
- sandbox?: string | undefined;
1705
- created_at?: string | undefined;
1706
- user?: string | undefined;
1707
- updated_at?: string | undefined;
1708
- team?: string | undefined;
1709
- lookup_key?: string | undefined;
1710
- acl?: {
1711
- add?: {
1712
- actions: string[];
1713
- principal_type: string;
1714
- principal?: string | undefined;
1715
- }[] | undefined;
1716
- grants?: {
1717
- actions: string[];
1718
- principal_type: string;
1719
- principal?: string | undefined;
1720
- }[] | undefined;
1721
- remove?: {
1722
- principal_type: string;
1723
- principal?: string | undefined;
1724
- }[] | undefined;
1725
- } | undefined;
1726
- app?: string | undefined;
1727
- default_model?: string | undefined;
1728
- identity?: string | undefined;
1729
- phone_number?: string | undefined;
1730
- }, {
1731
- id: string;
1732
- email?: string | undefined;
1733
- metadata?: Record<string, unknown> | undefined;
1734
- name?: string | undefined;
1735
- org?: string | undefined;
1736
- sandbox?: string | undefined;
1737
- created_at?: string | undefined;
1738
- user?: string | undefined;
1739
- updated_at?: string | undefined;
1740
- team?: string | undefined;
1741
- lookup_key?: string | undefined;
1742
- acl?: {
1743
- add?: {
1744
- actions: string[];
1745
- principal_type: string;
1746
- principal?: string | undefined;
1747
- }[] | undefined;
1748
- grants?: {
1749
- actions: string[];
1750
- principal_type: string;
1751
- principal?: string | undefined;
1752
- }[] | undefined;
1753
- remove?: {
1754
- principal_type: string;
1755
- principal?: string | undefined;
1756
- }[] | undefined;
1757
- } | undefined;
1758
- app?: string | undefined;
1759
- default_model?: string | undefined;
1760
- identity?: string | undefined;
1761
- phone_number?: string | undefined;
1762
- }>;
1763
- skills: z.ZodArray<z.ZodObject<{
1764
- description: z.ZodOptional<z.ZodString>;
1765
- id: z.ZodString;
1766
- name: z.ZodString;
1767
- slug: z.ZodString;
1768
- }, "strip", z.ZodTypeAny, {
1769
- id: string;
1770
- name: string;
1771
- slug: string;
1772
- description?: string | undefined;
1773
- }, {
1774
- id: string;
1775
- name: string;
1776
- slug: string;
1777
- description?: string | undefined;
1778
- }>, "many">;
1779
- tools: z.ZodArray<z.ZodObject<{
1615
+ /** API schema for an agent schedule. */
1616
+ export declare const agentScheduleSchema: z.ZodObject<{
1617
+ agent: z.ZodOptional<z.ZodString>;
1618
+ app: z.ZodOptional<z.ZodString>;
1619
+ created_at: z.ZodOptional<z.ZodString>;
1620
+ cron_expression: z.ZodOptional<z.ZodString>;
1621
+ id: z.ZodString;
1622
+ instructions: z.ZodOptional<z.ZodString>;
1623
+ last_run_at: z.ZodOptional<z.ZodString>;
1624
+ max_runs: z.ZodOptional<z.ZodNumber>;
1625
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1626
+ next_run_at: z.ZodOptional<z.ZodString>;
1627
+ run_count: z.ZodOptional<z.ZodNumber>;
1628
+ schedule_type: z.ZodOptional<z.ZodString>;
1629
+ scheduled_at: z.ZodOptional<z.ZodString>;
1630
+ status: z.ZodOptional<z.ZodString>;
1631
+ thread: z.ZodOptional<z.ZodString>;
1632
+ timezone: z.ZodOptional<z.ZodString>;
1633
+ updated_at: z.ZodOptional<z.ZodString>;
1634
+ }, "strip", z.ZodTypeAny, {
1635
+ id: string;
1636
+ timezone?: string | undefined;
1637
+ status?: string | undefined;
1638
+ metadata?: Record<string, unknown> | undefined;
1639
+ created_at?: string | undefined;
1640
+ thread?: string | undefined;
1641
+ instructions?: string | undefined;
1642
+ updated_at?: string | undefined;
1643
+ agent?: string | undefined;
1644
+ app?: string | undefined;
1645
+ cron_expression?: string | undefined;
1646
+ last_run_at?: string | undefined;
1647
+ max_runs?: number | undefined;
1648
+ next_run_at?: string | undefined;
1649
+ run_count?: number | undefined;
1650
+ schedule_type?: string | undefined;
1651
+ scheduled_at?: string | undefined;
1652
+ }, {
1653
+ id: string;
1654
+ timezone?: string | undefined;
1655
+ status?: string | undefined;
1656
+ metadata?: Record<string, unknown> | undefined;
1657
+ created_at?: string | undefined;
1658
+ thread?: string | undefined;
1659
+ instructions?: string | undefined;
1660
+ updated_at?: string | undefined;
1661
+ agent?: string | undefined;
1662
+ app?: string | undefined;
1663
+ cron_expression?: string | undefined;
1664
+ last_run_at?: string | undefined;
1665
+ max_runs?: number | undefined;
1666
+ next_run_at?: string | undefined;
1667
+ run_count?: number | undefined;
1668
+ schedule_type?: string | undefined;
1669
+ scheduled_at?: string | undefined;
1670
+ }>;
1671
+ export type AgentSchedule = z.infer<typeof agentScheduleSchema>;
1672
+ /** API schema for an agent session. */
1673
+ export declare const agentSessionSchema: z.ZodObject<{
1674
+ agent: z.ZodOptional<z.ZodString>;
1675
+ completed_at: z.ZodOptional<z.ZodString>;
1676
+ created_at: z.ZodOptional<z.ZodString>;
1677
+ error: z.ZodOptional<z.ZodString>;
1678
+ id: z.ZodString;
1679
+ inbox: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
1680
+ instructions: z.ZodOptional<z.ZodString>;
1681
+ is_system_session: z.ZodOptional<z.ZodBoolean>;
1682
+ max_runs_per_turn: z.ZodOptional<z.ZodNumber>;
1683
+ max_tokens: z.ZodOptional<z.ZodNumber>;
1684
+ max_turns: z.ZodOptional<z.ZodNumber>;
1685
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1686
+ name: z.ZodOptional<z.ZodString>;
1687
+ result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1688
+ started_at: z.ZodOptional<z.ZodString>;
1689
+ status: z.ZodOptional<z.ZodString>;
1690
+ trajectory: z.ZodOptional<z.ZodString>;
1691
+ }, "strip", z.ZodTypeAny, {
1692
+ id: string;
1693
+ error?: string | undefined;
1694
+ status?: string | undefined;
1695
+ name?: string | undefined;
1696
+ metadata?: Record<string, unknown> | undefined;
1697
+ created_at?: string | undefined;
1698
+ instructions?: string | undefined;
1699
+ agent?: string | undefined;
1700
+ result?: Record<string, unknown> | undefined;
1701
+ completed_at?: string | undefined;
1702
+ inbox?: Record<string, unknown>[] | undefined;
1703
+ is_system_session?: boolean | undefined;
1704
+ max_runs_per_turn?: number | undefined;
1705
+ max_tokens?: number | undefined;
1706
+ max_turns?: number | undefined;
1707
+ started_at?: string | undefined;
1708
+ trajectory?: string | undefined;
1709
+ }, {
1710
+ id: string;
1711
+ error?: string | undefined;
1712
+ status?: string | undefined;
1713
+ name?: string | undefined;
1714
+ metadata?: Record<string, unknown> | undefined;
1715
+ created_at?: string | undefined;
1716
+ instructions?: string | undefined;
1717
+ agent?: string | undefined;
1718
+ result?: Record<string, unknown> | undefined;
1719
+ completed_at?: string | undefined;
1720
+ inbox?: Record<string, unknown>[] | undefined;
1721
+ is_system_session?: boolean | undefined;
1722
+ max_runs_per_turn?: number | undefined;
1723
+ max_tokens?: number | undefined;
1724
+ max_turns?: number | undefined;
1725
+ started_at?: string | undefined;
1726
+ trajectory?: string | undefined;
1727
+ }>;
1728
+ export type AgentSession = z.infer<typeof agentSessionSchema>;
1729
+ /** List response for agent sessions. */
1730
+ export declare const agentSessionListResponseSchema: z.ZodObject<{
1731
+ data: z.ZodArray<z.ZodObject<{
1780
1732
  agent: z.ZodOptional<z.ZodString>;
1781
- app: z.ZodOptional<z.ZodString>;
1782
- builtin_tool_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1783
- builtin_tool_key: z.ZodOptional<z.ZodString>;
1784
- config: z.ZodOptional<z.ZodString>;
1733
+ completed_at: z.ZodOptional<z.ZodString>;
1785
1734
  created_at: z.ZodOptional<z.ZodString>;
1786
- description: z.ZodOptional<z.ZodString>;
1787
- handler_type: z.ZodOptional<z.ZodString>;
1735
+ error: z.ZodOptional<z.ZodString>;
1788
1736
  id: z.ZodString;
1789
- instruction: z.ZodOptional<z.ZodString>;
1790
- kind: z.ZodOptional<z.ZodString>;
1791
- lookup_key: z.ZodOptional<z.ZodString>;
1737
+ inbox: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
1738
+ instructions: z.ZodOptional<z.ZodString>;
1739
+ is_system_session: z.ZodOptional<z.ZodBoolean>;
1740
+ max_runs_per_turn: z.ZodOptional<z.ZodNumber>;
1741
+ max_tokens: z.ZodOptional<z.ZodNumber>;
1742
+ max_turns: z.ZodOptional<z.ZodNumber>;
1792
1743
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1793
1744
  name: z.ZodOptional<z.ZodString>;
1794
- parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1795
- parameters_config: z.ZodOptional<z.ZodString>;
1745
+ result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1746
+ started_at: z.ZodOptional<z.ZodString>;
1796
1747
  status: z.ZodOptional<z.ZodString>;
1797
- updated_at: z.ZodOptional<z.ZodString>;
1748
+ trajectory: z.ZodOptional<z.ZodString>;
1798
1749
  }, "strip", z.ZodTypeAny, {
1799
1750
  id: string;
1751
+ error?: string | undefined;
1800
1752
  status?: string | undefined;
1801
- metadata?: Record<string, unknown> | undefined;
1802
1753
  name?: string | undefined;
1754
+ metadata?: Record<string, unknown> | undefined;
1803
1755
  created_at?: string | undefined;
1804
- updated_at?: string | undefined;
1805
- description?: string | undefined;
1756
+ instructions?: string | undefined;
1806
1757
  agent?: string | undefined;
1807
- lookup_key?: string | undefined;
1808
- kind?: string | undefined;
1809
- config?: string | undefined;
1810
- app?: string | undefined;
1811
- instruction?: string | undefined;
1812
- parameters?: Record<string, unknown> | undefined;
1813
- builtin_tool_config?: Record<string, unknown> | undefined;
1814
- builtin_tool_key?: string | undefined;
1815
- handler_type?: string | undefined;
1816
- parameters_config?: string | undefined;
1758
+ result?: Record<string, unknown> | undefined;
1759
+ completed_at?: string | undefined;
1760
+ inbox?: Record<string, unknown>[] | undefined;
1761
+ is_system_session?: boolean | undefined;
1762
+ max_runs_per_turn?: number | undefined;
1763
+ max_tokens?: number | undefined;
1764
+ max_turns?: number | undefined;
1765
+ started_at?: string | undefined;
1766
+ trajectory?: string | undefined;
1817
1767
  }, {
1818
1768
  id: string;
1769
+ error?: string | undefined;
1819
1770
  status?: string | undefined;
1820
- metadata?: Record<string, unknown> | undefined;
1821
1771
  name?: string | undefined;
1772
+ metadata?: Record<string, unknown> | undefined;
1822
1773
  created_at?: string | undefined;
1823
- updated_at?: string | undefined;
1824
- description?: string | undefined;
1774
+ instructions?: string | undefined;
1825
1775
  agent?: string | undefined;
1826
- lookup_key?: string | undefined;
1827
- kind?: string | undefined;
1828
- config?: string | undefined;
1829
- app?: string | undefined;
1830
- instruction?: string | undefined;
1831
- parameters?: Record<string, unknown> | undefined;
1832
- builtin_tool_config?: Record<string, unknown> | undefined;
1833
- builtin_tool_key?: string | undefined;
1834
- handler_type?: string | undefined;
1835
- parameters_config?: string | undefined;
1776
+ result?: Record<string, unknown> | undefined;
1777
+ completed_at?: string | undefined;
1778
+ inbox?: Record<string, unknown>[] | undefined;
1779
+ is_system_session?: boolean | undefined;
1780
+ max_runs_per_turn?: number | undefined;
1781
+ max_tokens?: number | undefined;
1782
+ max_turns?: number | undefined;
1783
+ started_at?: string | undefined;
1784
+ trajectory?: string | undefined;
1836
1785
  }>, "many">;
1837
1786
  }, "strip", z.ZodTypeAny, {
1838
- agent: {
1839
- id: string;
1840
- email?: string | undefined;
1841
- metadata?: Record<string, unknown> | undefined;
1842
- name?: string | undefined;
1843
- org?: string | undefined;
1844
- sandbox?: string | undefined;
1845
- created_at?: string | undefined;
1846
- user?: string | undefined;
1847
- updated_at?: string | undefined;
1848
- team?: string | undefined;
1849
- lookup_key?: string | undefined;
1850
- acl?: {
1851
- add?: {
1852
- actions: string[];
1853
- principal_type: string;
1854
- principal?: string | undefined;
1855
- }[] | undefined;
1856
- grants?: {
1857
- actions: string[];
1858
- principal_type: string;
1859
- principal?: string | undefined;
1860
- }[] | undefined;
1861
- remove?: {
1862
- principal_type: string;
1863
- principal?: string | undefined;
1864
- }[] | undefined;
1865
- } | undefined;
1866
- app?: string | undefined;
1867
- default_model?: string | undefined;
1868
- identity?: string | undefined;
1869
- phone_number?: string | undefined;
1870
- };
1871
- tools: {
1787
+ data: {
1872
1788
  id: string;
1789
+ error?: string | undefined;
1873
1790
  status?: string | undefined;
1874
- metadata?: Record<string, unknown> | undefined;
1875
1791
  name?: string | undefined;
1792
+ metadata?: Record<string, unknown> | undefined;
1876
1793
  created_at?: string | undefined;
1877
- updated_at?: string | undefined;
1878
- description?: string | undefined;
1794
+ instructions?: string | undefined;
1879
1795
  agent?: string | undefined;
1880
- lookup_key?: string | undefined;
1881
- kind?: string | undefined;
1882
- config?: string | undefined;
1883
- app?: string | undefined;
1884
- instruction?: string | undefined;
1885
- parameters?: Record<string, unknown> | undefined;
1886
- builtin_tool_config?: Record<string, unknown> | undefined;
1887
- builtin_tool_key?: string | undefined;
1888
- handler_type?: string | undefined;
1889
- parameters_config?: string | undefined;
1890
- }[];
1891
- skills: {
1892
- id: string;
1893
- name: string;
1894
- slug: string;
1895
- description?: string | undefined;
1796
+ result?: Record<string, unknown> | undefined;
1797
+ completed_at?: string | undefined;
1798
+ inbox?: Record<string, unknown>[] | undefined;
1799
+ is_system_session?: boolean | undefined;
1800
+ max_runs_per_turn?: number | undefined;
1801
+ max_tokens?: number | undefined;
1802
+ max_turns?: number | undefined;
1803
+ started_at?: string | undefined;
1804
+ trajectory?: string | undefined;
1896
1805
  }[];
1897
1806
  }, {
1898
- agent: {
1899
- id: string;
1900
- email?: string | undefined;
1901
- metadata?: Record<string, unknown> | undefined;
1902
- name?: string | undefined;
1903
- org?: string | undefined;
1904
- sandbox?: string | undefined;
1905
- created_at?: string | undefined;
1906
- user?: string | undefined;
1907
- updated_at?: string | undefined;
1908
- team?: string | undefined;
1909
- lookup_key?: string | undefined;
1910
- acl?: {
1911
- add?: {
1912
- actions: string[];
1913
- principal_type: string;
1914
- principal?: string | undefined;
1915
- }[] | undefined;
1916
- grants?: {
1917
- actions: string[];
1918
- principal_type: string;
1919
- principal?: string | undefined;
1920
- }[] | undefined;
1921
- remove?: {
1922
- principal_type: string;
1923
- principal?: string | undefined;
1924
- }[] | undefined;
1925
- } | undefined;
1926
- app?: string | undefined;
1927
- default_model?: string | undefined;
1928
- identity?: string | undefined;
1929
- phone_number?: string | undefined;
1930
- };
1931
- tools: {
1807
+ data: {
1932
1808
  id: string;
1809
+ error?: string | undefined;
1933
1810
  status?: string | undefined;
1934
- metadata?: Record<string, unknown> | undefined;
1935
1811
  name?: string | undefined;
1812
+ metadata?: Record<string, unknown> | undefined;
1936
1813
  created_at?: string | undefined;
1937
- updated_at?: string | undefined;
1938
- description?: string | undefined;
1814
+ instructions?: string | undefined;
1939
1815
  agent?: string | undefined;
1940
- lookup_key?: string | undefined;
1941
- kind?: string | undefined;
1942
- config?: string | undefined;
1943
- app?: string | undefined;
1944
- instruction?: string | undefined;
1945
- parameters?: Record<string, unknown> | undefined;
1946
- builtin_tool_config?: Record<string, unknown> | undefined;
1947
- builtin_tool_key?: string | undefined;
1948
- handler_type?: string | undefined;
1949
- parameters_config?: string | undefined;
1950
- }[];
1951
- skills: {
1952
- id: string;
1953
- name: string;
1954
- slug: string;
1955
- description?: string | undefined;
1816
+ result?: Record<string, unknown> | undefined;
1817
+ completed_at?: string | undefined;
1818
+ inbox?: Record<string, unknown>[] | undefined;
1819
+ is_system_session?: boolean | undefined;
1820
+ max_runs_per_turn?: number | undefined;
1821
+ max_tokens?: number | undefined;
1822
+ max_turns?: number | undefined;
1823
+ started_at?: string | undefined;
1824
+ trajectory?: string | undefined;
1956
1825
  }[];
1957
1826
  }>;
1958
- export type AgentImpersonationManifest = z.infer<typeof agentImpersonationManifestSchema>;
1959
- /** API schema for an agent routine. */
1960
- export declare const agentRoutineSchema: z.ZodObject<{
1961
- acl: z.ZodOptional<z.ZodObject<{
1962
- add: z.ZodOptional<z.ZodArray<z.ZodObject<{
1963
- actions: z.ZodArray<z.ZodString, "many">;
1964
- principal: z.ZodOptional<z.ZodString>;
1965
- principal_type: z.ZodString;
1966
- }, "strip", z.ZodTypeAny, {
1967
- actions: string[];
1968
- principal_type: string;
1969
- principal?: string | undefined;
1970
- }, {
1971
- actions: string[];
1972
- principal_type: string;
1973
- principal?: string | undefined;
1974
- }>, "many">>;
1975
- grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1976
- actions: z.ZodArray<z.ZodString, "many">;
1977
- principal: z.ZodOptional<z.ZodString>;
1978
- principal_type: z.ZodString;
1979
- }, "strip", z.ZodTypeAny, {
1980
- actions: string[];
1981
- principal_type: string;
1982
- principal?: string | undefined;
1983
- }, {
1984
- actions: string[];
1985
- principal_type: string;
1986
- principal?: string | undefined;
1987
- }>, "many">>;
1988
- remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
1989
- principal: z.ZodOptional<z.ZodString>;
1990
- principal_type: z.ZodString;
1991
- }, "strip", z.ZodTypeAny, {
1992
- principal_type: string;
1993
- principal?: string | undefined;
1994
- }, {
1995
- principal_type: string;
1996
- principal?: string | undefined;
1997
- }>, "many">>;
1998
- }, "strip", z.ZodTypeAny, {
1999
- add?: {
2000
- actions: string[];
2001
- principal_type: string;
2002
- principal?: string | undefined;
2003
- }[] | undefined;
2004
- grants?: {
2005
- actions: string[];
2006
- principal_type: string;
2007
- principal?: string | undefined;
2008
- }[] | undefined;
2009
- remove?: {
2010
- principal_type: string;
2011
- principal?: string | undefined;
2012
- }[] | undefined;
2013
- }, {
2014
- add?: {
2015
- actions: string[];
2016
- principal_type: string;
2017
- principal?: string | undefined;
2018
- }[] | undefined;
2019
- grants?: {
2020
- actions: string[];
2021
- principal_type: string;
2022
- principal?: string | undefined;
2023
- }[] | undefined;
2024
- remove?: {
2025
- principal_type: string;
2026
- principal?: string | undefined;
2027
- }[] | undefined;
2028
- }>>;
1827
+ export type AgentSessionListResponse = z.infer<typeof agentSessionListResponseSchema>;
1828
+ /** API schema for an agent skill. */
1829
+ export declare const agentSkillSchema: z.ZodObject<{
2029
1830
  agent: z.ZodOptional<z.ZodString>;
2030
1831
  app: z.ZodOptional<z.ZodString>;
2031
1832
  config: z.ZodOptional<z.ZodString>;
2032
1833
  created_at: z.ZodOptional<z.ZodString>;
2033
- description: z.ZodOptional<z.ZodString>;
2034
- event_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2035
- event_type: z.ZodOptional<z.ZodString>;
2036
- handler_type: z.ZodOptional<z.ZodString>;
2037
1834
  id: z.ZodString;
2038
- lookup_key: z.ZodOptional<z.ZodString>;
1835
+ instruction: z.ZodOptional<z.ZodString>;
2039
1836
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2040
- name: z.ZodOptional<z.ZodString>;
2041
- preset_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2042
- preset_name: z.ZodOptional<z.ZodString>;
2043
- schedule: z.ZodOptional<z.ZodString>;
2044
- script: z.ZodOptional<z.ZodString>;
2045
1837
  status: z.ZodOptional<z.ZodString>;
2046
- trigger_context: z.ZodOptional<z.ZodString>;
2047
1838
  updated_at: z.ZodOptional<z.ZodString>;
2048
1839
  }, "strip", z.ZodTypeAny, {
2049
1840
  id: string;
2050
1841
  status?: string | undefined;
2051
1842
  metadata?: Record<string, unknown> | undefined;
2052
- name?: string | undefined;
2053
1843
  created_at?: string | undefined;
2054
1844
  updated_at?: string | undefined;
2055
- description?: string | undefined;
1845
+ instruction?: string | undefined;
2056
1846
  agent?: string | undefined;
2057
- event_type?: string | undefined;
2058
- lookup_key?: string | undefined;
2059
1847
  config?: string | undefined;
2060
- acl?: {
2061
- add?: {
2062
- actions: string[];
2063
- principal_type: string;
2064
- principal?: string | undefined;
2065
- }[] | undefined;
2066
- grants?: {
2067
- actions: string[];
2068
- principal_type: string;
2069
- principal?: string | undefined;
2070
- }[] | undefined;
2071
- remove?: {
2072
- principal_type: string;
2073
- principal?: string | undefined;
2074
- }[] | undefined;
2075
- } | undefined;
2076
1848
  app?: string | undefined;
2077
- handler_type?: string | undefined;
2078
- event_config?: Record<string, unknown> | undefined;
2079
- preset_config?: Record<string, unknown> | undefined;
2080
- preset_name?: string | undefined;
2081
- schedule?: string | undefined;
2082
- script?: string | undefined;
2083
- trigger_context?: string | undefined;
2084
1849
  }, {
2085
1850
  id: string;
2086
1851
  status?: string | undefined;
2087
1852
  metadata?: Record<string, unknown> | undefined;
2088
- name?: string | undefined;
2089
1853
  created_at?: string | undefined;
2090
1854
  updated_at?: string | undefined;
2091
- description?: string | undefined;
1855
+ instruction?: string | undefined;
2092
1856
  agent?: string | undefined;
2093
- event_type?: string | undefined;
2094
- lookup_key?: string | undefined;
2095
1857
  config?: string | undefined;
2096
- acl?: {
2097
- add?: {
2098
- actions: string[];
2099
- principal_type: string;
2100
- principal?: string | undefined;
2101
- }[] | undefined;
2102
- grants?: {
2103
- actions: string[];
2104
- principal_type: string;
2105
- principal?: string | undefined;
2106
- }[] | undefined;
2107
- remove?: {
2108
- principal_type: string;
2109
- principal?: string | undefined;
2110
- }[] | undefined;
2111
- } | undefined;
2112
1858
  app?: string | undefined;
2113
- handler_type?: string | undefined;
2114
- event_config?: Record<string, unknown> | undefined;
2115
- preset_config?: Record<string, unknown> | undefined;
2116
- preset_name?: string | undefined;
2117
- schedule?: string | undefined;
2118
- script?: string | undefined;
2119
- trigger_context?: string | undefined;
2120
1859
  }>;
2121
- export type AgentRoutine = z.infer<typeof agentRoutineSchema>;
2122
- /** List response for agent routines. */
2123
- export declare const agentRoutineListResponseSchema: z.ZodObject<{
1860
+ export type AgentSkill = z.infer<typeof agentSkillSchema>;
1861
+ /** API schema for agent skills list response. */
1862
+ export declare const agentSkillListSchema: z.ZodObject<{
2124
1863
  data: z.ZodArray<z.ZodObject<{
2125
- acl: z.ZodOptional<z.ZodObject<{
2126
- add: z.ZodOptional<z.ZodArray<z.ZodObject<{
2127
- actions: z.ZodArray<z.ZodString, "many">;
2128
- principal: z.ZodOptional<z.ZodString>;
2129
- principal_type: z.ZodString;
2130
- }, "strip", z.ZodTypeAny, {
2131
- actions: string[];
2132
- principal_type: string;
2133
- principal?: string | undefined;
2134
- }, {
2135
- actions: string[];
2136
- principal_type: string;
2137
- principal?: string | undefined;
2138
- }>, "many">>;
2139
- grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
2140
- actions: z.ZodArray<z.ZodString, "many">;
2141
- principal: z.ZodOptional<z.ZodString>;
2142
- principal_type: z.ZodString;
2143
- }, "strip", z.ZodTypeAny, {
2144
- actions: string[];
2145
- principal_type: string;
2146
- principal?: string | undefined;
2147
- }, {
2148
- actions: string[];
2149
- principal_type: string;
2150
- principal?: string | undefined;
2151
- }>, "many">>;
2152
- remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
2153
- principal: z.ZodOptional<z.ZodString>;
2154
- principal_type: z.ZodString;
2155
- }, "strip", z.ZodTypeAny, {
2156
- principal_type: string;
2157
- principal?: string | undefined;
2158
- }, {
2159
- principal_type: string;
2160
- principal?: string | undefined;
2161
- }>, "many">>;
2162
- }, "strip", z.ZodTypeAny, {
2163
- add?: {
2164
- actions: string[];
2165
- principal_type: string;
2166
- principal?: string | undefined;
2167
- }[] | undefined;
2168
- grants?: {
2169
- actions: string[];
2170
- principal_type: string;
2171
- principal?: string | undefined;
2172
- }[] | undefined;
2173
- remove?: {
2174
- principal_type: string;
2175
- principal?: string | undefined;
2176
- }[] | undefined;
2177
- }, {
2178
- add?: {
2179
- actions: string[];
2180
- principal_type: string;
2181
- principal?: string | undefined;
2182
- }[] | undefined;
2183
- grants?: {
2184
- actions: string[];
2185
- principal_type: string;
2186
- principal?: string | undefined;
2187
- }[] | undefined;
2188
- remove?: {
2189
- principal_type: string;
2190
- principal?: string | undefined;
2191
- }[] | undefined;
2192
- }>>;
2193
1864
  agent: z.ZodOptional<z.ZodString>;
2194
1865
  app: z.ZodOptional<z.ZodString>;
2195
1866
  config: z.ZodOptional<z.ZodString>;
2196
1867
  created_at: z.ZodOptional<z.ZodString>;
2197
- description: z.ZodOptional<z.ZodString>;
2198
- event_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2199
- event_type: z.ZodOptional<z.ZodString>;
2200
- handler_type: z.ZodOptional<z.ZodString>;
2201
1868
  id: z.ZodString;
2202
- lookup_key: z.ZodOptional<z.ZodString>;
2203
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2204
- name: z.ZodOptional<z.ZodString>;
2205
- preset_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2206
- preset_name: z.ZodOptional<z.ZodString>;
2207
- schedule: z.ZodOptional<z.ZodString>;
2208
- script: z.ZodOptional<z.ZodString>;
2209
- status: z.ZodOptional<z.ZodString>;
2210
- trigger_context: z.ZodOptional<z.ZodString>;
2211
- updated_at: z.ZodOptional<z.ZodString>;
2212
- }, "strip", z.ZodTypeAny, {
2213
- id: string;
2214
- status?: string | undefined;
2215
- metadata?: Record<string, unknown> | undefined;
2216
- name?: string | undefined;
2217
- created_at?: string | undefined;
2218
- updated_at?: string | undefined;
2219
- description?: string | undefined;
2220
- agent?: string | undefined;
2221
- event_type?: string | undefined;
2222
- lookup_key?: string | undefined;
2223
- config?: string | undefined;
2224
- acl?: {
2225
- add?: {
2226
- actions: string[];
2227
- principal_type: string;
2228
- principal?: string | undefined;
2229
- }[] | undefined;
2230
- grants?: {
2231
- actions: string[];
2232
- principal_type: string;
2233
- principal?: string | undefined;
2234
- }[] | undefined;
2235
- remove?: {
2236
- principal_type: string;
2237
- principal?: string | undefined;
2238
- }[] | undefined;
2239
- } | undefined;
1869
+ instruction: z.ZodOptional<z.ZodString>;
1870
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1871
+ status: z.ZodOptional<z.ZodString>;
1872
+ updated_at: z.ZodOptional<z.ZodString>;
1873
+ }, "strip", z.ZodTypeAny, {
1874
+ id: string;
1875
+ status?: string | undefined;
1876
+ metadata?: Record<string, unknown> | undefined;
1877
+ created_at?: string | undefined;
1878
+ updated_at?: string | undefined;
1879
+ instruction?: string | undefined;
1880
+ agent?: string | undefined;
1881
+ config?: string | undefined;
2240
1882
  app?: string | undefined;
2241
- handler_type?: string | undefined;
2242
- event_config?: Record<string, unknown> | undefined;
2243
- preset_config?: Record<string, unknown> | undefined;
2244
- preset_name?: string | undefined;
2245
- schedule?: string | undefined;
2246
- script?: string | undefined;
2247
- trigger_context?: string | undefined;
2248
1883
  }, {
2249
1884
  id: string;
2250
1885
  status?: string | undefined;
2251
1886
  metadata?: Record<string, unknown> | undefined;
2252
- name?: string | undefined;
2253
1887
  created_at?: string | undefined;
2254
1888
  updated_at?: string | undefined;
2255
- description?: string | undefined;
1889
+ instruction?: string | undefined;
2256
1890
  agent?: string | undefined;
2257
- event_type?: string | undefined;
2258
- lookup_key?: string | undefined;
2259
1891
  config?: string | undefined;
2260
- acl?: {
2261
- add?: {
2262
- actions: string[];
2263
- principal_type: string;
2264
- principal?: string | undefined;
2265
- }[] | undefined;
2266
- grants?: {
2267
- actions: string[];
2268
- principal_type: string;
2269
- principal?: string | undefined;
2270
- }[] | undefined;
2271
- remove?: {
2272
- principal_type: string;
2273
- principal?: string | undefined;
2274
- }[] | undefined;
2275
- } | undefined;
2276
1892
  app?: string | undefined;
2277
- handler_type?: string | undefined;
2278
- event_config?: Record<string, unknown> | undefined;
2279
- preset_config?: Record<string, unknown> | undefined;
2280
- preset_name?: string | undefined;
2281
- schedule?: string | undefined;
2282
- script?: string | undefined;
2283
- trigger_context?: string | undefined;
2284
1893
  }>, "many">;
2285
1894
  }, "strip", z.ZodTypeAny, {
2286
1895
  data: {
2287
1896
  id: string;
2288
1897
  status?: string | undefined;
2289
1898
  metadata?: Record<string, unknown> | undefined;
2290
- name?: string | undefined;
2291
1899
  created_at?: string | undefined;
2292
1900
  updated_at?: string | undefined;
2293
- description?: string | undefined;
1901
+ instruction?: string | undefined;
2294
1902
  agent?: string | undefined;
2295
- event_type?: string | undefined;
2296
- lookup_key?: string | undefined;
2297
1903
  config?: string | undefined;
2298
- acl?: {
2299
- add?: {
2300
- actions: string[];
2301
- principal_type: string;
2302
- principal?: string | undefined;
2303
- }[] | undefined;
2304
- grants?: {
2305
- actions: string[];
2306
- principal_type: string;
2307
- principal?: string | undefined;
2308
- }[] | undefined;
2309
- remove?: {
2310
- principal_type: string;
2311
- principal?: string | undefined;
2312
- }[] | undefined;
2313
- } | undefined;
2314
1904
  app?: string | undefined;
2315
- handler_type?: string | undefined;
2316
- event_config?: Record<string, unknown> | undefined;
2317
- preset_config?: Record<string, unknown> | undefined;
2318
- preset_name?: string | undefined;
2319
- schedule?: string | undefined;
2320
- script?: string | undefined;
2321
- trigger_context?: string | undefined;
2322
1905
  }[];
2323
1906
  }, {
2324
1907
  data: {
2325
1908
  id: string;
2326
1909
  status?: string | undefined;
2327
1910
  metadata?: Record<string, unknown> | undefined;
2328
- name?: string | undefined;
2329
1911
  created_at?: string | undefined;
2330
1912
  updated_at?: string | undefined;
2331
- description?: string | undefined;
1913
+ instruction?: string | undefined;
2332
1914
  agent?: string | undefined;
2333
- event_type?: string | undefined;
2334
- lookup_key?: string | undefined;
2335
1915
  config?: string | undefined;
2336
- acl?: {
2337
- add?: {
2338
- actions: string[];
2339
- principal_type: string;
2340
- principal?: string | undefined;
2341
- }[] | undefined;
2342
- grants?: {
2343
- actions: string[];
2344
- principal_type: string;
2345
- principal?: string | undefined;
2346
- }[] | undefined;
2347
- remove?: {
2348
- principal_type: string;
2349
- principal?: string | undefined;
2350
- }[] | undefined;
2351
- } | undefined;
2352
1916
  app?: string | undefined;
2353
- handler_type?: string | undefined;
2354
- event_config?: Record<string, unknown> | undefined;
2355
- preset_config?: Record<string, unknown> | undefined;
2356
- preset_name?: string | undefined;
2357
- schedule?: string | undefined;
2358
- script?: string | undefined;
2359
- trigger_context?: string | undefined;
2360
- }[];
2361
- }>;
2362
- export type AgentRoutineListResponse = z.infer<typeof agentRoutineListResponseSchema>;
2363
- /** API schema for the resolved callable tools list response. */
2364
- export declare const agentImpersonationToolListSchema: z.ZodObject<{
2365
- data: z.ZodArray<z.ZodObject<{
2366
- description: z.ZodOptional<z.ZodString>;
2367
- name: z.ZodString;
2368
- parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2369
- }, "strip", z.ZodTypeAny, {
2370
- name: string;
2371
- description?: string | undefined;
2372
- parameters?: Record<string, unknown> | undefined;
2373
- }, {
2374
- name: string;
2375
- description?: string | undefined;
2376
- parameters?: Record<string, unknown> | undefined;
2377
- }>, "many">;
2378
- }, "strip", z.ZodTypeAny, {
2379
- data: {
2380
- name: string;
2381
- description?: string | undefined;
2382
- parameters?: Record<string, unknown> | undefined;
2383
- }[];
2384
- }, {
2385
- data: {
2386
- name: string;
2387
- description?: string | undefined;
2388
- parameters?: Record<string, unknown> | undefined;
2389
1917
  }[];
2390
1918
  }>;
2391
- export type AgentImpersonationToolList = z.infer<typeof agentImpersonationToolListSchema>;
2392
- /** API schema for an agent impersonation skill list response. */
2393
- export declare const agentImpersonationSkillListSchema: z.ZodObject<{
2394
- data: z.ZodArray<z.ZodObject<{
2395
- description: z.ZodOptional<z.ZodString>;
2396
- id: z.ZodString;
2397
- name: z.ZodString;
2398
- slug: z.ZodString;
2399
- }, "strip", z.ZodTypeAny, {
2400
- id: string;
2401
- name: string;
2402
- slug: string;
2403
- description?: string | undefined;
2404
- }, {
2405
- id: string;
2406
- name: string;
2407
- slug: string;
2408
- description?: string | undefined;
2409
- }>, "many">;
1919
+ export type AgentSkillList = z.infer<typeof agentSkillListSchema>;
1920
+ /** API schema for an agent tool. */
1921
+ export declare const agentToolSchema: z.ZodObject<{
1922
+ agent: z.ZodOptional<z.ZodString>;
1923
+ app: z.ZodOptional<z.ZodString>;
1924
+ builtin_tool_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1925
+ builtin_tool_key: z.ZodOptional<z.ZodString>;
1926
+ config: z.ZodOptional<z.ZodString>;
1927
+ created_at: z.ZodOptional<z.ZodString>;
1928
+ description: z.ZodOptional<z.ZodString>;
1929
+ handler_type: z.ZodOptional<z.ZodString>;
1930
+ id: z.ZodString;
1931
+ instruction: z.ZodOptional<z.ZodString>;
1932
+ kind: z.ZodOptional<z.ZodString>;
1933
+ lookup_key: z.ZodOptional<z.ZodString>;
1934
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1935
+ name: z.ZodOptional<z.ZodString>;
1936
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1937
+ parameters_config: z.ZodOptional<z.ZodString>;
1938
+ status: z.ZodOptional<z.ZodString>;
1939
+ updated_at: z.ZodOptional<z.ZodString>;
2410
1940
  }, "strip", z.ZodTypeAny, {
2411
- data: {
2412
- id: string;
2413
- name: string;
2414
- slug: string;
2415
- description?: string | undefined;
2416
- }[];
1941
+ id: string;
1942
+ status?: string | undefined;
1943
+ name?: string | undefined;
1944
+ metadata?: Record<string, unknown> | undefined;
1945
+ created_at?: string | undefined;
1946
+ updated_at?: string | undefined;
1947
+ description?: string | undefined;
1948
+ instruction?: string | undefined;
1949
+ agent?: string | undefined;
1950
+ config?: string | undefined;
1951
+ kind?: string | undefined;
1952
+ lookup_key?: string | undefined;
1953
+ app?: string | undefined;
1954
+ handler_type?: string | undefined;
1955
+ builtin_tool_config?: Record<string, unknown> | undefined;
1956
+ builtin_tool_key?: string | undefined;
1957
+ parameters?: Record<string, unknown> | undefined;
1958
+ parameters_config?: string | undefined;
2417
1959
  }, {
2418
- data: {
2419
- id: string;
2420
- name: string;
2421
- slug: string;
2422
- description?: string | undefined;
2423
- }[];
1960
+ id: string;
1961
+ status?: string | undefined;
1962
+ name?: string | undefined;
1963
+ metadata?: Record<string, unknown> | undefined;
1964
+ created_at?: string | undefined;
1965
+ updated_at?: string | undefined;
1966
+ description?: string | undefined;
1967
+ instruction?: string | undefined;
1968
+ agent?: string | undefined;
1969
+ config?: string | undefined;
1970
+ kind?: string | undefined;
1971
+ lookup_key?: string | undefined;
1972
+ app?: string | undefined;
1973
+ handler_type?: string | undefined;
1974
+ builtin_tool_config?: Record<string, unknown> | undefined;
1975
+ builtin_tool_key?: string | undefined;
1976
+ parameters?: Record<string, unknown> | undefined;
1977
+ parameters_config?: string | undefined;
2424
1978
  }>;
2425
- export type AgentImpersonationSkillList = z.infer<typeof agentImpersonationSkillListSchema>;
2426
- /** API schema for agent skills list response. */
2427
- export declare const agentSkillListSchema: z.ZodObject<{
1979
+ export type AgentTool = z.infer<typeof agentToolSchema>;
1980
+ /** List response for agent tools. */
1981
+ export declare const agentToolListResponseSchema: z.ZodObject<{
2428
1982
  data: z.ZodArray<z.ZodObject<{
2429
1983
  agent: z.ZodOptional<z.ZodString>;
2430
1984
  app: z.ZodOptional<z.ZodString>;
1985
+ builtin_tool_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1986
+ builtin_tool_key: z.ZodOptional<z.ZodString>;
2431
1987
  config: z.ZodOptional<z.ZodString>;
2432
1988
  created_at: z.ZodOptional<z.ZodString>;
1989
+ description: z.ZodOptional<z.ZodString>;
1990
+ handler_type: z.ZodOptional<z.ZodString>;
2433
1991
  id: z.ZodString;
2434
1992
  instruction: z.ZodOptional<z.ZodString>;
1993
+ kind: z.ZodOptional<z.ZodString>;
1994
+ lookup_key: z.ZodOptional<z.ZodString>;
2435
1995
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1996
+ name: z.ZodOptional<z.ZodString>;
1997
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1998
+ parameters_config: z.ZodOptional<z.ZodString>;
2436
1999
  status: z.ZodOptional<z.ZodString>;
2437
2000
  updated_at: z.ZodOptional<z.ZodString>;
2438
2001
  }, "strip", z.ZodTypeAny, {
2439
2002
  id: string;
2440
2003
  status?: string | undefined;
2004
+ name?: string | undefined;
2441
2005
  metadata?: Record<string, unknown> | undefined;
2442
2006
  created_at?: string | undefined;
2443
2007
  updated_at?: string | undefined;
2008
+ description?: string | undefined;
2009
+ instruction?: string | undefined;
2444
2010
  agent?: string | undefined;
2445
2011
  config?: string | undefined;
2012
+ kind?: string | undefined;
2013
+ lookup_key?: string | undefined;
2446
2014
  app?: string | undefined;
2447
- instruction?: string | undefined;
2015
+ handler_type?: string | undefined;
2016
+ builtin_tool_config?: Record<string, unknown> | undefined;
2017
+ builtin_tool_key?: string | undefined;
2018
+ parameters?: Record<string, unknown> | undefined;
2019
+ parameters_config?: string | undefined;
2448
2020
  }, {
2449
2021
  id: string;
2450
2022
  status?: string | undefined;
2023
+ name?: string | undefined;
2451
2024
  metadata?: Record<string, unknown> | undefined;
2452
2025
  created_at?: string | undefined;
2453
2026
  updated_at?: string | undefined;
2027
+ description?: string | undefined;
2028
+ instruction?: string | undefined;
2454
2029
  agent?: string | undefined;
2455
2030
  config?: string | undefined;
2031
+ kind?: string | undefined;
2032
+ lookup_key?: string | undefined;
2456
2033
  app?: string | undefined;
2457
- instruction?: string | undefined;
2034
+ handler_type?: string | undefined;
2035
+ builtin_tool_config?: Record<string, unknown> | undefined;
2036
+ builtin_tool_key?: string | undefined;
2037
+ parameters?: Record<string, unknown> | undefined;
2038
+ parameters_config?: string | undefined;
2458
2039
  }>, "many">;
2459
2040
  }, "strip", z.ZodTypeAny, {
2460
2041
  data: {
2461
2042
  id: string;
2462
2043
  status?: string | undefined;
2044
+ name?: string | undefined;
2463
2045
  metadata?: Record<string, unknown> | undefined;
2464
2046
  created_at?: string | undefined;
2465
2047
  updated_at?: string | undefined;
2048
+ description?: string | undefined;
2049
+ instruction?: string | undefined;
2466
2050
  agent?: string | undefined;
2467
2051
  config?: string | undefined;
2052
+ kind?: string | undefined;
2053
+ lookup_key?: string | undefined;
2468
2054
  app?: string | undefined;
2469
- instruction?: string | undefined;
2055
+ handler_type?: string | undefined;
2056
+ builtin_tool_config?: Record<string, unknown> | undefined;
2057
+ builtin_tool_key?: string | undefined;
2058
+ parameters?: Record<string, unknown> | undefined;
2059
+ parameters_config?: string | undefined;
2470
2060
  }[];
2471
2061
  }, {
2472
2062
  data: {
2473
2063
  id: string;
2474
2064
  status?: string | undefined;
2065
+ name?: string | undefined;
2475
2066
  metadata?: Record<string, unknown> | undefined;
2476
2067
  created_at?: string | undefined;
2477
2068
  updated_at?: string | undefined;
2069
+ description?: string | undefined;
2070
+ instruction?: string | undefined;
2478
2071
  agent?: string | undefined;
2479
2072
  config?: string | undefined;
2073
+ kind?: string | undefined;
2074
+ lookup_key?: string | undefined;
2480
2075
  app?: string | undefined;
2481
- instruction?: string | undefined;
2076
+ handler_type?: string | undefined;
2077
+ builtin_tool_config?: Record<string, unknown> | undefined;
2078
+ builtin_tool_key?: string | undefined;
2079
+ parameters?: Record<string, unknown> | undefined;
2080
+ parameters_config?: string | undefined;
2482
2081
  }[];
2483
2082
  }>;
2484
- export type AgentSkillList = z.infer<typeof agentSkillListSchema>;
2083
+ export type AgentToolListResponse = z.infer<typeof agentToolListResponseSchema>;
2485
2084
  //# sourceMappingURL=agents.d.ts.map