@archastro/sdk 0.1.0 → 0.4.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 (155) hide show
  1. package/README.md +165 -0
  2. package/dist/client.d.ts +13 -13
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +27 -27
  5. package/dist/client.js.map +1 -1
  6. package/dist/index.d.ts +1 -1
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +2 -2
  9. package/dist/index.js.map +1 -1
  10. package/dist/runtime/http-client.d.ts +7 -0
  11. package/dist/runtime/http-client.d.ts.map +1 -1
  12. package/dist/runtime/http-client.js +55 -0
  13. package/dist/runtime/http-client.js.map +1 -1
  14. package/dist/types/agents.d.ts +662 -431
  15. package/dist/types/agents.d.ts.map +1 -1
  16. package/dist/types/agents.js +51 -37
  17. package/dist/types/agents.js.map +1 -1
  18. package/dist/types/ai.d.ts +49 -49
  19. package/dist/types/ai.js +6 -6
  20. package/dist/types/ai.js.map +1 -1
  21. package/dist/types/api.d.ts +169 -0
  22. package/dist/types/api.d.ts.map +1 -0
  23. package/dist/types/api.js +49 -0
  24. package/dist/types/api.js.map +1 -0
  25. package/dist/types/artifacts.d.ts +102 -22
  26. package/dist/types/artifacts.d.ts.map +1 -1
  27. package/dist/types/artifacts.js +4 -3
  28. package/dist/types/artifacts.js.map +1 -1
  29. package/dist/types/automations.d.ts +13 -13
  30. package/dist/types/automations.js +4 -4
  31. package/dist/types/automations.js.map +1 -1
  32. package/dist/types/chat.d.ts +258 -6
  33. package/dist/types/chat.d.ts.map +1 -1
  34. package/dist/types/chat.js +5 -3
  35. package/dist/types/chat.js.map +1 -1
  36. package/dist/types/common.d.ts +3596 -980
  37. package/dist/types/common.d.ts.map +1 -1
  38. package/dist/types/common.js +281 -166
  39. package/dist/types/common.js.map +1 -1
  40. package/dist/types/config.d.ts +30 -30
  41. package/dist/types/config.js +6 -6
  42. package/dist/types/config.js.map +1 -1
  43. package/dist/types/device.d.ts +26 -0
  44. package/dist/types/device.d.ts.map +1 -0
  45. package/dist/types/device.js +14 -0
  46. package/dist/types/device.js.map +1 -0
  47. package/dist/types/index.d.ts +0 -4
  48. package/dist/types/index.d.ts.map +1 -1
  49. package/dist/types/index.js +1 -5
  50. package/dist/types/index.js.map +1 -1
  51. package/dist/types/me.d.ts +176 -20
  52. package/dist/types/me.d.ts.map +1 -1
  53. package/dist/types/me.js +4 -3
  54. package/dist/types/me.js.map +1 -1
  55. package/dist/types/members.d.ts +3 -3
  56. package/dist/types/members.js +2 -2
  57. package/dist/types/members.js.map +1 -1
  58. package/dist/types/messages.d.ts +457 -49
  59. package/dist/types/messages.d.ts.map +1 -1
  60. package/dist/types/messages.js +19 -18
  61. package/dist/types/messages.js.map +1 -1
  62. package/dist/types/oauth.d.ts +206 -0
  63. package/dist/types/oauth.d.ts.map +1 -0
  64. package/dist/types/oauth.js +51 -0
  65. package/dist/types/oauth.js.map +1 -0
  66. package/dist/types/orgs.d.ts +6 -6
  67. package/dist/types/picture.d.ts +2 -2
  68. package/dist/types/profile.d.ts +2 -2
  69. package/dist/types/reactions.d.ts +3 -3
  70. package/dist/types/reactions.js +2 -2
  71. package/dist/types/reactions.js.map +1 -1
  72. package/dist/types/schedules.d.ts +5 -5
  73. package/dist/types/schedules.js +2 -2
  74. package/dist/types/schedules.js.map +1 -1
  75. package/dist/types/system.d.ts +2 -2
  76. package/dist/types/teams.d.ts +750 -70
  77. package/dist/types/teams.d.ts.map +1 -1
  78. package/dist/types/teams.js +13 -10
  79. package/dist/types/teams.js.map +1 -1
  80. package/dist/types/threads.d.ts +1158 -194
  81. package/dist/types/threads.d.ts.map +1 -1
  82. package/dist/types/threads.js +26 -26
  83. package/dist/types/threads.js.map +1 -1
  84. package/dist/types/users.d.ts +53 -13
  85. package/dist/types/users.d.ts.map +1 -1
  86. package/dist/types/users.js +4 -4
  87. package/dist/types/users.js.map +1 -1
  88. package/dist/v1/resources/agent_installations.d.ts +4 -4
  89. package/dist/v1/resources/agent_installations.d.ts.map +1 -1
  90. package/dist/v1/resources/agent_installations.js +3 -3
  91. package/dist/v1/resources/agent_installations.js.map +1 -1
  92. package/dist/v1/resources/agent_routines.d.ts +9 -14
  93. package/dist/v1/resources/agent_routines.d.ts.map +1 -1
  94. package/dist/v1/resources/agent_routines.js +11 -19
  95. package/dist/v1/resources/agent_routines.js.map +1 -1
  96. package/dist/v1/resources/agent_sessions.d.ts +1 -0
  97. package/dist/v1/resources/agent_sessions.d.ts.map +1 -1
  98. package/dist/v1/resources/agent_sessions.js +1 -1
  99. package/dist/v1/resources/agent_sessions.js.map +1 -1
  100. package/dist/v1/resources/agent_tools.d.ts +1 -6
  101. package/dist/v1/resources/agent_tools.d.ts.map +1 -1
  102. package/dist/v1/resources/agent_tools.js +4 -12
  103. package/dist/v1/resources/agent_tools.js.map +1 -1
  104. package/dist/v1/resources/agents.d.ts +24 -26
  105. package/dist/v1/resources/agents.d.ts.map +1 -1
  106. package/dist/v1/resources/agents.js +25 -31
  107. package/dist/v1/resources/agents.js.map +1 -1
  108. package/dist/v1/resources/ai.d.ts +5 -15
  109. package/dist/v1/resources/ai.d.ts.map +1 -1
  110. package/dist/v1/resources/ai.js +6 -22
  111. package/dist/v1/resources/ai.js.map +1 -1
  112. package/dist/v1/resources/api.d.ts +1026 -0
  113. package/dist/v1/resources/api.d.ts.map +1 -0
  114. package/dist/v1/resources/api.js +944 -0
  115. package/dist/v1/resources/api.js.map +1 -0
  116. package/dist/v1/resources/artifacts.d.ts +7 -9
  117. package/dist/v1/resources/artifacts.d.ts.map +1 -1
  118. package/dist/v1/resources/artifacts.js +5 -13
  119. package/dist/v1/resources/artifacts.js.map +1 -1
  120. package/dist/v1/resources/config.d.ts +41 -53
  121. package/dist/v1/resources/config.d.ts.map +1 -1
  122. package/dist/v1/resources/config.js +18 -42
  123. package/dist/v1/resources/config.js.map +1 -1
  124. package/dist/v1/resources/custom_objects.d.ts +2 -2
  125. package/dist/v1/resources/custom_objects.d.ts.map +1 -1
  126. package/dist/v1/resources/custom_objects.js +1 -1
  127. package/dist/v1/resources/index.d.ts +13 -13
  128. package/dist/v1/resources/index.d.ts.map +1 -1
  129. package/dist/v1/resources/index.js +14 -14
  130. package/dist/v1/resources/index.js.map +1 -1
  131. package/dist/v1/resources/oauth.d.ts +25 -0
  132. package/dist/v1/resources/oauth.d.ts.map +1 -0
  133. package/dist/v1/resources/oauth.js +41 -0
  134. package/dist/v1/resources/oauth.js.map +1 -0
  135. package/dist/v1/resources/teams.d.ts +212 -55
  136. package/dist/v1/resources/teams.d.ts.map +1 -1
  137. package/dist/v1/resources/teams.js +18 -26
  138. package/dist/v1/resources/teams.js.map +1 -1
  139. package/dist/v1/resources/thread_messages.d.ts +5 -11
  140. package/dist/v1/resources/thread_messages.d.ts.map +1 -1
  141. package/dist/v1/resources/thread_messages.js +4 -12
  142. package/dist/v1/resources/thread_messages.js.map +1 -1
  143. package/dist/v1/resources/threads.d.ts +131 -65
  144. package/dist/v1/resources/threads.d.ts.map +1 -1
  145. package/dist/v1/resources/threads.js +20 -68
  146. package/dist/v1/resources/threads.js.map +1 -1
  147. package/dist/v1/resources/users.d.ts +144 -45
  148. package/dist/v1/resources/users.d.ts.map +1 -1
  149. package/dist/v1/resources/users.js +10 -34
  150. package/dist/v1/resources/users.js.map +1 -1
  151. package/dist/v1.d.ts +13 -13
  152. package/dist/v1.d.ts.map +1 -1
  153. package/dist/v1.js +27 -27
  154. package/dist/v1.js.map +1 -1
  155. package/package.json +1 -1
@@ -1,4 +1,302 @@
1
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
+ metadata?: Record<string, unknown> | undefined;
91
+ name?: string | 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
+ metadata?: Record<string, unknown> | undefined;
123
+ name?: string | 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 export response.
154
+
155
+ Contains the reconstructed AgentTemplate and all dependent config files
156
+ needed for a fully self-contained re-deploy.
157
+ */
158
+ export declare const agentExportSchema: z.ZodObject<{
159
+ configs: z.ZodArray<z.ZodObject<{
160
+ created_at: z.ZodOptional<z.ZodString>;
161
+ current_version: z.ZodOptional<z.ZodObject<{
162
+ change_description: z.ZodOptional<z.ZodString>;
163
+ created_at: z.ZodOptional<z.ZodString>;
164
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
165
+ id: z.ZodString;
166
+ org: z.ZodOptional<z.ZodString>;
167
+ sandbox: z.ZodOptional<z.ZodString>;
168
+ version_number: z.ZodNumber;
169
+ }, "strip", z.ZodTypeAny, {
170
+ id: string;
171
+ version_number: number;
172
+ org?: string | undefined;
173
+ sandbox?: string | undefined;
174
+ created_at?: string | undefined;
175
+ data?: Record<string, unknown> | undefined;
176
+ change_description?: string | undefined;
177
+ }, {
178
+ id: string;
179
+ version_number: number;
180
+ org?: string | undefined;
181
+ sandbox?: string | undefined;
182
+ created_at?: string | undefined;
183
+ data?: Record<string, unknown> | undefined;
184
+ change_description?: string | undefined;
185
+ }>>;
186
+ id: z.ZodString;
187
+ is_archived: z.ZodOptional<z.ZodBoolean>;
188
+ kind: z.ZodString;
189
+ lookup_key: z.ZodOptional<z.ZodString>;
190
+ mime_type: z.ZodOptional<z.ZodString>;
191
+ org: z.ZodOptional<z.ZodString>;
192
+ raw_content: z.ZodOptional<z.ZodString>;
193
+ sandbox: z.ZodOptional<z.ZodString>;
194
+ team: z.ZodOptional<z.ZodString>;
195
+ updated_at: z.ZodOptional<z.ZodString>;
196
+ user: z.ZodOptional<z.ZodString>;
197
+ virtual_path: z.ZodOptional<z.ZodString>;
198
+ }, "strip", z.ZodTypeAny, {
199
+ id: string;
200
+ kind: string;
201
+ mime_type?: string | undefined;
202
+ org?: string | undefined;
203
+ sandbox?: string | undefined;
204
+ created_at?: string | undefined;
205
+ user?: string | undefined;
206
+ updated_at?: string | undefined;
207
+ team?: string | undefined;
208
+ lookup_key?: string | undefined;
209
+ raw_content?: string | undefined;
210
+ current_version?: {
211
+ id: string;
212
+ version_number: number;
213
+ org?: string | undefined;
214
+ sandbox?: string | undefined;
215
+ created_at?: string | undefined;
216
+ data?: Record<string, unknown> | undefined;
217
+ change_description?: string | undefined;
218
+ } | undefined;
219
+ is_archived?: boolean | undefined;
220
+ virtual_path?: string | undefined;
221
+ }, {
222
+ id: string;
223
+ kind: string;
224
+ mime_type?: string | undefined;
225
+ org?: string | undefined;
226
+ sandbox?: string | undefined;
227
+ created_at?: string | undefined;
228
+ user?: string | undefined;
229
+ updated_at?: string | undefined;
230
+ team?: string | undefined;
231
+ lookup_key?: string | undefined;
232
+ raw_content?: string | undefined;
233
+ current_version?: {
234
+ id: string;
235
+ version_number: number;
236
+ org?: string | undefined;
237
+ sandbox?: string | undefined;
238
+ created_at?: string | undefined;
239
+ data?: Record<string, unknown> | undefined;
240
+ change_description?: string | undefined;
241
+ } | undefined;
242
+ is_archived?: boolean | undefined;
243
+ virtual_path?: string | undefined;
244
+ }>, "many">;
245
+ template: z.ZodRecord<z.ZodString, z.ZodUnknown>;
246
+ }, "strip", z.ZodTypeAny, {
247
+ configs: {
248
+ id: string;
249
+ kind: string;
250
+ mime_type?: string | undefined;
251
+ org?: string | undefined;
252
+ sandbox?: string | undefined;
253
+ created_at?: string | undefined;
254
+ user?: string | undefined;
255
+ updated_at?: string | undefined;
256
+ team?: string | undefined;
257
+ lookup_key?: string | undefined;
258
+ raw_content?: string | undefined;
259
+ current_version?: {
260
+ id: string;
261
+ version_number: number;
262
+ org?: string | undefined;
263
+ sandbox?: string | undefined;
264
+ created_at?: string | undefined;
265
+ data?: Record<string, unknown> | undefined;
266
+ change_description?: string | undefined;
267
+ } | undefined;
268
+ is_archived?: boolean | undefined;
269
+ virtual_path?: string | undefined;
270
+ }[];
271
+ template: Record<string, unknown>;
272
+ }, {
273
+ configs: {
274
+ id: string;
275
+ kind: string;
276
+ mime_type?: string | undefined;
277
+ org?: string | undefined;
278
+ sandbox?: string | undefined;
279
+ created_at?: string | undefined;
280
+ user?: string | undefined;
281
+ updated_at?: string | undefined;
282
+ team?: string | undefined;
283
+ lookup_key?: string | undefined;
284
+ raw_content?: string | undefined;
285
+ current_version?: {
286
+ id: string;
287
+ version_number: number;
288
+ org?: string | undefined;
289
+ sandbox?: string | undefined;
290
+ created_at?: string | undefined;
291
+ data?: Record<string, unknown> | undefined;
292
+ change_description?: string | undefined;
293
+ } | undefined;
294
+ is_archived?: boolean | undefined;
295
+ virtual_path?: string | undefined;
296
+ }[];
297
+ template: Record<string, unknown>;
298
+ }>;
299
+ export type AgentExport = z.infer<typeof agentExportSchema>;
2
300
  /** API schema for an agent session. */
3
301
  export declare const agentSessionSchema: z.ZodObject<{
4
302
  agent: z.ZodOptional<z.ZodString>;
@@ -6,15 +304,15 @@ export declare const agentSessionSchema: z.ZodObject<{
6
304
  created_at: z.ZodOptional<z.ZodString>;
7
305
  error: z.ZodOptional<z.ZodString>;
8
306
  id: z.ZodString;
9
- inbox: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
307
+ inbox: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
10
308
  instructions: z.ZodOptional<z.ZodString>;
11
309
  is_system_session: z.ZodOptional<z.ZodBoolean>;
12
310
  max_runs_per_turn: z.ZodOptional<z.ZodNumber>;
13
311
  max_tokens: z.ZodOptional<z.ZodNumber>;
14
312
  max_turns: z.ZodOptional<z.ZodNumber>;
15
- metadata: z.ZodOptional<z.ZodUnknown>;
313
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
16
314
  name: z.ZodOptional<z.ZodString>;
17
- result: z.ZodOptional<z.ZodUnknown>;
315
+ result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
18
316
  started_at: z.ZodOptional<z.ZodString>;
19
317
  status: z.ZodOptional<z.ZodString>;
20
318
  trajectory: z.ZodOptional<z.ZodString>;
@@ -22,38 +320,38 @@ export declare const agentSessionSchema: z.ZodObject<{
22
320
  id: string;
23
321
  error?: string | undefined;
24
322
  status?: string | undefined;
25
- agent?: string | undefined;
26
- created_at?: string | undefined;
27
- metadata?: unknown;
323
+ metadata?: Record<string, unknown> | undefined;
28
324
  name?: string | undefined;
325
+ created_at?: string | undefined;
326
+ agent?: string | undefined;
29
327
  completed_at?: string | undefined;
30
328
  started_at?: string | undefined;
31
329
  trajectory?: string | undefined;
32
- inbox?: unknown[] | undefined;
330
+ inbox?: Record<string, unknown>[] | undefined;
33
331
  instructions?: string | undefined;
34
332
  is_system_session?: boolean | undefined;
35
333
  max_runs_per_turn?: number | undefined;
36
334
  max_tokens?: number | undefined;
37
335
  max_turns?: number | undefined;
38
- result?: unknown;
336
+ result?: Record<string, unknown> | undefined;
39
337
  }, {
40
338
  id: string;
41
339
  error?: string | undefined;
42
340
  status?: string | undefined;
43
- agent?: string | undefined;
44
- created_at?: string | undefined;
45
- metadata?: unknown;
341
+ metadata?: Record<string, unknown> | undefined;
46
342
  name?: string | undefined;
343
+ created_at?: string | undefined;
344
+ agent?: string | undefined;
47
345
  completed_at?: string | undefined;
48
346
  started_at?: string | undefined;
49
347
  trajectory?: string | undefined;
50
- inbox?: unknown[] | undefined;
348
+ inbox?: Record<string, unknown>[] | undefined;
51
349
  instructions?: string | undefined;
52
350
  is_system_session?: boolean | undefined;
53
351
  max_runs_per_turn?: number | undefined;
54
352
  max_tokens?: number | undefined;
55
353
  max_turns?: number | undefined;
56
- result?: unknown;
354
+ result?: Record<string, unknown> | undefined;
57
355
  }>;
58
356
  export type AgentSession = z.infer<typeof agentSessionSchema>;
59
357
  /** List response for agent sessions. */
@@ -64,15 +362,15 @@ export declare const agentSessionListResponseSchema: z.ZodObject<{
64
362
  created_at: z.ZodOptional<z.ZodString>;
65
363
  error: z.ZodOptional<z.ZodString>;
66
364
  id: z.ZodString;
67
- inbox: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
365
+ inbox: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
68
366
  instructions: z.ZodOptional<z.ZodString>;
69
367
  is_system_session: z.ZodOptional<z.ZodBoolean>;
70
368
  max_runs_per_turn: z.ZodOptional<z.ZodNumber>;
71
369
  max_tokens: z.ZodOptional<z.ZodNumber>;
72
370
  max_turns: z.ZodOptional<z.ZodNumber>;
73
- metadata: z.ZodOptional<z.ZodUnknown>;
371
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
74
372
  name: z.ZodOptional<z.ZodString>;
75
- result: z.ZodOptional<z.ZodUnknown>;
373
+ result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
76
374
  started_at: z.ZodOptional<z.ZodString>;
77
375
  status: z.ZodOptional<z.ZodString>;
78
376
  trajectory: z.ZodOptional<z.ZodString>;
@@ -80,98 +378,98 @@ export declare const agentSessionListResponseSchema: z.ZodObject<{
80
378
  id: string;
81
379
  error?: string | undefined;
82
380
  status?: string | undefined;
83
- agent?: string | undefined;
84
- created_at?: string | undefined;
85
- metadata?: unknown;
381
+ metadata?: Record<string, unknown> | undefined;
86
382
  name?: string | undefined;
383
+ created_at?: string | undefined;
384
+ agent?: string | undefined;
87
385
  completed_at?: string | undefined;
88
386
  started_at?: string | undefined;
89
387
  trajectory?: string | undefined;
90
- inbox?: unknown[] | undefined;
388
+ inbox?: Record<string, unknown>[] | undefined;
91
389
  instructions?: string | undefined;
92
390
  is_system_session?: boolean | undefined;
93
391
  max_runs_per_turn?: number | undefined;
94
392
  max_tokens?: number | undefined;
95
393
  max_turns?: number | undefined;
96
- result?: unknown;
394
+ result?: Record<string, unknown> | undefined;
97
395
  }, {
98
396
  id: string;
99
397
  error?: string | undefined;
100
398
  status?: string | undefined;
101
- agent?: string | undefined;
102
- created_at?: string | undefined;
103
- metadata?: unknown;
399
+ metadata?: Record<string, unknown> | undefined;
104
400
  name?: string | undefined;
401
+ created_at?: string | undefined;
402
+ agent?: string | undefined;
105
403
  completed_at?: string | undefined;
106
404
  started_at?: string | undefined;
107
405
  trajectory?: string | undefined;
108
- inbox?: unknown[] | undefined;
406
+ inbox?: Record<string, unknown>[] | undefined;
109
407
  instructions?: string | undefined;
110
408
  is_system_session?: boolean | undefined;
111
409
  max_runs_per_turn?: number | undefined;
112
410
  max_tokens?: number | undefined;
113
411
  max_turns?: number | undefined;
114
- result?: unknown;
412
+ result?: Record<string, unknown> | undefined;
115
413
  }>, "many">;
116
414
  }, "strip", z.ZodTypeAny, {
117
415
  data: {
118
416
  id: string;
119
417
  error?: string | undefined;
120
418
  status?: string | undefined;
121
- agent?: string | undefined;
122
- created_at?: string | undefined;
123
- metadata?: unknown;
419
+ metadata?: Record<string, unknown> | undefined;
124
420
  name?: string | undefined;
421
+ created_at?: string | undefined;
422
+ agent?: string | undefined;
125
423
  completed_at?: string | undefined;
126
424
  started_at?: string | undefined;
127
425
  trajectory?: string | undefined;
128
- inbox?: unknown[] | undefined;
426
+ inbox?: Record<string, unknown>[] | undefined;
129
427
  instructions?: string | undefined;
130
428
  is_system_session?: boolean | undefined;
131
429
  max_runs_per_turn?: number | undefined;
132
430
  max_tokens?: number | undefined;
133
431
  max_turns?: number | undefined;
134
- result?: unknown;
432
+ result?: Record<string, unknown> | undefined;
135
433
  }[];
136
434
  }, {
137
435
  data: {
138
436
  id: string;
139
437
  error?: string | undefined;
140
438
  status?: string | undefined;
141
- agent?: string | undefined;
142
- created_at?: string | undefined;
143
- metadata?: unknown;
439
+ metadata?: Record<string, unknown> | undefined;
144
440
  name?: string | undefined;
441
+ created_at?: string | undefined;
442
+ agent?: string | undefined;
145
443
  completed_at?: string | undefined;
146
444
  started_at?: string | undefined;
147
445
  trajectory?: string | undefined;
148
- inbox?: unknown[] | undefined;
446
+ inbox?: Record<string, unknown>[] | undefined;
149
447
  instructions?: string | undefined;
150
448
  is_system_session?: boolean | undefined;
151
449
  max_runs_per_turn?: number | undefined;
152
450
  max_tokens?: number | undefined;
153
451
  max_turns?: number | undefined;
154
- result?: unknown;
452
+ result?: Record<string, unknown> | undefined;
155
453
  }[];
156
454
  }>;
157
455
  export type AgentSessionListResponse = z.infer<typeof agentSessionListResponseSchema>;
158
456
  /** API schema for the result of running an agent tool via impersonation. */
159
457
  export declare const agentImpersonationToolRunResultSchema: z.ZodObject<{
160
458
  duration_ms: z.ZodNumber;
161
- result: z.ZodUnknown;
459
+ result: z.ZodRecord<z.ZodString, z.ZodUnknown>;
162
460
  }, "strip", z.ZodTypeAny, {
163
461
  duration_ms: number;
164
- result?: unknown;
462
+ result: Record<string, unknown>;
165
463
  }, {
166
464
  duration_ms: number;
167
- result?: unknown;
465
+ result: Record<string, unknown>;
168
466
  }>;
169
467
  export type AgentImpersonationToolRunResult = z.infer<typeof agentImpersonationToolRunResultSchema>;
170
468
  /** API schema for an agent tool. */
171
469
  export declare const agentToolSchema: z.ZodObject<{
172
470
  agent: z.ZodOptional<z.ZodString>;
173
471
  app: z.ZodOptional<z.ZodString>;
174
- builtin_tool_config: z.ZodOptional<z.ZodUnknown>;
472
+ builtin_tool_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
175
473
  builtin_tool_key: z.ZodOptional<z.ZodString>;
176
474
  config: z.ZodOptional<z.ZodString>;
177
475
  created_at: z.ZodOptional<z.ZodString>;
@@ -181,47 +479,47 @@ export declare const agentToolSchema: z.ZodObject<{
181
479
  instruction: z.ZodOptional<z.ZodString>;
182
480
  kind: z.ZodOptional<z.ZodString>;
183
481
  lookup_key: z.ZodOptional<z.ZodString>;
184
- metadata: z.ZodOptional<z.ZodUnknown>;
482
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
185
483
  name: z.ZodOptional<z.ZodString>;
186
- parameters: z.ZodOptional<z.ZodUnknown>;
484
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
187
485
  parameters_config: z.ZodOptional<z.ZodString>;
188
486
  status: z.ZodOptional<z.ZodString>;
189
487
  updated_at: z.ZodOptional<z.ZodString>;
190
488
  }, "strip", z.ZodTypeAny, {
191
489
  id: string;
192
490
  status?: string | undefined;
193
- agent?: string | undefined;
194
- created_at?: string | undefined;
195
- metadata?: unknown;
491
+ metadata?: Record<string, unknown> | undefined;
196
492
  name?: string | undefined;
493
+ created_at?: string | undefined;
197
494
  updated_at?: string | undefined;
198
- lookup_key?: string | undefined;
199
495
  description?: string | undefined;
496
+ agent?: string | undefined;
497
+ lookup_key?: string | undefined;
200
498
  kind?: string | undefined;
201
499
  config?: string | undefined;
202
500
  app?: string | undefined;
203
501
  instruction?: string | undefined;
204
- parameters?: unknown;
205
- builtin_tool_config?: unknown;
502
+ parameters?: Record<string, unknown> | undefined;
503
+ builtin_tool_config?: Record<string, unknown> | undefined;
206
504
  builtin_tool_key?: string | undefined;
207
505
  handler_type?: string | undefined;
208
506
  parameters_config?: string | undefined;
209
507
  }, {
210
508
  id: string;
211
509
  status?: string | undefined;
212
- agent?: string | undefined;
213
- created_at?: string | undefined;
214
- metadata?: unknown;
510
+ metadata?: Record<string, unknown> | undefined;
215
511
  name?: string | undefined;
512
+ created_at?: string | undefined;
216
513
  updated_at?: string | undefined;
217
- lookup_key?: string | undefined;
218
514
  description?: string | undefined;
515
+ agent?: string | undefined;
516
+ lookup_key?: string | undefined;
219
517
  kind?: string | undefined;
220
518
  config?: string | undefined;
221
519
  app?: string | undefined;
222
520
  instruction?: string | undefined;
223
- parameters?: unknown;
224
- builtin_tool_config?: unknown;
521
+ parameters?: Record<string, unknown> | undefined;
522
+ builtin_tool_config?: Record<string, unknown> | undefined;
225
523
  builtin_tool_key?: string | undefined;
226
524
  handler_type?: string | undefined;
227
525
  parameters_config?: string | undefined;
@@ -235,26 +533,26 @@ export declare const agentSkillSchema: z.ZodObject<{
235
533
  created_at: z.ZodOptional<z.ZodString>;
236
534
  id: z.ZodString;
237
535
  instruction: z.ZodOptional<z.ZodString>;
238
- metadata: z.ZodOptional<z.ZodUnknown>;
536
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
239
537
  status: z.ZodOptional<z.ZodString>;
240
538
  updated_at: z.ZodOptional<z.ZodString>;
241
539
  }, "strip", z.ZodTypeAny, {
242
540
  id: string;
243
541
  status?: string | undefined;
244
- agent?: string | undefined;
542
+ metadata?: Record<string, unknown> | undefined;
245
543
  created_at?: string | undefined;
246
- metadata?: unknown;
247
544
  updated_at?: string | undefined;
545
+ agent?: string | undefined;
248
546
  config?: string | undefined;
249
547
  app?: string | undefined;
250
548
  instruction?: string | undefined;
251
549
  }, {
252
550
  id: string;
253
551
  status?: string | undefined;
254
- agent?: string | undefined;
552
+ metadata?: Record<string, unknown> | undefined;
255
553
  created_at?: string | undefined;
256
- metadata?: unknown;
257
554
  updated_at?: string | undefined;
555
+ agent?: string | undefined;
258
556
  config?: string | undefined;
259
557
  app?: string | undefined;
260
558
  instruction?: string | undefined;
@@ -264,13 +562,13 @@ export type AgentSkill = z.infer<typeof agentSkillSchema>;
264
562
  export declare const agentComputerSchema: z.ZodObject<{
265
563
  agent: z.ZodOptional<z.ZodString>;
266
564
  app: z.ZodOptional<z.ZodString>;
267
- config: z.ZodOptional<z.ZodUnknown>;
565
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
268
566
  created_at: z.ZodOptional<z.ZodString>;
269
567
  error_message: z.ZodOptional<z.ZodString>;
270
568
  id: z.ZodString;
271
569
  last_active_at: z.ZodOptional<z.ZodString>;
272
570
  lookup_key: z.ZodOptional<z.ZodString>;
273
- metadata: z.ZodOptional<z.ZodUnknown>;
571
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
274
572
  name: z.ZodOptional<z.ZodString>;
275
573
  region: z.ZodOptional<z.ZodString>;
276
574
  sprite_url: z.ZodOptional<z.ZodString>;
@@ -279,14 +577,14 @@ export declare const agentComputerSchema: z.ZodObject<{
279
577
  }, "strip", z.ZodTypeAny, {
280
578
  id: string;
281
579
  status?: string | undefined;
282
- agent?: string | undefined;
283
- created_at?: string | undefined;
284
- metadata?: unknown;
580
+ metadata?: Record<string, unknown> | undefined;
285
581
  name?: string | undefined;
582
+ created_at?: string | undefined;
286
583
  updated_at?: string | undefined;
584
+ agent?: string | undefined;
287
585
  error_message?: string | undefined;
288
586
  lookup_key?: string | undefined;
289
- config?: unknown;
587
+ config?: Record<string, unknown> | undefined;
290
588
  app?: string | undefined;
291
589
  last_active_at?: string | undefined;
292
590
  region?: string | undefined;
@@ -294,195 +592,128 @@ export declare const agentComputerSchema: z.ZodObject<{
294
592
  }, {
295
593
  id: string;
296
594
  status?: string | undefined;
297
- agent?: string | undefined;
298
- created_at?: string | undefined;
299
- metadata?: unknown;
595
+ metadata?: Record<string, unknown> | undefined;
300
596
  name?: string | undefined;
597
+ created_at?: string | undefined;
301
598
  updated_at?: string | undefined;
599
+ agent?: string | undefined;
302
600
  error_message?: string | undefined;
303
601
  lookup_key?: string | undefined;
304
- config?: unknown;
602
+ config?: Record<string, unknown> | undefined;
305
603
  app?: string | undefined;
306
604
  last_active_at?: string | undefined;
307
- region?: string | undefined;
308
- sprite_url?: string | undefined;
309
- }>;
310
- export type AgentComputer = z.infer<typeof agentComputerSchema>;
311
- /** API schema for an agent conversation history session. */
312
- export declare const agentConversationHistorySchema: z.ZodObject<{
313
- created_at: z.ZodOptional<z.ZodString>;
314
- last_interaction_at: z.ZodOptional<z.ZodString>;
315
- name: z.ZodOptional<z.ZodString>;
316
- org: z.ZodOptional<z.ZodString>;
317
- sandbox: z.ZodOptional<z.ZodString>;
318
- session: z.ZodOptional<z.ZodString>;
319
- }, "strip", z.ZodTypeAny, {
320
- created_at?: string | undefined;
321
- org?: string | undefined;
322
- sandbox?: string | undefined;
323
- name?: string | undefined;
324
- last_interaction_at?: string | undefined;
325
- session?: string | undefined;
326
- }, {
327
- created_at?: string | undefined;
328
- org?: string | undefined;
329
- sandbox?: string | undefined;
330
- name?: string | undefined;
331
- last_interaction_at?: string | undefined;
332
- session?: string | undefined;
333
- }>;
334
- export type AgentConversationHistory = z.infer<typeof agentConversationHistorySchema>;
335
- /** API schema for an agent. */
336
- export declare const agentSchema: z.ZodObject<{
337
- acl: z.ZodOptional<z.ZodObject<{
338
- add: z.ZodOptional<z.ZodArray<z.ZodObject<{
339
- actions: z.ZodArray<z.ZodString, "many">;
340
- principal: z.ZodOptional<z.ZodString>;
341
- principal_type: z.ZodString;
342
- }, "strip", z.ZodTypeAny, {
343
- actions: string[];
344
- principal_type: string;
345
- principal?: string | undefined;
346
- }, {
347
- actions: string[];
348
- principal_type: string;
349
- principal?: string | undefined;
350
- }>, "many">>;
351
- grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
352
- actions: z.ZodArray<z.ZodString, "many">;
353
- principal: z.ZodOptional<z.ZodString>;
354
- principal_type: z.ZodString;
355
- }, "strip", z.ZodTypeAny, {
356
- actions: string[];
357
- principal_type: string;
358
- principal?: string | undefined;
359
- }, {
360
- actions: string[];
361
- principal_type: string;
362
- principal?: string | undefined;
363
- }>, "many">>;
364
- remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
365
- principal: z.ZodOptional<z.ZodString>;
366
- principal_type: z.ZodString;
367
- }, "strip", z.ZodTypeAny, {
368
- principal_type: string;
369
- principal?: string | undefined;
370
- }, {
371
- principal_type: string;
372
- principal?: string | undefined;
373
- }>, "many">>;
374
- }, "strip", z.ZodTypeAny, {
375
- add?: {
376
- actions: string[];
377
- principal_type: string;
378
- principal?: string | undefined;
379
- }[] | undefined;
380
- grants?: {
381
- actions: string[];
382
- principal_type: string;
383
- principal?: string | undefined;
384
- }[] | undefined;
385
- remove?: {
386
- principal_type: string;
387
- principal?: string | undefined;
388
- }[] | undefined;
389
- }, {
390
- add?: {
391
- actions: string[];
392
- principal_type: string;
393
- principal?: string | undefined;
394
- }[] | undefined;
395
- grants?: {
396
- actions: string[];
397
- principal_type: string;
398
- principal?: string | undefined;
399
- }[] | undefined;
400
- remove?: {
401
- principal_type: string;
402
- principal?: string | undefined;
403
- }[] | undefined;
404
- }>>;
405
- app: z.ZodOptional<z.ZodString>;
406
- created_at: z.ZodOptional<z.ZodString>;
407
- default_model: z.ZodOptional<z.ZodString>;
408
- email: z.ZodOptional<z.ZodString>;
409
- id: z.ZodString;
410
- identity: z.ZodOptional<z.ZodString>;
411
- lookup_key: z.ZodOptional<z.ZodString>;
412
- metadata: z.ZodOptional<z.ZodUnknown>;
413
- name: z.ZodOptional<z.ZodString>;
414
- org: z.ZodOptional<z.ZodString>;
415
- phone_number: z.ZodOptional<z.ZodString>;
416
- sandbox: z.ZodOptional<z.ZodString>;
417
- team: z.ZodOptional<z.ZodString>;
418
- updated_at: z.ZodOptional<z.ZodString>;
419
- user: z.ZodOptional<z.ZodString>;
420
- }, "strip", z.ZodTypeAny, {
421
- id: string;
422
- email?: string | undefined;
423
- created_at?: string | undefined;
424
- metadata?: unknown;
425
- org?: string | undefined;
426
- sandbox?: string | undefined;
427
- team?: string | undefined;
428
- user?: string | undefined;
429
- name?: string | undefined;
430
- updated_at?: string | undefined;
431
- lookup_key?: string | undefined;
432
- acl?: {
433
- add?: {
434
- actions: string[];
435
- principal_type: string;
436
- principal?: string | undefined;
437
- }[] | undefined;
438
- grants?: {
439
- actions: string[];
440
- principal_type: string;
441
- principal?: string | undefined;
442
- }[] | undefined;
443
- remove?: {
444
- principal_type: string;
445
- principal?: string | undefined;
446
- }[] | undefined;
447
- } | undefined;
448
- app?: string | undefined;
449
- default_model?: string | undefined;
450
- identity?: string | undefined;
451
- phone_number?: string | undefined;
452
- }, {
453
- id: string;
454
- email?: string | undefined;
455
- created_at?: string | undefined;
456
- metadata?: unknown;
605
+ region?: string | undefined;
606
+ sprite_url?: string | undefined;
607
+ }>;
608
+ export type AgentComputer = z.infer<typeof agentComputerSchema>;
609
+ /** API schema for an agent conversation history session. */
610
+ export declare const agentConversationHistorySchema: z.ZodObject<{
611
+ created_at: z.ZodOptional<z.ZodString>;
612
+ last_interaction_at: z.ZodOptional<z.ZodString>;
613
+ name: z.ZodOptional<z.ZodString>;
614
+ org: z.ZodOptional<z.ZodString>;
615
+ sandbox: z.ZodOptional<z.ZodString>;
616
+ session: z.ZodOptional<z.ZodString>;
617
+ }, "strip", z.ZodTypeAny, {
618
+ name?: string | undefined;
457
619
  org?: string | undefined;
458
620
  sandbox?: string | undefined;
459
- team?: string | undefined;
460
- user?: string | undefined;
621
+ created_at?: string | undefined;
622
+ last_interaction_at?: string | undefined;
623
+ session?: string | undefined;
624
+ }, {
461
625
  name?: string | undefined;
462
- updated_at?: string | undefined;
463
- lookup_key?: string | undefined;
464
- acl?: {
465
- add?: {
466
- actions: string[];
467
- principal_type: string;
468
- principal?: string | undefined;
469
- }[] | undefined;
470
- grants?: {
471
- actions: string[];
472
- principal_type: string;
473
- principal?: string | undefined;
474
- }[] | undefined;
475
- remove?: {
476
- principal_type: string;
477
- principal?: string | undefined;
478
- }[] | undefined;
479
- } | undefined;
480
- app?: string | undefined;
481
- default_model?: string | undefined;
482
- identity?: string | undefined;
483
- phone_number?: string | undefined;
626
+ org?: string | undefined;
627
+ sandbox?: string | undefined;
628
+ created_at?: string | undefined;
629
+ last_interaction_at?: string | undefined;
630
+ session?: string | undefined;
484
631
  }>;
485
- export type Agent = z.infer<typeof agentSchema>;
632
+ export type AgentConversationHistory = z.infer<typeof agentConversationHistorySchema>;
633
+ /** List response for agent computers. */
634
+ export declare const agentComputerListResponseSchema: z.ZodObject<{
635
+ data: z.ZodArray<z.ZodObject<{
636
+ agent: z.ZodOptional<z.ZodString>;
637
+ app: z.ZodOptional<z.ZodString>;
638
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
639
+ created_at: z.ZodOptional<z.ZodString>;
640
+ error_message: z.ZodOptional<z.ZodString>;
641
+ id: z.ZodString;
642
+ last_active_at: z.ZodOptional<z.ZodString>;
643
+ lookup_key: z.ZodOptional<z.ZodString>;
644
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
645
+ name: z.ZodOptional<z.ZodString>;
646
+ region: z.ZodOptional<z.ZodString>;
647
+ sprite_url: z.ZodOptional<z.ZodString>;
648
+ status: z.ZodOptional<z.ZodString>;
649
+ updated_at: z.ZodOptional<z.ZodString>;
650
+ }, "strip", z.ZodTypeAny, {
651
+ id: string;
652
+ status?: string | undefined;
653
+ metadata?: Record<string, unknown> | undefined;
654
+ name?: string | undefined;
655
+ created_at?: string | undefined;
656
+ updated_at?: string | undefined;
657
+ agent?: string | undefined;
658
+ error_message?: string | undefined;
659
+ lookup_key?: string | undefined;
660
+ config?: Record<string, unknown> | undefined;
661
+ app?: string | undefined;
662
+ last_active_at?: string | undefined;
663
+ region?: string | undefined;
664
+ sprite_url?: string | undefined;
665
+ }, {
666
+ id: string;
667
+ status?: string | undefined;
668
+ metadata?: Record<string, unknown> | undefined;
669
+ name?: string | undefined;
670
+ created_at?: string | undefined;
671
+ updated_at?: string | undefined;
672
+ agent?: string | undefined;
673
+ error_message?: string | undefined;
674
+ lookup_key?: string | undefined;
675
+ config?: Record<string, unknown> | undefined;
676
+ app?: string | undefined;
677
+ last_active_at?: string | undefined;
678
+ region?: string | undefined;
679
+ sprite_url?: string | undefined;
680
+ }>, "many">;
681
+ }, "strip", z.ZodTypeAny, {
682
+ data: {
683
+ id: string;
684
+ status?: string | undefined;
685
+ metadata?: Record<string, unknown> | undefined;
686
+ name?: string | undefined;
687
+ created_at?: string | undefined;
688
+ updated_at?: string | undefined;
689
+ agent?: string | undefined;
690
+ error_message?: string | undefined;
691
+ lookup_key?: string | undefined;
692
+ config?: Record<string, unknown> | undefined;
693
+ app?: string | undefined;
694
+ last_active_at?: string | undefined;
695
+ region?: string | undefined;
696
+ sprite_url?: string | undefined;
697
+ }[];
698
+ }, {
699
+ data: {
700
+ id: string;
701
+ status?: string | undefined;
702
+ metadata?: Record<string, unknown> | undefined;
703
+ name?: string | undefined;
704
+ created_at?: string | undefined;
705
+ updated_at?: string | undefined;
706
+ agent?: string | undefined;
707
+ error_message?: string | undefined;
708
+ lookup_key?: string | undefined;
709
+ config?: Record<string, unknown> | undefined;
710
+ app?: string | undefined;
711
+ last_active_at?: string | undefined;
712
+ region?: string | undefined;
713
+ sprite_url?: string | undefined;
714
+ }[];
715
+ }>;
716
+ export type AgentComputerListResponse = z.infer<typeof agentComputerListResponseSchema>;
486
717
  /** API schema for an agent impersonation skill file entry. */
487
718
  export declare const agentImpersonationSkillFileSchema: z.ZodObject<{
488
719
  content_type: z.ZodOptional<z.ZodString>;
@@ -638,7 +869,7 @@ export declare const agentListResponseSchema: z.ZodObject<{
638
869
  id: z.ZodString;
639
870
  identity: z.ZodOptional<z.ZodString>;
640
871
  lookup_key: z.ZodOptional<z.ZodString>;
641
- metadata: z.ZodOptional<z.ZodUnknown>;
872
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
642
873
  name: z.ZodOptional<z.ZodString>;
643
874
  org: z.ZodOptional<z.ZodString>;
644
875
  phone_number: z.ZodOptional<z.ZodString>;
@@ -649,14 +880,14 @@ export declare const agentListResponseSchema: z.ZodObject<{
649
880
  }, "strip", z.ZodTypeAny, {
650
881
  id: string;
651
882
  email?: string | undefined;
652
- created_at?: string | undefined;
653
- metadata?: unknown;
883
+ metadata?: Record<string, unknown> | undefined;
884
+ name?: string | undefined;
654
885
  org?: string | undefined;
655
886
  sandbox?: string | undefined;
656
- team?: string | undefined;
887
+ created_at?: string | undefined;
657
888
  user?: string | undefined;
658
- name?: string | undefined;
659
889
  updated_at?: string | undefined;
890
+ team?: string | undefined;
660
891
  lookup_key?: string | undefined;
661
892
  acl?: {
662
893
  add?: {
@@ -681,14 +912,14 @@ export declare const agentListResponseSchema: z.ZodObject<{
681
912
  }, {
682
913
  id: string;
683
914
  email?: string | undefined;
684
- created_at?: string | undefined;
685
- metadata?: unknown;
915
+ metadata?: Record<string, unknown> | undefined;
916
+ name?: string | undefined;
686
917
  org?: string | undefined;
687
918
  sandbox?: string | undefined;
688
- team?: string | undefined;
919
+ created_at?: string | undefined;
689
920
  user?: string | undefined;
690
- name?: string | undefined;
691
921
  updated_at?: string | undefined;
922
+ team?: string | undefined;
692
923
  lookup_key?: string | undefined;
693
924
  acl?: {
694
925
  add?: {
@@ -721,14 +952,14 @@ export declare const agentListResponseSchema: z.ZodObject<{
721
952
  data: {
722
953
  id: string;
723
954
  email?: string | undefined;
724
- created_at?: string | undefined;
725
- metadata?: unknown;
955
+ metadata?: Record<string, unknown> | undefined;
956
+ name?: string | undefined;
726
957
  org?: string | undefined;
727
958
  sandbox?: string | undefined;
728
- team?: string | undefined;
959
+ created_at?: string | undefined;
729
960
  user?: string | undefined;
730
- name?: string | undefined;
731
961
  updated_at?: string | undefined;
962
+ team?: string | undefined;
732
963
  lookup_key?: string | undefined;
733
964
  acl?: {
734
965
  add?: {
@@ -761,14 +992,14 @@ export declare const agentListResponseSchema: z.ZodObject<{
761
992
  data: {
762
993
  id: string;
763
994
  email?: string | undefined;
764
- created_at?: string | undefined;
765
- metadata?: unknown;
995
+ metadata?: Record<string, unknown> | undefined;
996
+ name?: string | undefined;
766
997
  org?: string | undefined;
767
998
  sandbox?: string | undefined;
768
- team?: string | undefined;
999
+ created_at?: string | undefined;
769
1000
  user?: string | undefined;
770
- name?: string | undefined;
771
1001
  updated_at?: string | undefined;
1002
+ team?: string | undefined;
772
1003
  lookup_key?: string | undefined;
773
1004
  acl?: {
774
1005
  add?: {
@@ -804,7 +1035,7 @@ export declare const agentToolListResponseSchema: z.ZodObject<{
804
1035
  data: z.ZodArray<z.ZodObject<{
805
1036
  agent: z.ZodOptional<z.ZodString>;
806
1037
  app: z.ZodOptional<z.ZodString>;
807
- builtin_tool_config: z.ZodOptional<z.ZodUnknown>;
1038
+ builtin_tool_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
808
1039
  builtin_tool_key: z.ZodOptional<z.ZodString>;
809
1040
  config: z.ZodOptional<z.ZodString>;
810
1041
  created_at: z.ZodOptional<z.ZodString>;
@@ -814,47 +1045,47 @@ export declare const agentToolListResponseSchema: z.ZodObject<{
814
1045
  instruction: z.ZodOptional<z.ZodString>;
815
1046
  kind: z.ZodOptional<z.ZodString>;
816
1047
  lookup_key: z.ZodOptional<z.ZodString>;
817
- metadata: z.ZodOptional<z.ZodUnknown>;
1048
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
818
1049
  name: z.ZodOptional<z.ZodString>;
819
- parameters: z.ZodOptional<z.ZodUnknown>;
1050
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
820
1051
  parameters_config: z.ZodOptional<z.ZodString>;
821
1052
  status: z.ZodOptional<z.ZodString>;
822
1053
  updated_at: z.ZodOptional<z.ZodString>;
823
1054
  }, "strip", z.ZodTypeAny, {
824
1055
  id: string;
825
1056
  status?: string | undefined;
826
- agent?: string | undefined;
827
- created_at?: string | undefined;
828
- metadata?: unknown;
1057
+ metadata?: Record<string, unknown> | undefined;
829
1058
  name?: string | undefined;
1059
+ created_at?: string | undefined;
830
1060
  updated_at?: string | undefined;
831
- lookup_key?: string | undefined;
832
1061
  description?: string | undefined;
1062
+ agent?: string | undefined;
1063
+ lookup_key?: string | undefined;
833
1064
  kind?: string | undefined;
834
1065
  config?: string | undefined;
835
1066
  app?: string | undefined;
836
1067
  instruction?: string | undefined;
837
- parameters?: unknown;
838
- builtin_tool_config?: unknown;
1068
+ parameters?: Record<string, unknown> | undefined;
1069
+ builtin_tool_config?: Record<string, unknown> | undefined;
839
1070
  builtin_tool_key?: string | undefined;
840
1071
  handler_type?: string | undefined;
841
1072
  parameters_config?: string | undefined;
842
1073
  }, {
843
1074
  id: string;
844
1075
  status?: string | undefined;
845
- agent?: string | undefined;
846
- created_at?: string | undefined;
847
- metadata?: unknown;
1076
+ metadata?: Record<string, unknown> | undefined;
848
1077
  name?: string | undefined;
1078
+ created_at?: string | undefined;
849
1079
  updated_at?: string | undefined;
850
- lookup_key?: string | undefined;
851
1080
  description?: string | undefined;
1081
+ agent?: string | undefined;
1082
+ lookup_key?: string | undefined;
852
1083
  kind?: string | undefined;
853
1084
  config?: string | undefined;
854
1085
  app?: string | undefined;
855
1086
  instruction?: string | undefined;
856
- parameters?: unknown;
857
- builtin_tool_config?: unknown;
1087
+ parameters?: Record<string, unknown> | undefined;
1088
+ builtin_tool_config?: Record<string, unknown> | undefined;
858
1089
  builtin_tool_key?: string | undefined;
859
1090
  handler_type?: string | undefined;
860
1091
  parameters_config?: string | undefined;
@@ -863,19 +1094,19 @@ export declare const agentToolListResponseSchema: z.ZodObject<{
863
1094
  data: {
864
1095
  id: string;
865
1096
  status?: string | undefined;
866
- agent?: string | undefined;
867
- created_at?: string | undefined;
868
- metadata?: unknown;
1097
+ metadata?: Record<string, unknown> | undefined;
869
1098
  name?: string | undefined;
1099
+ created_at?: string | undefined;
870
1100
  updated_at?: string | undefined;
871
- lookup_key?: string | undefined;
872
1101
  description?: string | undefined;
1102
+ agent?: string | undefined;
1103
+ lookup_key?: string | undefined;
873
1104
  kind?: string | undefined;
874
1105
  config?: string | undefined;
875
1106
  app?: string | undefined;
876
1107
  instruction?: string | undefined;
877
- parameters?: unknown;
878
- builtin_tool_config?: unknown;
1108
+ parameters?: Record<string, unknown> | undefined;
1109
+ builtin_tool_config?: Record<string, unknown> | undefined;
879
1110
  builtin_tool_key?: string | undefined;
880
1111
  handler_type?: string | undefined;
881
1112
  parameters_config?: string | undefined;
@@ -884,19 +1115,19 @@ export declare const agentToolListResponseSchema: z.ZodObject<{
884
1115
  data: {
885
1116
  id: string;
886
1117
  status?: string | undefined;
887
- agent?: string | undefined;
888
- created_at?: string | undefined;
889
- metadata?: unknown;
1118
+ metadata?: Record<string, unknown> | undefined;
890
1119
  name?: string | undefined;
1120
+ created_at?: string | undefined;
891
1121
  updated_at?: string | undefined;
892
- lookup_key?: string | undefined;
893
1122
  description?: string | undefined;
1123
+ agent?: string | undefined;
1124
+ lookup_key?: string | undefined;
894
1125
  kind?: string | undefined;
895
1126
  config?: string | undefined;
896
1127
  app?: string | undefined;
897
1128
  instruction?: string | undefined;
898
- parameters?: unknown;
899
- builtin_tool_config?: unknown;
1129
+ parameters?: Record<string, unknown> | undefined;
1130
+ builtin_tool_config?: Record<string, unknown> | undefined;
900
1131
  builtin_tool_key?: string | undefined;
901
1132
  handler_type?: string | undefined;
902
1133
  parameters_config?: string | undefined;
@@ -913,7 +1144,7 @@ export declare const agentScheduleSchema: z.ZodObject<{
913
1144
  instructions: z.ZodOptional<z.ZodString>;
914
1145
  last_run_at: z.ZodOptional<z.ZodString>;
915
1146
  max_runs: z.ZodOptional<z.ZodNumber>;
916
- metadata: z.ZodOptional<z.ZodUnknown>;
1147
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
917
1148
  next_run_at: z.ZodOptional<z.ZodString>;
918
1149
  run_count: z.ZodOptional<z.ZodNumber>;
919
1150
  schedule_type: z.ZodOptional<z.ZodString>;
@@ -926,11 +1157,11 @@ export declare const agentScheduleSchema: z.ZodObject<{
926
1157
  id: string;
927
1158
  timezone?: string | undefined;
928
1159
  status?: string | undefined;
929
- agent?: string | undefined;
1160
+ metadata?: Record<string, unknown> | undefined;
930
1161
  created_at?: string | undefined;
931
- metadata?: unknown;
932
1162
  thread?: string | undefined;
933
1163
  updated_at?: string | undefined;
1164
+ agent?: string | undefined;
934
1165
  app?: string | undefined;
935
1166
  instructions?: string | undefined;
936
1167
  cron_expression?: string | undefined;
@@ -944,11 +1175,11 @@ export declare const agentScheduleSchema: z.ZodObject<{
944
1175
  id: string;
945
1176
  timezone?: string | undefined;
946
1177
  status?: string | undefined;
947
- agent?: string | undefined;
1178
+ metadata?: Record<string, unknown> | undefined;
948
1179
  created_at?: string | undefined;
949
- metadata?: unknown;
950
1180
  thread?: string | undefined;
951
1181
  updated_at?: string | undefined;
1182
+ agent?: string | undefined;
952
1183
  app?: string | undefined;
953
1184
  instructions?: string | undefined;
954
1185
  cron_expression?: string | undefined;
@@ -1036,12 +1267,12 @@ export declare const agentRoutineRunSchema: z.ZodObject<{
1036
1267
  duration_ms: z.ZodOptional<z.ZodNumber>;
1037
1268
  event_id: z.ZodOptional<z.ZodString>;
1038
1269
  id: z.ZodString;
1039
- metadata: z.ZodOptional<z.ZodUnknown>;
1040
- payload: z.ZodOptional<z.ZodUnknown>;
1041
- result: z.ZodOptional<z.ZodUnknown>;
1270
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1271
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1272
+ result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1042
1273
  routine: z.ZodOptional<z.ZodString>;
1043
1274
  status: z.ZodOptional<z.ZodString>;
1044
- structured_response: z.ZodOptional<z.ZodUnknown>;
1275
+ structured_response: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1045
1276
  updated_at: z.ZodOptional<z.ZodString>;
1046
1277
  worker: z.ZodOptional<z.ZodObject<{
1047
1278
  attempt: z.ZodNumber;
@@ -1059,11 +1290,11 @@ export declare const agentRoutineRunSchema: z.ZodObject<{
1059
1290
  }, "strip", z.ZodTypeAny, {
1060
1291
  id: string;
1061
1292
  status?: string | undefined;
1062
- agent?: string | undefined;
1293
+ metadata?: Record<string, unknown> | undefined;
1063
1294
  created_at?: string | undefined;
1064
- metadata?: unknown;
1065
- payload?: unknown;
1066
1295
  updated_at?: string | undefined;
1296
+ payload?: Record<string, unknown> | undefined;
1297
+ agent?: string | undefined;
1067
1298
  duration_ms?: number | undefined;
1068
1299
  acl?: {
1069
1300
  add?: {
@@ -1083,9 +1314,9 @@ export declare const agentRoutineRunSchema: z.ZodObject<{
1083
1314
  } | undefined;
1084
1315
  app?: string | undefined;
1085
1316
  event_id?: string | undefined;
1086
- result?: unknown;
1317
+ result?: Record<string, unknown> | undefined;
1087
1318
  routine?: string | undefined;
1088
- structured_response?: unknown;
1319
+ structured_response?: Record<string, unknown> | undefined;
1089
1320
  worker?: {
1090
1321
  status: string;
1091
1322
  attempt: number;
@@ -1094,11 +1325,11 @@ export declare const agentRoutineRunSchema: z.ZodObject<{
1094
1325
  }, {
1095
1326
  id: string;
1096
1327
  status?: string | undefined;
1097
- agent?: string | undefined;
1328
+ metadata?: Record<string, unknown> | undefined;
1098
1329
  created_at?: string | undefined;
1099
- metadata?: unknown;
1100
- payload?: unknown;
1101
1330
  updated_at?: string | undefined;
1331
+ payload?: Record<string, unknown> | undefined;
1332
+ agent?: string | undefined;
1102
1333
  duration_ms?: number | undefined;
1103
1334
  acl?: {
1104
1335
  add?: {
@@ -1118,9 +1349,9 @@ export declare const agentRoutineRunSchema: z.ZodObject<{
1118
1349
  } | undefined;
1119
1350
  app?: string | undefined;
1120
1351
  event_id?: string | undefined;
1121
- result?: unknown;
1352
+ result?: Record<string, unknown> | undefined;
1122
1353
  routine?: string | undefined;
1123
- structured_response?: unknown;
1354
+ structured_response?: Record<string, unknown> | undefined;
1124
1355
  worker?: {
1125
1356
  status: string;
1126
1357
  attempt: number;
@@ -1207,12 +1438,12 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
1207
1438
  duration_ms: z.ZodOptional<z.ZodNumber>;
1208
1439
  event_id: z.ZodOptional<z.ZodString>;
1209
1440
  id: z.ZodString;
1210
- metadata: z.ZodOptional<z.ZodUnknown>;
1211
- payload: z.ZodOptional<z.ZodUnknown>;
1212
- result: z.ZodOptional<z.ZodUnknown>;
1441
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1442
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1443
+ result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1213
1444
  routine: z.ZodOptional<z.ZodString>;
1214
1445
  status: z.ZodOptional<z.ZodString>;
1215
- structured_response: z.ZodOptional<z.ZodUnknown>;
1446
+ structured_response: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1216
1447
  updated_at: z.ZodOptional<z.ZodString>;
1217
1448
  worker: z.ZodOptional<z.ZodObject<{
1218
1449
  attempt: z.ZodNumber;
@@ -1230,11 +1461,11 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
1230
1461
  }, "strip", z.ZodTypeAny, {
1231
1462
  id: string;
1232
1463
  status?: string | undefined;
1233
- agent?: string | undefined;
1464
+ metadata?: Record<string, unknown> | undefined;
1234
1465
  created_at?: string | undefined;
1235
- metadata?: unknown;
1236
- payload?: unknown;
1237
1466
  updated_at?: string | undefined;
1467
+ payload?: Record<string, unknown> | undefined;
1468
+ agent?: string | undefined;
1238
1469
  duration_ms?: number | undefined;
1239
1470
  acl?: {
1240
1471
  add?: {
@@ -1254,9 +1485,9 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
1254
1485
  } | undefined;
1255
1486
  app?: string | undefined;
1256
1487
  event_id?: string | undefined;
1257
- result?: unknown;
1488
+ result?: Record<string, unknown> | undefined;
1258
1489
  routine?: string | undefined;
1259
- structured_response?: unknown;
1490
+ structured_response?: Record<string, unknown> | undefined;
1260
1491
  worker?: {
1261
1492
  status: string;
1262
1493
  attempt: number;
@@ -1265,11 +1496,11 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
1265
1496
  }, {
1266
1497
  id: string;
1267
1498
  status?: string | undefined;
1268
- agent?: string | undefined;
1499
+ metadata?: Record<string, unknown> | undefined;
1269
1500
  created_at?: string | undefined;
1270
- metadata?: unknown;
1271
- payload?: unknown;
1272
1501
  updated_at?: string | undefined;
1502
+ payload?: Record<string, unknown> | undefined;
1503
+ agent?: string | undefined;
1273
1504
  duration_ms?: number | undefined;
1274
1505
  acl?: {
1275
1506
  add?: {
@@ -1289,9 +1520,9 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
1289
1520
  } | undefined;
1290
1521
  app?: string | undefined;
1291
1522
  event_id?: string | undefined;
1292
- result?: unknown;
1523
+ result?: Record<string, unknown> | undefined;
1293
1524
  routine?: string | undefined;
1294
- structured_response?: unknown;
1525
+ structured_response?: Record<string, unknown> | undefined;
1295
1526
  worker?: {
1296
1527
  status: string;
1297
1528
  attempt: number;
@@ -1302,11 +1533,11 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
1302
1533
  data: {
1303
1534
  id: string;
1304
1535
  status?: string | undefined;
1305
- agent?: string | undefined;
1536
+ metadata?: Record<string, unknown> | undefined;
1306
1537
  created_at?: string | undefined;
1307
- metadata?: unknown;
1308
- payload?: unknown;
1309
1538
  updated_at?: string | undefined;
1539
+ payload?: Record<string, unknown> | undefined;
1540
+ agent?: string | undefined;
1310
1541
  duration_ms?: number | undefined;
1311
1542
  acl?: {
1312
1543
  add?: {
@@ -1326,9 +1557,9 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
1326
1557
  } | undefined;
1327
1558
  app?: string | undefined;
1328
1559
  event_id?: string | undefined;
1329
- result?: unknown;
1560
+ result?: Record<string, unknown> | undefined;
1330
1561
  routine?: string | undefined;
1331
- structured_response?: unknown;
1562
+ structured_response?: Record<string, unknown> | undefined;
1332
1563
  worker?: {
1333
1564
  status: string;
1334
1565
  attempt: number;
@@ -1341,11 +1572,11 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
1341
1572
  data: {
1342
1573
  id: string;
1343
1574
  status?: string | undefined;
1344
- agent?: string | undefined;
1575
+ metadata?: Record<string, unknown> | undefined;
1345
1576
  created_at?: string | undefined;
1346
- metadata?: unknown;
1347
- payload?: unknown;
1348
1577
  updated_at?: string | undefined;
1578
+ payload?: Record<string, unknown> | undefined;
1579
+ agent?: string | undefined;
1349
1580
  duration_ms?: number | undefined;
1350
1581
  acl?: {
1351
1582
  add?: {
@@ -1365,9 +1596,9 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
1365
1596
  } | undefined;
1366
1597
  app?: string | undefined;
1367
1598
  event_id?: string | undefined;
1368
- result?: unknown;
1599
+ result?: Record<string, unknown> | undefined;
1369
1600
  routine?: string | undefined;
1370
- structured_response?: unknown;
1601
+ structured_response?: Record<string, unknown> | undefined;
1371
1602
  worker?: {
1372
1603
  status: string;
1373
1604
  attempt: number;
@@ -1456,7 +1687,7 @@ export declare const agentImpersonationManifestSchema: z.ZodObject<{
1456
1687
  id: z.ZodString;
1457
1688
  identity: z.ZodOptional<z.ZodString>;
1458
1689
  lookup_key: z.ZodOptional<z.ZodString>;
1459
- metadata: z.ZodOptional<z.ZodUnknown>;
1690
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1460
1691
  name: z.ZodOptional<z.ZodString>;
1461
1692
  org: z.ZodOptional<z.ZodString>;
1462
1693
  phone_number: z.ZodOptional<z.ZodString>;
@@ -1467,14 +1698,14 @@ export declare const agentImpersonationManifestSchema: z.ZodObject<{
1467
1698
  }, "strip", z.ZodTypeAny, {
1468
1699
  id: string;
1469
1700
  email?: string | undefined;
1470
- created_at?: string | undefined;
1471
- metadata?: unknown;
1701
+ metadata?: Record<string, unknown> | undefined;
1702
+ name?: string | undefined;
1472
1703
  org?: string | undefined;
1473
1704
  sandbox?: string | undefined;
1474
- team?: string | undefined;
1705
+ created_at?: string | undefined;
1475
1706
  user?: string | undefined;
1476
- name?: string | undefined;
1477
1707
  updated_at?: string | undefined;
1708
+ team?: string | undefined;
1478
1709
  lookup_key?: string | undefined;
1479
1710
  acl?: {
1480
1711
  add?: {
@@ -1499,14 +1730,14 @@ export declare const agentImpersonationManifestSchema: z.ZodObject<{
1499
1730
  }, {
1500
1731
  id: string;
1501
1732
  email?: string | undefined;
1502
- created_at?: string | undefined;
1503
- metadata?: unknown;
1733
+ metadata?: Record<string, unknown> | undefined;
1734
+ name?: string | undefined;
1504
1735
  org?: string | undefined;
1505
1736
  sandbox?: string | undefined;
1506
- team?: string | undefined;
1737
+ created_at?: string | undefined;
1507
1738
  user?: string | undefined;
1508
- name?: string | undefined;
1509
1739
  updated_at?: string | undefined;
1740
+ team?: string | undefined;
1510
1741
  lookup_key?: string | undefined;
1511
1742
  acl?: {
1512
1743
  add?: {
@@ -1548,7 +1779,7 @@ export declare const agentImpersonationManifestSchema: z.ZodObject<{
1548
1779
  tools: z.ZodArray<z.ZodObject<{
1549
1780
  agent: z.ZodOptional<z.ZodString>;
1550
1781
  app: z.ZodOptional<z.ZodString>;
1551
- builtin_tool_config: z.ZodOptional<z.ZodUnknown>;
1782
+ builtin_tool_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1552
1783
  builtin_tool_key: z.ZodOptional<z.ZodString>;
1553
1784
  config: z.ZodOptional<z.ZodString>;
1554
1785
  created_at: z.ZodOptional<z.ZodString>;
@@ -1558,47 +1789,47 @@ export declare const agentImpersonationManifestSchema: z.ZodObject<{
1558
1789
  instruction: z.ZodOptional<z.ZodString>;
1559
1790
  kind: z.ZodOptional<z.ZodString>;
1560
1791
  lookup_key: z.ZodOptional<z.ZodString>;
1561
- metadata: z.ZodOptional<z.ZodUnknown>;
1792
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1562
1793
  name: z.ZodOptional<z.ZodString>;
1563
- parameters: z.ZodOptional<z.ZodUnknown>;
1794
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1564
1795
  parameters_config: z.ZodOptional<z.ZodString>;
1565
1796
  status: z.ZodOptional<z.ZodString>;
1566
1797
  updated_at: z.ZodOptional<z.ZodString>;
1567
1798
  }, "strip", z.ZodTypeAny, {
1568
1799
  id: string;
1569
1800
  status?: string | undefined;
1570
- agent?: string | undefined;
1571
- created_at?: string | undefined;
1572
- metadata?: unknown;
1801
+ metadata?: Record<string, unknown> | undefined;
1573
1802
  name?: string | undefined;
1803
+ created_at?: string | undefined;
1574
1804
  updated_at?: string | undefined;
1575
- lookup_key?: string | undefined;
1576
1805
  description?: string | undefined;
1806
+ agent?: string | undefined;
1807
+ lookup_key?: string | undefined;
1577
1808
  kind?: string | undefined;
1578
1809
  config?: string | undefined;
1579
1810
  app?: string | undefined;
1580
1811
  instruction?: string | undefined;
1581
- parameters?: unknown;
1582
- builtin_tool_config?: unknown;
1812
+ parameters?: Record<string, unknown> | undefined;
1813
+ builtin_tool_config?: Record<string, unknown> | undefined;
1583
1814
  builtin_tool_key?: string | undefined;
1584
1815
  handler_type?: string | undefined;
1585
1816
  parameters_config?: string | undefined;
1586
1817
  }, {
1587
1818
  id: string;
1588
1819
  status?: string | undefined;
1589
- agent?: string | undefined;
1590
- created_at?: string | undefined;
1591
- metadata?: unknown;
1820
+ metadata?: Record<string, unknown> | undefined;
1592
1821
  name?: string | undefined;
1822
+ created_at?: string | undefined;
1593
1823
  updated_at?: string | undefined;
1594
- lookup_key?: string | undefined;
1595
1824
  description?: string | undefined;
1825
+ agent?: string | undefined;
1826
+ lookup_key?: string | undefined;
1596
1827
  kind?: string | undefined;
1597
1828
  config?: string | undefined;
1598
1829
  app?: string | undefined;
1599
1830
  instruction?: string | undefined;
1600
- parameters?: unknown;
1601
- builtin_tool_config?: unknown;
1831
+ parameters?: Record<string, unknown> | undefined;
1832
+ builtin_tool_config?: Record<string, unknown> | undefined;
1602
1833
  builtin_tool_key?: string | undefined;
1603
1834
  handler_type?: string | undefined;
1604
1835
  parameters_config?: string | undefined;
@@ -1607,14 +1838,14 @@ export declare const agentImpersonationManifestSchema: z.ZodObject<{
1607
1838
  agent: {
1608
1839
  id: string;
1609
1840
  email?: string | undefined;
1610
- created_at?: string | undefined;
1611
- metadata?: unknown;
1841
+ metadata?: Record<string, unknown> | undefined;
1842
+ name?: string | undefined;
1612
1843
  org?: string | undefined;
1613
1844
  sandbox?: string | undefined;
1614
- team?: string | undefined;
1845
+ created_at?: string | undefined;
1615
1846
  user?: string | undefined;
1616
- name?: string | undefined;
1617
1847
  updated_at?: string | undefined;
1848
+ team?: string | undefined;
1618
1849
  lookup_key?: string | undefined;
1619
1850
  acl?: {
1620
1851
  add?: {
@@ -1640,19 +1871,19 @@ export declare const agentImpersonationManifestSchema: z.ZodObject<{
1640
1871
  tools: {
1641
1872
  id: string;
1642
1873
  status?: string | undefined;
1643
- agent?: string | undefined;
1644
- created_at?: string | undefined;
1645
- metadata?: unknown;
1874
+ metadata?: Record<string, unknown> | undefined;
1646
1875
  name?: string | undefined;
1876
+ created_at?: string | undefined;
1647
1877
  updated_at?: string | undefined;
1648
- lookup_key?: string | undefined;
1649
1878
  description?: string | undefined;
1879
+ agent?: string | undefined;
1880
+ lookup_key?: string | undefined;
1650
1881
  kind?: string | undefined;
1651
1882
  config?: string | undefined;
1652
1883
  app?: string | undefined;
1653
1884
  instruction?: string | undefined;
1654
- parameters?: unknown;
1655
- builtin_tool_config?: unknown;
1885
+ parameters?: Record<string, unknown> | undefined;
1886
+ builtin_tool_config?: Record<string, unknown> | undefined;
1656
1887
  builtin_tool_key?: string | undefined;
1657
1888
  handler_type?: string | undefined;
1658
1889
  parameters_config?: string | undefined;
@@ -1667,14 +1898,14 @@ export declare const agentImpersonationManifestSchema: z.ZodObject<{
1667
1898
  agent: {
1668
1899
  id: string;
1669
1900
  email?: string | undefined;
1670
- created_at?: string | undefined;
1671
- metadata?: unknown;
1901
+ metadata?: Record<string, unknown> | undefined;
1902
+ name?: string | undefined;
1672
1903
  org?: string | undefined;
1673
1904
  sandbox?: string | undefined;
1674
- team?: string | undefined;
1905
+ created_at?: string | undefined;
1675
1906
  user?: string | undefined;
1676
- name?: string | undefined;
1677
1907
  updated_at?: string | undefined;
1908
+ team?: string | undefined;
1678
1909
  lookup_key?: string | undefined;
1679
1910
  acl?: {
1680
1911
  add?: {
@@ -1700,19 +1931,19 @@ export declare const agentImpersonationManifestSchema: z.ZodObject<{
1700
1931
  tools: {
1701
1932
  id: string;
1702
1933
  status?: string | undefined;
1703
- agent?: string | undefined;
1704
- created_at?: string | undefined;
1705
- metadata?: unknown;
1934
+ metadata?: Record<string, unknown> | undefined;
1706
1935
  name?: string | undefined;
1936
+ created_at?: string | undefined;
1707
1937
  updated_at?: string | undefined;
1708
- lookup_key?: string | undefined;
1709
1938
  description?: string | undefined;
1939
+ agent?: string | undefined;
1940
+ lookup_key?: string | undefined;
1710
1941
  kind?: string | undefined;
1711
1942
  config?: string | undefined;
1712
1943
  app?: string | undefined;
1713
1944
  instruction?: string | undefined;
1714
- parameters?: unknown;
1715
- builtin_tool_config?: unknown;
1945
+ parameters?: Record<string, unknown> | undefined;
1946
+ builtin_tool_config?: Record<string, unknown> | undefined;
1716
1947
  builtin_tool_key?: string | undefined;
1717
1948
  handler_type?: string | undefined;
1718
1949
  parameters_config?: string | undefined;
@@ -1800,14 +2031,14 @@ export declare const agentRoutineSchema: z.ZodObject<{
1800
2031
  config: z.ZodOptional<z.ZodString>;
1801
2032
  created_at: z.ZodOptional<z.ZodString>;
1802
2033
  description: z.ZodOptional<z.ZodString>;
1803
- event_config: z.ZodOptional<z.ZodUnknown>;
2034
+ event_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1804
2035
  event_type: z.ZodOptional<z.ZodString>;
1805
2036
  handler_type: z.ZodOptional<z.ZodString>;
1806
2037
  id: z.ZodString;
1807
2038
  lookup_key: z.ZodOptional<z.ZodString>;
1808
- metadata: z.ZodOptional<z.ZodUnknown>;
2039
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1809
2040
  name: z.ZodOptional<z.ZodString>;
1810
- preset_config: z.ZodOptional<z.ZodUnknown>;
2041
+ preset_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1811
2042
  preset_name: z.ZodOptional<z.ZodString>;
1812
2043
  schedule: z.ZodOptional<z.ZodString>;
1813
2044
  script: z.ZodOptional<z.ZodString>;
@@ -1817,14 +2048,14 @@ export declare const agentRoutineSchema: z.ZodObject<{
1817
2048
  }, "strip", z.ZodTypeAny, {
1818
2049
  id: string;
1819
2050
  status?: string | undefined;
1820
- agent?: string | undefined;
1821
- created_at?: string | undefined;
1822
- metadata?: unknown;
2051
+ metadata?: Record<string, unknown> | undefined;
1823
2052
  name?: string | undefined;
2053
+ created_at?: string | undefined;
1824
2054
  updated_at?: string | undefined;
2055
+ description?: string | undefined;
2056
+ agent?: string | undefined;
1825
2057
  event_type?: string | undefined;
1826
2058
  lookup_key?: string | undefined;
1827
- description?: string | undefined;
1828
2059
  config?: string | undefined;
1829
2060
  acl?: {
1830
2061
  add?: {
@@ -1844,8 +2075,8 @@ export declare const agentRoutineSchema: z.ZodObject<{
1844
2075
  } | undefined;
1845
2076
  app?: string | undefined;
1846
2077
  handler_type?: string | undefined;
1847
- event_config?: unknown;
1848
- preset_config?: unknown;
2078
+ event_config?: Record<string, unknown> | undefined;
2079
+ preset_config?: Record<string, unknown> | undefined;
1849
2080
  preset_name?: string | undefined;
1850
2081
  schedule?: string | undefined;
1851
2082
  script?: string | undefined;
@@ -1853,14 +2084,14 @@ export declare const agentRoutineSchema: z.ZodObject<{
1853
2084
  }, {
1854
2085
  id: string;
1855
2086
  status?: string | undefined;
1856
- agent?: string | undefined;
1857
- created_at?: string | undefined;
1858
- metadata?: unknown;
2087
+ metadata?: Record<string, unknown> | undefined;
1859
2088
  name?: string | undefined;
2089
+ created_at?: string | undefined;
1860
2090
  updated_at?: string | undefined;
2091
+ description?: string | undefined;
2092
+ agent?: string | undefined;
1861
2093
  event_type?: string | undefined;
1862
2094
  lookup_key?: string | undefined;
1863
- description?: string | undefined;
1864
2095
  config?: string | undefined;
1865
2096
  acl?: {
1866
2097
  add?: {
@@ -1880,8 +2111,8 @@ export declare const agentRoutineSchema: z.ZodObject<{
1880
2111
  } | undefined;
1881
2112
  app?: string | undefined;
1882
2113
  handler_type?: string | undefined;
1883
- event_config?: unknown;
1884
- preset_config?: unknown;
2114
+ event_config?: Record<string, unknown> | undefined;
2115
+ preset_config?: Record<string, unknown> | undefined;
1885
2116
  preset_name?: string | undefined;
1886
2117
  schedule?: string | undefined;
1887
2118
  script?: string | undefined;
@@ -1964,14 +2195,14 @@ export declare const agentRoutineListResponseSchema: z.ZodObject<{
1964
2195
  config: z.ZodOptional<z.ZodString>;
1965
2196
  created_at: z.ZodOptional<z.ZodString>;
1966
2197
  description: z.ZodOptional<z.ZodString>;
1967
- event_config: z.ZodOptional<z.ZodUnknown>;
2198
+ event_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1968
2199
  event_type: z.ZodOptional<z.ZodString>;
1969
2200
  handler_type: z.ZodOptional<z.ZodString>;
1970
2201
  id: z.ZodString;
1971
2202
  lookup_key: z.ZodOptional<z.ZodString>;
1972
- metadata: z.ZodOptional<z.ZodUnknown>;
2203
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1973
2204
  name: z.ZodOptional<z.ZodString>;
1974
- preset_config: z.ZodOptional<z.ZodUnknown>;
2205
+ preset_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1975
2206
  preset_name: z.ZodOptional<z.ZodString>;
1976
2207
  schedule: z.ZodOptional<z.ZodString>;
1977
2208
  script: z.ZodOptional<z.ZodString>;
@@ -1981,14 +2212,14 @@ export declare const agentRoutineListResponseSchema: z.ZodObject<{
1981
2212
  }, "strip", z.ZodTypeAny, {
1982
2213
  id: string;
1983
2214
  status?: string | undefined;
1984
- agent?: string | undefined;
1985
- created_at?: string | undefined;
1986
- metadata?: unknown;
2215
+ metadata?: Record<string, unknown> | undefined;
1987
2216
  name?: string | undefined;
2217
+ created_at?: string | undefined;
1988
2218
  updated_at?: string | undefined;
2219
+ description?: string | undefined;
2220
+ agent?: string | undefined;
1989
2221
  event_type?: string | undefined;
1990
2222
  lookup_key?: string | undefined;
1991
- description?: string | undefined;
1992
2223
  config?: string | undefined;
1993
2224
  acl?: {
1994
2225
  add?: {
@@ -2008,8 +2239,8 @@ export declare const agentRoutineListResponseSchema: z.ZodObject<{
2008
2239
  } | undefined;
2009
2240
  app?: string | undefined;
2010
2241
  handler_type?: string | undefined;
2011
- event_config?: unknown;
2012
- preset_config?: unknown;
2242
+ event_config?: Record<string, unknown> | undefined;
2243
+ preset_config?: Record<string, unknown> | undefined;
2013
2244
  preset_name?: string | undefined;
2014
2245
  schedule?: string | undefined;
2015
2246
  script?: string | undefined;
@@ -2017,14 +2248,14 @@ export declare const agentRoutineListResponseSchema: z.ZodObject<{
2017
2248
  }, {
2018
2249
  id: string;
2019
2250
  status?: string | undefined;
2020
- agent?: string | undefined;
2021
- created_at?: string | undefined;
2022
- metadata?: unknown;
2251
+ metadata?: Record<string, unknown> | undefined;
2023
2252
  name?: string | undefined;
2253
+ created_at?: string | undefined;
2024
2254
  updated_at?: string | undefined;
2255
+ description?: string | undefined;
2256
+ agent?: string | undefined;
2025
2257
  event_type?: string | undefined;
2026
2258
  lookup_key?: string | undefined;
2027
- description?: string | undefined;
2028
2259
  config?: string | undefined;
2029
2260
  acl?: {
2030
2261
  add?: {
@@ -2044,8 +2275,8 @@ export declare const agentRoutineListResponseSchema: z.ZodObject<{
2044
2275
  } | undefined;
2045
2276
  app?: string | undefined;
2046
2277
  handler_type?: string | undefined;
2047
- event_config?: unknown;
2048
- preset_config?: unknown;
2278
+ event_config?: Record<string, unknown> | undefined;
2279
+ preset_config?: Record<string, unknown> | undefined;
2049
2280
  preset_name?: string | undefined;
2050
2281
  schedule?: string | undefined;
2051
2282
  script?: string | undefined;
@@ -2055,14 +2286,14 @@ export declare const agentRoutineListResponseSchema: z.ZodObject<{
2055
2286
  data: {
2056
2287
  id: string;
2057
2288
  status?: string | undefined;
2058
- agent?: string | undefined;
2059
- created_at?: string | undefined;
2060
- metadata?: unknown;
2289
+ metadata?: Record<string, unknown> | undefined;
2061
2290
  name?: string | undefined;
2291
+ created_at?: string | undefined;
2062
2292
  updated_at?: string | undefined;
2293
+ description?: string | undefined;
2294
+ agent?: string | undefined;
2063
2295
  event_type?: string | undefined;
2064
2296
  lookup_key?: string | undefined;
2065
- description?: string | undefined;
2066
2297
  config?: string | undefined;
2067
2298
  acl?: {
2068
2299
  add?: {
@@ -2082,8 +2313,8 @@ export declare const agentRoutineListResponseSchema: z.ZodObject<{
2082
2313
  } | undefined;
2083
2314
  app?: string | undefined;
2084
2315
  handler_type?: string | undefined;
2085
- event_config?: unknown;
2086
- preset_config?: unknown;
2316
+ event_config?: Record<string, unknown> | undefined;
2317
+ preset_config?: Record<string, unknown> | undefined;
2087
2318
  preset_name?: string | undefined;
2088
2319
  schedule?: string | undefined;
2089
2320
  script?: string | undefined;
@@ -2093,14 +2324,14 @@ export declare const agentRoutineListResponseSchema: z.ZodObject<{
2093
2324
  data: {
2094
2325
  id: string;
2095
2326
  status?: string | undefined;
2096
- agent?: string | undefined;
2097
- created_at?: string | undefined;
2098
- metadata?: unknown;
2327
+ metadata?: Record<string, unknown> | undefined;
2099
2328
  name?: string | undefined;
2329
+ created_at?: string | undefined;
2100
2330
  updated_at?: string | undefined;
2331
+ description?: string | undefined;
2332
+ agent?: string | undefined;
2101
2333
  event_type?: string | undefined;
2102
2334
  lookup_key?: string | undefined;
2103
- description?: string | undefined;
2104
2335
  config?: string | undefined;
2105
2336
  acl?: {
2106
2337
  add?: {
@@ -2120,8 +2351,8 @@ export declare const agentRoutineListResponseSchema: z.ZodObject<{
2120
2351
  } | undefined;
2121
2352
  app?: string | undefined;
2122
2353
  handler_type?: string | undefined;
2123
- event_config?: unknown;
2124
- preset_config?: unknown;
2354
+ event_config?: Record<string, unknown> | undefined;
2355
+ preset_config?: Record<string, unknown> | undefined;
2125
2356
  preset_name?: string | undefined;
2126
2357
  schedule?: string | undefined;
2127
2358
  script?: string | undefined;
@@ -2134,27 +2365,27 @@ export declare const agentImpersonationToolListSchema: z.ZodObject<{
2134
2365
  data: z.ZodArray<z.ZodObject<{
2135
2366
  description: z.ZodOptional<z.ZodString>;
2136
2367
  name: z.ZodString;
2137
- parameters: z.ZodOptional<z.ZodUnknown>;
2368
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2138
2369
  }, "strip", z.ZodTypeAny, {
2139
2370
  name: string;
2140
2371
  description?: string | undefined;
2141
- parameters?: unknown;
2372
+ parameters?: Record<string, unknown> | undefined;
2142
2373
  }, {
2143
2374
  name: string;
2144
2375
  description?: string | undefined;
2145
- parameters?: unknown;
2376
+ parameters?: Record<string, unknown> | undefined;
2146
2377
  }>, "many">;
2147
2378
  }, "strip", z.ZodTypeAny, {
2148
2379
  data: {
2149
2380
  name: string;
2150
2381
  description?: string | undefined;
2151
- parameters?: unknown;
2382
+ parameters?: Record<string, unknown> | undefined;
2152
2383
  }[];
2153
2384
  }, {
2154
2385
  data: {
2155
2386
  name: string;
2156
2387
  description?: string | undefined;
2157
- parameters?: unknown;
2388
+ parameters?: Record<string, unknown> | undefined;
2158
2389
  }[];
2159
2390
  }>;
2160
2391
  export type AgentImpersonationToolList = z.infer<typeof agentImpersonationToolListSchema>;
@@ -2201,26 +2432,26 @@ export declare const agentSkillListSchema: z.ZodObject<{
2201
2432
  created_at: z.ZodOptional<z.ZodString>;
2202
2433
  id: z.ZodString;
2203
2434
  instruction: z.ZodOptional<z.ZodString>;
2204
- metadata: z.ZodOptional<z.ZodUnknown>;
2435
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2205
2436
  status: z.ZodOptional<z.ZodString>;
2206
2437
  updated_at: z.ZodOptional<z.ZodString>;
2207
2438
  }, "strip", z.ZodTypeAny, {
2208
2439
  id: string;
2209
2440
  status?: string | undefined;
2210
- agent?: string | undefined;
2441
+ metadata?: Record<string, unknown> | undefined;
2211
2442
  created_at?: string | undefined;
2212
- metadata?: unknown;
2213
2443
  updated_at?: string | undefined;
2444
+ agent?: string | undefined;
2214
2445
  config?: string | undefined;
2215
2446
  app?: string | undefined;
2216
2447
  instruction?: string | undefined;
2217
2448
  }, {
2218
2449
  id: string;
2219
2450
  status?: string | undefined;
2220
- agent?: string | undefined;
2451
+ metadata?: Record<string, unknown> | undefined;
2221
2452
  created_at?: string | undefined;
2222
- metadata?: unknown;
2223
2453
  updated_at?: string | undefined;
2454
+ agent?: string | undefined;
2224
2455
  config?: string | undefined;
2225
2456
  app?: string | undefined;
2226
2457
  instruction?: string | undefined;
@@ -2229,10 +2460,10 @@ export declare const agentSkillListSchema: z.ZodObject<{
2229
2460
  data: {
2230
2461
  id: string;
2231
2462
  status?: string | undefined;
2232
- agent?: string | undefined;
2463
+ metadata?: Record<string, unknown> | undefined;
2233
2464
  created_at?: string | undefined;
2234
- metadata?: unknown;
2235
2465
  updated_at?: string | undefined;
2466
+ agent?: string | undefined;
2236
2467
  config?: string | undefined;
2237
2468
  app?: string | undefined;
2238
2469
  instruction?: string | undefined;
@@ -2241,10 +2472,10 @@ export declare const agentSkillListSchema: z.ZodObject<{
2241
2472
  data: {
2242
2473
  id: string;
2243
2474
  status?: string | undefined;
2244
- agent?: string | undefined;
2475
+ metadata?: Record<string, unknown> | undefined;
2245
2476
  created_at?: string | undefined;
2246
- metadata?: unknown;
2247
2477
  updated_at?: string | undefined;
2478
+ agent?: string | undefined;
2248
2479
  config?: string | undefined;
2249
2480
  app?: string | undefined;
2250
2481
  instruction?: string | undefined;