@archastro/sdk 0.5.0 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. package/README.md +86 -0
  2. package/dist/auth.d.ts +143 -0
  3. package/dist/auth.d.ts.map +1 -1
  4. package/dist/auth.js +187 -1
  5. package/dist/auth.js.map +1 -1
  6. package/dist/client.d.ts +26 -0
  7. package/dist/client.d.ts.map +1 -1
  8. package/dist/client.js +27 -1
  9. package/dist/client.js.map +1 -1
  10. package/dist/index.d.ts +1 -1
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +2 -2
  13. package/dist/index.js.map +1 -1
  14. package/dist/types/ai.d.ts +150 -12
  15. package/dist/types/ai.d.ts.map +1 -1
  16. package/dist/types/ai.js +71 -41
  17. package/dist/types/ai.js.map +1 -1
  18. package/dist/types/artifacts.d.ts +81 -24
  19. package/dist/types/artifacts.d.ts.map +1 -1
  20. package/dist/types/artifacts.js +39 -21
  21. package/dist/types/artifacts.js.map +1 -1
  22. package/dist/types/automations.d.ts +41 -9
  23. package/dist/types/automations.d.ts.map +1 -1
  24. package/dist/types/automations.js +25 -17
  25. package/dist/types/automations.js.map +1 -1
  26. package/dist/types/chat.d.ts +21185 -39
  27. package/dist/types/chat.d.ts.map +1 -1
  28. package/dist/types/chat.js +64 -8
  29. package/dist/types/chat.js.map +1 -1
  30. package/dist/types/common.d.ts +16970 -2136
  31. package/dist/types/common.d.ts.map +1 -1
  32. package/dist/types/common.js +1695 -332
  33. package/dist/types/common.js.map +1 -1
  34. package/dist/types/config.d.ts +239 -31
  35. package/dist/types/config.d.ts.map +1 -1
  36. package/dist/types/config.js +86 -34
  37. package/dist/types/config.js.map +1 -1
  38. package/dist/types/image.d.ts +27 -4
  39. package/dist/types/image.d.ts.map +1 -1
  40. package/dist/types/image.js +17 -10
  41. package/dist/types/image.js.map +1 -1
  42. package/dist/types/index.d.ts +2 -1
  43. package/dist/types/index.d.ts.map +1 -1
  44. package/dist/types/index.js +3 -2
  45. package/dist/types/index.js.map +1 -1
  46. package/dist/types/invites.d.ts +20 -11
  47. package/dist/types/invites.d.ts.map +1 -1
  48. package/dist/types/invites.js +9 -12
  49. package/dist/types/invites.js.map +1 -1
  50. package/dist/types/notifications.d.ts +163 -0
  51. package/dist/types/notifications.d.ts.map +1 -0
  52. package/dist/types/notifications.js +44 -0
  53. package/dist/types/notifications.js.map +1 -0
  54. package/dist/types/teams.d.ts +1628 -231
  55. package/dist/types/teams.d.ts.map +1 -1
  56. package/dist/types/teams.js +76 -45
  57. package/dist/types/teams.js.map +1 -1
  58. package/dist/types/threads.d.ts +997 -243
  59. package/dist/types/threads.d.ts.map +1 -1
  60. package/dist/types/threads.js +84 -51
  61. package/dist/types/threads.js.map +1 -1
  62. package/dist/types/users.d.ts +98 -18
  63. package/dist/types/users.d.ts.map +1 -1
  64. package/dist/types/users.js +43 -18
  65. package/dist/types/users.js.map +1 -1
  66. package/dist/v1/resources/activity_feed.d.ts +89 -0
  67. package/dist/v1/resources/activity_feed.d.ts.map +1 -1
  68. package/dist/v1/resources/activity_feed.js +56 -2
  69. package/dist/v1/resources/activity_feed.js.map +1 -1
  70. package/dist/v1/resources/agent_computers.d.ts +48 -2
  71. package/dist/v1/resources/agent_computers.d.ts.map +1 -1
  72. package/dist/v1/resources/agent_computers.js +48 -1
  73. package/dist/v1/resources/agent_computers.js.map +1 -1
  74. package/dist/v1/resources/agent_env_vars.d.ts +50 -0
  75. package/dist/v1/resources/agent_env_vars.d.ts.map +1 -0
  76. package/dist/v1/resources/agent_env_vars.js +56 -0
  77. package/dist/v1/resources/agent_env_vars.js.map +1 -0
  78. package/dist/v1/resources/agent_health_actions.d.ts +43 -0
  79. package/dist/v1/resources/agent_health_actions.d.ts.map +1 -0
  80. package/dist/v1/resources/agent_health_actions.js +50 -0
  81. package/dist/v1/resources/agent_health_actions.js.map +1 -0
  82. package/dist/v1/resources/agent_installations.d.ts +100 -0
  83. package/dist/v1/resources/agent_installations.d.ts.map +1 -1
  84. package/dist/v1/resources/agent_installations.js +106 -2
  85. package/dist/v1/resources/agent_installations.js.map +1 -1
  86. package/dist/v1/resources/agent_routine_runs.d.ts +33 -0
  87. package/dist/v1/resources/agent_routine_runs.d.ts.map +1 -0
  88. package/dist/v1/resources/agent_routine_runs.js +48 -0
  89. package/dist/v1/resources/agent_routine_runs.js.map +1 -0
  90. package/dist/v1/resources/agent_routines.d.ts +148 -2
  91. package/dist/v1/resources/agent_routines.d.ts.map +1 -1
  92. package/dist/v1/resources/agent_routines.js +168 -3
  93. package/dist/v1/resources/agent_routines.js.map +1 -1
  94. package/dist/v1/resources/agent_sessions.d.ts +118 -1
  95. package/dist/v1/resources/agent_sessions.d.ts.map +1 -1
  96. package/dist/v1/resources/agent_sessions.js +134 -2
  97. package/dist/v1/resources/agent_sessions.js.map +1 -1
  98. package/dist/v1/resources/agent_skills.d.ts +83 -1
  99. package/dist/v1/resources/agent_skills.d.ts.map +1 -1
  100. package/dist/v1/resources/agent_skills.js +87 -2
  101. package/dist/v1/resources/agent_skills.js.map +1 -1
  102. package/dist/v1/resources/agent_tools.d.ts +109 -2
  103. package/dist/v1/resources/agent_tools.d.ts.map +1 -1
  104. package/dist/v1/resources/agent_tools.js +114 -2
  105. package/dist/v1/resources/agent_tools.js.map +1 -1
  106. package/dist/v1/resources/agents.d.ts +517 -9
  107. package/dist/v1/resources/agents.d.ts.map +1 -1
  108. package/dist/v1/resources/agents.js +515 -12
  109. package/dist/v1/resources/agents.js.map +1 -1
  110. package/dist/v1/resources/ai.d.ts +93 -0
  111. package/dist/v1/resources/ai.d.ts.map +1 -1
  112. package/dist/v1/resources/ai.js +89 -1
  113. package/dist/v1/resources/ai.js.map +1 -1
  114. package/dist/v1/resources/artifacts.d.ts +73 -0
  115. package/dist/v1/resources/artifacts.d.ts.map +1 -1
  116. package/dist/v1/resources/artifacts.js +74 -2
  117. package/dist/v1/resources/artifacts.js.map +1 -1
  118. package/dist/v1/resources/automation_runs.d.ts +8 -4
  119. package/dist/v1/resources/automation_runs.d.ts.map +1 -1
  120. package/dist/v1/resources/automation_runs.js +9 -5
  121. package/dist/v1/resources/automation_runs.js.map +1 -1
  122. package/dist/v1/resources/automations.d.ts +20 -0
  123. package/dist/v1/resources/automations.d.ts.map +1 -1
  124. package/dist/v1/resources/automations.js +21 -1
  125. package/dist/v1/resources/automations.js.map +1 -1
  126. package/dist/v1/resources/bug_reports.d.ts +29 -0
  127. package/dist/v1/resources/bug_reports.d.ts.map +1 -0
  128. package/dist/v1/resources/bug_reports.js +29 -0
  129. package/dist/v1/resources/bug_reports.js.map +1 -0
  130. package/dist/v1/resources/config.d.ts +429 -4
  131. package/dist/v1/resources/config.d.ts.map +1 -1
  132. package/dist/v1/resources/config.js +493 -9
  133. package/dist/v1/resources/config.js.map +1 -1
  134. package/dist/v1/resources/custom_objects.d.ts +117 -2
  135. package/dist/v1/resources/custom_objects.d.ts.map +1 -1
  136. package/dist/v1/resources/custom_objects.js +132 -3
  137. package/dist/v1/resources/custom_objects.js.map +1 -1
  138. package/dist/v1/resources/files.d.ts +62 -0
  139. package/dist/v1/resources/files.d.ts.map +1 -0
  140. package/dist/v1/resources/files.js +58 -0
  141. package/dist/v1/resources/files.js.map +1 -0
  142. package/dist/v1/resources/index.d.ts +13 -0
  143. package/dist/v1/resources/index.d.ts.map +1 -1
  144. package/dist/v1/resources/index.js +14 -1
  145. package/dist/v1/resources/index.js.map +1 -1
  146. package/dist/v1/resources/installation_sources.d.ts +12 -0
  147. package/dist/v1/resources/installation_sources.d.ts.map +1 -1
  148. package/dist/v1/resources/installation_sources.js +13 -1
  149. package/dist/v1/resources/installation_sources.js.map +1 -1
  150. package/dist/v1/resources/invites.d.ts +15 -0
  151. package/dist/v1/resources/invites.d.ts.map +1 -1
  152. package/dist/v1/resources/invites.js +16 -1
  153. package/dist/v1/resources/invites.js.map +1 -1
  154. package/dist/v1/resources/knowledge_documents.d.ts +104 -0
  155. package/dist/v1/resources/knowledge_documents.d.ts.map +1 -0
  156. package/dist/v1/resources/knowledge_documents.js +112 -0
  157. package/dist/v1/resources/knowledge_documents.js.map +1 -0
  158. package/dist/v1/resources/knowledge_sources.d.ts +190 -0
  159. package/dist/v1/resources/knowledge_sources.d.ts.map +1 -0
  160. package/dist/v1/resources/knowledge_sources.js +176 -0
  161. package/dist/v1/resources/knowledge_sources.js.map +1 -0
  162. package/dist/v1/resources/kv.d.ts +73 -0
  163. package/dist/v1/resources/kv.d.ts.map +1 -1
  164. package/dist/v1/resources/kv.js +96 -3
  165. package/dist/v1/resources/kv.js.map +1 -1
  166. package/dist/v1/resources/notification_preferences.d.ts +61 -0
  167. package/dist/v1/resources/notification_preferences.d.ts.map +1 -0
  168. package/dist/v1/resources/notification_preferences.js +65 -0
  169. package/dist/v1/resources/notification_preferences.js.map +1 -0
  170. package/dist/v1/resources/notifications.d.ts +133 -0
  171. package/dist/v1/resources/notifications.d.ts.map +1 -0
  172. package/dist/v1/resources/notifications.js +136 -0
  173. package/dist/v1/resources/notifications.js.map +1 -0
  174. package/dist/v1/resources/orgs.d.ts +18 -0
  175. package/dist/v1/resources/orgs.d.ts.map +1 -1
  176. package/dist/v1/resources/orgs.js +30 -2
  177. package/dist/v1/resources/orgs.js.map +1 -1
  178. package/dist/v1/resources/slack_channel_bindings.d.ts +101 -0
  179. package/dist/v1/resources/slack_channel_bindings.d.ts.map +1 -0
  180. package/dist/v1/resources/slack_channel_bindings.js +114 -0
  181. package/dist/v1/resources/slack_channel_bindings.js.map +1 -0
  182. package/dist/v1/resources/solution_categories.d.ts +36 -0
  183. package/dist/v1/resources/solution_categories.d.ts.map +1 -0
  184. package/dist/v1/resources/solution_categories.js +55 -0
  185. package/dist/v1/resources/solution_categories.js.map +1 -0
  186. package/dist/v1/resources/solution_tags.d.ts +37 -0
  187. package/dist/v1/resources/solution_tags.d.ts.map +1 -0
  188. package/dist/v1/resources/solution_tags.js +54 -0
  189. package/dist/v1/resources/solution_tags.js.map +1 -0
  190. package/dist/v1/resources/solutions.d.ts +309 -0
  191. package/dist/v1/resources/solutions.d.ts.map +1 -0
  192. package/dist/v1/resources/solutions.js +214 -0
  193. package/dist/v1/resources/solutions.js.map +1 -0
  194. package/dist/v1/resources/team_memberships.d.ts +31 -0
  195. package/dist/v1/resources/team_memberships.d.ts.map +1 -1
  196. package/dist/v1/resources/team_memberships.js +49 -2
  197. package/dist/v1/resources/team_memberships.js.map +1 -1
  198. package/dist/v1/resources/teams.d.ts +458 -49
  199. package/dist/v1/resources/teams.d.ts.map +1 -1
  200. package/dist/v1/resources/teams.js +319 -27
  201. package/dist/v1/resources/teams.js.map +1 -1
  202. package/dist/v1/resources/thread_messages.d.ts +70 -0
  203. package/dist/v1/resources/thread_messages.d.ts.map +1 -1
  204. package/dist/v1/resources/thread_messages.js +85 -2
  205. package/dist/v1/resources/thread_messages.js.map +1 -1
  206. package/dist/v1/resources/threads.d.ts +201 -0
  207. package/dist/v1/resources/threads.d.ts.map +1 -1
  208. package/dist/v1/resources/threads.js +220 -4
  209. package/dist/v1/resources/threads.js.map +1 -1
  210. package/dist/v1/resources/users.d.ts +213 -39
  211. package/dist/v1/resources/users.d.ts.map +1 -1
  212. package/dist/v1/resources/users.js +121 -16
  213. package/dist/v1/resources/users.js.map +1 -1
  214. package/dist/v1.d.ts +26 -0
  215. package/dist/v1.d.ts.map +1 -1
  216. package/dist/v1.js +40 -1
  217. package/dist/v1.js.map +1 -1
  218. package/package.json +4 -2
  219. package/dist/types/agents.d.ts +0 -2084
  220. package/dist/types/agents.d.ts.map +0 -1
  221. package/dist/types/agents.js +0 -203
  222. package/dist/types/agents.js.map +0 -1
  223. package/dist/types/members.d.ts +0 -99
  224. package/dist/types/members.d.ts.map +0 -1
  225. package/dist/types/members.js +0 -36
  226. package/dist/types/members.js.map +0 -1
  227. package/dist/types/orgs.d.ts +0 -193
  228. package/dist/types/orgs.d.ts.map +0 -1
  229. package/dist/types/orgs.js +0 -69
  230. package/dist/types/orgs.js.map +0 -1
  231. package/dist/types/reactions.d.ts +0 -29
  232. package/dist/types/reactions.d.ts.map +0 -1
  233. package/dist/types/reactions.js +0 -15
  234. package/dist/types/reactions.js.map +0 -1
  235. package/dist/types/schedules.d.ts +0 -32
  236. package/dist/types/schedules.d.ts.map +0 -1
  237. package/dist/types/schedules.js +0 -16
  238. package/dist/types/schedules.js.map +0 -1
  239. package/dist/types/system.d.ts +0 -23
  240. package/dist/types/system.d.ts.map +0 -1
  241. package/dist/types/system.js +0 -13
  242. package/dist/types/system.js.map +0 -1
package/README.md ADDED
@@ -0,0 +1,86 @@
1
+ # @archastro/sdk
2
+
3
+ TypeScript SDK for the ArchAstro Platform API.
4
+
5
+ ## Documentation
6
+
7
+ API reference documentation is published at
8
+ [archastro.github.io/archastro-js](https://archastro.github.io/archastro-js/).
9
+
10
+ Use this site in two layers:
11
+
12
+ - Start with the guides when you are wiring the SDK into an app, worker, or
13
+ internal tool.
14
+ - Use the API reference when you know the resource or method you need.
15
+
16
+ ## Install
17
+
18
+ ```sh
19
+ npm install @archastro/sdk
20
+ ```
21
+
22
+ ## Choose An Auth Mode
23
+
24
+ Most app integrations use a publishable API key plus a user access token:
25
+
26
+ ```ts
27
+ import { PlatformClient } from "@archastro/sdk";
28
+
29
+ const client = PlatformClient.withToken(
30
+ process.env.ARCHASTRO_API_KEY ?? "",
31
+ process.env.ARCHASTRO_ACCESS_TOKEN ?? "",
32
+ );
33
+ ```
34
+
35
+ Server-side org bots and workers can also use an app-scoped user token directly:
36
+
37
+ ```ts
38
+ const client = new PlatformClient({
39
+ accessToken: process.env.ARCHASTRO_ACCESS_TOKEN,
40
+ });
41
+ ```
42
+
43
+ Set `baseUrl` only for local development or staging:
44
+
45
+ ```ts
46
+ import { PlatformClient } from "@archastro/sdk";
47
+
48
+ const client = PlatformClient.withToken(
49
+ process.env.ARCHASTRO_API_KEY ?? "",
50
+ process.env.ARCHASTRO_ACCESS_TOKEN ?? "",
51
+ process.env.ARCHASTRO_PLATFORM_BASE_URL,
52
+ );
53
+ ```
54
+
55
+ ## Quickstart
56
+
57
+ ```ts
58
+ const me = await client.users.me();
59
+ const teams = await client.teams.list();
60
+
61
+ console.log(me.id, me.email, teams);
62
+ ```
63
+
64
+ ## Integration Guides
65
+
66
+ - [Authentication](./docs/authentication.md): choose the right token strategy for
67
+ browser sessions, server-side app integrations, and org workers.
68
+ - [Integration scenarios](./docs/scenarios.md): read the current user, list
69
+ teams, and create an agent with snippets that were smoke-tested against the
70
+ local platform dev harness.
71
+
72
+ ## Common Resource Pattern
73
+
74
+ Resources hang directly off `PlatformClient` and under `client.v1`:
75
+
76
+ ```ts
77
+ await client.agents.list();
78
+ await client.agents.create({
79
+ name: "Support triage",
80
+ identity: "You triage support requests and keep replies concise.",
81
+ });
82
+ ```
83
+
84
+ The generated API surface includes typed REST resources, auth helpers, and
85
+ channel clients. The lower-level Phoenix Channel client is documented in
86
+ [`src/phx_channel/README.md`](./src/phx_channel/README.md).
package/dist/auth.d.ts CHANGED
@@ -7,9 +7,152 @@ export interface AuthTokens {
7
7
  export declare class AuthClient {
8
8
  private http;
9
9
  constructor(http: HttpClient);
10
+ /**
11
+ * List supported auth methods
12
+ * Returns the complete catalogue of authentication methods the platform supports,
13
+ * including each method's stable slug, user-facing name, and description.
14
+ * Use this endpoint to render method labels in sign-in UIs or org settings screens
15
+ * without hardcoding copy or maintaining your own enum list. Results reflect the
16
+ * platform's source-of-truth catalogue and are consistent across all orgs.
17
+ * This endpoint requires only a publishable key and is accessible without an active
18
+ * user session, making it suitable for pre-authentication flows such as login page
19
+ * rendering or onboarding configuration.
20
+ *
21
+ * @returns Successful response
22
+ */
23
+ allowedAuthMethods(): Promise<Record<string, unknown>>;
24
+ /**
25
+ * Authenticate with email and password
26
+ * Authenticates a user with an email address and password and returns a short-lived
27
+ * access token, a refresh token, and the authenticated user object. Use the refresh
28
+ * token with the `/auth/refresh` endpoint to obtain new access tokens without
29
+ * re-authenticating.
30
+ * Password login must be enabled for the app; apps that have disabled password
31
+ * authentication return HTTP 403. Requests are rate-limited per IP (10 per minute)
32
+ * and per email-IP pair (5 per minute) — exceeding either limit returns HTTP 429.
33
+ *
34
+ * @param email - Email address of the user to authenticate.
35
+ * @param password - Password for the account associated with the given email.
36
+ * @returns Access token, refresh token, and authenticated user object.
37
+ */
10
38
  login(email: string, password: string): Promise<AuthTokens>;
39
+ /**
40
+ * Request a magic link for login
41
+ * Sends a magic link to the given email address so an existing user can sign in
42
+ * without a password. The user clicks the link in their email and is redirected to
43
+ * `redirect_uri` with a token; pass that token to `/auth/verify_link` to obtain
44
+ * session tokens.
45
+ * If no account exists for the email, the endpoint still returns success to prevent
46
+ * email enumeration — no link is sent in that case. Both `email` and `redirect_uri`
47
+ * are required. Requests are rate-limited per IP (10 per minute) and per email-IP pair
48
+ * (3 per minute) — exceeding either limit returns HTTP 429. Returns HTTP 204 on success.
49
+ *
50
+ * @param email - Email address of the account to send the magic link to.
51
+ * @param redirectUri - URL the user is redirected to after clicking the magic link. The token is appended as a query parameter.
52
+ * @returns No content
53
+ */
54
+ requestLoginMagicLink(email?: string, redirectUri?: string): Promise<Record<string, unknown>>;
55
+ /**
56
+ * Refresh an access token
57
+ * Exchanges a valid refresh token for a new access token and a new refresh token,
58
+ * rotating the refresh token on every call. The response also includes the updated
59
+ * user object. Store the new refresh token and discard the old one.
60
+ * Refresh tokens are single-use — submitting an already-consumed token returns HTTP 401.
61
+ * Rate limiting is applied per (user, IP) pair when the token can be verified, and
62
+ * falls back to IP-only when it cannot. The limit is 30 exchanges per minute per
63
+ * bucket; exceeding it returns HTTP 429.
64
+ *
65
+ * @param refreshToken - Refresh token previously issued by a login, registration, or token-refresh response.
66
+ * @returns New access token, new refresh token, and the authenticated user object.
67
+ */
11
68
  refresh(refreshToken: string): Promise<AuthTokens>;
69
+ /**
70
+ * Register a new user with email and password
71
+ * Creates a new user account and returns an access token, refresh token, and the new
72
+ * user object. Two registration paths are supported:
73
+ * - **Team registration**: supply `team_invite` with a valid team invite ID. The new
74
+ * user is added to that team immediately upon registration. Returns HTTP 404 if the
75
+ * invite is not found.
76
+ * - **Standard registration**: supply `password`. An `invite_code` may optionally be
77
+ * included for invite-gated apps; an invalid code returns HTTP 404.
78
+ * Exactly one of `team_invite` or `password` must be provided; omitting both returns
79
+ * HTTP 400. Password registration must be enabled for the app; disabled apps return
80
+ * HTTP 403. The response status is HTTP 201 on success.
81
+ *
82
+ * @param email - Email address for the new account.
83
+ * @param alias - Display alias (handle) for the new account.
84
+ * @param fullName - Full name for the new account.
85
+ * @param inviteCode - Invite code for invite-gated registration. Applied only in the standard registration path.
86
+ * @param password - Password for the new account. Required for standard (non-team-invite) registration.
87
+ * @param teamInvite - Team invite ID. When provided, the user is added to the team on registration.
88
+ * @param timezone - IANA timezone name for the new account, e.g. `"America/New_York"`.
89
+ * @returns Access token, refresh token, and the newly created user object.
90
+ */
12
91
  register(email: string, alias?: string, fullName?: string, inviteCode?: string, password?: string, teamInvite?: string, timezone?: string): Promise<AuthTokens>;
92
+ /**
93
+ * Request a magic link for registration
94
+ * Starts a passwordless registration flow by sending a verification link to the given
95
+ * email address. The recipient clicks the link and is redirected to `redirect_uri` with
96
+ * a token; pass that token to `/auth/verify_link` to complete registration and obtain
97
+ * session tokens.
98
+ * Profile fields (`full_name`, `alias`, `timezone`) are captured now and applied when
99
+ * the link is verified. Requests are rate-limited per IP (10 per minute) and per
100
+ * email-IP pair (3 per minute) — exceeding either limit returns HTTP 429. Returns
101
+ * HTTP 204 on success.
102
+ *
103
+ * @param alias - Display alias (handle) for the new account.
104
+ * @param email - Email address to send the registration magic link to.
105
+ * @param fullName - Full name for the new account.
106
+ * @param redirectUri - URL the user is redirected to after clicking the registration link. The token is appended as a query parameter.
107
+ * @param timezone - IANA timezone name for the new account, e.g. `"America/New_York"`.
108
+ * @returns No content
109
+ */
110
+ requestRegisterMagicLink(alias?: string, email?: string, fullName?: string, redirectUri?: string, timezone?: string): Promise<Record<string, unknown>>;
111
+ /**
112
+ * Request a magic link for login or registration
113
+ * Sends a passwordless magic link to the given email address. If an account with that
114
+ * email already exists, a login link is sent. If no account exists, a registration link
115
+ * is sent and the recipient completes sign-up by clicking through. This unified endpoint
116
+ * lets you implement a single email-entry UI that handles both cases transparently.
117
+ * The `redirect_uri` is validated against the app's registered hosts; an unregistered
118
+ * URI returns HTTP 400. Both `email` and `redirect_uri` are required. Requests are
119
+ * rate-limited per IP (10 per minute) and per email-IP pair (3 per minute). Returns
120
+ * HTTP 204 on success — no body.
121
+ *
122
+ * @param email - Email address to send the magic link to.
123
+ * @param redirectUri - URL the user is redirected to after clicking the magic link. Must be registered with the app.
124
+ * @returns No content
125
+ */
126
+ requestMagicLink(email?: string, redirectUri?: string): Promise<Record<string, unknown>>;
127
+ /**
128
+ * Exchange a one-time login token for session tokens
129
+ * Consumes a single-use login token delivered via email and returns an access token,
130
+ * refresh token, and the authenticated user object. One-time tokens are issued by the
131
+ * passwordless login flow and expire after a short window; submitting an expired or
132
+ * already-used token returns HTTP 401.
133
+ * If `timezone` is provided and the user's current timezone is still the default
134
+ * (`"America/Los_Angeles"`), the account timezone is updated in the same request.
135
+ * Requests are rate-limited to 10 per IP per minute; exceeding this returns HTTP 429.
136
+ *
137
+ * @param token - Single-use login token extracted from the magic link or email code flow.
138
+ * @param timezone - IANA timezone name to apply to the account if the account timezone is still the default, e.g. `"Europe/London"`. Omit to leave the timezone unchanged.
139
+ * @returns Access token, refresh token, and the authenticated user object.
140
+ */
13
141
  exchangeLoginToken(token: string, timezone?: string): Promise<AuthTokens>;
142
+ /**
143
+ * Verify a magic link token
144
+ * Consumes a single-use token from a magic link URL and returns an access token,
145
+ * refresh token, and the authenticated user object. This endpoint completes both the
146
+ * login flow (initiated by `/auth/request_login_link`) and the registration flow
147
+ * (initiated by `/auth/request_register_link` or `/auth/request_link`).
148
+ * Extract the token from the `token` query parameter of the magic link redirect URI
149
+ * and POST it here. Expired or already-used tokens return HTTP 401. If the app has
150
+ * disabled passwordless authentication the request returns HTTP 403. Rate-limited to
151
+ * 10 requests per IP per minute — exceeding this returns HTTP 429.
152
+ *
153
+ * @param token - Single-use magic link token extracted from the redirect URI query parameter.
154
+ * @returns Access token, refresh token, and the authenticated user object.
155
+ */
156
+ verifyMagicLink(token?: string): Promise<AuthTokens>;
14
157
  }
15
158
  //# sourceMappingURL=auth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,MAAM,WAAW,UAAU;IACzB,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC;AAED,qBAAa,UAAU;IACT,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAE9B,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAgB3D,OAAO,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAelD,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAqB/J,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;CAehF"}
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,MAAM,WAAW,UAAU;IACzB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;;;;;;;OAcG;IACG,gBAAgB,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAY9F;;;;;;;;;;;;;OAaG;IACG,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAgB/E;;;;;;;;;;;;;OAaG;IACG,eAAe,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;CAc3D"}
package/dist/auth.js CHANGED
@@ -1,11 +1,42 @@
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: 7d771213dfe0
3
+ // Content hash: 64de56d92b05
4
4
  export class AuthClient {
5
5
  http;
6
6
  constructor(http) {
7
7
  this.http = http;
8
8
  }
9
+ /**
10
+ * List supported auth methods
11
+ * Returns the complete catalogue of authentication methods the platform supports,
12
+ * including each method's stable slug, user-facing name, and description.
13
+ * Use this endpoint to render method labels in sign-in UIs or org settings screens
14
+ * without hardcoding copy or maintaining your own enum list. Results reflect the
15
+ * platform's source-of-truth catalogue and are consistent across all orgs.
16
+ * This endpoint requires only a publishable key and is accessible without an active
17
+ * user session, making it suitable for pre-authentication flows such as login page
18
+ * rendering or onboarding configuration.
19
+ *
20
+ * @returns Successful response
21
+ */
22
+ async allowedAuthMethods() {
23
+ const data = await this.http.request("/api/v1/auth/allowed_auth_methods", { method: "GET" });
24
+ return data;
25
+ }
26
+ /**
27
+ * Authenticate with email and password
28
+ * Authenticates a user with an email address and password and returns a short-lived
29
+ * access token, a refresh token, and the authenticated user object. Use the refresh
30
+ * token with the `/auth/refresh` endpoint to obtain new access tokens without
31
+ * re-authenticating.
32
+ * Password login must be enabled for the app; apps that have disabled password
33
+ * authentication return HTTP 403. Requests are rate-limited per IP (10 per minute)
34
+ * and per email-IP pair (5 per minute) — exceeding either limit returns HTTP 429.
35
+ *
36
+ * @param email - Email address of the user to authenticate.
37
+ * @param password - Password for the account associated with the given email.
38
+ * @returns Access token, refresh token, and authenticated user object.
39
+ */
9
40
  async login(email, password) {
10
41
  const body = {};
11
42
  body["email"] = email;
@@ -17,6 +48,43 @@ export class AuthClient {
17
48
  accessToken: data.token,
18
49
  };
19
50
  }
51
+ /**
52
+ * Request a magic link for login
53
+ * Sends a magic link to the given email address so an existing user can sign in
54
+ * without a password. The user clicks the link in their email and is redirected to
55
+ * `redirect_uri` with a token; pass that token to `/auth/verify_link` to obtain
56
+ * session tokens.
57
+ * If no account exists for the email, the endpoint still returns success to prevent
58
+ * email enumeration — no link is sent in that case. Both `email` and `redirect_uri`
59
+ * are required. Requests are rate-limited per IP (10 per minute) and per email-IP pair
60
+ * (3 per minute) — exceeding either limit returns HTTP 429. Returns HTTP 204 on success.
61
+ *
62
+ * @param email - Email address of the account to send the magic link to.
63
+ * @param redirectUri - URL the user is redirected to after clicking the magic link. The token is appended as a query parameter.
64
+ * @returns No content
65
+ */
66
+ async requestLoginMagicLink(email, redirectUri) {
67
+ const body = {};
68
+ if (email !== undefined)
69
+ body["email"] = email;
70
+ if (redirectUri !== undefined)
71
+ body["redirect_uri"] = redirectUri;
72
+ const data = await this.http.request("/api/v1/auth/login/link", { method: "POST", body });
73
+ return data;
74
+ }
75
+ /**
76
+ * Refresh an access token
77
+ * Exchanges a valid refresh token for a new access token and a new refresh token,
78
+ * rotating the refresh token on every call. The response also includes the updated
79
+ * user object. Store the new refresh token and discard the old one.
80
+ * Refresh tokens are single-use — submitting an already-consumed token returns HTTP 401.
81
+ * Rate limiting is applied per (user, IP) pair when the token can be verified, and
82
+ * falls back to IP-only when it cannot. The limit is 30 exchanges per minute per
83
+ * bucket; exceeding it returns HTTP 429.
84
+ *
85
+ * @param refreshToken - Refresh token previously issued by a login, registration, or token-refresh response.
86
+ * @returns New access token, new refresh token, and the authenticated user object.
87
+ */
20
88
  async refresh(refreshToken) {
21
89
  const body = {};
22
90
  body["refresh_token"] = refreshToken;
@@ -27,6 +95,28 @@ export class AuthClient {
27
95
  accessToken: data.token,
28
96
  };
29
97
  }
98
+ /**
99
+ * Register a new user with email and password
100
+ * Creates a new user account and returns an access token, refresh token, and the new
101
+ * user object. Two registration paths are supported:
102
+ * - **Team registration**: supply `team_invite` with a valid team invite ID. The new
103
+ * user is added to that team immediately upon registration. Returns HTTP 404 if the
104
+ * invite is not found.
105
+ * - **Standard registration**: supply `password`. An `invite_code` may optionally be
106
+ * included for invite-gated apps; an invalid code returns HTTP 404.
107
+ * Exactly one of `team_invite` or `password` must be provided; omitting both returns
108
+ * HTTP 400. Password registration must be enabled for the app; disabled apps return
109
+ * HTTP 403. The response status is HTTP 201 on success.
110
+ *
111
+ * @param email - Email address for the new account.
112
+ * @param alias - Display alias (handle) for the new account.
113
+ * @param fullName - Full name for the new account.
114
+ * @param inviteCode - Invite code for invite-gated registration. Applied only in the standard registration path.
115
+ * @param password - Password for the new account. Required for standard (non-team-invite) registration.
116
+ * @param teamInvite - Team invite ID. When provided, the user is added to the team on registration.
117
+ * @param timezone - IANA timezone name for the new account, e.g. `"America/New_York"`.
118
+ * @returns Access token, refresh token, and the newly created user object.
119
+ */
30
120
  async register(email, alias, fullName, inviteCode, password, teamInvite, timezone) {
31
121
  const body = {};
32
122
  body["email"] = email;
@@ -49,6 +139,77 @@ export class AuthClient {
49
139
  accessToken: data.token,
50
140
  };
51
141
  }
142
+ /**
143
+ * Request a magic link for registration
144
+ * Starts a passwordless registration flow by sending a verification link to the given
145
+ * email address. The recipient clicks the link and is redirected to `redirect_uri` with
146
+ * a token; pass that token to `/auth/verify_link` to complete registration and obtain
147
+ * session tokens.
148
+ * Profile fields (`full_name`, `alias`, `timezone`) are captured now and applied when
149
+ * the link is verified. Requests are rate-limited per IP (10 per minute) and per
150
+ * email-IP pair (3 per minute) — exceeding either limit returns HTTP 429. Returns
151
+ * HTTP 204 on success.
152
+ *
153
+ * @param alias - Display alias (handle) for the new account.
154
+ * @param email - Email address to send the registration magic link to.
155
+ * @param fullName - Full name for the new account.
156
+ * @param redirectUri - URL the user is redirected to after clicking the registration link. The token is appended as a query parameter.
157
+ * @param timezone - IANA timezone name for the new account, e.g. `"America/New_York"`.
158
+ * @returns No content
159
+ */
160
+ async requestRegisterMagicLink(alias, email, fullName, redirectUri, timezone) {
161
+ const body = {};
162
+ if (alias !== undefined)
163
+ body["alias"] = alias;
164
+ if (email !== undefined)
165
+ body["email"] = email;
166
+ if (fullName !== undefined)
167
+ body["full_name"] = fullName;
168
+ if (redirectUri !== undefined)
169
+ body["redirect_uri"] = redirectUri;
170
+ if (timezone !== undefined)
171
+ body["timezone"] = timezone;
172
+ const data = await this.http.request("/api/v1/auth/register/link", { method: "POST", body });
173
+ return data;
174
+ }
175
+ /**
176
+ * Request a magic link for login or registration
177
+ * Sends a passwordless magic link to the given email address. If an account with that
178
+ * email already exists, a login link is sent. If no account exists, a registration link
179
+ * is sent and the recipient completes sign-up by clicking through. This unified endpoint
180
+ * lets you implement a single email-entry UI that handles both cases transparently.
181
+ * The `redirect_uri` is validated against the app's registered hosts; an unregistered
182
+ * URI returns HTTP 400. Both `email` and `redirect_uri` are required. Requests are
183
+ * rate-limited per IP (10 per minute) and per email-IP pair (3 per minute). Returns
184
+ * HTTP 204 on success — no body.
185
+ *
186
+ * @param email - Email address to send the magic link to.
187
+ * @param redirectUri - URL the user is redirected to after clicking the magic link. Must be registered with the app.
188
+ * @returns No content
189
+ */
190
+ async requestMagicLink(email, redirectUri) {
191
+ const body = {};
192
+ if (email !== undefined)
193
+ body["email"] = email;
194
+ if (redirectUri !== undefined)
195
+ body["redirect_uri"] = redirectUri;
196
+ const data = await this.http.request("/api/v1/auth/request/link", { method: "POST", body });
197
+ return data;
198
+ }
199
+ /**
200
+ * Exchange a one-time login token for session tokens
201
+ * Consumes a single-use login token delivered via email and returns an access token,
202
+ * refresh token, and the authenticated user object. One-time tokens are issued by the
203
+ * passwordless login flow and expire after a short window; submitting an expired or
204
+ * already-used token returns HTTP 401.
205
+ * If `timezone` is provided and the user's current timezone is still the default
206
+ * (`"America/Los_Angeles"`), the account timezone is updated in the same request.
207
+ * Requests are rate-limited to 10 per IP per minute; exceeding this returns HTTP 429.
208
+ *
209
+ * @param token - Single-use login token extracted from the magic link or email code flow.
210
+ * @param timezone - IANA timezone name to apply to the account if the account timezone is still the default, e.g. `"Europe/London"`. Omit to leave the timezone unchanged.
211
+ * @returns Access token, refresh token, and the authenticated user object.
212
+ */
52
213
  async exchangeLoginToken(token, timezone) {
53
214
  const body = {};
54
215
  body["token"] = token;
@@ -61,5 +222,30 @@ export class AuthClient {
61
222
  accessToken: data.token,
62
223
  };
63
224
  }
225
+ /**
226
+ * Verify a magic link token
227
+ * Consumes a single-use token from a magic link URL and returns an access token,
228
+ * refresh token, and the authenticated user object. This endpoint completes both the
229
+ * login flow (initiated by `/auth/request_login_link`) and the registration flow
230
+ * (initiated by `/auth/request_register_link` or `/auth/request_link`).
231
+ * Extract the token from the `token` query parameter of the magic link redirect URI
232
+ * and POST it here. Expired or already-used tokens return HTTP 401. If the app has
233
+ * disabled passwordless authentication the request returns HTTP 403. Rate-limited to
234
+ * 10 requests per IP per minute — exceeding this returns HTTP 429.
235
+ *
236
+ * @param token - Single-use magic link token extracted from the redirect URI query parameter.
237
+ * @returns Access token, refresh token, and the authenticated user object.
238
+ */
239
+ async verifyMagicLink(token) {
240
+ const body = {};
241
+ if (token !== undefined)
242
+ body["token"] = token;
243
+ const data = await this.http.request("/api/v1/auth/verify/link", { method: "POST", body });
244
+ return {
245
+ tokenExpiry: data.expires_in,
246
+ refreshToken: data.refresh_token,
247
+ accessToken: data.token,
248
+ };
249
+ }
64
250
  }
65
251
  //# sourceMappingURL=auth.js.map
package/dist/auth.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"auth.js","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"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dist/client.d.ts CHANGED
@@ -3,7 +3,10 @@ import { HttpClient } from "./runtime/http-client.js";
3
3
  import { V1 } from "./v1.js";
4
4
  import type { ActivityFeedResource } from "./v1/resources/activity_feed.js";
5
5
  import type { AgentComputerResource } from "./v1/resources/agent_computers.js";
6
+ import type { AgentEnvVarResource } from "./v1/resources/agent_env_vars.js";
7
+ import type { AgentHealthActionResource } from "./v1/resources/agent_health_actions.js";
6
8
  import type { AgentInstallationResource } from "./v1/resources/agent_installations.js";
9
+ import type { AgentRoutineRunResource } from "./v1/resources/agent_routine_runs.js";
7
10
  import type { AgentRoutineResource } from "./v1/resources/agent_routines.js";
8
11
  import type { AgentSessionResource } from "./v1/resources/agent_sessions.js";
9
12
  import type { AgentSkillResource } from "./v1/resources/agent_skills.js";
@@ -13,12 +16,22 @@ import type { AiResource } from "./v1/resources/ai.js";
13
16
  import type { ArtifactResource } from "./v1/resources/artifacts.js";
14
17
  import type { AutomationRunResource } from "./v1/resources/automation_runs.js";
15
18
  import type { AutomationResource } from "./v1/resources/automations.js";
19
+ import type { BugReportResource } from "./v1/resources/bug_reports.js";
16
20
  import type { ConfigResource } from "./v1/resources/config.js";
17
21
  import type { CustomObjectResource } from "./v1/resources/custom_objects.js";
22
+ import type { FileResource } from "./v1/resources/files.js";
18
23
  import type { InstallationSourceResource } from "./v1/resources/installation_sources.js";
19
24
  import type { InviteResource } from "./v1/resources/invites.js";
25
+ import type { KnowledgeDocumentResource } from "./v1/resources/knowledge_documents.js";
26
+ import type { KnowledgeSourceResource } from "./v1/resources/knowledge_sources.js";
20
27
  import type { KvResource } from "./v1/resources/kv.js";
28
+ import type { NotificationPreferenceResource } from "./v1/resources/notification_preferences.js";
29
+ import type { NotificationResource } from "./v1/resources/notifications.js";
21
30
  import type { OrgResource } from "./v1/resources/orgs.js";
31
+ import type { SlackChannelBindingResource } from "./v1/resources/slack_channel_bindings.js";
32
+ import type { SolutionCategoryResource } from "./v1/resources/solution_categories.js";
33
+ import type { SolutionTagResource } from "./v1/resources/solution_tags.js";
34
+ import type { SolutionResource } from "./v1/resources/solutions.js";
22
35
  import type { TeamMembershipResource } from "./v1/resources/team_memberships.js";
23
36
  import type { TeamResource } from "./v1/resources/teams.js";
24
37
  import type { ThreadMessageResource } from "./v1/resources/thread_messages.js";
@@ -38,7 +51,10 @@ export declare class PlatformClient {
38
51
  readonly v1: V1;
39
52
  readonly activity_feed: ActivityFeedResource;
40
53
  readonly agent_computers: AgentComputerResource;
54
+ readonly agent_env_vars: AgentEnvVarResource;
55
+ readonly agent_health_actions: AgentHealthActionResource;
41
56
  readonly agent_installations: AgentInstallationResource;
57
+ readonly agent_routine_runs: AgentRoutineRunResource;
42
58
  readonly agent_routines: AgentRoutineResource;
43
59
  readonly agent_sessions: AgentSessionResource;
44
60
  readonly agent_skills: AgentSkillResource;
@@ -47,12 +63,22 @@ export declare class PlatformClient {
47
63
  readonly artifacts: ArtifactResource;
48
64
  readonly automation_runs: AutomationRunResource;
49
65
  readonly automations: AutomationResource;
66
+ readonly bug_reports: BugReportResource;
50
67
  readonly config: ConfigResource;
51
68
  readonly custom_objects: CustomObjectResource;
69
+ readonly files: FileResource;
52
70
  readonly installation_sources: InstallationSourceResource;
53
71
  readonly invites: InviteResource;
72
+ readonly knowledge_documents: KnowledgeDocumentResource;
73
+ readonly knowledge_sources: KnowledgeSourceResource;
54
74
  readonly kv: KvResource;
75
+ readonly notification_preferences: NotificationPreferenceResource;
76
+ readonly notifications: NotificationResource;
55
77
  readonly orgs: OrgResource;
78
+ readonly slack_channel_bindings: SlackChannelBindingResource;
79
+ readonly solution_categories: SolutionCategoryResource;
80
+ readonly solution_tags: SolutionTagResource;
81
+ readonly solutions: SolutionResource;
56
82
  readonly team_memberships: TeamMembershipResource;
57
83
  readonly teams: TeamResource;
58
84
  readonly thread_messages: ThreadMessageResource;
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UA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M,GAAG,OAAO,CAAC,cAAc,CAAC;CA0BzH"}
package/dist/client.js CHANGED
@@ -1,6 +1,6 @@
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: c37b337e2af4
3
+ // Content hash: d7c9e66d5b12
4
4
  import { AuthClient } from "./auth.js";
5
5
  import { HttpClient } from "./runtime/http-client.js";
6
6
  import { V1 } from "./v1.js";
@@ -10,7 +10,10 @@ export class PlatformClient {
10
10
  v1;
11
11
  activity_feed;
12
12
  agent_computers;
13
+ agent_env_vars;
14
+ agent_health_actions;
13
15
  agent_installations;
16
+ agent_routine_runs;
14
17
  agent_routines;
15
18
  agent_sessions;
16
19
  agent_skills;
@@ -19,12 +22,22 @@ export class PlatformClient {
19
22
  artifacts;
20
23
  automation_runs;
21
24
  automations;
25
+ bug_reports;
22
26
  config;
23
27
  custom_objects;
28
+ files;
24
29
  installation_sources;
25
30
  invites;
31
+ knowledge_documents;
32
+ knowledge_sources;
26
33
  kv;
34
+ notification_preferences;
35
+ notifications;
27
36
  orgs;
37
+ slack_channel_bindings;
38
+ solution_categories;
39
+ solution_tags;
40
+ solutions;
28
41
  team_memberships;
29
42
  teams;
30
43
  thread_messages;
@@ -45,7 +58,10 @@ export class PlatformClient {
45
58
  this.v1 = new V1(this.http);
46
59
  this.activity_feed = this.v1.activity_feed;
47
60
  this.agent_computers = this.v1.agent_computers;
61
+ this.agent_env_vars = this.v1.agent_env_vars;
62
+ this.agent_health_actions = this.v1.agent_health_actions;
48
63
  this.agent_installations = this.v1.agent_installations;
64
+ this.agent_routine_runs = this.v1.agent_routine_runs;
49
65
  this.agent_routines = this.v1.agent_routines;
50
66
  this.agent_sessions = this.v1.agent_sessions;
51
67
  this.agent_skills = this.v1.agent_skills;
@@ -54,12 +70,22 @@ export class PlatformClient {
54
70
  this.artifacts = this.v1.artifacts;
55
71
  this.automation_runs = this.v1.automation_runs;
56
72
  this.automations = this.v1.automations;
73
+ this.bug_reports = this.v1.bug_reports;
57
74
  this.config = this.v1.config;
58
75
  this.custom_objects = this.v1.custom_objects;
76
+ this.files = this.v1.files;
59
77
  this.installation_sources = this.v1.installation_sources;
60
78
  this.invites = this.v1.invites;
79
+ this.knowledge_documents = this.v1.knowledge_documents;
80
+ this.knowledge_sources = this.v1.knowledge_sources;
61
81
  this.kv = this.v1.kv;
82
+ this.notification_preferences = this.v1.notification_preferences;
83
+ this.notifications = this.v1.notifications;
62
84
  this.orgs = this.v1.orgs;
85
+ this.slack_channel_bindings = this.v1.slack_channel_bindings;
86
+ this.solution_categories = this.v1.solution_categories;
87
+ this.solution_tags = this.v1.solution_tags;
88
+ this.solutions = this.v1.solutions;
63
89
  this.team_memberships = this.v1.team_memberships;
64
90
  this.teams = this.v1.teams;
65
91
  this.thread_messages = this.v1.thread_messages;