@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
@@ -1,15 +1,65 @@
1
1
  import { z } from "zod";
2
- /** API schema for an artifact. */
2
+ import type { ImageSource } from "./image.js";
3
+ /** A versioned artifact produced or managed by an agent, such as a generated file, report, or code output. */
4
+ export interface Artifact {
5
+ /** ID of the agent that produced this artifact (`agt_...`). `null` if not agent-produced. */
6
+ agent?: string | undefined;
7
+ /** MIME type of the current version's file, e.g. `"text/csv"` or `"image/png"`. `null` if no file is attached. */
8
+ content_type?: string | undefined;
9
+ /** When the artifact was first created (ISO 8601). */
10
+ created_at?: string | undefined;
11
+ /** ID of the current (latest published) artifact version (`artv_...`). `null` if no version has been published. */
12
+ current_version?: string | undefined;
13
+ /** Optional longer description of the artifact's contents or purpose. `null` if not set. */
14
+ description?: string | undefined;
15
+ /** Storage file ID for the current version (`fil_...`). `null` if no file is attached. */
16
+ file?: string | undefined;
17
+ /** Original filename of the current version's file, e.g. `"output.csv"`. `null` if no file is attached. */
18
+ file_name?: string | undefined;
19
+ /** Short-lived signed URL for downloading the current version's file. `null` if no file is attached. */
20
+ file_url?: string | undefined;
21
+ /** Artifact ID (`art_...`). */
22
+ id: string;
23
+ /** Image source metadata for rendering the current version's file inline. Present only when `content_type` starts with `"image/"`. `null` otherwise. */
24
+ image_source?: ImageSource | undefined;
25
+ /** Human-readable name for the artifact, e.g. `"Q2 Report"`. `null` if not set. */
26
+ name?: string | undefined;
27
+ /** ID of the organization this artifact belongs to (`org_...`). */
28
+ org?: string | undefined;
29
+ /** Identifier of the sandbox environment associated with this artifact. `null` if not sandbox-scoped. */
30
+ sandbox?: string | undefined;
31
+ /** ID of the team that owns this artifact (`tea_...`). `null` if not team-scoped. */
32
+ team?: string | undefined;
33
+ /** ID of the thread in which this artifact was created (`thr_...`). `null` if not thread-scoped. */
34
+ thread?: string | undefined;
35
+ /** When the artifact record was last modified (ISO 8601). */
36
+ updated_at?: string | undefined;
37
+ /** ID of the user who created this artifact (`usr_...`). `null` if not user-scoped. */
38
+ user?: string | undefined;
39
+ /** Current version number of the artifact. Increments each time a new version is published. */
40
+ version?: number | undefined;
41
+ }
42
+ /** Runtime validator for {@link Artifact}. */
3
43
  export declare const artifactSchema: z.ZodObject<{
44
+ /** ID of the agent that produced this artifact (`agt_...`). `null` if not agent-produced. */
4
45
  agent: z.ZodOptional<z.ZodString>;
46
+ /** MIME type of the current version's file, e.g. `"text/csv"` or `"image/png"`. `null` if no file is attached. */
5
47
  content_type: z.ZodOptional<z.ZodString>;
48
+ /** When the artifact was first created (ISO 8601). */
6
49
  created_at: z.ZodOptional<z.ZodString>;
50
+ /** ID of the current (latest published) artifact version (`artv_...`). `null` if no version has been published. */
7
51
  current_version: z.ZodOptional<z.ZodString>;
52
+ /** Optional longer description of the artifact's contents or purpose. `null` if not set. */
8
53
  description: z.ZodOptional<z.ZodString>;
54
+ /** Storage file ID for the current version (`fil_...`). `null` if no file is attached. */
9
55
  file: z.ZodOptional<z.ZodString>;
56
+ /** Original filename of the current version's file, e.g. `"output.csv"`. `null` if no file is attached. */
10
57
  file_name: z.ZodOptional<z.ZodString>;
58
+ /** Short-lived signed URL for downloading the current version's file. `null` if no file is attached. */
11
59
  file_url: z.ZodOptional<z.ZodString>;
60
+ /** Artifact ID (`art_...`). */
12
61
  id: z.ZodString;
62
+ /** Image source metadata for rendering the current version's file inline. Present only when `content_type` starts with `"image/"`. `null` otherwise. */
13
63
  image_source: z.ZodOptional<z.ZodObject<{
14
64
  file: z.ZodOptional<z.ZodString>;
15
65
  height: z.ZodOptional<z.ZodNumber>;
@@ -19,84 +69,91 @@ export declare const artifactSchema: z.ZodObject<{
19
69
  url: z.ZodOptional<z.ZodString>;
20
70
  width: z.ZodOptional<z.ZodNumber>;
21
71
  }, "strip", z.ZodTypeAny, {
72
+ mime_type?: string | undefined;
22
73
  file?: string | undefined;
23
74
  height?: number | undefined;
24
75
  media?: string | undefined;
25
- mime_type?: string | undefined;
26
76
  refresh_url?: string | undefined;
27
77
  url?: string | undefined;
28
78
  width?: number | undefined;
29
79
  }, {
80
+ mime_type?: string | undefined;
30
81
  file?: string | undefined;
31
82
  height?: number | undefined;
32
83
  media?: string | undefined;
33
- mime_type?: string | undefined;
34
84
  refresh_url?: string | undefined;
35
85
  url?: string | undefined;
36
86
  width?: number | undefined;
37
87
  }>>;
88
+ /** Human-readable name for the artifact, e.g. `"Q2 Report"`. `null` if not set. */
38
89
  name: z.ZodOptional<z.ZodString>;
90
+ /** ID of the organization this artifact belongs to (`org_...`). */
39
91
  org: z.ZodOptional<z.ZodString>;
92
+ /** Identifier of the sandbox environment associated with this artifact. `null` if not sandbox-scoped. */
40
93
  sandbox: z.ZodOptional<z.ZodString>;
94
+ /** ID of the team that owns this artifact (`tea_...`). `null` if not team-scoped. */
41
95
  team: z.ZodOptional<z.ZodString>;
96
+ /** ID of the thread in which this artifact was created (`thr_...`). `null` if not thread-scoped. */
42
97
  thread: z.ZodOptional<z.ZodString>;
98
+ /** When the artifact record was last modified (ISO 8601). */
43
99
  updated_at: z.ZodOptional<z.ZodString>;
100
+ /** ID of the user who created this artifact (`usr_...`). `null` if not user-scoped. */
44
101
  user: z.ZodOptional<z.ZodString>;
102
+ /** Current version number of the artifact. Increments each time a new version is published. */
45
103
  version: z.ZodOptional<z.ZodNumber>;
46
104
  }, "strip", z.ZodTypeAny, {
47
105
  id: string;
48
- file?: string | undefined;
49
- name?: string | undefined;
106
+ agent?: string | undefined;
107
+ thread?: string | undefined;
108
+ team?: string | undefined;
50
109
  org?: string | undefined;
51
- sandbox?: string | undefined;
52
110
  created_at?: string | undefined;
53
- thread?: string | undefined;
111
+ sandbox?: string | undefined;
112
+ current_version?: string | undefined;
113
+ updated_at?: string | undefined;
54
114
  user?: string | undefined;
115
+ file?: string | undefined;
116
+ name?: string | undefined;
117
+ description?: string | undefined;
55
118
  content_type?: string | undefined;
56
119
  image_source?: {
120
+ mime_type?: string | undefined;
57
121
  file?: string | undefined;
58
122
  height?: number | undefined;
59
123
  media?: string | undefined;
60
- mime_type?: string | undefined;
61
124
  refresh_url?: string | undefined;
62
125
  url?: string | undefined;
63
126
  width?: number | undefined;
64
127
  } | undefined;
65
- updated_at?: string | undefined;
66
- description?: string | undefined;
67
128
  version?: number | undefined;
68
- team?: string | undefined;
69
- agent?: string | undefined;
70
- current_version?: string | undefined;
71
129
  file_name?: string | undefined;
72
130
  file_url?: string | undefined;
73
131
  }, {
74
132
  id: string;
75
- file?: string | undefined;
76
- name?: string | undefined;
133
+ agent?: string | undefined;
134
+ thread?: string | undefined;
135
+ team?: string | undefined;
77
136
  org?: string | undefined;
78
- sandbox?: string | undefined;
79
137
  created_at?: string | undefined;
80
- thread?: string | undefined;
138
+ sandbox?: string | undefined;
139
+ current_version?: string | undefined;
140
+ updated_at?: string | undefined;
81
141
  user?: string | undefined;
142
+ file?: string | undefined;
143
+ name?: string | undefined;
144
+ description?: string | undefined;
82
145
  content_type?: string | undefined;
83
146
  image_source?: {
147
+ mime_type?: string | undefined;
84
148
  file?: string | undefined;
85
149
  height?: number | undefined;
86
150
  media?: string | undefined;
87
- mime_type?: string | undefined;
88
151
  refresh_url?: string | undefined;
89
152
  url?: string | undefined;
90
153
  width?: number | undefined;
91
154
  } | undefined;
92
- updated_at?: string | undefined;
93
- description?: string | undefined;
94
155
  version?: number | undefined;
95
- team?: string | undefined;
96
- agent?: string | undefined;
97
- current_version?: string | undefined;
98
156
  file_name?: string | undefined;
99
157
  file_url?: string | undefined;
100
158
  }>;
101
- export type Artifact = z.infer<typeof artifactSchema>;
102
159
  //# sourceMappingURL=artifacts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../../src/types/artifacts.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,kCAAkC;AAClC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBzB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
1
+ {"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../../src/types/artifacts.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,8GAA8G;AAC9G,MAAM,WAAW,QAAQ;IACvB,6FAA6F;IAC7F,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,kHAAkH;IAClH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,mHAAmH;IACnH,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,4FAA4F;IAC5F,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,0FAA0F;IAC1F,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,2GAA2G;IAC3G,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,wGAAwG;IACxG,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,+BAA+B;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,wJAAwJ;IACxJ,YAAY,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IACvC,mFAAmF;IACnF,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,mEAAmE;IACnE,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,yGAAyG;IACzG,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,qFAAqF;IACrF,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,oGAAoG;IACpG,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,6DAA6D;IAC7D,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,uFAAuF;IACvF,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,+FAA+F;IAC/F,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B;AAED,8CAA8C;AAC9C,eAAO,MAAM,cAAc;IACzB,6FAA6F;;IAE7F,kHAAkH;;IAElH,sDAAsD;;IAEtD,mHAAmH;;IAEnH,4FAA4F;;IAE5F,0FAA0F;;IAE1F,2GAA2G;;IAE3G,wGAAwG;;IAExG,+BAA+B;;IAE/B,wJAAwJ;;;;;;;;;;;;;;;;;;;;;;;;;;IAExJ,mFAAmF;;IAEnF,mEAAmE;;IAEnE,yGAAyG;;IAEzG,qFAAqF;;IAErF,oGAAoG;;IAEpG,6DAA6D;;IAE7D,uFAAuF;;IAEvF,+FAA+F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEmD,CAAC"}
@@ -1,27 +1,45 @@
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: 6821b85d633c
3
+ // Content hash: bcb128cc379a
4
4
  import { z } from "zod";
5
5
  import { imageSourceSchema } from "./image.js";
6
- /** API schema for an artifact. */
6
+ /** Runtime validator for {@link Artifact}. */
7
7
  export const artifactSchema = z.object({
8
- agent: z.string().optional(), // Agent
9
- content_type: z.string().optional(), // MIME content type
10
- created_at: z.string().optional(), // Creation timestamp
11
- current_version: z.string().optional(), // Current version ID
12
- description: z.string().optional(), // Artifact description
13
- file: z.string().optional(), // Storage file
14
- file_name: z.string().optional(), // Original filename
15
- file_url: z.string().optional(), // Signed file URL
16
- id: z.string(), // Artifact ID
17
- image_source: imageSourceSchema.optional(), // Image source metadata
18
- name: z.string().optional(), // Artifact name
19
- org: z.string().optional(), // Organization
20
- sandbox: z.string().optional(), // Sandbox identifier
21
- team: z.string().optional(), // Team
22
- thread: z.string().optional(), // Thread
23
- updated_at: z.string().optional(), // Last update timestamp
24
- user: z.string().optional(), // User
25
- version: z.number().int().optional(), // Current version number
26
- });
8
+ /** ID of the agent that produced this artifact (`agt_...`). `null` if not agent-produced. */
9
+ agent: z.string().optional().describe("ID of the agent that produced this artifact (`agt_...`). `null` if not agent-produced."),
10
+ /** MIME type of the current version's file, e.g. `"text/csv"` or `"image/png"`. `null` if no file is attached. */
11
+ content_type: z.string().optional().describe("MIME type of the current version's file, e.g. `\"text/csv\"` or `\"image/png\"`. `null` if no file is attached."),
12
+ /** When the artifact was first created (ISO 8601). */
13
+ created_at: z.string().optional().describe("When the artifact was first created (ISO 8601)."),
14
+ /** ID of the current (latest published) artifact version (`artv_...`). `null` if no version has been published. */
15
+ current_version: z.string().optional().describe("ID of the current (latest published) artifact version (`artv_...`). `null` if no version has been published."),
16
+ /** Optional longer description of the artifact's contents or purpose. `null` if not set. */
17
+ description: z.string().optional().describe("Optional longer description of the artifact's contents or purpose. `null` if not set."),
18
+ /** Storage file ID for the current version (`fil_...`). `null` if no file is attached. */
19
+ file: z.string().optional().describe("Storage file ID for the current version (`fil_...`). `null` if no file is attached."),
20
+ /** Original filename of the current version's file, e.g. `"output.csv"`. `null` if no file is attached. */
21
+ file_name: z.string().optional().describe("Original filename of the current version's file, e.g. `\"output.csv\"`. `null` if no file is attached."),
22
+ /** Short-lived signed URL for downloading the current version's file. `null` if no file is attached. */
23
+ file_url: z.string().optional().describe("Short-lived signed URL for downloading the current version's file. `null` if no file is attached."),
24
+ /** Artifact ID (`art_...`). */
25
+ id: z.string().describe("Artifact ID (`art_...`)."),
26
+ /** Image source metadata for rendering the current version's file inline. Present only when `content_type` starts with `"image/"`. `null` otherwise. */
27
+ image_source: imageSourceSchema.optional().describe("Image source metadata for rendering the current version's file inline. Present only when `content_type` starts with `\"image/\"`. `null` otherwise."),
28
+ /** Human-readable name for the artifact, e.g. `"Q2 Report"`. `null` if not set. */
29
+ name: z.string().optional().describe("Human-readable name for the artifact, e.g. `\"Q2 Report\"`. `null` if not set."),
30
+ /** ID of the organization this artifact belongs to (`org_...`). */
31
+ org: z.string().optional().describe("ID of the organization this artifact belongs to (`org_...`)."),
32
+ /** Identifier of the sandbox environment associated with this artifact. `null` if not sandbox-scoped. */
33
+ sandbox: z.string().optional().describe("Identifier of the sandbox environment associated with this artifact. `null` if not sandbox-scoped."),
34
+ /** ID of the team that owns this artifact (`tea_...`). `null` if not team-scoped. */
35
+ team: z.string().optional().describe("ID of the team that owns this artifact (`tea_...`). `null` if not team-scoped."),
36
+ /** ID of the thread in which this artifact was created (`thr_...`). `null` if not thread-scoped. */
37
+ thread: z.string().optional().describe("ID of the thread in which this artifact was created (`thr_...`). `null` if not thread-scoped."),
38
+ /** When the artifact record was last modified (ISO 8601). */
39
+ updated_at: z.string().optional().describe("When the artifact record was last modified (ISO 8601)."),
40
+ /** ID of the user who created this artifact (`usr_...`). `null` if not user-scoped. */
41
+ user: z.string().optional().describe("ID of the user who created this artifact (`usr_...`). `null` if not user-scoped."),
42
+ /** Current version number of the artifact. Increments each time a new version is published. */
43
+ version: z.number().int().optional().describe("Current version number of the artifact. Increments each time a new version is published."),
44
+ }).describe("A versioned artifact produced or managed by an agent, such as a generated file, report, or code output.");
27
45
  //# sourceMappingURL=artifacts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"artifacts.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CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kFAAkF,CAAC;IACxH,+FAA+F;IAC/F,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,0FAA0F,CAAC;CAC1I,CAAC,CAAC,QAAQ,CAAC,yGAAyG,CAA+B,CAAC"}
@@ -1,29 +1,62 @@
1
1
  import { z } from "zod";
2
- /** Schema for an automation run.
3
-
4
- Maps to serialized automation run output from developer portal API.
5
- */
2
+ /** A single execution of an automation triggered by a platform event or direct invocation. Captures the run's status, input payload, and final result. */
3
+ export interface AutomationRun {
4
+ /** ID of the app that owns this automation run (`dap_...`). */
5
+ app: string;
6
+ /** ID of the automation that was executed (`aut_...`). */
7
+ automation: string;
8
+ /** When the automation run was created (ISO 8601). */
9
+ created_at?: string | undefined;
10
+ /** ID of the platform event that triggered this run. `null` for directly invoked automations. */
11
+ event_id?: string | undefined;
12
+ /** Automation run ID (`atr_...`). */
13
+ id: string;
14
+ /** The input event payload that triggered this run. Structure varies by automation type. Defaults to an empty object if no payload was provided. */
15
+ payload?: Record<string, unknown> | undefined;
16
+ /** The output produced after the automation finished executing. Contains workflow-defined keys alongside any returned output. `null` if the run has not yet completed. */
17
+ result?: Record<string, unknown> | undefined;
18
+ /** Current execution status of the run. One of `"pending"` (queued, not yet started), `"running"` (actively executing), `"completed"` (finished successfully), `"failed"` (finished with an error), or `"cancelled"` (stopped before completion). */
19
+ status: string;
20
+ /** ID of the team that owns this run (`tea_...`). `null` if the run is owned by a user rather than a team. */
21
+ team?: string | undefined;
22
+ /** When the automation run record was last updated (ISO 8601). */
23
+ updated_at?: string | undefined;
24
+ /** ID of the user that owns this run (`usr_...`). `null` if the run is owned by a team rather than a user. */
25
+ user?: string | undefined;
26
+ }
27
+ /** Runtime validator for {@link AutomationRun}. */
6
28
  export declare const automationRunSchema: z.ZodObject<{
29
+ /** ID of the app that owns this automation run (`dap_...`). */
7
30
  app: z.ZodString;
31
+ /** ID of the automation that was executed (`aut_...`). */
8
32
  automation: z.ZodString;
33
+ /** When the automation run was created (ISO 8601). */
9
34
  created_at: z.ZodOptional<z.ZodString>;
35
+ /** ID of the platform event that triggered this run. `null` for directly invoked automations. */
10
36
  event_id: z.ZodOptional<z.ZodString>;
37
+ /** Automation run ID (`atr_...`). */
11
38
  id: z.ZodString;
39
+ /** The input event payload that triggered this run. Structure varies by automation type. Defaults to an empty object if no payload was provided. */
12
40
  payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
41
+ /** The output produced after the automation finished executing. Contains workflow-defined keys alongside any returned output. `null` if the run has not yet completed. */
13
42
  result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
43
+ /** Current execution status of the run. One of `"pending"` (queued, not yet started), `"running"` (actively executing), `"completed"` (finished successfully), `"failed"` (finished with an error), or `"cancelled"` (stopped before completion). */
14
44
  status: z.ZodString;
45
+ /** ID of the team that owns this run (`tea_...`). `null` if the run is owned by a user rather than a team. */
15
46
  team: z.ZodOptional<z.ZodString>;
47
+ /** When the automation run record was last updated (ISO 8601). */
16
48
  updated_at: z.ZodOptional<z.ZodString>;
49
+ /** ID of the user that owns this run (`usr_...`). `null` if the run is owned by a team rather than a user. */
17
50
  user: z.ZodOptional<z.ZodString>;
18
51
  }, "strip", z.ZodTypeAny, {
19
52
  status: string;
20
53
  id: string;
21
54
  app: string;
22
55
  automation: string;
56
+ team?: string | undefined;
23
57
  created_at?: string | undefined;
24
- user?: string | undefined;
25
58
  updated_at?: string | undefined;
26
- team?: string | undefined;
59
+ user?: string | undefined;
27
60
  payload?: Record<string, unknown> | undefined;
28
61
  event_id?: string | undefined;
29
62
  result?: Record<string, unknown> | undefined;
@@ -32,13 +65,12 @@ export declare const automationRunSchema: z.ZodObject<{
32
65
  id: string;
33
66
  app: string;
34
67
  automation: string;
68
+ team?: string | undefined;
35
69
  created_at?: string | undefined;
36
- user?: string | undefined;
37
70
  updated_at?: string | undefined;
38
- team?: string | undefined;
71
+ user?: string | undefined;
39
72
  payload?: Record<string, unknown> | undefined;
40
73
  event_id?: string | undefined;
41
74
  result?: Record<string, unknown> | undefined;
42
75
  }>;
43
- export type AutomationRun = z.infer<typeof automationRunSchema>;
44
76
  //# sourceMappingURL=automations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"automations.d.ts","sourceRoot":"","sources":["../../src/types/automations.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
1
+ {"version":3,"file":"automations.d.ts","sourceRoot":"","sources":["../../src/types/automations.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,0JAA0J;AAC1J,MAAM,WAAW,aAAa;IAC5B,+DAA+D;IAC/D,GAAG,EAAE,MAAM,CAAC;IACZ,0DAA0D;IAC1D,UAAU,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,iGAAiG;IACjG,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,qCAAqC;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,oJAAoJ;IACpJ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;IAC9C,0KAA0K;IAC1K,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;IAC7C,qPAAqP;IACrP,MAAM,EAAE,MAAM,CAAC;IACf,8GAA8G;IAC9G,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,kEAAkE;IAClE,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,8GAA8G;IAC9G,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AAED,mDAAmD;AACnD,eAAO,MAAM,mBAAmB;IAC9B,+DAA+D;;IAE/D,0DAA0D;;IAE1D,sDAAsD;;IAEtD,iGAAiG;;IAEjG,qCAAqC;;IAErC,oJAAoJ;;IAEpJ,0KAA0K;;IAE1K,qPAAqP;;IAErP,8GAA8G;;IAE9G,kEAAkE;;IAElE,8GAA8G;;;;;;;;;;;;;;;;;;;;;;;;;;EAEqF,CAAC"}
@@ -1,22 +1,30 @@
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: ff9a625c46e3
3
+ // Content hash: 6f9b2344ac6b
4
4
  import { z } from "zod";
5
- /** Schema for an automation run.
6
-
7
- Maps to serialized automation run output from developer portal API.
8
- */
5
+ /** Runtime validator for {@link AutomationRun}. */
9
6
  export const automationRunSchema = z.object({
10
- app: z.string(), // App (dap_...)
11
- automation: z.string(), // Automation (aut_...)
12
- created_at: z.string().optional(), // Created timestamp
13
- event_id: z.string().optional(), // Triggering event ID
14
- id: z.string(), // Public ID (atr_...)
15
- payload: z.record(z.unknown()).optional(), // Event payload
16
- result: z.record(z.unknown()).optional(), // Workflow execution result (payload and output)
17
- status: z.string(), // Status: pending, running, completed, failed, cancelled
18
- team: z.string().optional(), // Team if team-owned
19
- updated_at: z.string().optional(), // Updated timestamp
20
- user: z.string().optional(), // User if user-owned
21
- });
7
+ /** ID of the app that owns this automation run (`dap_...`). */
8
+ app: z.string().describe("ID of the app that owns this automation run (`dap_...`)."),
9
+ /** ID of the automation that was executed (`aut_...`). */
10
+ automation: z.string().describe("ID of the automation that was executed (`aut_...`)."),
11
+ /** When the automation run was created (ISO 8601). */
12
+ created_at: z.string().optional().describe("When the automation run was created (ISO 8601)."),
13
+ /** ID of the platform event that triggered this run. `null` for directly invoked automations. */
14
+ event_id: z.string().optional().describe("ID of the platform event that triggered this run. `null` for directly invoked automations."),
15
+ /** Automation run ID (`atr_...`). */
16
+ id: z.string().describe("Automation run ID (`atr_...`)."),
17
+ /** The input event payload that triggered this run. Structure varies by automation type. Defaults to an empty object if no payload was provided. */
18
+ payload: z.record(z.unknown()).optional().describe("The input event payload that triggered this run. Structure varies by automation type. Defaults to an empty object if no payload was provided."),
19
+ /** The output produced after the automation finished executing. Contains workflow-defined keys alongside any returned output. `null` if the run has not yet completed. */
20
+ result: z.record(z.unknown()).optional().describe("The output produced after the automation finished executing. Contains workflow-defined keys alongside any returned output. `null` if the run has not yet completed."),
21
+ /** Current execution status of the run. One of `"pending"` (queued, not yet started), `"running"` (actively executing), `"completed"` (finished successfully), `"failed"` (finished with an error), or `"cancelled"` (stopped before completion). */
22
+ status: z.string().describe("Current execution status of the run. One of `\"pending\"` (queued, not yet started), `\"running\"` (actively executing), `\"completed\"` (finished successfully), `\"failed\"` (finished with an error), or `\"cancelled\"` (stopped before completion)."),
23
+ /** ID of the team that owns this run (`tea_...`). `null` if the run is owned by a user rather than a team. */
24
+ team: z.string().optional().describe("ID of the team that owns this run (`tea_...`). `null` if the run is owned by a user rather than a team."),
25
+ /** When the automation run record was last updated (ISO 8601). */
26
+ updated_at: z.string().optional().describe("When the automation run record was last updated (ISO 8601)."),
27
+ /** ID of the user that owns this run (`usr_...`). `null` if the run is owned by a team rather than a user. */
28
+ user: z.string().optional().describe("ID of the user that owns this run (`usr_...`). `null` if the run is owned by a team rather than a user."),
29
+ }).describe("A single execution of an automation triggered by a platform event or direct invocation. Captures the run's status, input payload, and final result.");
22
30
  //# sourceMappingURL=automations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"automations.js","sourceRoot":"","sources":["../../src/types/automations.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AA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