@archastro/sdk 0.7.0 → 0.8.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 (222) hide show
  1. package/dist/auth.d.ts +5 -3
  2. package/dist/auth.d.ts.map +1 -1
  3. package/dist/auth.js +7 -5
  4. package/dist/auth.js.map +1 -1
  5. package/dist/channels/api_activity_feed_channel.js +2 -2
  6. package/dist/channels/api_activity_feed_channel.js.map +1 -1
  7. package/dist/channels/api_chat_channel.js +2 -2
  8. package/dist/channels/api_chat_channel.js.map +1 -1
  9. package/dist/channels/api_object_channel.d.ts +13 -2
  10. package/dist/channels/api_object_channel.d.ts.map +1 -1
  11. package/dist/channels/api_object_channel.js +21 -6
  12. package/dist/channels/api_object_channel.js.map +1 -1
  13. package/dist/channels/api_tasks_channel.d.ts +30 -0
  14. package/dist/channels/api_tasks_channel.d.ts.map +1 -0
  15. package/dist/channels/api_tasks_channel.js +45 -0
  16. package/dist/channels/api_tasks_channel.js.map +1 -0
  17. package/dist/client.d.ts +10 -0
  18. package/dist/client.d.ts.map +1 -1
  19. package/dist/client.js +12 -2
  20. package/dist/client.js.map +1 -1
  21. package/dist/index.d.ts +1 -0
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +3 -2
  24. package/dist/index.js.map +1 -1
  25. package/dist/types/ai.d.ts +66 -52
  26. package/dist/types/ai.d.ts.map +1 -1
  27. package/dist/types/ai.js +7 -2
  28. package/dist/types/ai.js.map +1 -1
  29. package/dist/types/artifacts.d.ts +8 -8
  30. package/dist/types/artifacts.js +2 -2
  31. package/dist/types/artifacts.js.map +1 -1
  32. package/dist/types/automations.d.ts +68 -10
  33. package/dist/types/automations.d.ts.map +1 -1
  34. package/dist/types/automations.js +22 -2
  35. package/dist/types/automations.js.map +1 -1
  36. package/dist/types/chat.d.ts +18446 -3559
  37. package/dist/types/chat.d.ts.map +1 -1
  38. package/dist/types/chat.js +2 -2
  39. package/dist/types/chat.js.map +1 -1
  40. package/dist/types/common.d.ts +12646 -2316
  41. package/dist/types/common.d.ts.map +1 -1
  42. package/dist/types/common.js +372 -80
  43. package/dist/types/common.js.map +1 -1
  44. package/dist/types/config.d.ts +22 -10
  45. package/dist/types/config.d.ts.map +1 -1
  46. package/dist/types/config.js +4 -2
  47. package/dist/types/config.js.map +1 -1
  48. package/dist/types/device.d.ts +60 -0
  49. package/dist/types/device.d.ts.map +1 -0
  50. package/dist/types/device.js +25 -0
  51. package/dist/types/device.js.map +1 -0
  52. package/dist/types/extractions.d.ts +452 -0
  53. package/dist/types/extractions.d.ts.map +1 -0
  54. package/dist/types/extractions.js +52 -0
  55. package/dist/types/extractions.js.map +1 -0
  56. package/dist/types/image.js +2 -2
  57. package/dist/types/image.js.map +1 -1
  58. package/dist/types/index.d.ts +3 -0
  59. package/dist/types/index.d.ts.map +1 -1
  60. package/dist/types/index.js +5 -2
  61. package/dist/types/index.js.map +1 -1
  62. package/dist/types/invites.js +2 -2
  63. package/dist/types/invites.js.map +1 -1
  64. package/dist/types/notifications.d.ts +2 -2
  65. package/dist/types/notifications.js +2 -2
  66. package/dist/types/notifications.js.map +1 -1
  67. package/dist/types/oauth.d.ts +117 -0
  68. package/dist/types/oauth.d.ts.map +1 -0
  69. package/dist/types/oauth.js +21 -0
  70. package/dist/types/oauth.js.map +1 -0
  71. package/dist/types/teams.d.ts +2402 -242
  72. package/dist/types/teams.d.ts.map +1 -1
  73. package/dist/types/teams.js +2 -2
  74. package/dist/types/teams.js.map +1 -1
  75. package/dist/types/threads.d.ts +1419 -328
  76. package/dist/types/threads.d.ts.map +1 -1
  77. package/dist/types/threads.js +18 -17
  78. package/dist/types/threads.js.map +1 -1
  79. package/dist/types/users.d.ts +2 -2
  80. package/dist/types/users.js +2 -2
  81. package/dist/types/users.js.map +1 -1
  82. package/dist/v1/resources/activity_feed.d.ts +84 -0
  83. package/dist/v1/resources/activity_feed.d.ts.map +1 -1
  84. package/dist/v1/resources/activity_feed.js +2 -2
  85. package/dist/v1/resources/activity_feed.js.map +1 -1
  86. package/dist/v1/resources/agent_computers.js +2 -2
  87. package/dist/v1/resources/agent_computers.js.map +1 -1
  88. package/dist/v1/resources/agent_env_vars.js +2 -2
  89. package/dist/v1/resources/agent_env_vars.js.map +1 -1
  90. package/dist/v1/resources/agent_health_actions.js +2 -2
  91. package/dist/v1/resources/agent_health_actions.js.map +1 -1
  92. package/dist/v1/resources/agent_installations.d.ts +2 -2
  93. package/dist/v1/resources/agent_installations.d.ts.map +1 -1
  94. package/dist/v1/resources/agent_installations.js +3 -3
  95. package/dist/v1/resources/agent_installations.js.map +1 -1
  96. package/dist/v1/resources/agent_routine_runs.d.ts +16 -1
  97. package/dist/v1/resources/agent_routine_runs.d.ts.map +1 -1
  98. package/dist/v1/resources/agent_routine_runs.js +16 -2
  99. package/dist/v1/resources/agent_routine_runs.js.map +1 -1
  100. package/dist/v1/resources/agent_routines.d.ts +47 -3
  101. package/dist/v1/resources/agent_routines.d.ts.map +1 -1
  102. package/dist/v1/resources/agent_routines.js +42 -3
  103. package/dist/v1/resources/agent_routines.js.map +1 -1
  104. package/dist/v1/resources/agent_sessions.d.ts +14 -2
  105. package/dist/v1/resources/agent_sessions.d.ts.map +1 -1
  106. package/dist/v1/resources/agent_sessions.js +14 -3
  107. package/dist/v1/resources/agent_sessions.js.map +1 -1
  108. package/dist/v1/resources/agent_skills.js +2 -2
  109. package/dist/v1/resources/agent_skills.js.map +1 -1
  110. package/dist/v1/resources/agent_tools.d.ts +2 -2
  111. package/dist/v1/resources/agent_tools.d.ts.map +1 -1
  112. package/dist/v1/resources/agent_tools.js +3 -3
  113. package/dist/v1/resources/agent_tools.js.map +1 -1
  114. package/dist/v1/resources/agents.d.ts +152 -35
  115. package/dist/v1/resources/agents.d.ts.map +1 -1
  116. package/dist/v1/resources/agents.js +148 -42
  117. package/dist/v1/resources/agents.js.map +1 -1
  118. package/dist/v1/resources/ai.d.ts +81 -40
  119. package/dist/v1/resources/ai.d.ts.map +1 -1
  120. package/dist/v1/resources/ai.js +52 -17
  121. package/dist/v1/resources/ai.js.map +1 -1
  122. package/dist/v1/resources/artifacts.js +2 -2
  123. package/dist/v1/resources/artifacts.js.map +1 -1
  124. package/dist/v1/resources/automation_runs.d.ts +41 -6
  125. package/dist/v1/resources/automation_runs.d.ts.map +1 -1
  126. package/dist/v1/resources/automation_runs.js +47 -8
  127. package/dist/v1/resources/automation_runs.js.map +1 -1
  128. package/dist/v1/resources/automations.d.ts +14 -1
  129. package/dist/v1/resources/automations.d.ts.map +1 -1
  130. package/dist/v1/resources/automations.js +15 -3
  131. package/dist/v1/resources/automations.js.map +1 -1
  132. package/dist/v1/resources/bug_reports.js +2 -2
  133. package/dist/v1/resources/bug_reports.js.map +1 -1
  134. package/dist/v1/resources/config.d.ts +3 -0
  135. package/dist/v1/resources/config.d.ts.map +1 -1
  136. package/dist/v1/resources/config.js +2 -2
  137. package/dist/v1/resources/config.js.map +1 -1
  138. package/dist/v1/resources/custom_objects.js +2 -2
  139. package/dist/v1/resources/custom_objects.js.map +1 -1
  140. package/dist/v1/resources/extractions.d.ts +50 -0
  141. package/dist/v1/resources/extractions.d.ts.map +1 -0
  142. package/dist/v1/resources/extractions.js +48 -0
  143. package/dist/v1/resources/extractions.js.map +1 -0
  144. package/dist/v1/resources/files.d.ts +88 -1
  145. package/dist/v1/resources/files.d.ts.map +1 -1
  146. package/dist/v1/resources/files.js +86 -3
  147. package/dist/v1/resources/files.js.map +1 -1
  148. package/dist/v1/resources/index.d.ts +5 -0
  149. package/dist/v1/resources/index.d.ts.map +1 -1
  150. package/dist/v1/resources/index.js +7 -2
  151. package/dist/v1/resources/index.js.map +1 -1
  152. package/dist/v1/resources/installation_sources.js +2 -2
  153. package/dist/v1/resources/installation_sources.js.map +1 -1
  154. package/dist/v1/resources/invites.js +2 -2
  155. package/dist/v1/resources/invites.js.map +1 -1
  156. package/dist/v1/resources/knowledge_documents.d.ts +33 -1
  157. package/dist/v1/resources/knowledge_documents.d.ts.map +1 -1
  158. package/dist/v1/resources/knowledge_documents.js +25 -2
  159. package/dist/v1/resources/knowledge_documents.js.map +1 -1
  160. package/dist/v1/resources/knowledge_ingestions.d.ts +16 -0
  161. package/dist/v1/resources/knowledge_ingestions.d.ts.map +1 -0
  162. package/dist/v1/resources/knowledge_ingestions.js +21 -0
  163. package/dist/v1/resources/knowledge_ingestions.js.map +1 -0
  164. package/dist/v1/resources/knowledge_sources.d.ts +2 -0
  165. package/dist/v1/resources/knowledge_sources.d.ts.map +1 -1
  166. package/dist/v1/resources/knowledge_sources.js +3 -2
  167. package/dist/v1/resources/knowledge_sources.js.map +1 -1
  168. package/dist/v1/resources/kv.js +2 -2
  169. package/dist/v1/resources/kv.js.map +1 -1
  170. package/dist/v1/resources/notification_preferences.js +2 -2
  171. package/dist/v1/resources/notification_preferences.js.map +1 -1
  172. package/dist/v1/resources/notifications.js +2 -2
  173. package/dist/v1/resources/notifications.js.map +1 -1
  174. package/dist/v1/resources/oauth.d.ts +115 -0
  175. package/dist/v1/resources/oauth.d.ts.map +1 -0
  176. package/dist/v1/resources/oauth.js +112 -0
  177. package/dist/v1/resources/oauth.js.map +1 -0
  178. package/dist/v1/resources/orgs.js +2 -2
  179. package/dist/v1/resources/orgs.js.map +1 -1
  180. package/dist/v1/resources/slack_channel_bindings.d.ts +25 -0
  181. package/dist/v1/resources/slack_channel_bindings.d.ts.map +1 -1
  182. package/dist/v1/resources/slack_channel_bindings.js +24 -2
  183. package/dist/v1/resources/slack_channel_bindings.js.map +1 -1
  184. package/dist/v1/resources/solution_categories.js +2 -2
  185. package/dist/v1/resources/solution_categories.js.map +1 -1
  186. package/dist/v1/resources/solution_instances.d.ts +26 -0
  187. package/dist/v1/resources/solution_instances.d.ts.map +1 -0
  188. package/dist/v1/resources/solution_instances.js +35 -0
  189. package/dist/v1/resources/solution_instances.js.map +1 -0
  190. package/dist/v1/resources/solution_tags.js +2 -2
  191. package/dist/v1/resources/solution_tags.js.map +1 -1
  192. package/dist/v1/resources/solutions.d.ts +85 -1
  193. package/dist/v1/resources/solutions.d.ts.map +1 -1
  194. package/dist/v1/resources/solutions.js +67 -3
  195. package/dist/v1/resources/solutions.js.map +1 -1
  196. package/dist/v1/resources/team_memberships.js +2 -2
  197. package/dist/v1/resources/team_memberships.js.map +1 -1
  198. package/dist/v1/resources/teams.d.ts +210 -4
  199. package/dist/v1/resources/teams.d.ts.map +1 -1
  200. package/dist/v1/resources/teams.js +16 -6
  201. package/dist/v1/resources/teams.js.map +1 -1
  202. package/dist/v1/resources/thread_messages.d.ts +24 -4
  203. package/dist/v1/resources/thread_messages.d.ts.map +1 -1
  204. package/dist/v1/resources/thread_messages.js +9 -6
  205. package/dist/v1/resources/thread_messages.js.map +1 -1
  206. package/dist/v1/resources/threads.d.ts +158 -42
  207. package/dist/v1/resources/threads.d.ts.map +1 -1
  208. package/dist/v1/resources/threads.js +121 -32
  209. package/dist/v1/resources/threads.js.map +1 -1
  210. package/dist/v1/resources/users.d.ts +132 -1
  211. package/dist/v1/resources/users.d.ts.map +1 -1
  212. package/dist/v1/resources/users.js +4 -2
  213. package/dist/v1/resources/users.js.map +1 -1
  214. package/dist/v1/resources/work_items.d.ts +78 -0
  215. package/dist/v1/resources/work_items.d.ts.map +1 -0
  216. package/dist/v1/resources/work_items.js +86 -0
  217. package/dist/v1/resources/work_items.js.map +1 -0
  218. package/dist/v1.d.ts +10 -0
  219. package/dist/v1.d.ts.map +1 -1
  220. package/dist/v1.js +17 -2
  221. package/dist/v1.js.map +1 -1
  222. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"knowledge_sources.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/knowledge_sources.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AAEhH,qBAAa,2BAA2B;IAC1B,OAAO,CAAC,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,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,GAAG,OAAO,CAAC,eAAe,CAAC;IAI5L;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE;QAAE,OAAO,CAAC,EAAE;YAAE,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YAAC,IAAI,EAAE,MAAM,CAAC;YAAC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;SAAE,GAAG,SAAS,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAGlX"}
@@ -1,6 +1,6 @@
1
- // Copyright (c) 2026 ArchAstro Inc. All Rights Reserved.
1
+ // Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
2
2
  // This file is auto-generated by @archastro/sdk-generator. Do not edit.
3
- // Content hash: 32ce32920932
3
+ // Content hash: 0d36525fff39
4
4
  export class KnowledgeSourceKindResource {
5
5
  http;
6
6
  constructor(http) {
@@ -163,6 +163,7 @@ export class KnowledgeSourceResource {
163
163
  * @param source - Knowledge source ID (`ksrc_...`) to ingest.
164
164
  * @param input - Request body.
165
165
  * @param input.content - Inline document bytes to push to the source. Mutually exclusive with `file` and `pull`.
166
+ * @param input.dedupe - When `true`, reuse the source's existing document if the pushed content is byte-identical to it, instead of creating a duplicate. The reused document keeps its chunks and embeddings, and `title`/`metadata` from this request are still applied to it. Content that differs in any way always creates a new document. Defaults to `false`, which creates a new document on every push. Push mode only — not valid with `pull: true`. Check `metadata.document_reused` on the returned ingestion to see whether a document was actually reused.
166
167
  * @param input.file - ID of an already-uploaded file (`fil_...`). The runner reads filename and content type from the stored file. Upload the file via `POST /v1/files` first. Mutually exclusive with `content` and `pull`.
167
168
  * @param input.metadata - Arbitrary key-value metadata to attach to the ingested document. Applied in push mode only; ignored when `pull: true`.
168
169
  * @param input.pull - When `true`, re-triggers ingestion using the source's own configured data. Re-scrapes a `scrape/site`, re-fetches a `web/link`, or re-processes a `file/document`. Mutually exclusive with `file` and `content`. Not valid for `knowledge/documents` sources.
@@ -1 +1 @@
1
- {"version":3,"file":"knowledge_sources.js","sourceRoot":"","sources":["../../../src/v1/resources/knowledge_sources.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,2BAA2B;IAClB;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;OASG;IACH,KAAK,CAAC,IAAI;QACR,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,iCAAiC,CAAC,CAAC;IAC9D,CAAC;CACF;AAED,MAAM,OAAO,uBAAuB;IAGd;IAFX,KAAK,CAA8B;IAE5C,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;QAClC,IAAI,CAAC,KAAK,GAAG,IAAI,2BAA2B,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,IAAI,CAAC,MAAgL;QACzL,MAAM,KAAK,GAA6F,EAAE,CAAC;QAC3G,IAAI,MAAM,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAC/B,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,IAAI,CA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License.
2
2
  // This file is auto-generated by @archastro/sdk-generator. Do not edit.
3
- // Content hash: e121fa00429e
3
+ // Content hash: c73677fe802c
4
4
  export class KvResource {
5
5
  http;
6
6
  constructor(http) {
@@ -1 +1 @@
1
- {"version":3,"file":"kv.js","sourceRoot":"","sources":["../../../src/v1/resources/kv.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,UAAU;IACD;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,IAAI,CAAC,MAA+F;QACxG,MAAM,KAAK,GAA6F,EAAE,CAAC;QAC3G,IAAI,MAAM,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAC/B,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,IAAI,CAAC;QAC/B,CAAC;QACD,IAAI,MAAM,EAAE,QAAQ,KAAK,SAAS,EAAE,CAAC;YACnC,KAAK,CAAC,WAAW,CAAC,GAAG,MAAM,EAAE,QAAQ,CAAC;QACxC,CAAC;QACD,IAAI,MAAM,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAC/B,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,IAAI,CAAC;QAC/B,CAAC;QACD,IAAI,MAAM,EAAE,UAAU,KAAK,SAAS,EAAE,CAAC;YACrC,KAAK,CAAC,aAAa,CAAC,GAAG,MAAM,EAAE,UAAU,CAAC;QAC5C,CAAC;QACD,IAAI,MAAM,EAAE,GAAG,KAAK,SAAS,EAAE,CAAC;YAC9B,KAAK,CAAC,KAAK,CAAC,GAAG,MAAM,EAAE,GAAG,CAAC;QAC7B,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IACpD,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,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C/C,MAAM,KAAK,GAA6F,EAAE,CAAC;QAC3G,IAAI,MAAM,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAC/B,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,IAAI,CAAC;QAC/B,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,MAAM,CAAC,GAAW,EAAE,KAAmD;QAC3E,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAChF,CAAC;CACF"}
@@ -1,6 +1,6 @@
1
- // Copyright (c) 2026 ArchAstro Inc. All Rights Reserved.
1
+ // Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
2
2
  // This file is auto-generated by @archastro/sdk-generator. Do not edit.
3
- // Content hash: 56f6e81ca367
3
+ // Content hash: 19087c318c11
4
4
  export class NotificationPreferenceResource {
5
5
  http;
6
6
  constructor(http) {
@@ -1 +1 @@
1
- {"version":3,"file":"notification_preferences.js","sourceRoot":"","sources":["../../../src/v1/resources/notification_preferences.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,8BAA8B;IACrB;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,MAAM;QACV,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,kCAAkC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,IAAI;QACR,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,kCAAkC,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,KAAK,CAAC,OAAO,CAAC,KAAuF;QACnG,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,kCAAkC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAC/F,CAAC;CACF"}
1
+ {"version":3,"file":"notification_preferences.js","sourceRoot":"","sources":["../../../src/v1/resources/notification_preferences.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,8BAA8B;IACrB;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,MAAM;QACV,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,kCAAkC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,IAAI;QACR,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,kCAAkC,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,KAAK,CAAC,OAAO,CAAC,KAAuF;QACnG,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,kCAAkC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAC/F,CAAC;CACF"}
@@ -1,6 +1,6 @@
1
- // Copyright (c) 2026 ArchAstro Inc. All Rights Reserved.
1
+ // Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
2
2
  // This file is auto-generated by @archastro/sdk-generator. Do not edit.
3
- // Content hash: 23416df03aaa
3
+ // Content hash: 20a294b0a2cf
4
4
  export class NotificationResource {
5
5
  http;
6
6
  constructor(http) {
@@ -1 +1 @@
1
- {"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../../src/v1/resources/notifications.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;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,CAAC,IAAI,CAAC,MAAkE;QAC3E,MAAM,KAAK,GAA6F,EAAE,CAAC;QAC3G,IAAI,MAAM,EAAE,MAAM,KAAK,SAAS,EAAE,CAAC;YACjC,KAAK,CAAC,QAAQ,CAAC,GAAG,MAAM,EAAE,MAAM,CAAC;QACnC,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,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;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,OAAO;QACX,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,gCAAgC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,KAAK,CAAC,IAAI,CAAC,KAAuH;QAChI,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,4BAA4B,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;;;;;;;OAQG;IACH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AyB,YAAY,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACjG,CAAC;CACF"}
@@ -0,0 +1,115 @@
1
+ import { HttpClient } from "../../runtime/http-client.js";
2
+ import type { DeviceAuthorizationResponse, DeviceAuthorizationStatusResponse } from "../../types/device.js";
3
+ import type { OAuthTokenResponse } from "../../types/oauth.js";
4
+ export declare class DeviceResource {
5
+ private http;
6
+ constructor(http: HttpClient);
7
+ /**
8
+ * Approve a device authorization request
9
+ * Grants the pending device authorization identified by `user_code`, completing
10
+ * the OAuth Device Authorization flow on behalf of the authenticated user. Once
11
+ * approved, the device can exchange the `device_code` for an access token.
12
+ * Requires a valid user session — the request must be authenticated as an end
13
+ * user, not a machine client. The `user_code` must belong to a pending (not
14
+ * expired, not already approved or denied) authorization associated with the
15
+ * calling app.
16
+ * If the requested scopes include a `thread`-scoped permission, you must supply
17
+ * the `thread` parameter; omitting it returns a 400 with `error: "invalid_scope"`.
18
+ * @param input - Request body.
19
+ * @param input.thread - Thread ID (`thr_...`) to bind to the authorization. Required when the requested scopes include a thread-scoped permission.
20
+ * @param input.user_code - User-facing verification code shown on the device. Identifies the pending authorization to approve.
21
+ * @returns Confirmation that the device authorization was approved. The `status` field will be `"approved"`.
22
+ */
23
+ approve(input: {
24
+ thread?: string | undefined;
25
+ user_code: string;
26
+ }): Promise<DeviceAuthorizationStatusResponse>;
27
+ /**
28
+ * Initiate a device authorization request
29
+ * Starts the OAuth 2.0 Device Authorization flow for a device that cannot
30
+ * perform browser-based redirects. Returns a `device_code` (used by the device
31
+ * to poll for a token) and a `user_code` (shown to the user to enter at the
32
+ * `verification_uri`).
33
+ * This endpoint requires a publishable API key; secret keys are rejected with
34
+ * a 403. Third-party OAuth must be enabled on the app; if it is not, the
35
+ * response returns `error: "third_party_oauth_not_enabled"` with a 403.
36
+ * The endpoint is rate-limited to 10 requests per IP per minute. Excess
37
+ * requests receive a 429 response. The returned codes expire after
38
+ * `expires_in` seconds; once expired, a new authorization request must be
39
+ * initiated.
40
+ * @param input - Request body.
41
+ * @param input.client - OAuth client ID (`cli_...`) identifying the application requesting authorization.
42
+ * @param input.scope - Space-separated list of OAuth scopes to request, e.g. `"read write"`. Omit to request only the default scopes configured for the client.
43
+ * @returns Device authorization codes and polling parameters. Present the `user_code` to the user and direct them to `verification_uri`. Poll the token endpoint using `device_code` at the rate given by `interval`.
44
+ */
45
+ authorize(input: {
46
+ client: string;
47
+ scope?: string | undefined;
48
+ }): Promise<DeviceAuthorizationResponse>;
49
+ /**
50
+ * Deny a device authorization request
51
+ * Rejects the pending device authorization identified by `user_code`, preventing
52
+ * the device from obtaining an access token. Once denied, the device will
53
+ * receive an `access_denied` error on its next token poll.
54
+ * Requires a valid user session. The `user_code` must belong to a pending
55
+ * authorization associated with the calling app. Attempting to deny an already
56
+ * approved, already denied, or expired authorization returns a 400.
57
+ * @param input - Request body.
58
+ * @param input.user_code - User-facing verification code shown on the device. Identifies the pending authorization to deny.
59
+ * @returns Confirmation that the device authorization was denied. The `status` field will be `"denied"`.
60
+ */
61
+ deny(input: {
62
+ user_code: string;
63
+ }): Promise<DeviceAuthorizationStatusResponse>;
64
+ }
65
+ export declare class OauthResource {
66
+ private http;
67
+ readonly device: DeviceResource;
68
+ constructor(http: HttpClient);
69
+ /**
70
+ * List available OAuth scopes
71
+ * Returns the complete set of OAuth scopes that the platform supports.
72
+ * Use this endpoint to discover which scopes are available before constructing
73
+ * an authorization request or rendering a consent UI.
74
+ * No authentication is required. The response is the same for all callers.
75
+ * @returns Successful response
76
+ */
77
+ scopes(): Promise<{
78
+ scopes: Record<string, unknown>;
79
+ }>;
80
+ /**
81
+ * Exchange a grant for OAuth tokens
82
+ * Issues an access token and a refresh token in exchange for a valid grant.
83
+ * Three grant types are supported: `"authorization_code"`, `"refresh_token"`,
84
+ * and `"urn:ietf:params:oauth:grant-type:device_code"`.
85
+ * For `"authorization_code"` grants, supply `code`, `client`, `redirect_uri`, and
86
+ * optionally `code_verifier` for PKCE flows. Each authorization code is single-use;
87
+ * consuming it a second time returns `invalid_grant`.
88
+ * For `"refresh_token"` grants, supply `refresh_token`. The endpoint rotates the
89
+ * refresh token on every call and returns a fresh pair of tokens.
90
+ * For device-code grants, supply `device_code` and `client`. Poll this endpoint
91
+ * after receiving `authorization_pending` until the user approves or the code
92
+ * expires. Slow down polling if you receive `slow_down`.
93
+ * This endpoint is rate-limited to 20 requests per IP per 60 seconds. Exceeding
94
+ * the limit returns HTTP 429 with `"error": "too_many_requests"`.
95
+ * @param input - Request body.
96
+ * @param input.client - OAuth client ID identifying the application requesting tokens. Required for `"authorization_code"` and device-code grants.
97
+ * @param input.code - Single-use authorization code issued by the authorization endpoint. Required for `"authorization_code"` grants.
98
+ * @param input.code_verifier - PKCE code verifier corresponding to the `code_challenge` sent in the authorization request. Required when the authorization code was issued with a code challenge; omit otherwise.
99
+ * @param input.device_code - Device code received from the device authorization endpoint. Required for device-code grants.
100
+ * @param input.grant_type - The OAuth 2.0 grant type. One of `"authorization_code"`, `"refresh_token"`, or `"urn:ietf:params:oauth:grant-type:device_code"`.
101
+ * @param input.redirect_uri - Redirect URI that was used in the original authorization request. Must exactly match the URI on record for the client. Required for `"authorization_code"` grants.
102
+ * @param input.refresh_token - Refresh token received from a previous token response. Required for `"refresh_token"` grants. The token is rotated on each successful call.
103
+ * @returns Token pair issued for the authenticated user.
104
+ */
105
+ token(input: {
106
+ client?: string | undefined;
107
+ code?: string | undefined;
108
+ code_verifier?: string | undefined;
109
+ device_code?: string | undefined;
110
+ grant_type: string;
111
+ redirect_uri?: string | undefined;
112
+ refresh_token?: string | undefined;
113
+ }): Promise<OAuthTokenResponse>;
114
+ }
115
+ //# sourceMappingURL=oauth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/oauth.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,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AG,SAAS,CAAC;QAAC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAG7Q"}
@@ -0,0 +1,112 @@
1
+ // Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
2
+ // This file is auto-generated by @archastro/sdk-generator. Do not edit.
3
+ // Content hash: 28cd44103da4
4
+ export class DeviceResource {
5
+ http;
6
+ constructor(http) {
7
+ this.http = http;
8
+ }
9
+ /**
10
+ * Approve a device authorization request
11
+ * Grants the pending device authorization identified by `user_code`, completing
12
+ * the OAuth Device Authorization flow on behalf of the authenticated user. Once
13
+ * approved, the device can exchange the `device_code` for an access token.
14
+ * Requires a valid user session — the request must be authenticated as an end
15
+ * user, not a machine client. The `user_code` must belong to a pending (not
16
+ * expired, not already approved or denied) authorization associated with the
17
+ * calling app.
18
+ * If the requested scopes include a `thread`-scoped permission, you must supply
19
+ * the `thread` parameter; omitting it returns a 400 with `error: "invalid_scope"`.
20
+ * @param input - Request body.
21
+ * @param input.thread - Thread ID (`thr_...`) to bind to the authorization. Required when the requested scopes include a thread-scoped permission.
22
+ * @param input.user_code - User-facing verification code shown on the device. Identifies the pending authorization to approve.
23
+ * @returns Confirmation that the device authorization was approved. The `status` field will be `"approved"`.
24
+ */
25
+ async approve(input) {
26
+ return this.http.request(`/oauth/device/approve`, { method: "POST", body: input });
27
+ }
28
+ /**
29
+ * Initiate a device authorization request
30
+ * Starts the OAuth 2.0 Device Authorization flow for a device that cannot
31
+ * perform browser-based redirects. Returns a `device_code` (used by the device
32
+ * to poll for a token) and a `user_code` (shown to the user to enter at the
33
+ * `verification_uri`).
34
+ * This endpoint requires a publishable API key; secret keys are rejected with
35
+ * a 403. Third-party OAuth must be enabled on the app; if it is not, the
36
+ * response returns `error: "third_party_oauth_not_enabled"` with a 403.
37
+ * The endpoint is rate-limited to 10 requests per IP per minute. Excess
38
+ * requests receive a 429 response. The returned codes expire after
39
+ * `expires_in` seconds; once expired, a new authorization request must be
40
+ * initiated.
41
+ * @param input - Request body.
42
+ * @param input.client - OAuth client ID (`cli_...`) identifying the application requesting authorization.
43
+ * @param input.scope - Space-separated list of OAuth scopes to request, e.g. `"read write"`. Omit to request only the default scopes configured for the client.
44
+ * @returns Device authorization codes and polling parameters. Present the `user_code` to the user and direct them to `verification_uri`. Poll the token endpoint using `device_code` at the rate given by `interval`.
45
+ */
46
+ async authorize(input) {
47
+ return this.http.request(`/oauth/device/authorize`, { method: "POST", body: input });
48
+ }
49
+ /**
50
+ * Deny a device authorization request
51
+ * Rejects the pending device authorization identified by `user_code`, preventing
52
+ * the device from obtaining an access token. Once denied, the device will
53
+ * receive an `access_denied` error on its next token poll.
54
+ * Requires a valid user session. The `user_code` must belong to a pending
55
+ * authorization associated with the calling app. Attempting to deny an already
56
+ * approved, already denied, or expired authorization returns a 400.
57
+ * @param input - Request body.
58
+ * @param input.user_code - User-facing verification code shown on the device. Identifies the pending authorization to deny.
59
+ * @returns Confirmation that the device authorization was denied. The `status` field will be `"denied"`.
60
+ */
61
+ async deny(input) {
62
+ return this.http.request(`/oauth/device/deny`, { method: "POST", body: input });
63
+ }
64
+ }
65
+ export class OauthResource {
66
+ http;
67
+ device;
68
+ constructor(http) {
69
+ this.http = http;
70
+ this.device = new DeviceResource(http);
71
+ }
72
+ /**
73
+ * List available OAuth scopes
74
+ * Returns the complete set of OAuth scopes that the platform supports.
75
+ * Use this endpoint to discover which scopes are available before constructing
76
+ * an authorization request or rendering a consent UI.
77
+ * No authentication is required. The response is the same for all callers.
78
+ * @returns Successful response
79
+ */
80
+ async scopes() {
81
+ return this.http.request(`/oauth/scopes`);
82
+ }
83
+ /**
84
+ * Exchange a grant for OAuth tokens
85
+ * Issues an access token and a refresh token in exchange for a valid grant.
86
+ * Three grant types are supported: `"authorization_code"`, `"refresh_token"`,
87
+ * and `"urn:ietf:params:oauth:grant-type:device_code"`.
88
+ * For `"authorization_code"` grants, supply `code`, `client`, `redirect_uri`, and
89
+ * optionally `code_verifier` for PKCE flows. Each authorization code is single-use;
90
+ * consuming it a second time returns `invalid_grant`.
91
+ * For `"refresh_token"` grants, supply `refresh_token`. The endpoint rotates the
92
+ * refresh token on every call and returns a fresh pair of tokens.
93
+ * For device-code grants, supply `device_code` and `client`. Poll this endpoint
94
+ * after receiving `authorization_pending` until the user approves or the code
95
+ * expires. Slow down polling if you receive `slow_down`.
96
+ * This endpoint is rate-limited to 20 requests per IP per 60 seconds. Exceeding
97
+ * the limit returns HTTP 429 with `"error": "too_many_requests"`.
98
+ * @param input - Request body.
99
+ * @param input.client - OAuth client ID identifying the application requesting tokens. Required for `"authorization_code"` and device-code grants.
100
+ * @param input.code - Single-use authorization code issued by the authorization endpoint. Required for `"authorization_code"` grants.
101
+ * @param input.code_verifier - PKCE code verifier corresponding to the `code_challenge` sent in the authorization request. Required when the authorization code was issued with a code challenge; omit otherwise.
102
+ * @param input.device_code - Device code received from the device authorization endpoint. Required for device-code grants.
103
+ * @param input.grant_type - The OAuth 2.0 grant type. One of `"authorization_code"`, `"refresh_token"`, or `"urn:ietf:params:oauth:grant-type:device_code"`.
104
+ * @param input.redirect_uri - Redirect URI that was used in the original authorization request. Must exactly match the URI on record for the client. Required for `"authorization_code"` grants.
105
+ * @param input.refresh_token - Refresh token received from a previous token response. Required for `"refresh_token"` grants. The token is rotated on each successful call.
106
+ * @returns Token pair issued for the authenticated user.
107
+ */
108
+ async token(input) {
109
+ return this.http.request(`/oauth/token`, { method: "POST", body: input });
110
+ }
111
+ }
112
+ //# sourceMappingURL=oauth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oauth.js","sourceRoot":"","sources":["../../../src/v1/resources/oauth.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAM7B,MAAM,OAAO,cAAc;IACL;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;;;;;;OAeG;IACH,KAAK,CAAC,OAAO,CAAC,KAAyD;QACrE,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,uBAAuB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK,CAAC,SAAS,CAAC,KAAqD;QACnE,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,yBAAyB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,IAAI,CAAC,KAA4B;QACrC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAClF,CAAC;CACF;AAED,MAAM,OAAO,aAAa;IAGJ;IAFX,MAAM,CAAiB;IAEhC,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;QAClC,IAAI,CAAC,MAAM,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM;QACV,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IAC5C,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,KAAK,CAAC,KAAK,CAAC,KAAkO;QAC5O,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF"}
@@ -1,6 +1,6 @@
1
- // Copyright (c) 2026 ArchAstro Inc. All Rights Reserved.
1
+ // Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
2
2
  // This file is auto-generated by @archastro/sdk-generator. Do not edit.
3
- // Content hash: b2e8bd845f97
3
+ // Content hash: fae3730c8dfd
4
4
  export class OrgResource {
5
5
  http;
6
6
  constructor(http) {
@@ -1 +1 @@
1
- {"version":3,"file":"orgs.js","sourceRoot":"","sources":["../../../src/v1/resources/orgs.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAI7B,MAAM,OAAO,WAAW;IACF;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK,CAAC,IAAI,CAAC,MAA8D;QACvE,MAAM,KAAK,GAA6F,EAAE,CAAC;QAC3G,IAAI,MAAM,EAAE,MAAM,KAAK,SAAS,EAAE,CAAC;YACjC,KAAK,CAAC,QAAQ,CAAC,GAAG,MAAM,EAAE,MAAM,CAAC;QACnC,CAAC;QACD,IAAI,MAAM,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAC/B,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,IAAI,CAAC;QAC/B,CAAC;QACD,IAAI,MAAM,EAAE,QAAQ,KAAK,SAAS,EAAE,CAAC;YACnC,KAAK,CAAC,WAAW,CAAC,GAAG,MAAM,EAAE,QAAQ,CAAC;QACxC,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IACtD,CAAC;CACF"}
1
+ {"version":3,"file":"orgs.js","sourceRoot":"","sources":["../../../src/v1/resources/orgs.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAI7B,MAAM,OAAO,WAAW;IACF;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK,CAAC,IAAI,CAAC,MAA8D;QACvE,MAAM,KAAK,GAA6F,EAAE,CAAC;QAC3G,IAAI,MAAM,EAAE,MAAM,KAAK,SAAS,EAAE,CAAC;YACjC,KAAK,CAAC,QAAQ,CAAC,GAAG,MAAM,EAAE,MAAM,CAAC;QACnC,CAAC;QACD,IAAI,MAAM,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAC/B,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,IAAI,CAAC;QAC/B,CAAC;QACD,IAAI,MAAM,EAAE,QAAQ,KAAK,SAAS,EAAE,CAAC;YACnC,KAAK,CAAC,WAAW,CAAC,GAAG,MAAM,EAAE,QAAQ,CAAC;QACxC,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IACtD,CAAC;CACF"}
@@ -43,18 +43,22 @@ export declare class SlackChannelBindingResource {
43
43
  * attached agents.
44
44
  * @param input - Request body.
45
45
  * @param input.agent_user_ids - List of agent user IDs to attach to the binding and enroll as members of the destination team. Pass an empty array to bind the channel without attaching any agents.
46
+ * @param input.allow_bot_conversations - Opt this channel into sustained bot-to-bot conversation: the reply loop brake is disabled for its mirror thread. Set when the counterparty is a known bot the agent should keep answering. Omitting the parameter leaves the stored value unchanged.
46
47
  * @param input.channel_id - Slack channel ID to bind (e.g. `C01234ABCDE`). Acts as the natural key of the binding within the workspace.
47
48
  * @param input.customer_label - Human-readable label for the customer associated with this channel. Stored in the binding's config. `null` if omitted.
48
49
  * @param input.is_ext_shared_cached - Cached value of Slack's `is_ext_shared` flag for the channel. When provided, this value is persisted on the binding to avoid repeated Slack API lookups. `null` if omitted.
50
+ * @param input.is_private_cached - Cached value of Slack's `is_private` flag for the channel. When provided, this value is persisted on the binding to avoid repeated Slack API lookups. Private channels are member-managed. `null` if omitted.
49
51
  * @param input.slack_team_id - Slack workspace team ID that the channel belongs to (e.g. `T01234ABCDE`). Identifies which Slack integration to use.
50
52
  * @param input.team_id - ID of the team to bind the Slack channel to. The caller must have team-manage rights on this team.
51
53
  * @returns The created or updated Slack channel binding, including the full list of currently attached agents.
52
54
  */
53
55
  create(input: {
54
56
  agent_user_ids: string[];
57
+ allow_bot_conversations?: boolean | undefined;
55
58
  channel_id: string;
56
59
  customer_label?: string | undefined;
57
60
  is_ext_shared_cached?: boolean | undefined;
61
+ is_private_cached?: boolean | undefined;
58
62
  slack_team_id: string;
59
63
  team_id: string;
60
64
  }): Promise<SlackChannelBinding>;
@@ -97,5 +101,26 @@ export declare class SlackChannelBindingResource {
97
101
  get(channel: string, params?: {
98
102
  slackTeamId?: string;
99
103
  }): Promise<SlackChannelBinding>;
104
+ /**
105
+ * Point a Slack channel's deposit pipe at a staging thread, or turn it off
106
+ * Sets the binding's deposit target — the internal staging thread the
107
+ * deposit pipe copies this channel's mirror content into. Pass a `null`
108
+ * `thread_id` to turn the pipe off.
109
+ * The target is validated server-side: it must exist, belong to the
110
+ * binding's app and org, and never be a Slack mirror thread. Customer
111
+ * bindings (bound `team_id`) additionally require a team-owned private
112
+ * thread with no participant list, so the staging read ACL stays governed
113
+ * by the channel-membership projection. Re-pointing or clearing an
114
+ * existing target purges the old thread's deposit entries.
115
+ * @param channel - Slack channel ID whose binding is being configured (e.g. `C01234ABCDE`).
116
+ * @param input - Request body.
117
+ * @param input.slack_team_id - Slack workspace team ID that the channel belongs to (e.g. `T01234ABCDE`). Identifies which Slack integration to use.
118
+ * @param input.thread_id - Staging thread ID (primary key, `thr_…`) deposits should flow into. Pass `null` to turn the pipe off.
119
+ * @returns The binding with the updated deposit config.
120
+ */
121
+ depositThread(channel: string, input: {
122
+ slack_team_id: string;
123
+ thread_id?: string | undefined;
124
+ }): Promise<SlackChannelBinding>;
100
125
  }
101
126
  //# sourceMappingURL=slack_channel_bindings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"slack_channel_bindings.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/slack_channel_bindings.ts"],"names":[],"mappings":"AAIA,OAAO,E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,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAO3F;;;;;;;;;;;;;;;;OAgBG;IACG,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE;QAAE,aAAa,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAGrI"}
@@ -1,6 +1,6 @@
1
- // Copyright (c) 2026 ArchAstro Inc. All Rights Reserved.
1
+ // Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
2
2
  // This file is auto-generated by @archastro/sdk-generator. Do not edit.
3
- // Content hash: 3297ce79be1f
3
+ // Content hash: 080a71f0660e
4
4
  export class SlackChannelBindingResource {
5
5
  http;
6
6
  constructor(http) {
@@ -60,9 +60,11 @@ export class SlackChannelBindingResource {
60
60
  * attached agents.
61
61
  * @param input - Request body.
62
62
  * @param input.agent_user_ids - List of agent user IDs to attach to the binding and enroll as members of the destination team. Pass an empty array to bind the channel without attaching any agents.
63
+ * @param input.allow_bot_conversations - Opt this channel into sustained bot-to-bot conversation: the reply loop brake is disabled for its mirror thread. Set when the counterparty is a known bot the agent should keep answering. Omitting the parameter leaves the stored value unchanged.
63
64
  * @param input.channel_id - Slack channel ID to bind (e.g. `C01234ABCDE`). Acts as the natural key of the binding within the workspace.
64
65
  * @param input.customer_label - Human-readable label for the customer associated with this channel. Stored in the binding's config. `null` if omitted.
65
66
  * @param input.is_ext_shared_cached - Cached value of Slack's `is_ext_shared` flag for the channel. When provided, this value is persisted on the binding to avoid repeated Slack API lookups. `null` if omitted.
67
+ * @param input.is_private_cached - Cached value of Slack's `is_private` flag for the channel. When provided, this value is persisted on the binding to avoid repeated Slack API lookups. Private channels are member-managed. `null` if omitted.
66
68
  * @param input.slack_team_id - Slack workspace team ID that the channel belongs to (e.g. `T01234ABCDE`). Identifies which Slack integration to use.
67
69
  * @param input.team_id - ID of the team to bind the Slack channel to. The caller must have team-manage rights on this team.
68
70
  * @returns The created or updated Slack channel binding, including the full list of currently attached agents.
@@ -110,5 +112,25 @@ export class SlackChannelBindingResource {
110
112
  query["slack_team_id"] = params?.slackTeamId;
111
113
  return this.http.request(`/api/v1/slack_channel_bindings/${channel}`, { query });
112
114
  }
115
+ /**
116
+ * Point a Slack channel's deposit pipe at a staging thread, or turn it off
117
+ * Sets the binding's deposit target — the internal staging thread the
118
+ * deposit pipe copies this channel's mirror content into. Pass a `null`
119
+ * `thread_id` to turn the pipe off.
120
+ * The target is validated server-side: it must exist, belong to the
121
+ * binding's app and org, and never be a Slack mirror thread. Customer
122
+ * bindings (bound `team_id`) additionally require a team-owned private
123
+ * thread with no participant list, so the staging read ACL stays governed
124
+ * by the channel-membership projection. Re-pointing or clearing an
125
+ * existing target purges the old thread's deposit entries.
126
+ * @param channel - Slack channel ID whose binding is being configured (e.g. `C01234ABCDE`).
127
+ * @param input - Request body.
128
+ * @param input.slack_team_id - Slack workspace team ID that the channel belongs to (e.g. `T01234ABCDE`). Identifies which Slack integration to use.
129
+ * @param input.thread_id - Staging thread ID (primary key, `thr_…`) deposits should flow into. Pass `null` to turn the pipe off.
130
+ * @returns The binding with the updated deposit config.
131
+ */
132
+ async depositThread(channel, input) {
133
+ return this.http.request(`/api/v1/slack_channel_bindings/${channel}/deposit_thread`, { method: "POST", body: input });
134
+ }
113
135
  }
114
136
  //# sourceMappingURL=slack_channel_bindings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"slack_channel_bindings.js","sourceRoot":"","sources":["../../../src/v1/resources/slack_channel_bindings.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,2BAA2B;IAClB;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;;;;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,kCAAkC,OAAO,iBAAiB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACxH,CAAC;CACF"}
@@ -1,6 +1,6 @@
1
- // Copyright (c) 2026 ArchAstro Inc. All Rights Reserved.
1
+ // Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
2
2
  // This file is auto-generated by @archastro/sdk-generator. Do not edit.
3
- // Content hash: 1f334c47bd5f
3
+ // Content hash: dec3955689d0
4
4
  export class SolutionCategoryResource {
5
5
  http;
6
6
  constructor(http) {
@@ -1 +1 @@
1
- {"version":3,"file":"solution_categories.js","sourceRoot":"","sources":["../../../src/v1/resources/solution_categories.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,wBAAwB;IACf;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,IAAI,CAAC,MAAiJ;QAC1J,MAAM,KAAK,GAA6F,EAAE,CAAC;QAC3G,IAAI,MAAM,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAC/B,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,IAAI,CAAC;QAC/B,CAAC;QACD,IAAI,MAAM,EAAE,QAAQ,KAAK,SAAS,EAAE,CAAC;YACnC,KAAK,CAAC,WAAW,CAAC,GAAG,MAAM,EAAE,QAAQ,CAAC;QACxC,CAAC;QACD,IAAI,MAAM,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAC/B,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,IAAI,CAAC;QAC/B,CAAC;QACD,IAAI,MAAM,EAAE,UAAU,KAAK,SAAS,EAAE,CAAC;YACrC,KAAK,CAAC,aAAa,CAAC,GAAG,MAAM,EAAE,UAAU,CAAC;QAC5C,CAAC;QACD,IAAI,MAAM,E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AE,CAAC;YACrC,KAAK,CAAC,aAAa,CAAC,GAAG,MAAM,EAAE,UAAU,CAAC;QAC5C,CAAC;QACD,IAAI,MAAM,EAAE,SAAS,KAAK,SAAS,EAAE,CAAC;YACpC,KAAK,CAAC,YAAY,CAAC,GAAG,MAAM,EAAE,SAAS,CAAC;QAC1C,CAAC;QACD,IAAI,MAAM,EAAE,UAAU,KAAK,SAAS,EAAE,CAAC;YACrC,KAAK,CAAC,aAAa,CAAC,GAAG,MAAM,EAAE,UAAU,CAAC;QAC5C,CAAC;QACD,IAAI,MAAM,EAAE,MAAM,KAAK,SAAS,EAAE,CAAC;YACjC,KAAK,CAAC,QAAQ,CAAC,GAAG,MAAM,EAAE,MAAM,CAAC;QACnC,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,6BAA6B,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IACrE,CAAC;CACF"}
@@ -0,0 +1,26 @@
1
+ import { HttpClient } from "../../runtime/http-client.js";
2
+ import type { SolutionInstanceListResponse } from "../../types/common.js";
3
+ export declare class SolutionInstanceResource {
4
+ private http;
5
+ constructor(http: HttpClient);
6
+ /**
7
+ * List customer solution instances
8
+ * Returns a forward cursor-paginated page of customer instances stamped from one
9
+ * solution template. Results are restricted to the caller's organization; an
10
+ * app-wide viewer without an organization scope is forbidden.
11
+ * Pass `after_cursor` from a response with `has_more: true` to retrieve the next
12
+ * page. Each row includes the materialized agent, pinned template version, and
13
+ * local-edit count computed by the solution-instance read path.
14
+ * @param params - Query parameters.
15
+ * @param params.solutionTemplateConfigId - ID of the installed solution template whose customer instances should be listed.
16
+ * @param params.limit - Maximum number of instances to return. Defaults to 50; maximum is 100.
17
+ * @param params.afterCursor - Opaque cursor returned by the preceding page. Omit to retrieve the first page.
18
+ * @returns Cursor-paginated customer solution instances visible to the caller.
19
+ */
20
+ list(params?: {
21
+ solutionTemplateConfigId?: string;
22
+ limit?: number;
23
+ afterCursor?: string;
24
+ }): Promise<SolutionInstanceListResponse>;
25
+ }
26
+ //# sourceMappingURL=solution_instances.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"solution_instances.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/solution_instances.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAE1E,qBAAa,wBAAwB;IACvB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC;;;;;;;;;;;;;OAaG;IACG,IAAI,CAAC,MAAM,CAAC,EAAE;QAAE,wBAAwB,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,4BAA4B,CAAC;CAYxI"}
@@ -0,0 +1,35 @@
1
+ // Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
2
+ // This file is auto-generated by @archastro/sdk-generator. Do not edit.
3
+ // Content hash: e8785a91a984
4
+ export class SolutionInstanceResource {
5
+ http;
6
+ constructor(http) {
7
+ this.http = http;
8
+ }
9
+ /**
10
+ * List customer solution instances
11
+ * Returns a forward cursor-paginated page of customer instances stamped from one
12
+ * solution template. Results are restricted to the caller's organization; an
13
+ * app-wide viewer without an organization scope is forbidden.
14
+ * Pass `after_cursor` from a response with `has_more: true` to retrieve the next
15
+ * page. Each row includes the materialized agent, pinned template version, and
16
+ * local-edit count computed by the solution-instance read path.
17
+ * @param params - Query parameters.
18
+ * @param params.solutionTemplateConfigId - ID of the installed solution template whose customer instances should be listed.
19
+ * @param params.limit - Maximum number of instances to return. Defaults to 50; maximum is 100.
20
+ * @param params.afterCursor - Opaque cursor returned by the preceding page. Omit to retrieve the first page.
21
+ * @returns Cursor-paginated customer solution instances visible to the caller.
22
+ */
23
+ async list(params) {
24
+ const query = {};
25
+ query["solution_template_config_id"] = params?.solutionTemplateConfigId;
26
+ if (params?.limit !== undefined) {
27
+ query["limit"] = params?.limit;
28
+ }
29
+ if (params?.afterCursor !== undefined) {
30
+ query["after_cursor"] = params?.afterCursor;
31
+ }
32
+ return this.http.request(`/api/v1/solution_instances`, { query });
33
+ }
34
+ }
35
+ //# sourceMappingURL=solution_instances.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"solution_instances.js","sourceRoot":"","sources":["../../../src/v1/resources/solution_instances.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,wBAAwB;IACf;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,IAAI,CAAC,MAAoF;QAC7F,MAAM,KAAK,GAA6F,EAAE,CAAC;QAC3G,KAAK,CAAC,6BAA6B,CAAC,GAAG,MAAM,EAAE,wBAAwB,CAAC;QACxE,IAAI,MAAM,EAAE,KAAK,KAAK,SAAS,EAAE,CAAC;YAChC,KAAK,CAAC,OAAO,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC;QACjC,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,4BAA4B,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IACpE,CAAC;CACF"}
@@ -1,6 +1,6 @@
1
- // Copyright (c) 2026 ArchAstro Inc. All Rights Reserved.
1
+ // Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
2
2
  // This file is auto-generated by @archastro/sdk-generator. Do not edit.
3
- // Content hash: d9fe7a0ab128
3
+ // Content hash: 5be3025cf180
4
4
  export class SolutionTagResource {
5
5
  http;
6
6
  constructor(http) {
@@ -1 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