@archastro/sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. package/LICENSE +21 -0
  2. package/dist/auth.d.ts +15 -0
  3. package/dist/auth.d.ts.map +1 -0
  4. package/dist/auth.js +65 -0
  5. package/dist/auth.js.map +1 -0
  6. package/dist/channels/api_activity_feed_channel.d.ts +21 -0
  7. package/dist/channels/api_activity_feed_channel.d.ts.map +1 -0
  8. package/dist/channels/api_activity_feed_channel.js +33 -0
  9. package/dist/channels/api_activity_feed_channel.js.map +1 -0
  10. package/dist/channels/api_chat_channel.d.ts +51 -0
  11. package/dist/channels/api_chat_channel.d.ts.map +1 -0
  12. package/dist/channels/api_chat_channel.js +95 -0
  13. package/dist/channels/api_chat_channel.js.map +1 -0
  14. package/dist/channels/api_object_channel.d.ts +17 -0
  15. package/dist/channels/api_object_channel.d.ts.map +1 -0
  16. package/dist/channels/api_object_channel.js +33 -0
  17. package/dist/channels/api_object_channel.js.map +1 -0
  18. package/dist/client.d.ts +68 -0
  19. package/dist/client.d.ts.map +1 -0
  20. package/dist/client.js +123 -0
  21. package/dist/client.js.map +1 -0
  22. package/dist/index.d.ts +9 -0
  23. package/dist/index.d.ts.map +1 -0
  24. package/dist/index.js +12 -0
  25. package/dist/index.js.map +1 -0
  26. package/dist/phx_channel/channel.d.ts +35 -0
  27. package/dist/phx_channel/channel.d.ts.map +1 -0
  28. package/dist/phx_channel/channel.js +203 -0
  29. package/dist/phx_channel/channel.js.map +1 -0
  30. package/dist/phx_channel/index.d.ts +4 -0
  31. package/dist/phx_channel/index.d.ts.map +1 -0
  32. package/dist/phx_channel/index.js +3 -0
  33. package/dist/phx_channel/index.js.map +1 -0
  34. package/dist/phx_channel/socket.d.ts +71 -0
  35. package/dist/phx_channel/socket.d.ts.map +1 -0
  36. package/dist/phx_channel/socket.js +274 -0
  37. package/dist/phx_channel/socket.js.map +1 -0
  38. package/dist/runtime/http-client.d.ts +42 -0
  39. package/dist/runtime/http-client.d.ts.map +1 -0
  40. package/dist/runtime/http-client.js +207 -0
  41. package/dist/runtime/http-client.js.map +1 -0
  42. package/dist/types/agents.d.ts +2254 -0
  43. package/dist/types/agents.d.ts.map +1 -0
  44. package/dist/types/agents.js +238 -0
  45. package/dist/types/agents.js.map +1 -0
  46. package/dist/types/ai.d.ts +460 -0
  47. package/dist/types/ai.d.ts.map +1 -0
  48. package/dist/types/ai.js +70 -0
  49. package/dist/types/ai.js.map +1 -0
  50. package/dist/types/artifacts.d.ts +101 -0
  51. package/dist/types/artifacts.d.ts.map +1 -0
  52. package/dist/types/artifacts.js +40 -0
  53. package/dist/types/artifacts.js.map +1 -0
  54. package/dist/types/automations.d.ts +110 -0
  55. package/dist/types/automations.d.ts.map +1 -0
  56. package/dist/types/automations.js +47 -0
  57. package/dist/types/automations.js.map +1 -0
  58. package/dist/types/chat.d.ts +20 -0
  59. package/dist/types/chat.d.ts.map +1 -0
  60. package/dist/types/chat.js +12 -0
  61. package/dist/types/chat.js.map +1 -0
  62. package/dist/types/common.d.ts +4478 -0
  63. package/dist/types/common.d.ts.map +1 -0
  64. package/dist/types/common.js +1209 -0
  65. package/dist/types/common.js.map +1 -0
  66. package/dist/types/config.d.ts +191 -0
  67. package/dist/types/config.d.ts.map +1 -0
  68. package/dist/types/config.js +63 -0
  69. package/dist/types/config.js.map +1 -0
  70. package/dist/types/image.d.ts +29 -0
  71. package/dist/types/image.d.ts.map +1 -0
  72. package/dist/types/image.js +15 -0
  73. package/dist/types/image.js.map +1 -0
  74. package/dist/types/index.d.ts +21 -0
  75. package/dist/types/index.d.ts.map +1 -0
  76. package/dist/types/index.js +24 -0
  77. package/dist/types/index.js.map +1 -0
  78. package/dist/types/invite.d.ts +17 -0
  79. package/dist/types/invite.d.ts.map +1 -0
  80. package/dist/types/invite.js +11 -0
  81. package/dist/types/invite.js.map +1 -0
  82. package/dist/types/me.d.ts +101 -0
  83. package/dist/types/me.d.ts.map +1 -0
  84. package/dist/types/me.js +41 -0
  85. package/dist/types/me.js.map +1 -0
  86. package/dist/types/members.d.ts +99 -0
  87. package/dist/types/members.d.ts.map +1 -0
  88. package/dist/types/members.js +36 -0
  89. package/dist/types/members.js.map +1 -0
  90. package/dist/types/messages.d.ts +109 -0
  91. package/dist/types/messages.d.ts.map +1 -0
  92. package/dist/types/messages.js +49 -0
  93. package/dist/types/messages.js.map +1 -0
  94. package/dist/types/orgs.d.ts +193 -0
  95. package/dist/types/orgs.d.ts.map +1 -0
  96. package/dist/types/orgs.js +69 -0
  97. package/dist/types/orgs.js.map +1 -0
  98. package/dist/types/picture.d.ts +20 -0
  99. package/dist/types/picture.d.ts.map +1 -0
  100. package/dist/types/picture.js +14 -0
  101. package/dist/types/picture.js.map +1 -0
  102. package/dist/types/profile.d.ts +17 -0
  103. package/dist/types/profile.d.ts.map +1 -0
  104. package/dist/types/profile.js +11 -0
  105. package/dist/types/profile.js.map +1 -0
  106. package/dist/types/reactions.d.ts +29 -0
  107. package/dist/types/reactions.d.ts.map +1 -0
  108. package/dist/types/reactions.js +15 -0
  109. package/dist/types/reactions.js.map +1 -0
  110. package/dist/types/runs.d.ts +46 -0
  111. package/dist/types/runs.d.ts.map +1 -0
  112. package/dist/types/runs.js +15 -0
  113. package/dist/types/runs.js.map +1 -0
  114. package/dist/types/schedules.d.ts +32 -0
  115. package/dist/types/schedules.d.ts.map +1 -0
  116. package/dist/types/schedules.js +16 -0
  117. package/dist/types/schedules.js.map +1 -0
  118. package/dist/types/system.d.ts +23 -0
  119. package/dist/types/system.d.ts.map +1 -0
  120. package/dist/types/system.js +13 -0
  121. package/dist/types/system.js.map +1 -0
  122. package/dist/types/teams.d.ts +580 -0
  123. package/dist/types/teams.d.ts.map +1 -0
  124. package/dist/types/teams.js +84 -0
  125. package/dist/types/teams.js.map +1 -0
  126. package/dist/types/threads.d.ts +802 -0
  127. package/dist/types/threads.d.ts.map +1 -0
  128. package/dist/types/threads.js +167 -0
  129. package/dist/types/threads.js.map +1 -0
  130. package/dist/types/users.d.ts +89 -0
  131. package/dist/types/users.d.ts.map +1 -0
  132. package/dist/types/users.js +37 -0
  133. package/dist/types/users.js.map +1 -0
  134. package/dist/v1/resources/agent_computers.d.ts +12 -0
  135. package/dist/v1/resources/agent_computers.d.ts.map +1 -0
  136. package/dist/v1/resources/agent_computers.js +22 -0
  137. package/dist/v1/resources/agent_computers.js.map +1 -0
  138. package/dist/v1/resources/agent_installations.d.ts +22 -0
  139. package/dist/v1/resources/agent_installations.d.ts.map +1 -0
  140. package/dist/v1/resources/agent_installations.js +42 -0
  141. package/dist/v1/resources/agent_installations.js.map +1 -0
  142. package/dist/v1/resources/agent_routines.d.ts +36 -0
  143. package/dist/v1/resources/agent_routines.d.ts.map +1 -0
  144. package/dist/v1/resources/agent_routines.js +56 -0
  145. package/dist/v1/resources/agent_routines.js.map +1 -0
  146. package/dist/v1/resources/agent_sessions.d.ts +19 -0
  147. package/dist/v1/resources/agent_sessions.d.ts.map +1 -0
  148. package/dist/v1/resources/agent_sessions.js +31 -0
  149. package/dist/v1/resources/agent_sessions.js.map +1 -0
  150. package/dist/v1/resources/agent_skills.d.ts +16 -0
  151. package/dist/v1/resources/agent_skills.d.ts.map +1 -0
  152. package/dist/v1/resources/agent_skills.js +31 -0
  153. package/dist/v1/resources/agent_skills.js.map +1 -0
  154. package/dist/v1/resources/agent_tools.d.ts +23 -0
  155. package/dist/v1/resources/agent_tools.d.ts.map +1 -0
  156. package/dist/v1/resources/agent_tools.js +39 -0
  157. package/dist/v1/resources/agent_tools.js.map +1 -0
  158. package/dist/v1/resources/agents.d.ts +100 -0
  159. package/dist/v1/resources/agents.d.ts.map +1 -0
  160. package/dist/v1/resources/agents.js +112 -0
  161. package/dist/v1/resources/agents.js.map +1 -0
  162. package/dist/v1/resources/ai.d.ts +40 -0
  163. package/dist/v1/resources/ai.d.ts.map +1 -0
  164. package/dist/v1/resources/ai.js +57 -0
  165. package/dist/v1/resources/ai.js.map +1 -0
  166. package/dist/v1/resources/ai_chat_completions.d.ts +49 -0
  167. package/dist/v1/resources/ai_chat_completions.d.ts.map +1 -0
  168. package/dist/v1/resources/ai_chat_completions.js +14 -0
  169. package/dist/v1/resources/ai_chat_completions.js.map +1 -0
  170. package/dist/v1/resources/ai_chat_models.d.ts +12 -0
  171. package/dist/v1/resources/ai_chat_models.d.ts.map +1 -0
  172. package/dist/v1/resources/ai_chat_models.js +14 -0
  173. package/dist/v1/resources/ai_chat_models.js.map +1 -0
  174. package/dist/v1/resources/ai_image_edits.d.ts +20 -0
  175. package/dist/v1/resources/ai_image_edits.d.ts.map +1 -0
  176. package/dist/v1/resources/ai_image_edits.js +14 -0
  177. package/dist/v1/resources/ai_image_edits.js.map +1 -0
  178. package/dist/v1/resources/ai_image_generations.d.ts +20 -0
  179. package/dist/v1/resources/ai_image_generations.d.ts.map +1 -0
  180. package/dist/v1/resources/ai_image_generations.js +14 -0
  181. package/dist/v1/resources/ai_image_generations.js.map +1 -0
  182. package/dist/v1/resources/ai_image_models.d.ts +12 -0
  183. package/dist/v1/resources/ai_image_models.d.ts.map +1 -0
  184. package/dist/v1/resources/ai_image_models.js +14 -0
  185. package/dist/v1/resources/ai_image_models.js.map +1 -0
  186. package/dist/v1/resources/artifacts.d.ts +19 -0
  187. package/dist/v1/resources/artifacts.d.ts.map +1 -0
  188. package/dist/v1/resources/artifacts.js +33 -0
  189. package/dist/v1/resources/artifacts.js.map +1 -0
  190. package/dist/v1/resources/automation_runs.d.ts +14 -0
  191. package/dist/v1/resources/automation_runs.d.ts.map +1 -0
  192. package/dist/v1/resources/automation_runs.js +19 -0
  193. package/dist/v1/resources/automation_runs.js.map +1 -0
  194. package/dist/v1/resources/automations.d.ts +8 -0
  195. package/dist/v1/resources/automations.d.ts.map +1 -0
  196. package/dist/v1/resources/automations.js +13 -0
  197. package/dist/v1/resources/automations.js.map +1 -0
  198. package/dist/v1/resources/completions.d.ts +49 -0
  199. package/dist/v1/resources/completions.d.ts.map +1 -0
  200. package/dist/v1/resources/completions.js +14 -0
  201. package/dist/v1/resources/completions.js.map +1 -0
  202. package/dist/v1/resources/config.d.ts +137 -0
  203. package/dist/v1/resources/config.d.ts.map +1 -0
  204. package/dist/v1/resources/config.js +98 -0
  205. package/dist/v1/resources/config.js.map +1 -0
  206. package/dist/v1/resources/custom_objects.d.ts +27 -0
  207. package/dist/v1/resources/custom_objects.d.ts.map +1 -0
  208. package/dist/v1/resources/custom_objects.js +19 -0
  209. package/dist/v1/resources/custom_objects.js.map +1 -0
  210. package/dist/v1/resources/edits.d.ts +20 -0
  211. package/dist/v1/resources/edits.d.ts.map +1 -0
  212. package/dist/v1/resources/edits.js +14 -0
  213. package/dist/v1/resources/edits.js.map +1 -0
  214. package/dist/v1/resources/generations.d.ts +20 -0
  215. package/dist/v1/resources/generations.d.ts.map +1 -0
  216. package/dist/v1/resources/generations.js +14 -0
  217. package/dist/v1/resources/generations.js.map +1 -0
  218. package/dist/v1/resources/index.d.ts +21 -0
  219. package/dist/v1/resources/index.d.ts.map +1 -0
  220. package/dist/v1/resources/index.js +24 -0
  221. package/dist/v1/resources/index.js.map +1 -0
  222. package/dist/v1/resources/installation_sources.d.ts +7 -0
  223. package/dist/v1/resources/installation_sources.d.ts.map +1 -0
  224. package/dist/v1/resources/installation_sources.js +13 -0
  225. package/dist/v1/resources/installation_sources.js.map +1 -0
  226. package/dist/v1/resources/invoke.d.ts +29 -0
  227. package/dist/v1/resources/invoke.d.ts.map +1 -0
  228. package/dist/v1/resources/invoke.js +23 -0
  229. package/dist/v1/resources/invoke.js.map +1 -0
  230. package/dist/v1/resources/models.d.ts +12 -0
  231. package/dist/v1/resources/models.d.ts.map +1 -0
  232. package/dist/v1/resources/models.js +14 -0
  233. package/dist/v1/resources/models.js.map +1 -0
  234. package/dist/v1/resources/orgs.d.ts +23 -0
  235. package/dist/v1/resources/orgs.d.ts.map +1 -0
  236. package/dist/v1/resources/orgs.js +13 -0
  237. package/dist/v1/resources/orgs.js.map +1 -0
  238. package/dist/v1/resources/team_memberships.d.ts +15 -0
  239. package/dist/v1/resources/team_memberships.d.ts.map +1 -0
  240. package/dist/v1/resources/team_memberships.js +16 -0
  241. package/dist/v1/resources/team_memberships.js.map +1 -0
  242. package/dist/v1/resources/teams.d.ts +232 -0
  243. package/dist/v1/resources/teams.d.ts.map +1 -0
  244. package/dist/v1/resources/teams.js +118 -0
  245. package/dist/v1/resources/teams.js.map +1 -0
  246. package/dist/v1/resources/thread_messages.d.ts +38 -0
  247. package/dist/v1/resources/thread_messages.d.ts.map +1 -0
  248. package/dist/v1/resources/thread_messages.js +41 -0
  249. package/dist/v1/resources/thread_messages.js.map +1 -0
  250. package/dist/v1/resources/threads.d.ts +119 -0
  251. package/dist/v1/resources/threads.d.ts.map +1 -0
  252. package/dist/v1/resources/threads.js +119 -0
  253. package/dist/v1/resources/threads.js.map +1 -0
  254. package/dist/v1/resources/users.d.ts +148 -0
  255. package/dist/v1/resources/users.d.ts.map +1 -0
  256. package/dist/v1/resources/users.js +74 -0
  257. package/dist/v1/resources/users.js.map +1 -0
  258. package/dist/v1.d.ts +45 -0
  259. package/dist/v1.d.ts.map +1 -0
  260. package/dist/v1.js +68 -0
  261. package/dist/v1.js.map +1 -0
  262. package/package.json +33 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"threads.d.ts","sourceRoot":"","sources":["../../src/types/threads.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,oCAAoC;AACpC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;EAI7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,sCAAsC;AACtC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;EAE/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -0,0 +1,167 @@
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: f9f2f56968bd
4
+ import { z } from "zod";
5
+ import { attachmentSchema } from "./common.js";
6
+ import { messageSchema } from "./messages.js";
7
+ import { userSchema } from "./users.js";
8
+ /** API schema for a chat thread. */
9
+ export const threadSchema = z.object({
10
+ agent_user: z.string().optional(), // Owning agent user
11
+ created_at: z.string().optional(), // Creation timestamp
12
+ creator: userSchema.optional(), // Creator user object
13
+ description: z.string().optional(), // Thread description
14
+ id: z.string(), // Thread ID (thr_...)
15
+ is_channel: z.boolean().optional(), // Whether this is a channel
16
+ is_default: z.boolean().optional(), // Whether this is the default thread
17
+ is_transient: z.boolean().optional(), // Whether this thread is transient
18
+ is_unlisted: z.boolean().optional(), // Whether this thread is unlisted
19
+ key: z.string().optional(), // Thread key
20
+ last_activity: z.string().optional(), // Last activity timestamp
21
+ metadata: z.unknown().optional(), // Thread metadata
22
+ org: z.string().optional(), // Organization
23
+ parent_message: messageSchema.optional(), // Parent message object
24
+ participant: z.array(z.string()).optional(), // Participant users
25
+ participants: z.array(z.unknown()).optional(), // Participant user objects
26
+ participating_actor: z.array(z.string()).optional(), // Actors participating in thread
27
+ participating_agents: z.array(z.unknown()).optional(), // Agents participating in thread
28
+ role: z.string().optional(), // User's role in the thread
29
+ sandbox: z.string().optional(), // Sandbox identifier
30
+ settings: z.unknown().optional(), // Thread settings
31
+ slug: z.string().optional(), // Thread slug
32
+ sub_threads: z.array(z.unknown()).optional(), // Sub-threads
33
+ team: z.string().optional(), // Owning team
34
+ title: z.string().optional(), // Thread title
35
+ ttl: z.number().int().optional(), // Time-to-live in seconds
36
+ unread_count: z.number().int().optional(), // Unread message count
37
+ updated_at: z.string().optional(), // Last update timestamp
38
+ user: z.string().optional(), // Owning user
39
+ });
40
+ /** Base64 encoded profile picture */
41
+ export const threadUpdateParamsProfilePictureSchema = z.object({
42
+ data: z.string().optional(), // Base64 encoded image data
43
+ filename: z.string().optional(), // Original filename
44
+ mime_type: z.string().optional(), // MIME type of the image
45
+ });
46
+ /** Schema for thread read status response.
47
+ */
48
+ export const threadReadStatusSchema = z.object({
49
+ last_read_message: z.string().optional(), // Last read message
50
+ thread: z.string(), // Thread
51
+ unread_count: z.number().int(), // Number of unread messages
52
+ });
53
+ /** Schema for thread detail response in the developer portal.
54
+
55
+ Extended thread data including members and associated entities.
56
+ */
57
+ export const threadDetailSchema = z.object({
58
+ agent: z.unknown().optional(), // Associated agent info (id, name)
59
+ app_name: z.string().optional(), // Associated app name
60
+ created_at: z.string().optional(), // Created timestamp
61
+ creator: z.unknown().optional(), // Thread creator info (id, email, full_name)
62
+ id: z.string(), // Public ID (thr_...)
63
+ is_channel: z.boolean().optional(), // Whether this is a channel thread
64
+ is_default: z.boolean().optional(), // Whether this is the default thread
65
+ is_unlisted: z.boolean().optional(), // Whether thread is hidden from listings
66
+ key: z.string().optional(), // Unique key within owner scope
67
+ members: z.array(z.unknown()).optional(), // Thread member list
68
+ metadata: z.unknown().optional(), // Thread metadata
69
+ org: z.string().optional(), // Organization (nullable)
70
+ owner: z.string().optional(), // Owner public
71
+ owner_name: z.string().optional(), // Owner display name
72
+ owner_type: z.string().optional(), // Owner type: team, user, agent, or nil
73
+ sandbox: z.string().optional(), // Sandbox identifier (nullable)
74
+ slug: z.string().optional(), // URL-friendly slug
75
+ title: z.string(), // Thread title
76
+ updated_at: z.string().optional(), // Updated timestamp
77
+ });
78
+ /** Base64 encoded profile picture */
79
+ export const threadCreateParamsProfilePictureSchema = z.object({
80
+ data: z.string().optional(), // Base64 encoded image data
81
+ filename: z.string().optional(), // Original filename
82
+ mime_type: z.string().optional(), // MIME type of the image
83
+ });
84
+ /** Schema for thread creation parameters.
85
+
86
+ Used by both Users.Threads.Create and Teams.Threads.Create actions.
87
+ */
88
+ export const threadCreateParamsSchema = z.object({
89
+ create_legacy_agent: z.boolean().optional(), // Create a legacy chat agent for this thread
90
+ description: z.string().optional(), // Thread description
91
+ is_unlisted: z.boolean().optional(), // Whether the thread is unlisted
92
+ key: z.string().optional(), // Unique key for the thread
93
+ metadata: z.unknown().optional(), // Additional metadata
94
+ org_id: z.string().optional(), // Organization ID
95
+ profile_picture: threadCreateParamsProfilePictureSchema.optional(), // Base64 encoded profile picture
96
+ settings: z.unknown().optional(), // Thread settings
97
+ title: z.string().optional(), // Thread title
98
+ });
99
+ /** API schema for a thread message trajectory. */
100
+ export const threadMessageTrajectorySchema = z.object({
101
+ agent_message: z.string().optional(), // Agent message
102
+ created_at: z.string().optional(), // Creation timestamp
103
+ id: z.string(), // Thread message trajectory ID (tmt_...)
104
+ org: z.string().optional(), // Organization
105
+ sandbox: z.string().optional(), // Sandbox
106
+ thread: z.string().optional(), // Thread
107
+ trajectory: z.string().optional(), // Trajectory
108
+ updated_at: z.string().optional(), // Last update timestamp
109
+ user_message: z.string().optional(), // User message
110
+ });
111
+ /** API schema for a thread member. */
112
+ export const threadMemberSchema = z.object({
113
+ membership_type: z.string().optional(), // Membership type (owner or member)
114
+ thread: z.string().optional(), // Thread
115
+ user: userSchema.optional(), // User details (when loaded)
116
+ });
117
+ /** API schema for a thread action. */
118
+ export const threadActionSchema = z.object({
119
+ call_to_action: z.string().optional(), // Call to action text
120
+ completion_result: z.unknown().optional(), // Result after action completion
121
+ id: z.string(), // Thread action ID (tha_...)
122
+ metadata: z.unknown().optional(), // Action metadata
123
+ native_template: z.unknown().optional(), // Native template for mobile clients
124
+ org: z.string().optional(), // Organization
125
+ path: z.string().optional(), // URL path for action
126
+ sandbox: z.string().optional(), // Sandbox
127
+ status: z.string(), // Action status (active, canceled, done)
128
+ type: z.string(), // Action type (connect_google, add_credential, send_email)
129
+ });
130
+ /** Schema for thread update parameters.
131
+
132
+ Used by both Users.Threads.Update and Teams.Threads.Update actions.
133
+ */
134
+ export const threadUpdateParamsSchema = z.object({
135
+ description: z.string().optional(), // Thread description
136
+ metadata: z.unknown().optional(), // Additional metadata
137
+ profile_picture: threadUpdateParamsProfilePictureSchema.optional(), // Base64 encoded profile picture
138
+ title: z.string().optional(), // Thread title
139
+ });
140
+ /** Schema for a thread message in the developer portal.
141
+
142
+ Maps to serialized message output from developer portal API.
143
+ */
144
+ export const threadMessageSchema = z.object({
145
+ admin: z.unknown().optional(), // Admin-only metadata and trajectory
146
+ agent: z.string().optional(), // Agent identifier (nullable)
147
+ app: z.string().optional(), // App identifier
148
+ attachments: z.array(attachmentSchema).optional(), // Message attachments
149
+ content: z.string().optional(), // Message content
150
+ created_at: z.string().optional(), // Created timestamp
151
+ id: z.string(), // Public ID (msg_...)
152
+ org: z.string().optional(), // Organization (nullable)
153
+ sandbox: z.string().optional(), // Sandbox identifier (nullable)
154
+ sender: z.string().optional(), // Sender public
155
+ sender_name: z.string().optional(), // Display name of sender
156
+ sender_type: z.string().optional(), // Type: user, agent, or system
157
+ team: z.string().optional(), // Team identifier (nullable)
158
+ user: z.string().optional(), // User identifier (nullable)
159
+ });
160
+ /** Schema for thread settings response.
161
+
162
+ Used by thread settings show/update endpoints.
163
+ */
164
+ export const threadSettingsSchema = z.object({
165
+ agent_enabled: z.boolean().optional(), // Whether the agent is enabled for this thread
166
+ });
167
+ //# sourceMappingURL=threads.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"threads.js","sourceRoot":"","sources":["../../src/types/threads.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAE7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,oCAAoC;AACpC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,oBAAoB;IACvD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,qBAAqB;IACxD,OAAO,EAAE,UAAU,CAAC,QAAQ,EAAE,EAAE,sBAAsB;IACtD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,qBAAqB;IACzD,EAAE,EAAE,CAAC,CAAC,MAAM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,CAAC,QAAQ,EAAE,EAAE,6BAA6B;CAC3D,CAAC,CAAC;AAGH;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,+CAA+C;CACvF,CAAC,CAAC"}
@@ -0,0 +1,89 @@
1
+ import { z } from "zod";
2
+ /** API schema for a user. */
3
+ export declare const userSchema: z.ZodObject<{
4
+ alias: z.ZodOptional<z.ZodString>;
5
+ email: z.ZodOptional<z.ZodString>;
6
+ id: z.ZodString;
7
+ metadata: z.ZodOptional<z.ZodUnknown>;
8
+ name: z.ZodOptional<z.ZodString>;
9
+ org: z.ZodOptional<z.ZodString>;
10
+ sandbox: z.ZodOptional<z.ZodString>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ id: string;
13
+ email?: string | undefined;
14
+ alias?: string | undefined;
15
+ metadata?: unknown;
16
+ org?: string | undefined;
17
+ sandbox?: string | undefined;
18
+ name?: string | undefined;
19
+ }, {
20
+ id: string;
21
+ email?: string | undefined;
22
+ alias?: string | undefined;
23
+ metadata?: unknown;
24
+ org?: string | undefined;
25
+ sandbox?: string | undefined;
26
+ name?: string | undefined;
27
+ }>;
28
+ export type User = z.infer<typeof userSchema>;
29
+ /** API schema for a user invite. */
30
+ export declare const userInviteSchema: z.ZodObject<{
31
+ created_at: z.ZodOptional<z.ZodString>;
32
+ id: z.ZodString;
33
+ key: z.ZodOptional<z.ZodString>;
34
+ metadata: z.ZodOptional<z.ZodUnknown>;
35
+ thread: z.ZodOptional<z.ZodString>;
36
+ user: z.ZodOptional<z.ZodUnknown>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ id: string;
39
+ key?: string | undefined;
40
+ created_at?: string | undefined;
41
+ metadata?: unknown;
42
+ thread?: string | undefined;
43
+ user?: unknown;
44
+ }, {
45
+ id: string;
46
+ key?: string | undefined;
47
+ created_at?: string | undefined;
48
+ metadata?: unknown;
49
+ thread?: string | undefined;
50
+ user?: unknown;
51
+ }>;
52
+ export type UserInvite = z.infer<typeof userInviteSchema>;
53
+ /** API schema for user feedback on messages. */
54
+ export declare const userFeedbackSchema: z.ZodObject<{
55
+ comment: z.ZodOptional<z.ZodString>;
56
+ created_at: z.ZodOptional<z.ZodString>;
57
+ id: z.ZodString;
58
+ message: z.ZodString;
59
+ org: z.ZodOptional<z.ZodString>;
60
+ rating: z.ZodString;
61
+ sandbox: z.ZodOptional<z.ZodString>;
62
+ source: z.ZodString;
63
+ thread: z.ZodString;
64
+ updated_at: z.ZodOptional<z.ZodString>;
65
+ }, "strip", z.ZodTypeAny, {
66
+ message: string;
67
+ id: string;
68
+ thread: string;
69
+ rating: string;
70
+ source: string;
71
+ created_at?: string | undefined;
72
+ org?: string | undefined;
73
+ sandbox?: string | undefined;
74
+ comment?: string | undefined;
75
+ updated_at?: string | undefined;
76
+ }, {
77
+ message: string;
78
+ id: string;
79
+ thread: string;
80
+ rating: string;
81
+ source: string;
82
+ created_at?: string | undefined;
83
+ org?: string | undefined;
84
+ sandbox?: string | undefined;
85
+ comment?: string | undefined;
86
+ updated_at?: string | undefined;
87
+ }>;
88
+ export type UserFeedback = z.infer<typeof userFeedbackSchema>;
89
+ //# sourceMappingURL=users.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/types/users.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,6BAA6B;AAC7B,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;EAQrB,CAAC;AACH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAE9C,oCAAoC;AACpC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;EAO3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,gDAAgD;AAChD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -0,0 +1,37 @@
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: e195849d7226
4
+ import { z } from "zod";
5
+ /** API schema for a user. */
6
+ export const userSchema = z.object({
7
+ alias: z.string().optional(), // User alias/handle
8
+ email: z.string().optional(), // User email address
9
+ id: z.string(), // User ID
10
+ metadata: z.unknown().optional(), // User metadata
11
+ name: z.string().optional(), // User display name
12
+ org: z.string().optional(), // Organization
13
+ sandbox: z.string().optional(), // Sandbox
14
+ });
15
+ /** API schema for a user invite. */
16
+ export const userInviteSchema = z.object({
17
+ created_at: z.string().optional(), // Creation timestamp
18
+ id: z.string(), // Invite ID (uin_...)
19
+ key: z.string().optional(), // Invite key
20
+ metadata: z.unknown().optional(), // Invite metadata
21
+ thread: z.string().optional(), // Thread
22
+ user: z.unknown().optional(), // Invite creator
23
+ });
24
+ /** API schema for user feedback on messages. */
25
+ export const userFeedbackSchema = z.object({
26
+ comment: z.string().optional(), // Optional comment
27
+ created_at: z.string().optional(), // Creation timestamp
28
+ id: z.string(), // Feedback ID
29
+ message: z.string(), // Message
30
+ org: z.string().optional(), // Organization
31
+ rating: z.string(), // Rating (positive/negative)
32
+ sandbox: z.string().optional(), // Sandbox
33
+ source: z.string(), // Feedback source
34
+ thread: z.string(), // Thread
35
+ updated_at: z.string().optional(), // Update timestamp
36
+ });
37
+ //# sourceMappingURL=users.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/types/users.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;A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AAC,CAAC,MAAM,CAAC;IACzC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,mBAAmB;IACnD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,qBAAqB;IACxD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,cAAc;IAC9B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,UAAU;IAC/B,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,eAAe;IAC3C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,6BAA6B;IACjD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,UAAU;IAC1C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,kBAAkB;IACtC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,SAAS;IAC7B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,mBAAmB;CACvD,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { HttpClient } from "../../runtime/http-client.js";
2
+ import type { AgentComputer } from "../../types/agents.js";
3
+ import type { ComputerExecResult } from "../../types/common.js";
4
+ export declare class AgentComputerResource {
5
+ private http;
6
+ constructor(http: HttpClient);
7
+ refresh(computer: string, input: Record<string, unknown>): Promise<AgentComputer>;
8
+ delete(computer: string): Promise<void>;
9
+ get(computer: string): Promise<AgentComputer>;
10
+ exec(computer: string, input: Record<string, unknown>): Promise<ComputerExecResult>;
11
+ }
12
+ //# sourceMappingURL=agent_computers.d.ts.map
@@ -0,0 +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,qBAAqB;IACpB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAE9B,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,aAAa,CAAC;IAIjF,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIvC,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAI7C,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAG1F"}
@@ -0,0 +1,22 @@
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: 1f009ac6f7eb
4
+ export class AgentComputerResource {
5
+ http;
6
+ constructor(http) {
7
+ this.http = http;
8
+ }
9
+ async refresh(computer, input) {
10
+ return this.http.request(`/api/v1/agent_computers/${computer}/refresh`, { method: "POST", body: input });
11
+ }
12
+ async delete(computer) {
13
+ await this.http.request(`/api/v1/agent_computers/${computer}`, { method: "DELETE" });
14
+ }
15
+ async get(computer) {
16
+ return this.http.request(`/api/v1/agent_computers/${computer}`);
17
+ }
18
+ async exec(computer, input) {
19
+ return this.http.request(`/api/v1/agent_computers/${computer}/exec`, { method: "POST", body: input });
20
+ }
21
+ }
22
+ //# sourceMappingURL=agent_computers.js.map
@@ -0,0 +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,OAAO,CAAC,QAAgB,EAAE,KAA8B;QAC5D,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,2BAA2B,QAAQ,UAAU,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAC3G,CAAC;IAED,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,KAA8B;QACzD,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,2BAA2B,QAAQ,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACxG,CAAC;CACF"}
@@ -0,0 +1,22 @@
1
+ import { HttpClient } from "../../runtime/http-client.js";
2
+ import type { Installation, InstallationListResponse, InstallationSource } from "../../types/common.js";
3
+ export declare class InstallationSourceResource {
4
+ private http;
5
+ constructor(http: HttpClient);
6
+ list(installation: string): Promise<unknown>;
7
+ create(installation: string, input: Record<string, unknown>): Promise<InstallationSource>;
8
+ }
9
+ export declare class AgentInstallationResource {
10
+ private http;
11
+ readonly installation_sources: InstallationSourceResource;
12
+ constructor(http: HttpClient);
13
+ pause(installation: string, input: Record<string, unknown>): Promise<Installation>;
14
+ list(params?: {
15
+ agent?: string;
16
+ }): Promise<InstallationListResponse>;
17
+ activate(installation: string, input: Record<string, unknown>): Promise<Installation>;
18
+ delete(installation: string): Promise<void>;
19
+ get(installation: string): Promise<Installation>;
20
+ suspend(installation: string, input: Record<string, unknown>): Promise<Installation>;
21
+ }
22
+ //# sourceMappingURL=agent_installations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent_installations.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/agent_installations.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAExG,qBAAa,0BAA0B;IACzB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAE9B,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAI5C,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAGhG;AAED,qBAAa,yBAAyB;IAGxB,OAAO,CAAC,IAAI;IAFxB,QAAQ,CAAC,oBAAoB,EAAE,0BAA0B,CAAC;gBAEtC,IAAI,EAAE,UAAU;IAI9B,KAAK,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAIlF,IAAI,CAAC,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAIpE,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAIrF,MAAM,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI3C,GAAG,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAIhD,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;CAG3F"}
@@ -0,0 +1,42 @@
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: 0db38bd1c035
4
+ export class InstallationSourceResource {
5
+ http;
6
+ constructor(http) {
7
+ this.http = http;
8
+ }
9
+ async list(installation) {
10
+ return this.http.request(`/api/v1/agent_installations/${installation}/installation_sources`);
11
+ }
12
+ async create(installation, input) {
13
+ return this.http.request(`/api/v1/agent_installations/${installation}/installation_sources`, { method: "POST", body: input });
14
+ }
15
+ }
16
+ export class AgentInstallationResource {
17
+ http;
18
+ installation_sources;
19
+ constructor(http) {
20
+ this.http = http;
21
+ this.installation_sources = new InstallationSourceResource(http);
22
+ }
23
+ async pause(installation, input) {
24
+ return this.http.request(`/api/v1/agent_installations/${installation}/pause`, { method: "POST", body: input });
25
+ }
26
+ async list(params) {
27
+ return this.http.request(`/api/v1/agent_installations`, { query: params });
28
+ }
29
+ async activate(installation, input) {
30
+ return this.http.request(`/api/v1/agent_installations/${installation}/activate`, { method: "POST", body: input });
31
+ }
32
+ async delete(installation) {
33
+ await this.http.request(`/api/v1/agent_installations/${installation}`, { method: "DELETE" });
34
+ }
35
+ async get(installation) {
36
+ return this.http.request(`/api/v1/agent_installations/${installation}`);
37
+ }
38
+ async suspend(installation, input) {
39
+ return this.http.request(`/api/v1/agent_installations/${installation}/suspend`, { method: "POST", body: input });
40
+ }
41
+ }
42
+ //# sourceMappingURL=agent_installations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent_installations.js","sourceRoot":"","sources":["../../../src/v1/resources/agent_installations.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAK7B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B,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,+BAA+B,YAAY,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,YAAoB;QAC5B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,+BAA+B,YAAY,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,YAAoB,EAAE,KAA8B;QAChE,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,+BAA+B,YAAY,UAAU,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACnH,CAAC;CACF"}
@@ -0,0 +1,36 @@
1
+ import { HttpClient } from "../../runtime/http-client.js";
2
+ import type { AgentRoutine, AgentRoutineListResponse, AgentRoutineRun, AgentRoutineRunListResponse } from "../../types/agents.js";
3
+ import type { RoutinePreset } from "../../types/common.js";
4
+ export declare class RunResource {
5
+ private http;
6
+ constructor(http: HttpClient);
7
+ list(routine: string, params?: {
8
+ status?: string;
9
+ limit?: number;
10
+ beforeCursor?: string;
11
+ afterCursor?: string;
12
+ }): Promise<AgentRoutineRunListResponse>;
13
+ get(routine: string, run: string): Promise<AgentRoutineRun>;
14
+ }
15
+ export declare class PresetResource {
16
+ private http;
17
+ constructor(http: HttpClient);
18
+ list(): Promise<RoutinePreset[]>;
19
+ }
20
+ export declare class AgentRoutineResource {
21
+ private http;
22
+ readonly runs: RunResource;
23
+ readonly presets: PresetResource;
24
+ constructor(http: HttpClient);
25
+ list(params?: {
26
+ agent?: string;
27
+ eventType?: string;
28
+ }): Promise<AgentRoutineListResponse>;
29
+ invoke(routine: string, input: Record<string, unknown>): Promise<AgentRoutineRun>;
30
+ activate(routine: string, input: Record<string, unknown>): Promise<AgentRoutine>;
31
+ pause(routine: string, input: Record<string, unknown>): Promise<AgentRoutine>;
32
+ delete(routine: string): Promise<void>;
33
+ get(routine: string): Promise<AgentRoutine>;
34
+ update(routine: string, input: Record<string, unknown>): Promise<AgentRoutine>;
35
+ }
36
+ //# sourceMappingURL=agent_routines.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent_routines.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/agent_routines.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,wBAAwB,EAAE,eAAe,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAClI,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,qBAAa,WAAW;IACV,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAE9B,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAAE,MAAM,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,2BAA2B,CAAC;IAItJ,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;CAGlE;AAED,qBAAa,cAAc;IACb,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAE9B,IAAI,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;CAGvC;AAED,qBAAa,oBAAoB;IAInB,OAAO,CAAC,IAAI;IAHxB,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC;gBAEb,IAAI,EAAE,UAAU;IAK9B,IAAI,CAAC,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAIxF,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC;IAIjF,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAIhF,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAI7E,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAItC,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAI3C,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;CAGrF"}
@@ -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: 6c1669773e61
4
+ export class RunResource {
5
+ http;
6
+ constructor(http) {
7
+ this.http = http;
8
+ }
9
+ async list(routine, params) {
10
+ return this.http.request(`/api/v1/agent_routines/${routine}/runs`, { query: params });
11
+ }
12
+ async get(routine, run) {
13
+ return this.http.request(`/api/v1/agent_routines/runs/${run}`);
14
+ }
15
+ }
16
+ export class PresetResource {
17
+ http;
18
+ constructor(http) {
19
+ this.http = http;
20
+ }
21
+ async list() {
22
+ return this.http.request(`/api/v1/agent_routines/presets`);
23
+ }
24
+ }
25
+ export class AgentRoutineResource {
26
+ http;
27
+ runs;
28
+ presets;
29
+ constructor(http) {
30
+ this.http = http;
31
+ this.runs = new RunResource(http);
32
+ this.presets = new PresetResource(http);
33
+ }
34
+ async list(params) {
35
+ return this.http.request(`/api/v1/agent_routines`, { query: params });
36
+ }
37
+ async invoke(routine, input) {
38
+ return this.http.request(`/api/v1/agent_routines/${routine}/invoke`, { method: "POST", body: input });
39
+ }
40
+ async activate(routine, input) {
41
+ return this.http.request(`/api/v1/agent_routines/${routine}/activate`, { method: "POST", body: input });
42
+ }
43
+ async pause(routine, input) {
44
+ return this.http.request(`/api/v1/agent_routines/${routine}/pause`, { method: "POST", body: input });
45
+ }
46
+ async delete(routine) {
47
+ await this.http.request(`/api/v1/agent_routines/${routine}`, { method: "DELETE" });
48
+ }
49
+ async get(routine) {
50
+ return this.http.request(`/api/v1/agent_routines/${routine}`);
51
+ }
52
+ async update(routine, input) {
53
+ return this.http.request(`/api/v1/agent_routines/${routine}`, { method: "PATCH", body: input });
54
+ }
55
+ }
56
+ //# sourceMappingURL=agent_routines.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent_routines.js","sourceRoot":"","sources":["../../../src/v1/resources/agent_routines.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAM7B,MAAM,OAAO,WAAW;IACF;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,KAAK,CAAC,IAAI,CAAC,OAAe,EAAE,MAAyF;QACnH,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,0BAA0B,OAAO,OAAO,EAAE,EAAE,KAAK,EAAE,MAA+D,EAAE,CAAC,CAAC;IACjJ,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,OAAe,EAAE,GAAW;QACpC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,+BAA+B,GAAG,EAAE,CAAC,CAAC;IACjE,CAAC;CACF;AAED,MAAM,OAAO,cAAc;IACL;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,KAAK,CAAC,IAAI;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,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;IACrF,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,OAAe;QACvB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,0BAA0B,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAAe,EAAE,KAA8B;QAC1D,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,0BAA0B,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAClG,CAAC;CACF"}
@@ -0,0 +1,19 @@
1
+ import { HttpClient } from "../../runtime/http-client.js";
2
+ import type { AgentSession, AgentSessionListResponse } from "../../types/agents.js";
3
+ export declare class AgentSessionResource {
4
+ private http;
5
+ constructor(http: HttpClient);
6
+ cancel(agentSession: string, input: Record<string, unknown>): Promise<AgentSession>;
7
+ delete(agentSession: string): Promise<void>;
8
+ get(agentSession: string): Promise<AgentSession>;
9
+ update(agentSession: string, input: Record<string, unknown>): Promise<AgentSession>;
10
+ list(params?: {
11
+ agent?: string;
12
+ status?: string[];
13
+ routineRun?: string[];
14
+ excludeSystem?: boolean;
15
+ }): Promise<AgentSessionListResponse>;
16
+ create(input: Record<string, unknown>): Promise<AgentSession>;
17
+ message(agentSession: string, input: Record<string, unknown>): Promise<AgentSession>;
18
+ }
19
+ //# sourceMappingURL=agent_sessions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent_sessions.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/agent_sessions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEpF,qBAAa,oBAAoB;IACnB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAE9B,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAInF,MAAM,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI3C,GAAG,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAIhD,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAInF,IAAI,CAAC,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,aAAa,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAIvI,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAI7D,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;CAG3F"}
@@ -0,0 +1,31 @@
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: f429adde6c13
4
+ export class AgentSessionResource {
5
+ http;
6
+ constructor(http) {
7
+ this.http = http;
8
+ }
9
+ async cancel(agentSession, input) {
10
+ return this.http.request(`/api/v1/agent_sessions/${agentSession}/cancel`, { method: "POST", body: input });
11
+ }
12
+ async delete(agentSession) {
13
+ await this.http.request(`/api/v1/agent_sessions/${agentSession}`, { method: "DELETE" });
14
+ }
15
+ async get(agentSession) {
16
+ return this.http.request(`/api/v1/agent_sessions/${agentSession}`);
17
+ }
18
+ async update(agentSession, input) {
19
+ return this.http.request(`/api/v1/agent_sessions/${agentSession}`, { method: "PATCH", body: input });
20
+ }
21
+ async list(params) {
22
+ return this.http.request(`/api/v1/agent_sessions`, { query: params });
23
+ }
24
+ async create(input) {
25
+ return this.http.request(`/api/v1/agent_sessions`, { method: "POST", body: input });
26
+ }
27
+ async message(agentSession, input) {
28
+ return this.http.request(`/api/v1/agent_sessions/${agentSession}/message`, { method: "POST", body: input });
29
+ }
30
+ }
31
+ //# sourceMappingURL=agent_sessions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent_sessions.js","sourceRoot":"","sources":["../../../src/v1/resources/agent_sessions.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,oBAAoB;IACX;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,KAAK,CAAC,MAAM,CAAC,YAAoB,EAAE,KAA8B;QAC/D,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,0BAA0B,YAAY,SAAS,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7G,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,YAAoB;QAC/B,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,0BAA0B,YAAY,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,YAAoB;QAC5B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,0BAA0B,YAAY,EAAE,CAAC,CAAC;IACrE,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,YAAoB,EAAE,KAA8B;QAC/D,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,0BAA0B,YAAY,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACvG,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,MAA8F;QACvG,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,MAA+D,EAAE,CAAC,CAAC;IACjI,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,KAA8B;QACzC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACtF,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,YAAoB,EAAE,KAA8B;QAChE,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,0BAA0B,YAAY,UAAU,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAC9G,CAAC;CACF"}
@@ -0,0 +1,16 @@
1
+ import { HttpClient } from "../../runtime/http-client.js";
2
+ import type { AgentSkill, AgentSkillList } from "../../types/agents.js";
3
+ export declare class AgentSkillResource {
4
+ private http;
5
+ constructor(http: HttpClient);
6
+ activate(agentSkill: string, input: Record<string, unknown>): Promise<AgentSkill>;
7
+ delete(agentSkill: string): Promise<void>;
8
+ get(agentSkill: string): Promise<AgentSkill>;
9
+ update(agentSkill: string, input: Record<string, unknown>): Promise<AgentSkill>;
10
+ list(params?: {
11
+ agent?: string[];
12
+ }): Promise<AgentSkillList>;
13
+ create(input: Record<string, unknown>): Promise<AgentSkill>;
14
+ deactivate(agentSkill: string, input: Record<string, unknown>): Promise<AgentSkill>;
15
+ }
16
+ //# sourceMappingURL=agent_skills.d.ts.map