@archastro/sdk 0.2.0 → 0.5.0

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 (267) 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 +19 -13
  18. package/dist/client.d.ts.map +1 -1
  19. package/dist/client.js +33 -27
  20. package/dist/client.js.map +1 -1
  21. package/dist/index.d.ts +1 -1
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +2 -2
  24. package/dist/index.js.map +1 -1
  25. package/dist/phx_channel/channel.d.ts +10 -1
  26. package/dist/phx_channel/channel.d.ts.map +1 -1
  27. package/dist/phx_channel/channel.js +5 -5
  28. package/dist/phx_channel/channel.js.map +1 -1
  29. package/dist/phx_channel/socket.d.ts +0 -1
  30. package/dist/phx_channel/socket.d.ts.map +1 -1
  31. package/dist/phx_channel/socket.js +15 -12
  32. package/dist/phx_channel/socket.js.map +1 -1
  33. package/dist/runtime/http-client.d.ts +7 -0
  34. package/dist/runtime/http-client.d.ts.map +1 -1
  35. package/dist/runtime/http-client.js +55 -0
  36. package/dist/runtime/http-client.js.map +1 -1
  37. package/dist/types/agents.d.ts +988 -1305
  38. package/dist/types/agents.d.ts.map +1 -1
  39. package/dist/types/agents.js +108 -153
  40. package/dist/types/agents.js.map +1 -1
  41. package/dist/types/ai.d.ts +8 -76
  42. package/dist/types/ai.d.ts.map +1 -1
  43. package/dist/types/ai.js +1 -21
  44. package/dist/types/ai.js.map +1 -1
  45. package/dist/types/artifacts.d.ts +14 -93
  46. package/dist/types/artifacts.d.ts.map +1 -1
  47. package/dist/types/artifacts.js +1 -15
  48. package/dist/types/artifacts.js.map +1 -1
  49. package/dist/types/automations.d.ts +2 -68
  50. package/dist/types/automations.d.ts.map +1 -1
  51. package/dist/types/automations.js +1 -26
  52. package/dist/types/automations.js.map +1 -1
  53. package/dist/types/chat.d.ts +24 -24
  54. package/dist/types/common.d.ts +1362 -5459
  55. package/dist/types/common.d.ts.map +1 -1
  56. package/dist/types/common.js +204 -1088
  57. package/dist/types/common.js.map +1 -1
  58. package/dist/types/config.d.ts +20 -72
  59. package/dist/types/config.d.ts.map +1 -1
  60. package/dist/types/config.js +3 -25
  61. package/dist/types/config.js.map +1 -1
  62. package/dist/types/index.d.ts +1 -9
  63. package/dist/types/index.d.ts.map +1 -1
  64. package/dist/types/index.js +2 -10
  65. package/dist/types/index.js.map +1 -1
  66. package/dist/types/invites.d.ts +63 -0
  67. package/dist/types/invites.d.ts.map +1 -0
  68. package/dist/types/invites.js +18 -0
  69. package/dist/types/invites.js.map +1 -0
  70. package/dist/types/members.d.ts +30 -30
  71. package/dist/types/members.d.ts.map +1 -1
  72. package/dist/types/members.js +14 -14
  73. package/dist/types/members.js.map +1 -1
  74. package/dist/types/orgs.d.ts +60 -60
  75. package/dist/types/orgs.d.ts.map +1 -1
  76. package/dist/types/orgs.js +25 -25
  77. package/dist/types/orgs.js.map +1 -1
  78. package/dist/types/schedules.d.ts +4 -4
  79. package/dist/types/system.d.ts +2 -2
  80. package/dist/types/teams.d.ts +127 -419
  81. package/dist/types/teams.d.ts.map +1 -1
  82. package/dist/types/teams.js +5 -37
  83. package/dist/types/teams.js.map +1 -1
  84. package/dist/types/threads.d.ts +150 -780
  85. package/dist/types/threads.d.ts.map +1 -1
  86. package/dist/types/threads.js +7 -114
  87. package/dist/types/threads.js.map +1 -1
  88. package/dist/types/users.d.ts +65 -65
  89. package/dist/types/users.d.ts.map +1 -1
  90. package/dist/types/users.js +3 -15
  91. package/dist/types/users.js.map +1 -1
  92. package/dist/v1/resources/activity_feed.d.ts +83 -0
  93. package/dist/v1/resources/activity_feed.d.ts.map +1 -0
  94. package/dist/v1/resources/activity_feed.js +13 -0
  95. package/dist/v1/resources/activity_feed.js.map +1 -0
  96. package/dist/v1/resources/agent_computers.d.ts +5 -2
  97. package/dist/v1/resources/agent_computers.d.ts.map +1 -1
  98. package/dist/v1/resources/agent_computers.js +4 -4
  99. package/dist/v1/resources/agent_computers.js.map +1 -1
  100. package/dist/v1/resources/agent_installations.d.ts +13 -8
  101. package/dist/v1/resources/agent_installations.d.ts.map +1 -1
  102. package/dist/v1/resources/agent_installations.js +9 -9
  103. package/dist/v1/resources/agent_installations.js.map +1 -1
  104. package/dist/v1/resources/agent_routines.d.ts +77 -19
  105. package/dist/v1/resources/agent_routines.d.ts.map +1 -1
  106. package/dist/v1/resources/agent_routines.js +19 -27
  107. package/dist/v1/resources/agent_routines.js.map +1 -1
  108. package/dist/v1/resources/agent_sessions.d.ts +24 -6
  109. package/dist/v1/resources/agent_sessions.d.ts.map +1 -1
  110. package/dist/v1/resources/agent_sessions.js +8 -8
  111. package/dist/v1/resources/agent_sessions.js.map +1 -1
  112. package/dist/v1/resources/agent_skills.d.ts +14 -6
  113. package/dist/v1/resources/agent_skills.d.ts.map +1 -1
  114. package/dist/v1/resources/agent_skills.js +10 -10
  115. package/dist/v1/resources/agent_skills.js.map +1 -1
  116. package/dist/v1/resources/agent_tools.d.ts +17 -11
  117. package/dist/v1/resources/agent_tools.d.ts.map +1 -1
  118. package/dist/v1/resources/agent_tools.js +10 -18
  119. package/dist/v1/resources/agent_tools.js.map +1 -1
  120. package/dist/v1/resources/agents.d.ts +200 -46
  121. package/dist/v1/resources/agents.d.ts.map +1 -1
  122. package/dist/v1/resources/agents.js +34 -58
  123. package/dist/v1/resources/agents.js.map +1 -1
  124. package/dist/v1/resources/ai.d.ts +71 -17
  125. package/dist/v1/resources/ai.d.ts.map +1 -1
  126. package/dist/v1/resources/ai.js +6 -22
  127. package/dist/v1/resources/ai.js.map +1 -1
  128. package/dist/v1/resources/artifacts.d.ts +15 -10
  129. package/dist/v1/resources/artifacts.d.ts.map +1 -1
  130. package/dist/v1/resources/artifacts.js +6 -14
  131. package/dist/v1/resources/artifacts.js.map +1 -1
  132. package/dist/v1/resources/automations.d.ts +4 -1
  133. package/dist/v1/resources/automations.d.ts.map +1 -1
  134. package/dist/v1/resources/automations.js +1 -1
  135. package/dist/v1/resources/automations.js.map +1 -1
  136. package/dist/v1/resources/config.d.ts +99 -63
  137. package/dist/v1/resources/config.d.ts.map +1 -1
  138. package/dist/v1/resources/config.js +30 -54
  139. package/dist/v1/resources/config.js.map +1 -1
  140. package/dist/v1/resources/custom_objects.d.ts +5 -1
  141. package/dist/v1/resources/custom_objects.d.ts.map +1 -1
  142. package/dist/v1/resources/custom_objects.js +1 -1
  143. package/dist/v1/resources/custom_objects.js.map +1 -1
  144. package/dist/v1/resources/index.d.ts +16 -13
  145. package/dist/v1/resources/index.d.ts.map +1 -1
  146. package/dist/v1/resources/index.js +17 -14
  147. package/dist/v1/resources/index.js.map +1 -1
  148. package/dist/v1/resources/invites.d.ts +10 -0
  149. package/dist/v1/resources/invites.d.ts.map +1 -0
  150. package/dist/v1/resources/invites.js +13 -0
  151. package/dist/v1/resources/invites.js.map +1 -0
  152. package/dist/v1/resources/kv.d.ts +27 -0
  153. package/dist/v1/resources/kv.d.ts.map +1 -0
  154. package/dist/v1/resources/kv.js +25 -0
  155. package/dist/v1/resources/kv.js.map +1 -0
  156. package/dist/v1/resources/orgs.js +1 -1
  157. package/dist/v1/resources/orgs.js.map +1 -1
  158. package/dist/v1/resources/team_memberships.d.ts +1 -1
  159. package/dist/v1/resources/team_memberships.d.ts.map +1 -1
  160. package/dist/v1/resources/team_memberships.js +4 -4
  161. package/dist/v1/resources/team_memberships.js.map +1 -1
  162. package/dist/v1/resources/teams.d.ts +135 -59
  163. package/dist/v1/resources/teams.d.ts.map +1 -1
  164. package/dist/v1/resources/teams.js +29 -37
  165. package/dist/v1/resources/teams.js.map +1 -1
  166. package/dist/v1/resources/thread_messages.d.ts +10 -11
  167. package/dist/v1/resources/thread_messages.d.ts.map +1 -1
  168. package/dist/v1/resources/thread_messages.js +4 -12
  169. package/dist/v1/resources/thread_messages.js.map +1 -1
  170. package/dist/v1/resources/threads.d.ts +97 -101
  171. package/dist/v1/resources/threads.d.ts.map +1 -1
  172. package/dist/v1/resources/threads.js +22 -70
  173. package/dist/v1/resources/threads.js.map +1 -1
  174. package/dist/v1/resources/users.d.ts +57 -35
  175. package/dist/v1/resources/users.d.ts.map +1 -1
  176. package/dist/v1/resources/users.js +13 -34
  177. package/dist/v1/resources/users.js.map +1 -1
  178. package/dist/v1.d.ts +19 -13
  179. package/dist/v1.d.ts.map +1 -1
  180. package/dist/v1.js +36 -27
  181. package/dist/v1.js.map +1 -1
  182. package/package.json +6 -2
  183. package/LICENSE +0 -21
  184. package/dist/types/api.d.ts +0 -169
  185. package/dist/types/api.d.ts.map +0 -1
  186. package/dist/types/api.js +0 -49
  187. package/dist/types/api.js.map +0 -1
  188. package/dist/types/device.d.ts +0 -26
  189. package/dist/types/device.d.ts.map +0 -1
  190. package/dist/types/device.js +0 -14
  191. package/dist/types/device.js.map +0 -1
  192. package/dist/types/invite.d.ts +0 -17
  193. package/dist/types/invite.d.ts.map +0 -1
  194. package/dist/types/invite.js +0 -11
  195. package/dist/types/invite.js.map +0 -1
  196. package/dist/types/me.d.ts +0 -257
  197. package/dist/types/me.d.ts.map +0 -1
  198. package/dist/types/me.js +0 -42
  199. package/dist/types/me.js.map +0 -1
  200. package/dist/types/messages.d.ts +0 -517
  201. package/dist/types/messages.d.ts.map +0 -1
  202. package/dist/types/messages.js +0 -50
  203. package/dist/types/messages.js.map +0 -1
  204. package/dist/types/oauth.d.ts +0 -206
  205. package/dist/types/oauth.d.ts.map +0 -1
  206. package/dist/types/oauth.js +0 -51
  207. package/dist/types/oauth.js.map +0 -1
  208. package/dist/types/picture.d.ts +0 -20
  209. package/dist/types/picture.d.ts.map +0 -1
  210. package/dist/types/picture.js +0 -14
  211. package/dist/types/picture.js.map +0 -1
  212. package/dist/types/profile.d.ts +0 -17
  213. package/dist/types/profile.d.ts.map +0 -1
  214. package/dist/types/profile.js +0 -11
  215. package/dist/types/profile.js.map +0 -1
  216. package/dist/types/runs.d.ts +0 -46
  217. package/dist/types/runs.d.ts.map +0 -1
  218. package/dist/types/runs.js +0 -15
  219. package/dist/types/runs.js.map +0 -1
  220. package/dist/v1/resources/ai_chat_completions.d.ts +0 -49
  221. package/dist/v1/resources/ai_chat_completions.d.ts.map +0 -1
  222. package/dist/v1/resources/ai_chat_completions.js +0 -14
  223. package/dist/v1/resources/ai_chat_completions.js.map +0 -1
  224. package/dist/v1/resources/ai_chat_models.d.ts +0 -12
  225. package/dist/v1/resources/ai_chat_models.d.ts.map +0 -1
  226. package/dist/v1/resources/ai_chat_models.js +0 -14
  227. package/dist/v1/resources/ai_chat_models.js.map +0 -1
  228. package/dist/v1/resources/ai_image_edits.d.ts +0 -20
  229. package/dist/v1/resources/ai_image_edits.d.ts.map +0 -1
  230. package/dist/v1/resources/ai_image_edits.js +0 -14
  231. package/dist/v1/resources/ai_image_edits.js.map +0 -1
  232. package/dist/v1/resources/ai_image_generations.d.ts +0 -20
  233. package/dist/v1/resources/ai_image_generations.d.ts.map +0 -1
  234. package/dist/v1/resources/ai_image_generations.js +0 -14
  235. package/dist/v1/resources/ai_image_generations.js.map +0 -1
  236. package/dist/v1/resources/ai_image_models.d.ts +0 -12
  237. package/dist/v1/resources/ai_image_models.d.ts.map +0 -1
  238. package/dist/v1/resources/ai_image_models.js +0 -14
  239. package/dist/v1/resources/ai_image_models.js.map +0 -1
  240. package/dist/v1/resources/api.d.ts +0 -1026
  241. package/dist/v1/resources/api.d.ts.map +0 -1
  242. package/dist/v1/resources/api.js +0 -944
  243. package/dist/v1/resources/api.js.map +0 -1
  244. package/dist/v1/resources/completions.d.ts +0 -49
  245. package/dist/v1/resources/completions.d.ts.map +0 -1
  246. package/dist/v1/resources/completions.js +0 -14
  247. package/dist/v1/resources/completions.js.map +0 -1
  248. package/dist/v1/resources/edits.d.ts +0 -20
  249. package/dist/v1/resources/edits.d.ts.map +0 -1
  250. package/dist/v1/resources/edits.js +0 -14
  251. package/dist/v1/resources/edits.js.map +0 -1
  252. package/dist/v1/resources/generations.d.ts +0 -20
  253. package/dist/v1/resources/generations.d.ts.map +0 -1
  254. package/dist/v1/resources/generations.js +0 -14
  255. package/dist/v1/resources/generations.js.map +0 -1
  256. package/dist/v1/resources/invoke.d.ts +0 -29
  257. package/dist/v1/resources/invoke.d.ts.map +0 -1
  258. package/dist/v1/resources/invoke.js +0 -23
  259. package/dist/v1/resources/invoke.js.map +0 -1
  260. package/dist/v1/resources/models.d.ts +0 -12
  261. package/dist/v1/resources/models.d.ts.map +0 -1
  262. package/dist/v1/resources/models.js +0 -14
  263. package/dist/v1/resources/models.js.map +0 -1
  264. package/dist/v1/resources/oauth.d.ts +0 -25
  265. package/dist/v1/resources/oauth.d.ts.map +0 -1
  266. package/dist/v1/resources/oauth.js +0 -41
  267. package/dist/v1/resources/oauth.js.map +0 -1
@@ -87,13 +87,13 @@ export declare const agentSchema: z.ZodObject<{
87
87
  }, "strip", z.ZodTypeAny, {
88
88
  id: string;
89
89
  email?: string | undefined;
90
- created_at?: string | undefined;
91
- updated_at?: string | undefined;
92
90
  name?: string | undefined;
91
+ metadata?: Record<string, unknown> | undefined;
93
92
  org?: string | undefined;
94
93
  sandbox?: string | undefined;
95
- metadata?: Record<string, unknown> | undefined;
94
+ created_at?: string | undefined;
96
95
  user?: string | undefined;
96
+ updated_at?: string | undefined;
97
97
  team?: string | undefined;
98
98
  lookup_key?: string | undefined;
99
99
  acl?: {
@@ -119,13 +119,13 @@ export declare const agentSchema: z.ZodObject<{
119
119
  }, {
120
120
  id: string;
121
121
  email?: string | undefined;
122
- created_at?: string | undefined;
123
- updated_at?: string | undefined;
124
122
  name?: string | undefined;
123
+ metadata?: Record<string, unknown> | undefined;
125
124
  org?: string | undefined;
126
125
  sandbox?: string | undefined;
127
- metadata?: Record<string, unknown> | undefined;
126
+ created_at?: string | undefined;
128
127
  user?: string | undefined;
128
+ updated_at?: string | undefined;
129
129
  team?: string | undefined;
130
130
  lookup_key?: string | undefined;
131
131
  acl?: {
@@ -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
@@ -169,17 +301,17 @@ export declare const agentExportSchema: z.ZodObject<{
169
301
  }, "strip", z.ZodTypeAny, {
170
302
  id: string;
171
303
  version_number: number;
172
- created_at?: string | undefined;
173
304
  org?: string | undefined;
174
305
  sandbox?: string | undefined;
306
+ created_at?: string | undefined;
175
307
  data?: Record<string, unknown> | undefined;
176
308
  change_description?: string | undefined;
177
309
  }, {
178
310
  id: string;
179
311
  version_number: number;
180
- created_at?: string | undefined;
181
312
  org?: string | undefined;
182
313
  sandbox?: string | undefined;
314
+ created_at?: string | undefined;
183
315
  data?: Record<string, unknown> | undefined;
184
316
  change_description?: string | undefined;
185
317
  }>>;
@@ -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>;
@@ -199,47 +333,51 @@ export declare const agentExportSchema: z.ZodObject<{
199
333
  id: string;
200
334
  kind: string;
201
335
  mime_type?: string | undefined;
202
- created_at?: string | undefined;
203
- updated_at?: string | undefined;
204
336
  org?: string | undefined;
205
337
  sandbox?: string | undefined;
338
+ created_at?: string | undefined;
206
339
  user?: string | undefined;
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;
213
- created_at?: string | undefined;
214
345
  org?: string | undefined;
215
346
  sandbox?: string | undefined;
347
+ created_at?: string | undefined;
216
348
  data?: Record<string, unknown> | undefined;
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;
223
359
  kind: string;
224
360
  mime_type?: string | undefined;
225
- created_at?: string | undefined;
226
- updated_at?: string | undefined;
227
361
  org?: string | undefined;
228
362
  sandbox?: string | undefined;
363
+ created_at?: string | undefined;
229
364
  user?: string | undefined;
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;
236
- created_at?: string | undefined;
237
370
  org?: string | undefined;
238
371
  sandbox?: string | undefined;
372
+ created_at?: string | undefined;
239
373
  data?: Record<string, unknown> | undefined;
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>;
@@ -248,24 +386,26 @@ export declare const agentExportSchema: z.ZodObject<{
248
386
  id: string;
249
387
  kind: string;
250
388
  mime_type?: string | undefined;
251
- created_at?: string | undefined;
252
- updated_at?: string | undefined;
253
389
  org?: string | undefined;
254
390
  sandbox?: string | undefined;
391
+ created_at?: string | undefined;
255
392
  user?: string | undefined;
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;
262
- created_at?: string | undefined;
263
398
  org?: string | undefined;
264
399
  sandbox?: string | undefined;
400
+ created_at?: string | undefined;
265
401
  data?: Record<string, unknown> | undefined;
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>;
@@ -274,441 +414,33 @@ export declare const agentExportSchema: z.ZodObject<{
274
414
  id: string;
275
415
  kind: string;
276
416
  mime_type?: string | undefined;
277
- created_at?: string | undefined;
278
- updated_at?: string | undefined;
279
417
  org?: string | undefined;
280
418
  sandbox?: string | undefined;
419
+ created_at?: string | undefined;
281
420
  user?: string | undefined;
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;
288
- created_at?: string | undefined;
289
426
  org?: string | undefined;
290
427
  sandbox?: string | undefined;
428
+ created_at?: string | undefined;
291
429
  data?: Record<string, unknown> | undefined;
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
- created_at?: string | undefined;
324
- name?: string | undefined;
325
- metadata?: Record<string, unknown> | 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
- created_at?: string | undefined;
342
- name?: string | undefined;
343
- metadata?: Record<string, unknown> | 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
- created_at?: string | undefined;
382
- name?: string | undefined;
383
- metadata?: Record<string, unknown> | 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
- created_at?: string | undefined;
400
- name?: string | undefined;
401
- metadata?: Record<string, unknown> | 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
- created_at?: string | undefined;
420
- name?: string | undefined;
421
- metadata?: Record<string, unknown> | 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
- created_at?: string | undefined;
440
- name?: string | undefined;
441
- metadata?: Record<string, unknown> | 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
- created_at?: string | undefined;
492
- updated_at?: string | undefined;
493
- name?: string | undefined;
494
- metadata?: Record<string, unknown> | 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
- created_at?: string | undefined;
511
- updated_at?: string | undefined;
512
- name?: string | undefined;
513
- metadata?: Record<string, unknown> | 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
- created_at?: string | undefined;
543
- updated_at?: string | undefined;
544
- metadata?: Record<string, unknown> | 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
- created_at?: string | undefined;
553
- updated_at?: string | undefined;
554
- metadata?: Record<string, unknown> | 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
- created_at?: string | undefined;
581
- updated_at?: string | undefined;
582
- name?: string | undefined;
583
- metadata?: Record<string, unknown> | 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
- created_at?: string | undefined;
596
- updated_at?: string | undefined;
597
- name?: string | undefined;
598
- metadata?: Record<string, unknown> | 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
- created_at?: string | undefined;
619
- name?: string | undefined;
620
- org?: string | undefined;
621
- sandbox?: string | undefined;
622
- last_interaction_at?: string | undefined;
623
- session?: string | undefined;
624
- }, {
625
- created_at?: string | undefined;
626
- name?: string | undefined;
627
- org?: string | undefined;
628
- sandbox?: string | undefined;
629
- last_interaction_at?: string | undefined;
630
- session?: string | undefined;
631
- }>;
632
- export type AgentConversationHistory = z.infer<typeof agentConversationHistorySchema>;
633
- /** API schema for an agent impersonation skill file entry. */
634
- export declare const agentImpersonationSkillFileSchema: z.ZodObject<{
635
- content_type: z.ZodOptional<z.ZodString>;
636
- download_url: z.ZodString;
637
- path: z.ZodString;
638
- }, "strip", z.ZodTypeAny, {
639
- path: string;
640
- download_url: string;
641
- content_type?: string | undefined;
642
- }, {
643
- path: string;
644
- download_url: string;
645
- content_type?: string | undefined;
646
- }>;
647
- export type AgentImpersonationSkillFile = z.infer<typeof agentImpersonationSkillFileSchema>;
648
- /** API schema for an agent impersonation skill manifest. */
649
- export declare const agentImpersonationSkillManifestSchema: z.ZodObject<{
650
- description: z.ZodOptional<z.ZodString>;
651
- entrypoint: z.ZodString;
652
- files: z.ZodArray<z.ZodObject<{
653
- content_type: z.ZodOptional<z.ZodString>;
654
- download_url: z.ZodString;
655
- path: z.ZodString;
656
- }, "strip", z.ZodTypeAny, {
657
- path: string;
658
- download_url: string;
659
- content_type?: string | undefined;
660
- }, {
661
- path: string;
662
- download_url: string;
663
- content_type?: string | undefined;
664
- }>, "many">;
665
- id: z.ZodString;
666
- name: z.ZodString;
667
- slug: z.ZodString;
668
- }, "strip", z.ZodTypeAny, {
669
- id: string;
670
- name: string;
671
- slug: string;
672
- files: {
673
- path: string;
674
- download_url: string;
675
- content_type?: string | undefined;
676
- }[];
677
- entrypoint: string;
678
- description?: string | undefined;
679
- }, {
680
- id: string;
681
- name: string;
682
- slug: string;
683
- files: {
684
- path: string;
685
- download_url: string;
686
- content_type?: string | undefined;
687
- }[];
688
- entrypoint: string;
689
- description?: string | undefined;
690
- }>;
691
- export type AgentImpersonationSkillManifest = z.infer<typeof agentImpersonationSkillManifestSchema>;
692
- /** API schema for an agent impersonation skill summary. */
693
- export declare const agentImpersonationSkillSummarySchema: z.ZodObject<{
694
- description: z.ZodOptional<z.ZodString>;
695
- id: z.ZodString;
696
- name: z.ZodString;
697
- slug: z.ZodString;
698
- }, "strip", z.ZodTypeAny, {
699
- id: string;
700
- name: string;
701
- slug: string;
702
- description?: string | undefined;
703
- }, {
704
- id: string;
705
- name: string;
706
- slug: string;
707
- description?: string | undefined;
708
- }>;
709
- export type AgentImpersonationSkillSummary = z.infer<typeof agentImpersonationSkillSummarySchema>;
710
- /** Paginated list response for agents. */
711
- export declare const agentListResponseSchema: z.ZodObject<{
442
+ /** Paginated list response for agents. */
443
+ export declare const agentListResponseSchema: z.ZodObject<{
712
444
  data: z.ZodArray<z.ZodObject<{
713
445
  acl: z.ZodOptional<z.ZodObject<{
714
446
  add: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -796,13 +528,13 @@ export declare const agentListResponseSchema: z.ZodObject<{
796
528
  }, "strip", z.ZodTypeAny, {
797
529
  id: string;
798
530
  email?: string | undefined;
799
- created_at?: string | undefined;
800
- updated_at?: string | undefined;
801
531
  name?: string | undefined;
532
+ metadata?: Record<string, unknown> | undefined;
802
533
  org?: string | undefined;
803
534
  sandbox?: string | undefined;
804
- metadata?: Record<string, unknown> | undefined;
535
+ created_at?: string | undefined;
805
536
  user?: string | undefined;
537
+ updated_at?: string | undefined;
806
538
  team?: string | undefined;
807
539
  lookup_key?: string | undefined;
808
540
  acl?: {
@@ -828,13 +560,13 @@ export declare const agentListResponseSchema: z.ZodObject<{
828
560
  }, {
829
561
  id: string;
830
562
  email?: string | undefined;
831
- created_at?: string | undefined;
832
- updated_at?: string | undefined;
833
563
  name?: string | undefined;
564
+ metadata?: Record<string, unknown> | undefined;
834
565
  org?: string | undefined;
835
566
  sandbox?: string | undefined;
836
- metadata?: Record<string, unknown> | undefined;
567
+ created_at?: string | undefined;
837
568
  user?: string | undefined;
569
+ updated_at?: string | undefined;
838
570
  team?: string | undefined;
839
571
  lookup_key?: string | undefined;
840
572
  acl?: {
@@ -868,13 +600,13 @@ export declare const agentListResponseSchema: z.ZodObject<{
868
600
  data: {
869
601
  id: string;
870
602
  email?: string | undefined;
871
- created_at?: string | undefined;
872
- updated_at?: string | undefined;
873
603
  name?: string | undefined;
604
+ metadata?: Record<string, unknown> | undefined;
874
605
  org?: string | undefined;
875
606
  sandbox?: string | undefined;
876
- metadata?: Record<string, unknown> | undefined;
607
+ created_at?: string | undefined;
877
608
  user?: string | undefined;
609
+ updated_at?: string | undefined;
878
610
  team?: string | undefined;
879
611
  lookup_key?: string | undefined;
880
612
  acl?: {
@@ -908,13 +640,13 @@ export declare const agentListResponseSchema: z.ZodObject<{
908
640
  data: {
909
641
  id: string;
910
642
  email?: string | undefined;
911
- created_at?: string | undefined;
912
- updated_at?: string | undefined;
913
643
  name?: string | undefined;
644
+ metadata?: Record<string, unknown> | undefined;
914
645
  org?: string | undefined;
915
646
  sandbox?: string | undefined;
916
- metadata?: Record<string, unknown> | undefined;
647
+ created_at?: string | undefined;
917
648
  user?: string | undefined;
649
+ updated_at?: string | undefined;
918
650
  team?: string | undefined;
919
651
  lookup_key?: string | undefined;
920
652
  acl?: {
@@ -946,169 +678,8 @@ export declare const agentListResponseSchema: z.ZodObject<{
946
678
  total_pages?: number | undefined;
947
679
  }>;
948
680
  export type AgentListResponse = z.infer<typeof agentListResponseSchema>;
949
- /** List response for agent tools. */
950
- export declare const agentToolListResponseSchema: z.ZodObject<{
951
- data: z.ZodArray<z.ZodObject<{
952
- agent: z.ZodOptional<z.ZodString>;
953
- app: z.ZodOptional<z.ZodString>;
954
- builtin_tool_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
955
- builtin_tool_key: z.ZodOptional<z.ZodString>;
956
- config: z.ZodOptional<z.ZodString>;
957
- created_at: z.ZodOptional<z.ZodString>;
958
- description: z.ZodOptional<z.ZodString>;
959
- handler_type: z.ZodOptional<z.ZodString>;
960
- id: z.ZodString;
961
- instruction: z.ZodOptional<z.ZodString>;
962
- kind: z.ZodOptional<z.ZodString>;
963
- lookup_key: z.ZodOptional<z.ZodString>;
964
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
965
- name: z.ZodOptional<z.ZodString>;
966
- parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
967
- parameters_config: z.ZodOptional<z.ZodString>;
968
- status: z.ZodOptional<z.ZodString>;
969
- updated_at: z.ZodOptional<z.ZodString>;
970
- }, "strip", z.ZodTypeAny, {
971
- id: string;
972
- status?: string | undefined;
973
- created_at?: string | undefined;
974
- updated_at?: string | undefined;
975
- name?: string | undefined;
976
- metadata?: Record<string, unknown> | undefined;
977
- description?: string | undefined;
978
- agent?: string | undefined;
979
- lookup_key?: string | undefined;
980
- kind?: string | undefined;
981
- config?: string | undefined;
982
- app?: string | undefined;
983
- instruction?: string | undefined;
984
- parameters?: Record<string, unknown> | undefined;
985
- builtin_tool_config?: Record<string, unknown> | undefined;
986
- builtin_tool_key?: string | undefined;
987
- handler_type?: string | undefined;
988
- parameters_config?: string | undefined;
989
- }, {
990
- id: string;
991
- status?: string | undefined;
992
- created_at?: string | undefined;
993
- updated_at?: string | undefined;
994
- name?: string | undefined;
995
- metadata?: Record<string, unknown> | undefined;
996
- description?: string | undefined;
997
- agent?: string | undefined;
998
- lookup_key?: string | undefined;
999
- kind?: string | undefined;
1000
- config?: string | undefined;
1001
- app?: string | undefined;
1002
- instruction?: string | undefined;
1003
- parameters?: Record<string, unknown> | undefined;
1004
- builtin_tool_config?: Record<string, unknown> | undefined;
1005
- builtin_tool_key?: string | undefined;
1006
- handler_type?: string | undefined;
1007
- parameters_config?: string | undefined;
1008
- }>, "many">;
1009
- }, "strip", z.ZodTypeAny, {
1010
- data: {
1011
- id: string;
1012
- status?: string | undefined;
1013
- created_at?: string | undefined;
1014
- updated_at?: string | undefined;
1015
- name?: string | undefined;
1016
- metadata?: Record<string, unknown> | undefined;
1017
- description?: string | undefined;
1018
- agent?: string | undefined;
1019
- lookup_key?: string | undefined;
1020
- kind?: string | undefined;
1021
- config?: string | undefined;
1022
- app?: string | undefined;
1023
- instruction?: string | undefined;
1024
- parameters?: Record<string, unknown> | undefined;
1025
- builtin_tool_config?: Record<string, unknown> | undefined;
1026
- builtin_tool_key?: string | undefined;
1027
- handler_type?: string | undefined;
1028
- parameters_config?: string | undefined;
1029
- }[];
1030
- }, {
1031
- data: {
1032
- id: string;
1033
- status?: string | undefined;
1034
- created_at?: string | undefined;
1035
- updated_at?: string | undefined;
1036
- name?: string | undefined;
1037
- metadata?: Record<string, unknown> | undefined;
1038
- description?: string | undefined;
1039
- agent?: string | undefined;
1040
- lookup_key?: string | undefined;
1041
- kind?: string | undefined;
1042
- config?: string | undefined;
1043
- app?: string | undefined;
1044
- instruction?: string | undefined;
1045
- parameters?: Record<string, unknown> | undefined;
1046
- builtin_tool_config?: Record<string, unknown> | undefined;
1047
- builtin_tool_key?: string | undefined;
1048
- handler_type?: string | undefined;
1049
- parameters_config?: string | undefined;
1050
- }[];
1051
- }>;
1052
- export type AgentToolListResponse = z.infer<typeof agentToolListResponseSchema>;
1053
- /** API schema for an agent schedule. */
1054
- export declare const agentScheduleSchema: z.ZodObject<{
1055
- agent: z.ZodOptional<z.ZodString>;
1056
- app: z.ZodOptional<z.ZodString>;
1057
- created_at: z.ZodOptional<z.ZodString>;
1058
- cron_expression: z.ZodOptional<z.ZodString>;
1059
- id: z.ZodString;
1060
- instructions: z.ZodOptional<z.ZodString>;
1061
- last_run_at: z.ZodOptional<z.ZodString>;
1062
- max_runs: z.ZodOptional<z.ZodNumber>;
1063
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1064
- next_run_at: z.ZodOptional<z.ZodString>;
1065
- run_count: z.ZodOptional<z.ZodNumber>;
1066
- schedule_type: z.ZodOptional<z.ZodString>;
1067
- scheduled_at: z.ZodOptional<z.ZodString>;
1068
- status: z.ZodOptional<z.ZodString>;
1069
- thread: z.ZodOptional<z.ZodString>;
1070
- timezone: z.ZodOptional<z.ZodString>;
1071
- updated_at: z.ZodOptional<z.ZodString>;
1072
- }, "strip", z.ZodTypeAny, {
1073
- id: string;
1074
- timezone?: string | undefined;
1075
- status?: string | undefined;
1076
- created_at?: string | undefined;
1077
- updated_at?: string | undefined;
1078
- metadata?: Record<string, unknown> | undefined;
1079
- thread?: string | undefined;
1080
- agent?: string | undefined;
1081
- app?: string | undefined;
1082
- instructions?: string | undefined;
1083
- cron_expression?: string | undefined;
1084
- last_run_at?: string | undefined;
1085
- max_runs?: number | undefined;
1086
- next_run_at?: string | undefined;
1087
- run_count?: number | undefined;
1088
- schedule_type?: string | undefined;
1089
- scheduled_at?: string | undefined;
1090
- }, {
1091
- id: string;
1092
- timezone?: string | undefined;
1093
- status?: string | undefined;
1094
- created_at?: string | undefined;
1095
- updated_at?: string | undefined;
1096
- metadata?: Record<string, unknown> | undefined;
1097
- thread?: string | undefined;
1098
- agent?: string | undefined;
1099
- app?: string | undefined;
1100
- instructions?: string | undefined;
1101
- cron_expression?: string | undefined;
1102
- last_run_at?: string | undefined;
1103
- max_runs?: number | undefined;
1104
- next_run_at?: string | undefined;
1105
- run_count?: number | undefined;
1106
- schedule_type?: string | undefined;
1107
- scheduled_at?: string | undefined;
1108
- }>;
1109
- export type AgentSchedule = z.infer<typeof agentScheduleSchema>;
1110
- /** API schema for an agent routine run. */
1111
- export declare const agentRoutineRunSchema: z.ZodObject<{
681
+ /** API schema for an agent routine. */
682
+ export declare const agentRoutineSchema: z.ZodObject<{
1112
683
  acl: z.ZodOptional<z.ZodObject<{
1113
684
  add: z.ZodOptional<z.ZodArray<z.ZodObject<{
1114
685
  actions: z.ZodArray<z.ZodString, "many">;
@@ -1179,39 +750,63 @@ export declare const agentRoutineRunSchema: z.ZodObject<{
1179
750
  }>>;
1180
751
  agent: z.ZodOptional<z.ZodString>;
1181
752
  app: z.ZodOptional<z.ZodString>;
753
+ config: z.ZodOptional<z.ZodString>;
1182
754
  created_at: z.ZodOptional<z.ZodString>;
1183
- duration_ms: z.ZodOptional<z.ZodNumber>;
1184
- event_id: 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>;
1185
759
  id: z.ZodString;
760
+ lookup_key: z.ZodOptional<z.ZodString>;
1186
761
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1187
- payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1188
- result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1189
- routine: z.ZodOptional<z.ZodString>;
1190
- status: z.ZodOptional<z.ZodString>;
1191
- structured_response: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1192
- updated_at: z.ZodOptional<z.ZodString>;
1193
- worker: z.ZodOptional<z.ZodObject<{
1194
- attempt: z.ZodNumber;
1195
- max_attempts: z.ZodNumber;
1196
- status: z.ZodString;
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">>;
1197
775
  }, "strip", z.ZodTypeAny, {
1198
- status: string;
1199
- attempt: number;
1200
- max_attempts: number;
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;
1201
783
  }, {
1202
- status: string;
1203
- attempt: number;
1204
- max_attempts: number;
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;
1205
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>;
1206
799
  }, "strip", z.ZodTypeAny, {
1207
800
  id: string;
1208
801
  status?: string | undefined;
802
+ name?: string | undefined;
803
+ metadata?: Record<string, unknown> | undefined;
1209
804
  created_at?: string | undefined;
1210
805
  updated_at?: string | undefined;
1211
- metadata?: Record<string, unknown> | undefined;
806
+ description?: string | undefined;
1212
807
  agent?: string | undefined;
1213
- payload?: Record<string, unknown> | undefined;
1214
- duration_ms?: number | undefined;
808
+ config?: string | undefined;
809
+ lookup_key?: string | undefined;
1215
810
  acl?: {
1216
811
  add?: {
1217
812
  actions: string[];
@@ -1229,24 +824,34 @@ export declare const agentRoutineRunSchema: z.ZodObject<{
1229
824
  }[] | undefined;
1230
825
  } | undefined;
1231
826
  app?: string | undefined;
1232
- event_id?: string | undefined;
1233
- result?: Record<string, unknown> | undefined;
1234
- routine?: string | undefined;
1235
- structured_response?: Record<string, unknown> | undefined;
1236
- worker?: {
1237
- status: string;
1238
- attempt: number;
1239
- max_attempts: number;
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;
1240
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;
1241
844
  }, {
1242
845
  id: string;
1243
846
  status?: string | undefined;
847
+ name?: string | undefined;
848
+ metadata?: Record<string, unknown> | undefined;
1244
849
  created_at?: string | undefined;
1245
850
  updated_at?: string | undefined;
1246
- metadata?: Record<string, unknown> | undefined;
851
+ description?: string | undefined;
1247
852
  agent?: string | undefined;
1248
- payload?: Record<string, unknown> | undefined;
1249
- duration_ms?: number | undefined;
853
+ config?: string | undefined;
854
+ lookup_key?: string | undefined;
1250
855
  acl?: {
1251
856
  add?: {
1252
857
  actions: string[];
@@ -1264,21 +869,27 @@ export declare const agentRoutineRunSchema: z.ZodObject<{
1264
869
  }[] | undefined;
1265
870
  } | undefined;
1266
871
  app?: string | undefined;
1267
- event_id?: string | undefined;
1268
- result?: Record<string, unknown> | undefined;
1269
- routine?: string | undefined;
1270
- structured_response?: Record<string, unknown> | undefined;
1271
- worker?: {
1272
- status: string;
1273
- attempt: number;
1274
- max_attempts: number;
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;
1275
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;
1276
889
  }>;
1277
- export type AgentRoutineRun = z.infer<typeof agentRoutineRunSchema>;
1278
- /** Cursor-paginated list response for agent routine runs. */
1279
- export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
1280
- after_cursor: z.ZodOptional<z.ZodString>;
1281
- before_cursor: z.ZodOptional<z.ZodString>;
890
+ export type AgentRoutine = z.infer<typeof agentRoutineSchema>;
891
+ /** List response for agent routines. */
892
+ export declare const agentRoutineListResponseSchema: z.ZodObject<{
1282
893
  data: z.ZodArray<z.ZodObject<{
1283
894
  acl: z.ZodOptional<z.ZodObject<{
1284
895
  add: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1350,39 +961,63 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
1350
961
  }>>;
1351
962
  agent: z.ZodOptional<z.ZodString>;
1352
963
  app: z.ZodOptional<z.ZodString>;
964
+ config: z.ZodOptional<z.ZodString>;
1353
965
  created_at: z.ZodOptional<z.ZodString>;
1354
- duration_ms: z.ZodOptional<z.ZodNumber>;
1355
- event_id: z.ZodOptional<z.ZodString>;
966
+ description: z.ZodOptional<z.ZodString>;
967
+ event_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
968
+ event_type: z.ZodOptional<z.ZodString>;
969
+ handler_type: z.ZodOptional<z.ZodString>;
1356
970
  id: z.ZodString;
971
+ lookup_key: z.ZodOptional<z.ZodString>;
1357
972
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1358
- payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1359
- result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1360
- routine: z.ZodOptional<z.ZodString>;
1361
- status: z.ZodOptional<z.ZodString>;
1362
- structured_response: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1363
- updated_at: z.ZodOptional<z.ZodString>;
1364
- worker: z.ZodOptional<z.ZodObject<{
1365
- attempt: z.ZodNumber;
1366
- max_attempts: z.ZodNumber;
1367
- status: z.ZodString;
973
+ name: 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">>;
1368
986
  }, "strip", z.ZodTypeAny, {
1369
- status: string;
1370
- attempt: number;
1371
- max_attempts: number;
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;
1372
994
  }, {
1373
- status: string;
1374
- attempt: number;
1375
- max_attempts: number;
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;
1376
1002
  }>>;
1003
+ preset_name: z.ZodOptional<z.ZodString>;
1004
+ schedule: z.ZodOptional<z.ZodString>;
1005
+ script: z.ZodOptional<z.ZodString>;
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>;
1009
+ updated_at: z.ZodOptional<z.ZodString>;
1377
1010
  }, "strip", z.ZodTypeAny, {
1378
1011
  id: string;
1379
1012
  status?: string | undefined;
1013
+ name?: string | undefined;
1014
+ metadata?: Record<string, unknown> | undefined;
1380
1015
  created_at?: string | undefined;
1381
1016
  updated_at?: string | undefined;
1382
- metadata?: Record<string, unknown> | undefined;
1017
+ description?: string | undefined;
1383
1018
  agent?: string | undefined;
1384
- payload?: Record<string, unknown> | undefined;
1385
- duration_ms?: number | undefined;
1019
+ config?: string | undefined;
1020
+ lookup_key?: string | undefined;
1386
1021
  acl?: {
1387
1022
  add?: {
1388
1023
  actions: string[];
@@ -1400,24 +1035,34 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
1400
1035
  }[] | undefined;
1401
1036
  } | undefined;
1402
1037
  app?: string | undefined;
1403
- event_id?: string | undefined;
1404
- result?: Record<string, unknown> | undefined;
1405
- routine?: string | undefined;
1406
- structured_response?: Record<string, unknown> | undefined;
1407
- worker?: {
1408
- status: string;
1409
- attempt: number;
1410
- max_attempts: number;
1038
+ event_config?: Record<string, unknown> | undefined;
1039
+ event_type?: string | undefined;
1040
+ handler_type?: 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;
1411
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;
1412
1055
  }, {
1413
1056
  id: string;
1414
1057
  status?: string | undefined;
1058
+ name?: string | undefined;
1059
+ metadata?: Record<string, unknown> | undefined;
1415
1060
  created_at?: string | undefined;
1416
1061
  updated_at?: string | undefined;
1417
- metadata?: Record<string, unknown> | undefined;
1062
+ description?: string | undefined;
1418
1063
  agent?: string | undefined;
1419
- payload?: Record<string, unknown> | undefined;
1420
- duration_ms?: number | undefined;
1064
+ config?: string | undefined;
1065
+ lookup_key?: string | undefined;
1421
1066
  acl?: {
1422
1067
  add?: {
1423
1068
  actions: string[];
@@ -1435,26 +1080,36 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
1435
1080
  }[] | undefined;
1436
1081
  } | undefined;
1437
1082
  app?: string | undefined;
1438
- event_id?: string | undefined;
1439
- result?: Record<string, unknown> | undefined;
1440
- routine?: string | undefined;
1441
- structured_response?: Record<string, unknown> | undefined;
1442
- worker?: {
1443
- status: string;
1444
- attempt: number;
1445
- max_attempts: number;
1083
+ event_config?: Record<string, unknown> | undefined;
1084
+ event_type?: string | undefined;
1085
+ handler_type?: 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;
1446
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;
1447
1100
  }>, "many">;
1448
1101
  }, "strip", z.ZodTypeAny, {
1449
1102
  data: {
1450
1103
  id: string;
1451
1104
  status?: string | undefined;
1105
+ name?: string | undefined;
1106
+ metadata?: Record<string, unknown> | undefined;
1452
1107
  created_at?: string | undefined;
1453
1108
  updated_at?: string | undefined;
1454
- metadata?: Record<string, unknown> | undefined;
1109
+ description?: string | undefined;
1455
1110
  agent?: string | undefined;
1456
- payload?: Record<string, unknown> | undefined;
1457
- duration_ms?: number | undefined;
1111
+ config?: string | undefined;
1112
+ lookup_key?: string | undefined;
1458
1113
  acl?: {
1459
1114
  add?: {
1460
1115
  actions: string[];
@@ -1472,28 +1127,36 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
1472
1127
  }[] | undefined;
1473
1128
  } | undefined;
1474
1129
  app?: string | undefined;
1475
- event_id?: string | undefined;
1476
- result?: Record<string, unknown> | undefined;
1477
- routine?: string | undefined;
1478
- structured_response?: Record<string, unknown> | undefined;
1479
- worker?: {
1480
- status: string;
1481
- attempt: number;
1482
- max_attempts: number;
1130
+ event_config?: Record<string, unknown> | undefined;
1131
+ event_type?: string | undefined;
1132
+ handler_type?: 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;
1483
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;
1484
1147
  }[];
1485
- after_cursor?: string | undefined;
1486
- before_cursor?: string | undefined;
1487
1148
  }, {
1488
1149
  data: {
1489
1150
  id: string;
1490
1151
  status?: string | undefined;
1152
+ name?: string | undefined;
1153
+ metadata?: Record<string, unknown> | undefined;
1491
1154
  created_at?: string | undefined;
1492
1155
  updated_at?: string | undefined;
1493
- metadata?: Record<string, unknown> | undefined;
1156
+ description?: string | undefined;
1494
1157
  agent?: string | undefined;
1495
- payload?: Record<string, unknown> | undefined;
1496
- duration_ms?: number | undefined;
1158
+ config?: string | undefined;
1159
+ lookup_key?: string | undefined;
1497
1160
  acl?: {
1498
1161
  add?: {
1499
1162
  actions: string[];
@@ -1511,378 +1174,37 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
1511
1174
  }[] | undefined;
1512
1175
  } | undefined;
1513
1176
  app?: string | undefined;
1514
- event_id?: string | undefined;
1515
- result?: Record<string, unknown> | undefined;
1516
- routine?: string | undefined;
1517
- structured_response?: Record<string, unknown> | undefined;
1518
- worker?: {
1519
- status: string;
1520
- attempt: number;
1521
- max_attempts: number;
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;
1522
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;
1523
1194
  }[];
1524
- after_cursor?: string | undefined;
1525
- before_cursor?: string | undefined;
1526
1195
  }>;
1527
- export type AgentRoutineRunListResponse = z.infer<typeof agentRoutineRunListResponseSchema>;
1528
- /** API schema for a full agent impersonation manifest. */
1529
- export declare const agentImpersonationManifestSchema: z.ZodObject<{
1530
- agent: z.ZodObject<{
1531
- acl: z.ZodOptional<z.ZodObject<{
1532
- add: z.ZodOptional<z.ZodArray<z.ZodObject<{
1533
- actions: z.ZodArray<z.ZodString, "many">;
1534
- principal: z.ZodOptional<z.ZodString>;
1535
- principal_type: z.ZodString;
1536
- }, "strip", z.ZodTypeAny, {
1537
- actions: string[];
1538
- principal_type: string;
1539
- principal?: string | undefined;
1540
- }, {
1541
- actions: string[];
1542
- principal_type: string;
1543
- principal?: string | undefined;
1544
- }>, "many">>;
1545
- grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1546
- actions: z.ZodArray<z.ZodString, "many">;
1547
- principal: z.ZodOptional<z.ZodString>;
1548
- principal_type: z.ZodString;
1549
- }, "strip", z.ZodTypeAny, {
1550
- actions: string[];
1551
- principal_type: string;
1552
- principal?: string | undefined;
1553
- }, {
1554
- actions: string[];
1555
- principal_type: string;
1556
- principal?: string | undefined;
1557
- }>, "many">>;
1558
- remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
1559
- principal: z.ZodOptional<z.ZodString>;
1560
- principal_type: z.ZodString;
1561
- }, "strip", z.ZodTypeAny, {
1562
- principal_type: string;
1563
- principal?: string | undefined;
1564
- }, {
1565
- principal_type: string;
1566
- principal?: string | undefined;
1567
- }>, "many">>;
1196
+ export type AgentRoutineListResponse = z.infer<typeof agentRoutineListResponseSchema>;
1197
+ /** API schema for an agent routine run. */
1198
+ export declare const agentRoutineRunSchema: z.ZodObject<{
1199
+ acl: z.ZodOptional<z.ZodObject<{
1200
+ add: z.ZodOptional<z.ZodArray<z.ZodObject<{
1201
+ actions: z.ZodArray<z.ZodString, "many">;
1202
+ principal: z.ZodOptional<z.ZodString>;
1203
+ principal_type: z.ZodString;
1568
1204
  }, "strip", z.ZodTypeAny, {
1569
- add?: {
1570
- actions: string[];
1571
- principal_type: string;
1572
- principal?: string | undefined;
1573
- }[] | undefined;
1574
- grants?: {
1575
- actions: string[];
1576
- principal_type: string;
1577
- principal?: string | undefined;
1578
- }[] | undefined;
1579
- remove?: {
1580
- principal_type: string;
1581
- principal?: string | undefined;
1582
- }[] | undefined;
1583
- }, {
1584
- add?: {
1585
- actions: string[];
1586
- principal_type: string;
1587
- principal?: string | undefined;
1588
- }[] | undefined;
1589
- grants?: {
1590
- actions: string[];
1591
- principal_type: string;
1592
- principal?: string | undefined;
1593
- }[] | undefined;
1594
- remove?: {
1595
- principal_type: string;
1596
- principal?: string | undefined;
1597
- }[] | undefined;
1598
- }>>;
1599
- app: z.ZodOptional<z.ZodString>;
1600
- created_at: z.ZodOptional<z.ZodString>;
1601
- default_model: z.ZodOptional<z.ZodString>;
1602
- email: z.ZodOptional<z.ZodString>;
1603
- id: z.ZodString;
1604
- identity: z.ZodOptional<z.ZodString>;
1605
- lookup_key: z.ZodOptional<z.ZodString>;
1606
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1607
- name: z.ZodOptional<z.ZodString>;
1608
- org: z.ZodOptional<z.ZodString>;
1609
- phone_number: z.ZodOptional<z.ZodString>;
1610
- sandbox: z.ZodOptional<z.ZodString>;
1611
- team: z.ZodOptional<z.ZodString>;
1612
- updated_at: z.ZodOptional<z.ZodString>;
1613
- user: z.ZodOptional<z.ZodString>;
1614
- }, "strip", z.ZodTypeAny, {
1615
- id: string;
1616
- email?: string | undefined;
1617
- created_at?: string | undefined;
1618
- updated_at?: string | undefined;
1619
- name?: string | undefined;
1620
- org?: string | undefined;
1621
- sandbox?: string | undefined;
1622
- metadata?: Record<string, unknown> | undefined;
1623
- user?: string | undefined;
1624
- team?: string | undefined;
1625
- lookup_key?: string | undefined;
1626
- acl?: {
1627
- add?: {
1628
- actions: string[];
1629
- principal_type: string;
1630
- principal?: string | undefined;
1631
- }[] | undefined;
1632
- grants?: {
1633
- actions: string[];
1634
- principal_type: string;
1635
- principal?: string | undefined;
1636
- }[] | undefined;
1637
- remove?: {
1638
- principal_type: string;
1639
- principal?: string | undefined;
1640
- }[] | undefined;
1641
- } | undefined;
1642
- app?: string | undefined;
1643
- default_model?: string | undefined;
1644
- identity?: string | undefined;
1645
- phone_number?: string | undefined;
1646
- }, {
1647
- id: string;
1648
- email?: string | undefined;
1649
- created_at?: string | undefined;
1650
- updated_at?: string | undefined;
1651
- name?: string | undefined;
1652
- org?: string | undefined;
1653
- sandbox?: string | undefined;
1654
- metadata?: Record<string, unknown> | undefined;
1655
- user?: string | undefined;
1656
- team?: string | undefined;
1657
- lookup_key?: string | undefined;
1658
- acl?: {
1659
- add?: {
1660
- actions: string[];
1661
- principal_type: string;
1662
- principal?: string | undefined;
1663
- }[] | undefined;
1664
- grants?: {
1665
- actions: string[];
1666
- principal_type: string;
1667
- principal?: string | undefined;
1668
- }[] | undefined;
1669
- remove?: {
1670
- principal_type: string;
1671
- principal?: string | undefined;
1672
- }[] | undefined;
1673
- } | undefined;
1674
- app?: string | undefined;
1675
- default_model?: string | undefined;
1676
- identity?: string | undefined;
1677
- phone_number?: string | undefined;
1678
- }>;
1679
- skills: z.ZodArray<z.ZodObject<{
1680
- description: z.ZodOptional<z.ZodString>;
1681
- id: z.ZodString;
1682
- name: z.ZodString;
1683
- slug: z.ZodString;
1684
- }, "strip", z.ZodTypeAny, {
1685
- id: string;
1686
- name: string;
1687
- slug: string;
1688
- description?: string | undefined;
1689
- }, {
1690
- id: string;
1691
- name: string;
1692
- slug: string;
1693
- description?: string | undefined;
1694
- }>, "many">;
1695
- tools: z.ZodArray<z.ZodObject<{
1696
- agent: z.ZodOptional<z.ZodString>;
1697
- app: z.ZodOptional<z.ZodString>;
1698
- builtin_tool_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1699
- builtin_tool_key: z.ZodOptional<z.ZodString>;
1700
- config: z.ZodOptional<z.ZodString>;
1701
- created_at: z.ZodOptional<z.ZodString>;
1702
- description: z.ZodOptional<z.ZodString>;
1703
- handler_type: z.ZodOptional<z.ZodString>;
1704
- id: z.ZodString;
1705
- instruction: z.ZodOptional<z.ZodString>;
1706
- kind: z.ZodOptional<z.ZodString>;
1707
- lookup_key: z.ZodOptional<z.ZodString>;
1708
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1709
- name: z.ZodOptional<z.ZodString>;
1710
- parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1711
- parameters_config: z.ZodOptional<z.ZodString>;
1712
- status: z.ZodOptional<z.ZodString>;
1713
- updated_at: z.ZodOptional<z.ZodString>;
1714
- }, "strip", z.ZodTypeAny, {
1715
- id: string;
1716
- status?: string | undefined;
1717
- created_at?: string | undefined;
1718
- updated_at?: string | undefined;
1719
- name?: string | undefined;
1720
- metadata?: Record<string, unknown> | undefined;
1721
- description?: string | undefined;
1722
- agent?: string | undefined;
1723
- lookup_key?: string | undefined;
1724
- kind?: string | undefined;
1725
- config?: string | undefined;
1726
- app?: string | undefined;
1727
- instruction?: string | undefined;
1728
- parameters?: Record<string, unknown> | undefined;
1729
- builtin_tool_config?: Record<string, unknown> | undefined;
1730
- builtin_tool_key?: string | undefined;
1731
- handler_type?: string | undefined;
1732
- parameters_config?: string | undefined;
1733
- }, {
1734
- id: string;
1735
- status?: string | undefined;
1736
- created_at?: string | undefined;
1737
- updated_at?: string | undefined;
1738
- name?: string | undefined;
1739
- metadata?: Record<string, unknown> | undefined;
1740
- description?: string | undefined;
1741
- agent?: string | undefined;
1742
- lookup_key?: string | undefined;
1743
- kind?: string | undefined;
1744
- config?: string | undefined;
1745
- app?: string | undefined;
1746
- instruction?: string | undefined;
1747
- parameters?: Record<string, unknown> | undefined;
1748
- builtin_tool_config?: Record<string, unknown> | undefined;
1749
- builtin_tool_key?: string | undefined;
1750
- handler_type?: string | undefined;
1751
- parameters_config?: string | undefined;
1752
- }>, "many">;
1753
- }, "strip", z.ZodTypeAny, {
1754
- agent: {
1755
- id: string;
1756
- email?: string | undefined;
1757
- created_at?: string | undefined;
1758
- updated_at?: string | undefined;
1759
- name?: string | undefined;
1760
- org?: string | undefined;
1761
- sandbox?: string | undefined;
1762
- metadata?: Record<string, unknown> | undefined;
1763
- user?: string | undefined;
1764
- team?: string | undefined;
1765
- lookup_key?: string | undefined;
1766
- acl?: {
1767
- add?: {
1768
- actions: string[];
1769
- principal_type: string;
1770
- principal?: string | undefined;
1771
- }[] | undefined;
1772
- grants?: {
1773
- actions: string[];
1774
- principal_type: string;
1775
- principal?: string | undefined;
1776
- }[] | undefined;
1777
- remove?: {
1778
- principal_type: string;
1779
- principal?: string | undefined;
1780
- }[] | undefined;
1781
- } | undefined;
1782
- app?: string | undefined;
1783
- default_model?: string | undefined;
1784
- identity?: string | undefined;
1785
- phone_number?: string | undefined;
1786
- };
1787
- tools: {
1788
- id: string;
1789
- status?: string | undefined;
1790
- created_at?: string | undefined;
1791
- updated_at?: string | undefined;
1792
- name?: string | undefined;
1793
- metadata?: Record<string, unknown> | undefined;
1794
- description?: string | undefined;
1795
- agent?: string | undefined;
1796
- lookup_key?: string | undefined;
1797
- kind?: string | undefined;
1798
- config?: string | undefined;
1799
- app?: string | undefined;
1800
- instruction?: string | undefined;
1801
- parameters?: Record<string, unknown> | undefined;
1802
- builtin_tool_config?: Record<string, unknown> | undefined;
1803
- builtin_tool_key?: string | undefined;
1804
- handler_type?: string | undefined;
1805
- parameters_config?: string | undefined;
1806
- }[];
1807
- skills: {
1808
- id: string;
1809
- name: string;
1810
- slug: string;
1811
- description?: string | undefined;
1812
- }[];
1813
- }, {
1814
- agent: {
1815
- id: string;
1816
- email?: string | undefined;
1817
- created_at?: string | undefined;
1818
- updated_at?: string | undefined;
1819
- name?: string | undefined;
1820
- org?: string | undefined;
1821
- sandbox?: string | undefined;
1822
- metadata?: Record<string, unknown> | undefined;
1823
- user?: string | undefined;
1824
- team?: string | undefined;
1825
- lookup_key?: string | undefined;
1826
- acl?: {
1827
- add?: {
1828
- actions: string[];
1829
- principal_type: string;
1830
- principal?: string | undefined;
1831
- }[] | undefined;
1832
- grants?: {
1833
- actions: string[];
1834
- principal_type: string;
1835
- principal?: string | undefined;
1836
- }[] | undefined;
1837
- remove?: {
1838
- principal_type: string;
1839
- principal?: string | undefined;
1840
- }[] | undefined;
1841
- } | undefined;
1842
- app?: string | undefined;
1843
- default_model?: string | undefined;
1844
- identity?: string | undefined;
1845
- phone_number?: string | undefined;
1846
- };
1847
- tools: {
1848
- id: string;
1849
- status?: string | undefined;
1850
- created_at?: string | undefined;
1851
- updated_at?: string | undefined;
1852
- name?: string | undefined;
1853
- metadata?: Record<string, unknown> | undefined;
1854
- description?: string | undefined;
1855
- agent?: string | undefined;
1856
- lookup_key?: string | undefined;
1857
- kind?: string | undefined;
1858
- config?: string | undefined;
1859
- app?: string | undefined;
1860
- instruction?: string | undefined;
1861
- parameters?: Record<string, unknown> | undefined;
1862
- builtin_tool_config?: Record<string, unknown> | undefined;
1863
- builtin_tool_key?: string | undefined;
1864
- handler_type?: string | undefined;
1865
- parameters_config?: string | undefined;
1866
- }[];
1867
- skills: {
1868
- id: string;
1869
- name: string;
1870
- slug: string;
1871
- description?: string | undefined;
1872
- }[];
1873
- }>;
1874
- export type AgentImpersonationManifest = z.infer<typeof agentImpersonationManifestSchema>;
1875
- /** API schema for an agent routine. */
1876
- export declare const agentRoutineSchema: z.ZodObject<{
1877
- acl: z.ZodOptional<z.ZodObject<{
1878
- add: z.ZodOptional<z.ZodArray<z.ZodObject<{
1879
- actions: z.ZodArray<z.ZodString, "many">;
1880
- principal: z.ZodOptional<z.ZodString>;
1881
- principal_type: z.ZodString;
1882
- }, "strip", z.ZodTypeAny, {
1883
- actions: string[];
1884
- principal_type: string;
1885
- principal?: string | undefined;
1205
+ actions: string[];
1206
+ principal_type: string;
1207
+ principal?: string | undefined;
1886
1208
  }, {
1887
1209
  actions: string[];
1888
1210
  principal_type: string;
@@ -1944,35 +1266,38 @@ export declare const agentRoutineSchema: z.ZodObject<{
1944
1266
  }>>;
1945
1267
  agent: z.ZodOptional<z.ZodString>;
1946
1268
  app: z.ZodOptional<z.ZodString>;
1947
- config: z.ZodOptional<z.ZodString>;
1948
1269
  created_at: z.ZodOptional<z.ZodString>;
1949
- description: z.ZodOptional<z.ZodString>;
1950
- event_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1951
- event_type: z.ZodOptional<z.ZodString>;
1952
- handler_type: z.ZodOptional<z.ZodString>;
1270
+ duration_ms: z.ZodOptional<z.ZodNumber>;
1271
+ event_id: z.ZodOptional<z.ZodString>;
1953
1272
  id: z.ZodString;
1954
- lookup_key: z.ZodOptional<z.ZodString>;
1955
1273
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1956
- name: z.ZodOptional<z.ZodString>;
1957
- preset_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1958
- preset_name: z.ZodOptional<z.ZodString>;
1959
- schedule: z.ZodOptional<z.ZodString>;
1960
- script: z.ZodOptional<z.ZodString>;
1274
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1275
+ result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1276
+ routine: z.ZodOptional<z.ZodString>;
1961
1277
  status: z.ZodOptional<z.ZodString>;
1962
- trigger_context: z.ZodOptional<z.ZodString>;
1278
+ structured_response: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1963
1279
  updated_at: z.ZodOptional<z.ZodString>;
1280
+ worker: z.ZodOptional<z.ZodObject<{
1281
+ attempt: z.ZodNumber;
1282
+ max_attempts: z.ZodNumber;
1283
+ status: z.ZodString;
1284
+ }, "strip", z.ZodTypeAny, {
1285
+ status: string;
1286
+ attempt: number;
1287
+ max_attempts: number;
1288
+ }, {
1289
+ status: string;
1290
+ attempt: number;
1291
+ max_attempts: number;
1292
+ }>>;
1964
1293
  }, "strip", z.ZodTypeAny, {
1965
1294
  id: string;
1966
1295
  status?: string | undefined;
1296
+ metadata?: Record<string, unknown> | undefined;
1967
1297
  created_at?: string | undefined;
1968
1298
  updated_at?: string | undefined;
1969
- name?: string | undefined;
1970
- metadata?: Record<string, unknown> | undefined;
1971
- description?: string | undefined;
1972
1299
  agent?: string | undefined;
1973
- event_type?: string | undefined;
1974
- lookup_key?: string | undefined;
1975
- config?: string | undefined;
1300
+ payload?: Record<string, unknown> | undefined;
1976
1301
  acl?: {
1977
1302
  add?: {
1978
1303
  actions: string[];
@@ -1990,25 +1315,24 @@ export declare const agentRoutineSchema: z.ZodObject<{
1990
1315
  }[] | undefined;
1991
1316
  } | undefined;
1992
1317
  app?: string | undefined;
1993
- handler_type?: string | undefined;
1994
- event_config?: Record<string, unknown> | undefined;
1995
- preset_config?: Record<string, unknown> | undefined;
1996
- preset_name?: string | undefined;
1997
- schedule?: string | undefined;
1998
- script?: string | undefined;
1999
- trigger_context?: string | undefined;
1318
+ duration_ms?: number | undefined;
1319
+ event_id?: string | undefined;
1320
+ result?: Record<string, unknown> | undefined;
1321
+ routine?: string | undefined;
1322
+ structured_response?: Record<string, unknown> | undefined;
1323
+ worker?: {
1324
+ status: string;
1325
+ attempt: number;
1326
+ max_attempts: number;
1327
+ } | undefined;
2000
1328
  }, {
2001
1329
  id: string;
2002
1330
  status?: string | undefined;
1331
+ metadata?: Record<string, unknown> | undefined;
2003
1332
  created_at?: string | undefined;
2004
1333
  updated_at?: string | undefined;
2005
- name?: string | undefined;
2006
- metadata?: Record<string, unknown> | undefined;
2007
- description?: string | undefined;
2008
1334
  agent?: string | undefined;
2009
- event_type?: string | undefined;
2010
- lookup_key?: string | undefined;
2011
- config?: string | undefined;
1335
+ payload?: Record<string, unknown> | undefined;
2012
1336
  acl?: {
2013
1337
  add?: {
2014
1338
  actions: string[];
@@ -2026,17 +1350,22 @@ export declare const agentRoutineSchema: z.ZodObject<{
2026
1350
  }[] | undefined;
2027
1351
  } | undefined;
2028
1352
  app?: string | undefined;
2029
- handler_type?: string | undefined;
2030
- event_config?: Record<string, unknown> | undefined;
2031
- preset_config?: Record<string, unknown> | undefined;
2032
- preset_name?: string | undefined;
2033
- schedule?: string | undefined;
2034
- script?: string | undefined;
2035
- trigger_context?: string | undefined;
1353
+ duration_ms?: number | undefined;
1354
+ event_id?: string | undefined;
1355
+ result?: Record<string, unknown> | undefined;
1356
+ routine?: string | undefined;
1357
+ structured_response?: Record<string, unknown> | undefined;
1358
+ worker?: {
1359
+ status: string;
1360
+ attempt: number;
1361
+ max_attempts: number;
1362
+ } | undefined;
2036
1363
  }>;
2037
- export type AgentRoutine = z.infer<typeof agentRoutineSchema>;
2038
- /** List response for agent routines. */
2039
- export declare const agentRoutineListResponseSchema: z.ZodObject<{
1364
+ export type AgentRoutineRun = z.infer<typeof agentRoutineRunSchema>;
1365
+ /** Cursor-paginated list response for agent routine runs. */
1366
+ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
1367
+ after_cursor: z.ZodOptional<z.ZodString>;
1368
+ before_cursor: z.ZodOptional<z.ZodString>;
2040
1369
  data: z.ZodArray<z.ZodObject<{
2041
1370
  acl: z.ZodOptional<z.ZodObject<{
2042
1371
  add: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2108,35 +1437,73 @@ export declare const agentRoutineListResponseSchema: z.ZodObject<{
2108
1437
  }>>;
2109
1438
  agent: z.ZodOptional<z.ZodString>;
2110
1439
  app: z.ZodOptional<z.ZodString>;
2111
- config: z.ZodOptional<z.ZodString>;
2112
1440
  created_at: z.ZodOptional<z.ZodString>;
2113
- description: z.ZodOptional<z.ZodString>;
2114
- event_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2115
- event_type: z.ZodOptional<z.ZodString>;
2116
- handler_type: z.ZodOptional<z.ZodString>;
1441
+ duration_ms: z.ZodOptional<z.ZodNumber>;
1442
+ event_id: z.ZodOptional<z.ZodString>;
2117
1443
  id: z.ZodString;
2118
- lookup_key: z.ZodOptional<z.ZodString>;
2119
1444
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2120
- name: z.ZodOptional<z.ZodString>;
2121
- preset_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2122
- preset_name: z.ZodOptional<z.ZodString>;
2123
- schedule: z.ZodOptional<z.ZodString>;
2124
- script: z.ZodOptional<z.ZodString>;
1445
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1446
+ result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1447
+ routine: z.ZodOptional<z.ZodString>;
2125
1448
  status: z.ZodOptional<z.ZodString>;
2126
- trigger_context: z.ZodOptional<z.ZodString>;
1449
+ structured_response: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2127
1450
  updated_at: z.ZodOptional<z.ZodString>;
1451
+ worker: z.ZodOptional<z.ZodObject<{
1452
+ attempt: z.ZodNumber;
1453
+ max_attempts: z.ZodNumber;
1454
+ status: z.ZodString;
1455
+ }, "strip", z.ZodTypeAny, {
1456
+ status: string;
1457
+ attempt: number;
1458
+ max_attempts: number;
1459
+ }, {
1460
+ status: string;
1461
+ attempt: number;
1462
+ max_attempts: number;
1463
+ }>>;
2128
1464
  }, "strip", z.ZodTypeAny, {
2129
1465
  id: string;
2130
1466
  status?: string | undefined;
1467
+ metadata?: Record<string, unknown> | undefined;
2131
1468
  created_at?: string | undefined;
2132
1469
  updated_at?: string | undefined;
2133
- name?: string | undefined;
1470
+ agent?: string | undefined;
1471
+ payload?: Record<string, unknown> | undefined;
1472
+ acl?: {
1473
+ add?: {
1474
+ actions: string[];
1475
+ principal_type: string;
1476
+ principal?: string | undefined;
1477
+ }[] | undefined;
1478
+ grants?: {
1479
+ actions: string[];
1480
+ principal_type: string;
1481
+ principal?: string | undefined;
1482
+ }[] | undefined;
1483
+ remove?: {
1484
+ principal_type: string;
1485
+ principal?: string | undefined;
1486
+ }[] | undefined;
1487
+ } | undefined;
1488
+ app?: string | undefined;
1489
+ duration_ms?: number | undefined;
1490
+ event_id?: string | undefined;
1491
+ result?: Record<string, unknown> | undefined;
1492
+ routine?: string | undefined;
1493
+ structured_response?: Record<string, unknown> | undefined;
1494
+ worker?: {
1495
+ status: string;
1496
+ attempt: number;
1497
+ max_attempts: number;
1498
+ } | undefined;
1499
+ }, {
1500
+ id: string;
1501
+ status?: string | undefined;
2134
1502
  metadata?: Record<string, unknown> | undefined;
2135
- description?: string | undefined;
1503
+ created_at?: string | undefined;
1504
+ updated_at?: string | undefined;
2136
1505
  agent?: string | undefined;
2137
- event_type?: string | undefined;
2138
- lookup_key?: string | undefined;
2139
- config?: string | undefined;
1506
+ payload?: Record<string, unknown> | undefined;
2140
1507
  acl?: {
2141
1508
  add?: {
2142
1509
  actions: string[];
@@ -2154,248 +1521,564 @@ export declare const agentRoutineListResponseSchema: z.ZodObject<{
2154
1521
  }[] | undefined;
2155
1522
  } | undefined;
2156
1523
  app?: string | undefined;
2157
- handler_type?: string | undefined;
2158
- event_config?: Record<string, unknown> | undefined;
2159
- preset_config?: Record<string, unknown> | undefined;
2160
- preset_name?: string | undefined;
2161
- schedule?: string | undefined;
2162
- script?: string | undefined;
2163
- trigger_context?: string | undefined;
1524
+ duration_ms?: number | undefined;
1525
+ event_id?: string | undefined;
1526
+ result?: Record<string, unknown> | undefined;
1527
+ routine?: string | undefined;
1528
+ structured_response?: Record<string, unknown> | undefined;
1529
+ worker?: {
1530
+ status: string;
1531
+ attempt: number;
1532
+ max_attempts: number;
1533
+ } | undefined;
1534
+ }>, "many">;
1535
+ }, "strip", z.ZodTypeAny, {
1536
+ data: {
1537
+ id: string;
1538
+ status?: string | undefined;
1539
+ metadata?: Record<string, unknown> | undefined;
1540
+ created_at?: string | undefined;
1541
+ updated_at?: string | undefined;
1542
+ agent?: string | undefined;
1543
+ payload?: Record<string, unknown> | undefined;
1544
+ acl?: {
1545
+ add?: {
1546
+ actions: string[];
1547
+ principal_type: string;
1548
+ principal?: string | undefined;
1549
+ }[] | undefined;
1550
+ grants?: {
1551
+ actions: string[];
1552
+ principal_type: string;
1553
+ principal?: string | undefined;
1554
+ }[] | undefined;
1555
+ remove?: {
1556
+ principal_type: string;
1557
+ principal?: string | undefined;
1558
+ }[] | undefined;
1559
+ } | undefined;
1560
+ app?: string | undefined;
1561
+ duration_ms?: number | undefined;
1562
+ event_id?: string | undefined;
1563
+ result?: Record<string, unknown> | undefined;
1564
+ routine?: string | undefined;
1565
+ structured_response?: Record<string, unknown> | undefined;
1566
+ worker?: {
1567
+ status: string;
1568
+ attempt: number;
1569
+ max_attempts: number;
1570
+ } | undefined;
1571
+ }[];
1572
+ after_cursor?: string | undefined;
1573
+ before_cursor?: string | undefined;
1574
+ }, {
1575
+ data: {
1576
+ id: string;
1577
+ status?: string | undefined;
1578
+ metadata?: Record<string, unknown> | undefined;
1579
+ created_at?: string | undefined;
1580
+ updated_at?: string | undefined;
1581
+ agent?: string | undefined;
1582
+ payload?: Record<string, unknown> | undefined;
1583
+ acl?: {
1584
+ add?: {
1585
+ actions: string[];
1586
+ principal_type: string;
1587
+ principal?: string | undefined;
1588
+ }[] | undefined;
1589
+ grants?: {
1590
+ actions: string[];
1591
+ principal_type: string;
1592
+ principal?: string | undefined;
1593
+ }[] | undefined;
1594
+ remove?: {
1595
+ principal_type: string;
1596
+ principal?: string | undefined;
1597
+ }[] | undefined;
1598
+ } | undefined;
1599
+ app?: string | undefined;
1600
+ duration_ms?: number | undefined;
1601
+ event_id?: string | undefined;
1602
+ result?: Record<string, unknown> | undefined;
1603
+ routine?: string | undefined;
1604
+ structured_response?: Record<string, unknown> | undefined;
1605
+ worker?: {
1606
+ status: string;
1607
+ attempt: number;
1608
+ max_attempts: number;
1609
+ } | undefined;
1610
+ }[];
1611
+ after_cursor?: string | undefined;
1612
+ before_cursor?: string | undefined;
1613
+ }>;
1614
+ export type AgentRoutineRunListResponse = z.infer<typeof agentRoutineRunListResponseSchema>;
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<{
1732
+ agent: z.ZodOptional<z.ZodString>;
1733
+ completed_at: z.ZodOptional<z.ZodString>;
1734
+ created_at: z.ZodOptional<z.ZodString>;
1735
+ error: z.ZodOptional<z.ZodString>;
1736
+ id: 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>;
1743
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1744
+ name: z.ZodOptional<z.ZodString>;
1745
+ result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1746
+ started_at: z.ZodOptional<z.ZodString>;
1747
+ status: z.ZodOptional<z.ZodString>;
1748
+ trajectory: z.ZodOptional<z.ZodString>;
1749
+ }, "strip", z.ZodTypeAny, {
1750
+ id: string;
1751
+ error?: string | undefined;
1752
+ status?: string | undefined;
1753
+ name?: string | undefined;
1754
+ metadata?: Record<string, unknown> | undefined;
1755
+ created_at?: string | undefined;
1756
+ instructions?: string | undefined;
1757
+ agent?: 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;
1767
+ }, {
1768
+ id: string;
1769
+ error?: string | undefined;
1770
+ status?: string | undefined;
1771
+ name?: string | undefined;
1772
+ metadata?: Record<string, unknown> | undefined;
1773
+ created_at?: string | undefined;
1774
+ instructions?: string | undefined;
1775
+ agent?: 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;
1785
+ }>, "many">;
1786
+ }, "strip", z.ZodTypeAny, {
1787
+ data: {
1788
+ id: string;
1789
+ error?: string | undefined;
1790
+ status?: string | undefined;
1791
+ name?: string | undefined;
1792
+ metadata?: Record<string, unknown> | undefined;
1793
+ created_at?: string | undefined;
1794
+ instructions?: string | undefined;
1795
+ agent?: 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;
1805
+ }[];
1806
+ }, {
1807
+ data: {
1808
+ id: string;
1809
+ error?: string | undefined;
1810
+ status?: string | undefined;
1811
+ name?: string | undefined;
1812
+ metadata?: Record<string, unknown> | undefined;
1813
+ created_at?: string | undefined;
1814
+ instructions?: string | undefined;
1815
+ agent?: 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;
1825
+ }[];
1826
+ }>;
1827
+ export type AgentSessionListResponse = z.infer<typeof agentSessionListResponseSchema>;
1828
+ /** API schema for an agent skill. */
1829
+ export declare const agentSkillSchema: z.ZodObject<{
1830
+ agent: z.ZodOptional<z.ZodString>;
1831
+ app: z.ZodOptional<z.ZodString>;
1832
+ config: z.ZodOptional<z.ZodString>;
1833
+ created_at: z.ZodOptional<z.ZodString>;
1834
+ id: z.ZodString;
1835
+ instruction: z.ZodOptional<z.ZodString>;
1836
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1837
+ status: z.ZodOptional<z.ZodString>;
1838
+ updated_at: z.ZodOptional<z.ZodString>;
1839
+ }, "strip", z.ZodTypeAny, {
1840
+ id: string;
1841
+ status?: string | undefined;
1842
+ metadata?: Record<string, unknown> | undefined;
1843
+ created_at?: string | undefined;
1844
+ updated_at?: string | undefined;
1845
+ instruction?: string | undefined;
1846
+ agent?: string | undefined;
1847
+ config?: string | undefined;
1848
+ app?: string | undefined;
1849
+ }, {
1850
+ id: string;
1851
+ status?: string | undefined;
1852
+ metadata?: Record<string, unknown> | undefined;
1853
+ created_at?: string | undefined;
1854
+ updated_at?: string | undefined;
1855
+ instruction?: string | undefined;
1856
+ agent?: string | undefined;
1857
+ config?: string | undefined;
1858
+ app?: string | undefined;
1859
+ }>;
1860
+ export type AgentSkill = z.infer<typeof agentSkillSchema>;
1861
+ /** API schema for agent skills list response. */
1862
+ export declare const agentSkillListSchema: z.ZodObject<{
1863
+ data: z.ZodArray<z.ZodObject<{
1864
+ agent: z.ZodOptional<z.ZodString>;
1865
+ app: z.ZodOptional<z.ZodString>;
1866
+ config: z.ZodOptional<z.ZodString>;
1867
+ created_at: z.ZodOptional<z.ZodString>;
1868
+ id: z.ZodString;
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;
1882
+ app?: string | undefined;
2164
1883
  }, {
2165
1884
  id: string;
2166
1885
  status?: string | undefined;
1886
+ metadata?: Record<string, unknown> | undefined;
2167
1887
  created_at?: string | undefined;
2168
1888
  updated_at?: string | undefined;
2169
- name?: string | undefined;
2170
- metadata?: Record<string, unknown> | undefined;
2171
- description?: string | undefined;
1889
+ instruction?: string | undefined;
2172
1890
  agent?: string | undefined;
2173
- event_type?: string | undefined;
2174
- lookup_key?: string | undefined;
2175
1891
  config?: string | undefined;
2176
- acl?: {
2177
- add?: {
2178
- actions: string[];
2179
- principal_type: string;
2180
- principal?: string | undefined;
2181
- }[] | undefined;
2182
- grants?: {
2183
- actions: string[];
2184
- principal_type: string;
2185
- principal?: string | undefined;
2186
- }[] | undefined;
2187
- remove?: {
2188
- principal_type: string;
2189
- principal?: string | undefined;
2190
- }[] | undefined;
2191
- } | undefined;
2192
1892
  app?: string | undefined;
2193
- handler_type?: string | undefined;
2194
- event_config?: Record<string, unknown> | undefined;
2195
- preset_config?: Record<string, unknown> | undefined;
2196
- preset_name?: string | undefined;
2197
- schedule?: string | undefined;
2198
- script?: string | undefined;
2199
- trigger_context?: string | undefined;
2200
1893
  }>, "many">;
2201
1894
  }, "strip", z.ZodTypeAny, {
2202
1895
  data: {
2203
1896
  id: string;
2204
1897
  status?: string | undefined;
1898
+ metadata?: Record<string, unknown> | undefined;
2205
1899
  created_at?: string | undefined;
2206
1900
  updated_at?: string | undefined;
2207
- name?: string | undefined;
2208
- metadata?: Record<string, unknown> | undefined;
2209
- description?: string | undefined;
1901
+ instruction?: string | undefined;
2210
1902
  agent?: string | undefined;
2211
- event_type?: string | undefined;
2212
- lookup_key?: string | undefined;
2213
1903
  config?: string | undefined;
2214
- acl?: {
2215
- add?: {
2216
- actions: string[];
2217
- principal_type: string;
2218
- principal?: string | undefined;
2219
- }[] | undefined;
2220
- grants?: {
2221
- actions: string[];
2222
- principal_type: string;
2223
- principal?: string | undefined;
2224
- }[] | undefined;
2225
- remove?: {
2226
- principal_type: string;
2227
- principal?: string | undefined;
2228
- }[] | undefined;
2229
- } | undefined;
2230
1904
  app?: string | undefined;
2231
- handler_type?: string | undefined;
2232
- event_config?: Record<string, unknown> | undefined;
2233
- preset_config?: Record<string, unknown> | undefined;
2234
- preset_name?: string | undefined;
2235
- schedule?: string | undefined;
2236
- script?: string | undefined;
2237
- trigger_context?: string | undefined;
2238
1905
  }[];
2239
1906
  }, {
2240
1907
  data: {
2241
1908
  id: string;
2242
1909
  status?: string | undefined;
1910
+ metadata?: Record<string, unknown> | undefined;
2243
1911
  created_at?: string | undefined;
2244
1912
  updated_at?: string | undefined;
2245
- name?: string | undefined;
2246
- metadata?: Record<string, unknown> | undefined;
2247
- description?: string | undefined;
1913
+ instruction?: string | undefined;
2248
1914
  agent?: string | undefined;
2249
- event_type?: string | undefined;
2250
- lookup_key?: string | undefined;
2251
1915
  config?: string | undefined;
2252
- acl?: {
2253
- add?: {
2254
- actions: string[];
2255
- principal_type: string;
2256
- principal?: string | undefined;
2257
- }[] | undefined;
2258
- grants?: {
2259
- actions: string[];
2260
- principal_type: string;
2261
- principal?: string | undefined;
2262
- }[] | undefined;
2263
- remove?: {
2264
- principal_type: string;
2265
- principal?: string | undefined;
2266
- }[] | undefined;
2267
- } | undefined;
2268
1916
  app?: string | undefined;
2269
- handler_type?: string | undefined;
2270
- event_config?: Record<string, unknown> | undefined;
2271
- preset_config?: Record<string, unknown> | undefined;
2272
- preset_name?: string | undefined;
2273
- schedule?: string | undefined;
2274
- script?: string | undefined;
2275
- trigger_context?: string | undefined;
2276
- }[];
2277
- }>;
2278
- export type AgentRoutineListResponse = z.infer<typeof agentRoutineListResponseSchema>;
2279
- /** API schema for the resolved callable tools list response. */
2280
- export declare const agentImpersonationToolListSchema: z.ZodObject<{
2281
- data: z.ZodArray<z.ZodObject<{
2282
- description: z.ZodOptional<z.ZodString>;
2283
- name: z.ZodString;
2284
- parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2285
- }, "strip", z.ZodTypeAny, {
2286
- name: string;
2287
- description?: string | undefined;
2288
- parameters?: Record<string, unknown> | undefined;
2289
- }, {
2290
- name: string;
2291
- description?: string | undefined;
2292
- parameters?: Record<string, unknown> | undefined;
2293
- }>, "many">;
2294
- }, "strip", z.ZodTypeAny, {
2295
- data: {
2296
- name: string;
2297
- description?: string | undefined;
2298
- parameters?: Record<string, unknown> | undefined;
2299
- }[];
2300
- }, {
2301
- data: {
2302
- name: string;
2303
- description?: string | undefined;
2304
- parameters?: Record<string, unknown> | undefined;
2305
1917
  }[];
2306
1918
  }>;
2307
- export type AgentImpersonationToolList = z.infer<typeof agentImpersonationToolListSchema>;
2308
- /** API schema for an agent impersonation skill list response. */
2309
- export declare const agentImpersonationSkillListSchema: z.ZodObject<{
2310
- data: z.ZodArray<z.ZodObject<{
2311
- description: z.ZodOptional<z.ZodString>;
2312
- id: z.ZodString;
2313
- name: z.ZodString;
2314
- slug: z.ZodString;
2315
- }, "strip", z.ZodTypeAny, {
2316
- id: string;
2317
- name: string;
2318
- slug: string;
2319
- description?: string | undefined;
2320
- }, {
2321
- id: string;
2322
- name: string;
2323
- slug: string;
2324
- description?: string | undefined;
2325
- }>, "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>;
2326
1940
  }, "strip", z.ZodTypeAny, {
2327
- data: {
2328
- id: string;
2329
- name: string;
2330
- slug: string;
2331
- description?: string | undefined;
2332
- }[];
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;
2333
1959
  }, {
2334
- data: {
2335
- id: string;
2336
- name: string;
2337
- slug: string;
2338
- description?: string | undefined;
2339
- }[];
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;
2340
1978
  }>;
2341
- export type AgentImpersonationSkillList = z.infer<typeof agentImpersonationSkillListSchema>;
2342
- /** API schema for agent skills list response. */
2343
- 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<{
2344
1982
  data: z.ZodArray<z.ZodObject<{
2345
1983
  agent: z.ZodOptional<z.ZodString>;
2346
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>;
2347
1987
  config: z.ZodOptional<z.ZodString>;
2348
1988
  created_at: z.ZodOptional<z.ZodString>;
1989
+ description: z.ZodOptional<z.ZodString>;
1990
+ handler_type: z.ZodOptional<z.ZodString>;
2349
1991
  id: z.ZodString;
2350
1992
  instruction: z.ZodOptional<z.ZodString>;
1993
+ kind: z.ZodOptional<z.ZodString>;
1994
+ lookup_key: z.ZodOptional<z.ZodString>;
2351
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>;
2352
1999
  status: z.ZodOptional<z.ZodString>;
2353
2000
  updated_at: z.ZodOptional<z.ZodString>;
2354
2001
  }, "strip", z.ZodTypeAny, {
2355
2002
  id: string;
2356
2003
  status?: string | undefined;
2004
+ name?: string | undefined;
2005
+ metadata?: Record<string, unknown> | undefined;
2357
2006
  created_at?: string | undefined;
2358
2007
  updated_at?: string | undefined;
2359
- metadata?: Record<string, unknown> | undefined;
2008
+ description?: string | undefined;
2009
+ instruction?: string | undefined;
2360
2010
  agent?: string | undefined;
2361
2011
  config?: string | undefined;
2012
+ kind?: string | undefined;
2013
+ lookup_key?: string | undefined;
2362
2014
  app?: string | undefined;
2363
- 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;
2364
2020
  }, {
2365
2021
  id: string;
2366
2022
  status?: string | undefined;
2023
+ name?: string | undefined;
2024
+ metadata?: Record<string, unknown> | undefined;
2367
2025
  created_at?: string | undefined;
2368
2026
  updated_at?: string | undefined;
2369
- metadata?: Record<string, unknown> | undefined;
2027
+ description?: string | undefined;
2028
+ instruction?: string | undefined;
2370
2029
  agent?: string | undefined;
2371
2030
  config?: string | undefined;
2031
+ kind?: string | undefined;
2032
+ lookup_key?: string | undefined;
2372
2033
  app?: string | undefined;
2373
- 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;
2374
2039
  }>, "many">;
2375
2040
  }, "strip", z.ZodTypeAny, {
2376
2041
  data: {
2377
2042
  id: string;
2378
2043
  status?: string | undefined;
2044
+ name?: string | undefined;
2045
+ metadata?: Record<string, unknown> | undefined;
2379
2046
  created_at?: string | undefined;
2380
2047
  updated_at?: string | undefined;
2381
- metadata?: Record<string, unknown> | undefined;
2048
+ description?: string | undefined;
2049
+ instruction?: string | undefined;
2382
2050
  agent?: string | undefined;
2383
2051
  config?: string | undefined;
2052
+ kind?: string | undefined;
2053
+ lookup_key?: string | undefined;
2384
2054
  app?: string | undefined;
2385
- 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;
2386
2060
  }[];
2387
2061
  }, {
2388
2062
  data: {
2389
2063
  id: string;
2390
2064
  status?: string | undefined;
2065
+ name?: string | undefined;
2066
+ metadata?: Record<string, unknown> | undefined;
2391
2067
  created_at?: string | undefined;
2392
2068
  updated_at?: string | undefined;
2393
- metadata?: Record<string, unknown> | undefined;
2069
+ description?: string | undefined;
2070
+ instruction?: string | undefined;
2394
2071
  agent?: string | undefined;
2395
2072
  config?: string | undefined;
2073
+ kind?: string | undefined;
2074
+ lookup_key?: string | undefined;
2396
2075
  app?: string | undefined;
2397
- 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;
2398
2081
  }[];
2399
2082
  }>;
2400
- export type AgentSkillList = z.infer<typeof agentSkillListSchema>;
2083
+ export type AgentToolListResponse = z.infer<typeof agentToolListResponseSchema>;
2401
2084
  //# sourceMappingURL=agents.d.ts.map