@archastro/sdk 0.5.2 → 0.5.3

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 (222) hide show
  1. package/README.md +86 -0
  2. package/dist/auth.d.ts +143 -0
  3. package/dist/auth.d.ts.map +1 -1
  4. package/dist/auth.js +187 -1
  5. package/dist/auth.js.map +1 -1
  6. package/dist/client.d.ts +26 -0
  7. package/dist/client.d.ts.map +1 -1
  8. package/dist/client.js +27 -1
  9. package/dist/client.js.map +1 -1
  10. package/dist/index.d.ts +1 -1
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +2 -2
  13. package/dist/index.js.map +1 -1
  14. package/dist/types/ai.d.ts +150 -12
  15. package/dist/types/ai.d.ts.map +1 -1
  16. package/dist/types/ai.js +71 -41
  17. package/dist/types/ai.js.map +1 -1
  18. package/dist/types/artifacts.d.ts +81 -24
  19. package/dist/types/artifacts.d.ts.map +1 -1
  20. package/dist/types/artifacts.js +39 -21
  21. package/dist/types/artifacts.js.map +1 -1
  22. package/dist/types/automations.d.ts +41 -9
  23. package/dist/types/automations.d.ts.map +1 -1
  24. package/dist/types/automations.js +25 -17
  25. package/dist/types/automations.js.map +1 -1
  26. package/dist/types/chat.d.ts +21418 -0
  27. package/dist/types/chat.d.ts.map +1 -0
  28. package/dist/types/chat.js +70 -0
  29. package/dist/types/chat.js.map +1 -0
  30. package/dist/types/common.d.ts +16970 -2136
  31. package/dist/types/common.d.ts.map +1 -1
  32. package/dist/types/common.js +1695 -332
  33. package/dist/types/common.js.map +1 -1
  34. package/dist/types/config.d.ts +239 -31
  35. package/dist/types/config.d.ts.map +1 -1
  36. package/dist/types/config.js +86 -34
  37. package/dist/types/config.js.map +1 -1
  38. package/dist/types/image.d.ts +27 -4
  39. package/dist/types/image.d.ts.map +1 -1
  40. package/dist/types/image.js +17 -10
  41. package/dist/types/image.js.map +1 -1
  42. package/dist/types/index.d.ts +2 -1
  43. package/dist/types/index.d.ts.map +1 -1
  44. package/dist/types/index.js +3 -2
  45. package/dist/types/index.js.map +1 -1
  46. package/dist/types/invites.d.ts +20 -11
  47. package/dist/types/invites.d.ts.map +1 -1
  48. package/dist/types/invites.js +9 -12
  49. package/dist/types/invites.js.map +1 -1
  50. package/dist/types/notifications.d.ts +163 -0
  51. package/dist/types/notifications.d.ts.map +1 -0
  52. package/dist/types/notifications.js +44 -0
  53. package/dist/types/notifications.js.map +1 -0
  54. package/dist/types/teams.d.ts +1628 -231
  55. package/dist/types/teams.d.ts.map +1 -1
  56. package/dist/types/teams.js +76 -45
  57. package/dist/types/teams.js.map +1 -1
  58. package/dist/types/threads.d.ts +997 -243
  59. package/dist/types/threads.d.ts.map +1 -1
  60. package/dist/types/threads.js +84 -51
  61. package/dist/types/threads.js.map +1 -1
  62. package/dist/types/users.d.ts +98 -18
  63. package/dist/types/users.d.ts.map +1 -1
  64. package/dist/types/users.js +43 -18
  65. package/dist/types/users.js.map +1 -1
  66. package/dist/v1/resources/activity_feed.d.ts +89 -0
  67. package/dist/v1/resources/activity_feed.d.ts.map +1 -1
  68. package/dist/v1/resources/activity_feed.js +56 -2
  69. package/dist/v1/resources/activity_feed.js.map +1 -1
  70. package/dist/v1/resources/agent_computers.d.ts +48 -2
  71. package/dist/v1/resources/agent_computers.d.ts.map +1 -1
  72. package/dist/v1/resources/agent_computers.js +48 -1
  73. package/dist/v1/resources/agent_computers.js.map +1 -1
  74. package/dist/v1/resources/agent_env_vars.d.ts +50 -0
  75. package/dist/v1/resources/agent_env_vars.d.ts.map +1 -0
  76. package/dist/v1/resources/agent_env_vars.js +56 -0
  77. package/dist/v1/resources/agent_env_vars.js.map +1 -0
  78. package/dist/v1/resources/agent_health_actions.d.ts +43 -0
  79. package/dist/v1/resources/agent_health_actions.d.ts.map +1 -0
  80. package/dist/v1/resources/agent_health_actions.js +50 -0
  81. package/dist/v1/resources/agent_health_actions.js.map +1 -0
  82. package/dist/v1/resources/agent_installations.d.ts +100 -0
  83. package/dist/v1/resources/agent_installations.d.ts.map +1 -1
  84. package/dist/v1/resources/agent_installations.js +106 -2
  85. package/dist/v1/resources/agent_installations.js.map +1 -1
  86. package/dist/v1/resources/agent_routine_runs.d.ts +33 -0
  87. package/dist/v1/resources/agent_routine_runs.d.ts.map +1 -0
  88. package/dist/v1/resources/agent_routine_runs.js +48 -0
  89. package/dist/v1/resources/agent_routine_runs.js.map +1 -0
  90. package/dist/v1/resources/agent_routines.d.ts +148 -2
  91. package/dist/v1/resources/agent_routines.d.ts.map +1 -1
  92. package/dist/v1/resources/agent_routines.js +168 -3
  93. package/dist/v1/resources/agent_routines.js.map +1 -1
  94. package/dist/v1/resources/agent_sessions.d.ts +118 -1
  95. package/dist/v1/resources/agent_sessions.d.ts.map +1 -1
  96. package/dist/v1/resources/agent_sessions.js +134 -2
  97. package/dist/v1/resources/agent_sessions.js.map +1 -1
  98. package/dist/v1/resources/agent_skills.d.ts +83 -1
  99. package/dist/v1/resources/agent_skills.d.ts.map +1 -1
  100. package/dist/v1/resources/agent_skills.js +87 -2
  101. package/dist/v1/resources/agent_skills.js.map +1 -1
  102. package/dist/v1/resources/agent_tools.d.ts +109 -2
  103. package/dist/v1/resources/agent_tools.d.ts.map +1 -1
  104. package/dist/v1/resources/agent_tools.js +114 -2
  105. package/dist/v1/resources/agent_tools.js.map +1 -1
  106. package/dist/v1/resources/agents.d.ts +517 -9
  107. package/dist/v1/resources/agents.d.ts.map +1 -1
  108. package/dist/v1/resources/agents.js +515 -12
  109. package/dist/v1/resources/agents.js.map +1 -1
  110. package/dist/v1/resources/ai.d.ts +93 -0
  111. package/dist/v1/resources/ai.d.ts.map +1 -1
  112. package/dist/v1/resources/ai.js +89 -1
  113. package/dist/v1/resources/ai.js.map +1 -1
  114. package/dist/v1/resources/artifacts.d.ts +73 -0
  115. package/dist/v1/resources/artifacts.d.ts.map +1 -1
  116. package/dist/v1/resources/artifacts.js +74 -2
  117. package/dist/v1/resources/artifacts.js.map +1 -1
  118. package/dist/v1/resources/automation_runs.d.ts +8 -4
  119. package/dist/v1/resources/automation_runs.d.ts.map +1 -1
  120. package/dist/v1/resources/automation_runs.js +9 -5
  121. package/dist/v1/resources/automation_runs.js.map +1 -1
  122. package/dist/v1/resources/automations.d.ts +20 -0
  123. package/dist/v1/resources/automations.d.ts.map +1 -1
  124. package/dist/v1/resources/automations.js +21 -1
  125. package/dist/v1/resources/automations.js.map +1 -1
  126. package/dist/v1/resources/bug_reports.d.ts +29 -0
  127. package/dist/v1/resources/bug_reports.d.ts.map +1 -0
  128. package/dist/v1/resources/bug_reports.js +29 -0
  129. package/dist/v1/resources/bug_reports.js.map +1 -0
  130. package/dist/v1/resources/config.d.ts +429 -4
  131. package/dist/v1/resources/config.d.ts.map +1 -1
  132. package/dist/v1/resources/config.js +493 -9
  133. package/dist/v1/resources/config.js.map +1 -1
  134. package/dist/v1/resources/custom_objects.d.ts +117 -2
  135. package/dist/v1/resources/custom_objects.d.ts.map +1 -1
  136. package/dist/v1/resources/custom_objects.js +132 -3
  137. package/dist/v1/resources/custom_objects.js.map +1 -1
  138. package/dist/v1/resources/files.d.ts +62 -0
  139. package/dist/v1/resources/files.d.ts.map +1 -0
  140. package/dist/v1/resources/files.js +58 -0
  141. package/dist/v1/resources/files.js.map +1 -0
  142. package/dist/v1/resources/index.d.ts +13 -0
  143. package/dist/v1/resources/index.d.ts.map +1 -1
  144. package/dist/v1/resources/index.js +14 -1
  145. package/dist/v1/resources/index.js.map +1 -1
  146. package/dist/v1/resources/installation_sources.d.ts +12 -0
  147. package/dist/v1/resources/installation_sources.d.ts.map +1 -1
  148. package/dist/v1/resources/installation_sources.js +13 -1
  149. package/dist/v1/resources/installation_sources.js.map +1 -1
  150. package/dist/v1/resources/invites.d.ts +15 -0
  151. package/dist/v1/resources/invites.d.ts.map +1 -1
  152. package/dist/v1/resources/invites.js +16 -1
  153. package/dist/v1/resources/invites.js.map +1 -1
  154. package/dist/v1/resources/knowledge_documents.d.ts +104 -0
  155. package/dist/v1/resources/knowledge_documents.d.ts.map +1 -0
  156. package/dist/v1/resources/knowledge_documents.js +112 -0
  157. package/dist/v1/resources/knowledge_documents.js.map +1 -0
  158. package/dist/v1/resources/knowledge_sources.d.ts +190 -0
  159. package/dist/v1/resources/knowledge_sources.d.ts.map +1 -0
  160. package/dist/v1/resources/knowledge_sources.js +176 -0
  161. package/dist/v1/resources/knowledge_sources.js.map +1 -0
  162. package/dist/v1/resources/kv.d.ts +73 -0
  163. package/dist/v1/resources/kv.d.ts.map +1 -1
  164. package/dist/v1/resources/kv.js +96 -3
  165. package/dist/v1/resources/kv.js.map +1 -1
  166. package/dist/v1/resources/notification_preferences.d.ts +61 -0
  167. package/dist/v1/resources/notification_preferences.d.ts.map +1 -0
  168. package/dist/v1/resources/notification_preferences.js +65 -0
  169. package/dist/v1/resources/notification_preferences.js.map +1 -0
  170. package/dist/v1/resources/notifications.d.ts +133 -0
  171. package/dist/v1/resources/notifications.d.ts.map +1 -0
  172. package/dist/v1/resources/notifications.js +136 -0
  173. package/dist/v1/resources/notifications.js.map +1 -0
  174. package/dist/v1/resources/orgs.d.ts +18 -0
  175. package/dist/v1/resources/orgs.d.ts.map +1 -1
  176. package/dist/v1/resources/orgs.js +30 -2
  177. package/dist/v1/resources/orgs.js.map +1 -1
  178. package/dist/v1/resources/slack_channel_bindings.d.ts +101 -0
  179. package/dist/v1/resources/slack_channel_bindings.d.ts.map +1 -0
  180. package/dist/v1/resources/slack_channel_bindings.js +114 -0
  181. package/dist/v1/resources/slack_channel_bindings.js.map +1 -0
  182. package/dist/v1/resources/solution_categories.d.ts +36 -0
  183. package/dist/v1/resources/solution_categories.d.ts.map +1 -0
  184. package/dist/v1/resources/solution_categories.js +55 -0
  185. package/dist/v1/resources/solution_categories.js.map +1 -0
  186. package/dist/v1/resources/solution_tags.d.ts +37 -0
  187. package/dist/v1/resources/solution_tags.d.ts.map +1 -0
  188. package/dist/v1/resources/solution_tags.js +54 -0
  189. package/dist/v1/resources/solution_tags.js.map +1 -0
  190. package/dist/v1/resources/solutions.d.ts +309 -0
  191. package/dist/v1/resources/solutions.d.ts.map +1 -0
  192. package/dist/v1/resources/solutions.js +214 -0
  193. package/dist/v1/resources/solutions.js.map +1 -0
  194. package/dist/v1/resources/team_memberships.d.ts +31 -0
  195. package/dist/v1/resources/team_memberships.d.ts.map +1 -1
  196. package/dist/v1/resources/team_memberships.js +49 -2
  197. package/dist/v1/resources/team_memberships.js.map +1 -1
  198. package/dist/v1/resources/teams.d.ts +458 -49
  199. package/dist/v1/resources/teams.d.ts.map +1 -1
  200. package/dist/v1/resources/teams.js +319 -27
  201. package/dist/v1/resources/teams.js.map +1 -1
  202. package/dist/v1/resources/thread_messages.d.ts +70 -0
  203. package/dist/v1/resources/thread_messages.d.ts.map +1 -1
  204. package/dist/v1/resources/thread_messages.js +85 -2
  205. package/dist/v1/resources/thread_messages.js.map +1 -1
  206. package/dist/v1/resources/threads.d.ts +201 -0
  207. package/dist/v1/resources/threads.d.ts.map +1 -1
  208. package/dist/v1/resources/threads.js +220 -4
  209. package/dist/v1/resources/threads.js.map +1 -1
  210. package/dist/v1/resources/users.d.ts +213 -39
  211. package/dist/v1/resources/users.d.ts.map +1 -1
  212. package/dist/v1/resources/users.js +121 -16
  213. package/dist/v1/resources/users.js.map +1 -1
  214. package/dist/v1.d.ts +26 -0
  215. package/dist/v1.d.ts.map +1 -1
  216. package/dist/v1.js +40 -1
  217. package/dist/v1.js.map +1 -1
  218. package/package.json +3 -1
  219. package/dist/types/agents.d.ts +0 -2084
  220. package/dist/types/agents.d.ts.map +0 -1
  221. package/dist/types/agents.js +0 -203
  222. package/dist/types/agents.js.map +0 -1
@@ -1,2084 +0,0 @@
1
- import { z } from "zod";
2
- /** API schema for an agent. */
3
- export declare const agentSchema: z.ZodObject<{
4
- acl: z.ZodOptional<z.ZodObject<{
5
- add: z.ZodOptional<z.ZodArray<z.ZodObject<{
6
- actions: z.ZodArray<z.ZodString, "many">;
7
- principal: z.ZodOptional<z.ZodString>;
8
- principal_type: z.ZodString;
9
- }, "strip", z.ZodTypeAny, {
10
- actions: string[];
11
- principal_type: string;
12
- principal?: string | undefined;
13
- }, {
14
- actions: string[];
15
- principal_type: string;
16
- principal?: string | undefined;
17
- }>, "many">>;
18
- grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
19
- actions: z.ZodArray<z.ZodString, "many">;
20
- principal: z.ZodOptional<z.ZodString>;
21
- principal_type: z.ZodString;
22
- }, "strip", z.ZodTypeAny, {
23
- actions: string[];
24
- principal_type: string;
25
- principal?: string | undefined;
26
- }, {
27
- actions: string[];
28
- principal_type: string;
29
- principal?: string | undefined;
30
- }>, "many">>;
31
- remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
32
- principal: z.ZodOptional<z.ZodString>;
33
- principal_type: z.ZodString;
34
- }, "strip", z.ZodTypeAny, {
35
- principal_type: string;
36
- principal?: string | undefined;
37
- }, {
38
- principal_type: string;
39
- principal?: string | undefined;
40
- }>, "many">>;
41
- }, "strip", z.ZodTypeAny, {
42
- add?: {
43
- actions: string[];
44
- principal_type: string;
45
- principal?: string | undefined;
46
- }[] | undefined;
47
- grants?: {
48
- actions: string[];
49
- principal_type: string;
50
- principal?: string | undefined;
51
- }[] | undefined;
52
- remove?: {
53
- principal_type: string;
54
- principal?: string | undefined;
55
- }[] | undefined;
56
- }, {
57
- add?: {
58
- actions: string[];
59
- principal_type: string;
60
- principal?: string | undefined;
61
- }[] | undefined;
62
- grants?: {
63
- actions: string[];
64
- principal_type: string;
65
- principal?: string | undefined;
66
- }[] | undefined;
67
- remove?: {
68
- principal_type: string;
69
- principal?: string | undefined;
70
- }[] | undefined;
71
- }>>;
72
- app: z.ZodOptional<z.ZodString>;
73
- created_at: z.ZodOptional<z.ZodString>;
74
- default_model: z.ZodOptional<z.ZodString>;
75
- email: z.ZodOptional<z.ZodString>;
76
- id: z.ZodString;
77
- identity: z.ZodOptional<z.ZodString>;
78
- lookup_key: z.ZodOptional<z.ZodString>;
79
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
80
- name: z.ZodOptional<z.ZodString>;
81
- org: z.ZodOptional<z.ZodString>;
82
- phone_number: z.ZodOptional<z.ZodString>;
83
- sandbox: z.ZodOptional<z.ZodString>;
84
- team: z.ZodOptional<z.ZodString>;
85
- updated_at: z.ZodOptional<z.ZodString>;
86
- user: z.ZodOptional<z.ZodString>;
87
- }, "strip", z.ZodTypeAny, {
88
- id: string;
89
- email?: string | undefined;
90
- name?: string | undefined;
91
- metadata?: Record<string, unknown> | undefined;
92
- org?: string | undefined;
93
- sandbox?: string | undefined;
94
- created_at?: string | undefined;
95
- user?: string | undefined;
96
- updated_at?: string | undefined;
97
- team?: string | undefined;
98
- lookup_key?: string | undefined;
99
- acl?: {
100
- add?: {
101
- actions: string[];
102
- principal_type: string;
103
- principal?: string | undefined;
104
- }[] | undefined;
105
- grants?: {
106
- actions: string[];
107
- principal_type: string;
108
- principal?: string | undefined;
109
- }[] | undefined;
110
- remove?: {
111
- principal_type: string;
112
- principal?: string | undefined;
113
- }[] | undefined;
114
- } | undefined;
115
- app?: string | undefined;
116
- default_model?: string | undefined;
117
- identity?: string | undefined;
118
- phone_number?: string | undefined;
119
- }, {
120
- id: string;
121
- email?: string | undefined;
122
- name?: string | undefined;
123
- metadata?: Record<string, unknown> | undefined;
124
- org?: string | undefined;
125
- sandbox?: string | undefined;
126
- created_at?: string | undefined;
127
- user?: string | undefined;
128
- updated_at?: string | undefined;
129
- team?: string | undefined;
130
- lookup_key?: string | undefined;
131
- acl?: {
132
- add?: {
133
- actions: string[];
134
- principal_type: string;
135
- principal?: string | undefined;
136
- }[] | undefined;
137
- grants?: {
138
- actions: string[];
139
- principal_type: string;
140
- principal?: string | undefined;
141
- }[] | undefined;
142
- remove?: {
143
- principal_type: string;
144
- principal?: string | undefined;
145
- }[] | undefined;
146
- } | undefined;
147
- app?: string | undefined;
148
- default_model?: string | undefined;
149
- identity?: string | undefined;
150
- phone_number?: string | undefined;
151
- }>;
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>;
285
- /** API schema for an agent export response.
286
-
287
- Contains the reconstructed AgentTemplate and all dependent config files
288
- needed for a fully self-contained re-deploy.
289
- */
290
- export declare const agentExportSchema: z.ZodObject<{
291
- configs: z.ZodArray<z.ZodObject<{
292
- created_at: z.ZodOptional<z.ZodString>;
293
- current_version: z.ZodOptional<z.ZodObject<{
294
- change_description: z.ZodOptional<z.ZodString>;
295
- created_at: z.ZodOptional<z.ZodString>;
296
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
297
- id: z.ZodString;
298
- org: z.ZodOptional<z.ZodString>;
299
- sandbox: z.ZodOptional<z.ZodString>;
300
- version_number: z.ZodNumber;
301
- }, "strip", z.ZodTypeAny, {
302
- id: string;
303
- version_number: number;
304
- org?: string | undefined;
305
- sandbox?: string | undefined;
306
- created_at?: string | undefined;
307
- data?: Record<string, unknown> | undefined;
308
- change_description?: string | undefined;
309
- }, {
310
- id: string;
311
- version_number: number;
312
- org?: string | undefined;
313
- sandbox?: string | undefined;
314
- created_at?: string | undefined;
315
- data?: Record<string, unknown> | undefined;
316
- change_description?: string | undefined;
317
- }>>;
318
- id: z.ZodString;
319
- is_archived: z.ZodOptional<z.ZodBoolean>;
320
- kind: z.ZodString;
321
- lookup_key: z.ZodOptional<z.ZodString>;
322
- mime_type: z.ZodOptional<z.ZodString>;
323
- org: z.ZodOptional<z.ZodString>;
324
- parent: z.ZodOptional<z.ZodString>;
325
- raw_content: z.ZodOptional<z.ZodString>;
326
- relative_path: z.ZodOptional<z.ZodString>;
327
- sandbox: z.ZodOptional<z.ZodString>;
328
- team: z.ZodOptional<z.ZodString>;
329
- updated_at: z.ZodOptional<z.ZodString>;
330
- user: z.ZodOptional<z.ZodString>;
331
- virtual_path: z.ZodOptional<z.ZodString>;
332
- }, "strip", z.ZodTypeAny, {
333
- id: string;
334
- kind: string;
335
- mime_type?: string | undefined;
336
- org?: string | undefined;
337
- sandbox?: string | undefined;
338
- created_at?: string | undefined;
339
- user?: string | undefined;
340
- updated_at?: string | undefined;
341
- team?: string | undefined;
342
- current_version?: {
343
- id: string;
344
- version_number: number;
345
- org?: string | undefined;
346
- sandbox?: string | undefined;
347
- created_at?: string | undefined;
348
- data?: Record<string, unknown> | undefined;
349
- change_description?: string | undefined;
350
- } | undefined;
351
- is_archived?: boolean | undefined;
352
- lookup_key?: string | undefined;
353
- parent?: string | undefined;
354
- raw_content?: string | undefined;
355
- relative_path?: string | undefined;
356
- virtual_path?: string | undefined;
357
- }, {
358
- id: string;
359
- kind: string;
360
- mime_type?: string | undefined;
361
- org?: string | undefined;
362
- sandbox?: string | undefined;
363
- created_at?: string | undefined;
364
- user?: string | undefined;
365
- updated_at?: string | undefined;
366
- team?: string | undefined;
367
- current_version?: {
368
- id: string;
369
- version_number: number;
370
- org?: string | undefined;
371
- sandbox?: string | undefined;
372
- created_at?: string | undefined;
373
- data?: Record<string, unknown> | undefined;
374
- change_description?: string | undefined;
375
- } | undefined;
376
- is_archived?: boolean | undefined;
377
- lookup_key?: string | undefined;
378
- parent?: string | undefined;
379
- raw_content?: string | undefined;
380
- relative_path?: string | undefined;
381
- virtual_path?: string | undefined;
382
- }>, "many">;
383
- template: z.ZodRecord<z.ZodString, z.ZodUnknown>;
384
- }, "strip", z.ZodTypeAny, {
385
- configs: {
386
- id: string;
387
- kind: string;
388
- mime_type?: string | undefined;
389
- org?: string | undefined;
390
- sandbox?: string | undefined;
391
- created_at?: string | undefined;
392
- user?: string | undefined;
393
- updated_at?: string | undefined;
394
- team?: string | undefined;
395
- current_version?: {
396
- id: string;
397
- version_number: number;
398
- org?: string | undefined;
399
- sandbox?: string | undefined;
400
- created_at?: string | undefined;
401
- data?: Record<string, unknown> | undefined;
402
- change_description?: string | undefined;
403
- } | undefined;
404
- is_archived?: boolean | undefined;
405
- lookup_key?: string | undefined;
406
- parent?: string | undefined;
407
- raw_content?: string | undefined;
408
- relative_path?: string | undefined;
409
- virtual_path?: string | undefined;
410
- }[];
411
- template: Record<string, unknown>;
412
- }, {
413
- configs: {
414
- id: string;
415
- kind: string;
416
- mime_type?: string | undefined;
417
- org?: string | undefined;
418
- sandbox?: string | undefined;
419
- created_at?: string | undefined;
420
- user?: string | undefined;
421
- updated_at?: string | undefined;
422
- team?: string | undefined;
423
- current_version?: {
424
- id: string;
425
- version_number: number;
426
- org?: string | undefined;
427
- sandbox?: string | undefined;
428
- created_at?: string | undefined;
429
- data?: Record<string, unknown> | undefined;
430
- change_description?: string | undefined;
431
- } | undefined;
432
- is_archived?: boolean | undefined;
433
- lookup_key?: string | undefined;
434
- parent?: string | undefined;
435
- raw_content?: string | undefined;
436
- relative_path?: string | undefined;
437
- virtual_path?: string | undefined;
438
- }[];
439
- template: Record<string, unknown>;
440
- }>;
441
- export type AgentExport = z.infer<typeof agentExportSchema>;
442
- /** Paginated list response for agents. */
443
- export declare const agentListResponseSchema: z.ZodObject<{
444
- data: z.ZodArray<z.ZodObject<{
445
- acl: z.ZodOptional<z.ZodObject<{
446
- add: z.ZodOptional<z.ZodArray<z.ZodObject<{
447
- actions: z.ZodArray<z.ZodString, "many">;
448
- principal: z.ZodOptional<z.ZodString>;
449
- principal_type: z.ZodString;
450
- }, "strip", z.ZodTypeAny, {
451
- actions: string[];
452
- principal_type: string;
453
- principal?: string | undefined;
454
- }, {
455
- actions: string[];
456
- principal_type: string;
457
- principal?: string | undefined;
458
- }>, "many">>;
459
- grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
460
- actions: z.ZodArray<z.ZodString, "many">;
461
- principal: z.ZodOptional<z.ZodString>;
462
- principal_type: z.ZodString;
463
- }, "strip", z.ZodTypeAny, {
464
- actions: string[];
465
- principal_type: string;
466
- principal?: string | undefined;
467
- }, {
468
- actions: string[];
469
- principal_type: string;
470
- principal?: string | undefined;
471
- }>, "many">>;
472
- remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
473
- principal: z.ZodOptional<z.ZodString>;
474
- principal_type: z.ZodString;
475
- }, "strip", z.ZodTypeAny, {
476
- principal_type: string;
477
- principal?: string | undefined;
478
- }, {
479
- principal_type: string;
480
- principal?: string | undefined;
481
- }>, "many">>;
482
- }, "strip", z.ZodTypeAny, {
483
- add?: {
484
- actions: string[];
485
- principal_type: string;
486
- principal?: string | undefined;
487
- }[] | undefined;
488
- grants?: {
489
- actions: string[];
490
- principal_type: string;
491
- principal?: string | undefined;
492
- }[] | undefined;
493
- remove?: {
494
- principal_type: string;
495
- principal?: string | undefined;
496
- }[] | undefined;
497
- }, {
498
- add?: {
499
- actions: string[];
500
- principal_type: string;
501
- principal?: string | undefined;
502
- }[] | undefined;
503
- grants?: {
504
- actions: string[];
505
- principal_type: string;
506
- principal?: string | undefined;
507
- }[] | undefined;
508
- remove?: {
509
- principal_type: string;
510
- principal?: string | undefined;
511
- }[] | undefined;
512
- }>>;
513
- app: z.ZodOptional<z.ZodString>;
514
- created_at: z.ZodOptional<z.ZodString>;
515
- default_model: z.ZodOptional<z.ZodString>;
516
- email: z.ZodOptional<z.ZodString>;
517
- id: z.ZodString;
518
- identity: z.ZodOptional<z.ZodString>;
519
- lookup_key: z.ZodOptional<z.ZodString>;
520
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
521
- name: z.ZodOptional<z.ZodString>;
522
- org: z.ZodOptional<z.ZodString>;
523
- phone_number: z.ZodOptional<z.ZodString>;
524
- sandbox: z.ZodOptional<z.ZodString>;
525
- team: z.ZodOptional<z.ZodString>;
526
- updated_at: z.ZodOptional<z.ZodString>;
527
- user: z.ZodOptional<z.ZodString>;
528
- }, "strip", z.ZodTypeAny, {
529
- id: string;
530
- email?: string | undefined;
531
- name?: string | undefined;
532
- metadata?: Record<string, unknown> | undefined;
533
- org?: string | undefined;
534
- sandbox?: string | undefined;
535
- created_at?: string | undefined;
536
- user?: string | undefined;
537
- updated_at?: string | undefined;
538
- team?: string | undefined;
539
- lookup_key?: string | undefined;
540
- acl?: {
541
- add?: {
542
- actions: string[];
543
- principal_type: string;
544
- principal?: string | undefined;
545
- }[] | undefined;
546
- grants?: {
547
- actions: string[];
548
- principal_type: string;
549
- principal?: string | undefined;
550
- }[] | undefined;
551
- remove?: {
552
- principal_type: string;
553
- principal?: string | undefined;
554
- }[] | undefined;
555
- } | undefined;
556
- app?: string | undefined;
557
- default_model?: string | undefined;
558
- identity?: string | undefined;
559
- phone_number?: string | undefined;
560
- }, {
561
- id: string;
562
- email?: string | undefined;
563
- name?: string | undefined;
564
- metadata?: Record<string, unknown> | undefined;
565
- org?: string | undefined;
566
- sandbox?: string | undefined;
567
- created_at?: string | undefined;
568
- user?: string | undefined;
569
- updated_at?: string | undefined;
570
- team?: string | undefined;
571
- lookup_key?: string | undefined;
572
- acl?: {
573
- add?: {
574
- actions: string[];
575
- principal_type: string;
576
- principal?: string | undefined;
577
- }[] | undefined;
578
- grants?: {
579
- actions: string[];
580
- principal_type: string;
581
- principal?: string | undefined;
582
- }[] | undefined;
583
- remove?: {
584
- principal_type: string;
585
- principal?: string | undefined;
586
- }[] | undefined;
587
- } | undefined;
588
- app?: string | undefined;
589
- default_model?: string | undefined;
590
- identity?: string | undefined;
591
- phone_number?: string | undefined;
592
- }>, "many">;
593
- has_next: z.ZodOptional<z.ZodBoolean>;
594
- has_prev: z.ZodOptional<z.ZodBoolean>;
595
- page: z.ZodOptional<z.ZodNumber>;
596
- page_size: z.ZodOptional<z.ZodNumber>;
597
- total_entries: z.ZodOptional<z.ZodNumber>;
598
- total_pages: z.ZodOptional<z.ZodNumber>;
599
- }, "strip", z.ZodTypeAny, {
600
- data: {
601
- id: string;
602
- email?: string | undefined;
603
- name?: string | undefined;
604
- metadata?: Record<string, unknown> | undefined;
605
- org?: string | undefined;
606
- sandbox?: string | undefined;
607
- created_at?: string | undefined;
608
- user?: string | undefined;
609
- updated_at?: string | undefined;
610
- team?: string | undefined;
611
- lookup_key?: string | undefined;
612
- acl?: {
613
- add?: {
614
- actions: string[];
615
- principal_type: string;
616
- principal?: string | undefined;
617
- }[] | undefined;
618
- grants?: {
619
- actions: string[];
620
- principal_type: string;
621
- principal?: string | undefined;
622
- }[] | undefined;
623
- remove?: {
624
- principal_type: string;
625
- principal?: string | undefined;
626
- }[] | undefined;
627
- } | undefined;
628
- app?: string | undefined;
629
- default_model?: string | undefined;
630
- identity?: string | undefined;
631
- phone_number?: string | undefined;
632
- }[];
633
- has_next?: boolean | undefined;
634
- has_prev?: boolean | undefined;
635
- page?: number | undefined;
636
- page_size?: number | undefined;
637
- total_entries?: number | undefined;
638
- total_pages?: number | undefined;
639
- }, {
640
- data: {
641
- id: string;
642
- email?: string | undefined;
643
- name?: string | undefined;
644
- metadata?: Record<string, unknown> | undefined;
645
- org?: string | undefined;
646
- sandbox?: string | undefined;
647
- created_at?: string | undefined;
648
- user?: string | undefined;
649
- updated_at?: string | undefined;
650
- team?: string | undefined;
651
- lookup_key?: string | undefined;
652
- acl?: {
653
- add?: {
654
- actions: string[];
655
- principal_type: string;
656
- principal?: string | undefined;
657
- }[] | undefined;
658
- grants?: {
659
- actions: string[];
660
- principal_type: string;
661
- principal?: string | undefined;
662
- }[] | undefined;
663
- remove?: {
664
- principal_type: string;
665
- principal?: string | undefined;
666
- }[] | undefined;
667
- } | undefined;
668
- app?: string | undefined;
669
- default_model?: string | undefined;
670
- identity?: string | undefined;
671
- phone_number?: string | undefined;
672
- }[];
673
- has_next?: boolean | undefined;
674
- has_prev?: boolean | undefined;
675
- page?: number | undefined;
676
- page_size?: number | undefined;
677
- total_entries?: number | undefined;
678
- total_pages?: number | undefined;
679
- }>;
680
- export type AgentListResponse = z.infer<typeof agentListResponseSchema>;
681
- /** API schema for an agent routine. */
682
- export declare const agentRoutineSchema: z.ZodObject<{
683
- acl: z.ZodOptional<z.ZodObject<{
684
- add: z.ZodOptional<z.ZodArray<z.ZodObject<{
685
- actions: z.ZodArray<z.ZodString, "many">;
686
- principal: z.ZodOptional<z.ZodString>;
687
- principal_type: z.ZodString;
688
- }, "strip", z.ZodTypeAny, {
689
- actions: string[];
690
- principal_type: string;
691
- principal?: string | undefined;
692
- }, {
693
- actions: string[];
694
- principal_type: string;
695
- principal?: string | undefined;
696
- }>, "many">>;
697
- grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
698
- actions: z.ZodArray<z.ZodString, "many">;
699
- principal: z.ZodOptional<z.ZodString>;
700
- principal_type: z.ZodString;
701
- }, "strip", z.ZodTypeAny, {
702
- actions: string[];
703
- principal_type: string;
704
- principal?: string | undefined;
705
- }, {
706
- actions: string[];
707
- principal_type: string;
708
- principal?: string | undefined;
709
- }>, "many">>;
710
- remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
711
- principal: z.ZodOptional<z.ZodString>;
712
- principal_type: z.ZodString;
713
- }, "strip", z.ZodTypeAny, {
714
- principal_type: string;
715
- principal?: string | undefined;
716
- }, {
717
- principal_type: string;
718
- principal?: string | undefined;
719
- }>, "many">>;
720
- }, "strip", z.ZodTypeAny, {
721
- add?: {
722
- actions: string[];
723
- principal_type: string;
724
- principal?: string | undefined;
725
- }[] | undefined;
726
- grants?: {
727
- actions: string[];
728
- principal_type: string;
729
- principal?: string | undefined;
730
- }[] | undefined;
731
- remove?: {
732
- principal_type: string;
733
- principal?: string | undefined;
734
- }[] | undefined;
735
- }, {
736
- add?: {
737
- actions: string[];
738
- principal_type: string;
739
- principal?: string | undefined;
740
- }[] | undefined;
741
- grants?: {
742
- actions: string[];
743
- principal_type: string;
744
- principal?: string | undefined;
745
- }[] | undefined;
746
- remove?: {
747
- principal_type: string;
748
- principal?: string | undefined;
749
- }[] | undefined;
750
- }>>;
751
- agent: z.ZodOptional<z.ZodString>;
752
- app: z.ZodOptional<z.ZodString>;
753
- config: z.ZodOptional<z.ZodString>;
754
- created_at: z.ZodOptional<z.ZodString>;
755
- description: z.ZodOptional<z.ZodString>;
756
- event_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
757
- event_type: z.ZodOptional<z.ZodString>;
758
- handler_type: z.ZodOptional<z.ZodString>;
759
- id: z.ZodString;
760
- lookup_key: z.ZodOptional<z.ZodString>;
761
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
762
- name: z.ZodOptional<z.ZodString>;
763
- preset_config: z.ZodOptional<z.ZodObject<{
764
- instructions: z.ZodOptional<z.ZodString>;
765
- llm: z.ZodOptional<z.ZodObject<{
766
- model: z.ZodOptional<z.ZodString>;
767
- }, "strip", z.ZodTypeAny, {
768
- model?: string | undefined;
769
- }, {
770
- model?: string | undefined;
771
- }>>;
772
- session_mode: z.ZodOptional<z.ZodString>;
773
- session_scope: z.ZodOptional<z.ZodString>;
774
- structured_message_template_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
775
- }, "strip", z.ZodTypeAny, {
776
- instructions?: string | undefined;
777
- llm?: {
778
- model?: string | undefined;
779
- } | undefined;
780
- session_mode?: string | undefined;
781
- session_scope?: string | undefined;
782
- structured_message_template_ids?: string[] | undefined;
783
- }, {
784
- instructions?: string | undefined;
785
- llm?: {
786
- model?: string | undefined;
787
- } | undefined;
788
- session_mode?: string | undefined;
789
- session_scope?: string | undefined;
790
- structured_message_template_ids?: string[] | undefined;
791
- }>>;
792
- preset_name: z.ZodOptional<z.ZodString>;
793
- schedule: z.ZodOptional<z.ZodString>;
794
- script: z.ZodOptional<z.ZodString>;
795
- status: z.ZodOptional<z.ZodString>;
796
- steps: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
797
- trigger_context: z.ZodOptional<z.ZodString>;
798
- updated_at: z.ZodOptional<z.ZodString>;
799
- }, "strip", z.ZodTypeAny, {
800
- id: string;
801
- status?: string | undefined;
802
- name?: string | undefined;
803
- metadata?: Record<string, unknown> | undefined;
804
- created_at?: string | undefined;
805
- updated_at?: string | undefined;
806
- description?: string | undefined;
807
- agent?: string | undefined;
808
- config?: string | undefined;
809
- lookup_key?: string | undefined;
810
- acl?: {
811
- add?: {
812
- actions: string[];
813
- principal_type: string;
814
- principal?: string | undefined;
815
- }[] | undefined;
816
- grants?: {
817
- actions: string[];
818
- principal_type: string;
819
- principal?: string | undefined;
820
- }[] | undefined;
821
- remove?: {
822
- principal_type: string;
823
- principal?: string | undefined;
824
- }[] | undefined;
825
- } | undefined;
826
- app?: string | undefined;
827
- event_config?: Record<string, unknown> | undefined;
828
- event_type?: string | undefined;
829
- handler_type?: string | undefined;
830
- preset_config?: {
831
- instructions?: string | undefined;
832
- llm?: {
833
- model?: string | undefined;
834
- } | undefined;
835
- session_mode?: string | undefined;
836
- session_scope?: string | undefined;
837
- structured_message_template_ids?: string[] | undefined;
838
- } | undefined;
839
- preset_name?: string | undefined;
840
- schedule?: string | undefined;
841
- script?: string | undefined;
842
- steps?: Record<string, unknown>[] | undefined;
843
- trigger_context?: string | undefined;
844
- }, {
845
- id: string;
846
- status?: string | undefined;
847
- name?: string | undefined;
848
- metadata?: Record<string, unknown> | undefined;
849
- created_at?: string | undefined;
850
- updated_at?: string | undefined;
851
- description?: string | undefined;
852
- agent?: string | undefined;
853
- config?: string | undefined;
854
- lookup_key?: string | undefined;
855
- acl?: {
856
- add?: {
857
- actions: string[];
858
- principal_type: string;
859
- principal?: string | undefined;
860
- }[] | undefined;
861
- grants?: {
862
- actions: string[];
863
- principal_type: string;
864
- principal?: string | undefined;
865
- }[] | undefined;
866
- remove?: {
867
- principal_type: string;
868
- principal?: string | undefined;
869
- }[] | undefined;
870
- } | undefined;
871
- app?: string | undefined;
872
- event_config?: Record<string, unknown> | undefined;
873
- event_type?: string | undefined;
874
- handler_type?: string | undefined;
875
- preset_config?: {
876
- instructions?: string | undefined;
877
- llm?: {
878
- model?: string | undefined;
879
- } | undefined;
880
- session_mode?: string | undefined;
881
- session_scope?: string | undefined;
882
- structured_message_template_ids?: string[] | undefined;
883
- } | undefined;
884
- preset_name?: string | undefined;
885
- schedule?: string | undefined;
886
- script?: string | undefined;
887
- steps?: Record<string, unknown>[] | undefined;
888
- trigger_context?: string | undefined;
889
- }>;
890
- export type AgentRoutine = z.infer<typeof agentRoutineSchema>;
891
- /** List response for agent routines. */
892
- export declare const agentRoutineListResponseSchema: z.ZodObject<{
893
- data: z.ZodArray<z.ZodObject<{
894
- acl: z.ZodOptional<z.ZodObject<{
895
- add: z.ZodOptional<z.ZodArray<z.ZodObject<{
896
- actions: z.ZodArray<z.ZodString, "many">;
897
- principal: z.ZodOptional<z.ZodString>;
898
- principal_type: z.ZodString;
899
- }, "strip", z.ZodTypeAny, {
900
- actions: string[];
901
- principal_type: string;
902
- principal?: string | undefined;
903
- }, {
904
- actions: string[];
905
- principal_type: string;
906
- principal?: string | undefined;
907
- }>, "many">>;
908
- grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
909
- actions: z.ZodArray<z.ZodString, "many">;
910
- principal: z.ZodOptional<z.ZodString>;
911
- principal_type: z.ZodString;
912
- }, "strip", z.ZodTypeAny, {
913
- actions: string[];
914
- principal_type: string;
915
- principal?: string | undefined;
916
- }, {
917
- actions: string[];
918
- principal_type: string;
919
- principal?: string | undefined;
920
- }>, "many">>;
921
- remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
922
- principal: z.ZodOptional<z.ZodString>;
923
- principal_type: z.ZodString;
924
- }, "strip", z.ZodTypeAny, {
925
- principal_type: string;
926
- principal?: string | undefined;
927
- }, {
928
- principal_type: string;
929
- principal?: string | undefined;
930
- }>, "many">>;
931
- }, "strip", z.ZodTypeAny, {
932
- add?: {
933
- actions: string[];
934
- principal_type: string;
935
- principal?: string | undefined;
936
- }[] | undefined;
937
- grants?: {
938
- actions: string[];
939
- principal_type: string;
940
- principal?: string | undefined;
941
- }[] | undefined;
942
- remove?: {
943
- principal_type: string;
944
- principal?: string | undefined;
945
- }[] | undefined;
946
- }, {
947
- add?: {
948
- actions: string[];
949
- principal_type: string;
950
- principal?: string | undefined;
951
- }[] | undefined;
952
- grants?: {
953
- actions: string[];
954
- principal_type: string;
955
- principal?: string | undefined;
956
- }[] | undefined;
957
- remove?: {
958
- principal_type: string;
959
- principal?: string | undefined;
960
- }[] | undefined;
961
- }>>;
962
- agent: z.ZodOptional<z.ZodString>;
963
- app: z.ZodOptional<z.ZodString>;
964
- config: z.ZodOptional<z.ZodString>;
965
- created_at: 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>;
970
- id: z.ZodString;
971
- lookup_key: z.ZodOptional<z.ZodString>;
972
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
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">>;
986
- }, "strip", z.ZodTypeAny, {
987
- instructions?: string | undefined;
988
- llm?: {
989
- model?: string | undefined;
990
- } | undefined;
991
- session_mode?: string | undefined;
992
- session_scope?: string | undefined;
993
- structured_message_template_ids?: string[] | undefined;
994
- }, {
995
- instructions?: string | undefined;
996
- llm?: {
997
- model?: string | undefined;
998
- } | undefined;
999
- session_mode?: string | undefined;
1000
- session_scope?: string | undefined;
1001
- structured_message_template_ids?: string[] | undefined;
1002
- }>>;
1003
- preset_name: z.ZodOptional<z.ZodString>;
1004
- schedule: z.ZodOptional<z.ZodString>;
1005
- script: z.ZodOptional<z.ZodString>;
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>;
1010
- }, "strip", z.ZodTypeAny, {
1011
- id: string;
1012
- status?: string | undefined;
1013
- name?: string | undefined;
1014
- metadata?: Record<string, unknown> | undefined;
1015
- created_at?: string | undefined;
1016
- updated_at?: string | undefined;
1017
- description?: string | undefined;
1018
- agent?: string | undefined;
1019
- config?: string | undefined;
1020
- lookup_key?: string | undefined;
1021
- acl?: {
1022
- add?: {
1023
- actions: string[];
1024
- principal_type: string;
1025
- principal?: string | undefined;
1026
- }[] | undefined;
1027
- grants?: {
1028
- actions: string[];
1029
- principal_type: string;
1030
- principal?: string | undefined;
1031
- }[] | undefined;
1032
- remove?: {
1033
- principal_type: string;
1034
- principal?: string | undefined;
1035
- }[] | undefined;
1036
- } | undefined;
1037
- app?: string | undefined;
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;
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;
1055
- }, {
1056
- id: string;
1057
- status?: string | undefined;
1058
- name?: string | undefined;
1059
- metadata?: Record<string, unknown> | undefined;
1060
- created_at?: string | undefined;
1061
- updated_at?: string | undefined;
1062
- description?: string | undefined;
1063
- agent?: string | undefined;
1064
- config?: string | undefined;
1065
- lookup_key?: string | undefined;
1066
- acl?: {
1067
- add?: {
1068
- actions: string[];
1069
- principal_type: string;
1070
- principal?: string | undefined;
1071
- }[] | undefined;
1072
- grants?: {
1073
- actions: string[];
1074
- principal_type: string;
1075
- principal?: string | undefined;
1076
- }[] | undefined;
1077
- remove?: {
1078
- principal_type: string;
1079
- principal?: string | undefined;
1080
- }[] | undefined;
1081
- } | undefined;
1082
- app?: string | undefined;
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;
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;
1100
- }>, "many">;
1101
- }, "strip", z.ZodTypeAny, {
1102
- data: {
1103
- id: string;
1104
- status?: string | undefined;
1105
- name?: string | undefined;
1106
- metadata?: Record<string, unknown> | undefined;
1107
- created_at?: string | undefined;
1108
- updated_at?: string | undefined;
1109
- description?: string | undefined;
1110
- agent?: string | undefined;
1111
- config?: string | undefined;
1112
- lookup_key?: string | undefined;
1113
- acl?: {
1114
- add?: {
1115
- actions: string[];
1116
- principal_type: string;
1117
- principal?: string | undefined;
1118
- }[] | undefined;
1119
- grants?: {
1120
- actions: string[];
1121
- principal_type: string;
1122
- principal?: string | undefined;
1123
- }[] | undefined;
1124
- remove?: {
1125
- principal_type: string;
1126
- principal?: string | undefined;
1127
- }[] | undefined;
1128
- } | undefined;
1129
- app?: string | undefined;
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;
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;
1147
- }[];
1148
- }, {
1149
- data: {
1150
- id: string;
1151
- status?: string | undefined;
1152
- name?: string | undefined;
1153
- metadata?: Record<string, unknown> | undefined;
1154
- created_at?: string | undefined;
1155
- updated_at?: string | undefined;
1156
- description?: string | undefined;
1157
- agent?: string | undefined;
1158
- config?: string | undefined;
1159
- lookup_key?: string | undefined;
1160
- acl?: {
1161
- add?: {
1162
- actions: string[];
1163
- principal_type: string;
1164
- principal?: string | undefined;
1165
- }[] | undefined;
1166
- grants?: {
1167
- actions: string[];
1168
- principal_type: string;
1169
- principal?: string | undefined;
1170
- }[] | undefined;
1171
- remove?: {
1172
- principal_type: string;
1173
- principal?: string | undefined;
1174
- }[] | undefined;
1175
- } | undefined;
1176
- app?: string | undefined;
1177
- event_config?: Record<string, unknown> | undefined;
1178
- event_type?: string | undefined;
1179
- handler_type?: string | undefined;
1180
- preset_config?: {
1181
- instructions?: string | undefined;
1182
- llm?: {
1183
- model?: string | undefined;
1184
- } | undefined;
1185
- session_mode?: string | undefined;
1186
- session_scope?: string | undefined;
1187
- structured_message_template_ids?: string[] | undefined;
1188
- } | undefined;
1189
- preset_name?: string | undefined;
1190
- schedule?: string | undefined;
1191
- script?: string | undefined;
1192
- steps?: Record<string, unknown>[] | undefined;
1193
- trigger_context?: string | undefined;
1194
- }[];
1195
- }>;
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;
1204
- }, "strip", z.ZodTypeAny, {
1205
- actions: string[];
1206
- principal_type: string;
1207
- principal?: string | undefined;
1208
- }, {
1209
- actions: string[];
1210
- principal_type: string;
1211
- principal?: string | undefined;
1212
- }>, "many">>;
1213
- grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1214
- actions: z.ZodArray<z.ZodString, "many">;
1215
- principal: z.ZodOptional<z.ZodString>;
1216
- principal_type: z.ZodString;
1217
- }, "strip", z.ZodTypeAny, {
1218
- actions: string[];
1219
- principal_type: string;
1220
- principal?: string | undefined;
1221
- }, {
1222
- actions: string[];
1223
- principal_type: string;
1224
- principal?: string | undefined;
1225
- }>, "many">>;
1226
- remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
1227
- principal: z.ZodOptional<z.ZodString>;
1228
- principal_type: z.ZodString;
1229
- }, "strip", z.ZodTypeAny, {
1230
- principal_type: string;
1231
- principal?: string | undefined;
1232
- }, {
1233
- principal_type: string;
1234
- principal?: string | undefined;
1235
- }>, "many">>;
1236
- }, "strip", z.ZodTypeAny, {
1237
- add?: {
1238
- actions: string[];
1239
- principal_type: string;
1240
- principal?: string | undefined;
1241
- }[] | undefined;
1242
- grants?: {
1243
- actions: string[];
1244
- principal_type: string;
1245
- principal?: string | undefined;
1246
- }[] | undefined;
1247
- remove?: {
1248
- principal_type: string;
1249
- principal?: string | undefined;
1250
- }[] | undefined;
1251
- }, {
1252
- add?: {
1253
- actions: string[];
1254
- principal_type: string;
1255
- principal?: string | undefined;
1256
- }[] | undefined;
1257
- grants?: {
1258
- actions: string[];
1259
- principal_type: string;
1260
- principal?: string | undefined;
1261
- }[] | undefined;
1262
- remove?: {
1263
- principal_type: string;
1264
- principal?: string | undefined;
1265
- }[] | undefined;
1266
- }>>;
1267
- agent: z.ZodOptional<z.ZodString>;
1268
- app: z.ZodOptional<z.ZodString>;
1269
- created_at: z.ZodOptional<z.ZodString>;
1270
- duration_ms: z.ZodOptional<z.ZodNumber>;
1271
- event_id: z.ZodOptional<z.ZodString>;
1272
- id: z.ZodString;
1273
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
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>;
1277
- status: z.ZodOptional<z.ZodString>;
1278
- structured_response: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
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
- }>>;
1293
- }, "strip", z.ZodTypeAny, {
1294
- id: string;
1295
- status?: string | undefined;
1296
- metadata?: Record<string, unknown> | undefined;
1297
- created_at?: string | undefined;
1298
- updated_at?: string | undefined;
1299
- agent?: string | undefined;
1300
- payload?: Record<string, unknown> | undefined;
1301
- acl?: {
1302
- add?: {
1303
- actions: string[];
1304
- principal_type: string;
1305
- principal?: string | undefined;
1306
- }[] | undefined;
1307
- grants?: {
1308
- actions: string[];
1309
- principal_type: string;
1310
- principal?: string | undefined;
1311
- }[] | undefined;
1312
- remove?: {
1313
- principal_type: string;
1314
- principal?: string | undefined;
1315
- }[] | undefined;
1316
- } | undefined;
1317
- app?: 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;
1328
- }, {
1329
- id: string;
1330
- status?: string | undefined;
1331
- metadata?: Record<string, unknown> | undefined;
1332
- created_at?: string | undefined;
1333
- updated_at?: string | undefined;
1334
- agent?: string | undefined;
1335
- payload?: Record<string, unknown> | undefined;
1336
- acl?: {
1337
- add?: {
1338
- actions: string[];
1339
- principal_type: string;
1340
- principal?: string | undefined;
1341
- }[] | undefined;
1342
- grants?: {
1343
- actions: string[];
1344
- principal_type: string;
1345
- principal?: string | undefined;
1346
- }[] | undefined;
1347
- remove?: {
1348
- principal_type: string;
1349
- principal?: string | undefined;
1350
- }[] | undefined;
1351
- } | undefined;
1352
- app?: 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;
1363
- }>;
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>;
1369
- data: z.ZodArray<z.ZodObject<{
1370
- acl: z.ZodOptional<z.ZodObject<{
1371
- add: z.ZodOptional<z.ZodArray<z.ZodObject<{
1372
- actions: z.ZodArray<z.ZodString, "many">;
1373
- principal: z.ZodOptional<z.ZodString>;
1374
- principal_type: z.ZodString;
1375
- }, "strip", z.ZodTypeAny, {
1376
- actions: string[];
1377
- principal_type: string;
1378
- principal?: string | undefined;
1379
- }, {
1380
- actions: string[];
1381
- principal_type: string;
1382
- principal?: string | undefined;
1383
- }>, "many">>;
1384
- grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1385
- actions: z.ZodArray<z.ZodString, "many">;
1386
- principal: z.ZodOptional<z.ZodString>;
1387
- principal_type: z.ZodString;
1388
- }, "strip", z.ZodTypeAny, {
1389
- actions: string[];
1390
- principal_type: string;
1391
- principal?: string | undefined;
1392
- }, {
1393
- actions: string[];
1394
- principal_type: string;
1395
- principal?: string | undefined;
1396
- }>, "many">>;
1397
- remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
1398
- principal: z.ZodOptional<z.ZodString>;
1399
- principal_type: z.ZodString;
1400
- }, "strip", z.ZodTypeAny, {
1401
- principal_type: string;
1402
- principal?: string | undefined;
1403
- }, {
1404
- principal_type: string;
1405
- principal?: string | undefined;
1406
- }>, "many">>;
1407
- }, "strip", z.ZodTypeAny, {
1408
- add?: {
1409
- actions: string[];
1410
- principal_type: string;
1411
- principal?: string | undefined;
1412
- }[] | undefined;
1413
- grants?: {
1414
- actions: string[];
1415
- principal_type: string;
1416
- principal?: string | undefined;
1417
- }[] | undefined;
1418
- remove?: {
1419
- principal_type: string;
1420
- principal?: string | undefined;
1421
- }[] | undefined;
1422
- }, {
1423
- add?: {
1424
- actions: string[];
1425
- principal_type: string;
1426
- principal?: string | undefined;
1427
- }[] | undefined;
1428
- grants?: {
1429
- actions: string[];
1430
- principal_type: string;
1431
- principal?: string | undefined;
1432
- }[] | undefined;
1433
- remove?: {
1434
- principal_type: string;
1435
- principal?: string | undefined;
1436
- }[] | undefined;
1437
- }>>;
1438
- agent: z.ZodOptional<z.ZodString>;
1439
- app: z.ZodOptional<z.ZodString>;
1440
- created_at: z.ZodOptional<z.ZodString>;
1441
- duration_ms: z.ZodOptional<z.ZodNumber>;
1442
- event_id: z.ZodOptional<z.ZodString>;
1443
- id: z.ZodString;
1444
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
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>;
1448
- status: z.ZodOptional<z.ZodString>;
1449
- structured_response: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
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
- }>>;
1464
- }, "strip", z.ZodTypeAny, {
1465
- id: string;
1466
- status?: string | undefined;
1467
- metadata?: Record<string, unknown> | undefined;
1468
- created_at?: string | undefined;
1469
- updated_at?: 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;
1502
- metadata?: Record<string, unknown> | undefined;
1503
- created_at?: string | undefined;
1504
- updated_at?: string | undefined;
1505
- agent?: string | undefined;
1506
- payload?: Record<string, unknown> | undefined;
1507
- acl?: {
1508
- add?: {
1509
- actions: string[];
1510
- principal_type: string;
1511
- principal?: string | undefined;
1512
- }[] | undefined;
1513
- grants?: {
1514
- actions: string[];
1515
- principal_type: string;
1516
- principal?: string | undefined;
1517
- }[] | undefined;
1518
- remove?: {
1519
- principal_type: string;
1520
- principal?: string | undefined;
1521
- }[] | undefined;
1522
- } | undefined;
1523
- app?: 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;
1883
- }, {
1884
- id: string;
1885
- status?: string | undefined;
1886
- metadata?: Record<string, unknown> | undefined;
1887
- created_at?: string | undefined;
1888
- updated_at?: string | undefined;
1889
- instruction?: string | undefined;
1890
- agent?: string | undefined;
1891
- config?: string | undefined;
1892
- app?: string | undefined;
1893
- }>, "many">;
1894
- }, "strip", z.ZodTypeAny, {
1895
- data: {
1896
- id: string;
1897
- status?: string | undefined;
1898
- metadata?: Record<string, unknown> | undefined;
1899
- created_at?: string | undefined;
1900
- updated_at?: string | undefined;
1901
- instruction?: string | undefined;
1902
- agent?: string | undefined;
1903
- config?: string | undefined;
1904
- app?: string | undefined;
1905
- }[];
1906
- }, {
1907
- data: {
1908
- id: string;
1909
- status?: string | undefined;
1910
- metadata?: Record<string, unknown> | undefined;
1911
- created_at?: string | undefined;
1912
- updated_at?: string | undefined;
1913
- instruction?: string | undefined;
1914
- agent?: string | undefined;
1915
- config?: string | undefined;
1916
- app?: string | undefined;
1917
- }[];
1918
- }>;
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>;
1940
- }, "strip", z.ZodTypeAny, {
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;
1959
- }, {
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;
1978
- }>;
1979
- export type AgentTool = z.infer<typeof agentToolSchema>;
1980
- /** List response for agent tools. */
1981
- export declare const agentToolListResponseSchema: z.ZodObject<{
1982
- data: z.ZodArray<z.ZodObject<{
1983
- agent: z.ZodOptional<z.ZodString>;
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>;
1987
- config: z.ZodOptional<z.ZodString>;
1988
- created_at: z.ZodOptional<z.ZodString>;
1989
- description: z.ZodOptional<z.ZodString>;
1990
- handler_type: z.ZodOptional<z.ZodString>;
1991
- id: z.ZodString;
1992
- instruction: z.ZodOptional<z.ZodString>;
1993
- kind: z.ZodOptional<z.ZodString>;
1994
- lookup_key: z.ZodOptional<z.ZodString>;
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>;
1999
- status: z.ZodOptional<z.ZodString>;
2000
- updated_at: z.ZodOptional<z.ZodString>;
2001
- }, "strip", z.ZodTypeAny, {
2002
- id: string;
2003
- status?: string | undefined;
2004
- name?: string | undefined;
2005
- metadata?: Record<string, unknown> | undefined;
2006
- created_at?: string | undefined;
2007
- updated_at?: string | undefined;
2008
- description?: string | undefined;
2009
- instruction?: string | undefined;
2010
- agent?: string | undefined;
2011
- config?: string | undefined;
2012
- kind?: string | undefined;
2013
- lookup_key?: string | undefined;
2014
- app?: 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;
2020
- }, {
2021
- id: string;
2022
- status?: string | undefined;
2023
- name?: string | undefined;
2024
- metadata?: Record<string, unknown> | undefined;
2025
- created_at?: string | undefined;
2026
- updated_at?: string | undefined;
2027
- description?: string | undefined;
2028
- instruction?: string | undefined;
2029
- agent?: string | undefined;
2030
- config?: string | undefined;
2031
- kind?: string | undefined;
2032
- lookup_key?: string | undefined;
2033
- app?: 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;
2039
- }>, "many">;
2040
- }, "strip", z.ZodTypeAny, {
2041
- data: {
2042
- id: string;
2043
- status?: string | undefined;
2044
- name?: string | undefined;
2045
- metadata?: Record<string, unknown> | undefined;
2046
- created_at?: string | undefined;
2047
- updated_at?: string | undefined;
2048
- description?: string | undefined;
2049
- instruction?: string | undefined;
2050
- agent?: string | undefined;
2051
- config?: string | undefined;
2052
- kind?: string | undefined;
2053
- lookup_key?: string | undefined;
2054
- app?: 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;
2060
- }[];
2061
- }, {
2062
- data: {
2063
- id: string;
2064
- status?: string | undefined;
2065
- name?: string | undefined;
2066
- metadata?: Record<string, unknown> | undefined;
2067
- created_at?: string | undefined;
2068
- updated_at?: string | undefined;
2069
- description?: string | undefined;
2070
- instruction?: string | undefined;
2071
- agent?: string | undefined;
2072
- config?: string | undefined;
2073
- kind?: string | undefined;
2074
- lookup_key?: string | undefined;
2075
- app?: 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;
2081
- }[];
2082
- }>;
2083
- export type AgentToolListResponse = z.infer<typeof agentToolListResponseSchema>;
2084
- //# sourceMappingURL=agents.d.ts.map