@archastro/sdk 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/README.md +86 -0
  2. package/dist/auth.d.ts +143 -0
  3. package/dist/auth.d.ts.map +1 -1
  4. package/dist/auth.js +187 -1
  5. package/dist/auth.js.map +1 -1
  6. package/dist/client.d.ts +26 -0
  7. package/dist/client.d.ts.map +1 -1
  8. package/dist/client.js +27 -1
  9. package/dist/client.js.map +1 -1
  10. package/dist/index.d.ts +1 -1
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +2 -2
  13. package/dist/index.js.map +1 -1
  14. package/dist/types/ai.d.ts +150 -12
  15. package/dist/types/ai.d.ts.map +1 -1
  16. package/dist/types/ai.js +71 -41
  17. package/dist/types/ai.js.map +1 -1
  18. package/dist/types/artifacts.d.ts +81 -24
  19. package/dist/types/artifacts.d.ts.map +1 -1
  20. package/dist/types/artifacts.js +39 -21
  21. package/dist/types/artifacts.js.map +1 -1
  22. package/dist/types/automations.d.ts +41 -9
  23. package/dist/types/automations.d.ts.map +1 -1
  24. package/dist/types/automations.js +25 -17
  25. package/dist/types/automations.js.map +1 -1
  26. package/dist/types/chat.d.ts +21418 -0
  27. package/dist/types/chat.d.ts.map +1 -0
  28. package/dist/types/chat.js +70 -0
  29. package/dist/types/chat.js.map +1 -0
  30. package/dist/types/common.d.ts +16970 -2136
  31. package/dist/types/common.d.ts.map +1 -1
  32. package/dist/types/common.js +1695 -332
  33. package/dist/types/common.js.map +1 -1
  34. package/dist/types/config.d.ts +239 -31
  35. package/dist/types/config.d.ts.map +1 -1
  36. package/dist/types/config.js +86 -34
  37. package/dist/types/config.js.map +1 -1
  38. package/dist/types/image.d.ts +27 -4
  39. package/dist/types/image.d.ts.map +1 -1
  40. package/dist/types/image.js +17 -10
  41. package/dist/types/image.js.map +1 -1
  42. package/dist/types/index.d.ts +2 -1
  43. package/dist/types/index.d.ts.map +1 -1
  44. package/dist/types/index.js +3 -2
  45. package/dist/types/index.js.map +1 -1
  46. package/dist/types/invites.d.ts +20 -11
  47. package/dist/types/invites.d.ts.map +1 -1
  48. package/dist/types/invites.js +9 -12
  49. package/dist/types/invites.js.map +1 -1
  50. package/dist/types/notifications.d.ts +163 -0
  51. package/dist/types/notifications.d.ts.map +1 -0
  52. package/dist/types/notifications.js +44 -0
  53. package/dist/types/notifications.js.map +1 -0
  54. package/dist/types/teams.d.ts +1628 -231
  55. package/dist/types/teams.d.ts.map +1 -1
  56. package/dist/types/teams.js +76 -45
  57. package/dist/types/teams.js.map +1 -1
  58. package/dist/types/threads.d.ts +997 -243
  59. package/dist/types/threads.d.ts.map +1 -1
  60. package/dist/types/threads.js +84 -51
  61. package/dist/types/threads.js.map +1 -1
  62. package/dist/types/users.d.ts +98 -18
  63. package/dist/types/users.d.ts.map +1 -1
  64. package/dist/types/users.js +43 -18
  65. package/dist/types/users.js.map +1 -1
  66. package/dist/v1/resources/activity_feed.d.ts +89 -0
  67. package/dist/v1/resources/activity_feed.d.ts.map +1 -1
  68. package/dist/v1/resources/activity_feed.js +56 -2
  69. package/dist/v1/resources/activity_feed.js.map +1 -1
  70. package/dist/v1/resources/agent_computers.d.ts +48 -2
  71. package/dist/v1/resources/agent_computers.d.ts.map +1 -1
  72. package/dist/v1/resources/agent_computers.js +48 -1
  73. package/dist/v1/resources/agent_computers.js.map +1 -1
  74. package/dist/v1/resources/agent_env_vars.d.ts +50 -0
  75. package/dist/v1/resources/agent_env_vars.d.ts.map +1 -0
  76. package/dist/v1/resources/agent_env_vars.js +56 -0
  77. package/dist/v1/resources/agent_env_vars.js.map +1 -0
  78. package/dist/v1/resources/agent_health_actions.d.ts +43 -0
  79. package/dist/v1/resources/agent_health_actions.d.ts.map +1 -0
  80. package/dist/v1/resources/agent_health_actions.js +50 -0
  81. package/dist/v1/resources/agent_health_actions.js.map +1 -0
  82. package/dist/v1/resources/agent_installations.d.ts +100 -0
  83. package/dist/v1/resources/agent_installations.d.ts.map +1 -1
  84. package/dist/v1/resources/agent_installations.js +106 -2
  85. package/dist/v1/resources/agent_installations.js.map +1 -1
  86. package/dist/v1/resources/agent_routine_runs.d.ts +33 -0
  87. package/dist/v1/resources/agent_routine_runs.d.ts.map +1 -0
  88. package/dist/v1/resources/agent_routine_runs.js +48 -0
  89. package/dist/v1/resources/agent_routine_runs.js.map +1 -0
  90. package/dist/v1/resources/agent_routines.d.ts +148 -2
  91. package/dist/v1/resources/agent_routines.d.ts.map +1 -1
  92. package/dist/v1/resources/agent_routines.js +168 -3
  93. package/dist/v1/resources/agent_routines.js.map +1 -1
  94. package/dist/v1/resources/agent_sessions.d.ts +118 -1
  95. package/dist/v1/resources/agent_sessions.d.ts.map +1 -1
  96. package/dist/v1/resources/agent_sessions.js +134 -2
  97. package/dist/v1/resources/agent_sessions.js.map +1 -1
  98. package/dist/v1/resources/agent_skills.d.ts +83 -1
  99. package/dist/v1/resources/agent_skills.d.ts.map +1 -1
  100. package/dist/v1/resources/agent_skills.js +87 -2
  101. package/dist/v1/resources/agent_skills.js.map +1 -1
  102. package/dist/v1/resources/agent_tools.d.ts +109 -2
  103. package/dist/v1/resources/agent_tools.d.ts.map +1 -1
  104. package/dist/v1/resources/agent_tools.js +114 -2
  105. package/dist/v1/resources/agent_tools.js.map +1 -1
  106. package/dist/v1/resources/agents.d.ts +517 -9
  107. package/dist/v1/resources/agents.d.ts.map +1 -1
  108. package/dist/v1/resources/agents.js +515 -12
  109. package/dist/v1/resources/agents.js.map +1 -1
  110. package/dist/v1/resources/ai.d.ts +93 -0
  111. package/dist/v1/resources/ai.d.ts.map +1 -1
  112. package/dist/v1/resources/ai.js +89 -1
  113. package/dist/v1/resources/ai.js.map +1 -1
  114. package/dist/v1/resources/artifacts.d.ts +73 -0
  115. package/dist/v1/resources/artifacts.d.ts.map +1 -1
  116. package/dist/v1/resources/artifacts.js +74 -2
  117. package/dist/v1/resources/artifacts.js.map +1 -1
  118. package/dist/v1/resources/automation_runs.d.ts +8 -4
  119. package/dist/v1/resources/automation_runs.d.ts.map +1 -1
  120. package/dist/v1/resources/automation_runs.js +9 -5
  121. package/dist/v1/resources/automation_runs.js.map +1 -1
  122. package/dist/v1/resources/automations.d.ts +20 -0
  123. package/dist/v1/resources/automations.d.ts.map +1 -1
  124. package/dist/v1/resources/automations.js +21 -1
  125. package/dist/v1/resources/automations.js.map +1 -1
  126. package/dist/v1/resources/bug_reports.d.ts +29 -0
  127. package/dist/v1/resources/bug_reports.d.ts.map +1 -0
  128. package/dist/v1/resources/bug_reports.js +29 -0
  129. package/dist/v1/resources/bug_reports.js.map +1 -0
  130. package/dist/v1/resources/config.d.ts +429 -4
  131. package/dist/v1/resources/config.d.ts.map +1 -1
  132. package/dist/v1/resources/config.js +493 -9
  133. package/dist/v1/resources/config.js.map +1 -1
  134. package/dist/v1/resources/custom_objects.d.ts +117 -2
  135. package/dist/v1/resources/custom_objects.d.ts.map +1 -1
  136. package/dist/v1/resources/custom_objects.js +132 -3
  137. package/dist/v1/resources/custom_objects.js.map +1 -1
  138. package/dist/v1/resources/files.d.ts +62 -0
  139. package/dist/v1/resources/files.d.ts.map +1 -0
  140. package/dist/v1/resources/files.js +58 -0
  141. package/dist/v1/resources/files.js.map +1 -0
  142. package/dist/v1/resources/index.d.ts +13 -0
  143. package/dist/v1/resources/index.d.ts.map +1 -1
  144. package/dist/v1/resources/index.js +14 -1
  145. package/dist/v1/resources/index.js.map +1 -1
  146. package/dist/v1/resources/installation_sources.d.ts +12 -0
  147. package/dist/v1/resources/installation_sources.d.ts.map +1 -1
  148. package/dist/v1/resources/installation_sources.js +13 -1
  149. package/dist/v1/resources/installation_sources.js.map +1 -1
  150. package/dist/v1/resources/invites.d.ts +15 -0
  151. package/dist/v1/resources/invites.d.ts.map +1 -1
  152. package/dist/v1/resources/invites.js +16 -1
  153. package/dist/v1/resources/invites.js.map +1 -1
  154. package/dist/v1/resources/knowledge_documents.d.ts +104 -0
  155. package/dist/v1/resources/knowledge_documents.d.ts.map +1 -0
  156. package/dist/v1/resources/knowledge_documents.js +112 -0
  157. package/dist/v1/resources/knowledge_documents.js.map +1 -0
  158. package/dist/v1/resources/knowledge_sources.d.ts +190 -0
  159. package/dist/v1/resources/knowledge_sources.d.ts.map +1 -0
  160. package/dist/v1/resources/knowledge_sources.js +176 -0
  161. package/dist/v1/resources/knowledge_sources.js.map +1 -0
  162. package/dist/v1/resources/kv.d.ts +73 -0
  163. package/dist/v1/resources/kv.d.ts.map +1 -1
  164. package/dist/v1/resources/kv.js +96 -3
  165. package/dist/v1/resources/kv.js.map +1 -1
  166. package/dist/v1/resources/notification_preferences.d.ts +61 -0
  167. package/dist/v1/resources/notification_preferences.d.ts.map +1 -0
  168. package/dist/v1/resources/notification_preferences.js +65 -0
  169. package/dist/v1/resources/notification_preferences.js.map +1 -0
  170. package/dist/v1/resources/notifications.d.ts +133 -0
  171. package/dist/v1/resources/notifications.d.ts.map +1 -0
  172. package/dist/v1/resources/notifications.js +136 -0
  173. package/dist/v1/resources/notifications.js.map +1 -0
  174. package/dist/v1/resources/orgs.d.ts +18 -0
  175. package/dist/v1/resources/orgs.d.ts.map +1 -1
  176. package/dist/v1/resources/orgs.js +30 -2
  177. package/dist/v1/resources/orgs.js.map +1 -1
  178. package/dist/v1/resources/slack_channel_bindings.d.ts +101 -0
  179. package/dist/v1/resources/slack_channel_bindings.d.ts.map +1 -0
  180. package/dist/v1/resources/slack_channel_bindings.js +114 -0
  181. package/dist/v1/resources/slack_channel_bindings.js.map +1 -0
  182. package/dist/v1/resources/solution_categories.d.ts +36 -0
  183. package/dist/v1/resources/solution_categories.d.ts.map +1 -0
  184. package/dist/v1/resources/solution_categories.js +55 -0
  185. package/dist/v1/resources/solution_categories.js.map +1 -0
  186. package/dist/v1/resources/solution_tags.d.ts +37 -0
  187. package/dist/v1/resources/solution_tags.d.ts.map +1 -0
  188. package/dist/v1/resources/solution_tags.js +54 -0
  189. package/dist/v1/resources/solution_tags.js.map +1 -0
  190. package/dist/v1/resources/solutions.d.ts +309 -0
  191. package/dist/v1/resources/solutions.d.ts.map +1 -0
  192. package/dist/v1/resources/solutions.js +214 -0
  193. package/dist/v1/resources/solutions.js.map +1 -0
  194. package/dist/v1/resources/team_memberships.d.ts +31 -0
  195. package/dist/v1/resources/team_memberships.d.ts.map +1 -1
  196. package/dist/v1/resources/team_memberships.js +49 -2
  197. package/dist/v1/resources/team_memberships.js.map +1 -1
  198. package/dist/v1/resources/teams.d.ts +458 -49
  199. package/dist/v1/resources/teams.d.ts.map +1 -1
  200. package/dist/v1/resources/teams.js +319 -27
  201. package/dist/v1/resources/teams.js.map +1 -1
  202. package/dist/v1/resources/thread_messages.d.ts +70 -0
  203. package/dist/v1/resources/thread_messages.d.ts.map +1 -1
  204. package/dist/v1/resources/thread_messages.js +85 -2
  205. package/dist/v1/resources/thread_messages.js.map +1 -1
  206. package/dist/v1/resources/threads.d.ts +201 -0
  207. package/dist/v1/resources/threads.d.ts.map +1 -1
  208. package/dist/v1/resources/threads.js +220 -4
  209. package/dist/v1/resources/threads.js.map +1 -1
  210. package/dist/v1/resources/users.d.ts +213 -39
  211. package/dist/v1/resources/users.d.ts.map +1 -1
  212. package/dist/v1/resources/users.js +121 -16
  213. package/dist/v1/resources/users.js.map +1 -1
  214. package/dist/v1.d.ts +26 -0
  215. package/dist/v1.d.ts.map +1 -1
  216. package/dist/v1.js +40 -1
  217. package/dist/v1.js.map +1 -1
  218. package/package.json +3 -1
  219. package/dist/types/agents.d.ts +0 -2084
  220. package/dist/types/agents.d.ts.map +0 -1
  221. package/dist/types/agents.js +0 -203
  222. package/dist/types/agents.js.map +0 -1
@@ -2,11 +2,35 @@ import { HttpClient } from "../../runtime/http-client.js";
2
2
  export declare class ActivityFeedResource {
3
3
  private http;
4
4
  constructor(http: HttpClient);
5
+ /**
6
+ * List activity feed entries
7
+ * Returns a cursor-paginated list of activity feed entries visible to the
8
+ * authenticated user. Entries are ordered from newest to oldest by default.
9
+ * Use `before_cursor` to page backward and `after_cursor` to page forward.
10
+ * Results are scoped to the caller's app. All filter params are optional and
11
+ * can be combined. Passing multiple values in an array filter returns entries
12
+ * matching any of the supplied values (OR semantics).
13
+ * Invalid `kind` or `level` values return a 400 error listing the accepted
14
+ * values rather than being silently ignored.
15
+ * @param params - Query parameters.
16
+ * @param params.kind - One or more entry kinds to include. Accepted values: routine_run, automation_run, thread_story, agent_quality_verdict, generic. Omit to return all kinds.
17
+ * @param params.level - One or more severity levels to include. Accepted values: debug, info, warn, error, audit. Omit to return all levels.
18
+ * @param params.agent - Restrict results to entries associated with these agent IDs (`agt_...`). Accepts multiple values.
19
+ * @param params.thread - Restrict results to entries associated with these thread IDs (`thr_...`). Accepts multiple values.
20
+ * @param params.team - Restrict results to entries associated with these team IDs (`tem_...`). Accepts multiple values.
21
+ * @param params.org - Restrict results to entries associated with these organization IDs (`org_...`). Accepts multiple values.
22
+ * @param params.correlationId - Restrict results to entries that share this correlation group identifier. Useful for tracing a chain of related events.
23
+ * @param params.limit - Maximum number of entries to return per page. Defaults to 50; maximum is 100.
24
+ * @param params.beforeCursor - Opaque cursor from a previous response's `before_cursor` field. Returns entries older than the cursor's position.
25
+ * @param params.afterCursor - Opaque cursor from a previous response's `after_cursor` field. Returns entries newer than the cursor's position.
26
+ * @returns Successful response
27
+ */
5
28
  list(params?: {
6
29
  kind?: string[];
7
30
  level?: string[];
8
31
  agent?: string[];
9
32
  thread?: string[];
33
+ team?: string[];
10
34
  org?: string[];
11
35
  correlationId?: string;
12
36
  limit?: number;
@@ -39,12 +63,71 @@ export declare class ActivityFeedResource {
39
63
  email?: string | undefined;
40
64
  id: string;
41
65
  identity?: string | undefined;
66
+ last_applied_template_config?: string | undefined;
42
67
  lookup_key?: string | undefined;
43
68
  metadata?: Record<string, unknown> | undefined;
44
69
  name?: string | undefined;
45
70
  org?: string | undefined;
71
+ org_name?: string | undefined;
72
+ originator?: string | undefined;
46
73
  phone_number?: string | undefined;
47
74
  sandbox?: string | undefined;
75
+ source_solution?: {
76
+ solution: {
77
+ category_keys?: string[] | undefined;
78
+ created_at?: string | undefined;
79
+ description?: string | undefined;
80
+ id: string;
81
+ kind: string;
82
+ latest_solution?: string | undefined;
83
+ latest_version?: string | undefined;
84
+ lookup_key?: string | undefined;
85
+ metadata?: Record<string, unknown> | undefined;
86
+ name?: string | undefined;
87
+ org?: string | undefined;
88
+ org_logo?: {
89
+ file?: string | undefined;
90
+ height?: number | undefined;
91
+ media?: string | undefined;
92
+ mime_type?: string | undefined;
93
+ refresh_url?: string | undefined;
94
+ url?: string | undefined;
95
+ width?: number | undefined;
96
+ } | undefined;
97
+ org_name?: string | undefined;
98
+ org_slug?: string | undefined;
99
+ owners: string[];
100
+ readme_url?: string | undefined;
101
+ solution_id?: string | undefined;
102
+ solution_version?: string | undefined;
103
+ tag_keys?: string[] | undefined;
104
+ template_kind?: string | undefined;
105
+ templates: {
106
+ description?: string | undefined;
107
+ display_name?: string | undefined;
108
+ id?: string | undefined;
109
+ kind: string;
110
+ lookup_key?: string | undefined;
111
+ name?: string | undefined;
112
+ readme_url?: string | undefined;
113
+ virtual_path?: string | undefined;
114
+ }[];
115
+ updated_at?: string | undefined;
116
+ upgrade_available: boolean;
117
+ virtual_path?: string | undefined;
118
+ };
119
+ template: {
120
+ created_at?: string | undefined;
121
+ description?: string | undefined;
122
+ display_name?: string | undefined;
123
+ id: string;
124
+ kind: string;
125
+ lookup_key?: string | undefined;
126
+ name?: string | undefined;
127
+ updated_at?: string | undefined;
128
+ virtual_path?: string | undefined;
129
+ };
130
+ } | undefined;
48
131
  team?: string | undefined;
49
132
  updated_at?: string | undefined;
50
133
  user?: string | undefined;
@@ -69,12 +152,18 @@ export declare class ActivityFeedResource {
69
152
  updated_at?: string | undefined;
70
153
  user?: string | {
71
154
  alias?: string | undefined;
155
+ app?: string | undefined;
156
+ app_name?: string | undefined;
72
157
  email?: string | undefined;
73
158
  id: string;
159
+ is_system_user?: boolean | undefined;
74
160
  metadata?: Record<string, unknown> | undefined;
75
161
  name?: string | undefined;
76
162
  org?: string | undefined;
163
+ org_name?: string | undefined;
164
+ org_role?: string | undefined;
77
165
  sandbox?: string | undefined;
166
+ sandbox_name?: string | undefined;
78
167
  } | undefined;
79
168
  }[];
80
169
  has_more: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"activity_feed.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/activity_feed.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,qBAAa,oBAAoB;IACnB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAE9B,IAAI,CAAC,MAAM,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,aAAa,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,IAAI,EAAE;YAAE,KAAK,CAAC,EAAE,MAAM,GAAG;gBAAE,GAAG,CAAC,EAAE;oBAAE,GAAG,CAAC,EAAE;wBAAE,OAAO,EAAE,MAAM,EAAE,CAAC;wBAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;wBAAC,cAAc,EAAE,MAAM,CAAA;qBAAE,EAAE,GAAG,SAAS,CAAC;oBAAC,MAAM,CAAC,EAAE;wBAAE,OAAO,EAAE,MAAM,EAAE,CAAC;wBAAC,SAAS,CA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AS,CAAC;gBAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;gBAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;gBAAC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;aAAE,GAAG,SAAS,CAAA;SAAE,EAAE,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC;CAmC9oH"}
@@ -1,13 +1,67 @@
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: f6e3cda2dfca
3
+ // Content hash: 4e02dd61f0e4
4
4
  export class ActivityFeedResource {
5
5
  http;
6
6
  constructor(http) {
7
7
  this.http = http;
8
8
  }
9
+ /**
10
+ * List activity feed entries
11
+ * Returns a cursor-paginated list of activity feed entries visible to the
12
+ * authenticated user. Entries are ordered from newest to oldest by default.
13
+ * Use `before_cursor` to page backward and `after_cursor` to page forward.
14
+ * Results are scoped to the caller's app. All filter params are optional and
15
+ * can be combined. Passing multiple values in an array filter returns entries
16
+ * matching any of the supplied values (OR semantics).
17
+ * Invalid `kind` or `level` values return a 400 error listing the accepted
18
+ * values rather than being silently ignored.
19
+ * @param params - Query parameters.
20
+ * @param params.kind - One or more entry kinds to include. Accepted values: routine_run, automation_run, thread_story, agent_quality_verdict, generic. Omit to return all kinds.
21
+ * @param params.level - One or more severity levels to include. Accepted values: debug, info, warn, error, audit. Omit to return all levels.
22
+ * @param params.agent - Restrict results to entries associated with these agent IDs (`agt_...`). Accepts multiple values.
23
+ * @param params.thread - Restrict results to entries associated with these thread IDs (`thr_...`). Accepts multiple values.
24
+ * @param params.team - Restrict results to entries associated with these team IDs (`tem_...`). Accepts multiple values.
25
+ * @param params.org - Restrict results to entries associated with these organization IDs (`org_...`). Accepts multiple values.
26
+ * @param params.correlationId - Restrict results to entries that share this correlation group identifier. Useful for tracing a chain of related events.
27
+ * @param params.limit - Maximum number of entries to return per page. Defaults to 50; maximum is 100.
28
+ * @param params.beforeCursor - Opaque cursor from a previous response's `before_cursor` field. Returns entries older than the cursor's position.
29
+ * @param params.afterCursor - Opaque cursor from a previous response's `after_cursor` field. Returns entries newer than the cursor's position.
30
+ * @returns Successful response
31
+ */
9
32
  async list(params) {
10
- return this.http.request(`/api/v1/activity_feed`, { query: params });
33
+ const query = {};
34
+ if (params?.kind !== undefined) {
35
+ query["kind"] = params?.kind;
36
+ }
37
+ if (params?.level !== undefined) {
38
+ query["level"] = params?.level;
39
+ }
40
+ if (params?.agent !== undefined) {
41
+ query["agent"] = params?.agent;
42
+ }
43
+ if (params?.thread !== undefined) {
44
+ query["thread"] = params?.thread;
45
+ }
46
+ if (params?.team !== undefined) {
47
+ query["team"] = params?.team;
48
+ }
49
+ if (params?.org !== undefined) {
50
+ query["org"] = params?.org;
51
+ }
52
+ if (params?.correlationId !== undefined) {
53
+ query["correlation_id"] = params?.correlationId;
54
+ }
55
+ if (params?.limit !== undefined) {
56
+ query["limit"] = params?.limit;
57
+ }
58
+ if (params?.beforeCursor !== undefined) {
59
+ query["before_cursor"] = params?.beforeCursor;
60
+ }
61
+ if (params?.afterCursor !== undefined) {
62
+ query["after_cursor"] = params?.afterCursor;
63
+ }
64
+ return this.http.request(`/api/v1/activity_feed`, { query });
11
65
  }
12
66
  }
13
67
  //# sourceMappingURL=activity_feed.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"activity_feed.js","sourceRoot":"","sources":["../../../src/v1/resources/activity_feed.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAI7B,MAAM,OAAO,oBAAoB;IACX;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,KAAK,CAAC,IAAI,CAAC,MAAwL;QACjM,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,MAAkG,EAAE,CAAC,CAAC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AClD,CAAC;QACD,IAAI,MAAM,EAAE,KAAK,KAAK,SAAS,EAAE,CAAC;YAChC,KAAK,CAAC,OAAO,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC;QACjC,CAAC;QACD,IAAI,MAAM,EAAE,YAAY,KAAK,SAAS,EAAE,CAAC;YACvC,KAAK,CAAC,eAAe,CAAC,GAAG,MAAM,EAAE,YAAY,CAAC;QAChD,CAAC;QACD,IAAI,MAAM,EAAE,WAAW,KAAK,SAAS,EAAE,CAAC;YACtC,KAAK,CAAC,cAAc,CAAC,GAAG,MAAM,EAAE,WAAW,CAAC;QAC9C,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAC/D,CAAC;CACF"}
@@ -1,15 +1,61 @@
1
1
  import { HttpClient } from "../../runtime/http-client.js";
2
- import type { AgentComputer } from "../../types/agents.js";
3
- import type { ComputerExecResult } from "../../types/common.js";
2
+ import type { AgentComputer, ComputerExecResult } from "../../types/common.js";
4
3
  export declare class AgentComputerResource {
5
4
  private http;
6
5
  constructor(http: HttpClient);
6
+ /**
7
+ * Delete a computer
8
+ * Permanently deletes the specified computer and releases all associated
9
+ * infrastructure resources. This action is irreversible — once deleted,
10
+ * the computer cannot be recovered and its ID becomes invalid.
11
+ * Requires an app-scoped API key. The computer must belong to the same app.
12
+ * Returns `204 No Content` on success.
13
+ * @param computer - Computer ID (`cmp_...`). The computer to delete.
14
+ * @returns Empty response body. Returns HTTP 204 on success.
15
+ */
7
16
  delete(computer: string): Promise<void>;
17
+ /**
18
+ * Retrieve a computer
19
+ * Returns the computer identified by `computer`. The computer must belong to the
20
+ * app associated with the API key.
21
+ * Use this endpoint to inspect a computer's current `status`, `region`,
22
+ * `config`, and `metadata` after provisioning or to verify its state before
23
+ * issuing commands. For a live status update, use the refresh endpoint instead.
24
+ * @param computer - Computer ID (`cmp_...`). The computer to retrieve.
25
+ * @returns The requested computer.
26
+ */
8
27
  get(computer: string): Promise<AgentComputer>;
28
+ /**
29
+ * Execute a command on a computer
30
+ * Runs a shell command on the specified computer and returns its combined
31
+ * output and exit code. The call blocks until the command completes; there
32
+ * is no streaming or timeout override — plan accordingly for long-running
33
+ * commands.
34
+ * Requires an app-scoped API key. The computer must be in the `running`
35
+ * state. Commands run as the default unprivileged user on the computer.
36
+ * A non-zero `exit_code` in the response does not produce an HTTP error;
37
+ * inspect `exit_code` and `output` to determine success.
38
+ * @param computer - Computer ID (`cmp_...`). The computer on which to run the command.
39
+ * @param input - Request body.
40
+ * @param input.command - Shell command to execute, e.g. `"ls -la /home"`.
41
+ * @param input.dir - Absolute path to use as the working directory when executing the command. Defaults to the computer's home directory when omitted.
42
+ * @returns The output and exit code produced by the command.
43
+ */
9
44
  exec(computer: string, input: {
10
45
  command: string;
11
46
  dir?: string | undefined;
12
47
  }): Promise<ComputerExecResult>;
48
+ /**
49
+ * Refresh a computer's status
50
+ * Fetches the latest status for the specified computer from the upstream
51
+ * provisioning provider and updates the platform record accordingly. Use this
52
+ * endpoint to reconcile a computer whose `status` appears stale or stuck in
53
+ * a transitional state such as `provisioning`.
54
+ * Requires an app-scoped API key. Returns 422 if the computer has not been
55
+ * fully provisioned yet. The updated computer object is returned on success.
56
+ * @param computer - Computer ID (`cmp_...`). The computer whose status should be refreshed.
57
+ * @returns The computer record with its status updated from the provisioning provider.
58
+ */
13
59
  refresh(computer: string): Promise<AgentComputer>;
14
60
  }
15
61
  //# sourceMappingURL=agent_computers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent_computers.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/agent_computers.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,qBAAa,qBAA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) 2026 ArchAstro Inc. All Rights Reserved.
2
2
  // This file is auto-generated by @archastro/sdk-generator. Do not edit.
3
- // Content hash: 135cea30c0a0
3
+ // Content hash: 51a0b80bbc37
4
4
  export class AgentComputerResource {
5
5
  http;
6
6
  constructor(http) {
7
7
  this.http = http;
8
8
  }
9
+ /**
10
+ * Delete a computer
11
+ * Permanently deletes the specified computer and releases all associated
12
+ * infrastructure resources. This action is irreversible — once deleted,
13
+ * the computer cannot be recovered and its ID becomes invalid.
14
+ * Requires an app-scoped API key. The computer must belong to the same app.
15
+ * Returns `204 No Content` on success.
16
+ * @param computer - Computer ID (`cmp_...`). The computer to delete.
17
+ * @returns Empty response body. Returns HTTP 204 on success.
18
+ */
9
19
  async delete(computer) {
10
20
  await this.http.request(`/api/v1/agent_computers/${computer}`, { method: "DELETE" });
11
21
  }
22
+ /**
23
+ * Retrieve a computer
24
+ * Returns the computer identified by `computer`. The computer must belong to the
25
+ * app associated with the API key.
26
+ * Use this endpoint to inspect a computer's current `status`, `region`,
27
+ * `config`, and `metadata` after provisioning or to verify its state before
28
+ * issuing commands. For a live status update, use the refresh endpoint instead.
29
+ * @param computer - Computer ID (`cmp_...`). The computer to retrieve.
30
+ * @returns The requested computer.
31
+ */
12
32
  async get(computer) {
13
33
  return this.http.request(`/api/v1/agent_computers/${computer}`);
14
34
  }
35
+ /**
36
+ * Execute a command on a computer
37
+ * Runs a shell command on the specified computer and returns its combined
38
+ * output and exit code. The call blocks until the command completes; there
39
+ * is no streaming or timeout override — plan accordingly for long-running
40
+ * commands.
41
+ * Requires an app-scoped API key. The computer must be in the `running`
42
+ * state. Commands run as the default unprivileged user on the computer.
43
+ * A non-zero `exit_code` in the response does not produce an HTTP error;
44
+ * inspect `exit_code` and `output` to determine success.
45
+ * @param computer - Computer ID (`cmp_...`). The computer on which to run the command.
46
+ * @param input - Request body.
47
+ * @param input.command - Shell command to execute, e.g. `"ls -la /home"`.
48
+ * @param input.dir - Absolute path to use as the working directory when executing the command. Defaults to the computer's home directory when omitted.
49
+ * @returns The output and exit code produced by the command.
50
+ */
15
51
  async exec(computer, input) {
16
52
  return this.http.request(`/api/v1/agent_computers/${computer}/exec`, { method: "POST", body: input });
17
53
  }
54
+ /**
55
+ * Refresh a computer's status
56
+ * Fetches the latest status for the specified computer from the upstream
57
+ * provisioning provider and updates the platform record accordingly. Use this
58
+ * endpoint to reconcile a computer whose `status` appears stale or stuck in
59
+ * a transitional state such as `provisioning`.
60
+ * Requires an app-scoped API key. Returns 422 if the computer has not been
61
+ * fully provisioned yet. The updated computer object is returned on success.
62
+ * @param computer - Computer ID (`cmp_...`). The computer whose status should be refreshed.
63
+ * @returns The computer record with its status updated from the provisioning provider.
64
+ */
18
65
  async refresh(computer) {
19
66
  return this.http.request(`/api/v1/agent_computers/${computer}/refresh`, { method: "POST" });
20
67
  }
@@ -1 +1 @@
1
- {"version":3,"file":"agent_computers.js","sourceRoot":"","sources":["../../../src/v1/resources/agent_computers.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAM7B,MAAM,OAAO,qBAAqB;IACZ;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,KAAK,CAAC,MAAM,CAAC,QAAgB;QAC3B,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,2BAA2B,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;IACvF,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,QAAgB;QACxB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,2BAA2B,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,QAAgB,EAAE,KAAoD;QAC/E,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,2BAA2B,QAAQ,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACxG,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,QAAgB;QAC5B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,2BAA2B,QAAQ,UAAU,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF"}
1
+ {"version":3,"file":"agent_computers.js","sourceRoot":"","sources":["../../../src/v1/resources/agent_computers.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,qBAAqB;IACZ;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;OASG;IACH,KAAK,CAAC,MAAM,CAAC,QAAgB;QAC3B,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,2BAA2B,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,GAAG,CAAC,QAAgB;QACxB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,2BAA2B,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,KAAK,CAAC,IAAI,CAAC,QAAgB,EAAE,KAAoD;QAC/E,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,2BAA2B,QAAQ,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACxG,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,OAAO,CAAC,QAAgB;QAC5B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,2BAA2B,QAAQ,UAAU,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF"}
@@ -0,0 +1,50 @@
1
+ import { HttpClient } from "../../runtime/http-client.js";
2
+ import type { AgentEnvVarMasked } from "../../types/common.js";
3
+ export declare class AgentEnvVarResource {
4
+ private http;
5
+ constructor(http: HttpClient);
6
+ /**
7
+ * Delete an agent environment variable
8
+ * Permanently deletes the specified environment variable from the agent. This
9
+ * action is irreversible; the stored value is destroyed and cannot be recovered.
10
+ * The authenticated user must have access to the agent's parent app. Pass the
11
+ * app scope via the `app` parameter when calling with an API key that is scoped
12
+ * to a specific app. Returns `204 No Content` on success.
13
+ * @param envVar - Environment variable ID (`anv_...`) of the variable to delete.
14
+ * @returns Empty response. Returns HTTP 204 No Content on successful deletion.
15
+ */
16
+ delete(envVar: string): Promise<void>;
17
+ /**
18
+ * Retrieve an agent environment variable
19
+ * Returns the environment variable identified by `env_var`. The stored value
20
+ * is always masked in the response; only the last four characters are visible.
21
+ * There is no endpoint that returns the plaintext value after creation.
22
+ * The authenticated user must have access to the agent's parent app. Pass the
23
+ * app scope via the `app` parameter when calling with an API key that is scoped
24
+ * to a specific app.
25
+ * @param envVar - Environment variable ID (`anv_...`) to retrieve.
26
+ * @returns The requested environment variable with its value masked.
27
+ */
28
+ get(envVar: string): Promise<AgentEnvVarMasked>;
29
+ /**
30
+ * Update an agent environment variable
31
+ * Updates the `value` or `description` of an existing environment variable.
32
+ * Only fields provided in the request are changed; omitted fields retain their
33
+ * current values. The variable `key` cannot be changed after creation.
34
+ * The updated value is stored securely and, like creation, the plaintext is
35
+ * never returned; the response contains the masked representation. The
36
+ * authenticated user must have access to the agent's parent app. Pass the app
37
+ * scope via the `app` parameter when calling with an API key that is scoped to
38
+ * a specific app.
39
+ * @param envVar - Environment variable ID (`anv_...`) to update.
40
+ * @param input - Request body.
41
+ * @param input.description - Updated human-readable note describing what the variable is used for.
42
+ * @param input.value - New plaintext secret value. The value is encrypted at rest and never returned in full.
43
+ * @returns The updated environment variable with its value masked.
44
+ */
45
+ update(envVar: string, input: {
46
+ description?: string | undefined;
47
+ value?: string | undefined;
48
+ }): Promise<AgentEnvVarMasked>;
49
+ }
50
+ //# sourceMappingURL=agent_env_vars.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent_env_vars.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/agent_env_vars.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,qBAAa,mBAAmB;IAClB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC;;;;;;;;;OASG;IACG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI3C;;;;;;;;;;OAUG;IACG,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAIrD;;;;;;;;;;;;;;;OAeG;IACG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE;QAAE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAGlI"}
@@ -0,0 +1,56 @@
1
+ // Copyright (c) 2026 ArchAstro Inc. All Rights Reserved.
2
+ // This file is auto-generated by @archastro/sdk-generator. Do not edit.
3
+ // Content hash: bb9b8cbc6865
4
+ export class AgentEnvVarResource {
5
+ http;
6
+ constructor(http) {
7
+ this.http = http;
8
+ }
9
+ /**
10
+ * Delete an agent environment variable
11
+ * Permanently deletes the specified environment variable from the agent. This
12
+ * action is irreversible; the stored value is destroyed and cannot be recovered.
13
+ * The authenticated user must have access to the agent's parent app. Pass the
14
+ * app scope via the `app` parameter when calling with an API key that is scoped
15
+ * to a specific app. Returns `204 No Content` on success.
16
+ * @param envVar - Environment variable ID (`anv_...`) of the variable to delete.
17
+ * @returns Empty response. Returns HTTP 204 No Content on successful deletion.
18
+ */
19
+ async delete(envVar) {
20
+ await this.http.request(`/api/v1/agent_env_vars/${envVar}`, { method: "DELETE" });
21
+ }
22
+ /**
23
+ * Retrieve an agent environment variable
24
+ * Returns the environment variable identified by `env_var`. The stored value
25
+ * is always masked in the response; only the last four characters are visible.
26
+ * There is no endpoint that returns the plaintext value after creation.
27
+ * The authenticated user must have access to the agent's parent app. Pass the
28
+ * app scope via the `app` parameter when calling with an API key that is scoped
29
+ * to a specific app.
30
+ * @param envVar - Environment variable ID (`anv_...`) to retrieve.
31
+ * @returns The requested environment variable with its value masked.
32
+ */
33
+ async get(envVar) {
34
+ return this.http.request(`/api/v1/agent_env_vars/${envVar}`);
35
+ }
36
+ /**
37
+ * Update an agent environment variable
38
+ * Updates the `value` or `description` of an existing environment variable.
39
+ * Only fields provided in the request are changed; omitted fields retain their
40
+ * current values. The variable `key` cannot be changed after creation.
41
+ * The updated value is stored securely and, like creation, the plaintext is
42
+ * never returned; the response contains the masked representation. The
43
+ * authenticated user must have access to the agent's parent app. Pass the app
44
+ * scope via the `app` parameter when calling with an API key that is scoped to
45
+ * a specific app.
46
+ * @param envVar - Environment variable ID (`anv_...`) to update.
47
+ * @param input - Request body.
48
+ * @param input.description - Updated human-readable note describing what the variable is used for.
49
+ * @param input.value - New plaintext secret value. The value is encrypted at rest and never returned in full.
50
+ * @returns The updated environment variable with its value masked.
51
+ */
52
+ async update(envVar, input) {
53
+ return this.http.request(`/api/v1/agent_env_vars/${envVar}`, { method: "PATCH", body: input });
54
+ }
55
+ }
56
+ //# sourceMappingURL=agent_env_vars.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent_env_vars.js","sourceRoot":"","sources":["../../../src/v1/resources/agent_env_vars.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,mBAAmB;IACV;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;OASG;IACH,KAAK,CAAC,MAAM,CAAC,MAAc;QACzB,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,0BAA0B,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,GAAG,CAAC,MAAc;QACtB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,0BAA0B,MAAM,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,KAAK,CAAC,MAAM,CAAC,MAAc,EAAE,KAAuE;QAClG,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,0BAA0B,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACjG,CAAC;CACF"}
@@ -0,0 +1,43 @@
1
+ import { HttpClient } from "../../runtime/http-client.js";
2
+ import type { AgentHealthAction } from "../../types/common.js";
3
+ export declare class AgentHealthActionResource {
4
+ private http;
5
+ constructor(http: HttpClient);
6
+ /**
7
+ * Retrieve a health action
8
+ * Returns a single agent health action by its ID. Use this endpoint to
9
+ * fetch the current state of a specific health action — for example, to
10
+ * refresh a checklist item after the user completes a setup step or after
11
+ * polling for status changes.
12
+ * The caller must be authenticated and scoped to the app that owns the
13
+ * health action. Returns 404 if the health action does not exist or is not
14
+ * accessible within the current app scope.
15
+ * @param healthAction - Health action ID (`aha_...`) to retrieve.
16
+ * @returns The requested health action object.
17
+ */
18
+ get(healthAction: string): Promise<AgentHealthAction>;
19
+ /**
20
+ * Verify a health action
21
+ * Synchronously re-runs the verifier for the specified health action and
22
+ * returns the updated health action object. Use this endpoint to power
23
+ * operator-facing "Verify" buttons that let users confirm a setup step is
24
+ * complete (for example, after setting an environment variable or
25
+ * completing an OAuth install).
26
+ * The verifier transitions the action's `status` field according to the
27
+ * following rules: a `pending` action that passes becomes `completed`; one
28
+ * that fails stays `pending`. A `completed` action that passes stays
29
+ * `completed`; one that fails becomes `degraded`. A `degraded` action that
30
+ * passes returns to `completed`; one that fails stays `degraded`. Actions
31
+ * in `skipped` status are never transitioned — the call returns the
32
+ * unchanged record.
33
+ * This endpoint runs the verifier synchronously and blocks until the check
34
+ * finishes. For background or probe-driven verification sweeps, use the
35
+ * platform's internal debounced trigger instead of calling this endpoint
36
+ * in a tight loop. Returns 422 if the verifier itself encounters an
37
+ * unrecoverable error.
38
+ * @param healthAction - Health action ID (`aha_...`) to verify.
39
+ * @returns The health action object with its `status` and `last_verified_at` updated to reflect the result of the verification run.
40
+ */
41
+ verify(healthAction: string): Promise<AgentHealthAction>;
42
+ }
43
+ //# sourceMappingURL=agent_health_actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent_health_actions.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/agent_health_actions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,qBAAa,yBAAyB;IACxB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC;;;;;;;;;;;OAWG;IACG,GAAG,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAI3D;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,MAAM,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAG/D"}
@@ -0,0 +1,50 @@
1
+ // Copyright (c) 2026 ArchAstro Inc. All Rights Reserved.
2
+ // This file is auto-generated by @archastro/sdk-generator. Do not edit.
3
+ // Content hash: a7834ef6e0a1
4
+ export class AgentHealthActionResource {
5
+ http;
6
+ constructor(http) {
7
+ this.http = http;
8
+ }
9
+ /**
10
+ * Retrieve a health action
11
+ * Returns a single agent health action by its ID. Use this endpoint to
12
+ * fetch the current state of a specific health action — for example, to
13
+ * refresh a checklist item after the user completes a setup step or after
14
+ * polling for status changes.
15
+ * The caller must be authenticated and scoped to the app that owns the
16
+ * health action. Returns 404 if the health action does not exist or is not
17
+ * accessible within the current app scope.
18
+ * @param healthAction - Health action ID (`aha_...`) to retrieve.
19
+ * @returns The requested health action object.
20
+ */
21
+ async get(healthAction) {
22
+ return this.http.request(`/api/v1/agent_health_actions/${healthAction}`);
23
+ }
24
+ /**
25
+ * Verify a health action
26
+ * Synchronously re-runs the verifier for the specified health action and
27
+ * returns the updated health action object. Use this endpoint to power
28
+ * operator-facing "Verify" buttons that let users confirm a setup step is
29
+ * complete (for example, after setting an environment variable or
30
+ * completing an OAuth install).
31
+ * The verifier transitions the action's `status` field according to the
32
+ * following rules: a `pending` action that passes becomes `completed`; one
33
+ * that fails stays `pending`. A `completed` action that passes stays
34
+ * `completed`; one that fails becomes `degraded`. A `degraded` action that
35
+ * passes returns to `completed`; one that fails stays `degraded`. Actions
36
+ * in `skipped` status are never transitioned — the call returns the
37
+ * unchanged record.
38
+ * This endpoint runs the verifier synchronously and blocks until the check
39
+ * finishes. For background or probe-driven verification sweeps, use the
40
+ * platform's internal debounced trigger instead of calling this endpoint
41
+ * in a tight loop. Returns 422 if the verifier itself encounters an
42
+ * unrecoverable error.
43
+ * @param healthAction - Health action ID (`aha_...`) to verify.
44
+ * @returns The health action object with its `status` and `last_verified_at` updated to reflect the result of the verification run.
45
+ */
46
+ async verify(healthAction) {
47
+ return this.http.request(`/api/v1/agent_health_actions/${healthAction}/verify`, { method: "POST" });
48
+ }
49
+ }
50
+ //# sourceMappingURL=agent_health_actions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent_health_actions.js","sourceRoot":"","sources":["../../../src/v1/resources/agent_health_actions.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,yBAAyB;IAChB;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,GAAG,CAAC,YAAoB;QAC5B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,gCAAgC,YAAY,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,KAAK,CAAC,MAAM,CAAC,YAAoB;QAC/B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,gCAAgC,YAAY,SAAS,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACtG,CAAC;CACF"}