@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,15 +1,18 @@
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: 1c8be4371184
3
+ // Content hash: c1529fb5dcee
4
4
  export * from "./ai.js";
5
5
  export * from "./artifacts.js";
6
6
  export * from "./automations.js";
7
7
  export * from "./chat.js";
8
8
  export * from "./common.js";
9
9
  export * from "./config.js";
10
+ export * from "./device.js";
11
+ export * from "./extractions.js";
10
12
  export * from "./image.js";
11
13
  export * from "./invites.js";
12
14
  export * from "./notifications.js";
15
+ export * from "./oauth.js";
13
16
  export * from "./teams.js";
14
17
  export * from "./threads.js";
15
18
  export * from "./users.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAE7B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAE7B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
@@ -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: 99d5a8c37c53
3
+ // Content hash: b471f8d98612
4
4
  import { z } from "zod";
5
5
  import { imageSourceSchema } from "./image.js";
6
6
  /** Runtime validator for {@link InviteCreator}. */
@@ -1 +1 @@
1
- {"version":3,"file":"invites.js","sourceRoot":"","sources":["../../src/types/invites.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAE7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAgB/C,mDAAmD;AACnD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,0CAA0C;IAC1C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qCAAqC,CAAC;IAC9D,gGAAgG;IAChG,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2FAA2F,CAAC;IACjI,0FAA0F;IAC1F,eAAe,EAAE,iBAAiB,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qFAAqF,CAAC;CAC9I,CAAC,CAAC,QAAQ,CAAC,8PAA8P,CAAoC,CAAC"}
1
+ {"version":3,"file":"invites.js","sourceRoot":"","sources":["../../src/types/invites.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAE7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAgB/C,mDAAmD;AACnD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,0CAA0C;IAC1C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qCAAqC,CAAC;IAC9D,gGAAgG;IAChG,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2FAA2F,CAAC;IACjI,0FAA0F;IAC1F,eAAe,EAAE,iBAAiB,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qFAAqF,CAAC;CAC9I,CAAC,CAAC,QAAQ,CAAC,8PAA8P,CAAoC,CAAC"}
@@ -33,17 +33,17 @@ export declare const notificationSchema: z.ZodObject<{
33
33
  /** Notification type slug, e.g. `"app_info"` for a built-in type or `"custom:deploy_complete"` for a custom type. */
34
34
  type: z.ZodString;
35
35
  }, "strip", z.ZodTypeAny, {
36
- created_at: string;
37
36
  type: string;
38
37
  status: string;
38
+ created_at: string;
39
39
  id: string;
40
40
  rendered: Record<string, unknown>;
41
41
  archived_at?: string | undefined;
42
42
  read_at?: string | undefined;
43
43
  }, {
44
- created_at: string;
45
44
  type: string;
46
45
  status: string;
46
+ created_at: string;
47
47
  id: string;
48
48
  rendered: Record<string, unknown>;
49
49
  archived_at?: string | undefined;
@@ -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: cf711732018a
3
+ // Content hash: de33e3673088
4
4
  import { z } from "zod";
5
5
  /** Runtime validator for {@link Notification}. */
6
6
  export const notificationSchema = z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../src/types/notifications.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAE7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB,kDAAkD;AAClD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,uGAAuG;IACvG,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QA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C,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC,QAAQ,CAAC,2IAA2I,CAAC;CAClM,CAAC,CAAC,QAAQ,CAAC,qFAAqF,CAAiD,CAAC"}
@@ -0,0 +1,117 @@
1
+ import { z } from "zod";
2
+ import type { User } from "./users.js";
3
+ /** A successful OAuth 2.0 token response. Issued by the token endpoint after a completed authorization or device-flow grant. */
4
+ export interface OAuthTokenResponse {
5
+ /** Bearer token used to authenticate API requests. Include this value in the `Authorization: Bearer <token>` header. */
6
+ access_token: string;
7
+ /** Number of seconds until the access token expires. */
8
+ expires_in: number;
9
+ /** Token that can be exchanged for a new access token once the current one expires. `null` if the grant type does not issue refresh tokens. */
10
+ refresh_token?: string | undefined;
11
+ /** Space-separated list of scopes granted to the access token. `null` if scope was not included in the grant request. */
12
+ scope?: string | undefined;
13
+ /** Token type. Always `"Bearer"`. */
14
+ token_type: string;
15
+ /** The authenticated user associated with this token. `null` when the token is not tied to a specific user (e.g. client-credentials grants). */
16
+ user?: User | undefined;
17
+ }
18
+ /** Runtime validator for {@link OAuthTokenResponse}. */
19
+ export declare const oAuthTokenResponseSchema: z.ZodObject<{
20
+ /** Bearer token used to authenticate API requests. Include this value in the `Authorization: Bearer <token>` header. */
21
+ access_token: z.ZodString;
22
+ /** Number of seconds until the access token expires. */
23
+ expires_in: z.ZodNumber;
24
+ /** Token that can be exchanged for a new access token once the current one expires. `null` if the grant type does not issue refresh tokens. */
25
+ refresh_token: z.ZodOptional<z.ZodString>;
26
+ /** Space-separated list of scopes granted to the access token. `null` if scope was not included in the grant request. */
27
+ scope: z.ZodOptional<z.ZodString>;
28
+ /** Token type. Always `"Bearer"`. */
29
+ token_type: z.ZodString;
30
+ /** The authenticated user associated with this token. `null` when the token is not tied to a specific user (e.g. client-credentials grants). */
31
+ user: z.ZodOptional<z.ZodObject<{
32
+ alias: z.ZodOptional<z.ZodString>;
33
+ app: z.ZodOptional<z.ZodString>;
34
+ app_name: z.ZodOptional<z.ZodString>;
35
+ email: z.ZodOptional<z.ZodString>;
36
+ id: z.ZodString;
37
+ is_system_user: z.ZodOptional<z.ZodBoolean>;
38
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
39
+ name: z.ZodOptional<z.ZodString>;
40
+ org: z.ZodOptional<z.ZodString>;
41
+ org_name: z.ZodOptional<z.ZodString>;
42
+ org_role: z.ZodOptional<z.ZodString>;
43
+ sandbox: z.ZodOptional<z.ZodString>;
44
+ sandbox_name: z.ZodOptional<z.ZodString>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ id: string;
47
+ email?: string | undefined;
48
+ alias?: string | undefined;
49
+ org?: string | undefined;
50
+ name?: string | undefined;
51
+ app?: string | undefined;
52
+ sandbox?: string | undefined;
53
+ app_name?: string | undefined;
54
+ is_system_user?: boolean | undefined;
55
+ metadata?: Record<string, unknown> | undefined;
56
+ org_name?: string | undefined;
57
+ org_role?: string | undefined;
58
+ sandbox_name?: string | undefined;
59
+ }, {
60
+ id: string;
61
+ email?: string | undefined;
62
+ alias?: string | undefined;
63
+ org?: string | undefined;
64
+ name?: string | undefined;
65
+ app?: string | undefined;
66
+ sandbox?: string | undefined;
67
+ app_name?: string | undefined;
68
+ is_system_user?: boolean | undefined;
69
+ metadata?: Record<string, unknown> | undefined;
70
+ org_name?: string | undefined;
71
+ org_role?: string | undefined;
72
+ sandbox_name?: string | undefined;
73
+ }>>;
74
+ }, "strip", z.ZodTypeAny, {
75
+ expires_in: number;
76
+ token_type: string;
77
+ access_token: string;
78
+ refresh_token?: string | undefined;
79
+ user?: {
80
+ id: string;
81
+ email?: string | undefined;
82
+ alias?: string | undefined;
83
+ org?: string | undefined;
84
+ name?: string | undefined;
85
+ app?: string | undefined;
86
+ sandbox?: string | undefined;
87
+ app_name?: string | undefined;
88
+ is_system_user?: boolean | undefined;
89
+ metadata?: Record<string, unknown> | undefined;
90
+ org_name?: string | undefined;
91
+ org_role?: string | undefined;
92
+ sandbox_name?: string | undefined;
93
+ } | undefined;
94
+ scope?: string | undefined;
95
+ }, {
96
+ expires_in: number;
97
+ token_type: string;
98
+ access_token: string;
99
+ refresh_token?: string | undefined;
100
+ user?: {
101
+ id: string;
102
+ email?: string | undefined;
103
+ alias?: string | undefined;
104
+ org?: string | undefined;
105
+ name?: string | undefined;
106
+ app?: string | undefined;
107
+ sandbox?: string | undefined;
108
+ app_name?: string | undefined;
109
+ is_system_user?: boolean | undefined;
110
+ metadata?: Record<string, unknown> | undefined;
111
+ org_name?: string | undefined;
112
+ org_role?: string | undefined;
113
+ sandbox_name?: string | undefined;
114
+ } | undefined;
115
+ scope?: string | undefined;
116
+ }>;
117
+ //# sourceMappingURL=oauth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../src/types/oauth.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAEvC,gIAAgI;AAChI,MAAM,WAAW,kBAAkB;IACjC,wHAAwH;IACxH,YAAY,EAAE,MAAM,CAAC;IACrB,wDAAwD;IACxD,UAAU,EAAE,MAAM,CAAC;IACnB,+IAA+I;IAC/I,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,yHAAyH;IACzH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,qCAAqC;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,gJAAgJ;IAChJ,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CACzB;AAED,wDAAwD;AACxD,eAAO,MAAM,wBAAwB;IACnC,wHAAwH;;IAExH,wDAAwD;;IAExD,+IAA+I;;IAE/I,yHAAyH;;IAEzH,qCAAqC;;IAErC,gJAAgJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE8B,CAAC"}
@@ -0,0 +1,21 @@
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: a76abf082bae
4
+ import { z } from "zod";
5
+ import { userSchema } from "./users.js";
6
+ /** Runtime validator for {@link OAuthTokenResponse}. */
7
+ export const oAuthTokenResponseSchema = z.object({
8
+ /** Bearer token used to authenticate API requests. Include this value in the `Authorization: Bearer <token>` header. */
9
+ access_token: z.string().describe("Bearer token used to authenticate API requests. Include this value in the `Authorization: Bearer <token>` header."),
10
+ /** Number of seconds until the access token expires. */
11
+ expires_in: z.number().int().describe("Number of seconds until the access token expires."),
12
+ /** Token that can be exchanged for a new access token once the current one expires. `null` if the grant type does not issue refresh tokens. */
13
+ refresh_token: z.string().optional().describe("Token that can be exchanged for a new access token once the current one expires. `null` if the grant type does not issue refresh tokens."),
14
+ /** Space-separated list of scopes granted to the access token. `null` if scope was not included in the grant request. */
15
+ scope: z.string().optional().describe("Space-separated list of scopes granted to the access token. `null` if scope was not included in the grant request."),
16
+ /** Token type. Always `"Bearer"`. */
17
+ token_type: z.string().describe("Token type. Always `\"Bearer\"`."),
18
+ /** The authenticated user associated with this token. `null` when the token is not tied to a specific user (e.g. client-credentials grants). */
19
+ user: userSchema.optional().describe("The authenticated user associated with this token. `null` when the token is not tied to a specific user (e.g. client-credentials grants)."),
20
+ }).describe("A successful OAuth 2.0 token response. Issued by the token endpoint after a completed authorization or device-flow grant.");
21
+ //# sourceMappingURL=oauth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oauth.js","sourceRoot":"","sources":["../../src/types/oauth.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAE7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAmBxC,wDAAwD;AACxD,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,wHAAwH;IACxH,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mHAAmH,CAAC;IACtJ,wDAAwD;IACxD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,mDAAmD,CAAC;IAC1F,+IAA+I;IAC/I,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,0IAA0I,CAAC;IACzL,yHAAyH;IACzH,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oHAAoH,CAAC;IAC3J,qCAAqC;IACrC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kCAAkC,CAAC;IACnE,gJAAgJ;IAChJ,IAAI,EAAE,UAAU,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2IAA2I,CAAC;CAClL,CAAC,CAAC,QAAQ,CAAC,2HAA2H,CAAyC,CAAC"}