@archastro/sdk 0.5.2 → 0.6.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 (230) 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/channels/api_chat_channel.d.ts +4 -0
  7. package/dist/channels/api_chat_channel.d.ts.map +1 -1
  8. package/dist/channels/api_chat_channel.js +9 -1
  9. package/dist/channels/api_chat_channel.js.map +1 -1
  10. package/dist/client.d.ts +26 -0
  11. package/dist/client.d.ts.map +1 -1
  12. package/dist/client.js +27 -1
  13. package/dist/client.js.map +1 -1
  14. package/dist/index.d.ts +1 -1
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +2 -2
  17. package/dist/index.js.map +1 -1
  18. package/dist/runtime/http-client.d.ts +17 -0
  19. package/dist/runtime/http-client.d.ts.map +1 -1
  20. package/dist/runtime/http-client.js +116 -0
  21. package/dist/runtime/http-client.js.map +1 -1
  22. package/dist/types/ai.d.ts +421 -14
  23. package/dist/types/ai.d.ts.map +1 -1
  24. package/dist/types/ai.js +121 -41
  25. package/dist/types/ai.js.map +1 -1
  26. package/dist/types/artifacts.d.ts +81 -24
  27. package/dist/types/artifacts.d.ts.map +1 -1
  28. package/dist/types/artifacts.js +39 -21
  29. package/dist/types/artifacts.js.map +1 -1
  30. package/dist/types/automations.d.ts +41 -9
  31. package/dist/types/automations.d.ts.map +1 -1
  32. package/dist/types/automations.js +25 -17
  33. package/dist/types/automations.js.map +1 -1
  34. package/dist/types/chat.d.ts +21560 -0
  35. package/dist/types/chat.d.ts.map +1 -0
  36. package/dist/types/chat.js +70 -0
  37. package/dist/types/chat.js.map +1 -0
  38. package/dist/types/common.d.ts +17031 -2136
  39. package/dist/types/common.d.ts.map +1 -1
  40. package/dist/types/common.js +1701 -332
  41. package/dist/types/common.js.map +1 -1
  42. package/dist/types/config.d.ts +245 -37
  43. package/dist/types/config.d.ts.map +1 -1
  44. package/dist/types/config.js +86 -34
  45. package/dist/types/config.js.map +1 -1
  46. package/dist/types/image.d.ts +27 -4
  47. package/dist/types/image.d.ts.map +1 -1
  48. package/dist/types/image.js +17 -10
  49. package/dist/types/image.js.map +1 -1
  50. package/dist/types/index.d.ts +2 -1
  51. package/dist/types/index.d.ts.map +1 -1
  52. package/dist/types/index.js +3 -2
  53. package/dist/types/index.js.map +1 -1
  54. package/dist/types/invites.d.ts +20 -11
  55. package/dist/types/invites.d.ts.map +1 -1
  56. package/dist/types/invites.js +9 -12
  57. package/dist/types/invites.js.map +1 -1
  58. package/dist/types/notifications.d.ts +163 -0
  59. package/dist/types/notifications.d.ts.map +1 -0
  60. package/dist/types/notifications.js +44 -0
  61. package/dist/types/notifications.js.map +1 -0
  62. package/dist/types/teams.d.ts +1640 -231
  63. package/dist/types/teams.d.ts.map +1 -1
  64. package/dist/types/teams.js +76 -45
  65. package/dist/types/teams.js.map +1 -1
  66. package/dist/types/threads.d.ts +1007 -243
  67. package/dist/types/threads.d.ts.map +1 -1
  68. package/dist/types/threads.js +84 -51
  69. package/dist/types/threads.js.map +1 -1
  70. package/dist/types/users.d.ts +98 -18
  71. package/dist/types/users.d.ts.map +1 -1
  72. package/dist/types/users.js +43 -18
  73. package/dist/types/users.js.map +1 -1
  74. package/dist/v1/resources/activity_feed.d.ts +90 -0
  75. package/dist/v1/resources/activity_feed.d.ts.map +1 -1
  76. package/dist/v1/resources/activity_feed.js +56 -2
  77. package/dist/v1/resources/activity_feed.js.map +1 -1
  78. package/dist/v1/resources/agent_computers.d.ts +48 -2
  79. package/dist/v1/resources/agent_computers.d.ts.map +1 -1
  80. package/dist/v1/resources/agent_computers.js +48 -1
  81. package/dist/v1/resources/agent_computers.js.map +1 -1
  82. package/dist/v1/resources/agent_env_vars.d.ts +50 -0
  83. package/dist/v1/resources/agent_env_vars.d.ts.map +1 -0
  84. package/dist/v1/resources/agent_env_vars.js +56 -0
  85. package/dist/v1/resources/agent_env_vars.js.map +1 -0
  86. package/dist/v1/resources/agent_health_actions.d.ts +43 -0
  87. package/dist/v1/resources/agent_health_actions.d.ts.map +1 -0
  88. package/dist/v1/resources/agent_health_actions.js +50 -0
  89. package/dist/v1/resources/agent_health_actions.js.map +1 -0
  90. package/dist/v1/resources/agent_installations.d.ts +100 -0
  91. package/dist/v1/resources/agent_installations.d.ts.map +1 -1
  92. package/dist/v1/resources/agent_installations.js +106 -2
  93. package/dist/v1/resources/agent_installations.js.map +1 -1
  94. package/dist/v1/resources/agent_routine_runs.d.ts +33 -0
  95. package/dist/v1/resources/agent_routine_runs.d.ts.map +1 -0
  96. package/dist/v1/resources/agent_routine_runs.js +48 -0
  97. package/dist/v1/resources/agent_routine_runs.js.map +1 -0
  98. package/dist/v1/resources/agent_routines.d.ts +148 -2
  99. package/dist/v1/resources/agent_routines.d.ts.map +1 -1
  100. package/dist/v1/resources/agent_routines.js +168 -3
  101. package/dist/v1/resources/agent_routines.js.map +1 -1
  102. package/dist/v1/resources/agent_sessions.d.ts +118 -1
  103. package/dist/v1/resources/agent_sessions.d.ts.map +1 -1
  104. package/dist/v1/resources/agent_sessions.js +134 -2
  105. package/dist/v1/resources/agent_sessions.js.map +1 -1
  106. package/dist/v1/resources/agent_skills.d.ts +83 -1
  107. package/dist/v1/resources/agent_skills.d.ts.map +1 -1
  108. package/dist/v1/resources/agent_skills.js +87 -2
  109. package/dist/v1/resources/agent_skills.js.map +1 -1
  110. package/dist/v1/resources/agent_tools.d.ts +109 -2
  111. package/dist/v1/resources/agent_tools.d.ts.map +1 -1
  112. package/dist/v1/resources/agent_tools.js +114 -2
  113. package/dist/v1/resources/agent_tools.js.map +1 -1
  114. package/dist/v1/resources/agents.d.ts +519 -9
  115. package/dist/v1/resources/agents.d.ts.map +1 -1
  116. package/dist/v1/resources/agents.js +516 -12
  117. package/dist/v1/resources/agents.js.map +1 -1
  118. package/dist/v1/resources/ai.d.ts +174 -3
  119. package/dist/v1/resources/ai.d.ts.map +1 -1
  120. package/dist/v1/resources/ai.js +114 -3
  121. package/dist/v1/resources/ai.js.map +1 -1
  122. package/dist/v1/resources/artifacts.d.ts +73 -0
  123. package/dist/v1/resources/artifacts.d.ts.map +1 -1
  124. package/dist/v1/resources/artifacts.js +74 -2
  125. package/dist/v1/resources/artifacts.js.map +1 -1
  126. package/dist/v1/resources/automation_runs.d.ts +8 -4
  127. package/dist/v1/resources/automation_runs.d.ts.map +1 -1
  128. package/dist/v1/resources/automation_runs.js +9 -5
  129. package/dist/v1/resources/automation_runs.js.map +1 -1
  130. package/dist/v1/resources/automations.d.ts +20 -0
  131. package/dist/v1/resources/automations.d.ts.map +1 -1
  132. package/dist/v1/resources/automations.js +21 -1
  133. package/dist/v1/resources/automations.js.map +1 -1
  134. package/dist/v1/resources/bug_reports.d.ts +29 -0
  135. package/dist/v1/resources/bug_reports.d.ts.map +1 -0
  136. package/dist/v1/resources/bug_reports.js +29 -0
  137. package/dist/v1/resources/bug_reports.js.map +1 -0
  138. package/dist/v1/resources/config.d.ts +437 -4
  139. package/dist/v1/resources/config.d.ts.map +1 -1
  140. package/dist/v1/resources/config.js +497 -9
  141. package/dist/v1/resources/config.js.map +1 -1
  142. package/dist/v1/resources/custom_objects.d.ts +117 -2
  143. package/dist/v1/resources/custom_objects.d.ts.map +1 -1
  144. package/dist/v1/resources/custom_objects.js +132 -3
  145. package/dist/v1/resources/custom_objects.js.map +1 -1
  146. package/dist/v1/resources/files.d.ts +62 -0
  147. package/dist/v1/resources/files.d.ts.map +1 -0
  148. package/dist/v1/resources/files.js +58 -0
  149. package/dist/v1/resources/files.js.map +1 -0
  150. package/dist/v1/resources/index.d.ts +13 -0
  151. package/dist/v1/resources/index.d.ts.map +1 -1
  152. package/dist/v1/resources/index.js +14 -1
  153. package/dist/v1/resources/index.js.map +1 -1
  154. package/dist/v1/resources/installation_sources.d.ts +12 -0
  155. package/dist/v1/resources/installation_sources.d.ts.map +1 -1
  156. package/dist/v1/resources/installation_sources.js +13 -1
  157. package/dist/v1/resources/installation_sources.js.map +1 -1
  158. package/dist/v1/resources/invites.d.ts +15 -0
  159. package/dist/v1/resources/invites.d.ts.map +1 -1
  160. package/dist/v1/resources/invites.js +16 -1
  161. package/dist/v1/resources/invites.js.map +1 -1
  162. package/dist/v1/resources/knowledge_documents.d.ts +104 -0
  163. package/dist/v1/resources/knowledge_documents.d.ts.map +1 -0
  164. package/dist/v1/resources/knowledge_documents.js +112 -0
  165. package/dist/v1/resources/knowledge_documents.js.map +1 -0
  166. package/dist/v1/resources/knowledge_sources.d.ts +190 -0
  167. package/dist/v1/resources/knowledge_sources.d.ts.map +1 -0
  168. package/dist/v1/resources/knowledge_sources.js +176 -0
  169. package/dist/v1/resources/knowledge_sources.js.map +1 -0
  170. package/dist/v1/resources/kv.d.ts +73 -0
  171. package/dist/v1/resources/kv.d.ts.map +1 -1
  172. package/dist/v1/resources/kv.js +96 -3
  173. package/dist/v1/resources/kv.js.map +1 -1
  174. package/dist/v1/resources/notification_preferences.d.ts +61 -0
  175. package/dist/v1/resources/notification_preferences.d.ts.map +1 -0
  176. package/dist/v1/resources/notification_preferences.js +65 -0
  177. package/dist/v1/resources/notification_preferences.js.map +1 -0
  178. package/dist/v1/resources/notifications.d.ts +133 -0
  179. package/dist/v1/resources/notifications.d.ts.map +1 -0
  180. package/dist/v1/resources/notifications.js +136 -0
  181. package/dist/v1/resources/notifications.js.map +1 -0
  182. package/dist/v1/resources/orgs.d.ts +18 -0
  183. package/dist/v1/resources/orgs.d.ts.map +1 -1
  184. package/dist/v1/resources/orgs.js +30 -2
  185. package/dist/v1/resources/orgs.js.map +1 -1
  186. package/dist/v1/resources/slack_channel_bindings.d.ts +101 -0
  187. package/dist/v1/resources/slack_channel_bindings.d.ts.map +1 -0
  188. package/dist/v1/resources/slack_channel_bindings.js +114 -0
  189. package/dist/v1/resources/slack_channel_bindings.js.map +1 -0
  190. package/dist/v1/resources/solution_categories.d.ts +36 -0
  191. package/dist/v1/resources/solution_categories.d.ts.map +1 -0
  192. package/dist/v1/resources/solution_categories.js +55 -0
  193. package/dist/v1/resources/solution_categories.js.map +1 -0
  194. package/dist/v1/resources/solution_tags.d.ts +37 -0
  195. package/dist/v1/resources/solution_tags.d.ts.map +1 -0
  196. package/dist/v1/resources/solution_tags.js +54 -0
  197. package/dist/v1/resources/solution_tags.js.map +1 -0
  198. package/dist/v1/resources/solutions.d.ts +313 -0
  199. package/dist/v1/resources/solutions.d.ts.map +1 -0
  200. package/dist/v1/resources/solutions.js +218 -0
  201. package/dist/v1/resources/solutions.js.map +1 -0
  202. package/dist/v1/resources/team_memberships.d.ts +31 -0
  203. package/dist/v1/resources/team_memberships.d.ts.map +1 -1
  204. package/dist/v1/resources/team_memberships.js +49 -2
  205. package/dist/v1/resources/team_memberships.js.map +1 -1
  206. package/dist/v1/resources/teams.d.ts +461 -49
  207. package/dist/v1/resources/teams.d.ts.map +1 -1
  208. package/dist/v1/resources/teams.js +319 -27
  209. package/dist/v1/resources/teams.js.map +1 -1
  210. package/dist/v1/resources/thread_messages.d.ts +70 -0
  211. package/dist/v1/resources/thread_messages.d.ts.map +1 -1
  212. package/dist/v1/resources/thread_messages.js +85 -2
  213. package/dist/v1/resources/thread_messages.js.map +1 -1
  214. package/dist/v1/resources/threads.d.ts +221 -0
  215. package/dist/v1/resources/threads.d.ts.map +1 -1
  216. package/dist/v1/resources/threads.js +252 -4
  217. package/dist/v1/resources/threads.js.map +1 -1
  218. package/dist/v1/resources/users.d.ts +215 -39
  219. package/dist/v1/resources/users.d.ts.map +1 -1
  220. package/dist/v1/resources/users.js +121 -16
  221. package/dist/v1/resources/users.js.map +1 -1
  222. package/dist/v1.d.ts +26 -0
  223. package/dist/v1.d.ts.map +1 -1
  224. package/dist/v1.js +40 -1
  225. package/dist/v1.js.map +1 -1
  226. package/package.json +4 -2
  227. package/dist/types/agents.d.ts +0 -2084
  228. package/dist/types/agents.d.ts.map +0 -1
  229. package/dist/types/agents.js +0 -203
  230. package/dist/types/agents.js.map +0 -1
@@ -1,47 +1,25 @@
1
1
  import { HttpClient } from "../../runtime/http-client.js";
2
- import type { Artifact } from "../../types/artifacts.js";
3
2
  import type { Thread } from "../../types/threads.js";
4
3
  import type { User, UserInvite } from "../../types/users.js";
5
- export declare class UserArtifactResource {
6
- private http;
7
- constructor(http: HttpClient);
8
- list(user: string): Promise<{
9
- data: {
10
- agent?: string | undefined;
11
- content_type?: string | undefined;
12
- created_at?: string | undefined;
13
- current_version?: string | undefined;
14
- description?: string | undefined;
15
- file?: string | undefined;
16
- file_name?: string | undefined;
17
- file_url?: string | undefined;
18
- id: string;
19
- image_source?: {
20
- file?: string | undefined;
21
- height?: number | undefined;
22
- media?: string | undefined;
23
- mime_type?: string | undefined;
24
- refresh_url?: string | undefined;
25
- url?: string | undefined;
26
- width?: number | undefined;
27
- } | undefined;
28
- name?: string | undefined;
29
- org?: string | undefined;
30
- sandbox?: string | undefined;
31
- team?: string | undefined;
32
- thread?: string | undefined;
33
- updated_at?: string | undefined;
34
- user?: string | undefined;
35
- version?: number | undefined;
36
- }[];
37
- }>;
38
- create(user: string, input: {
39
- artifact: Record<string, unknown>;
40
- }): Promise<Artifact>;
41
- }
42
4
  export declare class UserThreadResource {
43
5
  private http;
44
6
  constructor(http: HttpClient);
7
+ /**
8
+ * List threads for a user
9
+ * Returns all threads visible to the specified user. The authenticated caller must
10
+ * have access to the target user's account; a 403 is returned otherwise.
11
+ * Pass one or more `agent` IDs to narrow results to threads where at least one of
12
+ * the listed agents is also a member — useful for displaying every thread a user
13
+ * shares with a particular agent. Pass one or more `filter` objects to narrow
14
+ * results by thread metadata key/value pairs. Both narrowings may be combined in
15
+ * a single request.
16
+ * Results are returned as a flat array; no cursor-based pagination is applied.
17
+ * @param user - User ID (`usr_...`) whose threads should be listed.
18
+ * @param params - Query parameters.
19
+ * @param params.agent - Array of agent user IDs (`usr_...`). When provided, only threads where at least one of the listed agents is also a member are returned. Omit or pass an empty array to return all threads regardless of agent membership.
20
+ * @param params.filter - Array of metadata filter objects. Each filter matches threads whose `metadata` map contains the specified key/value pair. All filters must match (logical AND). Omit to return threads regardless of metadata.
21
+ * @returns Successful response
22
+ */
45
23
  list(user: string, params?: {
46
24
  agent?: string[];
47
25
  filter?: {
@@ -55,12 +33,18 @@ export declare class UserThreadResource {
55
33
  created_at?: string | undefined;
56
34
  creator?: {
57
35
  alias?: string | undefined;
36
+ app?: string | undefined;
37
+ app_name?: string | undefined;
58
38
  email?: string | undefined;
59
39
  id: string;
40
+ is_system_user?: boolean | undefined;
60
41
  metadata?: Record<string, unknown> | undefined;
61
42
  name?: string | undefined;
62
43
  org?: string | undefined;
44
+ org_name?: string | undefined;
45
+ org_role?: string | undefined;
63
46
  sandbox?: string | undefined;
47
+ sandbox_name?: string | undefined;
64
48
  } | undefined;
65
49
  description?: string | undefined;
66
50
  id: string;
@@ -71,6 +55,7 @@ export declare class UserThreadResource {
71
55
  key?: string | undefined;
72
56
  last_activity?: string | undefined;
73
57
  metadata?: Record<string, unknown> | undefined;
58
+ muted?: boolean | undefined;
74
59
  org?: string | undefined;
75
60
  parent_message?: {
76
61
  actors?: {
@@ -88,6 +73,7 @@ export declare class UserThreadResource {
88
73
  } | undefined;
89
74
  }[] | undefined;
90
75
  agent?: string | undefined;
76
+ agent_mode?: "cli" | "embedded" | undefined;
91
77
  attachments?: {
92
78
  content_type?: string | undefined;
93
79
  description?: string | undefined;
@@ -164,12 +150,18 @@ export declare class UserThreadResource {
164
150
  participant?: string[] | undefined;
165
151
  participants?: {
166
152
  alias?: string | undefined;
153
+ app?: string | undefined;
154
+ app_name?: string | undefined;
167
155
  email?: string | undefined;
168
156
  id: string;
157
+ is_system_user?: boolean | undefined;
169
158
  metadata?: Record<string, unknown> | undefined;
170
159
  name?: string | undefined;
171
160
  org?: string | undefined;
161
+ org_name?: string | undefined;
162
+ org_role?: string | undefined;
172
163
  sandbox?: string | undefined;
164
+ sandbox_name?: string | undefined;
173
165
  }[] | undefined;
174
166
  participating_actor?: string[] | undefined;
175
167
  participating_agents?: {
@@ -195,13 +187,73 @@ export declare class UserThreadResource {
195
187
  email?: string | undefined;
196
188
  id: string;
197
189
  identity?: string | undefined;
190
+ last_applied_template_config?: string | undefined;
198
191
  lookup_key?: string | undefined;
199
192
  metadata?: Record<string, unknown> | undefined;
200
193
  name?: string | undefined;
201
194
  org?: string | undefined;
195
+ org_name?: string | undefined;
196
+ originator?: string | undefined;
202
197
  phone_number?: string | undefined;
203
198
  sandbox?: string | undefined;
199
+ source_solution?: {
200
+ solution: {
201
+ category_keys?: string[] | undefined;
202
+ created_at?: string | undefined;
203
+ description?: string | undefined;
204
+ id: string;
205
+ kind: string;
206
+ latest_solution?: string | undefined;
207
+ latest_version?: string | undefined;
208
+ lookup_key?: string | undefined;
209
+ metadata?: Record<string, unknown> | undefined;
210
+ name?: string | undefined;
211
+ org?: string | undefined;
212
+ org_logo?: {
213
+ file?: string | undefined;
214
+ height?: number | undefined;
215
+ media?: string | undefined;
216
+ mime_type?: string | undefined;
217
+ refresh_url?: string | undefined;
218
+ url?: string | undefined;
219
+ width?: number | undefined;
220
+ } | undefined;
221
+ org_name?: string | undefined;
222
+ org_slug?: string | undefined;
223
+ owners: string[];
224
+ readme_url?: string | undefined;
225
+ solution_id?: string | undefined;
226
+ solution_version?: string | undefined;
227
+ tag_keys?: string[] | undefined;
228
+ template_kind?: string | undefined;
229
+ templates: {
230
+ description?: string | undefined;
231
+ display_name?: string | undefined;
232
+ id?: string | undefined;
233
+ kind: string;
234
+ lookup_key?: string | undefined;
235
+ name?: string | undefined;
236
+ readme_url?: string | undefined;
237
+ virtual_path?: string | undefined;
238
+ }[];
239
+ updated_at?: string | undefined;
240
+ upgrade_available: boolean;
241
+ virtual_path?: string | undefined;
242
+ };
243
+ template: {
244
+ created_at?: string | undefined;
245
+ description?: string | undefined;
246
+ display_name?: string | undefined;
247
+ id: string;
248
+ kind: string;
249
+ lookup_key?: string | undefined;
250
+ name?: string | undefined;
251
+ updated_at?: string | undefined;
252
+ virtual_path?: string | undefined;
253
+ };
254
+ } | undefined;
204
255
  team?: string | undefined;
256
+ template_upgrade_available?: boolean | undefined;
205
257
  updated_at?: string | undefined;
206
258
  user?: string | undefined;
207
259
  }[] | undefined;
@@ -220,6 +272,19 @@ export declare class UserThreadResource {
220
272
  user?: string | undefined;
221
273
  }[];
222
274
  }>;
275
+ /**
276
+ * Create a thread for a user
277
+ * Creates a new thread owned by the specified user. The authenticated caller must
278
+ * have access to the target user's account; a 403 is returned otherwise.
279
+ * An automatic welcome message is sent into the thread upon creation unless
280
+ * `skip_welcome_message` is set to `true`. The thread is immediately visible to
281
+ * the owning user and any members added at creation time.
282
+ * @param user - User ID (`usr_...`) whose threads should be listed.
283
+ * @param input - Request body.
284
+ * @param input.skip_welcome_message - When `true`, suppresses the automatic welcome message that is otherwise sent into the thread on creation. Defaults to `false`.
285
+ * @param input.thread - Attributes for the new thread. See ThreadCreateParams for the full set of accepted fields.
286
+ * @returns The newly created thread object.
287
+ */
223
288
  create(user: string, input: {
224
289
  skip_welcome_message?: boolean | undefined;
225
290
  thread: {
@@ -228,6 +293,7 @@ export declare class UserThreadResource {
228
293
  is_unlisted?: boolean | undefined;
229
294
  key?: string | undefined;
230
295
  metadata?: Record<string, unknown> | undefined;
296
+ muted?: boolean | undefined;
231
297
  org_id?: string | undefined;
232
298
  profile_picture?: {
233
299
  data?: string | undefined;
@@ -243,11 +309,94 @@ export declare class UserThreadResource {
243
309
  }
244
310
  export declare class UserResource {
245
311
  private http;
246
- readonly artifacts: UserArtifactResource;
247
312
  readonly threads: UserThreadResource;
248
313
  constructor(http: HttpClient);
314
+ /**
315
+ * Retrieve the current user
316
+ * Returns the user associated with the authenticated session or bearer
317
+ * token. This is the canonical way to resolve "who am I?" after
318
+ * authentication.
319
+ * The response includes the user's profile, notification settings, and
320
+ * profile picture, along with the app, organization, and sandbox the
321
+ * token is scoped to and their display names — enough to establish full
322
+ * session context in a single call. Unauthenticated requests return 401.
323
+ * @returns The authenticated user object.
324
+ */
249
325
  me(): Promise<User>;
326
+ /**
327
+ * Retrieve a user by ID
328
+ * Returns the user identified by `user`. The authenticated user must share
329
+ * at least one team with the target user; requests for users outside any
330
+ * shared team are rejected with 403.
331
+ * A user may always retrieve their own profile with this endpoint. Use the
332
+ * `GET /users/me` endpoint as a convenience alias for retrieving the
333
+ * authenticated user without specifying an ID.
334
+ * @param user - User ID (`usr_...`) of the user to retrieve.
335
+ * @returns The requested user object.
336
+ */
250
337
  get(user: string): Promise<User>;
338
+ /**
339
+ * List a user's artifacts
340
+ * Returns all artifacts owned by the specified user. Artifacts represent
341
+ * AI-generated or user-uploaded files associated with agent sessions,
342
+ * threads, or sandboxes — such as images, documents, and code outputs.
343
+ * The authenticated user must be requesting their own artifacts or must
344
+ * have administrative access. Attempting to list artifacts for a user
345
+ * the caller is not authorized to access returns 403.
346
+ * Results are returned in a single page without cursor pagination. Each
347
+ * artifact in the response reflects the state of its current version,
348
+ * including a short-lived signed `file_url` for direct download.
349
+ * @param user - User ID (`usr_...`). The authenticated user must be this user or have access to their artifacts.
350
+ * @returns Successful response
351
+ */
352
+ artifacts(user: string): Promise<{
353
+ data: {
354
+ agent?: string | undefined;
355
+ content_type?: string | undefined;
356
+ created_at?: string | undefined;
357
+ current_version?: string | undefined;
358
+ description?: string | undefined;
359
+ file?: string | undefined;
360
+ file_name?: string | undefined;
361
+ file_url?: string | undefined;
362
+ id: string;
363
+ image_source?: {
364
+ file?: string | undefined;
365
+ height?: number | undefined;
366
+ media?: string | undefined;
367
+ mime_type?: string | undefined;
368
+ refresh_url?: string | undefined;
369
+ url?: string | undefined;
370
+ width?: number | undefined;
371
+ } | undefined;
372
+ name?: string | undefined;
373
+ org?: string | undefined;
374
+ sandbox?: string | undefined;
375
+ team?: string | undefined;
376
+ thread?: string | undefined;
377
+ updated_at?: string | undefined;
378
+ user?: string | undefined;
379
+ version?: number | undefined;
380
+ }[];
381
+ }>;
382
+ /**
383
+ * Create a user invite
384
+ * Creates a new invite for the authenticated user. The invite can optionally be
385
+ * scoped to a specific thread, a persona, or carry arbitrary metadata. The
386
+ * caller receives the new invite object at HTTP 201.
387
+ * The invite key is always generated server-side (192-bit URL-safe random
388
+ * string) and cannot be supplied by the caller.
389
+ * The path `:user` must match the authenticated user. If a `thread_id` is
390
+ * provided, the authenticated user must have permission to invite others to that
391
+ * thread; team threads are not supported and return an error. Supplying a
392
+ * `thread_id` that does not exist or that belongs to a different user returns
393
+ * an error. If a key collision occurs during creation the call returns a 409
394
+ * conflict — simply retry to generate a new key.
395
+ * @param user - User ID (`usr_...`). Must match the authenticated user.
396
+ * @param input - Request body.
397
+ * @param input.invite - Parameters for the new invite. See the UserInviteCreateParams schema for field details.
398
+ * @returns The newly created invite object.
399
+ */
251
400
  invites(user: string, input: {
252
401
  invite: {
253
402
  metadata?: Record<string, unknown> | undefined;
@@ -255,6 +404,16 @@ export declare class UserResource {
255
404
  thread_id?: string | undefined;
256
405
  };
257
406
  }): Promise<UserInvite>;
407
+ /**
408
+ * List organizations for a user
409
+ * Returns the organizations the specified user belongs to. A user can belong
410
+ * to at most one organization, so the `data` array contains either zero or one
411
+ * items.
412
+ * The authenticated viewer must have permission to inspect the target user.
413
+ * Returns an empty `data` array when the user has no organization membership.
414
+ * @param user - User ID (`usr_...`) whose organization membership you want to retrieve.
415
+ * @returns Successful response
416
+ */
258
417
  orgs(user: string): Promise<{
259
418
  data: {
260
419
  created_at?: string | undefined;
@@ -263,6 +422,7 @@ export declare class UserResource {
263
422
  id: string;
264
423
  industry?: string | undefined;
265
424
  name?: string | undefined;
425
+ onboarding_track?: string | undefined;
266
426
  sandbox?: string | undefined;
267
427
  slug?: string | undefined;
268
428
  status?: string | undefined;
@@ -270,6 +430,22 @@ export declare class UserResource {
270
430
  website?: string | undefined;
271
431
  }[];
272
432
  }>;
433
+ /**
434
+ * Update the current user's profile
435
+ * Updates one or more profile fields for the authenticated user. All
436
+ * fields are optional; omit any you do not want to change.
437
+ * When `profile_picture` is supplied, the image is uploaded and replaces
438
+ * the existing picture. The previous picture is deleted after the new one
439
+ * is stored. Image upload failures return 422 without modifying other
440
+ * profile fields.
441
+ * @param user - User ID (`usr_...`) or `"me"` for the authenticated user.
442
+ * @param input - Request body.
443
+ * @param input.alias - Short display alias shown in place of the full name in compact UI contexts.
444
+ * @param input.full_name - Updated display name for the user.
445
+ * @param input.metadata - Arbitrary key-value metadata to associate with the user. Existing keys are merged; pass `null` for a key to remove it.
446
+ * @param input.profile_picture - New profile picture to upload as a base64-encoded image. Replaces any existing picture.
447
+ * @returns The user object with updated profile fields.
448
+ */
273
449
  profile(user: string, input: {
274
450
  alias?: string | undefined;
275
451
  full_name?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/users.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAE7D,qBAAa,oBAAoB;IACnB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAE9B,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE;YAAE,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YAAC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YAAC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YAAC,SAAS,CAAC,EAA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AG,OAAO,CAAC,IAAI,CAAC;CAG9R"}
@@ -1,51 +1,156 @@
1
1
  // Copyright (c) 2026 ArchAstro Inc. All Rights Reserved.
2
2
  // This file is auto-generated by @archastro/sdk-generator. Do not edit.
3
- // Content hash: f6dd6233793f
4
- export class UserArtifactResource {
5
- http;
6
- constructor(http) {
7
- this.http = http;
8
- }
9
- async list(user) {
10
- return this.http.request(`/api/v1/users/${user}/artifacts`);
11
- }
12
- async create(user, input) {
13
- return this.http.request(`/api/v1/users/${user}/artifacts`, { method: "POST", body: input });
14
- }
15
- }
3
+ // Content hash: 59e15840f7f3
16
4
  export class UserThreadResource {
17
5
  http;
18
6
  constructor(http) {
19
7
  this.http = http;
20
8
  }
9
+ /**
10
+ * List threads for a user
11
+ * Returns all threads visible to the specified user. The authenticated caller must
12
+ * have access to the target user's account; a 403 is returned otherwise.
13
+ * Pass one or more `agent` IDs to narrow results to threads where at least one of
14
+ * the listed agents is also a member — useful for displaying every thread a user
15
+ * shares with a particular agent. Pass one or more `filter` objects to narrow
16
+ * results by thread metadata key/value pairs. Both narrowings may be combined in
17
+ * a single request.
18
+ * Results are returned as a flat array; no cursor-based pagination is applied.
19
+ * @param user - User ID (`usr_...`) whose threads should be listed.
20
+ * @param params - Query parameters.
21
+ * @param params.agent - Array of agent user IDs (`usr_...`). When provided, only threads where at least one of the listed agents is also a member are returned. Omit or pass an empty array to return all threads regardless of agent membership.
22
+ * @param params.filter - Array of metadata filter objects. Each filter matches threads whose `metadata` map contains the specified key/value pair. All filters must match (logical AND). Omit to return threads regardless of metadata.
23
+ * @returns Successful response
24
+ */
21
25
  async list(user, params) {
22
- return this.http.request(`/api/v1/users/${user}/threads`, { query: params });
26
+ const query = {};
27
+ if (params?.agent !== undefined) {
28
+ query["agent"] = params?.agent;
29
+ }
30
+ if (params?.filter !== undefined) {
31
+ query["filter"] = JSON.stringify(params?.filter);
32
+ }
33
+ return this.http.request(`/api/v1/users/${user}/threads`, { query });
23
34
  }
35
+ /**
36
+ * Create a thread for a user
37
+ * Creates a new thread owned by the specified user. The authenticated caller must
38
+ * have access to the target user's account; a 403 is returned otherwise.
39
+ * An automatic welcome message is sent into the thread upon creation unless
40
+ * `skip_welcome_message` is set to `true`. The thread is immediately visible to
41
+ * the owning user and any members added at creation time.
42
+ * @param user - User ID (`usr_...`) whose threads should be listed.
43
+ * @param input - Request body.
44
+ * @param input.skip_welcome_message - When `true`, suppresses the automatic welcome message that is otherwise sent into the thread on creation. Defaults to `false`.
45
+ * @param input.thread - Attributes for the new thread. See ThreadCreateParams for the full set of accepted fields.
46
+ * @returns The newly created thread object.
47
+ */
24
48
  async create(user, input) {
25
49
  return this.http.request(`/api/v1/users/${user}/threads`, { method: "POST", body: input });
26
50
  }
27
51
  }
28
52
  export class UserResource {
29
53
  http;
30
- artifacts;
31
54
  threads;
32
55
  constructor(http) {
33
56
  this.http = http;
34
- this.artifacts = new UserArtifactResource(http);
35
57
  this.threads = new UserThreadResource(http);
36
58
  }
59
+ /**
60
+ * Retrieve the current user
61
+ * Returns the user associated with the authenticated session or bearer
62
+ * token. This is the canonical way to resolve "who am I?" after
63
+ * authentication.
64
+ * The response includes the user's profile, notification settings, and
65
+ * profile picture, along with the app, organization, and sandbox the
66
+ * token is scoped to and their display names — enough to establish full
67
+ * session context in a single call. Unauthenticated requests return 401.
68
+ * @returns The authenticated user object.
69
+ */
37
70
  async me() {
38
71
  return this.http.request(`/api/v1/users/me`);
39
72
  }
73
+ /**
74
+ * Retrieve a user by ID
75
+ * Returns the user identified by `user`. The authenticated user must share
76
+ * at least one team with the target user; requests for users outside any
77
+ * shared team are rejected with 403.
78
+ * A user may always retrieve their own profile with this endpoint. Use the
79
+ * `GET /users/me` endpoint as a convenience alias for retrieving the
80
+ * authenticated user without specifying an ID.
81
+ * @param user - User ID (`usr_...`) of the user to retrieve.
82
+ * @returns The requested user object.
83
+ */
40
84
  async get(user) {
41
85
  return this.http.request(`/api/v1/users/${user}`);
42
86
  }
87
+ /**
88
+ * List a user's artifacts
89
+ * Returns all artifacts owned by the specified user. Artifacts represent
90
+ * AI-generated or user-uploaded files associated with agent sessions,
91
+ * threads, or sandboxes — such as images, documents, and code outputs.
92
+ * The authenticated user must be requesting their own artifacts or must
93
+ * have administrative access. Attempting to list artifacts for a user
94
+ * the caller is not authorized to access returns 403.
95
+ * Results are returned in a single page without cursor pagination. Each
96
+ * artifact in the response reflects the state of its current version,
97
+ * including a short-lived signed `file_url` for direct download.
98
+ * @param user - User ID (`usr_...`). The authenticated user must be this user or have access to their artifacts.
99
+ * @returns Successful response
100
+ */
101
+ async artifacts(user) {
102
+ return this.http.request(`/api/v1/users/${user}/artifacts`);
103
+ }
104
+ /**
105
+ * Create a user invite
106
+ * Creates a new invite for the authenticated user. The invite can optionally be
107
+ * scoped to a specific thread, a persona, or carry arbitrary metadata. The
108
+ * caller receives the new invite object at HTTP 201.
109
+ * The invite key is always generated server-side (192-bit URL-safe random
110
+ * string) and cannot be supplied by the caller.
111
+ * The path `:user` must match the authenticated user. If a `thread_id` is
112
+ * provided, the authenticated user must have permission to invite others to that
113
+ * thread; team threads are not supported and return an error. Supplying a
114
+ * `thread_id` that does not exist or that belongs to a different user returns
115
+ * an error. If a key collision occurs during creation the call returns a 409
116
+ * conflict — simply retry to generate a new key.
117
+ * @param user - User ID (`usr_...`). Must match the authenticated user.
118
+ * @param input - Request body.
119
+ * @param input.invite - Parameters for the new invite. See the UserInviteCreateParams schema for field details.
120
+ * @returns The newly created invite object.
121
+ */
43
122
  async invites(user, input) {
44
123
  return this.http.request(`/api/v1/users/${user}/invites`, { method: "POST", body: input });
45
124
  }
125
+ /**
126
+ * List organizations for a user
127
+ * Returns the organizations the specified user belongs to. A user can belong
128
+ * to at most one organization, so the `data` array contains either zero or one
129
+ * items.
130
+ * The authenticated viewer must have permission to inspect the target user.
131
+ * Returns an empty `data` array when the user has no organization membership.
132
+ * @param user - User ID (`usr_...`) whose organization membership you want to retrieve.
133
+ * @returns Successful response
134
+ */
46
135
  async orgs(user) {
47
136
  return this.http.request(`/api/v1/users/${user}/orgs`);
48
137
  }
138
+ /**
139
+ * Update the current user's profile
140
+ * Updates one or more profile fields for the authenticated user. All
141
+ * fields are optional; omit any you do not want to change.
142
+ * When `profile_picture` is supplied, the image is uploaded and replaces
143
+ * the existing picture. The previous picture is deleted after the new one
144
+ * is stored. Image upload failures return 422 without modifying other
145
+ * profile fields.
146
+ * @param user - User ID (`usr_...`) or `"me"` for the authenticated user.
147
+ * @param input - Request body.
148
+ * @param input.alias - Short display alias shown in place of the full name in compact UI contexts.
149
+ * @param input.full_name - Updated display name for the user.
150
+ * @param input.metadata - Arbitrary key-value metadata to associate with the user. Existing keys are merged; pass `null` for a key to remove it.
151
+ * @param input.profile_picture - New profile picture to upload as a base64-encoded image. Replaces any existing picture.
152
+ * @returns The user object with updated profile fields.
153
+ */
49
154
  async profile(user, input) {
50
155
  return this.http.request(`/api/v1/users/${user}/profile`, { method: "PUT", body: input });
51
156
  }
@@ -1 +1 @@
1
- {"version":3,"file":"users.js","sourceRoot":"","sources":["../../../src/v1/resources/users.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAO7B,MAAM,OAAO,oBAAoB;IACX;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,KAAK,CAAC,IAAI,CAAC,IAAY;QACrB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,iBAAiB,IAAI,YAAY,CAAC,CAAC;IAC9D,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,IAAY,EAAE,KAA4C;QACrE,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,iBAAiB,IAAI,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAC/F,CAAC;CACF;AAED,MAAM,OAAO,kBAAkB;IACT;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAA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